/*! For license information please see main.05084269.js.LICENSE.txt */
(function(){var __webpack_modules__={66132:function(e,t,n){var r=n(58921).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=d;var h={};function m(){}function f(){}function g(){}var v={};u(v,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(I([])));b&&b!==n&&i.call(b,s)&&(v=b);var C=g.prototype=m.prototype=Object.create(v);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,s,l){var c=p(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=g,u(C,"constructor",g),u(g,"constructor",f),f.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(x.prototype),u(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,c,"Generator"),u(C,s,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},58921:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},77162:function(e,t,n){var r=n(66132)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},10175:function(e,t,n){"use strict";n.r(t),n.d(t,{filterOutNull:function(){return o}});var r=n(28278);function o(e){return e.filter(r.$)}},18287:function(e,t,n){"use strict";n.d(t,{BB:function(){return f},Of:function(){return s},gL:function(){return p},lm:function(){return a},nG:function(){return i},nr:function(){return u},ok:function(){return c},t$:function(){return d},tY:function(){return h},yR:function(){return m}});var r=n(13019),o=[];function i(e){return e||o}function a(e){return l(e,(function(e){return void 0!==e&&null!==e&&""!==e&&(!(e instanceof Array)||e.length>0)}))}function s(e){return l(e,(function(e){return null!==e}))}function l(e,t){if(void 0===e||null===e)return e;for(var n={},o=0,i=(0,r.keys)(e);o<i.length;o++){var a=i[o];t(e[a])&&(n[a]=e[a])}return n}function c(e,t){return Object.assign({},e,t)}function u(e,t){return e.hasOwnProperty(t)}function d(e){var t=void 0;return function(n){if(t&&n===t.arg)return t.result;var r=e(n);return t={arg:n,result:r},r}}function p(e){return void 0===e?null:e}function h(e,t){var n=[];if(e>0&&e<Number.MAX_VALUE)for(var r=0;r<e;r+=1)n.push(t(r));return n}function m(e){return e}function f(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<n}},81856:function(e,t){"use strict";t.Z=function(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},8170:function(e,t,n){"use strict";function r(e,t){return void 0===e?t:e}n.r(t),n.d(t,{areEqualNumbers:function(){return d.BB},backfillUndefined:function(){return r},cacheLatest:function(){return d.t$},countStringOccurrences:function(){return i},createArrayAndFillWith:function(){return d.tY},defaultToEmptyArray:function(){return d.nG},endsWith:function(){return F},filterOutNull:function(){return a.filterOutNull},find:function(){return s},flattenJoin:function(){return u},generateGuid:function(){return h.Z},hasOwnProperty:function(){return d.nr},identity:function(){return d.yR},isDefined:function(){return m.$},isEmpty:function(){return v},isSafeInteger:function(){return b()},isString:function(){return A},keys:function(){return C.keys},lowerFirst:function(){return N},makeObject:function(){return S.V},matchAll:function(){return x},memoizeFunction:function(){return _.N},memoizeFunctionProperties:function(){return E.M},memoizeSelector:function(){return I},merge:function(){return P},neverGuard:function(){return p.k},neverGuardDefault:function(){return p.J},omitEmpty:function(){return d.lm},omitNull:function(){return d.Of},range:function(){return T},safeJoinStrings:function(){return B},sortObjectBy:function(){return D.z},startsWith:function(){return M},throwError:function(){return O.throwError},undefinedToNull:function(){return d.gL},uniq:function(){return H},uniqBy:function(){return L},updateWith:function(){return d.ok},upperFirst:function(){return R}});var o=n(73930);function i(e){return e.reduce((function(e,t){var n;return(0,o.__assign)((0,o.__assign)({},e),((n={})[t]=(e[t]||0)+1,n))}),{})}var a=n(10175);function s(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var l=n(43260),c=n.n(l);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c()((0,a.filterOutNull)(e)).join(",")}var d=n(18287),p=n(62813),h=n(81856),m=n(28278),f=n(76032),g=n.n(f);function v(e){return g()(e)}var y=n(96502),b=n.n(y),C=n(13019),S=n(61148);function x(e,t){var n=[];if(!t.global)throw new Error("regular expression must have the global flag set");var r=null;do{(r=t.exec(e))&&n.push(r)}while(r&&r[0]);return n}var _=n(8141),E=n(77465),k=Object.keys,w=function(e,t){if(!e||!t||e===t)return e===t;var n=k(e);return n.length===k(t).length&&n.every((function(n){return t.hasOwnProperty(n)&&e[n]===t[n]}))},I=function(e,t){var n=function(e){var t=[];return function(n){var r=void 0;if(t.forEach((function(e){var t=(0,o.__read)(e,2),i=t[0],a=t[1];return w(i,n)&&(r=a)})),r)return r;var i=e(n);return t.unshift([n,i]),t=t.slice(0,25),i}}(t),r=void 0;return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var a=n(e.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(t),!1)));if(void 0!==r&&r!==a)if(Array.isArray(a)&&Array.isArray(r)){var s=r;if(a.length===s.length&&a.every((function(e,t){return e===s[t]})))return r}else if("object"===typeof a&&"object"===typeof r&&w(r,a))return r;return r=a,a}};function P(e,t,n){if(0===t.length)return e;if(0===e.length)return t;for(var r=0,o=0,i=[];r<e.length&&o<t.length;)if(1===n(e[r],t[o]))i.push(t[o++]);else i.push(e[r++]);return r===e.length&&i.push.apply(i,t.slice(o)),o===t.length&&i.push.apply(i,e.slice(r)),i}function T(e,t,n){return(0,o.__spreadArray)([],Array(e),!0).map((function(e,r){return(t||0)+r*(n||1)}))}var D=n(16038);function A(e){return"string"===typeof e}function R(e){return e.length?e[0].toUpperCase()+e.slice(1):e}function N(e){return e.length?e[0].toLowerCase()+e.slice(1):e}function M(e,t){return e.slice(0,t.length)===t}function F(e,t){return e.slice(0-t.length)===t}function B(e,t){return e.join(t)}var O=n(46912);function L(e,t){var n=e.map(t);return e.filter((function(e,r){return n.indexOf(t(e))===r}))}function H(e){return L(e,(function(e){return e}))}},28278:function(e,t,n){"use strict";function r(e){return null!==e&&void 0!==e}n.d(t,{$:function(){return r}})},13019:function(e,t,n){"use strict";function r(e){return"string"===typeof e?Object.keys(e.split("")):"number"===typeof e||"boolean"===typeof e?[]:Object.keys(e)}n.r(t),n.d(t,{keys:function(){return r}})},61148:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={};return t.forEach((function(t){return r[t]=e(t)})),r}n.d(t,{V:function(){return r}})},1606:function(e,t,n){"use strict";n.r(t),n.d(t,{memoizeFunction:function(){return r.N}});var r=n(8141)},62813:function(e,t,n){"use strict";function r(e){return e}function o(e,t){return t}n.d(t,{J:function(){return o},k:function(){return r}})},16038:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(13019);function o(e,t){var n=(0,r.keys)(e).sort((function(e,n){return t(e.toString()).localeCompare(t(n.toString()))})),o={};return n.forEach((function(t){o[t]=e[t]})),o}},46912:function(e,t,n){"use strict";function r(e){throw new Error(e)}n.r(t),n.d(t,{throwError:function(){return r}})},68088:function(e,t,n){"use strict";n.r(t),n.d(t,{isSupportedLocale:function(){return o},supportedLocales:function(){return r},toSupportedLocale:function(){return i}});var r=["af","am","ar","as-in","az-latn-az","be-by","bg","bn-in","bn-bd","bs-latn-ba","ca","ca-es-valencia","cs","cy","da","de","el","en-gb","en-us","es","es-mx","et","eu","fa","fi","fil","fr","fr-ca","ga-ie","gd-gb","gl","gu","ha-latn-ng","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km-kh","kn","ko","kok","ky","lb-lu","lo-la","lt","lv","mi-nz","mk","ml","mn-mn","mr","ms","mt-mt","ne-np","nl","nn-no","no","or","pa-in","pl","prs","pt","pt-pt","quz-pe","ro","ru","sd-arab-pk","si-lk","sk","sl","sq","sr","sr-cyrl","sr-cyrl-ba","sv","sw","ta","te","th","tk-tm","tr","tt","ug-cn","uk","ur","uz","vi","zh-hans","zh-hant","zu-za"];function o(e){return r.indexOf(e)>=0}function i(e,t){if(e){var n=e.toLowerCase().replace("_","-"),i=a(n);if(i)return i;if(o(n))return n;var s=n.split("-");if(s.length>2){var l=s.slice(0,s.length-1).join("-");if(o(l))return l;var c=a(l);if(c)return c}if(s.length>1){var u=s[0];if(o(u))return u}var d=n.substr(0,2);if(o(d))return d;var p=a(d);if(p)return p;for(var h=0,m=r;h<m.length;h++){var f=m[h];if(0===f.indexOf(d))return f}}if(t)return t;throw new Error("".concat(e," cannot be mapped to a supported locale"))}function a(e){if(0===e.indexOf("es-")&&"es-es"!==e)return"es-mx";if(0===e.indexOf("en-")&&"en-us"!==e)return"en-gb";if(0===e.indexOf("ja-"))return"ja";switch(e){case"zh-hk":case"zh-mo":case"zh-rhk":case"zh-rtw":case"zh-sg":case"zh-tw":return"zh-hant";case"zh-rcn":return"zh-hans";case"be":return"nl";case"ga":return"ga-ie";case"in":return"id";case"iw":return"he";case"nb":return"no";default:return}}},42706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapStringsWithPlaceholdersToStandardFormat=t.mapStringsToStandardFormat=t.declarePluralStringWithPlaceholders=t.declarePluralString=void 0;var r=n(70344),o=n(95053),i=n(10895),a=n(63196),s=n(96767),l=n(91652);function c(e){var t=e.comment,n=e.placeholders,i=e.strings,s={comment:t,placeholders:n,text:function(e){return(0,r.createICUString)((0,a.doPseudoLocalization)()?(0,o.pseudoLocalizePluralWithPlaceholders)(i,e):i(e))}};return s}t.declarePluralString=function(e,t){var n=t&&{text:(0,r.createICUString)(t.strings),comment:t.comment},a=function(t){return void 0===t&&(t=(0,i.getDefaultStringProvider)()),(0,o.resolveString)(e,n,t)};return a.toString=a,a.key=e,a},t.declarePluralStringWithPlaceholders=function(e,t){var n=t&&c(t),r=function(t,r){return void 0===r&&(r=(0,i.getDefaultStringProvider)()),(0,o.resolveStringWithPlaceholders)(e,n,r,{alreadyPseudoLocalized:!0})(t)};return r.toString=function(t){return void 0===t&&(t=(0,i.getDefaultStringProvider)()),(0,a.isDevLocalization)()&&n||!(0,l.stringExists)(e,t)&&n?(0,s.getStringDescriptionWithPlaceholders)(e,n).stringToBeLocalized:(0,l.lookUpString)(e,t)},r.key=e,r},t.mapStringsToStandardFormat=function(e){var t=e.comment,n=e.strings;return{text:(0,r.createICUString)(n),comment:t}},t.mapStringsWithPlaceholdersToStandardFormat=c},95053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocalizePluralWithPlaceholders=t.declareStringWithPlaceholders=t.declareString=t.lookupStringInStringProvider=t.resolveStringWithPlaceholders=t.resolveString=void 0;var r=n(13019),o=n(1606),i=n(10895),a=n(63196),s=n(96767),l=n(42138),c=n(91652),u=/\\{\\d+\\}/g,d=(0,o.memoizeFunction)((function(e){return new RegExp("\\{".concat(e,"\\}"),"g")}));function p(e,t,n){try{return(0,a.isDevLocalization)()&&t?(0,a.doPseudoLocalization)()?function(e){var t={},n={};(e.match(/({.+?})/g)||[]).forEach((function(e,r){var o="".concat(f,"_").concat(r);t[e]=o,n[o]=e}));var r=Object.keys(t).reduce((function(e,n){return e.replace(n,t[n])}),y(e)),o=(0,l.pseudoLocalize)(r);return Object.keys(n).reduce((function(e,t){return e.replace(t,n[t])}),b(o))}(t.text):t.text:!(0,c.stringExists)(e,n)&&t?t.text:(0,c.lookUpString)(e,n)}catch(r){return(0,c.handleLocalizationError)(r,n),""}}t.resolveString=p;var h=function(e,t){return function(n){try{return e(n)}catch(r){return(0,c.handleLocalizationError)(r,t),""}}};function m(e,t,n,o){try{return(0,a.isDevLocalization)()&&t&&t.text&&!(null===o||void 0===o?void 0:o.alreadyPseudoLocalized)?h((function(e){return(0,a.doPseudoLocalization)()?function(e,t){var n={},o={};(0,r.keys)(t).forEach((function(e,r){var i="".concat(f,"_").concat(r);n[e]=i,o[i]=t[e]}));var i=(0,l.pseudoLocalize)(y(e.text(n)));return(0,r.keys)(o).reduce((function(e,t){return e.replace(new RegExp(C(t),"g"),o[t])}),b(i))}(t,e):t.text(e)}),n):!(0,c.stringExists)(e,n)&&t&&t.text?h(t.text,n):h((function(t){return(0,r.keys)(t).sort().reduce((function(e,n,r){var o=t[n],i=("string"===typeof o&&o||o&&o.toString&&o.toString()||"").replace(u,"");return(e||"").replace(d(r),i)}),(0,c.lookUpString)(e,n))}),n)}catch(i){return(0,c.handleLocalizationError)(i,n),function(){return""}}}t.resolveStringWithPlaceholders=m,t.lookupStringInStringProvider=function(e){return function(t){return function(n){return n?m(t,void 0,e)(n):p(t,void 0,e)}}},t.declareString=function(e,t){var n=function(n){return void 0===n&&(n=(0,i.getDefaultStringProvider)()),p(e,t,n)};return n.toString=n,n.key=e,n},t.declareStringWithPlaceholders=function(e,t){var n=function(n,r){return void 0===r&&(r=(0,i.getDefaultStringProvider)()),m(e,t,r)(n)};return n.toString=function(n){return void 0===n&&(n=(0,i.getDefaultStringProvider)()),(0,a.isDevLocalization)()&&t||!(0,c.stringExists)(e,n)&&t?(0,s.getStringDescriptionWithPlaceholders)(e,t).stringToBeLocalized:(0,c.lookUpString)(e,n)},n.key=e,n};var f="0.7059175321136157";var g="->INF::",v="".concat(f,"_-1");function y(e){return e.replace(new RegExp(g,"g"),v)}function b(e){return e.replace(new RegExp(v,"g"),g)}function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}t.pseudoLocalizePluralWithPlaceholders=function(e,t){var n={},o={};(0,r.keys)(t).forEach((function(e,r){var i="".concat(f,"_").concat(r);n[e]=i,o[i]=t[e]}));var i=e(n);return(0,r.keys)(i).forEach((function(e){var t=(0,l.pseudoLocalize)(y(i[e]));i[e]=(0,r.keys)(o).reduce((function(e,t){return e.replace(new RegExp(C(t),"g"),o[t])}),b(t))})),i}},10895:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookupStringInDefaultStringProvider=t.clearStringMapLoadersForDefaultStringProvider=t.setCurrentLocaleForDefaultStringProvider=t.getCurrentLocaleForDefaultStringProvider=t.addStringMapLoaderForDefaultStringProvider=t.addStringMapForDefaultStringProvider=t.setLocalizationErrorHandlerForDefaultStringProvider=t.getDefaultStringProvider=void 0;var r=n(73930),o=n(63196),i=n(91652),a={currentLocale:void 0,strings:{},errorHandler:function(e){return console.error(e)},loaders:[],stringMapInitialized:!1,suppressEmptyStringMapErrors:(0,o.isTest)()};function s(){return a}t.getDefaultStringProvider=s,t.setLocalizationErrorHandlerForDefaultStringProvider=function(e){a=(0,i.setLocalizationErrorHandler)(e,a)},t.addStringMapForDefaultStringProvider=function(e,t){a=(0,i.addStringMap)(e,t,a)},t.addStringMapLoaderForDefaultStringProvider=function(e){a=(0,i.addStringMapLoader)(e,a)},t.getCurrentLocaleForDefaultStringProvider=function(){return(0,i.getCurrentLocale)(s())},t.setCurrentLocaleForDefaultStringProvider=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,(0,i.setCurrentLocale)(e,a)];case 1:return[2,(a=t.sent()).currentLocale]}}))}))},t.clearStringMapLoadersForDefaultStringProvider=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,(0,i.clearStringMapLoaders)(s())];case 1:return a=e.sent(),[2]}}))}))},t.lookupStringInDefaultStringProvider=function(e){return(0,i.lookUpString)(e,s())}},63196:function(e,t,n){"use strict";var r=n(40475);Object.defineProperty(t,"__esModule",{value:!0}),t.doPseudoLocalization=t.disableDevModeForLocalization=t.enableDevModeForLocalization=t.enablePseudoLocalization=t.disablePseudoLocalization=t.togglePseudoLocalization=t.isTest=t.isDevLocalization=t.skipLocalization=t.isDev=void 0;var o=!1,i=!1;function a(){return"undefined"!==typeof __DEV__&&__DEV__&&!i}function s(){return"undefined"!==typeof __SKIP_LOC__&&__SKIP_LOC__}t.isDev=a,t.skipLocalization=s,t.isDevLocalization=function(){return a()||s()},t.isTest=function(){return Boolean("undefined"!==typeof r&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&!1)},t.togglePseudoLocalization=function(){o=!o},t.disablePseudoLocalization=function(){o=!0},t.enablePseudoLocalization=function(){o=!1},t.enableDevModeForLocalization=function(){i=!1},t.disableDevModeForLocalization=function(){i=!0},t.doPseudoLocalization=function(){return!("undefined"===typeof __DEV__||!__DEV__||i)&&!("undefined"!==typeof __DISABLE_PSEUDO_LOC__&&__DISABLE_PSEUDO_LOC__||o)}},96767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStringDescriptionWithPlaceholders=t.getStringDescriptionWithoutPlaceholders=t.getStringDescriptionWithOnlyKey=void 0;var r=n(73930),o=n(8170),i=n(10175),a=n(46912);function s(e){return(e=(0,o.upperFirst)(e.trim()))&&!(0,o.endsWith)(e,".")&&(e+="."),e}t.getStringDescriptionWithOnlyKey=function(e){return{key:e,stringToBeLocalized:"",comment:"",placeholderNames:[]}},t.getStringDescriptionWithoutPlaceholders=function(e,t){return{key:e,stringToBeLocalized:t.text,comment:t.comment,placeholderNames:[]}},t.getStringDescriptionWithPlaceholders=function(e,t){for(var n=(0,o.keys)(t.placeholders).filter(o.isString).sort(),l={},c=0,u=(0,o.keys)(t.placeholders);c<u.length;c++){var d=u[c];l[d]=(0,o.isString)(d)?"{".concat(n.indexOf(d),"}"):(0,a.throwError)("Placeholder name ".concat(d," is not a string"))}var p=t.text(l),h=r.__spreadArray([t.comment],n.map((function(e,n){var r=t.placeholders[e].trim();return r?"{".concat(n,"} is a placeholder for ").concat((0,o.lowerFirst)(r)):null})),!0),m=(0,i.filterOutNull)(h).map(s).filter(Boolean).join(" ");return n.forEach((function(e,t){m=m.replace("{"+e+"}","{"+t+"}")})),{key:e,stringToBeLocalized:p,comment:m,placeholderNames:n}}},66759:function(e,t,n){"use strict";t.me=t.li=void 0;var r=n(42706);var o=n(95053);Object.defineProperty(t,"li",{enumerable:!0,get:function(){return o.declareStringWithPlaceholders}});var i=n(10895);var a=n(63196);Object.defineProperty(t,"me",{enumerable:!0,get:function(){return a.isDevLocalization}});var s=n(96767);var l=n(72097);var c=n(91652);var u=n(12116)},72097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeGetStringMapLoader=void 0;var r=n(12116);t.makeGetStringMapLoader=function(e){return function(t){var n=function(t){return e((0,r.toSupportedLocale)(t,"en-us"))};return t?e((0,r.toSupportedLocale)(t,"en-us")).catch((function(){})).then((function(){return n})):Promise.resolve(n)}}},42138:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocalize=void 0;var n={a:"\u0227",A:"\u0226",b:"\u0180",B:"\u0181",c:"\u0188",C:"\u0187",d:"\u1e13",D:"\u1e12",e:"\u1e17",E:"\u1e16",f:"\u0192",F:"\u0191",g:"\u0260",G:"\u0193",h:"\u0127",H:"\u0126",i:"\u012b",I:"\u012a",j:"\u0135",J:"\u0134",k:"\u0137",K:"\u0136",l:"\u0140",L:"\u013f",m:"\u1e3f",M:"\u1e3e",n:"\u019e",N:"\u0220",o:"\u01ff",O:"\u01fe",p:"\u01a5",P:"\u01a4",q:"\u024b",Q:"\u024a",r:"\u0159",R:"\u0158",s:"\u015f",S:"\u015e",t:"\u0167",T:"\u0166",v:"\u1e7d",V:"\u1e7c",u:"\u016d",U:"\u016c",w:"\u1e87",W:"\u1e86",x:"\u1e8b",X:"\u1e8a",y:"\u1e8f",Y:"\u1e8e",z:"\u1e91",Z:"\u1e90"};t.pseudoLocalize=function(e){return e.split("").reduce((function(e,t){var r=n[t]||t,o=r+(function(e){return"aeiou".indexOf(e.toLowerCase())>=0}(t)?r:"");return e+o}),"")}},91652:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookUpString=t.stringExists=t.flattenStringMap=t.clearStringMapLoaders=t.setCurrentLocale=t.getCurrentLocale=t.addStringMapLoader=t.addStringMap=t.handleLocalizationError=t.setLocalizationErrorHandler=void 0;var r=n(73930),o=n(13019),i=n(1606),a=n(63196);t.setLocalizationErrorHandler=function(e,t){return r.__assign(r.__assign({},t),{errorHandler:e})},t.handleLocalizationError=function(e,t){t.errorHandler(e)};var s,l=(0,i.memoizeFunction)((function(e,t){var n=u(t);return function(t){return Promise.resolve(e===t?n:{})}}));function c(e,t){return-1===t.loaders.indexOf(e)?r.__assign(r.__assign({},t),{loaders:t.loaders.concat(e)}):t}function u(e){var t={};return e&&function e(n,r){for(var i=0,a=(0,o.keys)(r);i<a.length;i++){var s=a[i];if("string"===typeof s){var l=r[s];"string"===typeof l?t[n+s]=l:"object"===typeof l&&e(n+s+".",l)}}}("",e),t}t.addStringMap=function(e,t,n){if(n.currentLocale===e||void 0===n.currentLocale){var o=u(t);return r.__assign(r.__assign({},n),{currentLocale:void 0===n.currentLocale?e:n.currentLocale,strings:r.__assign(r.__assign({},n.strings),o),stringMapInitialized:!0})}return c(l(e,t),n)},t.addStringMapLoader=c,t.getCurrentLocale=function(e){return s?s.then((function(e){return e.currentLocale})):Promise.resolve(e.currentLocale)},t.setCurrentLocale=function(e,t){var n=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,o,i=this;return r.__generator(this,(function(a){switch(a.label){case 0:return n=function(n){return r.__awaiter(i,void 0,void 0,(function(){var o,i;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n(e)];case 1:return[2,r.sent()];case 2:return o=r.sent(),i=o.message||"unknown error",t.errorHandler("Async string map loader failed: ".concat(i)),[2,{}];case 3:return[2]}}))}))},o=t.loaders.map(n),[4,Promise.all(o)];case 1:return[2,a.sent().map(u).reduce((function(e,t){return r.__assign(r.__assign({},e),t)}),{})]}}))}))}(e,t).then((function(n){return r.__assign(r.__assign({},t),{strings:n,currentLocale:e,stringMapInitialized:!0})}));return s=s?s.then((function(){return n})):n},t.clearStringMapLoaders=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return s?[4,s]:[3,2];case 1:t.sent(),t.label=2;case 2:return s=void 0,[2,r.__assign(r.__assign({},e),{loaders:[],strings:{},currentLocale:void 0})]}}))}))},t.flattenStringMap=u,t.stringExists=function(e,t){return"string"===typeof t.strings[e]},t.lookUpString=function(e,t){var n=t.strings[e];if(!n||"string"!==typeof n){var r=(0,a.isDev)()||(0,a.isTest)()?e:"";return!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(t.strings)?t.errorHandler("Key ".concat(e," does not exist in string map"),{stringsLoaded:!!t.stringMapInitialized}):!t.suppressEmptyStringMapErrors&&t.errorHandler("The current string map is empty. The string is probably resolved too early, at import time. Key: ".concat(e)),r}return n}},12116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSupportedLocale=t.supportedLocales=t.isSupportedLocale=void 0;var r=n(68088);Object.defineProperty(t,"isSupportedLocale",{enumerable:!0,get:function(){return r.isSupportedLocale}}),Object.defineProperty(t,"supportedLocales",{enumerable:!0,get:function(){return r.supportedLocales}}),Object.defineProperty(t,"toSupportedLocale",{enumerable:!0,get:function(){return r.toSupportedLocale}})},8141:function(e,t,n){"use strict";n.d(t,{N:function(){return g}});var r,o,i,a=n(73930),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},l="undefined"!==typeof console?console:void 0,c={trace:(null!==(r=null===l||void 0===l?void 0:l.trace)&&void 0!==r?r:s).bind(l),warn:(null!==(o=null===l||void 0===l?void 0:l.warn)&&void 0!==o?o:s).bind(l),table:(null!==(i=null===l||void 0===l?void 0:l.table)&&void 0!==i?i:s).bind(l)},u=n(15888),d=n.n(u),p="undefined"!==typeof __WHY_DID_YOU_RECOMPUTE__&&__WHY_DID_YOU_RECOMPUTE__||"undefined"!==typeof globalThis&&globalThis.__WHY_DID_YOU_RECOMPUTE__,h={empty:!0},m={},f="undefined"===typeof WeakMap?null:WeakMap,g=function(e,t){if(void 0===t&&(t=100),!f)return e;var n=y(),r=0,o=0,i=p?new Map:void 0,s=p?new Error("Memoized function defined").stack:"";return function(){for(var l,u,h,m,f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var b=n;(0!==o||t>0&&r>t)&&(n=y(),r=0,o=0,null===i||void 0===i||i.clear()),b=n;for(var C=function(e){var t=v(f[e]);if(!(null===(l=b.map)||void 0===l?void 0:l.has(t))&&(null===(u=b.map)||void 0===u||u.set(t,y()),p&&i)){var n=null!==(h=i.get(b))&&void 0!==h?h:[],r=n.filter((function(e){return e!==t&&d()(e,t)}))[0];if(r){c.warn("Why-did-you-recompute: Identical (deep-comparison) past arguments to memoizeFunction found with differing instance equality: ");var o=new Error("Indentical argument passed").stack;!function e(t,n){c.table(t),Object.keys(t).forEach((function(r){var o=t[r],i=n[r];o!==i&&d()(o,i)&&(c.warn("Duplication present in child prop '".concat(r,"'")),e(o,i))}))}(r,t),c.warn(o),c.warn(s)}i.set(b,(0,a.__spreadArray)((0,a.__spreadArray)([],(0,a.__read)(n),!1),[t],!1))}b=null===(m=b.map)||void 0===m?void 0:m.get(t)},S=0;S<f.length;S++)C(S);return b.hasOwnProperty("value")||(b.value=e.apply(void 0,(0,a.__spreadArray)([],(0,a.__read)(f),!1)),r++),b.value}};function v(e){return e?"object"===typeof e||"function"===typeof e?e:(m[e]||(m[e]={val:e}),m[e]):h}function y(){return{map:f?new f:null}}},77465:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(73930),o=n(8141),i=Object.keys;function a(e){var t,n,a={};try{for(var s=(0,r.__values)(i(e)),l=s.next();!l.done;l=s.next()){var c=l.value,u=e[c];if("function"===typeof u){var d=u;a[c]=(0,o.N)(d.bind(a))}else a[c]=u}}catch(p){t={error:p}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}},70344:function(e,t,n){"use strict";n.r(t),n.d(t,{createICUString:function(){return h},getPluralString:function(){return g},getPluralStringUnsafe:function(){return f},getStringForRange:function(){return d},mapMidgardLocaleToCLDRLocale:function(){return u},mapNumberToRangeForLocale:function(){return p},parsePluralString:function(){return m}});var r=n(73930),o=n(96502),i=n.n(o),a=n(11481),s=n.n(a),l=["zero","one","two","few","many","other"],c={zero:/zero\s*{([^}]+)}/,one:/one\s*{([^}]+)}/,two:/two\s*{([^}]+)}/,few:/few\s*{([^}]+)}/,many:/many\s*{([^}]+)}/,other:/other\s*{([^}]+)}/};function u(e){return e.split("-")[0]}function d(e,t){var n=(0,r.__read)(c[t].exec(e)||[],2)[1];return void 0===n?"":n}function p(e,t){return s()(t,e)}function h(e){var t="";return l.forEach((function(n){e[n]&&(t+=" ".concat(n,"{").concat(e[n],"}"))})),"".concat("{count, plural,").concat(t).concat("}")}function m(e,t,n){return d(e,p(t,n)||"other")}function f(e,t,n){if(t<0||t!==1/0&&!i()(t))throw new Error("count must be a positive integer or Infinity");return m(e,t,n)}function g(e,t,n){if(void 0===t)return e;try{return f(e,t,n||"en")}catch(r){return e}}},66547:function(e,t,n){"use strict";var r,o=n(87363),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r,a=n(61533),s=n(47337),l=function(e,t){return l=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])},l(e,t)};function c(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}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function p(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}Object.create;function h(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}Object.create;var m={},f=void 0;try{f=window}catch(SR){}function g(e,t){if("undefined"!==typeof f){var n=f.__packages__=f.__packages__||{};if(!n[e]||!m[e])m[e]=t,(n[e]=n[e]||[]).push(t)}}g("@fluentui/set-version","6.0.0"),g("@fluentui/react","8.36.5");var v,y=0,b=1,C=2,S="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),x={};try{x=window||{}}catch(M){}var _,E=function(){function e(e,t){var n,r,o,i,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=u({injectionMode:"undefined"===typeof document?y:b,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null===t||void 0===t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(o=this._config.classNameCache)&&void 0!==o?o:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(a=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null===t||void 0===t?void 0:t.rules)&&void 0!==s?s:this._rules}return e.getInstance=function(){if(!(v=x.__stylesheet__)||v._lastStyleElement&&v._lastStyleElement.ownerDocument!==document){var t=(null===x||void 0===x?void 0:x.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);v=n,x.__stylesheet__=n}return v},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=u(u({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==y?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case b:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(SR){}break;case C:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),S||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=E.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"===typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=o.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"===typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function w(e){_!==e&&(_=e)}function I(){return void 0===_&&(_="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),_}function P(){return{rtl:I()}}_=I();var T,D={};function A(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=D[n]=D[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var R={"user-select":1};function N(e,t){var n=function(){var e;if(!T){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,r=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();T=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return T}(),r=e[t];if(R[r]){var o=e[t+1];R[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var M,F=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function B(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=F.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var O="left",L="right",H=((M={}).left=L,M.right=O,M),V={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function z(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(O)>=0)t[n]=r.replace(O,L);else if(r.indexOf(L)>=0)t[n]=r.replace(L,O);else if(String(o).indexOf(O)>=0)t[n+1]=o.replace(O,L);else if(String(o).indexOf(L)>=0)t[n+1]=o.replace(L,O);else if(H[r])t[n]=H[r];else if(V[o])t[n+1]=V[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function U(e){var t=e&&e["&"];return t?t.displayName:void 0}var W=/\:global\((.+?)\)/g;function G(e,t){return e.indexOf(":global(")>=0?e.replace(W,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function j(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?q([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!W.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return q([r],t,G(n,e))})):q([r],t,G(n,e))}function q(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=E.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"===typeof s){var l=r.argsFromClassName(s);l&&q(l,t,n)}else if(Array.isArray(s))q(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&j(n,t,p,d[p])}else"object"===typeof u?null!==u&&j(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?K(o,c,u):o[c]=u)}}return t}function K(e,t,n){var r="string"===typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function Y(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function X(e,t){return t<=0?"":1===t?e:e+X(e,t-1)}function Q(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&"displayName"!==r&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)A(n,o),B(n,o),z(e,n,o),N(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function Z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=q(t),o=Y(e,r);if(o){var i=E.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(U(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Q(e,r[u]))}a.rulesToInsert=s}return a}}function J(e,t){void 0===t&&(t=1);var n=E.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s],u=(c=c.replace(/&/g,X("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ee(e,P())}function ee(e,t){var n=k(e instanceof Array?e:[e]),r=n.classes,o=n.objects;return o.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Z.apply(void 0,h([e],t));return r?(J(r,e.specificityMultiplier),r.className):""}(t||{},o)),r.join(" ")}function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},o=0,i=e;o<i.length;o++){var a=i[o];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var l=a.subComponentStyles;for(var c in l)l.hasOwnProperty(c)&&(r.hasOwnProperty(c)?r[c].push(l[c]):r[c]=[l[c]]);continue}var u=n[s],d=a[s];n[s]=void 0===u?d:h(Array.isArray(u)?u:[u],Array.isArray(d)?d:[d])}}if(Object.keys(r).length>0){n.subComponentStyles={};var p=n.subComponentStyles,m=function(e){if(r.hasOwnProperty(e)){var t=r[e];p[e]=function(e){return te.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var c in r)m(c)}return n}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re(e,P())}function re(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=te.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=k(r[i]),s=a.classes,l=a.objects;if(null===l||void 0===l?void 0:l.length)(d=Z(t||{},{displayName:i},l))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var c=0,u=o;c<u.length;c++){var d;(d=u[c])&&J(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&r.push("function"===typeof a?a(e):a)}return 1===r.length?r[0]:r.length?te.apply(void 0,r):{}}function ie(e){var t=E.getInstance(),n=Q(P(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}function ae(e){var t=E.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Q(P(),e[r]),"}");var o=n.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+o+"}",!0),t.cacheClassName(a,o,[],["keyframes",o]),a}function se(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=$(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}g("@fluentui/merge-styles","8.2.0");var le=!1;var ce=void 0;try{ce=window}catch(SR){}function ue(e){if(!le&&"undefined"!==typeof ce){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:ce}}var de=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(SR){n._logError(SR)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=ue(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(SR){n._logError(SR)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=ue(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(SR){n._logError(SR)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var d=function t(n){var d=Date.now(),p=d-c,h=s?a-p:a;return p>=a&&(!n||s)?(c=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(t,h)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var m=function(e){h&&(r.clearTimeout(h),h=null),p=e},f=function(t){m(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(l&&n-d>=s&&(o=!0),d=n);var a=n-d,m=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:m=Math.min(m,u-g)),a>=s||v||o?f(n):null!==h&&t||!c||(h=r.setTimeout(e,m)),i},v=function(){return!!h},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return y.cancel=function(){v()&&m(Date.now())},y.flush=function(){return v()&&f(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=ue(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(SR){n._logError(SR)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=ue(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function pe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function he(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return me.apply(this,[null,e].concat(t))}function me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var fe,ge=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var i;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,o||!1,!0),he(a,r),i=t.dispatchEvent(a)}else if("undefined"!==typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],p=0;!1!==i&&p<d.length;p++){var h=d[p];h.objectCallback&&(i=h.objectCallback.call(h.parent,r))}t=o?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!==typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof r||r===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();function ve(e){if(!le&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var ye=0,be=$({overflow:"hidden !important"}),Ce="data-is-scrollable",Se=function(e,t){if(e){var n=0,r=null;t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=ke(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),r=e}},xe=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},_e=function(e){e.preventDefault()};function Ee(){if(void 0===fe){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),fe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return fe}function ke(e){for(var t=e,n=ve(e);t&&t!==n.body;){if("true"===t.getAttribute(Ce))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(Ce)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=ue(e)),t}function we(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}var Ie=100,Pe=function(){function e(e){this._events=new ge(this),this._scrollableParent=ke(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=we(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var r,o,i,a=this._scrollRect.top,s=this._scrollRect.left,l=a+this._scrollRect.height-Ie,c=s+this._scrollRect.width-Ie;n<a+Ie||n>l?(o=n,r=a,i=l,this._isVerticalScroll=!0):(o=t,r=s,i=c,this._isVerticalScroll=!1),this._scrollVelocity=o<r+Ie?Math.max(-15,(Ie-(o-r))/Ie*-15):o>i?Math.min(15,(o-i)/Ie*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}(),Te=void 0;function De(e){Te?Te(e):console&&console.warn&&console.warn(e)}function Ae(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||De(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function Re(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&De(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}function Ne(e,t,n){for(var r in n)if(t&&r in t){var o=e+" property '"+r+"' was used but has been deprecated.",i=n[r];i&&(o+=" Use '"+i+"' instead."),De(o)}}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)Me(e,t,n[r])}(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}c(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new de(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new ge(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){Ne(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){Re(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){Ae(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(o.Component);function Me(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function Fe(){return null}var Be=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),Oe=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()},Le=(function(){function e(){}e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=Oe();n();var o=Oe(),i=e.summary[t]||{totalDuration:0,count:0,all:[]},a=o-r;i.totalDuration+=a,i.count++,i.all.push({duration:a,timeStamp:o}),e.summary[t]=i},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout((function(){return e.reset()}),18e4)},e.summary={}}(),0),He=function(){function e(){}return e.getValue=function(e,t){var n=Ve();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=Ve(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=ze();t||(t=e.__id__=String(Le++)),n[t]=e},e.removeChangeListener=function(e){delete ze()[e.__id__]},e}();function Ve(){var e,t=ue()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function ze(){return Ve().__callbacks__}var Ue=8,We=9,Ge=13,je=16,qe=17,Ke=18,Ye=27,Xe=32,Qe=33,Ze=34,Je=35,$e=36,et=37,tt=38,nt=39,rt=40,ot=46,it=48,at=58,st=65,lt=67,ct=77,ut=80,dt=91,pt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function ht(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}function ft(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function gt(e,t){var n=ft(e,t);if(!(n<0))return e[n]}function vt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}"undefined"!==typeof WeakMap&&new WeakMap;function yt(e){var t=null;try{var n=ue();t=n?n.sessionStorage.getItem(e):null}catch(SR){}return t}function bt(e,t){var n;try{null===(n=ue())||void 0===n||n.sessionStorage.setItem(e,t)}catch(SR){}}var Ct,St="isRTL";function xt(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Ct){var t=yt(St);null!==t&&function(e,t){void 0===t&&(t=!1);var n=ve();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&bt(St,e?"1":"0");w(Ct=e)}(Ct="1"===t);var n=ve();void 0===Ct&&n&&w(Ct="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ct}function _t(e,t){return void 0===t&&(t={}),xt(t)&&(e===et?e=nt:e===nt&&(e=et)),e}function Et(e){return e&&!!e._virtual}function kt(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t;return e&&Et(e)&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function wt(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=kt(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function It(e,t){return e&&e!==document.body?t(e)?e:It(kt(e),t):null}var Pt="data-portal-element";function Tt(e,t){var n=It(e,(function(e){return t===e||e.hasAttribute(Pt)}));return null!==n&&n.hasAttribute(Pt)}function Dt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function At(e){var t=function(e){var t;"function"===typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0);return t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}g("@fluentui/dom-utilities","2.1.4");var Rt=0,Nt=E.getInstance();Nt&&Nt.onReset&&Nt.onReset((function(){return Rt++}));var Mt="__retval__";function Ft(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=Rt;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var l=t,c=a.theme,u=c&&void 0!==c.rtl?c.rtl:xt(),d=e.disableCaching;if(o!==Rt&&(o=Rt,t=new Map,n=0),e.disableCaching||(l=Ot(t,i),l=Ot(l,a)),!d&&l[Mt]||(l[Mt]=void 0===i?{}:re(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=ue();(null===(s=null===p||void 0===p?void 0:p.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return l[Mt]}}function Bt(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Ot(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=Bt(e,r[n])}else e=Bt(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=Bt(e,t[o]));return e}var Lt=!1,Ht=0,Vt={empty:!0},zt={},Ut="undefined"===typeof WeakMap?null:WeakMap;function Wt(){Ht++}function Gt(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Ut)return e;if(!Lt){var r=E.getInstance();r&&r.onReset&&E.getInstance().onReset(Wt),Lt=!0}var o,i=0,a=Ht;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==Ht||t>0&&i>t)&&(o=Kt(),i=0,a=Ht),l=o;for(var c=0;c<r.length;c++){var u=qt(r[c]);l.map.has(u)||l.map.set(u,Kt()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function jt(e){if(!Ut)return e;var t=new Ut;return function(n){if(!n||"function"!==typeof n&&"object"!==typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function qt(e){return e?"object"===typeof e||"function"===typeof e?e:(zt[e]||(zt[e]={val:e}),zt[e]):Vt}function Kt(){return{map:Ut?new Ut:null}}var Yt=jt((function(e){var t=e;return jt((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var r=n,i=jt((function(e){return function(t){return o.createElement(r,u({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,u({},e,{defaultRender:n?i(n):r}))}}))}));function Xt(e,t){return Yt(e)(t)}function Qt(e,t){return void 0!==e[t]&&null!==e[t]}function Zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"===typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"===typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}var Jt={settings:{},scopedSettings:{},inCustomizerContext:!1},$t=He.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),en=[],tn=function(){function e(){}return e.reset=function(){$t.settings={},$t.scopedSettings={}},e.applySettings=function(t){$t.settings=u(u({},$t.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){$t.scopedSettings[t]=u(u({},$t.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=Jt);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&$t.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||$t.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(M){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){en.push(e)},e.unobserve=function(e){en=en.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||en.forEach((function(e){return e()}))},e}(),nn=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function rn(e,t){void 0===e&&(e={});var n=an(t)?t:function(e){return function(t){return e?u(u({},t),e):t}}(t);return n(e)}function on(e,t){return void 0===e&&(e={}),(an(t)?t:function(e){void 0===e&&(e={});return function(t){var n=u({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=u(u({},t[r]),e[r]));return n}}(t))(e)}function an(e){return"function"===typeof e}var sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return c(t,e),t.prototype.componentDidMount=function(){tn.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){tn.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return o.createElement(nn.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:rn(r.settings,e.settings),scopedSettings:on(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),o.createElement(nn.Provider,{value:r},e.props.children)}))},t}(o.Component);function ln(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function cn(e,t,n){return function(r){var i,a=((i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return c(a,i),a.prototype.componentDidMount=function(){tn.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){tn.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return o.createElement(nn.Consumer,null,(function(a){var s=tn.getSettings(t,e,a.customizations),l=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles(u(u({},s),l))),n&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var c=te(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=c}return o.createElement(r,u({},s,l,{styles:i._styleCache.merged}))}return o.createElement(r,u({},s,l))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(o.Component)).displayName="Customized"+e,i);return ln(r,a)}}function un(e,t){var n=function(){var e=o.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=o.useContext(nn).customizations,i=r.inCustomizerContext;return o.useEffect((function(){return i||tn.observe(n),function(){i||tn.unobserve(n)}}),[i]),tn.getSettings(e,t,r)}function dn(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=ht(e,e[n],t[n]))}function pn(e,t,n){return gn(e,t,!0,!1,!1,n)}function hn(e,t,n){return fn(e,t,!0,!1,!0,n)}function mn(e){var t=gn(e,e,!0,!1,!1,!0);return!!t&&(_n(t),!0)}function fn(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=vn(t);if(o&&l&&(i||!bn(t)&&!Cn(t))){var c=fn(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&yn(c,!0)||!s)return c;var u=fn(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var p=fn(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&yn(t,s))return t;var h=fn(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:fn(e,t.parentElement,!0,!1,!1,i,a,s))}function gn(e,t,n,r,o,i,a,s){if(!t||t===e&&o&&!a)return null;var l=vn(t);if(n&&l&&yn(t,s))return t;if(!o&&l&&(i||!bn(t)&&!Cn(t))){var c=gn(e,t.firstElementChild,!0,!0,!1,i,a,s);if(c)return c}if(t===e)return null;var u=gn(e,t.nextElementSibling,!0,!0,!1,i,a,s);return u||(r?null:gn(e,t.parentElement,!1,!1,!0,i,a,s))}function vn(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!==t&&void 0!==t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function yn(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function bn(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Cn(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Sn(e,t){return"true"!==function(e,t){var n=It(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var xn=void 0;function _n(e){if(e){if(xn)return void(xn=e);xn=e;var t=ue(e);t&&t.requestAnimationFrame((function(){xn&&xn.focus(),xn=void 0}))}}var En=ue()||{};void 0===En.__currentId__&&(En.__currentId__=0);var kn=!1;function wn(e){if(!kn){var t=E.getInstance();t&&t.onReset&&t.onReset(In),kn=!0}return(void 0===e?"id__":e)+En.__currentId__++}function In(e){void 0===e&&(e=0),En.__currentId__=e}var Pn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},Tn=Pn(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Dn=Pn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),An=Pn(Dn,Tn),Rn=Pn(An,["form"]),Nn=Pn(An,["height","loop","muted","preload","src","width"]),Mn=Pn(Nn,["poster"]),Fn=Pn(An,["start"]),Bn=Pn(An,["value"]),On=Pn(An,["download","href","hrefLang","media","rel","target","type"]),Ln=Pn(An,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Hn=Pn(Ln,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Vn=Pn(Ln,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),zn=Pn(Ln,["form","multiple","required"]),Un=Pn(An,["selected","value"]),Wn=Pn(An,["cellPadding","cellSpacing"]),Gn=An,jn=Pn(An,["rowSpan","scope"]),qn=Pn(An,["colSpan","headers","rowSpan","scope"]),Kn=Pn(An,["span"]),Yn=Pn(An,["span"]),Xn=Pn(An,["acceptCharset","action","encType","encType","method","noValidate","target"]),Qn=Pn(An,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Zn=Pn(An,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Jn=An;function $n(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}var er={label:Rn,audio:Nn,video:Mn,ol:Fn,li:Bn,a:On,button:Ln,input:Hn,textarea:Vn,select:zn,option:Un,table:Wn,tr:Gn,th:jn,td:qn,colGroup:Kn,col:Yn,form:Xn,iframe:Qn,img:Zn};function tr(e,t,n){return $n(t,e&&er[e]||An,n)}var nr,rr=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function or(e){dn(e,{componentDidMount:ir,componentDidUpdate:ar,componentWillUnmount:sr})}function ir(){lr(this.props.componentRef,this)}function ar(e){e.componentRef!==this.props.componentRef&&(lr(e.componentRef,null),lr(this.props.componentRef,this))}function sr(){lr(this.props.componentRef,null)}function lr(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var cr=((nr={})[tt]=1,nr[rt]=1,nr[et]=1,nr[nt]=1,nr[$e]=1,nr[Je]=1,nr[We]=1,nr[Qe]=1,nr[Ze]=1,nr);function ur(e){return!!cr[e]}var dr="ms-Fabric--isFocusVisible",pr="ms-Fabric--isFocusHidden";function hr(e,t){var n=t?ue(t):ue();if(n){var r=n.document.body.classList;r.add(e?dr:pr),r.remove(e?pr:dr)}}var mr=new WeakMap;function fr(e,t){var n,r=mr.get(e);return n=r?r+t:1,mr.set(e,n),n}function gr(e){o.useEffect((function(){var t,n=ue(null===e||void 0===e?void 0:e.current);if(n&&!0!==(null===(t=n.FabricConfig)||void 0===t?void 0:t.disableFocusRects)){var r=fr(n,1);return r<=1&&(n.addEventListener("mousedown",yr,!0),n.addEventListener("pointerdown",br,!0),n.addEventListener("keydown",Cr,!0)),function(){var e;n&&!0!==(null===(e=n.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=fr(n,-1))&&(n.removeEventListener("mousedown",yr,!0),n.removeEventListener("pointerdown",br,!0),n.removeEventListener("keydown",Cr,!0))}}}),[e])}var vr=function(e){return gr(e.rootRef),null};function yr(e){hr(!1,e.target)}function br(e){"mouse"!==e.pointerType&&hr(!1,e.target)}function Cr(e){ur(e.which)&&hr(!0,e.target)}var Sr,xr=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,_r=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Er=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,kr=/\s+/g,wr=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Ir(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(xr,"")).replace(_r,"")).replace(kr," ")).trim()}(e),wr.test(e)||!n&&Er.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}var Pr="language";function Tr(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}function Dr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];Ar(e||{},i)}return e}function Ar(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!==typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:Ar(e[r]||{},o,n)}}return n.pop(),e}var Rr,Nr=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function Mr(e){var t;if("undefined"===typeof Rr||e){var n=ue(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;Rr=!!r&&-1!==r.indexOf("Macintosh")}return!!Rr}var Fr=jt((function(e){return jt((function(t){var n=jt((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function Br(e,t){return Fr(e)(t)}var Or,Lr,Hr="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(Or||(Or={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Lr||(Lr={}));var Vr=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.getKey,i=n.canSelectItem,a=void 0===i?function(){return!0}:i,s=n.items,l=n.selectionMode,c=void 0===l?Or.multiple:l;this.mode=c,this._getKey=o||zr,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._canSelectItem=a,this._isModal=!1,this.setItems(s||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"===typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"===typeof n||n?""+n:""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=0;i<e.length;i++){if(u=e[i]){var a=this.getKey(u,i);a&&(n[a]=i)}r[i]=u&&!this.canSelectItem(u),r[i]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var u,d=Number(c),p=(u=this._items[d])?this.getKey(u,Number(d)):void 0,h=p?n[p]:d;void 0===h?o=!0:(s[h]=!0,l++,o=o||h!==d)}this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&(this._updateCount(),this._change()),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===Or.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===Or.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==Or.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var r=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===Or.single&&this._setAllSelected(!1,!0),r&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!r&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToIndex=function(e,t){if(this.mode!==Or.none)if(this.mode!==Or.single){var n=this._anchoredIndex||0,r=Math.min(e,n),o=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=o;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==Or.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===Or.single&&t>1)){this.setChangeEvents(!1);for(var o=e;o<r;o++)this.setIndexSelected(o,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===Or.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,ge.raise(this,Hr),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function zr(e,t){var n=(e||{}).key;return void 0===n?""+t:n}var Ur=/[\{\}]/g,Wr=/\{\d+\}/g;function Gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t;function o(e){var t=r[e.replace(Ur,"")];return null!==t&&void 0!==t||(t=""),t}return e.replace(Wr,o)}var jr,qr=["theme","styles"];function Kr(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,l=void 0===s?qr:s,c=o.forwardRef((function(r,i){var s=o.useRef(),c=un(l,a),p=c.styles,h=(c.dir,d(c,["styles","dir"])),m=n?n(r):void 0,f=s.current&&s.current.__cachedInputs__||[];if(!s.current||p!==f[1]||r.styles!==f[2]){var g=function(e){return oe(e,t,p,r.styles)};g.__cachedInputs__=[t,p,r.styles],g.__noStyleOverride__=!p&&!r.styles,s.current=g}return o.createElement(e,u({ref:i},h,m,r,{styles:s.current}))}));c.displayName="Styled"+(e.displayName||e.name);var p=i?o.memo(c):c;return c.displayName&&(p.displayName=c.displayName),p}function Yr(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?Qt(i,l):void 0,u=Qt(o,l);if(u){var d=!!o[a],p=!(!s||!o[s]);d||p||jr.valueOnChange[t]||(jr.valueOnChange[t]=!0,De("Warning: You provided a '"+l+"' prop to a "+n+" without an '"+a+"' handler. This will render a read-only field. If the field should be mutable use '"+r+"'. Otherwise, set '"+a+"'"+(s?" or '"+s+"'":"")+"."));var h=o[r];void 0===h||null===h||jr.valueDefaultValue[t]||(jr.valueDefaultValue[t]=!0,De("Warning: You provided both '"+l+"' and '"+r+"' to a "+n+". Form fields must be either controlled or uncontrolled (specify either the '"+l+"' prop, or the '"+r+"' prop, but not both). Decide between using a controlled or uncontrolled "+n+" and remove one of these props. More info: https://fb.me/react-controlled-components"))}if(i&&u!==c){var m=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?jr.controlledToUncontrolled:jr.uncontrolledToControlled;g[t]||(g[t]=!0,De("Warning: A component is changing "+m+" "+n+" to be "+f+". "+n+"s should not switch from controlled to uncontrolled (or vice versa). Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}jr={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Xr=function(){var e,t=ue();return!!(null===(e=null===t||void 0===t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1};function Qr(e,t){for(var n=u({},t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];void 0===n[i]&&(n[i]=e[i])}return n}var Zr=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"===typeof o?o(t):o&&(o.current=t)}}},Jr=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&vt(t.refs,e)||(t.resolver=Zr(t)),t.refs=e,t.resolver}};g("@fluentui/utilities","8.3.4");var $r=He.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),eo=E.getInstance();eo&&eo.onReset&&eo.onReset((function(){for(var e in $r)$r.hasOwnProperty(e)&&$r[e].subset&&($r[e].subset.className=void 0)}));var to=function(e){return e.toLowerCase()};function no(e,t){var n=u(u({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?u(u({},$r.__options),t):$r.__options,r)if(r.hasOwnProperty(o)){var i=r[o],a=to(o);$r[a]?so(o):$r[a]={code:i,subset:n}}}function ro(e,t){$r.__remapped[to(e)]=to(t)}function oo(e){var t=void 0,n=$r.__options;if(e=e?to(e):"",e=$r.__remapped[e]||e)if(t=$r[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(ie(r.fontFace),r.isRegistered=!0),r.className||(r.className=$(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&De('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}var io=[],ao=void 0;function so(e){var t=$r.__options;t.disableWarnings||(io.push(e),void 0===ao&&(ao=setTimeout((function(){De("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+io.slice(0,10).join(", ")+(io.length>10?" (+ "+(io.length-10)+" more)":"")),ao=void 0,io=[]}),2e3)))}var lo="cubic-bezier(.1,.9,.2,1)",co="cubic-bezier(.1,.25,.75,.9)",uo="0.167s",po="0.267s",ho="0.367s",mo="0.467s",fo=ae({from:{opacity:0},to:{opacity:1}}),go=ae({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),vo=ti(-10),yo=ti(-20),bo=ti(-40),Co=ti(-400),So=ti(10),xo=ti(20),_o=ti(40),Eo=ti(400),ko=ni(10),wo=ni(20),Io=ni(-10),Po=ni(-20),To=ri(10),Do=ri(20),Ao=ri(40),Ro=ri(400),No=ri(-10),Mo=ri(-20),Fo=ri(-40),Bo=ri(-400),Oo=oi(-10),Lo=oi(-20),Ho=oi(10),Vo=oi(20),zo=ae({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Uo=ae({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),Wo=ae({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Go=ae({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),jo=ae({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),qo=ae({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Ko=lo,Yo=co,Xo=uo,Qo=po,Zo=ho,Jo=mo,$o={slideRightIn10:ei(fo+","+vo,ho,lo),slideRightIn20:ei(fo+","+yo,ho,lo),slideRightIn40:ei(fo+","+bo,ho,lo),slideRightIn400:ei(fo+","+Co,ho,lo),slideLeftIn10:ei(fo+","+So,ho,lo),slideLeftIn20:ei(fo+","+xo,ho,lo),slideLeftIn40:ei(fo+","+_o,ho,lo),slideLeftIn400:ei(fo+","+Eo,ho,lo),slideUpIn10:ei(fo+","+ko,ho,lo),slideUpIn20:ei(fo+","+wo,ho,lo),slideDownIn10:ei(fo+","+Io,ho,lo),slideDownIn20:ei(fo+","+Po,ho,lo),slideRightOut10:ei(go+","+To,ho,lo),slideRightOut20:ei(go+","+Do,ho,lo),slideRightOut40:ei(go+","+Ao,ho,lo),slideRightOut400:ei(go+","+Ro,ho,lo),slideLeftOut10:ei(go+","+No,ho,lo),slideLeftOut20:ei(go+","+Mo,ho,lo),slideLeftOut40:ei(go+","+Fo,ho,lo),slideLeftOut400:ei(go+","+Bo,ho,lo),slideUpOut10:ei(go+","+Oo,ho,lo),slideUpOut20:ei(go+","+Lo,ho,lo),slideDownOut10:ei(go+","+Ho,ho,lo),slideDownOut20:ei(go+","+Vo,ho,lo),scaleUpIn100:ei(fo+","+zo,ho,lo),scaleDownIn100:ei(fo+","+Wo,ho,lo),scaleUpOut103:ei(go+","+Go,uo,co),scaleDownOut98:ei(go+","+Uo,uo,co),fadeIn100:ei(fo,uo,co),fadeIn200:ei(fo,po,co),fadeIn400:ei(fo,ho,co),fadeIn500:ei(fo,mo,co),fadeOut100:ei(go,uo,co),fadeOut200:ei(go,po,co),fadeOut400:ei(go,ho,co),fadeOut500:ei(go,mo,co),rotate90deg:ei(jo,"0.1s",co),rotateN90deg:ei(qo,"0.1s",co)};function ei(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function ti(e){return ae({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ni(e){return ae({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ri(e){return ae({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function oi(e){return ae({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var ii,ai={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(ii||(ii={}));var si,li,ci,ui,di,pi={elevation4:ii.depth4,elevation8:ii.depth8,elevation16:ii.depth16,elevation64:ii.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(si||(si={})),function(e){e.Arabic="'"+si.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+si.Cyrillic+"'",e.EastEuropean="'"+si.EastEuropean+"'",e.Greek="'"+si.Greek+"'",e.Hebrew="'"+si.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+si.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+si.Vietnamese+"'",e.WestEuropean="'"+si.WestEuropean+"'",e.Armenian="'"+si.Armenian+"'",e.Georgian="'"+si.Georgian+"'"}(li||(li={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(ci||(ci={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(ui||(ui={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(di||(di={}));var hi="'Segoe UI', '"+si.WestEuropean+"'",mi={ar:li.Arabic,bg:li.Cyrillic,cs:li.EastEuropean,el:li.Greek,et:li.EastEuropean,he:li.Hebrew,hi:li.Hindi,hr:li.EastEuropean,hu:li.EastEuropean,ja:li.Japanese,kk:li.EastEuropean,ko:li.Korean,lt:li.EastEuropean,lv:li.EastEuropean,pl:li.EastEuropean,ru:li.Cyrillic,sk:li.EastEuropean,"sr-latn":li.EastEuropean,th:li.Thai,tr:li.EastEuropean,uk:li.Cyrillic,vi:li.Vietnamese,"zh-hans":li.ChineseSimplified,"zh-hant":li.ChineseTraditional,hy:li.Armenian,ka:li.Georgian};function fi(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var gi=function(e){var t=function(e){for(var t in mi)if(mi.hasOwnProperty(t)&&e&&0===t.indexOf(e))return mi[t];return hi}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:fi(ci.mini,ui.regular,t),xSmall:fi(ci.xSmall,ui.regular,t),small:fi(ci.small,ui.regular,t),smallPlus:fi(ci.smallPlus,ui.regular,t),medium:fi(ci.medium,ui.regular,t),mediumPlus:fi(ci.mediumPlus,ui.regular,t),large:fi(ci.large,ui.regular,t),xLarge:fi(ci.xLarge,ui.semibold,t),xLargePlus:fi(ci.xLargePlus,ui.semibold,t),xxLarge:fi(ci.xxLarge,ui.semibold,t),xxLargePlus:fi(ci.xxLargePlus,ui.semibold,t),superLarge:fi(ci.superLarge,ui.semibold,t),mega:fi(ci.mega,ui.semibold,t)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===Sr){var t=ve(),n="localStorage"===e?function(e){var t=null;try{var n=ue();t=n?n.localStorage.getItem(e):null}catch(SR){}return t}(Pr):"sessionStorage"===e?yt(Pr):void 0;n&&(Sr=n),void 0===Sr&&t&&(Sr=t.documentElement.getAttribute("lang")),void 0===Sr&&(Sr="en")}return Sr}());function vi(e,t,n,r){ie({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function yi(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;vi(t,i+"-light",ui.light,o&&o+" Light"),vi(t,i+"-semilight",ui.semilight,o&&o+" SemiLight"),vi(t,i+"-regular",ui.regular,o),vi(t,i+"-semibold",ui.semibold,o&&o+" SemiBold"),vi(t,i+"-bold",ui.bold,o&&o+" Bold")}!function(e){if(e){var t=e+"/fonts";yi(t,si.Thai,"leelawadeeui-thai","leelawadeeui"),yi(t,si.Arabic,"segoeui-arabic"),yi(t,si.Cyrillic,"segoeui-cyrillic"),yi(t,si.EastEuropean,"segoeui-easteuropean"),yi(t,si.Greek,"segoeui-greek"),yi(t,si.Hebrew,"segoeui-hebrew"),yi(t,si.Vietnamese,"segoeui-vietnamese"),yi(t,si.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),yi(t,li.Selawik,"selawik","selawik"),yi(t,si.Armenian,"segoeui-armenian"),yi(t,si.Georgian,"segoeui-georgian"),vi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",ui.light),vi("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",ui.semibold)}}(function(){var e,t,n=null===(e=ue())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://static2.sharepointonline.com/files/fabric/assets"}());var bi,Ci="@media screen and (-ms-high-contrast: active), (forced-colors: active)",Si=480,xi=479;function _i(e,t){return"@media only screen"+("number"===typeof e?" and (min-width: "+e+"px)":"")+("number"===typeof t?" and (max-width: "+t+"px)":"")}function Ei(e,t,n,r,o,i,a){return ki(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a})}function ki(e,t){var n,r;void 0===t&&(t={});var o=t.inset,i=void 0===o?0:o,a=t.width,s=void 0===a?1:a,l=t.position,c=void 0===l?"relative":l,u=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,h=t.outlineColor,m=void 0===h?e.palette.neutralSecondary:h,f=t.isFocusedOnly;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===f||f?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+p,outline:s+"px solid "+m,zIndex:bi.FocusStyle,selectors:(r={},r[Ci]=u,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(bi||(bi={}));var wi=function(e,t,n,r){var o,i,a;void 0===n&&(n="border"),void 0===r&&(r=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:r,top:r,bottom:r,right:s?0:r},o[n]="2px solid "+e,o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(i={},i[Ci]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},Ii={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"};function Pi(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function Ti(e){return{opacity:1,borderWidth:e}}function Di(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function Ai(e,t){return u(u({},Pi(e,t)),{opacity:0})}var Ri={continuousPulseAnimationDouble:function(e,t,n,r,o){return ae({"0%":Pi(e,n),"1.42%":Ti(o),"3.57%":{opacity:1},"7.14%":Di(t,r),"8%":Ai(e,n),"29.99%":Ai(e,n),"30%":Pi(e,n),"31.42%":Ti(o),"33.57%":{opacity:1},"37.14%":Di(t,r),"38%":Ai(e,n),"79.42%":Ai(e,n),79.43:Pi(e,n),81.85:Ti(o),83.42:{opacity:1},"87%":Di(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return ae({"0%":Pi(e,n),"14.2%":Ti(o),"35.7%":{opacity:1},"71.4%":Di(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},Ni=Gt((function(e,t){var n=E.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Mi(e,t,n){return Ni(e,void 0!==n?n:t.disableGlobalClassNames)}var Fi,Bi,Oi,Li=function(){return Li=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Li.apply(this,arguments)},Hi="undefined"===typeof window?n.g:window,Vi=Hi&&Hi.CSPSettings&&Hi.CSPSettings.nonce,zi=function(){var e=Hi.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=Li(Li({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=Li(Li({},e),{registeredThemableStyles:[]}));return Hi.__themeState__=e,e}(),Ui=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,Wi=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()};function Gi(e){var t=Wi();e();var n=Wi();zi.perf.duration+=n-t}function ji(e,t){void 0===t&&(t=!1),Gi((function(){var n=Array.isArray(e)?e:Yi(e),r=zi.runState,o=r.mode,i=r.buffer,a=r.flushTimer;t||1===o?(i.push(n),a||(zi.runState.flushTimer=setTimeout((function(){zi.runState.flushTimer=0,Gi((function(){var e=zi.runState.buffer.slice();zi.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&qi(t)}))}),0))):qi(n)}))}function qi(e,t){zi.loadStyles?zi.loadStyles(Ki(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=Ki(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),Vi&&n.setAttribute("nonce",Vi);n.appendChild(document.createTextNode(o)),zi.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};i?zi.registeredThemableStyles.push(s):zi.registeredStyles.push(s)}(e)}function Ki(e){var t=zi.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!==typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}function Yi(e){var t=[];if(e){for(var n=0,r=void 0;r=Ui.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=Ui.lastIndex}t.push({rawString:e.substring(n)})}return t}function Xi(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(Qi(e,t,u({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function Qi(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},s=a.white,l=a.black,c=a.themePrimary,d=a.themeDark,p=a.themeDarker,h=a.themeDarkAlt,m=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,v=a.neutralDark,y=a.neutralQuaternary,b=a.neutralQuaternaryAlt,C=a.neutralPrimary,S=a.neutralSecondary,x=a.neutralSecondaryAlt,_=a.neutralTertiary,E=a.neutralTertiaryAlt,k=a.neutralLighterAlt,w=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),p&&(i.linkHovered=p),h&&(i.primaryButtonBackgroundHovered=h),m&&(i.inputPlaceholderBackgroundChecked=m),f&&(i.bodyBackgroundChecked=f,i.bodyFrameDivider=f,i.bodyDivider=f,i.variantBorder=f,i.buttonBackgroundCheckedHovered=f,i.buttonBackgroundPressed=f,i.listItemBackgroundChecked=f,i.listHeaderBackgroundPressed=f,i.menuItemBackgroundPressed=f,i.menuItemBackgroundChecked=f),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),y&&(i.primaryButtonTextDisabled=y,i.disabledSubtext=y),b&&(i.listItemBackgroundCheckedHovered=b),_&&(i.disabledBodyText=_,i.variantBorderHovered=(null===n||void 0===n?void 0:n.variantBorderHovered)||_,i.buttonTextDisabled=_,i.inputIconDisabled=_,i.disabledText=_),C&&(i.bodyText=C,i.actionLink=C,i.buttonText=C,i.inputBorderHovered=C,i.inputText=C,i.listText=C,i.menuItemText=C),k&&(i.bodyStandoutBackground=k,i.defaultStateBackground=k),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),S&&(i.bodySubtext=S,i.focusBorder=S,i.inputBorder=S,i.smallInputBorder=S,i.inputPlaceholderText=S),x&&(i.buttonBorder=x),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),w&&(i.accentButtonBackground=w),(null===t||void 0===t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null===t||void 0===t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=u(u({},i),n)}function Zi(e,t){var n,r,o;void 0===t&&(t={});var i=Dr({},e,t,{semanticColors:Qi(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=Dr(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(Fi||(Fi={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(Bi||(Bi={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(Oi||(Oi={}));var Ji={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function $i(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return Zi({palette:ai,effects:pi,fonts:gi,spacing:Ji,isInverted:n,disableGlobalClassNames:!1,semanticColors:Xi(ai,pi,void 0,n,t),rtl:void 0},e)}var ea=$i({}),ta="theme";function na(){var e,t;if(!tn.getSettings([ta]).theme){var n=ue();(null===(t=null===n||void 0===n?void 0:n.FabricConfig)||void 0===t?void 0:t.theme)&&(ea=$i(n.FabricConfig.theme)),tn.applySettings(((e={}).theme=ea,e))}}function ra(e){return void 0===e&&(e=!1),!0===e&&(ea=$i({},e)),ea}na();var oa={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},ia={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function aa(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var sa=se($o),la=(se(gi),{});for(var ca in ai)ai.hasOwnProperty(ca)&&(ua(la,ca,"",!1,"color"),ua(la,ca,"Hover",!0,"color"),ua(la,ca,"Background",!1,"background"),ua(la,ca,"BackgroundHover",!0,"background"),ua(la,ca,"Border",!1,"borderColor"),ua(la,ca,"BorderHover",!0,"borderColor"));function ua(e,t,n,r,o){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[o]=ra().palette[t],e);return $(r?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}g("@fluentui/style-utilities","8.3.4"),na();var da,pa,ha,ma=Gt((function(e,t,n,r){return{root:$("ms-ActivityItem",t,e.root,r&&e.isCompactRoot),pulsingBeacon:$("ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:$("ms-ActivityItem-personaContainer",e.personaContainer,r&&e.isCompactPersonaContainer),activityPersona:$("ms-ActivityItem-activityPersona",e.activityPersona,r&&e.isCompactPersona,!r&&n&&2===n.length&&e.doublePersona),activityTypeIcon:$("ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,r&&e.isCompactIcon),activityContent:$("ms-ActivityItem-activityContent",e.activityContent,r&&e.isCompactContent),activityText:$("ms-ActivityItem-activityText",e.activityText),commentText:$("ms-ActivityItem-commentText",e.commentText),timeStamp:$("ms-ActivityItem-timeStamp",e.timeStamp,r&&e.isCompactTimeStamp)}})),fa="32px",ga="16px",va="16px",ya="13px",ba=Gt((function(){return ae({from:{opacity:0},to:{opacity:1}})})),Ca=Gt((function(){return ae({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})})),Sa=Gt((function(e,t,n,r,o,i){var a;void 0===e&&(e=ra());var s={animationName:Ri.continuousPulseAnimationSingle(r||e.palette.themePrimary,o||e.palette.themeTertiary,"4px","28px","4px"),animationIterationCount:"1",animationDuration:".8s",zIndex:1},l={animationName:Ca(),animationIterationCount:"1",animationDuration:".5s"},c={animationName:ba(),animationIterationCount:"1",animationDuration:".5s"};return te({root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},i&&n&&c],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},i&&n&&s],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:fa,width:fa,height:fa},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:ga,width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:fa,fontSize:va,lineHeight:va,marginTop:"3px"},isCompactIcon:{height:ga,minWidth:ga,fontSize:ya,lineHeight:ya,color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:(a={},a[Ci]={border:"none",margin:"0"},a)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},i&&n&&l],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}},t)})),xa=0,_a=1,Ea=2,ka=3,wa=4,Ia=5,Pa=6,Ta=7,Da=8,Aa=9,Ra=10,Na=11,Ma=12,Fa=13;function Ba(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(da||(da={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(pa||(pa={}));var Oa=((ha={})[xa]=Ba(da.top,da.left),ha[_a]=Ba(da.top),ha[Ea]=Ba(da.top,da.right),ha[ka]=Ba(da.top,void 0,!0),ha[wa]=Ba(da.bottom,da.left),ha[Ia]=Ba(da.bottom),ha[Pa]=Ba(da.bottom,da.right),ha[Ta]=Ba(da.bottom,void 0,!0),ha[Da]=Ba(da.left,da.top),ha[Aa]=Ba(da.left),ha[Ra]=Ba(da.left,da.bottom),ha[Na]=Ba(da.right,da.top),ha[Ma]=Ba(da.right),ha[Fa]=Ba(da.right,da.bottom),ha);function La(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function Ha(e,t){var n=[];return e.top<t.top&&n.push(da.top),e.bottom>t.bottom&&n.push(da.bottom),e.left<t.left&&n.push(da.left),e.right>t.right&&n.push(da.right),n}function Va(e,t){return e[da[t]]}function za(e,t,n){return e[da[t]]=n,e}function Ua(e,t){var n=es(t);return(Va(e,n.positiveEdge)+Va(e,n.negativeEdge))/2}function Wa(e,t){return e>0?t:-1*t}function Ga(e,t){return Wa(e,Va(t,e))}function ja(e,t,n){return Wa(n,Va(e,n)-Va(t,n))}function qa(e,t,n,r){void 0===r&&(r=!0);var o=Va(e,t)-n,i=za(e,t,n);return r&&(i=za(e,-1*t,Va(e,-1*t)-o)),i}function Ka(e,t,n,r){return void 0===r&&(r=0),qa(e,n,Va(t,n)+Wa(n,r))}function Ya(e,t,n){return Ga(n,e)>Ga(n,t)}function Xa(e,t){for(var n=0,r=0,o=Ha(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(ja(e,t,i),2)}return n}function Qa(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,n,r,o){void 0===o&&(o=0);var i=[da.left,da.right,da.bottom,da.top];xt()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,p=0;p<4;p++){if(Ya(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var h=Xa(s,n);(!a||h<a)&&(a=h,u=l,d=c),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(c=l,l=i.slice(-1)[0]),s=$a(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=$a(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=Ha(c.elementRectangle,n);if(u.length>0)if(l){if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var d=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:$a(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(c,t,o,a);if(La(d.elementRectangle,n))return d;c=Za(Ha(d.elementRectangle,n),c,n)}}else c=Za(u,c,n);return c}function Za(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r],a=Ka(t.elementRectangle,n,i);Ya(a,n,-1*i)||(a=qa(a,-1*i,Va(n,-1*i),!1),t.forcedInBounds=!0),t.elementRectangle=a}return t}function Ja(e,t,n){var r=es(t).positiveEdge;return qa(e,r,n-(Ua(e,t)-Va(e,r)))}function $a(e,t,n,r,o){void 0===r&&(r=0);var i=new pt(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?Ka(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=Wa(-1*n,r);return qa(e,-1*n,Va(t,n)+o)}(i,t,s,r),a)?i=Ka(i,t,a):i=Ja(i,l,Ua(t,s));return i}function es(e){return e===da.top||e===da.bottom?{positiveEdge:da.left,negativeEdge:da.right}:{positiveEdge:da.top,negativeEdge:da.bottom}}function ts(e,t,n){return n&&Math.abs(ja(e,n,t))>Math.abs(ja(e,n,-1*t))?-1*t:t}function ns(e){return Math.sqrt(e*e*2)}function rs(e,t,n){if(void 0===e&&(e=Ta),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=u({},Oa[e]);return xt()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Oa[t]:r):r}function os(e,t,n){var r=Ua(t,e),o=Ua(n,e),i=es(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function is(e,t,n,r,o,i,a){var s=$a(e,t,r,o,a);return La(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Qa(s,t,n,r,o,i,a)}function as(e,t,n){var r=-1*e.targetEdge,o=new pt(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=ts(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:es(r).positiveEdge,n),s=ja(e.elementRectangle,e.targetRectangle,r)>Math.abs(Va(t,r));return i[da[r]]=Va(t,r),i[da[a]]=ja(t,o,a),{elementPosition:u({},i),closestEdge:os(e.targetEdge,t,o),targetEdge:r,hideBeak:!s}}function ss(e,t){var n=t.targetRectangle,r=es(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=Ua(n,t.targetEdge),s=new pt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new pt(0,e,0,e);return Ya(l=Ja(l=qa(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Ga(o,t.elementRectangle)),s,o)?Ya(l,s,i)||(l=Ka(l,s,i)):l=Ka(l,s,o),l}function ls(e){var t=e.getBoundingClientRect();return new pt(t.left,t.right,t.top,t.bottom)}function cs(e){return new pt(e.left,e.right,e.top,e.bottom)}function us(e,t,n,r,o){var i=0,a=Oa[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===da.top?Va(e,a.targetEdge)-r.top-n:s===da.bottom?r.bottom-Va(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function ds(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new pt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ls(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new pt(i,s,a,l)}if(!La(n,e))for(var c=0,u=Ha(n,e);c<u.length;c++){var d=u[c];n[da[d]]=e[da[d]]}}else n=new pt(0,0,0,0);return n}(n,e.target),a=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=os(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(rs(e.directionalHint,e.directionalHintForRTL,r),i,n,e.coverTarget,e.alignTargetEdge),s=is(ls(t),i,n,a,o,e.directionalHintFixed,e.coverTarget);return u(u({},s),{targetRectangle:i})}function ps(e,t,n,r,o){var i=function(e,t,n,r,o,i,a,s){var l={},c=ls(t),u=i?n:-1*n,d=o||es(n).positiveEdge;return a||(d=ts(e,d,r)),l[da[u]]=ja(e,c,u),l[da[d]]=ja(e,c,d),s&&(l[da[-1*u]]=ja(e,c,-1*u),l[da[-1*d]]=ja(e,c,-1*d)),l}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds);return{elementPosition:i,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function hs(e,t,n,r,o){var i=e.isBeakVisible&&e.beakWidth||0,a=ns(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var l=e.bounds?cs(e.bounds):new pt(0,window.innerWidth-Ee(),0,window.innerHeight),c=ds(s,n,l,r),d=as(c,ss(i,c),l);return u(u({},ps(c,t,l,e.coverTarget,o)),{beakPosition:d})}function ms(e,t,n,r){return function(e,t,n,r){var o=e.bounds?cs(e.bounds):new pt(0,window.innerWidth-Ee(),0,window.innerHeight);return ps(ds(e,n,o,r),t,o,e.coverTarget)}(e,t,n,r)}function fs(e,t,n,r){return function(e,t,n,r){return hs(e,t,n,r,!0)}(e,t,n,r)}function gs(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function vs(){var e=gs((function(){return new de}));return o.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function ys(e){var t=o.useState(e),n=t[0],r=t[1];return[n,{setTrue:gs((function(){return function(){r(!0)}})),setFalse:gs((function(){return function(){r(!1)}})),toggle:gs((function(){return function(){r((function(e){return!e}))}}))}]}function bs(e,t,n){var r=o.useState(t),i=r[0],a=r[1],s=gs(void 0!==e),l=s?e:i,c=o.useRef(l),u=o.useRef(n);o.useEffect((function(){c.current=l,u.current=n}));var d=gs((function(){return function(e,t){var n="function"===typeof e?e(c.current):e;u.current&&u.current(t,n),s||a(n)}}));return[l,d]}function Cs(e,t){var n=o.useRef(t);return n.current||(n.current=wn(e)),n.current}function Ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var i=o[r];"function"===typeof i?i(t):i&&(i.current=t)}}),h(e));return n}g("@fluentui/react-hooks","8.3.4");function xs(e,t,n,r){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return Dt(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function _s(e){var t=o.useRef();return o.useEffect((function(){t.current=e})),t.current}function Es(e,t){void 0===t&&(t=null);var n=o.useRef({ref:function(){var e=function(e){n.ref.current!==e&&(n.cleanup&&(n.cleanup(),n.cleanup=void 0),n.ref.current=e,null!==e&&(n.cleanup=n.callback(e)))};return e.current=t,e}(),callback:e}).current;return n.callback=e,n.ref}var ks=function(){var e=gs({});return o.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),gs({setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n){var r=setTimeout(t,n);return e[r]=1,r})),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){delete e[t],clearTimeout(t)}))})},ws=o.createContext({window:"object"===typeof window?window:void 0}),Is=function(){return o.useContext(ws).window},Ps=function(){var e;return null===(e=o.useContext(ws).window)||void 0===e?void 0:e.document};function Ts(e,t){var n=o.useRef(),r=o.useRef(null),i=Is();if(!e||e!==n.current||"string"===typeof e){var a=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var s=ve(a);r.current=s?s.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}g("@fluentui/react-window-provider","2.1.4");var Ds=0;function As(e){var t=e.name,n=e.props,r=e.other,i=void 0===r?[]:r,a=e.conditionallyRequired,s=e.deprecations,l=e.mutuallyExclusive,c=e.controlledUsage,d=o.useRef(!1),p=gs((function(){return"useWarnings_"+Ds++})),h=_s(n);if(!d.current){d.current=!0;for(var m=0,f=i;m<f.length;m++){De(f[m])}if(a)for(var g=0,v=a;g<v.length;g++){var y=v[g];Ae(t,n,y.requiredProps,y.conditionalPropName,y.condition)}s&&Ne(t,n,s),l&&Re(t,n,l)}c&&Yr(u(u({},c),{componentId:p,props:n,componentName:t,oldProps:h}))}function Rs(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==ue()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function Ns(e,t){var n=e.onRestoreFocus,r=void 0===n?Rs:n,i=o.useRef(),a=o.useRef(!1);o.useEffect((function(){return i.current=ve().activeElement,function(e){var t=ve(e),n=t&&t.activeElement;return!(!n||!wt(e,n))}(t.current)&&(a.current=!0),function(){var e;null===r||void 0===r||r({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=ve())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),xs(t,"focus",o.useCallback((function(){a.current=!0}),[]),!0),xs(t,"blur",o.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}var Ms,Fs=o.forwardRef((function(e,t){e=u({shouldRestoreFocus:!0},e);var n=o.useRef(),r=Ss(n,t);!function(e){var t=e["aria-modal"];o.useEffect((function(){var e=ve();if(t&&e){for(var n=e.body.children,r=[],o=0;o<n.length-1;o++)r.push(n[o]);return(r=r.filter((function(e){return"TEMPLATE"!==e.tagName&&"SCRIPT"!==e.tagName&&"STYLE"!==e.tagName&&!e.hasAttribute("aria-hidden")}))).forEach((function(e){return e.setAttribute("aria-hidden","true")})),function(){return r.forEach((function(e){return e.removeAttribute("aria-hidden")}))}}}),[t])}(e),Ns(e,n);var i=e.role,a=e.className,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,d=e.style,p=e.children,h=e.onDismiss,m=function(e,t){var n=vs(),r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var o=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;o>0&&s>o&&(r=s-o>1)}i!==r&&a(r)}})),function(){return n.dispose()}})),i}(e,n),f=o.useCallback((function(e){if(e.which===Ye)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return xs(Is(),"keydown",f),o.createElement("div",u({ref:r},$n(e,Jn),{className:a,role:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,onKeyDown:f,style:u({overflowY:m?"scroll":void 0,outline:"none"},d)}),p)})),Bs=((Ms={})[da.top]=sa.slideUpIn10,Ms[da.bottom]=sa.slideDownIn10,Ms[da.left]=sa.slideLeftIn10,Ms[da.right]=sa.slideRightIn10,Ms),Os=0,Ls=0,Hs={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Vs=["role","aria-roledescription"],zs={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ta},Us=Ft({disableCaching:!0});function Ws(e,t,n,r,i){var a=o.useState(),s=a[0],l=a[1],c=o.useRef(0),d=o.useRef(),p=vs(),h=e.hidden,m=e.target,f=e.finalHeight,g=e.onPositioned,v=e.directionalHint;return o.useEffect((function(){if(!h){var o=p.requestAnimationFrame((function(){if(t.current&&n){var o=u(u({},e),{target:r.current,bounds:i()}),a=d.current===m?s:void 0,p=f?fs(o,t.current,n,a):function(e,t,n,r){return hs(e,t,n,r)}(o,t.current,n,a);!s&&p||s&&p&&(v=p,!qs((h=s).elementPosition,v.elementPosition)||!qs(h.beakPosition.elementPosition,v.beakPosition.elementPosition))&&c.current<5?(c.current++,l(p)):c.current>0&&(c.current=0,null===g||void 0===g||g(s))}var h,v}),n);return d.current=m,function(){p.cancelAnimationFrame(o),d.current=void 0}}l(void 0),c.current=0}),[h,v,p,n,t,r,f,i,g,s,e,m]),s}var Gs=o.memo(o.forwardRef((function(e,t){var n=Qr(zs,e),r=n.styles,i=n.style,a=n.ariaLabel,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,p=n.children,h=n.beakWidth,m=n.calloutWidth,f=n.calloutMaxWidth,g=n.calloutMinWidth,v=n.doNotLayer,y=n.finalHeight,b=n.hideOverflow,C=void 0===b?!!y:b,S=n.backgroundColor,x=n.calloutMaxHeight,_=n.onScroll,E=n.shouldRestoreFocus,k=void 0===E||E,w=n.target,I=n.hidden,P=n.onLayerMounted,T=o.useRef(null),D=o.useState(null),A=D[0],R=D[1],N=o.useCallback((function(e){R(e)}),[]),M=Ss(T,t),F=Ts(n.target,{current:A}),B=F[0],O=F[1],L=function(e,t,n){var r=e.bounds,i=e.minPagePadding,a=void 0===i?zs.minPagePadding:i,s=e.target,l=o.useState(!1),c=l[0],u=l[1],d=o.useRef(),p=o.useCallback((function(){if(!d.current||c){var e="function"===typeof r?n?r(s,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,s,t,n,c]),h=vs();return xs(n,"resize",h.debounce((function(){u(!0)}),500,{leading:!0})),p}(n,B,O),H=Ws(n,T,A,B,L),V=function(e,t,n,r,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,p=e.shouldDismissOnWindowFocus,h=e.preventDismissOnEvent,m=o.useRef(!1),f=vs(),g=gs([function(){m.current=!0},function(){m.current=!1}]),v=!!t;return o.useEffect((function(){var e=function(e){v&&!l&&g(e)},t=function(e){c||h&&h(e)||null===s||void 0===s||s(e)},o=function(e){u||g(e)},g=function(e){var t=e.target,o=n.current&&!wt(n.current,t);if(o&&m.current)m.current=!1;else if(!r.current&&o||e.target!==i&&o&&(!r.current||"stopPropagation"in r.current||d||t!==r.current&&!wt(r.current,t))){if(h&&h(e))return;null===s||void 0===s||s(e)}},y=function(e){p&&((!h||h(e))&&(h||u)||(null===i||void 0===i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null===s||void 0===s||s(e))},b=new Promise((function(n){f.setTimeout((function(){if(!a&&i){var r=[Dt(i,"scroll",e,!0),Dt(i,"resize",t,!0),Dt(i.document.documentElement,"focus",o,!0),Dt(i.document.documentElement,"click",o,!0),Dt(i,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[a,f,n,r,i,s,p,d,u,c,l,v,h]),g}(n,H,T,B,O),z=V[0],U=V[1];if(function(e,t,n){var r=e.hidden,i=e.setInitialFocus,a=vs(),s=!!t;o.useEffect((function(){if(!r&&i&&s&&n){var e=a.requestAnimationFrame((function(){return mn(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,s,a,n,i])}(n,H,A),o.useEffect((function(){I||null===P||void 0===P||P()}),[I]),!O)return null;var W=C,G=d&&!!w,j=Us(r,{theme:n.theme,className:c,overflowYHidden:W,calloutWidth:m,positions:H,beakWidth:h,backgroundColor:S,calloutMaxWidth:f,calloutMinWidth:g,doNotLayer:v}),q=u(u({maxHeight:x||"100%"},i),W&&{overflowY:"hidden"}),K=n.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:M,className:j.container,style:K},o.createElement("div",u({},$n(n,Jn,Vs),{className:Zt(j.root,H&&H.targetEdge&&Bs[H.targetEdge]),style:H?H.elementPosition:Hs,tabIndex:-1,ref:N}),G&&o.createElement("div",{className:j.beak,style:js(H)}),G&&o.createElement("div",{className:j.beakCurtain}),o.createElement(Fs,u({},$n(n,Vs),{ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:j.calloutMain,onDismiss:n.onDismiss,onMouseDown:z,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:_,shouldRestoreFocus:k,style:q}),p)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pe(e,t)}));function js(e){var t,n,r=u(u({},null===(t=null===e||void 0===e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null===e||void 0===e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=Ls,r.top=Os),r}function qs(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Ks(e){return{height:e,width:e}}Gs.displayName="CalloutContentBase";var Ys={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Xs=Kr(Gs,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=Mi(Ys,n),p=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",zIndex:u?bi.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Ci]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Ks(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Qs=Ft(),Zs=Gt((function(e,t){return $i(u(u({},e),{rtl:t}))})),Js=o.forwardRef((function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,a=e.applyThemeToBody,s=e.styles,l=Qs(s,{theme:r,applyTheme:i,className:n}),c=o.useRef(null);return function(e,t,n){var r=t.bodyThemed;o.useEffect((function(){if(e){var t=ve(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,l,c),gr(c),o.createElement(o.Fragment,null,function(e,t,n,r){var i=t.root,a=e.as,s=void 0===a?"div":a,l=e.dir,c=e.theme,d=$n(e,Jn,["dir"]),p=function(e){var t=e.theme,n=e.dir,r=xt(t)?"rtl":"ltr",o=xt()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),h=p.rootDir,m=p.needsTheme,f=o.createElement(s,u({dir:h},d,{className:i,ref:Ss(n,r)}));m&&(f=o.createElement(sn,{settings:{theme:Zs(c,"rtl"===l)}},f));return f}(e,l,c,t))}));Js.displayName="FabricBase";var $s,el={fontFamily:"inherit"},tl={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},nl=Kr(Js,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Mi(tl,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":el,"& input":el,"& textarea":el}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),rl={};var ol,il=Ft(),al=o.forwardRef((function(e,t){var n=o.useRef(null),r=Ss(n,t),i=o.useRef(),s=o.useState(!1),l=s[0],c=s[1],d=Ps(),p=e.eventBubblingEnabled,h=e.styles,m=e.theme,f=e.className,g=e.children,v=e.hostId,y=e.onLayerDidMount,b=void 0===y?function(){}:y,C=e.onLayerMounted,S=void 0===C?function(){}:C,x=e.onLayerWillUnmount,_=e.insertFirst,E=il(h,{theme:m,className:f,isNotHost:!v}),k=function(){if(d){if(v)return d.getElementById(v);var e=$s;return e?d.querySelector(e):d.body}},w=function(){null===x||void 0===x||x();var e=i.current;i.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},I=function(){var e=k();if(d&&e){w();var t=d.createElement("div");t.className=E.root,t.setAttribute(Pt,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(t,n.current),_?e.insertBefore(t,e.firstChild):e.appendChild(t),i.current=t,c(!0)}};return o.useLayoutEffect((function(){return I(),v&&function(e,t){rl[e]||(rl[e]=[]),rl[e].push(t)}(v,I),function(){w(),v&&function(e,t){if(rl[e]){var n=rl[e].indexOf(t);n>=0&&(rl[e].splice(n,1),0===rl[e].length&&delete rl[e])}}(v,I)}}),[v]),o.useEffect((function(){i.current&&l&&(null===S||void 0===S||S(),null===b||void 0===b||b(),c(!1))}),[l,S,b]),function(e){As({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),o.createElement("span",{className:"ms-layer",ref:r},i.current&&a.createPortal(o.createElement(nl,u({},!p&&function(){ol||(ol={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return ol[e]=sl})));return ol}(),{className:E.content}),g),i.current))}));al.displayName="LayerBase";var sl=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var ll={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},cl=Kr(al,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Mi(ll,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:bi.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ul=o.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,i=d(e,["layerProps","doNotLayer"]),a=o.createElement(Xs,u({},i,{doNotLayer:r,ref:t}));return r?a:o.createElement(cl,u({},n),a)}));ul.displayName="Callout";var dl=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useRef(null),a=Ss(n,t),s=Cs(void 0,e.id),l=Ps(),c=$n(e,Jn),d=gs((function(){return{previouslyFocusedElementOutsideTrapZone:void 0,previouslyFocusedElementInTrapZone:void 0,disposeFocusHandler:void 0,disposeClickHandler:void 0,hasFocus:!1,unmodalize:void 0}})),p=e.ariaLabelledBy,h=e.className,m=e.children,f=e.componentRef,g=e.disabled,v=e.disableFirstFocus,y=void 0!==v&&v,b=e.disabled,C=void 0!==b&&b,S=e.elementToFocusOnDismiss,x=e.forceFocusInsideTrap,_=void 0===x||x,E=e.focusPreviouslyFocusedInnerElement,k=e.firstFocusableSelector,w=e.ignoreExternalFocusing,I=e.isClickableOutsideFocusTrap,P=void 0!==I&&I,T=e.onFocus,D=e.onBlur,A=e.onFocusCapture,R=e.onBlurCapture,N=e.enableAriaHiddenSiblings,M={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:g?-1:0,"data-is-visible":!0},F=o.useCallback((function(){if(E&&d.previouslyFocusedElementInTrapZone&&wt(n.current,d.previouslyFocusedElementInTrapZone))_n(d.previouslyFocusedElementInTrapZone);else{var e="string"===typeof k?k:k&&k(),t=null;n.current&&(e&&(t=n.current.querySelector("."+e)),t||(t=gn(n.current,n.current.firstChild,!1,!1,!1,!0))),t&&_n(t)}}),[k,E,d]),B=o.useCallback((function(e){if(!g){var t,o,a=e===d.hasFocus?i.current:r.current;if(n.current){var s=e===d.hasFocus?(t=n.current,void 0===(o=!1)&&(o=!0),fn(t,a,o,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),gn(e,t,r,!1,!1,n,!1,!0)}(n.current,a,!0,!1);s&&(s===r.current||s===i.current?F():s.focus())}}}),[g,F,d]),O=o.useCallback((function(e){null===R||void 0===R||R(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=l.activeElement),wt(n.current,t)||(d.hasFocus=!1)}),[l,d,R]),L=o.useCallback((function(e){null===A||void 0===A||A(e),e.target===r.current?B(!0):e.target===i.current&&B(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==r.current&&e.target!==i.current&&(d.previouslyFocusedElementInTrapZone=e.target)}),[A,d,B]),H=o.useCallback((function(){if(dl.focusStack=dl.focusStack.filter((function(e){return s!==e})),l){var e=l.activeElement;w||!d.previouslyFocusedElementOutsideTrapZone||"function"!==typeof d.previouslyFocusedElementOutsideTrapZone.focus||!wt(n.current,e)&&e!==l.body||d.previouslyFocusedElementOutsideTrapZone!==r.current&&d.previouslyFocusedElementOutsideTrapZone!==i.current&&_n(d.previouslyFocusedElementOutsideTrapZone)}}),[l,s,w,d]),V=o.useCallback((function(e){if(!g&&dl.focusStack.length&&s===dl.focusStack[dl.focusStack.length-1]){var t=e.target;wt(n.current,t)||(F(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[g,s,F,d]),z=o.useCallback((function(e){if(!g&&dl.focusStack.length&&s===dl.focusStack[dl.focusStack.length-1]){var t=e.target;t&&!wt(n.current,t)&&(F(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[g,s,F,d]),U=o.useCallback((function(){_&&!d.disposeFocusHandler?d.disposeFocusHandler=Dt(window,"focus",V,!0):!_&&d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),P||d.disposeClickHandler?P&&d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0):d.disposeClickHandler=Dt(window,"click",z,!0)}),[z,V,_,P,d]);return o.useEffect((function(){var e=n.current;return U(),function(){g&&!_&&wt(e,null===l||void 0===l?void 0:l.activeElement)||H()}}),[U]),o.useEffect((function(){var e=void 0===_||_,t=void 0!==g&&g;if(!t||e){if(C)return;dl.focusStack.push(s),d.previouslyFocusedElementOutsideTrapZone=S||l.activeElement,y||wt(n.current,d.previouslyFocusedElementOutsideTrapZone)||F(),!d.unmodalize&&n.current&&N&&(d.unmodalize=function(e){for(var t,n=[],r=ve(e)||document;e!==r.body;){for(var o=0,i=e.parentElement.children;o<i.length;o++){var a=i[o];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}(n.current))}else e&&!t||(H(),d.unmodalize&&d.unmodalize());S&&d.previouslyFocusedElementOutsideTrapZone!==S&&(d.previouslyFocusedElementOutsideTrapZone=S)}),[S,_,g]),pl((function(){d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0),d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),d.unmodalize&&d.unmodalize(),delete d.previouslyFocusedElementInTrapZone,delete d.previouslyFocusedElementOutsideTrapZone})),function(e,t,n){o.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[t,n])}(f,d.previouslyFocusedElementInTrapZone,F),o.createElement("div",u({},c,{className:h,ref:a,"aria-labelledby":p,onFocusCapture:L,onFocus:T,onBlur:D,onBlurCapture:O}),o.createElement("div",u({},M,{ref:r})),m,o.createElement("div",u({},M,{ref:i})))})),pl=function(e){var t=o.useRef(e);t.current=e,o.useEffect((function(){return function(){t.current&&t.current()}}),[e])};dl.displayName="FocusTrapZone",dl.focusStack=[];var hl,ml,fl=function(e){return o.createElement(ul,u({},e),o.createElement(dl,u({disabled:e.hidden},e.focusTrapProps),e.children))},gl=Ft(),vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"===typeof e.content?o.createElement("p",{className:t._classNames.subText},e.content):o.createElement("div",{className:t._classNames.subText},e.content)},t}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,i=e.directionalHintForRTL,a=e.styles,s=e.id,l=e.maxWidth,c=e.onRenderContent,d=void 0===c?this._onRenderContent:c,p=e.targetElement,h=e.theme;return this._classNames=gl(a,{theme:h,className:t||n&&n.className,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:l}),o.createElement(ul,u({target:p,directionalHint:r,directionalHintForRTL:i},n,$n(this.props,Jn,["id"]),{className:this._classNames.root}),o.createElement("div",{className:this._classNames.content,id:s,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:_a,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(o.Component),yl=Kr(vl,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,sa.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(hl||(hl={})),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(ml||(ml={}));var bl,Cl,Sl,xl,_l=Ft(),El=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=wn("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case ml.Parent:return r._tooltipHost.current.parentElement;case ml.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._hideTooltip()},r._onTooltipMouseEnter=function(e){var n,o=r.props,i=o.overflowMode,a=o.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&(!function(e){return e.clientWidth<e.scrollWidth}(n=s)&&!function(e){return e.clientHeight<e.scrollHeight}(n)))return}if(!e.target||!Tt(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==hl.zero){r.setState({isAriaPlaceholderRendered:!0});var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Ye||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isAriaPlaceholderRendered:!1,isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case hl.medium:return 300;case hl.long:return 500;default:return 0}},or(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new de(r),r}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,i=e.directionalHint,a=e.directionalHintForRTL,s=e.hostClassName,l=e.id,c=e.setAriaDescribedBy,d=void 0===c||c,p=e.tooltipProps,h=e.styles,m=e.theme;this._classNames=_l(h,{theme:m,className:s});var f=this.state,g=f.isAriaPlaceholderRendered,v=f.isTooltipVisible,y=l||this._defaultTooltipId,b=!!(r||p&&p.onRenderContent&&p.onRenderContent()),C=v&&b,S=d&&v&&b?y:void 0;return o.createElement("div",u({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":S}),n,C&&o.createElement(yl,u({id:y,content:r,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:he({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},$n(this.props,Jn),p)),g&&o.createElement("div",{id:y,role:"none",style:Ii},r))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:hl.medium},t}(o.Component),kl={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},wl=Kr(El,(function(e){var t=e.className,n=e.theme;return{root:[Mi(kl,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"});!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(bl||(bl={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(Cl||(Cl={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(Sl||(Sl={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(xl||(xl={}));var Il=Ft(),Pl=/\.svg$/i;var Tl=o.forwardRef((function(e,t){var n=o.useRef(),r=o.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,i=e.onError,a=e.src,s=o.useState(xl.notLoaded),l=s[0],c=s[1];o.useLayoutEffect((function(){c(xl.notLoaded)}),[a]),o.useEffect((function(){l===xl.notLoaded&&t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&Pl.test(a))&&c(xl.loaded)})),o.useEffect((function(){null===n||void 0===n||n(l)}),[l]);var u=o.useCallback((function(e){null===r||void 0===r||r(e),a&&c(xl.loaded)}),[a,r]),d=o.useCallback((function(e){null===i||void 0===i||i(e),c(xl.error)}),[i]);return[l,u,d]}(e,r),a=i[0],s=i[1],l=i[2],c=$n(e,Zn,["width","height"]),d=e.src,p=e.alt,h=e.width,m=e.height,f=e.shouldFadeIn,g=void 0===f||f,v=e.shouldStartVisible,y=e.className,b=e.imageFit,C=e.role,S=e.maximizeFrame,x=e.styles,_=e.theme,E=e.loading,k=function(e,t,n,r){var i=o.useRef(t),a=o.useRef();(void 0===a||i.current===xl.notLoaded&&t===xl.loaded)&&(a.current=function(e,t,n,r){var o=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===xl.loaded&&(o===Cl.cover||o===Cl.contain||o===Cl.centerContain||o===Cl.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==Cl.centerContain&&o!==Cl.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return Sl.landscape}return Sl.portrait}(e,t,n,r));return i.current=t,a.current}(e,a,r,n),w=Il(x,{theme:_,className:y,width:h,height:m,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:a===xl.loaded||a===xl.notLoaded&&e.shouldStartVisible,isLandscape:k===Sl.landscape,isCenter:b===Cl.center,isCenterContain:b===Cl.centerContain,isCenterCover:b===Cl.centerCover,isContain:b===Cl.contain,isCover:b===Cl.cover,isNone:b===Cl.none,isError:a===xl.error,isNotImageFit:void 0===b});return o.createElement("div",{className:w.root,style:{width:h,height:m},ref:n},o.createElement("img",u({},c,{onLoad:s,onError:l,key:"fabricImage"+e.src||"",className:w.image,ref:Ss(r,t),src:d,alt:p,role:C,loading:E})))}));Tl.displayName="ImageBase";var Dl={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Al=Kr(Tl,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,f=e.isError,g=e.isNotImageFit,v=e.theme,y=Mi(Dl,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=ue(),S=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,x=u&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&sa.fadeIn400,(c||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[y.imageCenter,b],u&&[y.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&x,!S&&b],d&&[y.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&x,!S&&b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],m&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",f&&"is-error"]}}),void 0,{scope:"Image"},!0);Al.displayName="Image";var Rl=ne({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),Nl="ms-Icon",Ml=Gt((function(e){var t=oo(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null}),void 0,!0),Fl=function(e){var t=e.iconName,n=e.className,r=e.style,i=void 0===r?{}:r,a=Ml(t)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,d=a.mergeImageProps,p=$n(e,An),h=e["aria-label"]||e.title,m=e["aria-label"]||e["aria-labelledby"]||e.title?{role:d?void 0:"img"}:{"aria-hidden":!0},f=l;return d&&"object"===typeof l&&"object"===typeof l.props&&h&&(f=o.cloneElement(l,{alt:h})),o.createElement("i",u({"data-icon-name":t},m,p,d?{title:void 0,"aria-label":void 0}:{},{className:Zt(Nl,Rl.root,s,!t&&Rl.placeholder,n),style:u({fontFamily:c},i)}),f)},Bl=(Gt((function(e,t,n){return Fl({iconName:e,className:t,"aria-label":n})})),Ft({cacheSize:100})),Ol=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===xl.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,i=e.iconName,a=e.imageErrorAs,s=e.theme,l="string"===typeof i&&0===i.length,c=!!this.props.imageProps||this.props.iconType===bl.image||this.props.iconType===bl.Image,d=Ml(i)||{},p=d.iconClassName,h=d.children,m=d.mergeImageProps,f=Bl(r,{theme:s,className:n,iconClassName:p,isImage:c,isPlaceholder:l}),g=c?"span":"i",v=$n(this.props,An,["aria-label"]),y=this.state.imageLoadError,b=u(u({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=y&&a||Al,S=this.props["aria-label"]||this.props.ariaLabel,x=b.alt||S||this.props.title,_=!!(x||this.props["aria-labelledby"]||b["aria-label"]||b["aria-labelledby"])?{role:c||m?void 0:"img","aria-label":c||m?void 0:x}:{"aria-hidden":!0},E=h;return m&&h&&"object"===typeof h&&x&&(E=o.cloneElement(h,{alt:x})),o.createElement(g,u({"data-icon-name":i},_,v,m?{title:void 0,"aria-label":void 0}:{},{className:f.root}),c?o.createElement(C,u({},b)):t||E)},t}(o.Component),Ll=Kr(Ol,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&Rl.placeholder,Rl.root,o&&Rl.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);Ll.displayName="Icon";var Hl,Vl,zl,Ul,Wl,Gl,jl=function(e){var t=e.className,n=e.imageProps,r=$n(e,An,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],a=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,s={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},l=a?{}:{"aria-hidden":!0};return o.createElement("div",u({},l,r,{className:Zt(Nl,Rl.root,Rl.image,t)}),o.createElement(Al,u({},s,n,{alt:a?i:""})))};!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(Hl||(Hl={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(Vl||(Vl={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(zl||(zl={})),function(e){e.size8="20px",e.size10="20px",e.size16="16px",e.size24="24px",e.size28="28px",e.size32="32px",e.size40="40px",e.size48="48px",e.size56="56px",e.size72="72px",e.size100="100px",e.size120="120px"}(Wl||(Wl={})),function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"}(Gl||(Gl={}));var ql=function(e){return{isSize8:e===Hl.size8,isSize10:e===Hl.size10||e===Hl.tiny,isSize16:e===Hl.size16,isSize24:e===Hl.size24||e===Hl.extraExtraSmall,isSize28:e===Hl.size28||e===Hl.extraSmall,isSize32:e===Hl.size32,isSize40:e===Hl.size40||e===Hl.small,isSize48:e===Hl.size48||e===Hl.regular,isSize56:e===Hl.size56,isSize72:e===Hl.size72||e===Hl.large,isSize100:e===Hl.size100||e===Hl.extraLarge,isSize120:e===Hl.size120}},Kl=((Ul={})[Hl.tiny]=10,Ul[Hl.extraExtraSmall]=24,Ul[Hl.extraSmall]=28,Ul[Hl.small]=40,Ul[Hl.regular]=48,Ul[Hl.large]=72,Ul[Hl.extraLarge]=100,Ul[Hl.size8]=8,Ul[Hl.size10]=10,Ul[Hl.size16]=16,Ul[Hl.size24]=24,Ul[Hl.size28]=28,Ul[Hl.size32]=32,Ul[Hl.size40]=40,Ul[Hl.size48]=48,Ul[Hl.size56]=56,Ul[Hl.size72]=72,Ul[Hl.size100]=100,Ul[Hl.size120]=120,Ul),Yl=function(e){return{isAvailable:e===Vl.online,isAway:e===Vl.away,isBlocked:e===Vl.blocked,isBusy:e===Vl.busy,isDoNotDisturb:e===Vl.dnd,isOffline:e===Vl.offline}},Xl=Ft({cacheSize:100}),Ql=o.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,i=e.styles,a=e.presence,s=e.theme,l=e.presenceTitle,c=e.presenceColors,u=Ss(t,o.useRef(null)),d=ql(e.size),p=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(!n||n>32),h=n?n/3<40?n/3+"px":"40px":"",m=n?{fontSize:n?n/6<20?n/6+"px":"20px":"",lineHeight:h}:void 0,f=n?{width:h,height:h}:void 0,g=Xl(i,{theme:s,presence:a,size:e.size,isOutOfOffice:r,presenceColors:c});return a===Vl.none?null:o.createElement("div",{role:"presentation",className:g.presence,style:f,title:l,ref:u},p&&o.createElement(Ll,{className:g.presenceIcon,iconName:Zl(e.presence,e.isOutOfOffice),style:m}))}));function Zl(e,t){if(e){var n="SkypeArrow";switch(Vl[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}Ql.displayName="PersonaPresenceBase";var Jl={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function $l(e){return{color:e,borderColor:e}}function ec(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function tc(e){return{height:e,width:e}}function nc(e){return{backgroundColor:e}}var rc=Kr(Ql,(function(e){var t,n,r,o,i,a,s=e.theme,l=e.presenceColors,c=s.semanticColors,d=s.fonts,p=Mi(Jl,s),h=ql(e.size),m=Yl(e.presence),f=l&&l.available||"#6BB700",g=l&&l.away||"#FFAA44",v=l&&l.busy||"#C43148",y=l&&l.dnd||"#C50F1F",b=l&&l.offline||"#8A8886",C=l&&l.oof||"#B4009E",S=l&&l.background||c.bodyBackground,x=m.isOffline||e.isOutOfOffice&&(m.isAvailable||m.isBusy||m.isAway||m.isDoNotDisturb),_=h.isSize72||h.isSize100?"2px":"1px";return{presence:[p.presence,u(u({position:"absolute",height:Gl.size12,width:Gl.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+S,textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:(t={},t[Ci]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(h.isSize8||h.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[Ci]={top:"9px",border:"1px solid WindowText"},n)},(h.isSize8||h.isSize10||h.isSize24||h.isSize28||h.isSize32)&&tc(Gl.size8),(h.isSize40||h.isSize48)&&tc(Gl.size12),h.isSize16&&{height:Gl.size6,width:Gl.size6,borderWidth:"1.5px"},h.isSize56&&tc(Gl.size16),h.isSize72&&tc(Gl.size20),h.isSize100&&tc(Gl.size28),h.isSize120&&tc(Gl.size32),m.isAvailable&&{backgroundColor:f,selectors:(r={},r[Ci]=nc("Highlight"),r)},m.isAway&&nc(g),m.isBlocked&&[{selectors:(o={":after":h.isSize40||h.isSize48||h.isSize72||h.isSize100?{content:'""',width:"100%",height:_,backgroundColor:v,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[Ci]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],m.isBusy&&nc(v),m.isDoNotDisturb&&nc(y),m.isOffline&&nc(b),(x||m.isBlocked)&&[{backgroundColor:S,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:_+" solid "+v,borderRadius:"50%",boxSizing:"border-box"}},i[Ci]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],x&&m.isAvailable&&ec(_,f),x&&m.isBusy&&ec(_,v),x&&m.isAway&&ec(_,C),x&&m.isDoNotDisturb&&ec(_,y),x&&m.isOffline&&ec(_,b),x&&m.isOffline&&e.isOutOfOffice&&ec(_,C)],presenceIcon:[p.presenceIcon,{color:S,fontSize:"6px",lineHeight:Gl.size12,verticalAlign:"top",selectors:(a={},a[Ci]={color:"Window"},a)},h.isSize56&&{fontSize:"8px",lineHeight:Gl.size16},h.isSize72&&{fontSize:d.small.fontSize,lineHeight:Gl.size20},h.isSize100&&{fontSize:d.medium.fontSize,lineHeight:Gl.size28},h.isSize120&&{fontSize:d.medium.fontSize,lineHeight:Gl.size32},m.isAway&&{position:"relative",left:x?void 0:"1px"},x&&m.isAvailable&&$l(f),x&&m.isBusy&&$l(v),x&&m.isAway&&$l(C),x&&m.isDoNotDisturb&&$l(y),x&&m.isOffline&&$l(b),x&&m.isOffline&&e.isOutOfOffice&&$l(C)]}}),void 0,{scope:"PersonaPresence"}),oc=[zl.lightBlue,zl.blue,zl.darkBlue,zl.teal,zl.green,zl.darkGreen,zl.lightPink,zl.pink,zl.magenta,zl.purple,zl.orange,zl.lightRed,zl.darkRed,zl.violet,zl.gold,zl.burgundy,zl.warmGray,zl.cyan,zl.rust,zl.coolGray],ic=oc.length;function ac(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"===typeof r?r:function(e){switch(e){case zl.lightBlue:return"#4F6BED";case zl.blue:return"#0078D4";case zl.darkBlue:return"#004E8C";case zl.teal:return"#038387";case zl.lightGreen:case zl.green:return"#498205";case zl.darkGreen:return"#0B6A0B";case zl.lightPink:return"#C239B3";case zl.pink:return"#E3008C";case zl.magenta:return"#881798";case zl.purple:return"#5C2E91";case zl.orange:return"#CA5010";case zl.red:return"#EE1111";case zl.lightRed:return"#D13438";case zl.darkRed:return"#A4262C";case zl.transparent:return"transparent";case zl.violet:return"#8764B8";case zl.gold:return"#986F0B";case zl.burgundy:return"#750B1C";case zl.warmGray:return"#7A7574";case zl.cyan:return"#005B70";case zl.rust:return"#8E562E";case zl.coolGray:return"#69797E";case zl.black:return"#1D1D1D";case zl.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=zl.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<<i)+(o>>8-i)}return oc[n%ic]}(n||t))}var sc=Ft({cacheSize:100}),lc=Gt((function(e,t,n,r,o,i){return $(e,!i&&{backgroundColor:ac({text:r,initialsColor:t,primaryText:o}),color:n})})),cc={size:Hl.size48,presence:Vl.none,imageAlt:""};var uc=o.forwardRef((function(e,t){var n=Qr(cc,e);!function(e){As({name:"PersonaCoin",props:e,deprecations:{primaryText:"text"}})}(n);var r=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=o.useState(xl.notLoaded),i=r[0],a=r[1];return o.useEffect((function(){a(xl.notLoaded)}),[n]),[i,function(e){a(e),null===t||void 0===t||t(e)}]}(n),i=r[0],a=r[1],s=dc(a),l=n.className,c=n.coinProps,d=n.showUnknownPersonaCoin,p=n.coinSize,h=n.styles,m=n.imageUrl,f=n.initialsColor,g=n.initialsTextColor,v=n.isOutOfOffice,y=n.onRenderCoin,b=void 0===y?s:y,C=n.onRenderPersonaCoin,S=void 0===C?b:C,x=n.onRenderInitials,_=void 0===x?pc:x,E=n.presence,k=n.presenceTitle,w=n.presenceColors,I=n.primaryText,P=n.showInitialsUntilImageLoads,T=n.text,D=n.theme,A=n.size,R=$n(n,Jn),N=$n(c||{},Jn),M=p?{width:p,height:p}:void 0,F=d,B={coinSize:p,isOutOfOffice:v,presence:E,presenceTitle:k,presenceColors:w,size:A,theme:D},O=sc(h,{theme:D,className:c&&c.className?c.className:l,size:A,coinSize:p,showUnknownPersonaCoin:d}),L=Boolean(i!==xl.loaded&&(P&&m||!m||i===xl.error||F));return o.createElement("div",u({role:"presentation"},R,{className:O.coin,ref:t}),A!==Hl.size8&&A!==Hl.size10&&A!==Hl.tiny?o.createElement("div",u({role:"presentation"},N,{className:O.imageArea,style:M}),L&&o.createElement("div",{className:lc(O.initials,f,g,T,I,d),style:M,"aria-hidden":"true"},_(n,pc)),!F&&S(n,s),o.createElement(rc,u({},B))):n.presence?o.createElement(rc,u({},B)):o.createElement(Ll,{iconName:"Contact",className:O.size10WithoutPresenceIcon}),n.children)}));uc.displayName="PersonaCoinBase";var dc=function(e){return function(t){var n=t.coinSize,r=t.styles,i=t.imageUrl,a=t.imageAlt,s=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,u=t.showUnknownPersonaCoin,d=t.size,p=void 0===d?cc.size:d;if(!i)return null;var h=sc(r,{theme:c,size:p,showUnknownPersonaCoin:u}),m=n||Kl[p];return o.createElement(Al,{className:h.image,imageFit:Cl.cover,src:i,width:m,height:m,alt:a,shouldFadeIn:s,shouldStartVisible:l,onLoadingStateChange:e})}},pc=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,i=e.text,a=e.primaryText,s=e.theme;if(r)return o.createElement(Ll,{iconName:"Help"});var l=xt(s);return""!==(t=t||Ir(i||a||"",l,n))?o.createElement("span",null,t):o.createElement(Ll,{iconName:"Contact"})},hc={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},mc=Kr(uc,(function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,a=r.fonts,s=ql(e.size),l=Mi(hc,r),c=o||e.size&&Kl[e.size]||48;return{coin:[l.coin,a.medium,s.isSize8&&l.size8,s.isSize10&&l.size10,s.isSize16&&l.size16,s.isSize24&&l.size24,s.isSize28&&l.size28,s.isSize32&&l.size32,s.isSize40&&l.size40,s.isSize48&&l.size48,s.isSize56&&l.size56,s.isSize72&&l.size72,s.isSize100&&l.size100,s.isSize120&&l.size120,n],size10WithoutPresenceIcon:{fontSize:a.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[l.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:c,width:c},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[l.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0},c>10&&{height:c,width:c}],initials:[l.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:a.large.fontSize,fontWeight:ui.semibold,lineHeight:48===c?46:c,height:c,selectors:(t={},t[Ci]=u(u({border:"1px solid WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:ui.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},c<32&&{fontSize:a.xSmall.fontSize},c>=32&&c<40&&{fontSize:a.medium.fontSize},c>=40&&c<56&&{fontSize:a.mediumPlus.fontSize},c>=56&&c<72&&{fontSize:a.xLarge.fontSize},c>=72&&c<100&&{fontSize:a.xxLarge.fontSize},c>=100&&{fontSize:a.superLarge.fontSize}]}}),void 0,{scope:"PersonaCoin"}),fc=Ft(),gc={size:Hl.size48,presence:Vl.none,imageAlt:"",showOverflowTooltip:!0};var vc=o.forwardRef((function(e,t){var n=Qr(gc,e);!function(e){As({name:"Persona",props:e,deprecations:{primaryText:"text"}})}(n);var r=Ss(t,o.useRef(null)),i=function(){return n.text||n.primaryText||""},a=function(e,t,r){return o.createElement("div",{dir:"auto",className:e},t&&t(n,r))},s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return o.createElement(wl,{content:e,overflowMode:ml.Parent,directionalHint:xa},e)}:function(){return o.createElement(o.Fragment,null,e)}:void 0},l=s(i(),n.showOverflowTooltip),c=s(n.secondaryText,n.showOverflowTooltip),d=s(n.tertiaryText,n.showOverflowTooltip),p=s(n.optionalText,n.showOverflowTooltip),h=n.hidePersonaDetails,m=n.onRenderOptionalText,f=void 0===m?p:m,g=n.onRenderPrimaryText,v=void 0===g?l:g,y=n.onRenderSecondaryText,b=void 0===y?c:y,C=n.onRenderTertiaryText,S=void 0===C?d:C,x=n.onRenderPersonaCoin,_=void 0===x?function(e){return o.createElement(mc,u({},e))}:x,E=n.size,k=n.allowPhoneInitials,w=n.className,I=n.coinProps,P=n.showUnknownPersonaCoin,T=n.coinSize,D=n.styles,A=n.imageAlt,R=n.imageInitials,N=n.imageShouldFadeIn,M=n.imageShouldStartVisible,F=n.imageUrl,B=n.initialsColor,O=n.initialsTextColor,L=n.isOutOfOffice,H=n.onPhotoLoadingStateChange,V=n.onRenderCoin,z=n.onRenderInitials,U=n.presence,W=n.presenceTitle,G=n.presenceColors,j=n.showInitialsUntilImageLoads,q=n.showSecondaryText,K=n.theme,Y=u({allowPhoneInitials:k,showUnknownPersonaCoin:P,coinSize:T,imageAlt:A,imageInitials:R,imageShouldFadeIn:N,imageShouldStartVisible:M,imageUrl:F,initialsColor:B,initialsTextColor:O,onPhotoLoadingStateChange:H,onRenderCoin:V,onRenderInitials:z,presence:U,presenceTitle:W,showInitialsUntilImageLoads:j,size:E,text:i(),isOutOfOffice:L,presenceColors:G},I),X=fc(D,{theme:K,className:w,showSecondaryText:q,presence:U,size:E}),Q=$n(n,Jn),Z=o.createElement("div",{className:X.details},a(X.primaryText,v,l),a(X.secondaryText,b,c),a(X.tertiaryText,S,d),a(X.optionalText,f,p),n.children);return o.createElement("div",u({},Q,{ref:r,className:X.root,style:T?{height:T,minWidth:T}:void 0}),_(Y,_),(!h||E===Hl.size8||E===Hl.size10||E===Hl.tiny)&&Z)}));vc.displayName="PersonaBase";var yc={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},bc=Kr(vc,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=Mi(yc,r),s=ql(e.size),l=Yl(e.presence),c="16px",u={color:o.bodySubtext,fontWeight:ui.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,oa,{color:o.bodyText,position:"relative",height:Wl.size48,minWidth:Wl.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:Wl.size8,minWidth:Wl.size8}],s.isSize10&&[a.size10,{height:Wl.size10,minWidth:Wl.size10}],s.isSize16&&[a.size16,{height:Wl.size16,minWidth:Wl.size16}],s.isSize24&&[a.size24,{height:Wl.size24,minWidth:Wl.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:Wl.size28,minWidth:Wl.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:Wl.size32,minWidth:Wl.size32}],s.isSize40&&[a.size40,{height:Wl.size40,minWidth:Wl.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:Wl.size56,minWidth:Wl.size56}],s.isSize72&&[a.size72,{height:Wl.size72,minWidth:Wl.size72}],s.isSize100&&[a.size100,{height:Wl.size100,minWidth:Wl.size100}],s.isSize120&&[a.size120,{height:Wl.size120,minWidth:Wl.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,ia,{color:o.bodyText,fontWeight:ui.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:c,lineHeight:c,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Wl.size8},s.isSize16&&{lineHeight:Wl.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:22}],secondaryText:[a.secondaryText,ia,u,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,ia,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,ia,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,ia]}}),void 0,{scope:"Persona"}),Cc=(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderIcon=function(e){return e.activityPersonas?n._onRenderPersonaArray(e):n.props.activityIcon},n._onRenderActivityDescription=function(e){var t=n._getClassNames(e),r=e.activityDescription||e.activityDescriptionText;return r?o.createElement("span",{className:t.activityText},r):null},n._onRenderComments=function(e){var t=n._getClassNames(e),r=e.comments||e.commentText;return!e.isCompact&&r?o.createElement("div",{className:t.commentText},r):null},n._onRenderTimeStamp=function(e){var t=n._getClassNames(e);return!e.isCompact&&e.timeStamp?o.createElement("div",{className:t.timeStamp},e.timeStamp):null},n._onRenderPersonaArray=function(e){var t=n._getClassNames(e),r=null,i=e.activityPersonas;if(i[0].imageUrl||i[0].imageInitials){var a=[],s=i.length>1||e.isCompact,l=e.isCompact?3:4,c=void 0;e.isCompact&&(c={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),i.filter((function(e,t){return t<l})).forEach((function(e,n){a.push(o.createElement(mc,u({},e,{key:e.key||n,className:t.activityPersona,size:s?Hl.size16:Hl.size32,style:c})))})),r=o.createElement("div",{className:t.personaContainer},a)}return r},n}c(t,e),t.prototype.render=function(){var e=this.props,t=e.onRenderIcon,n=void 0===t?this._onRenderIcon:t,r=e.onRenderActivityDescription,i=void 0===r?this._onRenderActivityDescription:r,a=e.onRenderComments,s=void 0===a?this._onRenderComments:a,l=e.onRenderTimeStamp,c=void 0===l?this._onRenderTimeStamp:l,u=e.animateBeaconSignal,d=e.isCompact,p=this._getClassNames(this.props);return o.createElement("div",{className:p.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&&o.createElement("div",{className:p.activityTypeIcon},u&&d&&o.createElement("div",{className:p.pulsingBeacon}),n(this.props)),o.createElement("div",{className:p.activityContent},i(this.props,this._onRenderActivityDescription),s(this.props,this._onRenderComments),c(this.props,this._onRenderTimeStamp)))},t.prototype._getClassNames=function(e){return ma(Sa(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)}}(o.Component),"backward"),Sc=function(e){function t(t){var n=e.call(this,t)||this;return n._inputElement=o.createRef(),n._autoFillEnabled=!0,n._isComposing=!1,n._onCompositionStart=function(e){n._isComposing=!0,n._autoFillEnabled=!1},n._onCompositionUpdate=function(){Xr()&&n._updateValue(n._getCurrentInputValue(),!0)},n._onCompositionEnd=function(e){var t=n._getCurrentInputValue();n._tryEnableAutofill(t,n.value,!1,!0),n._isComposing=!1,n._async.setTimeout((function(){n._updateValue(n._getCurrentInputValue(),!1)}),0)},n._onClick=function(){n.value&&""!==n.value&&n._autoFillEnabled&&(n._autoFillEnabled=!1)},n._onKeyDown=function(e){if(n.props.onKeyDown&&n.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case Ue:n._autoFillEnabled=!1;break;case et:case nt:n._autoFillEnabled&&(n.setState({inputValue:n.props.suggestedDisplayValue||""}),n._autoFillEnabled=!1);break;default:n._autoFillEnabled||-1!==n.props.enableAutofillOnKeyPress.indexOf(e.which)&&(n._autoFillEnabled=!0)}},n._onInputChanged=function(e){var t=n._getCurrentInputValue(e);if(n._isComposing||n._tryEnableAutofill(t,n.value,e.nativeEvent.isComposing),!Xr()||!n._isComposing){var r=e.nativeEvent.isComposing,o=void 0===r?n._isComposing:r;n._updateValue(t,o)}},n._onChanged=function(){},n._updateValue=function(e,t){if(e||e!==n.value){var r=n.props,o=r.onInputChange,i=r.onInputValueChange;o&&(e=(null===o||void 0===o?void 0:o(e,t))||""),n.setState({inputValue:e},(function(){return null===i||void 0===i?void 0:i(e,t)}))}},or(n),n._async=new de(n),n.state={inputValue:t.defaultVisibleValue||""},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var n=e.updateValueInWillReceiveProps();if(null!==n&&n!==t.inputValue)return{inputValue:n}}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.suggestedDisplayValue,i=r.shouldSelectFullInputValueInComponentDidUpdate,a=0;if(!r.preventValueSelection)if(this._autoFillEnabled&&this.value&&o&&xc(o,this.value)){var s=!1;if(i&&(s=i()),s&&this._inputElement.current)this._inputElement.current.setSelectionRange(0,o.length,Cc);else{for(;a<this.value.length&&this.value[a].toLocaleLowerCase()===o[a].toLocaleLowerCase();)a++;a>0&&this._inputElement.current&&this._inputElement.current.setSelectionRange(a,o.length,Cc)}}else this._inputElement.current&&(null===n||this._autoFillEnabled||this._inputElement.current.setSelectionRange(n.start,n.end,n.dir))},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=$n(this.props,Hn),t=u(u({},this.props.style),{fontFamily:"inherit"});return o.createElement("input",u({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e,t,n=this._inputElement.current;return n&&n.selectionStart!==this.value.length?{start:null!==(e=n.selectionStart)&&void 0!==e?e:n.value.length,end:null!==(t=n.selectionEnd)&&void 0!==t?t:n.value.length,dir:n.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,n,r){!n&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||r)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?function(e,t){var n=e;t&&e&&xc(t,n)&&(n=t);return n}(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"===typeof e?e:(console.warn("props.value of Autofill should be a string, but it is "+e+" with type of "+typeof e),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[rt,tt]},t}(o.Component);function xc(e,t){if(!e||!t)return!1;for(var n=0,r=[e,t];n<r.length;n++){var o=r[n];if("string"!==typeof o)throw new Error(Sc.name+' received non-string value "'+o+'" of type '+typeof o+" from either input's value or suggestedDisplayValue")}return 0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var _c=Ft(),Ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.styles,r=e.as,i=void 0===r?"div":r,a=e.className,s=_c(n,{className:a});return o.createElement(i,u({role:"status",className:s.root},$n(this.props,Jn,["className"])),o.createElement(Be,null,o.createElement("div",{className:s.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(o.Component),kc=Kr(Ec,(function(e){return{root:e.className,screenReaderText:Ii}}));g("@fluentui/react-focus","8.3.2");var wc,Ic=1,Pc=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(wc||(wc={}));var Tc,Dc="data-is-focusable",Ac="data-focuszone-id",Rc="tabindex",Nc="data-no-vertical-wrap",Mc="data-no-horizontal-wrap",Fc=999999999,Bc=-999999999;var Oc={},Lc=new Set,Hc=["text","number","password","email","tel","url","search"],Vc=!1,zc=function(e){function t(n){var r,i,a,s,l=e.call(this,n)||this;l._root=o.createRef(),l._mergedRef=Jr(),l._onFocus=function(e){if(!l._portalContainsElement(e.target)){var t,n=l.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,c=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=l._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==l._root.current;){if(yn(p)&&l._isImmediateDescendantOfZone(p)){t=p;break}p=kt(p,Vc)}if(c&&e.target===l._root.current){var h=u&&"function"===typeof u&&u(l._root.current);h&&yn(h)?(t=h,h.focus()):(l.focus(!0),l._activeElement&&(t=null))}var m=!l._activeElement;t&&t!==l._activeElement&&((d||m)&&l._setFocusAlignment(t,!0,!0),l._activeElement=t,m&&l._updateTabIndexes()),r&&r(l._activeElement,e),(i||o)&&e.stopPropagation(),s?s(e):a&&a()}},l._onBlur=function(){l._setParkedFocus(!1)},l._onMouseDown=function(e){if(!l._portalContainsElement(e.target)&&!l.props.disabled){for(var t=e.target,n=[];t&&t!==l._root.current;)n.push(t),t=kt(t,Vc);for(;n.length&&((t=n.pop())&&yn(t)&&l._setActiveElement(t,!0),!bn(t)););}},l._onKeyDown=function(e,t){if(!l._portalContainsElement(e.target)){var n=l.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!o&&(l.props.onKeyDown&&l.props.onKeyDown(e),!e.isDefaultPrevented()&&(l._getDocument().activeElement!==l._root.current||!l._isInnerZone))){if((s&&s(e)||i&&i(e))&&l._isImmediateDescendantOfZone(e.target)){var c=l._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!Cn(e.target))return;if(!l.focusElement(gn(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case Xe:if(l._shouldRaiseClicksOnSpace&&l._tryInvokeClickForFocusable(e.target))break;return;case et:if(r!==wc.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusLeft(t)))break;return;case nt:if(r!==wc.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusRight(t)))break;return;case tt:if(r!==wc.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusUp()))break;return;case rt:if(r!==wc.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusDown()))break;return;case Ze:if(!a&&l._moveFocusPaging(!0))break;return;case Qe:if(!a&&l._moveFocusPaging(!1))break;return;case We:if(l.props.allowTabKey||l.props.handleTabKey===Ic||l.props.handleTabKey===Pc&&l._isElementInput(e.target)){var u=!1;if(l._processingTabKey=!0,r!==wc.vertical&&l._shouldWrapFocus(l._activeElement,Mc))u=(xt(t)?!e.shiftKey:e.shiftKey)?l._moveFocusLeft(t):l._moveFocusRight(t);else u=e.shiftKey?l._moveFocusUp():l._moveFocusDown();if(l._processingTabKey=!1,u)break;l.props.shouldResetActiveElementWhenTabFromZone&&(l._activeElement=null)}return;case $e:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!1))return!1;var d=l._root.current&&l._root.current.firstChild;if(l._root.current&&d&&l.focusElement(gn(l._root.current,d,!0)))break;return;case Je:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!0))return!1;var p=l._root.current&&l._root.current.lastChild;if(l._root.current&&l.focusElement(fn(l._root.current,p,!0,!0,!0)))break;return;case Ge:if(l._shouldRaiseClicksOnEnter&&l._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},l._getHorizontalDistanceFromCenter=function(e,t,n){var r=l._focusAlignment.left||l._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):l._shouldWrapFocus(l._activeElement,Nc)?Fc:Bc},or(l),Ne("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),l._id=wn("FocusZone"),l._focusAlignment={left:0,top:0},l._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return l._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:c,l._shouldRaiseClicksOnSpace=null!==(s=n.shouldRaiseClicksOnSpace)&&void 0!==s?s:c,l}return c(t,e),t.getOuterZones=function(){return Lc.size},t._onKeyDownCapture=function(e){e.which===We&&Lc.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Oc[this._id]=this,e){this._windowElement=ue(e);for(var n=kt(e,Vc);n&&n!==this._getDocument().body&&1===n.nodeType;){if(bn(n)){this._isInnerZone=!0;break}n=kt(n,Vc)}this._isInnerZone||(Lc.add(this),this._windowElement&&1===Lc.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return yn(n)&&vn(n)?n:gn(e,n,!0)||fn(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Oc[this._id],this._isInnerZone||(Lc.delete(this),this._windowElement&&0===Lc.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,i=t.rootProps,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=$n(this.props,An),d=n||r||"div";this._evaluateFocusBeforeRender();var p=ra();return o.createElement(d,u({"aria-labelledby":s,"aria-describedby":a},c,i,{className:Zt((Tc||(Tc=$({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Tc),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Dc)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Oc[t.getAttribute(Ac)];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&wt(this._root.current,this._activeElement)&&yn(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(gn(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(fn(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=wt(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=kt(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(bn(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e){if(e===this._root.current)return!1;do{if("BUTTON"===e.tagName||"A"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName)return!1;if(this._isImmediateDescendantOfZone(e)&&"true"===e.getAttribute(Dc)&&"true"!==e.getAttribute("data-disable-click-on-enter"))return At(e),!0;e=kt(e,Vc)}while(e!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(bn(e))return Oc[e.getAttribute(Ac)];for(var t=e.firstElementChild;t;){if(bn(t))return Oc[t.getAttribute(Ac)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===wc.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?gn(this._root.current,o):fn(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(gn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(fn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,Nc)?Fc:Bc:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,Nc)?Fc:Bc:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Mc);return!!this._moveFocus(xt(e),(function(r,o){var i=-1;return(xt(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==wc.vertical?i=r.right-o.right:n||(i=Bc),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Mc);return!!this._moveFocus(!xt(e),(function(r,o){var i=-1;return(xt(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==wc.vertical?i=o.left-r.left:n||(i=Bc),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=ke(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?gn(this._root.current,n):fn(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(c.bottom),h=Math.floor(u.bottom),m=Math.floor(c.top),f=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>p+l||!e&&h<m-l)break;f>-1&&(e&&d>a?(a=d,o=f,i=n):!e&&h<s?(s=h,o=f,i=n):(-1===o||f<=o)&&(o=f,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(gn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(fn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===wc.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=kt(e,Vc);t&&t!==this._root.current&&t!==this._getDocument().body;){if(bn(t))return t;t=kt(t,Vc)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!wt(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!yn(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];bn(r)?"true"===r.getAttribute(Dc)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Rc)&&r.setAttribute(Rc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Rc)&&r.setAttribute(Rc,"0"))):(r.getAttribute&&"false"===r.getAttribute(Dc)&&r.setAttribute(Rc,"-1"),yn(r)?this.props.disabled?r.setAttribute(Rc,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Rc)&&r.setAttribute(Rc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Rc)&&r.setAttribute(Rc,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Hc.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Sn(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Tt(e,this._root.current)},t.prototype._getDocument=function(){return ve(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:wc.bidirectional,shouldRaiseClicks:!0},t}(o.Component),Uc=Ft(),Wc=function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},Gc=function(e,t){t.as;var n=t.disabled,r=t.target,o=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,d(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"===typeof e?"a"===e?u({target:r,href:n?void 0:o},i):"button"===e?u({type:"button",disabled:n},i):u(u({},i),{disabled:n}):u({target:r,href:o,disabled:n},i)},jc=o.forwardRef((function(e,t){var n=function(e,t){var n=e.as,r=e.className,i=e.disabled,a=e.href,s=e.onClick,l=e.styles,c=e.theme,d=e.underline,p=o.useRef(null),h=Ss(p,t);Wc(e,p),gr(p);var m=Uc(l,{className:r,isButton:!a,isDisabled:i,isUnderlined:d,theme:c}),f=n||(a?"a":"button");return{state:{},slots:{root:f},slotProps:{root:u(u({},Gc(f,e)),{"aria-disabled":i,className:m.root,onClick:function(e){i?e.preventDefault():s&&s(e)},ref:h})}}}(e,t),r=n.slots,i=n.slotProps;return o.createElement(r.root,u({},i.root))}));jc.displayName="LinkBase";var qc,Kc={root:"ms-Link"},Yc=Kr(jc,(function(e){var t,n,r,o,i,a,s=e.className,l=e.isButton,c=e.isDisabled,u=e.isUnderlined,d=e.theme,p=d.semanticColors,h=p.link,m=p.linkHovered,f=p.disabledText,g=p.focusBorder,v=Mi(Kc,d);return{root:[v.root,d.fonts.medium,{color:h,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:u?"underline":"none",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+g+" inset",outline:"1px auto "+g,selectors:(n={},n[Ci]={outline:"1px solid WindowText"},n)}},t[Ci]={borderBottom:"none"},t)},l&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(r={},r[Ci]={color:"LinkText",forcedColorAdjust:"none"},r)},!l&&{selectors:(o={},o[Ci]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},c&&["is-disabled",{color:f,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!c&&{selectors:{"&:active, &:hover, &:active:hover":{color:m,textDecoration:"underline",selectors:(i={},i[Ci]={color:"LinkText"},i)},"&:focus":{color:h,selectors:(a={},a[Ci]={color:"LinkText"},a)}}},v.root,s]}}),void 0,{scope:"Link"});function Xc(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function Qc(e){return!(!e.subMenuProps&&!e.items)}function Zc(e){return!(!e.isDisabled&&!e.disabled)}function Jc(e){return null!==Xc(e)?"menuitemcheckbox":"menuitem"}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(qc||(qc={}));var $c=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return o.createElement(Ll,u({},r,{className:n.icon}))},eu=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,$c):$c(e):null},tu=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Xc(n);if(t){return o.createElement(Ll,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},nu=function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null},ru=function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null},ou=function(e){var t=e.item,n=e.classNames,r=e.theme;return Qc(t)?o.createElement(Ll,u({iconName:xt(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},iu=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();Qc(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;Qc(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:tu,renderItemIcon:eu,renderItemName:nu,renderSecondaryText:ru,renderSubMenuIcon:ou}))},t.prototype._renderLayout=function(e,t){return o.createElement(o.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(o.Component),au=Gt((function(e){return ne({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),su=36,lu=_i(0,639),cu=Gt((function(){var e;return{selectors:(e={},e[Ci]=u({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),e)}})),uu=Gt((function(e){var t,n,r,o,i,a,s,l=e.semanticColors,c=e.fonts,d=e.palette,p=l.menuItemBackgroundHovered,h=l.menuItemTextHovered,m=l.menuItemBackgroundPressed,f=l.bodyDivider;return te({item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Ei(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:su,lineHeight:su,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Ci]=u({color:"GrayText",opacity:1},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},rootHovered:u({backgroundColor:p,color:h,selectors:{".ms-ContextualMenu-icon":{color:d.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},cu()),rootFocused:u({backgroundColor:d.white},cu()),rootChecked:u({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:d.neutralPrimary}}},cu()),rootPressed:u({backgroundColor:m,selectors:{".ms-ContextualMenu-icon":{color:d.themeDark},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},cu()),rootExpanded:u({backgroundColor:m,color:l.bodyTextChecked},cu()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:su,fontSize:di.medium,width:di.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[lu]={fontSize:di.large,width:di.large},n)},iconColor:{color:l.menuIcon,selectors:(r={},r[Ci]={color:"inherit"},r["$root:hover &"]={selectors:(o={},o[Ci]={color:"HighlightText"},o)},r["$root:focus &"]={selectors:(i={},i[Ci]={color:"HighlightText"},i)},r)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[Ci]={color:"HighlightText"},a)},subMenuIcon:{height:su,lineHeight:su,color:d.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:di.small,selectors:(s={":hover":{color:d.neutralPrimary},":active":{color:d.neutralPrimary}},s[lu]={fontSize:di.medium},s[Ci]={color:"HighlightText"},s)},splitButtonFlexContainer:[Ei(e),{display:"flex",height:su,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),du="28px",pu=_i(0,639),hu=Gt((function(e){var t;return ne(au(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[pu]={right:32},t)},divider:{height:16,width:1}})})),mu={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},fu=Gt((function(e,t,n,r,o,i,a,s,l,c,u,d){var p,h,m,f,g=uu(e),v=Mi(mu,e);return ne({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,p[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},r&&["is-checked",g.rootChecked],(t||u)&&["is-disabled",g.rootDisabled],!(t||u)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+v.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,h[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:du},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(m={":hover":g.rootHovered,":active":g.rootPressed},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},m)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(f={},f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,f)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,Ii,{visibility:"hidden"}]})})),gu=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return fu(t,n,r,o,i,a,s,l,c,u,d,p)},vu=Kr(iu,gu,void 0,{scope:"ContextualMenuItem"}),yu=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},or(n),n}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return!pe(e,this.props)},t}(o.Component);function bu(e,t){return!!gt(e,(function(e){return function(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,r=t.modifierKeys;if(!n&&r||n&&!r)return!1;if(n&&r){if(n.length!==r.length)return!1;n=n.sort(),r=r.sort();for(var o=0;o<n.length;o++)if(n[o]!==r[o])return!1}return!0}(e,t)}))}var Cu,Su="data-ktp-target",xu="data-ktp-execute-target",_u="ktp-layer-id";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Cu||(Cu={}));var Eu=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Cu.PERSISTED_KEYTIP_ADDED:Cu.KEYTIP_ADDED;ge.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||ge.raise(this,Cu.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Cu.PERSISTED_KEYTIP_REMOVED:Cu.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||ge.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){ge.raise(this,Cu.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){ge.raise(this,Cu.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=h(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return u(u({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){ge.raise(this,Cu.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=wn()),{keytip:u({},e),uniqueID:t}},e._instance=new e,e}();function ku(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function wu(e,t){var n=t.length,r=h(t).pop();return function(e,t,n){var r=e.slice();return r.splice(t,0,n),r}(h(e),n-1,r)}function Iu(e){return'[data-ktp-target="'+ku(e)+'"]'}function Pu(e){var t=o.useRef(),n=e.keytipProps?u({disabled:e.disabled},e.keytipProps):void 0,r=gs(Eu.getInstance()),i=_s(e);o.useLayoutEffect((function(){t.current&&n&&((null===i||void 0===i?void 0:i.keytipProps)!==e.keytipProps||(null===i||void 0===i?void 0:i.disabled)!==e.disabled)&&r.update(n,t.current)})),o.useLayoutEffect((function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}}),[]);var a={ariaDescribedBy:void 0,keytipId:void 0};return n&&(a=function(e,t,n){var r=e.addParentOverflow(t),o=mt(n,function(e){var t=" ktp-layer-id";return e.length?t+" "+ku(e):t}(r.keySequences)),i=h(r.keySequences);r.overflowSetSequence&&(i=wu(i,r.overflowSetSequence));var a=ku(i);return{ariaDescribedBy:o,keytipId:a}}(r,n,e.ariaDescribedBy)),a}var Tu=function(e){var t,n=e.children,r=Pu(d(e,["children"])),o=r.keytipId,i=r.ariaDescribedBy;return n(((t={})[Su]=o,t[xu]=o,t["aria-describedby"]=i,t))};var Du=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Gt((function(e){return u(u({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?vu:d,h=t.expandedMenuItemKey,m=t.onItemClick,f=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,y=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(y=y||"nofollow noopener noreferrer");var b=Qc(n),C=$n(n,On),S=Zc(n),x=n.itemProps,_=n.ariaDescription,E=n.keytipProps;E&&b&&(E=this._getMemoizedMenuButtonKeytipProps(E)),_&&(this._ariaDescriptionId=wn());var k=mt(n.ariaDescribedBy,_?this._ariaDescriptionId:void 0,C["aria-describedby"]),w={"aria-describedby":k};return o.createElement("div",null,o.createElement(Tu,{keytipProps:n.keytipProps,ariaDescribedBy:k,disabled:S},(function(t){return o.createElement("a",u({},w,C,t,{ref:e._anchor,href:n.href,target:n.target,rel:y,className:r.root,role:"menuitem","aria-haspopup":b||void 0,"aria-expanded":b?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Zc(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:b?e._onItemKeyDown:void 0}),o.createElement(p,u({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:c,openSubMenu:f,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},x)),e._renderAriaDescription(_,r.screenReaderText))})))},t}(yu),Au=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=o.createRef(),t._getMemoizedMenuButtonKeytipProps=Gt((function(e){return u(u({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?vu:d,h=t.expandedMenuItemKey,m=t.onItemMouseDown,f=t.onItemClick,g=t.openSubMenu,v=t.dismissSubMenu,y=t.dismissMenu,b=Xc(n),C=null!==b,S=Jc(n),x=Qc(n),_=n.itemProps,E=n.ariaLabel,k=n.ariaDescription,w=$n(n,Ln);delete w.disabled;var I=n.role||S;k&&(this._ariaDescriptionId=wn());var P=mt(n.ariaDescribedBy,k?this._ariaDescriptionId:void 0,w["aria-describedby"]),T={className:r.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return m?m(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":E,"aria-describedby":P,"aria-haspopup":x||void 0,"aria-expanded":x?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":Zc(n),"aria-checked":"menuitemcheckbox"!==I&&"menuitemradio"!==I||!C?void 0:!!b,"aria-selected":"menuitem"===I&&C?!!b:void 0,role:I,style:n.style},D=n.keytipProps;return D&&x&&(D=this._getMemoizedMenuButtonKeytipProps(D)),o.createElement(Tu,{keytipProps:D,ariaDescribedBy:P,disabled:Zc(n)},(function(t){return o.createElement("button",u({ref:e._btn},w,T,t),o.createElement(p,u({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&f?f:void 0,hasIcons:c,openSubMenu:g,dismissSubMenu:v,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},_)),e._renderAriaDescription(k,r.screenReaderText))}))},t}(yu),Ru=Ft(),Nu=o.forwardRef((function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,a=e.className,s=Ru(n,{theme:r,getClassNames:i,className:a});return o.createElement("span",{className:s.wrapper,ref:t},o.createElement("span",{className:s.divider}))}));Nu.displayName="VerticalDividerBase";var Mu,Fu=Kr(Nu,(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Bu=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Gt((function(e){return u(u({},e),{hasMenu:!0})})),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===Ge?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?o.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(u(u({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(u(u({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new de(n),n._events=new ge(n),n}return c(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,d=t.onItemMouseLeave,p=t.expandedMenuItemKey,h=Qc(n),m=n.keytipProps;m&&(m=this._getMemoizedMenuButtonKeytipProps(m));var f=n.ariaDescription;return f&&(this._ariaDescriptionId=wn()),o.createElement(Tu,{keytipProps:m,disabled:Zc(n)},(function(t){return o.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:Jc(n),"aria-label":n.ariaLabel,className:r.splitContainer,"aria-disabled":Zc(n),"aria-expanded":h?n.key===p:void 0,"aria-haspopup":!0,"aria-describedby":mt(n.ariaDescribedBy,f?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(e,u(u({},n),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,r,i,l,c),e._renderSplitDivider(n),e._renderSplitIconButton(n,r,i,t),e._renderAriaDescription(f,r.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?vu:s,c=a.onItemClick,d={key:e.key,disabled:Zc(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return o.createElement("button",u({},$n(d,Ln)),o.createElement(l,u({"data-is-focusable":!1,item:d,classNames:t,index:n,onCheckmarkClick:r&&c?c:void 0,hasIcons:i},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||hu;return o.createElement(Fu,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?vu:a,l=i.onItemMouseLeave,c=i.onItemMouseDown,d=i.openSubMenu,p=i.dismissSubMenu,h=i.dismissMenu,m={onClick:this._onIconItemClick,disabled:Zc(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},f=u(u({},$n(m,Ln)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,e):void 0,onMouseDown:function(t){return c?c(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return o.createElement("button",u({},f),o.createElement(s,u({componentRef:e.componentRef,item:m,classNames:t,index:n,hasIcons:!1,openSubMenu:d,dismissSubMenu:p,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(yu),Ou=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return c(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=rr);var r=[],o=function(o){"function"!==typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[o].apply(t,e)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(o.Component);!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Mu||(Mu={}));var Lu,Hu,Vu=[479,639,1023,1365,1919,99999999];function zu(){var e;return null!==(e=null!==Lu&&void 0!==Lu?Lu:Hu)&&void 0!==e?e:Mu.large}function Uu(e){var t,n=((t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=Wu(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new ge(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:zu()},n}return c(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Mu.unknown?null:o.createElement(e,u({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(Ou)).contextType=ws,t);return ln(e,n)}function Wu(e){var t=Mu.small;if(e){try{for(;e.innerWidth>Vu[t];)t++}catch(SR){t=zu()}Hu=t}else{if(void 0===Lu)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=Lu}return t}var Gu=function(e,t){var n=o.useState(zu()),r=n[0],i=n[1],a=o.useCallback((function(){var t=Wu(ue(e.current));r!==t&&i(t)}),[e,r]);return xs(Is(),"resize",a),o.useEffect((function(){void 0===t&&a()}),[t]),null!==t&&void 0!==t?t:r},ju=o.createContext({}),qu=Ft(),Ku=Ft(),Yu={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Ta,beakWidth:16};function Xu(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Qu="ContextualMenu",Zu=Gt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return oe.apply(void 0,h([t,gu],e))}}));function Ju(e,t){var n=e.hidden,r=e.items,i=e.theme,a=e.className,s=e.id,l=o.useState(),c=l[0],u=l[1],d=o.useState(),p=d[0],h=d[1],m=o.useState(),f=m[0],g=m[1],v=Cs(Qu,s),y=o.useCallback((function(){g(void 0),u(void 0),h(void 0)}),[]),b=o.useCallback((function(e,t,n){var r=e.key;c!==r&&(t.focus(),g(n),u(r),h(t))}),[c]);o.useEffect((function(){n&&y()}),[n,y]);var C=function(e,t){var n=o.useRef(!1);return o.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,y);return[c,b,function(){var e=od(c,r),t=null;return e&&(t={items:Xu(e),target:p,onDismiss:C,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:f,directionalHint:xt(i)?Da:Na,className:a,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&he(t,e.subMenuProps)),t},C]}function $u(e,t,n,r){var i=e.theme,a=e.isSubMenu,s=e.focusZoneProps,l=void 0===s?{}:s,c=l.checkForNoWrap,u=l.direction,d=void 0===u?wc.vertical:u,p=o.useRef(),h=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},m=function(e){return e.which===Ye||function(e){var t=xt(i)?nt:et;return!(e.which!==t||!a)&&!(d!==wc.vertical&&(!c||Sn(e.target,"data-no-horizontal-wrap")))}(e)||e.which===tt&&(e.altKey||e.metaKey)},f=function(e){p.current=td(e);var t=e.which===Ye&&(Mr()||Nr());return h(e,m,t)},g=function(e){var t=p.current&&td(e);return p.current=!1,!!t&&!(Nr()||Mr())};return[f,function(e){return h(e,g,!0)},function(e){if(!f(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),r=e.which===tt,o=e.which===rt;if(!t&&(r||o)){var i=r?hn(n.current,n.current.lastChild,!0):pn(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=xt(i)?et:nt;e.disabled||t.which!==n&&t.which!==Ge&&(t.which!==rt||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget,!1),t.preventDefault())}]}var ed=o.memo(o.forwardRef((function(e,t){var n,r,i=Qr(Yu,e),a=(i.ref,d(i,["ref"])),s=o.useRef(null),l=vs(),c=Cs(Qu,a.id);As({name:Qu,props:a,deprecations:{getMenuClassNames:"styles"}});var p=function(e,t){var n;return null===(n=a.onDismiss)||void 0===n?void 0:n.call(a,e,t)},h=Ts(a.target,s),m=h[0],f=h[1],g=function(e,t){var n=e.hidden,r=e.onRestoreFocus,i=o.useRef(),a=o.useCallback((function(e){var t,n;r?r(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t))}),[r]);return o.useLayoutEffect((function(){var e;n?i.current&&(a({originalElement:i.current,containsFocus:!0,documentContainsFocus:(null===(e=ve())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0):i.current=null===t||void 0===t?void 0:t.document.activeElement}),[n,null===t||void 0===t?void 0:t.document.activeElement,a]),[a]}(a,f)[0],v=Ju(a,p),y=v[0],b=v[1],C=v[2],S=v[3],x=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=o.useRef(!t),i=o.useRef(!1);o.useEffect((function(){r.current=!t,i.current=!n&&!t&&i.current}),[t,n]);var a=o.useCallback((function(){t&&(r.current=!0)}),[t]);return[r,i,a]}(a),_=x[0],E=x[1],k=x[2],w=function(e){var t=o.useRef(!0),n=o.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout((function(){t.current=!0}),250)},t]}(l),I=w[0],P=w[1],T=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,i=o.useRef(void 0),a=function(){void 0!==i.current&&(t.clearTimeout(i.current),i.current=void 0)};return[a,function(e){i.current=t.setTimeout((function(){e(),a()}),r)},i]}(a,l),D=T[0],A=T[1],R=T[2],N=Gu(s,a.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,i=e.onMenuDismissed,a=e.onMenuOpened,s=_s(r),l=o.useRef(a),c=o.useRef(i),u=o.useRef(e);l.current=a,c.current=i,u.current=e,o.useEffect((function(){var e,t;r&&!1===s?null===(e=c.current)||void 0===e||e.call(c,u.current):r||!1===s||null===(t=l.current)||void 0===t||t.call(l,u.current)}),[r,s]),o.useEffect((function(){return function(){var e;return null===(e=c.current)||void 0===e?void 0:e.call(c,u.current)}}),[])}(a);var M=$u(a,p,s,b),F=M[0],B=M[1],O=M[2],L=M[3],H=function(e,t,n,r,o,i,a,s,l,c,u,d,p){var h=function(){return!t.current||!i.current},m=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(c(),void 0===a&&r.focus(),Qc(e)?(t.stopPropagation(),l((function(){r.focus(),u(e,r,!0)}))):l((function(){d(t),r.focus()})))},f=function(e,t,n){var r=Xu(e);c(),Qc(e)||r&&r.length?e.key!==a&&u(e,n,0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType):g(e,t),t.stopPropagation(),t.preventDefault()},g=function(t,n){if(!t.disabled&&!t.isDisabled){var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),!r&&n.defaultPrevented||p(n,!0)}};return[function(e,t,n){h()||m(e,t,n)},function(e,a,s){var l=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===r||void 0===r?void 0:r.document.activeElement)&&m(e,a,s))},function(e,t){var n;if(!h()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(SR){}else null===(n=s.current)||void 0===n||n.focus()},function(e,t){f(e,t,t.currentTarget)},function(e,t){g(e,t),t.stopPropagation()},g,f]}(a,P,R,f,_,E,y,s,A,D,b,S,p),V=H[0],z=H[1],U=H[2],W=H[3],G=H[4],j=H[5],q=H[6],K=function(e,t,n){var r=0,i=e.items,a=e.totalItemCount,s=e.hasCheckmarks,l=e.hasIcons;return o.createElement("ul",{className:t.list,onKeyDown:F,onKeyUp:B,role:"presentation"},i.map((function(e,n){var o=Y(e,n,r,a,s,l,t);if(e.itemType!==qc.Divider&&e.itemType!==qc.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=i}return o})))},Y=function(e,t,n,r,i,s,l){var c,u,d=[],p=e.iconProps||{iconName:"None"},h=e.getItemClassNames,m=e.itemProps,f=m?m.styles:void 0,g=e.itemType===qc.Divider?e.className:void 0,v=e.submenuIconProps?e.submenuIconProps.className:"";if(h)u=h(a.theme,Zc(e),y===e.key,!!Xc(e),!!e.href,"None"!==p.iconName,e.className,g,p.className,v,e.primaryDisabled);else{var b={theme:a.theme,disabled:Zc(e),expanded:y===e.key,checked:!!Xc(e),isAnchorLink:!!e.href,knownIcon:"None"!==p.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:p.className,subMenuClassName:v,primaryDisabled:e.primaryDisabled};u=Ku(Zu(null===(c=l.subComponentStyles)||void 0===c?void 0:c.menuItem,f),b)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=qc.Divider),e.itemType){case qc.Divider:d.push(Z(t,u));break;case qc.Header:d.push(Z(t,u));var C=$(e,u,l,t,i,s);d.push(Q(C,e.key||t,u,e.title));break;case qc.Section:d.push(X(e,u,l,t,i,s));break;default:var S=J(e,u,t,n,r,i,s);d.push(Q(S,e.key||t,u,e.title))}return o.createElement(o.Fragment,{key:e.key},d)},X=function(e,t,n,r,i,a){var s=e.sectionProps;if(s){var l,d;if(s.title){var p=void 0,h="";if("string"===typeof s.title){var m=c+s.title.replace(/\s/g,"");p={key:"section-"+s.title+"-title",itemType:qc.Header,text:s.title,id:m},h=m}else{var f=s.title.id||c+s.title.key.replace(/\s/g,"");p=u(u({},s.title),{id:f}),h=f}p&&(d={role:"group","aria-labelledby":h},l=$(p,t,n,r,i,a))}return s.items&&s.items.length>0?o.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+r},o.createElement("div",u({},d),o.createElement("ul",{className:n.list,role:"presentation"},s.topDivider&&Z(r,t,!0,!0),l&&Q(l,e.key||r,t,e.title),s.items.map((function(e,t){return Y(e,t,t,s.items.length,i,a,n)})),s.bottomDivider&&Z(r,t,!1,!0)))):void 0}},Q=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Z=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},J=function(e,t,n,r,i,s,l){if(e.onRender)return e.onRender(u({"aria-posinset":r+1,"aria-setsize":i},e),p);var c={item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:s,hasIcons:l,contextualMenuItemAs:a.contextualMenuItemAs,onItemMouseEnter:V,onItemMouseLeave:U,onItemMouseMove:z,onItemMouseDown:nd,executeItemClick:j,onItemKeyDown:L,expandedMenuItemKey:y,openSubMenu:b,dismissSubMenu:S,dismissMenu:p};return e.href?o.createElement(Du,u({},c,{onItemClick:G})):e.split&&Qc(e)?o.createElement(Bu,u({},c,{onItemClick:W,onItemClickBase:q,onTap:D})):o.createElement(Au,u({},c,{onItemClick:W,onItemClickBase:q}))},$=function(e,t,n,r,i,s){var l=a.contextualMenuItemAs,c=void 0===l?vu:l,d=e.itemProps,p=e.id,h=d&&$n(d,Jn);return o.createElement("div",u({id:p,className:n.header},h,{style:e.style}),o.createElement(c,u({item:e,classNames:t,index:r,onCheckmarkClick:i?W:void 0,hasIcons:s},d)))},ee=a.isBeakVisible,te=a.items,ne=a.labelElementId,re=a.id,oe=a.className,ie=a.beakWidth,ae=a.directionalHint,se=a.directionalHintForRTL,le=a.alignTargetEdge,ce=a.gapSpace,ue=a.coverTarget,de=a.ariaLabel,pe=a.doNotLayer,he=a.target,me=a.bounds,fe=a.useTargetWidth,ge=a.useTargetAsMinWidth,ye=a.directionalHintFixed,be=a.shouldFocusOnMount,Ce=a.shouldFocusOnContainer,Se=a.title,xe=a.styles,_e=a.theme,Ee=a.calloutProps,ke=a.onRenderSubMenu,we=void 0===ke?rd:ke,Ie=a.onRenderMenuList,Pe=void 0===Ie?function(e,t){return K(e,Ae)}:Ie,Te=a.focusZoneProps,De=a.getMenuClassNames,Ae=De?De(_e,oe):qu(xe,{theme:_e,className:oe}),Re=function e(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.iconProps)return!0;if(o.itemType===qc.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(te);var Ne,Me=u(u({},Te),{className:Ae.root,isCircularNavigation:!0,handleTabKey:Ic,direction:null!==(r=null===(n=a.focusZoneProps)||void 0===n?void 0:n.direction)&&void 0!==r?r:wc.vertical}),Fe=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(te),Be=y&&!0!==a.hidden?C():null;ee=void 0===ee?N<=Mu.medium:ee;var Oe=m.current;if((fe||ge)&&Oe&&Oe.offsetWidth){var Le=Oe.getBoundingClientRect().width-2;fe?Ne={width:Le}:ge&&(Ne={minWidth:Le})}if(te&&te.length>0){for(var He=0,Ve=0,ze=te;Ve<ze.length;Ve++){var Ue=ze[Ve];if(Ue.itemType!==qc.Divider&&Ue.itemType!==qc.Header){var We=Ue.customOnRenderListLength?Ue.customOnRenderListLength:1;He+=We}}var Ge=Ae.subComponentStyles?Ae.subComponentStyles.callout:void 0;return o.createElement(ju.Consumer,null,(function(e){return o.createElement(ul,u({styles:Ge,onRestoreFocus:g},Ee,{target:he||e.target,isBeakVisible:ee,beakWidth:ie,directionalHint:ae,directionalHintForRTL:se,gapSpace:ce,coverTarget:ue,doNotLayer:pe,className:Zt("ms-ContextualMenu-Callout",Ee&&Ee.className),setInitialFocus:be,onDismiss:a.onDismiss||e.onDismiss,onScroll:I,bounds:me,directionalHintFixed:ye,alignTargetEdge:le,hidden:a.hidden||e.hidden,ref:t}),o.createElement("div",{style:Ne,ref:s,id:re,className:Ae.container,tabIndex:Ce?0:-1,onKeyDown:O,onKeyUp:B,onFocusCapture:k,"aria-label":de,"aria-labelledby":ne,role:"menu"},Se&&o.createElement("div",{className:Ae.title}," ",Se," "),te&&te.length?function(e,t){var n=a.focusZoneAs,r=void 0===n?zc:n;return o.createElement(r,u({},t),e)}(Pe({ariaLabel:de,items:te,totalItemCount:He,hasCheckmarks:Fe,hasIcons:Re,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return Y(e,n,r,o,i,a,t)}(e,Ae)},labelElementId:ne},(function(e,t){return K(e,Ae)})),Me):null,Be&&we(Be,rd)))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pe(e,t)}));function td(e){return e.which===Ke||"Meta"===e.key}function nd(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function rd(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function od(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===qc.Section&&o.sectionProps){var i=od(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}ed.displayName="ContextualMenuBase";var id={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function ad(e){return o.createElement(sd,u({},e))}var sd=Kr(ed,(function(e){var t=e.className,n=e.theme,r=Mi(id,n),o=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:ui.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:su,lineHeight:su,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}}),(function(){return{onRenderSubMenu:ad}}),{scope:"ContextualMenu"}),ld=sd;ld.displayName="ContextualMenu";var cd,ud,dd={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},pd=Gt((function(e,t,n,r,o,i,a,s,l,c,u){var d,p,h=Mi(dd,e||{}),m=c&&!u;return ne({root:[h.msButton,t.root,r,l&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover ."+h.msButtonIcon]=t.iconExpandedHovered,d[":hover ."+h.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[dd.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!m&&!l&&{selectors:(p={":hover":t.rootHovered},p[":hover ."+h.msButtonLabel]=t.labelHovered,p[":hover ."+h.msButtonIcon]=t.iconHovered,p[":hover ."+h.msButtonDescription]=t.descriptionHovered,p[":hover ."+h.msButtonMenuIcon]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active ."+h.msButtonIcon]=t.iconPressed,p[":active ."+h.msButtonDescription]=t.descriptionPressed,p[":active ."+h.msButtonMenuIcon]=t.menuIconPressed,p)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!m&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),hd=Gt((function(e,t,n,r,o){return{root:$(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:$(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:$(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:$(e.splitButtonFlexContainer),divider:$(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}})),md="BaseButton",fd=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=o.createRef(),n._splitButtonContainer=o.createRef(),n._mergedRef=Jr(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=Gt((function(e){return u(u({},e),{hasMenu:!0})})),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var i=r.className,a=r.imageProps,s=d(r,["className","imageProps"]);if(r.styles)return o.createElement(Ll,u({className:Zt(n._classNames.icon,i),imageProps:a},s));if(r.iconName)return o.createElement(Fl,u({className:Zt(n._classNames.icon,i)},s));if(a)return o.createElement(jl,u({className:Zt(n._classNames.icon,i),imageProps:a},s))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,i=e.secondaryText,a=void 0===i?n.props.description:i,s=e.onRenderText,l=void 0===s?n._onRenderText:s,c=e.onRenderDescription,u=void 0===c?n._onRenderDescription:c;return t||"string"===typeof r||a?o.createElement("span",{className:n._classNames.textContainer},l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)):[l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"===typeof t&&(e=t),n._hasText()?o.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"===typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?o.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?o.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return o.createElement(Fl,u({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.persistMenu,r=n.state.menuHidden,i=n.props.menuAs||ld;return e.ariaLabel||e.labelElementId||!n._hasText()||(e=u(u({},e),{labelElementId:n._labelId})),o.createElement(i,u({id:n._labelId+"-menu",directionalHint:wa},e,{shouldFocusOnContainer:n._menuShouldFocusOnContainer,shouldFocusOnMount:n._menuShouldFocusOnMount,hidden:t?r:void 0,className:Zt("ms-BaseButton-menuhost",e.className),target:n._isSplitButton?n._splitButtonContainer.current:n._buttonElement.current,onDismiss:n._onDismissMenu}))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&Tt(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu(),!n._processingTouch&&n.props.onClick?n.props.onClick(e):n._processingTouch&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||e.which!==Ge&&e.which!==Xe?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===Ge||e.which===Xe?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var t=e.which===tt,r=e.which===rt;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var o=n.props.onMenuClick;o&&o(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==Ge&&e.which!==Xe||hr(!0,e.target),!e.altKey&&!e.metaKey&&(t||r))if(!n.state.menuHidden&&n.props.menuProps)(void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props.onMenuClick;if(t&&t(e,n.props),!e.defaultPrevented){var r=0!==e.nativeEvent.detail||"mouse"===e.nativeEvent.pointerType;n._onToggleMenu(r),e.preventDefault(),e.stopPropagation()}},or(n),n._async=new de(n),n._events=new ge(n),Ae(md,t,["menuProps","onClick"],"split",n.props.split),Ne(md,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=wn(),n._descriptionId=wn(),n._ariaDescriptionId=wn(),n.state={menuHidden:!0},n}return c(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,d=t.href,p=t.iconProps,h=t.menuIconProps,m=t.styles,f=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,C=t.role,S=this.state.menuHidden,x=a||l;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,x,f,!S,!!this.props.menuProps,this.props.split,!!s):pd(v,m,i,g,p&&p.className,h&&h.className,x,!!this.props.menuProps,f,!S,this.props.split);var _=this,E=_._ariaDescriptionId,k=_._labelId,w=_._descriptionId,I=!x&&!!d,P=I?"a":"button",T=$n(he(I?{}:{type:"button"},this.props.rootProps,this.props),I?On:Ln,["disabled"]),D=r||T["aria-label"],A=void 0;n?A=E:u&&this.props.onRenderDescription!==Fe?A=w:T["aria-describedby"]&&(A=T["aria-describedby"]);var R=void 0;T["aria-labelledby"]?R=T["aria-labelledby"]:A&&!D&&(R=this._hasText()?k:void 0);var N=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),M="menuitemcheckbox"===C||"checkbox"===C,F=M||!0===y?!!f:void 0,B=he(T,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:x&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":D,"aria-labelledby":R,"aria-describedby":A,"aria-disabled":x,"data-is-focusable":N})[M?"aria-checked":"aria-pressed"]=F,e));if(o&&(B["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(P,B);if(this.props.menuProps){var O=this.props.menuProps.id,L=void 0===O?this._labelId+"-menu":O;he(B,{"aria-expanded":!S,"aria-controls":S?null:L,"aria-haspopup":!0})}return this._onRenderContent(P,B)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(hr(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(hr(!0),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,i=e,a=r.menuIconProps,s=r.menuProps,l=r.onRenderIcon,c=void 0===l?this._onRenderIcon:l,d=r.onRenderAriaDescription,p=void 0===d?this._onRenderAriaDescription:d,h=r.onRenderChildren,m=void 0===h?this._onRenderChildren:h,f=r.onRenderMenu,g=void 0===f?this._onRenderMenu:f,v=r.onRenderMenuIcon,y=void 0===v?this._onRenderMenuIcon:v,b=r.disabled,C=r.keytipProps;C&&s&&(C=this._getMemoizedMenuButtonKeytipProps(C));var S=function(e){return o.createElement(i,u({},t,e),o.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(r,n._onRenderIcon),n._onRenderTextContents(),p(r,n._onRenderAriaDescription),m(r,n._onRenderChildren),!n._isSplitButton&&(s||a||n.props.onRenderMenuIcon)&&y(n.props,n._onRenderMenuIcon),s&&!s.doNotLayer&&n._shouldRenderMenu()&&g(s,n._onRenderMenu)))},x=C?o.createElement(Tu,{keytipProps:this._isSplitButton?void 0:C,ariaDescribedBy:t["aria-describedby"],disabled:b},(function(e){return S(e)})):S();return s&&s.doNotLayer?o.createElement(o.Fragment,null,x,this._shouldRenderMenu()&&g(s,this._onRenderMenu)):o.createElement(o.Fragment,null,x,o.createElement(vr,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,i=r.styles,a=void 0===i?{}:i,s=r.disabled,l=r.allowDisabledFocus,c=r.checked,d=r.getSplitButtonClassNames,p=r.primaryDisabled,h=r.menuProps,m=r.toggle,f=r.role,g=r.primaryActionButtonProps,v=this.props.keytipProps,y=this.state.menuHidden,b=d?d(!!s,!y,!!c,!!l):a&&hd(a,!!s,!y,!!c,!!p);he(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),v&&h&&(v=this._getMemoizedMenuButtonKeytipProps(v));var C=$n(t,[],["disabled"]);g&&he(t,g);var S=function(r){return o.createElement("div",u({},C,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:f||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!y,"aria-pressed":m?!!c:void 0,"aria-describedby":mt(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:b&&b.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:s||p?void 0:n._onSplitButtonPrimaryClick,tabIndex:!s&&!p||l?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),o.createElement("span",{style:{display:"flex"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(b,r),n._onRenderSplitButtonDivider(b)))};return v?o.createElement(Tu,{keytipProps:v,disabled:s},(function(e){return S(e)})):S()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return o.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,i=r.allowDisabledFocus,a=r.checked,s=r.disabled,l=r.splitButtonMenuProps,c=r.splitButtonAriaLabel,d=r.primaryDisabled,p=this.state.menuHidden,h=this.props.menuIconProps;void 0===h&&(h={iconName:"ChevronDown"});var m=u(u({},l),{styles:e,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:u(u({},h),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!p,"data-is-focusable":!1});return o.createElement(t,u({},m,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:d&&!i?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===rt&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t}(o.Component);!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(cd||(cd={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(ud||(ud={}));var gd={outline:0},vd=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},yd=Gt((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Ei(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+a,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:o.roundedCorner2,selectors:{":active > *":{position:"relative",left:0,top:0}}}],rootDisabled:[Ei(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":gd,":focus":gd}}],iconDisabled:{color:l,selectors:(t={},t[Ci]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[Ci]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:vd(i.mediumPlus.fontSize),menuIcon:vd(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Ii}})),bd=Gt((function(e,t){var n,r,o,i,a,s,l,c,d,p,h,m,f,g=e.effects,v=e.palette,y=e.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8};return te({splitButtonContainer:[Ei(e,{highContrastStyle:b,inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Ci]=u({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[Ci]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Ci]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(i={},i[Ci]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[Ci]=u({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[Ci]=u({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid "+v.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[Ci]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:u(u({},C),{selectors:(c={},c[Ci]={backgroundColor:"WindowText"},c)}),splitButtonDividerDisabled:u(u({},C),{selectors:(d={},d[Ci]={backgroundColor:"GrayText"},d)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[Ci]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(m={},m[Ci]={color:"GrayText"},m)}},p[Ci]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},p)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(f={},f[Ci]=u({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f)},splitButtonMenuFocused:u({},Ei(e,{highContrastStyle:b,inset:2}))},t)}));function Cd(e){var t,n,r,o,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,d=a.buttonBackgroundHovered,p=a.buttonBackgroundDisabled,h=a.buttonText,m=a.buttonTextHovered,f=a.buttonTextDisabled,g=a.buttonTextChecked,v=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:h},rootHovered:{backgroundColor:d,color:m,selectors:(t={},t[Ci]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:c,color:g},rootExpanded:{backgroundColor:c,color:g},rootChecked:{backgroundColor:c,color:g},rootCheckedHovered:{backgroundColor:c,color:v},rootDisabled:{color:f,backgroundColor:p,selectors:(n={},n[Ci]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[Ci]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(o={},o[Ci]={color:"Highlight"},o)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:u(u({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[Ci]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function Sd(e){var t,n,r,o,i,a,s,l,c,d=e.palette,p=e.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid "+p.primaryButtonBackground,color:p.primaryButtonText,selectors:(t={},t[Ci]=u({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".ms-Fabric--isFocusVisible &:focus"]={selectors:{":after":{border:"none",outlineColor:d.white}}},t)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid "+p.primaryButtonBackgroundHovered,color:p.primaryButtonTextHovered,selectors:(n={},n[Ci]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid "+p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed,selectors:(r={},r[Ci]=u({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{color:p.primaryButtonTextDisabled,backgroundColor:p.primaryButtonBackgroundDisabled,selectors:(o={},o[Ci]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(i={},i[Ci]={border:"none"},i)},splitButtonDivider:u(u({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:d.white,selectors:(a={},a[Ci]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(s={},s[Ci]={backgroundColor:"WindowText"},s[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[Ci]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(c={},c[Ci]={color:"GrayText"},c)}}}var xd,_d=Gt((function(e,t,n){var r=yd(e),o=bd(e);return te(r,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:ui.semibold}},n?Sd(e):Cd(e),o,t)})),Ed=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(fd,u({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:_d(i,r,n),onRenderDescription:Fe}))},t=p([cn("DefaultButton",["theme","styles"],!0)],t)}(o.Component),kd=Gt((function(e,t){var n,r,o;return te(yd(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[Ci]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(r={},r[Ci]={color:"Highlight"},r)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:(o={},o[Ci]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),wd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(fd,u({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:kd(n,t),onRenderDescription:Fe}))},t=p([cn("ActionButton",["theme","styles"],!0)],t)}(o.Component),Id=Gt((function(e,t,n){var r,o,i,a,s,l=e.fonts,c=e.palette,d=yd(e),p=bd(e),h={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:ui.semibold},description:[l.small,{lineHeight:"100%"}]},m={description:{color:c.neutralSecondary},descriptionHovered:{color:c.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},f={description:{color:c.white,selectors:(r={},r[Ci]=u({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},descriptionHovered:{color:c.white,selectors:(o={},o[Ci]={backgroundColor:"Highlight",color:"Window"},o)},descriptionPressed:{color:"inherit",selectors:(i={},i[Ci]=u({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},descriptionChecked:{color:"inherit",selectors:(a={},a[Ci]=u({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},descriptionDisabled:{color:"inherit",selectors:(s={},s[Ci]={color:"inherit"},s)}};return te(d,h,n?Sd(e):Cd(e),n?f:m,p,t)})),Pd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(fd,u({},this.props,{variantClassName:n?"ms-Button--compoundPrimary":"ms-Button--compound",styles:Id(i,r,n)}))},t=p([cn("CompoundButton",["theme","styles"],!0)],t)}(o.Component),Td=Gt((function(e,t){var n,r=yd(e),o=bd(e),i=e.palette;return te(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Ci]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)})),Dd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(fd,u({},this.props,{variantClassName:"ms-Button--icon",styles:Td(n,t),onRenderText:Fe,onRenderDescription:Fe}))},t=p([cn("IconButton",["theme","styles"],!0)],t)}(o.Component),Ad=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){return o.createElement(Ed,u({},this.props,{primary:!0,onRenderDescription:Fe}))},t=p([cn("PrimaryButton",["theme","styles"],!0)],t)}(o.Component),Rd=(function(e){function t(t){var n=e.call(this,t)||this;return De("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),n}c(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case ud.command:return o.createElement(wd,u({},e));case ud.compound:return o.createElement(Pd,u({},e));case ud.icon:return o.createElement(Dd,u({},e));case ud.primary:return o.createElement(Ad,u({},e));default:return o.createElement(Ed,u({},e))}}}(o.Component),Gt((function(e,t,n,r){var o,i,a,s,l,c,d,p,h,m,f,g,v,y,b=yd(e),C=bd(e),S=e.palette,x=e.semanticColors;return te(b,C,{root:[Ei(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:S.white,color:S.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(o={},o[Ci]={border:"none"},o)}],rootHovered:{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(i={},i[Ci]={color:"Highlight"},i["."+dd.msButtonIcon]={color:S.themeDarkAlt},i["."+dd.msButtonMenuIcon]={color:S.neutralPrimary},i)},rootPressed:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(a={},a["."+dd.msButtonIcon]={color:S.themeDark},a["."+dd.msButtonMenuIcon]={color:S.neutralPrimary},a)},rootChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(s={},s["."+dd.msButtonIcon]={color:S.themeDark},s["."+dd.msButtonMenuIcon]={color:S.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:S.neutralQuaternaryAlt,selectors:(l={},l["."+dd.msButtonIcon]={color:S.themeDark},l["."+dd.msButtonMenuIcon]={color:S.neutralPrimary},l)},rootExpanded:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(c={},c["."+dd.msButtonIcon]={color:S.themeDark},c["."+dd.msButtonMenuIcon]={color:S.neutralPrimary},c)},rootExpandedHovered:{backgroundColor:S.neutralQuaternaryAlt},rootDisabled:{backgroundColor:S.white,selectors:(d={},d["."+dd.msButtonIcon]={color:x.disabledBodySubtext,selectors:(p={},p[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),p)},d[Ci]=u({color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)},splitButtonContainer:{height:"100%",selectors:(h={},h[Ci]={border:"none"},h)},splitButtonDividerDisabled:{selectors:(m={},m[Ci]={backgroundColor:"Window"},m)},splitButtonDivider:{backgroundColor:S.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:S.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:S.neutralSecondary,selectors:{":hover":{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(f={},f[Ci]={color:"Highlight"},f["."+dd.msButtonIcon]={color:S.neutralPrimary},f)},":active":{backgroundColor:S.neutralLight,selectors:(g={},g["."+dd.msButtonIcon]={color:S.neutralPrimary},g)}}},splitButtonMenuButtonDisabled:{backgroundColor:S.white,selectors:(v={},v[Ci]=u({color:"GrayText",border:"none",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),v)},splitButtonMenuButtonChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:S.neutralLight,color:S.black,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:S.neutralPrimary},splitButtonMenuIconDisabled:{color:S.neutralTertiary},label:{fontWeight:"normal"},icon:{color:S.themePrimary},menuIcon:(y={color:S.neutralSecondary},y[Ci]={color:"GrayText"},y)},t)}))),Nd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(fd,u({},this.props,{variantClassName:"ms-Button--commandBar",styles:Rd(n,t),onRenderDescription:Fe}))},t=p([cn("CommandBarButton",["theme","styles"],!0)],t)}(o.Component),Md=wd,Fd=Gt((function(e,t){return te({root:[Ei(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)}));!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(Ed,u({},this.props,{styles:Fd(n,t),onRenderDescription:Fe}))},t=p([cn("MessageBarButton",["theme","styles"],!0)],t)}(o.Component);!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(xd||(xd={}));var Bd=function(e){void 0===e&&(e=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}}());var t,n=e;function r(e,t){var r=n.getCachedMeasurement(e);if(void 0!==r)return r;var o=t();return n.addMeasurementToCache(e,o),o}function o(e,o,i){for(var a=e,s=r(e,i);s>t;){var l=o(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=n.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(t&&i.renderedData&&!i.dataToMeasure)return u(u({},i),function(e,n,r,o){var i;return i=e>t?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:r},t=e,u(u({},i),{measureContainer:!1})}(s,e.data,i.renderedData,e.onGrowData));t=s}var l=u(u({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&e.onGrowData?u(u({},l),function(e,i,a,s){for(var l=e,c=r(e,a);c<t;){var d=i(l);if(void 0===d)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=n.getCachedMeasurement(d)))return{dataToMeasure:d};l=d}return u({resizeDirection:"shrink"},o(l,s,a))}(i.dataToMeasure,e.onGrowData,a,e.onReduceData)):u(u({},l),o(i.dataToMeasure,e.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==n.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:u({},e),resizeDirection:"grow",measureContainer:!0}}}},Od=o.createContext({isMeasured:!1}),Ld={position:"fixed",visibility:"hidden"},Hd={position:"relative"};function Vd(e,t){var n;switch(t.type){case"resizeData":return u({},t.value);case"dataToMeasure":return u(u({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return u(u({},e),((n={})[t.type]=t.value,n))}}function zd(e,t){var n=gs(Bd),r=o.useRef(null),i=o.useRef(null),a=o.useRef(!1),s=vs(),l=function(e,t,n){var r=gs((function(){return t.getInitialResizeGroupState(e.data)})),i=o.useReducer(Vd,r),a=i[0],s=i[1];o.useEffect((function(){s({type:"dataToMeasure",value:e.data})}),[e.data]);var l=o.useRef(r);return l.current=u({},a),[l,o.useCallback((function(e){e&&s({type:"resizeData",value:e})}),[]),o.useCallback((function(){n.current&&s({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=l[0],d=l[1],p=l[2];o.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),o.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();o=e.direction===xd.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?i:r;return t.current?e.direction===xd.vertical?t.current.scrollHeight:t.current.scrollWidth:0}),o);d(l)}))})),xs(Is(),"resize",s.debounce(p,16,{leading:!0}));var h=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),m=!a.current&&h;return[c.current.dataToMeasure,c.current.renderedData,p,r,i,h,m]}var Ud={isMeasured:!0},Wd=o.forwardRef((function(e,t){var n=o.useRef(null),r=Ss(n,t),i=zd(e,n),a=i[0],s=i[1],l=i[2],c=i[3],d=i[4],p=i[5],h=i[6];o.useImperativeHandle(e.componentRef,(function(){return{remeasure:l}}),[l]),function(e){As({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var m=e.className,f=e.onRenderData,g=$n(e,Jn,["data"]);return o.createElement("div",u({},g,{className:m,ref:r}),o.createElement("div",{style:Hd},p&&!h&&o.createElement("div",{style:Ld,ref:d},o.createElement(Od.Provider,{value:Ud},f(a))),o.createElement("div",{ref:c,style:h?Ld:void 0,"data-automation-id":"visibleContent"},h?f(a):s&&f(s))))}));Wd.displayName="ResizeGroupBase";var Gd=Wd,jd=Ft(),qd=function(){return null},Kd={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},Yd=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onReduceData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props.overflowIndex,o=t[r];if(o)return(t=h(t)).splice(r,1),n=h(n,[o]),u(u({},e),{renderedItems:t,renderedOverflowItems:n})},n._onGrowData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props,o=r.overflowIndex,i=r.maxDisplayedItems,a=(n=h(n)).pop();if(a&&!(t.length>=i))return(t=h(t)).splice(o,0,a),u(u({},e),{renderedItems:t,renderedOverflowItems:n})},n._onRenderBreadcrumb=function(e){var t=e.props,r=t.ariaLabel,i=t.dividerAs,a=void 0===i?Ll:i,s=t.onRenderItem,l=void 0===s?n._onRenderItem:s,c=t.overflowAriaLabel,d=t.overflowIndex,p=t.onRenderOverflowIcon,h=t.overflowButtonAs,m=e.renderedOverflowItems,f=e.renderedItems,g=m.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?n._onBreadcrumbClicked.bind(n,e):null,href:e.href,disabled:!t,itemProps:t?void 0:Kd}})),v=f.length-1,y=m&&0!==m.length,b=f.map((function(e,t){return o.createElement("li",{className:n._classNames.listItem,key:e.key||String(t)},l(e,n._onRenderItem),(t!==v||y&&t===d-1)&&o.createElement(a,{className:n._classNames.chevron,iconName:xt(n.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(y){var C=p?{}:{iconName:"More"},S=p||qd,x=h||Dd;b.splice(d,0,o.createElement("li",{className:n._classNames.overflow,key:"overflow"},o.createElement(x,{className:n._classNames.overflowButton,iconProps:C,role:"button","aria-haspopup":"true",ariaLabel:c,onRenderMenuIcon:S,menuProps:{items:g,directionalHint:wa}}),d!==v+1&&o.createElement(a,{className:n._classNames.chevron,iconName:xt(n.props.theme)?"ChevronLeft":"ChevronRight",item:m[m.length-1]})))}var _=$n(n.props,An,["className"]);return o.createElement("div",u({className:n._classNames.root,role:"navigation","aria-label":r},_),o.createElement(zc,u({componentRef:n._focusZone,direction:wc.horizontal},n.props.focusZoneProps),o.createElement("ol",{className:n._classNames.list},b)))},n._onRenderItem=function(e){var t=e.as,r=e.href,i=e.onClick,a=e.isCurrentItem,s=e.text,l=d(e,["as","href","onClick","isCurrentItem","text"]);if(i||r)return o.createElement(Yc,u({},l,{as:t,className:n._classNames.itemLink,href:r,"aria-current":a?"page":void 0,onClick:n._onBreadcrumbClicked.bind(n,e)}),o.createElement(wl,u({content:s,overflowMode:ml.Parent},n.props.tooltipHostProps),s));var c=t||"span";return o.createElement(c,u({},l,{className:n._classNames.item}),o.createElement(wl,u({content:s,overflowMode:ml.Parent},n.props.tooltipHostProps),s))},n._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},or(n),n._validateProps(t),n}return c(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,n=void 0===t?this._onReduceData:t,r=e.onGrowData,i=void 0===r?this._onGrowData:r,a=e.overflowIndex,s=e.maxDisplayedItems,l=e.items,c=e.className,u=e.theme,d=e.styles,p=h(l),m=p.splice(a,p.length-s),f={props:this.props,renderedItems:p,renderedOverflowItems:m};return this._classNames=jd(d,{className:c,theme:u}),o.createElement(Gd,{onRenderData:this._onRenderBreadcrumb,onReduceData:n,onGrowData:i,data:f})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(o.Component),Xd={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},Qd={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Zd=_i(0,xi),Jd=_i(Si,639),$d=(Kr(Yd,(function(e){var t,n,r,o,i=e.className,a=e.theme,s=a.palette,l=a.semanticColors,c=a.fonts,d=Mi(Xd,a),p=l.menuItemBackgroundHovered,h=l.menuItemBackgroundPressed,m=s.neutralSecondary,f=ui.regular,g=s.neutralPrimary,v=s.neutralPrimary,y=ui.semibold,b=s.neutralSecondary,C=s.neutralSecondary,S={fontWeight:y,color:v},x={":hover":{color:g,backgroundColor:p,cursor:"pointer",selectors:(t={},t[Ci]={color:"Highlight"},t)},":active":{backgroundColor:h,color:g},"&:active:hover":{color:g,backgroundColor:h},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},_={color:m,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:f};return{root:[d.root,c.medium,{margin:"11px 0 1px"},i],list:[d.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[d.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":S,"&:last-child .ms-Breadcrumb-item":S}}],chevron:[d.chevron,{color:b,fontSize:c.small.fontSize,selectors:(n={},n[Ci]=u({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n[Jd]={fontSize:8},n[Zd]={fontSize:8},n)}],overflow:[d.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[d.overflowButton,Ei(a),Qd,{fontSize:16,color:C,height:"100%",cursor:"pointer",selectors:u(u({},x),(r={},r[Zd]={padding:"4px 6px"},r[Jd]={fontSize:c.mediumPlus.fontSize},r))}],itemLink:[d.itemLink,Ei(a),Qd,u(u({},_),{selectors:u((o={":focus":{color:s.neutralDark}},o[".ms-Fabric--isFocusVisible &:focus"]={outline:"none"},o),x)})],item:[d.item,u(u({},_),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"}),Ft()),ep=o.forwardRef((function(e,t){var n=Cs(void 0,e.id),r=e.items,i=e.columnCount,a=e.onRenderItem,s=e.ariaPosInSet,l=void 0===s?e.positionInSet:s,c=e.ariaSetSize,d=void 0===c?e.setSize:c,p=e.styles,h=e.doNotContainWithinFocusZone,m=$n(e,An,h?[]:["onBlur"]),f=$d(p,{theme:e.theme}),g=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}(r,i),v=o.createElement("table",u({"aria-posinset":l,"aria-setsize":d,id:n,role:"grid"},m,{className:f.root}),o.createElement("tbody",null,g.map((function(e,t){return o.createElement("tr",{role:"row",key:t},e.map((function(e,t){return o.createElement("td",{role:"presentation",key:t+"-cell",className:f.tableCell},a(e,t))})))}))));return h?v:o.createElement(zc,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:f.focusedContainer,onBlur:e.onBlur},v)})),tp=Kr(ep,(function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}}));tp.displayName="ButtonGrid";var np,rp,op,ip,ap=function(e){var t,n=Cs("gridCell"),r=e.item,i=e.id,a=void 0===i?n:i,s=e.className,l=e.role,c=e.selected,u=e.disabled,d=void 0!==u&&u,p=e.onRenderItem,h=e.cellDisabledStyle,m=e.cellIsSelectedStyle,f=e.index,g=e.label,v=e.getClassNames,y=e.onClick,b=e.onHover,C=e.onMouseMove,S=e.onMouseLeave,x=e.onMouseEnter,_=e.onFocus,E=o.useCallback((function(){y&&!d&&y(r)}),[d,r,y]),k=o.useCallback((function(e){x&&x(e)||!b||d||b(r)}),[d,r,b,x]),w=o.useCallback((function(e){C&&C(e)||!b||d||b(r)}),[d,r,b,C]),I=o.useCallback((function(e){S&&S(e)||!b||d||b()}),[d,b,S]),P=o.useCallback((function(){_&&!d&&_(r)}),[d,r,_]);return o.createElement(Md,{id:a,"data-index":f,"data-is-focusable":!0,disabled:d,className:Zt(s,(t={},t[""+m]=c,t[""+h]=d,t)),onClick:E,onMouseEnter:k,onMouseMove:w,onMouseLeave:I,onFocus:P,role:l,"aria-selected":c,ariaLabel:g,title:g,getClassNames:v},p(r))};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(np||(np={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(rp||(rp={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(op||(op={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(ip||(ip={}));var sp=1e3,lp=60,cp=7,up=12,dp=24;function pp(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function hp(e,t){return pp(e,t*cp)}function mp(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%up+up)%up&&(n=pp(n,-n.getDate())),n}function fp(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%up+up)%up&&(n=pp(n,-n.getDate())),n}function gp(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function vp(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function yp(e,t){return mp(e,t-e.getMonth())}function bp(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function Cp(e,t){return Ip(e)-Ip(t)}function Sp(e,t,n,r,o){void 0===o&&(o=1);var i,a=[],s=null;switch(r||(r=[np.Monday,np.Tuesday,np.Wednesday,np.Thursday,np.Friday]),o=Math.max(o,1),t){case ip.Day:s=pp(i=wp(e),o);break;case ip.Week:case ip.WorkWeek:s=pp(i=kp(wp(e),n),cp);break;case ip.Month:s=mp(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}var l=i;do{(t!==ip.WorkWeek||-1!==r.indexOf(l.getDay()))&&a.push(l),l=pp(l,1)}while(!bp(l,s));return a}function xp(e,t){for(var n=0,r=t;n<r.length;n++){if(bp(e,r[n]))return!0}return!1}function _p(e,t,n,r){var o=r.getFullYear(),i=r.getMonth(),a=1,s=new Date(o,i,a),l=a+(t+cp-1)-function(e,t){return e!==np.Sunday&&t<e?t+cp:t}(t,s.getDay()),c=new Date(o,i,l);a=c.getDate();for(var u=[],d=0;d<e;d++)u.push(Ep(c,t,n)),a+=cp,c=new Date(o,i,a);return u}function Ep(e,t,n){switch(n){case op.FirstFullWeek:return Pp(e,t,cp);case op.FirstFourDayWeek:return Pp(e,t,4);default:return function(e,t){var n=Tp(e)-1,r=(e.getDay()-n%cp-t+2*cp)%cp;return Math.floor((n+r)/cp+1)}(e,t)}}function kp(e,t){var n=t-e.getDay();return n>0&&(n-=cp),pp(e,n)}function wp(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ip(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function Pp(e,t,n){var r=Tp(e)-1,o=e.getDay()-r%cp,i=Tp(new Date(e.getFullYear()-1,rp.December,31))-1,a=(t-o+2*cp)%cp;0!==a&&a>=n&&(a-=cp);var s=r-a;return s<0&&(0!==(a=(t-(o-=i%cp)+2*cp)%cp)&&a+1>=n&&(a-=cp),s=i-a),Math.floor(s/cp+1)}function Tp(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=Dp(o+1,n);return r+=e.getDate()}function Dp(e,t){return new Date(t,e,0).getDate()}var Ap={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},Rp=u(u({},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),Np=function(e,t){var n=t.minDate;return!!n&&Cp(n,e)>=1},Mp=function(e,t){var n=t.maxDate;return!!n&&Cp(e,n)>=1},Fp=function(e,t){var n=t.restrictedDates,r=t.minDate,o=t.maxDate;return!!(n||r||o)&&(n&&n.some((function(t){return bp(t,e)}))||Np(e,t)||Mp(e,t))},Bp=function(e){var t=e.targetDate,n=e.initialDate,r=e.direction,o=d(e,["targetDate","initialDate","direction"]),i=t;if(!Fp(t,o))return t;for(;0!==Cp(n,i)&&Fp(i,o)&&!Mp(i,o)&&!Np(i,o);)i=pp(i,r);return 0===Cp(n,i)||Fp(i,o)?void 0:i},Op=function(e,t,n){var r=h(e);return t&&(r=r.filter((function(e){return Cp(e,t)>=0}))),n&&(r=r.filter((function(e){return Cp(e,n)<=0}))),r},Lp=function(e,t,n){return!t||e!==ip.WorkWeek||function(e,t,n){for(var r=new Set(e),o=0,i=0,a=e;i<a.length;i++){var s=(a[i]+1)%7;(!r.has(s)||t&&n===s)&&o++}return o<2}(t,!0,n)&&0!==t.length?e:ip.Week};g("@fluentui/date-time-utilities","8.2.2");var Hp=function(e){var t=e.showWeekNumbers,n=e.strings,r=e.firstDayOfWeek,i=e.allFocusable,a=e.weeksToShow,s=e.weeks,l=e.classNames,c=n.shortDays.slice(),u=ft(s[1],(function(e){return 1===e.originalDate.getDate()}));1===a&&u>=0&&(c[(u+r)%7]=n.shortMonths[s[1][u].originalDate.getMonth()]);return o.createElement("tr",null,t&&o.createElement("th",{className:l.dayCell}),c.map((function(e,t){var a=(t+r)%7,s=t===u?n.days[a]+" "+c[a]:n.days[a];return o.createElement("th",{className:Zt(l.dayCell,l.weekDayLabelCell),scope:"col",key:c[a]+" "+t,title:s,"aria-label":s,"data-is-focusable":!!i||void 0},c[a])})))},Vp=function(e){var t,n=e.navigatedDate,r=e.dateTimeFormatter,i=e.allFocusable,a=e.strings,s=e.activeDescendantId,l=e.navigatedDayRef,c=e.calculateRoundedStyles,u=e.weeks,d=e.classNames,p=e.day,h=e.dayIndex,m=e.weekIndex,f=e.weekCorners,g=e.ariaHidden,v=e.customDayCellRef,y=e.dateRangeType,b=e.daysToSelectInDayView,C=e.onSelectDate,S=e.restrictedDates,x=e.minDate,_=e.maxDate,E=e.onNavigateDate,k=e.getDayInfosInRangeOfDay,w=e.getRefsFromDayInfos,I=null!==(t=null===f||void 0===f?void 0:f[m+"_"+h])&&void 0!==t?t:"",P=bp(n,p.originalDate),T=p.originalDate.getDate()+", "+a.months[p.originalDate.getMonth()]+", "+p.originalDate.getFullYear();return p.isMarked&&(T=T+", "+a.dayMarkedAriaLabel),o.createElement("td",{className:Zt(d.dayCell,f&&I,p.isSelected&&d.daySelected,p.isSelected&&"ms-CalendarDay-daySelected",!p.isInBounds&&d.dayOutsideBounds,!p.isInMonth&&d.dayOutsideNavigatedMonth),ref:function(e){null===v||void 0===v||v(e,p.originalDate,d),p.setRef(e)},"aria-hidden":g,onClick:p.isInBounds&&!g?p.onSelected:void 0,onMouseOver:g?void 0:function(e){var t=k(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!t[r].isSelected&&y===ip.Day&&b&&b>1)){e.classList.remove(d.bottomLeftCornerDate,d.bottomRightCornerDate,d.topLeftCornerDate,d.topRightCornerDate);var i=c(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).add.apply(o,i.split(" "))}}))},onMouseDown:g?void 0:function(e){var t=k(p);w(t).forEach((function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")}))},onMouseUp:g?void 0:function(e){var t=k(p);w(t).forEach((function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")}))},onMouseOut:g?void 0:function(e){var t=k(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!t[r].isSelected&&y===ip.Day&&b&&b>1)){var i=c(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).remove.apply(o,i.split(" "))}}))},role:"presentation"},o.createElement("button",{key:p.key+"button","aria-hidden":g,className:Zt(d.dayButton,p.isToday&&d.dayIsToday,p.isToday&&"ms-CalendarDay-dayIsToday"),onKeyDown:g?void 0:function(e){e.which===Ge?null===C||void 0===C||C(p.originalDate):function(e,t){var n=void 0,r=1;if(e.which===tt?(n=hp(t,-1),r=-1):e.which===rt?n=hp(t,1):e.which===_t(et)?(n=pp(t,-1),r=-1):e.which===_t(nt)&&(n=pp(t,1)),n){var o={initialDate:t,targetDate:n,direction:r,restrictedDates:S,minDate:x,maxDate:_},i=Bp(o);i||(o.direction=-r,i=Bp(o)),u&&i&&u.slice(1,u.length-1).some((function(e){return e.some((function(e){return bp(e.originalDate,i)}))}))||i&&(E(i,!0),e.preventDefault())}}(e,p.originalDate)},"aria-label":T,id:P?s:void 0,"aria-current":p.isSelected?"date":void 0,"aria-selected":p.isInBounds?p.isSelected:void 0,"data-is-focusable":!g&&(i||!!p.isInBounds||void 0),ref:P?l:void 0,disabled:!i&&!p.isInBounds,"aria-disabled":!g&&!p.isInBounds,type:"button",role:"gridcell","aria-readonly":!0,tabIndex:P?0:void 0},o.createElement("span",{"aria-hidden":"true"},r.formatDay(p.originalDate)),p.isMarked&&o.createElement("div",{"aria-hidden":"true",className:d.dayMarker})))},zp=function(e){var t=e.classNames,n=e.week,r=e.weeks,i=e.weekIndex,a=e.rowClassName,s=e.ariaRole,l=e.showWeekNumbers,c=e.firstDayOfWeek,d=e.firstWeekOfYear,p=e.navigatedDate,h=e.strings,m=l?_p(r.length,c,d,p):null,f=m?h.weekNumberFormatString&&Gr(h.weekNumberFormatString,m[i]):"";return o.createElement("tr",{role:s,className:a,key:i+"_"+n[0].key},l&&m&&o.createElement("th",{className:t.weekNumberCell,key:i,title:f,"aria-label":f,scope:"row"},o.createElement("span",null,m[i])),n.map((function(t,n){return o.createElement(Vp,u({},e,{key:t.key,day:t,dayIndex:n}))})))},Up=Ft();function Wp(e,t,n){var r=o.useMemo((function(){for(var r,o=function(e){var t,n=e.selectedDate,r=e.dateRangeType,o=e.firstDayOfWeek,i=e.today,a=e.minDate,s=e.maxDate,l=e.weeksToShow,c=e.workWeekDays,u=e.daysToSelectInDayView,d=e.restrictedDates,p=e.markedDays,h={minDate:a,maxDate:s,restrictedDates:d},m=i||new Date,f=e.navigatedDate?e.navigatedDate:m;t=l&&l<=4?new Date(f.getFullYear(),f.getMonth(),f.getDate()):new Date(f.getFullYear(),f.getMonth(),1);for(var g=[];t.getDay()!==o;)t.setDate(t.getDate()-1);t=pp(t,-7);var v=!1,y=Lp(r,c,o),b=[];n&&(b=Sp(n,y,o,c,u),b=Op(b,a,s));for(var C=!0,S=0;C;S++){var x=[];v=!0;for(var _=function(e){var n=new Date(t.getTime()),r={key:t.toString(),date:t.getDate().toString(),originalDate:n,isInMonth:t.getMonth()===f.getMonth(),isToday:bp(m,t),isSelected:xp(t,b),isInBounds:!Fp(t,h),isMarked:(null===p||void 0===p?void 0:p.some((function(e){return bp(n,e)})))||!1};x.push(r),r.isInMonth&&(v=!1),t.setDate(t.getDate()+1)},E=0;E<7;E++)_();C=l?S<l+1:!v||0===S,g.push(x)}return g}(e),i=o[1][0].originalDate,a=o[o.length-1][6].originalDate,s=(null===(r=e.getMarkedDays)||void 0===r?void 0:r.call(e,i,a))||[],l=[],c=0;c<o.length;c++){for(var d=[],p=function(e){var r=o[c][e],i=u(u({onSelected:function(){return t(r.originalDate)},setRef:n(r.key)},r),{isMarked:r.isMarked||(null===s||void 0===s?void 0:s.some((function(e){return bp(r.originalDate,e)})))});d.push(i)},h=0;h<7;h++)p(h);l.push(d)}return l}),[e]);return r}var Gp,jp=function(e){var t=o.useRef(null),n=Cs(),r=function(){var e=o.useRef({});return[e,function(t){return function(n){null===n?delete e.current[t]:e.current[t]=n}}]}(),i=r[0],a=r[1],s=Wp(e,(function(t){var n,r,o=e.firstDayOfWeek,i=e.minDate,a=e.maxDate,s=e.workWeekDays,l=e.daysToSelectInDayView,c={minDate:i,maxDate:a,restrictedDates:e.restrictedDates},u=Sp(t,g,o,s,l);u=(u=Op(u,i,a)).filter((function(e){return!Fp(e,c)})),null===(n=e.onSelectDate)||void 0===n||n.call(e,t,u),null===(r=e.onNavigateDate)||void 0===r||r.call(e,t,!0)}),a),l=function(e){var t=_s(e[0][0].originalDate);return t&&t.getTime()!==e[0][0].originalDate.getTime()?!(t<=e[0][0].originalDate):void 0}(s),c=function(e){var t=function(e,t,n,r,o){var i=[],a=!t&&!o,s=!n&&!r,l=!n&&!o;return!t&&!r&&i.push(xt()?e.topRightCornerDate:e.topLeftCornerDate),a&&i.push(xt()?e.topLeftCornerDate:e.topRightCornerDate),s&&i.push(xt()?e.bottomRightCornerDate:e.bottomLeftCornerDate),l&&i.push(xt()?e.bottomLeftCornerDate:e.bottomRightCornerDate),i.join(" ")},n=function(e,t,n,r,o){var i=[];return t||i.push(e.datesAbove),n||i.push(e.datesBelow),r||i.push(xt()?e.datesRight:e.datesLeft),o||i.push(xt()?e.datesLeft:e.datesRight),i.join(" ")},r=function(t,n,r,o){var i=e.dateRangeType,a=e.firstDayOfWeek,s=e.workWeekDays,l=Sp(t,i===ip.WorkWeek?ip.Week:i,a,s);return r===o&&(!(!r||!o)||l.filter((function(e){return e.getTime()===n.getTime()})).length>0)};return[function(e,o){var i={},a=o.slice(1,o.length-1);return a.forEach((function(o,s){o.forEach((function(o,l){var c=a[s-1]&&a[s-1][l]&&r(a[s-1][l].originalDate,o.originalDate,a[s-1][l].isSelected,o.isSelected),u=a[s+1]&&a[s+1][l]&&r(a[s+1][l].originalDate,o.originalDate,a[s+1][l].isSelected,o.isSelected),d=a[s][l-1]&&r(a[s][l-1].originalDate,o.originalDate,a[s][l-1].isSelected,o.isSelected),p=a[s][l+1]&&r(a[s][l+1].originalDate,o.originalDate,a[s][l+1].isSelected,o.isSelected),h=[];h.push(t(e,c,u,d,p)),h.push(n(e,c,u,d,p)),i[s+"_"+l]=h.join(" ")}))})),i},t]}(e),d=c[0],p=c[1];o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var h=e.styles,m=e.theme,f=e.className,g=e.dateRangeType,v=e.showWeekNumbers,y=e.labelledBy,b=e.lightenDaysOutsideNavigatedMonth,C=e.animationDirection,S=Up(h,{theme:m,className:f,dateRangeType:g,showWeekNumbers:v,lightenDaysOutsideNavigatedMonth:void 0===b||b,animationDirection:C,animateBackwards:l}),x=d(S,s),_={weeks:s,navigatedDayRef:t,calculateRoundedStyles:p,activeDescendantId:n,classNames:S,weekCorners:x,getDayInfosInRangeOfDay:function(t){var n=function(e,t){if(t&&e===ip.WorkWeek){for(var n=t.slice().sort(),r=!0,o=1;o<n.length;o++)if(n[o]!==n[o-1]+1){r=!1;break}if(!r||0===t.length)return ip.Week}return e}(e.dateRangeType,e.workWeekDays),r=Sp(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map((function(e){return e.getTime()}));return s.reduce((function(e,t){return e.concat(t.filter((function(e){return-1!==r.indexOf(e.originalDate.getTime())})))}),[])},getRefsFromDayInfos:function(e){return e.map((function(e){return i.current[e.key]}))}};return o.createElement(zc,{className:S.wrapper},o.createElement("table",{className:S.table,"aria-readonly":"true","aria-multiselectable":"false","aria-labelledby":y,"aria-activedescendant":n,role:"grid"},o.createElement("tbody",null,o.createElement(Hp,u({},e,{classNames:S,weeks:s})),o.createElement(zp,u({},e,_,{week:s[0],weekIndex:-1,rowClassName:S.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),s.slice(1,s.length-1).map((function(t,n){return o.createElement(zp,u({},e,_,{key:n,week:t,weekIndex:n,rowClassName:S.weekRow}))})),o.createElement(zp,u({},e,_,{week:s[s.length-1],weekIndex:-2,rowClassName:S.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};jp.displayName="CalendarDayGridBase",function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(Gp||(Gp={}));var qp={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},Kp=ae({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),Yp=Kr(jp,(function(e){var t,n,r,o,i,a,s,l,c,d,p=e.theme,h=e.dateRangeType,m=e.showWeekNumbers,f=e.lightenDaysOutsideNavigatedMonth,g=e.animateBackwards,v=e.animationDirection,y=p.palette,b=Mi(qp,p),C={};void 0!==g&&(C=v===Gp.Horizontal?g?$o.slideRightIn20:$o.slideLeftIn20:g?$o.slideDownIn20:$o.slideUpIn20);var S={},x={};void 0!==g&&v!==Gp.Horizontal&&(S=g?{animationName:""}:$o.slideUpOut20,x=g?$o.slideDownOut20:{animationName:""});var _={selectors:{"&, &:disabled, & button":{color:y.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},m&&{width:226}],dayCell:{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:ci.small,fontWeight:ui.regular,color:y.neutralPrimary,cursor:"pointer",position:"relative",selectors:(t={},t[Ci]=u({color:"WindowText",backgroundColor:"Window",zIndex:0},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t["&."+b.hoverStyle]={backgroundColor:y.neutralLighter,selectors:(n={},n[Ci]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},t["&."+b.pressedStyle]={backgroundColor:y.neutralLight,selectors:(r={},r[Ci]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},r)},t["&."+b.pressedStyle+"."+b.hoverStyle]={selectors:(o={},o[Ci]={backgroundColor:"Window",outline:"1px solid Highlight"},o)},t)},daySelected:[h!==ip.Month&&{backgroundColor:y.neutralLight+"!important",selectors:(i={"&:after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0}},i["&:hover, &."+b.hoverStyle+", &."+b.pressedStyle]=(a={backgroundColor:y.neutralLight+"!important"},a[Ci]={color:"HighlightText!important",background:"Highlight!important"},a),i[Ci]=u({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}],weekRow:C,weekDayLabelCell:$o.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:y.neutralLight,backgroundColor:y.neutralLighterAlt,color:y.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:ui.regular,fontSize:ci.small},dayOutsideBounds:_,dayOutsideNavigatedMonth:f&&{color:y.neutralSecondary,fontWeight:ui.regular},dayButton:[Ei(p,{inset:-3}),{width:24,height:24,lineHeight:24,fontSize:ci.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}}],dayIsToday:{backgroundColor:y.themePrimary+"!important",borderRadius:"100%",color:y.white+"!important",fontWeight:ui.semibold+"!important",selectors:(s={},s[Ci]=u({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)},firstTransitionWeek:u(u({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},S),{animationName:S.animationName+","+Kp}),lastTransitionWeek:u(u({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},x),{animationName:x.animationName+","+Kp}),dayMarker:{width:4,height:4,backgroundColor:y.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:(l={},l["."+b.dayIsTodayStyle+" &"]={backgroundColor:y.white,selectors:(c={},c[Ci]={backgroundColor:"Window"},c)},l["."+b.daySelectedStyle+" &"]={selectors:(d={},d[Ci]={backgroundColor:"HighlightText"},d)},l[Ci]=u({backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"},datesAbove:{"&:after":{borderTop:"1px solid "+y.neutralSecondary}},datesBelow:{"&:after":{borderBottom:"1px solid "+y.neutralSecondary}},datesLeft:{"&:after":{borderLeft:"1px solid "+y.neutralSecondary}},datesRight:{"&:after":{borderRight:"1px solid "+y.neutralSecondary}}}}),void 0,{scope:"CalendarDayGrid"}),Xp=Ft(),Qp=function(e){var t=o.useRef(null);o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var n=e.strings,r=e.navigatedDate,i=e.dateTimeFormatter,a=e.styles,s=e.theme,l=e.className,c=e.onHeaderSelect,d=e.showSixWeeksByDefault,p=e.minDate,h=e.maxDate,m=e.restrictedDates,f=e.onNavigateDate,g=e.showWeekNumbers,v=e.dateRangeType,y=e.animationDirection,b=Cs(),C=Xp(a,{theme:s,className:l,headerIsClickable:!!c,showWeekNumbers:g,animationDirection:y}),S=i.formatMonthYear(r,n),x=c?"button":"div",_=n.yearPickerHeaderAriaLabel?Gr(n.yearPickerHeaderAriaLabel,S):S;return o.createElement("div",{className:C.root},o.createElement("div",{className:C.header},o.createElement(x,{"aria-live":"polite","aria-atomic":"true","aria-label":c?_:void 0,key:S,className:C.monthAndYear,onClick:c,"data-is-focusable":!!c,tabIndex:c?0:-1,onKeyDown:Jp(c),type:"button"},o.createElement("span",{id:b},S)),o.createElement(Zp,u({},e,{classNames:C}))),o.createElement(Yp,u({},e,{styles:a,componentRef:t,strings:n,navigatedDate:r,weeksToShow:d?6:void 0,dateTimeFormatter:i,minDate:p,maxDate:h,restrictedDates:m,onNavigateDate:f,labelledBy:b,dateRangeType:v})))};Qp.displayName="CalendarDayBase";var Zp=function(e){var t,n,r=e.minDate,i=e.maxDate,a=e.navigatedDate,s=e.allFocusable,l=e.strings,c=e.navigationIcons,u=e.showCloseButton,d=e.classNames,p=e.onNavigateDate,h=e.onDismiss,m=function(){p(mp(a,1),!1)},f=function(){p(mp(a,-1),!1)},g=c.leftNavigation,v=c.rightNavigation,y=c.closeIcon,b=!r||Cp(r,gp(a))<0,C=!i||Cp(vp(a),i)<0;return o.createElement("div",{className:d.monthComponents},o.createElement("button",{className:Zt(d.headerIconButton,(t={},t[d.disabledStyle]=!b,t)),tabIndex:b?void 0:s?0:-1,"aria-disabled":!b,onClick:b?f:void 0,onKeyDown:b?Jp(f):void 0,title:l.prevMonthAriaLabel?l.prevMonthAriaLabel+" "+l.months[mp(a,-1).getMonth()]:void 0,type:"button"},o.createElement(Ll,{iconName:g})),o.createElement("button",{className:Zt(d.headerIconButton,(n={},n[d.disabledStyle]=!C,n)),tabIndex:C?void 0:s?0:-1,"aria-disabled":!C,onClick:C?m:void 0,onKeyDown:C?Jp(m):void 0,title:l.nextMonthAriaLabel?l.nextMonthAriaLabel+" "+l.months[mp(a,1).getMonth()]:void 0,type:"button"},o.createElement(Ll,{iconName:v})),u&&o.createElement("button",{className:Zt(d.headerIconButton),onClick:h,onKeyDown:Jp(h),title:l.closeButtonAriaLabel,type:"button"},o.createElement(Ll,{iconName:y})))};Zp.displayName="CalendarDayNavigationButtons";var Jp=function(e){return function(t){if(t.which===Ge)null===e||void 0===e||e()}},$p=Kr(Qp,(function(e){var t=e.className,n=e.theme,r=e.headerIsClickable,o=e.showWeekNumbers,i=n.palette,a={selectors:{"&, &:disabled, & button":{color:i.neutralTertiaryAlt,pointerEvents:"none"}}};return{root:[oa,{width:196,padding:12,boxSizing:"content-box"},o&&{width:226},t],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[Ei(n,{inset:1}),u(u({},$o.fadeIn200),{alignItems:"center",fontSize:ci.medium,fontFamily:"inherit",color:i.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:ui.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),r&&{selectors:{"&:hover":{cursor:"pointer",background:i.neutralLight,color:i.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[Ei(n,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:ci.small,fontFamily:"inherit",color:i.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:i.neutralDark,backgroundColor:i.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:a}}),void 0,{scope:"CalendarDay"}),eh=function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.hasHeaderClickCallback,d=e.highlightCurrent,p=e.highlightSelected,h=e.animateBackwards,m=e.animationDirection,f=l.palette,g={};void 0!==h&&(g=m===Gp.Horizontal?h?$o.slideRightIn20:$o.slideLeftIn20:h?$o.slideDownIn20:$o.slideUpIn20);var v=void 0!==h?$o.fadeIn200:{};return{root:[oa,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},s],headerContainer:{display:"flex"},currentItemButton:[Ei(l,{inset:-1}),u(u({},v),{fontSize:ci.medium,fontWeight:ui.semibold,fontFamily:"inherit",textAlign:"left",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),c&&{selectors:{"&:hover, &:active":{cursor:c?"pointer":"default",color:f.neutralDark,outline:"1px solid transparent",backgroundColor:f.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[Ei(l,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:ci.small,color:f.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:f.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:f.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:u(u({},g),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[Ei(l,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:ci.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:f.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:ui.regular},"&:hover":{color:f.neutralDark,backgroundColor:f.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:(t={},t[Ci]=u({background:"Window",color:"WindowText",outline:"1px solid Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},"&:active":{backgroundColor:f.themeLight,selectors:(n={},n[Ci]=u({background:"Window",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)}}}],current:d?{color:f.white,backgroundColor:f.themePrimary,selectors:(r={"& div":{fontWeight:ui.semibold},"&:hover":{backgroundColor:f.themePrimary,selectors:(o={},o[Ci]=u({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}},r[Ci]=u({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}:{},selected:p?{color:f.neutralPrimary,backgroundColor:f.themeLight,fontWeight:ui.semibold,selectors:(i={"& div":{fontWeight:ui.semibold},"&:hover, &:active":{backgroundColor:f.themeLight,selectors:(a={},a[Ci]=u({color:"Window",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}},i[Ci]=u({background:"Highlight",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}:{},disabled:{selectors:{"&, &:disabled, & button":{color:f.neutralTertiaryAlt,pointerEvents:"none"}}}}},th=function(e){return eh(e)},nh=Rp,rh={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},oh=Ft(),ih=12,ah={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},sh=function(e){var t,n,r=e.styles,i=e.theme,a=e.className,s=e.highlightCurrentYear,l=e.highlightSelectedYear,c=e.year,u=e.selected,d=e.disabled,p=e.componentRef,h=e.onSelectYear,m=e.onRenderYear,f=o.useRef(null);o.useImperativeHandle(p,(function(){return{focus:function(){var e,t;null===(t=null===(e=f.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);var g=oh(r,{theme:i,className:a,highlightCurrent:s,highlightSelected:l});return o.createElement("button",{className:Zt(g.itemButton,(t={},t[g.selected]=u,t[g.disabled]=d,t)),type:"button",role:"gridcell",onClick:d?void 0:function(){null===h||void 0===h||h(c)},onKeyDown:d?void 0:function(e){e.which===Ge&&(null===h||void 0===h||h(c))},disabled:d,"aria-selected":u,ref:f,"aria-readonly":!0},null!==(n=null===m||void 0===m?void 0:m(c))&&void 0!==n?n:c)};sh.displayName="CalendarYearGridCell";var lh,ch=function(e){var t=e.styles,n=e.theme,r=e.className,i=e.fromYear,a=e.toYear,s=e.animationDirection,l=e.animateBackwards,c=e.minYear,d=e.maxYear,p=e.onSelectYear,h=e.selectedYear,m=e.componentRef,f=o.useRef(null),g=o.useRef(null);o.useImperativeHandle(m,(function(){return{focus:function(){var e,t;null===(t=null===(e=f.current||g.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);for(var v=function(t){var r=t===h,i=void 0!==c&&t<c||void 0!==d&&t>d,a=t===(new Date).getFullYear();return o.createElement(sh,u({},e,{key:t,year:t,selected:r,current:a,disabled:i,onSelectYear:p,componentRef:r?f:a?g:void 0,theme:n}))},y=oh(t,{theme:n,className:r,animateBackwards:l,animationDirection:s}),b=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},C=b(i)+" - "+b(a),S=i,x=[],_=0;_<(a-i+1)/4;_++){x.push([]);for(var E=0;E<4;E++)x[_].push(v(S)),S++}return o.createElement(zc,null,o.createElement("div",{className:y.gridContainer,role:"grid","aria-label":C},x.map((function(e,t){return o.createElement("div",{key:"yearPickerRow_"+t+"_"+i,role:"row",className:y.buttonRow},e)}))))};ch.displayName="CalendarYearGrid",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(lh||(lh={}));var uh=function(e){var t,n=e.styles,r=e.theme,i=e.className,a=e.navigationIcons,s=void 0===a?rh:a,l=e.strings,c=void 0===l?ah:l,u=e.direction,d=e.onSelectPrev,p=e.onSelectNext,h=e.fromYear,m=e.toYear,f=e.maxYear,g=e.minYear,v=oh(n,{theme:r,className:i}),y=u===lh.Previous?c.prevRangeAriaLabel:c.nextRangeAriaLabel,b=u===lh.Previous?-12:ih,C=y?"string"===typeof y?y:y({fromYear:h+b,toYear:m+b}):void 0,S=u===lh.Previous?void 0!==g&&h<g:void 0!==f&&e.fromYear+ih>f,x=function(){u===lh.Previous?null===d||void 0===d||d():null===p||void 0===p||p()},_=xt()?u===lh.Next:u===lh.Previous;return o.createElement("button",{className:Zt(v.navigationButton,(t={},t[v.disabled]=S,t)),onClick:S?void 0:x,onKeyDown:S?void 0:function(e){e.which===Ge&&x()},type:"button",title:C,disabled:S},o.createElement(Ll,{iconName:_?s.leftNavigation:s.rightNavigation}))};uh.displayName="CalendarYearNavArrow";var dh=function(e){var t=e.styles,n=e.theme,r=e.className,i=oh(t,{theme:n,className:r});return o.createElement("div",{className:i.navigationButtonsContainer},o.createElement(uh,u({},e,{direction:lh.Previous})),o.createElement(uh,u({},e,{direction:lh.Next})))};dh.displayName="CalendarYearNav";var ph=function(e){var t=e.styles,n=e.theme,r=e.className,i=e.fromYear,a=e.toYear,s=e.strings,l=void 0===s?ah:s,c=e.animateBackwards,u=e.animationDirection,d=function(){var t;null===(t=e.onHeaderSelect)||void 0===t||t.call(e,!0)},p=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},h=oh(t,{theme:n,className:r,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:c,animationDirection:u});if(e.onHeaderSelect){var m=l.rangeAriaLabel,f=l.headerAriaLabelFormatString,g=m?"string"===typeof m?m:m(e):void 0,v=f?Gr(f,g):g;return o.createElement("button",{className:h.currentItemButton,onClick:d,onKeyDown:function(e){e.which!==Ge&&e.which!==Xe||d()},"aria-label":v,role:"button",type:"button","aria-atomic":!0,"aria-live":"polite"},p(i)," - ",p(a))}return o.createElement("div",{className:h.current},p(i)," - ",p(a))};ph.displayName="CalendarYearTitle";var hh,mh=function(e){var t,n=e.styles,r=e.theme,i=e.className,a=e.animateBackwards,s=e.animationDirection,l=e.onRenderTitle,c=oh(n,{theme:r,className:i,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:s});return o.createElement("div",{className:c.headerContainer},null!==(t=null===l||void 0===l?void 0:l(e))&&void 0!==t?t:o.createElement(ph,u({},e)),o.createElement(dh,u({},e)))};mh.displayName="CalendarYearHeader",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(hh||(hh={}));var fh=function(e){var t=function(e){var t=e.selectedYear,n=e.navigatedYear,r=t||n||(new Date).getFullYear(),o=10*Math.floor(r/10),i=_s(o);return i&&i!==o?i>o:void 0}(e),n=function(e){var t=e.selectedYear,n=e.navigatedYear,r=o.useReducer((function(e,t){return e+(t===hh.Next?ih:-12)}),void 0,(function(){var e=t||n||(new Date).getFullYear();return 10*Math.floor(e/10)})),i=r[0],a=r[1];return[i,i+ih-1,function(){return a(hh.Next)},function(){return a(hh.Previous)}]}(e),r=n[0],i=n[1],a=n[2],s=n[3],l=o.useRef(null);o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,t;null===(t=null===(e=l.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}));var c=e.styles,d=e.theme,p=e.className,h=oh(c,{theme:d,className:p});return o.createElement("div",{className:h.root},o.createElement(mh,u({},e,{fromYear:r,toYear:i,onSelectPrev:s,onSelectNext:a,animateBackwards:t})),o.createElement(ch,u({},e,{fromYear:r,toYear:i,animateBackwards:t,componentRef:l})))};fh.displayName="CalendarYearBase";var gh=Kr(fh,(function(e){return eh(e)}),void 0,{scope:"CalendarYear"}),vh=Ft(),yh={styles:th,strings:void 0,navigationIcons:rh,dateTimeFormatter:Ap,yearPickerHidden:!1};var bh=function(e){var t,n,r=Qr(yh,e),i=function(e){var t=e.componentRef,n=o.useRef(null),r=o.useRef(null),i=o.useRef(!1),a=o.useCallback((function(){r.current?r.current.focus():n.current&&n.current.focus()}),[]);return o.useImperativeHandle(t,(function(){return{focus:a}}),[a]),o.useEffect((function(){i.current&&(a(),i.current=!1)})),[n,r,function(){i.current=!0}]}(r),a=i[0],s=i[1],l=i[2],c=o.useState(!1),u=c[0],d=c[1],p=function(e){var t=e.navigatedDate.getFullYear(),n=_s(t);return void 0===n||n===t?void 0:n>t}(r),h=r.navigatedDate,m=r.selectedDate,f=r.strings,g=r.today,v=void 0===g?new Date:g,y=r.navigationIcons,b=r.dateTimeFormatter,C=r.minDate,S=r.maxDate,x=r.theme,_=r.styles,E=r.className,k=r.allFocusable,w=r.highlightCurrentMonth,I=r.highlightSelectedMonth,P=r.animationDirection,T=r.yearPickerHidden,D=r.onNavigateDate,A=function(e){return function(){return M(e)}},R=function(){D(fp(h,1),!1)},N=function(){D(fp(h,-1),!1)},M=function(e){var t;null===(t=r.onHeaderSelect)||void 0===t||t.call(r),D(yp(h,e),!0)},F=function(){var e;T?null===(e=r.onHeaderSelect)||void 0===e||e.call(r):(l(),d(!0))},B=y.leftNavigation,O=y.rightNavigation,L=b,H=!C||Cp(C,new Date(h.getFullYear(),0,1,0,0,0,0))<0,V=!S||Cp(function(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}(h),S)<0,z=vh(_,{theme:x,className:E,hasHeaderClickCallback:!!r.onHeaderSelect||!T,highlightCurrent:w,highlightSelected:I,animateBackwards:p,animationDirection:P});if(u){var U=function(e){var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,o=function(e){if(r){var t=new Date(n.getTime());return t.setFullYear(e),r.formatYear(t)}return String(e)},i=function(e){return o(e.fromYear)+" - "+o(e.toYear)},a=function(e){return t.nextYearRangeAriaLabel?t.nextYearRangeAriaLabel+" "+i(e):""},s=function(e){return t.prevYearRangeAriaLabel?t.prevYearRangeAriaLabel+" "+i(e):""};return[o,{rangeAriaLabel:i,prevRangeAriaLabel:s,nextRangeAriaLabel:a,headerAriaLabelFormatString:t.yearPickerHeaderAriaLabel}]}(r),W=U[0],G=U[1];return o.createElement(gh,{key:"calendarYear",minYear:C?C.getFullYear():void 0,maxYear:S?S.getFullYear():void 0,onSelectYear:function(e){if(l(),h.getFullYear()!==e){var t=new Date(h.getTime());t.setFullYear(e),S&&t>S?t=yp(t,S.getMonth()):C&&t<C&&(t=yp(t,C.getMonth())),D(t,!0)}d(!1)},navigationIcons:y,onHeaderSelect:function(e){l(),d(!1)},selectedYear:m?m.getFullYear():h?h.getFullYear():void 0,onRenderYear:W,strings:G,componentRef:s,styles:_,highlightCurrentYear:w,highlightSelectedYear:I,animationDirection:P})}for(var j=[],q=0;q<f.shortMonths.length/4;q++)j.push(q);var K=L.formatYear(h),Y=f.monthPickerHeaderAriaLabel?Gr(f.monthPickerHeaderAriaLabel,K):K;return o.createElement("div",{className:z.root},o.createElement("div",{className:z.headerContainer},o.createElement("button",{className:z.currentItemButton,onClick:F,onKeyDown:Sh(F),"aria-label":Y,"data-is-focusable":!!r.onHeaderSelect||!T,tabIndex:r.onHeaderSelect||!T?0:-1,type:"button","aria-atomic":!0,"aria-live":"polite"},K),o.createElement("div",{className:z.navigationButtonsContainer},o.createElement("button",{className:Zt(z.navigationButton,(t={},t[z.disabled]=!H,t)),"aria-disabled":!H,tabIndex:H?void 0:k?0:-1,onClick:H?N:void 0,onKeyDown:H?Sh(N):void 0,title:f.prevYearAriaLabel?f.prevYearAriaLabel+" "+L.formatYear(fp(h,-1)):void 0,type:"button"},o.createElement(Ll,{iconName:xt()?O:B})),o.createElement("button",{className:Zt(z.navigationButton,(n={},n[z.disabled]=!V,n)),"aria-disabled":!V,tabIndex:V?void 0:k?0:-1,onClick:V?R:void 0,onKeyDown:V?Sh(R):void 0,title:f.nextYearAriaLabel?f.nextYearAriaLabel+" "+L.formatYear(fp(h,1)):void 0,type:"button"},o.createElement(Ll,{iconName:xt()?B:O})))),o.createElement(zc,null,o.createElement("div",{className:z.gridContainer,role:"grid","aria-label":K},j.map((function(e){var t=f.shortMonths.slice(4*e,4*(e+1));return o.createElement("div",{key:"monthRow_"+e+h.getFullYear(),role:"row",className:z.buttonRow},t.map((function(t,n){var r,i=4*e+n,s=yp(h,i),l=h.getMonth()===i,c=m.getMonth()===i,u=m.getFullYear()===h.getFullYear(),d=(!C||Cp(C,vp(s))<1)&&(!S||Cp(gp(s),S)<1);return o.createElement("button",{ref:l?a:void 0,role:"gridcell",className:Zt(z.itemButton,(r={},r[z.current]=w&&Ch(i,h.getFullYear(),v),r[z.selected]=I&&c&&u,r[z.disabled]=!d,r)),disabled:!k&&!d,key:i,onClick:d?A(i):void 0,onKeyDown:d?Sh(A(i)):void 0,"aria-label":L.formatMonth(s,f),"aria-selected":l,"data-is-focusable":!!d||void 0,type:"button","aria-readonly":!0},t)})))})))))};function Ch(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function Sh(e){return function(t){if(t.which===Ge)e()}}bh.displayName="CalendarMonthBase";var xh=Kr(bh,th,void 0,{scope:"CalendarMonth"}),_h=Ft(),Eh=[np.Monday,np.Tuesday,np.Wednesday,np.Thursday,np.Friday],kh={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:np.Sunday,dateRangeType:ip.Day,showGoToToday:!0,strings:Rp,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:rh,showWeekNumbers:!1,firstWeekOfYear:op.FirstDay,dateTimeFormatter:Ap,showSixWeeksByDefault:!1,workWeekDays:Eh,showCloseButton:!1,allFocusable:!1};var wh=o.forwardRef((function(e,t){var n=Qr(kh,e),r=function(e){var t=e.value,n=e.today,r=void 0===n?new Date:n,i=e.onSelectDate,a=bs(t,r),s=a[0],l=void 0===s?r:s,c=a[1],u=o.useState(t),d=u[0],p=void 0===d?r:d,h=u[1],m=o.useState(t),f=m[0],g=void 0===f?r:f,v=m[1],y=o.useState(t),b=y[0],C=void 0===b?r:b,S=y[1];return t&&C.valueOf()!==t.valueOf()&&(h(t),v(t),S(t)),[l,p,g,function(e,t){v(e),h(e),c(e),null===i||void 0===i||i(e,t)},function(e){v(e),h(e)},function(e){v(e)}]}(n),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],d=r[5],p=function(e){var t=bs(Ih(e)?void 0:e.isMonthPickerVisible,!1),n=t[0],r=void 0===n||n,o=t[1],i=bs(Ih(e)?void 0:e.isDayPickerVisible,!0),a=i[0],s=void 0===a||a,l=i[1];return[r,s,function(){o(!r),l(!s)}]}(n),h=p[0],m=p[1],f=p[2],g=function(e,t,n){var r=e.componentRef,i=o.useRef(null),a=o.useRef(null),s=o.useRef(!1),l=o.useCallback((function(){t&&i.current?_n(i.current):n&&a.current&&_n(a.current)}),[t,n]);return o.useImperativeHandle(r,(function(){return{focus:l}}),[l]),o.useEffect((function(){s.current&&(l(),s.current=!1)})),[i,a,function(){s.current=!0}]}(n,m,h),v=g[0],y=g[1],b=g[2],C=function(){var e=I;return e&&G&&(e=a.getFullYear()!==G.getFullYear()||a.getMonth()!==G.getMonth()||s.getFullYear()!==G.getFullYear()||s.getMonth()!==G.getMonth()),I&&o.createElement("button",{className:Zt("js-goToday",Y.goTodayButton),onClick:x,onKeyDown:_(x),type:"button",disabled:!e},w.goToToday)},S=Ih(n)?function(){f(),b()}:void 0,x=function(){c(G),b()},_=function(e){return function(t){switch(t.which){case Ge:case Xe:e()}}},E=n.firstDayOfWeek,k=n.dateRangeType,w=n.strings,I=n.showGoToToday,P=n.highlightCurrentMonth,T=n.highlightSelectedMonth,D=n.navigationIcons,A=n.minDate,R=n.maxDate,N=n.restrictedDates,M=n.className,F=n.showCloseButton,B=n.allFocusable,O=n.styles,L=n.showWeekNumbers,H=n.theme,V=n.calendarDayProps,z=n.calendarMonthProps,U=n.dateTimeFormatter,W=n.today,G=void 0===W?new Date:W,j=Ih(n),q=!j&&!m,K=j&&I,Y=_h(O,{theme:H,className:M,isMonthPickerVisible:h,isDayPickerVisible:m,monthPickerOnly:q,showMonthPickerAsOverlay:j,overlaidWithButton:K,overlayedWithButton:K,showGoToToday:I,showWeekNumbers:L}),X="",Q="";U&&w.todayDateFormatString&&(X=Gr(w.todayDateFormatString,U.formatMonthDayYear(G,w))),U&&w.selectedDateFormatString&&(Q=Gr(w.selectedDateFormatString,U.formatMonthDayYear(i,w)));var Z=Q+", "+X;return o.createElement("div",{ref:t,role:"group","aria-label":Z,className:Zt("ms-DatePicker",Y.root,M,"ms-slideDownIn10"),onKeyDown:function(e){var t;switch(e.which){case Ge:case Ue:e.preventDefault();break;case Ye:null===(t=n.onDismiss)||void 0===t||t.call(n);break;case Qe:e.ctrlKey?c(fp(a,1)):c(mp(a,1)),e.preventDefault();break;case Ze:e.ctrlKey?c(fp(a,-1)):c(mp(a,-1)),e.preventDefault()}}},o.createElement("div",{className:Y.liveRegion,"aria-live":"polite","aria-atomic":"true"},o.createElement("span",null,Q)),m&&o.createElement($p,u({selectedDate:i,navigatedDate:a,today:n.today,onSelectDate:l,onNavigateDate:function(e,t){c(e),t&&b()},onDismiss:n.onDismiss,firstDayOfWeek:E,dateRangeType:k,strings:w,onHeaderSelect:S,navigationIcons:D,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,dateTimeFormatter:n.dateTimeFormatter,showSixWeeksByDefault:n.showSixWeeksByDefault,minDate:A,maxDate:R,restrictedDates:N,workWeekDays:n.workWeekDays,componentRef:v,showCloseButton:F,allFocusable:B},V)),m&&h&&o.createElement("div",{className:Y.divider}),h?o.createElement("div",{className:Y.monthPickerWrapper},o.createElement(xh,u({navigatedDate:s,selectedDate:a,strings:w,onNavigateDate:function(e,t){t&&b(),t?(q&&l(e),c(e)):d(e)},today:n.today,highlightCurrentMonth:P,highlightSelectedMonth:T,onHeaderSelect:S,navigationIcons:D,dateTimeFormatter:n.dateTimeFormatter,minDate:A,maxDate:R,componentRef:y},z)),C()):C(),o.createElement(vr,null))}));function Ih(e){var t=ue();return e.showMonthPickerAsOverlay||t&&t.innerWidth<=440}wh.displayName="CalendarBase";var Ph=Kr(wh,(function(e){var t=e.className,n=e.theme,r=e.isDayPickerVisible,o=e.isMonthPickerVisible,i=e.showWeekNumbers,a=n.palette,s=r&&o?440:220;return i&&r&&(s+=30),{root:[oa,{display:"flex",width:s},!o&&{flexDirection:"column"},t],divider:{top:0,borderRight:"1px solid",borderColor:a.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[Ei(n,{inset:-1}),{bottom:0,color:a.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:ci.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:ci.small},"&:hover":{color:a.themePrimary,backgroundColor:"transparent",cursor:"pointer"},"&:active":{color:a.themeDark},"&:disabled":{color:a.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}}),void 0,{scope:"Calendar"}),Th=Ft(),Dh=o.forwardRef((function(e,t){var n=e.checked,r=void 0!==n&&n,i=e.className,a=e.theme,s=e.styles,l=e.useFastIcons,c=void 0===l||l,u=Th(s,{theme:a,className:i,checked:r}),d=c?Fl:Ll;return o.createElement("div",{className:u.root,ref:t},o.createElement(d,{iconName:"CircleRing",className:u.circle}),o.createElement(d,{iconName:"StatusCircleCheckmark",className:u.check}))}));Dh.displayName="CheckBase";var Ah={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},Rh=Kr(Dh,(function(e){var t,n,r,o,i,a=e.height,s=void 0===a?e.checkBoxHeight||"18px":a,l=e.checked,c=e.className,d=e.theme,p=d.palette,h=d.semanticColors,m=d.fonts,f=xt(d),g=Mi(Ah,d),v={fontSize:s,position:"absolute",left:0,top:0,width:s,height:s,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[g.root,m.medium,{lineHeight:"1",width:s,height:s,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:h.bodyBackground}},t["."+g.checkHost+":hover &, ."+g.checkHost+":focus &, &:hover, &:focus"]={opacity:1},t)},l&&["is-checked",{selectors:{":before":{background:p.themePrimary,opacity:1,selectors:(n={},n[Ci]={background:"Window"},n)}}}],c],circle:[g.circle,v,{color:p.neutralSecondary,selectors:(r={},r[Ci]={color:"WindowText"},r)},l&&{color:p.white}],check:[g.check,v,{opacity:0,color:p.neutralSecondary,fontSize:di.medium,left:f?"-0.5px":".5px",top:"-1px",selectors:(o={":hover":{opacity:1}},o[Ci]=u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},l&&{opacity:1,color:p.white,fontWeight:900,selectors:(i={},i[Ci]={border:"none",color:"WindowText"},i)}],checkHost:g.checkHost}}),void 0,{scope:"Check"},!0),Nh=Ft(),Mh=o.forwardRef((function(e,t){var n=e.disabled,r=e.required,i=e.inputProps,a=e.name,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,d=e.ariaPositionInSet,p=e.ariaSetSize,h=e.title,m=e.checkmarkIconProps,f=e.styles,g=e.theme,v=e.className,y=e.boxSide,b=void 0===y?"start":y,C=Cs("checkbox-",e.id),S=o.useRef(null),x=Ss(S,t),_=o.useRef(null),E=bs(e.checked,e.defaultChecked,e.onChange),k=E[0],w=E[1],I=bs(e.indeterminate,e.defaultIndeterminate),P=I[0],T=I[1];gr(S),function(e){As({name:"Checkbox",props:e,mutuallyExclusive:{checked:"defaultChecked",indeterminate:"defaultIndeterminate"}})}(e),function(e,t,n,r){o.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},get indeterminate(){return!!n},focus:function(){r.current&&r.current.focus()}}}),[r,t,n])}(e,k,P,_);var D=Nh(f,{theme:g,className:v,disabled:n,indeterminate:P,checked:k,reversed:"start"!==b,isUsingCustomLabelRender:!!e.onRenderLabel}),A=o.useCallback((function(e){return e&&e.label?o.createElement("span",{className:D.text,title:e.title},e.label):null}),[D.text]),R=e.onRenderLabel||A,N=P?"mixed":void 0,M=u(u({className:D.input,type:"checkbox"},i),{checked:!!k,disabled:n,required:r,name:a,id:C,title:h,onChange:function(e){P?(w(!!k,e),T(!1)):w(!k,e)},"aria-disabled":n,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,"aria-posinset":d,"aria-setsize":p,"aria-checked":N});return o.createElement("div",{className:D.root,title:h,ref:x},o.createElement("input",u({},M,{ref:_,title:h,"data-ktp-execute-target":!0})),o.createElement("label",{className:D.label,htmlFor:C},o.createElement("div",{className:D.checkbox,"data-ktp-target":!0},o.createElement(Ll,u({iconName:"CheckMark"},m,{className:D.checkmark}))),R(e,A)))}));Mh.displayName="CheckboxBase";var Fh={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Bh="20px",Oh="200ms",Lh="cubic-bezier(.4, 0, .23, 1)",Hh=Kr(Mh,(function(e){var t,n,r,o,i,a,s,l,c,d,p,h,m,f,g,v,y,b,C=e.className,S=e.theme,x=e.reversed,_=e.checked,E=e.disabled,k=e.isUsingCustomLabelRender,w=e.indeterminate,I=S.semanticColors,P=S.effects,T=S.palette,D=S.fonts,A=Mi(Fh,S),R=I.inputForegroundChecked,N=T.neutralSecondary,M=T.neutralPrimary,F=I.inputBackgroundChecked,B=I.inputBackgroundChecked,O=I.disabledBodySubtext,L=I.inputBorderHovered,H=I.inputBackgroundCheckedHovered,V=I.inputBackgroundChecked,z=I.inputBackgroundCheckedHovered,U=I.inputBackgroundCheckedHovered,W=I.inputTextHovered,G=I.disabledBodySubtext,j=I.bodyText,q=I.disabledText,K=[(t={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:E?O:F,transitionProperty:"border-width, border, border-color",transitionDuration:Oh,transitionTimingFunction:Lh},t[Ci]={borderColor:"WindowText"},t)];return{root:[A.root,{position:"relative",display:"flex"},x&&"reversed",_&&"is-checked",!E&&"is-enabled",E&&"is-disabled",!E&&[!_&&(n={},n[":hover ."+A.checkbox]=(r={borderColor:L},r[Ci]={borderColor:"Highlight"},r),n[":focus ."+A.checkbox]={borderColor:L},n[":hover ."+A.checkmark]=(o={color:N,opacity:"1"},o[Ci]={color:"Highlight"},o),n),_&&!w&&(i={},i[":hover ."+A.checkbox]={background:z,borderColor:U},i[":focus ."+A.checkbox]={background:z,borderColor:U},i[Ci]=(a={},a[":hover ."+A.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+A.checkbox]={background:"Highlight"},a[":focus:hover ."+A.checkbox]={background:"Highlight"},a[":focus:hover ."+A.checkmark]={color:"Window"},a[":hover ."+A.checkmark]={color:"Window"},a),i),w&&(s={},s[":hover ."+A.checkbox+", :hover ."+A.checkbox+":after"]=(l={borderColor:H},l[Ci]={borderColor:"WindowText"},l),s[":focus ."+A.checkbox]={borderColor:H},s[":hover ."+A.checkmark]={opacity:"0"},s),(c={},c[":hover ."+A.text+", :focus ."+A.text]=(d={color:W},d[Ci]={color:E?"GrayText":"WindowText"},d),c)],C],input:(p={position:"absolute",background:"none",opacity:0},p[".ms-Fabric--isFocusVisible &:focus + label::before"]=(h={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},h[Ci]={outline:"1px solid WindowText"},h),p),label:[A.label,S.fonts.medium,{display:"flex",alignItems:k?"center":"flex-start",cursor:E?"default":"pointer",position:"relative",userSelect:"none"},x&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[A.checkbox,(m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:Bh,width:Bh,border:"1px solid "+M,borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:Oh,transitionTimingFunction:Lh,overflow:"hidden",":after":w?K:null},m[Ci]=u({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m),w&&{borderColor:F},x?{marginLeft:4}:{marginRight:4},!E&&!w&&_&&(f={background:V,borderColor:B},f[Ci]={background:"Highlight",borderColor:"Highlight"},f),E&&(g={borderColor:O},g[Ci]={borderColor:"GrayText"},g),_&&E&&(v={background:G,borderColor:O},v[Ci]={background:"Window"},v)],checkmark:[A.checkmark,(y={opacity:_?"1":"0",color:R},y[Ci]=u({color:E?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),y)],text:[A.text,(b={color:E?q:j,fontSize:D.medium.fontSize,lineHeight:"20px"},b[Ci]=u({color:E?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),x?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),Vh=Ft({cacheSize:100}),zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,i=e.className,a=e.disabled,s=e.styles,l=e.required,c=e.theme,d=Vh(s,{className:i,disabled:a,required:l,theme:c});return o.createElement(n,u({},$n(this.props,Jn),{className:d.root}),r)},t}(o.Component),Uh=Kr(zh,(function(e){var t,n=e.theme,r=e.className,o=e.disabled,i=e.required,a=n.semanticColors,s=ui.semibold,l=a.bodyText,c=a.disabledBodyText,d=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:c,selectors:(t={},t[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},i&&{selectors:{"::after":{content:"' *'",color:d,paddingRight:12}}},r]}}),void 0,{scope:"Label"}),Wh=Ft(),Gh={imageSize:{width:32,height:32}},jh=function(e){var t=Qr(u(u({},Gh),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,i=t.required,a=t.theme,s=t.iconProps,l=t.imageSrc,c=t.imageSize,p=t.disabled,h=t.checked,m=t.id,f=t.styles,g=t.name,v=d(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),y=Wh(f,{theme:a,hasIcon:!!s,hasImage:!!l,checked:h,disabled:p,imageIsLarge:!!l&&(c.width>71||c.height>71),imageSize:c,focused:r}),b=$n(v,Hn),C=b.className,S=d(b,["className"]),x=function(){return o.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},_=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,i=(t.onRenderLabel?Br(t.onRenderLabel,x):x)(t);return o.createElement("label",{htmlFor:m,className:y.field},l&&o.createElement("div",{className:y.innerField},o.createElement("div",{className:y.imageWrapper},o.createElement(Al,u({src:l,alt:n},c))),o.createElement("div",{className:y.selectedImageWrapper},o.createElement(Al,u({src:r,alt:n},c)))),s&&o.createElement("div",{className:y.innerField},o.createElement("div",{className:y.iconWrapper},o.createElement(Ll,u({},s)))),l||s?o.createElement("div",{className:y.labelWrapper},i):i)},E=t.onRenderField,k=void 0===E?_:E;return o.createElement("div",{className:y.root},o.createElement("div",{className:y.choiceFieldWrapper},o.createElement("input",u({"aria-label":n,id:m,className:Zt(y.input,C),type:"radio",name:g,disabled:p,checked:h,required:i},S,{onChange:function(e){var n;null===(n=t.onChange)||void 0===n||n.call(t,e,t)},onFocus:function(e){var n;null===(n=t.onFocus)||void 0===n||n.call(t,e,t)},onBlur:function(e){var n;null===(n=t.onBlur)||void 0===n||n.call(t,e)}})),k(t,_)))};jh.displayName="ChoiceGroupOption";var qh={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Kh="200ms",Yh="cubic-bezier(.4, 0, .23, 1)";function Xh(e,t){var n,r;return["is-inFocus",{selectors:(n={},n[".ms-Fabric--isFocusVisible &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+e,position:"absolute",selectors:(r={},r[Ci]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function Qh(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Kh,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var Zh=Kr(jh,(function(e){var t,n,r,o,i,a=e.theme,s=e.hasIcon,l=e.hasImage,c=e.checked,d=e.disabled,p=e.imageIsLarge,h=e.focused,m=e.imageSize,f=a.palette,g=a.semanticColors,v=a.fonts,y=Mi(qh,a),b=f.neutralPrimary,C=g.inputBorderHovered,S=g.inputBackgroundChecked,x=f.themeDark,_=g.disabledBodySubtext,E=g.bodyBackground,k=f.neutralSecondary,w=g.inputBackgroundChecked,I=f.themeDark,P=g.disabledBodySubtext,T=f.neutralDark,D=g.focusBorder,A=g.inputBorderHovered,R=g.inputBackgroundChecked,N=f.themeDark,M=f.neutralLighter,F={selectors:{".ms-ChoiceFieldLabel":{color:T},":before":{borderColor:c?x:C},":after":[!s&&!l&&!c&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:k},c&&{borderColor:I,background:I}]}},B={borderColor:c?N:A,selectors:{":before":{opacity:1,borderColor:c?x:C}}},O=[{content:'""',display:"inline-block",backgroundColor:E,borderWidth:1,borderStyle:"solid",borderColor:b,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Kh,transitionTimingFunction:Yh,borderRadius:"50%"},d&&{borderColor:_,selectors:(t={},t[Ci]=u({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},c&&{borderColor:d?_:S,selectors:(n={},n[Ci]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:c?1:0}],L=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Kh,transitionTimingFunction:Yh,boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:d?P:w,background:w,left:5,top:5,width:10,height:10,selectors:(r={},r[Ci]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},c&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[y.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:g.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:M,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,h&&Xh(D,s||l)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},d&&"is-disabled"],field:[y.field,c&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!d&&F,":focus":!d&&F,":before":O,":after":L}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Kh,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:R},(s||l)&&!d&&{selectors:{":hover":B,":focus":B}},d&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:(o={},o[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}}},c&&d&&{borderColor:M}],innerField:[y.innerField,l&&{height:m.height,width:m.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&p&&{paddingLeft:24,paddingRight:24},(s||l)&&d&&{opacity:.25,selectors:(i={},i[Ci]={color:"GrayText",opacity:1},i)}],imageWrapper:Qh(!1,y.imageWrapper,c),selectedImageWrapper:Qh(!0,y.imageWrapper,c),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,v.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*m.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),Jh=Ft(),$h=function(e,t){return t+"-"+e.key},em=function(e,t){return void 0===t?void 0:gt(e,(function(e){return e.key===t}))},tm="ChoiceGroup",nm=o.forwardRef((function(e,t){var n=e.className,r=e.theme,i=e.styles,a=e.options,s=void 0===a?[]:a,l=e.label,c=e.required,d=e.disabled,p=e.name,h=e.defaultSelectedKey,m=e.componentRef,f=e.onChange,g=Cs("ChoiceGroup"),v=Cs("ChoiceGroupLabel"),y=$n(e,Jn,["onChange","className","required"]),b=Jh(i,{theme:r,className:n,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),C=e.ariaLabelledBy||(l?v:e["aria-labelledby"]),S=bs(e.selectedKey,h),x=S[0],_=S[1],E=o.useState(),k=E[0],w=E[1];!function(e){As({name:tm,props:e,mutuallyExclusive:{selectedKey:"defaultSelectedKey"}})}(e),function(e,t,n,r){o.useImperativeHandle(r,(function(){return{get checkedOption(){return em(e,t)},focus:function(){var r=em(e,t)||e.filter((function(e){return!e.disabled}))[0],o=r&&document.getElementById($h(r,n));o&&(o.focus(),hr(!0,o))}}}),[e,t,n])}(s,x,g,m);var I=o.useCallback((function(e,t){var n;t&&(w(t.itemKey),null===(n=t.onFocus)||void 0===n||n.call(t,e))}),[]),P=o.useCallback((function(e,t){var n;w(void 0),null===(n=null===t||void 0===t?void 0:t.onBlur)||void 0===n||n.call(t,e)}),[]),T=o.useCallback((function(e,t){var n;t&&(_(t.itemKey),null===(n=t.onChange)||void 0===n||n.call(t,e),null===f||void 0===f||f(e,em(s,t.itemKey)))}),[f,s,_]);return o.createElement("div",u({className:b.root},y,{ref:t}),o.createElement("div",u({role:"radiogroup"},C&&{"aria-labelledby":C}),l&&o.createElement(Uh,{className:b.label,required:c,id:v,disabled:d},l),o.createElement("div",{className:b.flexContainer},s.map((function(e){return o.createElement(Zh,u({itemKey:e.key},e,{key:e.key,onBlur:P,onFocus:I,onChange:T,focused:e.key===k,checked:e.key===x,disabled:e.disabled||d,id:$h(e,g),labelId:e.labelId||v+"-"+e.key,name:p||g,required:c}))})))))}));nm.displayName=tm;var rm={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},om=Kr(nm,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=Mi(rm,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),im=32,am=Gt((function(){return ae({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})})),sm=Gt((function(){return ae({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})})),lm=Gt((function(){return ae({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})}));var cm,um=Gt((function(){var e;return ne({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(e={},e[Ci]={border:"1px solid WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})})),dm={opacity:0},pm=((cm={})[da.top]="slideUpIn20",cm[da.bottom]="slideDownIn20",cm[da.left]="slideLeftIn20",cm[da.right]="slideRightIn20",cm),hm={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Ta};function mm(e,t,n,r,i){var a=vs(),s=o.useState(),l=s[0],c=s[1],d=o.useRef(0),p=function(){a.requestAnimationFrame((function(){return h()}))},h=function(){var o=e.offsetFromTarget,a=e.onPositioned,s=t.current,p=n.current;if(s&&p){var h=u({},e);h.bounds=i(),h.target=r.current;var m=h.target;if(m)if(!m.getBoundingClientRect&&!m.preventDefault||document.body.contains(m)){h.gapSpace=o;var f=ms(h,s,p);!l&&f||l&&f&&!function(e,t){return function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(r&&o&&r.toFixed(2)!==o.toFixed(2))return!1}return!0}(e.elementPosition,t.elementPosition)}(l,f)&&d.current<5?(d.current++,c(f),null===a||void 0===a||a(f)):(d.current=0,null===a||void 0===a||a(f))}else void 0!==l&&c(void 0);else void 0!==l&&c(void 0)}};return o.useEffect(p),[l,p]}function fm(e,t,n){var r=e.directionalHintFixed,i=e.offsetFromTarget,a=e.directionalHint,s=e.target,l=o.useRef();"string"===typeof s&&(l.current=void 0),o.useEffect((function(){l.current=void 0}),[s,i]);return function(){if(!l.current)if(r&&t.current){var e=i||0;l.current=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,a=e,s=e,l=r?cs(r):new pt(0,window.innerWidth-Ee(),0,window.innerHeight),c=s.left||s.x,u=s.top||s.y,d=s.right||c,p=s.bottom||u;return us(i.stopPropagation?new pt(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==c&&void 0!==u?new pt(c,d,u,p):ls(a),t,n,l,o)}(t.current,a,e,n())}else l.current=n().height-2;return l.current}}var gm=o.forwardRef((function(e,t){var n=Qr(hm,e),r=o.useRef(null),i=o.useRef(null),a=Ss(t,i),s=Ts(n.target,i),l=s[0],c=s[1],u=function(e,t){var n=o.useRef();return function(){if(!n.current){var r=e.bounds;r||(r={top:0+e.minPagePadding,left:0+e.minPagePadding,right:t.innerWidth-e.minPagePadding,bottom:t.innerHeight-e.minPagePadding,width:t.innerWidth-2*e.minPagePadding,height:t.innerHeight-2*e.minPagePadding}),n.current=r}return n.current}}(n,c),d=mm(n,i,r,l,u),p=d[0],h=d[1],m=fm(n,l,u),f=function(e,t){var n=e.finalHeight,r=o.useState(0),i=r[0],a=r[1],s=vs(),l=o.useRef(0);return o.useEffect((function e(){t&&n&&(l.current=s.requestAnimationFrame((function(){if(t.current){var r=t.current.lastChild,o=r.scrollHeight,c=r.offsetHeight;a(i+(o-c)),r.offsetHeight<n?e():s.cancelAnimationFrame(l.current)}})))}),[n]),i}(n,r);if(function(e,t,n){var r=e.setInitialFocus,i=o.useRef(!1);o.useEffect((function(){!i.current&&t.current&&r&&n&&(i.current=!0,mn(t.current))}))}(n,r,p),function(e,t,n,r,i,a){var s=e.onDismiss,l=e.preventDismissOnScroll,c=vs(),u=o.useCallback((function(e){s?s(e):a()}),[s,a]),d=o.useCallback((function(e){var o=e.target,i=t.current&&!wt(t.current,o);(!r.current&&i||e.target!==n&&i&&(r.current.stopPropagation||!r.current||o!==r.current&&!wt(r.current,o)))&&u(e)}),[u,t,r,n]),p=o.useCallback((function(e){i&&!l&&d(e)}),[d,i,l]);o.useEffect((function(){var e=new ge({});return c.setTimeout((function(){var t,r;e.on(n,"scroll",c.throttle(p,10),!0),e.on(n,"resize",c.throttle(u,10),!0),e.on(null===(t=null===n||void 0===n?void 0:n.document)||void 0===t?void 0:t.body,"focus",d,!0),e.on(null===(r=null===n||void 0===n?void 0:n.document)||void 0===r?void 0:r.body,"click",d,!0)}),0),function(){return e.dispose()}}),[p])}(n,i,c,l,p,h),o.useEffect((function(){var e;return null===(e=n.onLayerMounted)||void 0===e?void 0:e.call(n)}),[]),!c)return null;var g=n.className,v=n.doNotLayer,y=n.positioningContainerWidth,b=n.positioningContainerMaxHeight,C=n.children,S=um(),x=p&&p.targetEdge?sa[pm[p.targetEdge]]:"",_=m()+f,E=b&&b>_?_:b,k=o.createElement("div",{ref:a,className:Zt("ms-PositioningContainer",S.container)},o.createElement("div",{className:$("ms-PositioningContainer-layerHost",S.root,g,x,!!y&&{width:y},v&&{zIndex:bi.Layer}),style:p?p.elementPosition:dm,tabIndex:-1,ref:r},C,E));return v?k:o.createElement(cl,null,k)}));function vm(e){var t;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block",selectors:(t={},t[Ci]={fill:"windowtext"},t)}}}gm.displayName="PositioningContainer";var ym=10,bm=18,Cm=o.forwardRef((function(e,t){var n,r,i,a,s,l,c=e.left,u=e.top,d=e.bottom,p=e.right,h=e.color,m=e.direction,f=void 0===m?da.top:m;switch(f===da.top||f===da.bottom?(n=ym,r=bm):(n=bm,r=ym),f){case da.top:default:i="9, 0",a="18, 10",s="0, 10",l="translateY(-100%)";break;case da.right:i="0, 0",a="10, 10",s="0, 18",l="translateX(100%)";break;case da.bottom:i="0, 0",a="18, 0",s="9, 10",l="translateY(100%)";break;case da.left:i="10, 0",a="0, 10",s="10, 18",l="translateX(-100%)"}var g=Ft()(vm,{left:c,top:u,bottom:d,right:p,height:n+"px",width:r+"px",transform:l,color:h});return o.createElement("div",{className:g.root,role:"presentation",ref:t},o.createElement("svg",{height:n,width:r,className:g.beak},o.createElement("polygon",{points:i+" "+a+" "+s})))}));Cm.displayName="Beak";var Sm=Ft(),xm={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Ta}};var _m="CoachmarkBase",Em=o.forwardRef((function(e,t){var n=Qr(xm,e),r=o.useRef(null),i=o.useRef(null),a=function(){var e=vs(),t=o.useState(),n=t[0],r=t[1],i=o.useState(),a=i[0],s=i[1];return[n,a,function(t){var n=t.alignmentEdge,o=t.targetEdge;return e.requestAnimationFrame((function(){r(n),s(o)}))}]}(),s=a[0],l=a[1],c=a[2],d=function(e,t){var n=e.isCollapsed,r=e.onAnimationOpenStart,i=e.onAnimationOpenEnd,a=o.useState(!!n),s=a[0],l=a[1],c=ks().setTimeout,u=o.useRef(!s),d=o.useCallback((function(){var e,n;u.current||(l(!1),null===r||void 0===r||r(),null===(n=null===(e=t.current)||void 0===e?void 0:e.addEventListener)||void 0===n||n.call(e,"transitionend",(function(){c((function(){t.current&&mn(t.current)}),1e3),null===i||void 0===i||i()})),u.current=!0)}),[t,i,r,c]);return o.useEffect((function(){n||d()}),[n]),[s,d]}(n,r),p=d[0],h=d[1],m=function(e,t,n){var r=xt(e.theme);return o.useMemo((function(){var e,o,i=void 0===n?da.bottom:-1*n,a={direction:i},s="3px";switch(i){case da.top:case da.bottom:t?t===da.left?(a.left="7px",e="left"):(a.right="7px",e="right"):(a.left="calc(50% - 9px)",e="center"),i===da.top?(a.top=s,o="top"):(a.bottom=s,o="bottom");break;case da.left:case da.right:t?t===da.top?(a.top="7px",o="top"):(a.bottom="7px",o="bottom"):(a.top="calc(50% - 9px)",o="center"),i===da.left?(r?a.right=s:a.left=s,e="left"):(r?a.left=s:a.right=s,e="right")}return[a,e+" "+o]}),[t,n,r])}(n,s,l),f=m[0],g=m[1],v=function(e,t){var n=o.useState(!!e.isCollapsed),r=n[0],i=n[1],a=o.useState(e.isCollapsed?{width:0,height:0}:{}),s=a[0],l=a[1],c=vs();return o.useEffect((function(){c.requestAnimationFrame((function(){t.current&&(l({width:t.current.offsetWidth,height:t.current.offsetHeight}),i(!1))}))}),[]),[r,s]}(n,r),y=v[0],b=v[1],C=function(e){var t=e.ariaAlertText,n=vs(),r=o.useState(),i=r[0],a=r[1];return o.useEffect((function(){n.requestAnimationFrame((function(){a(t)}))}),[]),i}(n),S=function(e){var t=e.preventFocusOnMount,n=ks().setTimeout,r=o.useRef(null);return o.useEffect((function(){t||n((function(){var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}),1e3)}),[]),r}(n);!function(e,t,n){var r,o=null===(r=ve())||void 0===r?void 0:r.documentElement;xs(o,"keydown",(function(e){var r,o;(e.altKey&&e.which===lt||e.which===Ge&&(null===(o=null===(r=t.current)||void 0===r?void 0:r.contains)||void 0===o?void 0:o.call(r,e.target)))&&n()}),!0);var i=function(n){var r;if(e.preventDismissOnLostFocus){var o=n.target,i=t.current&&!wt(t.current,o),a=e.target;i&&o!==a&&!wt(a,o)&&(null===(r=e.onDismiss)||void 0===r||r.call(e,n))}};xs(o,"click",i,!0),xs(o,"focus",i,!0)}(n,i,h),function(e){var t=e.onDismiss;o.useImperativeHandle(e.componentRef,(function(e){return{dismiss:function(){null===t||void 0===t||t(e)}}}),[t])}(n),function(e,t,n){var r=ks(),i=r.setTimeout,a=r.clearTimeout,s=o.useRef();o.useEffect((function(){var r=function(){t.current&&(s.current=t.current.getBoundingClientRect())},o=new ge({});return i((function(){var t=e.mouseProximityOffset,l=void 0===t?0:t,c=[];i((function(){r(),o.on(window,"resize",(function(){c.forEach((function(e){a(e)})),c.splice(0,c.length),c.push(i((function(){r()}),100))}))}),10),o.on(document,"mousemove",(function(t){var o,i=t.clientY,a=t.clientX;r(),function(e,t,n,r){return void 0===r&&(r=0),t>e.left-r&&t<e.left+e.width+r&&n>e.top-r&&n<e.top+e.height+r}(s.current,a,i,l)&&n(),null===(o=e.onMouseMove)||void 0===o||o.call(e,t)}))}),e.delayBeforeMouseOpen),function(){return o.dispose()}}),[])}(n,i,h),function(e){As({name:_m,props:e,deprecations:{teachingBubbleRef:void 0,collapsed:"isCollapsed",beakWidth:void 0,beakHeight:void 0,width:void 0,height:void 0}})}(n);var x=n.beaconColorOne,_=n.beaconColorTwo,E=n.children,k=n.target,w=n.color,I=n.positioningContainerProps,P=n.ariaDescribedBy,T=n.ariaDescribedByText,D=n.ariaLabelledBy,A=n.ariaLabelledByText,R=n.ariaAlertText,N=n.delayBeforeCoachmarkAnimation,M=n.styles,F=n.theme,B=n.className,O=n.persistentBeak,L=w;!L&&F&&(L=F.semanticColors.primaryButtonBackground);var H=Sm(M,{theme:F,beaconColorOne:x,beaconColorTwo:_,className:B,isCollapsed:p,isMeasuring:y,color:L,transformOrigin:g,entityHostHeight:void 0===b.height?void 0:b.height+"px",entityHostWidth:void 0===b.width?void 0:b.width+"px",width:"32px",height:"32px",delayBeforeCoachmarkAnimation:N+"ms"}),V=p?32:b.height;return o.createElement(gm,u({target:k,offsetFromTarget:ym,finalHeight:V,ref:t,onPositioned:c,bounds:km(n)},I),o.createElement("div",{className:H.root},R&&o.createElement("div",{className:H.ariaContainer,role:"alert","aria-hidden":!p},C),o.createElement("div",{className:H.pulsingBeacon}),o.createElement("div",{className:H.translateAnimationContainer,ref:i},o.createElement("div",{className:H.scaleAnimationLayer},o.createElement("div",{className:H.rotateAnimationLayer},(p||O)&&o.createElement(Cm,u({},f,{color:L})),o.createElement("div",{className:H.entityHost,ref:S,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":D,"aria-describedby":P},p&&[D&&o.createElement("p",{id:D,key:0,className:H.ariaContainer},A),P&&o.createElement("p",{id:P,key:1,className:H.ariaContainer},T)],o.createElement(dl,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},o.createElement("div",{className:H.entityInnerHost,ref:r},o.createElement("div",{className:H.childrenContainer,"aria-hidden":p},E)))))))))}));function km(e){var t=e.isPositionForced,n=e.positioningContainerProps;return t?!n||n.directionalHint!==ka&&n.directionalHint!==Ta?{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:void 0}Em.displayName=_m;Kr(Em,(function(e){var t,n=e.theme,r=e.className,o=e.color,i=e.beaconColorOne,a=e.beaconColorTwo,s=e.delayBeforeCoachmarkAnimation,l=e.isCollapsed,c=e.isMeasuring,u=e.entityHostHeight,d=e.entityHostWidth,p=e.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var h=Ri.continuousPulseAnimationDouble(i||n.palette.themePrimary,a||n.palette.themeTertiary,"35px","150px","10px"),m=Ri.createDefaultAnimation(h,s);return{root:[n.fonts.medium,{position:"relative"},r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:xt(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},l&&m],translateAnimationContainer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:am(),transition:"opacity 0.5s ease-in-out"},!l&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:sm()}],rotateAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:lm()},!l&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:o,borderRadius:im,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(t={},t[Ci]={backgroundColor:"Window",border:"2px solid WindowText"},t[".ms-Fabric--isFocusVisible &:focus"]={outline:"1px solid "+n.palette.themeTertiary},t)},!c&&l&&{width:im,height:32},!c&&{visibility:"visible"},!l&&{borderRadius:"1px",opacity:"1",width:d,height:u}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:p,transform:"scale(0)"},!l&&{width:d,height:u,transform:"scale(1)"},!c&&{visibility:"visible"}],childrenContainer:[{display:!c&&l?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}),void 0,{scope:"Coachmark"});var wm=100,Im=100,Pm=255,Tm=100,Dm=/^[\da-f]{0,6}$/i,Am=/^\d{0,3}$/;function Rm(e,t,n){var r=[],o=(n/=100)*(t/=100),i=e/60,a=o*(1-Math.abs(i%2-1)),s=n-o;switch(Math.floor(i)){case 0:r=[o,a,0];break;case 1:r=[a,o,0];break;case 2:r=[0,o,a];break;case 3:r=[0,a,o];break;case 4:r=[a,0,o];break;case 5:r=[o,0,a]}return{r:Math.round(Pm*(r[0]+s)),g:Math.round(Pm*(r[1]+s)),b:Math.round(Pm*(r[2]+s))}}function Nm(e){if(e){var t=Mm(e)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:Tm}}(e)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:Tm}}(e)||function(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r){var i=function(e,t,n){var r=function(e,t,n){var r=n+(t*=(n<50?n:100-n)/100);return{h:e,s:0===r?0:2*t/r*100,v:r}}(e,t,n);return Rm(r.h,r.s,r.v)}(o[0],o[1],o[2]);return i.a=n?100*o[3]:Tm,i}}}(e);return t||function(e){if("undefined"===typeof document)return;var t=document.createElement("div");t.style.backgroundColor=e,t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.width="1px",document.body.appendChild(t);var n=getComputedStyle(t),r=n&&n.backgroundColor;if(document.body.removeChild(t),"rgba(0, 0, 0, 0)"===r||"transparent"===r){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return Mm(r)}(e)}}function Mm(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r)return{r:o[0],g:o[1],b:o[2],a:n?100*o[3]:Tm}}}}function Fm(e,t,n){return void 0===n&&(n=0),e<n?n:e>t?t:e}function Bm(e,t,n){return[Om(e),Om(t),Om(n)].join("")}function Om(e){var t=(e=Fm(e,Pm)).toString(16);return 1===t.length?"0"+t:t}function Lm(e,t,n){var r=Rm(e,t,n);return Bm(r.r,r.g,r.b)}function Hm(e,t,n){var r=(2-(t/=wm))*(n/=Im),o=t*n;return{h:e,s:100*(o=(o/=r<=1?r:2-r)||0),l:100*(r/=2)}}function Vm(e,t,n,r,o){return r===Tm||"number"!==typeof r?"#"+o:"rgba("+e+", "+t+", "+n+", "+r/Tm+")"}function zm(e){var t=e.a,n=void 0===t?Tm:t,r=e.b,o=e.g,i=e.r,a=function(e,t,n){var r=NaN,o=Math.max(e,t,n),i=o-Math.min(e,t,n);return 0===i?r=0:e===o?r=(t-n)/i%6:t===o?r=(n-e)/i+2:n===o&&(r=(e-t)/i+4),(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:i/o)),v:Math.round(o/Pm*100)}}(i,o,r),s=a.h,l=a.s,c=a.v,u=Bm(i,o,r);return{a:n,b:r,g:o,h:s,hex:u,r:i,s:l,str:Vm(i,o,r,n,u),v:c,t:Tm-n}}function Um(e){var t=Nm(e);if(t)return u(u({},zm(t)),{str:e})}function Wm(e){return"#"+Lm(e.h,wm,Im)}function Gm(e,t,n){var r=Rm(e.h,t,n),o=r.r,i=r.g,a=r.b,s=Bm(o,i,a);return u(u({},e),{s:t,v:n,r:o,g:i,b:a,hex:s,str:Vm(o,i,a,e.a,s)})}function jm(e,t){return u(u({},e),{a:t,t:Tm-t,str:Vm(e.r,e.g,e.b,t,e.hex)})}var qm,Km=[.027,.043,.082,.145,.184,.216,.349,.537],Ym=[.537,.45,.349,.216,.184,.145,.082,.043],Xm=[.537,.349,.216,.184,.145,.082,.043,.027],Qm=[.537,.45,.349,.216,.184,.145,.082,.043],Zm=[.88,.77,.66,.55,.44,.33,.22,.11],Jm=[.11,.22,.33,.44,.55,.66,.77,.88],$m=[.96,.84,.7,.4,.12],ef=[.1,.24,.44];function tf(e){return"number"===typeof e&&e>=qm.Unshaded&&e<=qm.Shade8}function nf(e,t){return{h:e.h,s:e.s,v:Fm(e.v-e.v*t,100,0)}}function rf(e,t){return{h:e.h,s:Fm(e.s-e.s*t,100,0),v:Fm(e.v+(100-e.v)*t,100,0)}}function of(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===qm.Unshaded||!tf(t))return e;var r=Hm(e.h,e.s,e.v),o={h:e.h,s:e.s,v:e.v},i=t-1,a=rf,s=nf;return n&&(a=nf,s=rf),o=function(e){return e.r===Pm&&e.g===Pm&&e.b===Pm}(e)?nf(o,Xm[i]):function(e){return 0===e.r&&0===e.g&&0===e.b}(e)?rf(o,Qm[i]):r.l/100>.8?s(o,Jm[i]):r.l/100<.2?a(o,Zm[i]):i<$m.length?a(o,$m[i]):s(o,ef[i-$m.length]),zm(he(Rm(o.h,o.s,o.v),{a:e.a}))}function af(e,t){var n=Tm-t;return u(u({},e),{t:t,a:n,str:Vm(e.r,e.g,e.b,n,e.hex)})}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(qm||(qm={}));var sf,lf=Ft(),cf="TextField",uf=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=o.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(Uh,{required:r,htmlFor:n._id,styles:i,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?o.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState((function(e){return{isRevealingPassword:!e.isRevealingPassword}}))},n._onInputChange=function(e){var t,r,o=e.target.value,i=df(n.props,n.state)||"";void 0!==o&&o!==n._lastChangeValue&&o!==i?(n._lastChangeValue=o,null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})):n._lastChangeValue=void 0},or(n),n._async=new de(n),Re(cf,t,{errorMessage:"onGetErrorMessage"}),n._fallbackId=wn(cf),n._descriptionId=wn("TextFieldDescription"),n._labelId=wn("TextFieldLabel"),n._warnControlledUsage();var r=t.defaultValue,i=void 0===r?"":r;return"number"===typeof i&&(i=String(i)),n.state={uncontrolledValue:n._isControlled?void 0:i,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return df(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,i=void 0===o?[null,null]:o,a=i[0],s=i[1];!!e.multiline!==!!r.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==r.value&&(this._lastChangeValue=void 0);var l=df(e,t),c=this.value;l!==c&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),pf(r)&&this._delayedValidate(c))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,i=e.iconProps,a=e.inputClassName,s=e.label,l=e.multiline,c=e.required,d=e.underlined,p=e.prefix,h=e.resizable,m=e.suffix,f=e.theme,g=e.styles,v=e.autoAdjustHeight,y=e.canRevealPassword,b=e.revealPasswordAriaLabel,C=e.type,S=e.onRenderPrefix,x=void 0===S?this._onRenderPrefix:S,_=e.onRenderSuffix,E=void 0===_?this._onRenderSuffix:_,k=e.onRenderLabel,w=void 0===k?this._onRenderLabel:k,I=e.onRenderDescription,P=void 0===I?this._onRenderDescription:I,T=this.state,D=T.isFocused,A=T.isRevealingPassword,R=this._errorMessage,N=!!y&&"password"===C&&function(){if("boolean"!==typeof sf){var e=ue();if(null===e||void 0===e?void 0:e.navigator){var t=/^Edg/.test(e.navigator.userAgent||"");sf=!(Xr()||t)}else sf=!0}return sf}(),M=this._classNames=lf(g,{theme:f,className:n,disabled:r,focused:D,required:c,multiline:l,hasLabel:!!s,hasErrorMessage:!!R,borderless:t,resizable:h,hasIcon:!!i,underlined:d,inputClassName:a,autoAdjustHeight:v,hasRevealButton:N});return o.createElement("div",{ref:this.props.elementRef,className:M.root},o.createElement("div",{className:M.wrapper},w(this.props,this._onRenderLabel),o.createElement("div",{className:M.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&o.createElement("div",{className:M.prefix},x(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),i&&o.createElement(Ll,u({className:M.icon},i)),N&&o.createElement("button",{"aria-label":b,className:M.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!A,type:"button"},o.createElement("span",{className:M.revealSpan},o.createElement(Ll,{className:M.revealIcon,iconName:A?"Hide":"RedEye"}))),(void 0!==m||this.props.onRenderSuffix)&&o.createElement("div",{className:M.suffix},E(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&o.createElement("span",{id:this._descriptionId},P(this.props,this._onRenderDescription),R&&o.createElement("div",{role:"alert"},o.createElement(Be,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){Yr({componentId:this._id,componentName:cf,props:this.props,oldProps:e,valueProp:"value",defaultValueProp:"defaultValue",onChangeProp:"onChange",readOnlyProp:"readOnly"}),null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,De("Warning: 'value' prop on 'TextField' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Qt(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"===typeof e?o.createElement("p",{className:this._classNames.errorMessage},o.createElement("span",{"data-automation-id":"error-message"},e)):o.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=$n(this.props,Vn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("textarea",u({id:this._id},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=u(u({type:this.state.isRevealingPassword?"text":this.props.type||"text",id:this._id},$n(this.props,Hn,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,onFocus:this._onFocus,onBlur:this._onBlur}),t=function(e){return o.createElement("input",u({},e))};return(this.props.onRenderInput||t)(e,t)},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!pf(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!==typeof r&&"then"in r){var o=++this._lastValidation;r.then((function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(o.Component);function df(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"===typeof r?String(r):r}function pf(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var hf={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function mf(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,i=o.palette,a=o.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(e={},e[Ci]={height:31},e)}]}}}var ff=Kr(uf,(function(e){var t,n,r,o,i,a,s,l,c,d,p,h,m=e.theme,f=e.className,g=e.disabled,v=e.focused,y=e.required,b=e.multiline,C=e.hasLabel,S=e.borderless,x=e.underlined,_=e.hasIcon,E=e.resizable,k=e.hasErrorMessage,w=e.inputClassName,I=e.autoAdjustHeight,P=e.hasRevealButton,T=m.semanticColors,D=m.effects,A=m.fonts,R=Mi(hf,m),N={background:T.disabledBackground,color:g?T.disabledText:T.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[Ci]={background:"Window",color:g?"GrayText":"WindowText"},t)},M=[A.medium,{color:T.inputPlaceholderText,opacity:1,selectors:(n={},n[Ci]={color:"GrayText"},n)}],F={color:T.disabledText,selectors:(r={},r[Ci]={color:"GrayText"},r)};return{root:[R.root,A.medium,y&&R.required,g&&R.disabled,v&&R.active,b&&R.multiline,S&&R.borderless,x&&R.underlined,oa,{position:"relative"},f],wrapper:[R.wrapper,x&&[{display:"flex",borderBottom:"1px solid "+(k?T.errorText:T.inputBorder),width:"100%"},g&&{borderBottomColor:T.disabledBackground,selectors:(o={},o[Ci]=u({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},!g&&{selectors:{":hover":{borderBottomColor:k?T.errorText:T.inputBorderHovered,selectors:(i={},i[Ci]=u({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},v&&[{position:"relative"},wi(k?T.errorText:T.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[R.fieldGroup,oa,{border:"1px solid "+T.inputBorder,borderRadius:D.roundedCorner2,background:T.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},b&&{minHeight:"60px",height:"auto",display:"flex"},!v&&!g&&{selectors:{":hover":{borderColor:T.inputBorderHovered,selectors:(a={},a[Ci]=u({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},v&&!x&&wi(k?T.errorText:T.inputFocusBorderAlt,D.roundedCorner2),g&&{borderColor:T.disabledBackground,selectors:(s={},s[Ci]=u({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s),cursor:"default"},S&&{border:"none"},S&&v&&{border:"none",selectors:{":after":{border:"none"}}},x&&{flex:"1 1 0px",border:"none",textAlign:"left"},x&&g&&{backgroundColor:"transparent"},k&&!x&&{borderColor:T.errorText,selectors:{"&:hover":{borderColor:T.errorText}}},!C&&y&&{selectors:(l={":before":{content:"'*'",color:T.errorText,position:"absolute",top:-5,right:-10}},l[Ci]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[A.medium,R.field,oa,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:T.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(c={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},c[Ci]={background:"Window",color:g?"GrayText":"WindowText"},c)},aa(M),b&&!E&&[R.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&I&&{overflow:"hidden"},_&&!P&&{paddingRight:24},b&&_&&{paddingRight:40},g&&[{backgroundColor:T.disabledBackground,color:T.disabledText,borderColor:T.disabledBackground},aa(F)],x&&{textAlign:"left"},v&&!S&&{selectors:(d={},d[Ci]={paddingLeft:11,paddingRight:11},d)},v&&b&&!S&&{selectors:(p={},p[Ci]={paddingTop:4},p)},w],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:di.medium,lineHeight:18},g&&{color:T.disabledText}],description:[R.description,{color:T.bodySubtext,fontSize:A.xSmall.fontSize}],errorMessage:[R.errorMessage,sa.slideDownIn20,A.small,{color:T.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[R.prefix,N],suffix:[R.suffix,N],revealButton:[R.revealButton,"ms-Button","ms-Button--icon",Ei(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:T.link,selectors:{":hover":{outline:0,color:T.primaryButtonBackgroundHovered,backgroundColor:T.buttonBackgroundHovered,selectors:(h={},h[Ci]={borderColor:"Highlight",color:"Highlight"},h)},":focus":{outline:0}}},_&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:di.medium,lineHeight:18},subComponentStyles:{label:mf(e)}}}),void 0,{scope:"TextField"}),gf={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function vf(e,t){if(void 0===t&&(t=gf),!e)return[];for(var n=[],r=0,o=0;o+r<e.length;o++){var i=e.charAt(o+r);if("\\"===i)r++;else{var a=t[i];a&&n.push({displayIndex:o,format:a})}}return n}function yf(e,t,n){var r=e;if(!r)return"";r=r.replace(/\\/g,"");var o=0;t.length>0&&(o=t[0].displayIndex-1);for(var i=0,a=t;i<a.length;i++){var s=a[i],l=" ";s.value?(l=s.value,s.displayIndex>o&&(o=s.displayIndex)):n&&(l=n),r=r.slice(0,s.displayIndex)+l+r.slice(s.displayIndex+1)}return n||(r=r.slice(0,o+1)),r}function bf(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function Cf(e,t,n){for(var r=0;r<e.length;r++)if(e[r].displayIndex>=t){if(e[r].displayIndex>=t+n)break;e[r].value=void 0}return e}function Sf(e,t,n){for(var r=0,o=0,i=!1,a=0;a<e.length&&r<n.length;a++)if(e[a].displayIndex>=t)for(i=!0,o=e[a].displayIndex;r<n.length;){if(e[a].format.test(n.charAt(r))){e[a].value=n.charAt(r++),a+1<e.length?o=e[a+1].displayIndex:o++;break}r++}return i?o:t}var xf=o.forwardRef((function(e,t){var n=o.useRef(null),r=e.componentRef,i=e.onFocus,a=e.onBlur,s=e.onMouseDown,l=e.onMouseUp,c=e.onChange,d=e.onPaste,p=e.onKeyDown,h=e.mask,m=e.maskChar,f=void 0===m?"_":m,g=e.maskFormat,v=void 0===g?gf:g,y=e.value,b=gs((function(){return{maskCharData:vf(h,v),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}})),C=o.useState(),S=C[0],x=C[1],_=o.useState((function(){return yf(h,b.maskCharData,f)})),E=_[0],k=_[1],w=o.useCallback((function(e){for(var t=0,n=0;t<e.length&&n<b.maskCharData.length;){var r=e[t];b.maskCharData[n].format.test(r)&&(b.maskCharData[n].value=r,n++),t++}}),[b]),I=o.useCallback((function(e){null===i||void 0===i||i(e),b.isFocused=!0;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}),[b,i]),P=o.useCallback((function(e){null===a||void 0===a||a(e),b.isFocused=!1,b.moveCursorOnMouseUp=!0}),[b,a]),T=o.useCallback((function(e){null===s||void 0===s||s(e),b.isFocused||(b.moveCursorOnMouseUp=!0)}),[b,s]),D=o.useCallback((function(e){if(null===l||void 0===l||l(e),b.moveCursorOnMouseUp){b.moveCursorOnMouseUp=!1;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}}),[b,l]),A=o.useCallback((function(e,t){if(null===b.changeSelectionData&&n.current&&(b.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),b.changeSelectionData){var r=0,o=b.changeSelectionData,i=o.changeType,a=o.selectionStart,s=o.selectionEnd;if("textPasted"===i){var l=s-a,u=t.length+l-E.length,d=a,p=t.substr(d,u);l&&(b.maskCharData=Cf(b.maskCharData,a,l)),r=Sf(b.maskCharData,d,p)}else if("delete"===i||"backspace"===i){var m="delete"===i;(u=s-a)?(b.maskCharData=Cf(b.maskCharData,a,u),r=bf(b.maskCharData,a)):m?(b.maskCharData=function(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=bf(b.maskCharData,a)):(b.maskCharData=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}(b.maskCharData,a))}else if(t.length>E.length){d=s-(u=t.length-E.length);var g=t.substr(d,u);r=Sf(b.maskCharData,d,g)}else if(t.length<=E.length){u=1;var v=E.length+u-t.length;d=s-u,g=t.substr(d,u);b.maskCharData=Cf(b.maskCharData,d,v),r=Sf(b.maskCharData,d,g)}b.changeSelectionData=null;var y=yf(h,b.maskCharData,f);k(y),x(r),null===c||void 0===c||c(e,y)}}),[E.length,b,h,f,c]),R=o.useCallback((function(e){if(null===p||void 0===p||p(e),b.changeSelectionData=null,n.current&&n.current.value){var t=e.keyCode,r=e.ctrlKey,o=e.metaKey;if(r||o)return;if(t===Ue||t===ot){var i=e.target.selectionStart,a=e.target.selectionEnd;if(!(t===Ue&&a&&a>0)&&!(t===ot&&null!==i&&i<n.current.value.length))return;b.changeSelectionData={changeType:t===Ue?"backspace":"delete",selectionStart:null!==i?i:-1,selectionEnd:null!==a?a:-1}}}}),[b,p]),N=o.useCallback((function(e){null===d||void 0===d||d(e);var t=e.target.selectionStart,n=e.target.selectionEnd;b.changeSelectionData={changeType:"textPasted",selectionStart:null!==t?t:-1,selectionEnd:null!==n?n:-1}}),[b,d]);return o.useEffect((function(){b.maskCharData=vf(h,v),void 0!==y&&w(y),k(yf(h,b.maskCharData,f))}),[h,y]),o.useLayoutEffect((function(){void 0!==S&&n.current&&n.current.setSelectionRange(S,S)}),[S]),o.useEffect((function(){b.isFocused&&void 0!==S&&n.current&&n.current.setSelectionRange(S,S)})),function(e,t,n){o.useImperativeHandle(e,(function(){return{get value(){for(var e="",n=0;n<t.maskCharData.length;n++){if(!t.maskCharData[n].value)return;e+=t.maskCharData[n].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}}),[t,n])}(r,b,n),o.createElement(ff,u({},e,{elementRef:t,onFocus:I,onBlur:P,onMouseDown:T,onMouseUp:D,onChange:A,onKeyDown:R,onPaste:N,value:E||"",componentRef:n}))}));xf.displayName="MaskedTextField";var _f=Ft(),Ef=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=wn("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,r=t.s,o=t.v,i=e.shiftKey?10:1;switch(e.which){case tt:n._isAdjustingSaturation=!1,o+=i;break;case rt:n._isAdjustingSaturation=!1,o-=i;break;case et:n._isAdjustingSaturation=!0,r-=i;break;case nt:n._isAdjustingSaturation=!0,r+=i;break;default:return}n._updateColor(e,Gm(t,Fm(r,wm),Fm(o,Im)))},n._onMouseDown=function(e){n._disposables.push(Dt(window,"mousemove",n._onMouseMove,!0),Dt(window,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=function(e,t,n){var r=n.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=(e.clientY-r.top)/r.height;return Gm(t,Fm(Math.round(o*wm),wm),Fm(Math.round(Im-i*Im),Im))}(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},or(n),n.state={color:t.color},n}return c(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentWillUnmount=function(){this._disposeListeners()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,i=e.styles,a=e.ariaValueFormat,s=e.ariaLabel,l=e.ariaDescription,c=this.state.color,u=_f(i,{theme:n,className:r,minSize:t}),d=a.replace("{0}",String(c.s)).replace("{1}",String(c.v));return o.createElement("div",{ref:this._root,tabIndex:0,className:u.root,style:{backgroundColor:Wm(c)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?c.s:c.v,"aria-valuemin":0,"aria-valuemax":Im,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},o.createElement("div",{className:u.description,id:this._descriptionId},l),o.createElement("div",{className:u.light}),o.createElement("div",{className:u.dark}),o.createElement("div",{className:u.thumb,style:{left:c.s+"%",top:Im-c.v+"%",backgroundColor:c.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,r=this.state.color;t.s===r.s&&t.v===r.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(o.Component);var kf=Kr(Ef,(function(e){var t,n=e.className,r=e.theme,o=e.minSize,i=r.palette,a=r.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid "+i.neutralLighter,borderRadius:a.roundedCorner2,minWidth:o,minHeight:o,outline:"none",selectors:(t={},t[Ci]=u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".ms-Fabric--isFocusVisible &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},n],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid "+i.white,borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:Ii}}),void 0,{scope:"ColorRectangle"}),wf=Ft(),If=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._onKeyDown=function(e){var t=n.value,r=n._maxValue,o=e.shiftKey?10:1;switch(e.which){case et:t-=o;break;case nt:t+=o;break;case $e:t=0;break;case Je:t=r;break;default:return}n._updateValue(e,Fm(t,r))},n._onMouseDown=function(e){var t=ue(n);t&&n._disposables.push(Dt(t,"mousemove",n._onMouseMove,!0),Dt(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n._maxValue,r=n._root.current.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=Fm(Math.round(o*t),t);n._updateValue(e,i)}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},or(n),Ne("ColorSlider",t,{thumbColor:"styles.sliderThumb",overlayStyle:"overlayColor",isAlpha:"type",maxValue:"type",minValue:"type"}),"hue"===n._type||t.overlayColor||t.overlayStyle||De("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),n.state={currentValue:t.value||0},n}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentWillUnmount=function(){this._disposeListeners()},t.prototype.render=function(){var e=this._type,t=this._maxValue,n=this.props,r=n.overlayStyle,i=n.overlayColor,a=n.theme,s=n.className,l=n.styles,c=n.ariaLabel,u=void 0===c?e:c,d=this.value,p=wf(l,{theme:a,className:s,type:e}),h=100*d/t;return o.createElement("div",{ref:this._root,className:p.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":d,"aria-valuetext":String(d),"aria-valuemin":0,"aria-valuemax":t,"aria-label":u,"data-is-focusable":!0},!(!i&&!r)&&o.createElement("div",{className:p.sliderOverlay,style:i?{background:"transparency"===e?"linear-gradient(to right, #"+i+", transparent)":"linear-gradient(to right, transparent, #"+i+")"}:r}),o.createElement("div",{className:p.sliderThumb,style:{left:h+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,n=e.type;return void 0===n?t?"alpha":"hue":n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return"hue"===this._type?359:Tm},enumerable:!1,configurable:!0}),t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={value:0},t}(o.Component),Pf={background:"linear-gradient("+["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(",")+")"},Tf={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},Df=Kr(If,(function(e){var t,n=e.theme,r=e.className,o=e.type,i=void 0===o?"hue":o,a=e.isAlpha,s=void 0===a?"hue"!==i:a,l=n.palette,c=n.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid "+l.neutralLight,borderRadius:c.roundedCorner2,boxSizing:"border-box",outline:"none",selectors:(t={},t[".ms-Fabric--isFocusVisible &:focus"]={outline:"1px solid "+l.neutralSecondary},t)},s?Tf:Pf,r],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+l.neutralSecondaryAlt,borderRadius:"50%",boxShadow:c.elevation8,transform:"translate(-50%, -50%)",top:"50%"}]}}),void 0,{scope:"ColorSlider"}),Af=Ft(),Rf=["hex","r","g","b","a","t"],Nf=function(e){function t(n){var r=e.call(this,n)||this;r._onSVChanged=function(e,t){r._updateColor(e,t)},r._onHChanged=function(e,t){r._updateColor(e,function(e,t){var n=Rm(t,e.s,e.v),r=n.r,o=n.g,i=n.b,a=Bm(r,o,i);return u(u({},e),{h:t,r:r,g:o,b:i,hex:a,str:Vm(r,o,i,e.a,a)})}(r.state.color,t))},r._onATChanged=function(e,t){var n="transparency"===r.props.alphaType?af:jm;r._updateColor(e,n(r.state.color,Math.round(t)))},r._onBlur=function(e){var t,n=r.state,o=n.color,i=n.editingColor;if(i){var a,s=i.value,l=i.component,c="hex"===l,d="a"===l,p="t"===l,h=c?3:1;if(s.length>=h&&(c||!isNaN(Number(s)))){var m=void 0;if(c)m=Um("#"+(!(a=s)||a.length<3?"ffffff":a.length>=6?a.substring(0,6):a.substring(0,3)));else if(d||p){m=(d?jm:af)(o,Fm(Number(s),Tm))}else m=zm(function(e){return{r:Fm(e.r,Pm),g:Fm(e.g,Pm),b:Fm(e.b,Pm),a:"number"===typeof e.a?Fm(e.a,Tm):e.a}}(u(u({},o),((t={})[l]=Number(s),t))));r._updateColor(e,m)}else r.setState({editingColor:void 0})}},or(r);var o=n.strings;Ne("ColorPicker",n,{hexLabel:"strings.hex",redLabel:"strings.red",greenLabel:"strings.green",blueLabel:"strings.blue",alphaLabel:"strings.alpha",alphaSliderHidden:"alphaType"}),o.hue&&De("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),r.state={color:Mf(n)||Um("#ffffff")},r._textChangeHandlers={};for(var i=0,a=Rf;i<a.length;i++){var s=a[i];r._textChangeHandlers[s]=r._onTextChange.bind(r,s)}var l=t.defaultProps.strings;return r._textLabels={r:n.redLabel||o.red||l.red,g:n.greenLabel||o.green||l.green,b:n.blueLabel||o.blue||l.blue,a:n.alphaLabel||o.alpha||l.alpha,hex:n.hexLabel||o.hex||l.hex,t:o.transparency||l.transparency},r._strings=u(u(u({},l),{alphaAriaLabel:r._textLabels.a,transparencyAriaLabel:r._textLabels.t}),o),r}return c(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=Mf(this.props);n&&this._updateColor(void 0,n)}},t.prototype.render=function(){var e=this,t=this.props,n=this._strings,r=this._textLabels,i=t.theme,a=t.className,s=t.styles,l=t.alphaType,c=t.alphaSliderHidden,u=void 0===c?"none"===l:c,d=this.state.color,p="transparency"===l,h=["hex","r","g","b",p?"t":"a"],m=p?d.t:d.a,f=p?r.t:r.a,g=Af(s,{theme:i,className:a,alphaType:l}),v=[r.r,d.r,r.g,d.g,r.b,d.b];u||"number"!==typeof m||v.push(f,m+"%");var y=n.rootAriaLabelFormat.replace("{0}",v.join(" "));return o.createElement("div",{className:g.root,role:"group","aria-label":y},o.createElement("div",{className:g.panel},o.createElement(kf,{color:d,onChange:this._onSVChanged,ariaLabel:n.svAriaLabel,ariaDescription:n.svAriaDescription,ariaValueFormat:n.svAriaValueFormat,className:g.colorRectangle}),o.createElement("div",{className:g.flexContainer},o.createElement("div",{className:g.flexSlider},o.createElement(Df,{className:"is-hue",type:"hue",ariaLabel:n.hue||n.hueAriaLabel,value:d.h,onChange:this._onHChanged}),!u&&o.createElement(Df,{className:"is-alpha",type:l,ariaLabel:p?n.transparencyAriaLabel:n.alphaAriaLabel,overlayColor:d.hex,value:m,onChange:this._onATChanged})),t.showPreview&&o.createElement("div",{className:g.flexPreviewBox},o.createElement("div",{className:g.colorSquare+" is-preview",style:{backgroundColor:d.str}}))),o.createElement("table",{className:g.table,role:"group",cellPadding:"0",cellSpacing:"0"},o.createElement("thead",null,o.createElement("tr",{className:g.tableHeader},o.createElement("td",{className:g.tableHexCell},r.hex),o.createElement("td",null,r.r),o.createElement("td",null,r.g),o.createElement("td",null,r.b),!u&&o.createElement("td",{className:g.tableAlphaCell},f))),o.createElement("tbody",null,o.createElement("tr",null,h.map((function(t){return"a"!==t&&"t"!==t||!u?o.createElement("td",{key:t},o.createElement(ff,{className:g.input,onChange:e._textChangeHandlers[t],onBlur:e._onBlur,value:e._getDisplayValue(t),spellCheck:!1,ariaLabel:r[t],autoComplete:"off"})):null})))))))},t.prototype._getDisplayValue=function(e){var t=this.state,n=t.color,r=t.editingColor;return r&&r.component===e?r.value:"hex"===e?n[e]||"":"number"!==typeof n[e]||isNaN(n[e])?"":String(n[e])},t.prototype._onTextChange=function(e,t,n){var r,o=this.state.color,i="hex"===e,a="a"===e,s="t"===e;if(n=(n||"").substr(0,i?6:3),(i?Dm:Am).test(n))if(""!==n&&(i?6===n.length:a||s?Number(n)<=Tm:Number(n)<=Pm))if(String(o[e])===n)this.state.editingColor&&this.setState({editingColor:void 0});else{var l=i?Um("#"+n):s?af(o,Number(n)):zm(u(u({},o),((r={})[e]=Number(n),r)));this._updateColor(t,l)}else this.setState({editingColor:{component:e,value:n}})},t.prototype._updateColor=function(e,t){if(t){var n=this.state,r=n.color,o=n.editingColor;if(t.h!==r.h||t.str!==r.str||o){if(e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented))return;this.setState({color:t,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:Ef.defaultProps.ariaLabel,svAriaValueFormat:Ef.defaultProps.ariaValueFormat,svAriaDescription:Ef.defaultProps.ariaDescription}},t}(o.Component);function Mf(e){var t=e.color;return"string"===typeof t?Um(t):t}Kr(Nf,(function(e){var t=e.className,n=e.theme,r=e.alphaType;return{root:["ms-ColorPicker",n.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[n.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===r&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}}),void 0,{scope:"ColorPicker"});var Ff,Bf,Of,Lf,Hf,Vf=Gt((function(e){var t,n=e.semanticColors;return{backgroundColor:n.disabledBackground,color:n.disabledText,cursor:"default",selectors:(t={":after":{borderColor:n.disabledBackground}},t[Ci]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}})),zf={selectors:(Ff={},Ff[Ci]=u({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),Ff)},Uf={selectors:(Bf={},Bf[Ci]=u({color:"WindowText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),Bf)},Wf=Gt((function(e,t,n,r,o,i){var a,s=e.palette,l=e.semanticColors,c={textHoveredColor:l.menuItemTextHovered,textSelectedColor:s.neutralDark,textDisabledColor:l.disabledText,backgroundHoveredColor:l.menuItemBackgroundHovered,backgroundPressedColor:l.menuItemBackgroundPressed};return te({root:[e.fonts.medium,{backgroundColor:r?c.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:o?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:(a={},a[Ci]={border:"none",borderColor:"Background"},a["&.ms-Checkbox"]={display:"flex",alignItems:"center"},a["&.ms-Button--command:hover:active"]={backgroundColor:c.backgroundPressedColor},a[".ms-Checkbox-label"]={width:"100%"},a)},i?[{backgroundColor:"transparent",color:c.textSelectedColor,selectors:{":hover":[{backgroundColor:c.backgroundHoveredColor},zf]}},Ei(e,{inset:-1,isFocusedOnly:!1}),zf]:[]],rootHovered:{backgroundColor:c.backgroundHoveredColor,color:c.textHoveredColor},rootFocused:{backgroundColor:c.backgroundHoveredColor},rootDisabled:{color:c.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}},t,n)})),Gf=Gt((function(e,t){var n,r,o=e.semanticColors,i=e.fonts,a={buttonTextColor:o.bodySubtext,buttonTextHoveredCheckedColor:o.buttonTextChecked,buttonBackgroundHoveredColor:o.listItemBackgroundHovered,buttonBackgroundCheckedColor:o.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:o.listItemBackgroundCheckedHovered},s={selectors:(n={},n[Ci]=u({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)};return te({root:{color:a.buttonTextColor,fontSize:i.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:(r={},r[Ci]=u({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},icon:{fontSize:i.small.fontSize},rootHovered:[{backgroundColor:a.buttonBackgroundHoveredColor,color:a.buttonTextHoveredCheckedColor,cursor:"pointer"},s],rootPressed:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootChecked:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootCheckedHovered:[{backgroundColor:a.buttonBackgroundCheckedHoveredColor,color:a.buttonTextHoveredCheckedColor},s],rootDisabled:[Vf(e),{position:"absolute"}]},t)})),jf=Gt((function(e,t,n){var r,o,i,a,s,l,c=e.semanticColors,d=e.fonts,p=e.effects,h={textColor:c.inputText,borderColor:c.inputBorder,borderHoveredColor:c.inputBorderHovered,borderPressedColor:c.inputFocusBorderAlt,borderFocusedColor:c.inputFocusBorderAlt,backgroundColor:c.inputBackground,erroredColor:c.errorText},m={headerTextColor:c.menuHeader,dividerBorderColor:c.bodyDivider},f={selectors:(r={},r[Ci]={color:"GrayText"},r)},g=[{color:c.inputPlaceholderText},f],v=[{color:c.inputTextHovered},f],y=[{color:c.disabledText},f],b=u(u({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),C=wi(h.borderPressedColor,p.roundedCorner2,"border",0);return te({container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:h.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:h.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:(o={},o[Ci]=b,o)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:h.borderColor,borderRadius:p.roundedCorner2}}}],rootHovered:{selectors:(i={":after":{borderColor:h.borderHoveredColor},".ms-ComboBox-Input":[{color:c.inputTextHovered},aa(v),Uf]},i[Ci]=u(u({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),i)},rootPressed:[{position:"relative",selectors:(a={},a[Ci]=b,a)}],rootFocused:[{selectors:(s={".ms-ComboBox-Input":[{color:c.inputTextHovered},Uf]},s[Ci]=b,s)},C],rootDisabled:Vf(e),rootError:{selectors:{":after":{borderColor:h.erroredColor},":hover:after":{borderColor:c.inputBorderHovered}}},rootDisallowFreeForm:{},input:[aa(g),{backgroundColor:h.backgroundColor,color:h.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},Uf],inputDisabled:[Vf(e),aa(y)],errorMessage:[e.fonts.small,{color:h.erroredColor,marginTop:"5px"}],callout:{boxShadow:p.elevation8},optionsContainerWrapper:{width:n},optionsContainer:{display:"block"},screenReaderText:Ii,header:[d.medium,{fontWeight:ui.semibold,color:m.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(l={},l[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],divider:{height:1,backgroundColor:m.dividerBorderColor}},t)})),qf=Gt((function(e,t,n,r,o,i,a,s){return{container:$("ms-ComboBox-container",t,e.container),label:$(e.label,r&&e.labelDisabled),root:$("ms-ComboBox",s?e.rootError:n&&"is-open",o&&"is-required",e.root,!a&&e.rootDisallowFreeForm,s&&!i?e.rootError:!r&&i&&e.rootFocused,!r&&{selectors:{":hover":s?e.rootError:!n&&!i&&e.rootHovered,":active":s?e.rootError:e.rootPressed,":focus":s?e.rootError:e.rootFocused}},r&&["is-disabled",e.rootDisabled]),input:$("ms-ComboBox-Input",e.input,r&&e.inputDisabled),errorMessage:$(e.errorMessage),callout:$("ms-ComboBox-callout",e.callout),optionsContainerWrapper:$("ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:$("ms-ComboBox-optionsContainer",e.optionsContainer),header:$("ms-ComboBox-header",e.header),divider:$("ms-ComboBox-divider",e.divider),screenReaderText:$(e.screenReaderText)}})),Kf=Gt((function(e){return{optionText:$("ms-ComboBox-optionText",e.optionText),root:$("ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:$(e.optionTextWrapper)}}));function Yf(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=e[o[r]];i&&n.push(i)}return n}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(Of||(Of={})),function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(Lf||(Lf={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(Hf||(Hf={}));var Xf=o.memo((function(e){return(0,e.render)()}),(function(e,t){e.render;var n=d(e,["render"]);t.render;return pe(n,d(t,["render"]))})),Qf="ComboBox",Zf={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function Jf(e){var t=e.options,n=e.defaultSelectedKey,r=e.selectedKey,i=o.useState((function(){return tg(t,function(e,t){var n=ng(e);if(n.length)return n;return ng(t)}(n,r))})),a=i[0],s=i[1],l=o.useState(t),c=l[0],u=l[1],d=o.useState(),p=d[0],h=d[1];return o.useEffect((function(){if(void 0!==r){var e=ng(r),n=tg(t,e);s(n)}u(t)}),[t,r]),o.useEffect((function(){null===r&&h(void 0)}),[r]),[a,s,c,u,p,h]}var $f=o.forwardRef((function(e,t){var n=Qr(Zf,e),r=(n.ref,d(n,["ref"])),i=o.useRef(null),a=Ss(i,t),s=Jf(r),l=s[0],c=s[1],p=s[2],h=s[3],m=s[4],f=s[5];return o.createElement(eg,u({},r,{hoisted:{mergedRootRef:a,rootRef:i,selectedIndices:l,setSelectedIndices:c,currentOptions:p,setCurrentOptions:h,suggestedDisplayValue:m,setSuggestedDisplayValue:f}}))}));$f.displayName=Qf;var eg=function(e){function t(t){var n=e.call(this,t)||this;return n._autofill=o.createRef(),n._comboBoxWrapper=o.createRef(),n._comboBoxMenu=o.createRef(),n._selectedElement=o.createRef(),n.focus=function(e,t){n._autofill.current&&(t?_n(n._autofill.current):n._autofill.current.focus(),e&&n.setState({isOpen:!0})),n._hasFocus()||n.setState({focusState:"focused"})},n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onUpdateValueInAutofillWillReceiveProps=function(){var e=n._autofill.current;if(!e)return null;if(null===e.value||void 0===e.value)return null;var t=rg(n._currentVisibleValue);return e.value!==t?t:e.value},n._renderComboBoxWrapper=function(e,t){var r=n.props,i=r.label,a=r.disabled,s=r.ariaLabel,l=r.ariaDescribedBy,c=r.required,d=r.errorMessage,p=r.buttonIconProps,h=r.isButtonAriaHidden,m=void 0===h||h,f=r.title,g=r.placeholder,v=r.tabIndex,y=r.autofill,b=r.iconButtonProps,C=r.hoisted.suggestedDisplayValue,S=n.state.isOpen,x=n._hasFocus()&&n.props.multiSelect&&e?e:g;return o.createElement("div",{"data-ktp-target":!0,ref:n._comboBoxWrapper,id:n._id+"wrapper",className:n._classNames.root,"aria-owns":S?n._id+"-list":void 0},o.createElement(Sc,u({"data-ktp-execute-target":!0,"data-is-interactable":!a,componentRef:n._autofill,id:n._id+"-input",className:n._classNames.input,type:"text",onFocus:n._onFocus,onBlur:n._onBlur,onKeyDown:n._onInputKeyDown,onKeyUp:n._onInputKeyUp,onClick:n._onAutofillClick,onTouchStart:n._onTouchStart,onInputValueChange:n._onInputChange,"aria-expanded":S,"aria-autocomplete":n._getAriaAutoCompleteValue(),role:"combobox",readOnly:a,"aria-labelledby":i&&n._id+"-label","aria-label":s&&!i?s:void 0,"aria-describedby":void 0!==d?mt(l,t):l,"aria-activedescendant":n._getAriaActiveDescendantValue(),"aria-required":c,"aria-disabled":a,"aria-controls":S?n._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:n._currentVisibleValue,suggestedDisplayValue:C,updateValueInWillReceiveProps:n._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:f,preventValueSelection:!n._hasFocus(),placeholder:x,tabIndex:a?-1:v},y)),o.createElement(Dd,u({className:"ms-ComboBox-CaretDown-button",styles:n._getCaretButtonStyles(),role:"presentation","aria-hidden":m,"data-is-focusable":!1,tabIndex:-1,onClick:n._onComboBoxClick,onBlur:n._onBlur,iconProps:p,disabled:a,checked:S},b)))},n._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return n._currentVisibleValue===n.props.hoisted.suggestedDisplayValue},n._getVisibleValue=function(){var e=n.props,t=e.text,r=e.allowFreeform,o=e.autoComplete,i=e.hoisted,a=i.suggestedDisplayValue,s=i.selectedIndices,l=i.currentOptions,c=n.state,u=c.currentPendingValueValidIndex,d=c.currentPendingValue,p=c.isOpen,h=og(l,u);if((!p||!h)&&t&&(null===d||void 0===d))return t;if(n.props.multiSelect){if(n._hasFocus()){var m=-1;return"on"===o&&h&&(m=u),n._getPendingString(d,l,m)}return n._getMultiselectDisplayString(s,l,a)}m=n._getFirstSelectedIndex();return r?("on"===o&&h&&(m=u),n._getPendingString(d,l,m)):h&&"on"===o?(m=u,rg(d)):!n.state.isOpen&&d?og(l,m)?d:rg(a):og(l,m)?sg(l[m]):rg(a)},n._onInputChange=function(e){n.props.disabled?n._handleInputWhenDisabled(null):n.props.allowFreeform?n._processInputChangeWithFreeform(e):n._processInputChangeWithoutFreeform(e)},n._onFocus=function(){var e,t;null===(t=null===(e=n._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===t||t.select(),n._hasFocus()||n.setState({focusState:"focusing"})},n._onResolveOptions=function(){if(n.props.onResolveOptions){var e=n.props.onResolveOptions(h(n.props.hoisted.currentOptions));if(Array.isArray(e))n.props.hoisted.setCurrentOptions(e);else if(e&&e.then){var t=n._currentPromise=e;t.then((function(e){t===n._currentPromise&&n.props.hoisted.setCurrentOptions(e)}))}}},n._onBlur=function(e){var t,r,o=e.relatedTarget;if(null===e.relatedTarget&&(o=document.activeElement),o){var i=null===(t=n.props.hoisted.rootRef.current)||void 0===t?void 0:t.contains(o),a=null===(r=n._comboBoxMenu.current)||void 0===r?void 0:r.contains(o),s=n._comboBoxMenu.current&&It(n._comboBoxMenu.current,(function(e){return e===o}));if(i||a||s)return s&&n._hasFocus()&&(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}n._hasFocus()&&(n.setState({focusState:"none"}),n.props.multiSelect&&!n.props.allowFreeform||n._submitPendingValue(e))},n._onRenderContainer=function(e,t){var r=e.onRenderList,i=e.calloutProps,a=e.dropdownWidth,s=e.dropdownMaxWidth,l=e.onRenderUpperContent,c=void 0===l?n._onRenderUpperContent:l,d=e.onRenderLowerContent,p=void 0===d?n._onRenderLowerContent:d,h=e.useComboBoxAsMenuWidth,m=e.persistMenu,f=e.shouldRestoreFocus,g=void 0===f||f,v=n.state.isOpen,y=n._id,b=h&&n._comboBoxWrapper.current?n._comboBoxWrapper.current.clientWidth+2:void 0;return o.createElement(ul,u({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:wa,directionalHintFixed:!1},i,{onLayerMounted:n._onLayerMounted,className:Zt(n._classNames.callout,null===i||void 0===i?void 0:i.className),target:n._comboBoxWrapper.current,onDismiss:n._onDismiss,onMouseDown:n._onCalloutMouseDown,onScroll:n._onScroll,setInitialFocus:!1,calloutWidth:h&&n._comboBoxWrapper.current?b&&b:a,calloutMaxWidth:s||b,hidden:m?!v:void 0,shouldRestoreFocus:g}),c(n.props,n._onRenderUpperContent),o.createElement("div",{className:n._classNames.optionsContainerWrapper,ref:n._comboBoxMenu},null===r||void 0===r?void 0:r(u(u({},e),{id:y}),n._onRenderList)),p(n.props,n._onRenderLowerContent))},n._onLayerMounted=function(){n._onCalloutLayerMounted(),n._async.setTimeout((function(){n._scrollIntoView()}),0),n.props.calloutProps&&n.props.calloutProps.onLayerMounted&&n.props.calloutProps.onLayerMounted()},n._onRenderLabel=function(e){var t=e.props,r=t.label,i=t.disabled,a=t.required;return r?o.createElement(Uh,{id:n._id+"-label",disabled:i,required:a,className:n._classNames.label},r,e.multiselectAccessibleText&&o.createElement("span",{className:n._classNames.screenReaderText},e.multiselectAccessibleText)):null},n._onRenderList=function(e){var t=e.onRenderItem,r=e.options,i=e.label,a=e.ariaLabel,s=n._id;return o.createElement("div",{id:s+"-list",className:n._classNames.optionsContainer,"aria-labelledby":i&&s+"-label","aria-label":a&&!i?a:void 0,role:"listbox"},r.map((function(e){return null===t||void 0===t?void 0:t(e,n._onRenderItem)})))},n._onRenderItem=function(e){switch(e.itemType){case Of.Divider:return n._renderSeparator(e);case Of.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._onRenderLowerContent=function(){return null},n._onRenderUpperContent=function(){return null},n._renderOption=function(e){var t,r=n.props.onRenderOption,i=void 0===r?n._onRenderOptionContent:r,a=n._id,s=n._isOptionSelected(e.index),l=n._isOptionChecked(e.index),c=n._isOptionIndeterminate(e.index),d=n._getCurrentOptionStyles(e),p=Kf(n._getCurrentOptionStyles(e)),h=null!==(t=e.title)&&void 0!==t?t:sg(e),m=function(){return i(e,n._onRenderOptionContent)};return o.createElement(Xf,{key:e.key,index:e.index,disabled:e.disabled,isSelected:s,isChecked:l,isIndeterminate:c,text:e.text,render:function(){return n.props.multiSelect?o.createElement(Hh,{id:a+"-list"+e.index,ariaLabel:e.ariaLabel,key:e.key,styles:d,className:"ms-ComboBox-option",onChange:n._onItemClick(e),label:e.text,checked:l,indeterminate:c,title:h,disabled:e.disabled,onRenderLabel:m,inputProps:u({"aria-selected":l?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):o.createElement(Md,{id:a+"-list"+e.index,key:e.key,"data-index":e.index,styles:d,checked:s,className:"ms-ComboBox-option",onClick:n._onItemClick(e),onMouseEnter:n._onOptionMouseEnter.bind(n,e.index),onMouseMove:n._onOptionMouseMove.bind(n,e.index),onMouseLeave:n._onOptionMouseLeave,role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:h},o.createElement("span",{className:p.optionTextWrapper,ref:s?n._selectedElement:void 0},i(e,n._onRenderOptionContent)))},data:e.data})},n._onCalloutMouseDown=function(e){e.preventDefault()},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onRenderOptionContent=function(e){var t=Kf(n._getCurrentOptionStyles(e));return o.createElement("span",{className:t.optionText},e.text)},n._onDismiss=function(){var e=n.props.onMenuDismiss;e&&e(),n.props.persistMenu&&n._onCalloutLayerMounted(),n._setOpenStateAndFocusOnClose(!1,!1),n._resetSelectedIndex()},n._onAfterClearPendingInfo=function(){n._processingClearPendingInfo=!1},n._onInputKeyDown=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.autoComplete,a=t.hoisted.currentOptions,s=n.state,l=s.isOpen,c=s.currentPendingValueValidIndexOnHover;if(n._lastKeyDownWasAltOrMeta=lg(e),r)n._handleInputWhenDisabled(e);else{var u=n._getPendingSelectedIndex(!1);switch(e.which){case Ge:n._autofill.current&&n._autofill.current.inputElement&&n._autofill.current.inputElement.select(),n._submitPendingValue(e),n.props.multiSelect&&l?n.setState({currentPendingValueValidIndex:u}):(l||(!o||void 0===n.state.currentPendingValue||null===n.state.currentPendingValue||n.state.currentPendingValue.length<=0)&&n.state.currentPendingValueValidIndex<0)&&n.setState({isOpen:!l});break;case We:return n.props.multiSelect||n._submitPendingValue(e),void(l&&n._setOpenStateAndFocusOnClose(!l,!1));case Ye:if(n._resetSelectedIndex(),!l)return;n.setState({isOpen:!1});break;case tt:if(c===Hf.clearAll&&(u=n.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(l){n._setOpenStateAndFocusOnClose(!l,!0);break}return}n._setPendingInfoFromIndexAndDirection(u,Lf.backward);break;case rt:e.altKey||e.metaKey?n._setOpenStateAndFocusOnClose(!0,!0):(c===Hf.clearAll&&(u=-1),n._setPendingInfoFromIndexAndDirection(u,Lf.forward));break;case $e:case Je:if(o)return;u=-1;var d=Lf.forward;e.which===Je&&(u=a.length,d=Lf.backward),n._setPendingInfoFromIndexAndDirection(u,d);break;case Xe:if(!o&&"off"===i)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===Ke||"Meta"===e.key)return;if(!o&&"on"===i){n._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()}},n._onInputKeyUp=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.autoComplete,a=n.state.isOpen,s=n._lastKeyDownWasAltOrMeta&&lg(e);n._lastKeyDownWasAltOrMeta=!1;var l=s&&!(Mr()||Nr());r?n._handleInputWhenDisabled(e):e.which!==Xe?l&&a?n._setOpenStateAndFocusOnClose(!a,!0):("focusing"===n.state.focusState&&n.props.openOnKeyboardFocus&&n.setState({isOpen:!0}),"focused"!==n.state.focusState&&n.setState({focusState:"focused"})):o||"off"!==i||n._setOpenStateAndFocusOnClose(!a,!!a)},n._onOptionMouseLeave=function(){n._shouldIgnoreMouseEvent()||n.props.persistMenu&&!n.state.isOpen||n.setState({currentPendingValueValidIndexOnHover:Hf.clearAll})},n._onComboBoxClick=function(){var e=n.props.disabled,t=n.state.isOpen;e||(n._setOpenStateAndFocusOnClose(!t,!1),n.setState({focusState:"focused"}))},n._onAutofillClick=function(){var e=n.props,t=e.disabled;e.allowFreeform&&!t?n.focus(n.state.isOpen||n._processingTouch):n._onComboBoxClick()},n._onTouchStart=function(){n._comboBoxWrapper.current&&!("onpointerdown"in n._comboBoxWrapper)&&n._handleTouchAndPointerEvent()},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},or(n),n._async=new de(n),n._events=new ge(n),Re(Qf,t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth",ariaLabel:"label"}),n._id=t.id||wn("ComboBox"),n._isScrollIdle=!0,n._processingTouch=!1,n._gotMouseMove=!1,n._processingClearPendingInfo=!1,n.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:Hf.default},n}return c(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return Yf(e.currentOptions,e.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var n=this,r=this.props,o=r.allowFreeform,i=r.text,a=r.onMenuOpen,s=r.onMenuDismissed,l=r.hoisted.selectedIndices,c=this.state,u=c.isOpen,d=c.currentPendingValueValidIndex;!u||t.isOpen&&t.currentPendingValueValidIndex===d||this._async.setTimeout((function(){return n._scrollIntoView()}),0),this._hasFocus()&&(u||t.isOpen&&!u&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!u||this._hasFocus()&&(!u&&!this.props.multiSelect&&e.hoisted.selectedIndices&&l&&e.hoisted.selectedIndices[0]!==l[0]||!o||i!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),u&&!t.isOpen&&a&&a(),!u&&t.isOpen&&s&&s()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,n=t.className,r=t.disabled,i=t.required,a=t.errorMessage,s=t.onRenderContainer,l=void 0===s?this._onRenderContainer:s,c=t.onRenderLabel,d=void 0===c?this._onRenderLabel:c,p=t.onRenderList,h=void 0===p?this._onRenderList:p,m=t.onRenderItem,f=void 0===m?this._onRenderItem:m,g=t.onRenderOption,v=void 0===g?this._onRenderOptionContent:g,y=t.allowFreeform,b=t.styles,C=t.theme,S=t.persistMenu,x=t.multiSelect,_=t.hoisted,E=_.suggestedDisplayValue,k=_.selectedIndices,w=_.currentOptions,I=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var P=x?this._getMultiselectDisplayString(k,w,E):void 0,T=$n(this.props,Jn,["onChange","value"]),D=!!(a&&a.length>0);this._classNames=this.props.getClassNames?this.props.getClassNames(C,!!I,!!r,!!i,!!this._hasFocus(),!!y,!!D,n):qf(jf(C,b),n,!!I,!!r,!!i,!!this._hasFocus(),!!y,!!D);var A=this._renderComboBoxWrapper(P,e);return o.createElement("div",u({},T,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),d({props:this.props,multiselectAccessibleText:P},this._onRenderLabel),A,(S||I)&&l(u(u({},this.props),{onRenderList:h,onRenderItem:f,onRenderOption:v,options:w.map((function(e,t){return u(u({},e),{index:t})})),onDismiss:this._onDismiss}),this._onRenderContainer),D&&o.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},a))},t.prototype._getPendingString=function(e,t,n){return null!==e&&void 0!==e?e:og(t,n)?t[n].text:""},t.prototype._getMultiselectDisplayString=function(e,t,n){for(var r=[],o=0;e&&o<e.length;o++){var i=e[o];t[i].itemType!==Of.SelectAll&&r.push(og(t,i)?t[i].text:rg(n))}var a=this.props.multiSelectDelimiter,s=void 0===a?", ":a;return r.join(s)},t.prototype._processInputChangeWithFreeform=function(e){var t=this.props.hoisted.currentOptions,n=-1;if(""===e)return 1===(o=t.map((function(e,t){return u(u({},e),{index:t})})).filter((function(t){return ig(t)&&sg(t)===e}))).length&&(n=o[0].index),void this._setPendingInfo(e,n,e);var r=e;e=e.toLocaleLowerCase();var o,i="";if("on"===this.props.autoComplete){if((o=t.map((function(e,t){return u(u({},e),{index:t})})).filter((function(t){return ig(t)&&0===sg(t).toLocaleLowerCase().indexOf(e)}))).length>0){var a=sg(o[0]);i=a.toLocaleLowerCase()!==e?a:"",n=o[0].index}}else 1===(o=t.map((function(e,t){return u(u({},e),{index:t})})).filter((function(t){return ig(t)&&sg(t).toLocaleLowerCase()===e}))).length&&(n=o[0].index);this._setPendingInfo(r,n,i)},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=rg(o)+e);var a=e;e=e.toLocaleLowerCase();var s=n.map((function(e,t){return u(u({},e),{index:t})})).filter((function(t){return ig(t)&&0===t.text.toLocaleLowerCase().indexOf(e)}));return s.length>0&&this._setPendingInfo(a,s[0].index,sg(s[0])),void(this._autoCompleteTimeout=this._async.setTimeout((function(){t._autoCompleteTimeout=void 0}),1e3))}var l=i>=0?i:this._getFirstSelectedIndex();this._setPendingInfoFromIndex(l)},t.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return(null===e||void 0===e?void 0:e.length)?e[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var n=this.props.hoisted.currentOptions,r=e+t;if(!og(n,r=Math.max(0,Math.min(n.length-1,r))))return-1;var o=n[r];if(!ag(o)||!0===o.hidden){if(t===Lf.none||!(r>0&&t<Lf.none||r>=0&&r<n.length&&t>Lf.none))return e;r=this._getNextSelectableIndex(r,t)}return r},t.prototype._setSelectedIndex=function(e,t,n){void 0===n&&(n=Lf.none);var r=this.props,o=r.onChange,i=r.onPendingValueChanged,a=r.hoisted,s=a.selectedIndices,l=a.currentOptions,c=s?s.slice():[],d=l.slice();if(og(l,e=this._getNextSelectableIndex(e,n))){if(this.props.multiSelect||c.length<1||1===c.length&&c[0]!==e){var p=u({},l[e]);if(!p||p.disabled)return;if(this.props.multiSelect)if(p.selected=void 0!==p.selected?!p.selected:c.indexOf(e)<0,p.itemType===Of.SelectAll)c=[],p.selected?l.forEach((function(e,t){!e.disabled&&ag(e)&&(c.push(t),d[t]=u(u({},e),{selected:!0}))})):d=l.map((function(e){return u(u({},e),{selected:!1})}));else{p.selected&&c.indexOf(e)<0?c.push(e):!p.selected&&c.indexOf(e)>=0&&(c=c.filter((function(t){return t!==e}))),d[e]=p;var h=d.filter((function(e){return e.itemType===Of.SelectAll}))[0];if(h){var m=this._isSelectAllChecked(c),f=d.indexOf(h);m?(c.push(f),d[f]=u(u({},h),{selected:!0})):(c=c.filter((function(e){return e!==f})),d[f]=u(u({},h),{selected:!1}))}}else c[0]=e;t.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(c),this.props.hoisted.setCurrentOptions(d)),this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),o&&o(t,p,e,void 0)}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,n=this.props,r=n.onChange,o=n.allowFreeform,i=n.autoComplete,a=n.multiSelect,s=n.hoisted,l=s.currentOptions,c=this.state,u=c.currentPendingValue,d=c.currentPendingValueValidIndex,p=c.currentPendingValueValidIndexOnHover,h=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(o){if(null===u||void 0===u)return void(p>=0&&(this._setSelectedIndex(p,e),this._clearPendingInfo()));if(og(l,d)){var m=sg(l[d]).toLocaleLowerCase(),f=this._autofill.current;if(u.toLocaleLowerCase()===m||i&&0===m.indexOf(u.toLocaleLowerCase())&&(null===f||void 0===f?void 0:f.isValueSelected)&&u.length+(f.selectionEnd-f.selectionStart)===m.length||(null===(t=null===f||void 0===f?void 0:f.inputElement)||void 0===t?void 0:t.value.toLocaleLowerCase())===m){if(this._setSelectedIndex(d,e),a&&this.state.isOpen)return;return void this._clearPendingInfo()}}if(r)r&&r(e,void 0,void 0,u);else{var g={key:u||wn(),text:rg(u)};a&&(g.selected=!0);var v=l.concat([g]);h&&(a||(h=[]),h.push(v.length-1)),s.setCurrentOptions(v),s.setSelectedIndices(h)}}else d>=0?this._setSelectedIndex(d,e):p>=0&&this._setSelectedIndex(p,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t&&t>0?o.createElement("div",{role:"separator",key:n,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOptionContent:t;return o.createElement("div",{key:e.key,className:this._classNames.header},n(e,this._onRenderOptionContent))},t.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==Hf.clearAll&&(t>=0?t===e:this._isOptionSelected(e))},t.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){return this.props.hoisted.selectedIndices.indexOf(e)>=0}return!1},t.prototype._isOptionIndeterminate=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted;if(n&&void 0!==e&&r.selectedIndices&&r.currentOptions){var o=r.currentOptions[e];if(o&&o.itemType===Of.SelectAll)return r.selectedIndices.length>0&&!this._isSelectAllChecked()}return!1},t.prototype._isSelectAllChecked=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted,o=r.currentOptions.find((function(e){return e.itemType===Of.SelectAll})),i=e||r.selectedIndices;if(!n||!i||!o)return!1;var a=r.currentOptions.indexOf(o),s=i.filter((function(e){return e!==a})),l=r.currentOptions.filter((function(e){return!e.disabled&&e.itemType!==Of.SelectAll&&ag(e)}));return s.length===l.length},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,n=t.currentPendingValueValidIndex,r=t.currentPendingValue;return n>=0||e&&null!==r&&void 0!==r?n:this.props.multiSelect?0:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,n=e.scrollSelectedToTop,r=this.state,o=r.currentPendingValueValidIndex,i=r.currentPendingValue;if(t)t(o>=0||""!==i?o:this._getFirstSelectedIndex());else if(this._selectedElement.current&&this._selectedElement.current.offsetParent)if(n)this._selectedElement.current.offsetParent.scrollIntoView(!0);else{var a=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var s=this._comboBoxMenu.current.offsetParent.getBoundingClientRect(),l=this._selectedElement.current.offsetParent.getBoundingClientRect();if(s.top<=l.top&&s.top+s.height>=l.top+l.height)return;s.top+s.height<=l.top+l.height&&(a=!1)}this._selectedElement.current.offsetParent.scrollIntoView(a)}},t.prototype._onItemClick=function(e){var t=this,n=this.props.onItemClick,r=e.index;return function(o){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),n&&n(o,e,r),t._setSelectedIndex(r,o)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:Hf.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:rg(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:Hf.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(sg(n),e,sg(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===Lf.forward&&e>=n.length-1?e=-1:t===Lf.backward&&e<=0&&(e=n.length);var r=this._getNextSelectableIndex(e,t);e===r?t===Lf.forward?e=this._getNextSelectableIndex(-1,t):t===Lf.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=r,og(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex,a=r.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&og(n,a)?s=a:i!==e.currentPendingValueValidIndex&&og(n,i)?s=i:o!==e.currentPendingValue&&(l=o),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?n[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==We&&e.which!==Ye&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return Gf(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,n=e.styles;return Wf(this.props.theme,t,n,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index))},t.prototype._getAriaActiveDescendantValue=function(){var e=this.props.hoisted.selectedIndices,t=this.state,n=t.isOpen,r=t.currentPendingValueValidIndex,o=n&&(null===e||void 0===e?void 0:e.length)?this._id+"-list"+e[0]:void 0;return n&&this._hasFocus()&&-1!==r&&(o=this._id+"-list"+r),o},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"none"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t=p([cn("ComboBox",["theme","styles"],!0)],t)}(o.Component);function tg(e,t){if(!e||!t)return[];var n={};e.forEach((function(e,t){e.selected&&(n[t]=!0)}));for(var r=function(t){var r=ft(e,(function(e){return e.key===t}));r>-1&&(n[r]=!0)},o=0,i=t;o<i.length;o++){r(i[o])}return Object.keys(n).map(Number).sort()}function ng(e){return void 0===e?[]:e instanceof Array?e:[e]}function rg(e){return e||""}function og(e,t){return!!e&&t>=0&&t<e.length}function ig(e){return e.itemType!==Of.Header&&e.itemType!==Of.Divider&&e.itemType!==Of.SelectAll}function ag(e){return e.itemType!==Of.Header&&e.itemType!==Of.Divider}function sg(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function lg(e){return e.which===Ke||"Meta"===e.key}var cg=0,ug=1,dg=2,pg=3,hg="spacer-",mg={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},fg=function(e){return e.getBoundingClientRect()},gg=fg,vg=fg,yg=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._surface=o.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return o.createElement("div",u({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return o.createElement("div",u({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r=n.props,i=r.onRenderCell,a=r.role,s=e.page,l=s.items,c=void 0===l?[]:l,p=s.startIndex,h=d(e,["page"]),m=void 0===a?"listitem":"presentation",f=[],g=0;g<c.length;g++){var v=p+g,y=c[g],b=n.props.getKey?n.props.getKey(y,v):y&&y.key;null!==b&&void 0!==b||(b=v),f.push(o.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":v,"data-automationid":"ListCell"},i&&i(y,v,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return o.createElement("div",u({},h),f)},or(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new de(n),n._events=new ge(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=cg);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=vg(this._scrollElement),p={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+d.height},h=e-l,m=0;m<h;++m)a+=t(l+m);var f=a+t(e);switch(n){case ug:return void(this._scrollElement.scrollTop=a);case dg:return void(this._scrollElement.scrollTop=f-d.height);case pg:return void(this._scrollElement.scrollTop=(a+f-d.height)/2)}if(a>=p.top&&f<=p.bottom)return;a<p.top||f>p.bottom&&(a=f-d.height)}return void(this._scrollElement&&(this._scrollElement.scrollTop=a))}a+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){o=e(a);if(r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},t.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=ke(this._root.current),this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(){var e=this.props,t=this.state;e.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(t.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(e,t)))):this._onAsyncIdle();e.onPagesUpdated&&e.onPagesUpdated(t.pages)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,i=e.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=$n(this.props,Jn),d=0,p=s;d<p.length;d++){var h=p[d];l.push(this._renderPage(h))}var m=o?Br(o,this._onRenderSurface):this._onRenderSurface;return(i?Br(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:m({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:u(u({},c),{className:Zt("ms-List",t),role:l.length>0?r:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return u(u({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=kt(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),u(u({},t),n)},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var a=u({},mg),s=[],l=1,c=0,d=null,p=this._focusedIndex,h=o+n,m=this._shouldVirtualize(e),f=0===this._estimatedPageHeight&&!i,g=this._allowedRect,v=function(e){var n=y._getPageSpecification(e,g),i=n.height,u=n.data,v=n.key;l=n.itemCount;var b,C,S=c+i-1,x=ft(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,_=!g||S>=g.top&&c<=g.bottom,E=!y._requiredRect||S>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!f&&(E||_&&x)||!m||p>=e&&p<e+l||e===o){d&&(s.push(d),d=null);var k=Math.min(l,h-e),w=y._createPage(v,r.slice(e,e+k),e,void 0,void 0,u);w.top=c,w.height=i,y._visibleRect&&y._visibleRect.bottom&&(w.isVisible=S>=y._visibleRect.top&&c<=y._visibleRect.bottom),s.push(w),E&&y._allowedRect&&(b=a,C={top:c,bottom:S,height:i,left:g.left,right:g.right,width:g.width},b.top=C.top<b.top||-1===b.top?C.top:b.top,b.left=C.left<b.left||-1===b.left?C.left:b.left,b.bottom=C.bottom>b.bottom||-1===b.bottom?C.bottom:b.bottom,b.right=C.right>b.right||-1===b.right?C.right:b.right,b.width=b.right-b.left+1,b.height=b.bottom-b.top+1)}else d||(d=y._createPage(hg+e,void 0,e,0,void 0,u,!0)),d.height=(d.height||0)+(S-c)+1,d.itemCount+=l;if(c+=S-c+1,f&&m)return"break"},y=this,b=o;b<h;b+=l){if("break"===v(b))break}return d&&(d.key="spacer-end",s.push(d)),this._materializedRect=a,u(u({},t),{pages:s,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t){var n=this.props.getPageSpecification;if(n){var r=n(e,t),o=r.itemCount,i=void 0===o?this._getItemCountForPage(e,t):o,a=r.height;return{itemCount:i,height:void 0===a?this._getPageHeight(e,t,i):a,data:r.data,key:r.key}}return{itemCount:i=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,i)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var a=this._surfaceRect||u({},mg),s=this._scrollElement&&this._scrollElement.scrollHeight,l=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!i||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-l)>this._estimatedPageHeight/3)&&(a=this._surfaceRect=gg(this._surface.current),this._scrollTop=l),!n&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var c=Math.max(0,-a.top),d=ue(this._root.current),p={top:c,left:a.left,bottom:c+d.innerHeight,right:a.right,width:a.width,height:d.innerHeight};this._requiredRect=bg(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=bg(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return o.createElement(o.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(o.Component);function bg(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}!function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=o.createRef(),n._list=o.createRef(),n._onRenderList=function(e){var t=e.id,r=e.onRenderItem;return o.createElement(yg,{componentRef:n._list,role:"listbox",id:t+"-list","aria-labelledby":t+"-label",items:e.options,onRenderCell:r?function(e){return r(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},or(n),n}c(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return o.createElement($f,u({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))}}(o.Component);var Cg=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},Sg=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},xg=function(e){var t=Eu.getInstance(),n=e.className,r=e.overflowItems,i=e.keytipSequences,a=e.itemSubMenuProvider,s=e.onRenderOverflowButton,l=gs({}),c=o.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=o.useMemo((function(){var e=[],n=[];return i?null===r||void 0===r||r.forEach((function(r){var o,a=r.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(r)?s.onExecute=t.menuExecute.bind(t,i,null===(o=null===r||void 0===r?void 0:r.keytipProps)||void 0===o?void 0:o.keySequences):s.onExecute=a.onExecute,e.push(s);var l=u(u({},r),{keytipProps:u(u({},a),{overflowSetSequence:i})});null===n||void 0===n||n.push(l)}else null===n||void 0===n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,i]),p=d.modifiedOverflowItems;return function(e,t,n){var r=_s(e);o.useEffect((function(){r&&(Sg(n,r),Cg(t,n,e))})),o.useEffect((function(){return Cg(t,n,e),function(){Sg(n,e)}}),[])}(l,d.keytipsToRegister,t),o.createElement("div",{className:n},s(p))},_g=Ft(),Eg=o.forwardRef((function(e,t){var n=o.useRef(null),r=Ss(n,t);!function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e=!1;return t.current&&(e=mn(t.current)),e},focusElement:function(e){var n=!1;return!!e&&(t.current&&wt(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var i=e.items,a=e.overflowItems,s=e.className,l=e.styles,c=e.vertical,d=e.role,p=e.overflowSide,h=void 0===p?"end":p,m=e.onRenderItem,f=_g(l,{className:s,vertical:c}),g=!!a&&a.length>0;return o.createElement("div",u({},$n(e,Jn),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:f.root,ref:r}),"start"===h&&g&&o.createElement(xg,u({},e,{className:f.overflowButton})),i&&i.map((function(e,t){return o.createElement("div",{className:f.item,key:e.key,role:"none"},m(e))})),"end"===h&&g&&o.createElement(xg,u({},e,{className:f.overflowButton})))}));Eg.displayName="OverflowSet";var kg={flexShrink:0,display:"inherit"},wg=Kr(Eg,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",kg],overflowButton:["ms-OverflowSet-overflowButton",kg]}}),void 0,{scope:"OverflowSet"}),Ig=Gt((function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},r=e||{},o=r.root,i=r.label,a=d(r,["root","label"]);return u(u({},a),{root:o?[t,o]:t,label:i?[n,i]:n})})),Pg=Ft(),Tg=function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=o.createRef(),n._resizeGroup=o.createRef(),n._onRenderData=function(e){var t=n.props,r=t.ariaLabel,i=t.primaryGroupAriaLabel,a=t.farItemsGroupAriaLabel,s=e.farItems&&e.farItems.length>0;return o.createElement(zc,{className:Zt(n._classNames.root),direction:wc.horizontal,role:"menubar","aria-label":r},o.createElement(wg,{role:s?"group":"none","aria-label":s?i:void 0,componentRef:n._overflowSet,className:Zt(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),s&&o.createElement(wg,{role:"group","aria-label":a,className:Zt(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:Fe}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,(function(){}));var t=e.text||e.name,r=u(u({allowDisabledFocus:!0,role:"menuitem"},e),{styles:Ig(e.buttonStyles),className:Zt("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?o.createElement(wl,u({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),n._commandButton(e,r)):n._commandButton(e,r)},n._commandButton=function(e,t){var r=n.props.buttonAs,i=e.commandBarButtonAs,a=Nd;return i&&(a=Xt(i,a)),r&&(a=Xt(r,a)),o.createElement(a,u({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,r=void 0===t?{}:t,i=h(r.menuProps?r.menuProps.items:[],e),a=u(u({role:"menuitem"},r),{styles:u({menuIcon:{fontSize:"17px"}},r.styles),className:Zt("ms-CommandBar-overflowButton",r.className),menuProps:u(u({},r.menuProps),{items:i}),menuIconProps:u({iconName:"More"},r.menuIconProps)}),s=n.props.overflowButtonAs?Xt(n.props.overflowButtonAs,Nd):Nd;return o.createElement(s,u({},a))},n._onReduceData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataReduced,i=e.primaryItems,a=e.overflowItems,s=e.cacheKey,l=i[r?0:i.length-1];if(void 0!==l){l.renderedInOverflow=!0,a=h([l],a),i=r?i.slice(1):i.slice(0,-1);var c=u(u({},e),{primaryItems:i,overflowItems:a});return s=n._computeCacheKey({primaryItems:i,overflow:a.length>0}),o&&o(l),c.cacheKey=s,c}},n._onGrowData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataGrown,i=e.minimumOverflowItems,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=s[0];if(void 0!==c&&s.length>i){c.renderedInOverflow=!1,s=s.slice(1),a=r?h([c],a):h(a,[c]);var d=u(u({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0}),o&&o(c),d.cacheKey=l,d}},or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,r=e.farItems,i=e.styles,a=e.theme,s=e.dataDidRender,l=e.onReduceData,c=void 0===l?this._onReduceData:l,d=e.onGrowData,p=void 0===d?this._onGrowData:d,m=e.resizeGroupAs,f=void 0===m?Gd:m,g={primaryItems:h(t),overflowItems:h(n),minimumOverflowItems:h(n).length,farItems:r,cacheKey:this._computeCacheKey({primaryItems:h(t),overflow:n&&n.length>0})};this._classNames=Pg(i,{theme:a});var v=$n(this.props,Jn);return o.createElement(f,u({},v,{componentRef:this._resizeGroup,data:g,onReduceData:c,onGrowData:p,onRenderData:this._onRenderData,dataDidRender:s}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow,r=t&&t.reduce((function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)}),"");return[r,n?"overflow":""].join("")},t.defaultProps={items:[],overflowItems:[]},t}(o.Component),Dg=(Kr(Tg,(function(e){var t=e.className,n=e.theme,r=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:r.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}}),void 0,{scope:"CommandBar"}),u(u({},nh),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'})),Ag=Ft(),Rg={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:np.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:Dg,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:op.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};var Ng=o.forwardRef((function(e,t){var n=Qr(Rg,e),r=n.firstDayOfWeek,i=n.strings,a=n.label,s=n.theme,l=n.className,c=n.styles,d=n.initialPickerDate,p=n.isRequired,h=n.disabled,m=n.ariaLabel,f=n.pickerAriaLabel,g=n.placeholder,v=n.allowTextInput,y=n.borderless,b=n.minDate,C=n.maxDate,S=n.showCloseButton,x=n.calendarProps,_=n.calloutProps,E=n.textField,k=n.underlined,w=n.allFocusable,I=n.calendarAs,P=void 0===I?Ph:I,T=n.tabIndex,D=n.disableAutoFocus,A=void 0===D||D,R=Cs("DatePicker",n.id),N=Cs("DatePicker-Callout"),M=o.useRef(null),F=o.useRef(null),B=function(){var e=o.useRef(null),t=o.useRef(!1);return[e,function(){var t,n;null===(n=null===(t=e.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},t,function(){t.current=!0}]}(),O=B[0],L=B[1],H=B[2],V=B[3],z=function(e,t){var n=e.allowTextInput,r=e.onAfterMenuDismiss,i=o.useState(!1),a=i[0],s=i[1],l=o.useRef(!1),c=vs();return o.useEffect((function(){l.current&&!a&&(n&&c.requestAnimationFrame(t),null===r||void 0===r||r()),l.current=!0}),[a]),[a,s]}(n,L),U=z[0],W=z[1],G=function(e){var t=e.formatDate,n=e.value,r=e.onSelectDate,i=bs(n,void 0,(function(e,t){return null===r||void 0===r?void 0:r(t)})),a=i[0],s=i[1],l=o.useState((function(){return n&&t?t(n):""})),c=l[0],u=l[1];return o.useEffect((function(){u(n&&t?t(n):"")}),[t,n]),[a,c,function(e){s(e),u(e&&t?t(e):"")},u]}(n),j=G[0],q=G[1],K=G[2],Y=G[3],X=function(e,t,n,r,i){var a=e.isRequired,s=e.allowTextInput,l=e.strings,c=e.parseDateFromString,u=e.onSelectDate,d=e.formatDate,p=e.minDate,h=e.maxDate,m=o.useState(),f=m[0],g=m[1],v=o.useState(),y=v[0],b=v[1];return o.useEffect((function(){a&&!t?g(l.isRequiredErrorMessage||" "):t&&Mg(t,p,h)?g(l.isOutOfBoundsErrorMessage||" "):g(void 0)}),[p&&Ip(p),h&&Ip(h),t&&Ip(t),a]),[i?void 0:f,function(e){if(void 0===e&&(e=null),s)if(r||e){if(t&&!f&&d&&d(null!==e&&void 0!==e?e:t)===r)return;if(!(e=e||c(r))||isNaN(e.getTime())){n(t);var o=d?d(t):"",i=l.isResetStatusMessage?Gr(l.isResetStatusMessage,r,o):l.invalidInputErrorMessage||"";b(i)}else Mg(e,p,h)?g(l.isOutOfBoundsErrorMessage||" "):(n(e),g(void 0),b(void 0))}else g(a?l.isRequiredErrorMessage||" ":void 0),null===u||void 0===u||u(e);else a&&!r?g(l.isRequiredErrorMessage||" "):(g(void 0),b(void 0))},g,i?void 0:y,b]}(n,j,K,q,U),Q=X[0],Z=X[1],J=X[2],$=X[3],ee=X[4],te=o.useCallback((function(){U||(V(),W(!0))}),[U,V,W]);o.useImperativeHandle(n.componentRef,(function(){return{focus:L,reset:function(){W(!1),K(void 0),J(void 0),ee(void 0)},showDatePickerPopup:te}}),[L,J,W,K,ee,te]);var ne=function(e){U&&(W(!1),Z(e),!v&&e&&K(e))},re=function(e){V(),ne(e)},oe=function(e){e.stopPropagation(),re()},ie=Ag(c,{theme:s,className:l,disabled:h,underlined:k,label:!!a,isDatePickerShown:U}),ae=$n(n,Jn,["value"]),se=E&&E.iconProps,le=E&&E.id&&E.id!==R?E.id:R+"-label",ce=!v&&!h;return o.createElement("div",u({},ae,{className:ie.root,ref:t}),o.createElement("div",{ref:F,"aria-owns":U?N:void 0,className:ie.wrapper},o.createElement(ff,u({role:"combobox",label:a,"aria-expanded":U,ariaLabel:m,"aria-haspopup":"dialog","aria-controls":U?N:void 0,required:p,disabled:h,errorMessage:Q,placeholder:g,borderless:y,value:q,componentRef:O,underlined:k,tabIndex:T,readOnly:!v},E,{id:le,className:Zt(ie.textField,E&&E.className),iconProps:u(u({iconName:"Calendar"},se),{className:Zt(ie.icon,se&&se.className),onClick:function(e){e.stopPropagation(),U||n.disabled?n.allowTextInput&&ne():te()}}),onRenderDescription:function(e,t){return o.createElement(o.Fragment,null,e.description?t(e):null,o.createElement("div",{"aria-live":"assertive",className:ie.statusMessage},$))},onKeyDown:function(e){switch(e.which){case Ge:e.preventDefault(),e.stopPropagation(),U?n.allowTextInput&&ne():(Z(),te());break;case Ye:oe(e);break;case rt:e.altKey&&!U&&te()}},onFocus:function(){A||v||(H.current||te(),H.current=!1)},onBlur:function(e){Z()},onClick:function(e){!(n.openOnClick||!n.disableAutoFocus)||U||n.disabled?n.allowTextInput&&ne():te()},onChange:function(e,t){var r,o=n.textField;v&&(U&&ne(),Y(t)),null===(r=null===o||void 0===o?void 0:o.onChange)||void 0===r||r.call(o,e,t)},onRenderInput:ce?function(e){var t=$n(e,Jn);return o.createElement("div",u({},t,{className:Zt(t.className,ie.readOnlyTextField),tabIndex:T||0}),q||o.createElement("span",{className:ie.readOnlyPlaceholder},g))}:void 0}))),U&&o.createElement(ul,u({id:N,role:"dialog",ariaLabel:f,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:F.current,directionalHint:wa},_,{className:Zt(ie.callout,_&&_.className),onDismiss:function(e){re()},onPositioned:function(){var e=!0;n.calloutProps&&void 0!==n.calloutProps.setInitialFocus&&(e=n.calloutProps.setInitialFocus),M.current&&e&&M.current.focus()}}),o.createElement(dl,{isClickableOutsideFocusTrap:!0,disableFirstFocus:A},o.createElement(P,u({},x,{onSelectDate:function(e){n.calendarProps&&n.calendarProps.onSelectDate&&n.calendarProps.onSelectDate(e),re(e)},onDismiss:re,isMonthPickerVisible:n.isMonthPickerVisible,showMonthPickerAsOverlay:n.showMonthPickerAsOverlay,today:n.today,value:j||d,firstDayOfWeek:r,strings:i,highlightCurrentMonth:n.highlightCurrentMonth,highlightSelectedMonth:n.highlightSelectedMonth,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,showGoToToday:n.showGoToToday,dateTimeFormatter:n.dateTimeFormatter,minDate:b,maxDate:C,componentRef:M,showCloseButton:S,allFocusable:w})))))}));function Mg(e,t,n){return!!t&&Cp(t,e)>0||!!n&&Cp(n,e)<0}Ng.displayName="DatePickerBase";var Fg,Bg,Og,Lg,Hg,Vg,zg={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Ug=(Kr(Ng,(function(e){var t,n=e.className,r=e.theme,o=e.disabled,i=e.underlined,a=e.label,s=e.isDatePickerShown,l=r.palette,c=r.semanticColors,u=r.fonts,d=Mi(zg,r),p={color:l.neutralSecondary,fontSize:ci.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[d.root,r.fonts.large,s&&"is-open",oa,n],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},o&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[d.callout],icon:[p,a?d.withLabel:d.withoutLabel,{paddingTop:"7px"},!o&&[d.disabled,{pointerEvents:"initial",cursor:"pointer"}],o&&{color:c.disabledText,cursor:"default"}],statusMessage:[u.small,{color:c.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:32,lineHeight:30,overflow:"hidden",textOverflow:"ellipsis"},i&&{lineHeight:34}],readOnlyPlaceholder:(t={color:c.inputPlaceholderText},t[Ci]={color:"GrayText"},t)}}),void 0,{scope:"DatePicker"}),"data-selection-index"),Wg="data-selection-toggle",Gg="data-selection-invoke",jg="data-selection-all-toggle",qg=function(e){function t(t){var n=e.call(this,t)||this;n._root=o.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||wt(document.activeElement,t)){if(wt(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,Gg)){n.ignoreNextFocus();break}t=kt(t)}}else n.ignoreNextFocus()},n._onFocus=function(e){var t=e.target,r=n.props.selection,o=n._isCtrlPressed||n._isMetaPressed,i=n._getSelectionMode();if(n._shouldHandleFocus&&i!==Or.none){var a=n._hasAttribute(t,Wg),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);o?(r.setIndexSelected(l,r.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick(e,l)}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=e.target,r=n._findItemRoot(t);if(!n._isSelectionDisabled(t))for(;t!==n._root.current&&!n._hasAttribute(t,jg);){if(r){if(n._hasAttribute(t,Wg))break;if(n._hasAttribute(t,Gg))break;if(!(t!==r&&!n._shouldAutoSelect(t)||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed)){n._onInvokeMouseDown(e,n._getItemIndex(r));break}if(n.props.disableAutoSelectOnInputElements&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName))return}t=kt(t)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,r=void 0!==t&&t;n._updateModifiers(e);for(var o=e.target,i=n._findItemRoot(o),a=n._isSelectionDisabled(o);o!==n._root.current;){if(n._hasAttribute(o,jg)){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i);if(n._hasAttribute(o,Wg)){a||(n._isShiftPressed?n._onItemSurfaceClick(e,s):n._onToggleClick(e,s));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,Gg)){n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick(e,s);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=kt(o)}},n._onContextMenu=function(e){var t=e.target,r=n.props,o=r.onItemContextMenu,i=r.selection;if(o){var a=n._findItemRoot(t);if(a){var s=n._getItemIndex(a);n._onInvokeMouseDown(e,s),o(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,r=n.props.onItemInvoked,o=n._findItemRoot(t);if(o&&r&&!n._isInputElement(t)){for(var i=n._getItemIndex(o);t!==n._root.current&&!n._hasAttribute(t,Wg)&&!n._hasAttribute(t,Gg);){if(t===o){n._onInvokeClick(e,i);break}t=kt(t)}t=kt(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,r=n._isSelectionDisabled(t),o=n.props.selection,i=e.which===st&&(n._isCtrlPressed||n._isMetaPressed),a=e.which===Ye;if(!n._isInputElement(t)){var s=n._getSelectionMode();if(i&&s===Or.multiple&&!o.isAllSelected())return r||o.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&o.getSelectedCount()>0)return r||o.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var l=n._findItemRoot(t);if(l)for(var c=n._getItemIndex(l);t!==n._root.current&&!n._hasAttribute(t,Wg);){if(n._shouldAutoSelect(t)){r||n._onInvokeMouseDown(e,c);break}if(!(e.which!==Ge&&e.which!==Xe||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName))return!1;if(t===l){if(e.which===Ge)return n._onInvokeClick(e,c),void e.preventDefault();if(e.which===Xe)return r||n._onToggleClick(e,c),void e.preventDefault();break}t=kt(t)}}},n._events=new ge(n),n._async=new de(n),or(n);var r=n.props.selection,i=r.isModal&&r.isModal();return n.state={isModal:i},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return u(u({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=ue(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return o.createElement("div",{className:Zt("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,o.createElement(vr,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===Or.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=kt(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===Or.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t){var n=this.props.selection,r=this._getSelectionMode();if(n.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&!n.isIndexSelected(t)&&n.setModal&&(n.setModal(!0),this._setIsTouch(!1)),r===Or.multiple)n.toggleIndexSelected(t);else{if(r!==Or.single)return void n.setChangeEvents(!0);var o=n.isIndexSelected(t),i=n.isModal&&n.isModal();n.setAllSelected(!1),n.setIndexSelected(t,!o,!0),i&&n.setModal&&n.setModal(!0)}n.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t){var n=this.props.selection,r=this._isCtrlPressed||this._isMetaPressed,o=this._getSelectionMode();o===Or.multiple?this._isShiftPressed&&!this._isTabPressed?n.selectToIndex(t,!r):r?n.toggleIndexSelected(t):this._clearAndSelectIndex(t):o===Or.single&&this._clearAndSelectIndex(t)},t.prototype._onInvokeMouseDown=function(e,t){this.props.selection.isIndexSelected(t)||this._clearAndSelectIndex(t)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=ke(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e){var t=this.props.selection;if(!(1===t.getSelectedCount()&&t.isIndexSelected(e))){var n=t.isModal&&t.isModal();t.setChangeEvents(!1),t.setAllSelected(!1),t.setIndexSelected(e,!0,!0),(n||this.props.enterModalOnTouch&&this._isTouch)&&(t.setModal&&t.setModal(!0),this._isTouch&&this._setIsTouch(!1)),t.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===We},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(Ug),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=kt(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){return Number(e.getAttribute(Ug))},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;)n="true"===e.getAttribute(t),e=kt(e);return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName},t.prototype._isNonHandledClick=function(e){var t=ve();if(t&&e)for(;e&&e!==t.documentElement;){if(yn(e))return!1;e=kt(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:Or.none:t},t.defaultProps={isSelectedOnFocus:!0,selectionMode:Or.multiple},t}(o.Component);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(Fg||(Fg={})),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(Bg||(Bg={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(Og||(Og={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(Lg||(Lg={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(Hg||(Hg={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(Vg||(Vg={}));var Kg,Yg,Xg=function(e){var t=e.count,n=e.indentWidth,r=void 0===n?36:n,i=e.role,a=void 0===i?"presentation":i,s=t*r;return t>0?o.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:s},role:a}):null},Qg={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},Zg="cubic-bezier(0.445, 0.050, 0.550, 0.950)",Jg={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},$g={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},ev={rowHeight:42,compactRowHeight:32},tv=u(u({},ev),{rowVerticalPadding:11,compactRowVerticalPadding:6}),nv={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},rv=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?$g:n,o=t.semanticColors;return[Mi(nv,t).cell,Ei(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+r.cellRightPadding+"px 0 "+r.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:42,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},ov={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},iv={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},av="cubic-bezier(0.075, 0.820, 0.165, 1.000)",sv="cubic-bezier(0.390, 0.575, 0.565, 1.000)",lv="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Kg||(Kg={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Yg||(Yg={}));var cv=Ft(),uv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,c=e.className,d=e.labelPosition,p=r,h=$n(this.props,Jn,["size"]),m=n;void 0===m&&void 0!==t&&(m=t===Yg.large?Kg.large:Kg.medium);var f=cv(a,{theme:l,size:m,className:c,labelPosition:d});return o.createElement("div",u({},h,{className:f.root}),o.createElement("div",{className:f.circle}),s&&o.createElement("div",{className:f.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(Be,null,o.createElement("div",{className:f.screenReaderText},p))))},t.defaultProps={size:Kg.medium,ariaLive:"polite",labelPosition:"bottom"},t}(o.Component),dv={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},pv=Gt((function(){return ae({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),hv=Kr(uv,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=Mi(dv,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:pv(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[Ci]=u({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},r===Kg.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===Kg.small&&["ms-Spinner--small",{width:16,height:16}],r===Kg.medium&&["ms-Spinner--medium",{width:20,height:20}],r===Kg.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Ii}}),void 0,{scope:"Spinner"}),mv=Ft(),fv=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&o&&o(t);n.setState({isCollapsed:i,isLoadingVisible:a}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===_t(nt,n.props.theme);(!n.state.isCollapsed&&e.which===_t(et,n.props.theme)||i)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onToggleSelectGroupClick=function(e){var t=n.props,r=t.onToggleSelectGroup,o=t.group;r&&r(o),e.preventDefault(),e.stopPropagation()},n._onHeaderClick=function(){var e=n.props,t=e.group,r=e.onGroupHeaderClick,o=e.onToggleSelectGroup;r?r(t):o&&o(t)},n._onRenderTitle=function(e){var t=e.group,r=e.ariaColSpan;return t?o.createElement("div",{className:n._classNames.title,id:n._id,role:"gridcell","aria-colspan":r},o.createElement("span",null,t.name),o.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=wn("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,r=e.isGroupLoading,o=!n&&r&&r(e.group);return u(u({},t),{isCollapsed:n||!1,isLoadingVisible:o||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,r=void 0===n?0:n,i=e.viewport,a=e.selectionMode,s=e.loadingText,l=e.isSelected,c=void 0!==l&&l,d=e.selected,p=void 0!==d&&d,h=e.indentWidth,m=e.onRenderTitle,f=void 0===m?this._onRenderTitle:m,g=e.onRenderGroupHeaderCheckbox,v=e.isCollapsedGroupSelectVisible,y=void 0===v||v,b=e.expandButtonProps,C=e.expandButtonIcon,S=e.selectAllButtonProps,x=e.theme,_=e.styles,E=e.className,k=e.compact,w=e.ariaPosInSet,I=e.ariaSetSize,P=e.ariaRowIndex,T=e.useFastIcons?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,D=g?Br(g,T):T,A=this.state,R=A.isCollapsed,N=A.isLoadingVisible,M=a===Or.multiple,F=M&&(y||!(t&&t.isCollapsed)),B=p||c,O=xt(x);return this._classNames=mv(_,{theme:x,className:E,selected:B,isCollapsed:R,compact:k}),t?o.createElement("div",{className:this._classNames.root,style:i?{minWidth:i.width}:{},onClick:this._onHeaderClick,role:"row","aria-setsize":I,"aria-posinset":w,"aria-rowindex":P,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":M?B:void 0,"aria-level":r+1},o.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},F?o.createElement("div",{role:"gridcell"},o.createElement("button",u({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:this._id+"-check","aria-checked":B,"aria-labelledby":this._id+"-check "+this._id,"data-selection-toggle":!0,onClick:this._onToggleSelectGroupClick},S),D({checked:B,theme:x},D))):a!==Or.none&&o.createElement(Xg,{indentWidth:48,count:1}),o.createElement(Xg,{indentWidth:h,count:r}),o.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},o.createElement(Ll,{iconName:"Tag"})),o.createElement("div",{role:"gridcell"},o.createElement("button",u({"data-is-focusable":!1,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},b),o.createElement(Ll,{className:this._classNames.expandIsCollapsed,iconName:C||(O?"ChevronLeftMed":"ChevronRightMed")}))),f(this.props,this._onRenderTitle),N&&o.createElement(hv,{label:s}))):null},t.prototype._defaultCheckboxRender=function(e){return o.createElement(Rh,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return o.createElement(gv,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(o.Component),gv=o.memo((function(e){return o.createElement(Rh,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),vv=Kr(fv,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,u=e.compact,d=$g.cellLeftPadding,p=u?40:48,h=a.semanticColors,m=a.palette,f=a.fonts,g=Mi(iv,a),v=[Ei(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[g.root,Ei(a),a.fonts.medium,{borderBottom:"1px solid "+h.listBackground,cursor:"default",userSelect:"none",selectors:(t={":hover":{background:h.listItemBackgroundHovered,color:h.actionLinkHovered}},t["&:hover ."+g.check]={opacity:1},t[".ms-Fabric--isFocusVisible &:focus ."+g.check]={opacity:1},t[":global(."+g.group+"."+g.isDropping+")"]={selectors:(n={},n["& > ."+g.root+" ."+g.dropIcon]={transition:"transform "+Jo+" "+av+" opacity "+Xo+" "+sv,transitionDelay:Zo,opacity:1,transform:"rotate(0.2deg) scale(1);"},n["."+g.check]={opacity:0},n)},t)},l&&[g.isSelected,{background:h.listItemBackgroundChecked,selectors:(r={":hover":{background:h.listItemBackgroundCheckedHovered}},r[""+g.check]={opacity:1},r)}],u&&[g.compact,{border:"none"}],s],groupHeaderContainer:[{display:"flex",alignItems:"center",height:p}],headerCount:[{padding:"0px 4px"}],check:[g.check,v,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:48,height:p,selectors:(o={},o[".ms-Fabric--isFocusVisible &:focus"]={opacity:1},o)}],expand:[g.expand,v,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:f.small.fontSize,width:36,height:p,color:l?m.neutralPrimary:m.neutralSecondary,selectors:{":hover":{backgroundColor:l?m.neutralQuaternary:m.neutralLight},":active":{backgroundColor:l?m.neutralTertiaryAlt:m.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[g.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:xt(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[g.title,{paddingLeft:d,fontSize:u?f.medium.fontSize:f.mediumPlus.fontSize,fontWeight:c?ui.regular:ui.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[g.dropIcon,{position:"absolute",left:-26,fontSize:di.large,color:m.neutralSecondary,transition:"transform "+Qo+" "+lv+", opacity "+Jo+" "+sv,opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(i={},i[":global(."+g.iconTag+")"]={position:"absolute"},i)}]}}),void 0,{scope:"GroupHeader"}),yv={root:"ms-GroupShowAll",link:"ms-Link"},bv=Ft(),Cv=Kr((function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,i=void 0===r?"Show All":r,a=e.styles,s=e.theme,l=e.onToggleSummarize,c=bv(a,{theme:s}),u=o.useCallback((function(e){l(t),e.stopPropagation(),e.preventDefault()}),[l,t]);return t?o.createElement("div",{className:c.root},o.createElement(Xg,{count:n}),o.createElement(Yc,{onClick:u},i)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=Mi(yv,n);return{root:[o.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t["."+o.link]={fontSize:r.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),Sv={root:"ms-groupFooter"},xv=Ft(),_v=Kr((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,i=e.indentWidth,a=e.styles,s=e.theme,l=xv(a,{theme:s});return t&&r?o.createElement("div",{className:l.root},o.createElement(Xg,{indentWidth:i,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=Mi(Sv,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),Ev=function(e){function t(n){var r=e.call(this,n)||this;r._root=o.createRef(),r._list=o.createRef(),r._subGroupRefs={},r._droppingClassName="",r._onRenderGroupHeader=function(e){return o.createElement(vv,u({},e))},r._onRenderGroupShowAll=function(e){return o.createElement(Cv,u({},e))},r._onRenderGroupFooter=function(e){return o.createElement(_v,u({},e))},r._renderSubGroup=function(e,n){var i=r.props,a=i.dragDropEvents,s=i.dragDropHelper,l=i.eventsToRegister,c=i.getGroupItemLimit,u=i.groupNestingDepth,d=i.groupProps,p=i.items,h=i.headerProps,m=i.showAllProps,f=i.footerProps,g=i.listProps,v=i.onRenderCell,y=i.selection,b=i.selectionMode,C=i.viewport,S=i.onRenderGroupHeader,x=i.onRenderGroupShowAll,_=i.onRenderGroupFooter,E=i.onShouldVirtualize,k=i.group,w=i.compact,I=e.level?e.level+1:u;return!e||e.count>0||d&&d.showEmptyGroups?o.createElement(t,{ref:function(e){return r._subGroupRefs["subGroup_"+n]=e},key:r._getGroupKey(e,n),dragDropEvents:a,dragDropHelper:s,eventsToRegister:l,footerProps:f,getGroupItemLimit:c,group:e,groupIndex:n,groupNestingDepth:I,groupProps:d,headerProps:h,items:p,listProps:g,onRenderCell:v,selection:y,selectionMode:b,showAllProps:m,viewport:C,onRenderGroupHeader:S,onRenderGroupShowAll:x,onRenderGroupFooter:_,onShouldVirtualize:E,groups:k?k.children:[],compact:w}):null},r._getGroupDragDropOptions=function(){var e=r.props,t=e.group,n=e.groupIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:r._updateDroppingState,canDrag:o.canDrag,canDrop:o.canDrop,onDrop:o.onDrop,onDragStart:o.onDragStart,onDragEnter:o.onDragEnter,onDragLeave:o.onDragLeave,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},r._updateDroppingState=function(e,t){var n=r.state.isDropping,o=r.props,i=o.dragDropEvents,a=o.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(r._droppingClassName=i.onDragEnter(a,t)),r.setState({isDropping:e}))};var i=n.selection,a=n.group;return or(r),r._id=wn("GroupedListSection"),r.state={isDropping:!1,isSelected:!(!i||!a)&&i.isRangeSelected(a.startIndex,a.count)},r._events=new ge(r),r}return c(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,Hr,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,r=e.groupIndex,i=e.headerProps,a=e.showAllProps,s=e.footerProps,l=e.viewport,c=e.selectionMode,d=e.onRenderGroupHeader,p=void 0===d?this._onRenderGroupHeader:d,h=e.onRenderGroupShowAll,m=void 0===h?this._onRenderGroupShowAll:h,f=e.onRenderGroupFooter,g=void 0===f?this._onRenderGroupFooter:f,v=e.onShouldVirtualize,y=e.groupedListClassNames,b=e.groups,C=e.compact,S=e.listProps,x=void 0===S?{}:S,_=this.state.isSelected,E=n&&t?t(n):1/0,k=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>E||n.hasMoreData),w=n&&n.children&&n.children.length>0,I=x.version,P={group:n,groupIndex:r,groupLevel:n?n.level:0,isSelected:_,selected:_,viewport:l,selectionMode:c,groups:b,compact:C},T={groupedListId:this._id,ariaSetSize:b?b.length:void 0,ariaPosInSet:void 0!==r?r+1:void 0},D=u(u(u({},i),P),T),A=u(u({},a),P),R=u(u({},s),P),N=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return o.createElement("div",u({ref:this._root},N&&{draggable:!0},{className:Zt(y&&y.group,this._getDroppingClassName()),role:"presentation"}),p(D,this._onRenderGroupHeader),n&&n.isCollapsed?null:w?o.createElement(yg,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:v,version:I,id:this._id}):this._onRenderGroup(E),n&&n.isCollapsed?null:k&&m(A,this._onRenderGroupShowAll),g(R,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r;(r=this._list.current.pageRefs["subGroup_"+String(n)])&&r.forceListUpdate()}}else(r=this._subGroupRefs["subGroup_"+String(0)])&&r.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},t.prototype._onRenderGroupCell=function(e,t,n){return function(r,o){return e(t,r,o,n)}},t.prototype._onRenderGroup=function(e){var t=this.props,n=t.group,r=t.items,i=t.onRenderCell,a=t.listProps,s=t.groupNestingDepth,l=t.onShouldVirtualize,c=t.groupProps,d=n&&!n.isShowingAll?n.count:r.length,p=n?n.startIndex:0;return o.createElement(yg,u({role:c&&c.role?c.role:"rowgroup","aria-label":null===n||void 0===n?void 0:n.name,items:r,onRenderCell:this._onRenderGroupCell(i,s,n),ref:this._list,renderCount:Math.min(d,e),startIndex:p,onShouldVirtualize:l,id:this._id},a))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return Zt((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},t}(o.Component),kv=Ft(),wv=ev.rowHeight,Iv=ev.compactRowHeight,Pv=function(e){function t(t){var n=e.call(this,t)||this;n._list=o.createRef(),n._renderGroup=function(e,t){var r=n.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,l=r.groupProps,c=r.items,d=r.listProps,p=r.onRenderCell,h=r.selectionMode,m=r.selection,f=r.viewport,g=r.onShouldVirtualize,v=r.groups,y=r.compact,b={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},C=u(u({},l.headerProps),b),S=u(u({},l.showAllProps),b),x=u(u({},l.footerProps),b),_=n._getGroupNestingDepth();if(!l.showEmptyGroups&&e&&0===e.count)return null;var E=u(u({},d||{}),{version:n.state.version});return o.createElement(Ev,{key:n._getGroupKey(e,t),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:x,getGroupItemLimit:l&&l.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:_,groupProps:l,headerProps:C,listProps:E,items:c,onRenderCell:p,onRenderGroupHeader:l.onRenderHeader,onRenderGroupShowAll:l.onRenderShowAll,onRenderGroupFooter:l.onRenderFooter,selectionMode:h,selection:m,showAllProps:S,viewport:f,onShouldVirtualize:g,groupedListClassNames:n._classNames,groups:v,compact:y})},n._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?Iv:wv;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,r=n.props.getGroupHeight,o=void 0===r?n._getGroupHeight:r,i=t&&t[e];return i?o(i,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,r=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(r&&r(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,r=t.selection,o=t.selectionMode;e&&r&&o===Or.multiple&&r.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===_t(nt)},n._onToggleSummarize=function(e){var t=n.props.groupProps,r=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;r?r(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,r=t&&t[e];return{key:r&&r.key}},or(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var r=t.listProps,i=(void 0===r?{}:r).version,a=void 0===i?{}:i;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:a},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=u(u({},t),{selectionMode:r,compact:o,groups:n,listProps:a}),c=!1;return s===(t.listProps&&t.listProps.version)&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(c=!0),n!==t.groups&&(l=u(u({},l),{groups:n})),r===t.selectionMode&&o===t.compact||(c=!0),c&&(l=u(u({},l),{version:{}})),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,r=e.onShouldVirtualize,i=e.theme,a=e.role,s=void 0===a?"treegrid":a,l=e.styles,c=e.compact,d=e.focusZoneProps,p=void 0===d?{}:d,h=e.rootListProps,m=void 0===h?{}:h,f=this.state,g=f.groups,v=f.version;this._classNames=kv(l,{theme:i,className:t,compact:c});var y=p.shouldEnterInnerZone,b=void 0===y?this._isInnerZoneKeystroke:y;return o.createElement(zc,u({direction:wc.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},p,{shouldEnterInnerZone:b,className:Zt(this._classNames.root,p.className)}),g?o.createElement(yg,u({ref:this._list,role:s,items:g,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:r,version:v},m)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:Or.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(o.Component),Tv=Kr(Pv,(function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=Mi(Qg,r);return{root:[s.root,r.fonts.small,{position:"relative",selectors:(t={},t["."+s.listCell]={minHeight:38},t)},i&&[s.compact,{selectors:(n={},n["."+s.listCell]={minHeight:32},n)}],o],group:[s.group,{transition:"background-color "+Qo+" "+Zg}],groupIsDropping:{backgroundColor:a.neutralLight}}}),void 0,{scope:"GroupedList"}),Dv=Ft(),Av=o.memo((function(e){return o.createElement(Rh,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function Rv(e){return o.createElement(Rh,{checked:e.checked})}function Nv(e){return o.createElement(Av,{theme:e.theme,checked:e.checked})}var Mv,Fv=Kr((function(e){var t=e.isVisible,n=void 0!==t&&t,r=e.canSelect,i=void 0!==r&&r,a=e.anySelected,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,p=e.selectionMode,h=e.isHeader,m=void 0!==h&&h,f=e.className,g=(e.checkClassName,e.styles),v=e.theme,y=e.compact,b=e.onRenderDetailsCheckbox,C=e.useFastIcons,S=void 0===C||C,x=d(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),_=S?Nv:Rv,E=b?Br(b,_):_,k=Dv(g,{theme:v,canSelect:i,selected:c,anySelected:s,className:f,isHeader:m,isVisible:n,compact:y}),w={checked:c,theme:v},I=tr("div",x,["aria-label","aria-labelledby","aria-describedby"]),P=p===Or.single?"radio":"checkbox";return i?o.createElement("div",u({},x,{role:P,className:Zt(k.root,k.check),"aria-checked":c,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),E(w)):o.createElement("div",u({},I,{className:Zt(k.root,k.check)}))}),(function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=Mi(ov,t),u=r?42:s?ev.compactRowHeight:ev.rowHeight,d=l||o||i;return{root:[c.root,n],check:[!a&&c.isDisabled,r&&c.isHeader,Ei(t),t.fonts.small,Ah.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:d?1:0,height:u,width:48,padding:0,margin:0}],isDisabled:[]}}),void 0,{scope:"DetailsRowCheck"},!0),Bv=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var r=this;if(!this._initialized){this._events=new ge(this);var o=ve();o&&(this._events.on(o.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(o,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,d,p,h,m,f=n.key,g=void 0===f?""+ ++this._lastId:f,v=[];if(n&&e){var y=n.eventMap,b=n.context,C=n.updateDropState,S={root:e,options:n,key:g};if(p=this._isDraggable(S),h=this._isDroppable(S),(p||h)&&y)for(var x=0,_=y;x<_.length;x++){var E=_[x],k={callback:E.callback.bind(null,b),eventName:E.eventName};v.push(k),this._events.on(e,k.eventName,k.callback)}h&&(a=function(e){e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]--,0===r._dragEnterCounts[g]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]++,1===r._dragEnterCounts[g]&&C(!0,e))},l=function(e){r._dragEnterCounts[g]=0,C(!1,e)},c=function(e){r._dragEnterCounts[g]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},u=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),p&&(d=this._onMouseDown.bind(this,S),l=this._onDragEnd.bind(this,S),i=function(t){var o=n;o&&o.onDragStart&&o.onDragStart(o.context.data,o.context.index,r._selection.getSelection(),t),r._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",d),t.on(e,"dragend",l)),m={target:S,dispose:function(){if(r._activeTargets[g]===m&&delete r._activeTargets[g],e){for(var n=0,o=v;n<o.length;n++){var f=o[n];r._events.off(e,f.eventName,f.callback)}h&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",l))}}},this._activeTargets[g]=m}return{key:g,dispose:function(){m&&m.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var r=n[t],o=this._activeTargets[r];o.target.root&&(this._events.off(o.target.root,"mousemove"),this._events.off(o.target.root,"mouseleave"))}this._dragData.dropTarget&&(ge.raise(this._dragData.dropTarget.root,"dragleave"),ge.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=ve();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,r=void 0===n?1:n;if(this._dragData&&1!==r)this._onMouseUp(t);else{var o=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(o,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(ge.raise(this._dragData.dropTarget.root,"dragleave"),ge.raise(o,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(ge.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,r=Object.keys(this._activeTargets);n<r.length;n++){var o=r[n],i=this._activeTargets[o];i.target.root&&(this._events.on(i.target.root,"mousemove",this._onMouseMove.bind(this,i.target)),this._events.on(i.target.root,"mouseleave",this._onMouseLeave.bind(this,i.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!(!t.canDrag||!t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,n))},e}(),Ov=Ft(),Lv=function(e){return function(t){return t?t.column.isIconOnly?o.createElement("span",{className:e.accessibleLabel},t.column.name):o.createElement(o.Fragment,null,t.column.name):null}},Hv=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,n=d(e,["columnProps"]),r=(null===t||void 0===t?void 0:t.useFastIcons)?Fl:Ll;return o.createElement(r,u({},n))}},n._onRenderColumnHeaderTooltip=function(e){return o.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,r=t.onColumnClick,o=t.column;o.columnActionsMode!==Bg.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),r&&r(e,o))},n._onDragStart=function(e,t,r,o){var i=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(i.borderWhileDragging),n._async.setTimeout((function(){n._root.current&&n._root.current.classList.add(i.noBorderWhileDragging)}),20))},n._onDragEnd=function(e,t){var r=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(r.borderWhileDragging),n._root.current.classList.remove(r.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,r=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),r&&(r(o,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&0===e.button&&e.stopPropagation()},or(n),n._async=new de(n),n._events=new ge(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.columnIndex,r=e.parentId,i=e.isDraggable,a=e.styles,s=e.theme,l=e.cellStyleProps,c=void 0===l?$g:l,d=e.useFastIcons,p=void 0===d||d,h=this.props.onRenderColumnHeaderTooltip,m=void 0===h?this._onRenderColumnHeaderTooltip:h;this._classNames=Ov(a,{theme:s,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Bg.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:c,transitionDurationDrag:200,transitionDurationDrop:1500});var f=this._classNames,g=p?Fl:Ll,v=t.onRenderFilterIcon?Br(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),y=t.onRenderHeader?Br(t.onRenderHeader,Lv(this._classNames)):Lv(this._classNames),b=t.columnActionsMode!==Bg.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),C={"aria-label":t.isIconOnly?t.name:void 0,"aria-labelledby":t.isIconOnly?void 0:r+"-"+t.key+"-name","aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleLabel()?r+"-"+t.key+"-tooltip":void 0};return o.createElement(o.Fragment,null,o.createElement("div",u({key:t.key,ref:this._root,role:"columnheader"},!b&&C,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","aria-colindex":n,"data-is-focusable":b||t.columnActionsMode===Bg.disabled?void 0:"true",className:f.root,"data-is-draggable":i,draggable:i,style:{width:t.calculatedWidth+c.cellLeftPadding+c.cellRightPadding+(t.isPadded?c.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key}),i&&o.createElement(g,{iconName:"GripperBarVertical",className:f.gripperBarVerticalStyle}),m({hostClassName:f.cellTooltip,id:r+"-"+t.key+"-tooltip",setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Bg.disabled?t.ariaLabel:"",children:o.createElement("span",u({id:r+"-"+t.key,className:f.cellTitle,"data-is-focusable":b&&t.columnActionsMode!==Bg.disabled?"true":void 0,role:b?"button":void 0},b&&C,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Bg.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===Bg.hasDropdown?!!t.isMenuOpen:void 0}),o.createElement("span",{id:r+"-"+t.key+"-name",className:f.cellName},(t.iconName||t.iconClassName)&&o.createElement(g,{className:f.iconClassName,iconName:t.iconName}),y(this.props)),t.isFiltered&&o.createElement(g,{className:f.nearIcon,iconName:"Filter"}),t.isSorted&&o.createElement(g,{className:f.sortIcon,iconName:t.isSortedDescending?"SortDown":"SortUp"}),t.isGrouped&&o.createElement(g,{className:f.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Bg.hasDropdown&&!t.isIconOnly&&v({"aria-hidden":!0,columnProps:this.props,className:f.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleLabel())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleLabel=function(){var e=this.props.column;return!!(e.ariaLabel||e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel)},t.prototype._renderAccessibleLabel=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleLabel()&&!this.props.onRenderColumnHeaderTooltip?o.createElement("label",{key:t.key+"_label",id:n+"-"+t.key+"-tooltip",className:r.accessibleLabel},t.ariaLabel,t.isFiltered&&t.filterAriaLabel||null,t.isSorted&&(t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(o.Component),Vv={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},zv=Kr(Hv,(function(e){var t,n=e.theme,r=e.headerClassName,o=e.iconClassName,i=e.isActionable,a=e.isEmpty,s=e.isIconVisible,l=e.isPadded,c=e.isIconOnly,d=e.cellStyleProps,p=void 0===d?$g:d,h=e.transitionDurationDrag,m=e.transitionDurationDrop,f=n.semanticColors,g=n.palette,v=n.fonts,y=Mi(Vv,n),b={iconForegroundColor:f.bodySubtext,headerForegroundColor:f.bodyText,headerBackgroundColor:f.bodyBackground,dropdownChevronForegroundColor:g.neutralSecondary,resizerColor:g.neutralTertiaryAlt},C={color:b.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid "+g.themePrimary},x={outlineColor:"transparent"};return{root:[rv(e),v.small,i&&[y.isActionable,{selectors:{":hover":{color:f.bodyText,background:f.listHeaderBackgroundHovered},":active":{background:f.listHeaderBackgroundPressed}}}],a&&[y.isEmpty,{textOverflow:"clip"}],s&&y.isIconVisible,l&&{paddingRight:p.cellExtraRightPadding+p.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},r],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:g.neutralTertiary,left:1},nearIcon:[y.nearIcon,C],sortIcon:[C,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:b.iconForegroundColor,opacity:1},o],filterChevron:[y.filterChevron,{color:b.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:v.small.fontSize}],cellTitle:[y.cellTitle,Ei(n),u({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 "+p.cellRightPadding+"px 0 "+p.cellLeftPadding+"px"},c?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:ui.semibold,fontSize:v.medium.fontSize},c&&{selectors:(t={},t["."+y.nearIcon]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:Ii,borderWhileDragging:S,noBorderWhileDragging:[x,{transition:"outline "+h+"ms ease"}],borderAfterDropping:S,noBorderAfterDropping:[x,{transition:"outline  "+m+"ms ease"}]}}),void 0,{scope:"DetailsColumn"});!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(Mv||(Mv={}));var Uv=Ft(),Wv=[],Gv=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._rootComponent=o.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var r=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var o=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,i=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=o,r.onColumnDrop){var a={draggedIndex:n._draggedColumnIndex,targetIndex:o};r.onColumnDrop(a)}else r.handleColumnReorder&&r.handleColumnReorder(n._draggedColumnIndex,o)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._updateDragInfo=function(e,t){var r=n._getColumnReorderProps(),o=e.itemIndex;if(o>=0)n._draggedColumnIndex=n._isCheckboxColumnHidden()?o-1:o-2,n._getDropHintPositions(),r.onColumnDragStart&&r.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},r.onColumnDragEnd)){var i=n._isEventOnHeader(t);r.onColumnDragEnd({dropLocation:i},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,r=void 0===t?Wv:t,o=n._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,l=o.frozenColumnCountFromEnd||0,c=s;c<r.length-l+1;c++)if(n._rootElement.current){var u=n._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;n._dropHintDetails[c-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,c===r.length-l&&(n._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=xt(n.props.theme);if(n._rootElement.current){var r=e-n._rootElement.current.getBoundingClientRect().left,o=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&jv(t,r,n._dropHintDetails[o].startX,n._dropHintDetails[o].endX))return;var i=n.props.columns,a=void 0===i?Wv:i,s=n._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,u=l,d=a.length-c,p=-1;if(qv(t,r,n._dropHintDetails[u].endX)?p=u:Kv(t,r,n._dropHintDetails[d].startX)?p=d:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[o+1]&&jv(t,r,n._dropHintDetails[o+1].startX,n._dropHintDetails[o+1].endX)?p=o+1:n._dropHintDetails[o-1]&&jv(t,r,n._dropHintDetails[o-1].startX,n._dropHintDetails[o-1].endX)&&(p=o-1)),-1===p)for(var h=l,m=d;h<m;){var f=Math.ceil((m+h)/2);if(jv(t,r,n._dropHintDetails[f].startX,n._dropHintDetails[f].endX)){p=f;break}qv(t,r,n._dropHintDetails[f].originX)?m=f:Kv(t,r,n._dropHintDetails[f].originX)&&(h=f)}p===n._draggedColumnIndex||p===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():o!==p&&p>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[p].dropHintElementRef,"inline-block"),n._currentDropHintIndex=p)}},n._renderColumnSizer=function(e){var t,r=e.columnIndex,i=n.props.columns,a=void 0===i?Wv:i,s=a[r],l=n.state.columnResizeDetails,c=n._classNames;return s.isResizable?o.createElement("div",{key:s.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:Yv,"data-sizer-index":r,onBlur:n._onSizerBlur,className:Zt(c.cellSizer,r<a.length-1?c.cellSizerStart:c.cellSizerEnd,(t={},t[c.cellIsResizing]=l&&l.columnIndex===r,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,r)}):null},n._onRenderColumnHeaderTooltip=function(e){return o.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),r=Number(t),o=n.props.columns,i=void 0===o?Wv:o;null!==t&&0===e.button&&(n.setState({columnResizeDetails:{columnIndex:r,columnMinWidth:i[r].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing;r&&!o&&e.clientX!==r.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing,i=n.props,a=i.columns,s=void 0===a?Wv:a,l=i.onColumnResized,c=e.target.getAttribute("data-sizer-index");if(c&&!o){var d=Number(c);if(r){var p=void 0;e.which===Ge?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===et?p=xt(n.props.theme)?1:-1:e.which===nt&&(p=xt(n.props.theme)?-1:1),p&&(e.shiftKey||(p*=10),n.setState({columnResizeDetails:u(u({},r),{columnMinWidth:r.columnMinWidth+p})}),l&&l(s[d],r.columnMinWidth+p,d),e.preventDefault(),e.stopPropagation())}else e.which===Ge&&(n.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:s[d].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,r=n.props,o=r.onColumnIsSizingChanged,i=r.onColumnResized,a=r.columns,s=void 0===a?Wv:a,l=n.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&o&&o(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;xt(n.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else n._onSizerMouseUp(e)},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,r=t.columns,o=void 0===r?Wv:r,i=t.onColumnIsSizingChanged,a=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(o[a.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},or(n),n._events=new ge(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=wn("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new Bv({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return c(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,Hr,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?Wv:t,r=this.props.columns,o=void 0===r?Wv:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?Wv:n,i=t.ariaLabel,a=t.ariaLabelForToggleAllGroupsButton,s=t.ariaLabelForSelectAllCheckbox,l=t.selectAllVisibility,c=t.ariaLabelForSelectionColumn,u=t.indentWidth,d=t.onColumnClick,p=t.onColumnContextMenu,h=t.onRenderColumnHeaderTooltip,m=void 0===h?this._onRenderColumnHeaderTooltip:h,f=t.styles,g=t.selectionMode,v=t.theme,y=t.onRenderDetailsCheckbox,b=t.groupNestingDepth,C=t.useFastIcons,S=t.checkboxVisibility,x=t.className,_=this.state,E=_.isAllSelected,k=_.columnResizeDetails,w=_.isSizing,I=_.isAllCollapsed,P=l!==Mv.none,T=l===Mv.hidden,D=S===Vg.always,A=this._getColumnReorderProps(),R=A&&A.frozenColumnCountFromStart?A.frozenColumnCountFromStart:0,N=A&&A.frozenColumnCountFromEnd?A.frozenColumnCountFromEnd:0;this._classNames=Uv(f,{theme:v,isAllSelected:E,isSelectAllHidden:l===Mv.hidden,isResizingColumn:!!k&&w,isSizing:w,isAllCollapsed:I,isCheckboxHidden:T,className:x});var M=this._classNames,F=C?Fl:Ll,B=xt(v);return o.createElement(zc,{role:"row","aria-label":i,className:M.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:wc.horizontal},P?[o.createElement("div",{key:"__checkbox",className:M.cellIsCheck,"aria-labelledby":this._id+"-checkTooltip",onClick:T?void 0:this._onSelectAllClicked,"aria-colindex":1,role:"columnheader"},m({hostClassName:M.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:s,children:o.createElement(Fv,{id:this._id+"-check","aria-label":g===Or.multiple?s:c,"data-is-focusable":!T||void 0,isHeader:!0,selected:E,anySelected:!1,canSelect:!T,className:M.check,onRenderDetailsCheckbox:y,useFastIcons:C,isVisible:D})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:s&&!T?o.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:M.accessibleLabel,"aria-hidden":!0},s):c&&T?o.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:M.accessibleLabel,"aria-hidden":!0},c):null]:null,b>0&&this.props.collapseAllVisibility===Fg.visible?o.createElement("div",{className:M.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":a,"aria-expanded":!I,role:"columnheader"},o.createElement(F,{className:M.collapseButton,iconName:B?"ChevronLeftMed":"ChevronRightMed"})):null,o.createElement(Xg,{indentWidth:u,role:"gridcell",count:b-1}),r.map((function(t,n){var i=!!A&&(n>=R&&n<r.length-N);return[A&&(i||n===r.length-N)&&e._renderDropHint(n),o.createElement(zv,{column:t,styles:t.styles,key:t.key,columnIndex:(P?2:1)+n,parentId:e._id,isDraggable:i,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:d,onColumnContextMenu:p,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]})),A&&0===N&&this._renderDropHint(r.length),w&&o.createElement(cl,null,o.createElement("div",{className:M.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&u(u({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===Or.none||n===Vg.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return Lg.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?Wv:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?Fl:Ll;return o.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_"+e},o.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},o.createElement(n,{iconName:"CircleShapeSolid"})),o.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns;r&&r((void 0===o?Wv:o)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:Mv.visible,collapseAllVisibility:Fg.visible,useFastIcons:!0},t}(o.Component);function jv(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function qv(e,t,n){return e?t>=n:t<=n}function Kv(e,t,n){return e?t<=n:t>=n}function Yv(e){e.stopPropagation()}var Xv=Kr(Gv,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.isAllSelected,l=e.isResizingColumn,c=e.isSizing,d=e.isAllCollapsed,p=e.cellStyleProps,h=void 0===p?$g:p,m=i.semanticColors,f=i.palette,g=i.fonts,v=Mi(nv,i),y={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,resizerColor:f.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},C=rv(e);return{root:[v.root,g.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid "+m.bodyDivider,cursor:"default",userSelect:"none",selectors:(t={},t["&:hover ."+v.check]={opacity:1},t["& ."+v.tooltipHost+" ."+v.checkTooltip]={display:"block"},t)},s&&v.isAllSelected,l&&v.isResizingColumn,a],check:[v.check,{height:42},{selectors:(n={},n[".ms-Fabric--isFocusVisible &:focus"]={opacity:1},n)}],cellWrapperPadded:{paddingRight:h.cellExtraRightPadding+h.cellRightPadding},cellIsCheck:[C,v.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},s&&{opacity:1}],cellIsGroupExpander:[C,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,padding:0,border:"none",width:36,color:f.neutralSecondary,selectors:{":hover":{backgroundColor:f.neutralLighter},":active":{backgroundColor:f.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[v.cellSizer,{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(r={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":b,":hover:after":b},r["&."+v.isResizing+":after"]=[b,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],r)}],cellIsResizing:v.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[v.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},d?[v.isCollapsed,{transform:"rotate(0deg)"}]:{transform:xt(i)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:v.checkTooltip,sizingOverlay:c&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(o={},o[Ci]=u({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},accessibleLabel:Ii,dropHintCircleStyle:[v.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid "+f.themePrimary,background:f.white}],dropHintCaretStyle:[v.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:g.medium.fontSize,color:f.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[v.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:f.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),Qv=function(e){var t=e.columns,n=e.columnStartIndex,r=e.rowClassNames,i=e.cellStyleProps,a=void 0===i?$g:i,s=e.item,l=e.itemIndex,c=e.onRenderItemColumn,u=e.getCellValueKey,d=e.cellsByColumn,p=e.enableUpdateAnimations,h=e.rowHeaderId,m=o.useRef(),f=m.current||(m.current={});return o.createElement("div",{className:r.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e,t){var i="undefined"===typeof e.calculatedWidth?"auto":e.calculatedWidth+a.cellLeftPadding+a.cellRightPadding+(e.isPadded?a.cellExtraRightPadding:0),m=e.onRender,g=void 0===m?c:m,v=e.getValueKey,y=void 0===v?u:v,b=d&&e.key in d?d[e.key]:g?g(s,l,e):function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return null!==n&&void 0!==n||(n=""),"boolean"===typeof n?n.toString():n}(s,e),C=f[e.key],S=p&&y?y(s,l,e):void 0,x=!1;void 0!==S&&void 0!==C&&S!==C&&(x=!0),f[e.key]=S;var _=e.key+(void 0!==S?"-"+S:"");return o.createElement("div",{key:_,id:e.isRowHeader?h:void 0,role:e.isRowHeader?"rowheader":"gridcell","aria-readonly":!0,"aria-colindex":t+n+1,className:Zt(e.className,e.isMultiline&&r.isMultiline,e.isRowHeader&&r.isRowHeader,r.cell,e.isPadded?r.cellPadded:r.cellUnpadded,x&&r.cellAnimation),style:{width:i},"data-automationid":"DetailsRowCell","data-automation-key":e.key},b)})))},Zv=Ft(),Jv=[],$v=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._cellMeasurer=o.createRef(),n._focusZone=o.createRef(),n._onSelectionChanged=function(){var e=ey(n.props);pe(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var r=n.state.isDropping,o=n.props,i=o.dragDropEvents,a=o.item;e?i.onDragEnter&&(n._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),r!==e&&n.setState({isDropping:e})},or(n),n._events=new ge(n),n.state={selectionState:ey(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return c(t,e),t.getDerivedStateFromProps=function(e,t){return u(u({},t),{selectionState:ey(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,Hr,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=ey(e);return this.state.selectionState.isSelected!==n.isSelected||!pe(this.props,e)}return!0},t.prototype.render=function(){var e=this.props,t=e.className,n=e.columns,r=void 0===n?Jv:n,i=e.dragDropEvents,a=e.item,s=e.itemIndex,l=e.id,c=e.flatIndexOffset,d=void 0===c?2:c,p=e.onRenderCheck,h=void 0===p?this._onRenderCheck:p,m=e.onRenderDetailsCheckbox,f=e.onRenderItemColumn,g=e.getCellValueKey,v=e.selectionMode,y=e.rowWidth,b=void 0===y?0:y,C=e.checkboxVisibility,S=e.getRowAriaLabel,x=e.getRowAriaDescribedBy,_=e.checkButtonAriaLabel,E=e.checkboxCellClassName,k=e.rowFieldsAs,w=void 0===k?Qv:k,I=e.selection,P=e.indentWidth,T=e.enableUpdateAnimations,D=e.compact,A=e.theme,R=e.styles,N=e.cellsByColumn,M=e.groupNestingDepth,F=e.useFastIcons,B=void 0===F||F,O=e.cellStyleProps,L=e.group,H=e.focusZoneProps,V=e.disabled,z=void 0!==V&&V,U=this.state,W=U.columnMeasureInfo,G=U.isDropping,j=this.state.selectionState,q=j.isSelected,K=void 0!==q&&q,Y=j.isSelectionModal,X=void 0!==Y&&Y,Q=i?!(!i.canDrag||!i.canDrag(a)):void 0,Z=G?this._droppingClassNames||"is-dropping":"",J=S?S(a):void 0,$=x?x(a):void 0,ee=!!I&&I.canSelectItem(a,s)&&!z,te=v===Or.multiple,ne=v!==Or.none&&C!==Vg.hidden,re=v===Or.none?void 0:K,oe=L?s-L.startIndex+1:void 0,ie=L?L.count:void 0,ae=H?H.direction:wc.horizontal;this._classNames=u(u({},this._classNames),Zv(R,{theme:A,isSelected:K,canSelect:!te,anySelected:X,checkboxCellClassName:E,droppingClassName:Z,className:t,compact:D,enableUpdateAnimations:T,cellStyleProps:O,disabled:z}));var se={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};pe(this._rowClassNames||{},se)||(this._rowClassNames=se);var le=o.createElement(w,{rowClassNames:this._rowClassNames,rowHeaderId:l+"-header",cellsByColumn:N,columns:r,item:a,itemIndex:s,columnStartIndex:(ne?1:0)+(M?1:0),onRenderItemColumn:f,getCellValueKey:g,enableUpdateAnimations:T,cellStyleProps:O}),ce=this.props.role?this.props.role:"row";return o.createElement(zc,u({"data-is-focusable":!0},$n(this.props,Jn),"boolean"===typeof Q?{"data-is-draggable":Q,draggable:Q}:{},H,{direction:ae,elementRef:this._root,componentRef:this._focusZone,role:ce,"aria-label":J,"aria-disabled":z||void 0,"aria-describedby":$,className:this._classNames.root,"data-selection-index":s,"data-selection-touch-invoke":!0,"data-selection-disabled":z||void 0,"data-item-index":s,"aria-rowindex":void 0===oe?s+d:void 0,"aria-level":M&&M+1||void 0,"aria-posinset":oe,"aria-setsize":ie,"data-automationid":"DetailsRow",style:{minWidth:b},"aria-selected":re,allowFocusRoot:!0}),ne&&o.createElement("div",{role:"gridcell","aria-colindex":1,"data-selection-toggle":!0,className:this._classNames.checkCell},h({id:l?l+"-checkbox":void 0,selected:K,selectionMode:v,anySelected:X,"aria-label":_,"aria-labelledby":l?l+"-checkbox "+l+"-header":void 0,canSelect:ee,compact:D,className:this._classNames.check,theme:A,isVisible:C===Vg.always,onRenderDetailsCheckbox:m,useFastIcons:B})),o.createElement(Xg,{indentWidth:P,role:"gridcell",count:M-(this.props.collapseAllVisibility===Fg.hidden?1:0)}),a&&le,W&&o.createElement("span",{role:"presentation",className:Zt(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},o.createElement(w,{rowClassNames:this._rowClassNames,rowHeaderId:l+"-header",columns:[W.column],item:a,itemIndex:s,columnStartIndex:(ne?1:0)+(M?1:0)+r.length,onRenderItemColumn:f,getCellValueKey:g})),o.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":K,"data-selection-toggle":!0}))},t.prototype.measureCell=function(e,t){var n=this.props.columns,r=u({},(void 0===n?Jv:n)[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return o.createElement(Fv,u({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},t}(o.Component);function ey(e){var t,n=e.itemIndex,r=e.selection;return{isSelected:!!(null===r||void 0===r?void 0:r.isIndexSelected(n)),isSelectionModal:!!(null===(t=null===r||void 0===r?void 0:r.isModal)||void 0===t?void 0:t.call(r))}}var ty=Kr($v,(function(e){var t,n,r,o,i,a,s,l,c,d,p,h,m=e.theme,f=e.isSelected,g=e.canSelect,v=e.droppingClassName,y=e.anySelected,b=e.isCheckVisible,C=e.checkboxCellClassName,S=e.compact,x=e.className,_=e.cellStyleProps,E=void 0===_?$g:_,k=e.enableUpdateAnimations,w=e.disabled,I=m.palette,P=m.fonts,T=I.neutralPrimary,D=I.white,A=I.neutralSecondary,R=I.neutralLighter,N=I.neutralLight,M=I.neutralDark,F=I.neutralQuaternaryAlt,B=m.semanticColors,O=B.focusBorder,L=B.linkHovered,H=Mi(Jg,m),V={defaultHeaderText:T,defaultMetaText:A,defaultBackground:D,defaultHoverHeaderText:M,defaultHoverMetaText:T,defaultHoverBackground:R,selectedHeaderText:M,selectedMetaText:T,selectedBackground:N,selectedHoverHeaderText:M,selectedHoverMetaText:T,selectedHoverBackground:F,focusHeaderText:M,focusMetaText:T,focusBackground:N,focusHoverBackground:F},z=[Ei(m,{inset:-1,borderColor:O,outlineColor:D,highContrastStyle:{top:2,right:2,bottom:2,left:2}}),H.isSelected,{color:V.selectedMetaText,background:V.selectedBackground,borderBottom:"1px solid "+D,selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+D}},t["."+H.cell+" > ."+Kc.root]={color:L},t["&:hover"]={background:V.selectedHoverBackground,color:V.selectedHoverMetaText,selectors:(n={},n["."+H.cell+" "+Ci]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},n["."+H.isRowHeader]={color:V.selectedHoverHeaderText,selectors:(r={},r[Ci]={color:"HighlightText"},r)},n[Ci]={background:"Highlight"},n)},t["&:focus"]={background:V.focusBackground,selectors:(o={},o["."+H.cell]={color:V.focusMetaText,selectors:(i={},i[Ci]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},i)},o["."+H.isRowHeader]={color:V.focusHeaderText,selectors:(a={},a[Ci]={color:"HighlightText"},a)},o[Ci]={background:"Highlight"},o)},t[Ci]=u(u({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:V.focusHoverBackground},t)}],U=[H.isContentUnselectable,{userSelect:"none",cursor:"default"}],W={minHeight:tv.compactRowHeight,border:0},G={minHeight:tv.compactRowHeight,paddingTop:tv.compactRowVerticalPadding,paddingBottom:tv.compactRowVerticalPadding,paddingLeft:E.cellLeftPadding+"px"},j=[Ei(m,{inset:-1}),H.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:tv.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:tv.rowVerticalPadding,paddingBottom:tv.rowVerticalPadding,paddingLeft:E.cellLeftPadding+"px",selectors:(s={"& > button":{maxWidth:"100%"}},s["[data-is-focusable='true']"]=Ei(m,{inset:-1,borderColor:A,outlineColor:D}),s)},f&&{selectors:(l={},l[Ci]=u(u({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),l)},S&&G,w&&{opacity:.5}];return{root:[H.root,sa.fadeIn400,v,m.fonts.small,b&&H.isCheckVisible,Ei(m,{borderColor:O,outlineColor:D}),{borderBottom:"1px solid "+R,background:V.defaultBackground,color:V.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:tv.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(c={},c["."+H.listCellFirstChild+" &:before"]={display:"none"},c["&:hover"]={background:V.defaultHoverBackground,color:V.defaultHoverMetaText,selectors:(d={},d["."+H.isRowHeader]={color:V.defaultHoverHeaderText},d["."+H.cell+" > ."+Kc.root]={color:L},d)},c["&:hover ."+H.check]={opacity:1},c[".ms-Fabric--isFocusVisible &:focus ."+H.check]={opacity:1},c[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},c)},f&&z,!g&&U,S&&W,x],cellUnpadded:{paddingRight:E.cellRightPadding+"px"},cellPadded:{paddingRight:E.cellExtraRightPadding+E.cellRightPadding+"px",selectors:(p={},p["&."+H.cellCheck]={paddingRight:0},p)},cell:j,cellAnimation:k&&$o.slideLeftIn40,cellMeasurer:[H.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[j,H.cellCheck,C,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:{position:"absolute",top:-1,left:0,bottom:0,right:0,display:y?"block":"none"},fields:[H.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[H.isRowHeader,{color:V.defaultHeaderText,fontSize:P.medium.fontSize},f&&{color:V.selectedHeaderText,fontWeight:ui.semibold,selectors:(h={},h[Ci]={color:"HighlightText"},h)}],isMultiline:[j,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[H.check]}}),void 0,{scope:"DetailsRow"});function ny(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=o.createRef(),n._registerResizeObserver=function(){var e=ue(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,r=n._root.current,o=we(ke(r)),i=we(r);((i&&i.width)!==t.width||(o&&o.height)!==t.height)&&n._resizeAttempts<3&&i&&o?(n._resizeAttempts++,n.setState({viewport:{width:i.width,height:o.height}},(function(){n._updateViewport(e)}))):(n._resizeAttempts=0,e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate())},n._async=new de(n),n._events=new ge(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return c(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,r=t.disableResizeObserver,o=t.skipViewportMeasures,i=ue(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),o||(!r&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),n?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.disableResizeObserver,o=n.skipViewportMeasures,i=ue(this._root.current);o!==t&&(o?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!r&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return o.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},o.createElement(e,u({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=ue(this._root.current);return e&&e.ResizeObserver},n}(Ou)}var ry=Ft(),oy=100,iy=function(e){var t=e.selection,n=e.ariaLabelForListHeader,r=e.ariaLabelForSelectAllCheckbox,i=e.ariaLabelForSelectionColumn,a=e.className,s=e.checkboxVisibility,l=e.compact,c=e.constrainMode,d=e.dragDropEvents,p=e.groups,m=e.groupProps,f=e.indentWidth,g=e.items,v=e.isPlaceholderData,y=e.isHeaderVisible,b=e.layoutMode,C=e.onItemInvoked,S=e.onItemContextMenu,x=e.onColumnHeaderClick,_=e.onColumnHeaderContextMenu,E=e.selectionMode,k=void 0===E?t.mode:E,w=e.selectionPreservedOnEmptyClick,I=e.selectionZoneProps,P=e.ariaLabel,T=e.ariaLabelForGrid,D=e.rowElementEventMap,A=e.shouldApplyApplicationRole,R=void 0!==A&&A,N=e.getKey,M=e.listProps,F=e.usePageCache,B=e.onShouldVirtualize,O=e.viewport,L=e.minimumPixelsForDrag,H=e.getGroupHeight,V=e.styles,z=e.theme,U=e.cellStyleProps,W=void 0===U?$g:U,G=e.onRenderCheckbox,j=e.useFastIcons,q=e.dragDropHelper,K=e.adjustedColumns,Y=e.isCollapsed,X=e.isSizing,Q=e.isSomeGroupExpanded,Z=e.version,J=e.rootRef,$=e.listRef,ee=e.focusZoneRef,te=e.columnReorderOptions,ne=e.groupedListRef,re=e.headerRef,oe=e.onGroupExpandStateChanged,ie=e.onColumnIsSizingChanged,ae=e.onRowDidMount,se=e.onRowWillUnmount,le=e.disableSelectionZone,ce=e.onColumnResized,ue=e.onColumnAutoResized,de=e.onToggleCollapse,pe=e.onActiveRowChanged,he=e.onBlur,me=e.rowElementEventMap,fe=e.onRenderMissingItem,ge=e.onRenderItemColumn,ve=e.getCellValueKey,ye=e.getRowAriaLabel,be=e.getRowAriaDescribedBy,Ce=e.checkButtonAriaLabel,Se=e.checkButtonGroupAriaLabel,xe=e.checkboxCellClassName,_e=e.useReducedRowRenderer,Ee=e.enableUpdateAnimations,ke=e.enterModalSelectionOnTouch,we=e.onRenderDefaultRow,Ie=e.selectionZoneRef,Pe=e.focusZoneProps,Te="grid",De=e.role?e.role:Te,Ae=wn("row"),Re=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(p),Ne=function(e){return o.useMemo((function(){var t={};if(e)for(var n=1,r=1,o=0,i=e;o<i.length;o++){var a=i[o];t[a.key]={numOfGroupHeadersBeforeItem:r,totalRowCount:n},r++,n+=a.count+1}return t}),[e])}(p),Me=o.useMemo((function(){return u({renderedWindowsAhead:X?0:2,renderedWindowsBehind:X?0:2,getKey:N,version:Z},M)}),[X,N,Z,M]),Fe=Mv.none;if(k===Or.single&&(Fe=Mv.hidden),k===Or.multiple){var Be=m&&m.headerProps&&m.headerProps.isCollapsedGroupSelectVisible;void 0===Be&&(Be=!0),Fe=Be||!p||Q?Mv.visible:Mv.hidden}s===Vg.hidden&&(Fe=Mv.none);var Oe=o.useCallback((function(e){return o.createElement(Xv,u({},e))}),[]),Le=o.useCallback((function(){return null}),[]),He=e.onRenderDetailsHeader,Ve=o.useMemo((function(){return He?Br(He,Oe):Oe}),[He,Oe]),ze=e.onRenderDetailsFooter,Ue=o.useMemo((function(){return ze?Br(ze,Le):Le}),[ze,Le]),We=o.useMemo((function(){return{columns:K,groupNestingDepth:Re,selection:t,selectionMode:k,viewport:O,checkboxVisibility:s,indentWidth:f,cellStyleProps:W}}),[K,Re,t,k,O,s,f,W]),Ge=te&&te.onDragEnd,je=o.useCallback((function(e,t){var n=e.dropLocation,r=Lg.outside;if(Ge){if(n&&n!==Lg.header)r=n;else if(J.current){var o=J.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=Lg.surface)}Ge(r)}}),[Ge,J]),qe=o.useMemo((function(){if(te)return u(u({},te),{onColumnDragEnd:je})}),[te,je]),Ke=(y?1:0)+function(e){var t=0;if(e)for(var n=h(e),r=void 0;n&&n.length>0;)++t,(r=n.pop())&&r.children&&n.push.apply(n,r.children);return t}(p)+(g?g.length:0),Ye=(Fe!==Mv.none?1:0)+(K?K.length:0)+(p?1:0),Xe=o.useMemo((function(){return ry(V,{theme:z,compact:l,isFixed:b===Hg.fixedColumns,isHorizontalConstrained:c===Og.horizontalConstrained,className:a})}),[V,z,l,b,c,a]),Qe=m&&m.onRenderFooter,Ze=o.useMemo((function(){return Qe?function(e,n){return Qe(u(u({},e),{columns:K,groupNestingDepth:Re,indentWidth:f,selection:t,selectionMode:k,viewport:O,checkboxVisibility:s,cellStyleProps:W}),n)}:void 0}),[Qe,K,Re,f,t,k,O,s,W]),Je=m&&m.onRenderHeader,$e=o.useMemo((function(){return Je?function(e,n){var r,o,i=e.groupIndex,a=void 0!==i?null===(o=null===(r=e.groups)||void 0===r?void 0:r[i])||void 0===o?void 0:o.key:void 0,l=void 0!==a&&Ne[a]?Ne[a].totalRowCount:0;return Je(u(u({},e),{columns:K,groupNestingDepth:Re,indentWidth:f,selection:t,selectionMode:s!==Vg.hidden?k:Or.none,viewport:O,checkboxVisibility:s,cellStyleProps:W,ariaColSpan:K.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?l+(y?1:0):void 0}),n)}:function(e,t){var n,r,o=e.groupIndex,i=void 0!==o?null===(r=null===(n=e.groups)||void 0===n?void 0:n[o])||void 0===r?void 0:r.key:void 0,a=void 0!==i&&Ne[i]?Ne[i].totalRowCount:0;return t(u(u({},e),{ariaColSpan:K.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?a+(y?1:0):void 0}))}}),[Je,K,Re,f,y,t,k,O,s,W,Ne]),et=o.useMemo((function(){return u(u({},m),{role:De===Te?"rowgroup":"presentation",onRenderFooter:Ze,onRenderHeader:$e,headerProps:u({selectAllButtonProps:{"aria-label":Se}},null===m||void 0===m?void 0:m.headerProps)})}),[m,Ze,$e,Se,De]),ot=gs((function(){return Gt((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),it=m&&m.collapseAllVisibility,at=o.useMemo((function(){return ot(K)}),[K,ot]),st=o.useCallback((function(n,r,o,i){var a=e.onRenderRow?Br(e.onRenderRow,we):we,c=i?i.key:void 0,u=c&&Ne[c]?Ne[c].numOfGroupHeadersBeforeItem:0,p={item:r,itemIndex:o,flatIndexOffset:(y?2:1)+u,compact:l,columns:K,groupNestingDepth:n,id:Ae+"-"+o,selectionMode:k,selection:t,onDidMount:ae,onWillUnmount:se,onRenderItemColumn:ge,getCellValueKey:ve,eventsToRegister:me,dragDropEvents:d,dragDropHelper:q,viewport:O,checkboxVisibility:s,collapseAllVisibility:it,getRowAriaLabel:ye,getRowAriaDescribedBy:be,checkButtonAriaLabel:Ce,checkboxCellClassName:xe,useReducedRowRenderer:_e,indentWidth:f,cellStyleProps:W,onRenderDetailsCheckbox:G,enableUpdateAnimations:Ee,rowWidth:at,useFastIcons:j,role:De===Te?void 0:"presentation"};return r?a(p):fe?fe(o,p):null}),[l,K,k,t,Ae,ae,se,ge,ve,me,d,q,O,s,it,ye,be,y,Ce,xe,_e,f,W,G,Ee,j,we,fe,e.onRenderRow,at,De,Ne]),lt=o.useCallback((function(e){return function(t,n){return st(e,t,n)}}),[st]),ct=o.useCallback((function(e){return e.which===_t(nt,z)}),[z]),ut=u(u({},Pe),{componentRef:ee,className:Xe.focusZone,direction:Pe?Pe.direction:wc.vertical,shouldEnterInnerZone:Pe&&Pe.shouldEnterInnerZone?Pe.shouldEnterInnerZone:ct,onActiveElementChanged:Pe&&Pe.onActiveElementChanged?Pe.onActiveElementChanged:pe,shouldRaiseClicksOnEnter:!1,onBlur:Pe&&Pe.onBlur?Pe.onBlur:he}),dt=p?o.createElement(Tv,{focusZoneProps:ut,componentRef:ne,groups:p,groupProps:et,items:g,onRenderCell:st,role:"presentation",selection:t,selectionMode:s!==Vg.hidden?k:Or.none,dragDropEvents:d,dragDropHelper:q,eventsToRegister:D,listProps:Me,onGroupExpandStateChanged:oe,usePageCache:F,onShouldVirtualize:B,getGroupHeight:H,compact:l}):o.createElement(zc,u({},ut),o.createElement(yg,u({ref:$,role:"presentation",items:g,onRenderCell:lt(0),usePageCache:F,onShouldVirtualize:B},Me))),pt=o.useCallback((function(e){e.which===rt&&ee.current&&ee.current.focus()&&(0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,ee]),ht=o.useCallback((function(e){e.which!==tt||e.altKey||re.current&&re.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[re]);return o.createElement("div",u({ref:J,className:Xe.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":P},R?{role:"application"}:{}),o.createElement(vr,null),o.createElement("div",{role:De,"aria-label":T,"aria-rowcount":v?-1:Ke,"aria-colcount":Ye,"aria-readonly":"true","aria-busy":v},o.createElement("div",{onKeyDown:pt,role:"presentation",className:Xe.headerWrapper},y&&Ve({componentRef:re,selectionMode:k,layoutMode:b,selection:t,columns:K,onColumnClick:x,onColumnContextMenu:_,onColumnResized:ce,onColumnIsSizingChanged:ie,onColumnAutoResized:ue,groupNestingDepth:Re,isAllCollapsed:Y,onToggleCollapseAll:de,ariaLabel:n,ariaLabelForSelectAllCheckbox:r,ariaLabelForSelectionColumn:i,selectAllVisibility:Fe,collapseAllVisibility:m&&m.collapseAllVisibility,viewport:O,columnReorderProps:qe,minimumPixelsForDrag:L,cellStyleProps:W,checkboxVisibility:s,indentWidth:f,onRenderDetailsCheckbox:G,rowWidth:ot(K),useFastIcons:j},Ve)),o.createElement("div",{onKeyDown:ht,role:"presentation",className:Xe.contentWrapper},le?dt:o.createElement(qg,u({ref:Ie,selection:t,selectionPreservedOnEmptyClick:w,selectionMode:k,onItemInvoked:C,onItemContextMenu:S,enterModalOnTouch:ke},I||{}),dt)),Ue(u({},We))))},ay=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._header=o.createRef(),n._groupedList=o.createRef(),n._list=o.createRef(),n._focusZone=o.createRef(),n._selectionZone=o.createRef(),n._onRenderRow=function(e,t){return o.createElement(ty,u({},e))},n._getDerivedStateFromProps=function(e,t){var r=n.props,o=r.checkboxVisibility,i=r.items,a=r.setKey,s=r.selectionMode,l=void 0===s?n._selection.mode:s,c=r.columns,d=r.viewport,p=r.compact,h=r.dragDropEvents,m=(n.props.groupProps||{}).isAllGroupsCollapsed,f=void 0===m?void 0:m,g=e.viewport&&e.viewport.width||0,v=d&&d.width||0,y=e.setKey!==a||void 0===e.setKey,b=!1;e.layoutMode!==n.props.layoutMode&&(b=!0);var C=t;return y&&(n._initialFocusedIndex=e.initialFocusedIndex,C=u(u({},C),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===i||n._selection.setItems(e.items,y),e.checkboxVisibility===o&&e.columns===c&&g===v&&e.compact===p||(b=!0),C=u(u({},C),n._adjustColumns(e,C,!0)),e.selectionMode!==l&&(b=!0),void 0===f&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(C=u(u({},C),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==h&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new Bv({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,b=!0),b&&(C=u(u({},C),{version:{}})),C},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,r=t.item,o=t.itemIndex,i=n._getItemKey(r,o);n._activeRows[i]=e,n._setFocusToRowIfPending(e);var a=n.props.onRowDidMount;a&&a(r,o)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,r=e.props,o=r.item,i=r.itemIndex,a=n._getItemKey(o,i);delete n._activeRows[a],t&&t(o,i)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,r){var o=Math.max(e.minWidth||oy,t);n.props.onColumnResize&&n.props.onColumnResize(e,o,r),n._rememberCalculatedWidth(e,o),n.setState(u(u({},n._adjustColumns(n.props,n.state,!0,r)),{version:{}}))},n._onColumnAutoResized=function(e,t){var r=0,o=0,i=Object.keys(n._activeRows).length;for(var a in n._activeRows){if(n._activeRows.hasOwnProperty(a))n._activeRows[a].measureCell(t,(function(a){r=Math.max(r,a),++o===i&&n._onColumnResized(e,r,t)}))}},n._onActiveRowChanged=function(e,t){var r=n.props,o=r.items,i=r.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(o[a],a,t),n.setState({focusedItemIndex:a}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},or(n),n._async=new de(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},n._selection=t.selection||new Vr({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new Bv({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return c(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var i=this._getItemKey(o,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var n=this._getItemKey(i,this._initialFocusedIndex);(r=this._activeRows[n])&&this._setFocusToRowIfPending(r)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!wt(this._root.current,document.activeElement,!1)){var r,o=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[o];n=this._getItemKey(i,this.state.focusedItemIndex);(r=this._activeRows[n])?this._setFocusToRow(r):this._initialFocusedIndex=o}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return o.createElement(iy,u({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,n,r){var o=this._getAdjustedColumns(e,t,n,r),i=this.props.viewport,a=i&&i.width?i.width:0;return u(u({},t),{adjustedColumns:o,lastWidth:a})},t.prototype._getAdjustedColumns=function(e,t,n,r){var o,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,p=this.props?this.props.columns:[],h=t?t.lastWidth:-1,m=t?t.lastSelectionMode:void 0;return n||h!==u||m!==l||p&&d!==p?(d=d||function(e,t,n,r,o,i,a){var s=[];if(e&&e.length){var l=e[0];for(var c in l)l.hasOwnProperty(c)&&s.push({key:c,name:c,fieldName:c,minWidth:oy,maxWidth:300,isCollapsable:!!s.length,isCollapsible:!!s.length,isMultiline:void 0!==a&&a,isSorted:r===c,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:Bg.clickable,isResizable:t,onColumnClick:n,isGrouped:i===c})}return s}(a,!0),s===Hg.fixedColumns?(o=this._getFixedColumns(d,u,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(o=this._getJustifiedColumns(d,u,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),o):d||[]},t.prototype._getFixedColumns=function(e,t,n){var r=this,o=this.props,i=o.selectionMode,a=void 0===i?this._selection.mode:i,s=o.checkboxVisibility,l=o.flexMargin,c=o.skipViewportMeasures,d=t-(l||0),p=0;e.forEach((function(e){c||!e.flexGrow?d-=e.maxWidth||e.minWidth||oy:(d-=e.minWidth||oy,p+=e.flexGrow),d-=sy(e,n,!0)}));var h=a!==Or.none&&s!==Vg.hidden?48:0,m=36*this._getGroupNestingDepth(),f=(d-=h+m)/p;return c||e.forEach((function(e){var t=u(u({},e),r._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var n=t.flexGrow*f+t.minWidth,o=n-t.maxWidth;o>0&&(d+=o,p-=o/(n-t.minWidth)*t.flexGrow)}})),f=d>0?d/p:0,e.map((function(e){var t=u(u({},e),r._columnOverrides[e.key]);return!c&&t.flexGrow&&d<=0||t.calculatedWidth||(!c&&t.flexGrow?(t.calculatedWidth=t.minWidth+t.flexGrow*f,t.calculatedWidth=Math.min(t.calculatedWidth,t.maxWidth||Number.MAX_VALUE)):t.calculatedWidth=t.maxWidth||t.minWidth||oy),t}))},t.prototype._getJustifiedColumns=function(e,t,n){var r=this,o=n.selectionMode,i=void 0===o?this._selection.mode:o,a=n.checkboxVisibility,s=i!==Or.none&&a!==Vg.hidden?48:0,l=36*this._getGroupNestingDepth(),c=0,d=0,p=t-(s+l),h=e.map((function(e,t){var o=u(u({},e),{calculatedWidth:e.minWidth||oy}),i=u(u({},o),r._columnOverrides[e.key]);return o.isCollapsible||o.isCollapsable||(d+=sy(o,n)),c+=sy(i,n),i}));if(d>p)return h;for(var m=h.length-1;m>=0&&c>p;){var f=(b=h[m]).minWidth||oy,g=c-p;if(b.calculatedWidth-f>=g||!b.isCollapsible&&!b.isCollapsable){var v=b.calculatedWidth;b.calculatedWidth=Math.max(b.calculatedWidth-g,f),c-=v-b.calculatedWidth}else c-=sy(b,n),h.splice(m,1);m--}for(var y=0;y<h.length&&c<p;y++){var b=h[y],C=y===h.length-1,S=this._columnOverrides[b.key];if(!S||!S.calculatedWidth||C){var x=p-c,_=void 0;if(C)_=x;else{var E=b.maxWidth;f=b.minWidth||E||oy;_=E?Math.min(x,E-f):x}b.calculatedWidth=b.calculatedWidth+_,c+=_}}return h},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},t.defaultProps={layoutMode:Hg.justified,selectionMode:Or.multiple,constrainMode:Og.horizontalConstrained,checkboxVisibility:Vg.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t=p([ny],t)}(o.Component);function sy(e,t,n){var r=t.cellStyleProps,o=void 0===r?$g:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var ly,cy={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},uy=Kr(ay,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=r.semanticColors,c=Mi(cy,r);return{root:[c.root,r.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& ."+c.listCell]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n["."+c.listCell]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(ly||(ly={}));var dy=Qo,py={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},hy=Ft(),my=function(e){function t(t){var n=e.call(this,t)||this;or(n);var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n}return c(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&function(){var e=ve();e&&e.body&&!ye&&(e.body.classList.add(be),e.body.addEventListener("touchmove",_e,{passive:!1,capture:!1})),ye++}()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(ye>0){var e=ve();e&&e.body&&1===ye&&(e.body.classList.remove(be),e.body.removeEventListener("touchmove",_e)),ye--}}()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,i=e.styles,a=$n(this.props,Jn),s=hy(i,{theme:r,className:n,isDark:t});return o.createElement("div",u({},a,{className:s.root}))},t}(o.Component),fy={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},gy=Kr(my,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=Mi(fy,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Ci]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),vy=Gt((function(e,t){return{root:$(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),yy={start:"touchstart",move:"touchmove",stop:"touchend"},by={start:"mousedown",move:"mousemove",stop:"mouseup"},Cy=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=by,n._events=[],n._onMouseDown=function(e){var t=o.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=by,n._onDragStart(e)},n._onMouseUp=function(e){var t=o.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=by,n._onDragStop(e)},n._onTouchStart=function(e){var t=o.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=yy,n._onDragStart(e)},n._onTouchEnd=function(e){var t=o.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=yy,n._onDragStop(e)},n._onDragStart=function(e){if("number"===typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t}),n._events=[Dt(document.body,n._currentEventType.move,n._onDrag,!0),Dt(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return c(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=o.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,i=r.position,a=r.isDragging,s=i.x,l=i.y;return n&&!a&&(s=n.x,l=n.y),o.cloneElement(e,{style:u(u({},t.style),{transform:"translate("+s+"px, "+l+"px)"}),className:vy(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(o.Component),Sy={x:0,y:0},xy={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:""},_y=Ft(),Ey=o.forwardRef((function(e,t){var n=Qr(xy,e),r=n.allowTouchBodyScroll,i=n.className,a=n.children,s=n.containerClassName,l=n.scrollableContentClassName,c=n.elementToFocusOnDismiss,d=n.firstFocusableSelector,p=n.forceFocusInsideTrap,h=n.ignoreExternalFocusing,m=n.isBlocking,f=n.isAlert,g=n.isClickableOutsideFocusTrap,v=n.isDarkOverlay,y=n.onDismiss,b=n.layerProps,C=n.overlay,S=n.isOpen,x=n.titleAriaId,_=n.styles,E=n.subtitleAriaId,k=n.theme,w=n.topOffsetFixed,I=n.responsiveMode,P=n.onLayerDidMount,T=n.isModeless,D=n.dragOptions,A=n.onDismissed,R=n.enableAriaHiddenSiblings,N=o.useRef(null),M=o.useRef(null),F=o.useRef(null),B=Ss(N,t),O=Gu(B),L=Cs("ModalFocusTrapZone"),H=Is(),V=ks(),z=V.setTimeout,U=V.clearTimeout,W=o.useState(S),G=W[0],j=W[1],q=o.useState(S),K=q[0],Y=q[1],X=o.useState(Sy),Q=X[0],Z=X[1],J=o.useState(),$=J[0],ee=J[1],te=ys(!1),ne=te[0],re=te[1],oe=re.toggle,ie=re.setFalse,ae=gs((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:r,scrollableContent:null,lastSetCoordinates:Sy,events:new ge({})}})),se=(D||{}).keepInBounds,le=null!==f&&void 0!==f?f:m&&!T,ce=void 0===b?"":b.className,ue=_y(_,{theme:k,className:i,containerClassName:s,scrollableContentClassName:l,isOpen:S,isVisible:K,hasBeenOpened:ae.hasBeenOpened,modalRectangleTop:$,topOffsetFixed:w,isModeless:T,layerClassName:ce,windowInnerHeight:null===H||void 0===H?void 0:H.innerHeight,isDefaultDragHandle:D&&!D.dragHandleSelector}),de=u(u({eventBubblingEnabled:!1},b),{onLayerDidMount:b&&b.onLayerDidMount?b.onLayerDidMount:P,insertFirst:T,className:ue.layer}),pe=o.useCallback((function(e){e?ae.allowTouchBodyScroll?xe(e,ae.events):Se(e,ae.events):ae.events.off(ae.scrollableContent),ae.scrollableContent=e}),[ae]),he=function(){var e=F.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(w&&ee(t.top),se&&(ae.minPosition={x:-t.left,y:-t.top},ae.maxPosition={x:t.left,y:t.top}))},me=o.useCallback((function(e,t){var n=ae.minPosition,r=ae.maxPosition;return se&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[se,ae]),fe=function(){var e;ae.lastSetCoordinates=Sy,ie(),ae.isInKeyboardMoveMode=!1,j(!1),Z(Sy),null===(e=ae.disposeOnKeyUp)||void 0===e||e.call(ae),null===A||void 0===A||A()},ve=o.useCallback((function(){ie(),ae.isInKeyboardMoveMode=!1}),[ae,ie]),ye=o.useCallback((function(e,t){Z((function(e){return{x:me("x",e.x+t.delta.x),y:me("y",e.y+t.delta.y)}}))}),[me]),be=o.useCallback((function(){M.current&&M.current.focus()}),[]);o.useEffect((function(){U(ae.onModalCloseTimer),S&&(requestAnimationFrame((function(){return z(he,0)})),j(!0),D&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===Xe&&wt(ae.scrollableContent,e.target)&&(oe(),e.preventDefault(),e.stopPropagation())};ae.disposeOnKeyUp||(ae.events.on(H,"keyup",e,!0),ae.disposeOnKeyUp=function(){ae.events.off(H,"keyup",e,!0),ae.disposeOnKeyUp=void 0})}(),ae.hasBeenOpened=!0,Y(!0)),!S&&G&&(ae.onModalCloseTimer=z(fe,1e3*parseFloat(dy)),Y(!1))}),[G,S]),function(e){var t=o.useRef(e);t.current=e,o.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])}((function(){ae.events.dispose()})),function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(n,M),function(e){As({name:"Modal",props:e,deprecations:{onLayerDidMount:"layerProps.onLayerDidMount"}})}(n);var Ce=o.createElement(dl,{id:L,ref:F,componentRef:M,className:ue.main,elementToFocusOnDismiss:c,isClickableOutsideFocusTrap:T||g||!m,ignoreExternalFocusing:h,forceFocusInsideTrap:T?!T:p,firstFocusableSelector:d,focusPreviouslyFocusedInnerElement:!0,onBlur:ae.isInKeyboardMoveMode?function(){var e;ae.lastSetCoordinates=Sy,ae.isInKeyboardMoveMode=!1,null===(e=ae.disposeOnKeyDown)||void 0===e||e.call(ae)}:void 0,enableAriaHiddenSiblings:R},D&&ae.isInKeyboardMoveMode&&o.createElement("div",{className:ue.keyboardMoveIconContainer},D.keyboardMoveIconProps?o.createElement(Ll,u({},D.keyboardMoveIconProps)):o.createElement(Ll,{iconName:"move",className:ue.keyboardMoveIcon})),o.createElement("div",{ref:pe,className:ue.scrollableContent,"data-is-scrollable":!0},D&&ne&&o.createElement(D.menu,{items:[{key:"move",text:D.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===Xe)return e.preventDefault(),void e.stopPropagation();if(ne&&(e.altKey||e.keyCode===Ye)&&ie(),!ae.isInKeyboardMoveMode||e.keyCode!==Ye&&e.keyCode!==Ge||(ae.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),ae.isInKeyboardMoveMode){var t=!0,n=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case Ye:Z(ae.lastSetCoordinates);case Ge:ae.lastSetCoordinates=Sy;break;case tt:Z((function(e){return{x:e.x,y:me("y",e.y-n)}}));break;case rt:Z((function(e){return{x:e.x,y:me("y",e.y+n)}}));break;case et:Z((function(e){return{x:me("x",e.x-n),y:e.y}}));break;case nt:Z((function(e){return{x:me("x",e.x+n),y:e.y}}));break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}};ae.lastSetCoordinates=Q,ie(),ae.isInKeyboardMoveMode=!0,ae.events.on(H,"keydown",e,!0),ae.disposeOnKeyDown=function(){ae.events.off(H,"keydown",e,!0),ae.disposeOnKeyDown=void 0}}},{key:"close",text:D.closeMenuItemText,onClick:fe}],onDismiss:ie,alignTargetEdge:!0,coverTarget:!0,directionalHint:xa,directionalHintFixed:!0,shouldFocusOnMount:!0,target:ae.scrollableContent}),a));return G&&O>=(I||Mu.small)&&o.createElement(cl,u({ref:B},de),o.createElement(Fs,{role:le?"alertdialog":"dialog","aria-modal":!T,ariaLabelledBy:x,ariaDescribedBy:E,onDismiss:y,shouldRestoreFocus:!h},o.createElement("div",{className:ue.root,role:T?void 0:"document"},!T&&o.createElement(gy,u({"aria-hidden":!0,isDarkThemed:v,onClick:m?void 0:y,allowTouchBodyScroll:r},C)),D?o.createElement(Cy,{handleSelector:D.dragHandleSelector||"#"+L,preventDragSelector:"button",onStart:ve,onDragChange:ye,onStop:be,position:Q},Ce):Ce)))||null}));Ey.displayName="Modal";var ky=Kr(Ey,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,u=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,h=e.isDefaultDragHandle,m=e.windowInnerHeight,f=c.palette,g=c.effects,v=c.fonts,y=Mi(py,c);return{root:[y.root,v.medium,{backgroundColor:"transparent",position:d?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+dy},u&&"number"===typeof l&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1,pointerEvents:"auto"},n],main:[y.main,{boxShadow:g.elevation64,borderRadius:g.roundedCorner2,backgroundColor:f.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?bi.Layer:void 0},u&&"number"===typeof l&&s&&{top:l},h&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:m},t)},o],layer:d&&[p,y.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:v.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});ky.displayName="Modal";var wy,Iy=Ft(),Py=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=Iy(n,{theme:r,className:t}),o.createElement("div",{className:this._classNames.actions},o.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return o.Children.map(this.props.children,(function(t){return t?o.createElement("span",{className:e._classNames.action},t):null}))},t}(o.Component),Ty={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Dy=Kr(Py,(function(e){var t=e.className,n=e.theme,r=Mi(Ty,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}}),void 0,{scope:"DialogFooter"}),Ay=Ft(),Ry=o.createElement(Dy,null).type,Ny=function(e){function t(t){var n=e.call(this,t)||this;return or(n),Ne("DialogContent",t,{titleId:"titleProps.id"}),n}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,i=t.closeButtonAriaLabel,a=t.onDismiss,s=t.subTextId,l=t.subText,c=t.titleProps,d=void 0===c?{}:c,p=t.titleId,h=t.title,m=t.type,f=t.styles,g=t.theme,v=t.draggableHeaderClassName,y=Ay(f,{theme:g,className:r,isLargeHeader:m===ly.largeHeader,isClose:m===ly.close,draggableHeaderClassName:v}),b=this._groupChildren();return l&&(e=o.createElement("p",{className:y.subText,id:s},l)),o.createElement("div",{className:y.content},o.createElement("div",{className:y.header},o.createElement("div",u({id:p,role:"heading","aria-level":1},d,{className:Zt(y.title,d.className)}),h),o.createElement("div",{className:y.topButton},this.props.topButtonsProps.map((function(e,t){return o.createElement(Dd,u({key:e.uniqueId||t},e))})),(m===ly.close||n&&m!==ly.largeHeader)&&o.createElement(Dd,{className:y.button,iconProps:{iconName:"Cancel"},ariaLabel:i,onClick:a,title:i}))),o.createElement("div",{className:y.inner},o.createElement("div",{className:y.innerContent},e,b.contents),b.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return o.Children.map(this.props.children,(function(t){"object"===typeof t&&null!==t&&t.type===Ry?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=p([Uu],t)}(o.Component),My={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},Fy=Kr(Ny,(function(e){var t,n,r,o=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,c=e.isMultiline,u=e.draggableHeaderClassName,d=i.palette,p=i.fonts,h=i.effects,m=i.semanticColors,f=Mi(My,i);return{content:[a&&[f.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&f.close,{flexGrow:1,overflowY:"hidden"},o],subText:[f.subText,p.medium,{margin:"0 0 24px 0",color:m.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:ui.regular}],header:[f.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&f.close,u&&[u,{cursor:"move"}]],button:[f.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:m.buttonText,fontSize:di.medium}}}],inner:[f.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: 320px) and (max-width: 479px)"]={padding:"0 16px 16px"},t)}],innerContent:[f.content,{position:"relative",width:"100%"}],title:[f.title,p.xLarge,{color:m.bodyText,margin:"0",minHeight:p.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: 320px) and (max-width: 479px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:m.menuHeader},c&&{fontSize:p.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:m.buttonText},".ms-Dialog-button:hover":{color:m.buttonTextHovered,borderRadius:h.roundedCorner2}},r["@media (min-width: 320px) and (max-width: 479px)"]={padding:"15px 8px 0 0"},r)}]}}),void 0,{scope:"DialogContent"}),By=Ft(),Oy={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},Ly={type:ly.normal,className:"",topButtonsProps:[]},Hy=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,r=e.modalProps,o=e.dialogContentProps,i=e.subText,a=r&&r.subtitleAriaId||t;return a||(a=(o&&o.subText||i)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,r=e.modalProps,o=e.dialogContentProps,i=e.title,a=r&&r.titleAriaId||t;return a||(a=(o&&o.title||i)&&n._defaultTitleTextId),a},n._id=wn("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",Ne("Dialog",t,{isOpen:"hidden",type:"dialogContentProps.type",subText:"dialogContentProps.subText",contentClassName:"dialogContentProps.className",topButtonsProps:"dialogContentProps.topButtonsProps",className:"modalProps.className",isDarkOverlay:"modalProps.isDarkOverlay",isBlocking:"modalProps.isBlocking",containerClassName:"modalProps.containerClassName",onDismissed:"modalProps.onDismissed",onLayerDidMount:"modalProps.layerProps.onLayerDidMount",ariaDescribedById:"modalProps.subtitleAriaId",ariaLabelledById:"modalProps.titleAriaId"}),n}return c(t,e),t.prototype.render=function(){var e,t,n,r,i=this.props,a=i.className,s=i.containerClassName,l=i.contentClassName,c=i.elementToFocusOnDismiss,d=i.firstFocusableSelector,p=i.forceFocusInsideTrap,h=i.styles,m=i.hidden,f=i.ignoreExternalFocusing,g=i.isBlocking,v=i.isClickableOutsideFocusTrap,y=i.isDarkOverlay,b=i.isOpen,C=i.onDismiss,S=i.onDismissed,x=i.onLayerDidMount,_=i.responsiveMode,E=i.subText,k=i.theme,w=i.title,I=i.topButtonsProps,P=i.type,T=i.minWidth,D=i.maxWidth,A=i.modalProps,R=u({},A?A.layerProps:{onLayerDidMount:x});x&&!R.onLayerDidMount&&(R.onLayerDidMount=x),A&&A.dragOptions&&!A.dragOptions.dragHandleSelector?(n="ms-Dialog-draggable-header",r=u(u({},A.dragOptions),{dragHandleSelector:"."+n})):r=A&&A.dragOptions;var N=u(u(u(u({},Oy),{className:a,containerClassName:s,isBlocking:g,isDarkOverlay:y,onDismissed:S}),A),{layerProps:R,dragOptions:r}),M=u(u(u({className:l,subText:E,title:w,topButtonsProps:I,type:P},Ly),this.props.dialogContentProps),{draggableHeaderClassName:n,titleProps:u({id:(null===(e=this.props.dialogContentProps)||void 0===e?void 0:e.titleId)||this._defaultTitleTextId},null===(t=this.props.dialogContentProps)||void 0===t?void 0:t.titleProps)}),F=By(h,{theme:k,className:N.className,containerClassName:N.containerClassName,hidden:m,dialogDefaultMinWidth:T,dialogDefaultMaxWidth:D});return o.createElement(ky,u({elementToFocusOnDismiss:c,firstFocusableSelector:d,forceFocusInsideTrap:p,ignoreExternalFocusing:f,isClickableOutsideFocusTrap:v,onDismissed:N.onDismissed,responsiveMode:_},N,{isDarkOverlay:N.isDarkOverlay,isBlocking:N.isBlocking,isOpen:void 0!==b?b:!m,className:F.root,containerClassName:F.main,onDismiss:C||N.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),o.createElement(Fy,u({subTextId:this._defaultSubTextId,title:M.title,subText:M.subText,showCloseButton:N.isBlocking,topButtonsProps:M.topButtonsProps,type:M.type,onDismiss:C||M.onDismiss,className:M.className},M),this.props.children))},t.defaultProps={hidden:!0},t=p([Uu],t)}(o.Component),Vy={root:"ms-Dialog"},zy=Kr(Hy,(function(e){var t,n=e.className,r=e.containerClassName,o=e.dialogDefaultMinWidth,i=void 0===o?"288px":o,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,c=e.theme;return{root:[Mi(Vy,c).root,c.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: 480px)"]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},r]}}),void 0,{scope:"Dialog"});zy.displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(wy||(wy={}));var Uy,Wy=Ft(),Gy=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){e.which!==Ge&&e.which!==Xe||n._onAction(e)},n._onAction=function(e){var t=n.props,r=t.onClick,o=t.onClickHref,i=t.onClickTarget;r?r(e):!r&&o&&(i?window.open(o,i,"noreferrer noopener nofollow"):window.location.href=o,e.preventDefault(),e.stopPropagation())},or(n),Ne("DocumentCard",t,{accentColor:void 0}),n}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,r=t.onClickHref,i=t.children,a=t.type,s=t.accentColor,l=t.styles,c=t.theme,d=t.className,p=$n(this.props,Jn,["className","onClick","type","role"]),h=!(!n&&!r);this._classNames=Wy(l,{theme:c,className:d,actionable:h,compact:a===wy.compact}),a===wy.compact&&s&&(e={borderBottomColor:s});var m=this.props.role||(h?n?"button":"link":void 0),f=h?0:void 0;return o.createElement("div",u({ref:this._rootElement,tabIndex:f,"data-is-focusable":h,role:m,className:this._classNames.root,onKeyDown:h?this._onKeyDown:void 0,onClick:h?this._onClick:void 0,style:e},p),i)},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:wy.normal},t}(o.Component),jy={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},qy=32,Ky={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},Yy={root:"ms-DocumentCardTitle"},Xy={root:"ms-DocumentCardLocation"},Qy={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},Zy=(Kr(Gy,(function(e){var t,n,r=e.className,o=e.theme,i=e.actionable,a=e.compact,s=o.palette,l=o.fonts,c=o.effects,u=Mi(Qy,o);return{root:[u.root,{WebkitFontSmoothing:"antialiased",backgroundColor:s.white,border:"1px solid "+s.neutralLight,maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={":focus":{outline:"0px solid"}},t[".ms-Fabric--isFocusVisible &:focus"]=wi(s.neutralSecondary,c.roundedCorner2),t["."+Xy.root+" + ."+Yy.root]={paddingTop:"4px"},t)},i&&[u.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:s.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid "+s.neutralTertiaryAlt,pointerEvents:"none"}}}],a&&[u.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(n={},n["."+jy.root]={borderRight:"1px solid "+s.neutralLight,borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n["."+jy.icon]={maxHeight:"32px",maxWidth:"32px"},n["."+Ky.root]={paddingBottom:"12px"},n["."+Yy.root]={paddingBottom:"12px 16px 8px 16px",fontSize:l.mediumPlus.fontSize,lineHeight:"16px"},n)}],r]}}),void 0,{scope:"DocumentCard"}),Ft()),Jy=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,r=t.views,i=t.styles,a=t.theme,s=t.className;return this._classNames=Zy(i,{theme:a,className:s}),o.createElement("div",{className:this._classNames.root},n&&n.map((function(t,n){return o.createElement("div",{className:e._classNames.action,key:n},o.createElement(Dd,u({},t)))})),r>0&&o.createElement("div",{className:this._classNames.views},o.createElement(Ll,{iconName:"View",className:this._classNames.viewsIcon}),r))},t}(o.Component),$y={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},eb=(Kr(Jy,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts,i=Mi($y,n);return{root:[i.root,{height:"34px",padding:"4px 12px",position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:r.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:o.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:o.medium.fontSize,verticalAlign:"top"}}}),void 0,{scope:"DocumentCardActions"}),Ft()),tb=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,r=e.styles,i=e.theme,a=e.className;return this._classNames=eb(r,{theme:i,className:a,multiplePeople:n.length>1}),n&&0!==n.length?o.createElement("div",{className:this._classNames.root},this._renderAvatars(n),o.createElement("div",{className:this._classNames.details},o.createElement("span",{className:this._classNames.name},this._getNameString(n)),o.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return o.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return o.createElement("div",{className:this._classNames.avatar},o.createElement(mc,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:Hl.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(o.Component),nb=(Kr(tb,(function(e){var t=e.theme,n=e.className,r=e.multiplePeople,o=t.palette,i=t.fonts,a=Mi(Ky,t);return{root:[a.root,r&&a.multiplePeople,{padding:"8px 16px",position:"relative"},n],avatars:[a.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[a.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:qy,height:qy,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid "+o.white,borderRadius:"50%"},":nth-of-type(2)":r&&{marginLeft:"-16px"}}}],details:[a.details,{left:r?"72px":"56px",height:qy,position:"absolute",top:8,width:"calc(100% - 72px)"}],name:[a.name,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralPrimary,fontWeight:ui.semibold}],activity:[a.activity,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralSecondary}]}}),void 0,{scope:"DocumentCardActivity"}),Ft()),rb=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,r=e.theme,i=e.className;return this._classNames=nb(n,{theme:r,className:i}),o.createElement("div",{className:this._classNames.root},t)},t}(o.Component),ob={root:"ms-DocumentCardDetails"},ib=(Kr(rb,(function(e){var t=e.className,n=e.theme;return{root:[Mi(ob,n).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}}),void 0,{scope:"DocumentCardDetails"}),Ft()),ab=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,r=e.ariaLabel,i=e.onClick,a=e.styles,s=e.theme,l=e.className;return this._classNames=ib(a,{theme:s,className:l}),o.createElement("a",{className:this._classNames.root,href:n,onClick:i,"aria-label":r},t)},t}(o.Component),sb=(Kr(ab,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[Mi(Xy,t).root,o.small,{color:r.themePrimary,display:"block",fontWeight:ui.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:r.themePrimary,cursor:"pointer"}}},n]}}),void 0,{scope:"DocumentCardLocation"}),Ft()),lb=function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,r=t.getOverflowDocumentCountText,i=t.maxDisplayCount,a=void 0===i?3:i,s=e.length-a,l=s?r?r(s):"+"+s:null,c=e.slice(0,a).map((function(e,t){return o.createElement("li",{key:t},o.createElement(Al,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),o.createElement(Yc,u({className:n._classNames.fileListLink},(e.linkProps,{href:e.linkProps&&e.linkProps.href||e.url})),e.name))}));return o.createElement("div",null,o.createElement("ul",{className:n._classNames.fileList},c),l&&o.createElement("span",{className:n._classNames.fileListOverflowText},l))},or(n),n}return c(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.previewImages,i=n.styles,a=n.theme,s=n.className,l=r.length>1;return this._classNames=sb(i,{theme:a,className:s,isFileList:l}),r.length>1?t=this._renderPreviewList(r):1===r.length&&(t=this._renderPreviewImage(r[0]),r[0].accentColor&&(e={borderBottomColor:r[0].accentColor})),o.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,n=e.height,r=e.imageFit,i=e.previewIconProps,a=e.previewIconContainerClass;if(i)return o.createElement("div",{className:Zt(this._classNames.previewIcon,a),style:{width:t,height:n}},o.createElement(Ll,u({},i)));var s,l=o.createElement(Al,{width:t,height:n,imageFit:r,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(s=o.createElement(Al,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),o.createElement("div",null,l,s)},t}(o.Component),cb=(Kr(lb,(function(e){var t,n,r=e.theme,o=e.className,i=e.isFileList,a=r.palette,s=r.fonts,l=Mi(jy,r);return{root:[l.root,s.small,{backgroundColor:i?a.white:a.neutralLighterAlt,borderBottom:"1px solid "+a.neutralLight,overflow:"hidden",position:"relative"},o],previewIcon:[l.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[l.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[Ei(r,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:a.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:(t={":hover":{color:a.themePrimary}},t[".ms-Fabric--isFocusVisible &:focus"]={selectors:(n={},n[Ci]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}}),void 0,{scope:"DocumentCardPreview"}),Ft()),ub=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},or(n),n.state={imageHasLoaded:!1},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,r=e.height,i=e.imageFit,a=e.imageSrc;return this._classNames=cb(t,this.props),o.createElement("div",{className:this._classNames.root},a&&o.createElement(Al,{width:n,height:r,imageFit:i,src:a,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return o.createElement("div",{className:this._classNames.centeredIconWrapper},o.createElement(Ll,u({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return o.createElement(Ll,u({className:this._classNames.cornerIcon},e))},t}(o.Component),db="42px",pb="32px",hb=(Kr(ub,(function(e){var t=e.theme,n=e.className,r=e.height,o=e.width,i=t.palette;return{root:[{borderBottom:"1px solid "+i.neutralLight,position:"relative",backgroundColor:i.neutralLighterAlt,overflow:"hidden",height:r&&r+"px",width:o&&o+"px"},n],centeredIcon:[{height:db,width:db,fontSize:db}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:pb,width:pb,fontSize:pb,position:"absolute",overflow:"visible"}]}}),void 0,{scope:"DocumentCardImage"}),Ft()),mb=function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=o.createRef(),n._truncateTitle=function(){n._needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._titleElement.current;if(t){var r=getComputedStyle(t);if(r.width&&r.lineHeight&&r.height){var o=t.clientWidth,i=t.scrollWidth;n._clientWidth=o;var a=Math.floor((parseInt(r.height,10)+5)/parseInt(r.lineHeight,10));t.style.whiteSpace="";var s=i/(parseInt(r.width,10)*a);if(s>1){var l=e.length/s-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2)})}}}},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,r=e.truncatedTitleSecondPiece;if(t&&r){var o=n._titleElement.current;if(!o)return;(o.scrollHeight>o.clientHeight+5||o.scrollWidth>o.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:r.slice(1)})}},or(n),n._async=new de(n),n._events=new ge(n),n._clientWidth=void 0,n.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},n}return c(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate?this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation)):this._events.off(window,"resize",this._updateTruncation):this._needMeasurement&&this._async.requestAnimationFrame((function(){t._truncateWhenInAnimation(),t._shrinkTitle()}))},t.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.title,n=e.shouldTruncate,r=e.showAsSecondaryTitle,i=e.styles,a=e.theme,s=e.className,l=this.state,c=l.truncatedTitleFirstPiece,u=l.truncatedTitleSecondPiece;return this._classNames=hb(i,{theme:a,className:s,showAsSecondaryTitle:r}),n&&c&&u?o.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},c,"\u2026",u):o.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t,style:this._needMeasurement?{whiteSpace:"nowrap"}:void 0},t)},Object.defineProperty(t.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),t.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout((function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})}),250))},t}(o.Component),fb=(Kr(mb,(function(e){var t=e.theme,n=e.className,r=e.showAsSecondaryTitle,o=t.palette,i=t.fonts;return{root:[Mi(Yy,t).root,r?i.medium:i.large,{padding:"8px 16px",display:"block",overflow:"hidden",wordWrap:"break-word",height:r?"45px":"38px",lineHeight:r?"18px":"21px",color:r?o.neutralSecondary:o.neutralPrimary},n]}}),void 0,{scope:"DocumentCardTitle"}),Ft()),gb=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,r=e.theme,i=e.className;return this._classNames=fb(n,{theme:r,className:i}),o.createElement("div",{className:this._classNames.root},o.createElement(Ll,{iconName:t}))},t}(o.Component),vb={root:"ms-DocumentCardLogo"},yb=(Kr(gb,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[Mi(vb,t).root,{fontSize:o.xxLargePlus.fontSize,color:r.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}}),void 0,{scope:"DocumentCardLogo"}),Ft()),bb=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,r=e.styles,i=e.theme,a=e.className,s={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=yb(r,{theme:i,className:a}),o.createElement("div",{className:this._classNames.root},t&&o.createElement(Ll,u({},s)),n)},t}(o.Component),Cb={root:"ms-DocumentCardStatus"},Sb=(Kr(bb,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts;return{root:[Mi(Cb,n).root,o.medium,{margin:"8px 16px",color:r.neutralPrimary,backgroundColor:r.neutralLighter,height:"32px"},t]}}),void 0,{scope:"DocumentCardStatus"}),function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=0,r=0;r<e.length;r++)e[r].itemType===Of.Divider||e[r].itemType===Of.Header?t.push(r):e[r].hidden||n++;this._size=n,this._displayOnlyOptionsCache=t,this._cachedOptions=h(e)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},e}());!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(Uy||(Uy={}));var xb,_b=Ft();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(xb||(xb={}));var Eb,kb,wb,Ib,Pb,Tb=function(e){function t(t){var n=e.call(this,t)||this;n._panel=o.createRef(),n._animationCallback=null,n._hasCustomNavigation=!(!n.props.onRenderNavigation&&!n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?xe(e,n._events):Se(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return o.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,i=e.hasCloseButton,a=e.onRenderHeader,s=void 0===a?n._onRenderHeader:a;if(i){var l=null===(t=n._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return o.createElement(o.Fragment,null,!n._hasCustomNavigation&&s(n.props,n._onRenderHeader,n._headerTextId),o.createElement(Dd,{styles:l,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var i=e.headerText,a=e.headerTextProps,s=void 0===a?{}:a;return i?o.createElement("div",{className:n._classNames.header},o.createElement("div",u({id:r,role:"heading","aria-level":1},s,{className:Zt(n._classNames.headerText,s.className)}),i)):null},n._onRenderBody=function(e){return o.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?o.createElement("div",{className:n._classNames.footer},o.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===xb.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete()}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(){n._updateFooterPosition(),n.state.visibility===xb.open&&n.props.onOpened&&n.props.onOpened(),n.state.visibility===xb.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,i=void 0!==r&&r;return n._allowTouchBodyScroll=i,n._async=new de(n),n._events=new ge(n),or(n),Ne("Panel",t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:xb.closed,id:wn("Panel")},n}return c(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==xb.closed&&t.visibility!==xb.animatingClosed?e.isOpen||t.visibility!==xb.open&&t.visibility!==xb.animatingOpen?null:{visibility:xb.animatingClosed}:{visibility:xb.animatingOpen}},t.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:xb.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===xb.animatingOpen?this._animateTo(xb.open):this.state.visibility===xb.animatingClosed&&this._animateTo(xb.closed)),n&&!r?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,a=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,l=e.hasCloseButton,c=e.headerText,d=e.headerClassName,p=void 0===d?"":d,h=e.ignoreExternalFocusing,m=e.isBlocking,f=e.isFooterAtBottom,g=e.isLightDismiss,v=e.isHiddenOnDismiss,y=e.layerProps,b=e.overlayProps,C=e.popupProps,S=e.type,x=e.styles,_=e.theme,E=e.customWidth,k=e.onLightDismissClick,w=void 0===k?this._onPanelClick:k,I=e.onRenderNavigation,P=void 0===I?this._onRenderNavigation:I,T=e.onRenderHeader,D=void 0===T?this._onRenderHeader:T,A=e.onRenderBody,R=void 0===A?this._onRenderBody:A,N=e.onRenderFooter,M=void 0===N?this._onRenderFooter:N,F=this.state,B=F.isFooterSticky,O=F.visibility,L=F.id,H=S===Uy.smallFixedNear||S===Uy.customNear,V=xt(_)?H:!H,z=S===Uy.custom||S===Uy.customNear?{width:E}:{},U=$n(this.props,Jn),W=this.isActive,G=O===xb.animatingClosed||O===xb.animatingOpen;if(this._headerTextId=c&&L+"-headerText",!W&&!G&&!v)return null;this._classNames=_b(x,{theme:_,className:n,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:l,headerClassName:p,isAnimating:G,isFooterSticky:B,isFooterAtBottom:f,isOnRightSide:V,isOpen:W,isHiddenOnDismiss:v,type:S,hasCustomNavigation:this._hasCustomNavigation});var j,q=this._classNames,K=this._allowTouchBodyScroll;return m&&W&&(j=o.createElement(gy,u({className:q.overlay,isDarkThemed:!1,onClick:g?w:void 0,allowTouchBodyScroll:K},b))),o.createElement(cl,u({},y),o.createElement(Fs,u({role:"dialog","aria-modal":m?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:q.hiddenPanel},C),o.createElement("div",u({"aria-hidden":!W&&G},U,{ref:this._panel,className:q.root}),j,o.createElement(dl,u({ignoreExternalFocusing:h,forceFocusInsideTrap:!(!m||v&&!W)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:q.main,style:z,elementToFocusOnDismiss:r}),o.createElement("div",{className:q.contentInner},o.createElement("div",{ref:this._allowScrollOnPanel,className:q.scrollableContent,"data-is-scrollable":!0},o.createElement("div",{className:q.commands,"data-is-visible":!0},P(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!l)&&D(this.props,this._onRenderHeader,this._headerTextId),R(this.props,this._onRenderBody),M(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:xb.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:xb.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===xb.open||this.state.visibility===xb.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(wt(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:Uy.smallFixedFar},t}(o.Component),Db={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},Ab="100%",Rb="auto",Nb=272,Mb=592,Fb=644,Bb=940,Ob="auto",Lb=0,Hb=48,Vb=428,zb=176,Ub=((Eb={})["@media (min-width: 480px)"]={width:340},Eb),Wb=((kb={})["@media (min-width: 640px)"]={width:Mb},kb["@media (min-width: 1024px)"]={width:Fb},kb),Gb=((wb={})["@media (min-width: 768px)"]={left:Hb,width:Rb},wb["@media (min-width: 1366px)"]={left:Vb},wb),jb=((Ib={})["@media (min-width: 1366px)"]={left:Ob,width:Bb},Ib),qb=((Pb={})["@media (min-width: 1366px)"]={left:zb},Pb),Kb=function(e){var t;switch(e){case Uy.smallFixedFar:t=u({},Ub);break;case Uy.medium:t=u(u({},Ub),Wb);break;case Uy.large:t=u(u(u({},Ub),Wb),Gb);break;case Uy.largeFixed:t=u(u(u(u({},Ub),Wb),Gb),jb);break;case Uy.extraLarge:t=u(u(u(u({},Ub),Wb),Gb),qb)}return t},Yb={paddingLeft:"24px",paddingRight:"24px"},Xb=Kr(Tb,(function(e){var t,n,r,o,i=e.className,a=e.focusTrapZoneClassName,s=e.hasCloseButton,l=e.headerClassName,c=e.isAnimating,d=e.isFooterSticky,p=e.isFooterAtBottom,h=e.isOnRightSide,m=e.isOpen,f=e.isHiddenOnDismiss,g=e.hasCustomNavigation,v=e.theme,y=e.type,b=void 0===y?Uy.smallFixedFar:y,C=v.effects,S=v.fonts,x=v.semanticColors,_=Mi(Db,v),E=b===Uy.custom||b===Uy.customNear;return{root:[_.root,v.fonts.medium,m&&_.isOpen,s&&_.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},E&&h&&_.custom,E&&!h&&_.customNear,i],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&c&&sa.fadeIn100,!m&&c&&sa.fadeOut100],hiddenPanel:[!m&&!c&&f&&{visibility:"hidden"}],main:[_.main,{backgroundColor:x.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:Ob,right:Lb,width:Ab,selectors:u((t={},t[Ci]={borderLeft:"3px solid "+x.variantBorder,borderRight:"3px solid "+x.variantBorder},t),Kb(b))},b===Uy.smallFluid&&{left:Lb},b===Uy.smallFixedNear&&{left:Lb,right:Ob,width:Nb},b===Uy.customNear&&{right:"auto",left:0},E&&{maxWidth:"100vw"},m&&c&&!h&&sa.slideRightIn40,m&&c&&h&&sa.slideLeftIn40,!m&&c&&!h&&sa.slideLeftOut40,!m&&c&&h&&sa.slideRightOut40,a],commands:[_.commands,{paddingTop:18,selectors:(n={},n["@media (min-height: 480px)"]={backgroundColor:x.bodyBackground,position:"sticky",top:0},n)},g&&{marginTop:"inherit"}],navigation:[_.navigation,{display:"flex",justifyContent:"flex-end"},g&&{height:"44px"}],contentInner:[_.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[_.header,Yb,{alignSelf:"flex-start"},s&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[_.headerText,S.xLarge,{color:x.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},l],scrollableContent:[_.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1}],content:[_.content,Yb,{paddingBottom:20},p&&{selectors:(r={},r["@media (min-height: 480px)"]={minHeight:"100%"},r)}],footer:[_.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity "+Zo+" "+Yo,selectors:(o={},o["@media (min-height: 480px)"]={position:"sticky",bottom:0},o)},d&&{background:x.bodyBackground,borderTopColor:x.variantBorder}],footerInner:[_.footerInner,Yb,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[_.closeButton,{marginRight:14,color:v.palette.neutralSecondary,fontSize:di.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:v.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"}),Qb="Dropdown",Zb=Ft(),Jb={options:[]};var $b=o.forwardRef((function(e,t){var n=Qr(Jb,e),r=o.useRef(null),i=Ss(t,r),a=Gu(r,n.responsiveMode),s=function(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,i=e.defaultSelectedKey,a=e.selectedKey,s=e.options,l=e.multiSelect,c=_s(s),u=o.useState([]),d=u[0],p=u[1],h=s!==c,m=_s(t=l?h&&void 0!==n?n:r:h&&void 0!==i?i:a);return o.useEffect((function(){var e=function(){return s.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},n=function(e){return ft(s,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&c||t===m&&!h||p(function(){if(void 0===t)return l?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var r=[],o=0,i=t;o<i.length;o++){var a,s=i[o];-1!==(a=n(s))&&r.push(a)}return r}())}),[h,l,c,m,s,t]),[d,p]}(n),l=s[0],c=s[1];return o.createElement(rC,u({},n,{responsiveMode:a,hoisted:{rootRef:i,selectedIndices:l,setSelectedIndices:c}}))}));$b.displayName="DropdownBase";var eC,tC,nC,rC=function(e){function t(t){var n=e.call(this,t)||this;n._host=o.createRef(),n._focusZone=o.createRef(),n._dropDown=o.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new Sb,n._requestAnimationFrame=function(e){var t;return function(n){t||(t=new Set,dn(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var r=requestAnimationFrame((function(){t.delete(r),n()}));t.add(r)}}(n),n._onChange=function(e,t,r,o,i){var a=n.props,s=a.onChange,l=a.onChanged;if(s||l){var c=i?u(u({},t[r]),{selected:!o}):t[r];s&&s(u(u({},e),{target:n._dropDown.current}),c,r),l&&l(c,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map((function(e){return e.text})).join(o)},n._onRenderTitle=function(e){return o.createElement(o.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?o.createElement(o.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,i=n.props,a=i.responsiveMode,s=i.dropdownWidth,l=a<=Mu.medium,c=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,d=void 0,p=void 0;return"auto"===s?p=n._dropDown.current?n._dropDown.current.clientWidth:0:d=s||(n._dropDown.current?n._dropDown.current.clientWidth:0),l?o.createElement(Xb,u({isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,hasCloseButton:!1,styles:c},r),n._renderFocusableList(e)):o.createElement(ul,u({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:wa,calloutWidth:d,calloutMinWidth:p},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return o.createElement(Ll,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,i={items:[]},a=[],s=function(){var e=i.id?[o.createElement("div",{role:"group",key:i.id,"aria-labelledby":i.id},i.items)]:i.items;a=h(a,e),i={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case Of.Header:i.items.length>0&&s();var o=n._id+e.key;i.items.push(r(u(u({id:o},e),{index:t}),n._onRenderItem)),i.id=o;break;case Of.Divider:t>0&&i.items.push(r(u(u({},e),{index:t}),n._onRenderItem)),i.items.length>0&&s();break;default:i.items.push(r(u(u({},e),{index:t}),n._onRenderItem))}}(e,t)})),i.items.length>0&&s(),o.createElement(o.Fragment,null,a)},n._onRenderItem=function(e){switch(e.itemType){case Of.Divider:return n._renderSeparator(e);case Of.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t=n.props,r=t.onRenderOption,i=void 0===r?n._onRenderOption:r,a=t.hoisted.selectedIndices,s=void 0===a?[]:a,l=!(void 0===e.index||!s)&&s.indexOf(e.index)>-1,c=e.hidden?n._classNames.dropdownItemHidden:l&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:l?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,d=e.title,p=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?o.createElement(Hh,{id:n._listId+e.index,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:u({"aria-selected":l,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!e.disabled}),label:e.text,title:d,onRenderLabel:n._onRenderItemLabel.bind(n,e),className:c,checked:l,styles:p,ariaPositionInSet:n._sizePosCache.positionInSet(e.index),ariaSetSize:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel}):o.createElement(Md,{id:n._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:c,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":l?"true":"false",ariaLabel:e.ariaLabel,title:d,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},i(e,n._onRenderOption))},n._onRenderOption=function(e){return o.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderOption:t)(e,n._onRenderOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame((function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(e&&e[0]&&!n.props.options[e[0]].disabled){var t=ve().getElementById(n._id+"-list"+e[0]);t&&n._focusZone.current.focusElement(t)}else n._focusZone.current.focus()})),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=window.setTimeout((function(){n._isScrollIdle=!0}),n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(SR){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||n.state.isOpen||(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=n.state.isOpen;switch(e.which){case Ge:n.setState({isOpen:!i});break;case Ye:if(!i)return;n.setState({isOpen:!1});break;case tt:if(o){if(i){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case rt:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case $e:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case Je:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case Xe:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;n.props.onKeyUp&&(n.props.onKeyUp(e),e.defaultPrevented)||(e.which===Xe?(n.setState({isOpen:!r}),e.stopPropagation(),e.preventDefault()):t&&r&&n.setState({isOpen:!1}))}},n._onZoneKeyDown=function(e){var t;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var r=e.altKey||e.metaKey;switch(e.which){case tt:r?n.setState({isOpen:!1}):n._host.current&&(t=hn(n._host.current,n._host.current.lastChild,!0));break;case $e:case Je:case Qe:case Ze:break;case rt:!r&&n._host.current&&(t=pn(n._host.current,n._host.current.firstChild,!0));break;case Ye:n.setState({isOpen:!1});break;case We:return void n.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=e.disabled,a=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(Uh,{className:n._classNames.label,id:n._labelId,required:r,styles:a,disabled:i},t):null},or(n);var r=t.multiSelect,i=t.selectedKey,a=t.selectedKeys,s=t.defaultSelectedKey,l=t.defaultSelectedKeys,c=t.options;if(Ne(Qb,t,{isDisabled:"disabled",onChanged:"onChange",placeHolder:"placeholder",onRenderPlaceHolder:"onRenderPlaceholder"}),Re(Qb,t,{defaultSelectedKey:"selectedKey",defaultSelectedKeys:"selectedKeys",selectedKeys:"selectedKey"}),r){var d=function(e){return De("Dropdown property '"+e+"' cannot be used when 'multiSelect' is true. Use '"+e+"s' instead.")};void 0!==i&&d("selectedKey"),void 0!==s&&d("defaultSelectedKey")}else{var p=function(e){return De("Dropdown property '"+e+"s' cannot be used when 'multiSelect' is false/unset. Use '"+e+"' instead.")};void 0!==a&&p("selectedKey"),void 0!==l&&p("defaultSelectedKey")}return n._id=t.id||wn("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._sizePosCache.updateOptions(c),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return c(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return Yf(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,i=t.options,a=t.ariaLabel,s=t.required,l=t.errorMessage,c=t.styles,d=t.theme,p=t.panelProps,h=t.calloutProps,m=t.onRenderTitle,f=void 0===m?this._getTitle:m,g=t.onRenderContainer,v=void 0===g?this._onRenderContainer:g,y=t.onRenderCaretDown,b=void 0===y?this._onRenderCaretDown:y,C=t.onRenderLabel,S=void 0===C?this._onRenderLabel:C,x=t.hoisted.selectedIndices,_=this.state,E=_.isOpen,k=_.calloutRenderEdge,w=_.hasFocus,I=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;i!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(i);var P=Yf(i,x),T=$n(t,Jn),D=this._isDisabled(),A=e+"-errorMessage",R=D?void 0:E&&1===x.length&&x[0]>=0?this._listId+x[0]:void 0;this._classNames=Zb(c,{theme:d,className:n,hasError:!!(l&&l.length>0),hasLabel:!!r,isOpen:E,required:s,disabled:D,isRenderingPlaceholder:!P.length,panelClassName:p?p.className:void 0,calloutClassName:h?h.className:void 0,calloutRenderEdge:k});var N=!!l&&l.length>0;return o.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":E?this._listId:void 0},S(this.props,this._onRenderLabel),o.createElement("div",u({"data-is-focusable":!D,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:D?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":E?"true":"false","aria-label":a,"aria-labelledby":r&&!a?mt(this._labelId,this._optionId):void 0,"aria-describedby":N?this._id+"-errorMessage":void 0,"aria-activedescendant":R,"aria-required":s,"aria-disabled":D,"aria-controls":E?this._listId:void 0},T,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),o.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":w?"polite":void 0,"aria-atomic":!!w||void 0,"aria-invalid":N},P.length?f(P,this._onRenderTitle):I(t,this._onRenderPlaceholder)),o.createElement("span",{className:this._classNames.caretDownWrapper},b(t,this._onRenderCaretDown))),E&&v(u(u({},t),{onDismiss:this._onDismiss}),this._onRenderContainer),N&&o.createElement("div",{role:"alert",id:A,className:this._classNames.errorMessage},l))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!!c&&c.indexOf(t)>-1,d=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===o&&void 0===i){if(a||s||t!==c[0]){if(a)if(d=c?this._copyArray(c):[],u){var p=d.indexOf(t);p>-1&&d.splice(p,1)}else d.push(t);else d=[t];e.persist(),this.props.hoisted.setSelectedIndices(d),this._onChange(e,r,t,u,a)}}else this._onChange(e,r,t,u,a)},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var i=0;o[n].itemType===Of.Header||o[n].itemType===Of.Divider||o[n].disabled;){if(i>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,i=e.ariaLabel,a=e.multiSelect;return o.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},o.createElement(zc,{ref:this._focusZone,direction:wc.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":i,"aria-labelledby":r&&!i?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t>0?o.createElement("div",{role:"separator",key:n,className:this._classNames.dropdownDivider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,i=e.id;return o.createElement("div",{id:i,key:r,className:this._classNames.dropdownItemHeader},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===Ke||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(Mr()||Nr())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(o.Component),oC={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},iC=((eC={})[Ci+", "+"@media screen and (-ms-high-contrast: black-on-white), (forced-colors: black-on-white)".replace("@media ","")]=u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),eC),aC={selectors:u((tC={},tC[Ci]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},tC),iC)},sC={selectors:(nC={},nC[Ci]={borderColor:"Highlight"},nC)},lC=_i(0,Si),cC=Kr($b,(function(e){var t,n,r,o,i,a,s,l,c,d,p,m,f=e.theme,g=e.hasError,v=e.hasLabel,y=e.className,b=e.isOpen,C=e.disabled,S=e.required,x=e.isRenderingPlaceholder,_=e.panelClassName,E=e.calloutClassName,k=e.calloutRenderEdge;if(!f)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var w=Mi(oC,f),I=f.palette,P=f.semanticColors,T=f.effects,D=f.fonts,A={color:P.menuItemTextHovered},R={color:P.menuItemText},N={borderColor:P.errorText},M=[w.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],F=P.menuItemBackgroundPressed,B=function(e){var t;return void 0===e&&(e=!1),{selectors:(t={"&:hover:focus":[{color:P.menuItemTextHovered,backgroundColor:e?F:P.menuItemBackgroundHovered},aC],"&:focus":[{backgroundColor:e?F:"transparent"},aC],"&:active":[{color:P.menuItemTextHovered,backgroundColor:e?P.menuItemBackgroundHovered:P.menuBackground},aC]},t[".ms-Fabric--isFocusVisible &:focus:after"]={left:0,top:0,bottom:0,right:0},t[Ci]={border:"none"},t)}},O=h(M,[{backgroundColor:F,color:P.menuItemTextHovered},B(!0),aC]),L=h(M,[{color:P.disabledText,cursor:"default",selectors:(t={},t[Ci]={color:"GrayText",border:"none"},t)}]),H=k===da.bottom?T.roundedCorner2+" "+T.roundedCorner2+" 0 0":"0 0 "+T.roundedCorner2+" "+T.roundedCorner2,V=k===da.bottom?"0 0 "+T.roundedCorner2+" "+T.roundedCorner2:T.roundedCorner2+" "+T.roundedCorner2+" 0 0";return{root:[w.root,y],label:w.label,dropdown:[w.dropdown,oa,D.medium,{color:P.menuItemText,borderColor:P.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+w.title]=[!C&&A,{borderColor:b?I.neutralSecondary:I.neutralPrimary},sC],n["&:focus ."+w.title]=[!C&&A,{selectors:(r={},r[Ci]={color:"Highlight"},r)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:C?"none":"2px solid "+I.themePrimary,borderRadius:"2px",selectors:(o={},o[Ci]={color:"Highlight"},o)}],n["&:active ."+w.title]=[!C&&A,{borderColor:I.themePrimary},sC],n["&:hover ."+w.caretDown]=!C&&R,n["&:focus ."+w.caretDown]=[!C&&R,{selectors:(i={},i[Ci]={color:"Highlight"},i)}],n["&:active ."+w.caretDown]=!C&&R,n["&:hover ."+w.titleIsPlaceHolder]=!C&&R,n["&:focus ."+w.titleIsPlaceHolder]=!C&&R,n["&:active ."+w.titleIsPlaceHolder]=!C&&R,n["&:hover ."+w.titleHasError]=N,n["&:active ."+w.titleHasError]=N,n)},b&&"is-open",C&&"is-disabled",S&&"is-required",S&&!v&&{selectors:(a={":before":{content:"'*'",color:P.errorText,position:"absolute",top:-5,right:-10}},a[Ci]={selectors:{":after":{right:-14}}},a)}],title:[w.title,oa,{backgroundColor:P.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:P.inputBorder,borderRadius:b?H:T.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},x&&[w.titleIsPlaceHolder,{color:P.inputPlaceholderText}],g&&[w.titleHasError,N],C&&{backgroundColor:P.disabledBackground,border:"none",color:P.disabledText,cursor:"default",selectors:(s={},s[Ci]=u({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}],caretDownWrapper:[w.caretDownWrapper,{position:"absolute",top:1,right:8,height:32,lineHeight:30},!C&&{cursor:"pointer"}],caretDown:[w.caretDown,{color:I.neutralSecondary,fontSize:D.small.fontSize,pointerEvents:"none"},C&&{color:P.disabledText,selectors:(l={},l[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],errorMessage:u(u({color:P.errorText},f.fonts.small),{paddingTop:5}),callout:[w.callout,{boxShadow:T.elevation8,borderRadius:V,selectors:(c={},c[".ms-Callout-main"]={borderRadius:V},c)},E],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[w.dropdownItems,{display:"block"}],dropdownItem:h(M,[B()]),dropdownItemSelected:O,dropdownItemDisabled:L,dropdownItemSelectedAndDisabled:[O,L,{backgroundColor:"transparent"}],dropdownItemHidden:h(M,[{display:"none"}]),dropdownDivider:[w.dropdownDivider,{height:1,backgroundColor:P.bodyDivider}],dropdownOptionText:[w.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:[w.dropdownItemHeader,u(u({},D.medium),{fontWeight:ui.semibold,color:P.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(d={},d[Ci]=u({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)})],subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(p={},p[".ms-Fabric--isFocusVisible &:focus + label::before"]={outlineOffset:"0px"},p)}},panel:{root:[_],main:{selectors:(m={},m[lC]={width:272},m)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});cC.displayName="Dropdown",ji([{rawString:".pickerText_cc9894a7{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_cc9894a7:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_cc9894a7{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_cc9894a7::-ms-clear{display:none}"}]);var uC=Object.freeze({__proto__:null,pickerText:"pickerText_cc9894a7",pickerInput:"pickerInput_cc9894a7"}),dC=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=o.createRef(),n.selectedItemsList=o.createRef(),n.root=o.createRef(),n.input=o.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){t||(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===Ue&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,r=n.state.queryString;if(void 0===t||t===r){var o=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===o)return;var i,a=o,s=o;s&&s.then?s.then((function(e){i=e,n._addProcessedItem(i)})):(i=a,n._addProcessedItem(i))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},or(n),n.selection=new Vr({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return c(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,r;return null!==(r=null!==(n=null!==(e=this.props.selectedItems)&&void 0!==e?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)&&void 0!==n?n:this.props.defaultSelectedItems)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,r=e.disabled,i=e.focusZoneProps,a=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,s=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return o.createElement("div",{ref:this.root,className:Zt("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},o.createElement(zc,u({direction:wc.bidirectional},i),o.createElement(qg,{selection:this.selection,selectionMode:Or.multiple},o.createElement("div",{className:Zt("ms-BasePicker-text",uC.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&o.createElement(Sc,u({},n,{className:Zt("ms-BasePicker-input",uC.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":a,"aria-owns":s?"suggestion-list":void 0,"aria-expanded":s,"aria-haspopup":"true",role:"combobox",disabled:r,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return o.createElement(e,u({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return o.createElement(e,u({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(o.Component);ji([{rawString:".resultContent_ae2a2ef5{display:table-row}.resultContent_ae2a2ef5 .resultItem_ae2a2ef5{display:table-cell;vertical-align:bottom}.peoplePickerPersona_ae2a2ef5{width:180px}.peoplePickerPersona_ae2a2ef5 .ms-Persona-details{width:100%}.peoplePicker_ae2a2ef5 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_ae2a2ef5{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);var pC,hC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(dC);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}c(t,e)}(hC);!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(pC||(pC={}));var mC=Gt((function(e,t,n){var r=yd(e),o=te(r,n);return u(u({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})})),fC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=d(e,["className","styles"]),i=mC(this.props.theme,t,n);return o.createElement(fd,u({},r,{variantClassName:"ms-Button--facepile",styles:i,onRenderDescription:Fe}))},t=p([cn("FacepileButton",["theme","styles"],!0)],t)}(o.Component),gC=Ft(),vC=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=gC(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,r=t.getPersonaProps,i=t.personaSize;return o.createElement(bc,u({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},r?r(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,r=t.getPersonaProps,i=t.personaSize;return o.createElement(mc,u({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},r?r(e):null))},or(n),n._ariaDescriptionId=wn(),n}return c(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,i=t.personas,a=t.overflowPersonas,s=t.showAddButton,l=t.ariaLabel,c=t.showTooltip,u=void 0===c||c,d=this._classNames,p="number"===typeof r?Math.min(i.length,r):i.length;n&&!e&&(e=n);var h=a&&a.length>0,m=h?i:i.slice(0,p),f=(h?a:i.slice(p))||[];return o.createElement("div",{className:d.root},this.onRenderAriaDescription(),o.createElement("div",{className:d.itemContainer},s?this._getAddNewElement():null,o.createElement("ul",{className:d.members,"aria-label":l},this._onRenderVisiblePersonas(m,0===f.length&&1===i.length,u)),e?this._getOverflowElement(f):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&o.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,n){var r=this,i=this.props,a=i.onRenderPersona,s=void 0===a?this._getPersonaControl:a,l=i.onRenderPersonaCoin,c=void 0===l?this._getPersonaCoinControl:l;return e.map((function(e,i){var a=t?s(e,r._getPersonaControl):c(e,r._getPersonaCoinControl);return o.createElement("li",{key:(t?"persona":"personaCoin")+"-"+i,className:r._classNames.member},e.onClick?r._getElementWithOnClickEvent(a,e,n,i):r._getElementWithoutOnClickEvent(a,e,n,i))}))},t.prototype._getElementWithOnClickEvent=function(e,t,n,r){var i=t.keytipProps;return o.createElement(fC,u({},$n(t,Ln),this._getElementProps(t,n,r),{keytipProps:i,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n,r){return o.createElement("div",u({},$n(t,Ln),this._getElementProps(t,n,r)),e)},t.prototype._getElementProps=function(e,t,n){var r=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:r.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case pC.descriptive:return this._getDescriptiveOverflowElement(e);case pC.downArrow:return this._getIconElement("ChevronDown");case pC.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map((function(e){return e.personaName})).join(", "),r=u({title:n},this.props.overflowButtonProps),i=Math.max(e.length,0),a=this._classNames;return o.createElement(fC,u({},r,{ariaDescription:r.title,className:a.descriptiveOverflowButton}),o.createElement(mc,{size:t,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:zl.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,r=t.personaSize,i=this._classNames;return o.createElement(fC,u({},n,{className:i.overflowButton}),o.createElement(mc,{size:r,onRenderInitials:this._renderInitials(e,!0),initialsColor:zl.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,r=this._classNames;return o.createElement(fC,u({},t,{className:r.addButton}),o.createElement(mc,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return o.createElement(Ll,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return o.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:Hl.size32},t}(o.Component),yC={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"};Kr(vC,(function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,i=void 0===o?2:o,a=r.palette,s=r.fonts,l=Mi(yC,r),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,r.fonts.medium,{width:"auto"},n],addButton:[l.addButton,Ei(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,Ei(r,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:2*i+"px"}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+i+"px"}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:i+"px"}],overflowButton:[l.overflowButton,Ei(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:2*i+"px"}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[Ci]={color:"WindowText"},t)}],screenReaderOnly:Ii}}),void 0,{scope:"Facepile"});ji([{rawString:".callout_0508e60b .ms-Suggestions-itemButton{padding:0;border:none}.callout_0508e60b .ms-Suggestions{min-width:300px}"}]);var bC,CC=Object.freeze({__proto__:null,callout:"callout_0508e60b"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(bC||(bC={})),ji([{rawString:".root_2f55324e{min-width:260px}.suggestionsItem_2f55324e{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_2f55324e:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_2f55324e:hover .closeButton_2f55324e{display:block}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .closeButton_2f55324e:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .itemButton_2f55324e{color:HighlightText}}.suggestionsItem_2f55324e .closeButton_2f55324e{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_2f55324e .closeButton_2f55324e:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_2f55324e{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_2f55324e{padding-left:8px}[dir=rtl] .actionButton_2f55324e{padding-right:8px}html[dir=ltr] .actionButton_2f55324e{text-align:left}html[dir=rtl] .actionButton_2f55324e{text-align:right}.actionButton_2f55324e:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_2f55324e:active,.actionButton_2f55324e:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_2f55324e .ms-Button-icon{font-size:16px;width:25px}.actionButton_2f55324e .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_2f55324e .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_2f55324e{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_2f55324e{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_2f55324e{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_2f55324e{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_2f55324e{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_2f55324e{padding-left:14px}html[dir=rtl] .suggestionsSpinner_2f55324e{padding-right:14px}html[dir=ltr] .suggestionsSpinner_2f55324e{text-align:left}html[dir=rtl] .suggestionsSpinner_2f55324e{text-align:right}.suggestionsSpinner_2f55324e .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_2f55324e .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_2f55324e .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_2f55324e.itemButton_2f55324e{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active){.itemButton_2f55324e.itemButton_2f55324e{color:WindowText}}.itemButton_2f55324e.itemButton_2f55324e:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_2f55324e.closeButton_2f55324e{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active){.closeButton_2f55324e.closeButton_2f55324e{color:WindowText}}.closeButton_2f55324e.closeButton_2f55324e:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_2f55324e{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var SC=Object.freeze({__proto__:null,root:"root_2f55324e",suggestionsItem:"suggestionsItem_2f55324e",closeButton:"closeButton_2f55324e",suggestionsItemIsSuggested:"suggestionsItemIsSuggested_2f55324e",itemButton:"itemButton_2f55324e",actionButton:"actionButton_2f55324e",buttonSelected:"buttonSelected_2f55324e",suggestionsTitle:"suggestionsTitle_2f55324e",suggestionsContainer:"suggestionsContainer_2f55324e",suggestionsNone:"suggestionsNone_2f55324e",suggestionsSpinner:"suggestionsSpinner_2f55324e",suggestionsAvailable:"suggestionsAvailable_2f55324e"}),xC=SC,_C=Ft(),EC=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,r=t.RenderSuggestion,i=t.onClick,a=t.className,s=t.id,l=t.onRemoveItem,c=t.isSelectedOverride,u=t.removeButtonAriaLabel,d=t.styles,p=t.theme,h=t.removeButtonIconProps,m=d?_C(d,{theme:p,className:a,suggested:n.selected||c}):{root:Zt("ms-Suggestions-item",xC.suggestionsItem,(e={},e["is-suggested "+xC.suggestionsItemIsSuggested]=n.selected||c,e),a),itemButton:Zt("ms-Suggestions-itemButton",xC.itemButton),closeButton:Zt("ms-Suggestions-closeButton",xC.closeButton)};return o.createElement("div",{className:m.root,role:"presentation"},o.createElement(Md,{onClick:i,className:m.itemButton,id:s,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},r(n.item,this.props)),this.props.showRemoveButton?o.createElement(Dd,{iconProps:null!==h&&void 0!==h?h:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:u,ariaLabel:u,onClick:l,className:m.closeButton}):null)},t}(o.Component),kC={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var wC,IC=SC,PC=Ft(),TC=Kr(EC,(function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.suggested,d=l.palette,p=l.semanticColors,h=Mi(kC,l);return{root:[h.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:p.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},c&&{selectors:(t={},t[".ms-Fabric--isFocusVisible &"]={selectors:(n={},n["."+h.closeButton]={display:"block",background:p.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid "+l.semanticColors.focusBorder},t)},s],itemButton:[h.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(r={},r[Ci]={color:"WindowText",selectors:{":hover":u({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})}},r[":hover"]={color:p.menuItemTextHovered},r)},c&&[h.isSuggested,{background:p.menuItemBackgroundPressed,selectors:(o={":hover":{background:p.menuDivider}},o[Ci]=u({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}]],closeButton:[h.closeButton,{display:"none",color:d.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:d.neutralTertiaryAlt,color:d.neutralDark}},i[Ci]={color:"WindowText"},i)},c&&(a={},a[".ms-Fabric--isFocusVisible &"]={selectors:{":hover, :active":{background:d.neutralTertiary}}},a.selectors={":hover, :active":{background:d.neutralTertiary,color:d.neutralPrimary}},a)]}}),void 0,{scope:"SuggestionItem"}),DC=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=o.createRef(),n._searchForMoreButton=o.createRef(),n._selectedElement=o.createRef(),n._scrollContainer=o.createRef(),n.tryHandleKeyDown=function(e,t){var r=!1,o=null,i=n.state.selectedActionType,a=n.props.suggestions.length;if(e===rt)switch(i){case bC.forceResolve:a>0?(n._refocusOnSuggestions(e),o=bC.none):o=n._searchForMoreButton.current?bC.searchMore:bC.forceResolve;break;case bC.searchMore:n._forceResolveButton.current?o=bC.forceResolve:a>0?(n._refocusOnSuggestions(e),o=bC.none):o=bC.searchMore;break;case bC.none:-1===t&&n._forceResolveButton.current&&(o=bC.forceResolve)}else if(e===tt)switch(i){case bC.forceResolve:n._searchForMoreButton.current?o=bC.searchMore:a>0&&(n._refocusOnSuggestions(e),o=bC.none);break;case bC.searchMore:a>0?(n._refocusOnSuggestions(e),o=bC.none):n._forceResolveButton.current&&(o=bC.forceResolve);break;case bC.none:-1===t&&n._searchForMoreButton.current&&(o=bC.searchMore)}return null!==o&&(n.setState({selectedActionType:o}),r=!0),r},n._getAlertText=function(){var e=n.props,t=e.isLoading,r=e.isSearching,o=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText;if(!t&&!r){if(o.length>0)return i||"";if(a)return a}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&n.props.onGetMoreResults()},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._refocusOnSuggestions=function(e){"function"===typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},or(n),n.state={selectedActionType:bC.none},n}return c(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.forceResolveText,a=r.mostRecentlyUsedHeaderText,s=r.searchForMoreIcon,l=r.searchForMoreText,c=r.className,d=r.moreSuggestionsAvailable,p=r.noResultsFoundText,h=r.suggestions,m=r.isLoading,f=r.isSearching,g=r.loadingText,v=r.onRenderNoResultFound,y=r.searchingText,b=r.isMostRecentlyUsedVisible,C=r.resultsMaximumNumber,S=r.resultsFooterFull,x=r.resultsFooter,_=r.isResultsFooterVisible,E=void 0===_||_,k=r.suggestionsHeaderText,w=r.suggestionsClassName,I=r.theme,P=r.styles,T=r.suggestionsListId;this._classNames=P?PC(P,{theme:I,className:c,suggestionsClassName:w,forceResolveButtonSelected:this.state.selectedActionType===bC.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===bC.searchMore}):{root:Zt("ms-Suggestions",c,IC.root),title:Zt("ms-Suggestions-title",IC.suggestionsTitle),searchForMoreButton:Zt("ms-SearchMore-button",IC.actionButton,(e={},e["is-selected "+IC.buttonSelected]=this.state.selectedActionType===bC.searchMore,e)),forceResolveButton:Zt("ms-forceResolve-button",IC.actionButton,(t={},t["is-selected "+IC.buttonSelected]=this.state.selectedActionType===bC.forceResolve,t)),suggestionsAvailable:Zt("ms-Suggestions-suggestionsAvailable",IC.suggestionsAvailable),suggestionsContainer:Zt("ms-Suggestions-container",IC.suggestionsContainer,w),noSuggestions:Zt("ms-Suggestions-none",IC.suggestionsNone)};var D=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,A=P?{styles:D}:{className:Zt("ms-Suggestions-spinner",IC.suggestionsSpinner)},R=k;b&&a&&(R=a);var N=void 0;E&&(N=h.length>=C?S:x);var M=(!h||!h.length)&&!m,F=M||m?{role:"listbox",id:T}:{},B=this.state.selectedActionType===bC.forceResolve?"sug-selectedAction":void 0,O=this.state.selectedActionType===bC.searchMore?"sug-selectedAction":void 0;return o.createElement("div",u({className:this._classNames.root},F),o.createElement(kc,{message:this._getAlertText(),"aria-live":"polite"}),R?o.createElement("div",{className:this._classNames.title},R):null,i&&this._shouldShowForceResolve()&&o.createElement(Md,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:B,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},i),m&&o.createElement(hv,u({},A,{label:g})),M?function e(){return o.createElement("div",{id:"sug-noResultsFound",role:"option"},v?v(void 0,e):o.createElement("div",{className:n._classNames.noSuggestions},p))}():this._renderSuggestions(),l&&d&&o.createElement(Md,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:s||{iconName:"Search"},id:O,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore"},l),f?o.createElement(hv,u({},A,{label:y})):null,!N||d||b||f?null:o.createElement("div",{className:this._classNames.title},N(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==bC.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case bC.forceResolve:this._forceResolve();break;case bC.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:bC.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:bC.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:bC.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:bC.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,n=e.offsetTop,r=this._scrollContainer.current,o=r.offsetHeight,i=r.scrollTop,a=n+t>i+o;n<i?this._scrollContainer.current.scrollTo(0,n):a&&this._scrollContainer.current.scrollTo(0,n-o+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.isMostRecentlyUsedVisible,r=t.mostRecentlyUsedHeaderText,i=t.onRenderSuggestion,a=t.removeSuggestionAriaLabel,s=t.suggestionsItemClassName,l=t.resultsMaximumNumber,c=t.showRemoveButtons,u=t.suggestionsContainerAriaLabel,d=t.suggestionsHeaderText,p=t.suggestionsListId,h=t.removeButtonIconProps,m=this.props.suggestions,f=TC,g=-1;if(m.some((function(e,t){return!!e.selected&&(g=t,!0)})),l&&(m=g>=l?m.slice(g-l+1,g+1):m.slice(0,l)),0===m.length)return null;var v=d;return n&&r&&(v=r),o.createElement("div",{className:this._classNames.suggestionsContainer,id:p,ref:this._scrollContainer,role:"listbox","aria-label":u||v},m.map((function(t,n){return o.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:n,role:"presentation"},o.createElement(f,{suggestionModel:t,RenderSuggestion:i,onClick:e._onClickTypedSuggestionsItem(t.item,n),className:s,showRemoveButton:c,removeButtonAriaLabel:a,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,n),id:"sug-"+n,removeButtonIconProps:h}))})))},t}(o.Component),AC=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.name||t.primaryText}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t){e&&e.length>0?(this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])):(this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0)},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}(),RC={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function NC(e){var t,n=e.className,r=e.suggestionsClassName,o=e.theme,i=e.forceResolveButtonSelected,a=e.searchForMoreButtonSelected,s=o.palette,l=o.semanticColors,c=o.fonts,d=Mi(RC,o),p={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid "+s.neutralLight,height:40,textAlign:"left",width:"100%",fontSize:c.small.fontSize,selectors:{":hover":{backgroundColor:l.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:c.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},h={backgroundColor:s.themeLight,selectors:(t={},t[Ci]=u({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)};return{root:[d.root,{minWidth:260},n],suggestionsContainer:[d.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},r],title:[d.title,{padding:"0 12px",fontSize:c.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid "+l.menuItemBackgroundPressed}],forceResolveButton:[d.forceResolveButton,p,i&&[d.isSelected,h]],searchForMoreButton:[d.searchForMoreButton,p,a&&[d.isSelected,h]],noSuggestions:[d.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:c.small.fontSize,lineHeight:30}],suggestionsAvailable:[d.suggestionsAvailable,Ii],subComponentStyles:{spinner:{root:[d.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:c.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(wC||(wC={})),ji([{rawString:".pickerText_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_15a92175:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_15a92175.inputFocused_15a92175{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}.pickerText_15a92175.inputFocused_15a92175:after{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid "},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}@media screen and (-ms-high-contrast:active){.pickerText_15a92175.inputDisabled_15a92175{position:relative;border-color:GrayText}.pickerText_15a92175.inputDisabled_15a92175:after{pointer-events:none;content:'';position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_15a92175{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_15a92175{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var MC=Object.freeze({__proto__:null,pickerText:"pickerText_15a92175",inputFocused:"inputFocused_15a92175",inputDisabled:"inputDisabled_15a92175",pickerInput:"pickerInput_15a92175",pickerItems:"pickerItems_15a92175",screenReaderOnly:"screenReaderOnly_15a92175"}),FC=Ft();var BC=function(e){function t(t){var n=e.call(this,t)||this;n.root=o.createRef(),n.input=o.createRef(),n.suggestionElement=o.createRef(),n.SuggestionOfProperType=DC,n._styledSuggestions=Kr(n.SuggestionOfProperType,NC,void 0,{scope:"Suggestions"}),n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then((function(){return t()})):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===tt?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===rt&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,r){n.addItemByIndex(r)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(r)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!wt(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case Ye:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case We:case Ge:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case Ue:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case ot:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case tt:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case rt:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n._updateSelectedItems(o)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},(function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,r=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):r.then&&r.then((function(e){n.updateSuggestions(e),n.setState({isSearching:!1})}))}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)}));else{var i=n.state.items.concat([r]);n._updateSelectedItems(i)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,r=t.indexOf(e);if(r>=0){var o=t.slice(0,r).concat(t.slice(r+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(o)}},n.removeItems=function(e){var t=n.state.items.filter((function(t){return-1===e.indexOf(t)}));n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case tt:case rt:return!0}return e.which===Ge},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==wC.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestions(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},or(n),n._async=new de(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n._id=wn(),n._ariaMap={selectedItems:"selected-items-"+n._id,selectedSuggestionAlert:"selected-suggestion-alert-"+n._id,suggestionList:"suggestion-list-"+n._id,combobox:"combobox-"+n._id},n.suggestionStore=new AC,n.selection=new Vr({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(r),n.state={items:r,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return c(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){if(this.state.items&&this.state.items!==t.items){var n=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(n,!1,!0),this.resetFocus(n)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=e.items,i=this.props,a=i.className,s=i.inputProps,l=i.disabled,c=i.selectionAriaLabel,d=i.selectionRole,p=void 0===d?"list":d,h=i.theme,m=i.styles,f=this.state.suggestionsVisible?this._ariaMap.suggestionList:"",g=m?FC(m,{theme:h,className:a,isFocused:n,disabled:l,inputClassName:s&&s.className}):{root:Zt("ms-BasePicker",a||""),text:Zt("ms-BasePicker-text",MC.pickerText,this.state.isFocused&&MC.inputFocused),itemsWrapper:MC.pickerItems,input:Zt("ms-BasePicker-input",MC.pickerInput,s&&s.className),screenReaderText:MC.screenReaderOnly},v=this.props["aria-label"]||(null===s||void 0===s?void 0:s["aria-label"]);return o.createElement("div",{ref:this.root,className:g.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur},this.renderCustomAlert(g.screenReaderText),o.createElement("span",{id:this._ariaMap.selectedItems+"-label",hidden:!0},c||v),o.createElement(qg,{selection:this.selection,selectionMode:Or.multiple},o.createElement("div",{className:g.text,"aria-owns":f},r.length>0&&o.createElement("span",{id:this._ariaMap.selectedItems,className:g.itemsWrapper,role:p,"aria-labelledby":this._ariaMap.selectedItems+"-label"},this.renderItems()),this.canAddItems()&&o.createElement(Sc,u({spellCheck:!1},s,{className:g.input,componentRef:this.input,id:(null===s||void 0===s?void 0:s.id)?s.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":this.getActiveDescendant(),"aria-controls":f,"aria-describedby":r.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"listbox","aria-label":v,role:"combobox",disabled:l,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?o.createElement(ul,u({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:wa,directionalHintForRTL:Pa},this.props.pickerCalloutProps),o.createElement(e,u({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,r=t.removeButtonAriaLabel,o=t.removeButtonIconProps,i=this.props.onRenderItem,a=this.state,s=a.items,l=a.selectedIndices;return s.map((function(t,a){return i({item:t,index:a,key:t.key?t.key:a,selected:-1!==l.indexOf(a),onRemoveItem:function(){return e.removeItem(t)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:r,removeButtonIconProps:o})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length&&e>=0){var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index]")[Math.min(e,t.length-1)];n&&n.focus()}else this.canAddItems()?this.input.current&&this.input.current.focus():this.resetFocus(t.length-1)},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){this.suggestionStore.updateSuggestions(e,0),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var n=this,r=e,o=e;if(Array.isArray(r))this._updateAndResolveValue(t,r);else if(o&&o.then){this.setState({suggestionsLoading:!0}),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement});var i=this.currentPromise=o;i.then((function(e){i===n.currentPromise&&n._updateAndResolveValue(t,e)}))}},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var r=void 0;this.suggestionStore.currentSuggestion&&(r=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:r,suggestionsVisible:this._getShowSuggestions()},(function(){return n.setState({suggestionsLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?(null===(e=this.suggestionElement.current)||void 0===e?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-"+t}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=MC.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,r=n?n.ariaLabel:void 0;return o.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},r+" ")}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=MC.screenReaderOnly);var t=this.props.suggestionRemovedText,n=void 0===t?"removed {0}":t,r="";this.state.selectionRemoved&&(r=Gr(n,this._getTextFromItem(this.state.selectionRemoved,"")));return o.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),r)},t.prototype._updateAndResolveValue=function(e,t){void 0!==e?this.resolveNewValue(e,t):(this.suggestionStore.updateSuggestions(t,-1),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1}))},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(o.Component),OC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=this.props,i=r.className,a=r.inputProps,s=r.disabled,l=r.selectionAriaLabel,c=r.selectionRole,d=void 0===c?"list":c,p=r.theme,h=r.styles,m=this.state.suggestionsVisible?this._ariaMap.suggestionList:"",f=h?FC(h,{theme:p,className:i,isFocused:n,inputClassName:a&&a.className}):{root:Zt("ms-BasePicker",i||""),text:Zt("ms-BasePicker-text",MC.pickerText,this.state.isFocused&&MC.inputFocused,s&&MC.inputDisabled),itemsWrapper:MC.pickerItems,input:Zt("ms-BasePicker-input",MC.pickerInput,a&&a.className),screenReaderText:MC.screenReaderOnly},g=this.props["aria-label"]||(null===a||void 0===a?void 0:a["aria-label"]);return o.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},o.createElement("div",{className:f.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(f.screenReaderText),o.createElement("div",{className:f.text,"aria-owns":m||void 0},o.createElement(Sc,u({},a,{className:f.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":this.getActiveDescendant(),"aria-controls":m||void 0,"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"listbox","aria-label":g,role:"combobox",id:(null===a||void 0===a?void 0:a.id)?a.id:this._ariaMap.combobox,disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),o.createElement(qg,{selection:this.selection,selectionMode:Or.single},o.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:d,"aria-label":l||g},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(BC),LC={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};var HC=Ft(),VC=Kr((function(e){var t=e.item,n=e.onRemoveItem,r=e.index,i=e.selected,a=e.removeButtonAriaLabel,s=e.styles,l=e.theme,c=e.className,d=e.disabled,p=e.removeButtonIconProps,h=wn(),m=HC(s,{theme:l,className:c,selected:i,disabled:d,invalid:t.ValidationState===wC.warning}),f=m.subComponentStyles?m.subComponentStyles.persona:void 0,g=m.subComponentStyles?m.subComponentStyles.personaCoin:void 0;return o.createElement("div",{className:m.root,role:"listitem"},o.createElement("div",{className:m.itemContent,id:"selectedItemPersona-"+h},o.createElement(bc,u({size:Hl.size24,styles:f,coinProps:{styles:g}},t))),o.createElement(Dd,{id:h,onClick:n,disabled:d,iconProps:null!==p&&void 0!==p?p:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:m.removeButton,ariaLabel:a,"aria-labelledby":h+" selectedItemPersona-"+h,"data-selection-index":r}))}),(function(e){var t,n,r,o,i,a,s,l=e.className,c=e.theme,d=e.selected,p=e.invalid,h=e.disabled,m=c.palette,f=c.semanticColors,g=c.fonts,v=Mi(LC,c),y=[d&&!p&&!h&&{color:m.white,selectors:(t={":hover":{color:m.white}},t[Ci]={color:"HighlightText"},t)},(p&&!d||p&&d&&h)&&{color:m.redDark,borderBottom:"2px dotted "+m.redDark,selectors:(n={},n["."+v.root+":hover &"]={color:m.redDark},n)},p&&d&&!h&&{color:m.white,borderBottom:"2px dotted "+m.white},h&&{selectors:(r={},r[Ci]={color:"GrayText"},r)}],b=[p&&{fontSize:g.xLarge.fontSize}];return{root:[v.root,Ei(c,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:m.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(o={":hover":{background:d||h?"":m.neutralLight}},o[Ci]=[{border:"1px solid WindowText"},h&&{borderColor:"GrayText"}],o)},d&&!h&&[v.isSelected,{background:m.themePrimary,selectors:(i={},i[Ci]=u({borderColor:"HighLight",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}],p&&[v.isInvalid],p&&d&&!h&&{background:m.redDark},l],itemContent:[v.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[v.removeButton,{borderRadius:15,color:m.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:m.neutralTertiaryAlt,color:m.neutralDark}}},d&&[{color:m.white,selectors:(a={":hover":{color:m.white,background:m.themeDark},":active":{color:m.white,background:m.themeDarker}},a[Ci]={color:"HighlightText"},a)},p&&{selectors:{":hover":{background:m.red},":active":{background:m.redDark}}}],h&&{selectors:(s={},s["."+dd.msButtonIcon]={color:f.buttonText},s)}],subComponentStyles:{persona:{primaryText:y},personaCoin:{initials:b}}}}),void 0,{scope:"PeoplePickerItem"}),zC={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var UC=Ft(),WC=Kr((function(e){var t=e.personaProps,n=e.suggestionsProps,r=e.compact,i=e.styles,a=e.theme,s=e.className,l=UC(i,{theme:a,className:n&&n.suggestionsItemClassName||s}),c=l.subComponentStyles&&l.subComponentStyles.persona?l.subComponentStyles.persona:void 0;return o.createElement("div",{className:l.root},o.createElement(bc,u({size:Hl.size24,styles:c,className:l.personaWrapper,showSecondaryText:!r,showOverflowTooltip:!1},t)))}),(function(e){var t,n,r,o=e.className,i=e.theme,a=Mi(zC,i),s={selectors:(t={},t["."+kC.isSuggested+" &"]={selectors:(n={},n[Ci]={color:"HighlightText"},n)},t["."+a.root+":hover &"]={selectors:(r={},r[Ci]={color:"HighlightText"},r)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},o],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}),void 0,{scope:"PeoplePickerItemSuggestion"}),GC={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function jC(e){var t,n,r,o=e.className,i=e.theme,a=e.isFocused,s=e.inputClassName,l=e.disabled;if(!i)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var c=i.semanticColors,u=i.effects,d=i.fonts,p=c.inputBorder,h=c.inputBorderHovered,m=c.inputFocusBorderAlt,f=Mi(GC,i),g=[d.medium,{color:c.inputPlaceholderText,opacity:1,selectors:(t={},t[Ci]={color:"GrayText"},t)}],v={color:c.disabledText,selectors:(n={},n[Ci]={color:"GrayText"},n)},y="rgba(218, 218, 218, 0.29)";return{root:[f.root,o],text:[f.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid "+p,borderRadius:u.roundedCorner2},!a&&!l&&{selectors:{":hover":{borderColor:h}}},a&&!l&&wi(m,u.roundedCorner2),l&&{borderColor:y,selectors:(r={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:y}},r[Ci]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},r)}],itemsWrapper:[f.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[f.input,d.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:u.roundedCorner2,backgroundColor:"transparent",color:c.inputText,selectors:{"::-ms-clear":{display:"none"}}},aa(g),l&&aa(v),s],screenReaderText:Ii}}var qC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(BC),KC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(OC),YC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(VC,u({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(WC,{personaProps:e,suggestionsProps:t})},createGenericItem:ZC},t}(qC),XC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(VC,u({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(WC,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:ZC},t}(qC),QC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(VC,u({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(WC,{personaProps:e,suggestionsProps:t})},createGenericItem:ZC},t}(KC);function ZC(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==wC.warning&&(n.imageInitials=Ir(e,xt())),n}Kr(YC,jC,void 0,{scope:"NormalPeoplePicker"}),Kr(XC,jC,void 0,{scope:"CompactPeoplePicker"}),Kr(QC,jC,void 0,{scope:"ListPeoplePickerBase"});var JC={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"};var $C=Ft(),eS=Kr((function(e){var t=e.theme,n=e.styles,r=e.selected,i=e.disabled,a=e.enableTagFocusInDisabledPicker,s=e.children,l=e.className,c=e.index,d=e.onRemoveItem,p=e.removeButtonAriaLabel,h=e.title,m=void 0===h?"string"===typeof e.children?e.children:e.item.name:h,f=e.removeButtonIconProps,g=$C(n,{theme:t,className:l,selected:r,disabled:i}),v=Cs(),y=a?{"aria-disabled":i,tabindex:0}:{disabled:i};return o.createElement("div",{className:g.root,role:"listitem",key:c},o.createElement("span",{className:g.text,title:m,id:v+"-text"},s),o.createElement(Dd,u({id:v,onClick:d},y,{iconProps:null!==f&&void 0!==f?f:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:g.close,ariaLabel:p,"aria-labelledby":v+" "+v+"-text","data-selection-index":c})))}),(function(e){var t,n,r,o,i=e.className,a=e.theme,s=e.selected,l=e.disabled,c=a.palette,u=a.effects,d=a.fonts,p=a.semanticColors,h=Mi(JC,a);return{root:[h.root,d.medium,Ei(a),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:u.roundedCorner2,color:p.inputText,background:c.neutralLighter,selectors:(t={":hover":[!l&&!s&&{color:c.neutralDark,background:c.neutralLight,selectors:{".ms-TagItem-close":{color:c.neutralPrimary}}},l&&{background:c.neutralLighter}],":focus-within":[!l&&{background:c.themePrimary,color:c.white}]},t[Ci]={border:"1px solid "+(s?"WindowFrame":"WindowText")},t)},l&&{selectors:(n={},n[Ci]={borderColor:"GrayText"},n)},s&&!l&&[h.isSelected],i],text:[h.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},l&&{selectors:(r={},r[Ci]={color:"GrayText"},r)}],close:[h.close,{color:c.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:xt(a)?u.roundedCorner2+" 0 0 "+u.roundedCorner2:"0 "+u.roundedCorner2+" "+u.roundedCorner2+" 0",selectors:{":hover":{background:c.neutralQuaternaryAlt,color:c.neutralPrimary},":focus":{color:c.white,background:c.themePrimary},":focus:hover":{color:c.white,background:c.themeDark},":active":{color:c.white,backgroundColor:c.themeDark}}},l&&{selectors:(o={},o["."+dd.msButtonIcon]={color:c.neutralSecondary},o)}]}}),void 0,{scope:"TagItem"}),tS={suggestionTextOverflow:"ms-TagItem-TextOverflow"};var nS=Ft(),rS=Kr((function(e){var t=e.styles,n=e.theme,r=e.children,i=nS(t,{theme:n});return o.createElement("div",{className:i.suggestionTextOverflow}," ",r," ")}),(function(e){var t=e.className,n=e.theme;return{suggestionTextOverflow:[Mi(tS,n).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}),void 0,{scope:"TagItemSuggestion"});Kr(function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(eS,u({},e),e.item.name)},onRenderSuggestionsItem:function(e){return o.createElement(rS,null,e.name)}},t}(BC),jC,void 0,{scope:"TagPicker"});ji([{rawString:".suggestionsContainer_a151d363{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_a151d363 .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_a151d363 .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_a151d363 .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var oS=Object.freeze({__proto__:null,suggestionsContainer:"suggestionsContainer_a151d363"}),iS=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=o.createRef(),n.SuggestionsItemOfProperType=EC,n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},or(n),n.currentIndex=-1,n}return c(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.suggestionsItemClassName,i=t.resultsMaximumNumber,a=t.showRemoveButtons,s=t.suggestionsContainerAriaLabel,l=this.SuggestionsItemOfProperType,c=this.props.suggestions;return i&&(c=c.slice(0,i)),o.createElement("div",{className:Zt("ms-Suggestions-container",oS.suggestionsContainer),id:"suggestion-list",role:"list","aria-label":s},c.map((function(t,i){return o.createElement("div",{ref:t.selected||i===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:i,id:"sug-"+i,role:"listitem","aria-label":t.ariaLabel},o.createElement(l,{id:"sug-item"+i,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:r,showRemoveButton:a,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),isSelectedOverride:i===e.currentIndex}))})))},t.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},t}(o.Component);ji([{rawString:".root_e4eecb3d{min-width:260px}.actionButton_e4eecb3d{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_e4eecb3d{text-align:left}html[dir=rtl] .actionButton_e4eecb3d{text-align:right}.actionButton_e4eecb3d:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_e4eecb3d:active,.actionButton_e4eecb3d:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_e4eecb3d .ms-Button-icon{font-size:16px;width:25px}.actionButton_e4eecb3d .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_e4eecb3d .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_e4eecb3d{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_e4eecb3d:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active){.buttonSelected_e4eecb3d:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.buttonSelected_e4eecb3d{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_e4eecb3d{font-size:12px}.suggestionsSpinner_e4eecb3d{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_e4eecb3d{padding-left:14px}html[dir=rtl] .suggestionsSpinner_e4eecb3d{padding-right:14px}html[dir=ltr] .suggestionsSpinner_e4eecb3d{text-align:left}html[dir=rtl] .suggestionsSpinner_e4eecb3d{text-align:right}.suggestionsSpinner_e4eecb3d .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_e4eecb3d .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_e4eecb3d .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_e4eecb3d{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active){.itemButton_e4eecb3d{color:WindowText}}.screenReaderOnly_e4eecb3d{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var aS,sS=Object.freeze({__proto__:null,root:"root_e4eecb3d",actionButton:"actionButton_e4eecb3d",buttonSelected:"buttonSelected_e4eecb3d",suggestionsTitle:"suggestionsTitle_e4eecb3d",suggestionsSpinner:"suggestionsSpinner_e4eecb3d",itemButton:"itemButton_e4eecb3d",screenReaderOnly:"screenReaderOnly_e4eecb3d"});!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(aS||(aS={}));var lS=function(e){function t(t){var n=e.call(this,t)||this;return or(n),n}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,r=t.onExecute,i=t.isSelected,a=t.id,s=t.className;return r?o.createElement("div",{id:a,onClick:r,className:Zt("ms-Suggestions-sectionButton",s,sS.actionButton,(e={},e["is-selected "+sS.buttonSelected]=i,e))},n()):o.createElement("div",{id:a,className:Zt("ms-Suggestions-section",s,sS.suggestionsTitle)},n())},t}(o.Component),cS=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=o.createRef(),n._suggestions=o.createRef(),n.SuggestionsOfProperType=iS,or(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return c(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},(function(){t.resetSelectedItem()}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,r=e.footerItemsProps,i=e.suggestionsAvailableAlertText,a=$(Ii),s=this.state.suggestions&&this.state.suggestions.length>0&&i;return o.createElement("div",{className:Zt("ms-Suggestions",t||"",sS.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),r&&this.renderFooterItems(),s?o.createElement("span",{role:"alert","aria-live":"polite",className:a},i):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement},enumerable:!1,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,r=t.footerItemsProps,o=this.state,i=o.selectedHeaderIndex,a=o.selectedFooterIndex;if(n&&-1!==i&&i<n.length){var s=n[i];s.onExecute&&s.onExecute()}else if(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(r&&-1!==a&&a<r.length){var l=r[a];l.onExecute&&l.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(n=this._suggestions.current)||void 0===n?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,r,o,i=this.state,a=i.selectedHeaderIndex,s=i.selectedFooterIndex,l=!1;return e===rt?-1!==a||(null===(t=this._suggestions.current)||void 0===t?void 0:t.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectNextItem(aS.header),l=!0):(null===(n=this._suggestions.current)||void 0===n?void 0:n.hasSuggestionSelected())?(this.selectNextItem(aS.suggestion),l=!0):-1!==s&&(this.selectNextItem(aS.footer),l=!0):this.selectFirstItem():e===tt?-1!==a||(null===(r=this._suggestions.current)||void 0===r?void 0:r.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectPreviousItem(aS.header),l=!0):(null===(o=this._suggestions.current)||void 0===o?void 0:o.hasSuggestionSelected())?(this.selectPreviousItem(aS.suggestion),l=!0):-1!==s&&(this.selectPreviousItem(aS.footer),l=!0):this.selectLastItem():e!==Ge&&e!==We||this.hasSelection()&&(this.executeSelectedAction(),l=!0),l},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,r=t.suggestionsHeaderContainerAriaLabel,i=this.state.selectedHeaderIndex;return n?o.createElement("div",{className:Zt("ms-Suggestions-headerContainer",sS.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==i&&i===n;return t.shouldShow()?o.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},o.createElement(lS,{id:"sug-header-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,r=t.suggestionsFooterContainerAriaLabel,i=this.state.selectedFooterIndex;return n?o.createElement("div",{className:Zt("ms-Suggestions-footerContainer",sS.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==i&&i===n;return t.shouldShow()?o.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},o.createElement(lS,{id:"sug-footer-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return o.createElement(e,u({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)}else this._selectNextItemOfItemType(e)},t.prototype.selectPreviousItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)}else this._selectPreviousItemOfItemType(e)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(aS.header)||this._selectNextItemOfItemType(aS.suggestion)||this._selectNextItemOfItemType(aS.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(aS.footer)||this._selectPreviousItemOfItemType(aS.suggestion)||this._selectPreviousItemOfItemType(aS.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,r;if(void 0===t&&(t=-1),e===aS.suggestion){if(this.state.suggestions.length>t+1)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===aS.header,i=o?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&i.length>t+1)for(var a=t+1;a<i.length;a++){var s=i[a];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:o?a:-1}),this.setState({selectedFooterIndex:o?-1:a}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,r;if(e===aS.suggestion){if((o=void 0!==t?t:this.state.suggestions.length)>0)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o,i=e===aS.header,a=i?this.props.headerItemsProps:this.props.footerItemsProps;if(a)if((o=void 0!==t?t:a.length)>0)for(var s=o-1;s>=0;s--){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:i?s:-1}),this.setState({selectedFooterIndex:i?-1:s}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case aS.header:return this.state.selectedHeaderIndex;case aS.suggestion:return this._suggestions.current.currentIndex;case aS.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case aS.header:return aS.suggestion;case aS.suggestion:return aS.footer;case aS.footer:return aS.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case aS.header:return aS.footer;case aS.suggestion:return aS.header;case aS.footer:return aS.suggestion}},t}(o.Component),uS=CC,dS=function(e){function t(t){var n=e.call(this,t)||this;return n.root=o.createRef(),n.suggestionsControl=o.createRef(),n.SuggestionsControlOfProperType=cS,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var r=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(r),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,r){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(r)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case Ye:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case We:case Ge:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case ot:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case tt:case rt:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new de(n),or(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return c(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return o.createElement("div",{ref:this.root,className:Zt("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?o.createElement(ul,u({className:uS.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:wa,directionalHintForRTL:Pa,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),o.createElement(e,u({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this,n=e,r=e;if(Array.isArray(n))this.updateSuggestions(n,!0);else if(r&&r.then){var o=this.currentPromise=r;o.then((function(e){o===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(e,!0)}))}},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(o.Component);ji([{rawString:".resultContent_a17eb2a2{display:table-row}.resultContent_a17eb2a2 .resultItem_a17eb2a2{display:table-cell;vertical-align:bottom}.peoplePickerPersona_a17eb2a2{width:180px}.peoplePickerPersona_a17eb2a2 .ms-Persona-details{width:100%}.peoplePicker_a17eb2a2 .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_a17eb2a2{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var pS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(dS);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}c(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return n=u({},e),u({},t),o.createElement("div",{className:Zt("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_a17eb2a2")},o.createElement(bc,u({presence:void 0!==n.presence?n.presence:Vl.none,size:Hl.size40,className:Zt("ms-PeoplePicker-Persona","peoplePickerPersona_a17eb2a2"),showSecondaryText:!0},n)));var n},createGenericItem:hS}}(pS);function hS(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=Ir(e,xt())),n}!function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]}}();var mS,fS,gS={host:"ms-HoverCard-host"};!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(mS||(mS={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(fS||(fS={}));var vS,yS={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(vS||(vS={}));var bS=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?wa:r,a=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,c=e.trapFocus,d=e.onLeave,p=e.className,h=e.finalHeight,m=e.content,f=e.calloutProps,g=u(u(u({},$n(e,Jn)),{className:p,target:s,isBeakVisible:!1,directionalHint:i,directionalHintFixed:a,finalHeight:h,minPagePadding:24,onDismiss:d,gapSpace:n}),f);return o.createElement(o.Fragment,null,c?o.createElement(fl,u({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),m):o.createElement(ul,u({},g),m))},CS=Ft(),SS=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=o.createRef(),n._onKeyDown=function(e){e.which===Ye&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return o.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),o.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},o.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new de(n),or(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return c(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,i=e.theme,a=e.mode,s=e.className,l=this.state,c=l.needsScroll,d=l.firstFrameRendered,p=n+r;this._classNames=CS(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===vS.expanded&&d});var h=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return o.createElement(bS,u({},this.props,{content:h,finalHeight:p,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(o.Component),xS=Kr(SS,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=Mi(yS,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Ci]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),_S={root:"ms-PlainCard-root"};var ES=Ft(),kS=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===Ye&&n.props.onLeave&&n.props.onLeave(e)},or(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=ES(t,{theme:n,className:r});var i=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return o.createElement(bS,u({},this.props,{content:i,className:this._classNames.root}))},t}(o.Component),wS=Kr(kS,(function(e){var t,n=e.theme,r=e.className;return{root:[Mi(_S,n).root,{pointerEvents:"auto",selectors:(t={},t[Ci]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),IS=Ft(),PS=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=o.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:vS.compact,openMode:"keydown"===e.type?mS.hotKey:mS.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==Ye)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==Ye||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:vS.compact,openMode:mS.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:vS.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},or(n),n._async=new de(n),n._events=new ge(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:vS.compact,openMode:mS.hover},n}return c(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:vS.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:vS.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,i=e.setAriaDescribedBy,a=void 0===i||i,s=e.styles,l=e.theme,c=e.className,d=e.type,p=e.plainCardProps,h=e.trapFocus,m=e.setInitialFocus,f=this.state,g=f.isHoverCardVisible,v=f.mode,y=f.openMode,b=r||wn("hoverCard");this._classNames=IS(s,{theme:l,className:c});var C=u(u({},$n(this.props,Jn)),{id:b,trapFocus:!!h,firstFocus:m||y===mS.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),S=u(u(u({},t),C),{mode:v}),x=u(u({},p),C);return o.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&g?b:void 0,"data-is-focusable":!this.props.target},n,g&&(d===fS.expanding?o.createElement(xS,u({},S)):o.createElement(wS,u({},x))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return ve().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:lt,type:fS.expanding},t}(o.Component);Kr(PS,(function(e){var t=e.className,n=e.theme;return{host:[Mi(gS,n).host,t]}}),void 0,{scope:"HoverCard"});function TS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"\ue700",ChevronDown:"\ue70d",ChevronUp:"\ue70e",Edit:"\ue70f",Add:"\ue710",Cancel:"\ue711",More:"\ue712",Settings:"\ue713",Mail:"\ue715",Filter:"\ue71c",Search:"\ue721",Share:"\ue72d",BlockedSite:"\ue72f",FavoriteStar:"\ue734",FavoriteStarFill:"\ue735",CheckMark:"\ue73e",Delete:"\ue74d",ChevronLeft:"\ue76b",ChevronRight:"\ue76c",Calendar:"\ue787",Megaphone:"\ue789",Undo:"\ue7a7",Flag:"\ue7c1",Page:"\ue7c3",Pinned:"\ue840",View:"\ue890",Clear:"\ue894",Download:"\ue896",Upload:"\ue898",Folder:"\ue8b7",Sort:"\ue8cb",AlignRight:"\ue8e2",AlignLeft:"\ue8e4",Tag:"\ue8ec",AddFriend:"\ue8fa",Info:"\ue946",SortLines:"\ue9d0",List:"\uea37",CircleRing:"\uea3a",Heart:"\ueb51",HeartFill:"\ueb52",Tiles:"\ueca5",Embed:"\uecce",Glimmer:"\uecf4",Ascending:"\uedc0",Descending:"\uedc1",SortUp:"\uee68",SortDown:"\uee69",SyncToPC:"\uee6e",LargeGrid:"\ueecb",SkypeCheck:"\uef80",SkypeClock:"\uef81",SkypeMinus:"\uef82",ClearFilter:"\uef8f",Flow:"\uef90",StatusCircleCheckmark:"\uf13e",MoreVertical:"\uf2bc"}},t)}function DS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"\ue302",CommentSolid:"\ue30e",ChangeEntitlements:"\ue310",Installation:"\ue311",WebAppBuilderModule:"\ue313",WebAppBuilderFragment:"\ue314",WebAppBuilderSlot:"\ue315",BullseyeTargetEdit:"\ue319",WebAppBuilderFragmentCreate:"\ue31b",PageData:"\ue31c",PageHeaderEdit:"\ue31d",ProductList:"\ue31e",UnpublishContent:"\ue31f",DependencyAdd:"\ue344",DependencyRemove:"\ue345",EntitlementPolicy:"\ue346",EntitlementRedemption:"\ue347",SchoolDataSyncLogo:"\ue34c",PinSolid12:"\ue352",PinSolidOff12:"\ue353",AddLink:"\ue35e",SharepointAppIcon16:"\ue365",DataflowsLink:"\ue366",TimePicker:"\ue367",UserWarning:"\ue368",ComplianceAudit:"\ue369",InternetSharing:"\ue704",Brightness:"\ue706",MapPin:"\ue707",Airplane:"\ue709",Tablet:"\ue70a",QuickNote:"\ue70b",Video:"\ue714",People:"\ue716",Phone:"\ue717",Pin:"\ue718",Shop:"\ue719",Stop:"\ue71a",Link:"\ue71b",AllApps:"\ue71d",Zoom:"\ue71e",ZoomOut:"\ue71f",Microphone:"\ue720",Camera:"\ue722",Attach:"\ue723",Send:"\ue724",FavoriteList:"\ue728",PageSolid:"\ue729",Forward:"\ue72a",Back:"\ue72b",Refresh:"\ue72c",Lock:"\ue72e",ReportHacked:"\ue730",EMI:"\ue731",MiniLink:"\ue732",Blocked:"\ue733",ReadingMode:"\ue736",Favicon:"\ue737",Remove:"\ue738",Checkbox:"\ue739",CheckboxComposite:"\ue73a",CheckboxFill:"\ue73b",CheckboxIndeterminate:"\ue73c",CheckboxCompositeReversed:"\ue73d",BackToWindow:"\ue73f",FullScreen:"\ue740",Print:"\ue749",Up:"\ue74a",Down:"\ue74b",OEM:"\ue74c",Save:"\ue74e",ReturnKey:"\ue751",Cloud:"\ue753",Flashlight:"\ue754",CommandPrompt:"\ue756",Sad:"\ue757",RealEstate:"\ue758",SIPMove:"\ue759",EraseTool:"\ue75c",GripperTool:"\ue75e",Dialpad:"\ue75f",PageLeft:"\ue760",PageRight:"\ue761",MultiSelect:"\ue762",KeyboardClassic:"\ue765",Play:"\ue768",Pause:"\ue769",InkingTool:"\ue76d",Emoji2:"\ue76e",GripperBarHorizontal:"\ue76f",System:"\ue770",Personalize:"\ue771",SearchAndApps:"\ue773",Globe:"\ue774",EaseOfAccess:"\ue776",ContactInfo:"\ue779",Unpin:"\ue77a",Contact:"\ue77b",Memo:"\ue77c",IncomingCall:"\ue77e"}},t)}function AS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"\ue77f",WindowsLogo:"\ue782",Error:"\ue783",GripperBarVertical:"\ue784",Unlock:"\ue785",Slideshow:"\ue786",Trim:"\ue78a",AutoEnhanceOn:"\ue78d",AutoEnhanceOff:"\ue78e",Color:"\ue790",SaveAs:"\ue792",Light:"\ue793",Filters:"\ue795",AspectRatio:"\ue799",Contrast:"\ue7a1",Redo:"\ue7a6",Crop:"\ue7a8",PhotoCollection:"\ue7aa",Album:"\ue7ab",Rotate:"\ue7ad",PanoIndicator:"\ue7b0",Translate:"\ue7b2",RedEye:"\ue7b3",ViewOriginal:"\ue7b4",ThumbnailView:"\ue7b6",Package:"\ue7b8",Telemarketer:"\ue7b9",Warning:"\ue7ba",Financial:"\ue7bb",Education:"\ue7be",ShoppingCart:"\ue7bf",Train:"\ue7c0",Move:"\ue7c2",TouchPointer:"\ue7c9",Merge:"\ue7d5",TurnRight:"\ue7db",Ferry:"\ue7e3",Highlight:"\ue7e6",PowerButton:"\ue7e8",Tab:"\ue7e9",Admin:"\ue7ef",TVMonitor:"\ue7f4",Speakers:"\ue7f5",Game:"\ue7fc",HorizontalTabKey:"\ue7fd",UnstackSelected:"\ue7fe",StackIndicator:"\ue7ff",Nav2DMapView:"\ue800",StreetsideSplitMinimize:"\ue802",Car:"\ue804",Bus:"\ue806",EatDrink:"\ue807",SeeDo:"\ue808",LocationCircle:"\ue80e",Home:"\ue80f",SwitcherStartEnd:"\ue810",ParkingLocation:"\ue811",IncidentTriangle:"\ue814",Touch:"\ue815",MapDirections:"\ue816",CaretHollow:"\ue817",CaretSolid:"\ue818",History:"\ue81c",Location:"\ue81d",MapLayers:"\ue81e",SearchNearby:"\ue820",Work:"\ue821",Recent:"\ue823",Hotel:"\ue824",Bank:"\ue825",LocationDot:"\ue827",Dictionary:"\ue82d",ChromeBack:"\ue830",FolderOpen:"\ue838",PinnedFill:"\ue842",RevToggleKey:"\ue845",USB:"\ue88e",Previous:"\ue892",Next:"\ue893",Sync:"\ue895",Help:"\ue897",Emoji:"\ue899",MailForward:"\ue89c",ClosePane:"\ue89f",OpenPane:"\ue8a0",PreviewLink:"\ue8a1",ZoomIn:"\ue8a3",Bookmarks:"\ue8a4",Document:"\ue8a5",ProtectedDocument:"\ue8a6",OpenInNewWindow:"\ue8a7",MailFill:"\ue8a8",ViewAll:"\ue8a9",Switch:"\ue8ab",Rename:"\ue8ac",Go:"\ue8ad",Remote:"\ue8af",SelectAll:"\ue8b3",Orientation:"\ue8b4",Import:"\ue8b5"}},t)}function RS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"\ue8b9",ChromeClose:"\ue8bb",ShowResults:"\ue8bc",Message:"\ue8bd",CalendarDay:"\ue8bf",CalendarWeek:"\ue8c0",MailReplyAll:"\ue8c2",Read:"\ue8c3",Cut:"\ue8c6",PaymentCard:"\ue8c7",Copy:"\ue8c8",Important:"\ue8c9",MailReply:"\ue8ca",GotoToday:"\ue8d1",Font:"\ue8d2",FontColor:"\ue8d3",FolderFill:"\ue8d5",Permissions:"\ue8d7",DisableUpdates:"\ue8d8",Unfavorite:"\ue8d9",Italic:"\ue8db",Underline:"\ue8dc",Bold:"\ue8dd",MoveToFolder:"\ue8de",Dislike:"\ue8e0",Like:"\ue8e1",AlignCenter:"\ue8e3",OpenFile:"\ue8e5",ClearSelection:"\ue8e6",FontDecrease:"\ue8e7",FontIncrease:"\ue8e8",FontSize:"\ue8e9",CellPhone:"\ue8ea",RepeatOne:"\ue8ed",RepeatAll:"\ue8ee",Calculator:"\ue8ef",Library:"\ue8f1",PostUpdate:"\ue8f3",NewFolder:"\ue8f4",CalendarReply:"\ue8f5",UnsyncFolder:"\ue8f6",SyncFolder:"\ue8f7",BlockContact:"\ue8f8",Accept:"\ue8fb",BulletedList:"\ue8fd",Preview:"\ue8ff",News:"\ue900",Chat:"\ue901",Group:"\ue902",World:"\ue909",Comment:"\ue90a",DockLeft:"\ue90c",DockRight:"\ue90d",Repair:"\ue90f",Accounts:"\ue910",Street:"\ue913",RadioBullet:"\ue915",Stopwatch:"\ue916",Clock:"\ue917",WorldClock:"\ue918",AlarmClock:"\ue919",Photo:"\ue91b",ActionCenter:"\ue91c",Hospital:"\ue91d",Timer:"\ue91e",FullCircleMask:"\ue91f",LocationFill:"\ue920",ChromeMinimize:"\ue921",ChromeRestore:"\ue923",Annotation:"\ue924",Fingerprint:"\ue928",Handwriting:"\ue929",ChromeFullScreen:"\ue92d",Completed:"\ue930",Label:"\ue932",FlickDown:"\ue935",FlickUp:"\ue936",FlickLeft:"\ue937",FlickRight:"\ue938",MiniExpand:"\ue93a",MiniContract:"\ue93b",Streaming:"\ue93e",MusicInCollection:"\ue940",OneDriveLogo:"\ue941",CompassNW:"\ue942",Code:"\ue943",LightningBolt:"\ue945",CalculatorMultiply:"\ue947",CalculatorAddition:"\ue948",CalculatorSubtract:"\ue949",CalculatorPercentage:"\ue94c",CalculatorEqualTo:"\ue94e",PrintfaxPrinterFile:"\ue956",StorageOptical:"\ue958",Communications:"\ue95a",Headset:"\ue95b",Health:"\ue95e",Webcam2:"\ue960",FrontCamera:"\ue96b",ChevronUpSmall:"\ue96d"}},t)}function NS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"\ue96e",ChevronLeftSmall:"\ue96f",ChevronRightSmall:"\ue970",ChevronUpMed:"\ue971",ChevronDownMed:"\ue972",ChevronLeftMed:"\ue973",ChevronRightMed:"\ue974",Devices2:"\ue975",PC1:"\ue977",PresenceChickletVideo:"\ue979",Reply:"\ue97a",HalfAlpha:"\ue97e",ConstructionCone:"\ue98f",DoubleChevronLeftMed:"\ue991",Volume0:"\ue992",Volume1:"\ue993",Volume2:"\ue994",Volume3:"\ue995",Chart:"\ue999",Robot:"\ue99a",Manufacturing:"\ue99c",LockSolid:"\ue9a2",FitPage:"\ue9a6",FitWidth:"\ue9a7",BidiLtr:"\ue9aa",BidiRtl:"\ue9ab",RightDoubleQuote:"\ue9b1",Sunny:"\ue9bd",CloudWeather:"\ue9be",Cloudy:"\ue9bf",PartlyCloudyDay:"\ue9c0",PartlyCloudyNight:"\ue9c1",ClearNight:"\ue9c2",RainShowersDay:"\ue9c3",Rain:"\ue9c4",Thunderstorms:"\ue9c6",RainSnow:"\ue9c7",Snow:"\ue9c8",BlowingSnow:"\ue9c9",Frigid:"\ue9ca",Fog:"\ue9cb",Squalls:"\ue9cc",Duststorm:"\ue9cd",Unknown:"\ue9ce",Precipitation:"\ue9cf",Ribbon:"\ue9d1",AreaChart:"\ue9d2",Assign:"\ue9d3",FlowChart:"\ue9d4",CheckList:"\ue9d5",Diagnostic:"\ue9d9",Generate:"\ue9da",LineChart:"\ue9e6",Equalizer:"\ue9e9",BarChartHorizontal:"\ue9eb",BarChartVertical:"\ue9ec",Freezing:"\ue9ef",FunnelChart:"\ue9f1",Processing:"\ue9f5",Quantity:"\ue9f8",ReportDocument:"\ue9f9",StackColumnChart:"\ue9fc",SnowShowerDay:"\ue9fd",HailDay:"\uea00",WorkFlow:"\uea01",HourGlass:"\uea03",StoreLogoMed20:"\uea04",TimeSheet:"\uea05",TriangleSolid:"\uea08",UpgradeAnalysis:"\uea0b",VideoSolid:"\uea0c",RainShowersNight:"\uea0f",SnowShowerNight:"\uea11",Teamwork:"\uea12",HailNight:"\uea13",PeopleAdd:"\uea15",Glasses:"\uea16",DateTime2:"\uea17",Shield:"\uea18",Header1:"\uea19",PageAdd:"\uea1a",NumberedList:"\uea1c",PowerBILogo:"\uea1e",Info2:"\uea1f",MusicInCollectionFill:"\uea36",Asterisk:"\uea38",ErrorBadge:"\uea39",CircleFill:"\uea3b",Record2:"\uea3f",AllAppsMirrored:"\uea40",BookmarksMirrored:"\uea41",BulletedListMirrored:"\uea42",CaretHollowMirrored:"\uea45",CaretSolidMirrored:"\uea46",ChromeBackMirrored:"\uea47",ClearSelectionMirrored:"\uea48",ClosePaneMirrored:"\uea49",DockLeftMirrored:"\uea4c",DoubleChevronLeftMedMirrored:"\uea4d",GoMirrored:"\uea4f"}},t)}function MS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"\uea51",ImportMirrored:"\uea52",ImportAllMirrored:"\uea53",ListMirrored:"\uea55",MailForwardMirrored:"\uea56",MailReplyMirrored:"\uea57",MailReplyAllMirrored:"\uea58",MiniContractMirrored:"\uea59",MiniExpandMirrored:"\uea5a",OpenPaneMirrored:"\uea5b",ParkingLocationMirrored:"\uea5e",SendMirrored:"\uea63",ShowResultsMirrored:"\uea65",ThumbnailViewMirrored:"\uea67",Media:"\uea69",Devices3:"\uea6c",Focus:"\uea6f",VideoLightOff:"\uea74",Lightbulb:"\uea80",StatusTriangle:"\uea82",VolumeDisabled:"\uea85",Puzzle:"\uea86",EmojiNeutral:"\uea87",EmojiDisappointed:"\uea88",HomeSolid:"\uea8a",Ringer:"\uea8f",PDF:"\uea90",HeartBroken:"\uea92",StoreLogo16:"\uea96",MultiSelectMirrored:"\uea98",Broom:"\uea99",AddToShoppingList:"\uea9a",Cocktails:"\uea9d",Wines:"\ueabf",Articles:"\ueac1",Cycling:"\ueac7",DietPlanNotebook:"\ueac8",Pill:"\ueacb",ExerciseTracker:"\ueacc",HandsFree:"\uead0",Medical:"\uead4",Running:"\ueada",Weights:"\ueadb",Trackers:"\ueadf",AddNotes:"\ueae3",AllCurrency:"\ueae4",BarChart4:"\ueae7",CirclePlus:"\ueaee",Coffee:"\ueaef",Cotton:"\ueaf3",Market:"\ueafc",Money:"\ueafd",PieDouble:"\ueb04",PieSingle:"\ueb05",RemoveFilter:"\ueb08",Savings:"\ueb0b",Sell:"\ueb0c",StockDown:"\ueb0f",StockUp:"\ueb11",Lamp:"\ueb19",Source:"\ueb1b",MSNVideos:"\ueb1c",Cricket:"\ueb1e",Golf:"\ueb1f",Baseball:"\ueb20",Soccer:"\ueb21",MoreSports:"\ueb22",AutoRacing:"\ueb24",CollegeHoops:"\ueb25",CollegeFootball:"\ueb26",ProFootball:"\ueb27",ProHockey:"\ueb28",Rugby:"\ueb2d",SubstitutionsIn:"\ueb31",Tennis:"\ueb33",Arrivals:"\ueb34",Design:"\ueb3c",Website:"\ueb41",Drop:"\ueb42",HistoricalWeather:"\ueb43",SkiResorts:"\ueb45",Snowflake:"\ueb46",BusSolid:"\ueb47",FerrySolid:"\ueb48",AirplaneSolid:"\ueb4c",TrainSolid:"\ueb4d",Ticket:"\ueb54",WifiWarning4:"\ueb63",Devices4:"\ueb66",AzureLogo:"\ueb6a",BingLogo:"\ueb6b",MSNLogo:"\ueb6c",OutlookLogoInverse:"\ueb6d",OfficeLogo:"\ueb6e",SkypeLogo:"\ueb6f",Door:"\ueb75",EditMirrored:"\ueb7e",GiftCard:"\ueb8e",DoubleBookmark:"\ueb8f",StatusErrorFull:"\ueb90"}},t)}function FS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"\ueb95",FastForward:"\ueb9d",Rewind:"\ueb9e",Photo2:"\ueb9f",OpenSource:"\uebc2",Movers:"\uebcd",CloudDownload:"\uebd3",Family:"\uebda",WindDirection:"\uebe6",Bug:"\uebe8",SiteScan:"\uebec",BrowserScreenShot:"\uebed",F12DevTools:"\uebee",CSS:"\uebef",JS:"\uebf0",DeliveryTruck:"\uebf4",ReminderPerson:"\uebf7",ReminderGroup:"\uebf8",ReminderTime:"\uebf9",TabletMode:"\uebfc",Umbrella:"\uec04",NetworkTower:"\uec05",CityNext:"\uec06",CityNext2:"\uec07",Section:"\uec0c",OneNoteLogoInverse:"\uec0d",ToggleFilled:"\uec11",ToggleBorder:"\uec12",SliderThumb:"\uec13",ToggleThumb:"\uec14",Documentation:"\uec17",Badge:"\uec1b",Giftbox:"\uec1f",VisualStudioLogo:"\uec22",HomeGroup:"\uec26",ExcelLogoInverse:"\uec28",WordLogoInverse:"\uec29",PowerPointLogoInverse:"\uec2a",Cafe:"\uec32",SpeedHigh:"\uec4a",Commitments:"\uec4d",ThisPC:"\uec4e",MusicNote:"\uec4f",MicOff:"\uec54",PlaybackRate1x:"\uec57",EdgeLogo:"\uec60",CompletedSolid:"\uec61",AlbumRemove:"\uec62",MessageFill:"\uec70",TabletSelected:"\uec74",MobileSelected:"\uec75",LaptopSelected:"\uec76",TVMonitorSelected:"\uec77",DeveloperTools:"\uec7a",Shapes:"\uec7c",InsertTextBox:"\uec7d",LowerBrightness:"\uec8a",WebComponents:"\uec8b",OfflineStorage:"\uec8c",DOM:"\uec8d",CloudUpload:"\uec8e",ScrollUpDown:"\uec8f",DateTime:"\uec92",Event:"\ueca3",Cake:"\ueca4",Org:"\ueca6",PartyLeader:"\ueca7",DRM:"\ueca8",CloudAdd:"\ueca9",AppIconDefault:"\uecaa",Photo2Add:"\uecab",Photo2Remove:"\uecac",Calories:"\uecad",POI:"\uecaf",AddTo:"\uecc8",RadioBtnOff:"\uecca",RadioBtnOn:"\ueccb",ExploreContent:"\ueccd",Product:"\uecdc",ProgressLoopInner:"\uecde",ProgressLoopOuter:"\uecdf",Blocked2:"\uece4",FangBody:"\ueceb",Toolbox:"\ueced",PageHeader:"\uecee",ChatInviteFriend:"\uecfe",Brush:"\uecff",Shirt:"\ued00",Crown:"\ued01",Diamond:"\ued02",ScaleUp:"\ued09",QRCode:"\ued14",Feedback:"\ued15",SharepointLogoInverse:"\ued18",YammerLogo:"\ued19",Hide:"\ued1a",Uneditable:"\ued1d",ReturnToSession:"\ued24",OpenFolderHorizontal:"\ued25",CalendarMirrored:"\ued28"}},t)}function BS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"\ued29",OutOfOffice:"\ued34",Trophy:"\ued3f",ReopenPages:"\ued50",EmojiTabSymbols:"\ued58",AADLogo:"\ued68",AccessLogo:"\ued69",AdminALogoInverse32:"\ued6a",AdminCLogoInverse32:"\ued6b",AdminDLogoInverse32:"\ued6c",AdminELogoInverse32:"\ued6d",AdminLLogoInverse32:"\ued6e",AdminMLogoInverse32:"\ued6f",AdminOLogoInverse32:"\ued70",AdminPLogoInverse32:"\ued71",AdminSLogoInverse32:"\ued72",AdminYLogoInverse32:"\ued73",DelveLogoInverse:"\ued76",ExchangeLogoInverse:"\ued78",LyncLogo:"\ued79",OfficeVideoLogoInverse:"\ued7a",SocialListeningLogo:"\ued7c",VisioLogoInverse:"\ued7d",Balloons:"\ued7e",Cat:"\ued7f",MailAlert:"\ued80",MailCheck:"\ued81",MailLowImportance:"\ued82",MailPause:"\ued83",MailRepeat:"\ued84",SecurityGroup:"\ued85",Table:"\ued86",VoicemailForward:"\ued87",VoicemailReply:"\ued88",Waffle:"\ued89",RemoveEvent:"\ued8a",EventInfo:"\ued8b",ForwardEvent:"\ued8c",WipePhone:"\ued8d",AddOnlineMeeting:"\ued8e",JoinOnlineMeeting:"\ued8f",RemoveLink:"\ued90",PeopleBlock:"\ued91",PeopleRepeat:"\ued92",PeopleAlert:"\ued93",PeoplePause:"\ued94",TransferCall:"\ued95",AddPhone:"\ued96",UnknownCall:"\ued97",NoteReply:"\ued98",NoteForward:"\ued99",NotePinned:"\ued9a",RemoveOccurrence:"\ued9b",Timeline:"\ued9c",EditNote:"\ued9d",CircleHalfFull:"\ued9e",Room:"\ued9f",Unsubscribe:"\ueda0",Subscribe:"\ueda1",HardDrive:"\ueda2",RecurringTask:"\uedb2",TaskManager:"\uedb7",TaskManagerMirrored:"\uedb8",Combine:"\uedbb",Split:"\uedbc",DoubleChevronUp:"\uedbd",DoubleChevronLeft:"\uedbe",DoubleChevronRight:"\uedbf",TextBox:"\uedc2",TextField:"\uedc3",NumberField:"\uedc4",Dropdown:"\uedc5",PenWorkspace:"\uedc6",BookingsLogo:"\uedc7",ClassNotebookLogoInverse:"\uedc8",DelveAnalyticsLogo:"\uedca",DocsLogoInverse:"\uedcb",Dynamics365Logo:"\uedcc",DynamicSMBLogo:"\uedcd",OfficeAssistantLogo:"\uedce",OfficeStoreLogo:"\uedcf",OneNoteEduLogoInverse:"\uedd0",PlannerLogo:"\uedd1",PowerApps:"\uedd2",Suitcase:"\uedd3",ProjectLogoInverse:"\uedd4",CaretLeft8:"\uedd5",CaretRight8:"\uedd6",CaretUp8:"\uedd7",CaretDown8:"\uedd8",CaretLeftSolid8:"\uedd9",CaretRightSolid8:"\uedda",CaretUpSolid8:"\ueddb",CaretDownSolid8:"\ueddc",ClearFormatting:"\ueddd",Superscript:"\uedde",Subscript:"\ueddf",Strikethrough:"\uede0",Export:"\uede1",ExportMirrored:"\uede2"}},t)}function OS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"\uedff",SingleBookmarkSolid:"\uee00",DoubleChevronDown:"\uee04",FollowUser:"\uee05",ReplyAll:"\uee0a",WorkforceManagement:"\uee0f",RecruitmentManagement:"\uee12",Questionnaire:"\uee19",ManagerSelfService:"\uee23",ProductionFloorManagement:"\uee29",ProductRelease:"\uee2e",ProductVariant:"\uee30",ReplyMirrored:"\uee35",ReplyAllMirrored:"\uee36",Medal:"\uee38",AddGroup:"\uee3d",QuestionnaireMirrored:"\uee4b",CloudImportExport:"\uee55",TemporaryUser:"\uee58",CaretSolid16:"\uee62",GroupedDescending:"\uee66",GroupedAscending:"\uee67",AwayStatus:"\uee6a",MyMoviesTV:"\uee6c",GenericScan:"\uee6f",AustralianRules:"\uee70",WifiEthernet:"\uee77",TrackersMirrored:"\uee92",DateTimeMirrored:"\uee93",StopSolid:"\uee95",DoubleChevronUp12:"\uee96",DoubleChevronDown12:"\uee97",DoubleChevronLeft12:"\uee98",DoubleChevronRight12:"\uee99",CalendarAgenda:"\uee9a",ConnectVirtualMachine:"\uee9d",AddEvent:"\ueeb5",AssetLibrary:"\ueeb6",DataConnectionLibrary:"\ueeb7",DocLibrary:"\ueeb8",FormLibrary:"\ueeb9",FormLibraryMirrored:"\ueeba",ReportLibrary:"\ueebb",ReportLibraryMirrored:"\ueebc",ContactCard:"\ueebd",CustomList:"\ueebe",CustomListMirrored:"\ueebf",IssueTracking:"\ueec0",IssueTrackingMirrored:"\ueec1",PictureLibrary:"\ueec2",OfficeAddinsLogo:"\ueec7",OfflineOneDriveParachute:"\ueec8",OfflineOneDriveParachuteDisabled:"\ueec9",TriangleSolidUp12:"\ueecc",TriangleSolidDown12:"\ueecd",TriangleSolidLeft12:"\ueece",TriangleSolidRight12:"\ueecf",TriangleUp12:"\ueed0",TriangleDown12:"\ueed1",TriangleLeft12:"\ueed2",TriangleRight12:"\ueed3",ArrowUpRight8:"\ueed4",ArrowDownRight8:"\ueed5",DocumentSet:"\ueed6",GoToDashboard:"\ueeed",DelveAnalytics:"\ueeee",ArrowUpRightMirrored8:"\ueeef",ArrowDownRightMirrored8:"\ueef0",CompanyDirectory:"\uef0d",OpenEnrollment:"\uef1c",CompanyDirectoryMirrored:"\uef2b",OneDriveAdd:"\uef32",ProfileSearch:"\uef35",Header2:"\uef36",Header3:"\uef37",Header4:"\uef38",RingerSolid:"\uef3a",Eyedropper:"\uef3c",MarketDown:"\uef42",CalendarWorkWeek:"\uef51",SidePanel:"\uef52",GlobeFavorite:"\uef53",CaretTopLeftSolid8:"\uef54",CaretTopRightSolid8:"\uef55",ViewAll2:"\uef56",DocumentReply:"\uef57",PlayerSettings:"\uef58",ReceiptForward:"\uef59",ReceiptReply:"\uef5a",ReceiptCheck:"\uef5b",Fax:"\uef5c",RecurringEvent:"\uef5d",ReplyAlt:"\uef5e",ReplyAllAlt:"\uef5f",EditStyle:"\uef60",EditMail:"\uef61",Lifesaver:"\uef62",LifesaverLock:"\uef63",InboxCheck:"\uef64",FolderSearch:"\uef65"}},t)}function LS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"\uef66",ExpandMenu:"\uef67",Boards:"\uef68",SunAdd:"\uef69",SunQuestionMark:"\uef6a",LandscapeOrientation:"\uef6b",DocumentSearch:"\uef6c",PublicCalendar:"\uef6d",PublicContactCard:"\uef6e",PublicEmail:"\uef6f",PublicFolder:"\uef70",WordDocument:"\uef71",PowerPointDocument:"\uef72",ExcelDocument:"\uef73",GroupedList:"\uef74",ClassroomLogo:"\uef75",Sections:"\uef76",EditPhoto:"\uef77",Starburst:"\uef78",ShareiOS:"\uef79",AirTickets:"\uef7a",PencilReply:"\uef7b",Tiles2:"\uef7c",SkypeCircleCheck:"\uef7d",SkypeCircleClock:"\uef7e",SkypeCircleMinus:"\uef7f",SkypeMessage:"\uef83",ClosedCaption:"\uef84",ATPLogo:"\uef85",OfficeFormsLogoInverse:"\uef86",RecycleBin:"\uef87",EmptyRecycleBin:"\uef88",Hide2:"\uef89",Breadcrumb:"\uef8c",BirthdayCake:"\uef8d",TimeEntry:"\uef95",CRMProcesses:"\uefb1",PageEdit:"\uefb6",PageArrowRight:"\uefb8",PageRemove:"\uefba",Database:"\uefc7",DataManagementSettings:"\uefc8",CRMServices:"\uefd2",EditContact:"\uefd3",ConnectContacts:"\uefd4",AppIconDefaultAdd:"\uefda",AppIconDefaultList:"\uefde",ActivateOrders:"\uefe0",DeactivateOrders:"\uefe1",ProductCatalog:"\uefe8",ScatterChart:"\uefeb",AccountActivity:"\ueff4",DocumentManagement:"\ueffc",CRMReport:"\ueffe",KnowledgeArticle:"\uf000",Relationship:"\uf003",HomeVerify:"\uf00e",ZipFolder:"\uf012",SurveyQuestions:"\uf01b",TextDocument:"\uf029",TextDocumentShared:"\uf02b",PageCheckedOut:"\uf02c",PageShared:"\uf02d",SaveAndClose:"\uf038",Script:"\uf03a",Archive:"\uf03f",ActivityFeed:"\uf056",Compare:"\uf057",EventDate:"\uf059",ArrowUpRight:"\uf069",CaretRight:"\uf06b",SetAction:"\uf071",ChatBot:"\uf08b",CaretSolidLeft:"\uf08d",CaretSolidDown:"\uf08e",CaretSolidRight:"\uf08f",CaretSolidUp:"\uf090",PowerAppsLogo:"\uf091",PowerApps2Logo:"\uf092",SearchIssue:"\uf09a",SearchIssueMirrored:"\uf09b",FabricAssetLibrary:"\uf09c",FabricDataConnectionLibrary:"\uf09d",FabricDocLibrary:"\uf09e",FabricFormLibrary:"\uf09f",FabricFormLibraryMirrored:"\uf0a0",FabricReportLibrary:"\uf0a1",FabricReportLibraryMirrored:"\uf0a2",FabricPublicFolder:"\uf0a3",FabricFolderSearch:"\uf0a4",FabricMovetoFolder:"\uf0a5",FabricUnsyncFolder:"\uf0a6",FabricSyncFolder:"\uf0a7",FabricOpenFolderHorizontal:"\uf0a8",FabricFolder:"\uf0a9",FabricFolderFill:"\uf0aa",FabricNewFolder:"\uf0ab",FabricPictureLibrary:"\uf0ac",PhotoVideoMedia:"\uf0b1",AddFavorite:"\uf0c8"}},t)}function HS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"\uf0c9",BufferTimeBefore:"\uf0cf",BufferTimeAfter:"\uf0d0",BufferTimeBoth:"\uf0d1",PublishContent:"\uf0d4",ClipboardList:"\uf0e3",ClipboardListMirrored:"\uf0e4",CannedChat:"\uf0f2",SkypeForBusinessLogo:"\uf0fc",TabCenter:"\uf100",PageCheckedin:"\uf104",PageList:"\uf106",ReadOutLoud:"\uf112",CaretBottomLeftSolid8:"\uf121",CaretBottomRightSolid8:"\uf122",FolderHorizontal:"\uf12b",MicrosoftStaffhubLogo:"\uf130",GiftboxOpen:"\uf133",StatusCircleOuter:"\uf136",StatusCircleInner:"\uf137",StatusCircleRing:"\uf138",StatusTriangleOuter:"\uf139",StatusTriangleInner:"\uf13a",StatusTriangleExclamation:"\uf13b",StatusCircleExclamation:"\uf13c",StatusCircleErrorX:"\uf13d",StatusCircleInfo:"\uf13f",StatusCircleBlock:"\uf140",StatusCircleBlock2:"\uf141",StatusCircleQuestionMark:"\uf142",StatusCircleSync:"\uf143",Toll:"\uf160",ExploreContentSingle:"\uf164",CollapseContent:"\uf165",CollapseContentSingle:"\uf166",InfoSolid:"\uf167",GroupList:"\uf168",ProgressRingDots:"\uf16a",CaloriesAdd:"\uf172",BranchFork:"\uf173",MuteChat:"\uf17a",AddHome:"\uf17b",AddWork:"\uf17c",MobileReport:"\uf18a",ScaleVolume:"\uf18c",HardDriveGroup:"\uf18f",FastMode:"\uf19a",ToggleLeft:"\uf19e",ToggleRight:"\uf19f",TriangleShape:"\uf1a7",RectangleShape:"\uf1a9",CubeShape:"\uf1aa",Trophy2:"\uf1ae",BucketColor:"\uf1b6",BucketColorFill:"\uf1b7",Taskboard:"\uf1c2",SingleColumn:"\uf1d3",DoubleColumn:"\uf1d4",TripleColumn:"\uf1d5",ColumnLeftTwoThirds:"\uf1d6",ColumnRightTwoThirds:"\uf1d7",AccessLogoFill:"\uf1db",AnalyticsLogo:"\uf1de",AnalyticsQuery:"\uf1df",NewAnalyticsQuery:"\uf1e0",AnalyticsReport:"\uf1e1",WordLogo:"\uf1e3",WordLogoFill:"\uf1e4",ExcelLogo:"\uf1e5",ExcelLogoFill:"\uf1e6",OneNoteLogo:"\uf1e7",OneNoteLogoFill:"\uf1e8",OutlookLogo:"\uf1e9",OutlookLogoFill:"\uf1ea",PowerPointLogo:"\uf1eb",PowerPointLogoFill:"\uf1ec",PublisherLogo:"\uf1ed",PublisherLogoFill:"\uf1ee",ScheduleEventAction:"\uf1ef",FlameSolid:"\uf1f3",ServerProcesses:"\uf1fe",Server:"\uf201",SaveAll:"\uf203",LinkedInLogo:"\uf20a",Decimals:"\uf218",SidePanelMirrored:"\uf221",ProtectRestrict:"\uf22a",Blog:"\uf22b",UnknownMirrored:"\uf22e",PublicContactCardMirrored:"\uf230",GridViewSmall:"\uf232",GridViewMedium:"\uf233",GridViewLarge:"\uf234",Step:"\uf241",StepInsert:"\uf242",StepShared:"\uf243",StepSharedAdd:"\uf244",StepSharedInsert:"\uf245",ViewDashboard:"\uf246",ViewList:"\uf247"}},t)}function VS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"\uf248",ViewListTree:"\uf249",TriggerAuto:"\uf24a",TriggerUser:"\uf24b",PivotChart:"\uf24c",StackedBarChart:"\uf24d",StackedLineChart:"\uf24e",BuildQueue:"\uf24f",BuildQueueNew:"\uf250",UserFollowed:"\uf25c",ContactLink:"\uf25f",Stack:"\uf26f",Bullseye:"\uf272",VennDiagram:"\uf273",FiveTileGrid:"\uf274",FocalPoint:"\uf277",Insert:"\uf278",RingerRemove:"\uf279",TeamsLogoInverse:"\uf27a",TeamsLogo:"\uf27b",TeamsLogoFill:"\uf27c",SkypeForBusinessLogoFill:"\uf27d",SharepointLogo:"\uf27e",SharepointLogoFill:"\uf27f",DelveLogo:"\uf280",DelveLogoFill:"\uf281",OfficeVideoLogo:"\uf282",OfficeVideoLogoFill:"\uf283",ExchangeLogo:"\uf284",ExchangeLogoFill:"\uf285",Signin:"\uf286",DocumentApproval:"\uf28b",CloneToDesktop:"\uf28c",InstallToDrive:"\uf28d",Blur:"\uf28e",Build:"\uf28f",ProcessMetaTask:"\uf290",BranchFork2:"\uf291",BranchLocked:"\uf292",BranchCommit:"\uf293",BranchCompare:"\uf294",BranchMerge:"\uf295",BranchPullRequest:"\uf296",BranchSearch:"\uf297",BranchShelveset:"\uf298",RawSource:"\uf299",MergeDuplicate:"\uf29a",RowsGroup:"\uf29b",RowsChild:"\uf29c",Deploy:"\uf29d",Redeploy:"\uf29e",ServerEnviroment:"\uf29f",VisioDiagram:"\uf2a0",HighlightMappedShapes:"\uf2a1",TextCallout:"\uf2a2",IconSetsFlag:"\uf2a4",VisioLogo:"\uf2a7",VisioLogoFill:"\uf2a8",VisioDocument:"\uf2a9",TimelineProgress:"\uf2aa",TimelineDelivery:"\uf2ab",Backlog:"\uf2ac",TeamFavorite:"\uf2ad",TaskGroup:"\uf2ae",TaskGroupMirrored:"\uf2af",ScopeTemplate:"\uf2b0",AssessmentGroupTemplate:"\uf2b1",NewTeamProject:"\uf2b2",CommentAdd:"\uf2b3",CommentNext:"\uf2b4",CommentPrevious:"\uf2b5",ShopServer:"\uf2b6",LocaleLanguage:"\uf2b7",QueryList:"\uf2b8",UserSync:"\uf2b9",UserPause:"\uf2ba",StreamingOff:"\uf2bb",ArrowTallUpLeft:"\uf2bd",ArrowTallUpRight:"\uf2be",ArrowTallDownLeft:"\uf2bf",ArrowTallDownRight:"\uf2c0",FieldEmpty:"\uf2c1",FieldFilled:"\uf2c2",FieldChanged:"\uf2c3",FieldNotChanged:"\uf2c4",RingerOff:"\uf2c5",PlayResume:"\uf2c6",BulletedList2:"\uf2c7",BulletedList2Mirrored:"\uf2c8",ImageCrosshair:"\uf2c9",GitGraph:"\uf2ca",Repo:"\uf2cb",RepoSolid:"\uf2cc",FolderQuery:"\uf2cd",FolderList:"\uf2ce",FolderListMirrored:"\uf2cf",LocationOutline:"\uf2d0",POISolid:"\uf2d1",CalculatorNotEqualTo:"\uf2d2",BoxSubtractSolid:"\uf2d3"}},t)}function zS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"\uf2d4",BoxMultiplySolid:"\uf2d5",BoxPlaySolid:"\uf2d6",BoxCheckmarkSolid:"\uf2d7",CirclePauseSolid:"\uf2d8",CirclePause:"\uf2d9",MSNVideosSolid:"\uf2da",CircleStopSolid:"\uf2db",CircleStop:"\uf2dc",NavigateBack:"\uf2dd",NavigateBackMirrored:"\uf2de",NavigateForward:"\uf2df",NavigateForwardMirrored:"\uf2e0",UnknownSolid:"\uf2e1",UnknownMirroredSolid:"\uf2e2",CircleAddition:"\uf2e3",CircleAdditionSolid:"\uf2e4",FilePDB:"\uf2e5",FileTemplate:"\uf2e6",FileSQL:"\uf2e7",FileJAVA:"\uf2e8",FileASPX:"\uf2e9",FileCSS:"\uf2ea",FileSass:"\uf2eb",FileLess:"\uf2ec",FileHTML:"\uf2ed",JavaScriptLanguage:"\uf2ee",CSharpLanguage:"\uf2ef",CSharp:"\uf2f0",VisualBasicLanguage:"\uf2f1",VB:"\uf2f2",CPlusPlusLanguage:"\uf2f3",CPlusPlus:"\uf2f4",FSharpLanguage:"\uf2f5",FSharp:"\uf2f6",TypeScriptLanguage:"\uf2f7",PythonLanguage:"\uf2f8",PY:"\uf2f9",CoffeeScript:"\uf2fa",MarkDownLanguage:"\uf2fb",FullWidth:"\uf2fe",FullWidthEdit:"\uf2ff",Plug:"\uf300",PlugSolid:"\uf301",PlugConnected:"\uf302",PlugDisconnected:"\uf303",UnlockSolid:"\uf304",Variable:"\uf305",Parameter:"\uf306",CommentUrgent:"\uf307",Storyboard:"\uf308",DiffInline:"\uf309",DiffSideBySide:"\uf30a",ImageDiff:"\uf30b",ImagePixel:"\uf30c",FileBug:"\uf30d",FileCode:"\uf30e",FileComment:"\uf30f",BusinessHoursSign:"\uf310",FileImage:"\uf311",FileSymlink:"\uf312",AutoFillTemplate:"\uf313",WorkItem:"\uf314",WorkItemBug:"\uf315",LogRemove:"\uf316",ColumnOptions:"\uf317",Packages:"\uf318",BuildIssue:"\uf319",AssessmentGroup:"\uf31a",VariableGroup:"\uf31b",FullHistory:"\uf31c",Wheelchair:"\uf31f",SingleColumnEdit:"\uf321",DoubleColumnEdit:"\uf322",TripleColumnEdit:"\uf323",ColumnLeftTwoThirdsEdit:"\uf324",ColumnRightTwoThirdsEdit:"\uf325",StreamLogo:"\uf329",PassiveAuthentication:"\uf32a",AlertSolid:"\uf331",MegaphoneSolid:"\uf332",TaskSolid:"\uf333",ConfigurationSolid:"\uf334",BugSolid:"\uf335",CrownSolid:"\uf336",Trophy2Solid:"\uf337",QuickNoteSolid:"\uf338",ConstructionConeSolid:"\uf339",PageListSolid:"\uf33a",PageListMirroredSolid:"\uf33b",StarburstSolid:"\uf33c",ReadingModeSolid:"\uf33d",SadSolid:"\uf33e",HealthSolid:"\uf33f",ShieldSolid:"\uf340",GiftBoxSolid:"\uf341",ShoppingCartSolid:"\uf342",MailSolid:"\uf343",ChatSolid:"\uf344",RibbonSolid:"\uf345"}},t)}function US(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"\uf346",FinancialMirroredSolid:"\uf347",HeadsetSolid:"\uf348",PermissionsSolid:"\uf349",ParkingSolid:"\uf34a",ParkingMirroredSolid:"\uf34b",DiamondSolid:"\uf34c",AsteriskSolid:"\uf34d",OfflineStorageSolid:"\uf34e",BankSolid:"\uf34f",DecisionSolid:"\uf350",Parachute:"\uf351",ParachuteSolid:"\uf352",FiltersSolid:"\uf353",ColorSolid:"\uf354",ReviewSolid:"\uf355",ReviewRequestSolid:"\uf356",ReviewRequestMirroredSolid:"\uf357",ReviewResponseSolid:"\uf358",FeedbackRequestSolid:"\uf359",FeedbackRequestMirroredSolid:"\uf35a",FeedbackResponseSolid:"\uf35b",WorkItemBar:"\uf35c",WorkItemBarSolid:"\uf35d",Separator:"\uf35e",NavigateExternalInline:"\uf35f",PlanView:"\uf360",TimelineMatrixView:"\uf361",EngineeringGroup:"\uf362",ProjectCollection:"\uf363",CaretBottomRightCenter8:"\uf364",CaretBottomLeftCenter8:"\uf365",CaretTopRightCenter8:"\uf366",CaretTopLeftCenter8:"\uf367",DonutChart:"\uf368",ChevronUnfold10:"\uf369",ChevronFold10:"\uf36a",DoubleChevronDown8:"\uf36b",DoubleChevronUp8:"\uf36c",DoubleChevronLeft8:"\uf36d",DoubleChevronRight8:"\uf36e",ChevronDownEnd6:"\uf36f",ChevronUpEnd6:"\uf370",ChevronLeftEnd6:"\uf371",ChevronRightEnd6:"\uf372",ContextMenu:"\uf37c",AzureAPIManagement:"\uf37f",AzureServiceEndpoint:"\uf380",VSTSLogo:"\uf381",VSTSAltLogo1:"\uf382",VSTSAltLogo2:"\uf383",FileTypeSolution:"\uf387",WordLogoInverse16:"\uf390",WordLogo16:"\uf391",WordLogoFill16:"\uf392",PowerPointLogoInverse16:"\uf393",PowerPointLogo16:"\uf394",PowerPointLogoFill16:"\uf395",ExcelLogoInverse16:"\uf396",ExcelLogo16:"\uf397",ExcelLogoFill16:"\uf398",OneNoteLogoInverse16:"\uf399",OneNoteLogo16:"\uf39a",OneNoteLogoFill16:"\uf39b",OutlookLogoInverse16:"\uf39c",OutlookLogo16:"\uf39d",OutlookLogoFill16:"\uf39e",PublisherLogoInverse16:"\uf39f",PublisherLogo16:"\uf3a0",PublisherLogoFill16:"\uf3a1",VisioLogoInverse16:"\uf3a2",VisioLogo16:"\uf3a3",VisioLogoFill16:"\uf3a4",TestBeaker:"\uf3a5",TestBeakerSolid:"\uf3a6",TestExploreSolid:"\uf3a7",TestAutoSolid:"\uf3a8",TestUserSolid:"\uf3a9",TestImpactSolid:"\uf3aa",TestPlan:"\uf3ab",TestStep:"\uf3ac",TestParameter:"\uf3ad",TestSuite:"\uf3ae",TestCase:"\uf3af",Sprint:"\uf3b0",SignOut:"\uf3b1",TriggerApproval:"\uf3b2",Rocket:"\uf3b3",AzureKeyVault:"\uf3b4",Onboarding:"\uf3ba",Transition:"\uf3bc",LikeSolid:"\uf3bf",DislikeSolid:"\uf3c0",CRMCustomerInsightsApp:"\uf3c8",EditCreate:"\uf3c9",PlayReverseResume:"\uf3e4",PlayReverse:"\uf3e5",SearchData:"\uf3f1",UnSetColor:"\uf3f9",DeclineCall:"\uf405"}},t)}function WS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"\uf407",TeamsLogo16:"\uf40a",TeamsLogoFill16:"\uf40b",Spacer:"\uf40d",SkypeLogo16:"\uf40e",SkypeForBusinessLogo16:"\uf40f",SkypeForBusinessLogoFill16:"\uf410",FilterSolid:"\uf412",MailUndelivered:"\uf415",MailTentative:"\uf416",MailTentativeMirrored:"\uf417",MailReminder:"\uf418",ReceiptUndelivered:"\uf419",ReceiptTentative:"\uf41a",ReceiptTentativeMirrored:"\uf41b",Inbox:"\uf41c",IRMReply:"\uf41d",IRMReplyMirrored:"\uf41e",IRMForward:"\uf41f",IRMForwardMirrored:"\uf420",VoicemailIRM:"\uf421",EventAccepted:"\uf422",EventTentative:"\uf423",EventTentativeMirrored:"\uf424",EventDeclined:"\uf425",IDBadge:"\uf427",BackgroundColor:"\uf42b",OfficeFormsLogoInverse16:"\uf433",OfficeFormsLogo:"\uf434",OfficeFormsLogoFill:"\uf435",OfficeFormsLogo16:"\uf436",OfficeFormsLogoFill16:"\uf437",OfficeFormsLogoInverse24:"\uf43a",OfficeFormsLogo24:"\uf43b",OfficeFormsLogoFill24:"\uf43c",PageLock:"\uf43f",NotExecuted:"\uf440",NotImpactedSolid:"\uf441",FieldReadOnly:"\uf442",FieldRequired:"\uf443",BacklogBoard:"\uf444",ExternalBuild:"\uf445",ExternalTFVC:"\uf446",ExternalXAML:"\uf447",IssueSolid:"\uf448",DefectSolid:"\uf449",LadybugSolid:"\uf44a",NugetLogo:"\uf44c",TFVCLogo:"\uf44d",ProjectLogo32:"\uf47e",ProjectLogoFill32:"\uf47f",ProjectLogo16:"\uf480",ProjectLogoFill16:"\uf481",SwayLogo32:"\uf482",SwayLogoFill32:"\uf483",SwayLogo16:"\uf484",SwayLogoFill16:"\uf485",ClassNotebookLogo32:"\uf486",ClassNotebookLogoFill32:"\uf487",ClassNotebookLogo16:"\uf488",ClassNotebookLogoFill16:"\uf489",ClassNotebookLogoInverse32:"\uf48a",ClassNotebookLogoInverse16:"\uf48b",StaffNotebookLogo32:"\uf48c",StaffNotebookLogoFill32:"\uf48d",StaffNotebookLogo16:"\uf48e",StaffNotebookLogoFill16:"\uf48f",StaffNotebookLogoInverted32:"\uf490",StaffNotebookLogoInverted16:"\uf491",KaizalaLogo:"\uf492",TaskLogo:"\uf493",ProtectionCenterLogo32:"\uf494",GallatinLogo:"\uf496",Globe2:"\uf49a",Guitar:"\uf49b",Breakfast:"\uf49c",Brunch:"\uf49d",BeerMug:"\uf49e",Vacation:"\uf49f",Teeth:"\uf4a0",Taxi:"\uf4a1",Chopsticks:"\uf4a2",SyncOccurence:"\uf4a3",UnsyncOccurence:"\uf4a4",GIF:"\uf4a9",PrimaryCalendar:"\uf4ae",SearchCalendar:"\uf4af",VideoOff:"\uf4b0",MicrosoftFlowLogo:"\uf4b1",BusinessCenterLogo:"\uf4b2",ToDoLogoBottom:"\uf4b3",ToDoLogoTop:"\uf4b4",EditSolid12:"\uf4b5",EditSolidMirrored12:"\uf4b6",UneditableSolid12:"\uf4b7",UneditableSolidMirrored12:"\uf4b8",UneditableMirrored:"\uf4b9",AdminALogo32:"\uf4ba",AdminALogoFill32:"\uf4bb",ToDoLogoInverse:"\uf4bc"}},t)}function GS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"\uf4bd",WaffleOffice365:"\uf4e0",ImageSearch:"\uf4e8",NewsSearch:"\uf4e9",VideoSearch:"\uf4ea",R:"\uf4eb",FontColorA:"\uf4ec",FontColorSwatch:"\uf4ed",LightWeight:"\uf4ee",NormalWeight:"\uf4ef",SemiboldWeight:"\uf4f0",GroupObject:"\uf4f1",UngroupObject:"\uf4f2",AlignHorizontalLeft:"\uf4f3",AlignHorizontalCenter:"\uf4f4",AlignHorizontalRight:"\uf4f5",AlignVerticalTop:"\uf4f6",AlignVerticalCenter:"\uf4f7",AlignVerticalBottom:"\uf4f8",HorizontalDistributeCenter:"\uf4f9",VerticalDistributeCenter:"\uf4fa",Ellipse:"\uf4fb",Line:"\uf4fc",Octagon:"\uf4fd",Hexagon:"\uf4fe",Pentagon:"\uf4ff",RightTriangle:"\uf500",HalfCircle:"\uf501",QuarterCircle:"\uf502",ThreeQuarterCircle:"\uf503","6PointStar":"\uf504","12PointStar":"\uf505",ArrangeBringToFront:"\uf506",ArrangeSendToBack:"\uf507",ArrangeSendBackward:"\uf508",ArrangeBringForward:"\uf509",BorderDash:"\uf50a",BorderDot:"\uf50b",LineStyle:"\uf50c",LineThickness:"\uf50d",WindowEdit:"\uf50e",HintText:"\uf50f",MediaAdd:"\uf510",AnchorLock:"\uf511",AutoHeight:"\uf512",ChartSeries:"\uf513",ChartXAngle:"\uf514",ChartYAngle:"\uf515",Combobox:"\uf516",LineSpacing:"\uf517",Padding:"\uf518",PaddingTop:"\uf519",PaddingBottom:"\uf51a",PaddingLeft:"\uf51b",PaddingRight:"\uf51c",NavigationFlipper:"\uf51d",AlignJustify:"\uf51e",TextOverflow:"\uf51f",VisualsFolder:"\uf520",VisualsStore:"\uf521",PictureCenter:"\uf522",PictureFill:"\uf523",PicturePosition:"\uf524",PictureStretch:"\uf525",PictureTile:"\uf526",Slider:"\uf527",SliderHandleSize:"\uf528",DefaultRatio:"\uf529",NumberSequence:"\uf52a",GUID:"\uf52b",ReportAdd:"\uf52c",DashboardAdd:"\uf52d",MapPinSolid:"\uf52e",WebPublish:"\uf52f",PieSingleSolid:"\uf530",BlockedSolid:"\uf531",DrillDown:"\uf532",DrillDownSolid:"\uf533",DrillExpand:"\uf534",DrillShow:"\uf535",SpecialEvent:"\uf536",OneDriveFolder16:"\uf53b",FunctionalManagerDashboard:"\uf542",BIDashboard:"\uf543",CodeEdit:"\uf544",RenewalCurrent:"\uf545",RenewalFuture:"\uf546",SplitObject:"\uf547",BulkUpload:"\uf548",DownloadDocument:"\uf549",GreetingCard:"\uf54b",Flower:"\uf54e",WaitlistConfirm:"\uf550",WaitlistConfirmMirrored:"\uf551",LaptopSecure:"\uf552",DragObject:"\uf553",EntryView:"\uf554",EntryDecline:"\uf555",ContactCardSettings:"\uf556",ContactCardSettingsMirrored:"\uf557"}},t)}function jS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"\uf558",CalendarSettingsMirrored:"\uf559",HardDriveLock:"\uf55a",HardDriveUnlock:"\uf55b",AccountManagement:"\uf55c",ReportWarning:"\uf569",TransitionPop:"\uf5b2",TransitionPush:"\uf5b3",TransitionEffect:"\uf5b4",LookupEntities:"\uf5b5",ExploreData:"\uf5b6",AddBookmark:"\uf5b7",SearchBookmark:"\uf5b8",DrillThrough:"\uf5b9",MasterDatabase:"\uf5ba",CertifiedDatabase:"\uf5bb",MaximumValue:"\uf5bc",MinimumValue:"\uf5bd",VisualStudioIDELogo32:"\uf5d0",PasteAsText:"\uf5d5",PasteAsCode:"\uf5d6",BrowserTab:"\uf5d7",BrowserTabScreenshot:"\uf5d8",DesktopScreenshot:"\uf5d9",FileYML:"\uf5da",ClipboardSolid:"\uf5dc",FabricUserFolder:"\uf5e5",FabricNetworkFolder:"\uf5e6",BullseyeTarget:"\uf5f0",AnalyticsView:"\uf5f1",Video360Generic:"\uf609",Untag:"\uf60b",Leave:"\uf627",Trending12:"\uf62d",Blocked12:"\uf62e",Warning12:"\uf62f",CheckedOutByOther12:"\uf630",CheckedOutByYou12:"\uf631",CircleShapeSolid:"\uf63c",SquareShapeSolid:"\uf63d",TriangleShapeSolid:"\uf63e",DropShapeSolid:"\uf63f",RectangleShapeSolid:"\uf640",ZoomToFit:"\uf649",InsertColumnsLeft:"\uf64a",InsertColumnsRight:"\uf64b",InsertRowsAbove:"\uf64c",InsertRowsBelow:"\uf64d",DeleteColumns:"\uf64e",DeleteRows:"\uf64f",DeleteRowsMirrored:"\uf650",DeleteTable:"\uf651",AccountBrowser:"\uf652",VersionControlPush:"\uf664",StackedColumnChart2:"\uf666",TripleColumnWide:"\uf66e",QuadColumn:"\uf66f",WhiteBoardApp16:"\uf673",WhiteBoardApp32:"\uf674",PinnedSolid:"\uf676",InsertSignatureLine:"\uf677",ArrangeByFrom:"\uf678",Phishing:"\uf679",CreateMailRule:"\uf67a",PublishCourse:"\uf699",DictionaryRemove:"\uf69a",UserRemove:"\uf69b",UserEvent:"\uf69c",Encryption:"\uf69d",PasswordField:"\uf6aa",OpenInNewTab:"\uf6ab",Hide3:"\uf6ac",VerifiedBrandSolid:"\uf6ad",MarkAsProtected:"\uf6ae",AuthenticatorApp:"\uf6b1",WebTemplate:"\uf6b2",DefenderTVM:"\uf6b3",MedalSolid:"\uf6b9",D365TalentLearn:"\uf6bb",D365TalentInsight:"\uf6bc",D365TalentHRCore:"\uf6bd",BacklogList:"\uf6bf",ButtonControl:"\uf6c0",TableGroup:"\uf6d9",MountainClimbing:"\uf6db",TagUnknown:"\uf6df",TagUnknownMirror:"\uf6e0",TagUnknown12:"\uf6e1",TagUnknown12Mirror:"\uf6e2",Link12:"\uf6e3",Presentation:"\uf6e4",Presentation12:"\uf6e5",Lock12:"\uf6e6",BuildDefinition:"\uf6e9",ReleaseDefinition:"\uf6ea",SaveTemplate:"\uf6ec",UserGauge:"\uf6ed",BlockedSiteSolid12:"\uf70a",TagSolid:"\uf70e",OfficeChat:"\uf70f"}},t)}function qS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"\uf710",MailSchedule:"\uf72e",WarningSolid:"\uf736",Blocked2Solid:"\uf737",SkypeCircleArrow:"\uf747",SkypeArrow:"\uf748",SyncStatus:"\uf751",SyncStatusSolid:"\uf752",ProjectDocument:"\uf759",ToDoLogoOutline:"\uf75b",VisioOnlineLogoFill32:"\uf75f",VisioOnlineLogo32:"\uf760",VisioOnlineLogoCloud32:"\uf761",VisioDiagramSync:"\uf762",Event12:"\uf763",EventDateMissed12:"\uf764",UserOptional:"\uf767",ResponsesMenu:"\uf768",DoubleDownArrow:"\uf769",DistributeDown:"\uf76a",BookmarkReport:"\uf76b",FilterSettings:"\uf76c",GripperDotsVertical:"\uf772",MailAttached:"\uf774",AddIn:"\uf775",LinkedDatabase:"\uf779",TableLink:"\uf77a",PromotedDatabase:"\uf77d",BarChartVerticalFilter:"\uf77e",BarChartVerticalFilterSolid:"\uf77f",MicOff2:"\uf781",MicrosoftTranslatorLogo:"\uf782",ShowTimeAs:"\uf787",FileRequest:"\uf789",WorkItemAlert:"\uf78f",PowerBILogo16:"\uf790",PowerBILogoBackplate16:"\uf791",BulletedListText:"\uf792",BulletedListBullet:"\uf793",BulletedListTextMirrored:"\uf794",BulletedListBulletMirrored:"\uf795",NumberedListText:"\uf796",NumberedListNumber:"\uf797",NumberedListTextMirrored:"\uf798",NumberedListNumberMirrored:"\uf799",RemoveLinkChain:"\uf79a",RemoveLinkX:"\uf79b",FabricTextHighlight:"\uf79c",ClearFormattingA:"\uf79d",ClearFormattingEraser:"\uf79e",Photo2Fill:"\uf79f",IncreaseIndentText:"\uf7a0",IncreaseIndentArrow:"\uf7a1",DecreaseIndentText:"\uf7a2",DecreaseIndentArrow:"\uf7a3",IncreaseIndentTextMirrored:"\uf7a4",IncreaseIndentArrowMirrored:"\uf7a5",DecreaseIndentTextMirrored:"\uf7a6",DecreaseIndentArrowMirrored:"\uf7a7",CheckListText:"\uf7a8",CheckListCheck:"\uf7a9",CheckListTextMirrored:"\uf7aa",CheckListCheckMirrored:"\uf7ab",NumberSymbol:"\uf7ac",Coupon:"\uf7bc",VerifiedBrand:"\uf7bd",ReleaseGate:"\uf7be",ReleaseGateCheck:"\uf7bf",ReleaseGateError:"\uf7c0",M365InvoicingLogo:"\uf7c1",RemoveFromShoppingList:"\uf7d5",ShieldAlert:"\uf7d7",FabricTextHighlightComposite:"\uf7da",Dataflows:"\uf7dd",GenericScanFilled:"\uf7de",DiagnosticDataBarTooltip:"\uf7df",SaveToMobile:"\uf7e0",Orientation2:"\uf7e1",ScreenCast:"\uf7e2",ShowGrid:"\uf7e3",SnapToGrid:"\uf7e4",ContactList:"\uf7e5",NewMail:"\uf7ea",EyeShadow:"\uf7eb",FabricFolderConfirm:"\uf7ff",InformationBarriers:"\uf803",CommentActive:"\uf804",ColumnVerticalSectionEdit:"\uf806",WavingHand:"\uf807",ShakeDevice:"\uf80a",SmartGlassRemote:"\uf80b",Rotate90Clockwise:"\uf80d",Rotate90CounterClockwise:"\uf80e",CampaignTemplate:"\uf811",ChartTemplate:"\uf812",PageListFilter:"\uf813",SecondaryNav:"\uf814",ColumnVerticalSection:"\uf81e",SkypeCircleSlash:"\uf825",SkypeSlash:"\uf826"}},t)}function KS(e,t){void 0===e&&(e=""),no({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"\uf828",DuplicateRow:"\uf82a",RemoveFromTrash:"\uf82b",MailOptions:"\uf82c",Childof:"\uf82d",Footer:"\uf82e",Header:"\uf82f",BarChartVerticalFill:"\uf830",StackedColumnChart2Fill:"\uf831",PlainText:"\uf834",AccessibiltyChecker:"\uf835",DatabaseSync:"\uf842",ReservationOrders:"\uf845",TabOneColumn:"\uf849",TabTwoColumn:"\uf84a",TabThreeColumn:"\uf84b",BulletedTreeList:"\uf84c",MicrosoftTranslatorLogoGreen:"\uf852",MicrosoftTranslatorLogoBlue:"\uf853",InternalInvestigation:"\uf854",AddReaction:"\uf85d",ContactHeart:"\uf862",VisuallyImpaired:"\uf866",EventToDoLogo:"\uf869",Variable2:"\uf86d",ModelingView:"\uf871",DisconnectVirtualMachine:"\uf873",ReportLock:"\uf875",Uneditable2:"\uf876",Uneditable2Mirrored:"\uf877",BarChartVerticalEdit:"\uf89d",GlobalNavButtonActive:"\uf89f",PollResults:"\uf8a0",Rerun:"\uf8a1",QandA:"\uf8a2",QandAMirror:"\uf8a3",BookAnswers:"\uf8a4",AlertSettings:"\uf8b6",TrimStart:"\uf8bb",TrimEnd:"\uf8bc",TableComputed:"\uf8f5",DecreaseIndentLegacy:"\ue290",IncreaseIndentLegacy:"\ue291",SizeLegacy:"\ue2b2"}},t)}g("@fluentui/font-icons-mdl2","8.1.14");function YS(e,t){void 0===e&&(e="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/"),[TS,DS,AS,RS,NS,MS,FS,BS,OS,LS,HS,VS,zS,US,WS,GS,jS,qS,KS].forEach((function(n){return n(e,t)})),ro("trash","delete"),ro("onedrive","onedrivelogo"),ro("alertsolid12","eventdatemissed12"),ro("sixpointstar","6pointstar"),ro("twelvepointstar","12pointstar"),ro("toggleon","toggleleft"),ro("toggleoff","toggleright")}var XS,QS,ZS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,r=e.theme,i=e.disabled,a=e.visible,s=Ft()(n,{theme:r,disabled:i,visible:a});return o.createElement("div",{className:s.container},o.createElement("span",{className:s.root},t))},t}(o.Component),JS=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},$S=function(e){return function(t){return ne({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},ex=Kr(ZS,(function(e){var t,n=e.theme,r=e.disabled,o=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},r&&{opacity:.5,selectors:(t={},t[Ci]={color:"GrayText",opacity:1},t)},!o&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},r&&{color:n.palette.neutralTertiaryAlt}]}}),void 0,{scope:"KeytipContent"}),tx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,r=t.offset,i=t.overflowSetSequence,a=this.props.calloutProps;return e=Iu(i?wu(n,i):n),r&&(a=u(u({},a),{coverTarget:!0,directionalHint:xa})),a&&void 0!==a.directionalHint||(a=u(u({},a),{directionalHint:Ia})),o.createElement(ul,u({},a,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:r?$S(r):JS,preventDismissOnScroll:!0,target:e}),o.createElement(ex,u({},this.props)))},t}(o.Component),nx=function(e){return{root:[{zIndex:bi.KeytipLayer}]}},rx=function(){function e(){this.nodeMap={},this.root={id:_u,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var r=this._getFullSequence(e),o=ku(r);r.pop();var i=this._getParentID(r),a=this._createNode(o,i,[],e,n);this.nodeMap[t]=a,this.getNodes([i]).forEach((function(e){return e.children.push(o)}))},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),r=ku(n);n.pop();var o=this._getParentID(n),i=this.nodeMap[t],a=i.parent;if(i){if(a!==o&&this._removeChildFromParents(a,i.id),i.id!==r)this.getNodes([o]).forEach((function(e){var t=e.children.indexOf(i.id);t>=0?e.children[t]=r:e.children.push(r)}));i.id=r,i.keySequences=e.keySequences,i.overflowSetSequence=e.overflowSetSequence,i.onExecute=e.onExecute,i.onReturn=e.onReturn,i.hasDynamicChildren=e.hasDynamicChildren,i.hasMenu=e.hasMenu,i.parent=o,i.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),r=ku(n);n.pop(),this._removeChildFromParents(this._getParentID(n),r),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t){var n=this;return gt(this.getNodes(t.children),(function(t){return n._getNodeSequence(t)===e&&!t.disabled}))},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter((function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled}))},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce((function(e,r){return n.indexOf(t.nodeMap[r].id)>=0&&!t.nodeMap[r].persisted&&e.push(t.nodeMap[r].id),e}),[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce((function(n,r){return e.indexOf(t.nodeMap[r].id)>=0&&n.push(t.nodeMap[r]),n}),[])},e.prototype.getNode=function(e){var t;return gt((t=this.nodeMap,Object.keys(t).reduce((function(e,n){return e.push(t[n]),e}),[])),(function(t){return t.id===e}))},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=h(e.keySequences);e.overflowSetSequence&&(t=wu(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:ku(t),r=!1;if(this.currentKeytip.overflowSetSequence)r=ku(this.currentKeytip.keySequences)===n;return r||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:ku(e)},e.prototype._getFullSequence=function(e){var t=h(e.keySequences);return e.overflowSetSequence&&(t=wu(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=h(e.keySequences);return e.overflowSetSequence&&(t=wu(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,r,o){var i=this,a=r.keySequences,s=r.hasDynamicChildren,l=r.overflowSetSequence,c=r.hasMenu,u=r.onExecute,d=r.onReturn,p=r.disabled,h={id:e,keySequences:a,overflowSetSequence:l,parent:t,children:n,onExecute:u,onReturn:d,hasDynamicChildren:s,hasMenu:c,disabled:p,persisted:o};return h.children=Object.keys(this.nodeMap).reduce((function(t,n){return i.nodeMap[n].parent===e&&t.push(i.nodeMap[n].id),t}),[]),h},e.prototype._removeChildFromParents=function(e,t){this.getNodes([e]).forEach((function(e){var n=e.children.indexOf(t);n>=0&&e.children.splice(n,1)}))},e}(),ox={key:Mr()?"Control":"Meta",modifierKeys:[Ke]},ix=ox,ax={key:"Escape"},sx=Ft(),lx=function(e){function t(t,n){var r=e.call(this,t,n)||this;r._keytipManager=Eu.getInstance(),r._delayedKeytipQueue=[],r._keyHandled=!1,r._onDismiss=function(e){r.state.inKeytipMode&&r._exitKeytipMode(e)},r._onKeyDown=function(e){r._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":r.state.inKeytipMode&&(r._keyHandled=!0,r._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var n={key:t};n.modifierKeys=r._getModifierKey(t,e),r.processTransitionInput(n,e)}},r._onKeyPress=function(e){r.state.inKeytipMode&&!r._keyHandled&&(r.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},r._onKeytipAdded=function(e){var t,n=e.keytip,o=e.uniqueID;if(r._keytipTree.addNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(ku(n.keySequences)),r._keytipTree.currentKeytip&&r._keytipTree.currentKeytip.hasDynamicChildren&&r._keytipTree.currentKeytip.children.indexOf(n.id)<0)){var i=r._keytipTree.getNode(r._keytipTree.currentKeytip.id);i&&(r._keytipTree.currentKeytip=i)}r._persistedKeytipChecks(n)},r._onKeytipUpdated=function(e){var t,n=e.keytip,o=e.uniqueID;r._keytipTree.updateNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(ku(n.keySequences))),r._persistedKeytipChecks(n)},r._persistedKeytipChecks=function(e){if(r._newCurrentKeytipSequences&&vt(e.keySequences,r._newCurrentKeytipSequences)&&r._triggerKeytipImmediately(e),r._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=wu(t,e.overflowSetSequence)),r._keytipTree.currentKeytip=r._keytipTree.getNode(ku(t))}},r._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._removeKeytipFromQueue(ku(t.keySequences)),r._keytipTree.removeNode(t,n),r._setKeytips()},r._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.addNode(t,n,!0)},r._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.removeNode(t,n)},r._onPersistedKeytipExecute=function(e){r._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},r._setInKeytipMode=function(e){r.setState({inKeytipMode:e}),r._keytipManager.inKeytipMode=e},r._warnIfDuplicateKeytips=function(){var e=r._getDuplicateIds(r._keytipTree.getChildren());e.length&&De("Duplicate keytips found for "+e.join(", "))},r._getDuplicateIds=function(e){var t={};return e.filter((function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]}))},or(r),r._events=new ge(r),r._async=new de(r);var o=r._keytipManager.getKeytips();return r.state={inKeytipMode:!1,keytips:o,visibleKeytips:r._getVisibleKeytips(o)},r._buildTree(),r._currentSequence="",r._events.on(r._keytipManager,Cu.KEYTIP_ADDED,r._onKeytipAdded),r._events.on(r._keytipManager,Cu.KEYTIP_UPDATED,r._onKeytipUpdated),r._events.on(r._keytipManager,Cu.KEYTIP_REMOVED,r._onKeytipRemoved),r._events.on(r._keytipManager,Cu.PERSISTED_KEYTIP_ADDED,r._onPersistedKeytipAdded),r._events.on(r._keytipManager,Cu.PERSISTED_KEYTIP_REMOVED,r._onPersistedKeytipRemoved),r._events.on(r._keytipManager,Cu.PERSISTED_KEYTIP_EXECUTE,r._onPersistedKeytipExecute),r}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.styles,i=this.state,a=i.keytips,s=i.visibleKeytips;return this._classNames=sx(r,{}),o.createElement(cl,{styles:nx},o.createElement("span",{id:_u,className:this._classNames.innerContent},n+", "),a&&a.map((function(t,n){return o.createElement("span",{key:n,id:ku(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(", "))})),s&&s.map((function(e){return o.createElement(tx,u({key:ku(e.keySequences)},e))})))},t.prototype.componentDidMount=function(){this._events.on(window,"mouseup",this._onDismiss,!0),this._events.on(window,"pointerup",this._onDismiss,!0),this._events.on(window,"resize",this._onDismiss),this._events.on(window,"keydown",this._onKeyDown,!0),this._events.on(window,"keypress",this._onKeyPress,!0),this._events.on(window,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,Cu.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,Cu.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;bu(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):bu(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):bu(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,r=this._keytipTree.currentKeytip;if(r){var o=this._keytipTree.getExactMatchedNode(n,r);if(o){this._keytipTree.currentKeytip=r=o;var i=this._keytipTree.getChildren();return r.onExecute&&(r.onExecute(this._getKtpExecuteTarget(r),this._getKtpTarget(r)),r=this._keytipTree.currentKeytip),0!==i.length||r.hasDynamicChildren||r.hasMenu?(this.showKeytips(i),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}var a=this._keytipTree.getPartiallyMatchedNodes(n,r);if(a.length>0){var s=a.filter((function(e){return!e.persisted})).map((function(e){return e.id}));this.showKeytips(s),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var r=n[t],o=ku(r.keySequences);r.overflowSetSequence&&(o=ku(wu(r.keySequences,r.overflowSetSequence))),e.indexOf(o)>=0?r.visible=!0:r.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},t.prototype._buildTree=function(){this._keytipTree=new rx;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],r=this._keytipManager.keytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}for(var o=0,i=Object.keys(this._keytipManager.persistedKeytips);o<i.length;o++){n=i[o],r=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(ku(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t={};return e.filter((function(e){var n=ku(e.keySequences);return e.overflowSetSequence&&(n=ku(wu(e.keySequences,e.overflowSetSequence))),t[n]=t[n]?t[n]+1:1,e.visible&&1===t[n]}))},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(Ke),t.ctrlKey&&"Control"!==e&&n.push(qe),t.shiftKey&&"Shift"!==e&&n.push(je),t.metaKey&&"Meta"!==e&&n.push(dt),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=h(e.keySequences);if(e.overflowSetSequence&&(t=wu(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(ku(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300))},t.prototype._getKtpExecuteTarget=function(e){return ve().querySelector('[data-ktp-execute-target="'+e.id+'"]')},t.prototype._getKtpTarget=function(e){return ve().querySelector(Iu(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!vt(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[ox],keytipExitSequences:[ix],keytipReturnSequences:[ax],content:""},t}(o.Component),cx=(Kr(lx,(function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}}),void 0,{scope:"KeytipLayer"}),Ft()),ux=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onMouseDown=function(e){var t=n.props,r=t.isEnabled,o=t.onShouldStartSelection;n._isMouseEventOnScrollbar(e)||n._isInSelectionToggle(e)||n._isTouch||!r||n._isDragStartInSelection(e)||o&&!o(e)||n._scrollableSurface&&0===e.button&&n._root.current&&(n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(window,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(window,"click",n._onMouseUp,!0),n._autoScroll=new Pe(n._root.current),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e))},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0))},or(n),n._async=new de(n),n._events=new ge(n),n.state={dragRect:void 0},n}return c(t,e),t.prototype.componentDidMount=function(){this._scrollableParent=ke(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,r=e.theme,i=e.className,a=e.styles,s=this.state.dragRect,l=cx(a,{theme:r,className:i});return o.createElement("div",u({},t,{className:l.root,ref:this._root}),n,s&&o.createElement("div",{className:l.dragMask}),s&&o.createElement("div",{className:l.box,style:s},o.createElement("div",{className:l.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth,r=t.offsetHeight-t.clientHeight;if(n||r){var o=t.getBoundingClientRect();if(xt(this.props.theme)){if(e.clientX<o.left+n)return!0}else if(e.clientX>o.left+t.clientWidth)return!0;if(e.clientY>o.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame((function(){t._onMouseMove(e)})),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||function(e,t){var n=e.left||e.x||0,r=e.top||e.y||0,o=t.left||t.x||0,i=t.top||t.y||0;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}(this._dragOrigin,n)>5){if(!this.state.dragRect){var r=this.props.selection;e.shiftKey||r.setAllSelected(!1),this._preservedIndicies=r&&r.getSelectedIndices&&r.getSelectedIndices()}var o=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},i={left:Math.min(this._dragOrigin.left||0,o.left),top:Math.min(this._dragOrigin.top||0,o.top),width:Math.abs(o.left-(this._dragOrigin.left||0)),height:Math.abs(o.top-(this._dragOrigin.top||0))};this._evaluateSelection(i,t),this.setState({dragRect:i})}return!1}},t.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),r=0;r<n.length;r++){var o=n[r],i=Number(o.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){var a=o.getBoundingClientRect();if(this._isPointInRectangle(a,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,r=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var o=0;o<r.length;o++){var i=r[o],a=i.getAttribute("data-selection-index"),s=this._itemRectCache[a];s||(s={left:(s=i.getBoundingClientRect()).left-t.left,top:s.top-t.top,width:s.width,height:s.height,right:s.left-t.left+s.width,bottom:s.top-t.top+s.height}).width>0&&s.height>0&&(this._itemRectCache[a]=s),s.top<e.top+e.height&&s.bottom>e.top&&s.left<e.left+e.width&&s.right>e.left?this._selectedIndicies[a]=!0:delete this._selectedIndicies[a]}var l=this._allSelectedIndices||{};for(var a in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(a)&&(this._allSelectedIndices[a]=!0);if(this._preservedIndicies)for(var c=0,u=this._preservedIndicies;c<u.length;c++){a=u[c];this._allSelectedIndices[a]=!0}var d=!1;for(var a in this._allSelectedIndices)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(!d)for(var a in l)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(d){n.setChangeEvents(!1),n.setAllSelected(!1);for(var p=0,h=Object.keys(this._allSelectedIndices);p<h.length;p++){a=h[p];n.setIndexSelected(Number(a),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t}(o.Component);Kr(ux,(function(e){var t,n,r,o=e.theme,i=e.className,a=o.palette;return{root:[i,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:(t={},t[Ci]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid "+a.themePrimary,pointerEvents:"none",zIndex:10,selectors:(n={},n[Ci]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:a.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:(r={},r[Ci]={background:"none",backgroundColor:"transparent"},r)}]}}),void 0,{scope:"MarqueeSelection"});!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(XS||(XS={}));var dx,px,hx,mx=((QS={})[XS.info]="Info",QS[XS.warning]="Info",QS[XS.error]="ErrorBadge",QS[XS.blocked]="Blocked2",QS[XS.severeWarning]="Warning",QS[XS.success]="Completed",QS),fx=Ft(),gx=function(e){switch(e){case XS.blocked:case XS.error:case XS.severeWarning:return"assertive"}return"polite"},vx=function(e){switch(e){case XS.blocked:case XS.error:case XS.severeWarning:return"alert"}return"status"},yx=o.forwardRef((function(e,t){var n=ys(!1),r=n[0],i=n[1].toggle,a=Cs("MessageBar"),s=e.actions,l=e.className,c=e.children,d=e.overflowButtonAriaLabel,p=e.dismissIconProps,h=e.styles,m=e.theme,f=e.messageBarType,g=void 0===f?XS.info:f,v=e.onDismiss,y=void 0===v?void 0:v,b=e.isMultiline,C=void 0===b||b,S=e.truncated,x=e.dismissButtonAriaLabel,_=e.messageBarIconProps,E=e.role,k=e.delayedRender,w=void 0===k||k,I=$n(e,An,["className","role"]),P=fx(h,{theme:m,messageBarType:g||XS.info,onDismiss:void 0!==y,actions:void 0!==s,truncated:S,isMultiline:C,expandSingleLine:r,className:l}),T={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},D=s||y?{"aria-describedby":a,role:"region"}:{},A=s?o.createElement("div",{className:P.actions},s):null,R=y?o.createElement(Dd,{disabled:!1,className:P.dismissal,onClick:y,iconProps:p||{iconName:"Clear"},title:x,ariaLabel:x}):null;return o.createElement("div",u({ref:t,className:P.root},D),o.createElement("div",{className:P.content},o.createElement("div",{className:P.iconContainer,"aria-hidden":!0},_?o.createElement(Ll,u({},_,{className:Zt(P.icon,_.className)})):o.createElement(Ll,{iconName:mx[g],className:P.icon})),o.createElement("div",{className:P.text,id:a,role:E||vx(g),"aria-live":gx(g)},o.createElement("span",u({className:P.innerText},I),w?o.createElement(Be,null,o.createElement("span",null,c)):o.createElement("span",null,c))),!C&&!A&&S&&o.createElement("div",{className:P.expandSingleLine},o.createElement(Dd,{disabled:!1,className:P.expand,onClick:i,iconProps:T,ariaLabel:d,"aria-expanded":r})),!C&&A,!C&&R&&o.createElement("div",{className:P.dismissSingleLine},R),C&&R),C&&A)}));yx.displayName="MessageBar";var bx,Cx={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},Sx=((dx={})[XS.error]="errorBackground",dx[XS.blocked]="errorBackground",dx[XS.success]="successBackground",dx[XS.warning]="warningBackground",dx[XS.severeWarning]="severeWarningBackground",dx[XS.info]="infoBackground",dx),xx=((px={})[XS.error]="rgba(255, 0, 0, 0.3)",px[XS.blocked]="rgba(255, 0, 0, 0.3)",px[XS.success]="rgba(48, 241, 73, 0.3)",px[XS.warning]="rgba(255, 254, 57, 0.3)",px[XS.severeWarning]="rgba(255, 0, 0, 0.3)",px[XS.info]="Window",px),_x=((hx={})[XS.error]="errorIcon",hx[XS.blocked]="errorIcon",hx[XS.success]="successIcon",hx[XS.warning]="warningIcon",hx[XS.severeWarning]="severeWarningIcon",hx[XS.info]="infoIcon",hx),Ex=(Kr(yx,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.onDismiss,c=e.truncated,d=e.isMultiline,p=e.expandSingleLine,h=e.messageBarType,m=void 0===h?XS.info:h,f=a.semanticColors,g=a.fonts,v=_i(0,xi),y=Mi(Cx,a),b={fontSize:di.xSmall,height:10,lineHeight:"10px",color:f.messageText,selectors:(t={},t[Ci]=u(u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),t)},C=[Ei(a,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":b,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[y.root,g.medium,m===XS.error&&y.error,m===XS.blocked&&y.blocked,m===XS.severeWarning&&y.severeWarning,m===XS.success&&y.success,m===XS.warning&&y.warning,d?y.multiline:y.singleline,!d&&l&&y.dismissalSingleLine,!d&&c&&y.expandingSingleLine,{background:f[Sx[m]],color:f.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:f.messageLink,selectors:{":hover":{color:f.messageLinkHovered}}}},n[Ci]=u(u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:xx[m],border:"1px solid WindowText",color:"WindowText"}),n)},d&&{flexDirection:"column"},s],content:[y.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[y.iconContainer,{fontSize:di.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:f[_x[m]],selectors:(r={},r[Ci]=u(u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),r)},text:[y.text,u(u({minWidth:0,display:"flex",flexGrow:1,margin:8},g.small),{selectors:(o={},o[Ci]=u({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}),!l&&{marginRight:12}],innerText:[y.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},c&&{overflow:"visible",whiteSpace:"pre-wrap"},!d&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!d&&!c&&{selectors:(i={},i[v]={overflow:"visible",whiteSpace:"pre-wrap"},i)},p&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:y.dismissSingleLine,expandSingleLine:y.expandSingleLine,dismissal:[y.dismissal,C],expand:[y.expand,C],actions:[d?y.actions:y.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},d&&{marginBottom:8},l&&!d&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),{root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"}),kx={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};var wx=Ft(),Ix=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=wx(r,{theme:a,groups:i});return o.createElement("div",{className:s.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,i=r.styles,a=r.groups,s=r.theme,l=r.onRenderGroupHeader,c=void 0===l?n._renderGroupHeader:l,d=n._isGroupExpanded(e),p=wx(i,{theme:s,isGroup:!0,isExpanded:d,groups:a}),h=u(u({},e),{isExpanded:d,onHeaderClick:function(t,r){n._onGroupHeaderClicked(e,t)}});return o.createElement("div",{key:t,className:p.group},h.name?c(h,n._renderGroupHeader):null,o.createElement("div",{className:p.groupContent},n._renderLinks(h.links,0)))},n._renderGroupHeader=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=t.expandButtonAriaLabel,l=e.isExpanded,c=wx(r,{theme:a,isGroup:!0,isExpanded:l,groups:i}),u=(l?e.collapseAriaLabel:e.expandAriaLabel)||s,d=e.onHeaderClick,p=d?function(e){d(e,l)}:void 0;return o.createElement("button",{className:c.chevronButton,onClick:p,"aria-label":u,"aria-expanded":l},o.createElement(Ll,{className:c.chevronIcon,iconName:"ChevronDown"}),e.name)},or(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,i=e.isOnTop,a=e.theme;if(!n)return null;var s=n.map(this._renderGroup),l=wx(t,{theme:a,className:r,isOnTop:i,groups:n});return o.createElement(zc,{direction:wc.vertical,componentRef:this._focusZone},o.createElement("nav",{role:"navigation",className:l.root,"aria-label":this.props.ariaLabel},s))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r,i=this.props,a=i.styles,s=i.groups,l=i.theme,c=e.icon||e.iconProps,u=this._isLinkSelected(e),d=e.ariaCurrent,p=void 0===d?"page":d,h=wx(a,{theme:l,isSelected:u,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(c?0:24),groups:s}),m=e.url&&e.target&&(!(r=e.url)||/^[a-z0-9+-.]+:\/\//i.test(r))?"noopener noreferrer":void 0,f=this.props.linkAs?Xt(this.props.linkAs,wd):wd,g=this.props.onRenderLink?Br(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return o.createElement(f,{className:h.link,styles:kx,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:m,disabled:e.disabled,"aria-current":u?p:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},g(e))},t.prototype._renderCompositeLink=function(e,t,n){var r=u({},$n(e,Jn,["onClick"])),i=this.props,a=i.expandButtonAriaLabel,s=i.styles,l=i.groups,c=i.theme,d=wx(s,{theme:c,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:l}),p="";return e.links&&e.links.length>0&&(p=e.collapseAriaLabel||e.expandAriaLabel?e.isExpanded?e.collapseAriaLabel:e.expandAriaLabel:a?e.name+" "+a:e.name),o.createElement("div",u({},r,{key:e.key||t,className:d.compositeLink}),e.links&&e.links.length>0?o.createElement("button",{className:d.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":p,"aria-expanded":e.isExpanded?"true":"false"},o.createElement(Ll,{className:d.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,i=r.styles,a=r.groups,s=r.theme,l=wx(i,{theme:s,groups:a});return o.createElement("li",{key:e.key||t,role:"listitem",className:l.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,r){return n._renderLink(e,r,t)})),i=this.props,a=i.styles,s=i.groups,l=i.theme,c=wx(a,{theme:l,groups:s});return o.createElement("ul",{role:"list",className:c.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if("undefined"===typeof ue()||!e.url)return!1;(bx=bx||document.createElement("a")).href=e.url||"";var t=bx.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(bx.href=location.hash.substring(1),bx.href===t)))},t.prototype._isGroupExpanded=function(e){return e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=u(u({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(o.Component),Px=(Kr(Ix,(function(e){var t,n=e.className,r=e.theme,o=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,c=e.isDisabled,u=e.isButtonEntry,d=e.navHeight,p=void 0===d?44:d,h=e.position,m=e.leftPadding,f=void 0===m?20:m,g=e.leftPaddingExpanded,v=void 0===g?28:g,y=e.rightPadding,b=void 0===y?20:y,C=r.palette,S=r.semanticColors,x=r.fonts,_=Mi(Ex,r);return{root:[_.root,n,x.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},o&&[{position:"absolute"},sa.slideRightIn40]],linkText:[_.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[_.compositeLink,{display:"block",position:"relative",color:S.bodyText},i&&"is-expanded",l&&"is-selected",c&&"is-disabled",c&&{color:S.disabledText}],link:[_.link,Ei(r),{display:"block",position:"relative",height:p,width:"100%",lineHeight:p+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:f,paddingRight:b,color:S.bodyText,selectors:(t={},t[Ci]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!c&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:S.bodyBackgroundHovered}}},l&&{color:S.bodyTextChecked,fontWeight:ui.semibold,backgroundColor:S.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid "+C.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},c&&{color:S.disabledText},u&&{color:C.themePrimary}],chevronButton:[_.chevronButton,Ei(r),x.small,{display:"block",textAlign:"left",lineHeight:p+"px",margin:"5px 0",padding:"0px, "+b+"px, 0px, "+v+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:S.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:S.bodyText}}},a&&{fontSize:x.large.fontSize,width:"100%",height:p,borderBottom:"1px solid "+S.bodyDivider},s&&{display:"block",width:v-2,height:p-2,position:"absolute",top:"1px",left:h+"px",zIndex:bi.Nav,padding:0,margin:0},l&&{color:C.themePrimary,backgroundColor:C.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+C.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[_.chevronIcon,{position:"absolute",left:"8px",height:p,display:"inline-flex",alignItems:"center",lineHeight:p+"px",fontSize:x.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[_.navItem,{padding:0}],navItems:[_.navItems,{listStyleType:"none",padding:0,margin:0}],group:[_.group,i&&"is-expanded"],groupContent:[_.groupContent,{display:"none",marginBottom:"40px"},sa.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"}),function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,i=o.useRef(),a=o.useRef(),s=Es((function(e){var t=function(e,t){if("undefined"!==typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach((function(e){return n.observe(e)})):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=ue(Array.isArray(e)?e[0]:e);if(!o)return function(){};var i=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(i),o.removeEventListener("resize",r,!1)}}(e,(function(t){a.current=t?t[0].contentRect.width:e.clientWidth,i.current&&i.current()}));return function(){t(),a.current=void 0}})),l=Es((function(e){return s(e.parentElement),function(){return s(null)}}));return o.useLayoutEffect((function(){var e=s.current,o=l.current;if(e&&o){for(var c=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==o&&c.push(d)}var p=[],h=0;i.current=function(){var e=a.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===p[t]){var i=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===r&&(h=p[t+1]-i),t===c.length-2&&(h+=o.offsetWidth),p[t]=i+h}if(e>p[t])return void f(t+1)}f(0)}};var m=c.length,f=function(e){m!==e&&(m=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},g=void 0;if(void 0!==a.current){var v=ue(e);if(v){var y=v.requestAnimationFrame(i.current);g=function(){return v.cancelAnimationFrame(y)}}}return function(){g&&g(),f(c.length),i.current=void 0}}})),{menuButtonRef:l}}),Tx=function(e){function t(t){var n=e.call(this,t)||this;return or(n),Ne("PivotItem",t,{linkText:"headerText"}),n}return c(t,e),t.prototype.render=function(){return o.createElement("div",u({},$n(this.props,Jn)),this.props.children)},t}(o.Component),Dx=Ft(),Ax=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return o.Children.forEach(o.Children.toArray(e.children),(function(r,o){if(Rx(r)){var i=r.props,a=i.linkText,s=d(i,["linkText"]),l=r.props.itemKey||o.toString();n.links.push(u(u({headerText:a},s),{itemKey:l})),n.keyToIndexMapping[l]=o,n.keyToTabIdMapping[l]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab"+r}(e,t,l,o)}else r&&De("The children of a Pivot component must be of type PivotItem to be rendered.")})),n},Rx=function(e){var t;return o.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===Tx.name},Nx=o.forwardRef((function(e,t){var n,r=o.useRef(null),i=o.useRef(null),a=Cs("Pivot"),s=bs(e.selectedKey,e.defaultSelectedKey),l=s[0],c=s[1],d=e.componentRef,p=e.theme,h=e.linkSize,m=e.linkFormat,f=e.overflowBehavior,g=e.focusZoneProps,v=$n(e,Jn),y=Ax(e,a);o.useImperativeHandle(d,(function(){return{focus:function(){var e;null===(e=r.current)||void 0===e||e.focus()}}}));var b=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,i=e.headerText;return o.createElement("span",{className:n.linkContent},void 0!==r&&o.createElement("span",{className:n.icon},o.createElement(Ll,{iconName:r})),void 0!==i&&o.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&o.createElement("span",{className:n.count}," (",t,")"))},C=function(e,t,r,i){var a,s=t.itemKey,l=t.headerButtonProps,c=t.onRenderItemLink,d=e.keyToTabIdMapping[s],p=r===s;a=c?c(t,b):b(t);var h=t.headerText||"";return h+=t.itemCount?" ("+t.itemCount+")":"",h+=t.itemIcon?" xx":"",o.createElement(Md,u({},l,{id:d,key:s,className:Zt(i,p&&n.linkIsSelected),onClick:function(e){return S(s,e)},onKeyDown:function(e){return x(s,e)},"aria-label":t.ariaLabel,role:t.role||"tab","aria-selected":p,name:t.headerText,keytipProps:t.keytipProps,"data-content":h}),a)},S=function(e,t){t.preventDefault(),_(e,t)},x=function(e,t){t.which===Ge&&(t.preventDefault(),_(e))},_=function(t,n){var r;if(c(t),y=Ax(e,a),e.onLinkClick&&y.keyToIndexMapping[t]>=0){var s=y.keyToIndexMapping[t],l=o.Children.toArray(e.children)[s];Rx(l)&&e.onLinkClick(l,n)}null===(r=i.current)||void 0===r||r.dismissMenu()};n=Dx(e.styles,{theme:p,linkSize:h,linkFormat:m});var E=function(){return null===(e=l)||void 0!==e&&void 0!==y.keyToIndexMapping[e]?l:y.links.length?y.links[0].itemKey:void 0;var e}(),k=E?y.keyToIndexMapping[E]:0,w=y.links.map((function(e){return C(y,e,E,n.link)})),I=o.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:Pa}}),[]),P=Px({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing=""+n})),I.items=y.links.slice(e).filter((function(e){return e.itemKey!==E})).map((function(t,r){return{key:t.itemKey||""+(e+r),onRender:function(){return C(y,t,E,n.linkInMenu)}}}))},rtl:xt(p),pinnedIndex:k}).menuButtonRef;return o.createElement("div",u({role:"toolbar"},v,{ref:t}),o.createElement(zc,u({componentRef:r,role:"tablist",direction:wc.horizontal},g,{className:Zt(n.root,null===g||void 0===g?void 0:g.className)}),w,"menu"===f&&o.createElement(Md,{className:Zt(n.link,n.overflowMenuButton),elementRef:P,componentRef:i,menuProps:I,menuIconProps:{iconName:"More",style:{color:"inherit"}}})),E&&y.links.map((function(t){return(!0===t.alwaysRender||E===t.itemKey)&&function(t,r){if(e.headersOnly||!t)return null;var i=y.keyToIndexMapping[t],a=y.keyToTabIdMapping[t];return o.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":a,className:n.itemContainer},o.Children.toArray(e.children)[i])}(t.itemKey,E===t.itemKey)})))}));Nx.displayName="Pivot";var Mx,Fx,Bx={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},Ox=function(e,t,n){var r,o,i;void 0===n&&(n=!1);var a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,d=l.fonts,p="large"===a,h="tabs"===s;return[d.medium,{color:c.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:(r={":hover":{backgroundColor:c.buttonBackgroundHovered,color:c.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:c.buttonBackgroundPressed,color:c.buttonTextHovered},":focus":{outline:"none"}},r[".ms-Fabric--isFocusVisible &:focus"]={outline:"1px solid "+c.focusBorder},r[".ms-Fabric--isFocusVisible &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},r)},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:{":before":{backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left "+Qo+" "+Yo+",\n                        right "+Qo+" "+Yo},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:ui.bold,height:1,overflow:"hidden",visibility:"hidden"}}},p&&{fontSize:d.large.fontSize},h&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:c.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-1px"}},o[".ms-Fabric--isFocusVisible &:focus::before"]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:c.buttonTextCheckedHovered},o["&:active, &:hover"]={color:c.primaryButtonText,backgroundColor:c.primaryButtonBackground},o["&."+t.linkIsSelected]={backgroundColor:c.primaryButtonBackground,color:c.primaryButtonText,fontWeight:ui.regular,selectors:(i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:c.primaryButtonBackgroundHovered,color:c.primaryButtonText},"&:active":{backgroundColor:c.primaryButtonBackgroundPressed,color:c.primaryButtonText}},i[Ci]=u({fontWeight:ui.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},o)}]]]};Kr(Nx,(function(e){var t,n,r,o,i=e.className,a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,u=l.fonts,d=Mi(Bx,l),p="large"===a,m="tabs"===s;return{root:[d.root,u.medium,oa,{position:"relative",color:c.link,whiteSpace:"nowrap"},p&&d.rootIsLarge,m&&d.rootIsTabs,i],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:h([d.link],Ox(e,d),[(t={},t["&[data-is-overflowing='true']"]={display:"none"},t)]),overflowMenuButton:[d.overflowMenuButton,(n={visibility:"hidden",position:"absolute",right:0},n["."+d.link+"[data-is-overflowing='true'] ~ &"]={visibility:"visible",position:"relative"},n)],linkInMenu:h([d.linkInMenu],Ox(e,d,!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}]),linkIsSelected:[d.link,d.linkIsSelected,{fontWeight:ui.semibold,selectors:(r={":before":{backgroundColor:c.inputBackgroundChecked,selectors:(o={},o[Ci]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}},r[Ci]={color:"Highlight"},r)}],linkContent:[d.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[d.text,{display:"inline-block",verticalAlign:"top"}],count:[d.count,{display:"inline-block",verticalAlign:"top"}],icon:d.icon}}),void 0,{scope:"Pivot"});!function(e){e.links="links",e.tabs="tabs"}(Mx||(Mx={})),function(e){e.normal="normal",e.large="large"}(Fx||(Fx={}));var Lx,Hx=Ft(),Vx=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaValueText,i=t.barHeight,a=t.className,s=t.description,l=t.label,c=void 0===l?n.props.title:l,u=t.styles,d=t.theme,p="number"===typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,h=Hx(u,{theme:d,className:a,barHeight:i,indeterminate:void 0===p}),m={width:void 0!==p?p+"%":void 0,transition:void 0!==p&&p<.01?"none":void 0},f=void 0!==p?0:void 0,g=void 0!==p?100:void 0,v=void 0!==p?Math.floor(p):void 0;return o.createElement("div",{className:h.itemProgress},o.createElement("div",{className:h.progressTrack}),o.createElement("div",{className:h.progressBar,style:m,role:"progressbar","aria-describedby":s?n._descriptionId:void 0,"aria-labelledby":c?n._labelId:void 0,"aria-valuemin":f,"aria-valuemax":g,"aria-valuenow":v,"aria-valuetext":r}))};var r=wn("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,r=e.label,i=void 0===r?this.props.title:r,a=e.description,s=e.styles,l=e.theme,c=e.progressHidden,d=e.onRenderProgress,p=void 0===d?this._onRenderProgress:d,h="number"===typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,m=Hx(s,{theme:l,className:n,barHeight:t,indeterminate:void 0===h});return o.createElement("div",{className:m.root},i?o.createElement("div",{id:this._labelId,className:m.itemName},i):null,c?null:p(u(u({},this.props),{percentComplete:h}),this._onRenderProgress),a?o.createElement("div",{id:this._descriptionId,className:m.itemDescription},a):null)},t.defaultProps={label:"",description:"",width:180},t}(o.Component),zx={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},Ux=Gt((function(){return ae({"0%":{left:"-30%"},"100%":{left:"100%"}})})),Wx=Gt((function(){return ae({"100%":{right:"-30%"},"0%":{right:"100%"}})})),Gx=(Kr(Vx,(function(e){var t,n,r,o=xt(e.theme),i=e.className,a=e.indeterminate,s=e.theme,l=e.barHeight,c=void 0===l?2:l,d=s.palette,p=s.semanticColors,h=s.fonts,m=Mi(zx,s),f=d.neutralLight;return{root:[m.root,h.medium,i],itemName:[m.itemName,ia,{color:p.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[m.itemDescription,{color:p.bodySubtext,fontSize:h.small.fontSize,lineHeight:18}],itemProgress:[m.itemProgress,{position:"relative",overflow:"hidden",height:c,padding:"8px 0"}],progressTrack:[m.progressTrack,{position:"absolute",width:"100%",height:c,backgroundColor:f,selectors:(t={},t[Ci]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:d.themePrimary,height:c,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[Ci]=u({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+f+" 0%, "+d.themePrimary+" 50%, "+f+" 100%)",animation:(o?Wx():Ux())+" 3s infinite",selectors:(r={},r[Ci]={background:"highlight"},r)}:{transition:"width .15s linear"},m.progressBar]}}),void 0,{scope:"ProgressIndicator"}),{root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"});function jx(e,t){var n;return{color:e,selectors:(n={},n[Ci]={color:t},n)}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(Lx||(Lx={}));var qx=Ft(),Kx=function(e){return o.createElement("div",{className:e.classNames.ratingStar},o.createElement(Ll,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&o.createElement(Ll,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},Yx=function(e,t){return e+"-star-"+(t-1)},Xx=o.forwardRef((function(e,t){var n=Cs("Rating"),r=Cs("RatingLabel"),i=e.ariaLabel,a=e.ariaLabelFormat,s=e.disabled,l=e.getAriaLabel,c=e.styles,d=e.min,p=void 0===d?e.allowZeroStars?0:1:d,h=e.max,m=void 0===h?5:h,f=e.readOnly,g=e.size,v=e.theme,y=e.icon,b=void 0===y?"FavoriteStarFill":y,C=e.unselectedIcon,S=void 0===C?"FavoriteStar":C,x=e.onRenderStar,_=Math.max(p,0),E=bs(e.rating,e.defaultRating,e.onChange),k=E[0],w=E[1],I=function(e,t,n){return Math.min(Math.max(null!==e&&void 0!==e?e:t,t),n)}(k,_,m);!function(e){As({name:"Rating",props:e,controlledUsage:{valueProp:"rating",defaultValueProp:"defaultRating",onChangeProp:"onChange",readOnlyProp:"readOnly"}})}(e),function(e,t){o.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,I);for(var P=$n(e,Jn),T=qx(c,{disabled:s,readOnly:f,theme:v}),D=null===l||void 0===l?void 0:l(I,m),A=i||D,R=[],N=function(e){var t,i,l=function(e,t){var n=Math.ceil(t),r=100;return e===t?r=100:e===n?r=t%1*100:e>n&&(r=0),r}(e,I),c=function(t){void 0!==k&&Math.ceil(k)===e||w(e,t)};R.push(o.createElement("button",u({className:Zt(T.ratingButton,g===Lx.Large?T.ratingStarIsLarge:T.ratingStarIsSmall),id:Yx(n,e),key:e},e===Math.ceil(I)&&{"data-is-current":!0},{onFocus:c,onClick:c,disabled:!(!s&&!f),role:"radio","aria-hidden":f?"true":void 0,type:"button","aria-checked":e===Math.ceil(I)}),o.createElement("span",{id:r+"-"+e,className:T.labelText},Gr(a||"",e,m)),(t={fillPercentage:l,disabled:s,classNames:T,icon:l>0?b:S,starNum:e,unselectedIcon:S},(i=x)?i(t):o.createElement(Kx,u({},t)))))},M=1;M<=m;M++)N(M);var F=g===Lx.Large?T.rootIsLarge:T.rootIsSmall;return o.createElement("div",u({ref:t,className:Zt("ms-Rating-star",T.root,F),"aria-label":f?void 0:A,id:n,role:f?void 0:"radiogroup"},P),o.createElement(zc,u({direction:wc.bidirectional,className:Zt(T.ratingFocusZone,F),defaultActiveElement:"#"+Yx(n,Math.ceil(I))},f&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":D,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),R))}));Xx.displayName="RatingBase";Kr(Xx,(function(e){var t=e.disabled,n=e.readOnly,r=e.theme,o=r.semanticColors,i=r.palette,a=Mi(Gx,r),s=i.neutralSecondary,l=i.themePrimary,c=i.themeDark,u=i.neutralPrimary,d=o.disabledBodySubtext;return{root:[a.root,r.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":jx(u,"Highlight")}}}}],rootIsSmall:[a.rootIsSmall,{height:"32px"}],rootIsLarge:[a.rootIsLarge,{height:"36px"}],ratingStar:[a.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[a.ratingStarBack,{color:s,width:"100%"},t&&jx(d,"GrayText")],ratingStarFront:[a.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},jx(u,"Highlight")],ratingButton:[Ei(r),a.ratingButton,{backgroundColor:"transparent",padding:"8px 2px",boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":jx(s,"WindowText"),".ms-RatingStar-front":jx(s,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[a.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[a.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[a.labelText,Ii],ratingFocusZone:[Ei(r),a.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"});var Qx={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Zx=o.createContext({scrollablePane:void 0}),Jx=Ft(),$x=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyAboveRef=o.createRef(),n._stickyBelowRef=o.createRef(),n._contentContainer=o.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,r=0;e.forEach((function(e){var o=e.state,i=o.isStickyTop,a=o.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(r+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:r})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,r){if(t.children.length){if(!t.contains(r)){var o=[].slice.call(t.children),i=[];n._stickies.forEach((function(r){(t===n.stickyAbove&&e.canStickyTop||e.canStickyBottom)&&i.push(r)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var r=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!r&&o.indexOf(r)>-1}));s<l.length;s++){var c=l[s];if((c.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=c;break}}var u=null;a&&(u=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(r,u)}}else t.appendChild(r)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return u(u({height:e},xt(n.props.theme)?{right:"0",left:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}:{left:"0",right:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}),t?{top:"0"}:{bottom:(n.state.scrollbarHeight||n._getScrollbarHeight()||0)+"px"})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,or(n),n._async=new de(n),n._events=new ge(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return c(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var r=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&r.push(e)})),r.length&&r.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"===typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.scrollContainerFocus,r=e.scrollContainerAriaLabel,i=e.theme,a=e.styles,s=this.state,l=s.stickyTopHeight,c=s.stickyBottomHeight,d=Jx(a,{theme:i,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),p=n?{role:"group",tabIndex:0,"aria-label":r}:{};return o.createElement("div",u({},$n(this.props,Jn),{ref:this._root,className:d.root}),o.createElement("div",{ref:this._stickyAboveRef,className:d.stickyAbove,style:this._getStickyContainerStyle(l,!0)}),o.createElement("div",u({ref:this._contentContainer},p,{className:d.contentContainer,"data-is-scrollable":!0}),o.createElement(Zx.Provider,{value:this._getScrollablePaneContext()},this.props.children)),o.createElement("div",{className:d.stickyBelow,style:this._getStickyContainerStyle(c,!1)},o.createElement("div",{ref:this._stickyBelowRef,className:d.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(o.Component),e_=(Kr($x,(function(e){var t,n,r=e.className,o=e.theme,i=Mi(Qx,o),a={position:"absolute",pointerEvents:"none"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,o.fonts.medium,s,r],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[Ci]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[Ci]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"}),"SearchBox"),t_={root:{height:"auto"},icon:{fontSize:"12px"}},n_={iconName:"Clear"},r_={ariaLabel:"Clear text"},o_=Ft(),i_=o.forwardRef((function(e,t){var n=e.ariaLabel,r=e.className,i=e.defaultValue,a=void 0===i?"":i,s=e.disabled,l=e.underlined,c=e.styles,d=e.labelText,p=e.placeholder,h=void 0===p?d:p,m=e.theme,f=e.clearButtonProps,g=void 0===f?r_:f,v=e.disableAnimation,y=void 0!==v&&v,b=e.showIcon,C=void 0!==b&&b,S=e.onClear,x=e.onBlur,_=e.onEscape,E=e.onSearch,k=e.onKeyDown,w=e.iconProps,I=e.role,P=e.onChange,T=e.onChanged,D=o.useState(!1),A=D[0],R=D[1],N=bs(e.value,a,o.useCallback((function(e){null===P||void 0===P||P(e,null===e||void 0===e?void 0:e.target.value),null===T||void 0===T||T(null===e||void 0===e?void 0:e.target.value)}),[P,T])),M=N[0],F=N[1],B=String(M),O=o.useRef(null),L=o.useRef(null),H=Ss(O,t),V=Cs(e_,e.id),z=g.onClick,U=o_(c,{theme:m,className:r,underlined:l,hasFocus:A,disabled:s,hasInput:B.length>0,disableAnimation:y,showIcon:C}),W=$n(e,Hn,["className","placeholder","onFocus","onBlur","value","role"]),G=o.useCallback((function(e){var t;null===S||void 0===S||S(e),e.defaultPrevented||(F(""),null===(t=L.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[S,F]),j=o.useCallback((function(e){null===z||void 0===z||z(e),e.defaultPrevented||G(e)}),[z,G]),q=o.useCallback((function(e){R(!1),null===x||void 0===x||x(e)}),[x]),K=function(e){F(e.target.value,e)};return function(e){As({name:e_,props:e,deprecations:{labelText:"placeholder"}})}(e),function(e,t,n){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},hasFocus:function(){return n}}}),[t,n])}(e.componentRef,L,A),o.createElement("div",{role:I,ref:H,className:U.root,onFocusCapture:function(t){var n;R(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)}},o.createElement("div",{className:U.iconContainer,onClick:function(){L.current&&(L.current.focus(),L.current.selectionStart=L.current.selectionEnd=0)},"aria-hidden":!0},o.createElement(Ll,u({iconName:"Search"},w,{className:U.icon}))),o.createElement("input",u({},W,{id:V,className:U.field,placeholder:h,onChange:K,onInput:K,onBlur:q,onKeyDown:function(e){switch(e.which){case Ye:null===_||void 0===_||_(e),B&&!e.defaultPrevented&&G(e);break;case Ge:E&&(E(B),e.preventDefault(),e.stopPropagation());break;default:null===k||void 0===k||k(e),e.defaultPrevented&&e.stopPropagation()}},value:B,disabled:s,role:"searchbox","aria-label":n,ref:L})),B.length>0&&o.createElement("div",{className:U.clearButton},o.createElement(Dd,u({onBlur:q,styles:t_,iconProps:n_},g,{onClick:j}))))}));i_.displayName=e_;var a_={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};Kr(i_,(function(e){var t,n,r,o,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,u=e.className,d=e.hasInput,p=e.disableAnimation,h=e.showIcon,m=a.palette,f=a.fonts,g=a.semanticColors,v=a.effects,y=Mi(a_,a),b={color:g.inputPlaceholderText,opacity:1},C=m.neutralSecondary,S=m.neutralPrimary,x=m.neutralLighter,_=m.neutralLighter,E=m.neutralLighter;return{root:[y.root,f.medium,oa,{color:g.inputText,backgroundColor:g.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:v.roundedCorner2,border:"1px solid "+g.inputBorder,height:32,selectors:(t={},t[Ci]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(n={},n[Ci]={borderColor:"Highlight"},n)},t[":hover ."+y.iconContainer]={color:g.inputIconHovered},t)},!c&&d&&{selectors:(r={},r[":hover ."+y.iconContainer]={width:4},r[":hover ."+y.icon]={opacity:0},r)},c&&["is-active",{position:"relative"},wi(g.inputFocusBorderAlt,s?0:v.roundedCorner2,s?"borderBottom":"border")],h&&[{selectors:(o={},o[":hover ."+y.iconContainer]={width:32},o[":hover ."+y.icon]={opacity:1},o)}],l&&["is-disabled",{borderColor:x,backgroundColor:E,pointerEvents:"none",cursor:"default",selectors:(i={},i[Ci]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",u],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:g.inputIcon,cursor:"text"},c&&{width:4},l&&{color:g.inputIconDisabled},!p&&{transition:"width "+Xo},h&&c&&{width:32}],icon:[y.icon,{opacity:1},c&&{opacity:0},!p&&{transition:"opacity "+Xo+" 0s"},h&&c&&{opacity:1}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:_},"&:hover .ms-Button-icon":{color:S},".ms-Button":{borderRadius:xt(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:C}}}],field:[y.field,oa,aa(b),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:g.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"});var s_=function(e){function t(t){var n=e.call(this,t)||this;n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat(e);n.updateItems(t)}));else{var i=n.state.items.concat(r);n.updateItems(i)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var r=t.slice(0,e).concat(t.slice(e+1));n.updateItems(r)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var r=n.state.items,o=r.indexOf(e);if(o>-1){var i=r.slice(0,o).concat(t).concat(r.slice(o+1));n.updateItems(i)}},n.removeItems=function(e){var t=n.state.items,r=e.filter((function(e){return n._canRemoveItem(e)})),o=t.filter((function(e){return-1===r.indexOf(e)})),i=r[0],a=t.indexOf(i);n.props.onItemsDeleted&&n.props.onItemsDeleted(r),n.updateItems(o,a)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map((function(r,o){return t({item:r,index:o,key:r.key?r.key:o,selected:n.selection.isIndexSelected(o),onRemoveItem:function(){return n.removeItem(r)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})}))},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n.updateItems(o)}},or(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n.state={items:r},n._defaultSelection=new Vr({onSelectionChanged:n.onSelectionChanged}),n}return c(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){n._onSelectedItemsUpdated(e,t)}))},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!==(e=this.props.selection)&&void 0!==e?e:this._defaultSelection},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=document.createElement("input");document.body.appendChild(n);try{if(n.value=t,n.select(),!document.execCommand("copy"))throw new Error}catch(r){}finally{document.body.removeChild(n)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t}(o.Component);ji([{rawString:".personaContainer_cbad3345{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:";margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_cbad3345::-moz-focus-inner{border:0}.personaContainer_cbad3345{outline:transparent}.personaContainer_cbad3345{position:relative}.ms-Fabric--isFocusVisible .personaContainer_cbad3345:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:'';position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid "},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_cbad3345 .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_cbad3345 .ms-Persona-primaryText.hover_cbad3345{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345 .actionButton_cbad3345:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:HighlightText}}.personaContainer_cbad3345:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_cbad3345:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345 .actionButton_cbad3345 .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345.personaContainerIsSelected_cbad3345{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_cbad3345.validationError_cbad3345 .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_cbad3345.validationError_cbad3345 .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active){.personaContainer_cbad3345{border:1px solid WindowText}}.personaContainer_cbad3345 .itemContent_cbad3345{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_cbad3345 .removeButton_cbad3345{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_cbad3345 .expandButton_cbad3345{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_cbad3345 .personaWrapper_cbad3345{position:relative;display:inherit}.personaContainer_cbad3345 .personaWrapper_cbad3345 .ms-Persona-details{padding:0 8px}.personaContainer_cbad3345 .personaDetails_cbad3345{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_cbad3345{display:inline-block;vertical-align:top}"}]);var l_=Object.freeze({__proto__:null,personaContainer:"personaContainer_cbad3345",hover:"hover_cbad3345",actionButton:"actionButton_cbad3345",personaContainerIsSelected:"personaContainerIsSelected_cbad3345",validationError:"validationError_cbad3345",itemContent:"itemContent_cbad3345",removeButton:"removeButton_cbad3345",expandButton:"expandButton_cbad3345",personaWrapper:"personaWrapper_cbad3345",personaDetails:"personaDetails_cbad3345",itemContainer:"itemContainer_cbad3345"}),c_=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=o.createRef(),or(n),n.state={contextualMenuVisible:!1},n}return c(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.item,i=n.onExpandItem,a=n.onRemoveItem,s=n.removeButtonAriaLabel,l=n.index,c=n.selected,d=wn();return o.createElement("div",{ref:this.persona,className:Zt("ms-PickerPersona-container",l_.personaContainer,(e={},e["is-selected "+l_.personaContainerIsSelected]=c,e),(t={},t["is-invalid "+l_.validationError]=!r.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":l,role:"listitem","aria-labelledby":"selectedItemPersona-"+d},o.createElement("div",{hidden:!r.canExpand||void 0===i},o.createElement(Dd,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Zt("ms-PickerItem-removeButton",l_.expandButton,l_.actionButton),ariaLabel:s})),o.createElement("div",{className:Zt(l_.personaWrapper)},o.createElement("div",{className:Zt("ms-PickerItem-content",l_.itemContent),id:"selectedItemPersona-"+d},o.createElement(bc,u({},r,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:Hl.size32}))),o.createElement(Dd,{onClick:this._onClickIconButton(a),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Zt("ms-PickerItem-removeButton",l_.removeButton,l_.actionButton),ariaLabel:s})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(o.Component),u_=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=o.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},or(n),n.state={contextualMenuVisible:!1},n}return c(t,e),t.prototype.render=function(){return o.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?o.createElement(ld,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:wa}):null)},t}(o.Component),d_={root:"ms-EditingItem",input:"ms-EditingItem-input"},p_=function(e){var t=ra();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,r=Mi(d_,t);return{root:[r.root,{margin:"4px"}],input:[r.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},h_=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=o.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?o.createElement(e,u({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):o.createElement(o.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate((function(){n._editingInput.focus()}))},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},or(n),n.state={contextualMenuVisible:!1},n}return c(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=wn(),t=$n(this.props,Hn),n=Ft()(p_);return o.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},o.createElement("input",u({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==Ue&&e.which!==ot||e.stopPropagation()},t}(o.Component),m_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(s_),f_=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map((function(e,n){return t._renderItem(e,n)}))},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}c(t,e),t.prototype._renderItem=function(e,t){var n=this,r=this.props.removeButtonAriaLabel,i=this.props.onExpandGroup,a={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:r,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:i?function(){return i(e)}:void 0,menuItems:this._createMenuItems(e)},s=a.menuItems.length>0;if(e.isEditing&&s)return o.createElement(h_,u({},a,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var l=(0,this.props.onRenderItem)(a);return s?o.createElement(u_,{key:a.key,renderedItem:l,beginEditing:this._beginEditing,menuItems:this._createMenuItems(a.item),item:a.item}):l},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return o.createElement(c_,u({},e))}}}(m_),Ft()),g_=o.forwardRef((function(e,t){var n=e.styles,r=e.theme,i=e.className,a=e.vertical,s=e.alignContent,l=e.children,c=f_(n,{theme:r,className:i,alignContent:s,vertical:a});return o.createElement("div",{className:c.root,ref:t},o.createElement("div",{className:c.content,role:"separator","aria-orientation":a?"vertical":"horizontal"},l))})),v_=Kr(g_,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,l="center"===o,c="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(l||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[Ci]={backgroundColor:"WindowText"},t)}},!i&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[Ci]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},i&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});v_.displayName="Separator";var y_,b_,C_={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},S_=Gt((function(){return ae({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(100%)"}})})),x_=Gt((function(){return ae({"100%":{transform:"translateX(-100%)"},"0%":{transform:"translateX(100%)"}})}));!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(y_||(y_={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(b_||(b_={}));var __=Ft(),E_={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var k_=Kr((function(e){var t=e.height,n=e.styles,r=e.width,i=void 0===r?"100%":r,a=e.borderStyle,s=e.theme,l=__(n,{theme:s,height:t,borderStyle:a});return o.createElement("div",{style:{width:i,minWidth:"number"===typeof i?i+"px":"auto"},className:l.root},o.createElement("svg",{width:"2",height:"2",className:l.topLeftCorner},o.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.topRightCorner},o.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.bottomRightCorner},o.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.bottomLeftCorner},o.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=Mi(E_,o),s=r||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,o.fonts.medium,{height:n+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[Ci]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),w_=Ft(),I_={root:"ms-ShimmerGap-root"};var P_=Kr((function(e){var t=e.height,n=e.styles,r=e.width,i=void 0===r?"10px":r,a=e.borderStyle,s=e.theme,l=w_(n,{theme:s,height:t,borderStyle:a});return o.createElement("div",{style:{width:i,minWidth:"number"===typeof i?i+"px":"auto"},className:l.root})}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=r||{};return{root:[Mi(I_,o).root,o.fonts.medium,{backgroundColor:i.bodyBackground,height:n+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,selectors:(t={},t[Ci]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),T_={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var D_=Ft(),A_=Kr((function(e){var t=e.height,n=e.styles,r=e.borderStyle,i=e.theme,a=D_(n,{theme:i,height:t,borderStyle:r});return o.createElement("div",{className:a.root},o.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:a.svg},o.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))}),(function(e){var t,n,r=e.height,o=e.borderStyle,i=e.theme,a=i.semanticColors,s=Mi(T_,i),l=o||{};return{root:[s.root,i.fonts.medium,{width:r+"px",height:r+"px",minWidth:r+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[Ci]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[Ci]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),R_=Ft();var N_=Gt((function(e,t,n,r,o){var i,a=o&&n?o-n:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:a+"px",borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:a+"px"}):i={borderBottomWidth:(a?Math.floor(a/2):0)+"px",borderTopWidth:(a?Math.ceil(a/2):0)+"px"},r)switch(t){case y_.circle:return{root:u(u({},i),{borderColor:r}),svg:{fill:r}};case y_.gap:return{root:u(u({},i),{borderColor:r,backgroundColor:r})};case y_.line:return{root:u(u({},i),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:i}}));var M_={root:"ms-ShimmerElementsGroup-root"};var F_=Kr((function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,i=e.shimmerElements,a=e.rowHeight,s=void 0===a?function(e){return e.map((function(e){switch(e.type){case y_.circle:e.height||(e.height=b_.circle);break;case y_.line:e.height||(e.height=b_.line);break;case y_.gap:e.height||(e.height=b_.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(i||[]):a,l=e.flexWrap,c=void 0!==l&&l,p=e.theme,h=e.backgroundColor,m=R_(t,{theme:p,flexWrap:c});return o.createElement("div",{style:{width:r},className:m.root},function(e,t,n){var r=e?e.map((function(e,r){var i=e.type,a=d(e,["type"]),s=a.verticalAlign,l=a.height,c=N_(s,i,l,t,n);switch(e.type){case y_.circle:return o.createElement(A_,u({key:r},a,{styles:c}));case y_.gap:return o.createElement(P_,u({key:r},a,{styles:c}));case y_.line:return o.createElement(k_,u({key:r},a,{styles:c}))}})):o.createElement(k_,{height:b_.line});return r}(i,h,s))}),(function(e){var t=e.flexWrap,n=e.theme;return{root:[Mi(M_,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),B_=Ft(),O_=o.forwardRef((function(e,t){var n=e.styles,r=e.shimmerElements,i=e.children,a=e.width,s=e.className,l=e.customElementsGroup,c=e.theme,d=e.ariaLabel,p=e.shimmerColors,h=e.isDataLoaded,m=void 0!==h&&h,f=$n(e,Jn),g=B_(n,{theme:c,isDataLoaded:m,className:s,transitionAnimationInterval:200,shimmerColor:p&&p.shimmer,shimmerWaveColor:p&&p.shimmerWave}),v=gs({lastTimeoutId:0}),y=ks(),b=y.setTimeout,C=y.clearTimeout,S=o.useState(m),x=S[0],_=S[1],E={width:a||"100%"};return o.useEffect((function(){if(m!==x){if(m)return v.lastTimeoutId=b((function(){_(!0)}),200),function(){return C(v.lastTimeoutId)};_(!1)}}),[m]),o.createElement("div",u({},f,{className:g.root,ref:t}),!x&&o.createElement("div",{style:E,className:g.shimmerWrapper},o.createElement("div",{className:g.shimmerGradient}),l||o.createElement(F_,{shimmerElements:r,backgroundColor:p&&p.background})),i&&o.createElement("div",{className:g.dataWrapper},i),d&&!m&&o.createElement("div",{role:"status","aria-live":"polite"},o.createElement(Be,null,o.createElement("div",{className:g.screenReaderText},d))))}));O_.displayName="Shimmer";var L_=Kr(O_,(function(e){var t,n=e.isDataLoaded,r=e.className,o=e.theme,i=e.transitionAnimationInterval,a=e.shimmerColor,s=e.shimmerWaveColor,l=o.semanticColors,c=Mi(C_,o),d=xt(o);return{root:[c.root,o.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[c.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:a||l.disabledBackground,transition:"opacity "+i+"ms",selectors:(t={"> *":{transform:"translateZ(0)"}},t[Ci]=u({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],shimmerGradient:[c.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:(a||l.disabledBackground)+"\n                      linear-gradient(\n                        to right,\n                        "+(a||l.disabledBackground)+" 0%,\n                        "+(s||l.bodyDivider)+" 50%,\n                        "+(a||l.disabledBackground)+" 100%)\n                      0 0 / 90% 100%\n                      no-repeat",transform:"translateX(-100%)",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:d?x_():S_()}],dataWrapper:[c.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+i+"ms"},n&&{opacity:"1",position:"static"}],screenReaderText:Ii}}),void 0,{scope:"Shimmer"}),H_=Ft(),V_=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var r=n.props.onRenderCustomPlaceholder,i=r?r(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return o.createElement(L_,{customElementsGroup:i})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,r=e.selectionMode,i=e.checkboxVisibility,a=e.cellStyleProps,s=void 0===a?$g:a,l=n?ev.compactRowHeight:ev.rowHeight+1,c=[];return r!==Or.none&&i!==Vg.hidden&&c.push(o.createElement(F_,{key:"checkboxGap",shimmerElements:[{type:y_.gap,width:"40px",height:l}]})),t.forEach((function(e,t){var n=[],r=s.cellLeftPadding+s.cellRightPadding+e.calculatedWidth+(e.isPadded?s.cellExtraRightPadding:0);n.push({type:y_.gap,width:s.cellLeftPadding,height:l}),e.isIconOnly?(n.push({type:y_.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:y_.gap,width:s.cellRightPadding,height:l})):(n.push({type:y_.line,width:.95*e.calculatedWidth,height:7}),n.push({type:y_.gap,width:s.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?s.cellExtraRightPadding:0),height:l})),c.push(o.createElement(F_,{key:t,width:r+"px",shimmerElements:n}))})),c.push(o.createElement(F_,{key:"endGap",width:"100%",shimmerElements:[{type:y_.gap,width:"100%",height:l}]})),o.createElement("div",{style:{display:"flex"}},c)},n._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(10),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,r=e.items,i=e.listProps,a=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),s=(e.shimmerLines,e.styles),l=e.theme,c=e.ariaLabelForGrid,p=e.ariaLabelForShimmer,h=d(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),m=i&&i.className;this._classNames=H_(s,{theme:l});var f=u(u({},i),{className:n&&!a?Zt(this._classNames.root,m):m});return o.createElement(uy,u({},h,{styles:t,items:n?this._shimmerItems:r,isPlaceholderData:n,ariaLabelForGrid:n&&p||c,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:f}))},t}(o.Component),z_=(Kr(V_,(function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, "+t.whiteTranslucent40+" 65%,"+t.white+" 100%)"}}}}}),void 0,{scope:"ShimmeredDetailsList"}),Ft()),U_=function(e){return function(t){var n;return(n={})[e]=t+"%",n}},W_=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},G_=function(e,t){var n=e.step,r=void 0===n?1:n,i=e.className,a=e.disabled,s=void 0!==a&&a,l=e.label,c=e.max,d=void 0===c?10:c,p=e.min,h=void 0===p?0:p,m=e.showValue,f=void 0===m||m,g=e.buttonProps,v=void 0===g?{}:g,y=e.vertical,b=void 0!==y&&y,C=e.snapToStep,S=e.valueFormat,x=e.styles,_=e.theme,E=e.originFromZero,k=e["aria-label"],w=e.ranged,I=e.onChange,P=e.onChanged,T=o.useRef([]),D=ks(),A=D.setTimeout,R=D.clearTimeout,N=o.useRef(null),M=bs(e.value,e.defaultValue,(function(e,t){return null===I||void 0===I?void 0:I(t,w?[U.latestLowerValue,t]:void 0,e)})),F=M[0],B=M[1],O=bs(e.lowerValue,e.defaultLowerValue,(function(e,t){return null===I||void 0===I?void 0:I(U.latestValue,[t,U.latestValue],e)})),L=O[0],H=O[1],V=Math.max(h,Math.min(d,F||0)),z=Math.max(h,Math.min(V,L||0)),U=gs({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:V,latestLowerValue:z});U.latestValue=V,U.latestLowerValue=z;var W=Cs("Slider",e.id||(null===v||void 0===v?void 0:v.id)),G=z_(x,{className:i,disabled:s,vertical:b,showTransitions:!C&&!U.isBetweenSteps,showValue:f,ranged:w,theme:_}),j=(d-h)/r,q=function(){R(U.onKeyDownTimer),U.onKeyDownTimer=-1},K=function(e){q(),P&&(U.onKeyDownTimer=A((function(){P(e,U.latestValue,w?[U.latestLowerValue,U.latestValue]:void 0)}),1e3))},Y=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},X=function(e,t,n){t=Math.min(d,Math.max(h,t)),n=void 0!==n?Math.min(d,Math.max(h,n)):void 0;var o=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,o))/Math.pow(10,o)!==r;)o++;var i=parseFloat(t.toFixed(o));U.isBetweenSteps=void 0!==n&&n!==i,w?U.isAdjustingLowerValue&&(E?i<=0:i<=U.latestValue)?H(i,e):!U.isAdjustingLowerValue&&(E?i>=0:i>=U.latestLowerValue)&&B(i,e):B(i,e)},Q=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},Z=function(t){var n,r=N.current.getBoundingClientRect(),o=(e.vertical?r.height:r.width)/j;if(e.vertical){var i=Q(t,e.vertical);n=(r.bottom-i)/o}else{var a=Q(t,e.vertical);n=(xt(e.theme)?r.right-a:a-r.left)/o}return n},J=function(e,t){var n=Z(e),o=h+r*n,i=h+r*Math.round(n);X(e,i,o),t||(e.preventDefault(),e.stopPropagation())},$=function(e){if(w){var t=Z(e),n=h+r*t;U.isAdjustingLowerValue=n<=U.latestLowerValue||n-U.latestLowerValue<=U.latestValue-n}"mousedown"===e.type?T.current.push(Dt(window,"mousemove",J,!0),Dt(window,"mouseup",ee,!0)):"touchstart"===e.type&&T.current.push(Dt(window,"touchmove",J,!0),Dt(window,"touchend",ee,!0)),J(e,!0)},ee=function(e){U.isBetweenSteps=void 0,null===P||void 0===P||P(e,U.latestValue,w?[U.latestLowerValue,U.latestValue]:void 0),te()},te=function(){T.current.forEach((function(e){return e()})),T.current=[]},ne=o.useRef(null),re=o.useRef(null);!function(e,t,n,r){o.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return r},focus:function(){t.current&&t.current.focus()}}}),[t,n,r])}(e,w&&!b?ne:re,V,w?[z,V]:void 0);var oe=U_(b?"bottom":xt(e.theme)?"right":"left"),ie=U_(b?"height":"width"),ae=E?0:h,se=W_(V,h,d),le=W_(z,h,d),ce=W_(ae,h,d),ue=w?se-le:Math.abs(ce-se),de=Math.min(100-se,100-ce),pe=w?le:Math.min(se,ce),he={className:G.root,ref:t},me={className:G.titleLabel,children:l,disabled:s,htmlFor:k?void 0:W},fe=f?{className:G.valueLabel,children:S?S(V):V,disabled:s,htmlFor:s?W:void 0}:void 0,ge=w&&f?{className:G.valueLabel,children:S?S(z):z,disabled:s}:void 0,ve=E?{className:G.zeroTick,style:oe(ce)}:void 0,ye={className:Zt(G.lineContainer,G.activeSection),style:ie(ue)},be={className:Zt(G.lineContainer,G.inactiveSection),style:ie(de)},Ce={className:Zt(G.lineContainer,G.inactiveSection),style:ie(pe)},Se=u({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),xe=u(u(u({id:W,className:Zt(G.slideBox,v.className)},!s&&{onMouseDown:$,onTouchStart:$,onKeyDown:function(t){var n=U.isAdjustingLowerValue?U.latestLowerValue:U.latestValue,o=0;switch(t.which){case _t(et,e.theme):case rt:o=-r,q(),K(t);break;case _t(nt,e.theme):case tt:o=r,q(),K(t);break;case $e:n=h,q(),K(t);break;case Je:n=d,q(),K(t);break;default:return}X(t,n+o),t.preventDefault(),t.stopPropagation()}}),v&&$n(v,Jn,["id","className"])),!w&&u(u({},Se),{"aria-valuemin":h,"aria-valuemax":d,"aria-valuenow":V,"aria-valuetext":Y(V),"aria-label":k||l})),_e=s?{}:{onFocus:function(e){U.isAdjustingLowerValue=e.target===ne.current}},Ee=u({ref:re,className:G.thumb,style:oe(se)},w&&u(u(u({},Se),_e),{id:"max-"+W,"aria-valuemin":z,"aria-valuemax":d,"aria-valuenow":V,"aria-valuetext":Y(V),"aria-label":"max "+(k||l)})),ke=w?u(u(u({ref:ne,className:G.thumb,style:oe(le)},Se),_e),{id:"min-"+W,"aria-valuemin":h,"aria-valuemax":V,"aria-valuenow":z,"aria-valuetext":Y(z),"aria-label":"min "+(k||l)}):void 0;return{root:he,label:me,sliderBox:xe,container:{className:G.container},valueLabel:fe,lowerValueLabel:ge,thumb:Ee,lowerValueThumb:ke,zeroTick:ve,activeTrack:ye,topInactiveTrack:be,bottomInactiveTrack:Ce,sliderLine:{ref:N,className:G.line}}},j_="SliderBase",q_=o.forwardRef((function(e,t){var n=G_(e,t);return As({name:j_,props:e,mutuallyExclusive:{value:"defaultValue"}}),o.createElement("div",u({},n.root),n&&o.createElement(Uh,u({},n.label)),o.createElement("div",u({},n.container),e.ranged&&(e.vertical?n.valueLabel&&o.createElement(Uh,u({},n.valueLabel)):n.lowerValueLabel&&o.createElement(Uh,u({},n.lowerValueLabel))),o.createElement("div",u({},n.sliderBox),o.createElement("div",u({},n.sliderLine),e.ranged&&o.createElement("span",u({},n.lowerValueThumb)),o.createElement("span",u({},n.thumb)),n.zeroTick&&o.createElement("span",u({},n.zeroTick)),o.createElement("span",u({},n.bottomInactiveTrack)),o.createElement("span",u({},n.activeTrack)),o.createElement("span",u({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&o.createElement(Uh,u({},n.lowerValueLabel)):n.valueLabel&&o.createElement(Uh,u({},n.valueLabel))),o.createElement(vr,null))}));q_.displayName=j_;var K_,Y_={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},X_=(Kr(q_,(function(e){var t,n,r,o,i,a,s,l,c,u,d,p,m,f=e.className,g=e.titleLabelClassName,v=e.theme,y=e.vertical,b=e.disabled,C=e.showTransitions,S=e.showValue,x=e.ranged,_=v.semanticColors,E=Mi(Y_,v),k=_.inputBackgroundCheckedHovered,w=_.inputBackgroundChecked,I=_.inputPlaceholderBackgroundChecked,P=_.smallInputBorder,T=_.disabledBorder,D=_.disabledText,A=_.disabledBackground,R=_.inputBackground,N=_.smallInputBorder,M=_.disabledBorder,F=!b&&{backgroundColor:k,selectors:(t={},t[Ci]={backgroundColor:"Highlight"},t)},B=!b&&{backgroundColor:I,selectors:(n={},n[Ci]={borderColor:"Highlight"},n)},O=!b&&{backgroundColor:w,selectors:(r={},r[Ci]={backgroundColor:"Highlight"},r)},L=!b&&{border:"2px solid "+k,selectors:(o={},o[Ci]={borderColor:"Highlight"},o)},H=!e.disabled&&{backgroundColor:_.inputPlaceholderBackgroundChecked,selectors:(i={},i[Ci]={backgroundColor:"Highlight"},i)};return{root:h([E.root,v.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[b?void 0:E.enabled],[b?E.disabled:void 0],[y?void 0:E.row],[y?E.column:void 0],[f]),titleLabel:[{padding:0},g],container:[E.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:h([E.slideBox,!x&&Ei(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active ."+E.activeSection]=F,a[":hover ."+E.activeSection]=O,a[":active ."+E.inactiveSection]=B,a[":hover ."+E.inactiveSection]=B,a[":active ."+E.thumb]=L,a[":hover ."+E.thumb]=L,a[":active ."+E.zeroTick]=H,a[":hover ."+E.zeroTick]=H,a[Ci]={forcedColorAdjust:"none"},a)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?E.showValue:void 0],[C?E.showTransitions:void 0]),thumb:[E.thumb,x&&Ei(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:N,borderRadius:10,boxSizing:"border-box",background:R,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:xt(v)?"translateX(50%)":"translateX(-50%)"},C&&{transition:"left "+Zo+" "+Ko},b&&{borderColor:M,selectors:(s={},s[Ci]={borderColor:"GrayText"},s)}],line:[E.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[E.activeSection,{background:P,selectors:(l={},l[Ci]={backgroundColor:"WindowText"},l)},C&&{transition:"width "+Zo+" "+Ko},b&&{background:D,selectors:(c={},c[Ci]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[E.inactiveSection,{background:T,selectors:(u={},u[Ci]={border:"1px solid WindowText"},u)},C&&{transition:"width "+Zo+" "+Ko},b&&{background:A,selectors:(d={},d[Ci]={borderColor:"GrayText"},d)}],zeroTick:[E.zeroTick,{position:"absolute",background:_.disabledBorder,selectors:(p={},p[Ci]={backgroundColor:"WindowText"},p)},e.disabled&&{background:_.disabledBackground,selectors:(m={},m[Ci]={backgroundColor:"GrayText"},m)},e.vertical?{width:"16px",height:"1px",transform:xt(v)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[E.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"}),Gt((function(e){var t,n=e.semanticColors,r=n.disabledText,o=n.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:r,selectors:(t={":after":{borderColor:o}},t[Ci]={color:"GrayText"},t)}}))),Q_=Gt((function(e,t,n){var r,o,i,a=e.palette,s=e.semanticColors,l=e.effects,c=a.neutralSecondary,u=s.buttonText,d=s.buttonText,p=s.buttonBackgroundHovered,h=s.buttonBackgroundPressed;return te({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:c,selectors:{"&.ms-DownButton":{borderRadius:"0 0 "+l.roundedCorner2+" 0"},"&.ms-UpButton":{borderRadius:"0 "+l.roundedCorner2+" 0 0"}}},rootHovered:{backgroundColor:p,color:u},rootChecked:{backgroundColor:h,color:d,selectors:(r={},r[Ci]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootPressed:{backgroundColor:h,color:d,selectors:(o={},o[Ci]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:(i={},i[Ci]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},n)}));!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(K_||(K_={}));var Z_=Ft(),J_="SpinButton",$_={disabled:!1,label:"",step:1,labelPosition:pa.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},eE=function(){},tE=function(e,t){var n=t.min,r=t.max;return"number"===typeof r&&(e=Math.min(e,r)),"number"===typeof n&&(e=Math.max(e,n)),e},nE=o.forwardRef((function(e,t){var n=Qr($_,e),r=n.disabled,i=n.label,a=n.min,s=n.max,l=n.step,c=n.defaultValue,d=n.value,p=n.precision,h=n.labelPosition,m=n.iconProps,f=n.incrementButtonIcon,g=n.incrementButtonAriaLabel,v=n.decrementButtonIcon,y=n.decrementButtonAriaLabel,b=n.ariaLabel,C=n.ariaDescribedBy,S=n.upArrowButtonStyles,x=n.downArrowButtonStyles,_=n.theme,E=n.ariaPositionInSet,k=n.ariaSetSize,w=n.ariaValueNow,I=n.ariaValueText,P=n.className,T=n.inputProps,D=n.onDecrement,A=n.onIncrement,R=n.iconButtonProps,N=n.onValidate,M=n.onChange,F=n.styles,B=o.useRef(null),O=Cs("input"),L=Cs("Label"),H=o.useState(!1),V=H[0],z=H[1],U=o.useState(K_.notSpinning),W=U[0],G=U[1],j=vs(),q=o.useMemo((function(){return null!==p&&void 0!==p?p:Math.max(function(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(l),0)}),[p,l]),K=bs(d,null!==c&&void 0!==c?c:String(a||0),M),Y=K[0],X=K[1],Q=o.useState(),Z=Q[0],J=Q[1],$=o.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;$.latestValue=Y,$.latestIntermediateValue=Z;var ee=_s(d);o.useEffect((function(){d!==ee&&void 0!==Z&&J(void 0)}),[d,ee,Z]);var te=Z_(F,{theme:_,disabled:r,isFocused:V,keyboardSpinDirection:W,labelPosition:h,className:P}),ne=$n(n,Jn,["onBlur","onFocus","className","onChange"]),re=o.useCallback((function(e){var t=$.latestIntermediateValue;if(void 0!==t&&t!==$.latestValue){var n=void 0;N?n=N(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(tE(Number(t),{min:a,max:s}))),void 0!==n&&n!==$.latestValue&&X(n,e)}J(void 0)}),[$,s,a,N,X]),oe=o.useCallback((function(){$.stepTimeoutHandle>=0&&(j.clearTimeout($.stepTimeoutHandle),$.stepTimeoutHandle=-1),($.spinningByMouse||W!==K_.notSpinning)&&($.spinningByMouse=!1,G(K_.notSpinning))}),[$,W,j]),ie=o.useCallback((function(e,t){if(t.persist(),void 0!==$.latestIntermediateValue)return"keydown"===t.type&&re(t),void j.requestAnimationFrame((function(){ie(e,t)}));var n=e($.latestValue||"",t);void 0!==n&&n!==$.latestValue&&X(n,t);var r=$.spinningByMouse;$.spinningByMouse="mousedown"===t.type,$.spinningByMouse&&($.stepTimeoutHandle=j.setTimeout((function(){ie(e,t)}),r?75:400))}),[$,j,re,X]),ae=o.useCallback((function(e){if(A)return A(e);var t=tE(Number(e)+Number(l),{max:s});return t=Tr(t,q),String(t)}),[q,s,A,l]),se=o.useCallback((function(e){if(D)return D(e);var t=tE(Number(e)-Number(l),{min:a});return t=Tr(t,q),String(t)}),[q,a,D,l]),le=o.useCallback((function(e){(r||e.which===tt||e.which===rt)&&oe()}),[r,oe]),ce=o.useCallback((function(e){ie(ae,e)}),[ae,ie]),ue=o.useCallback((function(e){ie(se,e)}),[se,ie]);!function(e,t,n){o.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}}),[t,n])}(n,B,Y),rE(n);var de=!!Y&&!isNaN(Number(Y)),pe=(m||i)&&o.createElement("div",{className:te.labelWrapper},m&&o.createElement(Ll,u({},m,{className:te.icon,"aria-hidden":"true"})),i&&o.createElement(Uh,{id:L,htmlFor:O,className:te.label,disabled:r},i));return o.createElement("div",{className:te.root,ref:t},h!==pa.bottom&&pe,o.createElement("div",u({},ne,{className:te.spinButtonWrapper,"aria-label":b&&b,"aria-posinset":E,"aria-setsize":k,"data-ktp-target":!0}),o.createElement("input",u({value:null!==Z&&void 0!==Z?Z:Y,id:O,onChange:eE,onInput:function(e){J(e.target.value)},className:te.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":i&&L,"aria-valuenow":null!==w&&void 0!==w?w:de?Number(Y):void 0,"aria-valuetext":null!==I&&void 0!==I?I:de?void 0:Y,"aria-valuemin":a,"aria-valuemax":s,"aria-describedby":C,onBlur:function(e){var t;re(e),z(!1),null===(t=n.onBlur)||void 0===t||t.call(n,e)},ref:B,onFocus:function(e){var t;B.current&&(($.spinningByMouse||W!==K_.notSpinning)&&oe(),B.current.select(),z(!0),null===(t=n.onFocus)||void 0===t||t.call(n,e))},onKeyDown:function(e){if(e.which!==tt&&e.which!==rt&&e.which!==Ge||(e.preventDefault(),e.stopPropagation()),r)oe();else{var t=K_.notSpinning;switch(e.which){case tt:t=K_.up,ie(ae,e);break;case rt:t=K_.down,ie(se,e);break;case Ge:re(e);break;case Ye:J(void 0)}W!==t&&G(t)}},onKeyUp:le,disabled:r,"aria-disabled":r,"data-lpignore":!0,"data-ktp-execute-target":!0},T)),o.createElement("span",{className:te.arrowButtonsContainer},o.createElement(Dd,u({styles:Q_(_,!0,S),className:"ms-UpButton",checked:W===K_.up,disabled:r,iconProps:f,onMouseDown:ce,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:g,"data-is-focusable":!1},R)),o.createElement(Dd,u({styles:Q_(_,!1,x),className:"ms-DownButton",checked:W===K_.down,disabled:r,iconProps:v,onMouseDown:ue,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:y,"data-is-focusable":!1},R)))),h===pa.bottom&&pe)}));nE.displayName=J_;var rE=function(e){As({name:J_,props:e,mutuallyExclusive:{value:"defaultValue"}})},oE=(Kr(nE,(function(e){var t,n,r=e.theme,o=e.className,i=e.labelPosition,a=e.disabled,s=e.isFocused,l=r.palette,c=r.semanticColors,u=r.effects,d=r.fonts,p=c.inputBorder,h=c.inputBackground,m=c.inputBorderHovered,f=c.inputFocusBorderAlt,g=c.inputText,v=l.white,y=c.inputBackgroundChecked,b=c.disabledText;return{root:[d.medium,{outline:"none",width:"100%",minWidth:86},o],labelWrapper:[{display:"inline-flex",alignItems:"center"},i===pa.start&&{height:32,float:"left",marginRight:10},i===pa.end&&{height:32,float:"right",marginLeft:10},i===pa.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:di.large},a&&{color:b}],label:{pointerEvents:"none",lineHeight:di.large},spinButtonWrapper:[{display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86,selectors:{":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:p,borderRadius:u.roundedCorner2}}},(i===pa.top||i===pa.bottom)&&{width:"100%"},!a&&[{selectors:{":hover":{selectors:(t={":after":{borderColor:m}},t[Ci]={selectors:{":after":{borderColor:"Highlight"}}},t)}}},s&&{selectors:{"&&":wi(f,u.roundedCorner2)}}],a&&X_(r)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:d.medium.fontSize,fontFamily:"inherit",color:g,backgroundColor:h,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:u.roundedCorner2+" 0 0 "+u.roundedCorner2},!a&&{selectors:{"::selection":{backgroundColor:y,color:v,selectors:(n={},n[Ci]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},n)}}},a&&X_(r)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},a&&X_(r)]}}),void 0,{scope:"SpinButton"}),u);function iE(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e;return i.isSlot?0===(n=o.Children.toArray(n)).length?i(t):i(u(u({},t),{children:n})):o.createElement.apply(o,h([e,t],n))}function aE(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,i,a,s){if(o.isValidElement(n))return n;var l=function(e,t){var n,r;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((n={})[e]=t,r=n):r=t;return r}(r,n),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),oE(o,l)}return o.className=ee([e,i],{rtl:xt(t)}),o}(a,s,t,l);if(i){if(i.component){var d=i.component;return o.createElement(d,u({},c))}if(i.render)return i.render(c,e)}return o.createElement(e,u({},c))}}var sE=Gt((function(e){return aE(e)}));function lE(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return cE(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function cE(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):sE(e)(t,n,r,o,i)}function uE(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,i=function(n){var r=function(e,t,n){var r=["theme","styles","tokens"];return tn.getSettings(n||r,e,t.customizations)}(t.displayName,o.useContext(nn),t.fields),i=t.state;i&&(n=u(u({},n),i(n)));var a=n.theme||r.theme,s=dE(n,a,t.tokens,r.tokens,n.tokens),l=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return te.apply(void 0,r.map((function(r){return"function"===typeof r?r(e,t,n):r})))}(n,a,s,t.styles,r.styles,n.styles),c=u(u({},n),{styles:l,tokens:s,_defaultStyles:l,theme:a});return e(c)};return i.displayName=t.displayName||e.name,r&&(i.create=aE(i,{defaultProp:r})),oE(i,t.statics),i}function dE(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=0,a=n;i<a.length;i++){var s=a[i];s&&(s="function"===typeof s?s(e,t):s,Array.isArray(s)&&(s=dE.apply(void 0,h([e,t],s))),oE(o,s))}return o}g("@fluentui/foundation-legacy","8.1.13");var pE={root:"ms-StackItem"},hE={start:"flex-start",end:"flex-end"},mE=uE((function(e){var t=e.children,n=$n(e,An);return null==t?null:iE(lE(e,{root:"div"}).root,u({},n),t)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=Mi(pE,t);return{root:[t.fonts.medium,u.root,{margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(i||!r&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:hE[a]||a},l&&{order:l},c]}}}),fE=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},gE=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},vE=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?fE(e,t):n.reduce((function(e,n){return fE(e,t)+" "+fE(n,t)}))},yE={start:"flex-start",end:"flex-end"},bE={root:"ms-Stack",inner:"ms-Stack-inner"};var CE,SE=uE((function(e){var t=e.as,n=void 0===t?"div":t,r=e.disableShrink,i=e.wrap,a=d(e,["as","disableShrink","wrap"]);Ne("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var s=o.Children.map(e.children,(function(e,t){if(!e)return null;if((i=e)&&"object"===typeof i&&i.type&&i.type.displayName===mE.displayName){var n={shrink:!r};return o.cloneElement(e,u(u({},n),e.props))}var i;return e})),l=$n(a,An),c=lE(e,{root:n,inner:"div"});return iE(c.root,u({},l),i?iE(c.inner,null,s):s)}),{displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,l,c,d=e.verticalFill,p=e.horizontal,h=e.reversed,m=e.grow,f=e.wrap,g=e.horizontalAlign,v=e.verticalAlign,y=e.disableShrink,b=e.className,C=Mi(bE,t),S=n&&n.childrenGap?n.childrenGap:e.gap,x=n&&n.maxHeight?n.maxHeight:e.maxHeight,_=n&&n.maxWidth?n.maxWidth:e.maxWidth,E=n&&n.padding?n.padding:e.padding,k=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"===typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:gE(fE(n[0],t)),columnGap:gE(fE(n[1],t))};var r=gE(fE(e,t));return{rowGap:r,columnGap:r}}(S,t),w=k.rowGap,I=k.columnGap,P=""+-.5*I.value+I.unit,T=""+-.5*w.value+w.unit,D={textOverflow:"ellipsis"},A={"> *:not(.ms-StackItem)":{flexShrink:y?0:1}};return f?{root:[C.root,{flexWrap:"wrap",maxWidth:_,maxHeight:x,width:"auto",overflow:"visible",height:"100%"},g&&(r={},r[p?"justifyContent":"alignItems"]=yE[g]||g,r),v&&(o={},o[p?"alignItems":"justifyContent"]=yE[v]||v,o),b,{display:"flex"},p&&{height:d?"100%":"auto"}],inner:[C.inner,{display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:T,marginBottom:T,overflow:"visible",boxSizing:"border-box",padding:vE(E,t),width:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",maxWidth:"100vw",selectors:u({"> *":u({margin:""+.5*w.value+w.unit+" "+.5*I.value+I.unit},D)},A)},g&&(i={},i[p?"justifyContent":"alignItems"]=yE[g]||g,i),v&&(a={},a[p?"alignItems":"justifyContent"]=yE[v]||v,a),p&&{flexDirection:h?"row-reverse":"row",height:0===w.value?"100%":"calc(100% + "+w.value+w.unit+")",selectors:{"> *":{maxWidth:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}},!p&&{flexDirection:h?"column-reverse":"column",height:"calc(100% + "+w.value+w.unit+")",selectors:{"> *":{maxHeight:0===w.value?"100%":"calc(100% - "+w.value+w.unit+")"}}}]}:{root:[C.root,{display:"flex",flexDirection:p?h?"row-reverse":"row":h?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:_,maxHeight:x,padding:vE(E,t),boxSizing:"border-box",selectors:u((s={"> *":D},s[h?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+I.value+I.unit},!p&&{marginTop:""+w.value+w.unit}],s),A)},m&&{flexGrow:!0===m?1:m},g&&(l={},l[p?"justifyContent":"alignItems"]=yE[g]||g,l),v&&(c={},c[p?"alignItems":"justifyContent"]=yE[v]||v,c),b]}},statics:{Item:mE}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(CE||(CE={}));!function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyContentTop=o.createRef(),n._stickyContentBottom=o.createRef(),n._nonStickyContent=o.createRef(),n._placeHolder=o.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){if(n.root&&n.nonStickyContent){var r=n._getNonStickyDistanceFromTop(e),o=!1,i=!1;if(n.canStickyTop)o=r-n._getStickyDistanceFromTop()<e.scrollTop;n.canStickyBottom&&e.clientHeight-t.offsetHeight<=r&&(i=r-Math.floor(e.scrollTop)>=n._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&n.nonStickyContent.contains(document.activeElement)&&(n.state.isStickyTop!==o||n.state.isStickyBottom!==i)?n._activeElement=document.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&o,isStickyBottom:i,distanceFromTop:r})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var r=0;return n.stickyContentBottom&&(r=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),r},n._getNonStickyDistanceFromTop=function(e){var t=0,r=n.root;if(r){for(;r&&r.offsetParent!==e;)t+=r.offsetTop,r=r.offsetParent;r&&r.offsetParent===e&&(t+=r.offsetTop)}return t},or(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n}c(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===CE.Both||this.props.stickyPosition===CE.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===CE.Both||this.props.stickyPosition===CE.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,i=r.isStickyTop,a=r.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,i=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||xE(this._nonStickyContent,this._stickyContentTop)||xE(this._nonStickyContent,this._stickyContentBottom)||xE(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,r=this.props,i=r.stickyClassName,a=r.children;return this.context.scrollablePane?o.createElement("div",{ref:this._root},this.canStickyTop&&o.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},o.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&o.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},o.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),o.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&o.createElement("span",{style:Ii},a),o.createElement("div",{ref:this._nonStickyContent,className:t||n?i:void 0,style:this._getContentStyles(t||n)},a))):o.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:CE.Both,isScrollSynced:!0},t.contextType=Zx}(o.Component);function xE(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var _E=Ft(),EE=function(e){var t=Um(e);return"ffffff"===(null===t||void 0===t?void 0:t.hex)},kE=Gt((function(e,t,n,r,o,i,a,s,l){var c=kd(e);return ne({root:["ms-Button",c.root,n,t,a&&["is-checked",c.rootChecked],i&&["is-disabled",c.rootDisabled],!i&&!a&&{selectors:{":hover":c.rootHovered,":focus":c.rootFocused,":active":c.rootPressed}},i&&a&&[c.rootCheckedDisabled],!i&&a&&{selectors:{":hover":c.rootCheckedHovered,":active":c.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",c.flexContainer]})})),wE={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},IE=Kr((function(e){var t=e.item,n=e.idPrefix,r=void 0===n?e.id:n,i=e.selected,a=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,c=e.styles,u=e.circle,d=void 0===u||u,p=e.color,h=e.onClick,m=e.onHover,f=e.onFocus,g=e.onMouseEnter,v=e.onMouseMove,y=e.onMouseLeave,b=e.onWheel,C=e.onKeyDown,S=e.height,x=e.width,_=e.borderWidth,E=_E(c,{theme:e.theme,disabled:l,selected:a,circle:d,isWhite:EE(p),height:S,width:x,borderWidth:_});return o.createElement(ap,{item:t,id:r+"-"+t.id+"-"+t.index,key:t.id,disabled:l,role:"gridcell",onRenderItem:function(e){var t,n=E.svg;return o.createElement("svg",{className:n,viewBox:"0 0 20 20",fill:null===(t=Um(e.color))||void 0===t?void 0:t.str},d?o.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):o.createElement("rect",{width:"100%",height:"100%"}))},selected:a,onClick:h,onHover:m,onFocus:f,label:t.label,className:E.colorCell,getClassNames:kE,index:t.index,onMouseEnter:g,onMouseMove:v,onMouseLeave:y,onWheel:b,onKeyDown:C})}),(function(e){var t,n,r,o,i,a=e.theme,s=e.disabled,l=e.selected,c=e.circle,u=e.isWhite,d=e.height,p=void 0===d?20:d,h=e.width,m=void 0===h?20:h,f=e.borderWidth,g=a.semanticColors,v=a.palette,y=v.neutralLighter,b=v.neutralLight,C=v.neutralSecondary,S=v.neutralTertiary,x=f||(m<24?2:4);return{colorCell:[Ei(a,{inset:-1,position:"relative",highContrastStyle:wE}),{backgroundColor:g.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:p,width:m,verticalAlign:"top"},!c&&{selectors:(t={},t[".ms-Fabric--isFocusVisible &:focus::after"]={outlineOffset:x-1+"px"},t)},c&&{borderRadius:"50%",selectors:(n={},n[".ms-Fabric--isFocusVisible &:focus::after"]={outline:"none",borderColor:g.focusBorder,borderRadius:"50%",left:-x,right:-x,top:-x,bottom:-x,selectors:(r={},r[Ci]={outline:"1px solid ButtonText"},r)},n)},l&&{padding:2,border:x+"px solid "+b,selectors:(o={},o["&:hover::before"]={content:'""',height:p,width:m,position:"absolute",top:-x,left:-x,borderRadius:c?"50%":"default",boxShadow:"inset 0 0 0 1px "+C},o)},!l&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:g.bodyBackground,padding:2,border:x+"px solid "+y},i["&:focus"]={borderColor:g.bodyBackground,padding:0,selectors:{":hover":{borderColor:a.palette.neutralLight,padding:2}}},i)},s&&{color:g.disabledBodyText,pointerEvents:"none",opacity:.3},u&&!l&&{backgroundColor:S,padding:1}],svg:[{width:"100%",height:"100%"},c&&{borderRadius:"50%"}]}}),void 0,{scope:"ColorPickerGridCell"},!0),PE=Ft(),TE="SwatchColorPicker";var DE=o.forwardRef((function(e,t){var n=Cs("swatchColorPicker"),r=e.id||n,i=gs({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),a=ks(),s=a.setTimeout,l=a.clearTimeout;!function(e){As({name:TE,props:e,mutuallyExclusive:{focusOnHover:"onHover",selectedId:"defaultSelectedId"},deprecations:{isControlled:"selectedId' or 'defaultSelectedId",onColorChanged:"onChange"}})}(e);var c=e.colorCells,d=e.cellShape,p=void 0===d?"circle":d,h=e.columnCount,m=e.shouldFocusCircularNavigate,f=void 0===m||m,g=e.className,v=e.disabled,y=void 0!==v&&v,b=e.doNotContainWithinFocusZone,C=e.styles,S=e.cellMargin,x=void 0===S?10:S,_=e.defaultSelectedId,E=e.focusOnHover,k=e.mouseLeaveParentSelector,w=e.onChange,I=e.onColorChanged,P=e.onCellHovered,T=e.onCellFocused,D=e.getColorGridCellStyles,A=e.cellHeight,R=e.cellWidth,N=e.cellBorderWidth,M=o.useMemo((function(){return c.map((function(e,t){return u(u({},e),{index:t})}))}),[c]),F=o.useCallback((function(e,t){var n,r=null===(n=c.filter((function(e){return e.id===t}))[0])||void 0===n?void 0:n.color;null===w||void 0===w||w(e,t,r),null===I||void 0===I||I(t,r)}),[w,I,c]),B=bs(e.selectedId,_,F),O=B[0],L=B[1],H=PE(C,{theme:e.theme,className:g,cellMargin:x}),V={root:H.root,tableCell:H.tableCell,focusedContainer:H.focusedContainer},z=o.useCallback((function(){T&&(i.cellFocused=!1,T())}),[i,T]),U=o.useCallback((function(e){return E?(i.isNavigationIdle&&!y&&e.currentTarget.focus(),!0):!i.isNavigationIdle||!!y}),[E,i,y]),W=o.useCallback((function(e){if(!E)return!i.isNavigationIdle||!!y;var t=e.currentTarget;return!i.isNavigationIdle||document&&t===document.activeElement||t.focus(),!0}),[E,i,y]),G=o.useCallback((function(e){var t=k;if(E&&t&&i.isNavigationIdle&&!y)for(var n=document.querySelectorAll(t),r=0;r<n.length;r+=1)if(n[r].contains(e.currentTarget)){if(n[r].setActive)try{n[r].setActive()}catch(SR){}else n[r].focus();break}}),[y,E,i,k]),j=o.useCallback((function(e){if(P)return e?P(e.id,e.color):P()}),[P]),q=o.useCallback((function(e){if(T)return e?(i.cellFocused=!0,T(e.id,e.color)):(i.cellFocused=!1,T())}),[i,T]),K=o.useCallback((function(e){y||e.id!==O&&(T&&i.cellFocused&&(i.cellFocused=!1,T()),L(e.id))}),[y,i,T,O,L]),Y=o.useCallback((function(){i.isNavigationIdle||void 0===i.navigationIdleTimeoutId?i.isNavigationIdle=!1:(l(i.navigationIdleTimeoutId),i.navigationIdleTimeoutId=void 0),i.navigationIdleTimeoutId=s((function(){i.isNavigationIdle=!0}),i.navigationIdleDelay)}),[l,i,s]),X=o.useCallback((function(e){e.which!==tt&&e.which!==rt&&e.which!==et&&e.which!==nt||Y()}),[Y]),Q=function(e){return o.createElement(IE,{item:e,idPrefix:r,color:e.color,styles:D,disabled:y,onClick:K,onHover:j,onFocus:q,selected:O===e.id,circle:"circle"===p,label:e.label,onMouseEnter:U,onMouseMove:W,onMouseLeave:G,onWheel:Y,onKeyDown:X,height:A,width:R,borderWidth:N})};if(c.length<1||h<1)return null;return o.createElement(tp,u({},e,{ref:t,id:r,items:M,columnCount:h,onRenderItem:function(t,n){var r=e.onRenderColorCell;return(void 0===r?Q:r)(t,Q)},shouldFocusCircularNavigate:f,doNotContainWithinFocusZone:b,onBlur:z,theme:e.theme,styles:V}))}));DE.displayName=TE;var AE={focusedContainer:"ms-swatchColorPickerBodyContainer"},RE=(Kr(DE,(function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[Mi(AE,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}}),void 0,{scope:"SwatchColorPicker"}),Ft()),NE=o.forwardRef((function(e,t){var n,r,i,a,s,l,c,d=o.useRef(null),p=Ps(),h=Ss(d,t),m=Cs("teaching-bubble-content-"),f=Cs("teaching-bubble-title-"),g=null!==(n=e.ariaDescribedBy)&&void 0!==n?n:m,v=null!==(r=e.ariaLabelledBy)&&void 0!==r?r:f,y=e.illustrationImage,b=e.primaryButtonProps,C=e.secondaryButtonProps,S=e.headline,x=e.hasCondensedHeadline,_=e.hasCloseButton,E=void 0===_?e.hasCloseIcon:_,k=e.onDismiss,w=e.closeButtonAriaLabel,I=e.hasSmallHeadline,P=e.isWide,T=e.styles,D=e.theme,A=e.footerContent,R=e.focusTrapZoneProps,N=RE(T,{theme:D,hasCondensedHeadline:x,hasSmallHeadline:I,hasCloseButton:E,hasHeadline:!!S,isWide:P,primaryButtonClassName:b?b.className:void 0,secondaryButtonClassName:C?C.className:void 0});if(xs(p,"keydown",o.useCallback((function(e){k&&e.which===Ye&&k(e)}),[k])),y&&y.src&&(i=o.createElement("div",{className:N.imageContent},o.createElement(Al,u({},y)))),S){var M="string"===typeof S?"p":"div";a=o.createElement("div",{className:N.header},o.createElement(M,{role:"heading","aria-level":3,className:N.headline,id:v},S))}if(e.children){var F="string"===typeof e.children?"p":"div";s=o.createElement("div",{className:N.body},o.createElement(F,{className:N.subText,id:g},e.children))}return(b||C||A)&&(l=o.createElement(SE,{className:N.footer,horizontal:!0,horizontalAlign:A?"space-between":"end"},o.createElement(SE.Item,{align:"center"},o.createElement("span",null,A)),o.createElement(SE.Item,null,C&&o.createElement(Ed,u({},C,{className:N.secondaryButton})),b&&o.createElement(Ad,u({},b,{className:N.primaryButton}))))),E&&(c=o.createElement(Dd,{className:N.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:w,onClick:k})),function(e,t){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,d),o.createElement("div",{className:N.content,ref:h,role:"dialog",tabIndex:-1,"aria-labelledby":v,"aria-describedby":g,"data-is-focusable":!0},i,o.createElement(dl,u({isClickableOutsideFocusTrap:!0},R),o.createElement("div",{className:N.bodyContent},a,s,l,c)))})),ME={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},FE=Gt((function(){return ae({"0%":{opacity:0,animationTimingFunction:Ko,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),BE=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:""+FE(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},OE=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},LE=function(e){var t,n,r,o=e.hasCondensedHeadline,i=e.hasSmallHeadline,a=e.hasCloseButton,s=e.hasHeadline,l=e.isWide,c=e.primaryButtonClassName,u=e.secondaryButtonClassName,d=e.theme,p=e.calloutProps,m=void 0===p?{className:void 0,theme:d}:p,f=!o&&!i,g=d.palette,v=d.semanticColors,y=d.fonts,b=Mi(ME,d),C=Ei(d,{outlineColor:"transparent",borderColor:"transparent"});return{root:[b.root,y.medium,m.className],body:[b.body,a&&!s&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[b.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[b.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:g.white,fontSize:y.small.fontSize,selectors:{":hover":{background:g.themeDarkAlt,color:g.white},":active":{background:g.themeDark,color:g.white},":focus":{border:"1px solid "+v.variantBorder}}}],content:h([b.content],BE(l),[l&&{display:"flex"}]),footer:[b.footer,{display:"flex",flex:"auto",alignItems:"center",color:g.white,selectors:(t={},t["."+b.button+":not(:first-child)"]={marginLeft:10},t)}],header:h([b.header],OE(b,o,i),[a&&{marginRight:24},(o||i)&&[y.medium,{fontWeight:ui.semibold}]]),headline:[b.headline,{margin:0,color:g.white,fontWeight:ui.semibold,overflowWrap:"break-word"},f&&[{fontSize:y.xLarge.fontSize}]],imageContent:[b.header,b.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[b.primaryButton,c,C,{backgroundColor:g.white,borderColor:g.white,color:g.themePrimary,whiteSpace:"nowrap",selectors:(n={},n["."+b.buttonLabel]=y.medium,n[":hover"]={backgroundColor:g.themeLighter,borderColor:g.themeLighter,color:g.themeDark},n[":focus"]={backgroundColor:g.themeLighter,border:"1px solid "+g.black,color:g.themeDark,outline:"1px solid "+g.white,outlineOffset:"-2px"},n[":active"]={backgroundColor:g.white,borderColor:g.white,color:g.themePrimary},n)}],secondaryButton:[b.secondaryButton,u,C,{backgroundColor:g.themePrimary,borderColor:g.white,whiteSpace:"nowrap",selectors:(r={},r["."+b.buttonLabel]=[y.medium,{color:g.white}],r[":hover"]={backgroundColor:g.themeDarkAlt,borderColor:g.white},r[":focus"]={backgroundColor:g.themeDark,border:"1px solid "+g.black,outline:"1px solid "+g.white,outlineOffset:"-2px"},r[":active"]={backgroundColor:g.themePrimary,borderColor:g.white},r)}],subText:[b.subText,{margin:0,fontSize:y.medium.fontSize,color:g.white,fontWeight:ui.regular}],subComponentStyles:{callout:{root:h(BE(l,m),[y.medium]),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},HE=Kr(NE,LE,void 0,{scope:"TeachingBubbleContent"}),VE={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Ma},zE=Ft(),UE=o.forwardRef((function(e,t){var n=o.useRef(null),r=Ss(n,t),i=e.calloutProps,a=e.targetElement,s=e.onDismiss,l=e.hasCloseButton,c=void 0===l?e.hasCloseIcon:l,d=e.isWide,p=e.styles,h=e.theme,m=e.target,f=o.useMemo((function(){return u(u(u({},VE),i),{theme:h})}),[i,h]),g=zE(p,{theme:h,isWide:d,calloutProps:f,hasCloseButton:c}),v=g.subComponentStyles?g.subComponentStyles.callout:void 0;return function(e,t){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,n),o.createElement(ul,u({target:m||a,onDismiss:s},f,{className:g.root,styles:v,hideOverflow:!0}),o.createElement("div",{ref:r},o.createElement(HE,u({},e))))}));UE.displayName="TeachingBubble";Kr(UE,LE,void 0,{scope:"TeachingBubble"});var WE,GE,jE,qE=uE((function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,d(e,["block","className","as","variant","nowrap"]));return iE(lE(e,{root:n}).root,u({},$n(r,An)))}),{displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),KE=ae({from:{opacity:0},to:{opacity:1}}),YE=ae({from:{opacity:1},to:{opacity:0}}),XE=ae({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),QE=ae({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),ZE=ae({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),JE=ae({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),$E=ae({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),ek=ae({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),tk=ae({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),nk=ae({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),rk=ae({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),ok=ae({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function ik(e,t,n){return e+" "+t+" "+n}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(WE||(WE={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(GE||(GE={})),function(e){e.fadeIn=ik(KE,WE.duration1,GE.linear),e.fadeOut=ik(YE,WE.duration1,GE.linear),e.scaleDownIn=ik(XE,WE.duration3,GE.decelerate),e.scaleDownOut=ik(QE,WE.duration3,GE.decelerate),e.slideLeftOut=ik(ZE,WE.duration1,GE.accelerate),e.slideRightOut=ik(JE,WE.duration1,GE.accelerate),e.slideLeftIn=ik($E,WE.duration1,GE.decelerate),e.slideRightIn=ik(ek,WE.duration1,GE.decelerate),e.slideUpOut=ik(tk,WE.duration1,GE.accelerate),e.slideDownOut=ik(nk,WE.duration1,GE.accelerate),e.slideUpIn=ik(rk,WE.duration1,GE.decelerate),e.slideDownIn=ik(ok,WE.duration1,GE.decelerate)}(jE||(jE={}));$i({});g("@fluentui/theme","2.4.1");var ak=o.createContext(void 0);var sk=function(){var e=o.useContext(ak),t=un(["theme"]).theme;return e||t||$i({})},lk=0,ck={reset:function(){E.getInstance().onReset((function(){return lk++}))},getId:function(){return lk},renderStyles:function(e,t){return re(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return ie(e)},renderKeyframes:function(e){return ae(e)}};var uk=function(e){var t=new Map;return function(n){void 0===n&&(n={});var r=n.theme,o=Is(),i=sk();r=r||i;var a=ck.getId(),s="function"===typeof e,l=s?[a,o,r]:[a,o],c=function(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(!(e=e.get(o)))return}return e}(t,l);if(!c){var u=s?e(r):e;c=ck.renderStyles(u,{targetWindow:o,rtl:!!r.rtl}),function(e,t,n){for(var r=0;r<t.length-1;r++){var o=t[r],i=e.get(o);i||(i=new Map,e.set(o,i)),e=i}e.set(t[t.length-1],n)}(t,l,c)}return c}}((function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}}));function dk(e){var t=uk(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,i=null===(n=Ps())||void 0===n?void 0:n.body;o.useEffect((function(){if(r&&i){for(var e=0,n=t;e<n.length;e++){var o=n[e];o&&i.classList.add(o)}return function(){if(r&&i)for(var e=0,n=t;e<n.length;e++){var o=n[e];o&&i.classList.remove(o)}}}}),[r,i,t])}(e,[t.root,t.body]),e.className=Zt(n,t.root,"element"===r&&t.body)}var pk=function(e){var t=e.theme,n=e.customizerContext,r=e.as||"div",i="string"===typeof e.as?tr(e.as,e):function(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(e,["as"]);return o.createElement(ak.Provider,{value:t},o.createElement(nn.Provider,{value:n},o.createElement(r,u({},i))))},hk=new Map,mk=function(e){var t=e.theme,n=sk(),r=e.theme=o.useMemo((function(){var e=Zi(n,t);return e.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i){var a=i.id||hk.get(i);a||(a=wn(""),hk.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=o.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}}),[r]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},fk=o.forwardRef((function(e,t){var n=function(e,t){var n=Qr(t,e);return mk(n),{state:n,render:pk}}(e,{ref:Ss(t,o.useRef(null)),as:"div",applyTo:"element"}),r=n.render,i=n.state;return dk(i),gr(i.ref),r(i)}));fk.displayName="ThemeProvider";var gk,vk,yk;!function(){function e(){}e.setSlot=function(t,n,r,o,i){if(void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0),t.color||!t.value)if(i){var a=void 0;if("string"===typeof n){if(!(a=Um(n)))throw new Error("color is invalid in setSlot(): "+n)}else a=n;e._setSlot(t,a,r,o,i)}else t.color&&e._setSlot(t,t.color,r,o,i)},e.insureSlots=function(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(!o.inherits&&!o.value){if(!o.color)throw new Error("A color slot rule that does not inherit must provide its own color.");e._setSlot(o,o.color,n,!1,!1)}}},e.getThemeAsJson=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.name]=r.color?r.color.str:r.value||""}return t},e.getThemeAsCode=function(t){return e._makeRemainingCode("loadTheme({\n  palette: {\n",t)},e.getThemeAsCodeWithCreateTheme=function(t){return e._makeRemainingCode("const myTheme = createTheme({\n  palette: {\n",t)},e.getThemeAsSass=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.name.charAt(0).toLowerCase()+r.name.slice(1);t+=Gr('${0}Color: "[theme: {1}, default: {2}]";\n',o,o,r.color?r.color.str:r.value||"")}return t},e.getThemeForPowerShell=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.value)continue;var o=r.name.charAt(0).toLowerCase()+r.name.slice(1),i=r.color?"#"+r.color.hex:r.value||"";r.color&&r.color.a&&100!==r.color.a&&(i+=String(r.color.a.toString(16))),t+=Gr('"{0}" = "{1}";\n',o,i)}return"@{\n"+t+"}"},e._setSlot=function(t,n,r,o,i){if(void 0===i&&(i=!0),(t.color||!t.value)&&(i||!t.color||!t.isCustomized||!t.inherits)){!i&&t.isCustomized||o||!t.inherits||!tf(t.asShade)?(t.color=n,t.isCustomized=!0):(t.isBackgroundShade?t.color=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===qm.Unshaded||!tf(t))return e;var r={h:e.h,s:e.s,v:e.v},o=t-1;return zm(he(Rm((r=n?rf(r,Ym[Qm.length-1-o]):nf(r,Km[o])).h,r.s,r.v),{a:e.a}))}(n,t.asShade,r):t.color=of(n,t.asShade,r),t.isCustomized=!1);for(var a=0,s=t.dependentRules;a<s.length;a++){var l=s[a];e._setSlot(l,t.color,r,!1,i)}}},e._makeRemainingCode=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e+=Gr("    {0}: '{1}',\n",r.name.charAt(0).toLowerCase()+r.name.slice(1),r.color?"#"+r.color.hex:r.value||"")}return e+="  }});"}}();!function(e){e[e.primaryColor=0]="primaryColor",e[e.backgroundColor=1]="backgroundColor",e[e.foregroundColor=2]="foregroundColor"}(gk||(gk={})),function(e){e[e.themePrimary=0]="themePrimary",e[e.themeLighterAlt=1]="themeLighterAlt",e[e.themeLighter=2]="themeLighter",e[e.themeLight=3]="themeLight",e[e.themeTertiary=4]="themeTertiary",e[e.themeSecondary=5]="themeSecondary",e[e.themeDarkAlt=6]="themeDarkAlt",e[e.themeDark=7]="themeDark",e[e.themeDarker=8]="themeDarker",e[e.neutralLighterAlt=9]="neutralLighterAlt",e[e.neutralLighter=10]="neutralLighter",e[e.neutralLight=11]="neutralLight",e[e.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",e[e.neutralQuaternary=13]="neutralQuaternary",e[e.neutralTertiaryAlt=14]="neutralTertiaryAlt",e[e.neutralTertiary=15]="neutralTertiary",e[e.neutralSecondary=16]="neutralSecondary",e[e.neutralPrimaryAlt=17]="neutralPrimaryAlt",e[e.neutralPrimary=18]="neutralPrimary",e[e.neutralDark=19]="neutralDark",e[e.black=20]="black",e[e.white=21]="white"}(vk||(vk={})),function(e){e[e.bodyBackground=0]="bodyBackground",e[e.bodyText=1]="bodyText",e[e.disabledBackground=2]="disabledBackground",e[e.disabledText=3]="disabledText"}(yk||(yk={}));var bk=/((1[0-2]|0?[1-9]):([0-5][0-9]):(?:[0-5]\d) ?([AaPp][Mm]))$/,Ck=/((1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]))$/,Sk=/([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:[0-5]\d):(?:[0-5]\d)$/,xk=/([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:[0-5]\d)$/;(function(e){var t=e.label,n=e.increments,r=void 0===n?30:n,i=e.showSeconds,a=void 0!==i&&i,s=e.allowFreeform,l=void 0===s||s,c=e.useHour12,p=void 0!==c&&c,h=e.timeRange,m=e.strings,f=void 0===m?function(e,t){var n=e?"12-hour":"24-hour";return{invalidInputErrorMessage:t?"TimePicker format must be valid and in the "+n+" format hh:mm:ss A.":"TimePicker format must be valid and in the "+n+" format hh:mm A."}}(p,a):m,g=e.onFormatDate,v=e.onValidateUserInput,y=e.onChange,b=d(e,["label","increments","showSeconds","allowFreeform","useHour12","timeRange","strings","onFormatDate","onValidateUserInput","onChange"]),C=o.useState(""),S=C[0],x=C[1],_=o.useState(""),E=_[0],k=_[1],w=kk(r,h),I=o.useMemo((function(){for(var e=Array(w),t=0;t<w;t++)e[t]=0;var n=Ek(r,h);return e.map((function(e,t){var o=function(e,t){var n=new Date(e.getTime());return n.setTime(n.getTime()+t*lp*sp),n}(n,r*t);o.setSeconds(0);var i=g?g(o):function(e,t,n){return e.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:t?"2-digit":void 0,hour12:n})}(o,a,p);return{key:i,text:i}}))}),[h,r,w,a,g,p]),P=o.useState(I[0].key),T=P[0],D=P[1],A=o.useCallback((function(e,t,n,r){y&&y(e,t,n,r);var o=null===t||void 0===t?void 0:t.key,i="",s="";r?(l&&!t&&(g?v&&(s=v(r)):s=function(e){var t="";return(p?a?bk:Ck:a?Sk:xk).test(e)||(t=f.invalidInputErrorMessage),t}(r)),i=r):t&&(i=t.text),k(s),x(i),D(o)}),[l,g,v,a,p,y,f.invalidInputErrorMessage]);return o.createElement($f,u({},b,{allowFreeform:l,selectedKey:T,label:t,errorMessage:E,options:I,onChange:A,text:S,onKeyPress:function(e){g||e.charCode>=it&&e.charCode<=at||e.charCode===Xe||e.charCode===st||e.charCode===ct||e.charCode===ut||e.preventDefault()}}))}).displayName="TimePicker";var _k=function(e){return{start:Math.min(Math.max(e.start,0),23),end:Math.min(Math.max(e.end,0),23)}},Ek=function(e,t){var n=new Date;if(t){var r=_k(t);n.setHours(r.start)}return function(e,t){var n=new Date(e.getTime()),r=n.getMinutes();if(lp%t)n.setMinutes(0);else{for(var o=lp/t,i=1;i<=o;i++)if(r>t*(i-1)&&r<=t*i){r=t*i;break}n.setMinutes(r)}return n}(n,e)},kk=function(e,t){var n=dp;if(t){var r=_k(t);r.start>r.end?n=dp-t.start-t.end:t.end>t.start&&(n=t.end-t.start)}return Math.floor(lp*n/e)},wk=Ft(),Ik="Toggle",Pk=o.forwardRef((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.ariaLabel,a=e.checked,s=e.className,l=e.defaultChecked,c=void 0!==l&&l,d=e.disabled,p=e.inlineLabel,h=e.label,m=e.offAriaLabel,f=e.offText,g=e.onAriaLabel,v=e.onChange,y=e.onChanged,b=e.onClick,C=e.onText,S=e.role,x=e.styles,_=e.theme,E=bs(a,c,o.useCallback((function(e,t){null===v||void 0===v||v(e,t),null===y||void 0===y||y(t)}),[v,y])),k=E[0],w=E[1],I=wk(x,{theme:_,className:s,disabled:d,checked:k,inlineLabel:p,onOffMissing:!C&&!f}),P=k?g:m,T=Cs(Ik,e.id),D=T+"-label",A=T+"-stateText",R=k?C:f,N=$n(e,Hn,["defaultChecked"]),M=void 0;i||P||(h&&(M=D),R&&!M&&(M=A));var F=o.useRef(null);gr(F),Tk(e,k,F),As({name:Ik,props:e,deprecations:{offAriaLabel:void 0,onAriaLabel:"ariaLabel",onChanged:"onChange"},mutuallyExclusive:{checked:"defaultChecked"}});var B={root:{className:I.root,hidden:N.hidden},label:{children:h,className:I.label,htmlFor:T,id:D},container:{className:I.container},pill:u(u({},N),{"aria-disabled":d,"aria-checked":k,"aria-label":i||P,"aria-labelledby":M,className:I.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:d,id:T,onClick:function(e){d||(w(!k,e),b&&b(e))},ref:F,role:S||"switch",type:"button"}),thumb:{className:I.thumb},stateText:{children:R,className:I.text,htmlFor:T,id:A}};return o.createElement(r,u({ref:t},B.root),h&&o.createElement(Uh,u({},B.label)),o.createElement("div",u({},B.container),o.createElement("button",u({},B.pill),o.createElement("span",u({},B.thumb))),(k&&C||f)&&o.createElement(Uh,u({},B.stateText))))}));Pk.displayName="ToggleBase";var Tk=function(e,t,n){o.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},Dk=(Kr(Pk,(function(e){var t,n,r,o,i,a,s,l=e.theme,c=e.className,d=e.disabled,p=e.checked,h=e.inlineLabel,m=e.onOffMissing,f=l.semanticColors,g=l.palette,v=f.bodyBackground,y=f.inputBackgroundChecked,b=f.inputBackgroundCheckedHovered,C=g.neutralDark,S=f.disabledBodySubtext,x=f.smallInputBorder,_=f.inputForegroundChecked,E=f.disabledBodySubtext,k=f.disabledBackground,w=f.smallInputBorder,I=f.inputBorderHovered,P=f.disabledBodySubtext,T=f.disabledText;return{root:["ms-Toggle",p&&"is-checked",!d&&"is-enabled",d&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},h&&{display:"flex",alignItems:"center"},c],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:T,selectors:(t={},t[Ci]={color:"GrayText"},t)},h&&!m&&{marginRight:16},m&&h&&{order:1,marginLeft:16},h&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",Ei(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid "+w,background:v,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!d&&[!p&&{selectors:{":hover":[{borderColor:I}],":hover .ms-Toggle-thumb":[{backgroundColor:C,selectors:(n={},n[Ci]={borderColor:"Highlight"},n)}]}},p&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(r={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:(o={},o[Ci]={backgroundColor:"Highlight"},o)}]},r[Ci]=u({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}]],d&&[{cursor:"default"},!p&&[{borderColor:P}],p&&[{backgroundColor:S,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:(i={},i[Ci]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:x,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!d&&p&&[{backgroundColor:_,selectors:(a={},a[Ci]={backgroundColor:"Window",borderColor:"Window"},a)}],d&&[!p&&[{backgroundColor:E}],p&&[{backgroundColor:k}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:ui.regular}}},d&&{selectors:{"&&":{color:T,selectors:(s={},s[Ci]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),u(u({},Rp),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"})),Ak={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},Rk=Ft(),Nk=function(e){function t(t){var n=e.call(this,t)||this;n._dayGrid=o.createRef(),n._onSelectDate=function(e){var t=n.props.onSelectDate;n.setState({selectedDate:e}),n._focusOnUpdate=!0,t&&t(e)},n._onNavigateDate=function(e,t){var r=n.props.onNavigateDate;n.setState({navigatedDate:e}),n._focusOnUpdate=t,r&&r(e)},n._renderPreviousWeekNavigationButton=function(e){var t,r=n.props,i=r.minDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=xt()?s.rightNavigation:s.leftNavigation,u=!i||Cp(i,kp(l,a))<0;return o.createElement("button",{className:Zt(e.navigationIconButton,(t={},t[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectPrevDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectPrevDateRange):void 0,title:n._createPreviousWeekAriaLabel(),type:"button"},o.createElement(Ll,{iconName:c}))},n._renderNextWeekNavigationButton=function(e){var t,r=n.props,i=r.maxDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=xt()?s.leftNavigation:s.rightNavigation,u=!i||Cp(pp(kp(l,a),7),i)<0;return o.createElement("button",{className:Zt(e.navigationIconButton,(t={},t[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectNextDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectNextDateRange):void 0,title:n._createNextWeekAriaLabel(),type:"button"},o.createElement(Ll,{iconName:c}))},n._onSelectPrevDateRange=function(){n.props.showFullMonth?n._navigateDate(mp(n.state.navigatedDate,-1)):n._navigateDate(pp(n.state.navigatedDate,-7))},n._onSelectNextDateRange=function(){n.props.showFullMonth?n._navigateDate(mp(n.state.navigatedDate,1)):n._navigateDate(pp(n.state.navigatedDate,7))},n._navigateDate=function(e){n.setState({navigatedDate:e}),n.props.onNavigateDate&&n.props.onNavigateDate(e)},n._onWrapperKeyDown=function(e){switch(e.which){case Ge:case Ue:e.preventDefault()}},n._onButtonKeyDown=function(e){return function(t){if(t.which===Ge)e()}},n._onTouchStart=function(e){var t=e.touches[0];t&&(n._initialTouchX=t.clientX)},n._onTouchMove=function(e){var t=xt(),r=e.touches[0];r&&void 0!==n._initialTouchX&&r.clientX!==n._initialTouchX&&((r.clientX-n._initialTouchX)*(t?-1:1)<0?n._onSelectNextDateRange():n._onSelectPrevDateRange(),n._initialTouchX=void 0)},n._createPreviousWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.prevMonthAriaLabel)a=t.prevMonthAriaLabel+" "+t.months[mp(i,-1).getMonth()];else if(!r&&t.prevWeekAriaLabel){var s=kp(pp(i,-7),o),l=pp(s,6);a=t.prevWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._createNextWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.nextMonthAriaLabel)a=t.nextMonthAriaLabel+" "+t.months[mp(i,1).getMonth()];else if(!r&&t.nextWeekAriaLabel){var s=kp(pp(i,7),o),l=pp(s,6);a=t.nextWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._formatDateRange=function(e,t){var r=n.props,o=r.dateTimeFormatter,i=r.strings;return(null===o||void 0===o?void 0:o.formatMonthDayYear(e,i))+" - "+(null===o||void 0===o?void 0:o.formatMonthDayYear(t,i))},or(n);var r=t.initialDate&&!isNaN(t.initialDate.getTime())?t.initialDate:t.today||new Date;return n.state={selectedDate:r,navigatedDate:r,previousShowFullMonth:!!t.showFullMonth,animationDirection:t.animationDirection},n._focusOnUpdate=!1,n}return c(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,r=!!e.showFullMonth,o=r!==t.previousShowFullMonth?Gp.Vertical:Gp.Horizontal;return bp(n,t.selectedDate)?{selectedDate:n,navigatedDate:t.navigatedDate,previousShowFullMonth:r,animationDirection:o}:{selectedDate:n,navigatedDate:n,previousShowFullMonth:r,animationDirection:o}},t.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},t.prototype.render=function(){var e=this.props,t=e.strings,n=e.dateTimeFormatter,r=e.firstDayOfWeek,i=e.minDate,a=e.maxDate,s=e.restrictedDates,l=e.today,c=e.styles,p=e.theme,h=e.className,m=e.showFullMonth,f=e.weeksToShow,g=d(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),v=Rk(c,{theme:p,className:h});return o.createElement("div",{className:v.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":m},this._renderPreviousWeekNavigationButton(v),o.createElement(Yp,u({styles:c,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:r,firstWeekOfYear:op.FirstDay,dateRangeType:ip.Day,weeksToShow:m?f:1,dateTimeFormatter:n,minDate:i,maxDate:a,restrictedDates:s,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:l,lightenDaysOutsideNavigatedMonth:m,animationDirection:this.state.animationDirection},g)),this._renderNextWeekNavigationButton(v))},t.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},t.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:np.Sunday,strings:Dk,navigationIcons:Ak,dateTimeFormatter:Ap,animationDirection:Gp.Horizontal},t}(o.Component),Mk={root:"ms-WeeklyDayPicker-root"},Fk=(Kr(Nk,(function(e){var t,n=e.className,r=e.theme,o=r.palette,i=Mi(Mk,r);return{root:[i.root,oa,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},n],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[Ei(r,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:o.neutralLighter,fontSize:ci.small,fontFamily:"inherit",selectors:(t={},t["."+i.root+":hover &, ."+dr+" ."+i.root+":focus &, .ms-Fabric--isFocusVisible &:focus"]={height:53,minHeight:12,overflow:"initial"},t[".ms-Fabric--isFocusVisible ."+i.root+":focus-within &"]={height:53,minHeight:12,overflow:"initial"},t["&:hover"]={cursor:"pointer",backgroundColor:o.neutralLight},t["&:active"]={backgroundColor:o.neutralTertiary},t)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:o.neutralTertiaryAlt,pointerEvents:"none"}}}}}),void 0,{scope:"WeeklyDayPicker"}),function(e){function t(t){var n=e.call(this,t)||this;return n.renderIcon=function(e){var t={iconName:""};return e&&(e.indexOf("add-icon")>=0?t.iconName="Add":e.indexOf("edit-icon")>=0?t.iconName="PageEdit":e.indexOf("close-icon")>=0&&(t.iconName="ChromeClose")),t},n}return c(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,i=e.additionalClassName,a=e.disabled,s=e.ariaLabel,l=e.primary,c=e.tabIndex,u=e.propertyElementRef,d=(e.styleHints,{});return i&&(d.root={},i.indexOf("margin-left")>=0&&(d.root.marginLeft="16px"),i.indexOf("button-blue")>=0&&(d.root.color="#006FC9"),i.indexOf("full-width")>=0&&(d.root.width="100%"),i.indexOf("negative-margin")>=0&&(d.root.margin="-4px"),i.indexOf("no-padding")>=0&&(d.root.padding="0px")),i&&i.indexOf("action-trigger")>=0?o.createElement(wd,{id:t,onClick:r,className:i,disabled:a,ariaLabel:s,primary:l,iconProps:this.renderIcon(i),componentRef:u,styles:d},n):i&&i.indexOf("close-icon")>=0?o.createElement(Dd,{id:t,onClick:r,className:i,disabled:a,ariaLabel:"Close",primary:l,title:"Close",iconProps:this.renderIcon(i),componentRef:u}):l?o.createElement(Ad,{id:t,onClick:r,className:i,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:u,styles:ne(d,this.getPrimaryButtonStyles(this.props))},n):o.createElement(Ed,{id:t,onClick:r,className:i,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:u,styles:ne(d,this.getButtonStyles(this.props))},n)},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,i=e.additionalClassName,a=e.disabled,s=e.ariaLabel,l=e.primary,c=e.tabIndex,d=e.propertyElementRef,p=e.styleHints,h={id:t,onClick:r,className:i,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:d,styles:this.getStylesFromHints(p)},m=l?"primary":"default";switch(m=(null===i||void 0===i?void 0:i.includes("action-trigger"))?"action":m){case"primary":return h.styles=ne(h.styles,this.getPrimaryButtonStyles(this.props)),o.createElement(Ad,u({},h),n);case"action":return h.iconProps=this.getIconProps(p),o.createElement(wd,u({},h),n);default:return h.styles=ne(h.styles,this.getButtonStyles(this.props)),o.createElement(Ed,u({},h),n)}},t.prototype.getIconProps=function(e){if(e){var t=e.includes("icon-addTo")?"addTo":void 0;if(t)return{iconName:t}}},t.prototype.getPrimaryButtonStyles=function(e){var t,n;if((null===(t=e.theme)||void 0===t?void 0:t.button)||(null===(n=e.theme)||void 0===n?void 0:n.primaryButton)){var r=e.theme,o=r.button,i=r.primaryButton;return{root:i||o,rootHovered:(null===i||void 0===i?void 0:i.hover)||(null===o||void 0===o?void 0:o.hover),rootFocused:(null===i||void 0===i?void 0:i.focus)||(null===o||void 0===o?void 0:o.focus)}}},t.prototype.getButtonStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.button){var n=e.theme.button;return{root:n,rootHovered:n.hover,rootFocused:n.focus}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"text-accent":t=ne(t,{root:{color:"#0078D4"}});break;case"width-fill":t=ne(t,{root:{width:"100%"}});break;case"width-fill-large":t=ne(t,{root:{width:"100%",maxWidth:"200px"}});break;case"padding-none":t=ne(t,{root:{padding:0}});break;case"padding-small":t=ne(t,{root:{padding:"0.75rem",height:"unset"}});break;case"padding-medium":t=ne(t,{root:{padding:"1.2rem",height:"unset"}});break;case"margin-none":t=ne(t,e.some((function(e){return e.startsWith("icon-")}))?{root:{margin:0},icon:{margin:0}}:{root:{margin:0},label:{margin:0}});break;case"content-align-start":t=ne(t,{flexContainer:{justifyContent:"flex-start"}})}}return t}},t}(o.Component)),Bk=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=(e.additionalClassName,e.id),n=(e.displayId,e.options),r=void 0===n?[]:n,i=(e.optionsDirection,e.styleHints),a={id:t,tokens:this.getTokensFromStyleHints(i)},s={grow:1};return o.createElement(SE,u({},a),r&&r.map((function(e,t){return o.createElement(SE.Item,u({},s,{key:t}),e&&o.cloneElement(e,{key:t}))})))},t.prototype.getTokensFromStyleHints=function(e){if(e){for(var t,n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"gap-none":t=u(u({},t),{childrenGap:0});break;case"gap-small":t=u(u({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=u(u({},t),{childrenGap:"1rem"})}}return t}},t}(o.Component),Ok=function(e){var t=e.additionalClassName,n=e.ariaLabel,r=e.checked,i=e.disabled,a=e.displayContent,s=e.elementId,l=e.onChange,c=(e.tabIndex,e.propertyElementRef);return o.createElement(Hh,{ariaLabel:n,className:t,defaultChecked:r,disabled:i,id:s,label:a,onChange:function(e,t){l&&l(t||e&&e.currentTarget&&e.currentTarget.checked)},componentRef:c,styles:function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.checkbox))return;var n=e.theme.checkbox;return{root:n,label:n.label}}(e)})},Lk=function(e){function t(t){var n=e.call(this,t)||this;return n.toggle=function(){return n.setState({visible:!n.state.visible})},n.state={visible:!1},n.escapeHandler=n.escapeHandler.bind(n),n}return c(t,e),t.prototype.escapeHandler=function(e){27===e.keyCode&&this.state.visible&&(this.setState({visible:!1}),e.stopPropagation())},t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.escapeHandler,!1)},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.escapeHandler,!1)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.children,r=e.linkAdditionalClassName,i=e.linkText,a=e.linkAriaLabel,s=e.tabIndex,l=this.state.visible;return o.createElement(o.Fragment,null,o.createElement(Dd,{key:"".concat(t,"-toggle"),id:t,className:r,iconProps:{iconName:"Info"},title:i,ariaLabel:a,onClick:this.toggle,styles:{root:{marginBottom:-3}},tabIndex:s?Number(s)+1:void 0,"aria-expanded":l}),l&&o.createElement(ul,{key:"".concat(t,"-dialog"),target:"#".concat(t),setInitialFocus:!0,onDismiss:this.toggle,ariaDescribedBy:"".concat(t,"-container"),role:"alert",style:{padding:"20px"}},o.createElement("div",{id:"".concat(t,"-container"),style:{maxHeight:"75vh"}},n&&n.map((function(e,t){return e&&o.cloneElement(e,{key:t})})))))},t}(o.Component),Hk="__placeholder__",Vk=function(e){function t(t){var n=e.call(this,t)||this;return n.dropdownOption=function(e){return n.optionsElements&&n.optionsElements[e.key.toString()]?o.createElement(o.Fragment,null,n.optionsElements[e.key.toString()]):o.createElement("div",{style:{display:"flex"}},e.data&&e.data.imageUrl&&o.createElement(Al,{src:e.data.imageUrl,"aria-hidden":"true",height:"2em"}),o.createElement("span",null,e.text))},n.dropdownTitle=function(e){return n.dropdownOption(e[0])},n.downCaret=function(e){return o.createElement(Ll,{iconName:"ChevronDown"})},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.onChange,r=e.value,i=e.inlineError,a=e.isInValidationErrorGroup,s=e.additionalClassName,l=e.hidden,c=e.disabled,d=e.required,p=e.dropdownOptions,h=e.optionsElements,m=e.placeholder,f=e.ariaLabelId,g=e.onFocus,v=e.onBlur,y=e.showDisplayName,b=e.displayName,C=e.tabIndex,S=e.propertyElementRef,x=y?b:null,_=a&&!c;this.dropdownOptions=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],p,!0),this.optionsElements=u({},h),m&&(this.dropdownOptions.unshift({key:Hk,text:m}),this.optionsElements&&(this.optionsElements.__placeholder__=o.createElement("span",null,m)));var E=null;c&&(E={label:{color:"rgb(118,118,118)"}});var k=ne(E,this.getStylesFromHints(this.props.styleHints),this.getStyles(this.props));return o.createElement(cC,{id:t,options:this.dropdownOptions,onChange:function(e,t,r){var o=t&&t.key&&t.key.toString();n&&n(o===Hk?"":o)},selectedKey:!m||void 0!==r&&""!==r?r:Hk,errorMessage:i||(_?" ":void 0),className:s,hidden:l,disabled:c,required:d,label:x,placeholder:m,"aria-labelledby":f,onFocus:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;g&&g(t===Hk?"":t)},onBlur:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;v&&v(t===Hk?"":t)},onRenderOption:this.dropdownOption,onRenderTitle:this.dropdownTitle,styles:k,tabIndex:c?-1:C?Number(C):0,componentRef:S})},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.dropdown){var n=e.theme.dropdown;return{title:n,dropdown:{":focus::after":n.focus},dropdownItems:n.options,dropdownItemSelected:n.optionSelected,subComponentStyles:{label:{root:n.label}}}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"padding-horizontal-medium":t=ne(t,{title:i={paddingLeft:o="1.2rem",paddingRight:o},dropdownItem:i,dropdownItemSelected:i,caretDownWrapper:{padding:"0 "+o,right:0}});break;case"padding-vertical-small":var o,i;t=ne(t,{title:i={paddingTop:o="0.75rem",paddingBottom:o,lineHeight:"unset",height:"unset"},dropdownItem:i,dropdownItemSelected:i,caretDownWrapper:{display:"flex",alignItems:"center",height:"100%"}})}}return t}},t}(o.Component),zk=function(e){var t=e.errorMessage;if(!t)return null;var n=ra(),r=n.semanticColors,i={errorMessage:["pidl-office-fabric-error-message",sa.slideDownIn20,n.fonts.small,{color:r.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}]},a=Ft()(i,{hasErrorMessage:!0});return o.createElement("div",{role:"alert"},o.createElement("p",{className:a.errorMessage},o.createElement("span",null,t)))};"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;var Uk=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()})),Wk=s.pidlReactClassPrefix+"fluent-ui.",Gk=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e;if(null!=this.props.styleHints)return this.renderWithStyleHints();var t=this.props,n=t.childNodes,r=void 0===n?[]:n,i=t.layoutOrientation,a=t.errorNode,l=t.labelNode,c=t.displaySettings,d=t.elementId,p=(t.styleHints,this.props.groupClassName),h=p.filter((function(e){return s.startsWith(e,Wk)})),m=(null===(e=null===c||void 0===c?void 0:c.submitButtonBlock)||void 0===e?void 0:e.id)&&d.endsWith(c.submitButtonBlock.id)&&!c.submitButtonBlock.show?{display:"none"}:void 0,f=(p=p.filter((function(e){return!s.startsWith(e,s.pidlReactClassPrefix)}))).includes("pidlddc-full-width"),g=f?{grow:1}:void 0;if(p.includes("pidlddc-absolute-bottom")){m=u(u({},m),{position:"absolute",bottom:"10px"}),f&&(m.width="100%")}var v={id:d,className:Uk(p),horizontal:"inline"===i,style:m},y=[];return p.includes("pidlddc-space-between")&&(v.horizontalAlign="space-between"),h.forEach((function(e){var t=(e=e.substring(Wk.length)).split(".");if("columnGap"===t[0]&&(v=u(u({},v),{gap:"0 ".concat(t[1])})),"width"===t[0]){var n={width:"".concat(t[1])};m=u(u({},m),n),v.style=m}"innerStackFlex"===t[0]&&(y={root:{flex:t[1]}})})),o.createElement(SE,u({},v),l,r&&r.map((function(e,t){return o.createElement(SE.Item,u({},g,{align:"auto",key:t,styles:y}),e&&o.cloneElement(e,{key:t}))})),a)},t.prototype.renderWithStyleHints=function(){var e=this,t=this.props,n=t.childNodes,r=void 0===n?[]:n,i=t.errorNode,a=t.labelNode,s=this.getStackProps(this.props);return o.createElement(SE,u({},s),a,r&&r.map((function(t,n){var r=e.getStackItemProps(t,s.horizontal);return o.createElement(SE.Item,u({},r,{key:n}),t&&o.cloneElement(t,{key:n}))})),i)},t.prototype.getStackStyle=function(e,t){var n;return(null===(n=null===e||void 0===e?void 0:e.submitButtonBlock)||void 0===n?void 0:n.id)&&(null===t||void 0===t?void 0:t.endsWith(e.submitButtonBlock.id))&&!e.submitButtonBlock.show?{display:"none"}:void 0},t.prototype.getStackStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"align-vertical-center":t=ne(t,{root:{alignItems:"center"}});break;case"padding-top-small":t=ne(t,{root:{paddingTop:"0.5rem"}});break;case"padding-vertical-medium":t=ne(t,{root:{paddingTop:"1.2rem",paddingBottom:"1.2rem"}});break;case"padding-medium":t=ne(t,{root:{padding:"1.5rem"}});break;case"anchor-bottom":case"dock-bottom":t=ne(t,{root:{position:"absolute",bottom:0,width:"100%"}});break;case"dock-horizontal":t=ne(t,{root:{position:"absolute",left:0,right:0,width:"100%"}});break;case"width-fill":t=ne(t,{root:{width:"100%"}});break;case"background-opaque":t=ne(t,{root:{backgroundColor:"white"}});break;case"margin-top-small":t=ne(t,{root:{"margin-top":"0.5rem"}})}}return t}},t.prototype.getStackTokensFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"gap-none":t=u(u({},t),{childrenGap:0});break;case"gap-small":t=u(u({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=u(u({},t),{childrenGap:"1rem"})}}return t}},t.prototype.getGrowPropFromStyleHints=function(e,t){return void 0===t&&(t=!1),t?e.includes("width-fill")?1:void 0:e.includes("height-fill")?1:void 0},t.prototype.getStackProps=function(e){var t=e.groupClassName,n=e.layoutOrientation,r=e.displaySettings,o=e.elementId,i=e.styleHints,a="inline"===n||i.includes("direction-horizontal");return{id:o,className:Uk(t),horizontal:a,styles:this.getStackStylesFromHints(i),style:this.getStackStyle(r,o),tokens:this.getStackTokensFromHints(i),grow:this.getGrowPropFromStyleHints(i)}},t.prototype.getStackItemProps=function(e,t){var n=this.getReactNodeStyleHints(e)||[];return{grow:this.getGrowPropFromStyleHints(n,t),align:"auto"}},t.prototype.getReactNodeStyleHints=function(e){var t,n,r,o,i=null===e||void 0===e?void 0:e.props,a=null===(t=null===i||void 0===i?void 0:i.element)||void 0===t?void 0:t.styleHints;if(i&&!a){var s=i.children&&"function"==typeof i.children?i.children:void 0;a=null===(o=null===(r=null===(n=null===s||void 0===s?void 0:s(0))||void 0===n?void 0:n.props)||void 0===r?void 0:r.element)||void 0===o?void 0:o.styleHints}return a},t}(o.Component),jk=function(e){var t=e.id,n=e.displayContent,r=e.href,i=e.additionalClassName,a=e.ariaLabel,s=e.onClick,l=e.tabIndex;return o.createElement(Yc,{id:t,href:r,className:i,"aria-label":a,onClick:function(e){e&&e.preventDefault&&e.preventDefault(),s&&s(e)},tabIndex:l?Number(l):void 0,styles:function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.link))return;var n=e.theme.link;return{root:n,selectors:{":hover":n.hover,":focus":n.focus,":visited:":n.visited}}}(e)},n)},qk=function(e){var t=e.elementId,n=e.required,r=e.disabled,i=e.displayContent;return o.createElement(Uh,{id:t,disabled:r,required:n},i)},Kk=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.childNodes,n=(e.layoutOrientation,e.elementId),r=e.groupClassName,i=(e.displayId,e.type,e.displaySettings,e.open);return o.createElement(ky,{key:n,containerClassName:Uk(r),isOpen:i},t)},t}(o.Component),Yk=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,i=e.size,a=e.customWidth,s=e.hasCloseButton,l=e.isLightDismiss,c=e.closeButtonAriaLabel,u=e.onDismissed,d=void 0;switch(i){case"small":case"smallFixedFar":d=Uy.smallFixedFar;break;case"smallFixedNear":d=Uy.smallFixedNear;break;case"smallFluid":d=Uy.smallFluid;break;case"medium":d=Uy.medium;break;case"large":d=Uy.large;break;case"largeFixed":d=Uy.largeFixed;break;case"extraLarge":d=Uy.extraLarge;break;case"custom":d=Uy.custom;break;case"customNear":d=Uy.customNear}return o.createElement(Xb,{key:"".concat(t,"-Panel"),className:r,onDismissed:u,type:d,customWidth:a,hasCloseButton:s,isLightDismiss:l,closeButtonAriaLabel:c,isOpen:!0},n)},t}(o.Component),Xk=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,i=e.isDarkThemed,a=e.onClick;return o.createElement(gy,{key:"".concat(t,"-modal"),className:r,isDarkThemed:i,onClick:a},n)},t}(o.Component),Qk=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e,t){n.props.onSelect&&n.props.onSelect(t.key)},n}return c(t,e),t.prototype.getAriaLabel=function(e,t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v=null===e||void 0===e?void 0:e.displayText;if(v)return v;if(t){var y=t.props,b=null===(n=null===y||void 0===y?void 0:y.element)||void 0===n?void 0:n.tags;if(null===b||void 0===b?void 0:b["pi-container"]){var C=null===(o=null===(r=null===y||void 0===y?void 0:y.childNodes)||void 0===r?void 0:r.find)||void 0===o?void 0:o.call(r,(function(t){var n,r;return(null===(r=null===(n=t.props)||void 0===n?void 0:n.element)||void 0===r?void 0:r.id)==="optionDisplayGroup_".concat(e.value)})),S=null===(s=null===(a=null===(i=null===C||void 0===C?void 0:C.props)||void 0===i?void 0:i.childNodes)||void 0===a?void 0:a.find)||void 0===s?void 0:s.call(a,(function(t){var n,r;return(null===(r=null===(n=t.props)||void 0===n?void 0:n.element)||void 0===r?void 0:r.id)==="optionTextGroup_".concat(e.value)})),x=null===(p=null===(d=null===(u=null===(c=null===(l=null===S||void 0===S?void 0:S.props)||void 0===l?void 0:l.childNodes)||void 0===c?void 0:c.map)||void 0===u?void 0:u.call(c,(function(e){var t,n;return null===(n=null===(t=e.props)||void 0===t?void 0:t.element)||void 0===n?void 0:n.displayContent})))||void 0===d?void 0:d.join)||void 0===p?void 0:p.call(d," ");return x}if(null===b||void 0===b?void 0:b["address-container"]){x=null===(g=null===(f=null===(m=null===(h=null===y||void 0===y?void 0:y.childNodes)||void 0===h?void 0:h.map)||void 0===m?void 0:m.call(h,(function(e){var t,n;return null===(n=null===(t=e.props)||void 0===t?void 0:t.element)||void 0===n?void 0:n.displayContent})))||void 0===f?void 0:f.join)||void 0===g?void 0:g.call(f," ");return x}}return null},t.prototype.fixLogoAlt=function(e,t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v;if(t){var y=t.props,b=null===(n=null===y||void 0===y?void 0:y.element)||void 0===n?void 0:n.tags;if(null===b||void 0===b?void 0:b["pi-container"]){var C=null===(o=null===(r=y.childNodes)||void 0===r?void 0:r.find)||void 0===o?void 0:o.call(r,(function(t){return t.key==="optionLogo_".concat(e)}));if((null===(i=null===C||void 0===C?void 0:C.props)||void 0===i?void 0:i.element)&&!C.props.element.accessibilityName){var S=null===(v=null===(g=null===(f=null===(m=null===(h=null===(p=null===(d=null===(u=null===(c=null===(l=null===(s=null===(a=t._owner)||void 0===a?void 0:a.stateNode)||void 0===s?void 0:s.state)||void 0===l?void 0:l.properties)||void 0===c?void 0:c.id)||void 0===u?void 0:u.possibleOptions)||void 0===d?void 0:d[e])||void 0===p?void 0:p.pidlAction)||void 0===h?void 0:h.context)||void 0===m?void 0:m.instance)||void 0===f?void 0:f.paymentMethod)||void 0===g?void 0:g.display)||void 0===v?void 0:v.name;C.props.element.accessibilityName=S}}}},t.prototype.isRadioRequired=function(e,t){var n;if(t){var r=t.props,o=null===(n=null===r||void 0===r?void 0:r.element)||void 0===n?void 0:n.tags;if(null===o||void 0===o?void 0:o["address-container"])return!1}return e},t.prototype.render=function(){var e=this,t=this.props,n=t.elementId,r=t.options,i=t.showDisplayName,a=t.displayName,s=t.additionalClassName,l=t.disabled,c=t.required,d=t.selectedValue,p=t.optionsElements,h=(t.propertyName,t.propertyElementRef),m=$({display:"flex",alignItems:"center"});this.optionsElements=p;var f=[],g=c;return r.forEach((function(t){var n,r={};s&&s.indexOf("gray-option")>=0&&(r.root={backgroundColor:"#e1dfdd"});var i={key:t.value,text:t.displayText,disabled:t.isDisabled,styles:u(u({},r),e.getStyles(e.props))},a=null===(n=e.optionsElements)||void 0===n?void 0:n[i.key];i.ariaLabel=e.getAriaLabel(t,a),g=e.isRadioRequired(c,a),e.fixLogoAlt(i.key,a),a&&(i.onRenderField=function(e,t){return o.createElement("div",{className:m},t(e),a)}),f.push(i)})),o.createElement(om,{id:n,className:Uk(s),defaultSelectedKey:d,options:f,onChange:this.onChange,label:i?a:"",required:g,disabled:l,componentRef:h})},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.radio){var n=e.theme.radio;return{root:n,subComponentStyles:{label:{root:n.label}}}}},t}(o.Component),Zk=function(e){var t=e.elementId,n=e.additionalClassName,r=e.ariaLabel,i=e.ariaLive,a=e.label,s=e.labelPosition,l=e.size;return o.createElement(hv,{id:t,className:n,ariaLabel:r,ariaLive:"assertive"===i?"assertive":"off"===i?"off":"polite",label:a,labelPosition:"left"===s?"left":"top"===s?"top":"right"===s?"right":"bottom",size:"xSmall"===l?0:"small"===l?1:"medium"===l?2:3})},Jk=function(e){var t=ne(function(e){if(!e)return;for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"text-alert":t=ne(t,{root:{color:"rgb(199, 33, 39)"}});break;case"content-align-start":t=ne(t,{root:{display:"block",textAlign:"start"}});break;case"text-bold":t=ne(t,{root:{fontWeight:600}});break;case"padding-top-medium":t=ne(t,{root:{paddingTop:"1.2rem"}});break;case"padding-bottom-small":t=ne(t,{root:{paddingBottom:"0.75rem"}});break;case"padding-end-x-small":t=ne(t,{root:{paddingRight:"0.5rem"}});break;case"alignment-horizontal-center":t=ne(t,{root:{display:"block",textAlign:"center"}})}}return t}(e.styleHints),function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.text))return;return{root:e.theme.text}}(e));return e.variant&&"xLarge"==e.variant?o.createElement(qE,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t,as:"h2"},e.displayContent):o.createElement(qE,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t},e.displayContent)},$k=function(e){var t,n,r=$({"margin-top":"4px","padding-right":"5px",color:"#C72127"}),i=u({},e);return(null===(t=e.additionalClassName)||void 0===t?void 0:t.includes("pidlddc-single-pi-display-pidl-text"))&&(i.style=u({paddingLeft:"10px",paddingTop:"1.0em",fontWeight:"bold"},e.style),(null===(n=e.additionalClassName)||void 0===n?void 0:n.includes("pidlddc-single-pi-display-pidl-text-expired"))&&(i.style=u({color:"red"},i.style))),e.additionalClassName&&e.additionalClassName.indexOf("pidlddc-warning-icon")>=0?o.createElement(SE,{horizontal:!0,horizontalAlign:"space-between"},o.createElement(mE,null,o.createElement(Fl,{iconName:"Error",className:r})),o.createElement(mE,null,Jk(i))):Jk(i)},ew=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props.onChange;t&&e.target&&t(e.target.value)},n.onGetErrorStyle=function(e){return!n.props.inlineError?{}:{fieldGroup:{borderColor:ra().semanticColors.errorText}}},n.onRenderLabel=function(){var e=n.props,t=e.showDisplayName,r=e.id,i=e.displayName,a=e.inlineHelpLink,s=e.required,l=r+"_label",c=t?o.createElement(Uh,{required:s,htmlFor:r,id:l},i):null;return a?o.createElement(SE,{horizontal:!0,verticalAlign:"center"},c,a):c},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.value,r=e.additionalClassName,i=e.inlineError,a=e.isInValidationErrorGroup,s=e.hidden,l=e.disabled,c=e.required,d=e.placeholder,p=(e.ariaLabelId,e.maskInput),h=e.maxLength,m=e.onFocus,f=e.onBlur,g=e.inlineLogo,v=e.displayName,y=e.showDisplayName,b=e.inlineHelpLink,C=e.tabIndex,S=e.propertyElementRef,x=e.styleHints,_={src:g,shouldFadeIn:!0,width:"1.5rem",height:"1.5rem"},E=g?{iconType:bl.image,imageProps:_}:null,k=a&&!l,w=u({id:t,iconProps:E,value:n,onBlur:function(e){f&&e.currentTarget&&f(e.currentTarget.value)},onChange:this.onChange,onFocus:function(e){m&&e.currentTarget&&m(e.currentTarget.value)},errorMessage:i||(k?" ":void 0),className:r,hidden:s,disabled:l,label:v,required:c,placeholder:d,maxLength:h,styles:ne(this.onGetErrorStyle,this.getStylesFromHints(x),this.getStyles(this.props)),tabIndex:C?Number(C):void 0,componentRef:S},this.getPropsFromStyles(this.props.theme));return y||(w["aria-labelledby"]=null,w.label=null,w.ariaLabel=v),b&&(w["aria-labelledby"]=t,w.onRenderLabel=this.onRenderLabel),p&&(w.type="password"),o.createElement(ff,u({},w))},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.textbox){var n=e.theme.textbox;return{field:u(u({},n),{":focus":n.focus}),fieldGroup:{border:n.border},subComponentStyles:{label:{root:n.label}}}}},t.prototype.getPropsFromStyles=function(e){var t;return{borderless:"none"===(null===(t=null===e||void 0===e?void 0:e.textbox)||void 0===t?void 0:t.border)}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"gap-bottom-small":t=ne(t,{root:{marginBottom:"0.5rem"}});break;case"width-small":t=ne(t,{fieldGroup:{width:"5.5rem"}});break;case"width-fill":t=ne(t,{root:{width:"100%"}});break;case"width-half":t=ne(t,{root:{width:"50%"}});break;case"width-quarter":t=ne(t,{root:{width:"25%"}})}}return t}},t}(o.Component),tw=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,i=e.sourceUrl,a={src:i,width:48,height:48,alt:n||r};return t&&t.indexOf("image-icon")>=0?o.createElement(Al,u({},a)):o.createElement("img",{id:r,src:i,alt:n||r,"aria-label":n||r,className:t})},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,i=e.sourceUrl,a=e.styleHints;return o.createElement("img",{id:r,src:i,alt:n||r,"aria-label":n||r,className:t,style:this.getHtmlStyleFromStyleHints(a)})},t.prototype.getHtmlStyleFromStyleHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"image-extra-small":t=u(u({},t),{width:"24px"});break;case"image-small":t=u(u({},t),{width:"32px"});break;case"image-medium":t=u(u({},t),{width:"72px"});break;case"image-large":t=u(u({},t),{width:"230px"});break;case"image-height-small":t=u(u({},t),{height:"18px"});break;case"alignment-horizontal-center":t=u(u({},t),{display:"block",marginInline:"auto"})}}return t}},t}(o.Component),nw=function(e){var t=e.id,n=e.additionalClassName;return o.createElement(v_,{id:t,className:n})},rw=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.audioChildNodes,n=void 0===t?[]:t,r=e.imageChildNodes,i=void 0===r?[]:r,a=e.elementId,l=(e.displayId,e.type,e.showImageCaptcha),c=e.displayName,d=e.showDisplayName,p=e.required,h=this.props.captchaClassName;h=h.filter((function(e){return!s.startsWith(e,s.pidlReactClassPrefix)}));var m=d?o.createElement(Uh,{required:p,htmlFor:a,id:a+"_label"},c):null,f={id:a,className:Uk(h)};return o.createElement(SE,u({},f),m,o.createElement(SE,{style:{paddingBottom:"10px",gap:"5px"}},l&&i&&i.map((function(e,t){return e&&o.cloneElement(e,{key:t})})),!l&&n&&n.map((function(e,t){return e&&o.cloneElement(e,{key:t})}))))},t}(o.Component),ow=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.additionalClassName,r=e.ariaLabel,i=e.displayName,a=e.displayContent,s=e.showDisplayName,l=e.disabled,c=e.inlineHelpLink,u=e.onChange,d=e.onButtonClick,p=e.required,h=e.errorNode,m=e.selectedFile,f=e.inputFileRef,g=s?o.createElement(Uh,{disabled:l,required:p,htmlFor:t,id:t+"_label"},i):null;return o.createElement("div",{id:t,className:Uk(n)},o.createElement(SE,{horizontal:!0,verticalAlign:"center"},g,c),o.createElement("input",{type:"file",name:"file",ref:f,onChange:function(e){return u(e)},style:{display:"none"}}),o.createElement(Ad,{id:t+"_button","aria-label":r,disabled:l,onClick:d},a)," ",o.createElement(qE,{id:t+"_label"}," ",m," "),h)},t}(o.Component),iw=function(e){var t=e.elementId,n=e.required,r=e.disabled,i=e.displayContent,a=e.inlineHelpLink;return o.createElement(SE,{horizontal:!0,verticalAlign:"center"},o.createElement(Uh,{id:t,disabled:r,required:n},i),a)},aw="function",sw="object",lw="undefined";function cw(){return typeof globalThis!==lw&&globalThis?globalThis:typeof self!==lw&&self?self:typeof window!==lw&&window?window:typeof n.g!==lw&&n.g?n.g:null}function uw(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==sw&&n!==aw)throw new TypeError("Object prototype may only be an Object:"+e);function r(){}return r.prototype=e,new r}var dw=function(e,t){return dw=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])},dw(e,t)};var pw=cw()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(pw,(function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}),(function(e,t){function n(){this.constructor=e}dw(e,t),e.prototype=null===t?uw(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=pw.__assign),__extends||(__extends=pw.__extends);var hw=0,mw=1,fw=2,gw=4,vw=5,yw=sw,bw="window",Cw="JSON",Sw=cw;function xw(e){var t=Sw();return t&&t[e]?t[e]:e===bw&&_w()?window:null}function _w(){return Boolean(typeof window===yw&&window)}function Ew(){return _w()?window:xw(bw)}function kw(){return Boolean(typeof document===yw&&document)?document:xw("document")}function ww(){return Boolean(typeof navigator===yw&&navigator)}function Iw(){return ww()?navigator:xw("navigator")}function Pw(){return Boolean(typeof history===yw&&history)?history:xw("history")}function Tw(){return typeof location===yw&&location?location:xw("location")}function Dw(){return xw("performance")}function Aw(){return Boolean(typeof JSON===yw&&JSON||null!==xw(Cw))}function Rw(){return Aw()?JSON||xw(Cw):null}var Nw=4294967296,Mw=4294967295,Fw=null,Bw=!1,Ow=123456789,Lw=987654321;function Hw(e){e<0&&(e>>>=0),Ow=123456789+e&Mw,Lw=987654321-e&Mw,Bw=!0}function Vw(){Hw(Math.random()*Nw^(new Date).getTime())}function zw(e,t){return typeof e===t}function Uw(e){return zw(e,lw)||void 0===e}function Ww(e){return Uw(e)||null===e}function Gw(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function jw(e){return zw(e,sw)}function qw(e){return zw(e,aw)}function Kw(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!Ww(e))try{Ww(e.addEventListener)?Ww(e.attachEvent)||(e.attachEvent("on"+t,n),o=!0):(e.addEventListener(t,n,r),o=!0)}catch(SR){}return o}function Yw(e,t,n,r){if(void 0===r&&(r=!1),!Ww(e))try{Ww(e.removeEventListener)?Ww(e.detachEvent)||e.detachEvent("on"+t,n):e.removeEventListener(t,n,r)}catch(SR){}}function Xw(e,t,n,r){var o=Object.defineProperty;if(o)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),o(e,t,i),!0}catch(SR){}return!1}function Qw(e,t){if(e&&jw(e))for(var n in e)Gw(e,n)&&t.call(e,n,e[n])}var Zw,Jw=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},e.isString=function(e){return zw(e,"string")},e.isNumber=function(e){return zw(e,"number")},e.isBoolean=function(e){return zw(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace($w,(function(t){var n=0|e.randomValue(15);return("x"===t?n:3&n|8).toString(16)}))},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var r=e.length,o=0;o<r;o++)o in e&&t.call(n||e,e[o],o,e)},e.arrIndexOf=function(e,t,n){for(var r=e.length,o=n||0,i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;i++)if(i in e&&e[i]===t)return i;return-1},e.arrMap=function(e,t,n){for(var r=e.length,o=n||e,i=new Array(r),a=0;a<r;a++)a in e&&(i[a]=t.call(o,e[a],e));return i},e.arrReduce=function(e,t,n){var r,o=e.length,i=0;if(arguments.length>=3)r=arguments[2];else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=t(r,e[i],i,e)),i++;return r},e.strTrim=function(t){return e.isString(t)?t.replace(/^\s+|\s+$/g,""):t},e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!qw(e)&&(!jw(e)||null===e))throw new TypeError("objKeys called on non-object");var n=[];for(var r in e)Gw(e,r)&&n.push(r);if(t)for(var o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=o.length,a=0;a<i;a++)Gw(e,o[a])&&n.push(o[a]);return n},e.addEventHandler=function(e,t){var n=!1,r=Ew();r&&(n=Kw(r,e,t),n=Kw(r.body,e,t)||n);var o=kw();return o&&(n=eI.Attach(o,e,t)||n),n},e.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},e.perfNow=function(){var t=Dw();return t&&t.now?t.now():e.dateNow()},e.newId=function(t){void 0===t&&(t=22);for(var n=e.random32()>>>0,r=0,o="";o.length<t;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===r&&(n=(e.random32()<<2&4294967295|3&n)>>>0,r=0);return o},e.isIE=function(){if(null===Fw){var e=((Iw()||{}).userAgent||"").toLowerCase();Fw=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return Fw},e.randomValue=function(t){return t>0?Math.floor(e.random32()/Mw*(t+1))>>>0:0},e.random32=function(t){var n,r=xw("crypto")||xw("msCrypto");return r&&r.getRandomValues?n=r.getRandomValues(new Uint32Array(1))[0]&Mw:e.isIE()?(Bw||Vw(),n=e.mwcRandom32()&Mw):n=Math.floor(Nw*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?Hw(e):Vw()},e.mwcRandom32=function(e){var t=((Lw=36969*(65535&Lw)+(Lw>>16)&Mw)<<16)+(65535&(Ow=18e3*(65535&Ow)+(Ow>>16)&Mw))>>>0&Mw|0;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",o=0;o<4;o++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var i=n[8+(3&e.random32())|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+i+r.substr(16,3)+r.substr(19,12)},e.isTypeof=zw,e.isUndefined=Uw,e.isNullOrUndefined=Ww,e.hasOwnProperty=Gw,e.isFunction=qw,e.isObject=jw,e.objCreate=uw,e.objDefineAccessors=Xw,e}(),$w=/[xy]/g,eI=function(){function e(){}return e.Attach=Kw,e.AttachEvent=Kw,e.Detach=Yw,e.DetachEvent=Yw,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(Zw||(Zw={}));var tI={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},nI="constructor",rI="prototype",oI="function",iI="_dynClass",aI="_unknown_",sI=Object,lI=sI.getPrototypeOf,cI=0;function uI(e,t){return e&&sI.prototype.hasOwnProperty.call(e,t)}function dI(e){return e&&(e===sI.prototype||e===Array.prototype)}function pI(e){return dI(e)||e===Function.prototype}function hI(e){if(e){if(lI)return lI(e);var t=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);if(t)return t}return null}function mI(e,t){var n=[],r=sI.getOwnPropertyNames;if(r)n=r(e);else for(var o in e)"string"===typeof o&&uI(e,o)&&n.push(o);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function fI(e,t,n){return t!==nI&&typeof e[t]===oI&&(n||uI(e,t))}function gI(e){throw new TypeError("DynamicProto: "+e)}function vI(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function yI(e,t,n,r){var o=null;if(e&&uI(n,iI)){var i=e._dynInstFuncs||{};if((o=(i[n._dynClass]||{})[t])||gI("Missing ["+t+"] "+oI),!o._dynInstChk&&!1!==i._dynInstChk){for(var a=!uI(e,t),s=hI(e),l=[];a&&s&&!pI(s)&&!vI(l,s);){var c=s[t];if(c){a=c===r;break}l.push(s),s=hI(s)}try{a&&(e[t]=o),o._dynInstChk=1}catch(SR){i._dynInstChk=!1}}}return o}function bI(e,t,n){var r=t[e];return r===n&&(r=hI(t)[e]),typeof r!==oI&&gI("["+e+"] is not a "+oI),r}function CI(e,t,n,r,o){if(!dI(e)){var i=n._dynInstFuncs=n._dynInstFuncs||{},a=i[t]=i[t]||{};!1!==i._dynInstChk&&(i._dynInstChk=!!o),mI(n,(function(t){fI(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!uI(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(yI(this,t,e,n)||bI(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}function SI(e,t){return uI(e,rI)?e.name||t||aI:((e||{}).constructor||{}).name||t||aI}function xI(e,t,n,r){uI(e,rI)||gI("theClass is an invalid class definition.");var o=e.prototype;(function(e,t){if(lI)for(var n=[],r=hI(t);r&&!pI(r)&&!vI(n,r);){if(r===e)return!0;n.push(r),r=hI(r)}return!1})(o,t)||gI("["+SI(e)+"] is not in class hierarchy of ["+SI(t)+"]");var i=null;uI(o,iI)?i=o._dynClass:(i="_dynCls$"+SI(e,"_")+"$"+cI,cI++,o._dynClass=i);var a=xI._dfOpts,s=!!a.useBaseInst;s&&r&&void 0!==r.useBaseInst&&(s=!!r.useBaseInst);var l=function(e){var t={};return mI(e,(function(n){!t[n]&&fI(e,n,!1)&&(t[n]=e[n])})),t}(t),c=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o._isDynProxy&&r){var i=e._dynInstFuncs||{};!1!==i._dynInstChk&&(o=(i[t._dynClass]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};mI(n,(function(e){i[e]=o(t,n,e)}));for(var a=hI(e),s=[];a&&!pI(a)&&!vI(s,a);)mI(a,(function(e){!i[e]&&fI(a,e,!lI)&&(i[e]=o(t,a,e))})),s.push(a),a=hI(a);return i}(o,t,l,s);n(t,c);var u=!!lI&&!!a.setInstFuncs;u&&r&&(u=!!r.setInstFuncs),CI(o,i,t,l,!1!==u)}xI._dfOpts={setInstFuncs:!0,useBaseInst:!0};function _I(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var EI=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?"AI: ":"AI (Internal): ")+e;var i="";Aw()&&(i=Rw().stringify(r));var a=(t?" message:"+_I(t):"")+(r?" props:"+_I(i):"");o.message+=a}return e.dataType="MessageData",e}(),kI=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};xI(e,this,(function(e){var o=Jw.isNullOrUndefined,i=Jw.isUndefined,a=Jw.isFunction;function s(e,n){var r=t[e];return o(r)?n:r}o(t)&&(t={}),e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)},e.enableDebugExceptions=function(){return s("enableDebugExceptions",!1)},e.throwInternal=function(t,n,o,a,s){void 0===s&&(s=!1);var l=new EI(n,o,s,a);if(e.enableDebugExceptions())throw l;if(!i(l)&&l&&!i(l.message)){if(s){var c=+l.messageId;!r[c]&&e.consoleLoggingLevel()>=Zw.WARNING&&(e.warnToConsole(l.message),r[c]=!0)}else e.consoleLoggingLevel()>=Zw.WARNING&&e.warnToConsole(l.message);e.logInternalMessage(t,l)}},e.warnToConsole=function(e){var t="undefined"!==typeof console?console:xw("console");if(t){var n="log";t.warn&&(n="warn"),a(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,o){if(!(n>=e.maxInternalMessageLimit())){var i=!0,a="AITR_"+o.messageId;if(r[a]?i=!1:r[a]=!0,i&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(o),n++),n===e.maxInternalMessageLimit())){var s="Internal events throttle limit per PageView reached for this app.",l=new EI(tI.MessageLimitPerPVExceeded,s,!1);e.queue.push(l),e.warnToConsole(s)}}}}))}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,r,o){void 0===o&&(o=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),wI=function(){function e(t,n,r){var o,i=this,a=!1;(i.start=Jw.dateNow(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},Jw.isFunction(n))&&(a=Jw.objDefineAccessors(i,"payload",(function(){return!o&&Jw.isFunction(n)&&(o=n(),n=null),o})));i.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?i[t]:(i.ctx||{})[t]:null},i.setCtx=function(t,n){if(t)if(t===e.ParentContextKey)i[t]||(i.isChildEvt=function(){return!0}),i[t]=n;else if(t===e.ChildrenContextKey)i[t]=n;else{(i.ctx=i.ctx||{})[t]=n}},i.complete=function(){var t=0,r=i.getCtx(e.ChildrenContextKey);if(Jw.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=Jw.dateNow()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&Jw.isFunction(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),II=function(){function e(t){this.ctx={},xI(e,this,(function(e){e.create=function(e,t,n){return new wI(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))}return e.prototype.create=function(e,t,n){return null},e.prototype.fire=function(e){},e.prototype.setCtx=function(e,t){},e.prototype.getCtx=function(e){},e}(),PI="CoreUtils.doPerf";function TI(e,t,n,o,i){if(e){var a=e;if(a&&Jw.isFunction(a.getPerfMgr)&&(a=a.getPerfMgr()),a){var s=void 0,l=a.getCtx(PI);try{if(s=a.create(t(),o,i)){if(l&&s.setCtx&&(s.setCtx(wI.ParentContextKey,l),l.getCtx&&l.setCtx)){var c=l.getCtx(wI.ChildrenContextKey);c||(c=[],l.setCtx(wI.ChildrenContextKey,c)),c.push(s)}return a.setCtx(PI,s),n(s)}}catch(r){s&&s.setCtx&&s.setCtx("exception",r)}finally{s&&a.fire(s),a.setCtx(PI,l)}}}return n()}var DI=Jw.isFunction,AI=function(e,t){var n=this,r=null,o=DI(e.processTelemetry),i=DI(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return r},n.setNext=function(e){r=e},n.processTelemetry=function(a,s){s||(s=t);var l=e?e.identifier:"TelemetryPluginChain";TI(s?s.core():null,(function(){return l+":processTelemetry"}),(function(){if(e&&o){n._hasRun=!0;try{s.setNext(r),i&&e.setNextPlugin(r),r&&(r._hasRun=!1),e.processTelemetry(a,s)}catch(l){var t=r&&r._hasRun;r&&t||s.diagLog().throwInternal(Zw.CRITICAL,tI.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+l),r&&!t&&r.processTelemetry(a,s)}}else r&&(n._hasRun=!0,r.processTelemetry(a,s))}),(function(){return{item:a}}),!a.sync)}},RI=Jw.isNullOrUndefined;function NI(e,t){var n=[];if(e&&e.length>0)for(var r=null,o=0;o<e.length;o++){var i=e[o];if(i&&Jw.isFunction(i.processTelemetry)){var a=new AI(i,t);n.push(a),r&&r.setNext(a),r=a}}return n.length>0?n[0]:null}var MI=function e(t,n,r,o){var i=this,a=null;null!==o&&(t&&Jw.isFunction(t.getPlugin)?a=function(e,t,n){var r=[],o=!n;if(e)for(;e;){var i=e.getPlugin();(o||i===n)&&(o=!0,r.push(i)),e=e.getNext()}return o||r.push(n),NI(r,t)}(t,i,o||t.getPlugin()):o?a=function(e,t,n){var r=e,o=!1;return n&&e&&(r=[],Jw.arrForEach(e,(function(e){(o||e===n)&&(o=!0,r.push(e))}))),n&&!o&&(r||(r=[]),r.push(n)),NI(r,t)}(t,i,o):Jw.isUndefined(o)&&(a=NI(t,i))),i.core=function(){return r},i.diagLog=function(){var e=(r||{}).logger;return e||(e=new kI(n||{})),e},i.getCfg=function(){return n},i.getExtCfg=function(e,t){var r;if(void 0===t&&(t={}),n){var o=n.extensionConfig;o&&e&&(r=o[e])}return r||t},i.getConfig=function(e,t,r){var o;void 0===r&&(r=!1);var a=i.getExtCfg(e,null);return a&&!RI(a[t])?o=a[t]:n&&!RI(n[t])&&(o=n[t]),RI(o)?r:o},i.hasNext=function(){return null!=a},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processNext=function(e){var t=a;t&&(a=t.getNext(),t.processTelemetry(e,i))},i.createNew=function(t,o){return void 0===t&&(t=null),new e(t||a,n,r,o)}},FI=Jw.isFunction,BI=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&FI(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var o=t;if(!o){var i=n||new MI(null,{},e.core);o=r&&r.getPlugin?i.createNew(null,r.getPlugin):i.createNew(null,r)}return o},e._baseTelInit=function(o,i,a,s){o&&(o.extensionConfig=o.extensionConfig||[]),!s&&i&&(s=i.getProcessTelContext().getNext());var l=r;r&&r.getPlugin&&(l=r.getPlugin()),e.core=i,n=new MI(s,o,i,l),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}(),OI=Jw.isFunction;function LI(e,t){for(var n=[],r=null,o=e.getNext();o;){var i=o.getPlugin();i&&(r&&OI(r.setNextPlugin)&&OI(i.processTelemetry)&&r.setNextPlugin(i),OI(i.isInitialized)&&i.isInitialized()||n.push(i),r=i,o=o.getNext())}Jw.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function HI(e){return e.sort((function(e,t){var n=0,r=OI(t.processTelemetry);return OI(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1),n}))}var VI=500,zI=Jw.objDefineAccessors,UI=function(e){function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin",n.priority=500;var r,o=Jw.arrForEach;function i(e){e&&e.length>0&&(function(e){o(e,(function(e){if(e.priority<VI)throw Error("Channel has invalid priority"+e.identifier)}))}(e=e.sort((function(e,t){return e.priority-t.priority}))),r.push(e))}return xI(t,n,(function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){r&&o(r,(function(r){r.length>0&&n._getTelCtx(t).createNew(r).processNext(e)}))},e.getChannelControls=function(){return r},e.initialize=function(n,a,s){e.isInitialized()||(t.initialize(n,a,s),n.isCookieUseDisabled&&Jw.disableCookies(),function(e,t){r=[],e&&o(e,(function(e){return i(e)}));if(t){var n=[];o(t,(function(e){e.priority>VI&&n.push(e)})),i(n)}}((n||{}).channels,s),o(r,(function(e){return LI(new MI(e,n,a),s)})))}})),n}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=(zI(t.prototype,"ChannelControls",t.prototype.getChannelControls),void zI(t.prototype,"channelQueue",t.prototype.getChannelControls)),t}(BI),WI=Jw.arrForEach,GI=Jw.isNullOrUndefined,jI=function(){function e(){var t,n,r,o,i=!1;xI(e,this,(function(e){e._extensions=new Array,n=new UI,e.logger=Jw.objCreate({throwInternal:function(e,t,n,r,o){void 0===o&&(o=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return i},e.initialize=function(t,o,a,s){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||GI(t.instrumentationKey))throw Error("Please provide instrumentation key");r=s,e._notificationManager=s,e.config=t||{},t.extensions=GI(t.extensions)?[]:t.extensions,(t.extensionConfig=GI(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=s,a&&(e.logger=a);var l=[];l.push.apply(l,o.concat(t.extensions)),l=HI(l);var c=[],u=[],d={};if(WI(l,(function(e){if(GI(e)||GI(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,r=e.identifier;e&&t&&(GI(d[t])?d[t]=r:a.warnToConsole("Two extensions have same priority #"+t+" - "+d[t]+", "+r)),!t||t<n.priority?c.push(e):u.push(e)})),l.push(n),c.push(n),l=HI(l),e._extensions=l,LI(new MI([n],t,e),l),LI(new MI(c,t,e),l),e._extensions=c,0===e.getTransmissionControls().length)throw new Error("No channels available");i=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){n.iKey||(n.iKey=e.config.instrumentationKey),n.time||(n.time=Jw.toISOString(new Date)),GI(n.ver)&&(n.ver="4.0"),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,r=t;return t&&0!==t.length||(r=[n]),new MI(r,e.config,e)},e.getNotifyMgr=function(){return r||(r=Jw.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e._notificationManager=r),r},e.getPerfMgr=function(){return o||e.config&&e.config.enablePerfMgr&&(o=new II(e.getNotifyMgr())),o},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(WI(t,(function(t){e.getProcessTelContext().processNext(t)})),t=[])}}))}return e.prototype.initialize=function(e,t,n,r){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),qI=function(){function e(t){this.listeners=[];var n=Jw.arrForEach,r=!!(t||{}).perfEvtsSendAll;xI(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=Jw.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Jw.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,(function(e){e&&e.eventsSent&&setTimeout((function(){return e.eventsSent(t)}),0)}))},e.eventsDiscarded=function(t,r){n(e.listeners,(function(e){e&&e.eventsDiscarded&&setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}))},e.eventsSendRequest=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsSendRequest)if(r)setTimeout((function(){return e.eventsSendRequest(t,r)}),0);else try{e.eventsSendRequest(t,r)}catch(SR){}}))},e.perfEvent=function(t){t&&(!r&&t.isChildEvt()||n(e.listeners,(function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout((function(){return e.perfEvent(t)}),0);else try{e.perfEvent(t)}catch(SR){}})))}}))}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}(),KI=function(e){function t(){var n=e.call(this)||this;return xI(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],fw)}e.initialize=function(e,n,r,o){t.initialize(e,n,r||new kI(e),o||new qI(e))},e.track=function(r){TI(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(null===r)throw n(r),Error("Invalid telemetry item");!function(e){if(Jw.isNullOrUndefined(e.name))throw n(e),Error("telemetry name required")}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval((function(){var n=e.logger?e.logger.queue:[];Jw.arrForEach(n,(function(n){var r={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Jw.toISOString(new Date),baseType:EI.dataType,baseData:{message:n.message}};e.track(r)})),n.length=0}),n)}})),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0},t}(jI);Object.getPrototypeOf;var YI,XI=0,QI=13,ZI=32,JI=1,$I=2,eP=3,tP=0,nP=1,rP=6,oP=7,iP=__assign(__assign({},tI),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519}),aP="1DS-Web-JS-3.0.2",sP="undefined",lP=((YI={})[0]=tP,YI[2]=rP,YI[1]=nP,YI[3]=oP,YI[4098]=rP,YI[4097]=nP,YI[4099]=oP,YI),cP=null,uP=Jw.isUndefined,dP=Jw.isNullOrUndefined;var pP,hP=Jw.hasOwnProperty,mP=null,fP=Jw.arrForEach,gP=(Jw.arrIndexOf,Jw.arrMap,Jw.arrReduce,Jw.objKeys),vP=(Jw.toISOString,function(){var e=Iw();return!(!e||!e.product)&&"ReactNative"===e.product}),yP=Jw.isString,bP=Jw.isNumber,CP=Jw.isBoolean,SP=Jw.isFunction,xP=Jw.isArray,_P=Jw.isObject,EP=Jw.strTrim,kP=Boolean(kw()),wP=Boolean(Ew());function IP(e){return!(dP(e)||""===e)}function PP(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function TP(){return null===mP&&(mP=ww()&&Boolean(Iw().sendBeacon)),mP}function DP(e,t,n){var r=-1;if(!uP(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){if(bP(e)&&e>=0&&e<=9)return!0;return!1}(n))-1===r&&(r=0),r|=n;else{var o=lP[WP(e)]||-1;-1!==r&&-1!==o?r|=o:o===rP&&(r=o)}return r}function AP(){if(void 0===pP){pP=!1;try{var e=kw(),t=Iw();e&&!uP(e.cookie)&&t&&t.cookieEnabled&&(pP=!0)}catch(SR){}}return pP}function RP(e){return!!yP(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||(-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||(-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&(n="AppleWebKit/605.1.15 (KHTML, like Gecko)",void 0!==(t=e)&&void 0!==n&&-1!==t.indexOf(n,t.length-n.length))||(-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||(-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||(-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11")))))));var t,n}function NP(e,t,n){if(AP()){var r="",o=Tw();o&&"https:"===o.protocol&&(r=";secure",null===cP&&(cP=RP((Iw()||{}).userAgent)),cP||(t+=";SameSite=None"));var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var a="; expires="+i.toUTCString();kw().cookie=e+"="+t+a+"; path=/"+r}}function MP(e){if(AP()){e+="=";for(var t=decodeURIComponent((kw()||{}).cookie||"").split(";"),n=0;n<t.length;n++){for(var r=t[n],o=0;" "===r.charAt(o);)o++;if(0===(r=r.substring(o)).indexOf(e))return r.substring(e.length,r.length)}}return""}function FP(e){void 0===e&&(e="D");var t=Jw.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function BP(e,t,n,r,o){var i={},a=!1,s=0,l=arguments.length,c=Object.prototype,u=arguments;for("[object Boolean]"===c.toString.call(u[0])&&(a=u[0],s++);s<l;s++){Qw(e=u[s],(function(e,t){a&&t&&_P(t)?i[e]=BP(!0,i[e],t):i[e]=t}))}return i}var OP=Jw.perfNow;function LP(e){return!(!bP(e)||!(e>=XI&&e<=QI||e===ZI))}var HP=Jw.objDefineAccessors;function VP(e){var t=UP("beforeunload",e);return t=UP("unload",e)||t,t=UP("pagehide",e)||t}function zP(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=OP()}var UP=Jw.addEventHandler;function WP(e){var t=0;if(null!==e&&void 0!==e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===sw&&(t=4,xP(e)?(t=4096,e.length>0&&(t|=WP(e[0]))):hP(e,"value")&&(t=8192|WP(e.value)))}return t}var GP=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],n.pluginVersionString="",xI(t,n,(function(e,t){e.initialize=function(n,r,o,i){TI(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(n){n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var a=n.propertyStorageOverride;if(a&&(!a.getProperty||!a.setProperty))throw new Error("Invalid property storage override passed.");n.channels&&fP(n.channels,(function(t){t&&fP(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return"undefined"!==typeof document?0:-1},r&&fP(r,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(n,r,o,i)}catch(SR){e.logger.throwInternal(Zw.CRITICAL,iP.ErrorProvidedChannels,"Channels must be provided through config.channels only")}e.pollInternalLogs("InternalLog")}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){TI(e,(function(){return"AppInsightsCore.track"}),(function(){var r,o=n;if(o){o.timings=o.timings||{},o.timings.trackStart=OP(),(r=o.latency)&&bP(r)&&r>=1&&r<=3||(o.latency=JI);var i=o.ext=o.ext||{};i.sdk=i.sdk||{},i.sdk.ver=aP;var a=o.baseData=o.baseData||{};a.properties||(a.properties={});var s=a.properties;s.version||(s.version=""),""!==e.pluginVersionString&&(s.version=e.pluginVersionString)}t.track(o)}),(function(){return{item:n}}),!n.sync)}})),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t}(KI),jP=(function(e){function t(){var n=e.call(this)||this;return xI(t,n,(function(e,t){e.initialize=function(n,r,o,i){n&&(n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),e.getWParam=function(){return kP?0:-1};try{t.initialize(n,r,o,i)}catch(SR){e.logger.throwInternal(Zw.CRITICAL,iP.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=aP}t.track(n)}})),n}__extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){}}(jI),SP);function qP(e,t,n){return function(r){e[t]=r,n()}}var KP=function(){function e(t){var n=0,r=null,o=[];function i(){if(o.length>0){var e=o.slice();o=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(SR){}}),0)}}function a(e){0===n&&(r=e,n=1,i())}function s(e){0===n&&(r=e,n=2,i())}xI(e,this,(function(t){t.then=function(t,a){return new e((function(s,l){!function(t,a,s,l){o.push((function(){var o;try{(o=1===n?jP(t)?t(r):r:jP(a)?a(r):r)instanceof e?o.then(s,l):2!==n||jP(a)?s(o):l(o)}catch(i){return void l(i)}})),0!==n&&i()}(t,a,s,l)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!jP(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&jP(t.then)?new e((function(e,n){try{t.then(e,n)}catch(r){n(r)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],o=0,i=0;i<t.length;i++){var a=t[i];a&&jP(a.then)?(o++,a.then(qP(r,i,(function(){0===--o&&e(r)})),n)):r[i]=a}0===o&&setTimeout((function(){e(r)}),0)}catch(s){n(s)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var o=t[r];o&&jP(o.then)?o.then(e,n):setTimeout((function(){e(o)}),0)},o=0;o<t.length;o++)r(o)}catch(i){n(i)}}))},e.prototype.then=function(e,t){},e.prototype.catch=function(e){},e}(),YP=0,XP=[],QP=[],ZP=[];function JP(){return(new Date).getTime()}!function(){function e(t,n){var r=0,o=(t||"<unnamed>")+"."+YP;function i(e){var t=Sw();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function a(e){n&&n.warnToConsole("ESPromiseScheduler["+o+"] "+e)}YP++,xI(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,l,c){var u=o+"."+n;n++,l&&(u+="-("+l+")");var d=u+"{"+r+"}";r++;var p={evt:null,tm:JP(),id:d,isRunning:!1,isAborted:!1};return p.evt=t?function(e,t){var n=new KP((function(n,r){var o=JP()-t.tm,a=t.id;i("["+u+"] is waiting for ["+a+":"+o+" ms] to complete before starting -- ["+QP.length+"] waiting and ["+XP.length+"] running"),e.abort=function(t){e.abort=null,s(QP,u),e.isAborted=!0,r(new Error(t))},t.evt.then((function(t){s(QP,u),y(e).then(n,r)}),(function(t){s(QP,u),y(e).then(n,r)}))}));return QP.push(e),n}(p,t):y(p),(t=p).evt._schId=d,p.evt;function h(e){for(var t=JP(),n=t-6e5,r=e.length,o=0;o<r;){var i=e[o];if(i&&i.tm<n){var s=null;i.abort?(s="Aborting ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",i.abort(s)):s="Removing ["+i.id+"] due to Excessive runtime ("+(t-i.tm)+" ms)",a(s),e.splice(o,1),r--}else o++}}function m(e,n){var r=!1,o=s(XP,e);if(o||(o=s(ZP,e),r=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var l=JP()-o.tm;n?r?a("Timed out event ["+e+"] finally complete -- "+l+" ms"):i("Promise ["+e+"] Complete -- "+l+" ms"):(ZP.push(o),a("Event ["+e+"] Timed out and removed -- "+l+" ms"))}else i("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),h(XP),h(QP),h(ZP)}function f(e,t){return function(n){return m(e,!0),t&&t(n),n}}function g(e,t,n,r){t.then((function(t){return t instanceof KP?(i("Event ["+e+"] returned a promise -- waiting"),g(e,t,n,r),t):f(e,n)(t)}),f(e,r))}function v(e,t){var n=e.id;return new KP((function(r,o){i("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),o(new Error(t))};var a=t(n);a instanceof KP?(c&&(e.to=setTimeout((function(){m(n,!1),o(new Error("Timed out after ["+c+"] ms"))}),c)),g(n,a,(function(t){i("Event ["+n+"] Resolving after "+(JP()-e.tm)+" ms"),r(t)}),o)):(i("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function y(t){var n=JP();return t.wTm=n-t.tm,t.tm=n,t.isAborted?KP.reject(new Error("["+u+"] was aborted")):(XP.push(t),v(t,e))}}}))}e.incomplete=function(){return XP},e.waitingToStart=function(){return QP},e.prototype.scheduleEvent=function(e,t,n){}}();var $P=Jw.isNullOrUndefined,eT=(function(){function e(e){var t=this,n={},r=[],o=[];function i(e,t){var i,a=n[e];if(a&&(i=a[t]),!i&&null!==i){if(yP(e)&&yP(t))if(o.length>0){for(var s=0;s<o.length;s++)if(o[s].handleField(e,t)){i={canHandle:!0,fieldHandler:o[s]};break}}else 0===r.length&&(i={canHandle:!0});if(!i&&null!==i){i=null;for(s=0;s<r.length;s++)if(r[s].handleField(e,t)){i={canHandle:!0,handler:r[s],fieldHandler:null};break}}a||(a=n[e]={}),a[t]=i}return i}function a(e,t,n,r,o,i){if(e.handler)return e.handler.property(t,n,o,i);if(!$P(o.kind)){if(4096===(4096&r)||!LP(o.kind))return null;o.value=o.value.toString()}return l(e.fieldHandler,t,n,r,o)}function s(e,t,n){return IP(n)?{value:n}:null}function l(e,n,r,o,i){if(i&&e){var a=e.getSanitizer(n,r,o,i.kind,i.propertyType);if(a)if(4===o){var c={};Qw(i.value,(function(t,o){var i=n+"."+r;if(IP(o)){var a=s(0,0,o);(a=l(e,i,t,WP(o),a))&&(c[t]=a.value)}})),i.value=c}else{var u={path:n,name:r,type:o,prop:i,sanitizer:t};i=a.call(t,u)}}return i}e&&o.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(o.push(e),n={})},t.handleField=function(e,t){var n=i(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var o=i(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,n,r);if(!yP(t)||$P(n)||""===n)return null;var l=null,c=WP(n);if(8192===(8192&c)){var u=-8193&c;if(!IP((l=n).value)||1!==u&&2!==u&&3!==u&&4096!==(4096&u))return null}else 1===c||2===c||3===c||4096===(4096&c)?l=s(e,t,n):4===c&&(l=s(e,t,r?JSON.stringify(n):n));if(l)return a(o,e,t,c,l,r)}return null},t.property=function(e,t,n,r){var o=i(e,t);if(!o||!o.canHandle)return null;if(!yP(t)||$P(n)||!IP(n.value))return null;var s=WP(n.value);return 0===s?null:a(o,e,t,s,n,r)}}e.getFieldType=WP}(),["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"]);function tT(e,t){void 0===t&&(t=eT);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)nT(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function nT(e,t){if(void 0===t&&(t=eT),!e||e.length<4)return!1;for(var n=!1,r=e.substring(0,3).toString().toUpperCase(),o=0;o<t.length;o++)if(t[o]+":"===r&&e.length<=256){n=!0;break}return n}var rT,oT,iT=function(){function e(e){this.appExpId=null,this.flightIdNameSpaces=eT.slice(0),this.expIdCookieName="Treatments",this._propertiesConfig=e;var t=kw();if(t){var n=t.documentElement;t&&(this.locale=n.lang)}this.env=e.env?e.env:this._getMetaDataFromDOM("awa-").env}return e.prototype.getExpId=function(){return this._propertiesConfig.expId?this._readExpIdFromCoreData(this._propertiesConfig.expId):this._readExpIdFromCookie()},e.prototype._getMetaDataFromDOM=function(e){var t,n={},r=kw();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var i=t[o];if(i.name)if(0===i.name.toLowerCase().indexOf(e))n[i.name.replace(e,"")]=i.content}}return n},e.prototype._setAppExpId=function(e){e!==this.appExpId&&(this.appExpId=tT(e,this.flightIdNameSpaces))},e.prototype._getAppExpId=function(){return this.appExpId},e.prototype._readExpIdFromCookie=function(){return this._setAppExpId(MP(this.expIdCookieName)),this._getAppExpId()},e.prototype._readExpIdFromCoreData=function(e){return this._setAppExpId(e),this._getAppExpId()},e.validateAppExpId=tT,e._staticInit=void HP(e.prototype,"expId",e.prototype.getExpId),e}(),aT=function(){},sT=null;function lT(e,t,n,r){var o="",i="",a=kw();if(a){r&&(o=";domain="+r);var s=Tw();s&&"https:"===s.protocol&&(i=";secure",null===sT&&(sT=RP((Iw()||{}).userAgent)),sT||(n+=";SameSite=None")),AP()&&(a.cookie=t+"="+n+o+";path=/"+i)}}function cT(){return void 0===rT&&(rT=!!dT(oT.LocalStorage)),rT}function uT(){return cT()?dT(oT.LocalStorage):null}function dT(e){var t,n,r=null;try{var o=Sw();if(!o)return null;n=new Date,(r=e===oT.LocalStorage?o.localStorage:o.sessionStorage)&&SP(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(oT||(oT={}));Jw.isDate;var pT=Jw.toISOString,hT=function(){function e(t,n,r){if(this._logger=r,!t.disableCookiesUsage&&AP()){var o=MP("MUID");if(o&&this.setLocalId("t:"+o),n.enableApplicationInsightsUser){var i=MP(e.userCookieName);if(i){var a=i.split(e.cookieSeparator);a.length>0&&(this.id=a[0])}if(!this.id){this.id=Jw.newId(t&&!Jw.isUndefined(t.idLength)?t.idLength:22);var s=new Date,l=pT(s);this.accountAcquisitionDate=l,s.setTime(s.getTime()+31536e6);var c=[this.id,l],u=n.cookieDomain?n.cookieDomain:void 0;lT(this._logger,e.userCookieName,c.join(e.cookieSeparator)+";expires="+s.toUTCString(),u)}}}if("undefined"!==typeof navigator){var d=navigator;this.locale=d.userLanguage||d.language}}return e.prototype.getLocalId=function(){if(this._customLocalId)return this._customLocalId;var e=MP("MUID");e&&this.setLocalId("t:"+e)},e.prototype.setLocalId=function(e){this._customLocalId=e},e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void HP(e.prototype,"localId",e.prototype.getLocalId,e.prototype.setLocalId),e}(),mT="MSIE",fT="Chrome",gT="Firefox",vT="Safari",yT="Edge",bT="Electron",CT="SkypeShell",ST="PhantomJS",xT="Opera",_T="([\\d,.]+)",ET="Unknown",kT=function(){function e(e){this._propertiesConfig=e;var t=Tw();if(t){var n=t.hostname;n&&(this.domain="file:"===t.protocol?"local":n)}var r="undefined"!==typeof navigator?navigator.userAgent:"";if(e.userAgent&&(r=e.userAgent),e.populateBrowserInfo){if(r){var o=this._getBrowserName(r);this.browser=o,this.browserVer=this._getBrowserVersion(r,o)}var i=this._getScreenResolution();this.screenRes=i.w+"X"+i.h}}return e.prototype.getUserConsent=function(){return this._propertiesConfig.userConsented||!!MP(this._propertiesConfig.userConsentCookieName||"MSCC")},e.prototype.getUserConsentDetails=function(){try{if(this._propertiesConfig.callback&&this._propertiesConfig.callback.userConsentDetails){var e=this._propertiesConfig.callback.userConsentDetails();if(e)return JSON.stringify({Required:!!e.Required&&e.Required,Analytics:!!e.Analytics&&e.Analytics,SocialMedia:!!e.SocialMedia&&e.SocialMedia,Advertising:!!e.Advertising&&e.Advertising})}}catch(SR){}return null},e.prototype._getBrowserName=function(e){return this._userAgentContainsString("OPR/",e)?xT:this._userAgentContainsString(ST,e)?ST:this._userAgentContainsString(yT,e)?yT:this._userAgentContainsString(bT,e)?bT:this._userAgentContainsString(fT,e)?fT:this._userAgentContainsString("Trident",e)?mT:this._userAgentContainsString(gT,e)?gT:this._userAgentContainsString(vT,e)?vT:this._userAgentContainsString(CT,e)?CT:ET},e.prototype._userAgentContainsString=function(e,t){return t.indexOf(e)>-1},e.prototype._getBrowserVersion=function(e,t){return t===mT?this._getIeVersion(e):this._getOtherVersion(t,e)},e.prototype._getIeVersion=function(e){var t=e.match(new RegExp(mT+" "+_T));if(t)return t[1];var n=e.match(new RegExp("rv:([\\d,.]+)"));return n?n[1]:void 0},e.prototype._getOtherVersion=function(e,t){e===vT&&(e="Version");var n=t.match(new RegExp(e+"/"+_T));return n?n[1]:ET},e.prototype._getScreenResolution=function(){var e={h:0,w:0},t=Ew();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e},e._staticInit=void HP(e.prototype,"userConsent",e.prototype.getUserConsent),e}(),wT="Windows",IT="Mac OS X",PT="Android",TT=/(windows|win32)/i,DT=/ arm;/i,AT=/windows\sphone\s\d+\.\d+/i,RT=/(macintosh|mac os x)/i,NT=/(ipad|iphone|ipod)(?=.*like mac os x)/i,MT=/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,FT=/android/i,BT=/CrOS/i,OT={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},LT="Unknown",HT=function(){function e(e){var t="undefined"!==typeof navigator?navigator.userAgent:"";if(e.userAgent&&(t=e.userAgent),t&&e.populateOperatingSystemInfo){var n=this._getOsName(t.toLowerCase());this.name=n,this.ver=this._getOsVersion(t,n)}}return e.prototype._getOsName=function(e){return e.match(AT)?"Windows Phone":e.match(DT)?"Windows RT":e.match(TT)?wT:e.match(NT)?"iOS":e.match(FT)?PT:e.match(MT)?"Linux":-1!==e.indexOf("x11")?"Unix":-1!==e.indexOf("blackberry")?"BlackBerry":-1!==e.indexOf("symbian")?"Symbian":-1!==e.indexOf("nokia")?"Nokia":e.match(RT)?IT:e.match(BT)?"Chrome OS":LT},e.prototype._getOsVersion=function(e,t){return t===wT?this._getGenericOsVersion(e,"Windows NT"):t===PT?this._getGenericOsVersion(e,t):t===IT?this._getMacOsxVersion(e):LT},e.prototype._getGenericOsVersion=function(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?OT[n[1]]?OT[n[1]]:n[1]:LT},e.prototype._getMacOsxVersion=function(e){var t=e.match(new RegExp(IT+" ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var r=this._getDelimiter(n);return r?n.split(r)[0]:n}}return LT},e.prototype._getDelimiter=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e}(),VT=function(){function e(e){e.serviceName&&(this.serviceName=e.serviceName)}return e.prototype.getMsfpc=function(){return MP("MSFPC")},e.prototype.getAnid=function(){return MP("ANON").slice(0,34)},e._staticInit=(HP(e.prototype,"msfpc",e.prototype.getMsfpc),void HP(e.prototype,"anid",e.prototype.getAnid)),e}(),zT=function(e){this.popSample=100,this.eventFlags=0,e.hashIdentifiers&&(this.eventFlags=1048576|this.eventFlags),e.dropIdentifiers&&(this.eventFlags=2097152|this.eventFlags)},UT=function(){var e=(new Date).getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())},WT=function(){},GT=function(){function e(){}return e.prototype.setId=function(e){this.customId=e},e.prototype.getId=function(){return yP(this.customId)?this.customId:this.automaticId},e._staticInit=void HP(e.prototype,"id",e.prototype.getId,e.prototype.setId),e}(),jT=function(e,t,n,r){if(e.enableApplicationInsightsTrace){this.traceId=t||Jw.generateW3CId(),this.parentId=n,this.name=r;var o=Tw();o&&o.pathname&&(this.name=o.pathname)}},qT=function(){function e(){}return e.id="id",e.ver="ver",e.appName="name",e.locale="locale",e.expId="expId",e.env="env",e}(),KT=function(){function e(){}return e.domain="domain",e.browser="browser",e.browserVer="browserVer",e.screenRes="screenRes",e.userConsent="userConsent",e.consentDetails="consentDetails",e}(),YT=function(){function e(){}return e.locale="locale",e.localId="localId",e.id="id",e}(),XT=function(){function e(){}return e.osName="name",e.ver="ver",e}(),QT=function(){function e(){}return e.ver="ver",e.seq="seq",e.installId="installId",e.epoch="epoch",e}(),ZT=function(){function e(){}return e.msfpc="msfpc",e.anid="anid",e.serviceName="serviceName",e}(),JT=function(){function e(){}return e.popSample="popSample",e.eventFlags="eventFlags",e}(),$T=function(){function e(){}return e.tz="tz",e}(),eD=function(){function e(){}return e.sessionId="sesId",e}(),tD=function(){function e(){}return e.localId="localId",e.deviceClass="deviceClass",e.make="make",e.model="model",e}(),nD=function(){function e(){}return e.role="role",e.roleInstance="roleInstance",e.roleVer="roleVer",e}(),rD=function(){function e(){}return e.traceId="traceID",e.traceName="name",e.parentId="parentID",e}(),oD=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SdkExt="sdk",e.IntWebExt="intweb",e.UtcExt="utc",e.LocExt="loc",e.CloudExt="cloud",e}(),iD="MicrosoftApplicationsTelemetryDeviceId",aD=function(){function e(e){if(this._sequenceId=0,this._propertyStorage=e.propertyStorageOverride,this.seq=this._sequenceId,this.epoch=(new Date).getTime().toString(),!e.disableCookiesUsage&&AP()||this._propertyStorage){var t=this._getData(iD);t||(t=Jw.newGuid()),this._saveData(iD,t),this.installId=t}else NP(iD,"",-1)}return e.prototype.getSequenceId=function(){return++this._sequenceId},e.prototype._saveData=function(e,t){var n=this._propertyStorage;n?n.setProperty(e,t):NP(e,t,365)},e.prototype._getData=function(e){return this._propertyStorage?this._propertyStorage.getProperty(e)||"":MP(e)},e}(),sD=function(){function e(t,n){var r,o,i;xI(e,this,(function(a){var s,l={sessionRenewalMs:(s=t).sessionRenewalMs&&function(){return s.sessionRenewalMs},sessionExpirationMs:s.sessionExpirationMs&&function(){return s.sessionExpirationMs},cookieDomain:s.cookieDomain&&function(){return s.cookieDomain},namePrefix:s.namePrefix&&function(){return s.namePrefix},sessionAsGuid:function(){return s.sessionAsGuid},idLength:function(){return s.idLength?s.idLength:22}};function c(e){var t=a.automaticSession,n=e.split("|");n.length>0&&t.setId(n[0]);try{if(n.length>1){var r=+n[1];t.acquisitionDate=+new Date(r),t.acquisitionDate=t.acquisitionDate>0?t.acquisitionDate:0}if(n.length>2){var i=+n[2];t.renewalDate=+new Date(i),t.renewalDate=t.renewalDate>0?t.renewalDate:0}}catch(SR){o.throwInternal(Zw.CRITICAL,iP.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+SR)}0===t.renewalDate&&o.throwInternal(Zw.WARNING,iP.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}function u(){var e=a.automaticSession,t=(new Date).getTime(),n=a.config.sessionAsGuid();!Jw.isUndefined(n)&&n?Jw.isBoolean(n)?e.setId(FP()):e.setId(FP(n)):e.setId(Jw.newId(l&&l.idLength?l.idLength():22)),e.acquisitionDate=t,e.renewalDate=t,d(e.getId(),e.acquisitionDate,e.renewalDate),cT()||o.throwInternal(Zw.WARNING,iP.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}function d(e,t,n){var o=t+a.config.sessionExpirationMs(),s=n+a.config.sessionRenewalMs(),l=new Date,c=[e,t,n];o<s?l.setTime(o):l.setTime(s);var u=a.config.cookieDomain?a.config.cookieDomain():null;lT(0,i(),c.join("|")+";expires="+l.toUTCString(),u),r=(new Date).getTime()}o=Jw.isNullOrUndefined(n)?new kI:n,Jw.isFunction(t.sessionExpirationMs)||(l.sessionExpirationMs=function(){return e.acquisitionSpan}),Jw.isFunction(t.sessionRenewalMs)||(l.sessionRenewalMs=function(){return e.renewalSpan}),a.config=l,i=function(){return a.config.namePrefix&&a.config.namePrefix()?e.cookieNameConst+a.config.namePrefix():e.cookieNameConst},a.automaticSession=new GT,a.update=function(){a.automaticSession.getId()||function(){var e=MP(i());if(e&&Jw.isFunction(e.split))c(e);else{var t=function(e,t){var n=uT();if(null!==n)try{return n.getItem(t)}catch(SR){rT=!1,e.throwInternal(Zw.CRITICAL,iP.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+SR)}return null}(o,i());t&&c(t)}a.automaticSession.getId()||u()}();var t=a.automaticSession,n=a.config,s=(new Date).getTime(),l=s-t.acquisitionDate>n.sessionExpirationMs(),p=s-t.renewalDate>n.sessionRenewalMs();if(l||p)u();else{(!r||s-r>e.cookieUpdateInterval)&&(t.renewalDate=s,d(t.getId(),t.acquisitionDate,t.renewalDate))}},a.backup=function(){var e,t,n,r=a.automaticSession;e=r.getId(),t=r.acquisitionDate,n=r.renewalDate,function(e,t,n){var r=uT();if(null!==r)try{r.setItem(t,n)}catch(SR){rT=!1,e.throwInternal(Zw.CRITICAL,iP.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+SR)}}(o,i(),[e,t,n].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e.cookieNameConst="ai_session",e}(),lD=yP,cD=function(){function e(e,t,n){this.app=new iT(t),this.cloud=new aT,this.user=new hT(e,t,n&&n.logger),this.os=new HT(t),this.web=new kT(t),this.sdk=new aD(e),this.intWeb=new VT(t),this.utc=new zT(t),this.loc=new UT,this.device=new WT,this.telemetryTrace=new jT(t),this.sessionManager=new sD(t,n&&n.logger),this.session=new GT}return e.prototype.getSessionId=function(){var e=this.session;if(e&&lD(e.customId))return e.customId;var t=this.sessionManager;t.update();var n=t.automaticSession;if(n){var r=n.getId();r&&lD(r)&&(e.automaticId=r)}return e.automaticId},e.prototype.applyApplicationContext=function(e){var t=this.app;lD(t.id)&&(e.ext[oD.AppExt][qT.id]=t.id),lD(t.ver)&&(e.ext[oD.AppExt][qT.ver]=t.ver),lD(t.name)&&(e.ext[oD.AppExt][qT.appName]=t.name),lD(t.locale)&&(e.ext[oD.AppExt][qT.locale]=t.locale);var n=t.getExpId();lD(n)&&(e.ext[oD.AppExt][qT.expId]=n),lD(t.env)&&(e.ext[oD.AppExt][qT.env]=t.env)},e.prototype.applyUserContext=function(e){var t=this.user,n=t.getLocalId();lD(n)&&(e.ext[oD.UserExt][YT.localId]=n),lD(t.locale)&&(e.ext[oD.UserExt][YT.locale]=t.locale),lD(t.id)&&(e.ext[oD.UserExt][YT.id]=t.id)},e.prototype.applyWebContext=function(e){var t=this.web;lD(t.domain)&&(e.ext[oD.WebExt][KT.domain]=t.domain),lD(t.browser)&&(e.ext[oD.WebExt][KT.browser]=t.browser),lD(t.browserVer)&&(e.ext[oD.WebExt][KT.browserVer]=t.browserVer),lD(t.screenRes)&&(e.ext[oD.WebExt][KT.screenRes]=t.screenRes),e.ext[oD.WebExt][KT.userConsent]=t.getUserConsent(),e.ext[oD.WebExt][KT.consentDetails]=t.getUserConsentDetails()},e.prototype.applyOsContext=function(e){var t=this.os;lD(t.name)&&(e.ext[oD.OSExt][XT.osName]=t.name),lD(t.ver)&&(e.ext[oD.OSExt][XT.ver]=t.ver)},e.prototype.applySdkContext=function(e){var t=this.sdk;e.ext[oD.SdkExt][QT.seq]=t.getSequenceId(),e.ext[oD.SdkExt][QT.epoch]=t.epoch,lD(t.installId)&&(e.ext[oD.SdkExt][QT.installId]=t.installId)},e.prototype.applyIntWebContext=function(e){var t=this.intWeb,n=t.getMsfpc();lD(n)&&(e.ext[oD.IntWebExt][ZT.msfpc]=n);var r=t.getAnid();lD(r)&&(e.ext[oD.IntWebExt][ZT.anid]=r),lD(t.serviceName)&&(e.ext[oD.IntWebExt][ZT.serviceName]=t.serviceName)},e.prototype.applyUtcContext=function(e){var t=this.utc;e.ext[oD.UtcExt][JT.popSample]=t.popSample,t.eventFlags>0&&(e.ext[oD.UtcExt][JT.eventFlags]=t.eventFlags)},e.prototype.applyLocContext=function(e){e.ext[oD.LocExt][$T.tz]=this.loc.tz},e.prototype.applySessionContext=function(e){e.ext[oD.AppExt][eD.sessionId]=this.getSessionId()},e.prototype.applyDeviceContext=function(e){var t=this.device;lD(t.localId)&&(e.ext[oD.DeviceExt][tD.localId]=t.localId),lD(t.make)&&(e.ext[oD.DeviceExt][tD.make]=t.make),lD(t.model)&&(e.ext[oD.DeviceExt][tD.model]=t.model),lD(t.deviceClass)&&(e.ext[oD.DeviceExt][tD.deviceClass]=t.deviceClass)},e.prototype.applyCloudContext=function(e){var t=this.cloud;lD(t.role)&&(e.ext[oD.CloudExt][nD.role]=t.role),lD(t.roleInstance)&&(e.ext[oD.CloudExt][nD.roleInstance]=t.roleInstance),lD(t.roleVer)&&(e.ext[oD.CloudExt][nD.roleVer]=t.roleVer)},e.prototype.applyAITraceContext=function(e){var t=this.telemetryTrace;lD(t.traceId)&&(e.ext[oD.TraceExt][rD.traceId]=t.traceId),lD(t.name)&&(e.ext[oD.TraceExt][rD.traceName]=t.name),lD(t.parentId)&&(e.ext[oD.TraceExt][rD.parentId]=t.parentId)},e}(),uD=function(e){function t(){var n,r=e.call(this)||this;r.identifier="SystemPropertiesCollector",r.priority=3,r.version="3.0.2";var o={};return xI(t,r,(function(t,i){t.initialize=function(o,i,a){e.prototype.initialize.call(r,o,i,a),n=new cD(o,t._getTelCtx().getExtCfg(t.identifier),i)},t.processTelemetry=function(e,r){zP(e,t.identifier),r=t._getTelCtx(r);var i,a,s=e.ext=e.ext?e.ext:{};e.data=e.data?e.data:{},s[oD.AppExt]=s[oD.AppExt]||{},s[oD.UserExt]=s[oD.UserExt]||{},s[oD.WebExt]=s[oD.WebExt]||{},s[oD.OSExt]=s[oD.OSExt]||{},s[oD.SdkExt]=s[oD.SdkExt]||{},s[oD.IntWebExt]=s[oD.IntWebExt]||{},s[oD.UtcExt]=s[oD.UtcExt]||{},s[oD.LocExt]=s[oD.LocExt]||{},s[oD.DeviceExt]=s[oD.DeviceExt]||{},s[oD.TraceExt]=s[oD.TraceExt]||{},s[oD.CloudExt]=s[oD.CloudExt]||{},n.applyApplicationContext(e),n.applyUserContext(e),n.applyWebContext(e),n.applyOsContext(e),n.applySdkContext(e),n.applyIntWebContext(e),n.applyUtcContext(e),n.applyLocContext(e),n.applySessionContext(e),n.applyDeviceContext(e),n.applyAITraceContext(e),n.applyCloudContext(e),fP(gP(s),(function(e){0===gP(s[e]).length&&delete s[e]})),i=o,a=e.data,i&&Qw(i,(function(e,t){a[e]||(a[e]=t)})),t.processNext(e,r)},t.getPropertiesContext=function(){return n},t.setProperty=function(e,t){o[e]=t}})),r}return __extends(t,e),t}(BI),dD="REAL_TIME",pD=function(){function e(t,n){var r=n?[].concat(n):[],o=Jw.isNullOrUndefined,i=this;i.iKey=function(){return t},i.count=function(){return r.length},i.events=function(){return r},i.addEvents=function(e,t){return void 0===t&&(t=!0),e&&e.length>0?(r=t?r.concat(e):e.concat(r),e.length):0},i.split=function(n,i){var a=new e(t);if(n<r.length){var s=r.length-n;o(i)||(s=i<s?i:s),a.addEvents(r.splice(n,s),!0)}return a}}return e.create=function(t,n){return new e(t,n)},e}(),hD=2e6,mD=Math.min(hD,65e3),fD=/\./,gD=function e(t,n,r,o){var i="data",a="baseData",s=!!o,l=n,c={};xI(e,this,(function(e){function n(e,t,o,i,a,u){Qw(e,(function(e,d){var p=null;if(IP(d)){var h=o,m=e,f=a,g=t;if(s&&!i&&fD.test(e)){var v=e.split("."),y=v.length;if(y>1){f&&(f=f.slice());for(var b=0;b<y-1;b++){var C=v[b];g=g[C]=g[C]||{},h+="."+C,f&&f.push(C)}m=v[y-1]}}var S=i&&function(e,t){var n=c[e];return void 0===n&&(n=!1,(0===e.indexOf("ext.metadata")||0===e.indexOf("ext.web"))&&(n=!0),c[e]=n),n}(h);if(p=!S&&l&&l.handleField(h,m)?l.value(h,m,d,r):function(e,t,n){if(!yP(e)||dP(t)||""===t)return null;if(yP(t)||bP(t)||CP(t)||xP(t))t={value:t};else if("object"!==typeof t||t.hasOwnProperty("value")){if(dP(t.value)||""===t.value||!yP(t.value)&&!bP(t.value)&&!CP(t.value)&&!xP(t.value))return null}else t={value:n?JSON.stringify(t):t};if(xP(t.value)&&!(t.value.length>0))return null;if(!dP(t.kind)){if(xP(t.value)||!LP(t.kind))return null;t.value=t.value.toString()}return t}(m,d,r),p){var x=p.value;if(g[m]=x,u&&u(f,m,p),_P(x)&&!xP(x)){var _=f;_&&(_=_.slice()).push(m),n(d,x,h+"."+m,i,_,u)}}}}))}e.createPayload=function(e,t,n,r){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r}},e.appendPayload=function(n,r,o){var i=n&&r&&!n.overflow;return i&&TI(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,l=[],c=n.isBeacon,u=c?65e3:3984588,d=c?mD:hD,p=0,h=0;p<t.length;){var m=t[p];if(m){if(a>=o){n.overflow=r.split(p);break}var f=e.getEventBlob(m);if(f.length<=d){var g=f.length;if(i.length+g>u){n.overflow=r.split(p);break}i&&(i+="\n"),i+=f,++h>20&&(i.substr(0,1),h=0),s=!0,a++}else l.push(m),t.splice(p,1),p--}p++}if(l&&l.length>0&&n.sizeExceed.push(pD.create(r.iKey(),l)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var v=r.iKey();-1===Jw.arrIndexOf(n.apiKeys,v)&&n.apiKeys.push(v)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}})),i},e.getEventBlob=function(e){return TI(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={name:e.name,time:e.time,ver:e.ver,iKey:"o:"+PP(e.iKey)},r={},o=e.ext;o&&(t.ext=r,Qw(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null)})));var s=t.data={baseType:e.baseType},l=s.baseData={};return n(e.baseData,l,a,!1,[a],(function(e,t,n){vD(r,e,t,n)})),n(e.data,s,i,!1,[],(function(e,t,n){vD(r,e,t,n)})),JSON.stringify(t)}),(function(){return{item:e}}))}}))};function vD(e,t,n,r){if(r&&e){var o=DP(r.value,r.kind,r.propertyType);if(o>-1){var i=e.metadata;i||(i=e.metadata={f:{}});var a=i.f;a||(a=i.f={}),fP(t,(function(e){a[e]||(a[e]={f:{}});var t=a[e].f;t||(t=a[e].f={}),a=t})),a=a[n]={},xP(r.value)?a.a={t:o}:a.t=o}}}var yD,bD=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e&&429!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)},e}(),CD=function e(){var t={};xI(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var o=function(e){var t=[];return e&&fP(e,(function(e){t.push(EP(e))})),t}(e.split(","));if("this-request-only"===n)return o;for(var i=1e3*parseInt(n,10),a=0;a<o.length;++a)t[o[a]]=Jw.dateNow()+i}catch(r){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=EP(e);return void 0!==n[r]&&n[r]>Jw.dateNow()||(delete n[r],!1)}}))},SD=function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",i=!1;xI(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,i||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){i||(e?(o=e,n=!0,i=!0):n=!1,t=!0)}}))},xD="POST",_D="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ED="drop",kD="send",wD="requeue",ID="rspFail",PD="kill-duration",TD="time-delta-millis",DD=((yD={})[1]=wD,yD[100]=wD,yD[200]="sent",yD[8004]=ED,yD[8003]=ED,yD);function AD(e){try{return e.responseText}catch(SR){}return""}var RD,ND,MD,FD=function e(t,n,o,i){this._responseHandlers=[];var a,s,l,c="?cors=true&content-type=application/x-json-stream&client-id=NO_AUTH&client-version=1DS-Web-JS-3.0.2",u=new CD,d=!1,p=new SD,h=!1,m=0,f=!0,g=[],v={},y=[],b=null,C=!1;xI(e,this,(function(e){var S=!0;function x(e,t){var n=new XDomainRequest;n.open(xD,e.urlString),n.onload=function(){var e=AD(n);k(t,200,{},e),O(e)},n.onerror=function(){k(t,400,{})},n.ontimeout=function(){k(t,500,{})},n.send(e.data)}function _(e,t){var n;fetch(e.urlString,(n={body:e.data,method:xD,credentials:"include"},n[_D]=!0,n.headers=e.headers,n)).then((function(e){var n={},r="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),k(t,e.status,n,r),O(r)})).catch((function(e){k(t,0,{})}))}function E(e,t,n){function r(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=EP(r))}return e}function o(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(yP(e)){var n=EP(e).split(/[\r\n]+/);fP(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=EP(e.substring(0,n)).toLowerCase(),o=EP(e.substring(n+1));t[r]=o}else t[EP(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=r(t,e,TD),t=r(t,e,PD),t=r(t,e,"kill-duration-seconds")),t}function i(e,n){k(t,e.status,o(e),n)}var a=new XMLHttpRequest;try{a[_D]=!0}catch(SR){}S&&(a.withCredentials=!0),a.open(xD,e.urlString,!n),fP(gP(e.headers),(function(t){a.setRequestHeader(t,e.headers[t])})),a.onload=function(){var e=AD(a);i(a,e),O(e)},a.onerror=function(){i(a)},a.ontimeout=function(){i(a)},a.send(e.data)}function k(e,t,n,r){try{e(t,n,r)}catch(SR){a.diagLog().throwInternal(Zw.WARNING,iP.SendPostOnCompleteFailure,SR)}}function w(){return!d&&m<n}function I(){var e=y;return y=[],e}function P(e,t,n){var r=!1;return e&&e.length>0&&!d&&s&&b&&(r=t||w()&&(n>0||p.allowRequestSending())),r}function T(e){var t={};return e&&fP(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function D(e,n,r,o,i,a){if(e&&0!==e.length)if(d)L(e,1,o);else{var s=e;TI(l,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var l=[],c=null,d=OP();P(e,o,n);){var p=e.shift();p&&p.count()>0&&(u.isTenantKilled(p.iKey())?l.push(p):(c=c||b.createPayload(n,r,o,a&&R()),b.appendPayload(c,p,t)?null!==c.overflow&&(e=[c.overflow].concat(e),c.overflow=null,M(c,d,OP(),i),d=OP(),c=null):(M(c,d,OP(),i),d=OP(),e=[p].concat(e),c=null)))}c&&M(c,d,OP(),i),e.length>0&&(y=e.concat(y)),L(l,8004,o)}),(function(){return{batches:T(s),retryCount:n,isTeardown:r,isSynchronous:o,sendReason:i,useSendBeacon:a}}),!o)}}function A(e){var t=c,n="";fP(e.apiKeys,(function(e){n.length>0&&(n+=","),n+=e})),n.length>0&&(t+="&apikey="+n),t+="&upload-time="+Jw.dateNow().toString();var r=function(e){for(var t=0;t<e.batches.length;t++)for(var n=e.batches[t].events(),r=0;r<n.length;r++){var o=(n[r].ext||{}).intweb||{};if(IP(o.msfpc))return encodeURIComponent(o.msfpc)}return""}(e);if(IP(r)&&(t=t+"&ext.intweb.msfpc="+r),p.shouldAddClockSkewHeaders()&&(t+="&time-delta-to-apply-millis="+p.getClockSkewHeaderValue()),l.getWParam){var o=l.getWParam();o>=0&&(t+="&w="+o)}for(var i=0;i<g.length;i++)t+="&"+g[i].name+"="+g[i].value;return t}function R(){return!f&&h&&TP()}function N(e,t,n){e[t]=e[t]||{},e[t][a.identifier]=n}function M(t,n,i,c){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var d=A(t),h=OP();TI(l,(function(){return"HttpManager:_doPayloadSend"}),(function(){fP(t.batches,(function(e){fP(e.events(),(function(e){if(C){var t=e.timings=e.timings||{};N(t,"sendEventStart",h),N(t,"serializationStart",n),N(t,"serializationCompleted",i)}e.sendAttempt>0?e.sendAttempt++:e.sendAttempt=1}))})),L(t.batches,1e3+(c||0),t.isSync,!0);var f={data:t.payloadBlob,urlString:d,headers:v},g=null,y=!!e.sendHook;R()&&t.isBeacon?(y=!1,g=function(n){!function(e,t,n){try{if(TP()){var o=Iw();if(o.sendBeacon(e.urlString,e.data))return void F(t,200,n,!1);var i=null;fP(t.batches,(function(t){if(i&&t&&t.count()>0){for(var n=t.events(),r=0;r<n.length;r++)if(!o.sendBeacon(e.urlString,b.getEventBlob(n[r]))){i.push(t.split(r));break}}else i.push(t.split(0))})),F(t,200,n,!1),L(i,8003,t.isSync,!0)}}catch(r){a.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+r)}}(n,t,c),e.sendListener&&e.sendListener(f,n,t.isSync||t.isTeardown,!0)}):s&&(g=function(n){p.firstRequestSent();var i=function(e,n){!function(e,t,n,r){var i=9e3,a=null,s=!1,l=!1;try{var c=!0;if(typeof e!==sP){if(t){p.setClockSkew(t[TD]);var d=t["kill-duration"]||t["kill-duration-seconds"];fP(u.setKillSwitchTenants(t["kill-tokens"],d),(function(e){fP(n.batches,(function(t){if(t.iKey()===e){a=a||[];var r=t.split(0);n.numEvents-=r.count(),a.push(r)}}))}))}if(200===e)return void(i=200);(!bD.shouldRetryForStatus(e)||n.numEvents<=0)&&(c=!1),i=9e3+e%1e3}if(c){i=100;var h=n.retryCnt;n.isSync||(h<o?(s=!0,B((function(){n.isSync||m--,D(n.batches,h+1,n.isTeardown,n.isSync,5,n.isBeacon)}),!0,bD.getMillisToBackoffForRetry(h))):l=!0)}}finally{s||(p.setClockSkew(),F(n,i,r,l)),L(a,8004,n.isSync)}}(e,n,t,c)};try{s.sendPOST(n,i,t.isTeardown||t.isSync),e.sendListener&&e.sendListener(f,n,t.isSync||t.isTeardown,!1)}catch(r){k(i,0,{})}}),TI(l,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(g)if(t.isSync||m++,y){var n={data:f.data,urlString:f.urlString,headers:f.headers},o=!1;TI(l,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){o=!0,g(e)}),t.isSync||t.isTeardown)}catch(r){o||g(f)}}))}else g(f)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:c}}),t.isSync)}L(t.sizeExceed,8003,t.isSync)}function F(t,n,r,o){try{o&&a._backOffTransmission(),200===n&&(o||t.isSync||a._clearBackOff(),function(e){if(C){var t=OP();fP(e,(function(e){var n,r;e&&e.count()>0&&(n=e.events(),r=t,C&&fP(n,(function(e){N(e.timings=e.timings||{},"sendEventCompleted",r)})))}))}}(t.batches)),L(t.batches,n,t.isSync,!0)}finally{t.isSync||(m--,5!==r&&e.sendQueuedRequests(r,!t.isSync,t.isBeacon))}}function B(e,t,n){t?e():a._setTimeoutOverride(e,n)}function O(t){var n=e._responseHandlers;try{for(var o=0;o<n.length;o++)try{n[o](t)}catch(SR){a.diagLog().throwInternal(Zw.CRITICAL,iP.PostResponseHandler,"Response handler failed: "+SR)}if(t){var i=JSON.parse(t);IP(i.webResult)&&IP(i.webResult.msfpc)&&NP("MSFPC",i.webResult.msfpc,365)}}catch(r){}}function L(e,t,n,r){if(e&&e.length>0&&i){var o=i[function(e){var t=DD[e];return IP(t)||(t="oth",e>=9e3&&e<=9999?t=ID:e>=8e3&&e<=8999?t=ED:e>=1e3&&e<=1999&&(t=kD)),t}(t)];o&&TI(l,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){B((function(){try{o.call(i,e,t,n)}catch(SR){a.diagLog().throwInternal(Zw.CRITICAL,iP.NotificationException,"send request notification failed: "+SR)}}),r||n,0)}),(function(){return{batches:T(e),reason:t,isSync:n,sendSync:r}}),!n)}}e.initialize=function(e,t,n,r,o){o||(o={}),c=e+c,C=!(l=t).config.disableEventTimings;var i=!!l.config.enableCompoundKey;a=n;var u=o.valueSanitizer,d=o.stringifyObjects;if(Jw.isUndefined(o.enableCompoundKey)||(i=!!o.enableCompoundKey),b=new gD(l,u,d,i),!(s=r)){f=!1,h=!vP();var p=Tw();p&&p.protocol&&"file:"===p.protocol.toLowerCase()&&(S=!1);var m=null;!function(){if(void 0!==typeof XMLHttpRequest){var e=xw("XMLHttpRequest");if(e){var t=new e;return Boolean(uP(t.withCredentials)&&void 0!==typeof XDomainRequest)}}}()?vP()?m=_:"undefined"!==typeof XMLHttpRequest&&(m=E):m=x,s={sendPOST:m}}},e._getDbgPlgTargets=function(){return[s,u,b]},e.addQueryStringParameter=function(e,t){for(var n=0;n<g.length;n++)if(g[n].name===e)return void(g[n].value=t);g.push({name:e,value:t})},e.addHeader=function(e,t){v[e]=t},e.canSendRequest=function(){return w()&&p.allowRequestSending()},e.sendQueuedRequests=function(e,t,n){var r=!Jw.isNullOrUndefined(t)&&!t;P(y,r,0)&&D(I(),0,!1,r,e||0,!!n)},e.isCompletelyIdle=function(){return!d&&0===m&&0===y.length},e.addBatch=function(e){if(e&&e.count()>0){if(u.isTenantKilled(e.iKey()))return!1;y.push(e)}return!0},e.teardown=function(){y.length>0&&D(I(),0,!0,!0,2,!0)},e.pause=function(){d=!0},e.resume=function(){d=!1,e.sendQueuedRequests(4,!1)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&D([e],0,!1,!0,t||0,!!n)}}))},BD=wP?window:void 0,OD="eventsDiscarded",LD=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.0.2";var o,i,a,s,l,c=!1,u=[],d=null,p=!1,h=0,m=1e4,f={},g=dD,v=null,y=0,b=0,C={},S=-1;return xI(t,r,(function(e,t){function r(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=JI),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,e.sync)if(y||p)e.latency=eP,e.sync=!1;else if(i)return void i.sendSynchronousBatch(pD.create(e.iKey,[e]),3);var n=!1;h<m?n=!D(e,t):(n=!0,function(e,t){var n=JI;for(;n<=t;){var r=P(e,t,!0);if(r&&r.count()>0){var o=r.split(0,20);if(o.count()>0)return O(OD,[o],vw),!0}n++}return!1}(e.iKey,e.latency)&&(n=!D(e,t))),n&&B(OD,[e],vw)}function x(e,t,n,r){var o=A(e,t,n);return i.sendQueuedRequests(t,n,r),o}function _(){return h>0}function E(){S>=0&&A(S,l,!0)&&i.sendQueuedRequests(l,!0,!1);var e=f[g][1];!v&&!d&&e>=0&&!p&&(_()?v=k((function(){v=null,x(0===b?eP:JI,1,!0),b++,b%=2,E()}),e):b=0)}function k(t,n){0===n&&y&&(n=1);var r=1e3;return y&&(r=bD.getMillisToBackoffForRetry(y-1)),e._setTimeoutOverride(t,n*r)}function w(){null!==v&&(e._clearTimeoutOverride(v),v=null,b=0)}function I(t,n){w(),d&&(e._clearTimeoutOverride(d),d=null),p||x(JI,t,n,!0)}function P(e,t,n){var r=C[t];r||(r=C[t=JI]);var o=r.iKeyMap[e];return!o&&n&&(o=pD.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function T(t,n){i.canSendRequest()&&!y&&(a>0&&h>a&&(n=!0),n&&null==d&&e.flush(t,null,20))}function D(e,t){var n=P(e.iKey,e.latency,!0);return!!n.addEvents([e],t)&&(h++,t&&0===e.sendAttempt&&T(!e.sync,s>0&&n.count()>=s),!0)}function A(t,n,r){var o=!1;return!r||i.canSendRequest()?TI(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=eP;n>=t;){var r=C[n];r&&r.batches&&(fP(r.batches,(function(t){i.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),h-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&B(OD,e,gw),o&&S>=t&&(S=-1,l=0)}),(function(){return{latency:t,sendReason:n}}),r):(S=S>=0?Math.min(S,t):t,l=Math.max(l,n)),o}function R(e,t){x(JI,t,!0),N((function(){e&&e(),u.length>0?d=k((function(){return R(u.shift(),t)}),0):(d=null,_()&&E())}))}function N(e){i.isCompletelyIdle()?e():d=k((function(){N(e)}),.25)}function M(){(f={}).REAL_TIME=[2,1],f.NEAR_REAL_TIME=[6,3],f.BEST_EFFORT=[18,9]}function F(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(SR){e.diagLog().throwInternal(Zw.CRITICAL,iP.NotificationException,t+" notification failed: "+SR)}}function B(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&F(e,[t].concat(n))}function O(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&fP(t,(function(t){t&&t.count()>0&&F(e,[t.events()].concat(n))}))}function L(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,m/6)}M(),C[eP]={batches:[],iKeyMap:{}},C[$I]={batches:[],iKeyMap:{}},C[JI]={batches:[],iKeyMap:{}},L(),i=new FD(500,2,1,{requeue:function(t,n){var o=[];fP(t,(function(t){t&&t.count()>0&&fP(t.events(),(function(t){t&&(t.sync&&(t.latency=eP,t.sync=!1),t.sendAttempt<6?(zP(t,e.identifier),r(t,!1)):o.push(t))}))})),o.length>0&&B(OD,o,mw)},send:function(e,t,n){e&&e.length>0&&F("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])},sent:function(e,t){O("eventsSent",e,t),E()},drop:function(e,t){O(OD,e,t>=8e3&&t<=8999?t-8e3:hw)},rspFail:function(e){O(OD,e,mw),E()},oth:function(e,t){O(OD,e,hw),E()}}),e._getDbgPlgTargets=function(){return[i]},e.initialize=function(r,s,l){TI(s,(function(){return"PostChannel:initialize"}),(function(){var c=s;t.initialize(r,s,l),e.setInitialized(!1);var u=e._getTelCtx();r.extensionConfig[e.identifier]=r.extensionConfig[e.identifier]||{},n=u.getExtCfg(e.identifier),e._setTimeoutOverride=n.setTimeoutOverride?n.setTimeoutOverride:setTimeout.bind(BD),e._clearTimeoutOverride=n.clearTimeoutOverride?n.clearTimeoutOverride:clearTimeout.bind(BD);var d=c.getWParam;c.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|d()},n.eventsLimitInMem>0&&(m=n.eventsLimitInMem),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),L(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),IP(r.anonCookieName)&&i.addQueryStringParameter("anoncknm",r.anonCookieName),i.sendHook=n.payloadPreprocessor,i.sendListener=n.payloadListener;var p=n.overrideEndpointUrl?n.overrideEndpointUrl:r.endpointUrl;e._notificationManager=r.extensionConfig.NotificationManager,i.initialize(p,e.core,e,o,n),VP((function(){I(2,!1)})),e.setInitialized(!0)}),(function(){return{coreConfig:r,core:s,extensions:l}}))},e.processTelemetry=function(t,o){zP(t,e.identifier);var i=(o=e._getTelCtx(o)).getExtCfg(e.identifier),a=!!n.disableTelemetry;i&&(a=a||!!i.disableTelemetry);var s=t;a||c||(n.overrideInstrumentationKey&&(s.iKey=n.overrideInstrumentationKey),i&&i.overrideInstrumentationKey&&(s.iKey=i.overrideInstrumentationKey),r(s,!0),E()),e.processNext(s,o)},e.setEventQueueLimits=function(e,t){m=e>0?e:1e4,a=t>0?t:0,L();var n=h>e;if(!n&&s>0)for(var r=JI;!n&&r<=eP;r++){var o=C[r];o&&o.batches&&fP(o.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}T(!0,n)},e.teardown=function(){I(2,!1),c=!0,i.teardown()},e.pause=function(){w(),p=!0,i.pause()},e.resume=function(){p=!1,i.resume(),E()},e.addResponseHandler=function(e){i._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){w(),M(),g=dD,E(),Qw(e,(function(e,t){if(t.length>=2){if(t.splice(0,t.length-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var n=t[0]/t[1];t[0]=Math.ceil(n)*t[1]}f[e]=t}}))},e.flush=function(e,t,n){void 0===e&&(e=!0),p||(w(),n=n||1,e?(A(JI,n,e),null==d?d=k((function(){R(t,n)}),0):u.push(t)):(x(JI,n,!1),null!==t&&void 0!==t&&t()))},e.setMsaAuthTicket=function(e){i.addHeader("AuthMsaDeviceTicket",e)},e.hasEvents=_,e._setTransmitProfile=function(e){g!==e&&void 0!==f[e]&&(w(),g=e,E())},e._backOffTransmission=function(){y<4&&(y++,w(),E())},e._clearBackOff=function(){y&&(y=0,w(),E())}})),r}return __extends(t,e),t}(BI);!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(RD||(RD={})),function(e){e[e.Default=0]="Default",e[e.Required=1]="Required",e[e.Array=2]="Array",e[e.Hidden=4]="Hidden"}(ND||(ND={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(MD||(MD={}));var HD=function(){function e(){}return e.requestContextHeader="Request-Context",e.requestContextTargetKey="appId",e.requestContextAppIdFormat="appId=cid-v1:",e.requestIdHeader="Request-Id",e.traceParentHeader="traceparent",e.sdkContextHeader="Sdk-Context",e.sdkContextHeaderAppIdRequest="appId",e.requestContextHeaderLowerCase="request-context",e}(),VD=function(){function e(){}return e.sanitizeKeyAndAddUniqueness=function(t,n,r){var o=n.length,i=e.sanitizeKey(t,n);if(i.length!==o){for(var a=0,s=i;void 0!==r[s];)a++,s=i.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(a);i=s}return i},e.sanitizeKey=function(t,n){var r;return n&&(n=e.trim(n.toString())).length>e.MAX_NAME_LENGTH&&(r=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(Zw.WARNING,tI.NameTooLong,"name is too long.  It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},e.sanitizeString=function(t,n,r){var o;return void 0===r&&(r=e.MAX_STRING_LENGTH),n&&(r=r||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>r&&(o=n.toString().substring(0,r),t.throwInternal(Zw.WARNING,tI.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),o||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,tI.UrlTooLong)},e.sanitizeMessage=function(t,n){var r;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(r=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(Zw.WARNING,tI.MessageTruncated,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},e.sanitizeException=function(t,n){var r;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(Zw.WARNING,tI.ExceptionTruncated,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},e.sanitizeProperties=function(t,n){if(n){var r={};Qw(n,(function(n,o){if(Jw.isObject(o)&&Aw())try{o=Rw().stringify(o)}catch(SR){t.throwInternal(Zw.WARNING,tI.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:SR},!0)}o=e.sanitizeString(t,o,e.MAX_PROPERTY_LENGTH),n=e.sanitizeKeyAndAddUniqueness(t,n,r),r[n]=o})),n=r}return n},e.sanitizeMeasurements=function(t,n){if(n){var r={};Qw(n,(function(n,o){n=e.sanitizeKeyAndAddUniqueness(t,n,r),r[n]=o})),n=r}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,tI.IdTooLong).toString():n},e.sanitizeInput=function(t,n,r,o){var i;return n&&(n=e.trim(n)).length>r&&(i=n.substring(0,r),t.throwInternal(Zw.WARNING,o,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),i||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return Jw.isString(e)?e.replace(/^\s+|\s+$/g,""):e},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),zD=Iw(),UD=Jw.isString,WD=null;var GD=function(){function e(){}return e.createDomEvent=function(e){var t=null;if(Jw.isFunction(Event))t=new Event(e);else{var n=kw();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(RD.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(Jw.isNullOrUndefined(Sw()))return null;n=new Date,(r=e===RD.LocalStorage?xw("localStorage"):xw("sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(o){r=null}return r},e.isInternalApplicationInsightsEndpoint=function(t){return-1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(RD.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(SR){e._canUseLocalStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return null},e.setStorage=function(t,n,r){var o=e._getLocalStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(SR){e._canUseLocalStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return!1},e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(SR){e._canUseLocalStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(RD.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(RD.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];return e.canUseSessionStorage()&&Qw(xw("sessionStorage"),(function(e){t.push(e)})),t},e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(SR){e._canUseSessionStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return null},e.setSessionStorage=function(t,n,r){var o=e._getSessionStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(SR){e._canUseSessionStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return!1},e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(SR){e._canUseSessionStorage=!1,t.throwInternal(Zw.WARNING,tI.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+e.getExceptionName(SR),{exception:e.dump(SR)})}return!1},e.disableCookies=function(){Jw.disableCookies()},e.canUseCookies=function(t){if(void 0===Jw._canUseCookies){Jw._canUseCookies=!1;try{Jw._canUseCookies=void 0!==e.document.cookie}catch(SR){t.throwInternal(Zw.WARNING,tI.CannotAccessCookie,"Cannot access document.cookie - "+e.getExceptionName(SR),{exception:e.dump(SR)})}}return Jw._canUseCookies},e.disallowsSameSiteNone=function(e){return!!UD(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||(-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||(!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function(e,t){var n=e.length,r=n-t.length;return e.substring(r>=0?r:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||(-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||(-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11")))))))},e.setCookie=function(t,n,r,o){if(e.canUseCookies(t)){var i="",a="";o&&(i=";domain="+o);var s=Tw();s&&"https:"===s.protocol&&(a=";secure",null===WD&&(WD=e.disallowsSameSiteNone((Iw()||{}).userAgent)),WD||(r+=";SameSite=None")),e.document.cookie=n+"="+r+i+";path=/"+a}},e.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var r="";if(n&&n.length)for(var o=n+"=",i=e.document.cookie.split(";"),a=0;a<i.length;a++){var s=i[a];if((s=e.trim(s))&&0===s.indexOf(o)){r=s.substring(o.length,i[a].length);break}}return r}},e.deleteCookie=function(t,n){e.canUseCookies(t)&&(e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},e.random32=function(){return Jw.random32(!0)},e.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():zD?(zD.userAgent||"").toLowerCase():"";if(-1!==t.indexOf("msie"))return parseInt(t.split("msie")[1]);if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n)return n+4}return null},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r,(i>0?i+".":"")+(o=o.length<2?"0"+o:o)+":"+r+":"+n+"."+t},e.isCrossOriginError=function(e,t,n,r,o){return("Script error."===e||"Script error"===e)&&!o},e.dump=function(e){var t=Object.prototype.toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Aw()&&(n=Rw().stringify(e)),t+n},e.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},e.addEventHandler=function(e,t){return eI.Attach(Ew(),e,t)},e.IsBeaconApiSupported=function(){return"sendBeacon"in zD&&zD.sendBeacon},e.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},e.document=kw()||{},e._canUseLocalStorage=void 0,e._canUseSessionStorage=void 0,e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],e.NotSpecified="not_specified",e.trim=Jw.strTrim,e.newId=Jw.newId,e.generateW3CId=Jw.generateW3CId,e.isArray=Jw.isArray,e.isError=Jw.isError,e.isDate=Jw.isDate,e.toISOStringForIE8=Jw.toISOString,e}(),jD=function(){function e(){}return e.parseUrl=function(t){var n=e._htmlAnchorIdx,r=e._htmlAnchorElement,o=r[n];return e.document.createElement?r[n]||(o=r[n]=e.document.createElement("a")):o={host:e.parseHost(t,!0)},o.href=t,++n>=r.length&&(n=0),e._htmlAnchorIdx=n,o},e.getAbsoluteUrl=function(t){var n,r=e.parseUrl(t);return r&&(n=r.href),n},e.getPathName=function(t){var n,r=e.parseUrl(t);return r&&(n=r.pathname),n},e.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var o=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=o&&o.length>3&&UD(o[2])&&o[2].length>0)return o[2]+(o[3]||"")}return r},e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>2&&UD(r[2])&&r[2].length>0&&(n=r[2]||"",t&&r.length>2)){var o=(r[1]||"").toLowerCase(),i=r[3]||"";("http"===o&&":80"===i||"https"===o&&":443"===i)&&(i=""),n+=i}}return n},e.document=kw()||{},e._htmlAnchorIdx=0,e._htmlAnchorElement=[null,null,null,null,null],e}(),qD=(function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var o=jD.parseUrl(t).host.toLowerCase();if(!o||-1===o.indexOf(":443")&&-1===o.indexOf(":80")||(o=(jD.parseFullHost(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o!==n)return!1;var i,a=e&&e.correlationHeaderDomains;if(a&&(Jw.arrForEach(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));i=i||t.test(o)})),!i))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s.length)return!0;for(r=0;r<s.length;r++){if(new RegExp(s[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(o))return!1}return o&&o.length>0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,HD.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}},e.correlationIdPrefix="cid-v1:"}(),function(){function e(){}return e.ParseDependencyPath=function(e,t,n,r){var o,i=r,a=r;if(t&&t.length>0){var s=jD.parseUrl(t);if(o=s.host,!i)if(null!=s.pathname){var l=0===s.pathname.length?"/":s.pathname;"/"!==l.charAt(0)&&(l="/"+l),a=s.pathname,i=VD.sanitizeString(e,n?n+" "+l:l)}else i=VD.sanitizeString(e,t)}else o=r,i=r;return{target:o,name:i,data:a}},e}()),KD=function(){function e(){}return e.Now=function(){var e=Dw();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(new Date).getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||Jw.isNullOrUndefined(e)||Jw.isNullOrUndefined(t)||(n=t-e),n},e}(),YD=(function(){function e(){}e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),r=Jw.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var o=r[0].toLowerCase(),i=r[1];t[o]=i}return t}),{});if(Jw.objKeys(r).length>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+o+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||"https://dc.services.visualstudio.com"}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="="}(),function(e){function t(){return e.call(this)||this}return __extends(t,e),t}((function(){}))),XD=(function(e){function t(t,n,r){var o=e.call(this)||this;return o.name=VD.sanitizeString(t,r)||GD.NotSpecified,o.data=n,o.time=Jw.toISOString(new Date),o.aiDataContract={time:ND.Required,iKey:ND.Required,name:ND.Required,sampleRate:function(){return 100===o.sampleRate?ND.Hidden:ND.Required},tags:ND.Required,data:ND.Required},o}__extends(t,e)}((function(){this.ver=1,this.sampleRate=100,this.tags={}})),function(){}),QD=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(XD),ZD=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.aiDataContract={ver:ND.Required,name:ND.Required,properties:ND.Default,measurements:ND.Default},i.name=VD.sanitizeString(t,n)||GD.NotSpecified,i.properties=VD.sanitizeProperties(t,r),i.measurements=VD.sanitizeMeasurements(t,o),i}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(QD),JD=function(){},$D=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(XD),eA=function(){this.hasFullStack=!0,this.parsedStack=[]};var tA,nA=function(e){function t(t,n,r,o,i,a){var s,l=e.call(this)||this;return l.aiDataContract={ver:ND.Required,exceptions:ND.Required,severityLevel:ND.Default,properties:ND.Default,measurements:ND.Default},"ver"in(s=n)&&"exceptions"in s&&"properties"in s?(l.exceptions=n.exceptions,l.properties=n.properties,l.measurements=n.measurements,n.severityLevel&&(l.severityLevel=n.severityLevel),n.id&&(l.id=n.id),n.problemGroup&&(l.problemGroup=n.problemGroup),l.ver=2,Jw.isNullOrUndefined(n.isManual)||(l.isManual=n.isManual)):(l.exceptions=[new rA(t,n)],l.properties=VD.sanitizeProperties(t,r)||{},l.measurements=VD.sanitizeMeasurements(t,o),i&&(l.severityLevel=i),a&&(l.id=a)),l}return __extends(t,e),t.CreateFromInterface=function(e,n,r,o){var i=n.exceptions&&Jw.arrMap(n.exceptions,(function(t){return rA.CreateFromInterface(e,t)}));return new t(e,__assign({},n,{exceptions:i}),r,o)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,o=e.severityLevel,i=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&Jw.arrMap(t,(function(e){return e.toInterface()}))||void 0,severityLevel:o,properties:n,measurements:r,problemGroup:i,id:a,isManual:s}},t.CreateSimpleException=function(e,t,n,r,o,i){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t}($D),rA=function(e){function t(n,r){var o,i=e.call(this)||this;if(i.aiDataContract={id:ND.Default,outerId:ND.Default,typeName:ND.Required,message:ND.Required,hasFullStack:ND.Default,stack:ND.Default,parsedStack:ND.Array},"hasFullStack"in(o=r)&&"typeName"in o)i.typeName=r.typeName,i.message=r.message,i.stack=r.stack,i.parsedStack=r.parsedStack,i.hasFullStack=r.hasFullStack;else{var a=r;GD.isError(a)||(a=a.error||a.evt||a),i.typeName=VD.sanitizeString(n,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(SR){}return t}(a))||GD.NotSpecified,i.message=VD.sanitizeMessage(n,r.message)||GD.NotSpecified;var s=r.stack;i.parsedStack=t.parseStack(s),i.stack=VD.sanitizeException(n,s),i.hasFullStack=GD.isArray(i.parsedStack)&&i.parsedStack.length>0}return i}return __extends(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Jw.arrMap(this.parsedStack,(function(e){return e.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Jw.arrMap(n.parsedStack,(function(e){return oA.CreateFromInterface(e)}))||n.parsedStack;return new t(e,__assign({},n,{parsedStack:r}))},t.parseStack=function(e){var t;if(Jw.isString(e)){var n=e.split("\n");t=[];for(var r=0,o=0,i=0;i<=n.length;i++){var a=n[i];if(oA.regex.test(a)){var s=new oA(n[i],r++);o+=s.sizeInBytes,t.push(s)}}if(o>32768)for(var l=0,c=t.length-1,u=0,d=l,p=c;l<c;){if((u+=t[l].sizeInBytes+t[c].sizeInBytes)>32768){var h=p-d+1;t.splice(d,h);break}d=l,p=c,l++,c--}}return t},t}(eA),oA=function(e){function t(n,r){var o=e.call(this)||this;if(o.sizeInBytes=0,o.aiDataContract={level:ND.Required,method:ND.Required,assembly:ND.Default,fileName:ND.Default,line:ND.Default},"string"===typeof n){var i=n;o.level=r,o.method="<no_method>",o.assembly=GD.trim(i),o.fileName="",o.line=0;var a=i.match(t.regex);a&&a.length>=5&&(o.method=GD.trim(a[2])||o.method,o.fileName=GD.trim(a[4]),o.line=parseInt(a[5])||0)}else o.level=n.level,o.method=n.method,o.assembly=n.assembly,o.fileName=n.fileName,o.line=n.line,o.sizeInBytes=0;return o.sizeInBytes+=o.method.length,o.sizeInBytes+=o.fileName.length,o.sizeInBytes+=o.assembly.length,o.sizeInBytes+=t.baseSize,o.sizeInBytes+=o.level.toString().length,o.sizeInBytes+=o.line.toString().length,o}return __extends(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(JD),iA=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(XD);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(tA||(tA={}));var aA,sA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:ND.Required,kind:ND.Default,value:ND.Required,count:ND.Default,min:ND.Default,max:ND.Default,stdDev:ND.Default},t}return __extends(t,e),t}((function(){this.kind=tA.Measurement})),lA=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this)||this;c.aiDataContract={ver:ND.Required,metrics:ND.Required,properties:ND.Default};var u=new sA;return u.count=o>0?o:void 0,u.max=isNaN(a)||null===a?void 0:a,u.min=isNaN(i)||null===i?void 0:i,u.name=VD.sanitizeString(t,n)||GD.NotSpecified,u.value=r,c.metrics=[u],c.properties=VD.sanitizeProperties(t,s),c.measurements=VD.sanitizeMeasurements(t,l),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(iA),cA=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(QD),uA=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this)||this;return l.aiDataContract={ver:ND.Required,name:ND.Default,url:ND.Default,duration:ND.Default,properties:ND.Default,measurements:ND.Default,id:ND.Default},l.id=VD.sanitizeId(t,s),l.url=VD.sanitizeUrl(t,r),l.name=VD.sanitizeString(t,n)||GD.NotSpecified,isNaN(o)||(l.duration=GD.msToTimeSpan(o)),l.properties=VD.sanitizeProperties(t,i),l.measurements=VD.sanitizeMeasurements(t,a),l}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(cA),dA=function(e){function t(t,n,r,o,i,a,s,l,c,u,d,p){void 0===c&&(c="Ajax");var h=e.call(this)||this;h.aiDataContract={id:ND.Required,ver:ND.Required,name:ND.Default,resultCode:ND.Default,duration:ND.Default,success:ND.Default,data:ND.Default,target:ND.Default,type:ND.Default,properties:ND.Default,measurements:ND.Default,kind:ND.Default,value:ND.Default,count:ND.Default,min:ND.Default,max:ND.Default,stdDev:ND.Default,dependencyKind:ND.Default,dependencySource:ND.Default,commandName:ND.Default,dependencyTypeName:ND.Default},h.id=n,h.duration=GD.msToTimeSpan(i),h.success=a,h.resultCode=s+"",h.type=VD.sanitizeString(t,c);var m=qD.ParseDependencyPath(t,r,l,o);return h.data=VD.sanitizeUrl(t,o)||m.data,h.target=VD.sanitizeString(t,m.target),u&&(h.target=h.target+" | "+u),h.name=VD.sanitizeString(t,m.name),h.properties=VD.sanitizeProperties(t,d),h.measurements=VD.sanitizeMeasurements(t,p),h}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return __extends(t,e),t}(XD)),pA=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.aiDataContract={ver:ND.Required,message:ND.Required,severityLevel:ND.Default,properties:ND.Default},n=n||GD.NotSpecified,a.message=VD.sanitizeMessage(t,n),a.properties=VD.sanitizeProperties(t,o),a.measurements=VD.sanitizeMeasurements(t,i),r&&(a.severityLevel=r),a}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(XD)),hA=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this)||this;return l.aiDataContract={ver:ND.Required,name:ND.Default,url:ND.Default,duration:ND.Default,perfTotal:ND.Default,networkConnect:ND.Default,sentRequest:ND.Default,receivedResponse:ND.Default,domProcessing:ND.Default,properties:ND.Default,measurements:ND.Default},l.url=VD.sanitizeUrl(t,r),l.name=VD.sanitizeString(t,n)||GD.NotSpecified,l.properties=VD.sanitizeProperties(t,i),l.measurements=VD.sanitizeMeasurements(t,a),s&&(l.domProcessing=s.domProcessing,l.duration=s.duration,l.networkConnect=s.networkConnect,l.perfTotal=s.perfTotal,l.receivedResponse=s.receivedResponse,l.sentRequest=s.sentRequest),l}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(cA));!function(e){function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:ND.Required,baseData:ND.Required},r.baseType=t,r.baseData=n,r}__extends(t,e)}(YD);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(aA||(aA={}));!function(){function e(){}e.getConfig=function(e,t,n,r){var o;return void 0===r&&(r=!1),o=n&&e.extensionConfig&&e.extensionConfig[n]&&!Jw.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],Jw.isNullOrUndefined(o)?r:o}}();var mA=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalSnippet="ai.internal.snippet",this.internalSdkSrc="ai.internal.sdkSrc"},fA=function(){function e(){}return e.create=function(e,t,n,r,o,i){if(n=VD.sanitizeString(r,n)||GD.NotSpecified,Jw.isNullOrUndefined(e)||Jw.isNullOrUndefined(t)||Jw.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:Jw.toISOString(new Date),iKey:"",ext:i||{},tags:[],data:{},baseType:t,baseData:e};return Jw.isNullOrUndefined(o)||Qw(o,(function(e,t){a.data[e]=t})),a},e}(),gA=(function(){function e(){}e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk"}(),new mA,function e(t,n,r,o){xI(e,this,(function(e){var i,a=Jw.arrForEach,s=Jw.isNullOrUndefined,l=null,c=[],u=!1;function d(){r&&a(r.getTransmissionControls(),(function(e){a(e,(function(e){return e.flush(!0)}))}))}r&&(i=r.logger),e.trackPageView=function(e,r){var p=e.name;if(s(p)||"string"!==typeof p){var h=kw();p=e.name=h&&h.title||""}var m=e.uri;if(s(m)||"string"!==typeof m){var f=Tw();m=e.uri=f&&f.href||""}if(!o.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),d(),void i.throwInternal(Zw.WARNING,tI.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var g,v,y,b=!1,C=o.getPerformanceTiming().navigationStart;C>0&&(g=KD.GetDuration(C,+new Date),o.shouldCollectDuration(g)||(g=void 0)),s(r)||s(r.duration)||(v=r.duration),!n&&isNaN(v)||(isNaN(v)&&(r||(r={}),r.duration=g),t.sendPageViewInternal(e,r),d(),b=!0),r||(r={}),y=function(){var n=!1;try{if(o.isPerformanceTimingDataReady()){n=!0;var a={name:p,uri:m};o.populatePageViewPerformanceEvent(a),a.isValid||b?(b||(r.duration=a.durationMs,t.sendPageViewInternal(e,r)),u||(t.sendPageViewPerformanceInternal(a,r),u=!0)):(r.duration=g,t.sendPageViewInternal(e,r))}else C>0&&KD.GetDuration(C,+new Date)>6e4&&(n=!0,b||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(SR){i.throwInternal(Zw.CRITICAL,tI.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}return n},c.push(y),l||(l=setInterval((function(){var e=c.slice(0),t=!1;c=[],a(e,(function(e){e()?t=!0:c.push(e)})),0===c.length&&(clearInterval(l),l=null),t&&d()}),100))}}))}),vA=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(SR){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+GD.dump(SR))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(SR){return this._logger.warnToConsole("Call to restart failed: "+GD.dump(SR)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(GD.canUseSessionStorage()){if(null!=GD.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new yA(e,t),r=Rw().stringify(n);GD.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(SR){this._logger.warnToConsole("Call to start failed: "+GD.dump(SR))}},e.prototype.stopPageVisitTimer=function(){try{if(GD.canUseSessionStorage()){var e=Jw.dateNow(),t=GD.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&Aw()){var n=Rw().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,GD.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(SR){return this._logger.warnToConsole("Stop page visit timer failed: "+GD.dump(SR)),null}},e}(),yA=function(e,t){this.pageVisitStartTime=Jw.dateNow(),this.pageName=e,this.pageUrl=t},bA=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var r=t.duration,o=KD.GetDuration(t.startTime,t.connectEnd),i=KD.GetDuration(t.requestStart,t.responseStart),a=KD.GetDuration(t.responseStart,t.responseEnd),s=KD.GetDuration(t.responseEnd,t.loadEventEnd);else r=KD.GetDuration(n.navigationStart,n.loadEventEnd),o=KD.GetDuration(n.navigationStart,n.connectEnd),i=KD.GetDuration(n.requestStart,n.responseStart),a=KD.GetDuration(n.responseStart,n.responseEnd),s=KD.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(Zw.WARNING,tI.ErrorPVCalc,"error calculating page view performance.",{total:r,network:o,request:i,response:a,dom:s}):this.shouldCollectDuration(r,o,i,a,s)?r<Math.floor(o)+Math.floor(i)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(Zw.WARNING,tI.ClientPerformanceMathError,"client performance math error.",{total:r,network:o,request:i,response:a,dom:s}):(e.durationMs=r,e.perfTotal=e.duration=GD.msToTimeSpan(r),e.networkConnect=GD.msToTimeSpan(o),e.sentRequest=GD.msToTimeSpan(i),e.receivedResponse=GD.msToTimeSpan(a),e.domProcessing=GD.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(Zw.WARNING,tI.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:o,request:i,response:a,dom:s})}},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?Dw().timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?Dw().getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){var e=Dw();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){var e=Dw();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=Dw(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Iw()||{},r=["googlebot","adsbot-google","apis-google","mediapartners-google"],o=n.userAgent,i=!1;if(o)for(var a=0;a<r.length;a++)i=i||-1!==o.toLowerCase().indexOf(r[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}();function CA(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var SA=function(e){function t(){var t=e.call(this)||this;t.identifier="ApplicationInsightsAnalytics",t.priority=180,t.autoRoutePVDelay=500,t._trackAjaxAttempts=0;var n=Tw();return t._prevUri=n&&n.href||"",t}return __extends(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=GD.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=GD.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=GD.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=GD.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=GD.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=GD.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=GD.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=GD.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},t.prototype.processTelemetry=function(e,t){var n=this;TI(this.core,(function(){return n.identifier+":processTelemetry"}),(function(){var r=!1,o=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var i=0;i<o;++i){var a=n._telemetryInitializers[i];if(a)try{if(!1===a.apply(null,[e])){r=!0;break}}catch(SR){t.diagLog().throwInternal(Zw.CRITICAL,tI.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+GD.getExceptionName(SR),{exception:GD.dump(SR)},!0)}}r||n.processNext(e,t)}),(function(){return{item:e}}),!e.sync)},t.prototype.trackEvent=function(e,t){try{var n=fA.create(e,ZD.dataType,ZD.envelopeType,this.diagLog(),t);this.core.track(n)}catch(SR){this.diagLog().throwInternal(Zw.WARNING,tI.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.trackTrace=function(e,t){try{var n=fA.create(e,pA.dataType,pA.envelopeType,this.diagLog(),t);this.core.track(n)}catch(SR){this.diagLog().throwInternal(Zw.WARNING,tI.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.trackMetric=function(e,t){try{var n=fA.create(e,lA.dataType,lA.envelopeType,this.diagLog(),t);this.core.track(n)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.TrackPVFailed,"trackPageView failed, page view will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.sendPageViewInternal=function(e,t,n){var r=kw();r&&(e.refUri=void 0===e.refUri?r.referrer:e.refUri);var o=fA.create(e,uA.dataType,uA.envelopeType,this.diagLog(),t,n);this.core.track(o),this._trackAjaxAttempts=0},t.prototype.sendPageViewPerformanceInternal=function(e,t,n){var r=fA.create(e,hA.dataType,hA.envelopeType,this.diagLog(),t,n);this.core.track(r)},t.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.startTrackPage=function(e){try{if("string"!==typeof e){var t=kw();e=t&&t.title||""}this._pageTracking.start(e)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.stopTrackPage=function(e,t,n,r){try{if("string"!==typeof e){var o=kw();e=o&&o.title||""}if("string"!==typeof t){var i=Tw();t=i&&i.href||""}this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype.sendExceptionInternal=function(e,t,n){var r=new nA(this.diagLog(),e.exception||new Error(GD.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),o=fA.create(r,nA.dataType,nA.envelopeType,this.diagLog(),t,n);this.core.track(o)},t.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(SR){this.diagLog().throwInternal(Zw.CRITICAL,tI.TrackExceptionFailed,"trackException failed, exception will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR)})}},t.prototype._onerror=function(e){try{var t={url:e&&e.url||(kw()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(GD.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!GD.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:aA.Error},t)}}catch(SR){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(Zw.CRITICAL,tI.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+GD.getExceptionName(SR),{exception:GD.dump(SR),errorString:r})}},t.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype.initialize=function(n,r,o,i){var a=this;if(!this.isInitialized()){if(Jw.isNullOrUndefined(r))throw Error("Error initializing");e.prototype.initialize.call(this,n,r,o,i),this.setInitialized(!1);var s=this._getTelCtx(),l=this.identifier;this._globalconfig={instrumentationKey:n.instrumentationKey,endpointUrl:n.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=s.getExtCfg(l);var c=t.getDefaultConfig();void 0!==c&&(Qw(c,(function(e,t){a.config[e]=s.getConfig(l,e,t)})),this._globalconfig&&Qw(c,(function(e,t){void 0===a._globalconfig[e]&&(a._globalconfig[e]=t)}))),this.config.isCookieUseDisabled&&GD.disableCookies(),this.config.isStorageUseDisabled&&GD.disableStorage();var u={instrumentationKey:function(){return n.instrumentationKey},accountId:function(){return a.config.accountId||n.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||n.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||n.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||n.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||n.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||n.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||n.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||n.appId}};this._pageViewPerformanceManager=new bA(this.core),this._pageViewManager=new gA(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new vA(this.diagLog(),(function(e,t,n){return a.trackPageVisitTime(e,t,n)})),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(u),this._eventTracking=new xA(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){r||(r={}),r.duration=n.toString(),a.trackEvent({name:e,properties:r})},this._pageTracking=new xA(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,o){Jw.isNullOrUndefined(r)&&(r={}),r.duration=n.toString();var i={name:e,uri:t,properties:r,measurements:o};a.sendPageViewInternal(i,r)};var d=Ew(),p=Pw(),h=Tw(),m=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&d){var f=d.onerror;d.onerror=function(e,t,n,r,o){var i=f&&f(e,t,n,r,o);return!0!==i&&m._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:o}),i},this.config.autoExceptionInstrumented=!0}if(!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&d){var g=d.onunhandledrejection;d.onunhandledrejection=function(e){var t=g&&g.call(d,e);return!0!==t&&m._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:new Error(e.reason.toString()),url:h?h.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&p&&Jw.isFunction(p.pushState)&&Jw.isFunction(p.replaceState)&&d&&"undefined"!==typeof Event){var v=this;Jw.arrForEach(o,(function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)})),p.pushState=function(e){return function(){var t=e.apply(this,arguments);return CA(d,GD.createDomEvent(v.config.namePrefix+"pushState")),CA(d,GD.createDomEvent(v.config.namePrefix+"locationchange")),t}}(p.pushState),p.replaceState=function(e){return function(){var t=e.apply(this,arguments);return CA(d,GD.createDomEvent(v.config.namePrefix+"replaceState")),CA(d,GD.createDomEvent(v.config.namePrefix+"locationchange")),t}}(p.replaceState),d.addEventListener&&(d.addEventListener(v.config.namePrefix+"popstate",(function(){CA(d,GD.createDomEvent(v.config.namePrefix+"locationchange"))})),d.addEventListener(v.config.namePrefix+"locationchange",(function(){v._properties&&v._properties.context&&v._properties.context.telemetryTrace&&(v._properties.context.telemetryTrace.traceID=GD.generateW3CId(),v._properties.context.telemetryTrace.name=h&&h.pathname||"_unknown_"),a._currUri?(a._prevUri=a._currUri,a._currUri=h&&h.href||""):a._currUri=h&&h.href||"",setTimeout(function(e){v.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),v.autoRoutePVDelay)})))}this.setInitialized(!0)}},t.prototype.trackPageVisitTime=function(e,t,n){var r={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},r)},t.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer((function(e){if(e.baseType===dA.dataType){var n=e.baseData;if(n)for(var r=0;r<t.length;r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}return!0}))}},t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=fA.create(t,nA.dataType,nA.envelopeType,this.diagLog(),{url:e});this.core.track(n)},t.Version="2.5.11",t}(BI),xA=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){"undefined"!==typeof this._events[e]&&this._logger.throwInternal(Zw.WARNING,tI.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,r){var o=this._events[e];if(isNaN(o))this._logger.throwInternal(Zw.WARNING,tI.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var i=+new Date,a=KD.GetDuration(o,i);this.action(e,t,a,n,r)}delete this._events[e],this._events[e]=void 0},e}();function _A(e){Qw(e,(function(t,n){(!IP(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function EA(e){return kA(e,wA)}function kA(e,t,n){var r=e;if(r){for(r=r;!t(r,n);)if(!(r=r=r.parentNode)||!r.getAttribute)return null;return r}}function wA(e){return"A"===e.nodeName}function IA(e,t){return function(e,t){var n=e.left,r=e.top,o=e.right,i=e.bottom,a=t.left,s=t.top,l=t.right,c=t.bottom;return Math.max(0,Math.min(o,l)-Math.max(n,a))*Math.max(0,Math.min(i,c)-Math.max(r,s))}((e=e).getBoundingClientRect(),t)>0}function PA(e,t){return!!IP(TA(e,t))}function TA(e,t){return kA(e,DA,t)}function DA(e,t){var n=e.getAttribute(t);return IP(n)||""===n}function AA(e){return"["+e+"]"}function RA(e,t,n,r){var o;return function(){var i=arguments,a=function(){o=0,t&&t.apply(r,i)},s=!o;clearTimeout(o),o=setTimeout(a,n),s&&e&&e.apply(r,i)}}function NA(){var e={h:0,v:0},t=Ew(),n=kw();return n&&t&&(e={h:parseInt(n.body.scrollLeft||n.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(n.body.scrollTop||n.documentElement.scrollTop||t.pageYOffset,10)}),e}function MA(){var e={h:0,w:0},t=Ew(),n=kw();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}var FA,BA="CL",OA="CR",LA="CM",HA="S",VA="R",zA="KE",UA="KS";!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(FA||(FA={}));var WA={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function GA(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!IP(t)&&"pii"===t.toLowerCase()}catch(SR){return!1}}function jA(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:function(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+(IP(t.port)?":"+t.port:"")+t.pathname;e.urlCollectHash&&(n+=t.hash||"");if(e.urlCollectQuery){var r=t.search;if(!r){var o=t.hash||"",i=o.indexOf("?");-1!==i&&(r=o.slice(i))}return n+r}return n}(e,t)}function qA(e,t){var n,r="",o={},i=[],a=e.cookiesToCollect;!1===e.shareAuthStatus?i=a:fP(a,(function(e){"ANON"!==e&&i.push(e)}));try{try{wP&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(i=i.concat(window.varCustomerCookies))}catch(SR){t.throwInternal(Zw.CRITICAL,iP.FailedToGetCookies,"Failed to get cookies ")}fP(i,(function(e){o.hasOwnProperty(e)||(o[e]="",kP&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(r+=e+"="+n+";"))}))}catch(SR){t.throwInternal(Zw.CRITICAL,iP.FailedToGetCookies,"Failed to get cookies ")}return r}function KA(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(e){if(e){var t=EA(e);if(1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}(e);break;case"INPUT":var n=e.type;if(n&&WA[n.toUpperCase()]){var r=Tw()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function YA(e){XA((function(){if(kP&&"complete"===document.readyState)e();else{var t=Ew();t&&(t.addEventListener?t.addEventListener("load",(function(){e()})):t.attachEvent&&t.attachEvent("onload",(function(){e()})))}}))}function XA(e){var t=kw()||{};/in/.test(t.readyState)?setTimeout((function(){XA(e)}),100):e.call()}var QA,ZA={longNames:{isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},shortNames:{isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"}},JA={parentId:"parentId",parentName:"parentName"},$A={parentId:"pI",parentName:"pN"},eR=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?ZA.shortNames:ZA.longNames}return e.prototype.getMetadata=function(){var e={},t={};return kP&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),BP(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=MA(),n={top:0,bottom:(e=t).h,left:0,right:e.w},r=null;kP&&(r=document.querySelectorAll(AA(this._contentBlobFieldNames.areaName)+","+AA(this._contentBlobFieldNames.slotNumber)+","+AA(this._config.biBlobAttributeTag)));var o=[];if(r)for(var i=0;i<r.length;i++){var a=r[i];if(!PA(a,"data-bi-dnt")&&IA(a,n)){var s=this.getElementContent(a,FA.CONTENT_UPDATE);s&&o.push(s)}}return o},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,r,o,i={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){r=(n=e).getAttribute(this._config.biBlobAttributeTag);try{i=JSON.parse(r)}catch(SR){this._traceLogger.throwInternal(Zw.CRITICAL,iP.CannotParseBiBlobValue,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,i=BP(i,this._populateElementContentwithDataBi(o,e)));else if((n=TA(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{i=JSON.parse(r)}catch(SR){this._traceLogger.throwInternal(Zw.CRITICAL,iP.CannotParseBiBlobValue,"Can not parse "+r)}else o=kA(e,this._isTrackedWithDataBi),i=BP(i,this._populateElementContentwithDataBi(o,e));return _A(i),this._config.autoCapture.lineage&&t===FA.PAGE_ACTION&&(i=BP(i,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(i=BP(i,this._getParentDetails(n||o,i))),i},e.prototype.getLineageDetails=function(e){for(var t,n,r,o=[],i=[],a=this._config.biBlobAttributeTag,s="data-module-id";e;){var l=e.getAttribute(a)||e[a],c=e.getAttribute(s)||e["data-module-id"];if(l){try{var u=JSON.parse(l)}catch(SR){this._traceLogger.throwInternal(Zw.CRITICAL,iP.CannotParseDataAttribute,"Can not parse "+l)}u&&(n=u.cN||u.cT,r=u.id||void 0,(n||r)&&(o.push(n),c&&(t=n),i.push(r)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),r=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||r)&&(o.push(n),c&&(t=n),i.push(r));e=e.parentElement}return{lineage:o.join(">"),lineageById:i.join(">"),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e){if(!this._config.useDefaultContentName)return n;e=t}var r=TA(e,this._contentBlobFieldNames.areaName),o=BP({},this._getAreaContent(r)),i=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",a=this._getDefaultContentName(e,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:o.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:i||e.getAttribute(this._contentBlobFieldNames.contentName)||a||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||o.contentSource,tN:o.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||o.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||this._traceLogger.throwInternal(Zw.WARNING,iP.InvalidContentBlob,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var s,l=0;l<e.attributes.length;l++){if((s=e.attributes[l]).name!==this._contentBlobFieldNames.id&&s.name!==this._contentBlobFieldNames.areaName&&s.name!==this._contentBlobFieldNames.slotNumber&&s.name!==this._contentBlobFieldNames.contentName&&s.name!==this._contentBlobFieldNames.contentSource&&s.name!==this._contentBlobFieldNames.templateName&&s.name!==this._contentBlobFieldNames.productId&&s.name!==this._contentBlobFieldNames.contentType&&s.name!==this._contentBlobFieldNames.parentId&&s.name!==this._contentBlobFieldNames.parentName&&-1!==s.name.indexOf("data-bi-"))n[s.name.replace("data-bi-","")]=s.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(kP){n=document.querySelectorAll("meta");for(var o=0;o<n.length;o++){var i=n[o];if(i.name)if(0===i.name.toLowerCase().indexOf(e))r[t?i.name.replace(e,""):i.name]=i.content}}return r},e.prototype._getAreaContent=function(e){if(e=e)return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||GA(e)||!e.tagName)return"";var n,r=kw()||{};switch(e.tagName){case"A":n=r.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":n=e.alt;break;default:n=e.value||e.name||e.alt||e.innerText||e.id}return n.substring(0,200)},e.prototype._getParentDetails=function(e,t){var n=this._contentBlobFieldNames.isShortNames?$A.parentId:JA.parentId,r=this._contentBlobFieldNames.isShortNames?$A.parentName:JA.parentName,o=t[n],i=t[r];return o||i||!e?{}:this._populateParentInfo(e,n,r)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var r,o,i={},a=this._config.biBlobAttributeTag,s=kA(e.parentElement,this._isTracked);if(s){var l=s.getAttribute(a)||e[a];if(l){try{var c=JSON.parse(l)}catch(SR){this._traceLogger.throwInternal(Zw.CRITICAL,iP.CannotParseDataAttribute,"Can not parse "+l)}c&&(r=c.id,o=c.cN)}else r=s.getAttribute(this._contentBlobFieldNames.id),o=s.getAttribute(this._contentBlobFieldNames.contentName);r&&(i[t]=r),o&&(i[n]=o)}return i},e}(),tR={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},nR=function(){function e(e,t){this._analyticsPlugin=e,this._traceLogger=t}return e.prototype.pageView=function(){this._analyticsPlugin.capturePageView({isAuto:!0})},e.prototype.onLoad=function(){var e=this;YA((function(){e._analyticsPlugin.capturePageViewPerformance({isAuto:!0}),e._analyticsPlugin.captureContentUpdate({isAuto:!0,isDomComplete:!0})}))},e.prototype.click=function(){var e=this,t=Ew(),n=kw();if(t&&t.addEventListener){var r=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(r,(function(t){e._processClick(t)}),!1),t.addEventListener("keyup",(function(t){e._processClick(t)}),!1)}else n&&n.attachEvent&&(n.attachEvent("onclick",(function(t){e._processClick(t)})),n.attachEvent("keyup",(function(t){e._processClick(t)})))},e.prototype.scroll=function(e){var t=this,n=RA(null,(function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:HA})}),e.scroll,this),r=Ew();r&&(r.addEventListener?r.addEventListener("scroll",n):window.attachEvent&&window.attachEvent("onscroll",n))},e.prototype.maxScroll=function(e){var t=function(){var t=NA();e.v=e.v>t.v?e.v:t.v},n=Ew();n&&(n.addEventListener?n.addEventListener("scroll",t):n.attachEvent&&n.attachEvent("onscroll",t))},e.prototype.resize=function(e){var t=this,n=RA((function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:VA})}),null,e.resize,this),r=Ew();r&&(r.addEventListener?r.addEventListener("resize",n):r.attachEvent&&r.attachEvent("onresize",n))},e.prototype.onUnload=function(){var e=this;VP((function(){e._analyticsPlugin.capturePageUnload({isAuto:!0})}))},e.prototype._processClick=function(e){var t,n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},r=Ew(),o=(e=e||r.event).srcElement||e.target,i={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},a="which"in(t=e)?3===t.which:"button"in t?2===t.button:void 0;if(a)i.actionType=OA;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))i.actionType=BA;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))i.actionType=zA;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))i.actionType=UA;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;i.actionType=LA}for(;o&&o.tagName;){if(o.control&&n[o.control.tagName.toUpperCase()]&&(o=o.control),n[o.tagName.toUpperCase()]){("INPUT"!==o.tagName.toUpperCase()||tR[o.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(o,i,{},a);break}o=o.parentElement||o.parentNode}},e}();function rR(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}!function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(QA||(QA={}));var oR=function(){function e(e,t,n,r,o,i,a){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this._metaTags=i,this._traceLogger=a,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),IP(e.name)||(e.name=function(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"===typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=(Tw()||{}).pathname||"",r=n.split("/");return r&&""!==r[r.length-1]?r[r.length-1]:"Undefined"}(this._config,t)),!IP(e.uri)&&wP&&(e.uri=jA(this._config,Tw()))},e.prototype._setCommonProperties=function(e,t,n){var r,o=this;o._setBasicProperties(e,n),o._setPageTags(e,n),o._pageTypeMetaTag=rR(o._metaTags,o._config.coreData,"pageType"),o._marketMetaTag=rR(o._metaTags,o._config.coreData,"market"),o._behaviorMetaTag=rR(o._metaTags,o._config.coreData,"behavior"),IP(n.pageType)&&(e.pageType=n.pageType),IP(o._pageTypeMetaTag)&&!IP(e.pageType)&&(e.pageType=o._pageTypeMetaTag),IP(o._marketMetaTag)&&(e.market=o._marketMetaTag),e.isLoggedIn=(r=o._config).callback&&"function"===typeof r.callback.signedinStatus?r.callback.signedinStatus():r.isLoggedIn,t.cookieEnabled=AP()},e.prototype._setPageTags=function(e,t){var n=this;n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=BP(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=BP(!0,n._pageTags,n._pageTagsCallback())),IP(t.pageTags)&&(n._pageTags=BP(!0,n._pageTags,t.pageTags)),n._metaTags&&(n._pageTags.metaTags={},Qw(n._metaTags,(function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)}))),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&IP(e.behavior)?t=e.behavior:IP(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if(IP(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?QA[e]:n)in QA)return t}return 0},e}(),iR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageView=function(e,t){e=IP(e)?e:{};var n={},r=IP(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=IP(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=qA(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(oR),aR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackPageAction=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:JI};r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,Qw(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=IP(t)?t:{};var o={},i=IP(n)?n:{};this._setCommonProperties(o,i,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var a={};if(e=e,r&&(o.behavior=9),e&&(o.targetUri=KA(e),(a=BP(a=this._contentHandler.getElementContent(e,FA.PAGE_ACTION),this._getCustomTags(e)))&&a.bhvr&&!IP(t.behavior))){var s=function(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}(a,"bhvr");o.behavior=this._getValidBehavior(s)}IP(t.actionType)&&(o.actionType=t.actionType),IP(t.clickCoordinateX)&&IP(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),o.contentVer="2.0";var l=this._config.callback.pageActionContentTags;o.content=AA(JSON.stringify(BP(t.content||a,"function"===typeof l?l(e):{},t&&t.contentTags?t.contentTags:{}))),i.timeToAction=this._getTimeToClick(),i.refUri=IP(t.refUri)?t.refUri:this._config.coreData.referrerUri;var c=qA(this._config,this._traceLogger);c&&(i.cookies=c),this.trackPageAction(o,i)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!GA(e))for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=Dw();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(oR),sR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackContentUpdate=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};fP(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){r.baseData[t]=e[t]})),Qw(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=IP(e)?e:{};var n={},r=IP(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),IP(e.actionType)&&(n.actionType=e.actionType);var o=MA(),i=NA();n.pageHeight=kP?document.body.scrollHeight:null,n.vpHeight=o.h,n.vpWidth=o.w,n.vScrollOffset=i.v,n.hScrollOffset=i.h,n.contentVer="2.0",n.isManual=!e.isAuto;var a=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());a&&(n.content=a),IP(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t.prototype._getContentFormatted=function(e){if(IP(e))return"[object Array]"===Object.prototype.toString.call(e)?JSON.stringify(e):AA(JSON.stringify(e))},t}(oR),lR=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,null,r,{},{},o)||this;return s._webAnalyticsPlugin=t,s._config=n,s._id=r,s._traceLogger=o,s._timestamp=i,s._maxScroll=a,s}return __extends(t,e),t.prototype.trackPageUnload=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:eP};r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,Qw(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=IP(e)?e:{};var n={},r=IP(t)?t:{},o=kP?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=MA().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,wP){var i=Dw(),a=i?i.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(r.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(n,r)},t}(oR),cR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=IP(e)?e:{};var n={},r=IP(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,r.behavior=this._getBehavior(e),r.vpHeight=e.vpHeight,r.vpWidth=e.vpWidth,r.framework=e.framework,r.systemTiming=e.systemTiming,r.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,r)},t}(oR),uR=function(){function e(){this.appUserId=null,this.firstPageView=!1,this.lastPageViewId=FP(),this.traceId=this.createTraceId()}return e.visitorId=function(){return MP("MUID")},e.prototype.createTraceId=function(){return FP().replace(/-/g,"")},e.prototype.getTraceId=function(){return this.traceId},e.prototype.getLastPageViewId=function(){return this.lastPageViewId},e.prototype.initializeIds=function(){this.firstPageView?(this.traceId=this.createTraceId(),this.lastPageViewId=FP()):this.firstPageView=!0},e.prototype.getMuidUserId=function(){var e=MP("MUID");return e&&e.length?"t:"+e:e},e.prototype.setAppUserId=function(t){if(this.appUserId=null,t){for(var n=0;n<e.userIdPrefixes.length;n++)if(e.userIdPrefixes[n]===t.substring(0,2)){this.appUserId=t;break}this.appUserId}},e.prototype.setDeviceClass=function(e){e&&(this.deviceClass=e)},e.prototype.getDeviceClass=function(){return this.deviceClass},e.prototype.getAppUserId=function(){return this.appUserId},e.prototype.syncMuid=function(e){var t=Tw();if(t){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=kw();if(r){var o=r.createElement("IMG");o.style.display="none",o.src=n,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}}},e.prototype.getMuidHost=function(e){return{"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"}[e]},e.userIdPrefixes=["c:","i:","w:"],e}(),dR=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var n=(new Date).getTime();if(t)return n-this._timers[e];this._timers[e]=n},e}(),pR=function(e){function t(){var n,r,o,i,a,s,l,c=e.call(this)||this;c.identifier="WebAnalyticsPlugin",c.version="3.0.2";var u,d,p,h={h:0,v:0},m=!1;return xI(t,c,(function(e,t){function f(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:kP?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];if(Qw(t,(function(e,t){Jw.isObject(t)&&n.push(e)})),e)return function(e,t){_A(e),fP(t,(function(t,n){Jw.isObject(e[t])?_A(e[t]):delete e[t]}))}(e,n),BP(!0,t,e)}function g(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}e._telemetryInitializers=e._telemetryInitializers||[],e.updateCoreDataConfig=function(e){l.coreData=BP(!0,l.coreData,e)},e.initialize=function(m,g,v){var y=g;m.extensionConfig=m.extensionConfig||[],m.extensionConfig[e.identifier]=m.extensionConfig[e.identifier]||{},e._config=l=f(m.extensionConfig[e.identifier]);var b=l.autoCapture,C=y.getWParam;if(y.getWParam=function(){var e=0;return l.mscomCookies&&(e|=1),e|C()},m.extensionConfig[e.identifier].disableExceptionTracking=!b.jsError,t.initialize(m,g,v),d=d||new eR(l,e.diagLog()),p=p||new nR(e,e.diagLog()),l.manageCv){for(var S=0;S<v.length;S++)if("CorrelationVectorPlugin"===v[S].identifier){l.manageCv=!0,s=v[S];break}s||(e.diagLog().throwInternal(Zw.WARNING,iP.CVPluginNotAvailable,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),l.manageCv=!1)}e.id=new uR,u=new dR;var x=d.getMetadata();n=new iR(c,l,d,e.id,l.callback.pageViewPageTags,x,e.diagLog()),r=new aR(c,l,d,e.id,l.callback.pageActionPageTags,x,e.diagLog()),o=new sR(c,l,d,e.id,l.callback.contentUpdatePageTags,x,e.diagLog()),i=new lR(c,l,e.id,e.diagLog(),u,h),a=new cR(c,l,d,e.id,l.callback.pageViewPageTags,x,e.diagLog()),l.syncMuid&&YA((function(){var t=e.id.getMuidHost(l.muidDomain);e.id.syncMuid(t)})),b.pageView&&p.pageView(),b.onLoad&&p.onLoad(),b.click&&p.click(),b.scroll&&p.scroll(l.debounceMs),b.resize&&p.resize(l.debounceMs),(b.onUnload||l.manualPageUnload)&&p.maxScroll(h),b.onUnload&&p.onUnload()},e.processTelemetry=function(t,n){zP(t,e.identifier);var r=t;"PageviewData"===r.baseType?(r.name="Ms.Web.PageView",r.latency=eP):"ExceptionData"===r.baseType?(r.name="Ms.Web.ClientError",r.latency=JI,delete r.baseData.aiDataContract):"PageviewPerformanceData"===r.baseType&&(r.name="Ms.Web.PageViewPerformance",r.latency=JI,delete r.baseData.isValid,delete r.baseData.durationMs);var o=null;"PageviewData"!==r.baseType?l.manageCv&&(o=s.getCv())&&o.increment():l.manageCv&&((o=s.getCv())?o.seed():o=s.getCv());for(var i=!1,a=e._telemetryInitializers.length,c=0;c<a;++c){var u=e._telemetryInitializers[c];if(u&&!1===u.apply(null,[r])){i=!0;break}}i||e.processNext(r,n)},e.addTelemetryInitializer=function(t){e._telemetryInitializers.push(t)},e.trackEvent=function(t,n){t.latency=t.latency||JI,t.baseData=t.baseData||{},t.data=t.data||{},IP(n)&&Qw(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,r){u._recordTimeSpan("dwellTime",!1),h.v=0,m=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,g(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,g(e))},e.capturePageViewPerformance=function(e,t){a.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||FP(),t.sendExceptionInternal(e,n,g(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){PA(e,"data-bi-dnt")||r.capturePageAction(e,t,n,o)},e.trackContentUpdate=function(e,t){o.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){o.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){m||(m=!0,i.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){m||(m=!0,i.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){e._pageViewPerformanceManager.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){d=e},e.setAutoCaptureHandler=function(e){p=e}})),c}return __extends(t,e),t.prototype.updateCoreDataConfig=function(e){},t.prototype.initialize=function(e,t,n){},t.prototype.processTelemetry=function(e,t){},t.prototype.addTelemetryInitializer=function(e){},t.prototype.trackEvent=function(e,t){},t.prototype.trackPageView=function(e,t){},t.prototype.capturePageView=function(e,t){},t.prototype.trackPageViewPerformance=function(e,t){},t.prototype.capturePageViewPerformance=function(e,t){},t.prototype.trackException=function(e,t){},t.prototype.trackPageAction=function(e,t){},t.prototype.capturePageAction=function(e,t,n,r){},t.prototype.trackContentUpdate=function(e,t){},t.prototype.captureContentUpdate=function(e,t){},t.prototype.trackPageUnload=function(e,t){},t.prototype.capturePageUnload=function(e,t){},t.prototype._populatePageViewPerformance=function(e){},t.prototype.setContentHandler=function(e){},t.prototype.setAutoCaptureHandler=function(e){},t}(SA),hR=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],mR=function(e){function t(){var t=e.call(this)||this;return t._postChannel=new LD,t._propertyManager=new uD,t._webAnalytics=new pR,t}return __extends(t,e),t.prototype.initialize=function(t,n){var r=this,o=this;TI(o,(function(){return"ApplicationInsights:initialize"}),(function(){var i=[o._propertyManager,o._webAnalytics];if(n&&(i=i.concat(n)),t.channels&&t.channels.length>0){for(var a=!1,s=0;s<t.channels[0].length;s++)if(t.channels[0][s].identifier===o._postChannel.identifier){a=!0;break}a||t.channels[0].push(o._postChannel)}else t.channels=[[o._postChannel]];var l=t.extensionConfig=t.extensionConfig||[];l[o._postChannel.identifier]=t?t.channelConfiguration:{},l[o._propertyManager.identifier]=t?t.propertyConfiguration:{},l[o._webAnalytics.identifier]=t?t.webAnalyticsConfiguration:{};try{e.prototype.initialize.call(r,t,i)}catch(c){o.logger.throwInternal(Zw.CRITICAL,iP.FailedToInitializeSDK,"Failed to initialize SDK."+c)}}),(function(){return{config:t,extensions:n}}))},t.prototype.getPropertyManager=function(){return this._propertyManager},t.prototype.getPostChannel=function(){return this._postChannel},t.prototype.getWebAnalyticsExtension=function(){return this._webAnalytics},t.prototype.addTelemetryInitializer=function(e){this._webAnalytics.addTelemetryInitializer(e)},t.prototype.trackEvent=function(e,t){this._webAnalytics.trackEvent(e,t)},t.prototype.trackPageView=function(e,t){this._webAnalytics.trackPageView(e,t)},t.prototype.trackPageAction=function(e,t){this._webAnalytics.trackPageAction(e,t)},t.prototype.trackContentUpdate=function(e,t){this._webAnalytics.trackContentUpdate(e,t)},t.prototype.trackPageUnload=function(e,t){this._webAnalytics.trackPageUnload(e,t)},t.prototype.trackException=function(e,t){this._webAnalytics.trackException(e,t)},t.prototype.trackPageViewPerformance=function(e,t){this._webAnalytics.trackPageViewPerformance(e,t)},t.prototype.capturePageView=function(e,t){this._webAnalytics.capturePageView(e,t)},t.prototype.capturePageViewPerformance=function(e,t){this._webAnalytics.capturePageViewPerformance(e,t)},t.prototype.capturePageAction=function(e,t,n,r){this._webAnalytics.capturePageAction(e,t,n,r)},t.prototype.captureContentUpdate=function(e,t){this._webAnalytics.captureContentUpdate(e,t)},t.prototype.capturePageUnload=function(e,t){this._webAnalytics.capturePageUnload(e,t)},t.prototype._onerror=function(e){this._webAnalytics._onerror(e)},t.prototype.emptySnippetQueue=function(e){var t=this;try{if(e&&(Jw.isNullOrUndefined(t._snippetVersion)||t._snippetVersion,Qw(t,(function(t,n){Jw.isString(t)&&!Jw.isFunction(n)&&t&&"_"!==t[0]&&-1===hR.indexOf(t)&&(e[t]=n)}))),xP(e.queue)){for(var n=e.queue.length,r=0;r<n;r++){(0,e.queue[r])()}e.queue=void 0,delete e.queue}}catch(o){o&&SP(o.toString)&&o.toString()}},t.prototype.updateSnippetDefinitions=function(e){this.snippet=e,this._snippetVersion=""+(e.sv||e.version||""),function(e,t,n){if(e&&t&&e!==t&&jw(e)&&jw(t)){var r=function(r){if(Jw.isString(r)){var o=t[r];qw(o)?n&&!n(r,!0,t,e)||(e[r]=(i=r,function(){var e=arguments;return t[i].apply(t,e)})):n&&!n(r,!1,t,e)||(Gw(e,r)&&delete e[r],Xw(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}var i};for(var o in t)r(o)}}(e,this,(function(e){return e&&-1===hR.indexOf(e)}))},t}(GP);!function(){try{var e,t=Sw();if(t&&"undefined"!==typeof JSON&&void 0!==t[e=t.onedsSDK||"oneDSWeb"]){var n=t[e],r=new mR;r.updateSnippetDefinitions(n),r.initialize(n.config,n.extensions),t[e]=r,r.emptySnippetQueue(n)}}catch(SR){console&&console.warn("Failed to initialize AppInsights JS SDK for instance "+e+SR.message)}}();var fR=function(){},gR=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new fR,this._cv2Constants=new fR,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=t?t.logger:new kI,this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var i=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=i)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(this.isValid(e)){var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0}return this._traceLogger.throwInternal(Zw.WARNING,iP.InvalidCorrelationValue,"Cannot set invalid correlation vector value"),!1},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}(),vR=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.0.2",n._cvInitialValue=t,n._cv=n._cvInitialValue?new gR(n._cvInitialValue):new gR,n}return __extends(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){zP(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV||this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||this.diagLog().throwInternal(Zw.WARNING,iP.FailedToInitializeCorrelationVector,"Correlation Vector has not been initialized."),this._cv},t}(BI),yR=function(){function e(){}return e.prototype.getApplicationInsights=function(){return new mR},e.prototype.getCorrelationVectorPlugin=function(e){return new vR(e)},e}(),bR={textFieldStyles:{"font-family":'"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif',"-webkit-font-smoothing":"antialiased","font-size":"14px","font-weight":"400","box-shadow":"none",margin:"0px",padding:"0px 8px","box-sizing":"border-box","border-radius":"0px",border:"none",background:"none transparent",color:"rgb(50, 49, 48)",width:"100%","min-width":"0px","text-overflow":"ellipsis",outline:"0px"},fieldGroupNormalStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(96, 94, 92)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(0, 120, 212)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},secureIframeDimensions:{width:"100%",height:"32px"}},CR=function(){this.canCreate=function(e,t,n){return e===s.ElementType.dropdown?u(u({},n),{inlineError:!0,customDropdownOptions:!1,label:!0}):e===s.ElementType.textBox?u(u({},n),{inlineError:!0,customDropdownOptions:!1,label:!0,inlineHelpLink:!0}):e===s.ElementType.buttonGroup?{inlineError:!1,customDropdownOptions:!1,label:!1,inlineHelpLink:!1}:e===s.ElementType.secureProperty?{inlineError:!1,securePropertyHardCodedStyles:bR,inlineHelpLink:!1}:e===s.ElementType.button||e===s.ElementType.checkbox||e===s.ElementType.error||e===s.ElementType.group||e===s.ElementType.heading||e===s.ElementType.helpDialog||e===s.ElementType.hyperlink||e===s.ElementType.label||e===s.ElementType.securePropertyLabel||e===s.ElementType.radio||e===s.ElementType.subheading||e===s.ElementType.text||e===s.ElementType.image||e===s.ElementType.separator||e===s.ElementType.captcha||e===s.ElementType.filePicker?u(u({},n),{inlineError:!1}):null},this.create=function(e,t){switch(YS(),e){case s.ElementType.button:return i.createElement(Fk,u({},t));case s.ElementType.buttonGroup:return i.createElement(Bk,u({},t));case s.ElementType.checkbox:return i.createElement(Ok,u({},t));case s.ElementType.dropdown:return i.createElement(Vk,u({},t));case s.ElementType.error:return i.createElement(zk,u({},t));case s.ElementType.group:return i.createElement(Gk,u({},t));case s.ElementType.heading:return i.createElement($k,u({},t,{variant:"xLarge"}));case s.ElementType.helpDialog:return i.createElement(Lk,u({},t));case s.ElementType.hyperlink:return i.createElement(jk,u({},t));case s.ElementType.label:return i.createElement(qk,u({},t));case s.ElementType.securePropertyLabel:return i.createElement(iw,u({},t));case s.ElementType.radio:return i.createElement(Qk,u({},t));case s.ElementType.subheading:return i.createElement($k,u({},t,{variant:"large"}));case s.ElementType.text:return i.createElement($k,u({},t));case s.ElementType.textBox:return i.createElement(ew,u({},t));case s.ElementType.modal:return i.createElement(Kk,u({},t));case s.ElementType.panel:return i.createElement(Yk,u({},t));case s.ElementType.spinner:return i.createElement(Zk,u({},t));case s.ElementType.overlay:return i.createElement(Xk,u({},t));case s.ElementType.image:return i.createElement(tw,u({},t));case s.ElementType.separator:return i.createElement(nw,u({},t));case s.ElementType.captcha:return i.createElement(rw,u({},t));case s.ElementType.filePicker:return i.createElement(ow,u({},t));default:return null}},this.getOneDSService=function(){return new yR}};t.CG=CR},93174:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}var o=n(87363),i=r(o),a=n(61533),s=r(a),l=(r(n(35644)),r(n(65667))),c=function(e,t){return c=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])},c(e,t)};function u(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}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function h(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}Object.create;function m(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var f="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var g,v=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){function n(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=n(i),o=n(l),a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof f?f:"undefined"!==typeof self?self:{};var s,c=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=m(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function C(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];x.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:S(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new x(t,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=p,e.Request=b,e.Response=x),t.Headers=p,t.Request=b,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!==typeof self?self:a)})),u=((s=c)&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")&&s.default,function(e,t){return u=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])},u(e,t)});function d(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}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)};function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function m(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function v(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N,M,F,B,O,L,H,V,z,U,W,G,j,q,K,Y,Q,Z,J,$,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,he,me,fe,ge,ve,ye,be,Ce,Se,xe,_e,Ee,ke,we,Ie,Pe,Te,De,Ae,Re,Ne,Me,Fe,Be,Oe,Le,He,Ve,ze,Ue,We,Ge,je;!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(y||(y={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(b||(b={})),function(e){e.message="message"}(C||(C={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(S||(S={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(x||(x={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(_||(_={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio"}(E||(E={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(k||(k={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-"}(w||(w={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(I||(I={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(P||(P={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(T||(T={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(D||(D={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(A||(A={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(R||(R={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(N||(N={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.searchTransactions="searchTransactions"}(M||(M={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(F||(F={})),function(e){e.submit="submit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex"}(B||(B={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(O||(O={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.implementationMissing="implementationMissing",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled"}(L||(L={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered"}(H||(H={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2"}(V||(V={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(z||(z={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount"}(U||(U={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(W||(W={})),function(e){e.property="property",e.group="group"}(G||(G={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(j||(j={})),function(e){e.empty="required_field_empty"}(q||(q={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(K||(K={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}(Y||(Y={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test"}(Q||(Q={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(Z||(Z={})),function(e){e.operation="operation"}(J||(J={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}($||($={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(ee||(ee={})),function(e){e.alt="alt",e.tabIndex="tabindex"}(te||(te={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(ne||(ne={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(re||(re={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(oe||(oe={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(ie||(ie={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(ae||(ae={})),function(e){e.market="country"}(se||(se={})),function(e){e.country="market"}(le||(le={})),function(e){e.windows="windows"}(ce||(ce={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(ue||(ue={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(de||(de={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(pe||(pe={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(he||(he={})),function(e){e.empty="[]"}(me||(me={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(fe||(fe={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildIFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.searchTransactions="searchTransactions",e.offerResource="offerResource"}(ge||(ge={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(ve||(ve={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(ye||(ye={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(be||(be={})),function(e){e.userData="userData"}(Ce||(Ce={})),function(e){e.captchaType="captchaType"}(Se||(Se={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(xe||(xe={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint"}(_e||(_e={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(Ee||(Ee={})),function(e){e.allowedCountries="allowedCountries"}(ke||(ke={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(we||(we={})),function(e){e.primary="primary",e.secondary="secondary"}(Ie||(Ie={})),function(e){e.ignore="ignore",e.throw="throw"}(Pe||(Pe={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(Te||(Te={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(De||(De={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(Ae||(Ae={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(Re||(Re={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(Ne||(Ne={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(Me||(Me={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(Fe||(Fe={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(Be||(Be={})),function(e){e[e.Default=3e3]="Default"}(Oe||(Oe={})),function(e){e.link="]("}(Le||(Le={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(He||(He={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(Ve||(Ve={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(ze||(ze={})),function(e){e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(Ue||(Ue={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(We||(We={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(Ge||(Ge={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(je||(je={}));var qe=Object.freeze({__proto__:null,get requestOriginator(){return y},get pidlTransformationTargets(){return b},get eventTypes(){return C},get displayTransformationTargets(){return S},get pidlResultType(){return x},get pidlResourceTypes(){return _},get htmlClassNames(){return E},get htmlClassPrefixes(){return k},get htmlElementIdPrefixes(){return w},get htmlElementIdSuffixes(){return I},get errorCode(){return P},get returnCallbackNames(){return T},get modelElementType(){return D},get textBlockTypes(){return A},get htmlBlockTypes(){return R},get htmlInputTypes(){return N},get telemetryPidlOperationType(){return M},get showDisplayNameValues(){return F},get supportedPidlActions(){return B},get resourceActions(){return O},get eventNames(){return L},get privateEventNames(){return H},get displayOptionNames(){return V},get errorNames(){return z},get errorTypes(){return U},get serverErrorTypes(){return W},get validationErrorTypes(){return G},get validationOptions(){return j},get validationErrorCodes(){return q},get htmlElementTypes(){return K},get containerTypes(){return Y},get httpHeaders(){return Q},get flightHeaders(){return Z},get httpUrlQueryParameters(){return J},get htmlAttributes(){return $},get pidlPayloadAttributes(){return ee},get htmlTags(){return te},get htmlNodeTypes(){return ne},get htmlRoles(){return re},get ariaTags(){return oe},get ariaLiveInterruptLevels(){return ie},get dataAttributes(){return ae},get sdkParamUrlQueryParamMap(){return se},get pidlPropertyNameToPidlDocInfoProperty(){return le},get themes(){return ce},get pidlStringKeys(){return ue},get controlStates(){return de},get propertyEditState(){return pe},get controlOperationTypes(){return he},get errorValue(){return me},get viewUpdateReasons(){return fe},get pidlDdcApiNames(){return ge},get keyCodes(){return ve},get dataTypes(){return ye},get clientDataTypes(){return be},get propertyTypes(){return Ce},get captchaPropertyName(){return Se},get httpActions(){return xe},get knownTags(){return _e},get knownTagPrefixes(){return Ee},get knownQueryParameters(){return ke},get helpDialogPrefixedTags(){return we},get scenarioContextResourceType(){return Ie},get scenarioContextTerminatingErrorHandling(){return Pe},get hmac(){return Te},get delimiters(){return De},get dataStores(){return Ae},get challengeScenario(){return Re},get riskChallengeIndicator(){return Ne},get challengeWindowSize(){return Me},get challengeStatus(){return Fe},get challengeType(){return Be},get pollingInterval(){return Oe},get TextSymbols(){return Le},get displayHelpPosition(){return He},get SecureFieldEvent(){return Ve},get SecureFieldMessages(){return ze},get SecureFieldConstants(){return Ue},get CustomTriggerEventConstants(){return We},get FrequencyUnitConstants(){return Ge},get PaymentMethodPIIDs(){return je}}),Ke=Object.prototype.hasOwnProperty,Ye=Object.prototype.toString,Xe=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ze=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Ye.call(e)},Je=function(e){if(!e||"[object Object]"!==Ye.call(e))return!1;var t,n=Ke.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ke.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return"undefined"===typeof t||Ke.call(e,t)},$e=function(e,t){Xe&&"__proto__"===t.name?Xe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},et=function(e,t){if("__proto__"===t){if(!Ke.call(e,t))return;if(Qe)return Qe(e,t).value}return e[t]},tt=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"===typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!==typeof s&&"function"!==typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=et(s,n),s!==(o=et(t,n))&&(u&&o&&(Je(o)||(i=Ze(o)))?(i?(i=!1,a=r&&Ze(r)?r:[]):a=r&&Je(r)?r:{},$e(s,{name:n,newValue:e(u,a,o)})):"undefined"!==typeof o&&$e(s,{name:n,newValue:o}));return s},nt=function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},tokenizationEdge:{description:"Tokenization Service on Payments Edge",endpoint:"tokenizationedge-endpoint",name:"tokenizationedge",operation:"Tokenize User Input on Edge"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"}},this.updateEndpoints=function(t){var n={};e.currentEnv=t,"int"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.staticResources="staticresources.payments.microsoft-int.com",n.pifdBackend="pifd.cp.microsoft-int.com/v6.0",n.pifd="pifd.cp.microsoft-int.com/v6.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationint/tokens",n.transformation="pifd.cp.microsoft-int.com/v6.0",n.validation="pifd.cp.microsoft-int.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft-int.com",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"):"aircapi"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.staticResources="staticresources.payments.microsoft-int.com",n.pifdBackend="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.pifd="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationint/tokens",n.transformation="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.validation="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="localhost:44326",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"):"ppe"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdppe/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationppe/tokens",n.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",n.validation="paymentinstruments-int.mp.microsoft.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice-ppe.cp.microsoft.com",n.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net"):"prod"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="paymentinstruments.mp.microsoft.com/v6.0",n.pifdEdge="edge.payments.microsoft.com/pifd/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft.com/tokenization/tokens",n.transformation="paymentinstruments.mp.microsoft.com/v6.0",n.validation="paymentinstruments.mp.microsoft.com/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft.com",n.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net"):"feature"===t&&(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.pifdEdge="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft.com/tokenization/tokens",n.transformation="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.validation="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=n.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=n.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=n.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=n.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=n.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=n.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=n.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=n.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=n.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=n.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=n.tokenization,e.serviceEndpoints[e.virtualEndpoints.tokenizationEdge.endpoint]=n.tokenizationEdge,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=n.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=n.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=n.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=n.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=n.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=n.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=n.payeeTaxProfile},this.addGenericParameters=function(e,t,n){if(t&&t.parameters)for(var r in t.parameters){var o=se[r];!t.parameters[r]||e[r]||e[o]||(e[r]=t.parameters[r])}return n&&(e.operationType=n),e},this.getGenericResourceParams=function(t,n,r){return e.addGenericParameters({},t,r)},this.getResourceEndpointParams=function(t,n,r,o){var i=e.addGenericParameters({},n,o);return i.resourceName=t,i},this.getOrderResourceEndpointParams=function(t,n,r){return e.getResourceEndpointParams("order",t,n,r)},this.getPaymentResourceParams=function(t,n,r){var o=(n=n||{}).paymentMethod||{};return e.addGenericParameters({family:o.paymentMethodFamily,type:o.paymentMethodType,country:((n.details||{}).address||{}).country},t,r)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var n="https://",r="edge.payments.microsoft.com",o="edge.payments.signup.azure.com",i=n+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],a=n+e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint],s=n+e.serviceEndpoints[e.virtualEndpoints.tokenizationEdge.endpoint],l=n+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],c=((window||{}).location||{}).hostname||"";c&&c.indexOf("signup.azure.com")>-1&&(l=l.replace(r,o),s=s.replace(r,o)),rn.startsWithIgnoreCase(t,i)?t=t.replace(i,l):rn.startsWithIgnoreCase(t,l)?t=t.replace(l,i):rn.startsWithIgnoreCase(t,a)?t=t.replace(a,s):rn.startsWithIgnoreCase(t,s)&&(t=t.replace(s,a))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.updateEndpoints("prod")},rt=new nt;function ot(e,t){return e.debugMessage?rn.format(e.debugMessage,t):""}var it,at,st,lt,ct,ut,dt,pt,ht,mt,ft,gt,vt=function(e,t,n,r){this.message=n||"",this.name=t.name,this.code=t.code,this.type=e},yt=function(e){function t(t,n,r){var o=e.call(this,U.inputValidation,t,null,r)||this;return o.parameterName=n,o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),bt=function(e){function t(t,n,r){var o=e.call(this,U.inputValidation,t,null,r)||this;return o.apiName=n,o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),Ct=function(e){function t(t,n,r,o){var i=e.call(this,U.userInputValidation,t,n,o)||this;return i.propertyName=r,i.errorCode=n,i.validationErrorType=G.property,i.debugMessage=ot(t,o),i}return d(t,e),t}(vt),St=function(e){function t(t,n,r,o){var i=e.call(this,U.userInputValidation,t,n,o)||this;return i.groupDisplayId=r,i.errorCode=n,i.validationErrorType=G.group,i.debugMessage=ot(t,o),i}return d(t,e),t}(vt),xt=function(e){function t(t,n,r,o){var i=e.call(this,U.formValidation,t,n,o)||this;return i.errors=r,i.debugMessage=ot(t,o),i}return d(t,e),t}(vt),_t=function(e){function t(t,n,r){var o=e.call(this,U.unexpected,t,r,n)||this;return o.debugMessage=ot(t,n),o}return d(t,e),t}(vt),Et=function(e){function t(t,n,r,o,i,a,s,l,c,u){var d=e.call(this,U.serverError,t,null,s)||this;return d.innererror=r,d.status=o,d.url=n,d.statusText=i,d.responseText=a,d.httpMethod=l,d.retryAttempt=c,d.retryable=u,d.debugMessage=ot(t,s),d}return d(t,e),t}(vt),kt=function(e){function t(t,n,r){var o=e.call(this,U.invalidSetup,t,n,r)||this;return o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),wt=function(e){function t(t,n,r){var o=e.call(this,U.paymentMethodFailure,t,n,r)||this;return o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),It=function(e){function t(t,n,r){var o=e.call(this,U.failedToOpenWindow,t,n,r)||this;return o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),Pt=function(e){function t(t,n,r){var o=e.call(this,U.unmatchedAmount,t,n,r)||this;return o.debugMessage=ot(t,r),o}return d(t,e),t}(vt),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(vt),Dt=new(function(){function e(){this.inputParameterValidationFailedError=yt,this.apiValidationError=bt,this.propertyValidationFailedError=Ct,this.groupValidationFailedError=St,this.formValidationFailedError=xt,this.unexpectedError=_t,this.serverError=Et,this.invalidSetupError=kt,this.paymentMethodFailureError=wt,this.failedToOpenWindowError=It,this.unmatchedAmountError=Pt,this.testHookErrorBase=Tt}return e.prototype.isUnexpectedError=function(e){return rn.isObject(e)&&e.type===U.unexpected},e.prototype.isServerError=function(e){return rn.isObject(e)&&e.type===U.serverError},e}()),At={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."}};function Rt(e){return!rn.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function Nt(e){return!rn.isNullOrUndefined(e)&&"displayType"in e}function Mt(e){return Nt(e)&&(e.displayType===dt.group||e.displayType===dt.dataCollectionBindingGroup||e.displayType===dt.page||e.displayType===dt.textGroup)}function Ft(e){if(Nt(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===dt.file}return!1}function Bt(e){return Nt(e)&&e.displayType===dt.logo}function Ot(e){return Nt(e)&&(e.displayType===dt.property||e.displayType===dt.prefillControl)}function Lt(e){return!rn.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function Ht(e){return!rn.isNullOrUndefined(e)&&rn.isArray(e)&&e.length&&Lt(e[0])}function Vt(e){return!rn.isNullOrUndefined(e)&&"paymentInstruments"in e&&"pidlInfo"in e}function zt(e){return!rn.isNullOrUndefined(e)&&"clientAction"in e}function Ut(e){return Nt(e)&&e.displayType===dt.pidlContainer}function Wt(e){return!rn.isNullOrUndefined(e)&&rn.isString(e.type)&&(e.type===lt.Pidl||e.type===lt.Wait||e.type===lt.Redirect||e.type===lt.ReturnContext||e.type===lt.ExecuteScriptAndResume||e.type===lt.None||e.type===lt.GoHome||e.type===lt.Failure||e.type===lt.MergeData||e.type===lt.RestAction)}function Gt(e){return!rn.isNullOrUndefined(e)&&!rn.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.provisionWalletToken="provisionWalletToken",e.offer="Offer"}(it||(it={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(at||(at={})),function(e){e.regex="regex",e.service="service"}(st||(st={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction"}(lt||(lt={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(ct||(ct={})),function(e){e.regex="regex"}(ut||(ut={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(dt||(dt={})),function(e){e.inline="inline",e.vertical="vertical"}(pt||(pt={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(ht||(ht={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(mt||(mt={})),function(e){e.always="always",e.focusout="focusout"}(ft||(ft={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(gt||(gt={}));var jt=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return it},get validationModesValues(){return at},get transformationModesValues(){return st},isDataDescription:Rt,get clientActionTypeValues(){return lt},get paymentInstrumentStatusValues(){return ct},get displayTransformationTypesValues(){return ut},get pidlDisplayTypesValues(){return dt},isDisplayDescription:Nt,get groupLayoutOrientationTypesValues(){return pt},isContainerDisplayDescription:Mt,isFilePickerDisplayDescription:Ft,isGroupDisplayDescription:function(e){return Nt(e)&&(e.displayType===dt.group||e.displayType===dt.dataCollectionBindingGroup)},isCaptchaDisplayDescription:function(e){return Nt(e)&&e.displayType===dt.captcha},isDataCollectionBindingGroupDisplayDescription:function(e){return Nt(e)&&e.displayType===dt.dataCollectionBindingGroup},isPageDisplayDescription:function(e){return Nt(e)&&e.displayType===dt.page},isContentDisplayDescription:function(e){return Nt(e)&&(e.displayType===dt.button||e.displayType===dt.expression||e.displayType===dt.heading||e.displayType===dt.hyperlink||e.displayType===dt.subheading||e.displayType===dt.text||e.displayType===dt.iFrame)},isLogoDisplayDescription:Bt,get pidlSubmitOrdersValues(){return ht},get pidlSelectTypeValues(){return mt},get resolutionPolicyValues(){return ft},isPropertyDisplayDescription:Ot,get serverErrorRetryPolicyValues(){return gt},isPidlDocument:Lt,isPidlDocumentArray:Ht,isPidlPayload:Vt,isPidlDocumentWithClientAction:zt,isPidlContainerDisplayDescription:Ut,isClientAction:Wt,isInvokeResourceActionApiParams:Gt}),qt=function(){var e=this;this.getResolvedPidls=function(t,n){var r=[];return t.forEach((function(t){var o=!1;for(var i in n){var a=Xt.getPropertyFromDataDescription(t.data_description,i),s=n[i];if(s&&s.getValue&&!(o=e.resolveKeyProperty(a,s.getValue(a))))break}o&&r.push(t)})),r},this.getPidlContainersInSubmitOrder=function(t,n){t.forEach((function(t){if(Ut(t)){var r=t.submitOrder;r===ht.beforeBase?n.beforeBase.push(t):r===ht.afterBase?n.afterBase.push(t):n.withBase.push(t)}else Mt(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,n)}))},this.resolveInfoDescriptionId=function(t,n){return e.getResolvedPidls(t,n).map((function(e){return e.identity}))},this.getFirstPidlWithValidDefaultKey=function(t,n){return e.getResolvedPidls(t,n)[0]},this.getPidlSubmitOrder=function(t){var n={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,n),n},this.resolveKeyProperty=function(e,t){var n=(e||{validation:null}).validation;return!(rn.isUndefined(t)||!n)&&new RegExp(n.resolutionRegex||n.regex).test(t)}},Kt=new qt,Yt=function(){var e=this;this.getPropertyDescriptorsHelper=function(t,n,r){var o=[];for(var i in t){var a=t[i];if(a instanceof Array)for(var s=0;s<a.length;s++)o=o.concat(e.getPropertyDescriptorsHelper(a[s].data_description,n,r));else a.hasOwnProperty(n)&&a[n]===r&&o.push({propertyName:i,propertyDescriptor:a})}return o},this.getPropertyValueFromInputDataHelper=function(t,n){var r;for(var o in t){if(o===n){r=t[o];break}if(rn.isObject(t[o])&&void 0!==(r=e.getPropertyValueFromInputDataHelper(t[o],n)))break}return r},this.getPropertyFromDataDescriptionHelper=function(t,n,r){var o;if(void 0===r&&(r=!1),n)for(var i in t){var a=t[i];if(a instanceof Array){if(r&&i===n&&a[0])return a[0].data_description;if(a.some((function(t){return void 0!==(o=e.getPropertyFromDataDescriptionHelper(t.data_description,n,r))})),void 0!==o)break}else if(e.propertyMatchesDataDescriptionInternal(a,i,n)){o=a;break}}return o},this.getFirstResolvedPidlDocument=function(t,n){var r=null;return t.some((function(t){if(e.getKeyPropertyDescriptors(t.data_description).every((function(t){return Kt.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(n,t.propertyName))})))return r=t,!0})),r},this.propertyMatchesDataDescriptionInternal=function(e,t,n){return n&&(t===n||e&&e.display_property===n)},this.getPropertyNamesFromDataDescription=function(t,n,r){return e.getPropertyDescriptorsHelper(t,n,r)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,n){return e.getPropertyValueFromInputDataHelper(t,n)},this.getPropertyFromDataDescription=function(t,n){var r=e.getPropertyFromDataDescriptionHelper(t,n);return Rt(r)?r:void 0},this.getPropertiesFromDataDescription=function(t,n){return e.getPropertyFromDataDescriptionHelper(t,n,!0)},this.propertyMatchesDataDescription=function(t,n,r){return e.propertyMatchesDataDescriptionInternal(t,n,r)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}},Xt=new Yt,Qt=function(){var e=this;this.setService=function(t,n){e.services[t]=n},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}},Zt=new Qt,Jt=function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,n){if(t&&(t.pidlAction&&n.push(t.pidlAction),Mt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getDisplayDescriptionPidlActions(t.members[r],n)},this.getLogoDescriptions=function(t,n){if(t&&n&&(Bt(t)&&n.push(t),Mt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getLogoDescriptions(t.members[r],n)},this.getPidlIdentityForProperty=function(t,n){var r;if(n)if(t instanceof Array){for(var o=0;o<t.length;o++)if(r=e.getPidlIdentityForProperty(t[o],n))return r}else if(t.data_description)for(var i in t.data_description){var a=t.data_description[i];if(a instanceof Array){if(r=e.getPidlIdentityForProperty(a,n))return r}else if(Xt.propertyMatchesDataDescription(a,i,n))return t.identity}},this.createIdentityHash=function(e){var t="";for(var n in e)rn.isString(e[n])&&(t+=n+"_"+e[n]);return t},this.resolvePidlDocs=function(e,t){if(e instanceof Array){var n=[];if(t)for(var r=Zt.getCommerceService(),o=0;o<e.length;o++)for(var i=0;i<t.length;i++)if(r.areIdentitiesEqual(e[o].identity,t[i])){n.push(e[o]);break}return n}return[e]},this.getDisplayDescriptionsPidlActions=function(t){var n=[];if(e.getDisplayDescriptionPidlActions(t,n),Ot(t)){var r=t.possibleOptions;if(r)for(var o in r){var i=r[o].pidlAction;i&&(n=v(v([],n,!0),[i],!1))}}return n},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var n=[];return t.displayDescription.forEach((function(t){e.getDisplayDescriptionPidlActions(t,n)})),rn.find(n,(function(e){return e.type===B.submit}))}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||Ie.primary)===Ie.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===Pe.ignore},this.matchPidlIdsToPidls=function(e,t,n){for(var r=t&&n&&t.length===n.length,o=0;r&&o<t.length;o++){for(var i=!1,a=0;a<n.length;a++){var s=n[a]?n[a].identity:null;i=i||e.areIdentitiesEqual(t[o],s)}r=r&&i}return r},this.translateErrorTargetsToDisplayProperties=function(e,t){var n=[];return e.forEach((function(e){var r=Xt.getPropertyFromDataDescription(t.data_description,e);n.push(r&&r.display_property||e)})),n},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&rn.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var n={},r=function(e){return function(n){return t(e,n)}},o=0,i=e.length;o<i;o++)for(var a=Xt.getKeyPropertyDescriptors(e[o].data_description),s=0,l=a.length;s<l;s++){var c=a[s].propertyName,u=a[s].propertyDescriptor;n[c]={propertyDescriptor:u,getValue:r(c)}}return n},this.getPropertyValueGetter=function(e,t,n){return function(r,o){var i=e===r?t:n(r);return rn.toString(i)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&rn.toString(t.default_value)}},this.getDataSourceLinks=function(e){var t=[];if(e&&(rn.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var n=0;n<e.linkedPidls.length;n++)rn.isNullOrEmptyObject(e.linkedPidls[n].dataSources)||t.push(e.linkedPidls[n].dataSources);return t}},$t=new Jt,en=function(){function e(){var e=this;this.extend=tt,this.getSelectElementType=function(e){switch(e){case mt.radio:return D.radio;case mt.buttonList:return D.buttonList;default:return D.dropdown}},this.getErrorDetailsFromPidl=function(t,n){if(t&&n){var r=n[t];if(r&&r.Target)return e.extend(!0,r,{code:t,target:r.Target,message:r.ErrorMessage})}},this.processServerError=function(t,n,r){var o=[];if(t&&n&&n.length)for(var i=0;i<n.length;i++){var a=e.getFormatStringExpressionValue(n[i],{contextData:t}),s=e.getErrorDetailsFromPidl(a,r);if(s){o.push(s);break}}return o},this.processPimsPxError=function(t,n){var r=[];if(t)if(t.details&&t.details.length)for(var o=0;o<t.details.length;o++){var i=t.details[o];i&&r.push(i)}else{var a=e.getErrorDetailsFromPidl(t.code,n);a&&r.push(a)}return r},this.updatePidlDocUrlParamHelper=function(e,t,n){if(e&&e.parameters){if(e.parameters[t])return e.parameters[t]!==n&&(e.parameters[t]=n,!0);var r=le[t];return r&&e.parameters[r]?e.parameters[r]!==n&&(e.parameters[r]=n,!0):(e.parameters[t]=n,!0)}return!1},this.s4=function(){return Math.floor(65536*(Math.random()+1)).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(n){t.value=n.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){var t=!1;rn.isString(e)?t="true"===e.toLowerCase():t=e;return t},this.getStringValue=function(e){for(var t="",n=0;n<e.length;++n)t+=e[n],t+=" ";return t.trim()},this.getModelElementType=function(t,n){var r={};switch(n.displayType){case dt.page:r.type=D.page;break;case dt.group:r.type=D.group;break;case dt.captcha:r.type=D.captcha;break;case dt.audio:r.type=D.audio;break;case dt.textGroup:r.type=D.textGroup;break;case dt.heading:r.type=D.heading;break;case dt.subheading:r.type=D.subheading;break;case dt.text:r.type=D.text;break;case dt.hyperlink:r.type=D.hyperlink;break;case dt.image:r.type=D.image;break;case dt.logo:r.type=D.logo;break;case dt.prefillControl:n.selectType===mt.checkBox?r.type=D.checkBox:n.selectType===mt.dropDown?r.type=D.dropdown:r.type=D.unknown;break;case dt.property:t?Ot(n)&&n.possibleOptions?r.type=e.getSelectElementType(n.selectType):"bool"===t.type?r.type=D.checkBox:Ft(n)?r.type=D.filePicker:r.type=D.textBox:r.error=new Dt.unexpectedError(At.displayElementPointingToMissingDataProperty,[n.displayId,n.propertyName]);break;case dt.button:r.type=D.button;break;case dt.expression:r.type=D.expression;break;case dt.pidlContainer:r.type=D.pidlContainer;break;case dt.dataCollectionBindingGroup:r.type=D.dataCollectionBindingGroup;break;case dt.iFrame:r.type=D.iFrame;break;case dt.secureProperty:r.type=D.secureProperty;break;case dt.separator:r.type=D.separator;break;case dt.spinner:r.type=D.spinner;break;default:r.type=D.unknown}return r},this.getPidlOperationType=function(e){switch(e){case O.addAddress:case O.addPaymentInstrument:case O.addResource:case O.handleChallenge:return it.add;case O.collectResourceInfo:return it.renderPidlPage;case O.selectPaymentInstrument:case O.selectResource:return it.selectInstance;case O.selectResourceType:return it.select;case O.selectSingleResource:return it.selectSingleInstance;case O.updateProfile:case O.updateResource:return it.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var n in e)rn.isNullOrUndefined(e[n])||(t||(t={}),t[n]=e[n]);return t},this.updatePidlDocUrlParams=function(t,n){var r=!1;for(var o in n){var i=$t.getKeyPropertyPidlDownloadUrlParam(n[o].propertyDescriptor,o),a=n[o].getValue(n[o].propertyDescriptor);if(i){var s=e.updatePidlDocUrlParamHelper(t,i,a);r=r||s}}return r},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n],o=!0;if(r.target||(o=!1),o&&t&&r.code){t[r.code]||(t[r.code]={retryCount:0});var i=r.retryPolicy;i&&i.type===gt.limitedRetry&&i.context&&!rn.isUndefined(i.context.maxRetryCount)&&r.retryPolicy.context.maxRetryCount<=t[r.code].retryCount&&(o=!1)}o?t&&r.code&&t[r.code].retryCount++:(rn.removeFromArray(e,n,1),n--)}return e},this.createParseErrorResponse=function(t,n,r,o,i){var a=[],s=void 0,l=void 0,c=void 0;if(o){var u=e.parseJSON(o.failureContent),d=u.succeeded?u.value:o.failureObject;if(c=o.failureContent,d){l=d;var p=d.innererror||d;switch(ln.getErrorSourceFromUrl(t)){case rt.virtualEndpoints.pifdProfile.endpoint:case rt.virtualEndpoints.pifdAddress.endpoint:n=n||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case rt.virtualEndpoints.jarvisAddress.endpoint:n=n||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(a=n?e.processServerError(d,n,r):e.processPimsPxError(p,r),a=e.getRetryableTargettedErrors(a,i),p&&p.clientAction&&(s=p.clientAction),!c)try{c=JSON.stringify(d)}catch(X){}}}else o=o||{status:x.Error};return{jsonResponse:l,clientAction:s,status:o.httpStatus,statusText:o.httpStatusText,responseText:c,errorMessage:o.errorMessage,targettedInnerErrors:a}},this.convertCustomErrorsInSdkErrors=function(t,n){for(var r=[],o=0;o<t.length;o++){var i=t[o],a=null;if(i.message?a={message:i.message,target:i.target,code:i.code}:i.code&&(a=e.getErrorDetailsFromPidl(i.code,n)),!a)return null;r.push(a)}return r},this.parseCustomSubmitError=function(t,n,r,o,i,a){return t||n&&0!==n.length?n&&0!==n.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(n,i)}:e.createParseErrorResponse(r,o,i,{status:x.Error,failureContent:t},a):{clientAction:{type:lt.None}}},this.parseServerError=function(t,n,r,o,i){return e.createParseErrorResponse(t,n,r,o,i)},this.createServerError=function(t,n,r,o,i){var a=e.parseServerError(n,null,i,r);return new Dt.serverError(t,n,a.jsonResponse,r.httpStatus,r.httpStatusText,r.failureContent,o)},this.createServerErrorFromIPxServiceError=function(e,t){var n=JSON.stringify(t);return new Dt.serverError(e,null,t,null,null,n,[])},this.createPropertyErrors=function(e,t,n,r,o){if(t){var i=new Dt.groupValidationFailedError(At.propertyValidationFailed,r.code,t,[t,r.code]);i.message=r.message,o.push(i),n=null}for(var a=0;a<e.length;a++){var s=e[a],l=new Dt.propertyValidationFailedError(At.propertyValidationFailed,r.code,s,[s,r.code]);l.message=s===n?r.message:"",o.push(l)}},this.createResponseHeadersDictionary=function(e){var t;e&&(t=e.split("\r\n").reduce((function(e,t,n){var r=t.split(": ");return r[0]&&r[1]&&(e[rn.toLowerCase(r[0])]=rn.toLowerCase(r[1])),e}),{}));return t},this.isTagPrefixKnown=function(e){for(var t in Ee)if(rn.startsWith(e,Ee[t]))return!0;return!1},this.getFormatStringExpressionValue=function(t,n,r){if(n&&rn.isFormatStringExpressionPlaceholder(t)){for(var o=t.substring(1,t.length-1),i=rn.getProperties(o,"<|","|>"),a=0;a<i.length;a++){var s=i[a],l=s.split("|"),c=l[0],u=l[1],d=void 0;if(u){var p=u.split(";");d=[];for(var h=0;h<p.length;h++)d[h]=e.getPropertyExpressionValue(p[h],n)}var m=e.getFunctionExecutionResult({functionName:c,arguments:d},n);m=rn.isNullOrUndefined(m)?"":m,o=o.replace("<|"+s+"|>",m)}var f=rn.getProperties(o,"{","}");for(a=0;a<f.length;a++){var g="{"+f[a]+"}",v=e.getPropertyExpressionValue(g,n)||"";r&&(v=r(v)),o=o.replace(g,v)}return o}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&rn.isFormatStringExpressionPlaceholder(e))for(var n=e.substring(1,e.length-1),r=rn.getProperties(n,"{","}"),o=0;o<r.length;o++)if(r[o].indexOf(".")<0&&r[o]in t)return t[r[o]];return null},this.getExpressionValue=function(t,n){for(var r=t,o=rn.getProperties(t,"(",")"),i=0;i<o.length;i++){var a=rn.getProperties(o[i],"{","}")[0],s=e.getPropertyExpressionValue("{"+a+"}",n),l=void 0,c=void 0;s?(l=(r=r.replace("{"+a+"}",s)).indexOf("("),c=(r=r.substring(0,l)+r.substring(l+1,r.length)).indexOf(")"),r=r.substring(0,c)+r.substring(c+1,r.length)):(l=r.indexOf("("),c=r.indexOf(")"),r=r.substring(0,l)+r.substring(c+1,r.length))}return r},this.applyRegexTransformation=function(e,t,n){if(!rn.isNullOrUndefined(e)&&t&&n)return e.replace(RegExp(t),n).trim()},this.applyDisplayTransformation=function(t,n){var r=n;if(t.type===ut.regex)(rn.isString(n)||rn.isNumber(n))&&(r=e.applyRegexTransformation(n.toString(),t.inputRegex,t.replacementPattern)||r);else r=void 0;return r},this.getTextContent=function(t){if(-1===t.indexOf(Le.link))return t;var n="",r=e.parseDisplayContent(t);if(1===r.length)return t;for(var o=0;o<r.length;o++){var i=r[o];-1===i.indexOf(Le.link)?n+=i:n+=i.replace(i,i.match(/\[(.*?)\]/)[1])}return n},this.parseDisplayContent=function(e){for(var t=0,n=e.indexOf(Le.link,t),r=-1,o=-1,i=[];-1!==n;){r=-1;for(var a=n;a<=n&&a>=0;a--)if("["===e[a]){r=a;break}if(-1===r)return(i=[]).push(e),i;i.push(e.substring(o,r)),o=-1;for(var s=n;s>=n&&s<e.length;s++)if(")"===e[s]){o=s+1;break}if(-1===o)return(i=[]).push(e),i;if(i.push(e.substring(r,o)),t=n+2,-1===(n=e.indexOf(Le.link,t))){var l=e.substring(o,e.length);void 0!==l&&""!==l&&i.push(l)}}return i},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var n="";try{for(var r=window.atob(e),o=new ArrayBuffer(r.length),i=new Uint8Array(o),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);var s=new Blob([i],{type:t});n=URL.createObjectURL(s)}catch(l){}return n},this.verifyClientSupported=function(e){var t,n=p({},e);n.parameters=p({},e.parameters);var r=n.parameters.allowedPaymentMethods;if((null===(t=null===window||void 0===window?void 0:window.paymentAgent)||void 0===t?void 0:t.clientSupported)&&(null===r||void 0===r?void 0:r.length)){var o=window.paymentAgent.clientSupported(r);n.parameters.allowedPaymentMethods=o}return n}}return e.prototype.getPropertyExpressionValue=function(e,t){if(t&&rn.isString(e)&&rn.isDataBindingPlaceholder(e)){var n=e.substring(1,e.length-1);if(n.indexOf(".")<0)return t.modelData&&(t.modelData.getDisplayPropertyValue(n)||t.modelData.getPropertyValue(n));var r=rn.getDataSourceDetails(n),o=null;switch(r.dataSourceName){case Ae.contextData:o=t.contextData;break;case Ae.partnerData:o=t.modelData&&t.modelData.getPartnerData();break;default:o=t.modelData&&t.modelData.getAllDataSources()}return o&&r.jpath?rn.getPropertyValueByJPath(o,r.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,n){if(e&&e.functionName){var r={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources()};e.arguments&&(r.arguments=e.arguments);var o=void 0;try{o=window.pidlResourceHelpers}catch(l){}if(o&&o.executeExtensionFunc){var i=o.executeExtensionFunc(e.functionName,r);if(n&&"filterPaymentInstruments"===e.functionName&&rn.isArray(i)){var a={pidlDocInfo:r.partnerData&&r.partnerData.inputParameters&&r.partnerData.inputParameters.pidlDocInfo},s=i.map((function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}}));n.resourceHelpersFunctionExecuted(e.functionName,a,s)}return i}}return null},e}(),tn=new en,nn=function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"===typeof e},this.isBool=function(e){return"boolean"===typeof e},this.isNumber=function(e){return"number"===typeof e},this.isNullOrEmptyObject=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return"undefined"===typeof e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,n){return e.indexOf(t,n)>=0},this.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},this.includes=function(t,n){return!e.isNullOrUndefined(t)&&t.indexOf(n)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(n){return n&&n.message}return null===t||void 0===t?"":t},this.addSlashes=function(e){return e=e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,n){return e.isString(t)?((n=n||[])["{"]="{",n["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,(function(t){return e.addSlashes(e.serialize(n[t.substring(1,t.length-1)]))}))):t},this.attachAffixes=function(t,n,r){var o=e.isNullOrUndefined(t)?n:t+n;return e.isNullOrUndefined(r)?o:o+r},this.removeAffixes=function(t,n,r){if(e.isNullOrUndefined(n))return n;var o=e.isNullOrUndefined(t)?0:t.length,i=e.isNullOrUndefined(r)?n.length:n.length-r.length;return n.substring(o,i)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,n=void 0,r=e.indexOf(".");return r>0&&(t=e.substr(0,r),n=e.substr(r+1)),{dataSourceName:t,jpath:n}},this.getPropertyValueByJPath=function(t,n){e.startsWith(n,"{$.")?n=n.substring(3,n.length-1):e.startsWith(n,"{")&&(n=n.substring(1,n.length-1));for(var r=(n=(n=n.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0;o<r.length;o++){var i=r[o];if(!t||!(i in t))return;t=t[i]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,n){return e.toLowerCase(t)===e.toLowerCase(n)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,n){for(var r=[],o=-1,i=t.length,a=n.length;;){var s=e.indexOf(t,-1===o?0:o+a);if(-1===s)break;if(-1===(o=e.indexOf(n,s+i)))break;r.push(e.substr(s+i,o-s-i))}return r},this.boolify=function(t){return e.isString(t)?!e.equalsIgnoreCase(t,"false")&&!e.isEmptyString(t):!!t},this.deepCopy=function(e,t){return t=t||{},e&&tn.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var n=0;n<e.length;n++)tn.extend(t,e[n]);return t},this.removeFromArray=function(e,t,n){e&&e.splice(t,n)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map((function(t){return e[t]})):[]},this.filter=function(t,n){e.invokeIf(t,(function(e){return!(n||function(){return!0})(e)}),(function(e){t.splice(e,1)}))},this.objectEquals=function(t,n){if(!t||!n||e.keyCount(t)!==e.keyCount(n))return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,n){if(e&&t)for(var r=e.length;r--;)t(e[r])&&n(r)},e.prototype.find=function(e,t){if(e&&t)for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},e}(),rn=new nn,on=function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=rn.find(rn.getKeys(ke),(function(t){return t.toLowerCase()===e.toLowerCase()}));return rn.boolify(t)},this.mapQueryParameter=function(e){return se[rn.toLowerCase(e)]||e},this.buildUrlInternal=function(t,n,r){var o;if(o=rn.startsWith(t,"https://")?t:rn.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,n)for(var i=0;i<n.length;i++)o+=rn.startsWith(n[i],"/")?n[i]:"/"+n[i];return r&&Object.keys(r).sort().forEach((function(t){if(!e.skipQueryParameter(t)){var n=r[t];n&&(o=e.addQueryParameter(o,e.mapQueryParameter(t),n))}})),o},this.createFromTemplateInternal=function(t,n,r,o,i,a){if(t){var s=ln.replaceVirtualEndpointWithServiceAddress(t,n);return s=s.replace(/{id}/i,encodeURIComponent(o)).replace(/{resourcetype}/i,i),r&&(s=s.replace(/{userid}/i,r.getUserId(t))),e.buildUrlInternal(s,[],a)}},this.getUrlExpressionValue=function(t,n,r,o,i){var a=e.createFromTemplateInternal(t,n,r,o,null,null);return a&&i&&(a=tn.getFormatStringExpressionValue("("+a+")",i,(function(e){return encodeURIComponent(e)}))),a},this.getResourceUrl=function(t,n){t=t||{};var r=ln.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(r.template,t.resourceEndpoint,n,t.id,t.resourceType,t.parameters),template:r.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:n},virtualEndpoint:r}},this.getPidlDocUrl=function(t,n,r){r=r||{};var o=rn.deepCopy(r.parameters||{});n&&(o[J.operation]=n);var i=ln.getPidlDocEndpoint(r.resourceType);i.addResourceNameToQueryParam&&(o.resourceName=rn.toLowerCase(r.resourceType)),i.removeOperationParameter&&delete o[J.operation];var a=r.resourceType+(r.resourceSuffix||i.suffix),s=r.anonymousPidl&&i.anonymousTemplate?i.anonymousTemplate:i.template;return{url:e.createFromTemplateInternal(s,r.pidlEndpoint,t,null,a,o),template:s,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:n,pidlDocInfo:r},virtualEndpoint:i}},this.getSubmitUrl=function(t,n,r,o,i){return{url:e.getUrlExpressionValue(r.href,null,n,o,i),template:r.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:n,context:r,id:o,bindingDataContext:i},virtualEndpoint:ln.findVirtualEndpointInTemplate(r.href)}},this.getRestMethodUrl=function(t,n,r,o){return{url:e.getUrlExpressionValue(t,null,n,r,o),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:n,id:r,bindingDataContext:o},virtualEndpoint:ln.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,n){rn.isString(n)||(n=JSON.stringify(n)),n=encodeURIComponent(n);var r=new RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o=new RegExp("([?])");if(e.match(o))return e.replace(o,"$1"+t+"="+n+"&");var i=-1!==e.indexOf("?")?"&":"?";return e+i+t+"="+n},this.addQueryStringParameters=function(t,n){if(n)for(var r in n)n[r]&&(t=e.addQueryParameter(t,r,n[r]));return t},this.buildUrl=function(t,n,r){return e.buildUrlInternal(t,n,r)},this.createFromTemplate=function(t,n,r,o,i,a){return e.createFromTemplateInternal(t,n,r,o,i,a)}},an=new on,sn=function(){var e=this;this.getContainingVirtualEndpoint=function(e){if(rn.isString(e)){var t=e.toLowerCase();for(var n in rt.virtualEndpoints){var r="{"+rt.virtualEndpoints[n].endpoint+"}";if(-1!==t.indexOf(r))return rt.virtualEndpoints[n]}}},this.getPidlDocInfoFromResource=function(e,t){var n=rn.toLowerCase(e.resourceType),r=rt.resourceTypeToPidlDoc[n]||rt.resourceTypeToPidlDoc.default;return{resourceType:n,parameters:r.getParams&&r.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&rn.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,n=0,r=e.parameters.allowedPaymentMethods.length;n<r;n++)t=t&&rn.isObject(e.parameters.allowedPaymentMethods[n]);if(t){var o=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var i=0,a=o.length;i<a;i++){var s=o[i],l=s.family;l+=s.type?De.paymentMethodName+s.type:"",e.parameters.allowedPaymentMethods[l]=s.disabled?0:1}}}},this.additionalRedirectParams=function(e,t){var n={};for(var r in t&&(t.paymentMethod&&(n.family=t.paymentMethod.paymentMethodFamily,n.type=t.paymentMethod.paymentMethodType),rn.equalsIgnoreCase(t.status,ct.Pending)&&t.details&&(n.pendingOn=t.details.pendingOn,n.picvRequired=t.details.picvRequired)),n)n[r]&&(e=an.addQueryParameter(e,r,n[r]));return e},this.getErrorSourceFromUrl=function(e){if(e=rn.toLowerCase(e))if(-1!==e.indexOf(rt.getServiceEndpoint(rt.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return rt.virtualEndpoints.pifdAddress.endpoint;if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return rt.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(rt.getServiceEndpoint(rt.virtualEndpoints.jarvis.endpoint)))return rt.virtualEndpoints.jarvisAddress.endpoint;return rt.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return rt.resourceTypeToResource[rn.toLowerCase(e)]||rt.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return rt.resourceTypeToPidlDoc[rn.toLowerCase(e)]||rt.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,n){var r=e.getContainingVirtualEndpoint(t);if(!r)return t;var o="{"+r.endpoint+"}",i=new RegExp(o,"i");return t=t.replace(i,n||rt.getServiceEndpoint(r.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}}},ln=new sn,cn=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=w.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:w.div+I.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:I.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:I.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:I.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var n=e&&e.length>0&&e[0],r=!t&&n&&e[0].displayHelpName&&e.length>13;return{totalToShow:r?13:e.length,dialogButtonText:r?e[0].displayHelpName:null}}},this.pageBodyBlock={id:I.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:I.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:I.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:I.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",n="",r="",o="";for(var i in e)switch(i){case V.containerId:this.containerId=e[i];break;case V.busyBlockId:this.setBlockId(this.busyBlock,e[i]);break;case V.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[i],this.busyBlock.preExists=!0;break;case V.inputPropertyIdPrefix:t=e[i]||t;break;case V.inputPropertyIdSuffix:n=e[i]||n;break;case V.displayElementIdPrefix:r=e[i]||r;break;case V.displayElementIdSuffix:o=e[i]||o;break;case V.inputPropertyErrorIdPrefix:this.errorPrefix=e[i];break;case V.showPlaceholderInTextbox:this.showPlaceholderInTextbox=tn.getBoolValue(e[i]);break;case V.disableEnterKeyAction:this.disableEnterKeyAction=tn.getBoolValue(e[i]);break;case V.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[i]);break;case V.showErrorBlock:this.setShowBlock(this.errorBlock,e[i]);break;case V.hidePropertyErrors:this.hidePropertyErrors=tn.getBoolValue(e[i]);break;case V.htmlExtender:this.htmlExtender=e[i];break;case V.disableFocusOnLoad:this.disableFocusOnLoad=tn.getBoolValue(e[i]);break;case V.alwaysValidateOnChange:this.alwaysValidateOnChange=tn.getBoolValue(e[i]);break;case V.ieExtender:this.ieExtender=e[i];break;case V.propagateCallbackException:this.propagateCallbackException=tn.getBoolValue(e[i])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,n),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,n),this.getAffixedDisplayElementId=this.getAffixesAttacher(r,o),this.getTrimmedDisplayElementId=this.getAffixesRemover(r,o)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=tn.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(n){return rn.attachAffixes(e,n,t)}},e.prototype.getAffixesRemover=function(e,t){return function(n){return rn.removeAffixes(e,n,t)}},e}(),un=function(){},dn=function(e){throw e};function pn(e){return Promise.resolve(e)}function hn(e){return Promise.reject(e)}var mn,fn,gn=Object.freeze({__proto__:null,doNothing:un,throwException:dn,createFakePromise:pn,createFakeRejectedPromise:hn}),vn=function(e,t){var n=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=n.extendEventParameters(t))},this.invokePublicEvent=function(e,t,r,o){return t&&n.logMessage(e,t),n.invokeEventHandlers(n.publicEventHandlers,e,r,o)},this.invokePrivateEvent=function(e,t,r,o){return t&&(n.telemetryContext&&n.telemetryContext.enablePrivateEventConsoleLogging||!n.telemetryContext)&&n.logMessage(e,t),n.invokeEventHandlers(n.privateEventHandlers,e,r,o)},this.isEventConsoleLoggingEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return(n.telemetryContext&&n.telemetryContext.enableConsoleLogging||!n.telemetryContext)&&!(r&&r[e]&&r[e].disableConsoleLogging)},this.logMessage=function(e,t){if(n.isEventConsoleLoggingEnabled(e)){var r=Zt.getLoggingService();r&&r.logMessage(n.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,r){if(n.isEventConsoleLoggingEnabled(e)){var o=Zt.getLoggingService();o&&o.logError(t,r)}},this.getExtendedEventParameter=function(e){return n.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);for(var o in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n.getExtendedEventParameter(o));return t=tn.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e=an.addQueryParameter(e,t,n.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(n.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&Zt.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return!(r&&r[e]&&r[e].disableLogging)},this.logTelemetryEvent=function(e,t){if(n.telemetryLogger&&n.telemetryContext&&n.telemetryContext.enableLogging){if((e===L.propertyValidated||e===L.error)&&t&&t.controlOperationType===he.editing)return;n.isEventTelemetryEnabled(e)&&n.telemetryLogger.logEvent(e,t,n.telemetryContext)}},this.getCorrelationId=function(){return n.telemetryLogger&&n.telemetryLogger.getCorrelationId&&n.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(n.telemetryLogger&&n.telemetryLogger.getHttpRequestCorrelationHeader)return n.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,r,o,i,a,s,l=null===(e=n.telemetryContext)||void 0===e?void 0:e.partnerContext,c=l.partnerName,u=l.scenarioId,d=l.sessionId;return!c&&(null===(r=null===(t=n.telemetryContext)||void 0===t?void 0:t.telemetryResource)||void 0===r?void 0:r.parameters.hasOwnProperty("partner"))&&(c=n.telemetryContext.telemetryResource.parameters.partner),d||(d=null===(o=n.telemetryContext)||void 0===o?void 0:o.sessionId),u||(u="commerce.payments.".concat(null===(a=null===(i=n.telemetryContext)||void 0===i?void 0:i.telemetryResource)||void 0===a?void 0:a.resourceType).concat(null===(s=n.telemetryContext)||void 0===s?void 0:s.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(u,",ms.b.tel.partner=").concat(c,",ms.c.cfs.payments.partnerSessionId=").concat(d)},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null===(e=n.telemetryContext)||void 0===e?void 0:e.sdkVersion,"_").concat(null===(t=n.telemetryContext)||void 0===t?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){n.telemetryContext&&e&&n.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,r,o){n.logTelemetryEvent(t,n.extendEventParameters(o));var i=n.extendEventParameters(r),a=!1;if(e)return e.forEach((function(e){a=e(t,i)||a})),a},this.addReturnOptions=function(e){n.returnUrls=e.urls?p({},e.urls):{},n.returnCallbacks=e.callbacks?p({},e.callbacks):{}},this.addPublicEventHandler=function(e){n.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){n.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){n.eventParameterExtenders.hasOwnProperty(e)?n.logMessage(H.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):n.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=n.getCorrelationId(),n.invokePrivateEvent(H.failure,null,{error:e},{error:e}),n.logError(H.failure,"failure",e);var t=n.returnCallbacks[T.failure];if(t)n.invokeReturnCallback(t,{error:e,cv:n.getCorrelationId()});else{var r=n.returnUrls.failure;if(!r)throw e;var o=r;e&&(o=an.addQueryParameter(o,"errormessage",e.message)),n.redirectUrl(n.addExtendedParametersToUrl(o))}},this.success=function(e){(e=e||{}).cv=n.getCorrelationId(),n.logMessage(H.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),n.invokePrivateEvent(H.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType});var t=n.returnCallbacks[T.success];if(t)n.invokeReturnCallback(t,e);else{var r=n.returnUrls.success;if(r){var o=r;e.id&&(o=an.addQueryParameter(o,"id",e.id)),n.redirectUrl(n.addExtendedParametersToUrl(o))}}},this.gohome=function(){n.logMessage(H.gohome,"Going to call go-home"),n.invokePrivateEvent(H.gohome);var e=n.returnCallbacks[T.gohome];e?n.invokeReturnCallback(e,{cv:n.getCorrelationId()}):n.returnUrls.gohome&&n.redirectUrl(n.addExtendedParametersToUrl(n.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,r,o){n.invokePublicEvent(L.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(o," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:r,propertyType:o},{id:e,displayId:t,pidlIdentity:r,propertyType:o})},this.selectionChanged=function(e,t,r){n.invokePublicEvent(L.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:r},{propertyName:e,displayId:t})},this.error=function(e,t){n.logError(L.error,"error",e),e.cv=n.getCorrelationId(),n.invokePublicEvent(L.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,r){n.invokePrivateEvent(H.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:r})},this.apiReturned=function(e,t,r){r||(r=pn()),n.invokePrivateEvent(H.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:r},{name:e,succeeded:rn.boolify(t)})},this.secureFieldEventReceived=function(e,t,r){n.invokePrivateEvent(H.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventQueued=function(e,t,r){n.invokePrivateEvent(H.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventPosted=function(e,t,r){n.invokePrivateEvent(H.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.postMessageReceived=function(e,t,r){n.invokePrivateEvent(H.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:r},{origin:e,expectedOrigin:t,dataLength:r})},this.postMessageHandleSuccess=function(e){n.invokePrivateEvent(H.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){n.invokePrivateEvent(H.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){n.invokePrivateEvent(H.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){n.invokePrivateEvent(H.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){n.invokePrivateEvent(H.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){n.invokePrivateEvent(H.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.resourceHelpersFunctionExecuted=function(e,t,r){n.invokePrivateEvent(H.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:r},{functionName:e,inputParams:t,outputValue:r})},this.fetchCallCompleted=function(e){n.invokePublicEvent(L.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.propertySelected=function(e,t,r){n.invokePublicEvent(L.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyValidated=function(e,t){n.invokePublicEvent(L.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){n.invokePublicEvent(L.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id})},this.instanceDownloading=function(e){n.invokePublicEvent(L.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){n.invokePublicEvent(L.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){n.invokePublicEvent(L.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){n.invokePublicEvent(L.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){n.invokePublicEvent(L.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,r,o,i,a,s){n.invokePublicEvent(L.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.pageRefreshed=function(){n.invokePublicEvent(L.pageRefreshed,"PIDL document refreshed")},this.inputReading=function(){n.invokePublicEvent(L.inputReading,"Reading user input data")},this.inputRead=function(){n.invokePublicEvent(L.inputRead,"Read user input data")},this.inputValidating=function(){n.invokePublicEvent(L.inputValidating,"Validating user input data")},this.inputValidated=function(){n.invokePublicEvent(L.inputValidated,"Validated user input data")},this.inputTokenizing=function(){n.invokePublicEvent(L.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){n.invokePublicEvent(L.inputTokenized,"Tokenized user input data")},this.submitting=function(){n.invokePrivateEvent(H.submitting)},this.submitted=function(){n.invokePrivateEvent(H.submitted)},this.implementationMissing=function(e,t,r){n.invokePublicEvent(L.implementationMissing,"Implentation of ".concat(null!==t&&void 0!==t?t:"undefined"," missing in ").concat(e),r)},this.inputSubmitting=function(e){n.invokePublicEvent(L.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){n.invokePublicEvent(L.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){n.invokePublicEvent(L.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){n.invokePublicEvent(L.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){n.invokePublicEvent(L.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){n.invokePublicEvent(L.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){n.invokePublicEvent(L.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){n.invokePublicEvent(L.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){n.invokePublicEvent(L.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){n.invokePublicEvent(L.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,r,o,i,a){var s=r?"Redirect":"Navigate";return n.invokePublicEvent(L.navigate,"".concat(s," to url: ").concat(t),{displayId:e,dest:i||e,url:t,piRedirection:r,context:o,destinationId:a},{displayId:e,dest:i||e,url:t,piRedirection:r,destinationId:a})},this.triggerEvent=function(e,t){return n.invokePublicEvent(L.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return n.invokePublicEvent(L.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,r,o,i,a,s){n.invokePublicEvent(L.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(o),{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.click=function(e){n.invokePublicEvent(L.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){n.invokePublicEvent(L.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,r){n.invokePublicEvent(L.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:r},{id:e})},this.payloadCreated=function(e){n.invokePublicEvent(L.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){n.invokePublicEvent(L.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){n.invokePublicEvent(L.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.pidlResolved=function(e,t){var r=[];t&&(r=t.map((function(e){return $t.createIdentityHash(e.identity)})));var o=rn.serialize(r);n.invokePrivateEvent(H.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(o),{context:e,resolvedPidlIdentity:o},{})},this.propertyUnselected=function(e,t,r){n.invokePrivateEvent(H.propertyUnselected,null,{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyCreated=function(e,t,r){n.invokePrivateEvent(H.propertyCreated,null,{propertyName:e,controlId:t,divId:r},{propertyName:e,controlId:t})},this.pollingStarted=function(e){n.invokePrivateEvent(H.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){n.invokePrivateEvent(H.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){n.invokePrivateEvent(H.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e){n.invokePrivateEvent(H.modelUpdated,null,{created:e},{created:e})},this.dataUpdated=function(){n.invokePrivateEvent(H.dataUpdated)},this.conflictingInputValues=function(e){n.invokePrivateEvent(H.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){n.invokePrivateEvent(H.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:n.returnUrls,returnCallbacks:n.returnCallbacks,publicEventHandlers:n.publicEventHandlers,privateEventHandlers:n.privateEventHandlers,eventParameterExtenders:n.eventParameterExtenders,telemetryContext:n.telemetryContext,telemetryLogger:n.telemetryLogger}},this.pollClientActionSuccess=function(e){n.invokePrivateEvent(H.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){n.invokePrivateEvent(H.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){n.invokePrivateEvent(H.hideModalDialog)},this.pidlActionInvoked=function(e,t){n.invokePrivateEvent(H.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){n.invokePrivateEvent(H.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){n.invokePrivateEvent(H.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){n.invokePublicEvent(L.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){n.invokePublicEvent(L.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){n.invokePublicEvent(L.submitOriginalPidl,"Submit Original Pidl Action")},this.telemetryContext=t,this.telemetryLogger=e};!function(e){e[e.PayPal=0]="PayPal"}(mn||(mn={})),function(e){e.googlePay="cdc85313-9b57-4052-81fb-dea336132cbf",e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(fn||(fn={}));var yn=function(e,t,n,r,o,i,a,s,l){void 0===l&&(l=!1);var c=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:c.type,headers:new Headers(c.headers),mode:"cors",credentials:c.includeCredentials?"include":"omit"};return c.payload&&(e.body=c.payload),new Request(c.url,e)},this.url=e,this.type=t,this.headers=n,this.payload=r,this.retryCount=o?0:-1,this.retryOnServerError=o,this.currentOperationName=i||"pidlsdkOperation",this.operationName=a||"DependentOperationName",this.serviceName=s||"PidlSdkDependentService",this.includeCredentials=l,this.serverErrorCount=0,n&&rn.isObject(n)){var u=n,d=Q.msRetryOnServerErr,p=u[d],m=h(u,["symbol"===typeof d?d:d+""]);this.retryOnServerError="false"!==p,this.headers=m}},bn=function(e){function t(t,n,r,o,i){var a=e.call(this,"Failed to fetch")||this;return a.status=t,a.statusText=n,a.failureContent=r,a.hasResponseFromServer=o,a.canRetryOnServerError=i,a}return d(t,e),t}(Error),Cn=1e3,Sn=function(){function e(){var e=this;this.FetchOptions=yn,this.getHttpTelemetryData=function(t,n){var r=t.url,o=t.type,i=t.contentType,a=t.currentOperationName,s=t.operationName,l=t.operationVersion,c=t.serviceName,u=t.retryCount,d=n.isSuccess,p=n.statusCode,h=n.headers,m=n.failureResponseText,f=n.timeTaken,g=n.serviceErrorCode,v=n.statusText,y=p?p.toString():"0",b=d||"200"===y?"":m||v,C=0;try{C=parseInt(n.headers.get("Content-Length"),10)}catch(X){}return{targetUri:r,requestMethod:o,responseContentType:i,operationName:a,dependencyOperationName:s,dependencyOperationVersion:l,serviceName:c,retryCount:u,succeeded:d,protocolStatusCode:y,failureResponse:b,contentLength:isNaN(C)?0:C,latencyMs:f,serviceErrorCode:g,headers:e.getDesiredResponseHeaders(h)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var n=rt.telemetryHeaders.names,r=rt.telemetryHeaders.prefixes;e.forEach((function(e,o){n.indexOf(o)>-1?t[o]=e:r.forEach((function(n){rn.startsWithIgnoreCase(o,n)&&(t[o]=e)}))}))}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var n=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},r=n.name,o=n.value;r&&o&&(t[r]=o)},this.updateFetchOptions=function(t,n){n&&n.headers&&e.addCVHeader(t,n.headers)},this.handleFetchFailure=function(t,n,r){var o,i,a,s,l;if(e.isFetchFailureError(t))o=t.status,i=t.statusText,a=t.failureContent,s=t.hasResponseFromServer,r=r&&t.canRetryOnServerError;else if(t){var c=t;o=c.status,i=c.statusText,a=c.failureContent||t.message||rn.serialize(c)}var u=!1,d=!1,p=!1;s?(500!==o&&502!==o&&503!==o&&504!==o||(d=!0,u=r),l="HTTP Error |".concat(o,"|").concat(i,"|: |").concat(a,"|")):(l="|NetworkError|Status: ".concat(o,", StatusText: ").concat(i,", FailureContent: ").concat(a,"| Uncaught Error. |").concat(a,"|"),p=!0,u=!0);var h=tn.parseJSON(a);return{failureMessage:{status:x.Error,errorMessage:l,httpStatus:o,httpStatusText:i,failureContent:a,failureObject:h&&h.succeeded?h.value:void 0,connectivityError:p},retryable:u,serverError:d}},this.fetchWrapper=function(e){return fetch(e.getRequest())},this.xhrWrapper=function(t,n,r){return new Promise((function(o,i){var a=t.type,s=t.url,l=t.headers,c=t.payload,u=t.includeCredentials,d=new XMLHttpRequest;d.open(a,s),a===xe.Get?d.timeout=12e3:d.timeout=42e3,l&&rn.getKeys(l).forEach((function(e){return d.setRequestHeader(e,l[e])})),u&&(d.withCredentials=u);var p=function(){var e=d.getAllResponseHeaders(),t={};rn.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach((function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");t[r]=o}));return t},h=function(){var e=void 0;return""!==d.responseType&&"text"!==d.responseType||(e=d.responseText),e};d.onload=function(){o(new Response(h(),{status:d.status,headers:new Headers(p()),statusText:d.statusText}))},d.onerror=function(){var o={isSuccess:!1,timeTaken:Date.now()-r,statusCode:d.status,headers:new Headers(p())};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,o));var a=h();i(new bn(d.status,d.statusText,a,rn.boolify(a),!0))},d.ontimeout=function(){var o={isSuccess:!1,timeTaken:Date.now()-r,statusCode:d.status,headers:new Headers};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,o)),i(new bn(d.status,d.statusText,void 0,!1,!0))},a===xe.Post&&c?(d.setRequestHeader("Content-Type","application/json"),d.send(c)):d.send()}))},this.loadScript=function(e){return new Promise((function(t,n){try{if(document&&(document.head||document.body)){var r=document.createElement("script");r.onload=function(){t()},r.onerror=function(){n()},r.async=!0,r.src=e,(document.head||document.body).appendChild(r)}else n()}catch(o){n(o)}}))},this.getHttpHeaders=function(t,n,r,o,i){var a=e.getDefaultHttpHeaders(t);for(var s in n&&(a=n.getHeaders(a,o)),r&&(tn.extend(!0,a,r),a.hasOwnProperty(Q.msCorrelationId)&&rn.isNullOrUndefinedOrWhiteSpaceString(a[Q.msCorrelationId])&&(a[Q.msCorrelationId]=tn.guid()),a.hasOwnProperty(Q.msTrackingId)&&rn.isNullOrUndefinedOrWhiteSpaceString(a[Q.msTrackingId])&&(a[Q.msTrackingId]=tn.guid())),o&&(o.indexOf("{pidl")>-1||o.indexOf("{pifd")>-1||o.indexOf("{resource-endpoint}")>-1)&&(a.hasOwnProperty(Q.correlationContext)||(a[Q.correlationContext]=null===t||void 0===t?void 0:t.getCorrelationContextHeaderValue()),a[Q.msPidlsdkVersion]=null===t||void 0===t?void 0:t.getPidlSdkVersionHeaderValue()),a)a[s]=tn.getFormatStringExpressionValue(a[s],i);return a},this.getDefaultHttpHeaders=function(t){var n,r=((n={})[Q.contentType]="application/json",n);return e.addCVHeader(t,r),r},this.getPayeeFileUploadHttpHeaders=function(e,t){var n={};return t&&(n[Q.authorization]=t),n},this.testHookSetRetryTimeout=function(e){Cn=e},this.testHookHandleFetchFailure=function(t,n,r){return void 0===n&&(n=xe.Post),void 0===r&&(r=!1),e.handleFetchFailure(t,n,r)}}return e.prototype.successHandler=function(e,t,n,r,o){var i=this;return function(a){var s={isSuccess:a.ok,timeTaken:Date.now()-n,statusCode:a.status,headers:a.headers};if(s.isSuccess)try{e.fetchCallCompleted(i.getHttpTelemetryData(t,s))}catch(X){}return a.text().then((function(n){var l=tn.parseJSON(n),c=!1;if(!s.isSuccess){s=p(p({},s),{statusText:a.statusText,serviceErrorCode:(l.value||{}).code,failureResponseText:n});try{e.fetchCallCompleted(i.getHttpTelemetryData(t,s))}catch(X){}c=t.serverErrorCount<2;try{var u=s.headers.get(Q.msRetryOnServerErr);c="true"===u||"false"!==u&&c}catch(Fg){}}if(!a.ok||!rn.isEmptyString(n)&&!l.succeeded)throw new bn(a.status,a.statusText,n,!0,c);try{var d=l.succeeded?l.value:{};o&&o(d),r.resolve(d)}catch(h){throw new bn(a.status,a.statusText,h.message,!0,!1)}}))}},e.prototype.exceptionHandler=function(e,t,n,r,o,i){var a=this;return function(s){var l=a.handleFetchFailure(s,t.type,t.retryOnServerError),c=l.failureMessage,u=l.retryable&&t.retryCount>=0&&t.retryCount<5;e.error(new Dt.serverError(At.restMethodInvocationFailed,t.url,c.failureObject||c.failureContent,c.httpStatus,c.httpStatusText,c.errorMessage,[t.url,c.httpStatusText],t.type,t.retryCount,u)),l.serverError&&t.serverErrorCount++,u?(t.retryCount+=1,2!==t.retryCount&&5!==t.retryCount||(t.url=rt.getAlternateUrl(t.url)),setTimeout((function(){n=Date.now(),a.updateFetchOptions(e,t),t.retryCount<4?a.fetchWrapper(t).then(a.successHandler(e,t,n,r,o)).catch(a.exceptionHandler(e,t,n,r,o,i)):a.xhrWrapper(t,e,n).then(a.successHandler(e,t,n,r,o)).catch(a.exceptionHandler(e,t,n,r,o,i))}),Cn*Math.pow(1.5,t.retryCount-1))):(i&&i(c),r.reject(c))}},e.prototype.invokeFetch=function(e,t,n,r,o,i,a,s,l,c,u,d){var p=this;void 0===d&&(d=!1);var h=Date.now(),m=new this.FetchOptions(r,n,o,i,t,l,c,u,d),f=this.fetchWrapper(m);return new Promise((function(t,n){var r={resolve:t,reject:n};f.then(p.successHandler(e,m,h,r,a)).catch(p.exceptionHandler(e,m,h,r,a,s))}))},e.prototype.post=function(e,t,n,r,o,i,a,s,l,c,u){return void 0===u&&(u=!1),this.invokeFetch(e,t,xe.Post,n,r,o,i,a,s,l,c,u)},e.prototype.put=function(e,t,n,r,o,i,a,s,l,c,u){return void 0===u&&(u=!1),this.invokeFetch(e,t,xe.Put,n,r,o,i,a,s,l,c,u)},e.prototype.get=function(e,t,n,r,o,i){return this.invokeFetch(e,!0,xe.Get,t,n,null,null,null,r,o,i)},e.prototype.delete=function(e,t,n,r,o,i){return this.invokeFetch(e,!0,xe.Delete,t,n,null,null,null,r,o,i)},e}(),xn=new Sn,_n=function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:p(p({},L),H)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:rn.getValues(p({},Re))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:rn.getValues(p({},Ne))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:rn.getValues(p({},Me))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:rn.getValues(p({},O))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:rn.getValues(p({},Re))},challengeWindowSize:{type:"string",possibleValues:rn.getValues(p({},Me))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{frequencyUnit:{type:"string",possibleValues:rn.getValues(p({},Ge))},frequency:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:rn.getValues(p({},Fe))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:rn.getValues(p({},Re))},challengeWindowSize:{type:"string",possibleValues:rn.getValues(p({},Me))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,n,r){var o=e.validate(t,n,r);if(o)return o;if("dictionary"===n.type||!r)return null;if(e.isObjectSchema(n)){var i=n.allowedChildNames,a=n.ignoreUnspecifiedChild,s=n.children,l=n.childType;if(i)for(var c in r){if(!i[c])return new Dt.inputParameterValidationFailedError(At.inputParameterMissing,t,[n.type,rn.getType(r)]);if(l){var u=e.visitInputSchema(t+" element: ",l,r[c]);if(u)return u}}else{if(!a)for(var d in r)if(!s[d])return new Dt.inputParameterValidationFailedError(At.inputParameterNotInRange,d,[d]);for(var p in s){var h=e.visitInputSchema(p,s[p],r[p]);if(h)return h}}}if(e.isArraySchema(n)){if(!rn.isArray(r))return new Dt.inputParameterValidationFailedError(At.inputParameterTypeMismatch,t,[n.type,rn.getType(r)]);var m=n.minLength,f=n.maxLength;l=n.childType;if(m&&r.length<m)return new Dt.inputParameterValidationFailedError(At.inputParameterSmallerThanMinLength,t,[t,m,r.length]);if(f&&r.length>f)return new Dt.inputParameterValidationFailedError(At.inputParameterLargerThanMaxLength,t,[t,f,r.length]);if(l)for(var g=0;g<r.length;++g){var v=e.visitInputSchema(t+" element: "+g,l,r[g]);if(v)return v}}if(e.isSchemaSchema(n)){var y=e.visitInputSchema(t,n.schema,r);if(y)return y}return null},this.validate=function(e,t,n){if(!t.optional&&(null===n||void 0===n))return new Dt.inputParameterValidationFailedError(At.inputParameterMissing,e,[e]);var r=t.type;if(!n||"any"===r)return null;var o=typeof n;return"dictionary"===r||"schema"===r?r="object":"array"===r&&rn.isArray(n)&&(o="array"),"boolean"===r&&"string"===o&&("true"!==n&&"false"!==n||(o="boolean")),r&&o&&r!==o?new Dt.inputParameterValidationFailedError(At.inputParameterTypeMismatch,e,[r,o]):t.possibleValues&&!rn.contains(t.possibleValues,n)?new Dt.inputParameterValidationFailedError(At.inputParameterNotInRange,e,[e,n,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!rn.boolify(t)},this.validateInputParameters=function(t,n,r,o,i){var a=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,n));return(a=a&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,r)))&&r.busyBlockShowHideHandler&&r.busyBlockId&&(a=e.resultHandler(t,new Dt.inputParameterValidationFailedError(At.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),a=(a=a&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,o)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,i))},this.validateCheckoutParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,n))},this.validatePayeeTaxProfileParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,n))},this.validateMockFunctions=function(t,n){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,n))},this.validateReturnOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,n))},this.validatePidlDocInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,n))},this.validateResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,n))},this.validateAddUpdateOrDeleteOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,n))},this.validateSelectOrRenderOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,n))},this.validateShowResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,n))},this.validateOfferResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,n))},this.validateSearchResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,n))},this.validateFundStoredValueParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,n))},this.validateResourceOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,n))},this.validateResourceActionParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,n))},this.validatePaymentSessionData=function(t,n){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,n))},this.shouldValidateAuthorizationGroups=function(e,t){return t===je.applePay&&e.length>1},this.validatePaymentSessionOrData=function(t,n){var r,o;if(e.isPaymentSession(n))o=e.paymentSessionSchema;else{if(o=e.paymentSessionDataSchema,null===(r=null===n||void 0===n?void 0:n.recurringPaymentDetails)||void 0===r?void 0:r.frequencyUnit){var i=n.recurringPaymentDetails.frequencyUnit;n.recurringPaymentDetails.frequencyUnit=i.toLowerCase()}if((null===n||void 0===n?void 0:n.authorizationGroups)&&e.shouldValidateAuthorizationGroups(n.authorizationGroups,null===n||void 0===n?void 0:n.piid)){for(var a=0,s=0,l=n.authorizationGroups;s<l.length;s++){a+=100*l[s].totalAmount}if(a!==100*(null===n||void 0===n?void 0:n.amount)){var c=new Dt.unmatchedAmountError(At.unmatchedAmount,JSON.stringify(n));t.error(c)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",o,n))},this.validatePurchaseRiskChallengeParams=function(t,n){var r="purchaseRiskChallengeSchema",o=e.purchaseRiskChallengeSchema;return n&&n.riskChallengeData&&n.riskChallengeData.length>0&&"threeds"===n.riskChallengeData[0].toLowerCase()&&(r="purchaseRiskChallengeSchemaForThreeDS",o=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(r,o,n))},this.validateHandlePurchasePendingStateParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,n))},this.validateSelectedResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,n))},this.validateHandle=function(t,n){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,n))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&rn.isString(e.id)&&e.id.length},e}(),En=new _n,kn=function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var n=t.strings,r=n.constants,o=n.errorCodes;r&&(this.constants=p({},r)),o&&(this.errors=p({},o))}},wn=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,n){var r=t.getCacheEntryIndex(e);-1===r?t.cache.push({key:e,value:n}):t.cache[r].value=n},this.get=function(e){var n=t.getCacheEntryIndex(e);return-1!==n&&t.cache[n].value},this.remove=function(e){var n=t.getCacheEntryIndex(e),r=null;return-1!==n&&(r=t.cache[n],t.cache.splice(n,1)),r&&r.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&rn.filter(t.cache,(function(t){return!t||!t.value||!e(t.value)}))},this.cache=[],this.keyComparer=rn.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return-1},e}(),In=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,n){e.modelDataCache.put(t,e.getModelData(n))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,n){e.dataSourceCache[t]=n},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new wn,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var n in e){var r=e[n];r&&(t[n]=r.getValue())}return t},e}(),Pn=function(){var e=this;this.createModelElement=function(t,n,r,o,i,a,s,l,c){switch(t){case D.button:return e.addHandleToDisplayDescriptions(r,s),new Jn(n,r,o,i,a,l,c);case D.filePicker:return new Xn(n,r,o,i,a);case D.checkBox:return new Yn(n,r,o,i,a);case D.dropdown:return e.addHandleToDisplayDescriptions(r,s),new Gn(n,r,o,i,a);case D.group:return new Fn(t,n,r,o,i,a,c);case D.captcha:return new Hn(t,n,r,o,i,a,c);case D.page:return new Vn(n,r,o,i,a);case D.textGroup:return new zn(n,r,o,i,a);case D.dataCollectionBindingGroup:return new Bn(n,r,o,i,a);case D.textBox:return new Kn(n,r,o,i,a,s);case D.radio:return e.addHandleToDisplayDescriptions(r,s),new jn(n,r,o,i,a);case D.buttonList:return e.addHandleToDisplayDescriptions(r,s),new qn(n,r,o,i,a);case D.secureProperty:return new sr(n,r,o,i,a,s);case D.iFrame:return new lr(n,r,o,i,a);case D.heading:case D.subheading:case D.text:case D.hyperlink:return new Zn(t,n,r,o,i,a,l,c);case D.image:return new tr(t,n,r,o,i,a,l,c);case D.logo:return new or(n,r,o,i,a,s,c);case D.audio:return new $n(n,r,o,i,a,l,c);case D.expression:return new er(n,r,o,i,a,l,c);case D.pidlContainer:return new ir(n,r,o,i,a);case D.separator:return new nr(t,n,r,o,i,a,c);case D.spinner:return new rr(t,n,r,o,i,a,c);default:return new Rn(t,n,r,o,i,a)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var n=t.getOperationHandle();if(n)for(var r=$t.getDisplayDescriptionsPidlActions(e),o=0;o<r.length;o++){var i=r[o];i.type!==B.success&&i.type!==B.successWithPidlPayload||!rn.isObject(i.context)||(i.context.handle=n,rn.isObject(i.context.resourceActionContext)&&(i.context.resourceActionContext.handle=n))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var n=$t.getPidlIdentityForProperty(e,t.propertyName);return n?$t.createIdentityHash(n):void 0}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,n,r,o,i,a,s){var l=e.create(t,n,r,o,i,!1,{},null,a,s);if(e.isErrorObject(l))return l;var c=null,u=l.element,d=v([],l.warnings,!0);if(u)if(fr(u)){var p=e.createLinkedPidlModelElements(i,o,u.linkedPidlId,!0,{});if(e.isErrorObject(p))return p;c=v([],p.elements,!0),d=v(v([],d,!0),p.warnings,!0)}else c=[u];return{elements:c,warnings:d}},this.create=function(t,n,r,o,i,a,s,l,c,u){var d=tn.getModelElementType(n,r);if(d.error)return{error:d.error};var p=e.getPidlIdentityHash(t,r),h=e.createModelElement(d.type,n,r,o,p,a,i,c,u),m=[];if(s&&(h.displayType!==dt.page&&s[h.displayId]&&(m=v(v([],m,!0),[new Dt.unexpectedError(At.duplicateDisplayHintIdOnPage,[h.displayId,l])],!1)),l||(l=h.displayId),s[h.displayId]=!0),dr(h))for(var f=h.displayDescription,g=["audioMembers","imageMembers"],y=0;y<g.length;y++)for(var b=0;b<f[g[y]].length;b++){var C=e.create(t,t&&Xt.getPropertyFromDataDescription(t.data_description,f[g[y]][b].propertyName),f[g[y]][b],o,i,a,s,l,c,u);if(e.isErrorObject(C))return C;m=v(v([],m,!0),C.warnings,!0);var S=C.element;0===y?h.audioChildren.push(S):h.imageChildren.push(S)}else if(ur(h))for(f=h.displayDescription,b=0;b<f.members.length;b++){if(C=e.create(t,t&&Xt.getPropertyFromDataDescription(t.data_description,f.members[b].propertyName),f.members[b],o,i,a,s,l,c,u),e.isErrorObject(C))return C;if(m=v(v([],m,!0),C.warnings,!0),fr(S=C.element)){var x=e.createLinkedPidlModelElements(i,o,S.linkedPidlId,!1,s,l);if(e.isErrorObject(x))return x;h.children=v(v([],h.children,!0),x.elements,!0),m=v(v([],m,!0),x.warnings,!0)}else h.children.push(S)}else gr(h)?e.createButtonWithDisplayContentGroup(h):e.createPossibleOptionMembers(h,c);return{element:h,warnings:m}},this.createPossibleOptionMembers=function(t,n){if(hr(t))for(var r in t.possibleOptions){var o=t.possibleOptions[r];if(o.displayContent){var i=e.createModelElementsFromDisplayDescriptions([o.displayContent],t.operationType,n).elements;i&&i.length>=1&&(o.displayContentContainer=i[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var n=t.displayDescription.displayContentDisplayDescription,r=e.createModelElementsFromDisplayDescriptions([n],t.operationType).elements;r&&r.length>=1&&(t.displayContentModelElement=r[0])}},this.createLinkedPidlModelElements=function(t,n,r,o,i,a){for(var s=$t.createIdentityHash(r),l=t.getLinkedPidl(s),c={elements:[],warnings:[]},u=!1,d=0;d<l.displayDescription.length;d++){var p=l.displayDescription[d],h=e.create(l,Xt.getPropertyFromDataDescription(l.data_description,p.propertyName),p,n,t,!0,i,a);if(e.isErrorObject(h))return h;var m=h.element,f=h.warnings;if(c.warnings=v(v([],c.warnings,!0),f,!0),!o&&pr(m)){if(u)return{error:new Dt.unexpectedError(At.multiplePagesInLinkedPidlForSinglePagePidlContainer)};c.elements=v(v([],c.elements,!0),m.children,!0),u=!0}else c.elements=v(v([],c.elements,!0),[m],!1)}return c},this.createModelElements=function(t,n){var r=t.getResolvedOrFirstPidlDoc(),o=[],i=[];if(r&&r.displayDescription&&r.displayDescription.length)for(var a=0;a<r.displayDescription.length;a++){var s=r.displayDescription[a],l=e.addPage(r,Xt.getPropertyFromDataDescription(r.data_description,s.propertyName),s,n,t);if(e.isErrorObject(l))return l;o=v(v([],o,!0),l.elements,!0),i=v(v([],i,!0),l.warnings,!0)}return 0===o.length?{error:new Dt.unexpectedError(At.noDisplayDescriptionInPidlDocument)}:{elements:o,warnings:i}},this.createModelElementsFromDisplayDescriptions=function(t,n,r,o,i,a){for(var s=[],l=0;l<t.length;l++){var c=t[l];if(c){var u=i&&i.data_description&&Xt.getPropertyFromDataDescription(i.data_description,c.propertyName),d=e.addPage(i,u,c,n,a,r,o);e.isErrorObject(d)||(s=v(v([],s,!0),d.elements,!0))}}return{elements:s}}},Tn=new Pn,Dn=function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var n=rn.find(e,(function(e){return rn.equalsIgnoreCase(e,t)}));return n||(n=""),n},this.updateModelElements=function(t,n,r){e.propertiesVisitorProcessingAny(t,(function(e,t){return!!e.update&&e.update(t,r)}),n)},this.findFirstMatchingProperty=function(t,n){var r={properties:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(!e.isPrefillControl()&&rn.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0}),r),r.matchedProperty},this.getParentIfSame=function(t,n){for(var r=null,o=0;o<n.length;o++){var i={propertyName:n[o]};if(e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&e.children)for(var n=0;n<e.children.length;n++)if(e.children[n].isProperty()){var r=e.children[n];if(r&&r.getPropertyName&&r.getPropertyName()===t.propertyName)return t.parent=e,!0}}),i),i.parent)if(r){if(i.parent!==r)return null}else r=i.parent}return r},this.findPropertyElement=function(t,n){var r={propertyName:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0}),r),r.element},this.findElement=function(t,n){var r={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(n(e))return t.element=e,!0}),r),r.element},this.findAllElements=function(t,n){var r={elements:[]};return e.propertiesVisitorProcessingAny(t,(function(e,t){n(e)&&t.elements.push(e)}),r),r.elements},this.findPrefillControlElement=function(t){return e.findElement(t,(function(e){if(e&&e.displayType===dt.prefillControl)return!0}))},this.findFirstVisibleEnabledPropertyElement=function(t){var n={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0}),n),n.element},this.isButtonWithDisplayDescription=function(e){return gr(e)&&!rn.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,(function(e){return gr(e)}))},this.findHighlightedButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted}))},this.findDefaultPidlActionButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault}))},this.getDefaultPidlActionButton=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),r},this.getDefaultPidlAction=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)),r&&r.displayDescription&&r.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,n){var r=e.getDefaultPidlAction(t,n);if(r&&(r.type===B.success||r.type===B.successWithPidlPayload))return r.context},this.normalizeValueToPossibleValues=function(t,n){var r=e.normalizeValueToOptions(rn.getKeys(t.possibleOptions),n);return rn.isEmptyString(r)&&t.dataDescription.possible_values&&(r=e.normalizeValueToOptions(rn.getKeys(t.dataDescription.possible_values),n)),r},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,n){return e.normalizeValueToOptions(rn.getKeys(t.possibleOptions),n)},this.getPollingPidlActions=function(t){var n={};return t.forEach((function(t){t.pidlAction&&t.pidlAction.type===B.poll&&(n[t.displayId]=t.pidlAction),t.children&&(n=p(p({},n),e.getPollingPidlActions(t.children)))})),n},this.findRadioElements=function(t){return e.findAllElements(t,(function(e){return Cr(e)}))}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,n){if(e){var r=t(e,n);return r||(!(e.children&&e.children.length>0)||n&&n.stopDescendantsProcessing?void(n&&delete n.stopDescendantsProcessing):this.propertiesVisitorProcessingAny(e.children,t,n))}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!rn.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},e.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e){if(!rn.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}}},e}(),An=new Dn,Rn=function(){function e(e,t,n,r,o,i){var a=this;this.isText=function(){return a.isStaticText()||a.type===D.hyperlink},this.isStaticText=function(){return a.type===D.heading||a.type===D.subheading||a.type===D.text||a.type===D.expression},this.isProperty=function(){return a.displayDescription.displayType===dt.property},this.isCaptcha=function(){return a.displayDescription.displayType===dt.captcha},this.isPrefillControl=function(){return a.displayDescription.displayType===dt.prefillControl},this.isButton=function(){return a.displayDescription.displayType===dt.button},this.isHighlighted=function(){return a.displayDescription.isHighlighted},this.isIframe=function(){return a.displayDescription.displayType===dt.iFrame},this.isSecureProperty=function(){return a.displayDescription.displayType===dt.secureProperty},this.showKeyLogo=function(){return rn.boolify(a.dataDescription)&&!0===a.dataDescription.is_key},this.disabled=function(){return a.operationType===it.update&&a.dataDescription&&!1===a.dataDescription.is_updatable||!0===a.isDisabled},this.hidden=function(){return a.isHidden||a.hasNoDataToShow},this.canBeRendered=function(){return a.displayConditionResult},this.getPrefixedTags=function(e,t,n){n=n||function(e,t){return!0};var r={};return Object.keys(a.tags?a.tags:{}).forEach((function(o){var i=a.tags[o];rn.startsWith(o,e)&&n(o,i)&&(r[t?o.replace(e,""):i]=i)})),r},this.getParentHtmlClassTags=function(){return a.getPrefixedTags(Ee.parent,!1,(function(e,t){return!_e[e.replace(Ee.parent,"")]}))},this.getHelpDialogTags=function(){return a.getPrefixedTags(Ee.helpDialog,!0,(function(e,t){return _e[e.replace(Ee.helpDialog,"")]}))},this.update=function(e,t){return a.displayCondition&&(a.displayConditionResult=tn.getFunctionExecutionResult(a.displayCondition,e)),a.updateModelElement(e,t)},this.operationType=r,this.dataDescription=t,this.displayDescription=n,this.type=e,this.pidlIdentity=o,this.isLinkedPidl=i,this.hasNoDataToShow=!1;var s=this.displayDescription,l=s.isHidden,c=s.displayCondition,u=s.displayId,d=s.displayType,p=s.tags,h=s.propertyName,m=s.pidlAction,f=s.displayHelpName,g=s.displayHelp,v=s.displayImage,y=s.isDisabled,b=s.styleHints;this.isHidden=!0===l,this.displayCondition=c,this.displayConditionResult=!this.displayCondition,this.pidlAction=m,this.displayId=u,this.displayType=d,this.tags=p,this.styleHints=b,this.displayHelpName=f,this.displayHelp=g,this.displayImage=v,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var C=h;this.id=C||u,this.isDisabled=y,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),Nn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,u=r.containerDescription,d=r.members,p=r.displayName,h=r.showDisplayName;return s.layoutOrientation=l||pt.vertical,s.layoutAlignment=c,s.containerDescription=u,s.members=d,s.displayName=p,s.showDisplayName=p&&rn.boolify(h),s}return d(t,e),t}(Rn),Mn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this,c=r.displayName,u=r.showDisplayName,d=r.isSubmitGroup,p=r.isModalGroup;return l.displayName=c,l.showDisplayName=c&&(!u||u===F.stringTrue),l.isSubmitGroup=d,l.isModalGroup=p,s&&(l.id+=s),l}return d(t,e),t}(Nn),Fn=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return d(t,e),t}(Mn),Bn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.dataCollectionBindingGroup,t,n,r,o,i)||this;return a.dataCollectionSource=n.dataCollectionSource,a.filterDescription=n.filterDescription,a.childrenTemplates=a.children,a}return d(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=tn.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=tn.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var n=null;if(t&&t.length&&rn.isArray(t)){n=[];for(var r=0;r<t.length;r++)for(var o={modelData:e.modelData,contextData:t[r]},i=0;i<this.childrenTemplates.length;i++){var a=String(r);e.depth?(this.id=this.id+e.depth,a=e.depth+"_"+a,o.depth=a+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):o.depth=a+"a";var s=rn.deepCopy(this.childrenTemplates[i]),l=Tn.createModelElementsFromDisplayDescriptions([s.displayDescription],this.operationType,o,a).elements;l&&l.length>=1&&(e.stopDescendantsProcessing=!0,An.updateModelElements(l,o),n=n.concat(l))}}this.children=n}return!1},t}(Mn),On=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,u=r.containerDescription,d=r.audioMembers,p=r.imageMembers,h=r.displayName,m=r.showDisplayName;return s.layoutOrientation=l||pt.vertical,s.layoutAlignment=c,s.containerDescription=u,s.audioMembers=d,s.imageMembers=p,s.displayName=h,s.showDisplayName=h&&rn.boolify(m),s}return d(t,e),t}(Rn),Ln=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.required=function(){return!(!0===l.dataDescription.is_optional)};var c=r.displayName,u=r.showDisplayName;return l.displayName=c,l.showDisplayName=c&&(!u||u===F.stringTrue),l.defaultValue=n.default_value,s&&(l.id+=s),l}return d(t,e),t}(On),Hn=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return d(t,e),t}(Ln),Vn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.page,t,n,r,o,i)||this;return a.displayName=n.displayName,a.keyPidlActions=n.keyPidlActions,a}return d(t,e),t}(Nn),zn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.textGroup,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return d(t,e),t}(Nn),Un=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.getPropertyName=function(){return s.displayDescription.propertyName},s.getErrorMessage=function(e,t){var n,r=s.displayErrorMessages;if(r){if(t&&r.fromErrorCode)for(var o=0;o<r.fromErrorCode.length;o++){var i=r.fromErrorCode[o];if(i.errorCode===t){n=i.errorMessage;break}}else if(r.fromRegex)for(o=0;o<r.fromRegex.length;o++){var a=r.fromRegex[o];if(new RegExp(a.regex).test(e)){n=a.errorMessage;break}}n||(n=r.defaultErrorMessage)}return n},s.required=function(){return!(!0===s.dataDescription.is_optional)&&s.displayDescription.displayType!==dt.prefillControl};var l=s.displayDescription,c=l.displayName,u=l.showDisplayName,d=l.displayErrorMessages,p=l.displayLogo,h=l.maskDisplay,m=l.resolutionPolicy,f=l.displayHelpPosition,g=n.is_key,v=n.transformation,y=n.displayOnly,b=n.default_value;return rn.isFormatStringExpressionPlaceholder(b)?s.defaultValueTemplate=b:s.defaultValue=b,s.displayName=c,s.showDisplayName=c&&(!u||u===F.stringTrue),s.isKeyProperty=!0===g,s.supportsDisplayTransformation=v&&!rn.isNullOrUndefined(v.forDisplay),s.displayErrorMessages=d,s.displayLogo=p,s.maskDisplay=h,s.triggerPidlDownloadOnChange=s.isKeyProperty&&$t.doesKeyPropertyTriggerPidlDownload(s.dataDescription),s.resolutionPolicy=m||ft.always,s.displayOnly=y,s.displayHelpPosition=f,s}return d(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=tn.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var n=e.modelData.getModelDataProperty(this.getPropertyName());n&&!n.getValue()&&n.setValue(this.defaultValue)}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(Rn),Wn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.firstElementIdSuffix=function(){return s.getFirstElementIdSuffix(s.possibleOptions)};var l=r.possibleOptions,c=r.possibleValues,u=r.dataCollectionSource,d=r.filterDescription,p=r.displaySelectionText,h=r.displayPropertyDescription,m=r.isSelectFirstItem;if(s.possibleValues=c,s.possibleOptions=l,!s.possibleOptions&&c&&(s.possibleOptions=s.getPossibleOptions(c)),s.dataCollectionSource=u,s.filterDescription=d,s.displaySelectionText=p,s.description=h,s.isSelectFirstItem=m,s.selectedIndex=s.displaySelectionText?0:-1,s.dataCollectionSource){var f=Object.keys(s.possibleOptions);f&&f.length&&rn.isFormatStringExpressionPlaceholder(f[0])&&(s.possibleOptionsTemplate=s.possibleOptions[f[0]],s.possibleOptionsTemplate.key=f[0],s.possibleOptions={})}return s.isSelectFirstItem&&s.selectedIndex++,s}return d(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var n=[];if(rn.isArray(this.dataCollectionSource))for(var r=0,o=this.dataCollectionSource;r<o.length;r++){var i=o[r],a=tn.getPropertyExpressionValue(i,e);n.push.apply(n,a)}else n=tn.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(n=tn.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:n},t));var s={},l=this.defaultValue;if(n&&n.length&&rn.isArray(n))for(var c=0;c<n.length;c++){var u={modelData:e.modelData,contextData:n[c]},d=tn.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,u);if(this.isSelectFirstItem&&rn.isNullOrUndefinedOrWhiteSpaceString(l)&&(l=d,e.modelData)){var p=e.modelData.getModelDataProperty(this.getPropertyName());p&&p.setValue(d)}var h={};for(var m in this.possibleOptionsTemplate){var f=tn.getFormatStringExpressionValue(this.possibleOptionsTemplate[m],u);h[m]=rn.isObject(f)?rn.deepCopy(f):f}if(h.displayContent){var g=Tn.createModelElementsFromDisplayDescriptions([h.displayContent],this.operationType,u,String(c));g.elements&&g.elements.length>=1&&(An.updateModelElements(g.elements,u),h.displayContentContainer=g.elements[0])}h.pidlAction=h.pidlAction||{},h.pidlAction.context=n[c],s[d]=h}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=s,this.hasNoDataToShow=0===rn.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var v=tn.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(v){var y=v.possible_values,b=v.possibleValues,C=v.possibleOptions;y&&(this.dataDescription.possible_values=y),b&&(this.possibleValues=b),C&&(this.possibleOptions=C)}}return this.displayDescription.disableSingleItemDropdown&&this.type===D.dropdown&&this.possibleOptions&&1===rn.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||rn.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var n in e)t[n]={displayText:e[n],isDisabled:void 0};return t},t}(Un),Gn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.dropdown,t,n,r,o,i)||this;return a.defaultValue&&(a.defaultValue=An.normalizeValueToPossibleValues(a,a.defaultValue)),a}return d(t,e),t}(Wn),jn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.radio,t,n,r,o,i)||this;return a.defaultValue||(a.defaultValue=rn.getFirstKey(a.possibleValues)),a}return d(t,e),t}(Wn),qn=function(e){function t(t,n,r,o,i){return e.call(this,D.buttonList,t,n,r,o,i)||this}return d(t,e),t}(Wn),Kn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,D.textBox,t,n,r,o,i)||this;s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getTextBoxType=function(){var e=s.displayDescription,t=e.inputScope,n=e.maskInput;return t||(!0===n||"password"===s.dataDescription.type?"password":"text")};var l=n.maxLength,c=n.direction,u=n.textAlignment,d=n.displayTransformations;return s.displayTransformations=d,s.maxLength=l,s.direction=c,s.textAlignment=u,s.pidlDocManager=a,s}return d(t,e),t}(Un),Yn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.checkBox,t,n,r,o,i)||this;return a.description=n.displayPropertyDescription,a}return d(t,e),t}(Un),Xn=function(e){function t(t,n,r,o,i){var a=e.call(this,D.filePicker,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return d(t,e),t}(Un),Qn=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.displayContentTemplate=r.displayContent,c.displayContent=tn.getFormatStringExpressionValue(c.displayContentTemplate,s),l&&(c.id+=l,c.displayId=c.id),c}return d(t,e),t.prototype.updateModelElement=function(e){if(this.displayContent=tn.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=tn.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=tn.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===D.hyperlink&&this.pidlAction&&rn.isString(this.pidlAction.context)&&(this.pidlAction.context=tn.getFormatStringExpressionValue(this.pidlAction.context,e)),this.type===D.hyperlink&&this.pidlAction&&rn.isObject(this.pidlAction.context)){var t={};for(var n in this.pidlAction.context)"instance"===n&&rn.isString(this.pidlAction.context[n])?t[n]=tn.getFormatInstanceExpressionValue(this.pidlAction.context[n],e):t[n]=tn.getFormatStringExpressionValue(this.pidlAction.context[n],e);this.pidlAction.context=t}return!1},t}(Rn),Zn=function(e){function t(t,n,r,o,i,a,s,l){return e.call(this,t,n,r,o,i,a,s,l)||this}return d(t,e),t}(Qn),Jn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,D.button,t,n,r,o,i,a,s)||this;return l.tooltipText=n.tooltipText,l}return d(t,e),t}(Qn),$n=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,D.audio,t,n,r,o,i,a,s)||this;return l.audioUrl=tn.convertBase64strIntoBlobUrl(n.audioUrl,"audio/mp3"),l}return d(t,e),t}(Qn),er=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,D.expression,t,n,r,o,i,a,s)||this;return l.expression=n.displayContent,l}return d(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=tn.getExpressionValue(this.expression,e),!1},t}(Qn),tr=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.sourceUrlTemplate=r.sourceUrl,c.sourceUrl=tn.getFormatStringExpressionValue(c.sourceUrlTemplate,s),c.accessibilityName=tn.getFormatStringExpressionValue(c.accessibilityName,s),l&&(c.id+=l,c.displayId=c.id),c}return d(t,e),t}(Rn),nr=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(Rn),rr=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(Rn),or=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,D.logo,t,n,r,o,i)||this;return l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.getAllLogos=function(){return l.pidlDocManager.getAllLogos()},l.sourceUrl=n.sourceUrl,l.pidlDocManager=a,s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(Rn),ir=function(e){function t(t,n,r,o,i){var a=e.call(this,D.pidlContainer,t,n,r,o,i)||this;return a.linkedPidlId=n.linkedPidlId,a}return d(t,e),t}(Rn),ar=function(){this.isOptional=!1,this.resolutionPolicy=ft.always},sr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,D.secureProperty,t,n,r,o,i)||this;s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var l=n.sourceUrl,c=n.width,u=n.height,d=n.messageTimeout,p=n.frameName,h=n.displayName,m=n.propertyName,f=n.displayLogo;return s.sourceUrl=an.createFromTemplate(l),s.width=c,s.height=u,s.messageTimeout=d,s.frameName=p,s.displayName=h,s.propertyName=m,s.displayLogo=f,s.pidlDocManager=a,s}return d(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(Un),lr=function(e){function t(t,n,r,o,i){var a=e.call(this,D.iFrame,t,n,r,o,i)||this,s=n.sourceUrl,l=n.displayContent,c=n.width,u=n.height,d=n.expectedClientActionId,p=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,f=n.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=c,a.height=u,a.expectedClientActionId=d,a.messageTimeout=p,a.messageTimeoutClientAction=h,a.useAuth=m,a.loadingMessage=f,a}return d(t,e),t}(Qn);function cr(e){return!rn.isNullOrUndefined(e)&&"type"in e}function ur(e){return cr(e)&&(e.type===D.page||e.type===D.group||e.type===D.textGroup||e.type===D.dataCollectionBindingGroup||e.type===D.captcha)}function dr(e){return cr(e)&&e.type===D.captcha}function pr(e){return cr(e)&&e.type===D.page}function hr(e){return cr(e)&&(e.type===D.dropdown||e.type===D.radio||e.type===D.buttonList)}function mr(e){return cr(e)&&e.type===D.dropdown}function fr(e){return cr(e)&&e.type===D.pidlContainer}function gr(e){return cr(e)&&e.type===D.button}function vr(e){return cr(e)&&e.type===D.checkBox}function yr(e){return cr(e)&&e.type===D.group}function br(e){return cr(e)&&e.type===D.textBox}function Cr(e){return cr(e)&&e.type===D.radio}function Sr(e){return cr(e)&&e.type===D.secureProperty}function xr(e){return cr(e)&&e.isProperty()}var _r=Object.freeze({__proto__:null,ModelElement:Rn,ContainerElement:Nn,GenericGroupElement:Mn,GroupElement:Fn,DataCollectionBindingGroupElement:Bn,CaptchaContainerElement:On,GenericCaptchaElement:Ln,CaptchaElement:Hn,PageElement:Vn,TextGroupElement:zn,PropertyElement:Un,SelectionElement:Wn,DropdownElement:Gn,RadioElement:jn,ButtonListElement:qn,TextBoxElement:Kn,CheckBoxElement:Yn,FilePickerElement:Xn,GenericTextElement:Qn,TextElement:Zn,ButtonElement:Jn,AudioElement:$n,ExpressionElement:er,ImageElement:tr,SeparatorElement:nr,SpinnerElement:rr,LogoElement:or,PidlContainer:ir,SecurePropertyInitializations:ar,SecurePropertyElement:sr,IFrameElement:lr,isModelElement:cr,isContainerElement:ur,isCaptchaElement:dr,isPageElement:pr,isSelectionElement:hr,isDropdownElement:mr,isPrefillDropdownElement:function(e){return mr(e)&&e.displayType===dt.prefillControl},isPidlContainerElement:fr,isImageElement:function(e){return cr(e)&&e.type===D.image},isLogoElement:function(e){return cr(e)&&e.type===D.logo},isButtonElement:gr,isFilePickerElement:function(e){return cr(e)&&e.type===D.filePicker},isCheckBoxElement:vr,isPrefilledCheckBoxElement:function(e){return vr(e)&&e.displayType===dt.prefillControl},isPageOrGroupOrDataCollectionBindingGroup:function(e){return cr(e)&&(e.type===D.page||e.type===D.group||e.type===D.dataCollectionBindingGroup)},isGroupElement:yr,isTextGroupElement:function(e){return cr(e)&&e.type===D.textGroup},isTextBoxElement:br,isButtonListElement:function(e){return cr(e)&&e.type===D.buttonList},isRadioElement:Cr,isTextElement:function(e){var t=[D.heading,D.subheading,D.text,D.hyperlink];return cr(e)&&rn.contains(t,e.type)},isDataCollectionBindingGroup:function(e){return cr(e)&&e.type===D.dataCollectionBindingGroup},isExpressionElement:function(e){return cr(e)&&e.type===D.expression},isIFrameElement:function(e){return cr(e)&&e.type===D.iFrame},isSecurePropertyElement:Sr,isSeparatorElement:function(e){return cr(e)&&e.type===D.separator},isAudioElement:function(e){return cr(e)&&e.type===D.audio},isPropertyElement:xr}),Er=function(e,t){this.value=e,this.objectId=t},kr=function(e,t,n,r,o){var i=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<i.possibleValues.length;t++)e[t]={displayText:i.possibleValues[t].value};return e},this.getIndex=function(){return i.index},this.setIndex=function(e){i.index=e;var t=i.possibleValues[i.index];if(t)for(var n=t.objectId,r=0;r<i.associatedModelDataProperties.length;r++)i.associatedModelDataProperties[r].setCurrentObjectId(n)},this.pidlIdentity=e,this.associatedModelDataProperties=r,this.possibleValues=[],o)for(var a=0;a<o.length;a++){var s=o[a];this.possibleValues.push(new Er(s,t))}for(var l=0;l<n.objectIds.length;l++){var c=n.objectIds[l];if(c!==t){for(var u=[],d=0;d<this.associatedModelDataProperties.length;d++){var p=this.associatedModelDataProperties[d];p.setCurrentObjectId(c);var h=p.getValue();h&&u.push(h),p.setCurrentObjectId(t)}this.possibleValues.push(new Er(tn.getStringValue(u),c))}}},wr=function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]},Ir=function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]},Pr="pidlddc_object_id",Tr=function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if(rn.isArray(e))for(var n=0;n<e.length;n++)t.addId(e[n]);else if(rn.isObject(e))for(var r in e.pidlddc_object_id||(e.pidlddc_object_id=tn.guid()),e)r!==Pr&&t.addId(e[r])},this.getPropertyInstancesInternal=function(e,n,r){if(rn.isArray(n))for(var o=0;o<n.length;o++)t.getPropertyInstancesInternal(e,n[o],r);else if(rn.isObject(n)){var i=e.getPropertyName();for(var a in n){if(a===i){var s=n.pidlddc_object_id;s||(s=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var l=n[i];mr(e)&&(l=An.normalizeValueToPossibleValues(e,n[i])),r[s]=l}t.getPropertyInstancesInternal(e,n[a],r)}}},this.getPropertyInstances=function(e,n){var r={};return n&&t.getPropertyInstancesInternal(e,n,r),r},this.parsePrefillData=function(e){var n=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(n),rn.keyCount(n)>0){var r=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var o in r||(r=new Ir,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=r),n)rn.contains(r.objectIds,o)||r.objectIds.push(o);r.currentObjectId=r.objectIds[0]}},this.createPidlInfos=function(e,n){var r=n.pidlInfos[e.pidlIdentity];r||(r=new wr(n.pageIndex),n.pidlInfos[e.pidlIdentity]=r),r.pageIndex!==n.pageIndex&&(r.allPropertyOnSamePage=!1);var o=t.modelDataProperties[e.getPropertyName()];o&&r.modelDataProperties.push(o)},this.getPidlInfos=function(e){for(var n={},r=0;r<e.length;r++)An.propertiesVisitorProcessingDataProperty(e[r].children,t.createPidlInfos,{pageIndex:r,pidlInfos:n});t.pidlDocInfos=n},this.getDefaultSelectionStrings=function(e,t,n){if(e&&t){var r=t.getIdentityString(e),o=r+"_"+ue.prefillDropdownDefault,i=r+"_"+ue.prefillDropdownNew,a=(n||{})[o],s=(n||{})[i];if(a&&s){var l=[];return l.push(a),l.push(s),l}}},this.createMultiPropertySelectors=function(e,n,r,o){var i=An.findPrefillControlElement(e),a=!1;for(var s in t.pidlDocInfos){var l,c=t.pidlDocInfos[s],u=t.pidlIdentityPrefillObjectMapping[s],d=i&&c.allPropertyOnSamePage&&s===i.pidlIdentity;if(u&&u.objectIds&&c.modelDataProperties)if(d&&i.type===D.checkBox)u.objectIds.length>1&&o.error(new Dt.unexpectedError(At.unexpectedPrefillDataCount,[s,"1",u.objectIds.length.toString()])),l=new kr(s,t.defaultInstanceId,u,c.modelDataProperties),t.multiPropertySelectors[s]=l,a=!0;else if(d&&i.type===D.dropdown&&u.objectIds.length>1){var p=t.getDefaultSelectionStrings(s,r,n);l=new kr(s,t.defaultInstanceId,u,c.modelDataProperties,p),t.multiPropertySelectors[s]=l}else for(var h=0;h<c.modelDataProperties.length;h++)c.modelDataProperties[h].setDefaultObjectAsCurrent()}return a},this.getPidlInfoMatch=function(e){for(var n in t.pidlDocInfos)for(var r=t.pidlDocInfos[n].modelDataProperties,o=0;o<r.length;o++)if(e[r[o].propertyName])return t.pidlDocInfos[n]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var n=t.prefillData[e],r=t.getPidlInfoMatch(n);if(r)for(var o=0;o<r.modelDataProperties.length;o++){var i=r.modelDataProperties[o].propertyName;n[i]=n[i]?n[i]:""}}},this.getPropertyValueInternal=function(e,n,r){if(n){if(void 0===r)if(rn.isArray(n))for(var o=0;o<n.length;o++)r=r||t.getPropertyValueInternal(e,n[o],r);else if(rn.isObject(n)||n.hasOwnProperty(e))for(var i in n)e===i?r=n[i]:void 0===r&&(r=t.getPropertyValueInternal(e,n[i],r));return r}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,n,r,o,i,a){var s=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=r,t.getPidlInfos(n),t.prefillData&&(t.fillPrefillData(),An.propertiesVisitorProcessingDataProperty(n,t.parsePrefillData),s=t.createMultiPropertySelectors(n,o,i,a)),{multiPropertySelectors:t.multiPropertySelectors,editable:s}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e},Dr=function(e,t,n,r){var o=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){o.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in o.objectIdValuesMapping)if(e!==o.defaultObjectId)break;var t=null;e&&(t=o.objectIdValuesMapping[e]),o.objectIdValuesMapping[o.defaultObjectId]=t,o.objectId=o.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&o.modelElement&&o.modelElement.hidden()&&o.modelElement.defaultValue&&(e=o.modelElement.defaultValue),o.objectId!==o.defaultObjectId&&e!==o.objectIdValuesMapping[o.objectId]&&(o.objectId=o.defaultObjectId,t=!0),o.objectIdValuesMapping[o.objectId]=e,t},this.getValue=function(e,t){var n=o.objectIdValuesMapping[o.objectId];if(hr(o.modelElement)&&rn.isObject(o.modelElement.possibleOptions)){if(!o.modelElement.possibleOptions[n])return An.normalizeValueToPossibleValues(o.modelElement,n);if(e&&t&&n&&o.modelElement.possibleOptions[n].pidlAction)return o.modelElement.possibleOptions[n].pidlAction.context}return n},this.isEditable=function(e){return(o.objectId===o.defaultObjectId||e)&&(!o.modelElement||!o.modelElement.disabled())},this.setInstances=function(e){o.objectIdValuesMapping=tn.extend(o.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=r,this.editState=pe.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=n},Ar=function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,n,r){if(rn.isArray(n)){for(var o=0;o<n.length;o++)if(t.getInstancePropertyValue(e,n[o],r))return!0}else if(rn.isObject(n))for(var i in n){if(i===e)return r[e]=n[e],!0;if(t.getInstancePropertyValue(e,n[i],r))return!0}},this.getDisplayPropertyValueInternal=function(e){var n=t.displayData&&t.displayData.details&&t.displayData.details[e];if(n)return n;var r=t.modelDataProperties[e];if(r){var o=r.modelElement;if(o&&o.possibleOptions){var i=r.getValue(),a=o.possibleOptions[i];if(a)return a.displayText}}},this.maskPropertyValueFlagExists=function(e){var n=t.modelDataProperties[e];return n&&n.modelElement&&n.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,n){var r=e.getPropertyName();if(n.userData.hasOwnProperty(r)){var o=n.userData[r],i=t.getMaskedPropertyValue(r);if(!i||o!==i){var a=t.modelDataProperties[r];o!==a.getValue(!1)&&n.conflictingInputValueReporter&&n.conflictingInputValueReporter(r),a.setValue(o)}}},this.updateModelElement=function(e){var n=e.getPropertyName(),r=t.modelDataProperties[n];r||(t.populateInternal(e),r=t.modelDataProperties[n]);var o=r.modelElement;if(o&&e.pidlIdentity!==o.pidlIdentity){r.modelElement=e;var i=t.multiPropertySelectors[o.pidlIdentity];i&&(t.multiPropertySelectors[e.pidlIdentity]=i,i.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[o.pidlIdentity])}},this.populateInternal=function(e){var n={},r=e.getPropertyName();t.modelDataProperties[r]||(n[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[r]=new Dr(r,t.defaultInstanceId,n,e))},this.getPropertyInternal=function(e,n,r){var o=!0,i=null,a=t.modelDataProperties[e];return a?(i=a.getValue(n,r),o=a.isEditable(t.editablePrefillData)):i=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:i,editable:o,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var n in t.modelDataProperties)e.hasOwnProperty(n)&&t.modelDataProperties[n].setValue(e[n])},this.removeClientAction=function(e){if(e){var t=rn.deepCopy(e);return delete t.clientAction,t}return e},this.setPrefillData=function(e,n,r,o){if(e.elements&&n){var i=t.inputPrefillDataManager.parse(n,e.elements,t.modelDataProperties,r,e.pidlDocManager,o);t.multiPropertySelectors=i.multiPropertySelectors,t.editablePrefillData=i.editable,t.setPrefillDataInPartnerDataSource(n)}},this.setPrefillDataInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.prefillData=e,t.setPartnerData(n)},this.setInputParametersInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.inputParameters=e,t.setPartnerData(n)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,n,r){n&&e&&e.elements&&An.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:n,conflictingInputValueReporter:r})},this.updateModelElements=function(e){e&&An.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,n,r){var o=t.getPropertyInternal(e,n,r);if(o)return o.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,n){var r=t.multiPropertySelectors[e];r&&r.setIndex(n)},this.getMultiPropertySelectorIndex=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,n){t.dataStore.saveDataSource(e,n)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData($t.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){An.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var n={properties:{}};return An.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r=e.getPropertyName(),o=t.modelDataProperties[r];o&&(n.properties[r]=o)}),n),n.properties},this.setInputInstance=function(e,n){n&&(An.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r={},o=e.getPropertyName();t.getInstancePropertyValue(o,n.inputInstanceDetails,r)&&t.modelDataProperties[o].setValue(r[o])}),{inputInstanceDetails:n}),t.inputInstance=n)},this.setPrimaryResourceResponse=function(e,n){var r=[];n&&n.length&&n.forEach((function(e){return r.push(t.removeClientAction(e))})),t.resourceResponse={primary:t.removeClientAction(e),secondary:r}},this.retrieveFromCache=function(e,n){if(e=e||t.pidlDocManager.getPidlIdentity()){var r=t.dataStore.readModelData($t.createIdentityHash(e));if(n)for(var o=0;o<n.length;o++)r.hasOwnProperty(n[o])&&delete r[n[o]];if(r)return t.setJumpbackData(r),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=tn.guid(),this.inputPrefillDataManager=new Tr(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new In},Rr=new function(){this.luhn=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){var o=parseInt(e.charAt(r));n&&(o*=2)>9&&(o-=9),t+=o,n=!n}return t%10===0}},Nr=function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise((function(n,r){var o=[],i=0,a=function(){if(++i===e.length){var r=o.length?o[0].error:null;r=o.length&&t?t(r):r,n({innerErrors:o,error:r})}};e.forEach((function(e){e.then((function(e){e.error&&o.push(e),a()})).catch((function(e){o.push({error:new Dt.unexpectedError(e)}),a()}))}))})):pn({innerErrors:[]})}},Mr=new Nr,Fr=function(){var e=this;this.validateUserInputDataFromService=function(e,t,n,r,o,i){var a=an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.validation.endpoint),[i]),s={value:r,propertyName:n};t&&(s.urlValidationType=t);var l=JSON.stringify(s),c=xn.getDefaultHttpHeaders(e);return c[Q.msFlight]="pxpidl",new Promise((function(t,r){xn.post(e,!0,a,c,l,(function(e){var r=rn.equalsIgnoreCase(e.status,x.Passed)?null:new Dt.propertyValidationFailedError(At.propertyValidationFailed,e.errorCode,n,[n,e.errorCode]);t({error:r})}),(function(e){t({error:new Dt.propertyValidationFailedError(At.propertyValidationFailed,q.empty,n,[n,q.empty])})}),o,rt.virtualEndpoints.validation.operation,rt.virtualEndpoints.validation.description,!0).catch(un)}))},this.validateUserInputDataInternal=function(t,n,r,o,i){var a=n.data_description,s=[];for(var l in a){var c=a[l];if(Ht(c)){var u=c&&c.length&&c[0];u&&(s=s.concat(e.validateUserInputDataInternal(t,u,r[l],o,i)))}else{if(c.displayOnly||o===it.update&&!c.is_updatable)continue;var d=null;if(i){var p=i.getModelDataProperty(l);p&&(d=p.modelElement)}s.push(e.validatePropertyFromPropertyDescription(t,d,Xt.getPropertyValueFromInputData(r,l),o,l,c))}}return s},this.validatePropertyFromPropertyDescription=function(t,n,r,o,i,a){var s=x.Passed,l=null,c=null;if((null===n||void 0===n?void 0:n.type)===D.secureProperty)c=n.validate().then((function(e){return e?{error:new Dt.propertyValidationFailedError(At.propertyValidationFailed,e,a.display_property||i,[a.display_property||i,e])}:{error:null}}));else if(r){if(a.validation||a.validations)for(var u=null==a.validations?[a.validation]:a.validations,d=0;d<u.length&&s===x.Passed;d++)switch(u[d].validationType){case at.regex:var p=new RegExp(u[d].regex);n&&n.type&&n.type===D.filePicker?r&&r.name&&!1===p.test(r.name)&&(s=x.Fail,l=u[d].error_code):!1===p.test(r)&&(s=x.Fail);break;case at.function:Rr[u[d].function]&&Rr[u[d].function](r)||(s=x.Fail,l=u[d].error_code);break;case at.service:c=e.validateUserInputDataFromService(t,u[d].urlValidationType,i,r,o,u[d].url);break;case at.size:var h=u[d].maxFileSize;n&&n.type&&n.type===D.filePicker&&r&&r.size&&r.size>h&&(s=x.Fail,l=u[d].error_code)}}else a.is_optional||(s=x.Fail,l=q.empty);return c||(c=pn({error:s===x.Passed?null:new Dt.propertyValidationFailedError(At.propertyValidationFailed,l,a.display_property||i,[a.display_property||i,l])})),c},this.validateUserInputData=function(t,n,r,o,i){var a=e.validateUserInputDataInternal(t,n,r,o,i);return Mr.aggregateCommerceResults(a)},this.validateUserInputProperty=function(t,n,r,o){var i=e.validatePropertyFromPropertyDescription(t,n,r,o,n.getPropertyName(),n.dataDescription);return Mr.aggregateCommerceResults([i])}},Br=new Fr,Or=function(e,t){var n=this;this.shouldValidateProperty=function(e,t){if(n.alwaysValidateOnChange)return!0;var r=e.editState,o=e.modelElement;if(!o||o.type!==D.textBox&&o.type!==D.dropdown&&o.type!==D.checkBox&&o.type!==D.secureProperty)return r===pe.clean?""!==e.getValue():t===he.editing||t===he.finished;switch(r){case pe.clean:return!1;case pe.editing:return t===he.finished;case pe.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==j.dirtyOnly||e===pe.dirty},this.getUpdatedPropertyState=function(e,t){var n=e.editState,r=e.modelElement;if(!r||r.type!==D.textBox&&r.type!==D.dropdown&&r.type!==D.checkBox&&r.type!==D.secureProperty)return n===pe.clean&&""!==e.getValue()?pe.dirty:null;switch(n){case pe.clean:return t===he.editing?pe.editing:null;case pe.editing:return t===he.finished?pe.dirty:null;case pe.dirty:return null}},this.validatePropertyValue=function(e,t){return Br.validateUserInputProperty(n.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,r,o){var i=[];for(var a in e){var s=e[a];n.shouldValidatePropertyInPageValidation(s.editState,t)&&i.push(n.validatePropertyValue(s,r).then((function(t){var n=t.error;if(n){var r=e[n.propertyName];if(r){var i=r.modelElement;(xr(i)||Sr(i))&&(n.message=i.getErrorMessage(r.getValue(),n.errorCode)),r.editState=pe.dirty,o.push(n)}}})).catch((function(){return un})))}return i},this.validateProperty=function(e,t,r){var o=n.shouldValidateProperty(e,t),i=n.getUpdatedPropertyState(e,t);return i&&(e.editState=i),new Promise((function(i,a){o?n.validatePropertyValue(e,r).then((function(r){var o=r.error;if(o){var a=e.modelElement;(xr(a)||Sr(a))&&(o.message=a.getErrorMessage(e.getValue(),o.errorCode)),n.eventHub.error(o,t)}else n.eventHub.propertyValidated(e.propertyName,t);i()})).catch((function(){return un})):i()}))},this.clearElementEditState=function(e){e.editState=pe.clean},this.validatePage=function(e,t,r){return t===j.all&&n.eventHub.inputValidating(),e?new Promise((function(o,i){var a=[],s=n.validatePageElements(e,t,r,a);Promise.all(s).then((function(){if(a.length){var e=new Dt.formValidationFailedError(t===j.all?At.formValidationFailed:At.editedPropertiesValidationFailed,"",a,[""]);n.eventHub.error(e),i(e)}else o(),t===j.all&&n.eventHub.inputValidated()}),(function(){i()}))})):(t===j.all&&n.eventHub.inputValidated(),pn())},this.eventHub=e,this.alwaysValidateOnChange=t},Lr=function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}},Hr=new Lr,Vr={name:"HMAC",hash:{name:"SHA-256"}},zr=function(){var e=this;this.init=function(){var t=Hr.getCryptoSubtleInstance();return t?new Promise((function(n,r){t.generateKey(Vr,!0,["sign"]).then((function(r){e.hmacKey=r,t.exportKey("raw",e.hmacKey).then((function(t){var r={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(o){r.error=new Dt.unexpectedError(At.hmacError,[o&&o.message])}n(r)}),(function(e){n({error:new Dt.unexpectedError(At.hmacError,[e&&e.message])})}))}),(function(e){n({error:new Dt.unexpectedError(At.hmacError,[e&&e.message])})}))})):pn({error:new Dt.unexpectedError(At.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var n=Hr.getCryptoSubtleInstance();return n&&e.hmacKey?new Promise((function(r,o){for(var i=new Uint8Array(t.length),a=0;a<t.length;a++)i[a]=t.charCodeAt(a);n.sign(Vr,e.hmacKey,i).then((function(e){var t=null;try{var n=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,n))}catch(o){r({error:new Dt.unexpectedError(At.hmacError,[o&&o.message])})}r({data:t})}),(function(e){r({error:new Dt.unexpectedError(At.hmacError,[e&&e.message])})}))})):pn({error:new Dt.unexpectedError(At.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return Vr},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null},Ur=function(){var e=this;this.doServerTokenization=function(e,t,n,r,o){return new Promise((function(i,a){var s=o?rt.virtualEndpoints.tokenizationEdge:rt.virtualEndpoints.tokenization,l=an.buildUrl(rt.getServiceEndpoint(s.endpoint),[t,"getToken"]);return xn.post(e,!0,l,xn.getDefaultHttpHeaders(e),'{ "data": "'+n+'" }',(function(e){i({data:e.data})}),(function(e){(e=e||{status:x.Fail}).failureObject=e.failureObject||{},e.failureObject.code=W.tokenizationFailed;var t=" ";if(rn.isString(n))for(var r=0;r<n.length;r++){var o=n.charCodeAt(r);t+=o>=48&&o<=57?"d":"c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,i({error:new Dt.serverError(At.tokenizationFailed,l,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})}),r,s.operation,s.description).catch((function(e){i({error:new Dt.unexpectedError(At.tokenizationFailed,[e.message])})}))}))},this.serverTokenization=function(t,n,r,o,i,a){return r.propertyTokenizing(n,an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(r,t.token_set,o[n],i,a).then((function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}}))},this.doFileUpload=function(e,t,n,r,o){var i=n.hmacContext;return new Promise((function(n,a){var s=rt.virtualEndpoints.payeeTaxProfile;return xn.post(e,!0,o,xn.getPayeeFileUploadHttpHeaders(e,i.userCredential),t,(function(e){n({data:e.filename})}),(function(e){(e=e||{status:x.Fail}).failureObject=e.failureObject||{},e.failureObject.code=W.fileUploadFailed,n({error:new Dt.serverError(At.fileUploadFailure,o,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})}),r,s.operation,s.description).catch((function(e){n({error:new Dt.unexpectedError(At.fileUploadFailure,[e.message])})}))}))},this.composePayeeFileUploadPayload=function(e,t){var n=new FormData;return n.append("file",e[t]),n.append("payeeid",e.payee_id),n.append("taxprofileid",e.tax_profile_id),n},this.fileUpload=function(t,n,r,o,i,a,s){var l=e.composePayeeFileUploadPayload(o,n),c=an.createFromTemplate(s);return r.fileUploading(n,c),e.doFileUpload(r,l,i,a,c).then((function(e){return e.error||(o[n]=e.data,r.fileUploaded(n)),{error:e.error}}))},this.msrCryptoEncryption=function(e,t,n,r){var o,i,a,s;n.propertyTokenizing(t,"");var l=e&&e.dataProtection&&e.dataProtection.parameters;if("undefined"!==typeof msrCrypto||l&&!l.encryptionLibrary)i=pn();else{a=l&&l.encryptionLibrary||void 0;var c=l&&l.encryptionLibraryUrl||an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.msrCryptoJS.endpoint),[a]);i=xn.loadScript(c)}if("undefined"!==typeof encryption)o=pn();else{s=l&&l.encryptionScript||void 0;var u=l&&l.encryptionScriptUrl||an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.encryptJS.endpoint),[s]);o=xn.loadScript(u)}return i.then((function(){return o.then((function(){return"undefined"===typeof encryption?{error:new Dt.unexpectedError(At.msrEncryptionFailed,["Fail to initialize "+s+" instance"])}:new Promise((function(o,i){encryption.Encrypt(e,r[t],(function(e){r[t]=e,n.propertyTokenized(t),o({})}),(function(e){i(e)}))})).catch((function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new Dt.serverError(At.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new Dt.serverError(At.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+a+" script file: "+JSON.stringify(e);return{error:new Dt.serverError(At.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.payPalHECEncryption=function(e,t,n,r,o){var i;if(n.propertyTokenizing(t,""),"undefined"!==typeof PayPalCrypto)i=pn();else{var a=e&&e.dataProtection&&e.dataProtection.parameters,s=a&&a.encryptionScriptUrl;if(!s){var l=a&&a.encryptionScript||"paypalEncrypt.js";s=an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.paypalEncryptJS.endpoint),[l])}i=xn.loadScript(s)}var c=e;return i.then((function(){return"undefined"===typeof PayPalCrypto?{error:new Dt.unexpectedError(At.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise((function(e,i){PayPalCrypto.Encrypt(c,o,r[t],(function(o){r[t]=btoa(String.fromCharCode.apply(null,o)),n.propertyTokenized(t),e({})}))}))})).catch((function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new Dt.serverError(At.tokenizationFailed,null,null,null,t,null,[t])}}))},this.customEncryption=function(t,n,r,o,i,a,s){r.propertyTokenizing(n,"");var l=t;return new Promise((function(t,s){return m(e,void 0,void 0,(function(){var e;return g(this,(function(s){switch(s.label){case 0:return[4,a.encrypt(l,i,o[n])];case 1:return e=s.sent(),o[n]=e,r.propertyTokenized(n),t({}),[2]}}))}))})).catch((function(e){var t="".concat(s,"\n").concat(JSON.stringify(e));return{error:new Dt.serverError(At.tokenizationFailed,null,null,null,t,null,[t])}}))},this.createHmacSignatureInternal=function(t,n,r,o,i,a,s){return t.init().then((function(l){if(l.error)return{error:l.error};var c=t.getRawKey(),u="Pan:"+i.pan+"|HMACKey:"+c+"|UserCredential:"+i.userCredential,d={keyToken:null,data:null};return e.doServerTokenization(n,Te.token,c,a,s).then((function(e){return e.error?e:(d.keyToken=e.data,t.sign(u))})).then((function(e){return e.error||(d.data=e.data,o[Te.userCredential]=i.userCredential,o[r]={algorithm:Te.algorithm,keyToken:d.keyToken,data:d.data}),{error:e.error}}))}))},this.getHmacSignatureFromSecurePX=function(e,t,n,r){var o=n;return new Promise((function(n,i){o.createHmacSignature("Pan",r).then((function(o){t[Te.userCredential]=r,t[e]=o.value,n({})})).catch((function(e){n({error:new Dt.serverError(At.hmacError,null,null,null,e.message,null,[e.message])})}))}))},this.createHmacSignature=function(t,n,r,o,i,a){var s=o.hmacContext;return Hr.isSupported()&&s&&s.userCredential?s.panElement&&s.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(n,r,s.panElement,s.userCredential):s.pan?e.createHmacSignatureInternal(new zr,t,n,r,s,i,a):(r[n]=null,pn({})):(r[n]=null,pn({}))},this.tokenizeUserInputDataInternal=function(t,n,r,o,i,a,s){var l=n.data_description,c=i||n.clientContext,u=[];for(var d in l){var p=l[d];if(Ht(p)){var h=p&&p.length&&p[0];if(h){var m=e.tokenizeUserInputDataInternal(t,h,r[d],o,c,a,s);u=v(v([],u,!0),m,!0)}}else{if(p.displayOnly||o===it.update&&!p.is_updatable)continue;if(p.token_set&&!p.token_set.startsWith(Ue.tokenizationValuePrefix)||p.dataProtection)if(r.hasOwnProperty(d)){var f=p.dataProtection&&p.dataProtection.protection_type&&rn.isString(p.dataProtection.protection_type)&&p.dataProtection.protection_type.toUpperCase(),g=p.token_set&&rn.isString(p.token_set)&&p.token_set.toUpperCase();if("HMACSIGNATURE"===f)u.push(e.createHmacSignature(t,d,r,a,o,p.useEdgeTokenization));else if("MSRENCRYPT"===f)u.push(e.msrCryptoEncryption(p,d,t,r));else if("PAYPALENCRYPTION"===g)s&&s[mn.PayPal]?u.push(e.customEncryption(p,d,t,r,c,s[mn.PayPal],"HEC Encryption failed.")):u.push(e.payPalHECEncryption(p,d,t,r,c));else if("FILEUPLOAD"===g){var y=a.fileUploadUrls[d];u.push(e.fileUpload(p,d,t,r,a,o,y))}else u.push(e.serverTokenization(p,d,t,r,o,p.useEdgeTokenization))}else p.is_optional||u.push(pn({error:new Dt.unexpectedError(At.tokenizationError,["DataDescription contains a required field '"+d+"' which is missing in the userInputData passed in."])}))}}return u},this.getFileUploadUrlsInDisplayDescription=function(t,n){if(t&&(Ft(t)&&(n[t.propertyName]=null===t||void 0===t?void 0:t.uploadUrl),Mt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getFileUploadUrlsInDisplayDescription(t.members[r],n)},this.getFileUploadUrlsInPidlDoc=function(t){var n={};if(t&&t.displayDescription&&t.displayDescription.length)for(var r=0;r<t.displayDescription.length;r++){var o=t.displayDescription[r];e.getFileUploadUrlsInDisplayDescription(o,n)}return n},this.tokenizeUserInputData=function(t,n,r,o,i,a,s){void 0===s&&(s=null);var l={hmacContext:{userCredential:i,pan:r&&r.details&&r.details.accountToken,panElement:s&&s.getPropertyModelElement("accountToken")}};l.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(n);var c=e.tokenizeUserInputDataInternal(t,n,r,o,null,l,a);return Mr.aggregateCommerceResults(c,(function(e){return e.code===At.tokenizationFailed.code?e:new Dt.unexpectedError(At.tokenizationFailed,[e.message])}))}},Wr=new Ur,Gr=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.elements=[],this.resources=null,this.getSubmitButton=function(){var e=t.getCurrentPage().children,n=An.findElement(e,(function(e){if(yr(e)&&e.isSubmitGroup)return!0}));if(!n&&!t.callbacks.submit)return t.eventHub.failure(new Dt.unexpectedError(At.missingSubmitActionInPidlDoc)),null;if(n){var r=An.findElement([n],(function(e){for(var t=!1,n=gr(e)&&e.pidlAction;!t&&n;)t=t||"submit"===n.type||n.type===B.successWithSelectedPidlAction||n.type===B.successWithPidlPayload||n.type===B.success||n.type===B.propertyBindingAction||n.type===B.mergeData,n=n.nextAction;return t}));return gr(r)&&r}},this.getDataSources=function(e,n,r){var o=[];return(r=r||$t.getDataSourceLinks(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&r.length&&r.forEach((function(r){for(var i in r)t.modelData.getDataSource(i)||o.push(t.getResourceData(i,r[i],e,n))})),Promise.all(o)},this.populateModelInternal=function(e){t.resources=new kn(t.pidlDocManager);var n=Tn.createModelElements(t.pidlDocManager,e);return Tn.isErrorObject(n)?n.error:(n.warnings&&n.warnings.forEach((function(e){t.eventHub.error(e)})),t.elements=n.elements,t.setupSecureFields(),null)},this.populateModel=function(e,n,r,o,i){var a=t.populateModelInternal(e);if(a)return t.eventHub.pageRendering(void 0),t.eventHub.failure(a),hn(a);t.eventHub.pageRendering(An.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),o&&t.modelData.retrieveFromCache(o,i);var s=[];n&&(r?s.push(t.transformResourceInstance(t.elements,n).then((function(){t.modelData.setInputInstance(t.elements,n),An.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}))):t.modelData.setPrefillData(t,n,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(n);var l=t.pidlDocManager.getPidlPayload();if(l){for(var c in l)c!==ee.pidlInfo&&t.modelData.setDataSource(c,l[c]);An.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else s.push(t.getDataSources(e,{modelData:t.modelData}).then((function(){An.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})));return Promise.all(s).then((function(){t.eventHub.modelUpdated(!0)}))},this.populateModelOnInternalCallback=function(e){var n=t.populateModelInternal(e);if(n)return t.eventHub.failure(n),n;t.modelData.updateModelElements(t.elements),An.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var n=e.children;n&&n.forEach((function(e){if(null===e||void 0===e?void 0:e.isSecureProperty()){var n=e;n&&(n.validationPromise=function(){return t.postSecureFieldMessage(n.frameName,ze.validate,"")},n.submitPromise=function(e){return t.postSecureFieldMessage(n.frameName,ze.prepareForSubmit,{tokenSet:e})},n.createHmacSignature=function(e,r){return t.postSecureFieldMessage(n.frameName,ze.createHmacSignature,{tokenSet:e,userCredentials:r})},n.setFocus=function(){return t.postGuaranteedSecureFieldMessage(n.frameName,ze.applyFocus,"")})}else(null===e||void 0===e?void 0:e.type)===D.group&&t.setupSecureFieldsRecursive(e)}))}},this.privateEventHandler=function(e,n){switch(e){case H.success:n&&n.operationType&&(n.operationType===it.add||n.operationType===it.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case H.failure:case H.gohome:t.clearAll()}},this.handleSuccess=function(e,n){t.pidlDocManager.clearCache(),e&&$t.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,n);var r=e&&e.clientAction;if(r)return t.handleClientAction(r,e);var o=(t.pidlDocManager.getNextPidlRef()||{href:null}).href;if(!o)return t.eventHub.success(t.createSuccessEventPayload()),pn();var i=an.getRestMethodUrl(o,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,i,xn.getHttpHeaders(t.eventHub,t.userContext,null,o,{modelData:t.modelData})).then((function(e){return e&&e.type?t.handleClientAction(e):t.populate()}),(function(e){return t.eventHub.failure(tn.createServerError(At.pidlDocDownloadFailed,i.url,e,[e.errorMessage])),hn(e)}))},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),n={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(n.secondaryResponses=e.secondary),n},this.handleServerError=function(e,n,r){var o=e.targettedInnerErrors,i=void 0===o?[]:o,a=e.clientAction;if(i.length||a){var s=pn();return a&&(s=t.doErrorNextClientAction(new Dt.serverError(At.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),s.then((function(){var n=[],o="";i.forEach((function(e){e.message===me.empty&&(e.message="");var i=rn.isString(e.target)?e.target.split(","):[];i=$t.translateErrorTargetsToDisplayProperties(i,r);var a=An.getParentIfSame(t.elements,i),s=a&&a.children&&a.children.length===i.length&&a.layoutOrientation===pt.inline?a.displayId:null;tn.createPropertyErrors(i,s,An.findFirstMatchingProperty(t.elements,i),e,n),o||i.length||(o=e.message)}));var a=e.innerError,s=a&&a.message!==me.empty?e.innerError.message:o;return t.clearElementEditStates(),t.handleRetryableError(new Dt.formValidationFailedError(At.formSubmissionFailedBadUserInput,s,n,[s]),!0)}))}return hn(new Dt.serverError(At.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))},this.handleRetryableError=function(e,n){var r=pn(),o=e.errors;if(o&&o.length){var i=n?-1:t.pageIndex;e.errors.forEach((function(e){var n=e,r=t.getPropertyPageIndex(n.propertyName);i=-1===i||r>=0&&r<i?r:i})),i>=0&&(i<t.pageIndex||n)&&(r=t.moveToPageIndex(i))}return r.then((function(){return t.eventHub.error(e),{error:e}}))},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow()},this.clearElementEditStates=function(){t.elements.forEach((function(e){var n=t.modelData.getModelDataProperties([e]);for(var r in n)t.validator.clearElementEditState(n[r])}))},this.handleRestartFlow=function(){var e=t.pageIndex,n=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,n)},this.handleRenderPidlClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];var i=t.pageIndex,a=t.getCurrentPage(),s=t.clearFlow(),l=pn();if(Ht(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(Gt(e.context)){var c=e.context.resourceActionContext,u=tn.getPidlOperationType(c.action);t.pidlDocManager.setOperationInfo({operationType:u}),l=t.downloadPidlDocument(an.getPidlDocUrl(t.userContext,u,c.pidlDocInfo),c.pidlDocInfo)}return l.then((function(){return t.populate(n,r,i,a,e.pidlRetainUserInput?s:void 0,rn.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then((function(){if(e.pidlError){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc(),r=tn.parseServerError(void 0,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:x.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(r,void 0,n).then((function(){return pn()}))}}))}))},this.handleRenderPidlPageClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ht(e.context)&&e.context.length>0){var i=e.context[0],a=Tn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(a&&a.length>0)return t.modelData.updateModelElements(a),t.elements.splice(t.pageIndex+1,0,a[0]),t.moveNextPage().then((function(){return t.eventHub.renderedPidlPage(),pn()}))}},this.handleRenderModalClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ht(e.context)&&e.context.length>0){var i=e.context[0],a=Tn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(a&&a.length>0){t.modelData.updateModelElements(a);var s=t.getCurrentPage();if(s&&s.children&&s.children.length>0){var l=s.children[s.children.length-1];yr(l)&&l.isModalGroup&&s.children.pop()}s.children=v(v([],s.children,!0),a[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,n,r){void 0===r&&(r=null);var o,i=e,a=t.urls,s=a.success,l=a.failure;if(i&&i.noCallbackParams){if(i&&i.baseUrl&&(o=an.createFromTemplate(i.baseUrl)),o)return o;n&&t.eventHub.failure(new Dt.unexpectedError(At.noRedirectUrlToNavigate))}else if(s&&l){var c=s,u=l;if(i&&i.baseUrl)o=an.createFromTemplate(i.baseUrl),c=an.addQueryStringParameters(c,i.successParams),u=an.addQueryStringParameters(u,i.failureParams);else if(rn.isString(e)){o=an.createFromTemplate(e);var d=t.modelData.getPrimaryResourceResponseId();d&&(c=an.addQueryParameter(c,"id",d),c=ln.additionalRedirectParams(c,r))}if(o)return o+="?ru="+(c=encodeURIComponent(c))+"&rx="+(u=encodeURIComponent(u));n&&t.eventHub.failure(new Dt.unexpectedError(At.noRedirectUrlToNavigate))}else if(n){var p=s?"urls.failure":"urls.success";t.eventHub.failure(new Dt.inputParameterValidationFailedError(At.inputParameterMissing,p,[p]))}},this.handleSecureFieldMessage=function(e,n){if(e&&e.data&&e.data.source&&e.data.source===Ue.secureFieldMessageSource&&e.data.event){var r,o,i;switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case Ve.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),r=t.modelData.getModelDataProperty(e.data.field);var a=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.init,a),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.clearState,""),0);var s=r.modelElement.getResolvedLogo(),l="";s&&"accountToken"===e.data.field&&t.hasPidlResolved&&(l="background-image: url(".concat(s,"); background-repeat: no-repeat; background-position: right center; ")),l&&t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.applyCss,l),0);var c=r.modelElement.placeHolderText();c&&t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.applyPlaceholder,c),0);break;case Ve.initCompleted:t.queuedIFrameLoadedPromises.forEach((function(t){t.id===e.data.field&&t.resolve()})),t.queuedIFrameLoadedPromises=t.queuedIFrameLoadedPromises.filter((function(t){return t.id!==e.data.field}));break;case Ve.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,r=t.modelData.getModelDataProperty(e.data.field),o=t.updatePropertyValue(r.modelElement,e.data.payload,he.finished,!1).then((function(){var n=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.init,n),0);var o=r.modelElement.getResolvedLogo(),i="";o&&(i="background-image: url(".concat(o,"); background-repeat: no-repeat; background-position: right center; ")),i&&t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.applyCss,i),0),t.updatePropertyValue(r.modelElement,e.data.payload,he.finished,!1).catch((function(e){}));var a=r.modelElement.placeHolderText();a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(ze.applyPlaceholder,a),0);var s=t.modelData.getModelDataProperty("cvvToken");return n=t.getSecurePropertyInitializationPayload(s),t.guaranteedPostMessage("cvvToken",t.buildMessage(ze.init,n),0),t.updatePropertyValue(s.modelElement,"",he.finished,!1)})).catch((function(e){t.secureFieldResolved=!1})),n)return o;break;case Ve.valueUpdated:var u=e.data.payload.editState,d=e.data.payload.operationType;if((r=t.modelData.getModelDataProperty(e.data.field)).editState=u,o=t.updatePropertyValue(r.modelElement,"",d,!1),n)return o;break;case Ve.readyForSubmit:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i){if(e.data.payload.error)return void t.eventHub.failure(new Dt.unexpectedError(At.tokenizationFailed,[e.data.payload.error]));var p={value:e.data.payload.value,propertyName:e.data.field};i.resolve(p)}else t.eventHub.failure(new Dt.unexpectedError(At.secureFieldPromiseNotFound));break;case Ve.validationCompleted:i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i?i.resolve(e.data.payload):t.eventHub.failure(new Dt.unexpectedError(At.secureFieldPromiseNotFound));break;case Ve.hmacSignatureCreated:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i){if(e.data.payload.error)return void t.eventHub.failure(new Dt.unexpectedError(At.hmacError,[e.data.payload.error]));p={value:e.data.payload.value,propertyName:e.data.field};i.resolve(p)}else t.eventHub.failure(new Dt.unexpectedError(At.secureFieldPromiseNotFound));break;default:var h=new Dt.unexpectedError(At.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(h)}}else{var m=new Dt.unexpectedError(At.unexpectedSecureFieldMessage);t.eventHub.failure(m)}},this.handleClientAction=function(e,n,r){var o;switch(t.eventHub.clientActionInvoked(null===e||void 0===e?void 0:e.type,{originator:r}),e.type){case lt.None:t.eventHub.success(t.createSuccessEventPayload());break;case lt.Redirect:var i=t.getLinkActionUrl(e.context,!0,n);if(i){var a=t.pageIndex,s=t.getCurrentPage()||{};if(e.redirectPidl)return t.eventHub.navigate("",i,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(n,!0,a,s);t.eventHub.navigate("",i,!0,e.context,null)||(t.eventHub.redirecting(i),Zt.getRedirectionService().redirect(i)),t.clearFlow()}break;case lt.Pidl:return t.handleRenderPidlClientAction(e,n,!0);case lt.ReturnContext:e.context?t.eventHub.success(e.context):(o=new Dt.unexpectedError(At.invalidReturnContextPidl),t.eventHub.failure(o));break;case lt.GoHome:t.eventHub.gohome();break;case lt.Failure:var l=tn.createServerErrorFromIPxServiceError(r===y.iFrameMessageHandler?At.iFrameReturnedFailure:At.failureClientActionReturned,e.context);t.eventHub.failure(l);break;case lt.PidlModal:t.handleRenderModalClientAction(e,n,!0);break;case lt.PidlPage:return t.handleRenderPidlPageClientAction(e,n,!0);case lt.MergeData:if(e.context&&e.context.payload){var c=e.context.payload;t.modelData.updateUserData(c),t.eventHub.modelUpdated(!1)}break;case lt.RestAction:if(e.context)return t.invokeRestMethod(e.context);default:o=new Dt.unexpectedError(At.unknownClientActionType,[e.type]),t.eventHub.failure(o)}return o?hn(o):pn()},this.doErrorNextClientAction=function(e,n){switch(n.type){case lt.None:return pn();case lt.Pidl:return t.handleRenderPidlClientAction(n,null,!1).then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()}));default:return hn(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var n=t.view.getPageElementValues();for(var r in n){var o=t.getPropertyModelElement(r),i=n[r];br(o)&&(!t.showMaskedValues||!o.maskDisplay)&&o.displayTransformations&&o.displayTransformations.forModel&&rn.isString(i)&&(n[r]=tn.applyDisplayTransformation(o.displayTransformations.forModel,i)||n[r])}var a=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,n,a)},this.resolveKeyProperty=function(e){for(var n in e){var r=e[n];if(r&&xr(r.modelElement)){var o=r.modelElement,i=o.isKeyProperty&&!o.hidden()&&r.getValue();if(i)return t.updateResolvedPidlDoc(i,o,he.finished)}}return pn(!0)},this.validatePage=function(e){var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===j.all&&t.resolveKeyProperty(n)||pn()).then((function(){return n=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(n,e,t.operationType)}))},this.getClientDataProperties=function(){var e={sessionId:tn.guid()};if(t.operationOptions){var n=t.operationOptions,r=n.sessionId,o=n.riskData;r&&(e.sessionId=r),o&&o.greenId&&(e.greenId=o.greenId)}return e},this.getInputDataFromResponse=function(e,t,n){for(var r in t){var o=t[r];if(o.match&&o.match(new RegExp("^{(.)*}$"))){var i=o.substring(1,o.length-1);if(!n||!n[i])return new Dt.unexpectedError(At.expectedPayloadValueNotPresentInServerResponse);e[r]=n[i]}else e[r]=o}return null},this.invokeSubmitRequest=function(e,n,r){void 0===r&&(r=!0);var o=t.callbacks.submit,i=t.transformers.submissionSuccessTransformer;if(r&&o&&($t.isPrimaryResource(e)||!n.url))return new Promise((function(r,i){o(n,{pidlDoc:e},(function(e){r(e)}),(function(r,o){i(tn.parseCustomSubmitError(r,o,n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))}))}));if(!n.url||!n.virtualEndpoint){var a=new Dt.unexpectedError(At.submitPidlRequestMissingParameters,[n.url?"virtualEndpoint":"url"]);return t.eventHub.failure(a),hn(a)}return new Promise((function(r,o){Zt.getPidlService().submitPidlDocument(t.eventHub,n,t.operationType,i).then((function(e){r(e)}),(function(r){o(tn.parseServerError(n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,r,t.serverErrorRetries))}))}))},this.submitValidatedData=function(e,n,r,o,i,a){var s,l=t.modelData.getId();o=o||$t.getSubmitPidlAction(n)||{},i=i||1;var c=o.type!==B.validate,u=1===i?o.context:o["context"+i],d={modelData:t.modelData},p=u&&an.getSubmitUrl(t.operationType,t.userContext,u,l,d),h={method:u&&u.method?u.method:xe.Post,url:p&&p.url,headers:u&&xn.getHttpHeaders(t.eventHub,t.userContext,u&&u.headers,p&&p.template,d),errorCodeExpressions:u&&u.errorCodeExpressions,virtualEndpoint:p&&p.virtualEndpoint},m=pn();if(u&&u.payload){var f={},g=t.getInputDataFromResponse(f,u.payload,a);if(g)return void e.reject(g);h.data=f}else{h.data=r;var v=Wr.tokenizeUserInputData(t.eventHub,n,h.data,t.operationType,t.userContext.getUserCredential(),null===(s=t.callbacks)||void 0===s?void 0:s.encryptionHandler,t.modelData);m=new Promise((function(r,o){v.then((function(i){var a=i.error;if(a){if(Dt.isServerError(a)&&a.code===At.tokenizationFailed.code&&400===a.status){var s=tn.parseServerError(a.url,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:x.Error,errorMessage:a.debugMessage,httpStatus:a.status,httpStatusText:a.statusText,failureObject:a.innererror},t.serverErrorRetries);return t.handleServerError(s,a.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}o(a)}else r()})).catch((function(e){return o(e)}))}))}m.then((function(){t.invokeSubmitRequest(n,h,c).then((function(a){i++,o["context"+i]?t.submitValidatedData(e,n,r,o,i,a):e.resolve({data:a})}),(function(r){return t.handleServerError(r,h.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}))}),(function(t){e.reject(new Dt.serverError(At.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))}))},this.scopeDownPidlDocAndUserInput=function(e,t,n){if(e&&e.type===B.validate&&e.context&&e.context.propertyName){var r=e.context.propertyName;n=Xt.getPropertyValueFromInputData(n,r);var o=p(p({},t),{data_description:{}}),i=Xt.getPropertiesFromDataDescription(t.data_description,r);Rt(i)?o.data_description[r]=i:o.data_description=i,t=o}return{pidlDocument:t,userInputData:n}},this.validatePidlArray=function(e,n,r,o,i){var a=v([n],r.map((function(e){return t.pidlDocManager.getLinkedPidl($t.createIdentityHash(e.linkedPidlId))})),!0),s=[],l=null,c=a.map((function(n){var r=e.createUserInputData(n,t.modelData,o,t.operationType,!0);return Br.validateUserInputData(t.eventHub,n,r,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&n.forEach((function(e){var n=t.createFormValidationError(e.error);Dt.isUnexpectedError(n)?l=n:s.push(n)}))}))}));return new Promise((function(e,t){Promise.all(c).then((function(){l?t(l):s.length>0?t(s):e()}),(function(e){var n=(e||{}).message;t(new Dt.formValidationFailedError(At.formValidationFailed,n,[e],[n]))}))}))},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&Xt.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var n=e.propertyName,r=e.errorCode,o=e.debugMessage;if(n){var i=t.modelData.getModelDataProperty(n);if(i){i.editState=pe.dirty;var a=An.findPropertyElement(t.elements,n);return a&&(e.message=a.getErrorMessage(t.getPropertyValue(n),r)),e}return new Dt.unexpectedError(At.validationFailedForNonUserInputProperty,[n,r,o])}},this.validateAndTransformUserInputPidlData=function(e,n,r,o,i,a,s){return e.createUserSecureInputData(n[0],t.modelData,r,t.operationType,!0).then((function(l){var c=e.createUserInputData(n[0],t.modelData,r,t.operationType,!0);c.details&&l?c.details=tn.extend({},c.details,l):c&&l&&(c=tn.extend({},c,l));var u=t.getResolvedOrFirstPidlDoc(n,c);if(i&&!e.canSubmitUserInputData(u,c))return pn({});var d=t.scopeDownPidlDocAndUserInput(o,u,c),p=d.pidlDocument,h=d.userInputData;return u=p,c=h,new Promise((function(n,r){var i=[];return Br.validateUserInputData(t.eventHub,u,c,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&n.forEach((function(e){var n=t.createFormValidationError(e);n&&(Dt.isUnexpectedError(n)?r(n):i.push(n))}))})).then((function(){if(!i.length)return e.transformUserInputData(u,t.eventHub,c,t.operationType).then((function(){return s({resolve:n,reject:r},u,c,o)}),(function(e){var t=e&&e.message;r(new Dt.formValidationFailedError(At.propertyTransformationFailed,t,[e],[t]))}));a("",i).then((function(e){n(e)})).catch(r)}),(function(e){var t=e||{},n=t.message;r(new Dt.formValidationFailedError(At.formValidationFailed,n,[t],[n]))}))}))}))},this.handleRetryableValidationErrorsOnSubmit=function(e,n){return t.handleRetryableError(new Dt.formValidationFailedError(At.formValidationFailed,e,n,[e]))},this.tokenizeUserInputData=function(e,n,r){var o;return Wr.tokenizeUserInputData(t.eventHub,n,r,t.operationType,t.userContext.getUserCredential(),null===(o=t.callbacks)||void 0===o?void 0:o.encryptionHandler,t.modelData).then((function(t){var n=t.error;n?e.reject(n):e.resolve({data:r})})).catch((function(t){return e.reject(t)}))},this.submitLinkedPidlArray=function(e,n,r,o,i){return new Promise((function(a,s){if(o||e&&0!==e.length){n.pending=e.length+(o?1:0);var l=function(){n.pending--,0===n.pending&&a()},c=Zt.getCommerceService();o&&t.validateAndTransformUserInputPidlData(c,o,r,i,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData).then((function(e){e&&e.error?n.validationError=e.error:n.baseSuccessResponse=e&&e.data?e.data:e,l()}),(function(e){$t.ignoreTerminatingError(o)||(n.baseFailure=e),l()})),e.forEach((function(e){var o=t.pidlDocManager.getLinkedPidl($t.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(c,[o],r,$t.getSubmitPidlAction(o),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData).then((function(e){n.linkedResponses.push(e),l()}),(function(e){$t.ignoreTerminatingError([o])||n.failures.push(e),l()}))}))}else a()}))},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var n=t.getClientDataProperties(),r=Zt.getCommerceService(),o={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(ge.modelSubmitForm).result)return pn({result:o});t.eventHub.submitting(),t.stateManager.setState(de.submitting);var i=t.pidlDocManager.getResolvedOrAllPidlDocs(),a=r.getPidlSubmitOrder(i[0]);return new Promise((function(s,l){e.type===B.validate&&(a.beforeBase=[],a.withBase=[],a.afterBase=[]),t.validatePidlArray(r,i[0],a.beforeBase.concat(a.withBase,a.afterBase),n,e).then((function(){return t.submitLinkedPidlArray(a.beforeBase,o,n).then((function(){if(!(0!==o.failures.length||o.linkedResponses&&o.linkedResponses.length&&o.linkedResponses.some((function(e){return e.error}))))return t.submitLinkedPidlArray(a.withBase,o,n,i,e).then((function(){if(0===o.failures.length&&!o.baseFailure)return t.submitLinkedPidlArray(a.afterBase,o,n).then((function(){s()}));s()}));s()}))}),(function(e){if(!Dt.isUnexpectedError(e))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(e)?v([],e,!0):[e]).then((function(e){o.validationError=e.error,s()}));o.failures.push(e),s()})).catch((function(e){s()}))})).then((function(){return t.stateManager.setState(de.executing),t.eventHub.submitted(),{result:o,basePidls:i}}))},this.transformResourceInstance=function(e,n){return Promise.all(t.transformResourceInstanceInternal(e,Zt.getCommerceService(),n)).then(un,un)},this.transformResourceInstanceInternal=function(e,n,r){var o=[];return e.forEach((function(e){if(xr(e)&&e.supportsDisplayTransformation){var i=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();o=v(v([],o,!0),[n.transformUserInputPropertyForDisplay(i,t.eventHub,e.getPropertyName(),r,t.operationType)],!1)}e.children&&e.children.length&&(o=v(v([],o,!0),t.transformResourceInstanceInternal(e.children,n,r),!0))})),o},this.updateResolvedPidlDoc=function(e,n,r){return new Promise((function(o,i){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,n,r).then((function(e){if(e){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&n&&n.identity&&rn.objectEquals(t.currentlyRenderedPidl.identity,n.identity)&&o(!1),n&&$t.isPrimaryResource(n)&&t.eventHub.updateTelemetryContext(n.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=n}o(e)})).catch((function(e){o(!1)}))}))},this.updatePropertyValueInternal=function(e,n,r){var o=t.modelData.getModelDataProperty(e.getPropertyName());return o?(o.setValue(n)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(o,r),t.validator.validateProperty(o,r,t.operationType)):pn()},this.sendResourceSelectedEventInternal=function(e,n){t.operationType===it.selectInstance&&n!==he.finished&&t.eventHub.resourceSelected(e.propertyName,e.getValue(!0,!0))},this.getPropertyPageIndex=function(e){var n=-1;return t.elements.some((function(t,r){if(t.children&&An.findPropertyElement(t.children,e))return n=r,!0})),n},this.navigateToPageIndex=function(e){An.updateModelElements(t.elements,{modelData:t.modelData});var n=t.pageIndex,r=t.getCurrentPage()||{};t.pageIndex=e;var o=t.getCurrentPage()||{};t.eventHub.pageNavigated(n,r.displayId,r.displayName,t.pageIndex,o.displayId,o.displayName,o.containerDescription)},this.isMaskedValue=function(e,n,r,o){return e&&e.maskDisplay&&o&&r===he.finished&&n===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.downloadPidlDocument=function(e,n,r){var o=xn.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(n.anonymousPidl){var i=o[Q.msFlight];(!i||i.indexOf("pxpidl")<0)&&(o[Q.msFlight]=i?i+",pxpidl":"pxpidl")}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,o,n,r).then((function(e){return t.eventHub.pidlDownloaded(),e}),(function(n){var r;r=n.connectivityError?At.connectivityError:At.pidlDocDownloadFailed;var o=tn.createServerError(r,e.url,n,[n.errorMessage]);return t.eventHub.failure(o),hn(o)}))},this.populate=function(e,n,r,o,i,a){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var s=new Dt.unexpectedError(At.noPidlDocumentInPopulateRequest);return t.eventHub.failure(s),hn(s)}return t.populateModel(t.operationType,e,n,i,a).then((function(){o=o||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(de.executing),t.eventHub.pageRendered(r,o.displayId,o.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(n).then((function(){return pn()}))}))},this.updatePropertyValue=function(e,n,r,o){if(o){if(t.isMaskedValue(e,n,r,o))return pn();t.modelData.clearMaskedPropertyValue(e.getPropertyName())}var i=function(){return t.updatePropertyValueInternal(e,n,r)};return(e&&e.isKeyProperty&&(e.resolutionPolicy!==ft.focusout||r===he.finished)?t.updateResolvedPidlDoc(n,e,r):pn(!0)).then(i,i).then((function(){t.sendSelectionChangeEvent(e,n)}))},this.sendSelectionChangeEvent=function(e,n){if(hr(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,n),e.possibleOptions&&e.possibleOptions[n]&&e.possibleOptions[n].pidlAction&&e.possibleOptions[n].pidlAction.type===B.partnerAction)){var r=rn.deepCopy(e.possibleOptions[n].pidlAction.context);t.eventHub.partnerAction(e.id,r)}},this.sendResourceSelectedEvent=function(e,n){var r=t.modelData.getModelDataProperty(e);r&&t.sendResourceSelectedEventInternal(r,n)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,n){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,n)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){var e=t.modelData.getPropertyValue(Se.captchaType);return e||null},this.validateEditedProperties=function(){return t.validatePage(j.dirtyOnly)},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),pn()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new Dt.unexpectedError(At.cannotMoveToNextPageAsOnLastPage)),pn()):(t.readUserInputData(),t.validatePage(j.all).then((function(){var n=Zt.getCommerceService(),r=n.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return n.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then((function(n){t.modelData.setDisplayData(n),t.navigateToPageIndex(e)}))})))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(j.all).then((function(){var e=Zt.getCommerceService(),n=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then((function(e){t.modelData.setDisplayData(e)}))}))},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new Dt.unexpectedError(At.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new Dt.unexpectedError(At.cannotMoveToPageIndex)),pn()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),pn()):t.moveNextPage().then((function(){return t.moveToPageIndex(e)}))},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(e){var n=e.result,r=e.basePidls;return n.baseFailure?(t.eventHub.failure(n.baseFailure),hn(n.baseFailure)):n.failures.length>=1?(t.eventHub.failure(n.failures[0]),hn(n.baseFailure)):n.baseSuccessResponse||$t.ignoreTerminatingError(r)?t.handleSuccess(n.baseSuccessResponse,n.linkedResponses):void 0}))},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(n){var r=n.result;if(r.baseFailure||r.failures.length>=1||r.validationError)return r.baseFailure?(t.eventHub.failure(r.baseFailure),hn(r.baseFailure)):r.failures&&r.failures.length>=1?(t.eventHub.failure(r.failures[0]),hn(r.baseFailure)):hn();if(r.baseSuccessResponse){var o=r.baseSuccessResponse&&r.baseSuccessResponse.clientAction;if(o)return o.type===lt.MergeData?t.handleClientAction(o,r.baseSuccessResponse).then((function(){return pn()}),(function(e){return hn(e)})):(e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(o,r.baseSuccessResponse).then((function(){return hn()}),(function(e){return hn(e)})))}}))},this.createUserInputData=function(e,n){return t.readUserInputData(),Zt.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,n)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(Zt.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,(function(e,t){return hn(new Dt.formValidationFailedError(At.formValidationFailed,e,t,[e]))}),t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return pn()})):(t.eventHub.failure(new Dt.unexpectedError(At.missingSubmitActionInPidlDoc)),hn())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return pn()})):(t.eventHub.failure(new Dt.unexpectedError(At.missingSubmitActionInPidlDoc)),hn())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),pn())},this.invokePidlAction=function(e,n){var r=e.type,o=e.nextAction,i=e.context,a=null;return t.eventHub.pidlActionInvoked(r,{nextAction:null===o||void 0===o?void 0:o.type}),new Promise((function(o,s){var l;switch(r){case B.closePidlPage:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),o()}),(function(){return s()})),t.eventHub.closePidlPage();break;case B.closeModalDialog:t.eventHub.hideModalDialog();var c=t.getCurrentPage();if(c&&c.children&&c.children.length>0){var u=c.children[c.children.length-1];yr(u)&&u.isModalGroup&&c.children.pop()}o();break;case B.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case B.propertyBindingAction:var d=i.bindingPropertyName,p=i.actionMap,h=t.getPropertyValue(d);rn.isBool(h)&&(h=rn.toString(h)),t.eventHub.propertyValueSelected(d,h);var m=p[h];m?t.invokePidlAction(m,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case B.mergeData:var f=i.payload;t.modelData.updateUserData(f),t.eventHub.modelUpdated(!1),o();break;case B.submit:t.submitForm(e).then((function(){return o()}),(function(e){s(e)}));break;case B.submitOriginalPidl:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then((function(){return o()}),(function(){s()}))}),(function(){return s()})),t.eventHub.submitOriginalPidl();break;case B.validate:t.validateForm(e).then((function(){return o()}),(function(){return s()}));break;case B.gohome:t.gohome(),o();break;case B.first:t.moveToPageIndex(0).then((function(){return o()}),(function(){return s()}));break;case B.last:t.moveToLastPage().then((function(){return o()}),(function(){return s()}));break;case B.next:t.moveNextPage().then((function(){return o()}),(function(){return s()}));break;case B.prev:t.movePrevPage().then((function(){return o()}),(function(){return s()}));break;case B.moveToPageIndex:var g=i.pageIndex;t.moveToPageIndex(g).then((function(){return o()}),(function(){return s()}));break;case B.restartFlow:t.restartFlow().then((function(){return o()}),(function(){return s()}));break;case B.restAction:i?t.invokeRestMethod(i).then((function(){return o()}),(function(){return s()})):(t.eventHub.error(new Dt.unexpectedError(At.contextMissingFromPidlAction,[e.type])),s());break;case B.success:n&&n.value?((a=rn.deepCopy(n.value)).operationType=t.operationType,t.eventHub.success(a)):t.eventHub.success(t.createSuccessEventPayload()),o();break;case B.partnerAction:n&&n.value&&(a=rn.deepCopy(n.value),t.eventHub.partnerAction(n.id,a)),o();break;case B.successWithPidlPayload:(a=rn.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=rn.deepCopy(n.value)),t.eventHub.success(a),o();break;case B.successWithSelectedPidlAction:(a=rn.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=rn.deepCopy(n.value)),t.eventHub.success(a),o();break;case B.navigateAndNext:var v=t.getLinkActionUrl(i,!0);if(v){var y=Zt.getRedirectionService();!t.eventHub.navigate(n.id,v,!1,null,n.dest)&&y&&y.openInNewTab(v),t.moveNextPage().then((function(){return o()}),(function(){return s()}))}else s();break;case B.navigate:t.eventHub.navigate(n.id,i,!1,null,n.dest,e.dest),o();break;case B.triggerEvent:t.eventHub.triggerEvent(null!==(l=e.context.name)&&void 0!==l?l:"",e.context.params),o();break;case B.redirect:t.eventHub.navigate(n.id,t.getLinkActionUrl(i,!0),!0,i,null),o();break;case B.poll:o();break;case B.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(i);break;case B.noAction:o();break;default:t.eventHub.error(new Dt.unexpectedError(At.unknownActionType,[r])),s()}})).then((function(){return!o||t.invokePidlAction(o,n)}),(function(e){if(e)throw e;return!1}))},this.invokeDefaultPidlAction=function(){var e=An.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new Dt.unexpectedError(At.defaultActionNotFound)),hn(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var n=e.href?"method":"href";return t.eventHub.error(new Dt.unexpectedError(At.restActionPidlActionMissingParameters,[n])),pn()}var r={modelData:t.modelData},o=e&&e.shouldHandleSuccess,i=an.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),r),a={url:i.url,method:e.method,headers:xn.getHttpHeaders(t.eventHub,t.userContext,e.headers,i.template,r),virtualEndpoint:i.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:rn.serialize(e.payload)};return t.eventHub.restMethodInvoking(i.url,t.operationType),new Promise((function(e,n){Zt.getPidlService().invokeRestMethod(t.eventHub,a,t.operationType).then((function(n){t.eventHub.restMethodInvoked(a.url);var r=n&&n.clientAction;if(r)return t.handleClientAction(r,n);n&&o&&(t.modelData.setPrimaryResourceResponse(n),t.eventHub.success(t.createSuccessEventPayload())),e()}),(function(r){var o=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(tn.parseServerError(a.url,a.errorCodeExpressions,o&&o.strings&&o.strings.serverErrorCodes,r),a.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then((function(){return e()}),(function(e){return n(e)}))}))})).then(un,(function(e){return t.eventHub.failure(e),hn(e)}))},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise((function(e,n){t.handleRestartFlow().then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()}),(function(e){return n(e)}))}))},this.refreshData=function(e){var n=!1,r=pn(),o=$t.getDataSourceLinks(t.pidlDocManager.getResolvedOrFirstPidlDoc());return o&&o.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),r=t.getDataSources(t.operationType,{modelData:t.modelData},o),n=!0),r.then((function(){n&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),An.updateModelElements(t.elements,{modelData:t.modelData}),n?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()}))},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new cn({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.modelData=new Ar(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new Or(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new kn(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,n,r){var o=this,i=t.href,a=t.method,s=t.headers,l=an.getRestMethodUrl(i,this.userContext,this.modelData.getId(),r),c=l.url,u=l.template,d={url:c,method:a,virtualEndpoint:l.virtualEndpoint,pidlOperation:n,headers:xn.getHttpHeaders(this.eventHub,this.userContext,s,u,r)};return new Promise((function(t,n){Zt.getPidlService().getInstance(o.eventHub,d).then((function(n){o.eventHub.instanceDownloaded(),o.modelData.setDataSource(e,n),t()}),(function(e){var t=tn.createServerError(At.resourceInstanceDownloadFailed,d.url,e,[e.errorMessage]);o.eventHub.failure(t),n(t)}))}))},e.prototype.postSecureFieldMessage=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=o.buildMessage(t,n);r&&(s.correlationId=r),o.queuedSecureFieldPromises.push({id:s.correlationId,resolve:i,reject:a}),o.guaranteedPostMessage(e,s,0)}))},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,n,r){var o=this.buildMessage(t,n);r&&(o.correlationId=r),this.guaranteedPostMessage(e,o,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise((function(n,r){t.queuedIFrameLoadedPromises.push({id:e,resolve:n,reject:r})}))},e.prototype.buildMessage=function(e,t){return{source:Ue.pidlSdkMessageSource,event:e,payload:t,correlationId:tn.guid()}},e.prototype.guaranteedPostMessage=function(e,t,n){var r=this;if(!(n>this.maxRetryPostMessage))if(n++,this.loadedSecureFields.includes(e)&&window.frames[e]){var o="https://"+rt.getServiceEndpoint(rt.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(o=this.secureFieldOriginOverride),window.frames[e].postMessage(t,o),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout((function(){r.guaranteedPostMessage(e,t,n)}),this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,n,r,o=null===(t=null===e||void 0===e?void 0:e.modelElement)||void 0===t?void 0:t.dataDescription,i=null===(n=null===e||void 0===e?void 0:e.modelElement)||void 0===n?void 0:n.displayDescription,a=null===i||void 0===i?void 0:i.propertyName,s=null==o.validations?[o.validation]:o.validations;return{maxLength:null===i||void 0===i?void 0:i.maxLength,isOptional:o.is_optional,resolutionPolicy:null===(r=null===e||void 0===e?void 0:e.modelElement)||void 0===r?void 0:r.resolutionPolicy,keyPropertyResolutionMappings:o.keyPropertyResolutionMappings,propertyDataValidations:s,cssStyles:this.computedStyles.style[a],cVHeader:this.eventHub.getHttpRequestCorrelationHeader()}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e}(),jr=function(e,t){var n=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,r){if(n.operationInfo&&n.operationInfo.handle){var o=Zt.getPidlStoreService();if(o){var i=o.get(n.operationInfo.handle);e=e||i&&i.pidls;var a=t[0]&&t[0].identity||i&&i.resolvedPidlIdentity;o.put(n.operationInfo.handle,r||i.pidlDocInfo,e,a)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(Bt(r))return r;if(Mt(r)&&r.members){var o=n.getResolvedLogoDescription(r.members);if(o)return o}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=$t.createIdentityHash(e.identity),r=n.getIdentityLessCountry(e.identity);n.pidlIdentityHashMapping[t]=r}},this.addLogo=function(e){var t=e.displayDescription;if(t&&rn.isArray(t))for(var r=0;r<t.length;r++){var o=[];$t.getLogoDescriptions(t[r],o);for(var i=0;i<o.length;i++){for(var a=!1,s=0;s<n.logos.length;s++)if(n.logos[s].displayId===o[i].displayId){a=!0;break}a||n.logos.push(o[i])}}},this.checkPidlDoc=function(e){if(e){n.addIdentity(e);var t=e.data_description;for(var r in t){var o=t[r];if(o instanceof Array)for(var i=0;i<o.length;i++)n.checkPidlDoc(o[i])}}},this.isPidlForCurrentOperation=function(e){return!(n.operationInfo&&n.operationInfo.operationType&&e&&e.identity&&e.identity.operation)||rn.equalsIgnoreCase(n.operationInfo.operationType,e.identity.operation)||rn.equalsIgnoreCase(it.update,e.identity.operation)},this.swapPidlDoc=function(e,t,r){if(n.resetPidlDocs(),t){if(t instanceof Array)for(var o=0;o<t.length;o++)n.checkPidlDoc(t[o]),n.isPidlForCurrentOperation(t[o])&&(n.originalPidlDocs.push(t[o]),n.addLogo(t[o]));else n.checkPidlDoc(t),n.isPidlForCurrentOperation(t)&&(n.originalPidlDocs.push(t),n.addLogo(t));if(1===n.originalPidlDocs.length?n.resolvedPidlDocs=rn.copyArray(n.originalPidlDocs):r&&rn.invokeIf(n.originalPidlDocs,(function(e){var t=e.identity;return rn.objectEquals(r,t)}),(function(e){n.resolvedPidlDocs.push(n.originalPidlDocs[e])})),0===n.resolvedPidlDocs.length){var i=Zt.getCommerceService(),a=$t.createKeyPropertyMap(n.originalPidlDocs,$t.getDefaultPropertyValueGetter()),s=i.getFirstPidlWithValidDefaultKey(n.originalPidlDocs,a);s&&n.resolvedPidlDocs.push(s)}e&&e.pidlResolved("swapPidlDocs",n.resolvedPidlDocs)}},this.resetPidlDocs=function(){n.originalPidlDocs=[],n.resolvedPidlDocs=[],n.pidlIdentityHashMapping={},n.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise((function(r,o){var i=rn.toLowerCase(t.url);if(n.pidlPayload)r(n.pidlPayload);else{if(!n.downloadedPidlDocsByUrl[i])return Zt.getPidlService().getPidlDocument(e,t,n.getPidlDocumentHook).then((function(e){n.downloadedPidlDocsByUrl[i]=e,r(e)}),(function(e){o(e)}));r(n.downloadedPidlDocsByUrl[i])}}))},this.setPidlDoc=function(e,t,r){n.clearCache(),t instanceof Array||(t=t?[t]:null),n.swapPidlDoc(e,t,r),n.updatePidlDocStore(t,n.resolvedPidlDocs,n.currentPidlDocInfo)},this.getPidlPayload=function(){return n.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){n.setPidlDoc(e,n.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,r,o,i){return new Promise((function(a,s){n.getPidlDocument(e,{url:t.url,headers:r,virtualEndpoint:t.virtualEndpoint,pidlOperation:n.operationInfo.operationType}).then((function(s){var l,c;if(s&&s[0]&&s[0].clientAction)a(s[0].clientAction);else{var u;if(Vt(s)){for(var d in null===(l=null===s||void 0===s?void 0:s.pidlInfo)||void 0===l?void 0:l.pidls)if(n.operationInfo.operationType.toLowerCase()===d.toLowerCase()){u=null===(c=null===s||void 0===s?void 0:s.pidlInfo)||void 0===c?void 0:c.pidls[d];break}n.pidlPayload=s}else u=s;n.currentUrl=t,n.currentHeaders=r,n.currentPidlDocInfo=o||n.currentPidlDocInfo,n.lastDownloadedPidlDoc=u,n.swapPidlDoc(e,u,i),n.updatePidlDocStore(u,n.resolvedPidlDocs,o),a()}}),(function(e){s(e)}))}))},this.retrievePidlDocFromCache=function(e,t,r){return new Promise((function(o,i){var a=Zt.getPidlStoreService().get(t);a&&a.pidls?(n.lastDownloadedPidlDoc=a.pidls,n.swapPidlDoc(e,a.pidls,r),o()):i(At.invalidCacheEntry)}))},this.shouldDownloadNewPidl=function(e,t,r,o){return!(e instanceof Array&&e.length>=1||!n.currentUrl)&&!(mr(t)&&t.possibleOptions&&!r)&&t.triggerPidlDownloadOnChange&&(o===he.finished||mr(t)&&o===he.editing)},this.resolvePidlDoc=function(e,t,r,o,i){var a=Zt.getCommerceService(),s=n.getAllPidlDocs(),l=$t.createKeyPropertyMap(s,$t.getPropertyValueGetter(o.getPropertyName(),r,t));return a.resolveInfoDescriptionId(s,l).then((function(s){if(n.shouldDownloadNewPidl(s,o,r,i)){var c=rn.deepCopy(n.currentUrl.originalParameters);if(tn.updatePidlDocUrlParams(c.pidlDocInfo,l)){var u=n.currentUrl.recreateUrl(c);return n.downloadPidlDoc(e,u,n.currentHeaders,c.pidlDocInfo).then((function(){return e.pidlDownloaded(),n.resolvePidlDoc(e,t,r,o,i).then((function(){return!0}))}),(function(t){return e.failure(tn.createServerError(At.pidlDocDownloadFailed,u.url,t,[t.errorMessage])),!1}))}}else if(!$t.matchPidlIdsToPidls(a,s,n.resolvedPidlDocs)&&(n.resolvedPidlDocs=$t.resolvePidlDocs(n.originalPidlDocs,s),e.pidlResolved("resolvedPidlDocs",n.resolvedPidlDocs),0!==n.resolvedPidlDocs.length))return!0;return!1}))},this.isEmpty=function(){return 0===n.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==n.resolvedPidlDocs.length?n.resolvedPidlDocs:n.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return n.resolvedPidlDocs.length>0?n.resolvedPidlDocs[0]:n.originalPidlDocs.length>0?n.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return n.originalPidlDocs},this.clearCurrentPIDLResource=function(){n.currentPidlDocInfo&&Zt.getPidlStoreService().removeResourceEntries(n.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=n.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return n.logos},this.getResolvedLogo=function(){if(1===n.resolvedPidlDocs.length)return n.getResolvedLogoDescription(n.resolvedPidlDocs[0].displayDescription)},this.getIdentityString=function(e){return e&&e in n.pidlIdentityHashMapping?n.pidlIdentityHashMapping[e]:null},this.reset=function(){n.resetPidlDocs(),n.operationInfo=null,n.clearCache()},this.clearCache=function(){n.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(n.resolvedPidlDocs[0]&&n.resolvedPidlDocs[0].links)return n.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=n.getLinkedPidls();if(t)for(var r=0;r<t.length;r++)if($t.createIdentityHash(t[r].identity)===e)return t[r]},this.setOperationInfo=function(e){n.operationInfo=e},this.getOperationHandle=function(){if(n.operationInfo)return n.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return n.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return n.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){n.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){n.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null},qr={addAddress:[de.initialized],selectPaymentInstrument:[de.initialized],addPaymentInstrument:[de.initialized],listAddress:[de.initialized],addResource:[de.initialized],applyResource:[de.initialized],replaceResource:[de.initialized],updateResource:[de.initialized],updateProfile:[de.initialized],selectResource:[de.initialized],selectSingleResource:[de.initialized],selectResourceType:[de.initialized],validateResource:[de.initialized],showResource:[de.initialized],offerResource:[de.initialized],searchResource:[de.initialized],deleteResource:[de.initialized],fundStoredValue:[de.initialized],createPaymentSession:[de.initialized],handleChallenge:[de.initialized],handlePaymentChallenge:[de.initialized],handlePurchaseRiskChallenge:[de.initialized],handlePurchasePendingState:[de.initialized],renderPidlPage:[de.initialized],getPidlPayload:[de.executing],invokePageDefaultAction:[de.executing],invokeResourceAction:[de.initialized,de.executing],moveNextPage:[de.executing],submitPage:[de.submitting,de.executing,de.initialized],movePrevPage:[de.executing],moveToLastPage:[de.executing],moveToFirstPage:[de.executing],refreshData:[de.executing],cancel:[de.initialized,de.executing,de.submitting],modelSubmitForm:[de.executing],handleAction:[de.initialized],getSelectedResource:[de.initialized,de.executing,de.submitting],renderPidlDocument:[de.initialized],postMessageToChildIFrames:[de.executing,de.submitting],profilePrerequisite:[de.initialized],handleCheckout:[de.initialized],getPayeeTaxProfile:[de.initialized],searchTransactions:[de.initialized]},Kr=function(){function e(e){this.state=de.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e)}))}return e.prototype.privateEventHandler=function(e){if(this.state!==de.notInitialized)switch(e){case H.success:case H.failure:case H.gohome:this.setState(de.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===de.notInitialized)return{error:new Dt.apiValidationError(At.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=qr[e];return t?rn.contains(t,this.state)?{result:!0}:{error:new Dt.apiValidationError(At.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new Dt.unexpectedError(At.apiStateMappingNotFound,[e]),result:!1}},e}(),Yr=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var n=ln.findVirtualEndpointInTemplate(e);if(n&&n.name&&this.userContext.serviceOverrides)for(var r in this.userContext.serviceOverrides)if(rn.toLowerCase(r)===n.name)return this.userContext.serviceOverrides[r][t]||this.userContext[t];return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var n=this.getAuthToken(t);n&&(e[Q.authorization]=n);var r=this.getAdditionalHeaders(t);if(r)for(var o in r)e[o]=r[o];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var n=this.getAdditionalHeaders(e);for(var r in n)if(rn.equalsIgnoreCase(r,Q.authorization)){t=n[r];break}}return t},e}(),Xr=function(e){var t=this;this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.errorPropertyGroups={},this.pollingActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e)},this.applyForModelDisplayTransformation=function(e,t,n){if(br(e)&&(!n||!e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return tn.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var n=!1;switch(e.type){case U.formValidation:var r=e;if(r.errors&&r.errors.length>0){for(var o=0;o<r.errors.length;o++)if(r.errors[o].message===me.empty&&(r.errors[o].message=""),!t.showError(r.errors[o]))return;e.name===At.formSubmissionFailedBadUserInput.name&&r.message!==me.empty&&(n=!0)}else n=!0;break;case U.userInputValidation:n=e.validationErrorType===G.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:n=!0}return n&&t.showPageError(e),!0},this.fillForm=function(e){var n=t.view.getVisibleProperties();t.model.showMaskedValues=e===fe.pageNavigated;var r={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(n.forEach((function(e){var n=t.model.modelData.getProperty(e),o=t.model.getPropertyModelElement(e);r.isRadioProperty=Cr(o);var i=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||br(o)&&o.displayTransformations&&o.displayTransformations.forFormat&&tn.applyDisplayTransformation(o.displayTransformations.forFormat,n.value)||n.value;t.model.showMaskedValues&&i!==n.value&&t.view.setAccessibilityText(o,o.tags&&o.tags.maskedAccessibilityName||o.accessibilityName||o.displayName),mr(o)&&(r.dropdownElement=o),i&&t.model.sendResourceSelectedEvent(e,he.ready),t.view.updatePropertyValue(e,n.editable,i,r)})),t.valueSetters&&t.valueSetters.length)for(var o=0;o<t.valueSetters.length;o++)t.valueSetters[o].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var n=[],r=0;r<e.errors.length;++r){var o=e.errors[r],i=e.errors[r];o.propertyName&&(n.push(o.propertyName),t.errorPropertyGroups[o.propertyName]=n),i.groupDisplayId&&(n.push(i.groupDisplayId),t.errorPropertyGroups[i.groupDisplayId]=n)}},this.deregisterGroupedErrors=function(e,n){if(n||(n=t.hideError),e&&t.errorPropertyGroups[e])for(var r=t.errorPropertyGroups[e],o=0;o<r.length;++o){var i=r[o];t.unseenErrors.length>0&&rn.filter(t.unseenErrors,(function(e){return!e.propertyName||e.propertyName!==i})),n(i),delete t.errorPropertyGroups[i]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var n=e.error;n&&((Dt.isServerError(n)&&!n.retryable||!Dt.isServerError(n))&&t.showHideBusy(!1),t.sortError(n),t.showError(n),n.name===At.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(n),t.view.setFocusOnFirstError()):n.name===At.formValidationFailed.name&&t.view.setFocusOnFirstError())}},this.sortError=function(e){if(e.type===U.formValidation){var n=e;if(!(null===n.errors||n.errors.length<=1)){var r=t.model.getCurrentPage(),o=[];t.addError(r,n,o),n.errors=o}}},this.addError=function(e,n,r){if(null!==e&&void 0!==e)for(var o=0;o<e.children.length;o++){var i=e.children[o];if(xr(i)||Sr(i)){var a=i.getPropertyName(),s=t.getErrorByPropertyName(n.errors,a);null!==s&&r.push(s)}else if(ur(i)){t.addError(i,n,r);var l=t.getErrorByDisplayId(n.errors,i.displayId);null!==l&&r.push(l)}}},this.getErrorByPropertyName=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.propertyName)return r}return null},this.getErrorByDisplayId=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.groupDisplayId)return r}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var n=t.model.getSubmitButton()||{},r=n.accessibilityName,o=void 0===r?null:r,i=n.disabledAccessibilityName,a=void 0===i?null:i,s=n.displayId,l=void 0===s?null:s;t.view.setDisabledByDisplayId(l,e,{accessibilityName:o,disabledAccessibilityName:a})},this.publicEventHandler=function(e,n){switch(e){case L.error:t.handleErrorEvent(n);break;case L.propertyValidated:t.handlePropertyValidated(n);break;case L.pidlDownloading:case L.pageRendering:case L.inputSubmitting:case L.redirecting:case L.instanceDownloading:case L.restMethodInvoking:t.showHideBusy(!0);break;case L.pageRendered:for(var r in t.pollingActions=An.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(r,t.pollingActions[r]);An.findRadioElements(t.model.elements).forEach((function(e){xr(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)}));case L.pidlDownloaded:case L.inputSubmitted:case L.instanceDownloaded:case L.restMethodInvoked:t.showHideBusy(!1);break;case L.pageNavigated:t.updateView(fe.pageNavigated);break;case L.propertySelected:t.view.markAsFilled(n.divId)}},this.privateEventHandler=function(e,n){switch(e){case H.modelUpdated:var r=n&&n.created?fe.modelCreated:fe.modelUpdated;t.updateView(r);break;case H.dataUpdated:t.fillForm();break;case H.success:case H.failure:case H.gohome:t.showHideBusy(!1),t.reset();break;case H.propertyCreated:var o=n;t.view.checkAndMarkAsFilled(o.divId,o.controlId);break;case H.propertyUnselected:var i=n;t.view.checkAndMarkAsUnfilled(i.divId,i.id);break;case H.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case H.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case H.hideModalDialog:t.hideModalDialog();break;case H.submitting:t.setSubmitButtonState(!0);break;case H.submitted:t.setSubmitButtonState(!1);break;case H.updatePollAndMoveLast:var a=n.pollId||"";t.stopPoll(a),t.startPollingWithNextAction(a),t.model.moveToLastPage().catch(un)}},this.getPollingPidlActionContext=function(e){var t=e.context,n=t.href,r=t.responseResultExpression,o=t.responseActions,i=t.method;if(n&&r&&o&&i)return e.context},this.getPidlActionFromPollingResponse=function(e,t,n){if(!e||!t||!n)return null;var r=rn.getPropertyValueByJPath(e,t);return rn.getPropertyValueByJPath(n,r)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,n,r){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),n,r,!1)},this.updateView=function(e){var n=t.model.getCurrentPage(),r=t.model.getCaptchaType();t.model.secureFieldResolved||t.view.reset();var o=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:r,pageElement:n,viewEventHandler:t,displaySettings:t.displaySettings,eventHub:t.eventHub});if(t.valueSetters=o.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==fe.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(un),e===fe.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var i=t.unseenErrors;t.unseenErrors=[],t.showHideBusy(!1);for(var a=0;a<i.length;a++)t.showError(i[a]);e!==fe.modelUpdated&&t.view.setFocusOnFirstError()}},this.extractStylesFromStylesheet=function(e){for(var n=document.styleSheets,r=".".concat(E.errorStroke),o=".".concat(E.secureProperty),i=0;i<n.length;i++){var a=n[i];try{for(var s=a.cssRules||a.rules,l=0;l<s.length;l++){var c=s[l];if(c instanceof CSSStyleRule)for(var u=c.selectorText.split(","),d=0;d<u.length;d++){var p=u[d].trim();p.includes(".errorStroke")||p.includes(r)?e.push(p+"{ "+c.style.cssText+" }"):p.includes(o)&&(p=p.replace(o,""),e.push(p+"{ "+c.style.cssText+" }"))}}}catch(h){t.eventHub.styleSheetError(h,null===a||void 0===a?void 0:a.href)}}},this.computeSecurePropertyStyles=function(e,n){var r=[];n&&0===Object.keys(n).length?t.extractStylesFromStylesheet(r):n&&t.computeStylesFromHardCodedStyles(n,r),t.model.computedStyles.style[e]=r},this.computeStylesFromHardCodedStyles=function(e,t){var n=Object.keys(e.textFieldStyles).map((function(t){return"".concat(t,":").concat(e.textFieldStyles[t])})).join(";");t.push('input[type="text"]{'+n+"}");var r=Object.keys(e.fieldGroupNormalStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])})).join(";");t.push(".normalClass{"+r+"}");var o=Object.keys(e.fieldGroupFocusStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])})).join(";");t.push(".focusClass{"+o+"}");var i=Object.keys(e.fieldGroupErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])})).join(";");t.push(".errorClass{"+i+"}");var a=Object.keys(e.fieldGroupFocusErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])})).join(";");t.push(".focusErrorClass{"+a+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var r=vr(e.propertyElement)||mr(e.propertyElement)?he.finished:he.editing;t.model.updatePropertyValue(e.propertyElement,n,r,t.model.showMaskedValues).catch(un),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,n,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,he.finished,t.model.showMaskedValues).catch(un),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var n=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,he.editing,t.model.showMaskedValues).catch(un),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?dn:un)},this.invokePidlAction=function(e){t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?dn:un)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)})).catch((function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)}))},this.postSecureFieldMessage=function(e,n,r){return t.model.postSecureFieldMessage(e,n,r)},this.secureFieldMessageHandler=function(e){var n=tn.getHostName(rt.getServiceEndpoint(rt.virtualEndpoints.securePx.endpoint));tn.getHostName(e.origin)===n&&e&&e.data&&e.data.source===Ue.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.iFrameMessageHandler=function(e){var n=tn.getHostName(rt.getServiceEndpoint(rt.virtualEndpoints.pifd.endpoint)),r=tn.getHostName(rt.getServiceEndpoint(rt.virtualEndpoints.pifdBackend.endpoint)),o=tn.getHostName(e.origin);if(t.eventHub.postMessageReceived(o,n,e.data&&e.data.length),o===n||o===r){var i=tn.parseJSON(e.data),a=i.succeeded?i.value:null;a?t.model.handleClientAction(a,null,y.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(a.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var n=Zt.getRedirectionService(),r=e.pidlAction,o=!1;switch(r.type){case B.redirect:var i=t.model.getLinkActionUrl(r.context,!1);if(!(o=t.eventHub.navigate(e.id,i,!0,r.context,null))&&n)return n.redirect(i),!0;break;case B.navigate:default:if(!(o=t.eventHub.navigate(e.id,r.context,!1,null,r.dest))&&n)return!n.openInNewTab(r.context)}return!o},this.captchaHyperlinkClickHandler=function(e,n,r){t.updateModelPropertyValue(e,n,r).catch(un)},this.updatePrefillValue=function(e,n){return!0===n?t.model.setCurrentDataIndex(e,0):!1===n?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,n),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var n=e.type&&e.type===D.checkBox;n?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(fe.prefillChanged),n||t.model.validateEditedProperties().catch(un)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,n){if(!n)return!1;t.pollingTimersAndCounters[e]={pollingTimer:null,pollingCounter:0};var r=t.getPollingPidlActionContext(n);if(!r)return!1;var o=r.method,i=r.payload,a=r.headers,s=r.interval,l=void 0===s?Oe.Default:s,c=r.responseResultExpression,u=r.responseActions,d=r.maxPollingAttempts,p=r.checkPollingTimeOut,h=xn.getHttpHeaders(t.eventHub,t.userContext,a),m=an.getSubmitUrl(t.model.operationType,t.userContext,r,t.model.modelData.getId()),f=m.virtualEndpoint,g=f.operation,v=f.description,y=function(e,n){clearInterval(t.pollingTimersAndCounters[n].pollingTimer),t.pollingTimersAndCounters[n].pollingCounter=0,delete t.pollingTimersAndCounters[n],t.eventHub.pollingEnded(n),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval((function(){var r=null;if(o===xe.Get)t.eventHub.pollingStarted(e),r=xn.get(t.eventHub,m.url,h,t.model.operationType,g,v);else if(o===xe.Post)t.eventHub.pollingStarted(e),r=xn.post(t.eventHub,!0,m.url,h,JSON.stringify(i),null,null,t.model.operationType,g,v);else{if(o!==xe.Put){var a=new Dt.unexpectedError(At.unableToSetupPolling);return y(a,e),!1}t.eventHub.pollingStarted(e),r=xn.put(t.eventHub,!0,m.url,h,JSON.stringify(i),null,null,t.model.operationType,g,v)}if(null===r)return a=new Dt.unexpectedError(At.unableToSetupPolling),y(a,e),!1;r.then((function(r){if(p&&t.pollingTimersAndCounters[e].pollingCounter++>d){var o=new Dt.unexpectedError(At.pollingTimedOut);return y(o,e),!1}var i=t.getPidlActionFromPollingResponse(r,c,u)||n;if(i.type!==B.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),i.type===B.moveNextAndPoll)return t.model.moveNextPage().catch(un),t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===B.updatePoll)return t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===B.handleFailure)return t.eventHub.failure(new Dt.unexpectedError(At.failurePollingResponseReturned,[JSON.stringify(r)])),!1;r&&$t.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(r)}if(!(r&&r.clientAction&&i&&i.type===B.success))return t.model.invokePidlAction(i);t.model.handleClientAction(r.clientAction).then((function(){t.eventHub.pollClientActionSuccess(r.clientAction.type)})).catch((function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+r.clientAction.type)}))}),(function(t){return y(t,e),!1}))}),l),!0},this.testHookPublicEventHandler=function(e,n){t.publicEventHandler(e,n)},this.testHookPrivateEventHandler=function(e,n){t.privateEventHandler(e,n)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,n){t.displaySettings=e,t.fillForm(n)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,n){t.deregisterGroupedErrors(e,n)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler((function(e,n){t.publicEventHandler(e,n)})),this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e,n)})),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)},Qr=function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var n=rn.toLowerCase(t);rn.contains(e.envs,n)&&(e.env=n,rt.setEnv(e.env))},this.getAll=function(){return e.envs}},Zr=new Qr,Jr=new function(){this.get=function(){return"2.4.0"}},$r=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),Zt.getOneDSService()&&(e.applicationInsightsInstance=Zt.getOneDSService().getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[]};e.applicationInsightsInstance&&rn.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(n){Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",n)}},this.initCVPlugin=function(){if(!e.cvPlugin){Zt.getOneDSService()&&(e.cvPlugin=Zt.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&rn.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&rn.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(Zt.getOneDSService()&&(e.cvPlugin=Zt.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&rn.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&rn.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(i){Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",i)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&rn.isFunction(t.increment)&&t.increment()}catch(n){Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",n)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&rn.isFunction(t.getValue)&&t.getValue()}catch(n){Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",n)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(n){Zt.getLoggingService()&&Zt.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",n)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}},eo=new $r,to=function(e,t){var n=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.sdkVersion=Jr.get(),this.env=Zr.get(),this.sessionId=tn.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.updateResourceInfo=function(e){if(e){try{for(var t in e.parameters)e.parameters.hasOwnProperty(t)&&(n.telemetryResource.parameters[t]=e.parameters[t])}catch(r){}e.id&&(n.telemetryResource.parameters.id=e.id),e.resourceType&&(n.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){n.operationType=e,t&&n.updateResourceInfo(t)},this.trackNewOperation=function(e,t){n.operationId=tn.guid(),n.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&eo&&eo.initCV(this.partnerContext.cvInitValue));var r=this.partnerContext,o=r.sessionId,i=r.cvInitValue;!o&&i&&(o=i.substr(0,i.indexOf(".")),this.partnerContext.sessionId=o),!o&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t},no=function(){function e(){}return e.prototype.logError=function(e,t){var n="";if(t)try{n=JSON.stringify(t)}catch(o){n=""}var r=e+"= "+n;console.error(r)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),ro=function(){var e=this;this.createUserDataPropertyValue=function(e,t,n,r,o){if(t.indexedOn&&t.possible_values){var i=n.getPropertyValue(t.indexedOn,!1);if(i&&t.possible_values[i])return t.possible_values[i]}var a=n.getPropertyValue(Xt.getDisplayPropertyName(t,e),r,o);return a=void 0===a?tn.getFormatStringExpressionValue(t.default_value,{modelData:n}):a,t.type===ye.bool&&(a=rn.boolify(a)),a},this.createUserSecureInputDataInternal=function(t,n,r,o,i,a,s){var l=t.data_description,c=[];for(var u in l){var d=l[u];if(Ht(d)){var p=d&&d.length&&d[0];if(p){var h=e.createUserSecureInputDataInternal(p,n,r,o,i,a,s);c.push(h)}}else{var m=n.getModelDataProperty(u);if(m&&m.modelElement&&m.modelElement.isSecureProperty()){d.token_set&&d.token_set.startsWith(Ue.tokenizationValuePrefix)&&(d.token_set=d.token_set.replace(Ue.tokenizationValuePrefix,""));var f=m.modelElement.prepareForSubmit(d.token_set).then((function(e){var t=l[e.propertyName];t.token_set=Ue.tokenizationValuePrefix+t.token_set,i[e.propertyName]=e.value}));c.push(f)}}}return Promise.all(c).then((function(){}))},this.createUserInputDataInternal=function(t,n,r,o,i,a){var s,l={},c=t.data_description;for(var u in c){var d=c[u];if(Ht(d)){var p=d&&d.length&&d[0];p&&(l[u]=e.createUserInputDataInternal(p,n,r,o,i,a))}else{if(d.displayOnly&&!a||o===it.update&&!d.is_updatable)continue;if(d.type===ye.hidden){l[u]||(r[u]?l[u]=r[u]:l[u]=tn.getFormatStringExpressionValue(d.default_value,{modelData:n}));continue}var h=e.createUserDataPropertyValue(u,d,n,i,a);h&&(i&&d.type===ye.returnObject?(rn.isObject(h)||((s={})[u]=h,h=s),l=tn.extend({},l,h)):l[u]=e.getValueInDataType(h,i,d))}}return l},this.getValueInDataType=function(e,t,n){if(t){if(n.type===ye.number){var r=Number(e);return isNaN(r)?e:r}if(n.type===ye.bool){if(!rn.isBool(e))return rn.equalsIgnoreCase(e,"true")}else if(n.type===ye.object&&!rn.isObject(e))try{return JSON.parse(e)}catch(o){return e}}return e},this.canSubmitUserInputDataInternal=function(t,n,r){var o=t.data_description;for(var i in o){var a=o[i];if(Ht(a)){var s=a&&a.length&&a[0];if(s&&(e.canSubmitUserInputDataInternal(s,n?n[i]:n,r),r.canSubmit))return}else if(a.propertyType===Ce.userData&&(r.noUserInputData=!1,!a.is_optional||n&&n[i]))return void(r.canSubmit=!0)}},this.createUserInputData=function(t,n,r,o,i,a){return e.createUserInputDataInternal(t,n,r,o,i,a)},this.createUserSecureInputData=function(t,n,r,o,i,a){var s={};return e.createUserSecureInputDataInternal(t,n,r,o,s,i,a).then((function(){return s}))},this.canSubmitUserInputData=function(t,n){var r={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,n,r),r.canSubmit||r.noUserInputData}},oo=new ro,io=function(){var e=this;this.setPropertyValueOfInputData=function(t,n,r){for(var o in t){if(o===n){t[o]=r;break}rn.isObject(t[o])&&e.setPropertyValueOfInputData(t[o],n,r)}},this.checkForValidTransformationTarget=function(e,t){var n=e.transformation,r=void 0===n?{}:n;return t===b.forSubmit&&rn.boolify(r.forSubmit)||t===b.forDisplay&&rn.boolify(r.forDisplay)},this.transformUserInputDataFromService=function(e,t,n,r,o,i,a,s){var l={value:o,pidlIdentity:t.identity,propertyName:n,transformationTarget:r},c=xn.getDefaultHttpHeaders(e);c[Q.msFlight]="pxpidl",xn.post(e,!0,an.buildUrl(rt.getServiceEndpoint(rt.virtualEndpoints.transformation.endpoint),[i]),c,JSON.stringify(l),(function(e){var t;t=rn.equalsIgnoreCase(e.status,x.Passed)?{status:x.Passed,transformedValue:e.transformedValue}:{status:x.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage},s(t)}),(function(e){s({status:x.Error,mode:st.service,errorMessage:e.errorMessage})}),a,rt.virtualEndpoints.transformation.operation,rt.virtualEndpoints.transformation.description,!0).catch(un)},this.transformPropertyInternal=function(t,n,r,o,i,a,s,l){var c=!1,u=n.data_description,d=function(d){var p=u[d];if(Ht(p)){var h=p.length&&p[0];h&&(c=e.transformPropertyInternal(t,h,r,o,i,a,(function(e){s(e)}),l)||c)}else if(d===r){var m=Xt.getPropertyValueFromInputData(o,d);if(e.transformPropertyFromPropertyDescription(t,n,d,p,i,m,a,(function(t){t.status===x.Passed&&(e.setPropertyValueOfInputData(o,d,t.transformedValue),l()),t.status!==x.Error&&t.status!==x.Fail||s(new Error(t.errorMessage))})),e.checkForValidTransformationTarget(p,i))return{value:!0}}};for(var p in u){var h=d(p);if("object"===typeof h)return h.value}return c},this.transformUserInputDataInternal=function(t,n,r,o,i,a,s,l){var c=n.data_description,u=0,d=!1,p=l?r:c,h=function(p){var h=c[p];if(Ht(h)){var m=h&&h.length&&h[0];m&&(u++,d=e.transformUserInputDataInternal(t,m,r[p],o,(function(e){i(e)}),(function(){0===--u&&d&&a&&a()}),s,l)||d)}else{if(s===it.update&&!h.is_updatable)return"continue";var f=Xt.getPropertyValueFromInputData(r,p);if(!f){if(h.displayOnly||l)return"continue";h.is_optional||i(new Error(p+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(d=e.transformPropertyFromPropertyDescription(t,n,p,h,o,f,s,(function(t){t.status===x.Passed&&e.setPropertyValueOfInputData(r,p,t.transformedValue),t.status!==x.Error&&t.status!==x.Fail||i(new Error(t.errorMessage)),t.mode===st.service&&0===--u&&a&&a()})))&&u++}};for(var m in p)h(m);return 0===u&&a&&a(),u>0},this.transformPropertyFromPropertyDescription=function(t,n,r,o,i,a,s,l){var c={},u=!1;if(!a)return!1;if(o.transformation){var d=null;if(i===b.forSubmit){if(!o.transformation.forSubmit)return l(c),u;d=o.transformation.forSubmit}else{if(i!==b.forDisplay)throw new Error(r+"has invalid transformation type.");if(!o.transformation.forDisplay)return l(c),u;d=o.transformation.forDisplay}var p=d.inputregex,h=d.transformregex;if(p){if(h){var m=new RegExp(p),f=a.replace(m,h);c={status:x.Passed,transformedValue:JSON.parse('"'+f+'"')}}c.mode=st.regex}else d.url&&(u=!0,e.transformUserInputDataFromService(t,n,r,i,a,d.url,s,(function(e){(c=e).mode=st.service,l(c)})))}return u||l(c),u},this.getUserDisplayDataPartial=function(t,n,r,o,i,a){var s=rn.deepCopy(r);e.transformUserInputDataInternal(t,n,s,b.forDisplay,o,(function(){i(s)}),a,!0)},this.transformUserInputData=function(t,n,r,o,i,a){e.transformUserInputDataInternal(t,n,r,b.forSubmit,o,i,a)},this.transformUserInputPropertyForDisplay=function(t,n,r,o,i,a,s){e.transformPropertyInternal(t,n,r,o,b.forDisplay,i,a,s)||a(Error("The property with property Name:"+r+" does not have valid display transform in data description"))}},ao=new io,so=function(){function e(){var e=this;this.getParentOfProperty=function(t,n){for(var r in n){if(r===t)return n;if(rn.isObject(n[r])){var o=e.getParentOfProperty(t,n[r]);if(o)return o}}},this.areIdentitiesEqual=function(e,t){if(!e||!t)return!1;if(rn.keyCount(e)!==rn.keyCount(t))return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},this.resolveInfoDescriptionId=function(t,n){return e.invoke((function(e){try{var r=Kt.resolveInfoDescriptionId(t,n);e.resolve(r)}catch(o){e.reject(o)}}))},this.getFirstPidlWithValidDefaultKey=function(e,t){return Kt.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,n,r,o,i){return oo.createUserInputData(e,t,n,r,o,i)},this.createUserSecureInputData=function(e,t,n,r,o,i){return oo.createUserSecureInputData(e,t,n,r,o,i)}}return e.prototype.invoke=function(e){return new Promise((function(t,n){e({resolve:t,reject:n})}))},e.prototype.getUserDisplayDataPartial=function(e,t,n,r){return this.invoke((function(o){try{var i=t.getResolvedOrAllPidlDocs(),a=Xt.getFirstResolvedPidlDocument(i,n);null==a&&(a=i[0]),ao.getUserDisplayDataPartial(e,a,n,(function(e){o.reject(e)}),(function(e){o.resolve(e)}),r)}catch(s){o.reject(s)}}))},e.prototype.transformUserInputData=function(e,t,n,r){return this.invoke((function(o){try{ao.transformUserInputData(t,e,n,(function(e){o.reject(e)}),(function(){o.resolve()}),r)}catch(i){o.reject(i)}}))},e.prototype.transformUserInputPropertyForDisplay=function(e,t,n,r,o){var i=this;return this.invoke((function(a){var s=!1;t.propertyTransforming(n);try{var l=i.getParentOfProperty(n,r),c={};c[n]=l[n];var u=Xt.getFirstResolvedPidlDocument(e,r);null==u&&(u=e[0]),ao.transformUserInputPropertyForDisplay(t,u,n,c,o,(function(e){s=!0,a.reject(e)}),(function(){t.propertyTransformed(n),l[n]=c[n],a.resolve()})),s||(t.propertyTransformed(n),l[n]=c[n],a.resolve())}catch(d){a.reject(d)}}))},e.prototype.canSubmitUserInputData=function(e,t){return oo.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return Kt.getPidlSubmitOrder(e)},e}();function lo(e,t){return xn.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description)}var co=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,n){return n?new Promise((function(e,r){n(t,(function(t){e(t)}),(function(e){r(e)}))})):lo(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),lo(e,t)},e.prototype.submitPidlDocument=function(e,t,n,r){return e.inputSubmitting(t.url),new Promise((function(o,i){xn.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===xe.Get||t.method.toUpperCase()===xe.Delete?null:JSON.stringify(t.data),(function(n){r&&(n=r(t,n));var i="None";zt(n)&&n.clientAction&&(i=n.clientAction.type),e.inputSubmitted(i),o(n)}),(function(e){i(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(o)}))},e.prototype.invokeRestMethod=function(e,t,n){return new Promise((function(r,o){xn.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,(function(e){r(e)}),(function(e){o(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(r)}))},e.prototype.getRequestInstance=function(e,t,n,r){var o=an.getResourceUrl(t,n);return{url:o.url,headers:xn.getHttpHeaders(e,n,null,o.template,null),virtualEndpoint:o.virtualEndpoint,pidlOperation:r}},e}(),uo=function(){function e(){this.cache=null,this.cache=new wn}return e.prototype.put=function(e,t,n,r){var o={pidlDocInfo:t,pidls:n,resolvedPidlIdentity:r};this.cache.put(e,o)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf((function(t){return t&&t.pidlDocInfo&&rn.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)}))},e}(),po=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!(!window||!window.open)&&(window.open(e),!0)},e}(),ho=function(){function e(e,t,n,r,o,i,a,s,l,c){var u=this;this.logConstructorCall=function(e,t,n,r,o){var i={userContext:rn.boolify(e),returnOptions:rn.boolify(t),eventHandler:rn.boolify(n),displayOptions:rn.boolify(r),telemetryOptions:rn.boolify(o)},a={returnOptions:t,displayOptions:r,telemetryOptions:o};u.eventHub.apiCalled(ge.constructor,i,a)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&u.eventHub.error(new Dt.unexpectedError(At.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case H.stateChanged:t&&t.newState===de.initialized&&window.addEventListener("unhandledrejection",u.unhandledRejectionHandler);break;case H.failure:case H.success:case H.gohome:window.removeEventListener("unhandledrejection",u.unhandledRejectionHandler)}}catch(n){}},this.canApiStart=function(e){var t=u.stateManager.canApiStart(e);return!!t.result||(u.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:rn.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var n={piFamily:null===t||void 0===t?void 0:t.family,piType:null===t||void 0===t?void 0:t.type,tokenReference:null===t||void 0===t?void 0:t.tokenReference,sessionData:e};return new Promise((function(e,t){var r,o={resourceType:_.WalletToken,parameters:{}},i=ln.getResourceEndpoint(o.resourceType),a=null===(r=an.getResourceUrl(o,u.userContext))||void 0===r?void 0:r.url;try{return xn.post(u.eventHub,!0,a,xn.getHttpHeaders(u.eventHub,u.userContext,void 0,i.template),JSON.stringify(n),(function(t){return e(t)}),(function(e){return t(e)}),it.provisionWalletToken,i.operation,i.description,!0)}catch(s){t(s)}}))},this.handlePaymentAgentChallenge=function(e,t,n,r){var o,i;if(!(null===(i=null===(o=null===window||void 0===window?void 0:window.paymentAgent)||void 0===o?void 0:o.isReadyToPay)||void 0===i?void 0:i.call(o))){var a=new Dt.invalidSetupError(At.invalidSetup);return u.eventHub.failure(a),u.apiFailure(!1)}var s=window.paymentAgent.handleChallenge(e,r).then((function(r){return r.tokenReference?u.provisionWalletToken(e,r).then((function(r){return n&&(n.current.style.display="flex",n.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=p(p({},e),r),u.renderPidlPageInternal(t)})):u.renderPidlPageInternal(t)})).catch((function(e){if("cancel"===(null===e||void 0===e?void 0:e.type)||"AbortError"===(null===e||void 0===e?void 0:e.name)||"CANCELED"===(null===e||void 0===e?void 0:e.statusCode))return u.model.gohome(),pn();var t={error:e,stack:null===e||void 0===e?void 0:e.stack,message:null===e||void 0===e?void 0:e.message},n=void 0;return n="failed to open window"===e?new Dt.failedToOpenWindowError(At.failedToOpenWindow,JSON.stringify(t)):new Dt.paymentMethodFailureError(At.paymentMethodFailure,JSON.stringify(t)),u.eventHub.failure(n),u.apiFailure(n)}));return u.apiSuccess(!0,s)},this.invokeResourceAction=function(e){if(u.telemetryContext.trackNewOperation(M.invokeResourceAction),u.eventHub.apiCalled(ge.invokeResourceAction),!u.canApiStart(ge.invokeResourceAction)||!e||!En.validateResourceActionParams(u.eventHub,e))return u.eventHub.apiReturned(ge.invokeResourceAction,!1),u.apiFailure(!1);var t=e.resourceActionContext,n={result:null,promise:pn(null)};switch(t.action){case O.addResource:case O.addAddress:u.telemetryContext.update(M.add,t.pidlDocInfo),n=u.addResourceInternal(it.add,t.pidlDocInfo,e.prefillData,e.options);break;case O.collectResourceInfo:u.telemetryContext.update(M.renderPidlPage,t.pidlDocInfo),n=u.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case O.handleChallenge:u.telemetryContext.update(M.verify,t.resourceInfo),n=u.handleChallengeInternal(t.resourceInfo,e.options);break;case O.selectPaymentInstrument:case O.selectResource:u.telemetryContext.update(M.selectResource,t.pidlDocInfo),n=u.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case O.selectResourceType:u.telemetryContext.update(M.selectResourceType,t.pidlDocInfo),n=u.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case O.selectSingleResource:u.telemetryContext.update(M.selectSingleResource,t.pidlDocInfo),n=u.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case O.updateProfile:case O.updateResource:u.telemetryContext.update(M.update,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case O.deleteResource:u.telemetryContext.update(M.delete,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,it.delete);break;case O.searchTransactions:u.telemetryContext.update(M.searchTransactions,t.pidlDocInfo),n=u.addResourceInternal(it.searchTransactions,t.pidlDocInfo,void 0,e.options)}return u.eventHub.apiReturned(ge.invokeResourceAction,rn.boolify(n.result),n.promise),n},this.addResourceInternal=function(e,t,n,r){if(!En.validatePidlDocInfo(u.eventHub,t)||!En.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);var o=an.getPidlDocUrl(u.userContext,e,t);return u.apiSuccess(!0,u.getPidl(o,n,e,r,t))},this.addResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(M.add,e),u.eventHub.apiCalled(ge.addResource,{pidlDocInfo:rn.boolify(e),prefillData:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.addResource))return u.eventHub.apiReturned(ge.addResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(it.add,e,t,n);return u.eventHub.apiReturned(ge.addResource,r.result,r.promise),r},this.searchTransactions=function(e){var t=e.pidlDocInfo,n=e.options;if(u.telemetryContext.trackNewOperation(M.searchTransactions,t),u.eventHub.apiCalled(ge.searchTransactions,{pidlDocInfo:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:t}),!u.canApiStart(ge.searchTransactions))return u.eventHub.apiReturned(ge.searchTransactions,!1),u.apiFailure(!1);var r=u.addResourceInternal(it.searchTransactions,t,void 0,n);return u.eventHub.apiReturned(ge.searchTransactions,r.result,r.promise),r},this.addPaymentInstrument=function(e,t,n){var r=p(p({},e),{resourceType:"PaymentInstrument"});if(u.telemetryContext.trackNewOperation(M.addPaymentInstrument,r),u.eventHub.apiCalled(ge.addPaymentInstrument,{pidlDocInfo:rn.boolify(r),prefillData:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:r}),!u.canApiStart(ge.addPaymentInstrument))return u.eventHub.apiReturned(ge.addPaymentInstrument,!1),u.apiFailure(!1);var o=u.addResourceInternal(it.add,r,t,n);return u.eventHub.apiReturned(ge.addPaymentInstrument,o.result,o.promise),o},this.applyResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(M.applyResource,e),u.eventHub.apiCalled(ge.applyResource,{pidlDocInfo:rn.boolify(e),prefillData:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.applyResource))return u.eventHub.apiReturned(ge.applyResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(it.apply,e,t,n);return u.eventHub.apiReturned(ge.applyResource,r.result,r.promise),r},this.replaceResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(M.replace,e),u.eventHub.apiCalled(ge.replaceResource,{pidlDocInfo:rn.boolify(e),prefillData:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.replaceResource))return u.eventHub.apiReturned(ge.replaceResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(it.replace,e,t,n);return u.eventHub.apiReturned(ge.replaceResource,r.result,r.promise),r},this.addAddress=function(e,t,n){var r=p(p({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(M.addAddress,r),u.eventHub.apiCalled(ge.addAddress,{pidlDocInfo:rn.boolify(r),prefillData:rn.boolify(t),options:rn.boolify(n)},{pidlDocInfo:r}),!u.canApiStart(ge.addAddress))return u.eventHub.apiReturned(ge.addAddress,!1),u.apiFailure(!1);var o=u.addResourceInternal(it.add,r,t,n);return u.eventHub.apiReturned(ge.addAddress,o.result,o.promise),o},this.validateAddress=function(e){var t=p(p({},e),{resourceType:"Address"});return u.validateResource(t)},this.handleCheckout=function(e){var t=e||{},n=t.checkoutId,r=t.partner,o=t.redirectUrl,i=t.paymentProviderId,a=t.language,s=t.market,l={resourceType:_.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser};if(u.telemetryContext.trackNewOperation(M.handleCheckout,l),u.eventHub.apiCalled(ge.handleCheckout,{checkoutParams:rn.boolify(e)},{}),!u.canApiStart(ge.handleCheckout)||!En.validateCheckoutParams(u.eventHub,e))return u.eventHub.apiReturned(ge.handlePaymentChallenge,!1),u.apiFailure(!1);var c={resourceType:_.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser},d=u.renderPidlPageInternal(c);return u.eventHub.apiReturned(ge.handleCheckout,d.result,d.promise),d},this.getPayeeTaxProfile=function(e){var t=e||{},n=t.section,r=t.tenant,o=t.sapidind,i=t.status,a=t.accounttype,s=t.payfromcc,l=t.residencecc,c=t.language,d={resourceType:_.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}};if(u.telemetryContext.trackNewOperation(M.getPayeeTaxProfile,d),u.eventHub.apiCalled(ge.getPayeeTaxProfile,{payeeTaxProfileParams:rn.boolify(e)},{}),!u.canApiStart(ge.getPayeeTaxProfile)||!En.validatePayeeTaxProfileParams(u.eventHub,e))return u.eventHub.apiReturned(ge.getPayeeTaxProfile,!1),u.apiFailure(!1);var p={resourceType:_.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}},h=u.renderPidlPageInternal(p);return u.eventHub.apiReturned(ge.getPayeeTaxProfile,h.result,h.promise),h},this.createPaymentSession=function(e){var t=e||{},n=t.partner,r=void 0===n?null:n,o=t.country,i=void 0===o?null:o,a=t.language,s=void 0===a?null:a,l={resourceType:_.PaymentSession,parameters:{partner:r,market:i,language:s,paymentSessionData:e}};if(u.telemetryContext.trackNewOperation(M.createPaymentSession,l),u.eventHub.apiCalled(ge.createPaymentSession,{paymentSessionData:rn.boolify(e)},{}),!u.canApiStart(ge.createPaymentSession)||!En.validatePaymentSessionData(u.eventHub,e))return u.eventHub.apiReturned(ge.createPaymentSession,!1),u.apiFailure(!1);var c={resourceType:_.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(c.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(c.parameters.classicProduct=e.classicProduct);var d=u.addResourceInternal(it.add,c);return u.eventHub.apiReturned(ge.createPaymentSession,d.result,d.promise),d},this.renderPidlPageInternal=function(e,t){if(!En.validatePidlDocInfo(u.eventHub,e)||!En.validateSelectOrRenderOptions(u.eventHub,t))return u.apiFailure(!1);var n=it.renderPidlPage,r=an.getPidlDocUrl(u.userContext,n,e);return u.apiSuccess(!0,u.getPidl(r,null,n,t,e))},this.renderPidlPage=function(e,t){if(u.telemetryContext.trackNewOperation(M.renderPidlPage,e),u.eventHub.apiCalled(ge.renderPidlPage,{pidlDocInfo:rn.boolify(e),options:rn.boolify(t)},{pidlDocInfo:e}),!u.canApiStart(ge.renderPidlPage))return u.eventHub.apiReturned(ge.renderPidlPage,!1),u.apiFailure(!1);var n=u.renderPidlPageInternal(e,t);return u.eventHub.apiReturned(ge.renderPidlPage,n.result,n.promise),n},this.handlePaymentChallenge=function(e,t){var n,r,o=e||{},i=o.partner,a=void 0===i?null:i,s=o.country,l=void 0===s?null:s,c=o.language,d=void 0===c?null:c,p={resourceType:_.Challenge,parameters:{partner:a,market:l,language:d,paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};if(u.telemetryContext.trackNewOperation(M.handlePaymentChallenge,p),u.eventHub.apiCalled(ge.handlePaymentChallenge,{paymentSessionData:rn.boolify(e)},{}),!u.canApiStart(ge.handlePaymentChallenge)||!En.validatePaymentSessionOrData(u.eventHub,e))return u.eventHub.apiReturned(ge.handlePaymentChallenge,!1),u.apiFailure(!1);var h,m={resourceType:_.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};e.billableAccountId&&(m.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(m.parameters.classicProduct=e.classicProduct);var f=u.userContext.getHeaders({},""),g=f[Q.msFlight]||"",v=f[Q.msTest]||"";if((null===g||void 0===g?void 0:g.includes(Z.enablePaymentAgentChallenge))&&(null===(r=null===(n=window.paymentAgent)||void 0===n?void 0:n.isPaymentAgentSupportedPI)||void 0===r?void 0:r.call(n,e)))h=u.handlePaymentAgentChallenge(e,m,t,v);else if(e.piid===fn.googlePay||e.piid===fn.applePay){var y=new Dt.invalidSetupError(At.invalidSetup);u.eventHub.failure(y),h=u.apiFailure(!1)}else h=u.renderPidlPageInternal(m);return u.eventHub.apiReturned(ge.handlePaymentChallenge,h.result,h.promise),h},this.handlePurchasePendingState=function(e){if(u.telemetryContext.trackNewOperation(M.handlePurchasePendingState),u.eventHub.apiCalled(ge.handlePurchasePendingState),!u.canApiStart(ge.handlePurchasePendingState)||!e||!En.validateHandlePurchasePendingStateParams(u.eventHub,e))return u.eventHub.apiReturned(ge.handlePurchasePendingState,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e),n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(ge.handlePurchasePendingState,!0,n.promise),u.apiSuccess(!0,n.promise)},this.handlePurchaseRiskChallenge=function(e){if(u.telemetryContext.trackNewOperation(M.handlePurchaseRiskChallenge),u.eventHub.apiCalled(ge.handlePurchaseRiskChallenge),!u.canApiStart(ge.handlePurchaseRiskChallenge)||!e||!En.validatePurchaseRiskChallengeParams(u.eventHub,e))return u.eventHub.apiReturned(ge.handlePurchaseRiskChallenge,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(ge.handlePurchaseRiskChallenge,n.result,n.promise),n},this.handleChallengeInternal=function(e,t){if(!En.validateResourceInfo(u.eventHub,e)||!En.validateAddUpdateOrDeleteOptions(u.eventHub,t))return u.apiFailure(!1);var n=it.add;u.model.operationType=n,u.model.operationOptions=t,u.model.pidlDocManager.setOperationInfo({operationType:n});var r=Zt.getPidlService(),o=r.getRequestInstance(u.eventHub,e,u.userContext,n),i=r.getInstance(u.eventHub,o);return u.apiSuccess(!0,i.then((function(t){u.stateManager.setState(de.executing),u.eventHub.instanceDownloaded();var r=ln.getPidlDocInfoFromResource(e,t);if(u.telemetryContext.updateResourceInfo(r),t.clientAction)return u.model.handleClientAction(t.clientAction,t);u.eventHub.success({id:t.id,operationType:n,response:t})}),(function(e){var t=tn.createServerError(At.resourceInstanceDownloadFailed,o.url,e,[e.errorMessage]);return u.eventHub.failure(t),hn(t)})))},this.handleChallenge=function(e,t){if(u.telemetryContext.trackNewOperation(M.verify,e),u.eventHub.apiCalled(ge.handleChallenge,{resourceInfo:rn.boolify(e),options:rn.boolify(t)},{resourceInfo:e}),!u.canApiStart(ge.handleChallenge))return u.eventHub.apiReturned(ge.handleChallenge,!1),u.apiFailure(!1);var n=u.handleChallengeInternal(e,t);return u.eventHub.apiReturned(ge.handleChallenge,n.result,n.promise),n},this.updateOrDeleteResourceInternal=function(e,t,n,r,o){if(n&&!En.validatePidlDocInfo(u.eventHub,n)||!En.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);o=o||it.update;u.model.operationType=o,u.model.operationOptions=r,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:n}),u.model.pidlDocManager.setOperationInfo({operationType:o});var i=null;if(t)i=u.downloadPidlDocument(an.getPidlDocUrl(u.userContext,o,n),r,(function(){return u.model.populate(t,!0)}),n);else{if(!En.validateResourceInfo(u.eventHub,e))return u.apiFailure(!1);i=u.downloadInstance(e,n,o,r)}return u.apiSuccess(!0,i.then((function(){return u.stateManager.setState(de.executing)})))},this.updateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(M.update,n||e),u.eventHub.apiCalled(ge.updateResource,{resourceInfo:rn.boolify(e),resource:rn.boolify(t),pidlDocInfo:rn.boolify(n),options:rn.boolify(r)},{resourceInfo:e,pidlDocInfo:n}),!u.canApiStart(ge.updateResource))return u.eventHub.apiReturned(ge.updateResource,!1),u.apiFailure(!1);var o=u.updateOrDeleteResourceInternal(e,t,n,r);return u.eventHub.apiReturned(ge.updateResource,o.result,o.promise),o},this.selectResource=function(e,t,n,r,o,i,a){if(!i&&!e||e&&(!En.validatePidlDocInfo(u.eventHub,e)&&!En.validateResourceInfo(u.eventHub,e)||!En.validateSelectOrRenderOptions(u.eventHub,t))||i&&!En.validateHandle(u.eventHub,i)||a&&!En.validateSelectedResourceInfo(u.eventHub,a))return u.apiFailure(null);a&&(a.id||a.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},a.id&&(e.parameters.filters.id=a.id),a.backupId&&(e.parameters.filters.backupId=a.backupId));var s=i||tn.guid();u.model.pidlDocManager.setOperationInfo({handle:s,operationType:n}),u.model.operationType=n,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var l=null;return i?l=new Promise((function(e,t){u.model.pidlDocManager.retrievePidlDocFromCache(u.eventHub,s,o).then((function(){r().then(e,(function(e){t(e)}))}),(function(e){u.eventHub.failure(new Dt.unexpectedError(e,[])),t()}))})):(u.model.operationOptions=t,ln.updatePidlDocInfo(e),l=u.downloadPidlDocument(an.getPidlDocUrl(u.userContext,n,e),t,r,e,o)),u.apiSuccess(s,l.then((function(){return u.stateManager.setState(de.executing)})))},this.selectResourceTypeInternal=function(e,t){return u.selectResource(e,t,it.select,u.onDownloadValidateOrSelectResourceType.bind(u))},this.selectResourceType=function(e,t){u.telemetryContext.trackNewOperation(M.selectResourceType,e);var n=e,r=u.userContext.getHeaders({},"")[Q.msFlight]||"";if((null===r||void 0===r?void 0:r.includes(Z.enablePaymentAgentChallenge))&&(n=tn.verifyClientSupported(e)),u.eventHub.apiCalled(ge.selectResourceType,{pidlDocInfo:rn.boolify(n),options:rn.boolify(t)},{pidlDocInfo:n}),!u.canApiStart(ge.selectResourceType))return u.eventHub.apiReturned(ge.selectResourceType,!1),u.apiFailure(null);var o=u.selectResourceTypeInternal(n,t);return u.eventHub.apiReturned(ge.selectResourceType,rn.boolify(o.result),o.promise),o},this.updateProfile=function(e,t,n,r){var o=p(p({},n),{resourceType:"Profile"});if(u.telemetryContext.trackNewOperation(M.updateProfile,o||e),u.eventHub.apiCalled(ge.updateProfile,{resourceInfo:rn.boolify(e),resource:rn.boolify(t),pidlDocInfo:rn.boolify(o),options:rn.boolify(r)},{resourceInfo:e,pidlDocInfo:o}),!u.canApiStart(ge.updateProfile))return u.eventHub.apiReturned(ge.updateProfile,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(e,t,o,r);return u.eventHub.apiReturned(ge.updateProfile,i.result,i.promise),i},this.selectInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,it.selectInstance,(function(){return u.onDownloadSelectResource(n&&n.prefillData)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectInstance=function(e,t,n,r){u.telemetryContext.trackNewOperation(M.selectResource,e);var o=e,i=u.userContext.getHeaders({},"")[Q.msFlight]||"";if((null===i||void 0===i?void 0:i.includes(Z.enablePaymentAgentChallenge))&&(o=tn.verifyClientSupported(e)),u.eventHub.apiCalled(ge.selectResource,{pidlDocInfo:rn.boolify(o),options:rn.boolify(t),actionContext:rn.boolify(n)},{pidlDocInfo:o}),!u.canApiStart(ge.selectResource))return u.eventHub.apiReturned(ge.selectResource,!1),u.apiFailure(null);var a=u.selectInstanceInternal(o,t,n,r);return u.eventHub.apiReturned(ge.selectResource,rn.boolify(a.result),a.promise),a},this.listAddress=function(e,t,n,r){var o=p(p({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(M.listAddress,o),u.eventHub.apiCalled(ge.listAddress,{pidlDocInfo:rn.boolify(e),options:rn.boolify(t),actionContext:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.listAddress))return u.eventHub.apiReturned(ge.listAddress,!1),u.apiFailure(null);var i=u.selectInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(ge.listAddress,rn.boolify(i.result),i.promise),i},this.selectPaymentInstrument=function(e,t,n,r){var o=p(p({},e),{resourceType:"PaymentInstrument"});if(u.telemetryContext.trackNewOperation(M.selectPaymentInstrument,o),u.eventHub.apiCalled(ge.selectPaymentInstrument,{pidlDocInfo:rn.boolify(o),options:rn.boolify(t),actionContext:rn.boolify(n)},{pidlDocWithResource:o}),!u.canApiStart(ge.selectPaymentInstrument))return u.eventHub.apiReturned(ge.selectPaymentInstrument,!1),u.apiFailure(null);var i=u.selectInstanceInternal(o,t,n,r);return u.eventHub.apiReturned(ge.selectPaymentInstrument,rn.boolify(i.result),i.promise),i},this.selectSingleInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,it.selectSingleInstance,(function(){return u.onDownloadSelectSingleResource(n&&n.handle)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectSingleInstance=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(M.selectSingleResource,e),u.eventHub.apiCalled(ge.selectSingleResource,{pidlDocInfo:rn.boolify(e),options:rn.boolify(t),actionContext:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.selectSingleResource))return u.eventHub.apiReturned(ge.selectSingleResource,!1),u.apiFailure(null);var o=u.selectSingleInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(ge.selectSingleResource,rn.boolify(o.result),o.promise),o},this.runApi=function(e,t,n,r,o){if(void 0===n&&(n=function(){return!1}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=function(){}),u.eventHub.apiCalled(e),!u.canApiStart(e)||n())return u.eventHub.apiReturned(e,!1),u.apiFailure(!1);var i=t(),a=r();return u.eventHub.apiReturned(e,rn.boolify(a),i),u.apiSuccess(a,o()||i)},this.showResource=function(e){u.telemetryContext.trackNewOperation(M.show);var t=e.pidlDocInfo,n=e.prefillData,r=e.options;return u.runApi(ge.showResource,(function(){var e=it.show,o=an.getPidlDocUrl(u.userContext,e,t);return u.getPidl(o,n,e,r,t)}),(function(){return!e||!En.validateShowResourceParams(u.eventHub,e)||!En.validatePidlDocInfo(u.eventHub,t)||!En.validateResourceOptions(u.eventHub,r)}))},this.offerResource=function(e){u.telemetryContext.trackNewOperation(M.offer);var t=e.pidlDocInfo;return u.runApi(ge.offerResource,(function(){var e=it.offer,n=an.getPidlDocUrl(u.userContext,e,t);return u.getPidl(n,null,e,null,t)}),(function(){return!e||!En.validateOfferResourceParams(u.eventHub,e)||!En.validatePidlDocInfo(u.eventHub,t)}))},this.searchResource=function(e){u.telemetryContext.trackNewOperation(M.search);var t=e.pidlDocInfo,n=e.options;return u.runApi(ge.searchResource,(function(){var e=it.search,r=an.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!En.validateSearchResourceParams(u.eventHub,e)}))},this.deleteResource=function(e){var t=e.resourceInfo,n=e.resource,r=e.pidlDocInfo,o=e.options;if(u.telemetryContext.trackNewOperation(M.delete,t||r),u.eventHub.apiCalled(ge.deleteResource,{resourceInfo:rn.boolify(t),resource:rn.boolify(n),pidlDocInfo:rn.boolify(r),options:rn.boolify(o)},{resourceInfo:t,pidlDocInfo:r}),!u.canApiStart(ge.deleteResource)||!e)return u.eventHub.apiReturned(ge.deleteResource,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(t,n,r,o,it.delete);return u.eventHub.apiReturned(ge.deleteResource,i.result,i.promise),i},this.fundStoredValue=function(e){u.telemetryContext.trackNewOperation(M.fundStoredValue);var t=e.pidlDocInfo,n=e.options;return u.runApi(ge.fundStoredValue,(function(){var e=it.fundStoredValue,r=an.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!En.validateFundStoredValueParams(u.eventHub,e)}))},this.validateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(M.validateResource,e),u.eventHub.apiCalled(ge.validateResource,{pidlDocInfo:rn.boolify(e),options:rn.boolify(t),actionContext:rn.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(ge.validateResource))return u.eventHub.apiReturned(ge.validateResource,!1),u.apiFailure(null);var o=u.selectResource(e,t,it.validateInstance,u.onDownloadValidateOrSelectResourceType.bind(u),n&&n.targetIdentity,n&&n.handle,r);return u.eventHub.apiReturned(ge.validateResource,rn.boolify(o.result),o.promise),o},this.moveNextPage=function(){return u.runApi(ge.moveNextPage,(function(){return u.model.moveNextOrSubmit().catch(u.displaySettings.propagateCallbackException?dn:un)}))},this.submitPage=function(){return u.runApi(ge.submitPage,(function(){return u.model.submitAction().catch(u.displaySettings.propagateCallbackException?dn:un)}))},this.moveToLastPage=function(){return u.runApi(ge.moveToLastPage,(function(){return u.model.moveToLastPage().catch(un)}))},this.movePrevPage=function(){return u.runApi(ge.movePrevPage,(function(){return u.model.movePrevOrCancel().catch(un)}))},this.moveToFirstPage=function(){return u.runApi(ge.moveToFirstPage,(function(){return u.model.moveToFirstPage().catch(un)}))},this.refreshData=function(e){return u.runApi(ge.refreshData,(function(){return u.model.refreshData(e).catch(un)}))},this.cancel=function(){return u.runApi(ge.cancel,(function(){return u.model.gohome(),pn()}))},this.getSelectedResource=function(){return u.runApi(ge.getSelectedResource,(function(){return pn()}),(function(){return!1}),(function(){var e={},t=u.model.getCurrentPage();if(t){var n=t.operationType;n===it.selectSingleInstance?e=An.getDefaultSuccessPidlPayload([t],u.eventHub):n!==it.selectInstance&&n!==it.select||(e=rn.deepCopy(u.model.createUserInputData(!0,!0)))}return e.operationType=u.model.operationType,e||(e=void 0),e}))},this.invokePageDefaultAction=function(){return u.runApi(ge.invokePageDefaultAction,(function(){return u.model.invokeDefaultPidlAction().catch(un)}),(function(){return!1}),(function(){return!0}),(function(){return pn()}))},this.returnUserInputData=function(){return new Promise((function(e,t){u.model.returnUserInputData().then((function(t){var n={};n.payload=rn.deepCopy(t),n.operationType=it.getPidlPayload,e(n)}),(function(e){u.eventHub.error(e),t()}))}))},this.getPidlPayload=function(){return u.runApi(ge.getPidlPayload,(function(){return u.returnUserInputData().then((function(e){return u.eventHub.payloadCreated(e)}),un)}),(function(){return u.model.operationType!==it.renderPidlPage}),(function(){return!0}),(function(){return pn()}))},this.postMessageToChildIFrames=function(e){return u.runApi(ge.postMessageToChildIFrames,(function(){}),(function(){return!1}),(function(){return u.viewEventHandler.postMessageToChildIFrames(e)}),(function(){return pn()}))},this.testHookRenderPidl=function(e,t,n){return u.model.pidlDocManager.setPidlDoc(u.eventHub,e),u.model.operationType=t,u.model.populate(n).catch(un)},this.testHookRenderPidlPage=function(e,t,n,r){void 0===n&&(n=0),u.telemetryContext.trackNewOperation(M.renderPidlDocument),u.eventHub.apiCalled(ge.renderPidlDocument);var o=u.testHookRenderPidl(e,t,r).then((function(){u.model.moveToPageIndex(n).catch(un),u.stateManager.setState(de.executing)}));return u.eventHub.apiReturned(ge.renderPidlDocument,!0,o),!0};var d=o.telemetryLogger,h=o.getPidlDocument,m=o.view,f=m&&rn.isFunction(m.getViewType)&&m.getViewType();if(this.telemetryContext=new to(i,f),this.eventHub=new vn(d,this.telemetryContext),this.stateManager=new Kr(this.eventHub),Zt.getLoggingService()||Zt.setLoggingService(new no),!Zt.getOneDSService())if(s)Zt.setOneDSService(s);else{Zt.setOneDSService({getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}})}if(this.logConstructorCall(e,t,n,r,i),En.validateReturnOptions(this.eventHub,t))if(this.eventHub.addReturnOptions(t),Zt.getCommerceService()||Zt.setCommerceService(new so),Zt.getRedirectionService()||Zt.setRedirectionService(new po),Zt.getPidlService()||Zt.setPidlService(new co),Zt.getPidlStoreService()||Zt.setPidlStoreService(new uo),n&&this.eventHub.addPublicEventHandler(n),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),a&&this.eventHub.addPrivateEventHandler(a),En.validateInputParameters(this.eventHub,e,r,i,o)){if(this.callbacks=o,this.transformers=l,this.userContext=new Yr(e),this.displaySettings=new cn(r),!this.displaySettings.containerId)return this.eventHub.failure(new Dt.inputParameterValidationFailedError(At.containerIdNotFound,"containerId",[this.displaySettings.containerId])),void this.eventHub.apiReturned(ge.constructor,!1);this.model=new Gr({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new jr(h,c),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers});var g=this.callbacks,v=g.iFrameMessageHandler,y=g.view;this.viewEventHandler=new Xr({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:y,iFrameMessageHandler:v,userContext:this.userContext}),this.stateManager.setState(de.initialized)}else this.eventHub.apiReturned(ge.constructor,!1);else this.eventHub.apiReturned(ge.constructor,!1)}return e.prototype.sumbitAction=function(){throw new Error("Method not implemented.")},e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?dn:un)||pn()}},e.prototype.apiFailure=function(e){return{result:e,promise:pn()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(this.model.pidlDocManager.isEmpty()){var t={handle:e,action:"selectResource"};return this.eventHub.success(t),pn()}return this.model.populate()},e.prototype.getPidl=function(e,t,n,r,o){var i=this;return this.model.operationType=n,this.model.operationOptions=r,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:o}),this.model.pidlDocManager.setOperationInfo({operationType:n}),this.downloadPidlDocument(e,r,(function(){return i.model.populate(t,!1)}),o).then((function(){return i.stateManager.setState(de.executing)}),un)},e.prototype.downloadInstance=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=Zt.getPidlService(),l=s.getRequestInstance(o.eventHub,e,o.userContext,n);s.getInstance(o.eventHub,l).then((function(s){o.eventHub.instanceDownloaded(),t||(t=ln.getPidlDocInfoFromResource(e,s),o.telemetryContext.updateResourceInfo(t));var l=an.getPidlDocUrl(o.userContext,n,t);if(l&&l.url)return o.downloadPidlDocument(l,r,(function(){return o.model.populate(s,!0)}),t).then((function(e){return i(e)}),a);a()}),(function(e){var t=tn.createServerError(At.resourceInstanceDownloadFailed,l.url,e,[e.errorMessage]);o.eventHub.failure(t),a(t)}))}))},e.prototype.downloadPidlDocument=function(e,t,n,r,o){var i=this;return this.model.downloadPidlDocument(e,r,o).then((function(e){return Wt(e)?i.model.handleClientAction(e):n()}))},e}(),mo=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach((function(e){this.mockFunctionsMap[e.name]=e}),this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach((function(t){e=e.concat(t.name)})),e},e.prototype.createMockedFunction=function(t,n){return e.setArity(function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach((function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)}),this),e.returns}.bind(this),n)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",n=1;n<e;n++)t=t+",arg"+n;return t},e.setArity=function(t,n){return new Function(e.createArguments(n),"return this.apply(this, arguments);").bind(t)},e}(),fo=function(){function e(){Zt.getTelemetryInjectionService()||Zt.setTelemetryInjectionService(new go)}return e.prototype.logEvent=function(e,t,n){Zt.getTelemetryInjectionService().logEvent(n,e,t)},e.prototype.getCorrelationId=function(){return eo.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=eo.getIncrementedCV();if(e)return{name:Q.msCV,value:e}},e}(),go=function(){function e(){}return e.prototype.logEvent=function(e,t,n){t===L.fetchCallCompleted?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,i,a,s;try{if(rn.isObject(e)){var l=((window||{}).location||{}).href||"",c={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:l,destUri:l,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(o=e.partnerContext)||void 0===o?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(s=e.partnerContext)||void 0===s?void 0:s.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};rn.isObject(e.telemetryResource)&&(c.partC.resourceType=e.telemetryResource.resourceType,c.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),c.partC.resourceParametersMap=e.telemetryResource.parameters),eo.writeEvent(c.name,c.partB,c.partC)}}catch(u){Zt.getLoggingService().logError("TelemetryError",u)}},e.prototype.logOSREvent=function(e,t){var n,r,o,i,a;try{if(rn.isObject(e)){var s={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},l={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(s),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(r=e.partnerContext)||void 0===r?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null===(o=e.partnerContext)||void 0===o?void 0:o.flowId,partnerSessionId:null===(i=e.partnerContext)||void 0===i?void 0:i.sessionId,partnerScenarioId:null===(a=e.partnerContext)||void 0===a?void 0:a.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};eo.writeEvent(l.name,l.partB,l.partC)}}catch(c){Zt.getLoggingService().logError("TelemetryError",c)}},e}(),vo=function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case Y.busyBlock:return E.busyBlock;case Y.errorBlock:return E.errorBlock;case Y.helpDialogBlock:return E.helpDialogBlock;case Y.helpDialogContentBlock:return E.helpDialogContentBlock;case Y.modalDialogBlock:return E.modalDialogBlock;case Y.modalDialogContentBlock:return E.modalDialogContentBlock;case Y.pageContentBlock:return E.pageContentBlock;case Y.submitBlock:return E.submitBlock}},this.getDivClassName=function(t,n,r){switch(n){case D.dropdown:return[E.dropdownDiv,E.propertyDiv];case D.checkBox:return[E.checkBoxDiv,E.propertyDiv];case D.textBox:return[E.textBoxDiv,E.propertyDiv];case D.secureProperty:return[E.propertyDiv];case D.image:return[E.imageDiv];case D.logo:return[E.logoDiv];case D.button:return[E.buttonDiv];case D.iFrame:return[E.iFrameDiv];case D.group:var o=[E.groupDiv],i=e.getContainerClassName(r);return i&&o.push(i),o}},this.generateClassName=function(t,n,r,o,i){var a=e.getClassName(t,n,r);if(o){var s=e.getDivClassName(t,o,i);s&&(a=a.concat(s))}if(a)return a.join(" ")},this.getClassName=function(t,n,r){switch(n){case K.div:return[E.div];case K.label:return[E.label];case K.dropdown:return[E.property,E.dropdown,e.getPropertyClassName(r)];case K.radio:return[E.property,E.radio,e.getPropertyClassName(r)];case K.buttonList:return[E.property,E.buttonList,e.getPropertyClassName(r)];case K.checkBox:return[E.property,E.checkBox,e.getPropertyClassName(r)];case K.textBox:return[E.property,E.textBox,e.getPropertyClassName(r)];case K.secureProperty:return[E.secureProperty];case K.button:return[E.button];case K.iFrame:return[E.iFrame];case K.heading:return[E.staticText,E.heading];case K.subHeading:return[E.staticText,E.subHeading];case K.text:return[E.staticText,E.text];case K.textGroup:return[E.staticText,E.text,E.textGroup];case K.hyperlink:return[E.hyperlink];case K.image:return[E.image];case K.logo:return[E.logo];case K.errorDiv:return[E.errorDiv];case K.error:return[E.error];case K.audio:return[E.audio];default:return void t.failure(new Dt.unexpectedError(At.noMappingToGetHtmlClassNameForElement,[n]))}},this.getDivId=function(t){return e.getId(w.div,t)},this.getId=function(e,t){return rn.replaceCharactersForHtml(rn.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(w.property,t)},this.concatIdElement=function(e,t){return rn.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}(),yo=new vo,bo=Object.freeze({__proto__:null}),Co=Object.freeze({__proto__:null,constants:qe,modelElementTypes:_r,promise:gn,eventArgs:bo,oneDSAdapter:eo,commerce2:Kt,commerceHelper:Xt,config:rt,configManager:ln,error:Dt,fetchHelper:xn,inputValidationHelper:En,iocContainer:Zt,modelElementFactory:Tn,modelElementsHelper:An,pidlDocHelper:$t,tokenizer:Wr,typeHelper:rn,urlBuilder:an,userInputDataHelper:oo,userInputDataTransformer:ao,userInputDataValidator:Br,utils:tn,validationFunctions:Rr,version:Jr,webCrypto:Hr,htmlAttributeHelper:yo,hmac:zr,DisplaySettings:cn,errorMessages:At,EventHub:vn,mockFactory:mo,Resources:kn,stateManager:Kr,telemetryContext:to,userContextWrapper:Yr,ViewEventHandler:Xr,DataCache:wn,DataStore:In,InputPrefillDataManager:Tr,Model:Gr,ModelData:Ar,ModelDataProperty:Dr,MultiPropertySelector:kr,pidlDocumentManager:jr,Validator:Or,commerceService:so,loggingService:no,pidlService:co,pidlStoreService:uo,redirectionService:po,oneDSLogger:fo,telemetryInjectionService:go}),So=Object.freeze({__proto__:null,env:Zr,internal:Co,pidlDocumentTypes:jt,controlApi:ho,get EncryptionTypes(){return mn},get PaymentMethodPIIDs(){return fn}}),xo=function(e,t){return xo=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])},xo(e,t)};function _o(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}xo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Eo.apply(this,arguments)};Object.create;function ko(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var wo,Io=Ee.pidlReact,Po=rn.startsWith;(wo=t.AppScenario||(t.AppScenario={})).None="none",wo.AddAddress="addAddress",wo.AddPaymentInstrument="addPaymentInstrument",wo.EditPaymentInstrument="editPaymentInstrument",wo.DeletePaymentInstrument="deletePaymentInstrument",wo.ApplyPaymentInstrument="applyPaymentInstrument",wo.SelectPaymentMethod="selectPaymentMethod",wo.ConfirmPayment="confirmPayment",wo.SelectPaymentInstrument="selectPaymentInstrument",wo.ListAddress="listAddress",wo.RiskChallenge="riskChallenge",wo.ProfilePrerequisite="profilePrerequisite",wo.PaymentInstrumentDetails="paymentInstrumentDetails",wo.HandlePaymentChallenge="handlePaymentChallenge",wo.VerifyAddress="verifyAddress",wo.OfferPaymentInstrument="offerPaymentInstrument",function(e){e.alert="alert",e.button="button",e.buttonGroup="buttonGroup",e.checkbox="checkbox",e.dialog="dialog",e.dropdown="dropdown",e.error="error",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.helpDialog="helpDialog",e.hyperlink="hyperlink",e.iframe="iframe",e.secureProperty="secureProperty",e.securePropertyLabel="securePropertyLabel",e.image="image",e.label="label",e.logo="logo",e.subheading="subheading",e.text="text",e.textBox="textBox",e.radio="radio",e.modal="modal",e.overlay="overlay",e.spinner="spinner",e.panel="panel",e.textgroup="textgroup",e.filePicker="filePicker",e.separator="separator",e.tooltip="tooltip"}(t.ElementType||(t.ElementType={}));var To,Do,Ao="prod",Ro={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},No={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},Mo={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},Fo={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},Bo={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},Oo={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},Lo={isCreditCard:"isCreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},Ho={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument"},Vo={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},zo={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},Uo={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},Wo={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},Go={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},jo={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},qo={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},Ko={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},Yo={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},Xo={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},Qo={ViewTermsId:"viewTermsButton"};(To=t.AddressScenario||(t.AddressScenario={})).billing="billing",To.shipping="shipping",To.profile="profile",(Do=t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})).xboxCoBrandedCard="xboxCoBrandedCard",Do.xboxApplyFullPageRender="xboxApplyFullPageRender",(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={})).xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow";var Zo={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function Jo(){return function(e,t){function n(n,r){var o=n.element;if(o){for(var a={},s=0,l=t;s<l.length;s++){var c=l[s],u=Zo[c];if(u)u(o,a);else{var d=o[c];a[c]=d instanceof Function?d():o[c]}}return i.createElement(e,Eo({ref:r},a,n))}return null}return n.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),i.forwardRef(n)}}var $o=Jo(),ei=(Jo(),Jo(),Jo()),ti=Jo(),ni=Jo(),ri=Jo(),oi=Jo(),ii=Jo(),ai=Jo(),si=Jo(),li=Jo(),ci=Jo(),ui=Jo(),di=Jo(),pi=Jo(),hi=Jo(),mi=Jo(),fi=Jo(),gi=Jo(),vi=(Jo(),i.createContext({pidlDocs:[]}),i.createContext(!1)),yi=i.createContext({values:{},accessibilityText:{},errors:{}}),bi=i.createContext({}),Ci=i.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null}),Si=i.createContext(null),xi=i.createContext(null);function _i(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];rn.startsWith(o,Ee.noPidlddc)||rn.startsWith(o,Ee.pidlReact)?t.push(e[o]):_e[o]||tn.isTagPrefixKnown(o)||t.push(k.taggedClass+e[o])}return t}function Ei(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];rn.startsWith(o,Ee.pidlReact)&&t.push(e[o].substring(Ee.pidlReact.length))}return t}var ki=function(e){var n=e.propertyName,r=(0,yo.getId)(qe.htmlElementIdPrefixes.error,n);return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(yi.Consumer,null,(function(a){var s=e.elementFactory,l=(e.displayOptions,e.displaySettings,a.errors[n]?a.errors[n].message:null);if(!l)return null;var c={errorMessage:l};return s&&s.canCreate(t.ElementType.error,c,{})?s.create(t.ElementType.error,c):i.createElement("span",{className:o("pidlddc-error",{"d-none":!l},"text-danger"),id:r,tabIndex:-1,role:"alert"},l)}))}))};ki.displayName="Error";var wi=function(e){var n=e.message;return i.createElement(Ci.Consumer,null,(function(e){var r=e.elementFactory,o=(e.displayOptions,e.displaySettings,{elementId:"pidlddc-page-alert-id",message:n});return r&&r.canCreate(t.ElementType.alert,o,{})?r.create(t.ElementType.alert,o):i.createElement("div",{id:o.elementId,className:"pidlddc-error-alert",role:"alert"},o.message)}))};wi.displayName="PageAlert";var Ii=function(e){var n=e.className,r=e.element,a=e.elementId,s=e.displayContent,l=e.pidlAction,c=e.disabled,u=e.accessibilityName,d=e.onClick,p=e.tags,h=e.styleHints,m=e.tooltipText,f=e.gridColumn,g=e.gridRow,v=e.accessibilityHint,y=l.type,b=l.isDefault,C="submit"===y||b,S=(0,yo.getId)(qe.htmlElementIdPrefixes.button,a),x=o(n,_i(p)),_=r.propertyElementRef;return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,r=e.theme,a={id:S,displayContent:s,onClick:d,additionalClassName:x,disabled:c,ariaLabel:u,accessibilityHint:v,primary:C,type:C?"primary":"secondary",propertyElementRef:_,theme:r,styleHints:h,tooltipText:m,gridColumn:f,gridRow:g};return n&&n.canCreate(t.ElementType.button,a,{})?n.create(t.ElementType.button,a):i.createElement("button",{id:S,className:o(C?"pidlddc-highlighted":"pidlddc-back",x),disabled:c,"aria-label":u,onClick:d},s)}))},Pi=pi(Ii,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText"]);Pi.displayName="Button";var Ti=function(e){var n=e.elementId,r=e.displayText,o=e.displayImageUrl,a=e.createElement,s=e.displayContentContainer,l=e.isDisabled,c=e.pidlKey,u=e.onClick,d=e.buttonAction,p=e.containerDisplayId,h=e.ariaLabel,m=e.propertyElementRef,f=e.styleHints,g=s?a(s):[o?i.createElement("img",{src:o,key:"".concat(n,"-img"),id:"pidlddc-buttonlist-".concat(n,"-").concat(c)}):null,r];return i.createElement(Ci.Consumer,null,(function(e){var r=e.elementFactory,o=e.displayOptions,a=yo,s=(0,a.concatIdElement)((0,a.getId)(o.inputPropertyIdPrefix,n),c),v=function(){return u({id:s,pidlAction:d,value:d.context,dest:""})},y={id:s,key:c,onClick:v,additionalClassName:"",displayContent:g,disabled:l,primary:!1,type:"list",containerDisplayId:p,ariaLabel:h,propertyElementRef:m,styleHints:f};return r&&r.canCreate(t.ElementType.button,y,{})?r.create(t.ElementType.button,y):i.createElement("button",{id:s,disabled:l,onClick:v,"aria-label":h},y.displayContent)}))},Di=gi(Ti,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints"]);Di.displayName="ButtonListElement";var Ai=function(e){var n=e.createElement,r=e.elementId,a=e.possibleOptions,s=e.onClick,l=e.tags,c=e.displayId,u=e.element,d=e.styleHints,p=[],h=(0,yo.getId)(qe.htmlElementIdPrefixes.buttongroup,r),m=u.propertyElementRef,f=!1;for(var g in a)if(a.hasOwnProperty(g)&&a[g]){var v=a[g],y=a[g].pidlAction||{context:{id:g},type:""},b=null;f||v.isDisabled||(b=m,f=!0),p.push(i.createElement(Di,{element:v,elementId:r,createElement:n,onClick:s,buttonAction:y,pidlKey:g,containerDisplayId:c,propertyElementRef:b,ariaLabel:null===v||void 0===v?void 0:v.accessibilityName}))}return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,r={id:h,additionalClassName:o(_i(l)),options:p,optionsDirection:"vertical",displayId:c,propertyElementRef:m,styleHints:d};return n&&n.canCreate(t.ElementType.buttonGroup,r,{})?n.create(t.ElementType.buttonGroup,r):i.createElement("div",{className:o(_i(l)),id:r.id},p)}))},Ri=li(Ai,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints"]);Ri.displayName="ButtonList";var Ni=function(e){var n=e.elementId,r=e.required,a=e.disabled,s=e.hidden,l=e.propertyName,c=e.displayName,u=e.accessibilityName,d=e.onChange,p=e.tags,h=e.displayId,m=e.useDisplayIdAsKeyForCheckState,f=e.element,g=e.styleHints,v=f.propertyElementRef,y=yo,b=y.getDivId,C=y.getId,S=b(n);return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(yi.Consumer,null,(function(n){var y=e.elementFactory,b=e.displayOptions,x=e.displaySettings,_=C(b.inputPropertyIdPrefix,f.displayType===dt.prefillControl?x.prefillCheckboxBlock.id:l),E={elementId:_,displayContent:c,onChange:d,displayId:h,disabled:a,ariaLabel:n.accessibilityText[l]||u,additionalClassName:o(_i(p)),inlineError:n.errors[l]?n.errors[l].message:void 0,checked:m?!!n.values[h]:!0===n.values[l]||"true"===n.values[l],hidden:s,required:r,id:_,propertyName:l,propertyElementRef:v,styleHints:g},k=y&&y.canCreate(t.ElementType.checkbox,E,{});if(k)return function(e,t){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?t:i.createElement("div",{id:S},t)}(y,i.createElement(i.Fragment,null,y.create(t.ElementType.checkbox,E),k&&k.inlineError?null:i.createElement(ki,{propertyName:l})));var w="".concat(E.elementId,"_label");return i.createElement("div",{id:S},i.createElement("label",{id:w,htmlFor:_,"aria-label":E.ariaLabel,hidden:E.hidden},i.createElement("input",{type:"checkbox",id:_,required:E.required,hidden:E.hidden,disabled:E.disabled,checked:E.checked,"aria-labelledby":w,onChange:function(e){return E.onChange(e.currentTarget.checked)}}),E.displayContent),i.createElement(ki,{propertyName:l}))}))}))},Mi=ui(Ni,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints"]);Mi.displayName="CheckBox";var Fi=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:dt.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:dt.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:dt.text})},e.prototype.addGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:dt.group,layoutOrientation:pt.vertical,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addInlineGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:dt.group,layoutOrientation:pt.inline,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:dt.expression})},e.prototype.addTextGroup=function(t,n){this.group.members||(this.group.members=[]);var r={displayId:t,isSubmitGroup:!1,displayType:dt.textGroup,layoutOrientation:pt.inline,displayName:n||"",members:[]};return this.group.members.push(r),new e(r)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,n,r){return void 0===r&&(r={}),this.addChild(Eo({displayId:e,pidlAction:n,displayContent:t,displayType:"button",tags:{accessibilityName:t}},r))},e.prototype.addSubmitButton=function(e,t,n){return n=Eo({type:"submit",isDefault:!0},n),this.addButton(e,t,n,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,n){return n=Eo({type:"gohome"},n),this.addButton(e,t,n,{isBack:!0})},e}(),Bi=function(e){var t=this;this.addDataDescription=function(e,n){return t.dataDescription[e]=n,t},this.addPage=function(e,n){var r={displayId:e,displayName:n,members:[],displayType:dt.page};return t.pages.push(r),new Fi(r)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]},Oi=function(e){var t=this;this.required=function(e,n){return t.validations.push({error_code:e,error_message:n,validationType:at.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:at.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(o,"}$")}),t},this.alphanumeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:at.regex,regex:"^[A-Za-z0-9]{".concat(o,"}$")}),t},this.numeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:at.regex,regex:"^\\d{".concat(o,"}$")}),t},this.exactly=function(e,n,r){return r=Array.isArray(r)?r.join("|"):r,t.validations.push({error_code:e,error_message:n,validationType:at.regex,regex:"^".concat(r,"$")}),t},this.validations=e},Li=function(e,t){var n=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,r){return n.dataCollectionSource=e,n.possibleOptions={},n.possibleOptions[t]={displayText:r,isDisabled:!1},n},this.validate=function(){return new Oi(n.validations)},this.setPossibleValues=function(e){n.possibleOptions={};for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];n.possibleOptions[o]={displayText:e[o],isDisabled:!1}}return n.possibleValues=e,n},this.setDisabled=function(){return n.isDisabled=!0,n},this.setDefaultValue=function(e){return n.defaultValue=e,n},this.buildData=function(){var e={validations:n.validations};return n.validations.length>0&&(e.validation=n.validations[0]),n.dataCollectionSource&&(e.possible_values={}),n.defaultValue&&(e.default_value=n.defaultValue),Eo(Eo({},n.base),e)},this.buildDisplay=function(e){var t=n.propertyName,r={};n.dataCollectionSource?(r.dataCollectionSource=n.dataCollectionSource,r.possibleOptions=n.possibleOptions):n.possibleValues&&(r.possibleValues={},r.possibleOptions={},Object.keys(n.possibleValues).forEach((function(e){var t=n.possibleValues&&n.possibleValues[e];t&&(r.possibleValues[e]=t,r.possibleOptions[e]={displayText:t,isDisabled:!1})})),r.displaySelectionText="--- ".concat(t," ---"));var o=n.validations[0],i=o?{defaultErrorMessage:o.error_message,fromErrorCode:[{errorCode:o.error_code,errorMessage:o.error_message}]}:{},a=!!n.isDisabled;return Eo(Eo({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:i,isDisabled:a},r),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}},Hi=function(e){var t=e.displayId,n=e.required,r=e.disabled,o=e.hidden,a=e.elementId,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.element,h=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),m=o||!h;return i.createElement(Mi,{element:p,elementId:a,required:n,hidden:m,disabled:r,propertyName:s,displayName:l,accessibilityName:c,onChange:function(e){return u(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:d})},Vi=ui(Hi,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);Vi.displayName="PrefillCheckBox";var zi=function(e){function n(t){var n=e.call(this,t)||this;return n.toggleDisplay=function(e){n.setState({open:e})},n.state={open:!0},n}return _o(n,e),n.prototype.render=function(){var e=this.props,n=e.layoutOrientation,r=e.elementId,a=e.childNodes,s=e.tags,l=e.element,c=l.displayId,u=l.type,d=this.state.open,p=(0,yo.getDivId)(r);return i.createElement(Ci.Consumer,null,(function(e){var l=e.elementFactory,h=e.displaySettings,m={childNodes:a,layoutOrientation:n,elementId:p,groupClassName:_i(s),displayId:c,type:u,displaySettings:h,open:d};if(l&&l.canCreate(t.ElementType.modal,m,{}))return l.create(t.ElementType.modal,m);var f={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:d?"initial":"none"};return m.groupClassName=m.groupClassName.filter((function(e){return!rn.startsWith(e,Ee.pidlReact)})),i.createElement("div",{key:"".concat(r,"-modal"),id:"".concat(r,"-modal"),style:f,className:o(m.groupClassName)},i.createElement("dialog",{key:"".concat(r,"-modal-content"),id:"".concat(r,"-modal-content"),tabIndex:-1,open:!0,style:{position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"}},i.createElement(vi.Provider,{value:"inline"===n},a)))}))},n}(i.Component),Ui=ei(zi,["elementId","layoutOrientation","tags"]);Ui.displayName="Modal";var Wi=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=t.possibleOptions,i=t.displayId,a=t.maxLength,s=(0,yo.getDivId)(r);t.eventHub.propertyCreating(s,{displayId:i,possibleOptions:o,maxLength:a},{})}return n}return _o(n,e),n.prototype.render=function(){for(var e,n=this,r=this.props,o=r.elementId,a=r.possibleOptions,s=r.accessibilityName,l=r.displayName,c=r.showDisplayName,u=r.propertyName,d=r.hidden,p=r.isPrefill,h=r.onSelect,m=r.disabled,f=r.required,g=r.displaySelectionText,v=r.onFocus,y=r.onBlur,b=r.optionsElements,C=r.isSelectFirstItem,S=r.displayId,x=r.element,_=r.eventHub,E=r.styleHints,k=qe,w=yo,I=w.getDivId,P=w.generateClassName,T=yo.getId,D=T(k.htmlElementIdPrefixes.error,o),A=T(k.htmlElementIdPrefixes.input,o),R="input_".concat(o,"dummyLabel"),N=I(o),M=x.propertyElementRef,F="".concat(R," ").concat(D),B=[],O=0,L=Object.keys(a||{});O<L.length;O++){var H=L[O];if(a[H]){e=!p&&!C||e?e:H;var V=a[H],z=V.displayText,U=V.isDisabled,W=V.displayImageUrl,G=V.styleHints;B.push({key:H,text:z,disabled:U,data:{imageUrl:W},styleHints:G})}}!d&&Object.keys(a).length;var j=function(e){_.propertySelected(A,u,N),v&&v(e)},q=I(o),K=P(null,k.htmlElementTypes.div,u,k.modelElementType.dropdown);return i.createElement(Ci.Consumer,null,(function(r){var o=r.elementFactory,a=r.theme;return function(e,t,n,r){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?i.createElement(i.Fragment,null,r):i.createElement("div",{id:t,className:n},r)}(o,q,K,i.createElement(yi.Consumer,null,(function(r){var v={},C=v?v.style:void 0,x=r.errors[u]?r.errors[u].message:void 0,_=!!r.errors[u],k={disabled:m,inlineError:x,isInValidationErrorGroup:_,onBlur:y,onFocus:j,optionsElements:b,required:f,showDisplayName:c,displayName:l,displayId:S,id:A,ariaLabelId:F,dropdownOptions:B,hidden:d||0===B.length,onChange:h,placeholder:p?void 0:g,value:r.values[u]&&r.values[u].toString()||e,style:C,propertyElementRef:M,theme:a,styleHints:E},w=o&&o.canCreate(t.ElementType.dropdown,k,{inlineError:!0,label:c}),I=null;I=w?o.create(t.ElementType.dropdown,k):n.renderDropdownElement(k);var P=!c||w&&w.label;return i.createElement(i.Fragment,null,function(e,t,r,o){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?i.createElement(i.Fragment,null):i.createElement("label",{id:R,"aria-label":r,style:{display:o?"none":void 0},"aria-hidden":o},t,i.createElement("span",{className:"".concat(q,"-asterisk")},n.props.required?"*":""))}(o,l,r.accessibilityText[u]||s,P),I,w&&w.inlineError?null:i.createElement(ki,{propertyName:u}))})))}))},n.prototype.renderDropdownElement=function(e){var t=e.id,n=e.dropdownOptions,r=e.onChange,a=e.value,s=e.additionalClassName,l=e.hidden,c=e.disabled,u=e.required,d=e.placeholder,p=e.ariaLabelId,h=e.inlineError,m=e.onFocus,f=e.onBlur,g=e.isInValidationErrorGroup,v=d?i.createElement("option",{value:""},d):null,y=h||g&&!c,b=[];return n.forEach((function(e){var t=e.key,n=e.text,r=e.disabled;b.push(i.createElement("option",{value:t,key:t,disabled:r},n))})),i.createElement("select",{id:t,className:y?o(s,"pidlddc-errorstroke"):s,hidden:l,disabled:c,required:u,"aria-labelledby":p,onFocus:function(e){m&&e&&e.currentTarget&&m(e.currentTarget.value)},onBlur:function(e){f&&e&&e.currentTarget&&f(e.currentTarget.value)},onChange:function(e){r&&e&&e.target&&r(e.target.value)},value:a},v,b)},n}(i.Component),Gi=si(Wi,["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints"]);Gi.displayName="Dropdown";var ji=function(e){var n=e.elementId,r=e.isInline;return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(bi.Consumer,null,(function(a){var s=e.elementFactory,l=(e.displayOptions,e.displaySettings,a[n]?a[n].message:""),c={errorMessage:l};if(s&&s.canCreate(t.ElementType.error,c,{}))return s.create(t.ElementType.error,c);var u={className:o("pidlddc-group-error",{"d-none":!l},"text-danger"),id:"pidlddc-error-".concat(n),tabIndex:-1,role:"alert"};return r?i.createElement("span",Eo({},u,{"aria-hidden":!l}),l):i.createElement("div",Eo({},u,{"aria-hidden":!l}),l)}))}))};ji.displayName="GroupError";var qi=ei((function(e){var n=e.layoutOrientation,r=e.elementId,a=e.childNodes,s=e.tags,l=e.labelNode,c=e.element,u=c.displayId,d=c.type,p=c.isSubmitGroup,h=e.styleHints,m=e.accessibilityName,f=e.gridColumn,g=e.gridRow;return i.createElement(Ci.Consumer,null,(function(e){var c=e.elementFactory,v=e.displaySettings,y=yo.getDivId;return i.createElement(vi.Consumer,null,(function(e){var b=y(r),C=i.createElement(ji,{elementId:r,isInline:e}),S={childNodes:a,errorNode:C,labelNode:l,layoutOrientation:n,elementId:b,groupClassName:_i(s),displayId:u,type:d,displaySettings:v,styleHints:h,isSubmitGroup:p,ariaLabel:m,gridColumn:f,gridRow:g};return c&&c.canCreate(t.ElementType.group,S,{})?c.create(t.ElementType.group,S):(S.groupClassName=S.groupClassName.filter((function(e){return!rn.startsWith(e,Ee.pidlReact)})),i.createElement("div",{id:S.elementId,className:o(S.groupClassName)},l,i.createElement(vi.Provider,{value:"inline"===n},a),C))}))}))}),["elementId","layoutOrientation","tags","accessibilityName","styleHints"]);qi.displayName="Group";var Ki=ni((function(e){var n=e.layoutOrientation,r=e.elementId,a=e.children,s=e.tags,l=e.ariaLabelledBy,c=e.styleHints,u="inline"===n,d=(0,yo.getId)(qe.htmlElementIdPrefixes.div,r);return i.createElement(Ci.Consumer,null,(function(e){return function(e,n){var p={children:a,additionalClassName:o(_i(s)),elementId:r,ariaLabelledBy:l,styleHints:c};return e&&e.canCreate(t.ElementType.textgroup,p,{})?e.create(t.ElementType.textgroup,p):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?i.createElement(i.Fragment,null,n):i.createElement("div",{id:d,className:o({"d-inline-block":u},_i(s))},n)}(e.elementFactory,i.createElement(i.Fragment,null,a,i.createElement(ji,{elementId:r,isInline:!0})))}))}),["elementId","layoutOrientation","tags","styleHints"]);Ki.displayName="TextGroup";var Yi=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=(0,yo.getDivId)(r);t.eventHub.captchaRendered(o)}return n}return _o(n,e),n.prototype.render=function(){var e=this.props,n=e.elementId,r=e.audioChildNodes,a=e.imageChildNodes,s=e.tags,l=e.element,c=e.required,u=l.displayId,d=l.type,p=l.id,h=l.displayName,m=l.showDisplayName,f=l.accessibilityName;return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(yi.Consumer,null,(function(l){var g=e.elementFactory,v=yo.getDivId,y="image"==l.values[p],b=v(n),C={audioChildNodes:r,imageChildNodes:a,elementId:b,captchaClassName:_i(s),displayId:u,type:d,showImageCaptcha:y,displayName:h,showDisplayName:m,required:c};if(g&&g.canCreate(t.ElementType.captcha,C,{}))return g.create(t.ElementType.captcha,C);var S=i.createElement("label",{className:o("pidlddc-label",m?"d-block":"d-none"),id:n,"aria-label":f},h);return C.captchaClassName=C.captchaClassName.filter((function(e){return!rn.startsWith(e,Ee.pidlReact)})),i.createElement("div",{id:C.elementId,className:o(C.captchaClassName)},S,y&&a,!y&&r)}))}))},n}(i.Component),Xi=ti(Yi,["elementId","tags","required"]);Xi.displayName="Captcha";var Qi=function(e){var n=e.element,r=e.elementId,a=e.hidden,s=e.required,l=e.disabled,c=e.showDisplayName,u=e.displayName,d=e.accessibilityName;return c?i.createElement(Ci.Consumer,null,(function(e){var p=e.elementFactory,h=(e.displayOptions,e.displaySettings,(0,yo.getId)(qe.htmlElementIdPrefixes.label,r)),m={disabled:l,required:s,elementId:h,displayContent:u};if(p&&p.canCreate(t.ElementType.label,m,{}))return p.create(t.ElementType.label,m);for(var f=0;f<n.children.length;f++)if(null!=n.children[f].dataDescription&&!n.children[f].dataDescription.is_optional){m.required=!0;break}return i.createElement("label",{className:o("pidlddc-label",a||!c?"d-none":"d-block"),id:m.elementId,"aria-label":d},u,i.createElement("span",{className:"".concat(m.elementId,"-asterisk")},m.required?"*":""))})):null};Qi.displayName="GroupLabelInner";var Zi=ei(Qi,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);Zi.displayName="GroupLabel";var Ji=function(e){function n(t){var n=e.call(this,t)||this;return n.linkRef=i.createRef(),n.toggle=function(e){!e&&n.linkRef&&n.linkRef.current&&n.linkRef.current.focus&&n.linkRef.current.focus(),n.setState({open:e})},n.escapeHandler=function(e){27===e.keyCode&&n.toggle(!1)},n.state={open:!1},n}return _o(n,e),n.prototype.componentDidUpdate=function(){var e,t=this.props,n=t.elementId,r=t.elementFactory,o=this.state.open;if(!(null===(e=null===r||void 0===r?void 0:r.isReactNative)||void 0===e?void 0:e.call(r))){var i=document.getElementById("".concat(n,"-dialog-body"));o?(document.addEventListener("keydown",this.escapeHandler,!1),i&&i.focus&&i.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},n.prototype.render=function(){var e=this,r=this.props,o=r.elementId,a=r.displayHelpName,s=r.displayImage,l=r.children,c=r.element,u=this.state.open;if((!a||0===a.length)&&!s)return null;var d=c.getHelpDialogTags(),p=d&&d[we.linkAccessibilityName]||c.accessibilityName,h=d&&d[we.closeButtonAccessibilityName]||"",m="".concat(s?w.image:w.button).concat(o),f=s?E.helpImageLink:E.helpTextLink;return i.createElement(Ci.Consumer,null,(function(r){var c=r.elementFactory,d=(r.displayOptions,r.displaySettings);n.elementIdHelpDialogIndex[o]||(n.elementIdHelpDialogIndex[o]=n.latestHelpDialogIndex,n.latestHelpDialogIndex++);var g=0===n.elementIdHelpDialogIndex[o]?"":n.elementIdHelpDialogIndex[o],v=d?d.getAffixedDisplayElementId(w.helpDialogContent+d.helpDialogBlock.id+g):o,y={id:m,children:l,linkAdditionalClassName:f,linkText:a,linkImageSource:s,linkAriaLabel:p,contentId:v,closeButtonAccessibilityName:h};return c&&c.canCreate(t.ElementType.helpDialog,y,{})?c.create(t.ElementType.helpDialog,y):[i.createElement("a",{key:"".concat(m,"-toggle"),id:m,className:f,"aria-label":p,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},s?i.createElement("img",{src:s,alt:p}):a),i.createElement("dialog",{key:"".concat(o,"-dialog-body"),id:"".concat(o,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:u},i.createElement("div",{key:"".concat(o,"-dialog-close-button"),id:"".concat(o,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},i.createElement("button",{"aria-label":h,onClick:function(){return e.toggle(!1)}},i.createElement("span",{"aria-hidden":"true"},"x"))),l)]}))},n.elementIdHelpDialogIndex={},n.latestHelpDialogIndex=0,n}(i.Component),$i=$o(Ji,["elementId","displayHelp","displayHelpName","displayImage"]);$i.displayName="HelpDialog";var ea=ri((function(e){var n=e.elementId,r=e.pidlAction,a=e.displayContent,s=e.accessibilityName,l=e.tags,c=e.onClick,u=e.styleHints,d=e.gridColumn,p=e.gridRow,h="javascript:void(null);",m=(0,yo.getId)(qe.htmlElementIdPrefixes.hyperlink,n),f=o(_i(l)),g=function(){c&&c({pidlAction:r,id:n})},v=function(e){e&&e.preventDefault&&e.preventDefault(),c&&c({pidlAction:r,id:n})};return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,o=(e.displayOptions,e.displaySettings,e.theme),l={id:m,displayContent:a,additionalClassName:f,href:r&&r.context?r.context:h,ariaLabel:s,onClick:g,theme:o,styleHints:u,gridColumn:d,gridRow:p};return n&&n.canCreate(t.ElementType.hyperlink,l,{})?n.create(t.ElementType.hyperlink,l):i.createElement("a",{id:m,href:r&&r.context?r.context:h,"aria-label":s,className:f,onClick:v},a)}))}),["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints"]);ea.displayName="Hyperlink";var ta=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=t.expectedClientActionId,i=t.onIFrameMessage,a=t.onIFrameBusyTimerEnded,s=n.state.messageTimer;if(!r||!e.origin||0===r.indexOf(e.origin)){var l=tn.parseJSON(e.data),c=l.succeeded?l.value:null;c&&o&&c.actionId!==o||(s&&(a(s),clearTimeout(s),n.setState({messageTimer:null})),i(e))}},n.iframe=i.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return _o(t,e),t.prototype.postMessage=function(e){return!!(this.iframe&&this.iframe.current&&this.iframe.current.contentWindow&&this.iframe.current.contentWindow.postMessage)&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onIFrameMessageTimeout,o=e.messageTimeout,i=e.messageTimeoutClientAction,a=e.onIFrameBusyTimerStarted,s=e.onIFrameBusyTimerEnded,l=this.iframe.current,c=this.state.messageTimer;if(window.addEventListener(C.message,this.onEvent),!n&&t&&l){var u=l.contentDocument;u&&(u.open(),u.write(t),u.close())}if(!c&&o&&i){var d=window.setTimeout((function(){r(i),s(d)}),o);a(d),this.setState({messageTimer:d})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,i=r.sourceUrl,a=this.iframe.current;if(!i&&o&&e&&e.displayContent!==o&&a){var s=a.contentDocument;s&&(s.open(),s.write(o),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(C.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,a=e.tags,s=e.sourceUrl,l=this.state,c=l.width,u=l.height,d={width:c,height:u},p=(0,yo.getId)(qe.htmlElementIdPrefixes.iframe,t),h=(c||u)&&0===Number((c+u).replace(/\D/g,""))?0:void 0;return this.state.executing?i.createElement("iframe",{key:p,className:o(_i(a)),id:p,src:s,hidden:r,"aria-label":n,ref:this.iframe,style:d,frameBorder:h}):null},t}(i.Component),na=function(e){return i.createElement(Ci.Consumer,null,(function(n){var r=n.elementFactory,o=n.userContext,a=n.displayOptions,s=e.displayId,l={};e.useAuth&&null!=(null===o||void 0===o?void 0:o.authToken)&&(l=function(e,t){var n,r;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[0],xt:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[1]}}catch(GC){return{authorization:t}}return{authorization:t}}(s,o.authToken));var c=Eo(Eo({},e),{headers:l,useWebView2:a.useWebView2||!1});return r&&r.canCreate(t.ElementType.iframe,c,{})?r.create(t.ElementType.iframe,c):i.createElement(ta,Eo({},c,{ref:c.iFrameElementRef}))}))},ra=ii(na,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage"]),oa=oi((function(e){var n=e.accessibilityName,r=e.element,a=e.elementId,s=e.sourceUrl,l=e.tags,c=e.styleHints,u=e.gridColumn,d=e.gridRow,p=yo.getId,h=qe;return i.createElement(Ci.Consumer,null,(function(e){var m,f=e.elementFactory,g={additionalClassName:o(_i(l)),ariaLabel:n||(null===(m=null===r||void 0===r?void 0:r.displayDescription)||void 0===m?void 0:m.accessibilityName),elementId:p(h.htmlElementIdPrefixes.image,a),sourceUrl:s,styleHints:c,gridColumn:u,gridRow:d};return f&&f.canCreate(t.ElementType.image,g,{})?f.create(t.ElementType.image,g):i.createElement("img",{id:g.elementId,src:s,alt:n,"aria-label":n,className:g.additionalClassName})}))}),["elementId","accessibilityName","sourceUrl","tags","styleHints"]);oa.displayName="Image";var ia=fi((function(e){var n=e.displayId,r=e.sourceUrl,a=e.tags,s=e.styleHints,l=e.gridColumn,c=e.gridRow,u=a&&a.accessibilityName?a.accessibilityName:void 0,d=yo.getId,p=qe;return i.createElement(Ci.Consumer,null,(function(e){var h=e.elementFactory,m={additionalClassName:o(_i(a)),ariaLabel:u,elementId:d(p.htmlElementIdPrefixes.image,n),sourceUrl:r,styleHints:s,gridColumn:l,gridRow:c};return h&&h.canCreate(t.ElementType.logo,m,{})?h.create(t.ElementType.logo,m):i.createElement("img",{className:o("pidlddc-logo-image","pidlddc-logoBlock",m.additionalClassName),id:m.elementId,src:r,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})}))}),["displayId","sourceUrl","tags","styleHints"]);ia.displayName="LogoElement";var aa=function(e){var t=e.elementId,n=e.hidden,r=e.showDisplayName,a=e.displayName,s=e.accessibilityName,l=e.element,c=(0,yo.getId)(qe.htmlElementIdPrefixes.label,t);return i.createElement(yi.Consumer,null,(function(e){return i.createElement("label",{className:o("pidlddc-label",{"d-none":n||!r}),id:c,"aria-label":e.accessibilityText[l.getPropertyName()]||s},a,i.createElement("span",{className:"".concat(c,"-asterisk")},l.dataDescription.is_optional?"":"*"))}))},sa=$o(aa,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);sa.displayName="PropertyLabel";var la=function(e){function n(t){return e.call(this,t)||this}return _o(n,e),n.prototype.render=function(){var e=this.props,n=e.element,r=e.elementId,a=e.possibleOptions,s=e.accessibilityName,l=e.displayName,c=e.showDisplayName,u=e.propertyName,d=e.disabled,p=e.required,h=e.hidden,m=e.onSelect,f=e.tags,g=e.optionsElements,v=e.styleHints,y=[];for(var b in a)a.hasOwnProperty(b)&&y.push({key:b,value:a[b].key||b,isDisabled:a[b].isDisabled,displayText:a[b].displayText,displayImageUrl:a[b].displayImageUrl});return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(vi.Consumer,null,(function(a){return i.createElement(yi.Consumer,null,(function(b){var C,S=e.elementFactory,x=(e.displayOptions,e.displaySettings,e.theme),_=yo.getId,E=qe,k=_(E.htmlElementIdPrefixes.div,r),w={elementId:r,isInline:a,hidden:h,options:y,optionsElements:g,ariaLabel:b.accessibilityText[u]||s,showDisplayName:c,displayName:l||n.displayName,additionalClassName:o(_i(f)),onSelect:m,disabled:d,propertyName:u,required:p,invalid:!1,selectedValue:b.values[u]&&b.values[u].toString(),propertyElementRef:n.propertyElementRef,theme:x,styleHints:v},I=S&&S.canCreate(t.ElementType.radio,w,{});return I?(null===(C=null===S||void 0===S?void 0:S.isReactNative)||void 0===C?void 0:C.call(S))?S.create(t.ElementType.radio,w):i.createElement("div",{id:k,className:o(k,_(E.htmlElementIdPrefixes.div,n.displayId))},S.create(t.ElementType.radio,w),I&&I.inlineError?null:i.createElement(ki,{propertyName:u})):i.createElement("div",{className:o("pidlddc-input-".concat(r))},y.map((function(e){var t="input_".concat(r,"_").concat(e.value),n="".concat(t,"_displayTextLabel");return i.createElement("div",{key:t},i.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":w.ariaLabel,className:o({"pidlddc-hidden":!c}),"aria-hidden":!c},l),i.createElement("div",{className:o(_i(f))},i.createElement("label",{id:n,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||d?null:m(e.value)}},i.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(u),disabled:e.isDisabled||d,required:p,"aria-labelledby":n,value:e.value,onChange:function(){return m(e.value)},checked:w.selectedValue===e.value}),g&&g[e.value]?g[e.value]:e.displayText)))})),i.createElement(ki,{propertyName:u}))}))}))}))},n}(i.Component),ca=di(la,["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags"]);ca.displayName="Radio";var ua=function(e){var n=e.elementId,r=e.displayContent,a=e.tags,s=e.styleHints,l=o(_i(a)),c=(0,yo.getId)(qe.htmlElementIdPrefixes.text,n);return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,o=(e.displayOptions,e.displaySettings,e.theme),a={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:o,styleHints:s};return n&&n.canCreate(t.ElementType.heading,a,{})?n.create(t.ElementType.heading,a):i.createElement("h2",{id:c,className:l},r)}))},da=ri(ua,["elementId","displayContent","tags","styleHints"]);da.displayName="Heading";var pa=function(e){var n=e.elementId,r=e.displayContent,a=e.tags,s=e.styleHints,l=o(_i(a)),c=(0,yo.getId)(qe.htmlElementIdPrefixes.text,n);return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,o=(e.displayOptions,e.displaySettings,e.theme),a={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:o,styleHints:s};return n&&n.canCreate(t.ElementType.subheading,a,{})?n.create(t.ElementType.subheading,a):i.createElement("h3",{id:c,className:l},r)}))},ha=ri(pa,["elementId","displayContent","tags","styleHints"]);ha.displayName="SubHeading";var ma=function(e){var n=e.elementId,r=e.displayContent,a=e.tags,s=e.styleHints,l=e.gridColumn,c=e.gridRow,u=(0,yo.getId)(qe.htmlElementIdPrefixes.text,n),d=Ei(a),p=o(_i(a));return i.createElement(vi.Consumer,null,(function(e){return i.createElement(Ci.Consumer,null,(function(n){var o=n.elementFactory,a=(n.displayOptions,n.displaySettings,n.theme),h={id:u,displayContent:r,additionalClassName:p,inline:e,theme:a,styleHints:s,gridColumn:l,gridRow:c};if(o){if(d.indexOf("labelText")>=0&&o.canCreate(t.ElementType.label,h,{}))return o.create(t.ElementType.label,h);if(o.canCreate(t.ElementType.text,h,{}))return o.create(t.ElementType.text,h)}return e?i.createElement("span",{id:u,className:p},r):i.createElement("p",{id:u,className:p},r)}))}))},fa=ri(ma,["elementId","displayContent","tags","styleHints"]);fa.displayName="Text";var ga=function(e){function t(n){var r=e.call(this,n)||this;return r.getTransformedLength=function(e,t,n){var r=t.substr(0,n),o=tn.applyDisplayTransformation(e.forModel,r);return(o=tn.applyDisplayTransformation(e.forFormat,o)).length},r.onFocus=function(e){var t=r.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onBlur=function(e){var t=r.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onChange=function(e){var n=r.props,o=n.element,i=n.onChange,a=n.id,s=o.displayTransformations;t.caretPosition={id:a,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var l=e.currentTarget.value;if(s&&s.forModel&&s.forFormat&&(t.caretPosition.start=r.getTransformedLength(s,l,t.caretPosition.start),t.caretPosition.end=r.getTransformedLength(s,l,t.caretPosition.end)),i){var c=e.currentTarget.value;s&&s.forModel&&(c=tn.applyDisplayTransformation(s.forModel,c)),i(c)}},r.onCompositionStart=function(e){r.inComposition=!0},r.onCompositionEnd=function(e){r.inComposition=!1},r.htmlInput=i.createRef(),r.inComposition=!1,r}return _o(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,n=e.additionalClassName,r=e.id,a=e.maskInput,s=e.maxLength,l=e.required,c=e.hidden,u=e.disabled,d=e.placeholder,p=e.ariaLabelId,h=e.inlineError,m=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup),f=(e.styleHints,this.props.value),g=t.displayTransformations,v=h||m&&!u;return!this.inComposition&&g&&g.forFormat&&(f=tn.applyDisplayTransformation(g.forFormat,f)),i.createElement("input",{type:a?"password":"text",className:v?o(n,"pidlddc-errorstroke"):n,id:r,ref:this.htmlInput,maxLength:s,required:l,hidden:c,disabled:u,value:f,placeholder:d,"aria-labelledby":p,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(i.Component),va=function(e){function n(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,he.editing)},n.onBlur=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,he.finished)},n.onSelected=function(e,t,r){n.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},n.onUnselected=function(e,t,r){n.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},n.onFocusInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=t.onFocus,s=yo,l=s.getDivId,c=s.getId,u=l(r),d=c(i.inputPropertyIdPrefix,o);n.onSelected&&n.onSelected(d,o,u),a&&a(e)},n.onBlurInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=yo,s=a.getDivId,l=a.getId,c=s(r),u=l(i.inputPropertyIdPrefix,o);n.onUnselected&&n.onUnselected(u,o,c),n.onBlur&&n.onBlur(e)},n}return _o(n,e),n.prototype.render=function(){var e=this;return i.createElement(Ci.Consumer,null,(function(n){return i.createElement(yi.Consumer,null,(function(r){var a=n.elementFactory,s=n.displayOptions,l=n.theme,c=e.props,u=c.elementId,d=c.element,p=c.required,h=c.disabled,m=c.hidden,f=c.propertyName,g=c.maxLength,v=c.displayHelpName,y=c.displayImage,b=c.tags,C=void 0===b?{}:b,S=c.placeHolderText,x=c.showKeyLogo,_=c.resolvedLogo,E=c.displayHelpChildren,k=(c.onFocus,c.displayId),w=c.accessibilityName,I=c.accessibilityHint,P=c.styleHints,T=d.displayName,D=d.showDisplayName,A=d.displayDescription,R=d.propertyElementRef,N=qe,M=yo,F=M.getDivId,B=M.getId,O=M.generateClassName,L=M.concatClassName,H=F(u),V=B(s.inputPropertyIdPrefix,f),z={inlineError:!0},U=r.errors[f]?r.errors[f].message:void 0,W=!!r.errors[f],G=D?i.createElement(sa,{element:d}):null,j={id:u},q=v||y?i.createElement($i,Eo({},j,{element:d,children:E,elementFactory:a})):null,K={disabled:h,displayName:T,hidden:m,inlineError:U,isInValidationErrorGroup:W,maskInput:A&&A.maskInput,maxLength:g,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:p,showDisplayName:D,inlineHelpLink:q,additionalClassName:o(_i(C)),ariaLabelId:"pidlddc-label-".concat(f," pidlddc-error-").concat(f),id:V,inlineLogo:x&&_,placeholder:S,value:r.values[f]&&r.values[f].toString()||"",propertyName:f,displayId:k,propertyElementRef:R,ariaLabel:w,accessibilityHint:I,theme:l,styleHints:P},Y=null;(z=a&&a.canCreate(t.ElementType.textBox,K,z))?(Y=a.create(t.ElementType.textBox,K),z.label&&(G=null),z.inlineHelpLink&&(q=null)):Y=i.createElement(ga,Eo({},K,{element:d}));var X=O(null,N.htmlElementTypes.div,f,N.modelElementType.textBox);k&&(X=L(X,F(k)));var Q;return Q=i.createElement(i.Fragment,null,G&&q&&d.displayHelpPosition!==He.floatRight?i.createElement("span",null,G," ",q):G,q&&d.displayHelpPosition===He.floatRight?i.createElement("span",null,Y," ",q):Y,G&&q?null:q,z&&z.inlineError?null:i.createElement(ki,{propertyName:f})),(null===a||void 0===a?void 0:a.isReactNative)&&a.isReactNative()?i.createElement(i.Fragment,null,Q):i.createElement("div",{id:H,className:X},Q)}))}))},n}(i.Component),ya=ci(va,["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints"]);ya.displayName="TextBox";var ba=function(e){function n(t){var n=e.call(this,t)||this;return n.inputFileRef=i.createRef(),n.onChange=function(e){var t=n.props,r=t.onUpdateValue,o=t.propertyName,i=n.inputFileRef.current.value;i?n.setState({selectedFile:i.split(/(\\|\/)/g).pop()}):n.setState({selectedFile:""}),r(o,e.target.files[0],he.finished)},n.state={selectedFile:""},n.onButtonClick=n.onButtonClick.bind(n),n}return _o(n,e),n.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},n.prototype.render=function(){var e=this;return i.createElement(Ci.Consumer,null,(function(n){return i.createElement(yi.Consumer,null,(function(r){var a=n.elementFactory,s=e.state.selectedFile,l=e.props,c=l.className,u=l.element,d=l.propertyName,p=l.elementId,h=l.disabled,m=l.accessibilityName,f=l.tags,g=l.required,v=l.displayHelpName,y=l.displayHelpChildren,b=l.displayImage,C=u.displayName,S=u.showDisplayName,x=u.displayContent,_=(0,yo.getId)(qe.htmlElementIdPrefixes.filePicker,p),E=o(c,_i(f)),k={inlineError:!0},w=S?i.createElement(sa,{element:u}):null,I=i.createElement(ki,{propertyName:d}),P={id:p},T=v||b?i.createElement($i,Eo({},P,{element:u,children:y,elementFactory:a})):null,D={id:_,additionalClassName:E,disabled:h,inlineHelpLink:T,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:m,displayName:C,displayContent:x,showDisplayName:S,required:g,errorNode:I,selectedFile:s,inputFileRef:e.inputFileRef};return(k=a&&a.canCreate(t.ElementType.filePicker,D,k))?a.create(t.ElementType.filePicker,D):i.createElement("div",{id:_,className:o(E)},w&&T&&u.displayHelpPosition!==He.floatRight?i.createElement("span",null,w," ",T):w,w&&T?null:T,i.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),i.createElement("button",{id:_+"_button","aria-label":m,disabled:h,onClick:e.onButtonClick},x)," ",i.createElement("label",{id:_+"_label"}," ",s," "),k&&k.inlineError?null:i.createElement(ki,{propertyName:d}))}))}))},n}(i.Component),Ca=hi(ba,["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);Ca.displayName="FilePicker";var Sa=function(e){var n=e.className,i=e.element,a=e.elementId,s=e.accessibilityName,l=e.tags,c=e.audioUrl,u=(0,yo.getId)(qe.htmlElementIdPrefixes.audio,a),d=o(n,_i(l)),p=i.propertyElementRef;return r.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,o=e.theme,i={id:u,additionalClassName:d,ariaLabel:s,propertyElementRef:p,theme:o,audioUrl:c};return n&&n.canCreate(t.ElementType.audio,i,{})?n.create(t.ElementType.audio,i):r.createElement("div",{id:u,className:d},r.createElement("audio",{"aria-label":s,src:c,controls:!0}))}))},xa=mi(Sa,["elementId","accessibilityName","tags","audioUrl"]);xa.displayName="Audio";var _a=ri((function(e){var n=e.elementId,r=e.tags,a=(0,yo.getId)(qe.htmlElementIdPrefixes.separator,n),s=o(_i(r));return i.createElement(Ci.Consumer,null,(function(e){var n=e.elementFactory,r={id:a,additionalClassName:s};return n&&n.canCreate(t.ElementType.separator,r,{})?n.create(t.ElementType.separator,r):i.createElement("hr",{id:a,className:s})}))}),["elementId","tags"]);_a.displayName="Separator";var Ea=ri((function(e){var n=e.elementId,r=e.tags,a=(0,yo.getId)(qe.htmlElementIdPrefixes.spinner,n),s=o(_i(r));return i.createElement(Ci.Consumer,null,(function(e){var r=e.elementFactory,o={elementId:n,additionalClassName:s};return r&&r.canCreate(t.ElementType.spinner,o,{})?r.create(t.ElementType.spinner,o):i.createElement("hr",{id:a,className:s})}))}),["elementId","tags"]);Ea.displayName="Spinner";var ka=function(e){function n(t){var n,r,a=this;return(a=e.call(this,t)||this).onMessageEvent=function(e){var t,n,r,o,i,s,l=a.props,c=l.sourceUrl,u=l.propertyName,d=l.displayId,p=l.eventHandler,h=yo,m=h.getDivId,f=h.getId,g=qe,v=m(d),y=f(g.htmlElementIdPrefixes.secureProperty,u);(null===e||void 0===e?void 0:e.origin)&&0!==(null===c||void 0===c?void 0:c.indexOf(e.origin))||((null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.event)!==g.SecureFieldEvent.focused||(null===(n=null===e||void 0===e?void 0:e.data)||void 0===n?void 0:n.field)!==u?(null===(r=null===e||void 0===e?void 0:e.data)||void 0===r?void 0:r.event)!==g.SecureFieldEvent.blurred||(null===(o=null===e||void 0===e?void 0:e.data)||void 0===o?void 0:o.field)!==u?(null===(i=null===e||void 0===e?void 0:e.data)||void 0===i?void 0:i.source)===g.SecureFieldConstants.secureFieldMessageSource&&(null===(s=null===e||void 0===e?void 0:e.data)||void 0===s?void 0:s.field)===u&&p.secureFieldMessageHandler(e):a.onBlurInternal(y,e.data.field,v):a.onFocusInternal(y,e.data.field,v))},a.onFocusInternal=function(e,t,n){a.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},a.onBlurInternal=function(e,t,n){a.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},a.computeStyles=function(){var e=yo,t=e.generateClassName,n=e.getPropertyClassName,r=e.concatClassName,i=qe,s=a.props,l=s.propertyName,c=s.tags,u=s.eventHandler,d=t(null,i.htmlElementTypes.textBox,l);d=r(d,n(l)),d=r(d,o(_i(c))),u.computeSecurePropertyStyles(l,a.securePropertyHardCodedStyles)},a.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"width-fill":t=Eo(Eo({},t),{width:"100%"});break;case"width-half":t=Eo(Eo({},t),{width:"50%"});break;case"width-quarter":t=Eo(Eo({},t),{width:"25%"})}}return t}},a.iframe=i.createRef(),a.state={executing:!0,width:null===(n=t.element)||void 0===n?void 0:n.width,height:null===(r=t.element)||void 0===r?void 0:r.height},a}return _o(n,e),n.prototype.componentDidMount=function(){var e=this.props.element;e.propertyElementRef&&e.setFocus(),this.computeStyles(),window.addEventListener(C.message,this.onMessageEvent)},n.prototype.componentWillUnmount=function(){window.removeEventListener(C.message,this.onMessageEvent)},n.prototype.render=function(){var e=this;return i.createElement(Ci.Consumer,null,(function(n){return i.createElement(yi.Consumer,null,(function(r){var a,s=n.elementFactory,l={},c=e.props,u=c.displayId,d=c.propertyName,p=c.accessibilityName,h=c.hidden,m=c.tags,f=c.sourceUrl,g=c.frameName,v=c.element,y=c.labelNode,b=c.displayHelpName,C=c.displayImage,S=c.displayHelpChildren,x=c.styleHints,_=e.state,E={width:_.width,height:_.height},k=yo,w=k.getId,I=k.getDivId,P=k.generateClassName,T=k.concatClassName,D=qe,A=w(D.htmlElementIdPrefixes.secureProperty,d),R=I(u),N=P(null,D.htmlElementTypes.div,null,D.modelElementType.secureProperty);d&&(N=T(N,I(d)));var M=P(null,D.htmlElementTypes.secureProperty);m&&(M=T(M,o(_i(m))));var F={id:u},B=b||C?i.createElement($i,Eo({},F,{element:v,children:S,elementFactory:s})):null;(l=s&&s.canCreate(t.ElementType.secureProperty,null,l))&&(e.securePropertyHardCodedStyles=l.securePropertyHardCodedStyles,(null===(a=l.securePropertyHardCodedStyles)||void 0===a?void 0:a.secureIframeDimensions)&&(E=Eo({},l.securePropertyHardCodedStyles.secureIframeDimensions)),l.inlineHelpLink||(B=null)),x&&(E=Eo(Eo({},E),e.getStylesFromHints(x)));var O=i.createElement("iframe",{className:M,id:A,src:f,hidden:h,"aria-label":p,ref:e.iframe,style:Eo(Eo({},E),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:g,frameBorder:"0"});return e.state.executing?i.createElement("div",{id:R,className:N},y&&B&&v.displayHelpPosition===He.floatRight?i.createElement("span",null,y," ",B):y,B?i.createElement("span",null,B," ",O):O,i.createElement(ki,{propertyName:d})):null}))}))},n}(i.Component),wa=ai(ka,["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),Ia=function(e){var n=e.element,r=e.elementId,a=e.hidden,s=e.required,l=e.disabled,c=e.displayId,u=e.displayHelpName,d=e.displayImage,p=e.showDisplayName,h=e.displayName,m=e.accessibilityName,f=e.displayHelpChildren;return p?i.createElement(Ci.Consumer,null,(function(e){var g=e.elementFactory,v=(0,yo.getId)(qe.htmlElementIdPrefixes.label,r),y={id:c},b=u||d?i.createElement($i,Eo({},y,{element:n,children:f,elementFactory:g})):null,C={disabled:l,required:s,elementId:v,displayContent:h,inlineHelpLink:b};return(null===g||void 0===g?void 0:g.canCreate(t.ElementType.securePropertyLabel,C,{}))?g.create(t.ElementType.securePropertyLabel,C):i.createElement("label",{className:o("pidlddc-label",a||!p?"d-none":"d-block"),id:C.elementId,"aria-label":m},h,i.createElement("span",{className:"".concat(C.elementId,"-asterisk")},s?"*":""))})):null};Ia.displayName="SecurePropertyLabelInner";var Pa=ai(Ia,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function Ta(e,t,n,r,o){var a,s;if(!e.canBeRendered())return null;var l=e,c=l.getPropertyName&&l.getPropertyName()||"";if(e.hidden())return null;var u,d,p,h={element:e},m=e.displayHelp,f=e.operationType,g=D;switch(e.type){case g.page:return e.children&&e.children.map?e.children.map(Da(t,n,r,o)):null;case g.dataCollectionBindingGroup:case g.group:var v=Eo(Eo({},h),{childNodes:e.children&&e.children.map?e.children.map(Da(t,n,r,o)):null,labelNode:i.createElement(Zi,Eo({},h))});return yr(e)&&e.isModalGroup?i.createElement(Ui,Eo({},v,{ref:e.groupElementRef})):i.createElement(qi,Eo({},v));case g.captcha:return i.createElement(Si.Consumer,null,(function(a){var s=Eo({},t),l=Eo({},t);s.buttonClickHandler=function(){var t=e.id;s.captchaHyperlinkClickHandler(t,"image",he.finished)},l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"audio",he.finished)};var c=Eo(Eo({},h),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(Da(s,n,r,o)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(Da(l,n,r,o)):null});return i.createElement(Xi,Eo({},c,{eventHub:a}))}));case g.textGroup:var y=void 0;return e.children&&e.children[0]&&e.children[0].id&&(y=yo.getId(w.text,e.children[0].id)),i.createElement(Ki,Eo({},h,{ariaLabelledBy:y}),i.createElement(vi.Provider,{value:!0},e.children&&e.children.map?e.children.map(Da(t,n,r,o)):null));case g.heading:return i.createElement(da,Eo({},h));case g.subheading:return i.createElement(ha,Eo({},h));case g.text:return i.createElement(fa,Eo({},h));case g.hyperlink:return i.createElement(ea,Eo({onClick:(p=e.pidlAction,!p||p.type!==B.navigate&&p.type!==B.redirect?t.buttonClickHandler:t.hyperlinkClickHandler)},h));case g.image:return i.createElement(oa,Eo({},h));case g.logo:var b=e.getAllLogos(),C=b&&b.map?b.map((function(e){return i.createElement(ia,{element:e})})):null;return i.createElement(Ci.Consumer,null,(function(e){return function(e,t,n){return n&&(null===e||void 0===e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?i.createElement(i.Fragment,null,t):i.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)}(e.elementFactory,C,!0)}));case g.dropdown:return i.createElement(Si.Consumer,null,(function(a){if(e.displayType===dt.prefillControl){var s=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return i.createElement(Gi,{element:Eo(Eo({},e),{getPropertyName:function(){return e.displayId},possibleOptions:s}),isPrefill:!0,onSelect:function(t){var n=parseInt(t);isNaN(n)||r(e,n)},eventHub:a})}if(u=e.possibleOptions){d={};for(var l=0,p=Object.keys(u||{});l<p.length;l++){var m=p[l];if(u[m]){var f=u[m].displayContentContainer;f&&(d||(d={}),d[m]=Ta(f,t,n,r,o))}}}return i.createElement(Gi,Eo({},h,{onSelect:function(e){n(c,e.toString(),he.editing),n(c,e.toString(),he.finished)},optionsElements:d,eventHub:a}))}));case g.checkBox:if(e.displayType===dt.prefillControl){return i.createElement(Vi,Eo({},h,{onChange:function(t){r(e,t)},getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions}))}return i.createElement(Mi,Eo({},h,{onChange:function(e){n(c,e,he.editing)}}));case g.textBox:var S;if(m){var x=Tn.createModelElementsFromDisplayDescriptions(m,f);S=x.elements&&x.elements.map?x.elements.map(Da(t,n,r,o)):void 0}return i.createElement(Ci.Consumer,null,(function(e){return i.createElement(ya,Eo({},h,{displayHelpChildren:S,onUpdateValue:n,propertyName:c,eventHandler:t,displayOptions:e.displayOptions}))}));case g.button:var _=e.pidlAction,E=e.displayContentModelElement,k=e.displayContent,I=void 0;return E&&(I=Ta(E,t,n,r,o)),i.createElement(Pi,Eo({},h,{onClick:function(){return t.buttonClickHandler({id:e.id,pidlAction:_,value:_.context,dest:""})},displayContent:null!==I&&void 0!==I?I:k}));case g.audio:return i.createElement(xa,Eo({},h));case g.radio:if(u=e.possibleOptions){d={};for(var P=0,T=Object.keys(u||{});P<T.length;P++){var A=T[P];if(u[A]){var R=u[A].displayContentContainer;R&&R[L.isDisabled]&&(R[L.isDisabled]=u[A].isDisabled),R&&(d||(d={}),d[u[A].key||A]=Ta(R,t,n,r,o))}}}return i.createElement(ca,Eo({},h,{onSelect:function(e){n(c,e,he.editing)},optionsElements:d}));case g.expression:return i.createElement(fa,Eo({},h));case g.buttonList:return i.createElement(Ri,Eo({},h,{onClick:t.buttonClickHandler,createElement:function(e){return Ta(e,t,n,r,o)}}));case g.iFrame:var N=i.createRef(),M=i.createElement(ra,Eo({},h,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:N}));return o.push(N),M;case g.filePicker:var F=void 0;if(m)F=(null===(x=Tn.createModelElementsFromDisplayDescriptions(m,f))||void 0===x?void 0:x.elements)&&(null===(a=null===x||void 0===x?void 0:x.elements)||void 0===a?void 0:a.map)?x.elements.map(Da(t,n,r,o)):void 0;return i.createElement(Ca,Eo({},h,{displayHelpChildren:F,propertyName:c,onUpdateValue:n}));case g.separator:return i.createElement(_a,Eo({},h));case g.spinner:return i.createElement(Ea,Eo({},h));case g.secureProperty:var O=void 0;if(m)O=(null===(x=Tn.createModelElementsFromDisplayDescriptions(m,f))||void 0===x?void 0:x.elements)&&(null===(s=null===x||void 0===x?void 0:x.elements)||void 0===s?void 0:s.map)?x.elements.map(Da(t,n,r,o)):void 0;var H=Eo(Eo({},h),{labelNode:i.createElement(Pa,Eo({},h,{displayHelpChildren:O}))});return i.createElement(wa,Eo({},H,{displayHelpChildren:O,eventHandler:t}));default:return}}function Da(e,t,n,r){return function(o,i,a){return Ta(o,e,t,n,r)}}Pa.displayName="SecurePropertyLabel";var Aa,Ra=function(e){function t(t){var n=e.call(this,t)||this;return n.update=function(e,t){e.run.apply(e,ko([n,t||function(){}],e.args,!1))},n.displayValues={},n.propertyNames=[],n.getPropertyNames(n.props.pageElement.children,n.propertyNames),n.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},n}return _o(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,n=t.getModelPropertyValue,r=t.onPropertyChange;for(var o in this.state.pendingValues){var i=n(o);void 0!==i&&r&&r(o,i)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.isProperty()){var i=o;i.displayType!==dt.prefillControl&&t.push(i.getPropertyName())}else if(o.isCaptcha()){var a=o;t.push(a.getPropertyName())}o.children&&o.children.length&&this.getPropertyNames(o.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,n=e.pageElement,r={};this.propertyNames=[],n&&n.children&&this.getPropertyNames(n.children,this.propertyNames);for(var o=0,i=this.propertyNames;o<i.length;o++){var a=i[o];r[a]=t(a)}var s=Eo(Eo(Eo({},this.displayValues),r),this.state.pendingValues);return{errors:this.state.propertyErrors,values:s,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,n=e.elementFactory,r=e.displayOptions,o=e.displaySettings,a=e.eventHub,s=e.theme,l=e.userContext;return i.createElement(Si.Provider,{value:a},i.createElement(bi.Provider,{value:this.state.groupErrors},i.createElement(yi.Provider,{value:this.getPropertyState()},i.createElement(Ci.Provider,{value:{elementFactory:n,displayOptions:r,displaySettings:o,theme:s,userContext:l}},t))))},t}(i.Component),Na=function(e,t,n){var r;e.setState({propertyErrors:Eo(Eo({},e.state.propertyErrors),(r={},r[n.propertyName]=n,r))},t)},Ma=function(e,t,n){var r;e.setState({groupErrors:Eo(Eo({},e.state.groupErrors),(r={},r[n.groupDisplayId]=n,r))},t)},Fa=function(e,t,n){var r=Eo({},e.state.propertyErrors);if(r[n])delete r[n],e.setState({propertyErrors:r},t);else{var o=Eo({},e.state.groupErrors);o&&o[n]&&(delete o[n],e.setState({groupErrors:o},t))}},Ba=function(e,t){e.updatePropertyValues(t)},Oa=function(e,t,n,r){var o;e.setState({accessibilityText:Eo(Eo({},e.state.accessibilityText),(o={},o[n]=r,o))},t)},La=function(e,t,n,r){var o;e.setState({pendingValues:Eo(Eo({},e.state.pendingValues),(o={},o[n]=r,o))})},Ha=function(e,t,n,r){var o;e.displayValues=Eo(Eo({},e.displayValues),((o={})[n]=r,o)),e.forceUpdate(t)},Va=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},za=function e(t,n,r){t.map((function(t){if(t.isProperty()){var o=t,i=o.getPropertyName();r[i]=o}n[t.id]=t,e(t.children||[],n,r)}))},Ua=function(e){function t(t){var n=e.call(this,t)||this;if(n._propertyElementRef=i.createRef(),n._propertyElementErrorRef=i.createRef(),n._modalRef=i.createRef(),n._navigationWrapperRef=i.createRef(),n.moreThanOneBusyBlockPropExists=function(){var e=n.props,t=e.busyBlockElement,r=e.displayOptions;return[r.busyBlockId,t,r.busyBlockShowHideHandler].filter((function(e){return e})).length>1},n.moveNextPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveNextPage)&&n.pidlControlApi.moveNextPage().result},n.submitPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.submitPage)&&n.pidlControlApi.submitPage().result},n.moveToLastPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToLastPage)&&n.pidlControlApi.moveToLastPage().result},n.movePrevPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.movePrevPage)&&n.pidlControlApi.movePrevPage().result},n.moveToFirstPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToFirstPage)&&n.pidlControlApi.moveToFirstPage().result},n.cancel=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.cancel)&&n.pidlControlApi.cancel().result},n.getPidlExternalControlPropsMap=function(){return n.pidlExternalControlProps},n.getSelectedResource=function(){return n.pidlControlApi?n.pidlControlApi.getSelectedResource().result:null},n.getPidlPayload=function(){return n.pidlControlApi?n.pidlControlApi.returnUserInputData():null},n.postMessageToChildIFrames=function(e){return!(!n.pidlControlApi||!n.pidlControlApi.postMessageToChildIFrames)&&n.pidlControlApi.postMessageToChildIFrames(e).result},n.updateChildIFramesHeight=function(e){n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(t,n,r){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)}))},n.focusOnPageRefresh=function(e){n.state.disableFocusOnLoad||(e===L.pageRendered||e===L.pageRefreshed?setTimeout((function(){var e,t,r,o;n.state.firstErrorPropertyName||(n.props.onPageRendered&&n.props.onPageRendered(),n.props.propertyElementRef||(null===(t=null===(e=n._propertyElementRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.focus)&&(null===(o=null===(r=n._propertyElementRef)||void 0===r?void 0:r.current)||void 0===o||o.focus()))}),100):e===L.pageNavigated&&setTimeout((function(){var e,t,r;if(!n.state.firstErrorPropertyName){var o=null!==(e=n.props.propertyElementRef)&&void 0!==e?e:n._propertyElementRef;(null===(t=null===o||void 0===o?void 0:o.current)||void 0===t?void 0:t.focus)&&(null===(r=null===o||void 0===o?void 0:o.current)||void 0===r||r.focus())}}),100))},n.busyBlockShowHide=function(e){n.setState({showBusyBlock:e})},n.toggleVisualCaptcha=function(e,t,r){n.onUpdateValue(e,t,r)},n.shouldRenderBusyBlock=function(){var e=n.state.showBusyBlock,t=n.props.busyBlockElement;return t&&i.isValidElement(t)&&e},n.reset=function(){n.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0},(function(){return n.updateState({run:Va,args:[]})}))},n.findFirstVisibleErroredProperty=function(e,t){for(var r=[],o=0;o<t.length;o++)r.push(t[o].propertyName);var i={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isProperty()&&!e.disabled()&&!e.hidden()&&r.includes(e.getPropertyName()))return t.element=e,!0}),i),i.element},n.findFirstVisibleEnabledPropertyElement=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return(!Cr(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)}),t),t.element},n.findHighlightedButton=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0}),t),t.element},n.isRadioPossibleOptionsAllDisabled=function(e){for(var t=rn.getKeys(e.possibleOptions),n=!0,r=0;r<t.length;r++)n=n&&e.possibleOptions[t[r]].isDisabled;return n},n.findPropertyElementByPropertyName=function(e,t,r){var o={};return n.propertiesVisitorProcessingDataProperty(e,(function(e,o){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!Cr(e)||r&&!rn.isEmptyString(An.normalizeValueToDisplayDescriptionPossibleOptions(e,r))))return(!Cr(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(o.element=e,!0)}),o),o.element},n.onUpdateValue=function(e,t,r){if(n.state.viewEventHandler){n.pendingPropertyValue(e,t);var o=function(){n.state.viewEventHandler.updateModelPropertyValue(e,t,r).then((function(){n.updatePropertyValues()}))};r===he.finished?setTimeout(o,1):o()}},n.onUpdatePrefill=function(e,t){if(n.state.viewEventHandler){var r=function(){n.updateDisplayValue(e.displayId,t)};n.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(r,r)}},n.updateState=function(e){if(e&&n.pendingUpdates.push(e),n.wrapper.current&&n.pendingUpdates.length>0){var t=n.pendingUpdates[0];n.pendingUpdates.splice(0,1),n.wrapper.current.update(t,(function(){return n.updateState()}))}},n.getTelemetryLogger=function(){var e,t,r,o,i=null===(t=null===(e=n.props.elementFactory)||void 0===e?void 0:e.isReactNative)||void 0===t?void 0:t.call(e),a=null===(r=n.props.callbacksIn)||void 0===r?void 0:r.telemetryLogger,s=null===(o=n.props.elementFactory)||void 0===o?void 0:o.telemetryLogger;return i&&s?n.props.elementFactory.telemetryLogger(a):a||new fo},n.initPidl=function(){var e,t=n.props,r=t.userContext,o=t.returnOptions,i=t.displayOptions,a=t.telemetryOptions,s=t.callbacksIn,l=t.transformersIn,c=t.onShowHideBusy,u=t.pidlsdkMock,d=t.pidlPayload,p=Eo({},l),h=Eo(Eo({},s),{telemetryLogger:n.getTelemetryLogger(),view:s&&s.view?s.view:{initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},r={},o={},i=n.transformPage(e.pageElement,e.displaySettings);for(var a in za(i.children,t,r),r)r.hasOwnProperty(a)&&(o[a]=e.viewEventHandler.getModelPropertyValue(a)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=n.toggleVisualCaptcha,n.setState({elements:t,properties:r,pageElement:i,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return c&&c(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout((function(){var e,t,r,o;n.state.firstErrorPropertyName&&((null===(t=null===(e=n._propertyElementErrorRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.focus)&&(null===(o=null===(r=n._propertyElementErrorRef)||void 0===r?void 0:r.current)||void 0===o||o.focus()),n.setState({firstErrorPropertyName:void 0}))}),100)},showPropertyError:function(e){return n.showPropertyError(e),!0},showGroupError:function(e){return n.showGroupError(e),!0},showPageError:function(e){return n.setState({pageError:e}),!1},hidePropertyError:function(e){n.hidePropertyError(e)},hidePageError:function(){n.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(n,r,o){if(n&&n.current&&n.current.postMessage){var i=n.current.postMessage(e);t=t&&i}else t=!1})),t},getPageElementValues:function(){return n.wrapper.current?n.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,n){},getVisibleProperties:function(){if(n.wrapper.current&&n.state.pageElement){var e=[];return n.wrapper.current.getPropertyNames([n.state.pageElement],e),e}return[]},updatePrefillControls:function(){n.updatePropertyValues()},updatePropertyValue:function(e,t,r,o){var i=n.state.properties[e];i&&n.updateDisplayValue(i.displayName,r)},setAccessibilityText:function(e,t){n.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null===(t=null===(e=n._modalRef)||void 0===e?void 0:e.current)||void 0===t||t.toggleDisplay(!1)},getViewType:function(){return"reactview"}}});return e=u?u.initMock(r,o,n.eventHandler,i,a,h,p):new ho(r,o,n.eventHandler,Eo(Eo({},i),{containerId:i.containerId||""}),h,a,n.privateEventHandler,n.oneDSService,p,d),n.props.operation(e),e},n.moreThanOneBusyBlockPropExists())throw new Error(At.onlyOneBusyBlockPropAllowed.debugMessage);return n.eventHandler=function(e,t){var r,o,i,a,s,l,c,u,d,p,h;if(((null===(r=n.props.elementFactory)||void 0===r?void 0:r.createNavigationWrapper)&&(null===t||void 0===t?void 0:t.currentPageIndex)||(null===t||void 0===t?void 0:t.pageId))&&(t.currentPageIndex===n.state.currentPageIndex&&t.pageId===n.state.currentPageId||n.setState({currentPageIndex:null===t||void 0===t?void 0:t.currentPageIndex,currentPageId:null===t||void 0===t?void 0:t.pageId})),(null===(o=n.props.elementFactory)||void 0===o?void 0:o.createNavigationWrapper)&&e===L.pageRefreshed&&(null===(a=null===(i=n._navigationWrapperRef.current)||void 0===i?void 0:i.forceFocusRefRefresh)||void 0===a||a.call(i)),e===L.error&&n.state.pageElement&&((null===(s=null===t||void 0===t?void 0:t.error)||void 0===s?void 0:s.code)===At.formSubmissionFailedBadUserInput.code||(null===(l=null===t||void 0===t?void 0:t.error)||void 0===l?void 0:l.code)===At.formValidationFailed.code)&&(null===(c=null===t||void 0===t?void 0:t.error)||void 0===c?void 0:c.errors)&&(null===(u=null===t||void 0===t?void 0:t.error)||void 0===u?void 0:u.errors.length)>0&&((null===(d=null===t||void 0===t?void 0:t.error)||void 0===d?void 0:d.errors[0].propertyName)||(null===(p=null===t||void 0===t?void 0:t.error)||void 0===p?void 0:p.errors[0].groupDisplayId))){var m=n.findFirstVisibleErroredProperty(n.state.pageElement.children,t.error.errors);n.setState({firstErrorPropertyName:null!==(h=null===m||void 0===m?void 0:m.getPropertyName())&&void 0!==h?h:t.error.errors[0].propertyName})}return e===L.propertySelected&&n.setState({disableFocusOnLoad:!1,lastFocusedPropertyName:null===t||void 0===t?void 0:t.propertyName}),e===L.selectionChanged&&n.setState({disableFocusOnLoad:!1,lastFocusedPropertyName:null===t||void 0===t?void 0:t.propertyName,lastFocusedPropertyValue:null===t||void 0===t?void 0:t.propertyValue}),n.focusOnPageRefresh(e),n.props.onEvent&&n.props.onEvent(e,t)},n.privateEventHandler=function(e,t){e===H.propertyUnselected&&n.setState({lastFocusedPropertyName:void 0,firstErrorPropertyName:void 0}),e===H.success&&n.reset(),n.focusOnPageRefresh(e)},n.props&&n.props.elementFactory&&n.props.elementFactory.getOneDSService&&(n.oneDSService=n.props.elementFactory.getOneDSService()),n.wrapper=i.createRef(),n.pendingUpdates=[],n.iFrameInnerRefs=[],n.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,lastFocusedPropertyName:void 0,lastFocusedPropertyValue:void 0,firstErrorPropertyName:void 0,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad},n}return _o(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;Zr.set(e||Ao),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl())},t.prototype.wrapGroupedElements=function(e,t){var n=this.state.pageError;return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?i.createElement(i.Fragment,null,t):i.createElement("div",{className:o("pidl-react-page-error",{"d-none":!n||!n.message})},t)},t.prototype.render=function(){var e=this.props,t=e.displayOptions,n=e.children,r=e.onPropertyChange,o=e.elementFactory,a=e.busyBlockElement,s=e.propertyElementRef,l=e.theme,c=this.state,u=c.pageElement,d=c.viewEventHandler,p=c.pageError,h=c.displaySettings,m=c.eventHub,f=c.firstErrorPropertyName,g=c.lastFocusedPropertyName,v=c.lastFocusedPropertyValue,y=t;a&&i.isValidElement(a)&&(y.busyBlockShowHideHandler=this.busyBlockShowHide);var b=n;if(this.pidlControlApi&&u&&d){this.attachFocusRef(u,s,f,g,v),this.attachModalRef(u);var C=u.children.map(Da(d,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs)),S=new Map,x=u.keyPidlActions;Object.keys(x||{}).forEach((function(e){var t=x[e];S.set(e,(function(){d.invokePidlAction(t)}))}));var _=(null===o||void 0===o?void 0:o.createNavigationWrapper)?o.createNavigationWrapper(C,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,S):i.createElement(i.Fragment,null,C);b=i.createElement(Ra,{ref:this.wrapper,getModelPropertyValue:d.getModelPropertyValue,onPropertyChange:r,pageElement:u,elementFactory:o,displayOptions:y,displaySettings:h,eventHub:m,theme:l,userContext:this.props.userContext},_)}var E=p?i.createElement(wi,{message:p.message}):null;return i.createElement(i.Fragment,null,i.createElement(Ci.Provider,{value:{elementFactory:o,displayOptions:y,displaySettings:h,theme:l,userContext:this.props.userContext}},i.createElement(i.Fragment,null,this.wrapGroupedElements(o,E))),this.shouldRenderBusyBlock()&&((null===o||void 0===o?void 0:o.createBusyBlockWrapper)?o.createBusyBlockWrapper(i.cloneElement(a)):i.cloneElement(a)),b)},t.prototype.attachFocusRef=function(e,t,n,r,o){var i,a=e.children;if(n)(i=this.findPropertyElementByPropertyName(a,n))&&(i.propertyElementRef=this._propertyElementErrorRef);else{r&&(i=this.findPropertyElementByPropertyName(a,r,o))||(i=this.findFirstVisibleEnabledPropertyElement(a));var s=this.findHighlightedButton(a);i&&(i.isButton()&&s&&(i=s),i.propertyElementRef||(i.propertyElementRef=null!==t&&void 0!==t?t:this._propertyElementRef))}},t.prototype.attachModalRef=function(e){var t;e.children.forEach((function(e){yr(e)&&(t=e)})),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isButton()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingAny=function(e,t,n){if(e){var r=t(e,n);return r||(!(e.children&&e.children.length>0)||n&&n.stopDescendantsProcessing?void(n&&delete n.stopDescendantsProcessing):this.propertiesVisitorProcessingAny(e.children,t,n))}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:La,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:Ba,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:Ha,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:Oa,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:Ma,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:Na,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:Fa,args:[e]})},t.prototype.splitChildren=function(e,t){var n=ko([],e.children,!0);if(!n||!n.length)return n;var r=n[n.length-1];if(!yr(r)||!r.isSubmitGroup)return n;(null===r||void 0===r?void 0:r.isSubmitGroup)&&this.setExternalControlNames(r);var o=r.operationType,i=r.pidlIdentity,a=r.isLinkedPidl;n.pop();var s={displayId:I.pageBlock,displayType:dt.group,displayName:null,styleHints:e.displayDescription.styleHints},l=new Fn(D.group,null,s,o,i,a);return l.children=n,r.id=t.submitButtonBlock.id,[l,r]},t.prototype.transformPage=function(e,t){return Eo(Eo({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,n=B.gohome,r=B.submit,o=B.next,i=B.prev,a=e.members;a&&a.forEach((function(e){var a;e.displayContent&&(null===(a=e.pidlAction)||void 0===a?void 0:a.type)&&(e.pidlAction.type==n||e.pidlAction.type==r||e.pidlAction.type==o||e.pidlAction.type==i)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})})),this.pidlExternalControlProps=t},t.defaultProps={env:Ao},t}(i.Component),Wa=function(e){function t(t,n){var r=e.call(this,t)||this;return r.moveNextPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.moveNextPage)&&r.pidlRef.current.moveNextPage()},r.submitPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.submitPage)&&r.pidlRef.current.submitPage()},r.movePrevPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.movePrevPage)&&r.pidlRef.current.movePrevPage()},r.cancel=function(){return!(!r.pidlRef.current||!r.pidlRef.current.cancel)&&r.pidlRef.current.cancel()},r.getPidlExternalControlPropsMap=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlExternalControlPropsMap?r.pidlRef.current.getPidlExternalControlPropsMap():null},r.getSelectedResource=function(){return r.pidlRef.current&&r.pidlRef.current.getSelectedResource()},r.getPidlPayload=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlPayload()},r.postMessageToChildIFrames=function(e){return!(!r.pidlRef.current||!r.pidlRef.current.postMessageToChildIFrames)&&r.pidlRef.current.postMessageToChildIFrames(e)},r.implementationMissing=function(e,t,n){var o,i,a;if(!r.pidlRef.current)return null;var s=null===(a=null===(i=null===(o=r.pidlRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.state)||void 0===a?void 0:a.eventHub;null===s||void 0===s||s.implementationMissing(e,t,n)},r.updateChildIFramesHeight=function(e){r.pidlRef.current&&r.pidlRef.current.updateChildIFramesHeight&&r.pidlRef.current.updateChildIFramesHeight(e)},r.pidlRef=i.createRef(),r.pidlOperation=n,r}return _o(t,e),t.prototype.render=function(){return i.createElement(Ua,Eo({},this.props,{ref:this.pidlRef,operation:this.pidlOperation}),this.props.children)},t}(i.Component),Ga=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addAddress(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),ja=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,n,r,o,i,a,s){var l={operation:Ro.Operation,type:a||Ro.DefaultAddressType,scenario:e,country:n,language:r,partner:o,setAsDefaultBilling:e===t.AddressScenario.profile||s};return i&&(l=Eo(Eo({},l),i)),l},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Ro.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.parameters,i=e.busyBlockElement,a=e.country,s=e.language,l=e.scenario,c=e.addressType,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onFailure,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.prefillData,b=e.pidlsdkMock,C=e.telemetryLogger,S=e.telemetryOptions,x=e.propertyElementRef,_=e.onPageRendered,E=e.setAsDefaultBilling,k=e.headers,w=e.callbacksIn,I=this.state.styleProvider,P=this.compileParameters(l,a,s,u,o,c,E),T=this.compileReturnOptions(p,h,m);return r.createElement(xi.Provider,{value:{styleProvider:I}},r.createElement(Ga,{busyBlockElement:i,displayOptions:{containerId:Ro.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},pidlDocInfo:{resourceType:Ro.ResourceType,parameters:P},env:n,returnOptions:T,onEvent:this.onEvent,userContext:{authToken:t,userId:Ro.UserId,additionalHeaders:k},elementFactory:d,prefillData:y,pidlsdkMock:b,callbacksIn:Eo(Eo({},w),{telemetryLogger:C}),telemetryOptions:S,propertyElementRef:x,onPageRendered:_}))},n}(r.Component),qa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addPaymentInstrument(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),Ka=function(e){function n(n){var o=e.call(this,n)||this;o.baseComponentRef=r.createRef(),o.compileParameters=function(e,t,n,r,o,i,a){var s={operation:Uo.Operation,country:e,language:t,partner:n,completePrerequisites:a,type:i,family:o};return r&&(s=Eo(Eo({},s),r)),s},o.FailureHandler=function(e){o.props.onFailure(e.error)},o.compileReturnOptions=function(e,t,n,r,i){return{urls:{success:e,failure:t},callbacks:{success:n,failure:o.FailureHandler,gohome:i}}},o.compileCallbacks=function(){var e=o.props,t=e.telemetryLogger,n=e.elementFactory,r=e.callbacksIn,i=Eo({},r);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},o.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},o.onEvent=function(e,t){var n=o.props,r=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Uo.ViewTermsId)&&i(t),r&&r(e,t)},o.getRef=function(){return o.baseComponentRef};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddPaymentInstrument,s,l,c,u,d);return o.state={styleProvider:p},o}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.parameters,i=e.busyBlockElement,a=e.completePrerequisites,s=e.country,l=e.language,c=e.partner,u=e.paymentFamily,d=e.paymentType,p=e.elementFactory,h=e.onSuccess,m=e.onFailure,f=e.onCancel,g=e.showSubmitBlock,v=void 0===g||g,y=e.busyBlockShowHideHandler,b=e.prefillData,C=e.pidlsdkMock,S=(e.telemetryLogger,e.telemetryOptions),x=e.propertyElementRef,_=e.onPageRendered,E=e.headers,k=e.greenId,w=e.redirectionSuccessUrl,I=e.redirectionFailureUrl,P=e.serviceOverrides,T=this.state.styleProvider,D=this.compileParameters(s,l,c,o,u,d,a),A=this.compileReturnOptions(w,I,h,m,f),R=this.compileCallbacks(),N=this.compileOptions(k);return r.createElement(xi.Provider,{value:{styleProvider:T}},r.createElement(qa,{busyBlockElement:i,displayOptions:{containerId:Uo.ContainerId,busyBlockShowHideHandler:y,showSubmitBlock:v},pidlDocInfo:{resourceType:Uo.ResourceType,parameters:D},env:n,returnOptions:A,onEvent:this.onEvent,userContext:{authToken:t,userId:Uo.UserId,additionalHeaders:E,serviceOverrides:P},elementFactory:p,prefillData:b,pidlsdkMock:C,callbacksIn:R,telemetryOptions:S,propertyElementRef:x,onPageRendered:_,ref:this.baseComponentRef,options:N}))},n}(r.Component),Ya=function(e){function t(t){var n=this,r=Eo(Eo({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return n=e.call(this,t,(function(e){return e.applyResource(r,n.props.prefillData,n.props.options)}))||this,n}return _o(t,e),t}(Wa),Xa=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.paymentFamily,s=e.paymentType,l=e.scenario,c=e.prefillData,u=e.provider,d=e.channel,p=e.referrerId,h=e.sessionId,m=e.ocid,f={operation:jo.Operation,country:t,language:n,partner:o,scenario:l,type:s,family:a,prefillData:c,provider:u,channel:d,referrerId:p,sessionId:h,ocid:m};return i&&(f=Eo(Eo({},f),i)),f},r.FailureHandler=function(e){var t,n,o,i=null===(o=null===(n=null===(t=null===So||void 0===So?void 0:Co)||void 0===t?void 0:t.errorMessages)||void 0===n?void 0:n.pollingTimedOut)||void 0===o?void 0:o.code;i&&e.code===i.toString()?r.props.onTimeOut(e):r.props.onFailure(e)},r.compileReturnOptions=function(e,t,n,o){return{urls:o,callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=Eo({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.onNavigate;i&&e===L.navigate&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ApplyPaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.busyBlockElement,i=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,h=e.pidlsdkMock,m=e.prefillData,f=e.telemetryOptions,g=e.propertyElementRef,v=(e.onEvent,e.onPageRendered),y=e.headers,b=e.useWebView2,C=this.state.styleProvider,S=this.compileParameters(),x=this.compileReturnOptions(a,s,l,c),_=this.compileCallbacks();return r.createElement(xi.Provider,{value:{styleProvider:C}},r.createElement(Ya,{busyBlockElement:o,displayOptions:{containerId:jo.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b},pidlDocInfo:{resourceType:jo.ResourceType,parameters:S},env:n,returnOptions:x,onEvent:this.onEvent,userContext:{authToken:t,userId:jo.UserId,additionalHeaders:y},elementFactory:i,prefillData:m,pidlsdkMock:h,callbacksIn:_,telemetryOptions:f,propertyElementRef:g,onPageRendered:v}))},n}(r.Component),Qa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),Za=function(e){function t(t){var n=e.call(this,t,(function(e){return e.applyResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),Ja=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchasePendingState(n.props.parameters)}))||this;return n}return _o(t,e),t}(Wa),$a=function(e){function n(n){var r=e.call(this,n)||this;r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:Bo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.piid,a=e.orderId,s=e.sessionId;return{piResourceInfo:{resourceType:Bo.ResourceType,parameters:{market:t,language:n,partner:o,sessionId:s,orderId:a},id:i},sessionId:s,orderId:a,options:{}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onSuccess,n=e.onCancel,o=e.redirectReturnUrls,i=Eo({},o),a=i.success,s=i.failure,l=i.gohome;return{callbacks:{success:t,failure:r.FailureHandler,gohome:n},urls:{success:a,failure:s,gohome:l}}},r.compileCallbacksIn=function(){return Eo(Eo({},r.props.callbacksIn),{telemetryLogger:r.props.telemetryLogger})};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ConfirmPayment,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.pidlsdkMock,i=e.propertyElementRef,a=e.telemetryOptions,s=e.onEvent,l=e.onPageRendered,c=e.elementFactory,u=e.busyBlockElement,d=this.state.styleProvider,p=this.compileDisplayOptions(),h=this.compileParameters(),m=this.compileReturnOptions(),f=this.compileCallbacksIn();return r.createElement(xi.Provider,{value:{styleProvider:d}},r.createElement(Ja,{busyBlockElement:u,displayOptions:p,parameters:h,env:n,returnOptions:m,userContext:{authToken:t,userId:Bo.UserId},onEvent:s,elementFactory:c,pidlsdkMock:o,callbacksIn:f,telemetryOptions:a,propertyElementRef:i,onPageRendered:l}))},n}(r.Component),es=function(e){function t(t){var n=e.call(this,t,(function(e){return e.createPaymentSession(n.props.paymentSessionOrData)}))||this;return n}return _o(t,e),t}(Wa),ts=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return _o(t,e),t}(Wa),ns=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i){var a=Eo({operation:Mo.Operation,type:Mo.AddressType,scenario:e},{country:t,language:n,partner:r,addressId:i});return o&&(a=Eo(Eo({},a),o)),a},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Ro.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.addressId,o=e.env,i=e.parameters,a=e.busyBlockElement,s=e.scenario,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onFailure,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,_=this.state.styleProvider,E=this.compileParameters(s,l,c,u,i,n),k=this.compileReturnOptions(p,h,m);return r.createElement(xi.Provider,{value:{styleProvider:_}},r.createElement(ts,{busyBlockElement:a,displayOptions:{containerId:Mo.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},resourceInfo:{id:n,resourceType:Mo.ResourceType,parameters:{}},pidlDocInfo:{resourceType:Mo.ResourceType,parameters:E},env:o,returnOptions:k,onEvent:this.onEvent,userContext:{authToken:t,userId:Mo.UserId,additionalHeaders:x},elementFactory:d,pidlsdkMock:y,callbacksIn:{telemetryLogger:b},propertyElementRef:C,onPageRendered:S}))},n}(r.Component),rs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return _o(t,e),t}(Wa),os=function(e){function n(n){var o=e.call(this,n)||this;o.baseComponentRef=r.createRef(),o.onEvent=function(e,t){var n=o.props,r=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Go.ViewTermsId)&&i(t),r&&r(e,t)},o.compileParameters=function(e,t,n,r,o,i){var a={country:e,language:t,partner:o,type:n,family:r};return i&&(a=Eo(Eo({},a),i)),a},o.FailureHandler=function(e){o.props.onFailure(e.error)},o.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:o.FailureHandler,gohome:t}}},o.getRef=function(){return o.baseComponentRef};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.EditPaymentInstrument,s,l,c,u,d);return o.state={styleProvider:p},o}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,o=e.paymentType,i=e.paymentFamily,a=e.env,s=e.parameters,l=e.busyBlockElement,c=e.country,u=e.language,d=e.partner,p=e.elementFactory,h=e.onSuccess,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,_=e.callbacksIn,E=this.state.styleProvider,k=this.compileParameters(c,u,o,i,d,s),w=this.compileReturnOptions(h,m);return r.createElement(xi.Provider,{value:{styleProvider:E}},r.createElement(rs,{busyBlockElement:l,env:a,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:Go.UserId,additionalHeaders:x},elementFactory:p,pidlsdkMock:y,callbacksIn:Eo(Eo({},_),{telemetryLogger:b}),propertyElementRef:C,onPageRendered:S,displayOptions:{containerId:Go.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},resourceInfo:{id:n,resourceType:Go.ResourceType,parameters:{partner:d}},pidlDocInfo:{resourceType:Go.ResourceType,parameters:k},ref:this.baseComponentRef}))},n}(r.Component),is=function(e){function t(t){var n=e.call(this,t,(function(e){return e.fundStoredValue(n.props.fundStoredValueParams)}))||this;return n}return _o(t,e),t}(Wa),as=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData,n.props.containerRef)}))||this;return n}return _o(t,e),t}(Wa),ss=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return _o(t,e),t}(Wa);(Aa=t.RiskPurchaseType||(t.RiskPurchaseType={})).CVV="cvv",Aa.SMS="sms";var ls,cs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return _o(t,e),t}(Wa),us=function(e){function n(n){var o=e.call(this,n)||this;o.HandleRiskChallengeInternalRef=r.createRef(),o.onEvent=function(e,t){var n=o.props,r=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Qo.ViewTermsId)&&i(t),r&&r(e,t)},o.compileDisplayOptions=function(){var e=o.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:Fo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},o.compileParameters=function(){var e=o.props,t=e.piid,n=e.language,r=e.country,i=e.partner,a=e.type,s=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:n,market:r,partner:i},resourceType:Fo.ResourceType},riskChallengeData:[a],sessionId:s}},o.FailureHandler=function(e){o.props.onFailure(e.error)},o.compileReturnOptions=function(){var e=o.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:o.onSuccess,failure:o.FailureHandler,gohome:t}}},o.onSuccess=function(e){var n=o.props,r=n.onSuccess;n.type===t.RiskPurchaseType.SMS?r({challengeType:t.RiskPurchaseType.SMS}):r(e)},o.compileCallbacksIn=function(){var e=o.props,n=e.onSuccess,r=e.telemetryLogger,i=e.callbacksIn,a=e.type,s=Eo(Eo({},i),{telemetryLogger:r});return a===t.RiskPurchaseType.CVV&&(s=Eo(Eo({},s),{submit:function(e){var t=null===e||void 0===e?void 0:e.data;n(t)}})),s},o.transformPidlString=function(e){return function(t,n){var r=n;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"===typeof n&&(r={value:n}):e.error(new Dt.unexpectedError(At.inputParameterMissing,["request url"])):e.error(new Dt.unexpectedError(At.inputParameterMissing,["request"])),r}},o.moveNextPage=function(){var e,t;null===(t=null===(e=o.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},o.movePrevPage=function(){var e,t;null===(t=null===(e=o.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},o.cancel=function(){var e,t;null===(t=null===(e=o.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RiskChallenge,s,l,c,u,d);return o.state={styleProvider:p},o}return _o(n,e),n.prototype.render=function(){var e=this,t=this.state.styleProvider,n=this.props,o=n.authToken,i=n.busyBlockElement,a=n.env,s=n.elementFactory,l=n.pidlsdkMock,c=n.propertyElementRef,u=n.onPageRendered,d=n.telemetryOptions,p=n.headers,h=this.compileDisplayOptions(),m=this.compileParameters(),f=this.compileReturnOptions(),g=this.compileCallbacksIn();return r.createElement(xi.Provider,{value:{styleProvider:t}},r.createElement(Si.Consumer,null,(function(t){return r.createElement(cs,{busyBlockElement:i,displayOptions:h,parameters:m,env:a,returnOptions:f,userContext:{authToken:o,userId:Fo.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:s,pidlsdkMock:l,callbacksIn:g,telemetryOptions:d,propertyElementRef:c,onPageRendered:u,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})})))},n}(r.Component),ds=function(e){function t(t){var n=e.call(this,t,(function(e){return e.listAddress(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return _o(t,e),t}(Wa),ps=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i,a){var s={operation:i,scenario:e,type:a||zo.DefaultAddressType,country:t,language:n,partner:r};return o&&(s=Eo(Eo({},s),o)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ListAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.parameters,i=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.scenario,u=e.elementFactory,d=e.onSuccess,p=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,f=void 0===m||m,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=e.telemetryLogger,b=e.telemetryOptions,C=e.addressType,S=e.propertyElementRef,x=e.onPageRendered,_=e.onEvent,E=e.callbacksIn,k=e.headers,w=this.state.styleProvider,I=this.compileParameters(c,a,s,l,o,zo.Operation,C),P=this.compileReturnOptions(d,p,h);return r.createElement(xi.Provider,{value:{styleProvider:w}},r.createElement(ds,{busyBlockElement:i,displayOptions:{containerId:zo.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f},pidlDocInfo:{resourceType:zo.ResourceType,parameters:I},env:n,returnOptions:P,onEvent:_,userContext:{authToken:t,userId:zo.UserId,additionalHeaders:k},elementFactory:u,pidlsdkMock:v,callbacksIn:Eo(Eo({},E),{telemetryLogger:y}),telemetryOptions:b,propertyElementRef:S,onPageRendered:x}))},n}(r.Component),hs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return _o(t,e),t}(Wa),ms=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a={operation:Yo.Operation,country:t,language:n,partner:o,filters:{id:r.props.paymentInstrument.id}};return i&&(a=Eo(Eo({},a),i)),a},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},r.eventHandler=function(e,t){var n=r.props,o=n.onChange,i=n.onEvent,a=n.paymentInstrument;e===L.click&&(null===t||void 0===t?void 0:t.id)===Yo.ChangeButtonId&&o&&o(a.id),i&&i(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=o.baseDisabledStyleOverrides,p=o.scenarioDisabledStyleOverrides,h=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.PaymentInstrumentDetails,a,s,l,c,u,null,d,p);return r.state={styleProvider:h},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.busyBlockElement,i=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,h=e.onPageRendered,m=e.callbacksIn,f=e.headers,g=this.state.styleProvider,v=this.compileParameters(),y=this.compileReturnOptions();return r.createElement(xi.Provider,{value:{styleProvider:g}},r.createElement(hs,{busyBlockElement:o,displayOptions:{containerId:Yo.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s},pidlDocInfo:{resourceType:Yo.ResourceType,parameters:v},env:n,returnOptions:y,onEvent:this.eventHandler,userContext:{authToken:t,userId:Yo.UserId,additionalHeaders:f},elementFactory:i,pidlsdkMock:c,callbacksIn:Eo(Eo({},m),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:h}))},n}(r.Component),fs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateProfile(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return _o(t,e),t}(Wa),gs=function(e){function n(n){var r=e.call(this,n)||this;r.compilePidlDocParameters=function(e,t,n,r){var o={operation:Ko.Operation,country:e,language:t,partner:n,type:"consumer"};return r&&(o=Eo(Eo({},o),r)),o},r.compileResourceParameters=function(e,t,n,r){return{country:e,language:t,partner:n,type:"consumer"}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=qe,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Uo.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ProfilePrerequisite,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.parameters,i=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,f=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,y=e.propertyElementRef,b=e.profileId,C=e.onPageRendered,S=e.callbacksIn,x=e.headers,_=this.state.styleProvider,E=this.compilePidlDocParameters(a,s,l,o),k=this.compileResourceParameters(a,s,l,o),w=this.compileReturnOptions(u,d,p);return r.createElement(xi.Provider,{value:{styleProvider:_}},r.createElement(fs,{busyBlockElement:i,displayOptions:{containerId:Ko.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:m},pidlDocInfo:{resourceType:Ko.ResourceType,parameters:E},resourceInfo:{resourceType:Ko.ResourceType,parameters:k,id:b},env:n,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:Ko.UserId,additionalHeaders:x},elementFactory:c,pidlsdkMock:g,callbacksIn:Eo(Eo({},S),{telemetryLogger:v}),propertyElementRef:y,onPageRendered:C}))},n}(r.Component),vs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.replaceResource(n.props.pidlDocInfo,n.props.intersectingData,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),ys=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchResource({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return _o(t,e),t}(Wa),bs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectPaymentInstrument(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return _o(t,e),t}(Wa),Cs=function(e){function n(n){var o=e.call(this,n)||this;o.baseComponentRef=r.createRef(),o.compileParameters=function(){var e=o.props,t=e.country,n=e.language,r=e.partner,i=e.allowedPaymentMethods,a=e.defaultPaymentMethod,s=e.parameters,l=e.sessionId,c=e.orderId,u=e.merchantId,d=e.currency,p=e.filters,h=e.classicProduct,m=e.billableAccountId,f={allowedPaymentMethods:(null===i||void 0===i?void 0:i.length)?i:Ho.AllowedPaymentMethods,operation:Ho.Operation,country:t,language:n,partner:r};return l&&(f.sessionId=l),c&&(f.orderId=c),u&&(f.merchantId=u),d&&(f.currency=d),p&&(f.filters=p),h&&(f.classicProduct=h),m&&(f.billableAccountId=m),a&&(f.defaultPaymentMethod=a),s&&(f=Eo(Eo({},f),s)),f},o.failureHandler=function(e){o.props.onFailure(e.error)},o.compileReturnOptions=function(){var e=o.props,t=e.onCancel,n=e.onSuccess;return{callbacks:{failure:o.failureHandler,success:n,gohome:t}}},o.isCreditCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return tn.getFunctionExecutionResult({functionName:Lo.isCreditCard},{contextData:e})},o.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return tn.getFunctionExecutionResult({functionName:Lo.isCreditCardExpired},{contextData:e})},o.onEventInternal=function(e,t){var n=o.props,r=n.onEvent,i=n.paymentInstrumentSelectedHandler,a=n.userPiAvailableCheckHandler;return e==L.pageRefreshed&&t&&"noPaymentInstrumentSelectPage"==(null===t||void 0===t?void 0:t.pageId)&&(o.setState({userPiExists:!1}),a&&a(o.state.userPiExists)),i&&e===L.resourceSelected?i(o.getSelectedResource()):r?r(e,t):void 0},o.getRef=function(){return o.baseComponentRef},o.getSelectedResource=function(){var e,t,n,r,i,a,s,l,c,u,d,p=(null===(n=null===(t=null===(e=o.baseComponentRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.getSelectedResource())||void 0===n?void 0:n.instance)||{};return{id:p.id,paymentMethodFamily:null===(r=p.paymentMethod)||void 0===r?void 0:r.paymentMethodFamily,paymentMethodType:null===(i=p.paymentMethod)||void 0===i?void 0:i.paymentMethodType,displayName:null===(s=null===(a=p.paymentMethod)||void 0===a?void 0:a.display)||void 0===s?void 0:s.name,email:null===(l=p.details)||void 0===l?void 0:l.email,lastFourDigits:null===(c=p.details)||void 0===c?void 0:c.lastFourDigits,isExpired:o.isCreditCard(p)?o.isCreditCardExpired(p):void 0,soldToAddressRequired:null===(d=null===(u=p.paymentMethod)||void 0===u?void 0:u.properties)||void 0===d?void 0:d.soldToAddressRequired}};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=i.baseDisabledStyleOverrides,h=i.scenarioDisabledStyleOverrides,m=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentInstrument,s,l,c,u,d,p,h);return o.state={styleProvider:m,userPiExists:!0},o}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.busyBlockElement,i=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,h=(e.onEvent,e.onPageRendered),m=e.headers,f=e.callbacksIn,g=this.state.styleProvider,v=this.compileParameters(),y=this.compileReturnOptions();return r.createElement(xi.Provider,{value:{styleProvider:g}},r.createElement(bs,{busyBlockElement:o,displayOptions:{containerId:Ho.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s},pidlDocInfo:{resourceType:Ho.ResourceType,parameters:v},env:n,returnOptions:y,onEvent:this.onEventInternal,userContext:{authToken:t,userId:Ho.UserId,additionalHeaders:m},elementFactory:i,pidlsdkMock:c,callbacksIn:Eo(Eo({},f),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:h,ref:this.baseComponentRef}))},n}(r.Component),Ss=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),xs=function(e){function n(n){var o=e.call(this,n)||this;o.baseComponentRef=r.createRef(),o.compileParameters=function(){var e=o.props,t=e.country,n=e.language,r=e.partner,i=e.parameters,a=e.defaultPaymentMethod,s=e.allowedPaymentMethods,l=e.filters,c=e.sessionId,u=e.orderId,d=e.merchantId,p=e.currency,h=e.pmGroupPageId,m={allowedPaymentMethods:(null===s||void 0===s?void 0:s.length)?s:No.AllowedPaymentMethods,operation:No.Operation,country:t,language:n,partner:r};return a&&(m.defaultPaymentMethod=a),c&&(m.sessionId=c),u&&(m.orderId=u),d&&(m.merchantId=d),p&&(m.currency=p),l&&(m.filters=l),h&&(m.pmGroupPageId=h),i&&(m=Eo(Eo({},m),i)),m},o.FailureHandler=function(e){o.props.onFailure(e.error)},o.compileReturnOptions=function(e,t,n){return{callbacks:{failure:o.FailureHandler,success:e,gohome:n}}},o.getRef=function(){return o.baseComponentRef};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentMethod,s,l,c,u,d);return o.state={styleProvider:p},o}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.busyBlockElement,i=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.showSubmitBlock,u=void 0===c||c,d=e.busyBlockShowHideHandler,p=e.pidlsdkMock,h=e.callbacksIn,m=e.propertyElementRef,f=e.onEvent,g=e.onPageRendered,v=e.telemetryLogger,y=e.headers,b=this.state.styleProvider,C=this.compileParameters(),S=this.compileReturnOptions(a,s,l);return r.createElement(xi.Provider,{value:{styleProvider:b}},r.createElement(Ss,{busyBlockElement:o,displayOptions:{containerId:No.ContainerId,busyBlockShowHideHandler:d,showSubmitBlock:u,disableFocusOnLoad:this.props.disableFocusOnLoad},pidlDocInfo:{resourceType:No.ResourceType,parameters:C},env:n,returnOptions:S,onEvent:f,userContext:{authToken:t,userId:No.UserId,additionalHeaders:y},elementFactory:i,pidlsdkMock:p,callbacksIn:Eo(Eo({},h),{telemetryLogger:v}),propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef}))},n}(r.Component),_s=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return _o(t,e),t}(Wa),Es=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return _o(t,e),t}(Wa),ks=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return _o(t,e),t}(Wa),ws=function(e){function t(t){var n=e.call(this,t,(function(e){return e.showResource({pidlDocInfo:n.props.pidlDocInfo,prefillData:n.props.prefillData,options:n.props.options})}))||this;return n}return _o(t,e),t}(Wa),Is=function(e){function t(t){var n=e.call(this,t,(function(e){return e.testHookRenderPidlPage(n.props.pidlDocument,n.props.operation,n.props.pageIndex||0,n.props.prefillData)}))||this;return n}return _o(t,e),t}(Wa),Ps=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return _o(t,e),t}(Wa),Ts=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return _o(t,e),t}(Wa);(ls=t.ValidateAddressPages||(t.ValidateAddressPages={}))[ls.validateAddressPage=0]="validateAddressPage",ls[ls.editAddressPage=1]="editAddressPage";var Ds,As=function(e){function n(n){var r=e.call(this,n)||this;return r.onValidateAddressEvent=function(e,n){var o=r.props,i=o.onEvent,a=o.currentPageChangeHandler;if(e==L.pageRefreshed){switch(n.pageId){case"addressSuggestionPage1":r.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":r.setState({currentPage:t.ValidateAddressPages.editAddressPage})}a&&a(r.state.currentPage)}if(i)return i(e,n)},r.getCurrentPage=function(){return r.state.currentPage},r.state={currentPage:t.ValidateAddressPages.validateAddressPage},r}return _o(n,e),n.prototype.compileParameters=function(e,t,n,r,o,i){var a=Eo({operation:Oo.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=Eo(Eo({},a),i)),a},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.userContext,n=e.env,o=e.parameters,i=e.country,a=e.language,s=e.partner,l=e.addressId,c=e.addressType,u=e.elementFactory,d=e.returnOptions,p=e.pidlSdkRef,h=e.showSubmitBlock,m=void 0===h||h,f=e.busyBlockShowHideHandler,g=(e.onEvent,e.callbacksIn),v=this.compileParameters(i,a,s,l,c,o);return r.createElement(Ts,{displayOptions:{containerId:Oo.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:m},pidlDocInfo:{resourceType:Oo.ResourceType,parameters:v},env:n,returnOptions:d,userContext:t,elementFactory:u,ref:p,onEvent:this.onValidateAddressEvent,callbacksIn:g})},n}(r.Component),Rs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateResource(n.props.pidlDocInfo)}))||this;return n}return _o(t,e),t}(Wa),Ns=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handleCheckout(n.props.checkoutParams)}))||this;return n}return _o(t,e),t}(Wa),Ms=function(e){function t(t){var n=e.call(this,t,(function(e){return e.deleteResource({resourceInfo:n.props.resourceInfo,resource:n.props.resource,pidlDocInfo:n.props.pidlDocInfo,options:n.props.options||{}})}))||this;return n}return _o(t,e),t}(Wa),Fs=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i){return{id:i,resourceType:Wo.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:n,family:r,type:o}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.DeletePaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,o=e.paymentType,i=e.paymentFamily,a=e.env,s=e.busyBlockElement,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onCancel,m=e.showSubmitBlock,f=void 0===m||m,g=e.busyBlockShowHideHandler,v=e.telemetryLogger,y=e.headers,b=e.callbacksIn,C=this.state.styleProvider,S=this.compileParameters(l,c,u,i,o,n),x=this.compileReturnOptions(p,h);return r.createElement(xi.Provider,{value:{styleProvider:C}},r.createElement(Ms,{returnOptions:x,busyBlockElement:s,env:a,options:void 0,resourceInfo:S,elementFactory:d,callbacksIn:Eo(Eo({},b),{telemetryLogger:v}),userContext:{authToken:t,userId:Wo.UserId,additionalHeaders:y},displayOptions:{containerId:Wo.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f}}))},n}(r.Component),Bs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData)}))||this;return n}return _o(t,e),t}(Wa),Os=function(e){function n(n){var r=e.call(this,n)||this;r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:Xo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},r.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?r.props.onCancel(e):"TimedOut"===e.challengeStatus?r.props.onFailure(e):r.props.onSuccess(e)},r.failureHandler=function(e){var t=null===e||void 0===e?void 0:e.error;r.props.onFailure(null===t||void 0===t?void 0:t.innererror)},r.compileReturnOptions=function(){var e=r.props.onCancel;return{callbacks:{success:r.successHandler,failure:r.failureHandler,gohome:e}}},r.compileCallbacksIn=function(){return{telemetryLogger:r.props.telemetryLogger}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.HandlePaymentChallenge,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.state.styleProvider,t=this.props,n=t.authToken,o=t.busyBlockElement,i=t.env,a=t.elementFactory,s=t.headers,l=t.paymentSessionOrData,c=t.pidlsdkMock,u=t.propertyElementRef,d=t.onEvent,p=t.onPageRendered,h=t.telemetryOptions,m=this.compileDisplayOptions(),f=this.compileReturnOptions(),g=this.compileCallbacksIn();return r.createElement(xi.Provider,{value:{styleProvider:e}},r.createElement(Bs,{busyBlockElement:o,displayOptions:m,env:i,returnOptions:f,userContext:{authToken:n,userId:Xo.UserId,additionalHeaders:s},paymentSessionOrData:l,onEvent:d,elementFactory:a,pidlsdkMock:c,callbacksIn:g,telemetryOptions:h,propertyElementRef:u,onPageRendered:p}))},n}(r.Component);!function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),(Ds=t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}))[Ds.Select=0]="Select";var Ls,Hs,Vs=function(e){function n(n){var o=e.call(this,n)||this;return o.SelectPaymentInstrumentRef=r.createRef(),o.SelectPaymentMethodRef=r.createRef(),o.AddPaymentInstrumentRef=r.createRef(),o.EditPaymentInstrumentRef=r.createRef(),o.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return tn.getFunctionExecutionResult({functionName:Lo.isCreditCardExpired},{contextData:e})},o.isGiftCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return tn.getFunctionExecutionResult({functionName:Lo.isEwalletStoredValue},{contextData:e})},o.onSelectPIEvent=function(e,n){var r,i,a=o.props,s=a.onEvent,l=a.paymentInstrumentSelectedHandler;return l&&e===L.resourceSelected&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument?l(null===(i=null===(r=o.SelectPaymentInstrumentRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.getSelectedResource()):s?s(e,n):void 0},o.onSelectPISuccess=function(e){var n,r,i;if(e.resourceActionContext)switch(e.resourceActionContext.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":o.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument})}else{var a=e.instance,s=o.props,l=s.onSuccess,c=s.onFailure,u=s.redeemGiftCardHandler,d=Vo.RedeemGiftCardLink,p=Vo.ManagePaymentInstrument,h=Vo.redeemGiftCardHandlerName;if("string"===typeof a){if(a===Vo.NewPaymentMethodLink&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),a===d)if(u)u();else{var m=null===(r=null===(n=o.SelectPaymentInstrumentRef)||void 0===n?void 0:n.current)||void 0===r?void 0:r.getRef();null===(i=null===m||void 0===m?void 0:m.current)||void 0===i||i.implementationMissing(p,h),c({name:U.missingImplementationError,message:"Implentation of ".concat(null!==h&&void 0!==h?h:"undefined"," missing in ").concat(p),code:"",type:U.missingImplementationError,debugMessage:""})}}else o.isCreditCardExpired(a)?o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id}):l(a)}},o.onSelectPaymentMethodSuccess=function(e){o.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?o.onSelectPISuccess({operationType:it.select,instance:Vo.RedeemGiftCardLink}):"windowssettings"===rn.toLowerCase(o.props.partner)&&"credit_card"!==rn.toLowerCase(e.paymentMethodFamily)?(0,o.props.onSuccess)(e):o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},o.onAddPISuccess=function(e){try{var n=e.response;(0,o.props.onSuccess)(n)}catch(r){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},o.onEditPISuccess=function(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},o.cancelSelectPM=function(){o.pmGroupPageId=void 0,o.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:o.pmGroupPageId})},o.cancelAddPI=function(){o.pmGroupPageId=o.state.paymentFamily,o.setState({currentView:t.AllowedViews.SelectPaymentMethod,pmGroupPageId:o.pmGroupPageId})},o.cancelEditPI=function(){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},o.moveNextPage=function(){var e,n,r,i,a,s,l,c,u,d,p,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=o.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.moveNextPage()}},o.movePrevPage=function(){var e,n,r,i,a,s,l,c,u,d,p,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=o.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.movePrevPage()}},o.cancel=function(){var e,n,r,i,a,s,l,c,u,d,p,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.cancel();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.cancel();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=o.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.cancel()}},o.cancelSelectPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.cancelOrMovePrevSelectPaymentMethod=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null===(r=null===(n=null===(e=o.SelectPaymentMethodRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.movePrevPage())},o.cancelAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(r=null===(n=null===(e=o.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.cancelEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(r=null===(n=null===(e=o.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.submitAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(r=null===(n=null===(e=o.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage())},o.submitEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(r=null===(n=null===(e=o.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage())},o.getCurrentView=function(){return o.state.currentView},o.getSelectedResource=function(){var e,n;if(o.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getSelectedResource()},o.state={currentView:t.AllowedViews.SelectPaymentInstrument,paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:o.props.allowedPaymentMethods},o.pmGroupPageId=void 0,o}return _o(n,e),n.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},n.prototype.componentDidUpdate=function(e,t,n){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},n.prototype.render=function(){var e=this.props,n=e.authToken,o=e.env,i=e.parameters,a=e.busyBlockElement,s=e.baseStyleOverrides,l=e.scenarioStyleOverrides,c=e.baseFocusStyleOverrides,u=e.scenarioFocusStyleOverrides,d=e.telemetryLogger,p=e.telemetryOptions,h=e.country,m=e.language,f=e.partner,g=e.elementFactory,v=e.onFailure,y=e.onCancel,b=e.busyBlockShowHideHandler,C=e.pidlsdkMock,S=e.propertyElementRef,x=e.onPageRendered,_=e.onEvent,E=e.completePrerequisites,k=e.viewTermsHandler,w=e.defaultPaymentMethod,I=e.sessionId,P=e.orderId,T=e.merchantId,D=e.currency,A=e.filters,R=e.headers,N=e.showSubmitBlock,M=void 0===N||N,F=this.state,B=F.currentView,O=F.paymentFamily,L=F.paymentType,H=F.paymentInstrumentId,V=F.allowedPaymentMethods;return r.createElement(r.Fragment,null,B===t.AllowedViews.SelectPaymentInstrument&&r.createElement(Cs,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:o,onSuccess:this.onSelectPISuccess,onFailure:v,onCancel:y,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,parameters:i,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:this.onSelectPIEvent,allowedPaymentMethods:V,filters:A,sessionId:I,orderId:P,merchantId:T,currency:D,headers:R,showSubmitBlock:M,ref:this.SelectPaymentInstrumentRef}),B===t.AllowedViews.SelectPaymentMethod&&r.createElement(xs,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:o,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:v,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,parameters:i,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,defaultPaymentMethod:w,allowedPaymentMethods:V,filters:A,sessionId:I,orderId:P,merchantId:T,currency:D,headers:R,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:M,ref:this.SelectPaymentMethodRef}),B===t.AllowedViews.AddPaymentInstrument&&r.createElement(Ka,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:o,onSuccess:this.onAddPISuccess,onFailure:v,onCancel:this.cancelAddPI,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,paymentFamily:O,paymentType:L,completePrerequisites:E,parameters:i,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,viewTermsHandler:k,showSubmitBlock:M,headers:"windowssettings"===rn.toLowerCase(this.props.partner)?Eo(Eo({},R),{"x-ms-flight":"PXUsePartnerSettingsService"}):R,ref:this.AddPaymentInstrumentRef}),B===t.AllowedViews.EditPaymentInstrument&&r.createElement(os,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:o,onSuccess:this.onEditPISuccess,onFailure:v,onCancel:this.cancelEditPI,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,paymentInstrumentId:H,paymentFamily:O,paymentType:L,parameters:i,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,viewTermsHandler:k,showSubmitBlock:M,headers:"windowssettings"===rn.toLowerCase(this.props.partner)?Eo(Eo({},R),{"x-ms-flight":"PXUsePartnerSettingsService"}):R,ref:this.EditPaymentInstrumentRef}))},n}(r.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(Ls||(Ls={})),(Hs=t.ManageAddressMode||(t.ManageAddressMode={}))[Hs.Select=0]="Select",Hs[Hs.Edit=1]="Edit";var zs,Us=function(e){function n(n){var r=e.call(this,n)||this;return r.onSuccessWrapper=function(e){"newAddressLink"===e.id&&r.props.onAddNewAddress?r.props.onAddNewAddress(e):"newAddressLink"===e.id?r.setState({currentView:Ls.AddNewAddress}):r.shouldOpenEditView(e)?r.setState({currentView:Ls.EditAddress,addressId:e.instance.id}):r.props.onSuccess(e)},r.shouldOpenEditView=function(e){var n,o,i=r.props,a=i.mode,s=i.scenario;return a===t.ManageAddressMode.Edit||a===t.ManageAddressMode.Select&&!((null===(n=null===e||void 0===e?void 0:e.instance)||void 0===n?void 0:n.first_name)&&(null===(o=null===e||void 0===e?void 0:e.instance)||void 0===o?void 0:o.last_name))&&s===t.AddressScenario.shipping},r.returnToListView=function(){r.setState({currentView:Ls.ListAddress})},r.state={currentView:Ls.ListAddress},r}return _o(n,e),n.prototype.componentDidUpdate=function(e){var t=this.props,n=t.mode,r=t.scenario,o=t.country,i=t.language,a=t.partner,s=t.addressType;e.mode===n&&e.scenario===r&&e.country===o&&e.language===i&&e.partner===a&&e.addressType===s||this.setState({currentView:Ls.ListAddress})},n.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,n=e.scenarioStyleOverrides,o=e.baseFocusStyleOverrides,i=e.scenarioFocusStyleOverrides,a=e.telemetryLogger,s=e.telemetryOptions,l=e.authToken,c=e.env,u=e.addressType,d=e.showSubmitBlock,p=void 0===d||d,h=e.busyBlockElement,m=e.country,f=e.language,g=e.partner,v=e.scenario,y=e.elementFactory,b=e.onFailure,C=e.onCancel,S=e.busyBlockShowHideHandler,x=e.pidlsdkMock,_=e.propertyElementRef,E=e.onPageRendered,k=e.onEvent,w=e.viewTermsHandler,I=e.headers,P=this.state,T=P.addressId,D=P.currentView;return r.createElement(r.Fragment,null,D===Ls.ListAddress&&r.createElement(ps,{authToken:l,elementFactory:y,env:c,scenario:v,addressType:u,country:m,language:f,partner:g,onSuccess:this.onSuccessWrapper,onFailure:b,onCancel:C,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:o,scenarioFocusStyleOverrides:i,busyBlockElement:h,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:a,telemetryOptions:s,propertyElementRef:_,onPageRendered:E,onEvent:k,headers:I,showSubmitBlock:p}),D===Ls.AddNewAddress&&r.createElement(ja,{authToken:l,elementFactory:y,env:c,country:m,language:f,partner:g,scenario:v,addressType:u,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:o,scenarioFocusStyleOverrides:i,busyBlockElement:h,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:a,telemetryOptions:s,propertyElementRef:_,onPageRendered:E,onEvent:k,viewTermsHandler:w,headers:I,showSubmitBlock:p}),D===Ls.EditAddress&&r.createElement(ns,{authToken:l,addressId:T,elementFactory:y,env:c,country:m,scenario:v,language:f,partner:g,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:o,scenarioFocusStyleOverrides:i,busyBlockShowHideHandler:S,onPageRendered:E,onEvent:k,viewTermsHandler:w,telemetryLogger:a,telemetryOptions:s,headers:I,showSubmitBlock:p}))},n}(r.Component),Ws=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return _o(t,e),t}(Wa);(zs=t.VerifyAddressPages||(t.VerifyAddressPages={}))[zs.verifyAddressPage=0]="verifyAddressPage",zs[zs.editAddressPage=1]="editAddressPage",zs[zs.noAddressSuggestionsPage=2]="noAddressSuggestionsPage";var Gs=function(e){function n(n){var o=e.call(this,n)||this;o.VerifyAddressRef=r.createRef(),o.moveNextPage=function(){var e,t;null===(t=null===(e=o.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},o.movePrevPage=function(){var e,t;null===(t=null===(e=o.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},o.cancel=function(){var e,t;null===(t=null===(e=o.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},o.submitPage=function(){var e,t;null===(t=null===(e=o.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.submitPage()},o.onVerifyAddressEvent=function(e,n){var r=o.props,i=r.onEvent,a=r.currentPageChangeHandler;if(e==L.pageRefreshed)switch(n.pageId){case"addressSuggestionPage1":a&&a(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":a&&a(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":a&&a(t.VerifyAddressPages.noAddressSuggestionsPage)}if(i)return i(e,n)};var i=o.props,a=i.elementFactory,s=i.partner,l=i.baseStyleOverrides,c=i.scenarioStyleOverrides,u=i.baseFocusStyleOverrides,d=i.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.VerifyAddress,s,l,c,u,d);return o.state={styleProvider:p},o}return _o(n,e),n.prototype.compileParameters=function(e,t,n,r,o,i){var a=Eo({operation:Oo.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=Eo(Eo({},a),i)),a},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.env,n=e.parameters,o=e.country,i=e.language,a=e.partner,s=e.addressId,l=e.addressType,c=e.elementFactory,u=e.busyBlockElement,d=e.showSubmitBlock,p=void 0===d||d,h=e.busyBlockShowHideHandler,m=(e.onEvent,e.callbacksIn,e.onSuccess),f=e.onFailure,g=e.onCancel,v=e.headers,y=e.telemetryLogger,b=e.propertyElementRef,C=e.onPageRendered,S=e.pidlsdkMock,x=e.authToken,_=this.state.styleProvider,E=this.compileParameters(o,i,a,s,l,n),k=this.compileReturnOptions(m,f,g);return r.createElement(xi.Provider,{value:{styleProvider:_}},r.createElement(Ws,{busyBlockElement:u,displayOptions:{containerId:Oo.ContainerId,busyBlockShowHideHandler:h,showSubmitBlock:p},pidlDocInfo:{resourceType:Oo.ResourceType,parameters:E},env:t,returnOptions:k,onEvent:this.onVerifyAddressEvent,userContext:{authToken:x,userId:Oo.UserId,additionalHeaders:v},elementFactory:c,pidlsdkMock:S,callbacksIn:{telemetryLogger:y},propertyElementRef:b,onPageRendered:C,ref:this.VerifyAddressRef}))},n}(r.Component),js=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchTransactions({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return _o(t,e),t}(Wa),qs=function(e){function t(t){return e.call(this,t,(function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})}))||this}return _o(t,e),t}(Wa),Ks=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.scenario,s={operation:qo.Operation,country:t,language:n,partner:o,scenario:a};return i&&(s=Eo(Eo({},s),i)),s},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.OfferPaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return _o(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,o=e.busyBlockElement,i=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,h=e.pidlsdkMock,m=e.telemetryOptions,f=e.propertyElementRef,g=e.onEvent,v=e.onPageRendered,y=e.headers,b=e.useWebView2,C=this.state.styleProvider,S=this.compileParameters(),x=this.compileReturnOptions(a,s,l,c);return r.createElement(xi.Provider,{value:{styleProvider:C}},r.createElement(qs,{busyBlockElement:o,displayOptions:{containerId:qo.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b},pidlDocInfo:{resourceType:qo.ResourceType,parameters:S},env:n,returnOptions:x,onEvent:g,userContext:{authToken:t,userId:qo.UserId,additionalHeaders:y},elementFactory:i,pidlsdkMock:h,telemetryOptions:m,propertyElementRef:f,onPageRendered:v}))},n}(r.Component);t.AddAddress=ja,t.AddAddressConstants=Ro,t.AddPaymentInstrument=Ka,t.AddPaymentInstrumentConstants=Uo,t.AddPaymentInstrumentInternal=qa,t.AddResource=Qa,t.ApplyPaymentInstrument=Xa,t.ApplyPaymentInstrumentConstants=jo,t.ApplyPaymentInstrumentInternal=Ya,t.ApplyResource=Za,t.Audio=xa,t.AudioInner=Sa,t.BodyBlock=function(e){var t=e.children;return i.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},t.Button=Pi,t.ButtonInner=Ii,t.ButtonList=Ri,t.ButtonListElement=Di,t.ButtonListElementInner=Ti,t.ButtonListInner=Ai,t.Captcha=Xi,t.CaptchaInner=Yi,t.CheckBox=Mi,t.CheckBoxInner=Ni,t.ConfirmPayment=$a,t.ConfirmPaymentConstants=Bo,t.ConfirmPaymentInternal=Ja,t.CreatePaymentSession=es,t.DefaultIFrameElement=ta,t.DeletePaymentInstrument=Fs,t.DeletePaymentInstrumentConstants=Wo,t.DeleteResource=Ms,t.Dropdown=Gi,t.EditAddress=ns,t.EditAddressConstants=Mo,t.EditPaymentInstrument=os,t.EditPaymentInstrumentConstants=Go,t.Error=ki,t.FilePicker=Ca,t.FundStoredValue=is,t.Group=qi,t.GroupError=ji,t.GroupLabel=Zi,t.GroupLabelInner=Qi,t.HandleCheckout=Ns,t.HandleIndia3DSChallenge=Os,t.HandleIndia3DSChallengeConstants=Xo,t.HandleIndia3DSChallengeInternal=Bs,t.HandlePaymentChallenge=as,t.HandlePurchaseRiskChallenge=ss,t.HandleRiskChallenge=us,t.HandleRiskChallengeConstants=Fo,t.HandleRiskChallengeInternal=cs,t.Heading=da,t.HeadingInner=ua,t.HelpDialog=$i,t.HelpDialogInner=Ji,t.Hyperlink=ea,t.IFrameElement=ra,t.IFrameElementInner=na,t.Image=oa,t.ListAddress=ps,t.ListAddressConstants=zo,t.LogoElement=ia,t.ManageAddress=Us,t.ManagePaymentInstrument=Vs,t.ManagePaymentInstrumentConstants=Vo,t.Modal=Ui,t.ModalInner=zi,t.OfferPaymentInstrument=Ks,t.OfferPaymentInstrumentConstants=qo,t.OfferPaymentInstrumentInternal=qs,t.PageAlert=wi,t.PageErrorBlock=function(e){var t=e.children;return i.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},t.PaymentInstrumentDetails=ms,t.PaymentInstrumentDetailsConstants=Yo,t.PaymentInstrumentDetailsInternal=hs,t.PidlComponent=Ua,t.PidlDocBuilder=Bi,t.PidlPropertyBuilder=Li,t.PrefillCheckBox=Vi,t.PrefillCheckBoxInner=Hi,t.ProfilePrerequisite=gs,t.ProfilePrerequisiteConstants=Ko,t.PropertyLabel=sa,t.PropertyLabelInner=aa,t.Radio=ca,t.ReplaceResource=vs,t.ResourceHelpersConstants=Lo,t.RiskChallengeConstants=Qo,t.SearchResource=ys,t.SearchTransactions=js,t.SelectPaymentInstrument=Cs,t.SelectPaymentInstrumentConstants=Ho,t.SelectPaymentMethod=xs,t.SelectPaymentMethodConstants=No,t.SelectPaymentMethodInternal=Ss,t.SelectResource=_s,t.SelectResourceType=Es,t.SelectSingleResource=ks,t.ShowResource=ws,t.StyleProviderContext=xi,t.SubHeading=ha,t.SubHeadingInner=pa,t.TestHookRenderPidl=Is,t.Text=fa,t.TextBox=ya,t.TextGroup=Ki,t.TextInner=ma,t.UpdateResource=Ps,t.ValidateAddress=As,t.ValidateAddressConstants=Oo,t.ValidateResource=Rs,t.VerifyAddress=Gs,t.defaultEnvironment=Ao,t.getClassNamesFromStyleHints=function(e){var t=[];if(e)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.push(k.taggedClass+o)}return t},t.getPidlReactCustomProps=Ei,t.getTagClassNames=_i,t.pidl=So,t.pidlReactClassPrefix=Io,t.startsWith=Po})),y=((g=v)&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")&&g.default,v.AppScenario,v.ElementType,v.AddressScenario,v.ApplyPaymentInstrumentScenario,v.OfferPaymentInstrumentScenario,v.RiskPurchaseType,v.ValidateAddressPages,v.AllowedViews,v.ManagePaymentInstrumentMode,v.ManageAddressMode,v.VerifyAddressPages,v.AddAddress,v.AddAddressConstants,v.AddPaymentInstrument,v.AddPaymentInstrumentConstants,v.AddPaymentInstrumentInternal,v.AddResource),b=(v.ApplyPaymentInstrument,v.ApplyPaymentInstrumentConstants,v.ApplyPaymentInstrumentInternal,v.ApplyResource,v.Audio,v.AudioInner,v.BodyBlock,v.Button,v.ButtonInner,v.ButtonList,v.ButtonListElement,v.ButtonListElementInner,v.ButtonListInner,v.Captcha,v.CaptchaInner,v.CheckBox,v.CheckBoxInner,v.ConfirmPayment,v.ConfirmPaymentConstants,v.ConfirmPaymentInternal,v.CreatePaymentSession,v.DefaultIFrameElement,v.DeletePaymentInstrument,v.DeletePaymentInstrumentConstants,v.DeleteResource,v.Dropdown,v.EditAddress,v.EditAddressConstants,v.EditPaymentInstrument,v.EditPaymentInstrumentConstants,v.Error,v.FilePicker,v.FundStoredValue,v.Group,v.GroupError,v.GroupLabel,v.GroupLabelInner,v.HandleCheckout,v.HandleIndia3DSChallenge,v.HandleIndia3DSChallengeConstants,v.HandleIndia3DSChallengeInternal,v.HandlePaymentChallenge,v.HandlePurchaseRiskChallenge,v.HandleRiskChallenge,v.HandleRiskChallengeConstants,v.HandleRiskChallengeInternal,v.Heading,v.HeadingInner,v.HelpDialog,v.HelpDialogInner,v.Hyperlink,v.IFrameElement,v.IFrameElementInner,v.Image,v.ListAddress,v.ListAddressConstants,v.LogoElement,v.ManageAddress,v.ManagePaymentInstrument,v.ManagePaymentInstrumentConstants,v.Modal,v.ModalInner,v.OfferPaymentInstrument,v.OfferPaymentInstrumentConstants,v.OfferPaymentInstrumentInternal,v.PageAlert,v.PageErrorBlock,v.PaymentInstrumentDetails,v.PaymentInstrumentDetailsConstants,v.PaymentInstrumentDetailsInternal,v.PidlComponent,v.PidlDocBuilder,v.PidlPropertyBuilder,v.PrefillCheckBox,v.PrefillCheckBoxInner,v.ProfilePrerequisite,v.ProfilePrerequisiteConstants,v.PropertyLabel,v.PropertyLabelInner,v.Radio,v.ReplaceResource,v.ResourceHelpersConstants,v.RiskChallengeConstants,v.SearchResource,v.SearchTransactions,v.SelectPaymentInstrument,v.SelectPaymentInstrumentConstants,v.SelectPaymentMethod,v.SelectPaymentMethodConstants,v.SelectPaymentMethodInternal,v.SelectResource),C=v.SelectResourceType,S=(v.SelectSingleResource,v.ShowResource,v.StyleProviderContext,v.SubHeading,v.SubHeadingInner,v.TestHookRenderPidl,v.Text,v.TextBox,v.TextGroup,v.TextInner,v.UpdateResource),x=v.ValidateAddress,_=(v.ValidateAddressConstants,v.ValidateResource,v.VerifyAddress,v.defaultEnvironment,v.getClassNamesFromStyleHints,v.getPidlReactCustomProps,v.getTagClassNames,v.pidl);v.pidlReactClassPrefix,v.startsWith;function E(e){var t=e&&document.querySelector(e)||document,n=t.querySelector("#pidlddc-text-editAddressText")||t.querySelector("#pidlddc-button-editAddressText"),r=t.querySelector("#pidlddc-div-billingAddressShowGroup"),o=t.querySelector("#pidlddc-div-billingAddressEditGroup"),i=t.querySelector("#pidlddc-div-pagebodycontents");if(n&&o&&r)""===r.innerText.trim()?(n.style.display="none",r.style.display="none",o.style.display="block"):(o.style.display="none",n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.addEventListener("click",(function(){return k(n,r,o)})),n.addEventListener("keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||k(n,r,o)})));else if(i){var a=i.firstElementChild;a&&(a.style.display="none")}}function k(e,t,n){e.style.display="none",t.style.display="none",n.style.display="block"}function w(){return i.createElement("style",null," ",'\n            #pidlddc-div-pagebodycontents #pidlddc-text-billingAddressTitle {\n                font-weight: 600;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText {\n                color: rgb(0, 103, 184);\n                cursor: pointer;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:hover {\n              text-decoration: underline;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:focus {\n              outline: 1px solid black;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText::before {\n                content: "\uf321";\n                font-family: FabricMDL2Icons-11;\n                margin-right: 4px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-button-editAddressText {\n                height: 18px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressTextGroup {\n                display: flex;\n                justify-content: space-between;\n                margin-top: 10px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressShowGroup .ms-StackItem  {\n                margin-top: 7px;\n            }\n            \n            /* Spacing for text fields when we edit addresses in Add/Edit PI */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup > .ms-StackItem {\n                padding-top: 7px;\n            }\n    \n            /* pidlddc-div-billingAddressShowGroup is hidden with display: none,\n             * but they are still under a .ms-StackItem, so we need to remove the spacing \n             * that it has along with the extra padding billingAddressEditGroup has by going back -7px twice.\n             */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup {\n                margin-top: -14px;\n            }\n        ')}function I(e,t){return t&&e?d(d({},e),{callbacks:{failure:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.failure)&&e.callbacks.failure(n)},success:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.success)&&e.callbacks.success(n)},gohome:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.gohome)&&e.callbacks.gohome(n)}}}):e}var P={"af-za":{Next:"Volgende"},"am-et":{Next:"\u1240\u1323\u12ed"},"ar-sa":{Next:"\u0627\u0644\u062a\u0627\u0644\u064a"},"as-in":{Next:"\u09aa\u09f0\u09f1\u09f0\u09cd\u09a4\u09c0"},"az-latn-az":{Next:"N\xf6vb\u0259ti"},"be-by":{Next:"\u0414\u0430\u043b\u0435\u0439"},"bg-bg":{Next:"\u041d\u0430\u043f\u0440\u0435\u0434"},"bn-bd":{Next:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0"},"bn-in":{Next:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0"},"bs-latn-ba":{Next:"Sljede\u0107e"},"ca-es":{Next:"Seg\xfcent"},"ca-es-valencia":{Next:"Seg\xfcent"},"cs-cz":{Next:"Dal\u0161\xed"},"cy-gb":{Next:"Nesaf"},"da-dk":{Next:"N\xe6ste"},"de-de":{Next:"Weiter"},"el-gr":{Next:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf"},"en-gb":{Next:"Next"},"en-us":{Next:"Next"},"es-es":{Next:"Siguiente"},"es-mx":{Next:"Siguiente"},"et-ee":{Next:"Edasi"},"eu-es":{Next:"Hurrengoa"},"fa-ir":{Next:"\u0628\u0639\u062f\u06cc"},"fi-fi":{Next:"Seuraava"},"fil-ph":{Next:"Susunod"},"fr-ca":{Next:"Suivant"},"fr-fr":{Next:"Suivant"},"ga-ie":{Next:"Ar aghaidh"},"gd-gb":{Next:"Air adhart"},"gl-es":{Next:"Seguinte"},"gu-in":{Next:"\u0a86\u0a97\u0ab2\u0ac1\u0a82"},"ha-latn-ng":{Next:"Na gaba"},"he-il":{Next:"\u05d4\u05d1\u05d0"},"hi-in":{Next:"\u0905\u0917\u0932\u093e"},"hr-hr":{Next:"Dalje"},"hu-hu":{Next:"Tov\xe1bb"},"hy-am":{Next:"\u0540\u0561\u057b\u0578\u0580\u0564\u0568"},"id-id":{Next:"Berikutnya"},"ig-ng":{Next:"Osote"},"is-is":{Next:"\xc1fram"},"it-it":{Next:"Avanti"},"ja-jp":{Next:"\u6b21\u3078"},"ka-ge":{Next:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2"},"kk-kz":{Next:"\u041a\u0435\u043b\u0435\u0441\u0456"},"km-kh":{Next:"\u1794\u1793\u17d2\u1791\u17b6\u1794\u17cb"},"kn-in":{Next:"\u0cae\u0cc1\u0c82\u0ca6\u0cc6"},"ko-kr":{Next:"\ub2e4\uc74c"},"kok-in":{Next:"\u092b\u0941\u0921\u0932\u0947\u0902"},"ku-arab-iq":{Next:"\u062f\u0648\u0627\u062a\u0631"},"ky-kg":{Next:"\u041a\u0438\u0439\u0438\u043d\u043a\u0438"},"lb-lu":{Next:"Weider"},"lo-la":{Next:"\u0e95\u0ecd\u0ec8\u0ec4\u0e9b"},"lt-lt":{Next:"Pirmyn"},"lv-lv":{Next:"T\u0101l\u0101k"},"mi-nz":{Next:"Panuku"},"mk-mk":{Next:"\u0421\u043b\u0435\u0434\u043d\u043e"},"ml-in":{Next:"\u0d05\u0d1f\u0d41\u0d24\u0d4d\u0d24\u0d24\u0d4d"},"mn-mn":{Next:"\u0414\u0430\u0440\u0430\u0430\u0445"},"mr-in":{Next:"\u092a\u0941\u0922\u0940\u0932"},"ms-my":{Next:"Seterusnya"},"mt-mt":{Next:"Li Jmiss"},"nb-no":{Next:"Neste"},"ne-np":{Next:"\u0905\u0930\u094d\u0915\u094b"},"nl-nl":{Next:"Volgende"},"nn-no":{Next:"Neste"},"nso-za":{Next:"Latela"},"or-in":{Next:"\u0b2a\u0b30\u0b2c\u0b30\u0b4d\u0b24\u0b4d\u0b24\u0b3f"},"pa-arab-pk":{Next:"\u200f\u200f\u0627\u06af\u0644\u0627"},"pa-in":{Next:"\u0a05\u0a71\u0a17\u0a47"},"pl-pl":{Next:"Dalej"},"prs-af":{Next:"\u0628\u0639\u062f"},"pt-br":{Next:"Pr\xf3ximo"},"pt-pt":{Next:"Seguinte"},"quc-latn-gt":{Next:"Teren chi uloq"},"quz-pe":{Next:"Qatipay"},"ro-ro":{Next:"Urm\u0103torul"},"ru-ru":{Next:"\u0414\u0430\u043b\u0435\u0435"},"rw-rw":{Next:"Gukomeza"},"sd-arab-pk":{Next:"\u0627\u06b3\u064a\u0648\u0646"},"si-lk":{Next:"\u0d8a\u0dc5\u0d9f"},"sk-sk":{Next:"\u010ealej"},"sl-si":{Next:"Naprej"},"sq-al":{Next:"Tjet\xebr"},"sr-cyrl-ba":{Next:"\u0421\u0459\u0435\u0434\u0435\u045b\u0435"},"sr-cyrl-rs":{Next:"\u0414\u0430\u0459\u0435"},"sr-latn-rs":{Next:"Dalje"},"sv-se":{Next:"N\xe4sta"},"sw-ke":{Next:"Ifuatayo"},"ta-in":{Next:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1"},"te-in":{Next:"\u0c24\u0c26\u0c41\u0c2a\u0c30\u0c3f"},"tg-cyrl-tj":{Next:"\u041d\u0430\u0432\u0431\u0430\u0442\u04e3"},"th-th":{Next:"\u0e16\u0e31\u0e14\u0e44\u0e1b"},"ti-et":{Next:"\u12dd\u1245\u133d\u120d"},"tk-tm":{Next:"Indiki"},"tn-za":{Next:"Latelang"},"tr-tr":{Next:"\u0130leri"},"tt-ru":{Next:"\u041a\u0438\u043b\u04d9\u0441\u0435"},"ug-cn":{Next:"\u0643\u06d0\u064a\u0649\u0646\u0643\u0649"},"uk-ua":{Next:"\u0414\u0430\u043b\u0456"},"ur-pk":{Next:"\u0627\u06af\u0644\u0627"},"uz-latn-uz":{Next:"Keyingisiga o\u2018tish"},"vi-vn":{Next:"Ti\xea\u0301p theo"},"wo-sn":{Next:"Li ci Topp"},"xh-za":{Next:"Okulandelayo"},"yo-ng":{Next:"To\u0301ka\u0300n"},"zh-cn":{Next:"\u4e0b\u4e00\u9875"},"zh-tw":{Next:"\u4e0b\u4e00\u6b65"},"zu-za":{Next:"Okulandelayo"}},T={},D=void 0;try{D=window}catch(Iw){}function A(e,t){if("undefined"!==typeof D){var n=D.__packages__=D.__packages__||{};if(!n[e]||!T[e])T[e]=t,(n[e]=n[e]||[]).push(t)}}A("@fluentui/set-version","6.0.0"),A("@fluentui/react","8.110.7");var R,N=0,M=1,F=2,B="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),O={};try{O=window||{}}catch(X){}var L,H=function(){function e(e,t){var n,r,o,i,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=d({injectionMode:"undefined"===typeof document?N:M,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null===t||void 0===t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(o=this._config.classNameCache)&&void 0!==o?o:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(a=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null===t||void 0===t?void 0:t.rules)&&void 0!==s?s:this._rules}return e.getInstance=function(){if(!(R=O.__stylesheet__)||R._lastStyleElement&&R._lastStyleElement.ownerDocument!==document){var t=(null===O||void 0===O?void 0:O.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);R=n,O.__stylesheet__=n}return R},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=d(d({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==N?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case M:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(Iw){}break;case F:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),B||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=H.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"===typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=o.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"===typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function z(e){L!==e&&(L=e)}function U(){return void 0===L&&(L="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),L}function W(){return{rtl:U()}}L=U();var G,j={};function q(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=j[n]=j[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var K={"user-select":1};function Y(e,t){var n=function(){var e;if(!G){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,r=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();G=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return G}(),r=e[t];if(K[r]){var o=e[t+1];K[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var X,Q=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Z(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=Q.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var J="left",$="right",ee=((X={}).left=$,X.right=J,X),te={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function ne(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(J)>=0)t[n]=r.replace(J,$);else if(r.indexOf($)>=0)t[n]=r.replace($,J);else if(String(o).indexOf(J)>=0)t[n+1]=o.replace(J,$);else if(String(o).indexOf($)>=0)t[n+1]=o.replace($,J);else if(ee[r])t[n]=ee[r];else if(te[o])t[n+1]=te[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function re(e){var t=e&&e["&"];return t?t.displayName:void 0}var oe=/\:global\((.+?)\)/g;function ie(e,t){return e.indexOf(":global(")>=0?e.replace(oe,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function ae(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?se([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!oe.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return se([r],t,ie(n,e))})):se([r],t,ie(n,e))}function se(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=H.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"===typeof s){var l=r.argsFromClassName(s);l&&se(l,t,n)}else if(Array.isArray(s))se(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&ae(n,t,p,d[p])}else"object"===typeof u?null!==u&&ae(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?le(o,c,u):o[c]=u)}}return t}function le(e,t,n){var r="string"===typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function ce(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function ue(e,t){return t<=0?"":1===t?e:e+ue(e,t-1)}function de(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&"displayName"!==r&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)q(n,o),Z(n,o),ne(e,n,o),Y(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=se(t),o=ce(e,r);if(o){var i=H.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(re(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,de(e,r[u]))}a.rulesToInsert=s}return a}}function he(e,t){void 0===t&&(t=1);var n=H.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s];c=c.replace(/&/g,ue(".".concat(e.className),t));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function me(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fe(e,W())}function fe(e,t){var n=V(e instanceof Array?e:[e]),r=n.classes,o=n.objects;return o.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pe.apply(void 0,m([e],t,!1));return r?(he(r,e.specificityMultiplier),r.className):""}(t||{},o)),r.join(" ")}function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},o=0,i=e;o<i.length;o++){var a=i[o];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var l=a.subComponentStyles;for(var c in l)l.hasOwnProperty(c)&&(r.hasOwnProperty(c)?r[c].push(l[c]):r[c]=[l[c]]);continue}var u=n[s],d=a[s];n[s]=void 0===u?d:m(m([],Array.isArray(u)?u:[u],!0),Array.isArray(d)?d:[d],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var p=n.subComponentStyles,h=function(e){if(r.hasOwnProperty(e)){var t=r[e];p[e]=function(e){return ge.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var c in r)h(c)}return n}function ve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ye(e,W())}function ye(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=ge.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=V(r[i]),s=a.classes,l=a.objects;if(null===l||void 0===l?void 0:l.length)(d=pe(t||{},{displayName:i},l))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var c=0,u=o;c<u.length;c++){var d;(d=u[c])&&he(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}function be(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&r.push("function"===typeof a?a(e):a)}return 1===r.length?r[0]:r.length?ge.apply(void 0,r):{}}function Ce(e){var t=H.getInstance(),n=de(W(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}function Se(e){var t=H.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",de(W(),e[r]),"}");var o=n.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes ".concat(a,"{").concat(o,"}"),!0),t.cacheClassName(a,o,[],["keyframes",o]),a}function xe(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=me(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}function _e(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}A("@fluentui/merge-styles","8.5.12");var Ee=void 0;try{Ee=window}catch(Iw){}function ke(e){if(_e()&&"undefined"!==typeof Ee){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Ee}}var we=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(Iw){n._logError(Iw)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=ke(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(Iw){n._logError(Iw)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=ke(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(Iw){n._logError(Iw)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var d=function t(n){var d=Date.now(),p=d-c,h=s?a-p:a;return p>=a&&(!n||s)?(c=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(t,h)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var m=function(e){h&&(r.clearTimeout(h),h=null),p=e},f=function(t){m(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(l&&n-d>=s&&(o=!0),d=n);var a=n-d,m=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:m=Math.min(m,u-g)),a>=s||v||o?f(n):null!==h&&t||!c||(h=r.setTimeout(e,m)),i},v=function(){return!!h},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return y.cancel=function(){v()&&m(Date.now())},y.flush=function(){return v()&&f(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=ke(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(Iw){n._logError(Iw)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=ke(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Ie(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function Pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Te.apply(this,[null,e].concat(t))}function Te(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var De,Ae=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var i;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,o||!1,!0),Pe(a,r),i=t.dispatchEvent(a)}else if("undefined"!==typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],p=0;!1!==i&&p<d.length;p++){var h=d[p];h.objectCallback&&(i=h.objectCallback.call(h.parent,r))}t=o?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!==typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof r||r===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();function Re(e){if(_e()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var Ne=0,Me=me({overflow:"hidden !important"}),Fe="data-is-scrollable",Be=function(e,t){if(e){var n=0,r=null;t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=Ve(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),r=e}},Oe=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},Le=function(e){e.preventDefault()};function He(){if(void 0===De){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),De=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return De}function Ve(e){for(var t=e,n=Re(e);t&&t!==n.body;){if("true"===t.getAttribute(Fe))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(Fe)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=ke(e)),t}function ze(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}var Ue=100,We=function(){function e(e){this._events=new Ae(this),this._scrollableParent=Ve(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=ze(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var r,o,i,a=this._scrollRect.top,s=this._scrollRect.left,l=a+this._scrollRect.height-Ue,c=s+this._scrollRect.width-Ue;n<a+Ue||n>l?(o=n,r=a,i=l,this._isVerticalScroll=!0):(o=t,r=s,i=c,this._isVerticalScroll=!1),this._scrollVelocity=o<r+Ue?Math.max(-15,(Ue-(o-r))/Ue*-15):o>i?Math.min(15,(o-i)/Ue*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}(),Ge=void 0;function je(e){Ge?Ge(e):console&&console.warn&&console.warn(e)}function qe(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||je("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function Ke(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&je("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}function Ye(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),i=n[r];i&&(o+=" Use '".concat(i,"' instead.")),je(o)}}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)Xe(e,t,n[r])}(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}u(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new we(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new Ae(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){Ye(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){Ke(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){qe(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(o.Component);function Xe(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function Qe(){return null}var Ze=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:void 0===ke()},n}return u(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),Je=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()},$e=(function(){function e(){}e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=Je();n();var o=Je(),i=e.summary[t]||{totalDuration:0,count:0,all:[]},a=o-r;i.totalDuration+=a,i.count++,i.all.push({duration:a,timeStamp:o}),e.summary[t]=i},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout((function(){return e.reset()}),18e4)},e.summary={}}(),0),et=function(){function e(){}return e.getValue=function(e,t){var n=tt();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=tt(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=nt();t||(t=e.__id__=String($e++)),n[t]=e},e.removeChangeListener=function(e){delete nt()[e.__id__]},e}();function tt(){var e,t=ke()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function nt(){return tt().__callbacks__}var rt=8,ot=9,it=13,at=16,st=17,lt=18,ct=27,ut=32,dt=33,pt=34,ht=35,mt=36,ft=37,gt=38,vt=39,yt=40,bt=46,Ct=48,St=58,xt=65,_t=67,Et=77,kt=80,wt=91,It=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function Pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}function Dt(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function At(e,t){var n=Dt(e,t);if(!(n<0))return e[n]}function Rt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}"undefined"!==typeof WeakMap&&new WeakMap;function Nt(e){var t=null;try{var n=ke();t=n?n.sessionStorage.getItem(e):null}catch(Iw){}return t}function Mt(e,t){var n;try{null===(n=ke())||void 0===n||n.sessionStorage.setItem(e,t)}catch(Iw){}}var Ft,Bt="isRTL";function Ot(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Ft){var t=Nt(Bt);null!==t&&function(e,t){void 0===t&&(t=!1);var n=Re();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&Mt(Bt,e?"1":"0");z(Ft=e)}(Ft="1"===t);var n=Re();void 0===Ft&&n&&z(Ft="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ft}function Lt(e,t){return void 0===t&&(t={}),Ot(t)&&(e===ft?e=vt:e===vt&&(e=ft)),e}function Ht(e){return e&&!!e._virtual}function Vt(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t;return e&&Ht(e)&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function zt(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=Vt(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function Ut(e,t){return e&&e!==document.body?t(e)?e:Ut(Vt(e),t):null}var Wt="data-portal-element";function Gt(e,t){var n=Ut(e,(function(e){return t===e||e.hasAttribute(Wt)}));return null!==n&&n.hasAttribute(Wt)}A("@fluentui/dom-utilities","2.2.11");function jt(e,t,n){return Xt(e,t,!0,!1,!1,n)}function qt(e,t,n){return Yt(e,t,!0,!1,!0,n)}function Kt(e,t){var n=Xt(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(rn(n),!0)}function Yt(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=Qt(t);if(o&&l&&(i||!$t(t)&&!en(t))){var c=Yt(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&Jt(c,!0)||!s)return c;var u=Yt(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var p=Yt(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&Jt(t,s))return t;var h=Yt(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:Yt(e,t.parentElement,!0,!1,!1,i,a,s))}function Xt(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?Zt:Qt)(t);if(n&&c&&Jt(t,s))return t;if(!o&&c&&(i||!$t(t)&&!en(t))){var u=Xt(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}if(t===e)return null;var d=Xt(e,t.nextElementSibling,!0,!0,!1,i,a,s,l);return d||(r?null:Xt(e,t.parentElement,!1,!1,!0,i,a,s,l))}function Qt(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!==t&&void 0!==t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Zt(e){return!!e&&Qt(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Jt(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function $t(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function en(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function tn(e,t){return"true"!==function(e,t){var n=Ut(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var nn=void 0;function rn(e){if(e){if(nn)return void(nn=e);nn=e;var t=ke(e);t&&t.requestAnimationFrame((function(){nn&&nn.focus(),nn=void 0}))}}function on(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}var an=0,sn=H.getInstance();sn&&sn.onReset&&sn.onReset((function(){return an++}));var ln="__retval__";function cn(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=an;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var l=t,c=a.theme,u=c&&void 0!==c.rtl?c.rtl:Ot(),d=e.disableCaching;if(o!==an&&(o=an,t=new Map,n=0),e.disableCaching||(l=dn(t,i),l=dn(l,a)),!d&&l[ln]||(l[ln]=void 0===i?{}:ye(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=ke();(null===(s=null===p||void 0===p?void 0:p.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return l[ln]}}function un(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function dn(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=un(e,r[n])}else e=un(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=un(e,t[o]));return e}var pn=!1,hn=0,mn={empty:!0},fn={},gn="undefined"===typeof WeakMap?null:WeakMap;function vn(){hn++}function yn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!gn)return e;if(!pn){var r=H.getInstance();r&&r.onReset&&H.getInstance().onReset(vn),pn=!0}var o,i=0,a=hn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==hn||t>0&&i>t)&&(o=Sn(),i=0,a=hn),l=o;for(var c=0;c<r.length;c++){var u=Cn(r[c]);l.map.has(u)||l.map.set(u,Sn()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function bn(e){if(!gn)return e;var t=new gn;return function(n){if(!n||"function"!==typeof n&&"object"!==typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function Cn(e){return e?"object"===typeof e||"function"===typeof e?e:(fn[e]||(fn[e]={val:e}),fn[e]):mn}function Sn(){return{map:gn?new gn:null}}var xn=bn((function(e){var t=e;return bn((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var r=n,i=bn((function(e){return function(t){return o.createElement(r,d({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,d({},e,{defaultRender:n?i(n):r}))}}))}));function _n(e,t){return xn(e)(t)}function En(e,t){return void 0!==e[t]&&null!==e[t]}function kn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"===typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"===typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}var wn={settings:{},scopedSettings:{},inCustomizerContext:!1},In=et.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),Pn=[],Tn=function(){function e(){}return e.reset=function(){In.settings={},In.scopedSettings={}},e.applySettings=function(t){In.settings=d(d({},In.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){In.scopedSettings[t]=d(d({},In.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=wn);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&In.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||In.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(X){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){Pn.push(e)},e.unobserve=function(e){Pn=Pn.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||Pn.forEach((function(e){return e()}))},e}(),Dn=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function An(e,t){void 0===e&&(e={});var n=Nn(t)?t:function(e){return function(t){return e?d(d({},t),e):t}}(t);return n(e)}function Rn(e,t){return void 0===e&&(e={}),(Nn(t)?t:function(e){void 0===e&&(e={});return function(t){var n=d({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=d(d({},t[r]),e[r]));return n}}(t))(e)}function Nn(e){return"function"===typeof e}var Mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return u(t,e),t.prototype.componentDidMount=function(){Tn.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){Tn.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return o.createElement(Dn.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:An(r.settings,e.settings),scopedSettings:Rn(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),o.createElement(Dn.Provider,{value:r},e.props.children)}))},t}(o.Component);function Fn(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Bn(e,t,n){return function(r){var i,a=(i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return u(a,i),a.prototype.componentDidMount=function(){Tn.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){Tn.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return o.createElement(Dn.Consumer,null,(function(a){var s=Tn.getSettings(t,e,a.customizations),l=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles(d(d({},s),l))),n&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var c=ge(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=c}return o.createElement(r,d({},s,l,{styles:i._styleCache.merged}))}return o.createElement(r,d({},s,l))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(o.Component),i.displayName="Customized"+e,i);return Fn(r,a)}}function On(e,t){var n=function(){var e=o.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=o.useContext(Dn).customizations,i=r.inCustomizerContext;return o.useEffect((function(){return i||Tn.observe(n),function(){i||Tn.unobserve(n)}}),[i]),Tn.getSettings(e,t,r)}function Ln(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Pt(e,e[n],t[n]))}var Hn=ke()||{};void 0===Hn.__currentId__&&(Hn.__currentId__=0);var Vn=!1;function zn(e){if(!Vn){var t=H.getInstance();t&&t.onReset&&t.onReset(Un),Vn=!0}return(void 0===e?"id__":e)+Hn.__currentId__++}function Un(e){void 0===e&&(e=0),Hn.__currentId__=e}var Wn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},Gn=Wn(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),jn=Wn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),qn=Wn(jn,Gn),Kn=Wn(qn,["form"]),Yn=Wn(qn,["height","loop","muted","preload","src","width"]),Xn=Wn(Yn,["poster"]),Qn=Wn(qn,["start"]),Zn=Wn(qn,["value"]),Jn=Wn(qn,["download","href","hrefLang","media","rel","target","type"]),$n=Wn(qn,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),er=Wn($n,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),tr=Wn($n,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),nr=Wn($n,["form","multiple","required"]),rr=Wn(qn,["selected","value"]),or=Wn(qn,["cellPadding","cellSpacing"]),ir=qn,ar=Wn(qn,["rowSpan","scope"]),sr=Wn(qn,["colSpan","headers","rowSpan","scope"]),lr=Wn(qn,["span"]),cr=Wn(qn,["span"]),ur=Wn(qn,["acceptCharset","action","encType","encType","method","noValidate","target"]),dr=Wn(qn,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),pr=Wn(qn,["alt","crossOrigin","height","src","srcSet","useMap","width"]),hr=qn;function mr(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}var fr={label:Kn,audio:Yn,video:Xn,ol:Qn,li:Zn,a:Jn,button:$n,input:er,textarea:tr,select:nr,option:rr,table:or,tr:ir,th:ar,td:sr,colGroup:lr,col:cr,form:ur,iframe:dr,img:pr};function gr(e,t,n){return mr(t,e&&fr[e]||qn,n)}var vr,yr=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function br(e){Ln(e,{componentDidMount:Cr,componentDidUpdate:Sr,componentWillUnmount:xr})}function Cr(){_r(this.props.componentRef,this)}function Sr(e){e.componentRef!==this.props.componentRef&&(_r(e.componentRef,null),_r(this.props.componentRef,this))}function xr(){_r(this.props.componentRef,null)}function _r(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var Er=((vr={})[gt]=1,vr[yt]=1,vr[ft]=1,vr[vt]=1,vr[mt]=1,vr[ht]=1,vr[ot]=1,vr[dt]=1,vr[pt]=1,vr);function kr(e){return!!Er[e]}var wr="ms-Fabric--isFocusVisible",Ir="ms-Fabric--isFocusHidden";function Pr(e,t){e&&(e.classList.add(t?wr:Ir),e.classList.remove(t?Ir:wr))}function Tr(e,t,n){var r;n?n.forEach((function(t){return Pr(t.current,e)})):Pr(null===(r=ke(t))||void 0===r?void 0:r.document.body,e)}var Dr=new WeakMap,Ar=new WeakMap;function Rr(e,t){var n,r=Dr.get(e);return n=r?r+t:1,Dr.set(e,n),n}function Nr(e){var t=Ar.get(e);if(t)return t;return t={onMouseDown:function(t){return Or(t,e.registeredProviders)},onPointerDown:function(t){return Lr(t,e.registeredProviders)},onKeyDown:function(t){return Hr(t,e.registeredProviders)},onKeyUp:function(t){return Vr(t,e.registeredProviders)}},Ar.set(e,t),t}var Mr=o.createContext(void 0);function Fr(e){var t=o.useContext(Mr);o.useEffect((function(){var n,r,o,i,a=ke(null===e||void 0===e?void 0:e.current);if(a&&!0!==(null===(n=a.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var s,l,c,u,d=a;if((null===(r=null===t||void 0===t?void 0:t.providerRef)||void 0===r?void 0:r.current)&&(null===(i=null===(o=null===t||void 0===t?void 0:t.providerRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.addEventListener)){d=t.providerRef.current;var p=Nr(t);s=p.onMouseDown,l=p.onPointerDown,c=p.onKeyDown,u=p.onKeyUp}else s=Or,l=Lr,c=Hr,u=Vr;var h=Rr(d,1);return h<=1&&(d.addEventListener("mousedown",s,!0),d.addEventListener("pointerdown",l,!0),d.addEventListener("keydown",c,!0),d.addEventListener("keyup",u,!0)),function(){var e;a&&!0!==(null===(e=a.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(h=Rr(d,-1))&&(d.removeEventListener("mousedown",s,!0),d.removeEventListener("pointerdown",l,!0),d.removeEventListener("keydown",c,!0),d.removeEventListener("keyup",u,!0))}}}),[t,e])}var Br=function(e){return Fr(e.rootRef),null};function Or(e,t){Tr(!1,e.target,t)}function Lr(e,t){"mouse"!==e.pointerType&&Tr(!1,e.target,t)}function Hr(e,t){kr(e.which)&&Tr(!0,e.target,t)}function Vr(e,t){kr(e.which)&&Tr(!0,e.target,t)}var zr,Ur=function(e){var t=e.providerRef,n=e.layerRoot,r=o.useState([])[0],i=o.useContext(Mr),a=void 0!==i&&!n,s=o.useMemo((function(){return a?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null===i||void 0===i||i.registerProvider(e)},unregisterProvider:function(e){null===i||void 0===i||i.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,i,a]);return o.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?o.createElement(Mr.Provider,{value:s},e.children):o.createElement(o.Fragment,null,e.children)},Wr=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,Gr=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,jr=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,qr=/\s+/g,Kr=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Yr(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(Wr,"")).replace(Gr,"")).replace(qr," ")).trim()}(e),Kr.test(e)||!n&&jr.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}var Xr="language";function Qr(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}function Zr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];Jr(e||{},i)}return e}function Jr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!==typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:Jr(e[r]||{},o,n)}}return n.pop(),e}var $r,eo=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},to=["TEMPLATE","STYLE","SCRIPT"];function no(e){var t=Re(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null===a||void 0===a?void 0:a.toLowerCase())&&-1===to.indexOf(i.tagName)&&n.push([i,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}function ro(e){var t;if("undefined"===typeof $r||e){var n=ke(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;$r=!!r&&-1!==r.indexOf("Macintosh")}return!!$r}var oo=bn((function(e){return bn((function(t){var n=bn((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function io(e,t){return oo(e)(t)}var ao,so,lo="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(ao||(ao={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(so||(so={}));var co=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.onItemsChanged,i=n.getKey,a=n.canSelectItem,s=void 0===a?function(){return!0}:a,l=n.items,c=n.selectionMode,u=void 0===c?ao.multiple:c;this.mode=u,this._getKey=i||uo,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._onItemsChanged=o,this._canSelectItem=s,this._keyToIndexMap={},this._isModal=!1,this.setItems(l||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"===typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"===typeof n||n?"".concat(n):""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=!1,a=0;a<e.length;a++){if(u=e[a])(g=this.getKey(u,a))&&(i||g in this._keyToIndexMap&&this._keyToIndexMap[g]===a||(i=!0),n[g]=a);r[a]=u&&!this.canSelectItem(u),r[a]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var u,d=Number(c),p=(u=this._items[d])?this.getKey(u,Number(d)):void 0,h=p?n[p]:d;void 0===h?o=!0:(s[h]=!0,l++,o=o||h!==d)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),!i)for(var m=0,f=Object.keys(this._keyToIndexMap);m<f.length;m++){var g;if(!((g=f[m])in n)){i=!0;break}}this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&this._updateCount(),i&&(Ae.raise(this,"items-change"),this._onItemsChanged&&this._onItemsChanged()),o&&this._change(),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.getItemIndex=function(e){var t=this._keyToIndexMap[e];return null!==t&&void 0!==t?t:-1},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===ao.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===ao.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==ao.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var r=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===ao.single&&this._setAllSelected(!1,!0),r&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!r&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,n,r){if(this.mode!==ao.none&&(e=Math.min(Math.max(0,e),this._items.length-1),t=Math.min(Math.max(0,t),this._items.length-e),!(e<0||e>=this._items.length||0===t))){this.setChangeEvents(!1);for(var o=e,i=e+t-1,a=(this._anchoredIndex||0)>=i?o:i;o<=i;o++)this.setIndexSelected(o,n,!!r&&o===a);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,n){if(this.mode!==ao.none)if(this.mode!==ao.single){var r=this._anchoredIndex||0,o=Math.min(e,r),i=Math.max(e+t-1,r);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);o<=i;o++)this.setIndexSelected(o,!0,!1);this.setChangeEvents(!0)}else 1===t&&this.setIndexSelected(e,!0,!0)},e.prototype.selectToIndex=function(e,t){if(this.mode!==ao.none)if(this.mode!==ao.single){var n=this._anchoredIndex||0,r=Math.min(e,n),o=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=o;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==ao.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===ao.single&&t>1)){this.setChangeEvents(!1);for(var o=e;o<r;o++)this.setIndexSelected(o,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===ao.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,Ae.raise(this,lo),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function uo(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var po=/[\{\}]/g,ho=/\{\d+\}/g;function mo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t;function o(e){var t=r[e.replace(po,"")];return null!==t&&void 0!==t||(t=""),t}return e.replace(ho,o)}var fo,go=["theme","styles"];function vo(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,l=void 0===s?go:s,c=o.forwardRef((function(r,i){var s=o.useRef(),c=On(l,a),u=c.styles,h=(c.dir,p(c,["styles","dir"])),m=n?n(r):void 0,f=s.current&&s.current.__cachedInputs__||[],g=r.styles;if(!s.current||u!==f[1]||g!==f[2]){var v=function(e){return be(e,t,u,g)};v.__cachedInputs__=[t,u,g],v.__noStyleOverride__=!u&&!g,s.current=v}return o.createElement(e,d({ref:i},h,m,r,{styles:s.current}))}));c.displayName="Styled".concat(e.displayName||e.name);var u=i?o.memo(c):c;return c.displayName&&(u.displayName=c.displayName),u}function yo(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?En(i,l):void 0,u=En(o,l);if(u){var d=!!o[a],p=!(!s||!o[s]);d||p||fo.valueOnChange[t]||(fo.valueOnChange[t]=!0,je("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(s?" or '".concat(String(s),"'"):"",".")));var h=o[r];void 0===h||null===h||fo.valueDefaultValue[t]||(fo.valueDefaultValue[t]=!0,je("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(i&&u!==c){var m=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?fo.controlledToUncontrolled:fo.uncontrolledToControlled;g[t]||(g[t]=!0,je("Warning: A component is changing ".concat(m," ").concat(n," to be ").concat(f,". ")+"".concat(n,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}fo={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var bo=function(){var e,t=ke();return!!(null===(e=null===t||void 0===t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1};function Co(e,t){for(var n=d({},t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];void 0===n[i]&&(n[i]=e[i])}return n}var So=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"===typeof o?o(t):o&&(o.current=t)}}},xo=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&Rt(t.refs,e)||(t.resolver=So(t)),t.refs=e,t.resolver}},_o=_e()?o.useLayoutEffect:o.useEffect;A("@fluentui/utilities","8.13.18");var Eo=et.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),ko=H.getInstance();ko&&ko.onReset&&ko.onReset((function(){for(var e in Eo)Eo.hasOwnProperty(e)&&Eo[e].subset&&(Eo[e].subset.className=void 0)}));var wo=function(e){return e.toLowerCase()};function Io(e){var t=void 0,n=Eo.__options;if(e=e?wo(e):"",e=Eo.__remapped[e]||e)if(t=Eo[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(Ce(r.fontFace),r.isRegistered=!0),r.className||(r.className=me(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&je('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}var Po,To,Do;function Ao(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(Ro(e,t,d({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function Ro(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},s=a.white,l=a.black,c=a.themePrimary,u=a.themeDark,p=a.themeDarker,h=a.themeDarkAlt,m=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,v=a.neutralDark,y=a.neutralQuaternary,b=a.neutralQuaternaryAlt,C=a.neutralPrimary,S=a.neutralSecondary,x=a.neutralSecondaryAlt,_=a.neutralTertiary,E=a.neutralTertiaryAlt,k=a.neutralLighterAlt,w=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),u&&(i.primaryButtonBackgroundPressed=u,i.inputBackgroundCheckedHovered=u,i.inputIconHovered=u),p&&(i.linkHovered=p),h&&(i.primaryButtonBackgroundHovered=h),m&&(i.inputPlaceholderBackgroundChecked=m),f&&(i.bodyBackgroundChecked=f,i.bodyFrameDivider=f,i.bodyDivider=f,i.variantBorder=f,i.buttonBackgroundCheckedHovered=f,i.buttonBackgroundPressed=f,i.listItemBackgroundChecked=f,i.listHeaderBackgroundPressed=f,i.menuItemBackgroundPressed=f,i.menuItemBackgroundChecked=f),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),y&&(i.primaryButtonTextDisabled=y,i.disabledSubtext=y),b&&(i.listItemBackgroundCheckedHovered=b),_&&(i.disabledBodyText=_,i.variantBorderHovered=(null===n||void 0===n?void 0:n.variantBorderHovered)||_,i.buttonTextDisabled=_,i.inputIconDisabled=_,i.disabledText=_),C&&(i.bodyText=C,i.actionLink=C,i.buttonText=C,i.inputBorderHovered=C,i.inputText=C,i.listText=C,i.menuItemText=C),k&&(i.bodyStandoutBackground=k,i.defaultStateBackground=k),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),S&&(i.bodySubtext=S,i.focusBorder=S,i.inputBorder=S,i.smallInputBorder=S,i.inputPlaceholderText=S),x&&(i.buttonBorder=x),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),w&&(i.accentButtonBackground=w),(null===t||void 0===t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null===t||void 0===t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=d(d({},i),n)}function No(e,t){var n,r,o;void 0===t&&(t={});var i=Zr({},e,t,{semanticColors:Ro(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=Zr(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(Po||(Po={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(To||(To={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(Do||(Do={}));var Mo,Fo={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Mo||(Mo={}));var Bo,Oo,Lo,Ho={elevation4:Mo.depth4,elevation8:Mo.depth8,elevation16:Mo.depth16,elevation64:Mo.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},Vo={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},zo=Se({from:{opacity:0},to:{opacity:1}}),Uo=Se({from:{opacity:1},to:{opacity:0}}),Wo=Se({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),Go=Se({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),jo=Se({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),qo=Se({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),Ko=Se({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Yo=Se({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Xo=Se({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),Qo=Se({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),Zo=Se({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Jo=Se({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function $o(e,t,n){return"".concat(e," ").concat(t," ").concat(n)}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(Bo||(Bo={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(Oo||(Oo={})),function(e){e.fadeIn=$o(zo,Bo.duration1,Oo.linear),e.fadeOut=$o(Uo,Bo.duration1,Oo.linear),e.scaleDownIn=$o(Wo,Bo.duration3,Oo.decelerate),e.scaleDownOut=$o(Go,Bo.duration3,Oo.decelerate),e.slideLeftOut=$o(jo,Bo.duration1,Oo.accelerate),e.slideRightOut=$o(qo,Bo.duration1,Oo.accelerate),e.slideLeftIn=$o(Ko,Bo.duration1,Oo.decelerate),e.slideRightIn=$o(Yo,Bo.duration1,Oo.decelerate),e.slideUpOut=$o(Xo,Bo.duration1,Oo.accelerate),e.slideDownOut=$o(Qo,Bo.duration1,Oo.accelerate),e.slideUpIn=$o(Zo,Bo.duration1,Oo.decelerate),e.slideDownIn=$o(Jo,Bo.duration1,Oo.decelerate)}(Lo||(Lo={}));var ei,ti,ni,ri,oi,ii="cubic-bezier(.1,.9,.2,1)",ai="cubic-bezier(.1,.25,.75,.9)",si="0.167s",li="0.267s",ci="0.367s",ui="0.467s",di=Se({from:{opacity:0},to:{opacity:1}}),pi=Se({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),hi=Zi(-10),mi=Zi(-20),fi=Zi(-40),gi=Zi(-400),vi=Zi(10),yi=Zi(20),bi=Zi(40),Ci=Zi(400),Si=Ji(10),xi=Ji(20),_i=Ji(-10),Ei=Ji(-20),ki=$i(10),wi=$i(20),Ii=$i(40),Pi=$i(400),Ti=$i(-10),Di=$i(-20),Ai=$i(-40),Ri=$i(-400),Ni=ea(-10),Mi=ea(-20),Fi=ea(10),Bi=ea(20),Oi=Se({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Li=Se({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),Hi=Se({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Vi=Se({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),zi=Se({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Ui=Se({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Wi=ii,Gi=ai,ji=si,qi=li,Ki=ci,Yi=ui,Xi={slideRightIn10:Qi("".concat(di,",").concat(hi),ci,ii),slideRightIn20:Qi("".concat(di,",").concat(mi),ci,ii),slideRightIn40:Qi("".concat(di,",").concat(fi),ci,ii),slideRightIn400:Qi("".concat(di,",").concat(gi),ci,ii),slideLeftIn10:Qi("".concat(di,",").concat(vi),ci,ii),slideLeftIn20:Qi("".concat(di,",").concat(yi),ci,ii),slideLeftIn40:Qi("".concat(di,",").concat(bi),ci,ii),slideLeftIn400:Qi("".concat(di,",").concat(Ci),ci,ii),slideUpIn10:Qi("".concat(di,",").concat(Si),ci,ii),slideUpIn20:Qi("".concat(di,",").concat(xi),ci,ii),slideDownIn10:Qi("".concat(di,",").concat(_i),ci,ii),slideDownIn20:Qi("".concat(di,",").concat(Ei),ci,ii),slideRightOut10:Qi("".concat(pi,",").concat(ki),ci,ii),slideRightOut20:Qi("".concat(pi,",").concat(wi),ci,ii),slideRightOut40:Qi("".concat(pi,",").concat(Ii),ci,ii),slideRightOut400:Qi("".concat(pi,",").concat(Pi),ci,ii),slideLeftOut10:Qi("".concat(pi,",").concat(Ti),ci,ii),slideLeftOut20:Qi("".concat(pi,",").concat(Di),ci,ii),slideLeftOut40:Qi("".concat(pi,",").concat(Ai),ci,ii),slideLeftOut400:Qi("".concat(pi,",").concat(Ri),ci,ii),slideUpOut10:Qi("".concat(pi,",").concat(Ni),ci,ii),slideUpOut20:Qi("".concat(pi,",").concat(Mi),ci,ii),slideDownOut10:Qi("".concat(pi,",").concat(Fi),ci,ii),slideDownOut20:Qi("".concat(pi,",").concat(Bi),ci,ii),scaleUpIn100:Qi("".concat(di,",").concat(Oi),ci,ii),scaleDownIn100:Qi("".concat(di,",").concat(Hi),ci,ii),scaleUpOut103:Qi("".concat(pi,",").concat(Vi),si,ai),scaleDownOut98:Qi("".concat(pi,",").concat(Li),si,ai),fadeIn100:Qi(di,si,ai),fadeIn200:Qi(di,li,ai),fadeIn400:Qi(di,ci,ai),fadeIn500:Qi(di,ui,ai),fadeOut100:Qi(pi,si,ai),fadeOut200:Qi(pi,li,ai),fadeOut400:Qi(pi,ci,ai),fadeOut500:Qi(pi,ui,ai),rotate90deg:Qi(zi,"0.1s",ai),rotateN90deg:Qi(Ui,"0.1s",ai)};function Qi(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Zi(e){return Se({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Ji(e){return Se({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function $i(e){return Se({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function ea(e){return Se({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(ei||(ei={})),function(e){e.Arabic="'".concat(ei.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(ei.Cyrillic,"'"),e.EastEuropean="'".concat(ei.EastEuropean,"'"),e.Greek="'".concat(ei.Greek,"'"),e.Hebrew="'".concat(ei.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(ei.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(ei.Vietnamese,"'"),e.WestEuropean="'".concat(ei.WestEuropean,"'"),e.Armenian="'".concat(ei.Armenian,"'"),e.Georgian="'".concat(ei.Georgian,"'")}(ti||(ti={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(ni||(ni={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(ri||(ri={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(oi||(oi={}));var ta="'Segoe UI', '".concat(ei.WestEuropean,"'"),na={ar:ti.Arabic,bg:ti.Cyrillic,cs:ti.EastEuropean,el:ti.Greek,et:ti.EastEuropean,he:ti.Hebrew,hi:ti.Hindi,hr:ti.EastEuropean,hu:ti.EastEuropean,ja:ti.Japanese,kk:ti.EastEuropean,ko:ti.Korean,lt:ti.EastEuropean,lv:ti.EastEuropean,pl:ti.EastEuropean,ru:ti.Cyrillic,sk:ti.EastEuropean,"sr-latn":ti.EastEuropean,th:ti.Thai,tr:ti.EastEuropean,uk:ti.Cyrillic,vi:ti.Vietnamese,"zh-hans":ti.ChineseSimplified,"zh-hant":ti.ChineseTraditional,hy:ti.Armenian,ka:ti.Georgian};function ra(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var oa=function(e){var t=function(e){for(var t in na)if(na.hasOwnProperty(t)&&e&&0===t.indexOf(e))return na[t];return ta}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:ra(ni.mini,ri.regular,n),xSmall:ra(ni.xSmall,ri.regular,n),small:ra(ni.small,ri.regular,n),smallPlus:ra(ni.smallPlus,ri.regular,n),medium:ra(ni.medium,ri.regular,n),mediumPlus:ra(ni.mediumPlus,ri.regular,n),large:ra(ni.large,ri.regular,n),xLarge:ra(ni.xLarge,ri.semibold,n),xLargePlus:ra(ni.xLargePlus,ri.semibold,n),xxLarge:ra(ni.xxLarge,ri.semibold,n),xxLargePlus:ra(ni.xxLargePlus,ri.semibold,n),superLarge:ra(ni.superLarge,ri.semibold,n),mega:ra(ni.mega,ri.semibold,n)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===zr){var t=Re(),n="localStorage"===e?function(e){var t=null;try{var n=ke();t=n?n.localStorage.getItem(e):null}catch(Iw){}return t}(Xr):"sessionStorage"===e?Nt(Xr):void 0;n&&(zr=n),void 0===zr&&t&&(zr=t.documentElement.getAttribute("lang")),void 0===zr&&(zr="en")}return zr}());function ia(e,t,n,r){Ce({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function aa(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);ia(t,i+"-light",ri.light,o&&o+" Light"),ia(t,i+"-semilight",ri.semilight,o&&o+" SemiLight"),ia(t,i+"-regular",ri.regular,o),ia(t,i+"-semibold",ri.semibold,o&&o+" SemiBold"),ia(t,i+"-bold",ri.bold,o&&o+" Bold")}function sa(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return No({palette:Fo,effects:Ho,fonts:oa,spacing:Vo,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ao(Fo,Ho,void 0,n,t),rtl:void 0},e)}!function(e){if(e){var t="".concat(e,"/fonts");aa(t,ei.Thai,"leelawadeeui-thai","leelawadeeui"),aa(t,ei.Arabic,"segoeui-arabic"),aa(t,ei.Cyrillic,"segoeui-cyrillic"),aa(t,ei.EastEuropean,"segoeui-easteuropean"),aa(t,ei.Greek,"segoeui-greek"),aa(t,ei.Hebrew,"segoeui-hebrew"),aa(t,ei.Vietnamese,"segoeui-vietnamese"),aa(t,ei.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),aa(t,ti.Selawik,"selawik","selawik"),aa(t,ei.Armenian,"segoeui-armenian"),aa(t,ei.Georgian,"segoeui-georgian"),ia("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),ri.light),ia("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),ri.semibold)}}(function(){var e,t,n=null===(e=ke())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());sa({});A("@fluentui/theme","2.6.34");var la,ca="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",ua="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",da=480,pa=1366,ha=479;function ma(e,t){var n="number"===typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"===typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}function fa(e,t,n,r,o,i,a,s){return ga(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function ga(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,p=t.borderColor,h=void 0===p?e.palette.white:p,m=t.outlineColor,f=void 0===m?e.palette.neutralSecondary:m,g=t.isFocusedOnly,v=void 0===g||g,y=t.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(wr," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(h),outline:"".concat(l,"px solid ").concat(f),zIndex:la.FocusStyle,borderRadius:o,selectors:(r={},r[ca]=d,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(la||(la={}));var va=function(e,t,n,r){var o,i,a;void 0===n&&(n="border"),void 0===r&&(r=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:r,top:r,bottom:r,right:s?0:r},o[n]="2px solid ".concat(e),o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(i={},i[ca]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},ya={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"};function ba(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function Ca(e){return{opacity:1,borderWidth:e}}function Sa(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function xa(e,t){return d(d({},ba(e,t)),{opacity:0})}var _a={continuousPulseAnimationDouble:function(e,t,n,r,o){return Se({"0%":ba(e,n),"1.42%":Ca(o),"3.57%":{opacity:1},"7.14%":Sa(t,r),"8%":xa(e,n),"29.99%":xa(e,n),"30%":ba(e,n),"31.42%":Ca(o),"33.57%":{opacity:1},"37.14%":Sa(t,r),"38%":xa(e,n),"79.42%":xa(e,n),79.43:ba(e,n),81.85:Ca(o),83.42:{opacity:1},"87%":Sa(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return Se({"0%":ba(e,n),"14.2%":Ca(o),"35.7%":{opacity:1},"71.4%":Sa(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},Ea=yn((function(e,t){var n=H.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function ka(e,t,n){return Ea(e,void 0!==n?n:t.disableGlobalClassNames)}var wa=function(){return wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wa.apply(this,arguments)},Ia="undefined"===typeof window?n.g:window,Pa=Ia&&Ia.CSPSettings&&Ia.CSPSettings.nonce,Ta=function(){var e=Ia.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=wa(wa({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=wa(wa({},e),{registeredThemableStyles:[]}));return Ia.__themeState__=e,e}(),Da=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,Aa=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()};function Ra(e){var t=Aa();e();var n=Aa();Ta.perf.duration+=n-t}function Na(e,t){void 0===t&&(t=!1),Ra((function(){var n=Array.isArray(e)?e:La(e),r=Ta.runState,o=r.mode,i=r.buffer,a=r.flushTimer;t||1===o?(i.push(n),a||(Ta.runState.flushTimer=setTimeout((function(){Ta.runState.flushTimer=0,Ra((function(){var e=Ta.runState.buffer.slice();Ta.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&Ma(t)}))}),0))):Ma(n)}))}function Ma(e,t){Ta.loadStyles?Ta.loadStyles(Oa(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=Oa(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),Pa&&n.setAttribute("nonce",Pa);n.appendChild(document.createTextNode(o)),Ta.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};i?Ta.registeredThemableStyles.push(s):Ta.registeredStyles.push(s)}(e)}function Fa(e){Ta.theme=e,function(){if(Ta.theme){for(var e=[],t=0,n=Ta.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(Ba(Ta.registeredStyles),Ta.registeredStyles=[]);3!==e&&1!==e||(Ba(Ta.registeredThemableStyles),Ta.registeredThemableStyles=[])}(1),Ma([].concat.apply([],e)))}}()}function Ba(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function Oa(e){var t=Ta.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!==typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'.concat(r,'". Falling back to "').concat(i,'".')),o||i}return e.rawString})).join(""),themable:n}}function La(e){var t=[];if(e){for(var n=0,r=void 0;r=Da.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=Da.lastIndex}t.push({rawString:e.substring(n)})}return t}var Ha=sa({}),Va=[],za="theme";function Ua(){var e,t,n,r=ke();(null===(t=null===r||void 0===r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1);Ha=sa(e,t),Fa(d(d(d(d({},Ha.palette),Ha.semanticColors),Ha.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),t[c]=u}return t}(Ha))),Tn.applySettings(((n={}).theme=Ha,n)),Va.forEach((function(e){try{e(Ha)}catch(Iw){}}))}(r.FabricConfig.legacyTheme):Tn.getSettings([za]).theme||((null===(n=null===r||void 0===r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Ha=sa(r.FabricConfig.theme)),Tn.applySettings(((e={}).theme=Ha,e)))}function Wa(e){return void 0===e&&(e=!1),!0===e&&(Ha=sa({},e)),Ha}Ua();var Ga={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},ja={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function qa(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var Ka=xe(Xi),Ya=(xe(oa),{});for(var Xa in Fo)Fo.hasOwnProperty(Xa)&&(Qa(Ya,Xa,"",!1,"color"),Qa(Ya,Xa,"Hover",!0,"color"),Qa(Ya,Xa,"Background",!1,"background"),Qa(Ya,Xa,"BackgroundHover",!0,"background"),Qa(Ya,Xa,"Border",!1,"borderColor"),Qa(Ya,Xa,"BorderHover",!0,"borderColor"));function Qa(e,t,n,r,o){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[o]=Wa().palette[t],e);return me(r?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}A("@fluentui/style-utilities","8.9.16"),Ua();var Za,Ja,$a,es="32px",ts="16px",ns="16px",rs="13px",os=yn((function(){return Se({from:{opacity:0},to:{opacity:1}})})),is=yn((function(){return Se({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})})),as=yn((function(e,t,n,r,o,i){var a;void 0===e&&(e=Wa());var s={animationName:_a.continuousPulseAnimationSingle(r||e.palette.themePrimary,o||e.palette.themeTertiary,"4px","28px","4px"),animationIterationCount:"1",animationDuration:".8s",zIndex:1},l={animationName:is(),animationIterationCount:"1",animationDuration:".5s"},c={animationName:os(),animationIterationCount:"1",animationDuration:".5s"};return ge({root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},i&&n&&c],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},i&&n&&s],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:es,width:es,height:es},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:ts,width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:es,fontSize:ns,lineHeight:ns,marginTop:"3px"},isCompactIcon:{height:ts,minWidth:ts,fontSize:rs,lineHeight:rs,color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:(a={},a[ca]={border:"none",margin:"0"},a)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},i&&n&&l],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}},t)})),ss=yn((function(e,t,n,r){return{root:me("ms-ActivityItem",t,e.root,r&&e.isCompactRoot),pulsingBeacon:me("ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:me("ms-ActivityItem-personaContainer",e.personaContainer,r&&e.isCompactPersonaContainer),activityPersona:me("ms-ActivityItem-activityPersona",e.activityPersona,r&&e.isCompactPersona,!r&&n&&2===n.length&&e.doublePersona),activityTypeIcon:me("ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,r&&e.isCompactIcon),activityContent:me("ms-ActivityItem-activityContent",e.activityContent,r&&e.isCompactContent),activityText:me("ms-ActivityItem-activityText",e.activityText),commentText:me("ms-ActivityItem-commentText",e.commentText),timeStamp:me("ms-ActivityItem-timeStamp",e.timeStamp,r&&e.isCompactTimeStamp)}})),ls=0,cs=1,us=2,ds=3,ps=4,hs=5,ms=6,fs=7,gs=8,vs=9,ys=10,bs=11,Cs=12,Ss=13;function xs(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Za||(Za={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Ja||(Ja={}));var _s=(($a={})[ls]=xs(Za.top,Za.left),$a[cs]=xs(Za.top),$a[us]=xs(Za.top,Za.right),$a[ds]=xs(Za.top,void 0,!0),$a[ps]=xs(Za.bottom,Za.left),$a[hs]=xs(Za.bottom),$a[ms]=xs(Za.bottom,Za.right),$a[fs]=xs(Za.bottom,void 0,!0),$a[gs]=xs(Za.left,Za.top),$a[vs]=xs(Za.left),$a[ys]=xs(Za.left,Za.bottom),$a[bs]=xs(Za.right,Za.top),$a[Cs]=xs(Za.right),$a[Ss]=xs(Za.right,Za.bottom),$a);function Es(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function ks(e,t){var n=[];return e.top<t.top&&n.push(Za.top),e.bottom>t.bottom&&n.push(Za.bottom),e.left<t.left&&n.push(Za.left),e.right>t.right&&n.push(Za.right),n}function ws(e,t){return e[Za[t]]}function Is(e,t,n){return e[Za[t]]=n,e}function Ps(e,t){var n=Vs(t);return(ws(e,n.positiveEdge)+ws(e,n.negativeEdge))/2}function Ts(e,t){return e>0?t:-1*t}function Ds(e,t){return Ts(e,ws(t,e))}function As(e,t,n){return Ts(n,ws(e,n)-ws(t,n))}function Rs(e,t,n,r){void 0===r&&(r=!0);var o=ws(e,t)-n,i=Is(e,t,n);return r&&(i=Is(e,-1*t,ws(e,-1*t)-o)),i}function Ns(e,t,n,r){return void 0===r&&(r=0),Rs(e,n,ws(t,n)+Ts(n,r))}function Ms(e,t,n){return Ds(n,e)>Ds(n,t)}function Fs(e,t){for(var n=0,r=0,o=ks(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(As(e,t,i),2)}return n}function Bs(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,n,r,o){void 0===o&&(o=0);var i=[Za.left,Za.right,Za.bottom,Za.top];Ot()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,p=0;p<4;p++){if(Ms(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var h=Fs(s,n);(!a||h<a)&&(a=h,u=l,d=c),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(c=l,l=i.slice(-1)[0]),s=Hs(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=Hs(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=ks(c.elementRectangle,n),d=i?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:Hs(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(c,t,o,a);if(Es(p.elementRectangle,n))return p;c=Os(ks(p.elementRectangle,n),c,n,d)}else c=Os(u,c,n,d);else c=Os(u,c,n,d);return c}function Os(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;if(r&&r===-1*a)s=Rs(t.elementRectangle,a,ws(n,a),!1),t.forcedInBounds=!0;else Ms(s=Ns(t.elementRectangle,n,a),n,-1*a)||(s=Rs(s,-1*a,ws(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function Ls(e,t,n){var r=Vs(t).positiveEdge;return Rs(e,r,n-(Ps(e,t)-ws(e,r)))}function Hs(e,t,n,r,o){void 0===r&&(r=0);var i=new It(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?Ns(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=Ts(-1*n,r);return Rs(e,-1*n,ws(t,n)+o)}(i,t,s,r),a)?i=Ns(i,t,a):i=Ls(i,l,Ps(t,s));return i}function Vs(e){return e===Za.top||e===Za.bottom?{positiveEdge:Za.left,negativeEdge:Za.right}:{positiveEdge:Za.top,negativeEdge:Za.bottom}}function zs(e,t,n){return n&&Math.abs(As(e,n,t))>Math.abs(As(e,n,-1*t))?-1*t:t}function Us(e,t,n,r,o,i,a,s){var l={},c=Xs(t),u=i?n:-1*n,d=o||Vs(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&ws(e,t)===ws(n,t)}(e,rl(d),r)||(d=zs(e,d,r)),l[Za[u]]=As(e,c,u),l[Za[d]]=As(e,c,d),s&&(l[Za[-1*u]]=As(e,c,-1*u),l[Za[-1*d]]=As(e,c,-1*d)),l}function Ws(e){return Math.sqrt(e*e*2)}function Gs(e,t,n){if(void 0===e&&(e=fs),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=d({},_s[e]);return Ot()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?_s[t]:r):r}function js(e,t,n){var r=Ps(t,e),o=Ps(n,e),i=Vs(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function qs(e,t,n,r,o,i,a){var s=Hs(e,t,r,o,a);return Es(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Bs(s,t,n,r,o,i,a)}function Ks(e,t,n){var r=-1*e.targetEdge,o=new It(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=zs(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Vs(r).positiveEdge,n),s=As(e.elementRectangle,e.targetRectangle,r)>Math.abs(ws(t,r));return i[Za[r]]=ws(t,r),i[Za[a]]=As(t,o,a),{elementPosition:d({},i),closestEdge:js(e.targetEdge,t,o),targetEdge:r,hideBeak:!s}}function Ys(e,t){var n=t.targetRectangle,r=Vs(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=Ps(n,t.targetEdge),s=new It(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new It(0,e,0,e);return Ms(l=Ls(l=Rs(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Ds(o,t.elementRectangle)),s,o)?Ms(l,s,i)||(l=Ns(l,s,i)):l=Ns(l,s,o),l}function Xs(e){var t=e.getBoundingClientRect();return new It(t.left,t.right,t.top,t.bottom)}function Qs(e){return new It(e.left,e.right,e.top,e.bottom)}function Zs(e,t,n,r,o){var i=0,a=_s[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===Za.top?ws(e,a.targetEdge)-r.top-n:s===Za.bottom?r.bottom-ws(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function Js(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new It(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Xs(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new It(i,s,a,l)}if(!Es(n,e))for(var c=0,u=ks(n,e);c<u.length;c++){var d=u[c];n[Za[d]]=e[Za[d]]}}else n=new It(0,0,0,0);return n}(n,e.target),a=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=js(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(Gs(e.directionalHint,e.directionalHintForRTL,r),i,n,e.coverTarget,e.alignTargetEdge),s=qs(Xs(t),i,n,a,o,e.directionalHintFixed,e.coverTarget);return d(d({},s),{targetRectangle:i})}function $s(e,t,n,r,o){return{elementPosition:Us(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function el(e,t,n,r,o){var i=e.isBeakVisible&&e.beakWidth||0,a=Ws(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var l=e.bounds?Qs(e.bounds):new It(0,window.innerWidth-He(),0,window.innerHeight),c=Js(s,n,l,r),u=Ks(c,Ys(i,c),l);return d(d({},$s(c,t,l,e.coverTarget,o)),{beakPosition:u})}function tl(e,t,n,r){return function(e,t,n,r){var o=e.bounds?Qs(e.bounds):new It(0,window.innerWidth-He(),0,window.innerHeight);return $s(Js(e,n,o,r),t,o,e.coverTarget)}(e,t,n,r)}function nl(e,t,n,r){return function(e,t,n,r){return el(e,t,n,r,!0)}(e,t,n,r)}function rl(e){return-1*e}function ol(){var e=o.useRef();return e.current||(e.current=new we),o.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function il(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function al(e){var t=o.useState(e),n=t[0],r=t[1];return[n,{setTrue:il((function(){return function(){r(!0)}})),setFalse:il((function(){return function(){r(!1)}})),toggle:il((function(){return function(){r((function(e){return!e}))}}))}]}function sl(e,t,n){var r=o.useState(t),i=r[0],a=r[1],s=il(void 0!==e),l=s?e:i,c=o.useRef(l),u=o.useRef(n);o.useEffect((function(){c.current=l,u.current=n}));var d=il((function(){return function(e,t){var n="function"===typeof e?e(c.current):e;u.current&&u.current(t,n),s||a(n)}}));return[l,d]}function ll(e){var t=o.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return _o((function(){t.current=e}),[e]),il((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}function cl(e,t){var n=o.useRef(t);return n.current||(n.current=zn(e)),n.current}function ul(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var i=o[r];"function"===typeof i?i(t):i&&(i.current=t)}}),m([],e,!0));return n}A("@fluentui/react-hooks","8.6.29");function dl(e,t,n,r){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return on(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function pl(e){var t=o.useRef();return o.useEffect((function(){t.current=e})),t.current}function hl(e,t){void 0===t&&(t=null);var n=o.useRef({ref:function(){var e=function(e){n.ref.current!==e&&(n.cleanup&&(n.cleanup(),n.cleanup=void 0),n.ref.current=e,null!==e&&(n.cleanup=n.callback(e)))};return e.current=t,e}(),callback:e}).current;return n.callback=e,n.ref}var ml=function(){var e=il({});return o.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),il({setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n){var r=setTimeout(t,n);return e[r]=1,r})),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){delete e[t],clearTimeout(t)}))})},fl=o.createContext({window:"object"===typeof window?window:void 0}),gl=function(){return o.useContext(fl).window},vl=function(){var e;return null===(e=o.useContext(fl).window)||void 0===e?void 0:e.document};function yl(e,t){var n=o.useRef(),r=o.useRef(null),i=gl();if(!e||e!==n.current||"string"===typeof e){var a=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var s=Re(a);r.current=s?s.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}A("@fluentui/react-window-provider","2.2.15");var bl=function(e){var t=o.useRef(e);t.current=e,o.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])},Cl=0;function Sl(e){var t=e.name,n=e.props,r=e.other,i=void 0===r?[]:r,a=e.conditionallyRequired,s=e.deprecations,l=e.mutuallyExclusive,c=e.controlledUsage,u=o.useRef(!1),p=il((function(){return"useWarnings_".concat(Cl++)})),h=pl(n);if(!u.current){u.current=!0;for(var m=0,f=i;m<f.length;m++){je(f[m])}if(a)for(var g=0,v=a;g<v.length;g++){var y=v[g];qe(t,n,y.requiredProps,y.conditionalPropName,y.condition)}s&&Ye(t,n,s),l&&Ke(t,n,l)}c&&yo(d(d({},c),{componentId:p,props:n,componentName:t,oldProps:h}))}function xl(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==ke()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function _l(e,t){var n=e.onRestoreFocus,r=void 0===n?xl:n,i=o.useRef(),a=o.useRef(!1);o.useEffect((function(){return i.current=Re().activeElement,function(e){var t=Re(e),n=t&&t.activeElement;return!(!n||!zt(e,n))}(t.current)&&(a.current=!0),function(){var e;null===r||void 0===r||r({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=Re())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),dl(t,"focus",o.useCallback((function(){a.current=!0}),[]),!0),dl(t,"blur",o.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}var El,kl=o.forwardRef((function(e,t){var n=Co({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=o.useRef(),i=ul(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;o.useEffect((function(){if(n&&t.current)return no(t.current)}),[t,n])}(n,r),_l(n,r);var a=n.role,s=n.className,l=n.ariaLabel,c=n.ariaLabelledBy,u=n.ariaDescribedBy,p=n.style,h=n.children,m=n.onDismiss,f=function(e,t){var n=ol(),r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var o=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;o>0&&s>o&&(r=s-o>1)}i!==r&&a(r)}})),function(){return n.dispose()}})),i}(n,r),g=o.useCallback((function(e){if(e.which===ct)m&&(m(e),e.preventDefault(),e.stopPropagation())}),[m]);return dl(gl(),"keydown",g),o.createElement("div",d({ref:i},mr(n,hr),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:g,style:d({overflowY:f?"scroll":void 0,outline:"none"},p)}),h)}));kl.displayName="Popup";var wl=((El={})[Za.top]=Ka.slideUpIn10,El[Za.bottom]=Ka.slideDownIn10,El[Za.left]=Ka.slideLeftIn10,El[Za.right]=Ka.slideRightIn10,El),Il=0,Pl=0,Tl={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Dl=["role","aria-roledescription"],Al={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:fs},Rl=cn({disableCaching:!0});function Nl(e,t,n,r,i){var a=o.useState(),s=a[0],l=a[1],c=o.useRef(0),u=o.useRef(),p=ol(),h=e.hidden,m=e.target,f=e.finalHeight,g=e.calloutMaxHeight,v=e.onPositioned,y=e.directionalHint;return o.useEffect((function(){if(!h){var o=p.requestAnimationFrame((function(){var o,a,p,h;if(t.current&&n){var y=d(d({},e),{target:r.current,bounds:i()}),b=n.cloneNode(!0);b.style.maxHeight=g?"".concat(g):"",b.style.visibility="hidden",null===(o=n.parentElement)||void 0===o||o.appendChild(b);var C=u.current===m?s:void 0,S=f?nl(y,t.current,b,C):function(e,t,n,r){return el(e,t,n,r)}(y,t.current,b,C);null===(a=n.parentElement)||void 0===a||a.removeChild(b),!s&&S||s&&S&&(h=S,!Bl((p=s).elementPosition,h.elementPosition)||!Bl(p.beakPosition.elementPosition,h.beakPosition.elementPosition))&&c.current<5?(c.current++,l(S)):c.current>0&&(c.current=0,null===v||void 0===v||v(s))}}),n);return u.current=m,function(){p.cancelAnimationFrame(o),u.current=void 0}}l(void 0),c.current=0}),[h,y,p,n,g,t,r,f,i,v,s,e,m]),s}var Ml=o.memo(o.forwardRef((function(e,t){var n=Co(Al,e),r=n.styles,i=n.style,a=n.ariaLabel,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=n.isBeakVisible,p=n.children,h=n.beakWidth,m=n.calloutWidth,f=n.calloutMaxWidth,g=n.calloutMinWidth,v=n.doNotLayer,y=n.finalHeight,b=n.hideOverflow,C=void 0===b?!!y:b,S=n.backgroundColor,x=n.calloutMaxHeight,_=n.onScroll,E=n.shouldRestoreFocus,k=void 0===E||E,w=n.target,I=n.hidden,P=n.onLayerMounted,T=n.popupProps,D=o.useRef(null),A=o.useState(null),R=A[0],N=A[1],M=o.useCallback((function(e){N(e)}),[]),F=ul(D,t),B=yl(n.target,{current:R}),O=B[0],L=B[1],H=function(e,t,n){var r=e.bounds,i=e.minPagePadding,a=void 0===i?Al.minPagePadding:i,s=e.target,l=o.useState(!1),c=l[0],u=l[1],d=o.useRef(),p=o.useCallback((function(){if(!d.current||c){var e="function"===typeof r?n?r(s,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,s,t,n,c]),h=ol();return dl(n,"resize",h.debounce((function(){u(!0)}),500,{leading:!0})),p}(n,O,L),V=Nl(n,D,R,O,H),z=function(e,t,n){var r,i=e.calloutMaxHeight,a=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,u=o.useState(),d=u[0],p=u[1],h=null!==(r=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==r?r:{},m=h.top,f=h.bottom;return o.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},o=r.top,a=r.bottom;"number"===typeof m&&a?n=a-m:"number"===typeof f&&"number"===typeof o&&a&&(n=a-o-f),p(!i&&!c||i&&n&&i>n?n:i||void 0)}),[f,i,a,s,l,t,c,n,m]),d}(n,H,V),U=function(e,t,n,r,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,p=e.shouldDismissOnWindowFocus,h=e.preventDismissOnEvent,m=o.useRef(!1),f=ol(),g=il([function(){m.current=!0},function(){m.current=!1}]),v=!!t;return o.useEffect((function(){var e=function(e){v&&!l&&g(e)},t=function(e){c||h&&h(e)||null===s||void 0===s||s(e)},o=function(e){u||g(e)},g=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,a=n.current&&!zt(n.current,o);if(a&&m.current)m.current=!1;else if(!r.current&&a||e.target!==i&&a&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!zt(r.current,o))){if(h&&h(e))return;null===s||void 0===s||s(e)}},y=function(e){p&&((!h||h(e))&&(h||u)||(null===i||void 0===i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null===s||void 0===s||s(e))},b=new Promise((function(n){f.setTimeout((function(){if(!a&&i){var r=[on(i,"scroll",e,!0),on(i,"resize",t,!0),on(i.document.documentElement,"focus",o,!0),on(i.document.documentElement,"click",o,!0),on(i,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[a,f,n,r,i,s,p,d,u,c,l,v,h]),g}(n,V,D,O,L),W=U[0],G=U[1],j=(null===V||void 0===V?void 0:V.elementPosition.top)&&(null===V||void 0===V?void 0:V.elementPosition.bottom),q=d(d({},null===V||void 0===V?void 0:V.elementPosition),{maxHeight:z});if(j&&(q.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,a=ol(),s=!!t;o.useEffect((function(){if(!r&&i&&s&&n){var e=a.requestAnimationFrame((function(){return Kt(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,s,a,n,i])}(n,V,R),o.useEffect((function(){I||null===P||void 0===P||P()}),[I]),!L)return null;var K=C,Y=u&&!!w,X=Rl(r,{theme:n.theme,className:c,overflowYHidden:K,calloutWidth:m,positions:V,beakWidth:h,backgroundColor:S,calloutMaxWidth:f,calloutMinWidth:g,doNotLayer:v}),Q=d(d({maxHeight:x||"100%"},i),K&&{overflowY:"hidden"}),Z=n.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:F,className:X.container,style:Z},o.createElement("div",d({},mr(n,hr,Dl),{className:kn(X.root,V&&V.targetEdge&&wl[V.targetEdge]),style:V?d({},q):Tl,tabIndex:-1,ref:M}),Y&&o.createElement("div",{className:X.beak,style:Fl(V)}),Y&&o.createElement("div",{className:X.beakCurtain}),o.createElement(kl,d({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:X.calloutMain,onDismiss:n.onDismiss,onMouseDown:W,onMouseUp:G,onRestoreFocus:n.onRestoreFocus,onScroll:_,shouldRestoreFocus:k,style:Q},T),p)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||Ie(e,t)}));function Fl(e){var t,n,r=d(d({},null===(t=null===e||void 0===e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null===e||void 0===e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=Pl,r.top=Il),r}function Bl(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Ol(e){return{height:e,width:e}}Ml.displayName="CalloutContentBase";var Ll={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Hl=vo(Ml,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=ka(Ll,n),p=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?la.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[ca]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Ol(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Vl=o.createContext(void 0),zl=function(){return function(){}};Vl.Provider;var Ul=cn(),Wl=yn((function(e,t){return sa(d(d({},e),{rtl:t}))})),Gl=o.forwardRef((function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,a=e.applyThemeToBody,s=e.styles,l=Ul(s,{theme:r,applyTheme:i,className:n}),c=o.useRef(null);return function(e,t,n){var r=t.bodyThemed;o.useEffect((function(){if(e){var t=Re(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,l,c),o.createElement(o.Fragment,null,function(e,t,n,r){var i=t.root,a=e.as,s=void 0===a?"div":a,l=e.dir,c=e.theme,u=mr(e,hr,["dir"]),p=function(e){var t=e.theme,n=e.dir,r=Ot(t)?"rtl":"ltr",o=Ot()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),h=p.rootDir,m=p.needsTheme,f=o.createElement(Ur,{providerRef:n},o.createElement(s,d({dir:h},u,{className:i,ref:ul(n,r)})));m&&(f=o.createElement(Mn,{settings:{theme:Wl(c,"rtl"===l)}},f));return f}(e,l,c,t))}));Gl.displayName="FabricBase";var jl={fontFamily:"inherit"},ql={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Kl=vo(Gl,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[ka(ql,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":jl,"& input":jl,"& textarea":jl},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Yl={},Xl={},Ql="fluent-default-layer-host",Zl="#".concat(Ql);var Jl,$l=cn(),ec=o.forwardRef((function(e,t){var n=function(){var e;return null!==(e=o.useContext(Vl))&&void 0!==e?e:zl}(),r=o.useRef(null),i=ul(r,t),s=o.useRef(),l=o.useRef(null),c=o.useContext(Mr),u=o.useState(!1),p=u[0],h=u[1],m=o.useCallback((function(e){var t,n=!!(null===(t=null===c||void 0===c?void 0:c.providerRef)||void 0===t?void 0:t.current)&&t.current.classList.contains(wr);e&&n&&e.classList.add(wr)}),[c]),f=e.children,g=e.className,v=e.eventBubblingEnabled,y=e.fabricProps,b=e.hostId,C=e.insertFirst,S=e.onLayerDidMount,x=void 0===S?function(){}:S,_=e.onLayerMounted,E=void 0===_?function(){}:_,k=e.onLayerWillUnmount,w=e.styles,I=e.theme,P=ul(l,null===y||void 0===y?void 0:y.ref,m),T=$l(w,{theme:I,className:g,isNotHost:!b}),D=function(e){var t,n;if(b){var r=function(e){var t=Xl[e];return t&&t[0]||void 0}(b);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(b))&&void 0!==n?n:null}var o=Zl,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",Ql),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},A=function(){null===k||void 0===k||k();var e=s.current;s.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},R=function(){var e,t=Re(r.current);if(t){var n=D(t);if(n){A();var o=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");o.className=T.root,o.setAttribute(Wt,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(o,r.current),C?n.insertBefore(o,n.firstChild):n.appendChild(o),s.current=o,h(!0)}}};return _o((function(){R(),b&&function(e,t){Yl[e]||(Yl[e]=[]),Yl[e].push(t);var n=Xl[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(b,R);var e=s.current?n(s.current):void 0;return function(){e&&e(),A(),b&&function(e,t){var n=Yl[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete Yl[e])}var o=Xl[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(b,R)}}),[b]),o.useEffect((function(){s.current&&p&&(null===E||void 0===E||E(),null===x||void 0===x||x(),h(!1))}),[p,E,x]),function(e){Sl({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),o.createElement("span",{className:"ms-layer",ref:i},s.current&&a.createPortal(o.createElement(Ur,{layerRoot:!0,providerRef:P},o.createElement(Kl,d({},!v&&function(){Jl||(Jl={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return Jl[e]=tc})));return Jl}(),y,{className:kn(T.content,null===y||void 0===y?void 0:y.className),ref:P}),f)),s.current))}));ec.displayName="LayerBase";var tc=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var nc={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},rc=vo(ec,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=ka(nc,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:la.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),oc=o.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,i=p(e,["layerProps","doNotLayer"]),a=o.createElement(Hl,d({},i,{doNotLayer:r,ref:t}));return r?a:o.createElement(rc,d({},n),a)}));oc.displayName="Callout";var ic={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},ac=o.forwardRef((function(e,t){var n,r=o.useRef(null),i=o.useRef(null),a=o.useRef(null),s=ul(r,t),l=vl(),c=null===(n=pl(!1))||void 0===n||n,u=Co(ic,e),p=il({hasFocus:!1,focusStackId:cl("ftz-",u.id)}),h=u.children,m=u.componentRef,f=u.disabled,g=u.disableFirstFocus,v=u.forceFocusInsideTrap,y=u.focusPreviouslyFocusedInnerElement,b=u.firstFocusableSelector,C=u.firstFocusableTarget,S=u.disableRestoreFocus,x=void 0===S?u.ignoreExternalFocusing:S,_=u.isClickableOutsideFocusTrap,E=u.enableAriaHiddenSiblings,k={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:f?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=o.useCallback((function(e){e!==i.current&&e!==a.current&&rn(e)}),[]),I=ll((function(){if(r.current){var e=p.previouslyFocusedElementInTrapZone;if(y&&e&&zt(r.current,e))w(e);else{var t=null;if("string"===typeof C)t=r.current.querySelector(C);else if(C)t=C(r.current);else if(b){var n="string"===typeof b?b:b();t=r.current.querySelector("."+n)}t||(t=Xt(r.current,r.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),P=function(e){if(!f&&r.current){var t,n,o,s=e===p.hasFocus?(t=r.current,n=a.current,void 0===(o=!1)&&(o=!0),Yt(t,n,o,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Xt(e,t,r,!1,!1,n,!1,!0)}(r.current,i.current,!0,!1);s&&(s===i.current||s===a.current?I():s.focus())}},T=ll((function(e){if(ac.focusStack=ac.focusStack.filter((function(e){return p.focusStackId!==e})),l){var t=l.activeElement;x||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!zt(r.current,t)&&t!==l.body||w(e)}})),D=ll((function(e){if(!f&&p.focusStackId===ac.focusStack.slice(-1)[0]){var t=e.target;t&&!zt(r.current,t)&&(l&&l.activeElement===l.body?setTimeout((function(){l&&l.activeElement===l.body&&(I(),p.hasFocus=!0)}),0):(I(),p.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return o.useEffect((function(){var e=[];return v&&e.push(on(window,"focus",D,!0)),_||e.push(on(window,"click",D,!0)),function(){e.forEach((function(e){return e()}))}}),[v,_]),o.useEffect((function(){if(!f&&(c||v)&&r.current){ac.focusStack.push(p.focusStackId);var e=u.elementToFocusOnDismiss||l.activeElement;return g||zt(r.current,e)||I(),function(){return T(e)}}}),[v,f]),o.useEffect((function(){if(!f&&E)return no(r.current)}),[f,E,r]),bl((function(){delete p.previouslyFocusedElementInTrapZone})),function(e,t,n){o.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,p.previouslyFocusedElementInTrapZone,I),o.createElement("div",d({"aria-labelledby":u.ariaLabelledBy},mr(u,hr),{ref:s,onFocusCapture:function(e){var t;null===(t=u.onFocusCapture)||void 0===t||t.call(u,e),e.target===i.current?P(!0):e.target===a.current&&P(!1),p.hasFocus=!0,e.target!==e.currentTarget&&e.target!==i.current&&e.target!==a.current&&(p.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=u.onBlurCapture)||void 0===t||t.call(u,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=l.activeElement),zt(r.current,n)||(p.hasFocus=!1)}}),o.createElement("div",d({},k,{ref:i})),h,o.createElement("div",d({},k,{ref:a})))}));ac.displayName="FocusTrapZone",ac.focusStack=[];var sc,lc,cc=function(e){return o.createElement(oc,d({},e),o.createElement(ac,d({disabled:e.hidden},e.focusTrapProps),e.children))},uc=cn(),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"===typeof e.content?o.createElement("p",{className:t._classNames.subText},e.content):o.createElement("div",{className:t._classNames.subText},e.content)},t}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,i=e.directionalHintForRTL,a=e.styles,s=e.id,l=e.maxWidth,c=e.onRenderContent,u=void 0===c?this._onRenderContent:c,p=e.targetElement,h=e.theme;return this._classNames=uc(a,{theme:h,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:l}),o.createElement(oc,d({target:p,directionalHint:r,directionalHintForRTL:i},n,mr(this.props,hr,["id"]),{className:this._classNames.root}),o.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},u(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:cs,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(o.Component),pc=vo(dc,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Ka.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(sc||(sc={})),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(lc||(lc={}));var hc,mc,fc,gc,vc=cn(),yc=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=zn("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case lc.Parent:return r._tooltipHost.current.parentElement;case lc.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n,o=r.props,i=o.overflowMode,a=o.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&(!function(e){return e.clientWidth<e.scrollWidth}(n=s)&&!function(e){return e.clientHeight<e.scrollHeight}(n)))return}if(!e.target||!Gt(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==sc.zero){var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===ct||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case sc.medium:return 300;case sc.long:return 500;default:return 0}},br(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new we(r),r}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,i=e.directionalHint,a=e.directionalHintForRTL,s=e.hostClassName,l=e.id,c=e.setAriaDescribedBy,u=void 0===c||c,p=e.tooltipProps,h=e.styles,m=e.theme;this._classNames=vc(h,{theme:m,className:s});var f=this.state.isTooltipVisible,g=l||this._defaultTooltipId,v=d(d({id:"".concat(g,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:Pe({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},mr(this.props,hr,["id"])),p),y=(null===p||void 0===p?void 0:p.onRenderContent)?p.onRenderContent(v,(function(e){return(null===e||void 0===e?void 0:e.content)?o.createElement(o.Fragment,null,e.content):null})):r,b=f&&!!y,C=u&&f&&y?g:void 0;return o.createElement("div",d({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":C}),n,b&&o.createElement(pc,d({},v)),o.createElement("div",{hidden:!0,id:g,style:ya},y))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:sc.medium},t}(o.Component),bc={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Cc=vo(yc,(function(e){var t=e.className,n=e.theme;return{root:[ka(bc,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"});!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(hc||(hc={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(mc||(mc={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(fc||(fc={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(gc||(gc={}));var Sc=cn(),xc=/\.svg$/i;var _c=o.forwardRef((function(e,t){var n=o.useRef(),r=o.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,i=e.onError,a=e.src,s=o.useState(gc.notLoaded),l=s[0],c=s[1];_o((function(){c(gc.notLoaded)}),[a]),o.useEffect((function(){l===gc.notLoaded&&t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&xc.test(a))&&c(gc.loaded)})),o.useEffect((function(){null===n||void 0===n||n(l)}),[l]);var u=o.useCallback((function(e){null===r||void 0===r||r(e),a&&c(gc.loaded)}),[a,r]),d=o.useCallback((function(e){null===i||void 0===i||i(e),c(gc.error)}),[i]);return[l,u,d]}(e,r),a=i[0],s=i[1],l=i[2],c=mr(e,pr,["width","height"]),u=e.src,p=e.alt,h=e.width,m=e.height,f=e.shouldFadeIn,g=void 0===f||f,v=e.shouldStartVisible,y=e.className,b=e.imageFit,C=e.role,S=e.maximizeFrame,x=e.styles,_=e.theme,E=e.loading,k=function(e,t,n,r){var i=o.useRef(t),a=o.useRef();(void 0===a||i.current===gc.notLoaded&&t===gc.loaded)&&(a.current=function(e,t,n,r){var o=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===gc.loaded&&(o===mc.cover||o===mc.contain||o===mc.centerContain||o===mc.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==mc.centerContain&&o!==mc.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return fc.landscape}return fc.portrait}(e,t,n,r));return i.current=t,a.current}(e,a,r,n),w=Sc(x,{theme:_,className:y,width:h,height:m,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:a===gc.loaded||a===gc.notLoaded&&e.shouldStartVisible,isLandscape:k===fc.landscape,isCenter:b===mc.center,isCenterContain:b===mc.centerContain,isCenterCover:b===mc.centerCover,isContain:b===mc.contain,isCover:b===mc.cover,isNone:b===mc.none,isError:a===gc.error,isNotImageFit:void 0===b});return o.createElement("div",{className:w.root,style:{width:h,height:m},ref:n},o.createElement("img",d({},c,{onLoad:s,onError:l,key:"fabricImage"+e.src||"",className:w.image,ref:ul(r,t),src:u,alt:p,role:C,loading:E})))}));_c.displayName="ImageBase";var Ec={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},kc=vo(_c,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,f=e.isError,g=e.isNotImageFit,v=e.theme,y=ka(Ec,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=ke(),S=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,x=u&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&Ka.fadeIn400,(c||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[y.imageCenter,b],u&&[y.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&x,!S&&b],d&&[y.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&x,!S&&b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],m&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",f&&"is-error"]}}),void 0,{scope:"Image"},!0);kc.displayName="Image";var wc=ve({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),Ic="ms-Icon",Pc=yn((function(e){var t=Io(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null}),void 0,!0),Tc=function(e){var t=e.iconName,n=e.className,r=e.style,i=void 0===r?{}:r,a=Pc(t)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,u=a.mergeImageProps,p=mr(e,qn),h=e["aria-label"]||e.title,m=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},f=l;return u&&"object"===typeof l&&"object"===typeof l.props&&h&&(f=o.cloneElement(l,{alt:h})),o.createElement("i",d({"data-icon-name":t},m,p,u?{title:void 0,"aria-label":void 0}:{},{className:kn(Ic,wc.root,s,!t&&wc.placeholder,n),style:d({fontFamily:c},i)}),f)},Dc=(yn((function(e,t,n){return Tc({iconName:e,className:t,"aria-label":n})})),cn({cacheSize:100})),Ac=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===gc.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,i=e.iconName,a=e.imageErrorAs,s=e.theme,l="string"===typeof i&&0===i.length,c=!!this.props.imageProps||this.props.iconType===hc.image||this.props.iconType===hc.Image,u=Pc(i)||{},p=u.iconClassName,h=u.children,m=u.mergeImageProps,f=Dc(r,{theme:s,className:n,iconClassName:p,isImage:c,isPlaceholder:l}),g=c?"span":"i",v=mr(this.props,qn,["aria-label"]),y=this.state.imageLoadError,b=d(d({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=y&&a||kc,S=this.props["aria-label"]||this.props.ariaLabel,x=b.alt||S||this.props.title,_=!!(x||this.props["aria-labelledby"]||b["aria-label"]||b["aria-labelledby"])?{role:c||m?void 0:"img","aria-label":c||m?void 0:x}:{"aria-hidden":!0},E=h;return m&&h&&"object"===typeof h&&x&&(E=o.cloneElement(h,{alt:x})),o.createElement(g,d({"data-icon-name":i},_,v,m?{title:void 0,"aria-label":void 0}:{},{className:f.root}),c?o.createElement(C,d({},b)):t||E)},t}(o.Component),Rc=vo(Ac,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&wc.placeholder,wc.root,o&&wc.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);Rc.displayName="Icon";var Nc,Mc,Fc,Bc,Oc,Lc,Hc=function(e){var t=e.className,n=e.imageProps,r=mr(e,qn,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],a=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,s={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},l=a?{}:{"aria-hidden":!0};return o.createElement("div",d({},l,r,{className:kn(Ic,wc.root,wc.image,t)}),o.createElement(kc,d({},s,n,{alt:a?i:""})))};!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(Nc||(Nc={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(Mc||(Mc={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(Fc||(Fc={})),function(e){e.size8="20px",e.size10="20px",e.size16="16px",e.size24="24px",e.size28="28px",e.size32="32px",e.size40="40px",e.size48="48px",e.size56="56px",e.size72="72px",e.size100="100px",e.size120="120px"}(Oc||(Oc={})),function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"}(Lc||(Lc={}));var Vc=function(e){return{isSize8:e===Nc.size8,isSize10:e===Nc.size10||e===Nc.tiny,isSize16:e===Nc.size16,isSize24:e===Nc.size24||e===Nc.extraExtraSmall,isSize28:e===Nc.size28||e===Nc.extraSmall,isSize32:e===Nc.size32,isSize40:e===Nc.size40||e===Nc.small,isSize48:e===Nc.size48||e===Nc.regular,isSize56:e===Nc.size56,isSize72:e===Nc.size72||e===Nc.large,isSize100:e===Nc.size100||e===Nc.extraLarge,isSize120:e===Nc.size120}},zc=((Bc={})[Nc.tiny]=10,Bc[Nc.extraExtraSmall]=24,Bc[Nc.extraSmall]=28,Bc[Nc.small]=40,Bc[Nc.regular]=48,Bc[Nc.large]=72,Bc[Nc.extraLarge]=100,Bc[Nc.size8]=8,Bc[Nc.size10]=10,Bc[Nc.size16]=16,Bc[Nc.size24]=24,Bc[Nc.size28]=28,Bc[Nc.size32]=32,Bc[Nc.size40]=40,Bc[Nc.size48]=48,Bc[Nc.size56]=56,Bc[Nc.size72]=72,Bc[Nc.size100]=100,Bc[Nc.size120]=120,Bc),Uc=function(e){return{isAvailable:e===Mc.online,isAway:e===Mc.away,isBlocked:e===Mc.blocked,isBusy:e===Mc.busy,isDoNotDisturb:e===Mc.dnd,isOffline:e===Mc.offline}},Wc=cn({cacheSize:100}),Gc=o.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,i=e.styles,a=e.presence,s=e.theme,l=e.presenceTitle,c=e.presenceColors,u=ul(t,o.useRef(null)),d=Vc(e.size),p=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(!n||n>32),h=n?n/3<40?n/3+"px":"40px":"",m=n?{fontSize:n?n/6<20?n/6+"px":"20px":"",lineHeight:h}:void 0,f=n?{width:h,height:h}:void 0,g=Wc(i,{theme:s,presence:a,size:e.size,isOutOfOffice:r,presenceColors:c});return a===Mc.none?null:o.createElement("div",{role:"presentation",className:g.presence,style:f,title:l,ref:u},p&&o.createElement(Rc,{className:g.presenceIcon,iconName:jc(e.presence,e.isOutOfOffice),style:m}))}));function jc(e,t){if(e){var n="SkypeArrow";switch(Mc[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}Gc.displayName="PersonaPresenceBase";var qc={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Kc(e){return{color:e,borderColor:e}}function Yc(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function Xc(e){return{height:e,width:e}}function Qc(e){return{backgroundColor:e}}var Zc=vo(Gc,(function(e){var t,n,r,o,i,a,s=e.theme,l=e.presenceColors,c=s.semanticColors,u=s.fonts,p=ka(qc,s),h=Vc(e.size),m=Uc(e.presence),f=l&&l.available||"#6BB700",g=l&&l.away||"#FFAA44",v=l&&l.busy||"#C43148",y=l&&l.dnd||"#C50F1F",b=l&&l.offline||"#8A8886",C=l&&l.oof||"#B4009E",S=l&&l.background||c.bodyBackground,x=m.isOffline||e.isOutOfOffice&&(m.isAvailable||m.isBusy||m.isAway||m.isDoNotDisturb),_=h.isSize72||h.isSize100?"2px":"1px";return{presence:[p.presence,d(d({position:"absolute",height:Lc.size12,width:Lc.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(S),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:(t={},t[ca]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(h.isSize8||h.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[ca]={top:"9px",border:"1px solid WindowText"},n)},(h.isSize8||h.isSize10||h.isSize24||h.isSize28||h.isSize32)&&Xc(Lc.size8),(h.isSize40||h.isSize48)&&Xc(Lc.size12),h.isSize16&&{height:Lc.size6,width:Lc.size6,borderWidth:"1.5px"},h.isSize56&&Xc(Lc.size16),h.isSize72&&Xc(Lc.size20),h.isSize100&&Xc(Lc.size28),h.isSize120&&Xc(Lc.size32),m.isAvailable&&{backgroundColor:f,selectors:(r={},r[ca]=Qc("Highlight"),r)},m.isAway&&Qc(g),m.isBlocked&&[{selectors:(o={":after":h.isSize40||h.isSize48||h.isSize72||h.isSize100?{content:'""',width:"100%",height:_,backgroundColor:v,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[ca]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],m.isBusy&&Qc(v),m.isDoNotDisturb&&Qc(y),m.isOffline&&Qc(b),(x||m.isBlocked)&&[{backgroundColor:S,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(_," solid ").concat(v),borderRadius:"50%",boxSizing:"border-box"}},i[ca]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],x&&m.isAvailable&&Yc(_,f),x&&m.isBusy&&Yc(_,v),x&&m.isAway&&Yc(_,C),x&&m.isDoNotDisturb&&Yc(_,y),x&&m.isOffline&&Yc(_,b),x&&m.isOffline&&e.isOutOfOffice&&Yc(_,C)],presenceIcon:[p.presenceIcon,{color:S,fontSize:"6px",lineHeight:Lc.size12,verticalAlign:"top",selectors:(a={},a[ca]={color:"Window"},a)},h.isSize56&&{fontSize:"8px",lineHeight:Lc.size16},h.isSize72&&{fontSize:u.small.fontSize,lineHeight:Lc.size20},h.isSize100&&{fontSize:u.medium.fontSize,lineHeight:Lc.size28},h.isSize120&&{fontSize:u.medium.fontSize,lineHeight:Lc.size32},m.isAway&&{position:"relative",left:x?void 0:"1px"},x&&m.isAvailable&&Kc(f),x&&m.isBusy&&Kc(v),x&&m.isAway&&Kc(C),x&&m.isDoNotDisturb&&Kc(y),x&&m.isOffline&&Kc(b),x&&m.isOffline&&e.isOutOfOffice&&Kc(C)]}}),void 0,{scope:"PersonaPresence"}),Jc=[Fc.lightBlue,Fc.blue,Fc.darkBlue,Fc.teal,Fc.green,Fc.darkGreen,Fc.lightPink,Fc.pink,Fc.magenta,Fc.purple,Fc.orange,Fc.lightRed,Fc.darkRed,Fc.violet,Fc.gold,Fc.burgundy,Fc.warmGray,Fc.cyan,Fc.rust,Fc.coolGray],$c=Jc.length;function eu(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"===typeof r?r:function(e){switch(e){case Fc.lightBlue:return"#4F6BED";case Fc.blue:return"#0078D4";case Fc.darkBlue:return"#004E8C";case Fc.teal:return"#038387";case Fc.lightGreen:case Fc.green:return"#498205";case Fc.darkGreen:return"#0B6A0B";case Fc.lightPink:return"#C239B3";case Fc.pink:return"#E3008C";case Fc.magenta:return"#881798";case Fc.purple:return"#5C2E91";case Fc.orange:return"#CA5010";case Fc.red:return"#EE1111";case Fc.lightRed:return"#D13438";case Fc.darkRed:return"#A4262C";case Fc.transparent:return"transparent";case Fc.violet:return"#8764B8";case Fc.gold:return"#986F0B";case Fc.burgundy:return"#750B1C";case Fc.warmGray:return"#7A7574";case Fc.cyan:return"#005B70";case Fc.rust:return"#8E562E";case Fc.coolGray:return"#69797E";case Fc.black:return"#1D1D1D";case Fc.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=Fc.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<<i)+(o>>8-i)}return Jc[n%$c]}(n||t))}var tu=cn({cacheSize:100}),nu=yn((function(e,t,n,r,o,i){return me(e,!i&&{backgroundColor:eu({text:r,initialsColor:t,primaryText:o}),color:n})})),ru={size:Nc.size48,presence:Mc.none,imageAlt:""};var ou=o.forwardRef((function(e,t){var n=Co(ru,e);!function(e){Sl({name:"PersonaCoin",props:e,deprecations:{primaryText:"text"}})}(n);var r=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=o.useState(gc.notLoaded),i=r[0],a=r[1];return o.useEffect((function(){a(gc.notLoaded)}),[n]),[i,function(e){a(e),null===t||void 0===t||t(e)}]}(n),i=r[0],a=r[1],s=iu(a),l=n.className,c=n.coinProps,u=n.showUnknownPersonaCoin,p=n.coinSize,h=n.styles,m=n.imageUrl,f=n.initialsColor,g=n.initialsTextColor,v=n.isOutOfOffice,y=n.onRenderCoin,b=void 0===y?s:y,C=n.onRenderPersonaCoin,S=void 0===C?b:C,x=n.onRenderInitials,_=void 0===x?au:x,E=n.presence,k=n.presenceTitle,w=n.presenceColors,I=n.primaryText,P=n.showInitialsUntilImageLoads,T=n.text,D=n.theme,A=n.size,R=mr(n,hr),N=mr(c||{},hr),M=p?{width:p,height:p}:void 0,F=u,B={coinSize:p,isOutOfOffice:v,presence:E,presenceTitle:k,presenceColors:w,size:A,theme:D},O=tu(h,{theme:D,className:c&&c.className?c.className:l,size:A,coinSize:p,showUnknownPersonaCoin:u}),L=Boolean(i!==gc.loaded&&(P&&m||!m||i===gc.error||F));return o.createElement("div",d({role:"presentation"},R,{className:O.coin,ref:t}),A!==Nc.size8&&A!==Nc.size10&&A!==Nc.tiny?o.createElement("div",d({role:"presentation"},N,{className:O.imageArea,style:M}),L&&o.createElement("div",{className:nu(O.initials,f,g,T,I,u),style:M,"aria-hidden":"true"},_(n,au)),!F&&S(n,s),o.createElement(Zc,d({},B))):n.presence?o.createElement(Zc,d({},B)):o.createElement(Rc,{iconName:"Contact",className:O.size10WithoutPresenceIcon}),n.children)}));ou.displayName="PersonaCoinBase";var iu=function(e){return function(t){var n=t.coinSize,r=t.styles,i=t.imageUrl,a=t.imageAlt,s=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,u=t.showUnknownPersonaCoin,d=t.size,p=void 0===d?ru.size:d;if(!i)return null;var h=tu(r,{theme:c,size:p,showUnknownPersonaCoin:u}),m=n||zc[p];return o.createElement(kc,{className:h.image,imageFit:mc.cover,src:i,width:m,height:m,alt:a,shouldFadeIn:s,shouldStartVisible:l,onLoadingStateChange:e})}},au=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,i=e.text,a=e.primaryText,s=e.theme;if(r)return o.createElement(Rc,{iconName:"Help"});var l=Ot(s);return""!==(t=t||Yr(i||a||"",l,n))?o.createElement("span",null,t):o.createElement(Rc,{iconName:"Contact"})},su={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},lu=vo(ou,(function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,a=r.fonts,s=Vc(e.size),l=ka(su,r),c=o||e.size&&zc[e.size]||48;return{coin:[l.coin,a.medium,s.isSize8&&l.size8,s.isSize10&&l.size10,s.isSize16&&l.size16,s.isSize24&&l.size24,s.isSize28&&l.size28,s.isSize32&&l.size32,s.isSize40&&l.size40,s.isSize48&&l.size48,s.isSize56&&l.size56,s.isSize72&&l.size72,s.isSize100&&l.size100,s.isSize120&&l.size120,n],size10WithoutPresenceIcon:{fontSize:a.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[l.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:c,width:c},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[l.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0},c>10&&{height:c,width:c}],initials:[l.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:a.large.fontSize,fontWeight:ri.semibold,lineHeight:48===c?46:c,height:c,selectors:(t={},t[ca]=d(d({border:"1px solid WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:ri.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},c<32&&{fontSize:a.xSmall.fontSize},c>=32&&c<40&&{fontSize:a.medium.fontSize},c>=40&&c<56&&{fontSize:a.mediumPlus.fontSize},c>=56&&c<72&&{fontSize:a.xLarge.fontSize},c>=72&&c<100&&{fontSize:a.xxLarge.fontSize},c>=100&&{fontSize:a.superLarge.fontSize}]}}),void 0,{scope:"PersonaCoin"}),cu=cn(),uu={size:Nc.size48,presence:Mc.none,imageAlt:"",showOverflowTooltip:!0};var du=o.forwardRef((function(e,t){var n=Co(uu,e);!function(e){Sl({name:"Persona",props:e,deprecations:{primaryText:"text"}})}(n);var r=ul(t,o.useRef(null)),i=function(){return n.text||n.primaryText||""},a=function(e,t,r){var i=t&&t(n,r);return i?o.createElement("div",{dir:"auto",className:e},i):void 0},s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return o.createElement(Cc,{content:e,overflowMode:lc.Parent,directionalHint:ls},e)}:function(){return o.createElement(o.Fragment,null,e)}:void 0},l=s(i(),n.showOverflowTooltip),c=s(n.secondaryText,n.showOverflowTooltip),u=s(n.tertiaryText,n.showOverflowTooltip),p=s(n.optionalText,n.showOverflowTooltip),h=n.hidePersonaDetails,m=n.onRenderOptionalText,f=void 0===m?p:m,g=n.onRenderPrimaryText,v=void 0===g?l:g,y=n.onRenderSecondaryText,b=void 0===y?c:y,C=n.onRenderTertiaryText,S=void 0===C?u:C,x=n.onRenderPersonaCoin,_=void 0===x?function(e){return o.createElement(lu,d({},e))}:x,E=n.size,k=n.allowPhoneInitials,w=n.className,I=n.coinProps,P=n.showUnknownPersonaCoin,T=n.coinSize,D=n.styles,A=n.imageAlt,R=n.imageInitials,N=n.imageShouldFadeIn,M=n.imageShouldStartVisible,F=n.imageUrl,B=n.initialsColor,O=n.initialsTextColor,L=n.isOutOfOffice,H=n.onPhotoLoadingStateChange,V=n.onRenderCoin,z=n.onRenderInitials,U=n.presence,W=n.presenceTitle,G=n.presenceColors,j=n.showInitialsUntilImageLoads,q=n.showSecondaryText,K=n.theme,Y=d({allowPhoneInitials:k,showUnknownPersonaCoin:P,coinSize:T,imageAlt:A,imageInitials:R,imageShouldFadeIn:N,imageShouldStartVisible:M,imageUrl:F,initialsColor:B,initialsTextColor:O,onPhotoLoadingStateChange:H,onRenderCoin:V,onRenderInitials:z,presence:U,presenceTitle:W,showInitialsUntilImageLoads:j,size:E,text:i(),isOutOfOffice:L,presenceColors:G},I),X=cu(D,{theme:K,className:w,showSecondaryText:q,presence:U,size:E}),Q=mr(n,hr),Z=o.createElement("div",{className:X.details},a(X.primaryText,v,l),a(X.secondaryText,b,c),a(X.tertiaryText,S,u),a(X.optionalText,f,p),n.children);return o.createElement("div",d({},Q,{ref:r,className:X.root,style:T?{height:T,minWidth:T}:void 0}),_(Y,_),(!h||E===Nc.size8||E===Nc.size10||E===Nc.tiny)&&Z)}));du.displayName="PersonaBase";var pu={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},hu=vo(du,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=ka(pu,r),s=Vc(e.size),l=Uc(e.presence),c="16px",u={color:o.bodySubtext,fontWeight:ri.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,Ga,{color:o.bodyText,position:"relative",height:Oc.size48,minWidth:Oc.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:Oc.size8,minWidth:Oc.size8}],s.isSize10&&[a.size10,{height:Oc.size10,minWidth:Oc.size10}],s.isSize16&&[a.size16,{height:Oc.size16,minWidth:Oc.size16}],s.isSize24&&[a.size24,{height:Oc.size24,minWidth:Oc.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:Oc.size28,minWidth:Oc.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:Oc.size32,minWidth:Oc.size32}],s.isSize40&&[a.size40,{height:Oc.size40,minWidth:Oc.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:Oc.size56,minWidth:Oc.size56}],s.isSize72&&[a.size72,{height:Oc.size72,minWidth:Oc.size72}],s.isSize100&&[a.size100,{height:Oc.size100,minWidth:Oc.size100}],s.isSize120&&[a.size120,{height:Oc.size120,minWidth:Oc.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,ja,{color:o.bodyText,fontWeight:ri.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:c,lineHeight:c,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Oc.size8},s.isSize16&&{lineHeight:Oc.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:22}],secondaryText:[a.secondaryText,ja,u,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,ja,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,ja,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,ja]}}),void 0,{scope:"Persona"}),mu=(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderIcon=function(e){return e.activityPersonas?n._onRenderPersonaArray(e):n.props.activityIcon},n._onRenderActivityDescription=function(e){var t=n._getClassNames(e),r=e.activityDescription||e.activityDescriptionText;return r?o.createElement("span",{className:t.activityText},r):null},n._onRenderComments=function(e){var t=n._getClassNames(e),r=e.comments||e.commentText;return!e.isCompact&&r?o.createElement("div",{className:t.commentText},r):null},n._onRenderTimeStamp=function(e){var t=n._getClassNames(e);return!e.isCompact&&e.timeStamp?o.createElement("div",{className:t.timeStamp},e.timeStamp):null},n._onRenderPersonaArray=function(e){var t=n._getClassNames(e),r=null,i=e.activityPersonas;if(i[0].imageUrl||i[0].imageInitials){var a=[],s=i.length>1||e.isCompact,l=e.isCompact?3:4,c=void 0;e.isCompact&&(c={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),i.filter((function(e,t){return t<l})).forEach((function(e,n){a.push(o.createElement(lu,d({},e,{key:e.key||n,className:t.activityPersona,size:s?Nc.size16:Nc.size32,style:c})))})),r=o.createElement("div",{className:t.personaContainer},a)}return r},n}u(t,e),t.prototype.render=function(){var e=this.props,t=e.onRenderIcon,n=void 0===t?this._onRenderIcon:t,r=e.onRenderActivityDescription,i=void 0===r?this._onRenderActivityDescription:r,a=e.onRenderComments,s=void 0===a?this._onRenderComments:a,l=e.onRenderTimeStamp,c=void 0===l?this._onRenderTimeStamp:l,u=e.animateBeaconSignal,d=e.isCompact,p=this._getClassNames(this.props);return o.createElement("div",{className:p.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&&o.createElement("div",{className:p.activityTypeIcon},u&&d&&o.createElement("div",{className:p.pulsingBeacon}),n(this.props)),o.createElement("div",{className:p.activityContent},i(this.props,this._onRenderActivityDescription),s(this.props,this._onRenderComments),c(this.props,this._onRenderTimeStamp)))},t.prototype._getClassNames=function(e){return ss(as(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)}}(o.Component),"backward"),fu=function(e){function t(t){var n=e.call(this,t)||this;return n._inputElement=o.createRef(),n._autoFillEnabled=!0,n._onCompositionStart=function(e){n.setState({isComposing:!0}),n._autoFillEnabled=!1},n._onCompositionUpdate=function(){bo()&&n._updateValue(n._getCurrentInputValue(),!0)},n._onCompositionEnd=function(e){var t=n._getCurrentInputValue();n._tryEnableAutofill(t,n.value,!1,!0),n.setState({isComposing:!1}),n._async.setTimeout((function(){n._updateValue(n._getCurrentInputValue(),!1)}),0)},n._onClick=function(){n.value&&""!==n.value&&n._autoFillEnabled&&(n._autoFillEnabled=!1)},n._onKeyDown=function(e){if(n.props.onKeyDown&&n.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case rt:n._autoFillEnabled=!1;break;case ft:case vt:n._autoFillEnabled&&(n.setState({inputValue:n.props.suggestedDisplayValue||""}),n._autoFillEnabled=!1);break;default:n._autoFillEnabled||-1!==n.props.enableAutofillOnKeyPress.indexOf(e.which)&&(n._autoFillEnabled=!0)}},n._onInputChanged=function(e){var t=n._getCurrentInputValue(e);if(n.state.isComposing||n._tryEnableAutofill(t,n.value,e.nativeEvent.isComposing),!bo()||!n.state.isComposing){var r=e.nativeEvent.isComposing,o=void 0===r?n.state.isComposing:r;n._updateValue(t,o)}},n._onChanged=function(){},n._updateValue=function(e,t){if(e||e!==n.value){var r=n.props,o=r.onInputChange,i=r.onInputValueChange;o&&(e=(null===o||void 0===o?void 0:o(e,t))||""),n.setState({inputValue:e},(function(){return null===i||void 0===i?void 0:i(e,t)}))}},br(n),n._async=new we(n),n.state={inputValue:t.defaultVisibleValue||"",isComposing:!1},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var n=e.updateValueInWillReceiveProps();if(null!==n&&n!==t.inputValue&&!t.isComposing)return d(d({},t),{inputValue:n})}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.suggestedDisplayValue,i=r.shouldSelectFullInputValueInComponentDidUpdate,a=0;if(!r.preventValueSelection)if(this._inputElement.current&&this._inputElement.current===document.activeElement&&this._autoFillEnabled&&this.value&&o&&gu(o,this.value)){var s=!1;if(i&&(s=i()),s)this._inputElement.current.setSelectionRange(0,o.length,mu);else{for(;a<this.value.length&&this.value[a].toLocaleLowerCase()===o[a].toLocaleLowerCase();)a++;a>0&&this._inputElement.current.setSelectionRange(a,o.length,mu)}}else this._inputElement.current&&(null===n||this._autoFillEnabled||this.state.isComposing||this._inputElement.current.setSelectionRange(n.start,n.end,n.dir))},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=mr(this.props,er),t=d(d({},this.props.style),{fontFamily:"inherit"});return o.createElement("input",d({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e,t,n=this._inputElement.current;return n&&n.selectionStart!==this.value.length?{start:null!==(e=n.selectionStart)&&void 0!==e?e:n.value.length,end:null!==(t=n.selectionEnd)&&void 0!==t?t:n.value.length,dir:n.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,n,r){!n&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||r)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?function(e,t){var n=e;t&&e&&gu(t,n)&&(n=t);return n}(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"===typeof e?e:(console.warn("props.value of Autofill should be a string, but it is ".concat(e," with type of ").concat(typeof e)),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[yt,gt]},t}(o.Component);function gu(e,t){if(!e||!t)return!1;for(var n=0,r=[e,t];n<r.length;n++){var o=r[n];if("string"!==typeof o)throw new Error("".concat(fu.name,' received non-string value "').concat(o,'" of type ').concat(typeof o," from either input's value or suggestedDisplayValue"))}return 0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var vu=cn(),yu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.styles,r=e.as,i=void 0===r?"div":r,a=e.className,s=vu(n,{className:a});return o.createElement(i,d({role:"status",className:s.root},mr(this.props,hr,["className"])),o.createElement(Ze,null,o.createElement("div",{className:s.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(o.Component),bu=vo(yu,(function(e){return{root:e.className,screenReaderText:ya}}));A("@fluentui/react-focus","8.8.30");var Cu,Su=1,xu=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Cu||(Cu={}));var _u,Eu="data-is-focusable",ku="data-focuszone-id",wu="tabindex",Iu="data-no-vertical-wrap",Pu="data-no-horizontal-wrap",Tu=999999999,Du=-999999999;function Au(e,t){var n;"function"===typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null===t||void 0===t?void 0:t.ctrlKey,metaKey:null===t||void 0===t?void 0:t.metaKey,shiftKey:null===t||void 0===t?void 0:t.shiftKey,altKey:null===t||void 0===t?void 0:t.altKey,bubbles:null===t||void 0===t?void 0:t.bubbles,cancelable:null===t||void 0===t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Ru={},Nu=new Set,Mu=["text","number","password","email","tel","url","search","textarea"],Fu=!1,Bu=function(e){function t(n){var r,i,a,s,l=this;(l=e.call(this,n)||this)._root=o.createRef(),l._mergedRef=xo(),l._onFocus=function(e){if(!l._portalContainsElement(e.target)){var t,n=l.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,c=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=l._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==l._root.current;){if(Jt(p)&&l._isImmediateDescendantOfZone(p)){t=p;break}p=Vt(p,Fu)}if(c&&e.target===l._root.current){var h=u&&"function"===typeof u&&l._root.current&&u(l._root.current);h&&Jt(h)?(t=h,h.focus()):(l.focus(!0),l._activeElement&&(t=null))}var m=!l._activeElement;t&&t!==l._activeElement&&((d||m)&&l._setFocusAlignment(t,!0,!0),l._activeElement=t,m&&l._updateTabIndexes()),r&&r(l._activeElement,e),(i||o)&&e.stopPropagation(),s?s(e):a&&a()}},l._onBlur=function(){l._setParkedFocus(!1)},l._onMouseDown=function(e){if(!l._portalContainsElement(e.target)&&!l.props.disabled){for(var t=e.target,n=[];t&&t!==l._root.current;)n.push(t),t=Vt(t,Fu);for(;n.length&&((t=n.pop())&&Jt(t)&&l._setActiveElement(t,!0),!$t(t)););}},l._onKeyDown=function(e,t){if(!l._portalContainsElement(e.target)){var n=l.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!o&&(l.props.onKeyDown&&l.props.onKeyDown(e),!e.isDefaultPrevented()&&(l._getDocument().activeElement!==l._root.current||!l._isInnerZone))){if((s&&s(e)||i&&i(e))&&l._isImmediateDescendantOfZone(e.target)){var c=l._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!en(e.target))return;if(!l.focusElement(Xt(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case ut:if(l._shouldRaiseClicksOnSpace&&l._tryInvokeClickForFocusable(e.target,e))break;return;case ft:if(r!==Cu.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusLeft(t)))break;return;case vt:if(r!==Cu.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusRight(t)))break;return;case gt:if(r!==Cu.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusUp()))break;return;case yt:if(r!==Cu.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusDown()))break;return;case pt:if(!a&&l._moveFocusPaging(!0))break;return;case dt:if(!a&&l._moveFocusPaging(!1))break;return;case ot:if(l.props.allowTabKey||l.props.handleTabKey===Su||l.props.handleTabKey===xu&&l._isElementInput(e.target)){var u=!1;if(l._processingTabKey=!0,r!==Cu.vertical&&l._shouldWrapFocus(l._activeElement,Pu))u=(Ot(t)?!e.shiftKey:e.shiftKey)?l._moveFocusLeft(t):l._moveFocusRight(t);else u=e.shiftKey?l._moveFocusUp():l._moveFocusDown();if(l._processingTabKey=!1,u)break;l.props.shouldResetActiveElementWhenTabFromZone&&(l._activeElement=null)}return;case mt:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!1))return!1;var d=l._root.current&&l._root.current.firstChild;if(l._root.current&&d&&l.focusElement(Xt(l._root.current,d,!0)))break;return;case ht:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!0))return!1;var p=l._root.current&&l._root.current.lastChild;if(l._root.current&&l.focusElement(Yt(l._root.current,p,!0,!0,!0)))break;return;case it:if(l._shouldRaiseClicksOnEnter&&l._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},l._getHorizontalDistanceFromCenter=function(e,t,n){var r=l._focusAlignment.left||l._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):l._shouldWrapFocus(l._activeElement,Iu)?Tu:Du},br(l),Ye("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),l._id=zn("FocusZone"),l._focusAlignment={left:0,top:0},l._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return l._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:c,l._shouldRaiseClicksOnSpace=null!==(s=n.shouldRaiseClicksOnSpace)&&void 0!==s?s:c,l}return u(t,e),t.getOuterZones=function(){return Nu.size},t._onKeyDownCapture=function(e){e.which===ot&&Nu.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Ru[this._id]=this,e){for(var n=Vt(e,Fu);n&&n!==this._getDocument().body&&1===n.nodeType;){if($t(n)){this._isInnerZone=!0;break}n=Vt(n,Fu)}this._isInnerZone||(Nu.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!zt(this._root.current,this._activeElement,Fu)||this._defaultFocusElement&&!zt(this._root.current,this._defaultFocusElement,Fu))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return Jt(n)&&Qt(n)?n:Xt(e,n,!0)||Yt(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Ru[this._id],this._isInnerZone||(Nu.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,i=t.rootProps,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=mr(this.props,qn),u=n||r||"div";this._evaluateFocusBeforeRender();var p=Wa();return o.createElement(u,d({"aria-labelledby":s,"aria-describedby":a},c,i,{className:kn((_u||(_u=me({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),_u),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Eu)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Ru[n.getAttribute(ku)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&zt(this._root.current,this._activeElement)&&Jt(this._activeElement)&&(!t||Zt(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Xt(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Yt(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=zt(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Vt(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&($t(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Eu)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Au(n,t),!0;n=Vt(n,Fu)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if($t(e))return Ru[e.getAttribute(ku)];for(var t=e.firstElementChild;t;){if($t(t))return Ru[t.getAttribute(ku)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Cu.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?Xt(this._root.current,o):Yt(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Xt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Yt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,Iu)?Tu:Du:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,Iu)?Tu:Du:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Pu);return!!this._moveFocus(Ot(e),(function(r,o){var i=-1;return(Ot(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Cu.vertical?i=r.right-o.right:n||(i=Du),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Pu);return!!this._moveFocus(!Ot(e),(function(r,o){var i=-1;return(Ot(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Cu.vertical?i=o.left-r.left:n||(i=Du),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Ve(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Xt(this._root.current,n):Yt(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(c.bottom),h=Math.floor(u.bottom),m=Math.floor(c.top),f=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>p+l||!e&&h<m-l)break;f>-1&&(e&&d>a?(a=d,o=f,i=n):!e&&h<s?(s=h,o=f,i=n):(-1===o||f<=o)&&(o=f,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Xt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Yt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Cu.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Vt(e,Fu);t&&t!==this._root.current&&t!==this._getDocument().body;){if($t(t))return t;t=Vt(t,Fu)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!zt(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Jt(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];$t(r)?"true"===r.getAttribute(Eu)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(wu)&&r.setAttribute(wu,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(wu)&&r.setAttribute(wu,"0"))):(r.getAttribute&&"false"===r.getAttribute(Eu)&&r.setAttribute(wu,"-1"),Jt(r)?this.props.disabled?r.setAttribute(wu,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(wu)&&r.setAttribute(wu,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(wu)&&r.setAttribute(wu,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Mu.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||tn(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Gt(e,this._root.current)},t.prototype._getDocument=function(){return Re(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Cu.bidirectional,shouldRaiseClicks:!0},t}(o.Component),Ou=cn(),Lu=function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},Hu=function(e,t){t.as;var n=t.disabled,r=t.target,o=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,p(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"===typeof e?"a"===e?d({target:r,href:n?void 0:o},i):"button"===e?d({type:"button",disabled:n},i):d(d({},i),{disabled:n}):d({target:r,href:o,disabled:n},i)},Vu=o.forwardRef((function(e,t){var n=function(e,t){var n=e.as,r=e.className,i=e.disabled,a=e.href,s=e.onClick,l=e.styles,c=e.theme,u=e.underline,p=o.useRef(null),h=ul(p,t);Lu(e,p),Fr(p);var m=Ou(l,{className:r,isButton:!a,isDisabled:i,isUnderlined:u,theme:c}),f=n||(a?"a":"button");return{state:{},slots:{root:f},slotProps:{root:d(d({},Hu(f,e)),{"aria-disabled":i,className:m.root,onClick:function(e){i?e.preventDefault():s&&s(e)},ref:h})}}}(e,t),r=n.slots,i=n.slotProps;return o.createElement(r.root,d({},i.root))}));Vu.displayName="LinkBase";var zu,Uu={root:"ms-Link"},Wu=vo(Vu,(function(e){var t,n,r,o,i,a,s,l=e.className,c=e.isButton,u=e.isDisabled,d=e.isUnderlined,p=e.theme,h=p.semanticColors,m=h.link,f=h.linkHovered,g=h.disabledText,v=h.focusBorder,y=ka(Uu,p);return{root:[y.root,p.fonts.medium,{color:m,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:d?"underline":"none",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px ".concat(v," inset"),outline:"1px auto ".concat(v),selectors:(n={},n[ca]={outline:"1px solid WindowText"},n)}},t[ca]={borderBottom:"none"},t)},c&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(r={},r[ca]={color:"LinkText",forcedColorAdjust:"none"},r)},!c&&{selectors:(o={},o[ca]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},u&&["is-disabled",{color:g,cursor:"default"},{selectors:(i={"&:link, &:visited":{pointerEvents:"none"}},i[ca]={color:"GrayText"},i)}],!u&&{selectors:{"&:active, &:hover, &:active:hover":{color:f,textDecoration:"underline",selectors:(a={},a[ca]={color:"LinkText"},a)},"&:focus":{color:m,selectors:(s={},s[ca]={color:"LinkText"},s)}}},y.root,l]}}),void 0,{scope:"Link"});function Gu(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function ju(e){return!(!e.subMenuProps&&!e.items)}function qu(e){return!(!e.isDisabled&&!e.disabled)}function Ku(e){return null!==Gu(e)?"menuitemcheckbox":"menuitem"}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(zu||(zu={}));var Yu=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return o.createElement(Rc,d({},r,{className:n.icon}))},Xu=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,Yu):Yu(e):null},Qu=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Gu(n);if(t){return o.createElement(Rc,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},Zu=function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null},Ju=function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null},$u=function(e){var t=e.item,n=e.classNames,r=e.theme;return ju(t)?o.createElement(Rc,d({iconName:Ot(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},ed=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();ju(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;ju(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:Qu,renderItemIcon:Xu,renderItemName:Zu,renderSecondaryText:Ju,renderSubMenuIcon:$u}))},t.prototype._renderLayout=function(e,t){return o.createElement(o.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(o.Component),td=yn((function(e){return ve({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),nd=36,rd=ma(0,639),od=yn((function(e){var t,n,r,o,i,a=e.semanticColors,s=e.fonts,l=e.palette,c=a.menuItemBackgroundHovered,u=a.menuItemTextHovered,p=a.menuItemBackgroundPressed,h=a.bodyDivider;return ge({item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[fa(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:nd,lineHeight:nd,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[ca]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:c,color:u,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[ca]={color:"inherit"},r)},n[ca]=d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:nd,fontSize:oi.medium,width:oi.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[rd]={fontSize:oi.large,width:oi.large},o)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:nd,lineHeight:nd,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:oi.small,selectors:(i={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},i[rd]={fontSize:oi.medium},i)},splitButtonFlexContainer:[fa(e),{display:"flex",height:nd,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),id="28px",ad=ma(0,639),sd=yn((function(e){var t;return ve(td(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[ad]={right:32},t)},divider:{height:16,width:1}})})),ld={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},cd=yn((function(e,t,n,r,o,i,a,s,l,c,u,d){var p,h,m,f,g=od(e),v=ka(ld,e);return ve({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".".concat(wr," &:focus, .").concat(wr," &:focus:hover")]=g.rootFocused,p[".".concat(wr," &:hover")]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - ".concat(id,")")},r&&["is-checked",g.rootChecked],(t||u)&&["is-disabled",g.rootDisabled],!(t||u)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ .".concat(v.splitMenu)]=g.rootHovered,h[":active"]=g.rootPressed,h[".".concat(wr," &:focus, .").concat(wr," &:focus:hover")]=g.rootFocused,h[".".concat(wr," &:hover")]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:id},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(m={":hover":g.rootHovered,":active":g.rootPressed},m[".".concat(wr," &:focus, .").concat(wr," &:focus:hover")]=g.rootFocused,m[".".concat(wr," &:hover")]={background:"inherit;"},m)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(f={},f[".".concat(wr," &:focus, .").concat(wr," &:focus:hover")]=g.rootFocused,f)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,ya,{visibility:"hidden"}]})})),ud=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return cd(t,n,r,o,i,a,s,l,c,u,d,p)},dd=vo(ed,ud,void 0,{scope:"ContextualMenuItem"}),pd=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},br(n),n}return u(t,e),t.prototype.shouldComponentUpdate=function(e){return!Ie(e,this.props)},t}(o.Component);function hd(e,t){return!!At(e,(function(e){return function(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,r=t.modifierKeys;if(!n&&r||n&&!r)return!1;if(n&&r){if(n.length!==r.length)return!1;n=n.sort(),r=r.sort();for(var o=0;o<n.length;o++)if(n[o]!==r[o])return!1}return!0}(e,t)}))}var md,fd="data-ktp-target",gd="data-ktp-execute-target",vd="ktp-layer-id";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(md||(md={}));var yd=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?md.PERSISTED_KEYTIP_ADDED:md.KEYTIP_ADDED;Ae.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ae.raise(this,md.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?md.PERSISTED_KEYTIP_REMOVED:md.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ae.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Ae.raise(this,md.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Ae.raise(this,md.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=m([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return d(d({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Ae.raise(this,md.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=zn()),{keytip:d({},e),uniqueID:t}},e._instance=new e,e}();function bd(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function Cd(e,t){var n=t.length,r=m([],t,!0).pop();return function(e,t,n){var r=e.slice();return r.splice(t,0,n),r}(m([],e,!0),n-1,r)}function Sd(e){return'[data-ktp-target="'+bd(e)+'"]'}function xd(e){var t=o.useRef(),n=e.keytipProps?d({disabled:e.disabled},e.keytipProps):void 0,r=il(yd.getInstance()),i=pl(e);_o((function(){t.current&&n&&((null===i||void 0===i?void 0:i.keytipProps)!==e.keytipProps||(null===i||void 0===i?void 0:i.disabled)!==e.disabled)&&r.update(n,t.current)})),_o((function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}}),[]);var a={ariaDescribedBy:void 0,keytipId:void 0};return n&&(a=function(e,t,n){var r=e.addParentOverflow(t),o=Tt(n,function(e){var t=" ktp-layer-id";return e.length?t+" "+bd(e):t}(r.keySequences)),i=m([],r.keySequences,!0);r.overflowSetSequence&&(i=Cd(i,r.overflowSetSequence));var a=bd(i);return{ariaDescribedBy:o,keytipId:a}}(r,n,e.ariaDescribedBy)),a}var _d=function(e){var t,n=e.children,r=xd(p(e,["children"])),o=r.keytipId,i=r.ariaDescribedBy;return n(((t={})[fd]=o,t[gd]=o,t["aria-describedby"]=i,t))};var Ed=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=o.createRef(),t._getMemoizedMenuButtonKeytipProps=yn((function(e){return d(d({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return u(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,u=t.contextualMenuItemAs,p=void 0===u?dd:u,h=t.expandedMenuItemKey,m=t.onItemClick,f=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,y=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(y=y||"nofollow noopener noreferrer");var b=ju(n),C=mr(n,Jn),S=qu(n),x=n.itemProps,_=n.ariaDescription,E=n.keytipProps;E&&b&&(E=this._getMemoizedMenuButtonKeytipProps(E)),_&&(this._ariaDescriptionId=zn());var k=Tt(n.ariaDescribedBy,_?this._ariaDescriptionId:void 0,C["aria-describedby"]),w={"aria-describedby":k};return o.createElement("div",null,o.createElement(_d,{keytipProps:n.keytipProps,ariaDescribedBy:k,disabled:S},(function(t){return o.createElement("a",d({},w,C,t,{ref:e._anchor,href:n.href,target:n.target,rel:y,className:r.root,role:"menuitem","aria-haspopup":b||void 0,"aria-expanded":b?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":qu(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:b?e._onItemKeyDown:void 0}),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:c,openSubMenu:f,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},x)),e._renderAriaDescription(_,r.screenReaderText))})))},t}(pd),kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=o.createRef(),t._getMemoizedMenuButtonKeytipProps=yn((function(e){return d(d({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return u(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,u=t.contextualMenuItemAs,p=void 0===u?dd:u,h=t.expandedMenuItemKey,m=t.onItemMouseDown,f=t.onItemClick,g=t.openSubMenu,v=t.dismissSubMenu,y=t.dismissMenu,b=Gu(n),C=null!==b,S=Ku(n),x=ju(n),_=n.itemProps,E=n.ariaLabel,k=n.ariaDescription,w=mr(n,$n);delete w.disabled;var I=n.role||S;k&&(this._ariaDescriptionId=zn());var P=Tt(n.ariaDescribedBy,k?this._ariaDescriptionId:void 0,w["aria-describedby"]),T={className:r.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return m?m(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":E,"aria-describedby":P,"aria-haspopup":x||void 0,"aria-expanded":x?n.key===h:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":qu(n),"aria-checked":"menuitemcheckbox"!==I&&"menuitemradio"!==I||!C?void 0:!!b,"aria-selected":"menuitem"===I&&C?!!b:void 0,role:I,style:n.style},D=n.keytipProps;return D&&x&&(D=this._getMemoizedMenuButtonKeytipProps(D)),o.createElement(_d,{keytipProps:D,ariaDescribedBy:P,disabled:qu(n)},(function(t){return o.createElement("button",d({ref:e._btn},w,T,t),o.createElement(p,d({componentRef:n.componentRef,item:n,classNames:r,index:i,onCheckmarkClick:l&&f?f:void 0,hasIcons:c,openSubMenu:g,dismissSubMenu:v,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},_)),e._renderAriaDescription(k,r.screenReaderText))}))},t}(pd),wd=cn(),Id=o.forwardRef((function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,a=e.className,s=wd(n,{theme:r,getClassNames:i,className:a});return o.createElement("span",{className:s.wrapper,ref:t},o.createElement("span",{className:s.divider}))}));Id.displayName="VerticalDividerBase";var Pd,Td=vo(Id,(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Dd=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=yn((function(e){return d(d({},e),{hasMenu:!0})})),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===it?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?o.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(d(d({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(d(d({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new we(n),n._events=new Ae(n),n}return u(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.item,i=n.classNames,a=n.index,s=n.focusableElementIndex,l=n.totalItemCount,c=n.hasCheckmarks,u=n.hasIcons,p=n.onItemMouseLeave,h=n.expandedMenuItemKey,m=ju(r),f=r.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var g=r.ariaDescription;g&&(this._ariaDescriptionId=zn());var v=null!==(e=Gu(r))&&void 0!==e?e:void 0;return o.createElement(_d,{keytipProps:f,disabled:qu(r)},(function(e){return o.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:Ku(r),"aria-label":r.ariaLabel,className:i.splitContainer,"aria-disabled":qu(r),"aria-expanded":m?r.key===h:void 0,"aria-haspopup":!0,"aria-describedby":Tt(r.ariaDescribedBy,g?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":v,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:p?p.bind(t,d(d({},r),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":r["aria-roledescription"]},t._renderSplitPrimaryButton(r,i,a,c,u),t._renderSplitDivider(r),t._renderSplitIconButton(r,i,a,e),t._renderAriaDescription(g,i.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?dd:s,c=a.onItemClick,u={key:e.key,disabled:qu(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return o.createElement("button",d({},mr(u,$n)),o.createElement(l,d({"data-is-focusable":!1,item:u,classNames:t,index:n,onCheckmarkClick:r&&c?c:void 0,hasIcons:i},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||sd;return o.createElement(Td,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?dd:a,l=i.onItemMouseLeave,c=i.onItemMouseDown,u=i.openSubMenu,p=i.dismissSubMenu,h=i.dismissMenu,m={onClick:this._onIconItemClick,disabled:qu(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},f=d(d({},mr(m,$n)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,e):void 0,onMouseDown:function(t){return c?c(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return o.createElement("button",d({},f),o.createElement(s,d({componentRef:e.componentRef,item:m,classNames:t,index:n,hasIcons:!1,openSubMenu:u,dismissSubMenu:p,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(pd),Ad=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return u(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=yr);var r=[],o=function(o){"function"!==typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[o].apply(t,e)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(o.Component);!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Pd||(Pd={}));var Rd,Nd,Md=[479,639,1023,1365,1919,99999999];function Fd(){var e;return null!==(e=null!==Rd&&void 0!==Rd?Rd:Nd)&&void 0!==e?e:Pd.large}function Bd(e){var t,n=(t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=Ld(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new Ae(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:Fd()},n}return u(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Pd.unknown?null:o.createElement(e,d({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(Ad),t.contextType=fl,t);return Fn(e,n)}function Od(e){try{return e.document.documentElement.clientWidth}catch(Iw){return e.innerWidth}}function Ld(e){var t=Pd.small;if(e){try{for(;Od(e)>Md[t];)t++}catch(Iw){t=Fd()}Nd=t}else{if(void 0===Rd)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=Rd}return t}var Hd=function(e,t){var n=o.useState(Fd()),r=n[0],i=n[1],a=o.useCallback((function(){var t=Ld(ke(e.current));r!==t&&i(t)}),[e,r]);return dl(gl(),"resize",a),o.useEffect((function(){void 0===t&&a()}),[t]),null!==t&&void 0!==t?t:r},Vd=o.createContext({}),zd=cn(),Ud=cn(),Wd={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:fs,beakWidth:16};function Gd(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];if(o.itemType!==zu.Divider&&o.itemType!==zu.Header)t+=o.customOnRenderListLength?o.customOnRenderListLength:1}return t}function jd(e,t){var n=null===t||void 0===t?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var o=[],i=0,a=r;i<a.length;i++){var s=a[i];if(s.preferMenuTargetAsEventTarget){var l=s.onClick,c=p(s,["onClick"]);o.push(d(d({},c),{onClick:tp(l,n)}))}else o.push(s)}return o}}var qd="ContextualMenu",Kd=yn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return be.apply(void 0,m([t,ud],e,!1))}}));function Yd(e,t){var n=e.hidden,r=e.items,i=e.theme,a=e.className,s=e.id,l=e.target,c=o.useState(),u=c[0],d=c[1],p=o.useState(),h=p[0],m=p[1],f=o.useState(),g=f[0],v=f[1],y=cl(qd,s),b=o.useCallback((function(){v(void 0),d(void 0),m(void 0)}),[]),C=o.useCallback((function(e,t,n){var r=e.key;u!==r&&(t.focus(),v(n),d(r),m(t))}),[u]);o.useEffect((function(){n&&b()}),[n,b]);var S=function(e,t){var n=o.useRef(!1);return o.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,b);return[u,C,function(){var e=ep(u,r),t=null;if(e&&(t={items:jd(e,{target:l}),target:h,onDismiss:S,isSubMenu:!0,id:y,shouldFocusOnMount:!0,shouldFocusOnContainer:g,directionalHint:Ot(i)?gs:bs,className:a,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&Pe(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=tp(n,l)}return t},S]}function Xd(e,t,n,r){var i=e.theme,a=e.isSubMenu,s=e.focusZoneProps,l=void 0===s?{}:s,c=l.checkForNoWrap,u=l.direction,d=void 0===u?Cu.vertical:u,p=o.useRef(),h=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},m=function(e){return e.which===ct||function(e){var t=Ot(i)?vt:ft;return!(e.which!==t||!a)&&!(d!==Cu.vertical&&(!c||tn(e.target,"data-no-horizontal-wrap")))}(e)||e.which===gt&&(e.altKey||e.metaKey)},f=function(e){p.current=Zd(e);var t=e.which===ct&&(ro()||eo());return h(e,m,t)},g=function(e){var t=p.current&&Zd(e);return p.current=!1,!!t&&!(eo()||ro())};return[f,function(e){return h(e,g,!0)},function(e){if(!f(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),r=e.which===gt,o=e.which===yt;if(!t&&(r||o)){var i=r?qt(n.current,n.current.lastChild,!0):jt(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=Ot(i)?ft:vt;e.disabled||t.which!==n&&t.which!==it&&(t.which!==yt||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var Qd=o.memo(o.forwardRef((function(e,t){var n,r=Co(Wd,e),i=(r.ref,p(r,["ref"])),a=o.useRef(null),s=ol(),l=cl(qd,i.id);Sl({name:qd,props:i,deprecations:{getMenuClassNames:"styles"}});var c=function(e,t){var n;return null===(n=i.onDismiss)||void 0===n?void 0:n.call(i,e,t)},u=yl(i.target,a),h=u[0],m=u[1],f=function(e,t,n){var r=e.hidden,i=e.onRestoreFocus,a=o.useRef(),s=o.useCallback((function(e){var t,n;i?i(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(n=null===(t=a.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t))}),[i]);return _o((function(){var e,o;if(r)a.current&&(s({originalElement:a.current,containsFocus:!0,documentContainsFocus:(null===(o=Re())||void 0===o?void 0:o.hasFocus())||!1}),a.current=void 0);else{var i=null===t||void 0===t?void 0:t.document.activeElement;(null===(e=n.current)||void 0===e?void 0:e.contains(i))||"BODY"===i.tagName||(a.current=i)}}),[r,null===t||void 0===t?void 0:t.document.activeElement,s,n]),[s]}(i,m,a)[0],g=Yd(i,c),v=g[0],y=g[1],b=g[2],C=g[3],S=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=o.useRef(!t),i=o.useRef(!1);o.useEffect((function(){r.current=!t,i.current=!n&&!t&&i.current}),[t,n]);var a=o.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,i,a]}(i),x=S[0],_=S[1],E=S[2],k=function(e){var t=o.useRef(!0),n=o.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout((function(){t.current=!0}),250)},t]}(s),w=k[0],I=k[1],P=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,i=o.useRef(void 0),a=function(){void 0!==i.current&&(t.clearTimeout(i.current),i.current=void 0)};return[a,function(e){i.current=t.setTimeout((function(){e(),a()}),r)},i]}(i,s),T=P[0],D=P[1],A=P[2],R=Hd(a,i.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,i=e.onMenuDismissed,a=e.onMenuOpened,s=pl(r),l=o.useRef(a),c=o.useRef(i),u=o.useRef(e);l.current=a,c.current=i,u.current=e,o.useEffect((function(){var e,t;r&&!1===s?null===(e=c.current)||void 0===e||e.call(c,u.current):r||!1===s||null===(t=l.current)||void 0===t||t.call(l,u.current)}),[r,s]),o.useEffect((function(){return function(){var e;return null===(e=c.current)||void 0===e?void 0:e.call(c,u.current)}}),[])}(i);var N=Xd(i,c,a,y),M=N[0],F=N[1],B=N[2],O=N[3],L=function(e,t,n,r,o,i,a,s,l,c,u,d,p){var h=e.target,m=function(){return!t.current||!i.current},f=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(c(),void 0===a&&r.focus(),ju(e)?(t.stopPropagation(),l((function(){r.focus(),u(e,r,!0)}))):l((function(){d(t),r.focus()})))},g=function(t,n,r){var o=jd(t,{target:h});if(c(),ju(t)||o&&o.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType;u(t,r,i)}}else v(t,n);n.stopPropagation(),n.preventDefault()},v=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&np(n,h);var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),!r&&n.defaultPrevented||p(n,!0)}};return[function(e,t,n){o.current&&(i.current=!0),m()||f(e,t,n)},function(e,a,s){var l=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===r||void 0===r?void 0:r.document.activeElement)&&f(e,a,s))},function(e,t){var n;if(!m()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(Iw){}else null===(n=s.current)||void 0===n||n.focus()},function(e,t){g(e,t,t.currentTarget)},function(e,t){v(e,t),t.stopPropagation()},v,g]}(i,I,A,m,x,_,v,a,D,T,y,C,c),H=L[0],V=L[1],z=L[2],U=L[3],W=L[4],G=L[5],j=L[6],q=function(e,t,n){var r=0,i=e.items,a=e.totalItemCount,s=e.hasCheckmarks,l=e.hasIcons;return o.createElement("ul",{className:t.list,onKeyDown:M,onKeyUp:F,role:"presentation"},i.map((function(e,n){var o=K(e,n,r,a,s,l,t);if(e.itemType!==zu.Divider&&e.itemType!==zu.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=i}return o})))},K=function(e,t,n,r,a,s,l){var c,u,d=[],p=e.iconProps||{iconName:"None"},h=e.getItemClassNames,m=e.itemProps,f=m?m.styles:void 0,g=e.itemType===zu.Divider?e.className:void 0,y=e.submenuIconProps?e.submenuIconProps.className:"";if(h)u=h(i.theme,qu(e),v===e.key,!!Gu(e),!!e.href,"None"!==p.iconName,e.className,g,p.className,y,e.primaryDisabled);else{var b={theme:i.theme,disabled:qu(e),expanded:v===e.key,checked:!!Gu(e),isAnchorLink:!!e.href,knownIcon:"None"!==p.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:p.className,subMenuClassName:y,primaryDisabled:e.primaryDisabled};u=Ud(Kd(null===(c=l.subComponentStyles)||void 0===c?void 0:c.menuItem,f),b)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=zu.Divider),e.itemType){case zu.Divider:d.push(Q(t,u));break;case zu.Header:d.push(Q(t,u));var C=J(e,u,l,t,a,s);d.push(X(C,e.key||t,u,e.title));break;case zu.Section:d.push(Y(e,u,l,t,a,s));break;default:var S=function(){return Z(e,u,t,n,r,a,s)},x=i.onRenderContextualMenuItem?i.onRenderContextualMenuItem(e,S):S();d.push(X(x,e.key||t,u,e.title))}return o.createElement(o.Fragment,{key:e.key},d)},Y=function(e,t,n,r,i,a){var s=e.sectionProps;if(s){var c,u;if(s.title){var p=void 0,h="";if("string"===typeof s.title){var m=l+s.title.replace(/\s/g,"");p={key:"section-".concat(s.title,"-title"),itemType:zu.Header,text:s.title,id:m},h=m}else{var f=s.title.id||l+s.title.key.replace(/\s/g,"");p=d(d({},s.title),{id:f}),h=f}p&&(u={role:"group","aria-labelledby":h},c=J(p,t,n,r,i,a))}if(s.items&&s.items.length>0){var g=0;return o.createElement("li",{role:"presentation",key:s.key||e.key||"section-".concat(r)},o.createElement("div",d({},u),o.createElement("ul",{className:n.list,role:"presentation"},s.topDivider&&Q(r,t,!0,!0),c&&X(c,e.key||r,t,e.title),s.items.map((function(e,t){var r=K(e,t,g,Gd(s.items),i,a,n);if(e.itemType!==zu.Divider&&e.itemType!==zu.Header){var o=e.customOnRenderListLength?e.customOnRenderListLength:1;g+=o}return r})),s.bottomDivider&&Q(r,t,!1,!0))))}}},X=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Q=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Z=function(e,t,n,r,a,s,l){if(e.onRender)return e.onRender(d({"aria-posinset":r+1,"aria-setsize":a},e),c);var u={item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:a,hasCheckmarks:s,hasIcons:l,contextualMenuItemAs:i.contextualMenuItemAs,onItemMouseEnter:H,onItemMouseLeave:z,onItemMouseMove:V,onItemMouseDown:Jd,executeItemClick:G,onItemKeyDown:O,expandedMenuItemKey:v,openSubMenu:y,dismissSubMenu:C,dismissMenu:c};return e.href?o.createElement(Ed,d({},u,{onItemClick:W})):e.split&&ju(e)?o.createElement(Dd,d({},u,{onItemClick:U,onItemClickBase:j,onTap:T})):o.createElement(kd,d({},u,{onItemClick:U,onItemClickBase:j}))},J=function(e,t,n,r,a,s){var l=i.contextualMenuItemAs,c=void 0===l?dd:l,u=e.itemProps,p=e.id,h=u&&mr(u,hr);return o.createElement("div",d({id:p,className:n.header},h,{style:e.style}),o.createElement(c,d({item:e,classNames:t,index:r,onCheckmarkClick:a?U:void 0,hasIcons:s},u)))},$=i.isBeakVisible,ee=i.items,te=i.labelElementId,ne=i.id,re=i.className,oe=i.beakWidth,ie=i.directionalHint,ae=i.directionalHintForRTL,se=i.alignTargetEdge,le=i.gapSpace,ce=i.coverTarget,ue=i.ariaLabel,de=i.doNotLayer,pe=i.target,he=i.bounds,me=i.useTargetWidth,fe=i.useTargetAsMinWidth,ge=i.directionalHintFixed,ve=i.shouldFocusOnMount,ye=i.shouldFocusOnContainer,be=i.title,Ce=i.styles,Se=i.theme,xe=i.calloutProps,_e=i.onRenderSubMenu,Ee=void 0===_e?$d:_e,ke=i.onRenderMenuList,we=void 0===ke?function(e,t){return q(e,Te)}:ke,Ie=i.focusZoneProps,Pe=i.getMenuClassNames,Te=Pe?Pe(Se,re):zd(Ce,{theme:Se,className:re}),De=function e(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.iconProps)return!0;if(o.itemType===zu.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(ee);var Ae,Ne=d(d({direction:Cu.vertical,handleTabKey:Su,isCircularNavigation:!0},Ie),{className:kn(Te.root,null===(n=i.focusZoneProps)||void 0===n?void 0:n.className)}),Me=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(ee),Fe=v&&!0!==i.hidden?b():null;$=void 0===$?R<=Pd.medium:$;var Be=h.current;if((me||fe)&&Be&&Be.offsetWidth){var Oe=Be.getBoundingClientRect().width-2;me?Ae={width:Oe}:fe&&(Ae={minWidth:Oe})}if(ee&&ee.length>0){var Le=Gd(ee),He=Te.subComponentStyles?Te.subComponentStyles.callout:void 0;return o.createElement(Vd.Consumer,null,(function(e){return o.createElement(oc,d({styles:He,onRestoreFocus:f},xe,{target:pe||e.target,isBeakVisible:$,beakWidth:oe,directionalHint:ie,directionalHintForRTL:ae,gapSpace:le,coverTarget:ce,doNotLayer:de,className:kn("ms-ContextualMenu-Callout",xe&&xe.className),setInitialFocus:ve,onDismiss:i.onDismiss||e.onDismiss,onScroll:w,bounds:he,directionalHintFixed:ge,alignTargetEdge:se,hidden:i.hidden||e.hidden,ref:t}),o.createElement("div",{style:Ae,ref:a,id:ne,className:Te.container,tabIndex:ye?0:-1,onKeyDown:B,onKeyUp:F,onFocusCapture:E,"aria-label":ue,"aria-labelledby":te,role:"menu"},be&&o.createElement("div",{className:Te.title}," ",be," "),ee&&ee.length?function(e,t){var n=i.focusZoneAs,r=void 0===n?Bu:n;return o.createElement(r,d({},t),e)}(we({ariaLabel:ue,items:ee,totalItemCount:Le,hasCheckmarks:Me,hasIcons:De,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return K(e,n,r,o,i,a,t)}(e,Te)},labelElementId:te},(function(e,t){return q(e,Te)})),Ne):null,Fe&&Ee(Fe,$d)),o.createElement(Br,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||Ie(e,t)}));function Zd(e){return e.which===lt||"Meta"===e.key}function Jd(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function $d(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function ep(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===zu.Section&&o.sectionProps){var i=ep(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function tp(e,t){return e?function(n,r){return np(n,t),e(n,r)}:e}function np(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}Qd.displayName="ContextualMenuBase";var rp={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function op(e){return o.createElement(ip,d({},e))}var ip=vo(Qd,(function(e){var t=e.className,n=e.theme,r=ka(rp,n),o=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:ri.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:nd,lineHeight:nd,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}}),(function(e){return{onRenderSubMenu:e.onRenderSubMenu?io(e.onRenderSubMenu,op):op}}),{scope:"ContextualMenu"}),ap=ip;ap.displayName="ContextualMenu";var sp,lp,cp={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},up=yn((function(e,t,n,r,o,i,a,s,l,c,u){var d,p,h=ka(cp,e||{}),m=c&&!u;return ve({root:[h.msButton,t.root,r,l&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover .".concat(h.msButtonIcon)]=t.iconExpandedHovered,d[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[cp.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!m&&!l&&{selectors:(p={":hover":t.rootHovered},p[":hover .".concat(h.msButtonLabel)]=t.labelHovered,p[":hover .".concat(h.msButtonIcon)]=t.iconHovered,p[":hover .".concat(h.msButtonDescription)]=t.descriptionHovered,p[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active .".concat(h.msButtonIcon)]=t.iconPressed,p[":active .".concat(h.msButtonDescription)]=t.descriptionPressed,p[":active .".concat(h.msButtonMenuIcon)]=t.menuIconPressed,p)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!m&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),dp=yn((function(e,t,n,r,o){return{root:me(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:me(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:me(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:me(e.splitButtonFlexContainer),divider:me(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}})),pp="BaseButton",hp=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=o.createRef(),n._splitButtonContainer=o.createRef(),n._mergedRef=xo(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=yn((function(e){return d(d({},e),{hasMenu:!0})})),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var i=r.className,a=r.imageProps,s=p(r,["className","imageProps"]);if(r.styles)return o.createElement(Rc,d({className:kn(n._classNames.icon,i),imageProps:a},s));if(r.iconName)return o.createElement(Tc,d({className:kn(n._classNames.icon,i)},s));if(a)return o.createElement(Hc,d({className:kn(n._classNames.icon,i),imageProps:a},s))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,i=e.secondaryText,a=void 0===i?n.props.description:i,s=e.onRenderText,l=void 0===s?n._onRenderText:s,c=e.onRenderDescription,u=void 0===c?n._onRenderDescription:c;return t||"string"===typeof r||a?o.createElement("span",{className:n._classNames.textContainer},l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)):[l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"===typeof t&&(e=t),n._hasText()?o.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"===typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?o.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?o.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return o.createElement(Tc,d({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.menuAs?_n(n.props.menuAs,ap):ap;return o.createElement(t,d({},e))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&Gt(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu(),!n._processingTouch&&n.props.onClick?n.props.onClick(e):n._processingTouch&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||e.which!==it&&e.which!==ut?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===it||e.which===ut?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){var t;if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var r=e.which===gt,o=e.which===yt;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var i=n.props.onMenuClick;i&&i(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==it&&e.which!==ut||Tr(!0,e.target,null===(t=n.context)||void 0===t?void 0:t.registeredProviders),!e.altKey&&!e.metaKey&&(r||o))if(!n.state.menuHidden&&n.props.menuProps)(void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props,r=t.onMenuClick,o=t.menuProps;r&&r(e,n.props);var i="boolean"===typeof(null===o||void 0===o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(n._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},br(n),n._async=new we(n),n._events=new Ae(n),qe(pp,t,["menuProps","onClick"],"split",n.props.split),Ye(pp,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=zn(),n._descriptionId=zn(),n._ariaDescriptionId=zn(),n.state={menuHidden:!0},n}return u(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,d=t.href,p=t.iconProps,h=t.menuIconProps,m=t.styles,f=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,C=t.role,S=this.state.menuHidden,x=a||l;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,x,f,!S,!!this.props.menuProps,this.props.split,!!s):up(v,m,i,g,p&&p.className,h&&h.className,x,!!this.props.menuProps,f,!S,this.props.split);var _=this,E=_._ariaDescriptionId,k=_._labelId,w=_._descriptionId,I=!x&&!!d,P=I?"a":"button",T=mr(Pe(I?{}:{type:"button"},this.props.rootProps,this.props),I?Jn:$n,["disabled"]),D=r||T["aria-label"],A=void 0;n?A=E:u&&this.props.onRenderDescription!==Qe?A=w:T["aria-describedby"]&&(A=T["aria-describedby"]);var R=void 0;T["aria-labelledby"]?R=T["aria-labelledby"]:A&&!D&&(R=this._hasText()?k:void 0);var N=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),M="menuitemcheckbox"===C||"checkbox"===C,F=M||!0===y?!!f:void 0,B=Pe(T,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:x&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":D,"aria-labelledby":R,"aria-describedby":A,"aria-disabled":x,"data-is-focusable":N})[M?"aria-checked":"aria-pressed"]=F,e));if(o&&(B["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(P,B);if(this.props.menuProps){var O=this.props.menuProps.id,L=void 0===O?"".concat(this._labelId,"-menu"):O;Pe(B,{"aria-expanded":!S,"aria-controls":S?null:L,"aria-haspopup":!0})}return this._onRenderContent(P,B)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?(Tr(!0,void 0,null===(e=this.context)||void 0===e?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(Tr(!0,void 0,null===(t=this.context)||void 0===t?void 0:t.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,i=e,a=r.menuIconProps,s=r.menuProps,l=r.onRenderIcon,c=void 0===l?this._onRenderIcon:l,u=r.onRenderAriaDescription,p=void 0===u?this._onRenderAriaDescription:u,h=r.onRenderChildren,m=void 0===h?this._onRenderChildren:h,f=r.onRenderMenu,g=void 0===f?this._onRenderMenu:f,v=r.onRenderMenuIcon,y=void 0===v?this._onRenderMenuIcon:v,b=r.disabled,C=r.keytipProps;C&&s&&(C=this._getMemoizedMenuButtonKeytipProps(C));var S=function(e){return o.createElement(i,d({},t,e),o.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(r,n._onRenderIcon),n._onRenderTextContents(),p(r,n._onRenderAriaDescription),m(r,n._onRenderChildren),!n._isSplitButton&&(s||a||n.props.onRenderMenuIcon)&&y(n.props,n._onRenderMenuIcon),s&&!s.doNotLayer&&n._shouldRenderMenu()&&g(n._getMenuProps(s),n._onRenderMenu)))},x=C?o.createElement(_d,{keytipProps:this._isSplitButton?void 0:C,ariaDescribedBy:t["aria-describedby"],disabled:b},(function(e){return S(e)})):S();return s&&s.doNotLayer?o.createElement(o.Fragment,null,x,this._shouldRenderMenu()&&g(this._getMenuProps(s),this._onRenderMenu)):o.createElement(o.Fragment,null,x,o.createElement(Br,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,n=this.state.menuHidden;return e.ariaLabel||e.labelElementId||!this._hasText()||(e=d(d({},e),{labelElementId:this._labelId})),d(d({id:this._labelId+"-menu",directionalHint:ps},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?n:void 0,className:kn("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,i=r.styles,a=void 0===i?{}:i,s=r.disabled,l=r.allowDisabledFocus,c=r.checked,u=r.getSplitButtonClassNames,p=r.primaryDisabled,h=r.menuProps,m=r.toggle,f=r.role,g=r.primaryActionButtonProps,v=this.props.keytipProps,y=this.state.menuHidden,b=u?u(!!s,!y,!!c,!!l):a&&dp(a,!!s,!y,!!c,!!p);Pe(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),v&&h&&(v=this._getMemoizedMenuButtonKeytipProps(v));var C=mr(t,[],["disabled"]);g&&Pe(t,g);var S=function(r){return o.createElement("div",d({},C,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:f||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!y,"aria-pressed":m?!!c:void 0,"aria-describedby":Tt(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:b&&b.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:s||p?void 0:n._onSplitButtonPrimaryClick,tabIndex:!s&&!p||l?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),o.createElement("span",{style:{display:"flex",width:"100%"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(b,r),n._onRenderSplitButtonDivider(b)))};return v?o.createElement(_d,{keytipProps:v,disabled:s},(function(e){return S(e)})):S()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return o.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,i=r.allowDisabledFocus,a=r.checked,s=r.disabled,l=r.splitButtonMenuProps,c=r.splitButtonAriaLabel,u=r.primaryDisabled,p=this.state.menuHidden,h=this.props.menuIconProps;void 0===h&&(h={iconName:"ChevronDown"});var m=d(d({},l),{styles:e,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:d(d({},h),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!p,"data-is-focusable":!1});return o.createElement(t,d({},m,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:u&&!i?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===yt&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=Mr,t}(o.Component);!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(sp||(sp={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(lp||(lp={}));var mp={outline:0},fp=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},gp=yn((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[fa(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+a,borderRadius:o.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-block",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[fa(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":mp,":focus":mp}}],iconDisabled:{color:l,selectors:(t={},t[ca]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[ca]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:fp(i.mediumPlus.fontSize),menuIcon:fp(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:ya}})),vp=yn((function(e,t){var n,r,o,i,a,s,l,c,u,p,h,m,f,g=e.effects,v=e.palette,y=e.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8};return ge({splitButtonContainer:[fa(e,{highContrastStyle:b,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(n={},n[ca]=d({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[ca]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[ca]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(i={},i[ca]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[ca]=d({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[ca]=d({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid ".concat(v.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[ca]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:d(d({},C),{selectors:(c={},c[ca]={backgroundColor:"WindowText"},c)}),splitButtonDividerDisabled:d(d({},C),{selectors:(u={},u[ca]={backgroundColor:"GrayText"},u)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[ca]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(m={},m[ca]={color:"GrayText"},m)}},p[ca]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},p)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(f={},f[ca]=d({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f)},splitButtonMenuFocused:d({},fa(e,{highContrastStyle:b,inset:2}))},t)}));function yp(e){var t,n,r,o,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,u=a.buttonBackgroundHovered,p=a.buttonBackgroundDisabled,h=a.buttonText,m=a.buttonTextHovered,f=a.buttonTextDisabled,g=a.buttonTextChecked,v=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:h},rootHovered:{backgroundColor:u,color:m,selectors:(t={},t[ca]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:c,color:g},rootExpanded:{backgroundColor:c,color:g},rootChecked:{backgroundColor:c,color:g},rootCheckedHovered:{backgroundColor:c,color:v},rootDisabled:{color:f,backgroundColor:p,selectors:(n={},n[ca]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[ca]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(o={},o[ca]={color:"Highlight"},o)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:d(d({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[ca]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function bp(e){var t,n,r,o,i,a,s,l,c,u=e.palette,p=e.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid ".concat(p.primaryButtonBackground),color:p.primaryButtonText,selectors:(t={},t[ca]=d({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".".concat(wr," &:focus")]={selectors:{":after":{border:"none",outlineColor:u.white}}},t)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid ".concat(p.primaryButtonBackgroundHovered),color:p.primaryButtonTextHovered,selectors:(n={},n[ca]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid ".concat(p.primaryButtonBackgroundPressed),color:p.primaryButtonTextPressed,selectors:(r={},r[ca]=d({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{color:p.primaryButtonTextDisabled,backgroundColor:p.primaryButtonBackgroundDisabled,selectors:(o={},o[ca]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(i={},i[ca]={border:"none"},i)},splitButtonDivider:d(d({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:u.white,selectors:(a={},a[ca]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(s={},s[ca]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[ca]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:u.neutralTertiary,selectors:(c={},c[ca]={color:"GrayText"},c)}}}var Cp,Sp=yn((function(e,t,n){var r=gp(e),o=vp(e);return ge(r,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:ri.semibold}},n?bp(e):yp(e),o,t)})),xp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(hp,d({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:Sp(i,r,n),onRenderDescription:Qe}))},t=h([Bn("DefaultButton",["theme","styles"],!0)],t)}(o.Component),_p=yn((function(e,t){var n,r,o;return ge(gp(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[ca]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(r={},r[ca]={color:"Highlight"},r)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:(o={},o[ca]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),Ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(hp,d({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:_p(n,t),onRenderDescription:Qe}))},t=h([Bn("ActionButton",["theme","styles"],!0)],t)}(o.Component),kp=yn((function(e,t,n){var r,o,i,a,s,l=e.fonts,c=e.palette,u=gp(e),p=vp(e),h={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:ri.semibold},description:[l.small,{lineHeight:"100%"}]},m={description:{color:c.neutralSecondary},descriptionHovered:{color:c.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},f={description:{color:c.white,selectors:(r={},r[ca]=d({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},descriptionHovered:{color:c.white,selectors:(o={},o[ca]={backgroundColor:"Highlight",color:"Window"},o)},descriptionPressed:{color:"inherit",selectors:(i={},i[ca]=d({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},descriptionChecked:{color:"inherit",selectors:(a={},a[ca]=d({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},descriptionDisabled:{color:"inherit",selectors:(s={},s[ca]={color:"inherit"},s)}};return ge(u,h,n?bp(e):yp(e),n?f:m,p,t)})),wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(hp,d({},this.props,{variantClassName:n?"ms-Button--compoundPrimary":"ms-Button--compound",styles:kp(i,r,n)}))},t=h([Bn("CompoundButton",["theme","styles"],!0)],t)}(o.Component),Ip=yn((function(e,t){var n,r=gp(e),o=vp(e),i=e.palette;return ge(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[ca]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)})),Pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(hp,d({},this.props,{variantClassName:"ms-Button--icon",styles:Ip(n,t),onRenderText:Qe,onRenderDescription:Qe}))},t=h([Bn("IconButton",["theme","styles"],!0)],t)}(o.Component),Tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return o.createElement(xp,d({},this.props,{primary:!0,onRenderDescription:Qe}))},t=h([Bn("PrimaryButton",["theme","styles"],!0)],t)}(o.Component),Dp=(function(e){function t(t){var n=e.call(this,t)||this;return je("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),n}u(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case lp.command:return o.createElement(Ep,d({},e));case lp.compound:return o.createElement(wp,d({},e));case lp.icon:return o.createElement(Pp,d({},e));case lp.primary:return o.createElement(Tp,d({},e));default:return o.createElement(xp,d({},e))}}}(o.Component),yn((function(e,t,n,r){var o,i,a,s,l,c,u,p,h,m,f,g,v,y,b=gp(e),C=vp(e),S=e.palette,x=e.semanticColors;return ge(b,C,{root:[fa(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:S.white,color:S.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(o={},o[ca]={border:"none"},o)}],rootHovered:{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(i={},i[ca]={color:"Highlight"},i[".".concat(cp.msButtonIcon)]={color:S.themeDarkAlt},i[".".concat(cp.msButtonMenuIcon)]={color:S.neutralPrimary},i)},rootPressed:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(a={},a[".".concat(cp.msButtonIcon)]={color:S.themeDark},a[".".concat(cp.msButtonMenuIcon)]={color:S.neutralPrimary},a)},rootChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(s={},s[".".concat(cp.msButtonIcon)]={color:S.themeDark},s[".".concat(cp.msButtonMenuIcon)]={color:S.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:S.neutralQuaternaryAlt,selectors:(l={},l[".".concat(cp.msButtonIcon)]={color:S.themeDark},l[".".concat(cp.msButtonMenuIcon)]={color:S.neutralPrimary},l)},rootExpanded:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(c={},c[".".concat(cp.msButtonIcon)]={color:S.themeDark},c[".".concat(cp.msButtonMenuIcon)]={color:S.neutralPrimary},c)},rootExpandedHovered:{backgroundColor:S.neutralQuaternaryAlt},rootDisabled:{backgroundColor:S.white,selectors:(u={},u[".".concat(cp.msButtonIcon)]={color:x.disabledBodySubtext,selectors:(p={},p[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),p)},u[ca]=d({color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)},splitButtonContainer:{height:"100%",selectors:(h={},h[ca]={border:"none"},h)},splitButtonDividerDisabled:{selectors:(m={},m[ca]={backgroundColor:"Window"},m)},splitButtonDivider:{backgroundColor:S.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:S.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:S.neutralSecondary,selectors:{":hover":{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(f={},f[ca]={color:"Highlight"},f[".".concat(cp.msButtonIcon)]={color:S.neutralPrimary},f)},":active":{backgroundColor:S.neutralLight,selectors:(g={},g[".".concat(cp.msButtonIcon)]={color:S.neutralPrimary},g)}}},splitButtonMenuButtonDisabled:{backgroundColor:S.white,selectors:(v={},v[ca]=d({color:"GrayText",border:"none",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),v)},splitButtonMenuButtonChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:S.neutralLight,color:S.black,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:S.neutralPrimary},splitButtonMenuIconDisabled:{color:S.neutralTertiary},label:{fontWeight:"normal"},icon:{color:S.themePrimary},menuIcon:(y={color:S.neutralSecondary},y[ca]={color:"GrayText"},y)},t)}))),Ap=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(hp,d({},this.props,{variantClassName:"ms-Button--commandBar",styles:Dp(n,t),onRenderDescription:Qe}))},t=h([Bn("CommandBarButton",["theme","styles"],!0)],t)}(o.Component),Rp=Ep,Np=yn((function(e,t){return ge({root:[fa(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)}));!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(xp,d({},this.props,{styles:Np(n,t),onRenderDescription:Qe}))},t=h([Bn("MessageBarButton",["theme","styles"],!0)],t)}(o.Component);!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Cp||(Cp={}));var Mp=function(e){void 0===e&&(e=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}}());var t,n=e;function r(e,t){var r=n.getCachedMeasurement(e);if(void 0!==r)return r;var o=t();return n.addMeasurementToCache(e,o),o}function o(e,o,i){for(var a=e,s=r(e,i);s>t;){var l=o(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=n.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(t&&i.renderedData&&!i.dataToMeasure)return d(d({},i),function(e,n,r,o){var i;return i=e>t?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:r},t=e,d(d({},i),{measureContainer:!1})}(s,e.data,i.renderedData,e.onGrowData));t=s}var l=d(d({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&e.onGrowData?d(d({},l),function(e,i,a,s){for(var l=e,c=r(e,a);c<t;){var u=i(l);if(void 0===u)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=n.getCachedMeasurement(u)))return{dataToMeasure:u};l=u}return d({resizeDirection:"shrink"},o(l,s,a))}(i.dataToMeasure,e.onGrowData,a,e.onReduceData)):d(d({},l),o(i.dataToMeasure,e.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==n.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:d({},e),resizeDirection:"grow",measureContainer:!0}}}},Fp=o.createContext({isMeasured:!1}),Bp={position:"fixed",visibility:"hidden"},Op={position:"relative"};function Lp(e,t){var n;switch(t.type){case"resizeData":return d({},t.value);case"dataToMeasure":return d(d({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return d(d({},e),((n={})[t.type]=t.value,n))}}function Hp(e,t){var n=il(Mp),r=o.useRef(null),i=o.useRef(null),a=o.useRef(!1),s=ol(),l=function(e,t,n){var r=il((function(){return t.getInitialResizeGroupState(e.data)})),i=o.useReducer(Lp,r),a=i[0],s=i[1];o.useEffect((function(){s({type:"dataToMeasure",value:e.data})}),[e.data]);var l=o.useRef(r);return l.current=d({},a),[l,o.useCallback((function(e){e&&s({type:"resizeData",value:e})}),[]),o.useCallback((function(){n.current&&s({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=l[0],u=l[1],p=l[2];o.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),o.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();o=e.direction===Cp.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?i:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Cp.vertical?n.height:n.width}),o);u(l)}),t.current)})),dl(gl(),"resize",s.debounce(p,16,{leading:!0}));var h=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),m=!a.current&&h;return[c.current.dataToMeasure,c.current.renderedData,p,r,i,h,m]}var Vp={isMeasured:!0},zp=o.forwardRef((function(e,t){var n=o.useRef(null),r=ul(n,t),i=Hp(e,n),a=i[0],s=i[1],l=i[2],c=i[3],u=i[4],p=i[5],h=i[6];o.useImperativeHandle(e.componentRef,(function(){return{remeasure:l}}),[l]),function(e){Sl({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var m=e.className,f=e.onRenderData,g=mr(e,hr,["data"]);return o.createElement("div",d({},g,{className:m,ref:r}),o.createElement("div",{style:Op},p&&!h&&o.createElement("div",{style:Bp,ref:u},o.createElement(Fp.Provider,{value:Vp},f(a))),o.createElement("div",{ref:c,style:h?Bp:void 0,"data-automation-id":"visibleContent"},h?f(a):s&&f(s))))}));zp.displayName="ResizeGroupBase";var Up=zp,Wp=cn(),Gp=function(){return null},jp={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},qp=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onReduceData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props.overflowIndex,o=t[r];if(o)return(t=m([],t,!0)).splice(r,1),n=m(m([],n,!0),[o],!1),d(d({},e),{renderedItems:t,renderedOverflowItems:n})},n._onGrowData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props,o=r.overflowIndex,i=r.maxDisplayedItems,a=(n=m([],n,!0)).pop();if(a&&!(t.length>=i))return(t=m([],t,!0)).splice(o,0,a),d(d({},e),{renderedItems:t,renderedOverflowItems:n})},n._onRenderBreadcrumb=function(e){var t=e.props,r=t.ariaLabel,i=t.dividerAs,a=void 0===i?Rc:i,s=t.onRenderItem,l=t.overflowAriaLabel,c=t.overflowIndex,u=t.onRenderOverflowIcon,p=t.overflowButtonAs,h=e.renderedOverflowItems,m=e.renderedItems,f=h.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?n._onBreadcrumbClicked.bind(n,e):null,href:e.href,disabled:!t,itemProps:t?void 0:jp}})),g=m.length-1,v=h&&0!==h.length,y=m.map((function(e,t){var r=n._onRenderItem;return e.onRender&&(r=io(e.onRender,r)),s&&(r=io(s,r)),o.createElement("li",{className:n._classNames.listItem,key:e.key||String(t)},r(e),(t!==g||v&&t===c-1)&&o.createElement(a,{className:n._classNames.chevron,iconName:Ot(n.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(v){var b=u?{}:{iconName:"More"},C=u||Gp,S=p||Pp;y.splice(c,0,o.createElement("li",{className:n._classNames.overflow,key:"overflow"},o.createElement(S,{className:n._classNames.overflowButton,iconProps:b,role:"button","aria-haspopup":"true",ariaLabel:l,onRenderMenuIcon:C,menuProps:{items:f,directionalHint:ps}}),c!==g+1&&o.createElement(a,{className:n._classNames.chevron,iconName:Ot(n.props.theme)?"ChevronLeft":"ChevronRight",item:h[h.length-1]})))}var x=mr(n.props,qn,["className"]);return o.createElement("div",d({className:n._classNames.root,role:"navigation","aria-label":r},x),o.createElement(Bu,d({componentRef:n._focusZone,direction:Cu.horizontal},n.props.focusZoneProps),o.createElement("ol",{className:n._classNames.list},y)))},n._onRenderItem=function(e){if(!e)return null;var t=e.as,r=e.href,i=e.onClick,a=e.isCurrentItem,s=e.text,l=e.onRenderContent,c=p(e,["as","href","onClick","isCurrentItem","text","onRenderContent"]),u=Kp;if(l&&(u=io(l,u)),n.props.onRenderItemContent&&(u=io(n.props.onRenderItemContent,u)),i||r)return o.createElement(Wu,d({},c,{as:t,className:n._classNames.itemLink,href:r,"aria-current":a?"page":void 0,onClick:n._onBreadcrumbClicked.bind(n,e)}),o.createElement(Cc,d({content:s,overflowMode:lc.Parent},n.props.tooltipHostProps),u(e)));var h=t||"span";return o.createElement(h,d({},c,{className:n._classNames.item}),o.createElement(Cc,d({content:s,overflowMode:lc.Parent},n.props.tooltipHostProps),u(e)))},n._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},br(n),n._validateProps(t),n}return u(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,n=void 0===t?this._onReduceData:t,r=e.onGrowData,i=void 0===r?this._onGrowData:r,a=e.overflowIndex,s=e.maxDisplayedItems,l=e.items,c=e.className,u=e.theme,d=e.styles,p=m([],l,!0),h=p.splice(a,p.length-s),f={props:this.props,renderedItems:p,renderedOverflowItems:h};return this._classNames=Wp(d,{className:c,theme:u}),o.createElement(Up,{onRenderData:this._onRenderBreadcrumb,onReduceData:n,onGrowData:i,data:f})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(o.Component);function Kp(e){return e?o.createElement(o.Fragment,null,e.text):null}var Yp={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},Xp={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Qp=ma(0,ha),Zp=ma(da,639),Jp=(vo(qp,(function(e){var t,n,r,o,i,a=e.className,s=e.theme,l=s.palette,c=s.semanticColors,u=s.fonts,p=ka(Yp,s),h=c.menuItemBackgroundHovered,m=c.menuItemBackgroundPressed,f=l.neutralSecondary,g=ri.regular,v=l.neutralPrimary,y=l.neutralPrimary,b=ri.semibold,C=l.neutralSecondary,S=l.neutralSecondary,x={fontWeight:b,color:y},_={":hover":{color:v,backgroundColor:h,cursor:"pointer",selectors:(t={},t[ca]={color:"Highlight",backgroundColor:"transparent"},t)},":active":{backgroundColor:m,color:v},"&:active:hover":{color:v,backgroundColor:m},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},E={color:f,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:g};return{root:[p.root,u.medium,{margin:"11px 0 1px"},a],list:[p.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[p.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":d(d({},x),(n={},n[ca]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},n)),"&:last-child .ms-Breadcrumb-item":x}}],chevron:[p.chevron,{color:C,fontSize:u.small.fontSize,selectors:(r={},r[ca]=d({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r[Zp]={fontSize:8},r[Qp]={fontSize:8},r)}],overflow:[p.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[p.overflowButton,fa(s,{highContrastStyle:{left:1,right:1,top:1,bottom:1}}),Xp,{fontSize:16,color:S,height:"100%",cursor:"pointer",selectors:d(d({},_),(o={},o[Qp]={padding:"4px 6px"},o[Zp]={fontSize:u.mediumPlus.fontSize},o))}],itemLink:[p.itemLink,fa(s),Xp,d(d({},E),{selectors:d((i={":focus":{color:l.neutralDark}},i[".".concat(wr," &:focus")]={outline:"none"},i),_)})],item:[p.item,d(d({},E),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"}),cn()),$p=o.forwardRef((function(e,t){var n=cl(void 0,e.id),r=e.items,i=e.columnCount,a=e.onRenderItem,s=e.isSemanticRadio,l=e.ariaPosInSet,c=void 0===l?e.positionInSet:l,u=e.ariaSetSize,p=void 0===u?e.setSize:u,h=e.styles,m=e.doNotContainWithinFocusZone,f=mr(e,qn,m?[]:["onBlur"]),g=Jp(h,{theme:e.theme}),v=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}(r,i),y=o.createElement("table",d({"aria-posinset":c,"aria-setsize":p,id:n,role:s?"radiogroup":"grid"},f,{className:g.root}),o.createElement("tbody",{role:s?"presentation":"rowgroup"},v.map((function(e,t){return o.createElement("tr",{role:s?"presentation":"row",key:t},e.map((function(e,t){return o.createElement("td",{role:"presentation",key:t+"-cell",className:g.tableCell},a(e,t))})))}))));return m?y:o.createElement(Bu,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:g.focusedContainer,onBlur:e.onBlur},y)})),eh=vo($p,(function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}}));eh.displayName="ButtonGrid";var th,nh,rh,oh,ih=function(e){var t,n=cl("gridCell"),r=e.item,i=e.id,a=void 0===i?n:i,s=e.className,l=e.selected,c=e.disabled,u=void 0!==c&&c,p=e.onRenderItem,h=e.cellDisabledStyle,m=e.cellIsSelectedStyle,f=e.index,g=e.label,v=e.getClassNames,y=e.onClick,b=e.onHover,C=e.onMouseMove,S=e.onMouseLeave,x=e.onMouseEnter,_=e.onFocus,E=mr(e,$n),k=o.useCallback((function(e){y&&!u&&y(r,e)}),[u,r,y]),w=o.useCallback((function(e){x&&x(e)||!b||u||b(r,e)}),[u,r,b,x]),I=o.useCallback((function(e){C&&C(e)||!b||u||b(r,e)}),[u,r,b,C]),P=o.useCallback((function(e){S&&S(e)||!b||u||b(void 0,e)}),[u,b,S]),T=o.useCallback((function(e){_&&!u&&_(r,e)}),[u,r,_]);return o.createElement(Rp,d({id:a,"data-index":f,"data-is-focusable":!0,"aria-selected":l,ariaLabel:g,title:g},E,{className:kn(s,(t={},t[""+m]=l,t[""+h]=u,t)),onClick:k,onMouseEnter:w,onMouseMove:I,onMouseLeave:P,onFocus:T,getClassNames:v}),p(r))};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(th||(th={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(nh||(nh={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(rh||(rh={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(oh||(oh={}));var ah={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12,HoursInOneDay:24,SecondsInOneMinute:60,OffsetTo24HourFormat:12,TimeFormatRegex:/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i};function sh(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function lh(e,t){return sh(e,t*ah.DaysInOneWeek)}function ch(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%ah.MonthInOneYear+ah.MonthInOneYear)%ah.MonthInOneYear&&(n=sh(n,-n.getDate())),n}function uh(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%ah.MonthInOneYear+ah.MonthInOneYear)%ah.MonthInOneYear&&(n=sh(n,-n.getDate())),n}function dh(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function ph(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function hh(e,t){return ch(e,t-e.getMonth())}function mh(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function fh(e,t){return xh(e)-xh(t)}function gh(e,t,n,r,o){void 0===o&&(o=1);var i,a=[],s=null;switch(r||(r=[th.Monday,th.Tuesday,th.Wednesday,th.Thursday,th.Friday]),o=Math.max(o,1),t){case oh.Day:s=sh(i=Sh(e),o);break;case oh.Week:case oh.WorkWeek:s=sh(i=Ch(Sh(e),n),ah.DaysInOneWeek);break;case oh.Month:s=ch(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}var l=i;do{(t!==oh.WorkWeek||-1!==r.indexOf(l.getDay()))&&a.push(l),l=sh(l,1)}while(!mh(l,s));return a}function vh(e,t){for(var n=0,r=t;n<r.length;n++){if(mh(e,r[n]))return!0}return!1}function yh(e,t,n,r){var o=r.getFullYear(),i=r.getMonth(),a=1,s=new Date(o,i,a),l=a+(t+ah.DaysInOneWeek-1)-function(e,t){return e!==th.Sunday&&t<e?t+ah.DaysInOneWeek:t}(t,s.getDay()),c=new Date(o,i,l);a=c.getDate();for(var u=[],d=0;d<e;d++)u.push(bh(c,t,n)),a+=ah.DaysInOneWeek,c=new Date(o,i,a);return u}function bh(e,t,n){switch(n){case rh.FirstFullWeek:return _h(e,t,ah.DaysInOneWeek);case rh.FirstFourDayWeek:return _h(e,t,4);default:return function(e,t){var n=Eh(e)-1,r=(e.getDay()-n%ah.DaysInOneWeek-t+2*ah.DaysInOneWeek)%ah.DaysInOneWeek;return Math.floor((n+r)/ah.DaysInOneWeek+1)}(e,t)}}function Ch(e,t){var n=t-e.getDay();return n>0&&(n-=ah.DaysInOneWeek),sh(e,n)}function Sh(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function xh(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function _h(e,t,n){var r=Eh(e)-1,o=e.getDay()-r%ah.DaysInOneWeek,i=Eh(new Date(e.getFullYear()-1,nh.December,31))-1,a=(t-o+2*ah.DaysInOneWeek)%ah.DaysInOneWeek;0!==a&&a>=n&&(a-=ah.DaysInOneWeek);var s=r-a;return s<0&&(0!==(a=(t-(o-=i%ah.DaysInOneWeek)+2*ah.DaysInOneWeek)%ah.DaysInOneWeek)&&a+1>=n&&(a-=ah.DaysInOneWeek),s=i-a),Math.floor(s/ah.DaysInOneWeek+1)}function Eh(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=kh(o+1,n);return r+=e.getDate()}function kh(e,t){return new Date(t,e,0).getDate()}var wh={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},Ih=d(d({},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),Ph=function(e,t){var n=t.minDate;return!!n&&fh(n,e)>=1},Th=function(e,t){var n=t.maxDate;return!!n&&fh(e,n)>=1},Dh=function(e,t){var n=t.restrictedDates,r=t.minDate,o=t.maxDate;return!!(n||r||o)&&(n&&n.some((function(t){return mh(t,e)}))||Ph(e,t)||Th(e,t))},Ah=function(e){var t=e.targetDate,n=e.initialDate,r=e.direction,o=p(e,["targetDate","initialDate","direction"]),i=t;if(!Dh(t,o))return t;for(;0!==fh(n,i)&&Dh(i,o)&&!Th(i,o)&&!Ph(i,o);)i=sh(i,r);return 0===fh(n,i)||Dh(i,o)?void 0:i},Rh=function(e,t,n){var r=m([],e,!0);return t&&(r=r.filter((function(e){return fh(e,t)>=0}))),n&&(r=r.filter((function(e){return fh(e,n)<=0}))),r},Nh=function(e,t,n){return!t||e!==oh.WorkWeek||function(e,t,n){for(var r=new Set(e),o=0,i=0,a=e;i<a.length;i++){var s=(a[i]+1)%7;(!r.has(s)||t&&n===s)&&o++}return o<2}(t,!0,n)&&0!==t.length?e:oh.Week},Mh=function(e,t,n){var r,o=ah.TimeFormatRegex.exec(n)||[],i=o[1],a=o[2],s=o[3],l=o[4],c=+i,u=+a,d=s?+s:0;e&&l&&("pm"===l.toLowerCase()&&c!==ah.OffsetTo24HourFormat?c+=ah.OffsetTo24HourFormat:"am"===l.toLowerCase()&&c===ah.OffsetTo24HourFormat&&(c-=ah.OffsetTo24HourFormat)),r=t.getHours()>c||t.getHours()===c&&t.getMinutes()>u?ah.HoursInOneDay-t.getHours()+c:Math.abs(t.getHours()-c);var p=ah.MillisecondsIn1Sec*ah.MinutesInOneHour*r*ah.SecondsInOneMinute+d*ah.MillisecondsIn1Sec,h=new Date(t.getTime()+p);return h.setMinutes(u),h.setSeconds(d),h},Fh=function(e,t,n){var r=e.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:t?"2-digit":void 0,hour12:n});return n||"24"!==r.slice(0,2)||(r="00"+r.slice(2)),r};A("@fluentui/date-time-utilities","8.5.13");var Bh=function(e){var t=e.showWeekNumbers,n=e.strings,r=e.firstDayOfWeek,i=e.allFocusable,a=e.weeksToShow,s=e.weeks,l=e.classNames,c=n.shortDays.slice(),u=Dt(s[1],(function(e){return 1===e.originalDate.getDate()}));1===a&&u>=0&&(c[(u+r)%7]=n.shortMonths[s[1][u].originalDate.getMonth()]);return o.createElement("tr",null,t&&o.createElement("th",{className:l.dayCell}),c.map((function(e,t){var a=(t+r)%7,s=n.days[a];return o.createElement("th",{className:kn(l.dayCell,l.weekDayLabelCell),scope:"col",key:c[a]+" "+t,title:s,"aria-label":s,"data-is-focusable":!!i||void 0},c[a])})))},Oh=function(e){var t,n=e.navigatedDate,r=e.dateTimeFormatter,i=e.allFocusable,a=e.strings,s=e.activeDescendantId,l=e.navigatedDayRef,c=e.calculateRoundedStyles,u=e.weeks,d=e.classNames,p=e.day,h=e.dayIndex,m=e.weekIndex,f=e.weekCorners,g=e.ariaHidden,v=e.customDayCellRef,y=e.dateRangeType,b=e.daysToSelectInDayView,C=e.onSelectDate,S=e.restrictedDates,x=e.minDate,_=e.maxDate,E=e.onNavigateDate,k=e.getDayInfosInRangeOfDay,w=e.getRefsFromDayInfos,I=null!==(t=null===f||void 0===f?void 0:f[m+"_"+h])&&void 0!==t?t:"",P=mh(n,p.originalDate),T=p.originalDate.getDate()+", "+a.months[p.originalDate.getMonth()]+", "+p.originalDate.getFullYear();return p.isMarked&&(T=T+", "+a.dayMarkedAriaLabel),o.createElement("td",{className:kn(d.dayCell,f&&I,p.isSelected&&d.daySelected,p.isSelected&&"ms-CalendarDay-daySelected",!p.isInBounds&&d.dayOutsideBounds,!p.isInMonth&&d.dayOutsideNavigatedMonth),ref:function(e){null===v||void 0===v||v(e,p.originalDate,d),p.setRef(e),P&&(l.current=e)},"aria-hidden":g,"aria-disabled":!g&&!p.isInBounds,onClick:p.isInBounds&&!g?p.onSelected:void 0,onMouseOver:g?void 0:function(e){var t=k(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!t[r].isSelected&&y===oh.Day&&b&&b>1)){e.classList.remove(d.bottomLeftCornerDate,d.bottomRightCornerDate,d.topLeftCornerDate,d.topRightCornerDate);var i=c(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).add.apply(o,i.split(" "))}}))},onMouseDown:g?void 0:function(e){var t=k(p);w(t).forEach((function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")}))},onMouseUp:g?void 0:function(e){var t=k(p);w(t).forEach((function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")}))},onMouseOut:g?void 0:function(e){var t=k(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!t[r].isSelected&&y===oh.Day&&b&&b>1)){var i=c(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).remove.apply(o,i.split(" "))}}))},onKeyDown:g?void 0:function(e){e.which===it?null===C||void 0===C||C(p.originalDate):function(e,t){var n=void 0,r=1;if(e.which===gt?(n=lh(t,-1),r=-1):e.which===yt?n=lh(t,1):e.which===Lt(ft)?(n=sh(t,-1),r=-1):e.which===Lt(vt)&&(n=sh(t,1)),n){var o={initialDate:t,targetDate:n,direction:r,restrictedDates:S,minDate:x,maxDate:_},i=Ah(o);i||(o.direction=-r,i=Ah(o)),u&&i&&u.slice(1,u.length-1).some((function(e){return e.some((function(e){return mh(e.originalDate,i)}))}))||i&&(E(i,!0),e.preventDefault())}}(e,p.originalDate)},role:"gridcell",tabIndex:P?0:void 0,"aria-current":p.isToday?"date":void 0,"aria-selected":p.isInBounds?p.isSelected:void 0,"data-is-focusable":!g&&(i||!!p.isInBounds||void 0)},o.createElement("button",{key:p.key+"button","aria-hidden":g,className:kn(d.dayButton,p.isToday&&d.dayIsToday,p.isToday&&"ms-CalendarDay-dayIsToday"),"aria-label":T,id:P?s:void 0,disabled:!g&&!p.isInBounds,type:"button",tabIndex:-1,"data-is-focusable":"false"},o.createElement("span",{"aria-hidden":"true"},r.formatDay(p.originalDate)),p.isMarked&&o.createElement("div",{"aria-hidden":"true",className:d.dayMarker})))},Lh=function(e){var t=e.classNames,n=e.week,r=e.weeks,i=e.weekIndex,a=e.rowClassName,s=e.ariaRole,l=e.showWeekNumbers,c=e.firstDayOfWeek,u=e.firstWeekOfYear,p=e.navigatedDate,h=e.strings,m=l?yh(r.length,c,u,p):null,f=m?h.weekNumberFormatString&&mo(h.weekNumberFormatString,m[i]):"";return o.createElement("tr",{role:s,className:a,key:i+"_"+n[0].key},l&&m&&o.createElement("th",{className:t.weekNumberCell,key:i,title:f,"aria-label":f,scope:"row"},o.createElement("span",null,m[i])),n.map((function(t,n){return o.createElement(Oh,d({},e,{key:t.key,day:t,dayIndex:n}))})))},Hh=cn();function Vh(e,t,n){var r=o.useMemo((function(){for(var r,o=function(e){var t,n=e.selectedDate,r=e.dateRangeType,o=e.firstDayOfWeek,i=e.today,a=e.minDate,s=e.maxDate,l=e.weeksToShow,c=e.workWeekDays,u=e.daysToSelectInDayView,d=e.restrictedDates,p=e.markedDays,h={minDate:a,maxDate:s,restrictedDates:d},m=i||new Date,f=e.navigatedDate?e.navigatedDate:m;t=l&&l<=4?new Date(f.getFullYear(),f.getMonth(),f.getDate()):new Date(f.getFullYear(),f.getMonth(),1);for(var g=[];t.getDay()!==o;)t.setDate(t.getDate()-1);t=sh(t,-7);var v=!1,y=Nh(r,c,o),b=[];n&&(b=gh(n,y,o,c,u),b=Rh(b,a,s));for(var C=!0,S=0;C;S++){var x=[];v=!0;for(var _=function(e){var n=new Date(t.getTime()),r={key:t.toString(),date:t.getDate().toString(),originalDate:n,isInMonth:t.getMonth()===f.getMonth(),isToday:mh(m,t),isSelected:vh(t,b),isInBounds:!Dh(t,h),isMarked:(null===p||void 0===p?void 0:p.some((function(e){return mh(n,e)})))||!1};x.push(r),r.isInMonth&&(v=!1),t.setDate(t.getDate()+1)},E=0;E<7;E++)_();C=l?S<l+1:!v||0===S,g.push(x)}return g}(e),i=o[1][0].originalDate,a=o[o.length-1][6].originalDate,s=(null===(r=e.getMarkedDays)||void 0===r?void 0:r.call(e,i,a))||[],l=[],c=0;c<o.length;c++){for(var u=[],p=function(e){var r=o[c][e],i=d(d({onSelected:function(){return t(r.originalDate)},setRef:n(r.key)},r),{isMarked:r.isMarked||(null===s||void 0===s?void 0:s.some((function(e){return mh(r.originalDate,e)})))});u.push(i)},h=0;h<7;h++)p(h);l.push(u)}return l}),[e]);return r}var zh,Uh=function(e){var t=o.useRef(null),n=cl(),r=function(){var e=o.useRef({});return[e,function(t){return function(n){null===n?delete e.current[t]:e.current[t]=n}}]}(),i=r[0],a=r[1],s=Vh(e,(function(t){var n,r,o=e.firstDayOfWeek,i=e.minDate,a=e.maxDate,s=e.workWeekDays,l=e.daysToSelectInDayView,c={minDate:i,maxDate:a,restrictedDates:e.restrictedDates},u=gh(t,g,o,s,l);u=(u=Rh(u,i,a)).filter((function(e){return!Dh(e,c)})),null===(n=e.onSelectDate)||void 0===n||n.call(e,t,u),null===(r=e.onNavigateDate)||void 0===r||r.call(e,t,!0)}),a),l=function(e){var t=pl(e[0][0].originalDate);return t&&t.getTime()!==e[0][0].originalDate.getTime()?!(t<=e[0][0].originalDate):void 0}(s),c=function(e){var t=function(e,t,n,r,o){var i=[],a=!t&&!o,s=!n&&!r,l=!n&&!o;return!t&&!r&&i.push(Ot()?e.topRightCornerDate:e.topLeftCornerDate),a&&i.push(Ot()?e.topLeftCornerDate:e.topRightCornerDate),s&&i.push(Ot()?e.bottomRightCornerDate:e.bottomLeftCornerDate),l&&i.push(Ot()?e.bottomLeftCornerDate:e.bottomRightCornerDate),i.join(" ")},n=function(e,t,n,r,o){var i=[];return t||i.push(e.datesAbove),n||i.push(e.datesBelow),r||i.push(Ot()?e.datesRight:e.datesLeft),o||i.push(Ot()?e.datesLeft:e.datesRight),i.join(" ")},r=function(t,n,r,o){var i=e.dateRangeType,a=e.firstDayOfWeek,s=e.workWeekDays,l=gh(t,i===oh.WorkWeek?oh.Week:i,a,s);return r===o&&(!(!r||!o)||l.filter((function(e){return e.getTime()===n.getTime()})).length>0)};return[function(e,o){var i={},a=o.slice(1,o.length-1);return a.forEach((function(o,s){o.forEach((function(o,l){var c=a[s-1]&&a[s-1][l]&&r(a[s-1][l].originalDate,o.originalDate,a[s-1][l].isSelected,o.isSelected),u=a[s+1]&&a[s+1][l]&&r(a[s+1][l].originalDate,o.originalDate,a[s+1][l].isSelected,o.isSelected),d=a[s][l-1]&&r(a[s][l-1].originalDate,o.originalDate,a[s][l-1].isSelected,o.isSelected),p=a[s][l+1]&&r(a[s][l+1].originalDate,o.originalDate,a[s][l+1].isSelected,o.isSelected),h=[];h.push(t(e,c,u,d,p)),h.push(n(e,c,u,d,p)),i[s+"_"+l]=h.join(" ")}))})),i},t]}(e),u=c[0],p=c[1];o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var h=e.styles,m=e.theme,f=e.className,g=e.dateRangeType,v=e.showWeekNumbers,y=e.labelledBy,b=e.lightenDaysOutsideNavigatedMonth,C=e.animationDirection,S=Hh(h,{theme:m,className:f,dateRangeType:g,showWeekNumbers:v,lightenDaysOutsideNavigatedMonth:void 0===b||b,animationDirection:C,animateBackwards:l}),x=u(S,s),_={weeks:s,navigatedDayRef:t,calculateRoundedStyles:p,activeDescendantId:n,classNames:S,weekCorners:x,getDayInfosInRangeOfDay:function(t){var n=function(e,t){if(t&&e===oh.WorkWeek){for(var n=t.slice().sort(),r=!0,o=1;o<n.length;o++)if(n[o]!==n[o-1]+1){r=!1;break}if(!r||0===t.length)return oh.Week}return e}(e.dateRangeType,e.workWeekDays),r=gh(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map((function(e){return e.getTime()}));return s.reduce((function(e,t){return e.concat(t.filter((function(e){return-1!==r.indexOf(e.originalDate.getTime())})))}),[])},getRefsFromDayInfos:function(e){return e.map((function(e){return i.current[e.key]}))}};return o.createElement(Bu,{className:S.wrapper,preventDefaultWhenHandled:!0},o.createElement("table",{className:S.table,"aria-multiselectable":"false","aria-labelledby":y,"aria-activedescendant":n,role:"grid"},o.createElement("tbody",null,o.createElement(Bh,d({},e,{classNames:S,weeks:s})),o.createElement(Lh,d({},e,_,{week:s[0],weekIndex:-1,rowClassName:S.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),s.slice(1,s.length-1).map((function(t,n){return o.createElement(Lh,d({},e,_,{key:n,week:t,weekIndex:n,rowClassName:S.weekRow}))})),o.createElement(Lh,d({},e,_,{week:s[s.length-1],weekIndex:-2,rowClassName:S.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};Uh.displayName="CalendarDayGridBase",function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(zh||(zh={}));var Wh={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},Gh=Se({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),jh=vo(Uh,(function(e){var t,n,r,o,i,a,s,l,c,u,p=e.theme,h=e.dateRangeType,m=e.showWeekNumbers,f=e.lightenDaysOutsideNavigatedMonth,g=e.animateBackwards,v=e.animationDirection,y=p.palette,b=ka(Wh,p),C={};void 0!==g&&(C=v===zh.Horizontal?g?Xi.slideRightIn20:Xi.slideLeftIn20:g?Xi.slideDownIn20:Xi.slideUpIn20);var S={},x={};void 0!==g&&v!==zh.Horizontal&&(S=g?{animationName:""}:Xi.slideUpOut20,x=g?Xi.slideDownOut20:{animationName:""});var _={selectors:{"&, &:disabled, & button":{color:y.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},m&&{width:226}],dayCell:[fa(p,{inset:-3}),{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:ni.small,fontWeight:ri.regular,color:y.neutralPrimary,cursor:"pointer",position:"relative",selectors:(t={},t[ca]=d({color:"WindowText",backgroundColor:"transparent",zIndex:0},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t["&."+b.hoverStyle]={backgroundColor:y.neutralLighter,selectors:(n={},n[ca]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},t["&."+b.pressedStyle]={backgroundColor:y.neutralLight,selectors:(r={},r[ca]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},r)},t["&."+b.pressedStyle+"."+b.hoverStyle]={selectors:(o={},o[ca]={backgroundColor:"Window",outline:"1px solid Highlight"},o)},t)}],daySelected:[h!==oh.Month&&{backgroundColor:y.neutralLight+"!important",selectors:(i={"&::before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0}},i["&:hover, &."+b.hoverStyle+", &."+b.pressedStyle]=(a={backgroundColor:y.neutralLight+"!important"},a[ca]={color:"HighlightText!important",background:"Highlight!important"},a),i[ca]=d({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}],weekRow:C,weekDayLabelCell:Xi.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:y.neutralLight,backgroundColor:y.neutralLighterAlt,color:y.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:ri.regular,fontSize:ni.small},dayOutsideBounds:_,dayOutsideNavigatedMonth:f&&{color:y.neutralSecondary,fontWeight:ri.regular},dayButton:{width:24,height:24,lineHeight:24,fontSize:ni.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}},dayIsToday:{backgroundColor:y.themePrimary+"!important",borderRadius:"100%",color:y.white+"!important",fontWeight:ri.semibold+"!important",selectors:(s={},s[ca]=d({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)},firstTransitionWeek:d(d({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},S),{animationName:S.animationName+","+Gh}),lastTransitionWeek:d(d({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},x),{animationName:x.animationName+","+Gh}),dayMarker:{width:4,height:4,backgroundColor:y.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:(l={},l["."+b.dayIsTodayStyle+" &"]={backgroundColor:y.white,selectors:(c={},c[ca]={backgroundColor:"Window"},c)},l["."+b.daySelectedStyle+" &"]={selectors:(u={},u[ca]={backgroundColor:"HighlightText"},u)},l[ca]=d({backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"},datesAbove:{"&::before":{borderTop:"1px solid ".concat(y.neutralSecondary)}},datesBelow:{"&::before":{borderBottom:"1px solid ".concat(y.neutralSecondary)}},datesLeft:{"&::before":{borderLeft:"1px solid ".concat(y.neutralSecondary)}},datesRight:{"&::before":{borderRight:"1px solid ".concat(y.neutralSecondary)}}}}),void 0,{scope:"CalendarDayGrid"}),qh=cn(),Kh=function(e){var t=o.useRef(null);o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var n=e.strings,r=e.navigatedDate,i=e.dateTimeFormatter,a=e.styles,s=e.theme,l=e.className,c=e.onHeaderSelect,u=e.showSixWeeksByDefault,p=e.minDate,h=e.maxDate,m=e.restrictedDates,f=e.onNavigateDate,g=e.showWeekNumbers,v=e.dateRangeType,y=e.animationDirection,b=cl(),C=qh(a,{theme:s,className:l,headerIsClickable:!!c,showWeekNumbers:g,animationDirection:y}),S=i.formatMonthYear(r,n),x=c?"button":"div",_=n.yearPickerHeaderAriaLabel?mo(n.yearPickerHeaderAriaLabel,S):S;return o.createElement("div",{className:C.root},o.createElement("div",{className:C.header},o.createElement(x,{"aria-label":c?_:void 0,className:C.monthAndYear,onClick:c,"data-is-focusable":!!c,tabIndex:c?0:-1,onKeyDown:Xh(c),type:"button"},o.createElement("span",{id:b,"aria-live":"polite","aria-atomic":"true"},S)),o.createElement(Yh,d({},e,{classNames:C}))),o.createElement(jh,d({},e,{styles:a,componentRef:t,strings:n,navigatedDate:r,weeksToShow:u?6:void 0,dateTimeFormatter:i,minDate:p,maxDate:h,restrictedDates:m,onNavigateDate:f,labelledBy:b,dateRangeType:v})))};Kh.displayName="CalendarDayBase";var Yh=function(e){var t,n,r=e.minDate,i=e.maxDate,a=e.navigatedDate,s=e.allFocusable,l=e.strings,c=e.navigationIcons,u=e.showCloseButton,d=e.classNames,p=e.onNavigateDate,h=e.onDismiss,m=function(){p(ch(a,1),!1)},f=function(){p(ch(a,-1),!1)},g=c.leftNavigation,v=c.rightNavigation,y=c.closeIcon,b=!r||fh(r,dh(a))<0,C=!i||fh(ph(a),i)<0;return o.createElement("div",{className:d.monthComponents},o.createElement("button",{className:kn(d.headerIconButton,(t={},t[d.disabledStyle]=!b,t)),tabIndex:b?void 0:s?0:-1,"aria-disabled":!b,onClick:b?f:void 0,onKeyDown:b?Xh(f):void 0,title:l.prevMonthAriaLabel?l.prevMonthAriaLabel+" "+l.months[ch(a,-1).getMonth()]:void 0,type:"button"},o.createElement(Rc,{iconName:g})),o.createElement("button",{className:kn(d.headerIconButton,(n={},n[d.disabledStyle]=!C,n)),tabIndex:C?void 0:s?0:-1,"aria-disabled":!C,onClick:C?m:void 0,onKeyDown:C?Xh(m):void 0,title:l.nextMonthAriaLabel?l.nextMonthAriaLabel+" "+l.months[ch(a,1).getMonth()]:void 0,type:"button"},o.createElement(Rc,{iconName:v})),u&&o.createElement("button",{className:kn(d.headerIconButton),onClick:h,onKeyDown:Xh(h),title:l.closeButtonAriaLabel,type:"button"},o.createElement(Rc,{iconName:y})))};Yh.displayName="CalendarDayNavigationButtons";var Xh=function(e){return function(t){if(t.which===it)null===e||void 0===e||e()}},Qh=vo(Kh,(function(e){var t,n=e.className,r=e.theme,o=e.headerIsClickable,i=e.showWeekNumbers,a=r.palette,s={selectors:(t={"&, &:disabled, & button":{color:a.neutralTertiaryAlt,pointerEvents:"none"}},t[ca]={color:"GrayText",forcedColorAdjust:"none"},t)};return{root:[Ga,{width:196,padding:12,boxSizing:"content-box"},i&&{width:226},n],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[fa(r,{inset:1}),d(d({},Xi.fadeIn200),{alignItems:"center",fontSize:ni.medium,fontFamily:"inherit",color:a.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:ri.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),o&&{selectors:{"&:hover":{cursor:"pointer",background:a.neutralLight,color:a.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[fa(r,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:ni.small,fontFamily:"inherit",color:a.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:a.neutralDark,backgroundColor:a.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:s}}),void 0,{scope:"CalendarDay"}),Zh=function(e){var t,n,r,o,i,a,s,l=e.className,c=e.theme,u=e.hasHeaderClickCallback,p=e.highlightCurrent,h=e.highlightSelected,m=e.animateBackwards,f=e.animationDirection,g=c.palette,v={};void 0!==m&&(v=f===zh.Horizontal?m?Xi.slideRightIn20:Xi.slideLeftIn20:m?Xi.slideDownIn20:Xi.slideUpIn20);var y=void 0!==m?Xi.fadeIn200:{};return{root:[Ga,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},l],headerContainer:{display:"flex"},currentItemButton:[fa(c,{inset:-1}),d(d({},y),{fontSize:ni.medium,fontWeight:ri.semibold,fontFamily:"inherit",textAlign:"left",color:"inherit",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),u&&{selectors:{"&:hover, &:active":{cursor:u?"pointer":"default",color:g.neutralDark,outline:"1px solid transparent",backgroundColor:g.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[fa(c,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:ni.small,color:g.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:g.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:g.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:d(d({},v),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[fa(c,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:ni.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:g.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:ri.regular},"&:hover":{color:g.neutralDark,backgroundColor:g.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:(t={},t[ca]=d({background:"Window",color:"WindowText",outline:"1px solid Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},"&:active":{backgroundColor:g.themeLight,selectors:(n={},n[ca]=d({background:"Window",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)}}}],current:p?{color:g.white,backgroundColor:g.themePrimary,selectors:(r={"& div":{fontWeight:ri.semibold},"&:hover":{backgroundColor:g.themePrimary,selectors:(o={},o[ca]=d({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}},r[ca]=d({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}:{},selected:h?{color:g.neutralPrimary,backgroundColor:g.themeLight,fontWeight:ri.semibold,selectors:(i={"& div":{fontWeight:ri.semibold},"&:hover, &:active":{backgroundColor:g.themeLight,selectors:(a={},a[ca]=d({color:"Window",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}},i[ca]=d({background:"Highlight",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}:{},disabled:{selectors:(s={"&, &:disabled, & button":{color:g.neutralTertiaryAlt,pointerEvents:"none"}},s[ca]={color:"GrayText",forcedColorAdjust:"none"},s)}}},Jh=function(e){return Zh(e)},$h=Ih,em={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},tm=cn(),nm=12,rm={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},om=function(e){var t,n,r=e.styles,i=e.theme,a=e.className,s=e.highlightCurrentYear,l=e.highlightSelectedYear,c=e.year,u=e.selected,d=e.disabled,p=e.componentRef,h=e.onSelectYear,m=e.onRenderYear,f=o.useRef(null);o.useImperativeHandle(p,(function(){return{focus:function(){var e,t;null===(t=null===(e=f.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);var g=tm(r,{theme:i,className:a,highlightCurrent:s,highlightSelected:l});return o.createElement("button",{className:kn(g.itemButton,(t={},t[g.selected]=u,t[g.disabled]=d,t)),type:"button",role:"gridcell",onClick:d?void 0:function(){null===h||void 0===h||h(c)},onKeyDown:d?void 0:function(e){e.which===it&&(null===h||void 0===h||h(c))},disabled:d,"aria-selected":u,ref:f},null!==(n=null===m||void 0===m?void 0:m(c))&&void 0!==n?n:c)};om.displayName="CalendarYearGridCell";var im,am=function(e){var t=e.styles,n=e.theme,r=e.className,i=e.fromYear,a=e.toYear,s=e.animationDirection,l=e.animateBackwards,c=e.minYear,u=e.maxYear,p=e.onSelectYear,h=e.selectedYear,f=e.componentRef,g=o.useRef(null),v=o.useRef(null);o.useImperativeHandle(f,(function(){return{focus:function(){var e,t;null===(t=null===(e=g.current||v.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);for(var y=function(t){var r=t===h,i=void 0!==c&&t<c||void 0!==u&&t>u,a=t===(new Date).getFullYear();return o.createElement(om,d({},e,{key:t,year:t,selected:r,current:a,disabled:i,onSelectYear:p,componentRef:r?g:a?v:void 0,theme:n}))},b=tm(t,{theme:n,className:r,animateBackwards:l,animationDirection:s}),C=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},S="".concat(C(i)," - ").concat(C(a)),x=i,_=[],E=0;E<(a-i+1)/4;E++){_.push([]);for(var k=0;k<4;k++)_[E].push(y(x)),x++}return o.createElement(Bu,null,o.createElement("div",{className:b.gridContainer,role:"grid","aria-label":S},_.map((function(e,t){return o.createElement.apply(o,m(["div",{key:"yearPickerRow_"+t+"_"+i,role:"row",className:b.buttonRow}],e,!1))}))))};am.displayName="CalendarYearGrid",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(im||(im={}));var sm=function(e){var t,n=e.styles,r=e.theme,i=e.className,a=e.navigationIcons,s=void 0===a?em:a,l=e.strings,c=void 0===l?rm:l,u=e.direction,d=e.onSelectPrev,p=e.onSelectNext,h=e.fromYear,m=e.toYear,f=e.maxYear,g=e.minYear,v=tm(n,{theme:r,className:i}),y=u===im.Previous?c.prevRangeAriaLabel:c.nextRangeAriaLabel,b=u===im.Previous?-12:nm,C=y?"string"===typeof y?y:y({fromYear:h+b,toYear:m+b}):void 0,S=u===im.Previous?void 0!==g&&h<g:void 0!==f&&e.fromYear+nm>f,x=function(){u===im.Previous?null===d||void 0===d||d():null===p||void 0===p||p()},_=Ot()?u===im.Next:u===im.Previous;return o.createElement("button",{className:kn(v.navigationButton,(t={},t[v.disabled]=S,t)),onClick:S?void 0:x,onKeyDown:S?void 0:function(e){e.which===it&&x()},type:"button",title:C,disabled:S},o.createElement(Rc,{iconName:_?s.leftNavigation:s.rightNavigation}))};sm.displayName="CalendarYearNavArrow";var lm=function(e){var t=e.styles,n=e.theme,r=e.className,i=tm(t,{theme:n,className:r});return o.createElement("div",{className:i.navigationButtonsContainer},o.createElement(sm,d({},e,{direction:im.Previous})),o.createElement(sm,d({},e,{direction:im.Next})))};lm.displayName="CalendarYearNav";var cm=function(e){var t=e.styles,n=e.theme,r=e.className,i=e.fromYear,a=e.toYear,s=e.strings,l=void 0===s?rm:s,c=e.animateBackwards,u=e.animationDirection,d=function(){var t;null===(t=e.onHeaderSelect)||void 0===t||t.call(e,!0)},p=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},h=tm(t,{theme:n,className:r,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:c,animationDirection:u});if(e.onHeaderSelect){var m=l.rangeAriaLabel,f=l.headerAriaLabelFormatString,g=m?"string"===typeof m?m:m(e):void 0,v=f?mo(f,g):g;return o.createElement("button",{className:h.currentItemButton,onClick:d,onKeyDown:function(e){e.which!==it&&e.which!==ut||d()},"aria-label":v,role:"button",type:"button"},o.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},p(i)," - ",p(a)))}return o.createElement("div",{className:h.current},p(i)," - ",p(a))};cm.displayName="CalendarYearTitle";var um,dm=function(e){var t,n=e.styles,r=e.theme,i=e.className,a=e.animateBackwards,s=e.animationDirection,l=e.onRenderTitle,c=tm(n,{theme:r,className:i,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:s});return o.createElement("div",{className:c.headerContainer},null!==(t=null===l||void 0===l?void 0:l(e))&&void 0!==t?t:o.createElement(cm,d({},e)),o.createElement(lm,d({},e)))};dm.displayName="CalendarYearHeader",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(um||(um={}));var pm=function(e){var t=function(e){var t=e.selectedYear,n=e.navigatedYear,r=t||n||(new Date).getFullYear(),o=10*Math.floor(r/10),i=pl(o);return i&&i!==o?i>o:void 0}(e),n=function(e){var t=e.selectedYear,n=e.navigatedYear,r=o.useReducer((function(e,t){return e+(t===um.Next?nm:-12)}),void 0,(function(){var e=t||n||(new Date).getFullYear();return 10*Math.floor(e/10)})),i=r[0],a=r[1];return[i,i+nm-1,function(){return a(um.Next)},function(){return a(um.Previous)}]}(e),r=n[0],i=n[1],a=n[2],s=n[3],l=o.useRef(null);o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,t;null===(t=null===(e=l.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}));var c=e.styles,u=e.theme,p=e.className,h=tm(c,{theme:u,className:p});return o.createElement("div",{className:h.root},o.createElement(dm,d({},e,{fromYear:r,toYear:i,onSelectPrev:s,onSelectNext:a,animateBackwards:t})),o.createElement(am,d({},e,{fromYear:r,toYear:i,animateBackwards:t,componentRef:l})))};pm.displayName="CalendarYearBase";var hm=vo(pm,(function(e){return Zh(e)}),void 0,{scope:"CalendarYear"}),mm=cn(),fm={styles:Jh,strings:void 0,navigationIcons:em,dateTimeFormatter:wh,yearPickerHidden:!1};var gm=function(e){var t,n,r=Co(fm,e),i=function(e){var t=e.componentRef,n=o.useRef(null),r=o.useRef(null),i=o.useRef(!1),a=o.useCallback((function(){r.current?r.current.focus():n.current&&n.current.focus()}),[]);return o.useImperativeHandle(t,(function(){return{focus:a}}),[a]),o.useEffect((function(){i.current&&(a(),i.current=!1)})),[n,r,function(){i.current=!0}]}(r),a=i[0],s=i[1],l=i[2],c=o.useState(!1),u=c[0],d=c[1],p=function(e){var t=e.navigatedDate.getFullYear(),n=pl(t);return void 0===n||n===t?void 0:n>t}(r),h=r.navigatedDate,m=r.selectedDate,f=r.strings,g=r.today,v=void 0===g?new Date:g,y=r.navigationIcons,b=r.dateTimeFormatter,C=r.minDate,S=r.maxDate,x=r.theme,_=r.styles,E=r.className,k=r.allFocusable,w=r.highlightCurrentMonth,I=r.highlightSelectedMonth,P=r.animationDirection,T=r.yearPickerHidden,D=r.onNavigateDate,A=function(e){return function(){return M(e)}},R=function(){D(uh(h,1),!1)},N=function(){D(uh(h,-1),!1)},M=function(e){var t;null===(t=r.onHeaderSelect)||void 0===t||t.call(r),D(hh(h,e),!0)},F=function(){var e;T?null===(e=r.onHeaderSelect)||void 0===e||e.call(r):(l(),d(!0))},B=y.leftNavigation,O=y.rightNavigation,L=b,H=!C||fh(C,new Date(h.getFullYear(),0,1,0,0,0,0))<0,V=!S||fh(function(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}(h),S)<0,z=mm(_,{theme:x,className:E,hasHeaderClickCallback:!!r.onHeaderSelect||!T,highlightCurrent:w,highlightSelected:I,animateBackwards:p,animationDirection:P});if(u){var U=function(e){var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,o=function(e){if(r){var t=new Date(n.getTime());return t.setFullYear(e),r.formatYear(t)}return String(e)},i=function(e){return"".concat(o(e.fromYear)," - ").concat(o(e.toYear))},a=function(e){return t.nextYearRangeAriaLabel?"".concat(t.nextYearRangeAriaLabel," ").concat(i(e)):""},s=function(e){return t.prevYearRangeAriaLabel?"".concat(t.prevYearRangeAriaLabel," ").concat(i(e)):""};return[o,{rangeAriaLabel:i,prevRangeAriaLabel:s,nextRangeAriaLabel:a,headerAriaLabelFormatString:t.yearPickerHeaderAriaLabel}]}(r),W=U[0],G=U[1];return o.createElement(hm,{key:"calendarYear",minYear:C?C.getFullYear():void 0,maxYear:S?S.getFullYear():void 0,onSelectYear:function(e){if(l(),h.getFullYear()!==e){var t=new Date(h.getTime());t.setFullYear(e),S&&t>S?t=hh(t,S.getMonth()):C&&t<C&&(t=hh(t,C.getMonth())),D(t,!0)}d(!1)},navigationIcons:y,onHeaderSelect:function(e){l(),d(!1)},selectedYear:m?m.getFullYear():h?h.getFullYear():void 0,onRenderYear:W,strings:G,componentRef:s,styles:_,highlightCurrentYear:w,highlightSelectedYear:I,animationDirection:P})}for(var j=[],q=0;q<f.shortMonths.length/4;q++)j.push(q);var K=L.formatYear(h),Y=f.monthPickerHeaderAriaLabel?mo(f.monthPickerHeaderAriaLabel,K):K;return o.createElement("div",{className:z.root},o.createElement("div",{className:z.headerContainer},o.createElement("button",{className:z.currentItemButton,onClick:F,onKeyDown:ym(F),"aria-label":Y,"data-is-focusable":!!r.onHeaderSelect||!T,tabIndex:r.onHeaderSelect||!T?0:-1,type:"button"},o.createElement("span",{"aria-live":"polite","aria-atomic":"true"},K)),o.createElement("div",{className:z.navigationButtonsContainer},o.createElement("button",{className:kn(z.navigationButton,(t={},t[z.disabled]=!H,t)),"aria-disabled":!H,tabIndex:H?void 0:k?0:-1,onClick:H?N:void 0,onKeyDown:H?ym(N):void 0,title:f.prevYearAriaLabel?f.prevYearAriaLabel+" "+L.formatYear(uh(h,-1)):void 0,type:"button"},o.createElement(Rc,{iconName:Ot()?O:B})),o.createElement("button",{className:kn(z.navigationButton,(n={},n[z.disabled]=!V,n)),"aria-disabled":!V,tabIndex:V?void 0:k?0:-1,onClick:V?R:void 0,onKeyDown:V?ym(R):void 0,title:f.nextYearAriaLabel?f.nextYearAriaLabel+" "+L.formatYear(uh(h,1)):void 0,type:"button"},o.createElement(Rc,{iconName:Ot()?B:O})))),o.createElement(Bu,null,o.createElement("div",{className:z.gridContainer,role:"grid","aria-label":K},j.map((function(e){var t=f.shortMonths.slice(4*e,4*(e+1));return o.createElement("div",{key:"monthRow_"+e+h.getFullYear(),role:"row",className:z.buttonRow},t.map((function(t,n){var r,i=4*e+n,s=hh(h,i),l=h.getMonth()===i,c=m.getMonth()===i,u=m.getFullYear()===h.getFullYear(),d=(!C||fh(C,ph(s))<1)&&(!S||fh(dh(s),S)<1);return o.createElement("button",{ref:l?a:void 0,role:"gridcell",className:kn(z.itemButton,(r={},r[z.current]=w&&vm(i,h.getFullYear(),v),r[z.selected]=I&&c&&u,r[z.disabled]=!d,r)),disabled:!k&&!d,key:i,onClick:d?A(i):void 0,onKeyDown:d?ym(A(i)):void 0,"aria-label":L.formatMonth(s,f),"aria-selected":l,"data-is-focusable":!!d||void 0,type:"button"},t)})))})))))};function vm(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function ym(e){return function(t){if(t.which===it)e()}}gm.displayName="CalendarMonthBase";var bm=vo(gm,Jh,void 0,{scope:"CalendarMonth"}),Cm=cn(),Sm=[th.Monday,th.Tuesday,th.Wednesday,th.Thursday,th.Friday],xm={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:th.Sunday,dateRangeType:oh.Day,showGoToToday:!0,strings:Ih,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:em,showWeekNumbers:!1,firstWeekOfYear:rh.FirstDay,dateTimeFormatter:wh,showSixWeeksByDefault:!1,workWeekDays:Sm,showCloseButton:!1,allFocusable:!1};var _m=o.forwardRef((function(e,t){var n=Co(xm,e),r=function(e){var t=e.value,n=e.today,r=void 0===n?new Date:n,i=e.onSelectDate,a=sl(t,r),s=a[0],l=void 0===s?r:s,c=a[1],u=o.useState(t),d=u[0],p=void 0===d?r:d,h=u[1],m=o.useState(t),f=m[0],g=void 0===f?r:f,v=m[1],y=o.useState(t),b=y[0],C=void 0===b?r:b,S=y[1];return t&&C.valueOf()!==t.valueOf()&&(h(t),v(t),S(t)),[l,p,g,function(e,t){v(e),h(e),c(e),null===i||void 0===i||i(e,t)},function(e){v(e),h(e)},function(e){v(e)}]}(n),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],p=function(e){var t=sl(Em(e)?void 0:e.isMonthPickerVisible,!1),n=t[0],r=void 0===n||n,o=t[1],i=sl(Em(e)?void 0:e.isDayPickerVisible,!0),a=i[0],s=void 0===a||a,l=i[1];return[r,s,function(){o(!r),l(!s)}]}(n),h=p[0],m=p[1],f=p[2],g=function(e,t,n){var r=e.componentRef,i=o.useRef(null),a=o.useRef(null),s=o.useRef(!1),l=o.useCallback((function(){t&&i.current?rn(i.current):n&&a.current&&rn(a.current)}),[t,n]);return o.useImperativeHandle(r,(function(){return{focus:l}}),[l]),o.useEffect((function(){s.current&&(l(),s.current=!1)})),[i,a,function(){s.current=!0}]}(n,m,h),v=g[0],y=g[1],b=g[2],C=function(){var e=I;return e&&j&&(e=a.getFullYear()!==j.getFullYear()||a.getMonth()!==j.getMonth()||s.getFullYear()!==j.getFullYear()||s.getMonth()!==j.getMonth()),I&&o.createElement("button",{className:kn("js-goToday",X.goTodayButton),onClick:x,onKeyDown:_(x),type:"button",disabled:!e},w.goToToday)},S=Em(n)?function(){f(),b()}:void 0,x=function(){c(j),b()},_=function(e){return function(t){switch(t.which){case it:case ut:e()}}},E=n.firstDayOfWeek,k=n.dateRangeType,w=n.strings,I=n.showGoToToday,P=n.highlightCurrentMonth,T=n.highlightSelectedMonth,D=n.navigationIcons,A=n.minDate,R=n.maxDate,N=n.restrictedDates,M=n.id,F=n.className,B=n.showCloseButton,O=n.allFocusable,L=n.styles,H=n.showWeekNumbers,V=n.theme,z=n.calendarDayProps,U=n.calendarMonthProps,W=n.dateTimeFormatter,G=n.today,j=void 0===G?new Date:G,q=Em(n),K=!q&&!m,Y=q&&I,X=Cm(L,{theme:V,className:F,isMonthPickerVisible:h,isDayPickerVisible:m,monthPickerOnly:K,showMonthPickerAsOverlay:q,overlaidWithButton:Y,overlayedWithButton:Y,showGoToToday:I,showWeekNumbers:H}),Q="",Z="";if(W&&w.todayDateFormatString&&(Q=mo(w.todayDateFormatString,W.formatMonthDayYear(j,w))),W&&w.selectedDateFormatString){var J=K?W.formatMonthYear:W.formatMonthDayYear;Z=mo(w.selectedDateFormatString,J(i,w))}var $=Z+", "+Q;return o.createElement("div",{id:M,ref:t,role:"group","aria-label":$,className:kn("ms-DatePicker",X.root,F,"ms-slideDownIn10"),onKeyDown:function(e){var t;switch(e.which){case it:case rt:e.preventDefault();break;case ct:null===(t=n.onDismiss)||void 0===t||t.call(n);break;case dt:e.ctrlKey?c(uh(a,1)):c(ch(a,1)),e.preventDefault();break;case pt:e.ctrlKey?c(uh(a,-1)):c(ch(a,-1)),e.preventDefault()}}},o.createElement("div",{className:X.liveRegion,"aria-live":"polite","aria-atomic":"true"},o.createElement("span",null,Z)),m&&o.createElement(Qh,d({selectedDate:i,navigatedDate:a,today:n.today,onSelectDate:l,onNavigateDate:function(e,t){c(e),t&&b()},onDismiss:n.onDismiss,firstDayOfWeek:E,dateRangeType:k,strings:w,onHeaderSelect:S,navigationIcons:D,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,dateTimeFormatter:n.dateTimeFormatter,showSixWeeksByDefault:n.showSixWeeksByDefault,minDate:A,maxDate:R,restrictedDates:N,workWeekDays:n.workWeekDays,componentRef:v,showCloseButton:B,allFocusable:O},z)),m&&h&&o.createElement("div",{className:X.divider}),h?o.createElement("div",{className:X.monthPickerWrapper},o.createElement(bm,d({navigatedDate:s,selectedDate:a,strings:w,onNavigateDate:function(e,t){t&&b(),t?(K&&l(e),c(e)):u(e)},today:n.today,highlightCurrentMonth:P,highlightSelectedMonth:T,onHeaderSelect:S,navigationIcons:D,dateTimeFormatter:n.dateTimeFormatter,minDate:A,maxDate:R,componentRef:y},U)),C()):C(),o.createElement(Br,null))}));function Em(e){var t=e.showMonthPickerAsOverlay,n=e.isDayPickerVisible,r=ke();return t||n&&r&&r.innerWidth<=440}_m.displayName="CalendarBase";var km=vo(_m,(function(e){var t=e.className,n=e.theme,r=e.isDayPickerVisible,o=e.isMonthPickerVisible,i=e.showWeekNumbers,a=n.palette,s=r&&o?440:220;return i&&r&&(s+=30),{root:[Ga,{display:"flex",width:s},!o&&{flexDirection:"column"},t],divider:{top:0,borderRight:"1px solid",borderColor:a.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[fa(n,{inset:-1}),{bottom:0,color:a.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:ni.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:ni.small},"&:hover":{color:a.themePrimary,backgroundColor:"transparent",cursor:"pointer"},"&:active":{color:a.themeDark},"&:disabled":{color:a.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}}),void 0,{scope:"Calendar"}),wm=cn(),Im=o.forwardRef((function(e,t){var n=e.checked,r=void 0!==n&&n,i=e.className,a=e.theme,s=e.styles,l=e.useFastIcons,c=void 0===l||l,u=wm(s,{theme:a,className:i,checked:r}),d=c?Tc:Rc;return o.createElement("div",{className:u.root,ref:t},o.createElement(d,{iconName:"CircleRing",className:u.circle}),o.createElement(d,{iconName:"StatusCircleCheckmark",className:u.check}))}));Im.displayName="CheckBase";var Pm={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},Tm=vo(Im,(function(e){var t,n,r,o,i,a=e.height,s=void 0===a?e.checkBoxHeight||"18px":a,l=e.checked,c=e.className,u=e.theme,p=u.palette,h=u.semanticColors,m=u.fonts,f=Ot(u),g=ka(Pm,u),v={fontSize:s,position:"absolute",left:0,top:0,width:s,height:s,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[g.root,m.medium,{lineHeight:"1",width:s,height:s,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:h.bodyBackground}},t[".".concat(g.checkHost,":hover &, .").concat(g.checkHost,":focus &, &:hover, &:focus")]={opacity:1},t)},l&&["is-checked",{selectors:{":before":{background:p.themePrimary,opacity:1,selectors:(n={},n[ca]={background:"Window"},n)}}}],c],circle:[g.circle,v,{color:p.neutralSecondary,selectors:(r={},r[ca]={color:"WindowText"},r)},l&&{color:p.white}],check:[g.check,v,{opacity:0,color:p.neutralSecondary,fontSize:oi.medium,left:f?"-0.5px":".5px",top:"-1px",selectors:(o={":hover":{opacity:1}},o[ca]=d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},l&&{opacity:1,color:p.white,fontWeight:900,selectors:(i={},i[ca]={border:"none",color:"WindowText"},i)}],checkHost:g.checkHost}}),void 0,{scope:"Check"},!0),Dm=cn(),Am=o.forwardRef((function(e,t){var n=e.disabled,r=e.required,i=e.inputProps,a=e.name,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,u=e.ariaPositionInSet,p=e.ariaSetSize,h=e.title,m=e.checkmarkIconProps,f=e.styles,g=e.theme,v=e.className,y=e.boxSide,b=void 0===y?"start":y,C=cl("checkbox-",e.id),S=o.useRef(null),x=ul(S,t),_=o.useRef(null),E=sl(e.checked,e.defaultChecked,e.onChange),k=E[0],w=E[1],I=sl(e.indeterminate,e.defaultIndeterminate),P=I[0],T=I[1];Fr(S),function(e){Sl({name:"Checkbox",props:e,mutuallyExclusive:{checked:"defaultChecked",indeterminate:"defaultIndeterminate"}})}(e);var D=Dm(f,{theme:g,className:v,disabled:n,indeterminate:P,checked:k,reversed:"start"!==b,isUsingCustomLabelRender:!!e.onRenderLabel}),A=o.useCallback((function(e){P?(w(!!k,e),T(!1)):w(!k,e)}),[w,T,P,k]),R=o.useCallback((function(e){return e&&e.label?o.createElement("span",{className:D.text,title:e.title},e.label):null}),[D.text]),N=o.useCallback((function(e){if(_.current){var t=!!e;_.current.indeterminate=t,T(t)}}),[T]);!function(e,t,n,r,i){o.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(e){r(e)},focus:function(){i.current&&i.current.focus()}}}),[i,t,n,r])}(e,k,P,N,_),o.useEffect((function(){return N(P)}),[N,P]);var M=e.onRenderLabel||R,F=P?"mixed":void 0,B=d(d({className:D.input,type:"checkbox"},i),{checked:!!k,disabled:n,required:r,name:a,id:C,title:h,onChange:A,"aria-disabled":n,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,"aria-posinset":u,"aria-setsize":p,"aria-checked":F});return o.createElement("div",{className:D.root,title:h,ref:x},o.createElement("input",d({},B,{ref:_,title:h,"data-ktp-execute-target":!0})),o.createElement("label",{className:D.label,htmlFor:C},o.createElement("div",{className:D.checkbox,"data-ktp-target":!0},o.createElement(Rc,d({iconName:"CheckMark"},m,{className:D.checkmark}))),M(e,R)))}));Am.displayName="CheckboxBase";var Rm={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Nm="20px",Mm="200ms",Fm="cubic-bezier(.4, 0, .23, 1)",Bm=vo(Am,(function(e){var t,n,r,o,i,a,s,l,c,u,p,h,m,f,g,v,y,b,C=e.className,S=e.theme,x=e.reversed,_=e.checked,E=e.disabled,k=e.isUsingCustomLabelRender,w=e.indeterminate,I=S.semanticColors,P=S.effects,T=S.palette,D=S.fonts,A=ka(Rm,S),R=I.inputForegroundChecked,N=T.neutralSecondary,M=T.neutralPrimary,F=I.inputBackgroundChecked,B=I.inputBackgroundChecked,O=I.disabledBodySubtext,L=I.inputBorderHovered,H=I.inputBackgroundCheckedHovered,V=I.inputBackgroundChecked,z=I.inputBackgroundCheckedHovered,U=I.inputBackgroundCheckedHovered,W=I.inputTextHovered,G=I.disabledBodySubtext,j=I.bodyText,q=I.disabledText,K=[(t={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:E?O:F,transitionProperty:"border-width, border, border-color",transitionDuration:Mm,transitionTimingFunction:Fm},t[ca]={borderColor:"WindowText"},t)];return{root:[A.root,{position:"relative",display:"flex"},x&&"reversed",_&&"is-checked",!E&&"is-enabled",E&&"is-disabled",!E&&[!_&&(n={},n[":hover .".concat(A.checkbox)]=(r={borderColor:L},r[ca]={borderColor:"Highlight"},r),n[":focus .".concat(A.checkbox)]={borderColor:L},n[":hover .".concat(A.checkmark)]=(o={color:N,opacity:"1"},o[ca]={color:"Highlight"},o),n),_&&!w&&(i={},i[":hover .".concat(A.checkbox)]={background:z,borderColor:U},i[":focus .".concat(A.checkbox)]={background:z,borderColor:U},i[ca]=(a={},a[":hover .".concat(A.checkbox)]={background:"Highlight",borderColor:"Highlight"},a[":focus .".concat(A.checkbox)]={background:"Highlight"},a[":focus:hover .".concat(A.checkbox)]={background:"Highlight"},a[":focus:hover .".concat(A.checkmark)]={color:"Window"},a[":hover .".concat(A.checkmark)]={color:"Window"},a),i),w&&(s={},s[":hover .".concat(A.checkbox,", :hover .").concat(A.checkbox,":after")]=(l={borderColor:H},l[ca]={borderColor:"WindowText"},l),s[":focus .".concat(A.checkbox)]={borderColor:H},s[":hover .".concat(A.checkmark)]={opacity:"0"},s),(c={},c[":hover .".concat(A.text,", :focus .").concat(A.text)]=(u={color:W},u[ca]={color:E?"GrayText":"WindowText"},u),c)],C],input:(p={position:"absolute",background:"none",opacity:0},p[".".concat(wr," &:focus + label::before")]=(h={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},h[ca]={outline:"1px solid WindowText"},h),p),label:[A.label,S.fonts.medium,{display:"flex",alignItems:k?"center":"flex-start",cursor:E?"default":"pointer",position:"relative",userSelect:"none"},x&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[A.checkbox,(m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:Nm,width:Nm,border:"1px solid ".concat(M),borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:Mm,transitionTimingFunction:Fm,overflow:"hidden",":after":w?K:null},m[ca]=d({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m),w&&{borderColor:F},x?{marginLeft:4}:{marginRight:4},!E&&!w&&_&&(f={background:V,borderColor:B},f[ca]={background:"Highlight",borderColor:"Highlight"},f),E&&(g={borderColor:O},g[ca]={borderColor:"GrayText"},g),_&&E&&(v={background:G,borderColor:O},v[ca]={background:"Window"},v)],checkmark:[A.checkmark,(y={opacity:_&&!w?"1":"0",color:R},y[ca]=d({color:E?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),y)],text:[A.text,(b={color:E?q:j,fontSize:D.medium.fontSize,lineHeight:"20px"},b[ca]=d({color:E?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),x?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),Om=cn({cacheSize:100}),Lm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,i=e.className,a=e.disabled,s=e.styles,l=e.required,c=e.theme,u=Om(s,{className:i,disabled:a,required:l,theme:c});return o.createElement(n,d({},mr(this.props,hr),{className:u.root}),r)},t}(o.Component),Hm=vo(Lm,(function(e){var t,n=e.theme,r=e.className,o=e.disabled,i=e.required,a=n.semanticColors,s=ri.semibold,l=a.bodyText,c=a.disabledBodyText,u=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:c,selectors:(t={},t[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},i&&{selectors:{"::after":{content:"' *'",color:u,paddingRight:12}}},r]}}),void 0,{scope:"Label"}),Vm=cn(),zm={imageSize:{width:32,height:32}},Um=function(e){var t=Co(d(d({},zm),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,i=t.required,a=t.theme,s=t.iconProps,l=t.imageSrc,c=t.imageSize,u=t.disabled,h=t.checked,m=t.id,f=t.styles,g=t.name,v=p(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),y=Vm(f,{theme:a,hasIcon:!!s,hasImage:!!l,checked:h,disabled:u,imageIsLarge:!!l&&(c.width>71||c.height>71),imageSize:c,focused:r}),b=mr(v,er),C=b.className,S=p(b,["className"]),x=function(){return o.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},_=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,i=(t.onRenderLabel?io(t.onRenderLabel,x):x)(d(d({},t),{key:t.itemKey}));return o.createElement("label",{htmlFor:m,className:y.field},l&&o.createElement("div",{className:y.innerField},o.createElement("div",{className:y.imageWrapper},o.createElement(kc,d({src:l,alt:n},c))),o.createElement("div",{className:y.selectedImageWrapper},o.createElement(kc,d({src:r,alt:n},c)))),s&&o.createElement("div",{className:y.innerField},o.createElement("div",{className:y.iconWrapper},o.createElement(Rc,d({},s)))),l||s?o.createElement("div",{className:y.labelWrapper},i):i)},E=t.onRenderField,k=void 0===E?_:E;return o.createElement("div",{className:y.root},o.createElement("div",{className:y.choiceFieldWrapper},o.createElement("input",d({"aria-label":n,id:m,className:kn(y.input,C),type:"radio",name:g,disabled:u,checked:h,required:i},S,{onChange:function(e){var n;null===(n=t.onChange)||void 0===n||n.call(t,e,d(d({},t),{key:t.itemKey}))},onFocus:function(e){var n;null===(n=t.onFocus)||void 0===n||n.call(t,e,d(d({},t),{key:t.itemKey}))},onBlur:function(e){var n;null===(n=t.onBlur)||void 0===n||n.call(t,e)}})),k(d(d({},t),{key:t.itemKey}),_)))};Um.displayName="ChoiceGroupOption";var Wm={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Gm="200ms",jm="cubic-bezier(.4, 0, .23, 1)";function qm(e,t){var n,r;return["is-inFocus",{selectors:(n={},n[".".concat(wr," &")]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid ".concat(e),position:"absolute",selectors:(r={},r[ca]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function Km(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Gm,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var Ym=vo(Um,(function(e){var t,n,r,o,i,a=e.theme,s=e.hasIcon,l=e.hasImage,c=e.checked,u=e.disabled,p=e.imageIsLarge,h=e.focused,m=e.imageSize,f=a.palette,g=a.semanticColors,v=a.fonts,y=ka(Wm,a),b=f.neutralPrimary,C=g.inputBorderHovered,S=g.inputBackgroundChecked,x=f.themeDark,_=g.disabledBodySubtext,E=g.bodyBackground,k=f.neutralSecondary,w=g.inputBackgroundChecked,I=f.themeDark,P=g.disabledBodySubtext,T=f.neutralDark,D=g.focusBorder,A=g.inputBorderHovered,R=g.inputBackgroundChecked,N=f.themeDark,M=f.neutralLighter,F={selectors:{".ms-ChoiceFieldLabel":{color:T},":before":{borderColor:c?x:C},":after":[!s&&!l&&!c&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:k},c&&{borderColor:I,background:I}]}},B={borderColor:c?N:A,selectors:{":before":{opacity:1,borderColor:c?x:C}}},O=[{content:'""',display:"inline-block",backgroundColor:E,borderWidth:1,borderStyle:"solid",borderColor:b,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Gm,transitionTimingFunction:jm,borderRadius:"50%"},u&&{borderColor:_,selectors:(t={},t[ca]=d({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},c&&{borderColor:u?_:S,selectors:(n={},n[ca]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:c?1:0}],L=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Gm,transitionTimingFunction:jm,boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:u?P:w,background:w,left:5,top:5,width:10,height:10,selectors:(r={},r[ca]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},c&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[y.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:g.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:M,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,h&&qm(D,s||l)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},u&&"is-disabled"],field:[y.field,c&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!u&&F,":focus":!u&&F,":before":O,":after":L}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Gm,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:R},(s||l)&&!u&&{selectors:{":hover":B,":focus":B}},u&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:(o={},o[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}}},c&&u&&{borderColor:M}],innerField:[y.innerField,l&&{height:m.height,width:m.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&p&&{paddingLeft:24,paddingRight:24},(s||l)&&u&&{opacity:.25,selectors:(i={},i[ca]={color:"GrayText",opacity:1},i)}],imageWrapper:Km(!1,y.imageWrapper,c),selectedImageWrapper:Km(!0,y.imageWrapper,c),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,v.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*m.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),Xm=cn(),Qm=function(e,t){return"".concat(t,"-").concat(e.key)},Zm=function(e,t){return void 0===t?void 0:At(e,(function(e){return e.key===t}))},Jm=function(e,t,n,r){var o=Zm(e,t)||e.filter((function(e){return!e.disabled}))[0],i=o&&document.getElementById(Qm(o,n));i&&(i.focus(),Tr(!0,i,r))},$m="ChoiceGroup",ef=o.forwardRef((function(e,t){var n=e.className,r=e.theme,i=e.styles,a=e.options,s=void 0===a?[]:a,l=e.label,c=e.required,u=e.disabled,p=e.name,h=e.defaultSelectedKey,m=e.componentRef,f=e.onChange,g=cl("ChoiceGroup"),v=cl("ChoiceGroupLabel"),y=mr(e,hr,["onChange","className","required"]),b=Xm(i,{theme:r,className:n,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),C=e.ariaLabelledBy||(l?v:e["aria-labelledby"]),S=sl(e.selectedKey,h),x=S[0],_=S[1],E=o.useState(),k=E[0],w=E[1],I=o.useRef(null),P=ul(I,t),T=o.useContext(Mr);!function(e){Sl({name:$m,props:e,mutuallyExclusive:{selectedKey:"defaultSelectedKey"}})}(e),function(e,t,n,r,i){o.useImperativeHandle(r,(function(){return{get checkedOption(){return Zm(e,t)},focus:function(){Jm(e,t,n,i)}}}),[e,t,n,i])}(s,x,g,m,null===T||void 0===T?void 0:T.registeredProviders),Fr(I);var D=o.useCallback((function(e,t){var n;t&&(w(t.itemKey),null===(n=t.onFocus)||void 0===n||n.call(t,e))}),[]),A=o.useCallback((function(e,t){var n;w(void 0),null===(n=null===t||void 0===t?void 0:t.onBlur)||void 0===n||n.call(t,e)}),[]),R=o.useCallback((function(e,t){var n;t&&(_(t.itemKey),null===(n=t.onChange)||void 0===n||n.call(t,e),null===f||void 0===f||f(e,Zm(s,t.itemKey)))}),[f,s,_]),N=o.useCallback((function(e){(function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper})(e)&&Jm(s,x,g,null===T||void 0===T?void 0:T.registeredProviders)}),[s,x,g,T]);return o.createElement("div",d({className:b.root},y,{ref:P}),o.createElement("div",d({role:"radiogroup"},C&&{"aria-labelledby":C},{onFocus:N}),l&&o.createElement(Hm,{className:b.label,required:c,id:v,disabled:u},l),o.createElement("div",{className:b.flexContainer},s.map((function(e){return o.createElement(Ym,d({itemKey:e.key},e,{key:e.key,onBlur:A,onFocus:D,onChange:R,focused:e.key===k,checked:e.key===x,disabled:e.disabled||u,id:Qm(e,g),labelId:e.labelId||"".concat(v,"-").concat(e.key),name:p||g,required:c}))})))))}));ef.displayName=$m;var tf={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},nf=(vo(ef,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=ka(tf,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),32),rf=yn((function(){return Se({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})})),of=yn((function(){return Se({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})})),af=yn((function(){return Se({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})}));var sf,lf=yn((function(){var e;return ve({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(e={},e[ca]={border:"1px solid WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})})),cf={opacity:0},uf=((sf={})[Za.top]="slideUpIn20",sf[Za.bottom]="slideDownIn20",sf[Za.left]="slideLeftIn20",sf[Za.right]="slideRightIn20",sf),df={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:fs};function pf(e,t,n,r,i){var a=ol(),s=o.useState(),l=s[0],c=s[1],u=o.useRef(0),p=function(){a.requestAnimationFrame((function(){return h()}))},h=function(){var o=e.offsetFromTarget,a=e.onPositioned,s=t.current,p=n.current;if(s&&p){var h=d({},e);h.bounds=i(),h.target=r.current;var m=h.target;if(m)if(!m.getBoundingClientRect&&!m.preventDefault||document.body.contains(m)){h.gapSpace=o;var f=tl(h,s,p);!l&&f||l&&f&&!function(e,t){return function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(r&&o&&r.toFixed(2)!==o.toFixed(2))return!1}return!0}(e.elementPosition,t.elementPosition)}(l,f)&&u.current<5?(u.current++,c(f),null===a||void 0===a||a(f)):(u.current=0,null===a||void 0===a||a(f))}else void 0!==l&&c(void 0);else void 0!==l&&c(void 0)}};return o.useEffect(p),[l,p]}function hf(e,t,n){var r=e.directionalHintFixed,i=e.offsetFromTarget,a=e.directionalHint,s=e.target,l=o.useRef();"string"===typeof s&&(l.current=void 0),o.useEffect((function(){l.current=void 0}),[s,i]);return function(){if(!l.current)if(r&&t.current){var e=i||0;l.current=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,a=e,s=e,l=r?Qs(r):new It(0,window.innerWidth-He(),0,window.innerHeight),c=s.left||s.x,u=s.top||s.y,d=s.right||c,p=s.bottom||u;return Zs(i.stopPropagation?new It(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==c&&void 0!==u?new It(c,d,u,p):Xs(a),t,n,l,o)}(t.current,a,e,n())}else l.current=n().height-2;return l.current}}var mf=o.forwardRef((function(e,t){var n=Co(df,e),r=o.useRef(null),i=o.useRef(null),a=ul(t,i),s=yl(n.target,i),l=s[0],c=s[1],u=function(e,t){return function(){var n=e.bounds;return n||(n={top:0+e.minPagePadding,left:0+e.minPagePadding,right:t.innerWidth-e.minPagePadding,bottom:t.innerHeight-e.minPagePadding,width:t.innerWidth-2*e.minPagePadding,height:t.innerHeight-2*e.minPagePadding}),n}}(n,c),p=pf(n,i,r,l,u),h=p[0],m=p[1],f=hf(n,l,u),g=function(e,t){var n=e.finalHeight,r=o.useState({value:0}),i=r[0],a=r[1],s=ol(),l=o.useRef(0);return o.useEffect((function e(){t&&n&&(l.current=s.requestAnimationFrame((function(){if(t.current){var r=t.current.lastChild,o=r.scrollHeight-r.offsetHeight;a({value:i.value+o}),r.offsetHeight<n?e():s.cancelAnimationFrame(l.current)}})))}),[n]),i.value}(n,r);if(function(e,t,n){var r=e.setInitialFocus,i=o.useRef(!1);o.useEffect((function(){!i.current&&t.current&&r&&n&&(i.current=!0,Kt(t.current))}))}(n,r,h),function(e,t,n,r,i,a){var s=e.onDismiss,l=e.preventDismissOnScroll,c=ol(),u=o.useCallback((function(e){s?s(e):a()}),[s,a]),d=o.useCallback((function(e){var o=e.target,i=t.current&&!zt(t.current,o);(!r.current&&i||e.target!==n&&i&&(r.current.stopPropagation||!r.current||o!==r.current&&!zt(r.current,o)))&&u(e)}),[u,t,r,n]),p=o.useCallback((function(e){i&&!l&&d(e)}),[d,i,l]);o.useEffect((function(){var e=new Ae({});return c.setTimeout((function(){var t,r;e.on(n,"scroll",c.throttle(p,10),!0),e.on(n,"resize",c.throttle(u,10),!0),e.on(null===(t=null===n||void 0===n?void 0:n.document)||void 0===t?void 0:t.body,"focus",d,!0),e.on(null===(r=null===n||void 0===n?void 0:n.document)||void 0===r?void 0:r.body,"click",d,!0)}),0),function(){return e.dispose()}}),[p])}(n,i,c,l,h,m),o.useEffect((function(){var e;return null===(e=n.onLayerMounted)||void 0===e?void 0:e.call(n)}),[]),!c)return null;var v=n.className,y=n.doNotLayer,b=n.positioningContainerWidth,C=n.positioningContainerMaxHeight,S=n.children,x=lf(),_=h&&h.targetEdge?Ka[uf[h.targetEdge]]:"",E=f()+g,k=C&&C>E?E:C,w=o.createElement("div",{ref:a,className:kn("ms-PositioningContainer",x.container)},o.createElement("div",{className:me("ms-PositioningContainer-layerHost",x.root,v,_,!!b&&{width:b},y&&{zIndex:la.Layer}),style:h?h.elementPosition:cf,tabIndex:-1,ref:r},S,k));return y?w:o.createElement(rc,d({},n.layerProps),w)}));function ff(e){var t;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block",selectors:(t={},t[ca]={fill:"windowtext"},t)}}}mf.displayName="PositioningContainer";var gf=10,vf=18,yf=o.forwardRef((function(e,t){var n,r,i,a,s,l,c=e.left,u=e.top,d=e.bottom,p=e.right,h=e.color,m=e.direction,f=void 0===m?Za.top:m;switch(f===Za.top||f===Za.bottom?(n=gf,r=vf):(n=vf,r=gf),f){case Za.top:default:i="".concat(9,", 0"),a="".concat(vf,", ").concat(gf),s="0, ".concat(gf),l="translateY(-100%)";break;case Za.right:i="0, 0",a="".concat(gf,", ").concat(gf),s="0, ".concat(vf),l="translateX(100%)";break;case Za.bottom:i="0, 0",a="".concat(vf,", 0"),s="".concat(9,", ").concat(gf),l="translateY(100%)";break;case Za.left:i="".concat(gf,", 0"),a="0, ".concat(gf),s="".concat(gf,", ").concat(vf),l="translateX(-100%)"}var g=cn()(ff,{left:c,top:u,bottom:d,right:p,height:"".concat(n,"px"),width:"".concat(r,"px"),transform:l,color:h});return o.createElement("div",{className:g.root,role:"presentation",ref:t},o.createElement("svg",{height:n,width:r,className:g.beak},o.createElement("polygon",{points:i+" "+a+" "+s})))}));yf.displayName="Beak";var bf=cn(),Cf={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:fs}};var Sf="CoachmarkBase",xf=o.forwardRef((function(e,t){var n=Co(Cf,e),r=o.useRef(null),i=o.useRef(null),a=function(){var e=ol(),t=o.useState(),n=t[0],r=t[1],i=o.useState(),a=i[0],s=i[1];return[n,a,function(t){var n=t.alignmentEdge,o=t.targetEdge;return e.requestAnimationFrame((function(){r(n),s(o)}))}]}(),s=a[0],l=a[1],c=a[2],u=function(e,t){var n=e.isCollapsed,r=e.onAnimationOpenStart,i=e.onAnimationOpenEnd,a=o.useState(!!n),s=a[0],l=a[1],c=ml().setTimeout,u=o.useRef(!s),d=o.useCallback((function(){var e,n;u.current||(l(!1),null===r||void 0===r||r(),null===(n=null===(e=t.current)||void 0===e?void 0:e.addEventListener)||void 0===n||n.call(e,"transitionend",(function(){c((function(){t.current&&Kt(t.current)}),1e3),null===i||void 0===i||i()})),u.current=!0)}),[t,i,r,c]);return o.useEffect((function(){n||d()}),[n]),[s,d]}(n,r),p=u[0],h=u[1],m=function(e,t,n){var r=Ot(e.theme);return o.useMemo((function(){var e,o,i=void 0===n?Za.bottom:rl(n),a={direction:i},s="3px";switch(i){case Za.top:case Za.bottom:t?t===Za.left?(a.left="".concat(7,"px"),e="left"):(a.right="".concat(7,"px"),e="right"):(a.left="calc(50% - ".concat(9,"px)"),e="center"),i===Za.top?(a.top=s,o="top"):(a.bottom=s,o="bottom");break;case Za.left:case Za.right:t?t===Za.top?(a.top="".concat(7,"px"),o="top"):(a.bottom="".concat(7,"px"),o="bottom"):(a.top="calc(50% - ".concat(9,"px)"),o="center"),i===Za.left?(r?a.right=s:a.left=s,e="left"):(r?a.left=s:a.right=s,e="right")}return[a,"".concat(e," ").concat(o)]}),[t,n,r])}(n,s,l),f=m[0],g=m[1],v=function(e,t){var n=o.useState(!!e.isCollapsed),r=n[0],i=n[1],a=o.useState(e.isCollapsed?{width:0,height:0}:{}),s=a[0],l=a[1],c=ol();return o.useEffect((function(){c.requestAnimationFrame((function(){t.current&&(l({width:t.current.offsetWidth,height:t.current.offsetHeight}),i(!1))}))}),[]),[r,s]}(n,r),y=v[0],b=v[1],C=o.useState(_f(n.isPositionForced,n.positioningContainerProps)),S=C[0],x=C[1],_=function(e){var t=e.ariaAlertText,n=ol(),r=o.useState(),i=r[0],a=r[1];return o.useEffect((function(){n.requestAnimationFrame((function(){a(t)}))}),[]),i}(n),E=function(e){var t=e.preventFocusOnMount,n=ml().setTimeout,r=o.useRef(null);return o.useEffect((function(){t||n((function(){var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}),1e3)}),[]),r}(n);!function(e,t,n){var r,o=null===(r=Re())||void 0===r?void 0:r.documentElement;dl(o,"keydown",(function(e){var r,o;(e.altKey&&e.which===_t||e.which===it&&(null===(o=null===(r=t.current)||void 0===r?void 0:r.contains)||void 0===o?void 0:o.call(r,e.target)))&&n()}),!0);var i=function(n){var r;if(e.preventDismissOnLostFocus){var o=n.target,i=t.current&&!zt(t.current,o),a=e.target;i&&o!==a&&!zt(a,o)&&(null===(r=e.onDismiss)||void 0===r||r.call(e,n))}};dl(o,"click",i,!0),dl(o,"focus",i,!0)}(n,i,h),function(e){var t=e.onDismiss;o.useImperativeHandle(e.componentRef,(function(e){return{dismiss:function(){null===t||void 0===t||t(e)}}}),[t])}(n),function(e,t,n,r){var i=ml(),a=i.setTimeout,s=i.clearTimeout,l=o.useRef();o.useEffect((function(){var o=function(){t.current&&(l.current=t.current.getBoundingClientRect())},i=new Ae({});return a((function(){var t=e.mouseProximityOffset,c=void 0===t?0:t,u=[];a((function(){o(),i.on(window,"resize",(function(){u.forEach((function(e){s(e)})),u.splice(0,u.length),u.push(a((function(){o(),r(_f(e.isPositionForced,e.positioningContainerProps))}),100))}))}),10),i.on(document,"mousemove",(function(t){var r,i=t.clientY,a=t.clientX;o(),function(e,t,n,r){return void 0===r&&(r=0),t>e.left-r&&t<e.left+e.width+r&&n>e.top-r&&n<e.top+e.height+r}(l.current,a,i,c)&&n(),null===(r=e.onMouseMove)||void 0===r||r.call(e,t)}))}),e.delayBeforeMouseOpen),function(){return i.dispose()}}),[])}(n,i,h,x),function(e){Sl({name:Sf,props:e,deprecations:{teachingBubbleRef:void 0,collapsed:"isCollapsed",beakWidth:void 0,beakHeight:void 0,width:void 0,height:void 0}})}(n),o.useEffect((function(){x(_f(n.isPositionForced,n.positioningContainerProps))}),[n.isPositionForced,n.positioningContainerProps]);var k=n.beaconColorOne,w=n.beaconColorTwo,I=n.children,P=n.target,T=n.color,D=n.positioningContainerProps,A=n.ariaDescribedBy,R=n.ariaDescribedByText,N=n.ariaLabelledBy,M=n.ariaLabelledByText,F=n.ariaAlertText,B=n.delayBeforeCoachmarkAnimation,O=n.styles,L=n.theme,H=n.className,V=n.persistentBeak,z=T;!z&&L&&(z=L.semanticColors.primaryButtonBackground);var U=bf(O,{theme:L,beaconColorOne:k,beaconColorTwo:w,className:H,isCollapsed:p,isMeasuring:y,color:z,transformOrigin:g,entityHostHeight:void 0===b.height?void 0:"".concat(b.height,"px"),entityHostWidth:void 0===b.width?void 0:"".concat(b.width,"px"),width:"".concat(nf,"px"),height:"".concat(32,"px"),delayBeforeCoachmarkAnimation:"".concat(B,"ms")}),W=p?32:b.height;return o.createElement(mf,d({target:P,offsetFromTarget:gf,finalHeight:W,ref:t,onPositioned:c,bounds:S},D),o.createElement("div",{className:U.root},F&&o.createElement("div",{className:U.ariaContainer,role:"alert","aria-hidden":!p},_),o.createElement("div",{className:U.pulsingBeacon}),o.createElement("div",{className:U.translateAnimationContainer,ref:i},o.createElement("div",{className:U.scaleAnimationLayer},o.createElement("div",{className:U.rotateAnimationLayer},(p||V)&&o.createElement(yf,d({},f,{color:z})),o.createElement("div",{className:U.entityHost,ref:E,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":N,"aria-describedby":A},p&&[N&&o.createElement("p",{id:N,key:0,className:U.ariaContainer},M),A&&o.createElement("p",{id:A,key:1,className:U.ariaContainer},R)],o.createElement(ac,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},o.createElement("div",{className:U.entityInnerHost,ref:r},o.createElement("div",{className:U.childrenContainer,"aria-hidden":p},I)))))))))}));function _f(e,t){return e?!t||t.directionalHint!==ds&&t.directionalHint!==fs?{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:void 0}xf.displayName=Sf;vo(xf,(function(e){var t,n=e.theme,r=e.className,o=e.color,i=e.beaconColorOne,a=e.beaconColorTwo,s=e.delayBeforeCoachmarkAnimation,l=e.isCollapsed,c=e.isMeasuring,u=e.entityHostHeight,d=e.entityHostWidth,p=e.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var h=_a.continuousPulseAnimationDouble(i||n.palette.themePrimary,a||n.palette.themeTertiary,"35px","150px","10px"),m=_a.createDefaultAnimation(h,s);return{root:[n.fonts.medium,{position:"relative"},r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:Ot(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},l&&m],translateAnimationContainer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:rf(),transition:"opacity 0.5s ease-in-out"},!l&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:of()}],rotateAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:af()},!l&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:o,borderRadius:nf,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(t={},t[ca]={backgroundColor:"Window",border:"2px solid WindowText"},t[".".concat(wr," &:focus")]={outline:"1px solid ".concat(n.palette.themeTertiary)},t)},!c&&l&&{width:nf,height:32},!c&&{visibility:"visible"},!l&&{borderRadius:"1px",opacity:"1",width:d,height:u}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:p,transform:"scale(0)"},!l&&{width:d,height:u,transform:"scale(1)"},!c&&{visibility:"visible"}],childrenContainer:[{display:!c&&l?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}),void 0,{scope:"Coachmark"});var Ef=100,kf=100,wf=255,If=100,Pf=/^[\da-f]{0,6}$/i,Tf=/^\d{0,3}$/;function Df(e,t,n){var r=[],o=(n/=100)*(t/=100),i=e/60,a=o*(1-Math.abs(i%2-1)),s=n-o;switch(Math.floor(i)){case 0:r=[o,a,0];break;case 1:r=[a,o,0];break;case 2:r=[0,o,a];break;case 3:r=[0,a,o];break;case 4:r=[a,0,o];break;case 5:r=[o,0,a]}return{r:Math.round(wf*(r[0]+s)),g:Math.round(wf*(r[1]+s)),b:Math.round(wf*(r[2]+s))}}function Af(e){if(e){var t=Rf(e)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:If}}(e)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:If}}(e)||function(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r){var i=function(e,t,n){var r=function(e,t,n){var r=n+(t*=(n<50?n:100-n)/100);return{h:e,s:0===r?0:2*t/r*100,v:r}}(e,t,n);return Df(r.h,r.s,r.v)}(o[0],o[1],o[2]);return i.a=n?100*o[3]:If,i}}}(e);return t||function(e){if("undefined"===typeof document)return;var t=document.createElement("div");t.style.backgroundColor=e,t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.width="1px",document.body.appendChild(t);var n=getComputedStyle(t),r=n&&n.backgroundColor;if(document.body.removeChild(t),"rgba(0, 0, 0, 0)"===r||"transparent"===r){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return Rf(r)}(e)}}function Rf(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r)return{r:o[0],g:o[1],b:o[2],a:n?100*o[3]:If}}}}function Nf(e,t,n){return void 0===n&&(n=0),e<n?n:e>t?t:e}function Mf(e,t,n){return[Ff(e),Ff(t),Ff(n)].join("")}function Ff(e){var t=(e=Nf(e,wf)).toString(16);return 1===t.length?"0"+t:t}function Bf(e,t,n){var r=Df(e,t,n);return Mf(r.r,r.g,r.b)}function Of(e,t,n){var r=(2-(t/=Ef))*(n/=kf),o=t*n;return{h:e,s:100*(o=(o/=r<=1?r:2-r)||0),l:100*(r/=2)}}function Lf(e,t,n,r,o){return r===If||"number"!==typeof r?"#".concat(o):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r/If,")")}function Hf(e){var t=e.a,n=void 0===t?If:t,r=e.b,o=e.g,i=e.r,a=function(e,t,n){var r=NaN,o=Math.max(e,t,n),i=o-Math.min(e,t,n);return 0===i?r=0:e===o?r=(t-n)/i%6:t===o?r=(n-e)/i+2:n===o&&(r=(e-t)/i+4),(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:i/o)),v:Math.round(o/wf*100)}}(i,o,r),s=a.h,l=a.s,c=a.v,u=Mf(i,o,r);return{a:n,b:r,g:o,h:s,hex:u,r:i,s:l,str:Lf(i,o,r,n,u),v:c,t:If-n}}function Vf(e){var t=Af(e);if(t)return d(d({},Hf(t)),{str:e})}function zf(e){return"#".concat(Bf(e.h,Ef,kf))}function Uf(e,t,n){var r=Df(e.h,t,n),o=r.r,i=r.g,a=r.b,s=Mf(o,i,a);return d(d({},e),{s:t,v:n,r:o,g:i,b:a,hex:s,str:Lf(o,i,a,e.a,s)})}function Wf(e,t){return d(d({},e),{a:t,t:If-t,str:Lf(e.r,e.g,e.b,t,e.hex)})}var Gf,jf=[.027,.043,.082,.145,.184,.216,.349,.537],qf=[.537,.45,.349,.216,.184,.145,.082,.043],Kf=[.537,.349,.216,.184,.145,.082,.043,.027],Yf=[.537,.45,.349,.216,.184,.145,.082,.043],Xf=[.88,.77,.66,.55,.44,.33,.22,.11],Qf=[.11,.22,.33,.44,.55,.66,.77,.88],Zf=[.96,.84,.7,.4,.12],Jf=[.1,.24,.44];function $f(e){return"number"===typeof e&&e>=Gf.Unshaded&&e<=Gf.Shade8}function eg(e,t){return{h:e.h,s:e.s,v:Nf(e.v-e.v*t,100,0)}}function tg(e,t){return{h:e.h,s:Nf(e.s-e.s*t,100,0),v:Nf(e.v+(100-e.v)*t,100,0)}}function ng(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===Gf.Unshaded||!$f(t))return e;var r=Of(e.h,e.s,e.v),o={h:e.h,s:e.s,v:e.v},i=t-1,a=tg,s=eg;return n&&(a=eg,s=tg),o=function(e){return e.r===wf&&e.g===wf&&e.b===wf}(e)?eg(o,Kf[i]):function(e){return 0===e.r&&0===e.g&&0===e.b}(e)?tg(o,Yf[i]):r.l/100>.8?s(o,Qf[i]):r.l/100<.2?a(o,Xf[i]):i<Zf.length?a(o,Zf[i]):s(o,Jf[i-Zf.length]),Hf(Pe(Df(o.h,o.s,o.v),{a:e.a}))}function rg(e,t){var n=If-t;return d(d({},e),{t:t,a:n,str:Lf(e.r,e.g,e.b,n,e.hex)})}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(Gf||(Gf={}));var og,ig=cn(),ag="TextField",sg=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=o.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(Hm,{required:r,htmlFor:n._id,styles:i,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?o.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState((function(e){return{isRevealingPassword:!e.isRevealingPassword}}))},n._onInputChange=function(e){var t,r,o=e.target.value,i=lg(n.props,n.state)||"";void 0!==o&&o!==n._lastChangeValue&&o!==i?(n._lastChangeValue=o,null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})):n._lastChangeValue=void 0},br(n),n._async=new we(n),Ke(ag,t,{errorMessage:"onGetErrorMessage"}),n._fallbackId=zn(ag),n._descriptionId=zn("TextFieldDescription"),n._labelId=zn("TextFieldLabel"),n._prefixId=zn("TextFieldPrefix"),n._suffixId=zn("TextFieldSuffix"),n._warnControlledUsage();var r=t.defaultValue,i=void 0===r?"":r;return"number"===typeof i&&(i=String(i)),n.state={uncontrolledValue:n._isControlled?void 0:i,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return u(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return lg(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,i=void 0===o?[null,null]:o,a=i[0],s=i[1];!!e.multiline!==!!r.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==r.value&&(this._lastChangeValue=void 0);var l=lg(e,t),c=this.value;l!==c&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),cg(r)&&this._delayedValidate(c))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,i=e.invalid,a=e.iconProps,s=e.inputClassName,l=e.label,c=e.multiline,u=e.required,p=e.underlined,h=e.prefix,m=e.resizable,f=e.suffix,g=e.theme,v=e.styles,y=e.autoAdjustHeight,b=e.canRevealPassword,C=e.revealPasswordAriaLabel,S=e.type,x=e.onRenderPrefix,_=void 0===x?this._onRenderPrefix:x,E=e.onRenderSuffix,k=void 0===E?this._onRenderSuffix:E,w=e.onRenderLabel,I=void 0===w?this._onRenderLabel:w,P=e.onRenderDescription,T=void 0===P?this._onRenderDescription:P,D=this.state,A=D.isFocused,R=D.isRevealingPassword,N=this._errorMessage,M="boolean"===typeof i?i:!!N,F=!!b&&"password"===S&&function(){if("boolean"!==typeof og){var e=ke();if(null===e||void 0===e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");og=!(bo()||t)}else og=!0}return og}(),B=this._classNames=ig(v,{theme:g,className:n,disabled:r,focused:A,required:u,multiline:c,hasLabel:!!l,hasErrorMessage:M,borderless:t,resizable:m,hasIcon:!!a,underlined:p,inputClassName:s,autoAdjustHeight:y,hasRevealButton:F});return o.createElement("div",{ref:this.props.elementRef,className:B.root},o.createElement("div",{className:B.wrapper},I(this.props,this._onRenderLabel),o.createElement("div",{className:B.fieldGroup},(void 0!==h||this.props.onRenderPrefix)&&o.createElement("div",{className:B.prefix,id:this._prefixId},_(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),a&&o.createElement(Rc,d({className:B.icon},a)),F&&o.createElement("button",{"aria-label":C,className:B.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!R,type:"button"},o.createElement("span",{className:B.revealSpan},o.createElement(Rc,{className:B.revealIcon,iconName:R?"Hide":"RedEye"}))),(void 0!==f||this.props.onRenderSuffix)&&o.createElement("div",{className:B.suffix,id:this._suffixId},k(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&o.createElement("span",{id:this._descriptionId},T(this.props,this._onRenderDescription),N&&o.createElement("div",{role:"alert"},o.createElement(Ze,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){yo({componentId:this._id,componentName:ag,props:this.props,oldProps:e,valueProp:"value",defaultValueProp:"defaultValue",onChangeProp:"onChange",readOnlyProp:"readOnly"}),null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,je("Warning: 'value' prop on '".concat(ag,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return En(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"===typeof e?o.createElement("p",{className:this._classNames.errorMessage},o.createElement("span",{"data-automation-id":"error-message"},e)):o.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,n=mr(this.props,tr,["defaultValue"]),r=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("textarea",d({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,n=e.invalid,r=void 0===n?!!this._errorMessage:n,i=e.onRenderPrefix,a=e.onRenderSuffix,s=e.prefix,l=e.suffix,c=e.type,u=void 0===c?"text":c,p=[];e.label&&p.push(this._labelId),(void 0!==s||i)&&p.push(this._prefixId),(void 0!==l||a)&&p.push(this._suffixId);var h=d(d({type:this.state.isRevealingPassword?"text":u,id:this._id},mr(this.props,er,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,onFocus:this._onFocus,onBlur:this._onBlur}),m=function(e){return o.createElement("input",d({},e))};return(this.props.onRenderInput||m)(h,m)},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!cg(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!==typeof r&&"then"in r){var o=++this._lastValidation;r.then((function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(o.Component);function lg(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"===typeof r?String(r):r}function cg(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var ug={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function dg(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,i=o.palette,a=o.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(e={},e[ca]={height:31},e)}]}}}var pg=vo(sg,(function(e){var t,n,r,o,i,a,s,l,c,u,p,h,m=e.theme,f=e.className,g=e.disabled,v=e.focused,y=e.required,b=e.multiline,C=e.hasLabel,S=e.borderless,x=e.underlined,_=e.hasIcon,E=e.resizable,k=e.hasErrorMessage,w=e.inputClassName,I=e.autoAdjustHeight,P=e.hasRevealButton,T=m.semanticColors,D=m.effects,A=m.fonts,R=ka(ug,m),N={background:T.disabledBackground,color:g?T.disabledText:T.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[ca]={background:"Window",color:g?"GrayText":"WindowText"},t)},M=[{color:T.inputPlaceholderText,opacity:1,selectors:(n={},n[ca]={color:"GrayText"},n)}],F={color:T.disabledText,selectors:(r={},r[ca]={color:"GrayText"},r)};return{root:[R.root,A.medium,y&&R.required,g&&R.disabled,v&&R.active,b&&R.multiline,S&&R.borderless,x&&R.underlined,Ga,{position:"relative"},f],wrapper:[R.wrapper,x&&[{display:"flex",borderBottom:"1px solid ".concat(k?T.errorText:T.inputBorder),width:"100%"},g&&{borderBottomColor:T.disabledBackground,selectors:(o={},o[ca]=d({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},!g&&{selectors:{":hover":{borderBottomColor:k?T.errorText:T.inputBorderHovered,selectors:(i={},i[ca]=d({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},v&&[{position:"relative"},va(k?T.errorText:T.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[R.fieldGroup,Ga,{border:"1px solid ".concat(T.inputBorder),borderRadius:D.roundedCorner2,background:T.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},b&&{minHeight:"60px",height:"auto",display:"flex"},!v&&!g&&{selectors:{":hover":{borderColor:T.inputBorderHovered,selectors:(a={},a[ca]=d({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},v&&!x&&va(k?T.errorText:T.inputFocusBorderAlt,D.roundedCorner2),g&&{borderColor:T.disabledBackground,selectors:(s={},s[ca]=d({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s),cursor:"default"},S&&{border:"none"},S&&v&&{border:"none",selectors:{":after":{border:"none"}}},x&&{flex:"1 1 0px",border:"none",textAlign:"left"},x&&g&&{backgroundColor:"transparent"},k&&!x&&{borderColor:T.errorText,selectors:{"&:hover":{borderColor:T.errorText}}},!C&&y&&{selectors:(l={":before":{content:"'*'",color:T.errorText,position:"absolute",top:-5,right:-10}},l[ca]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[A.medium,R.field,Ga,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:T.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(c={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},c[ca]={background:"Window",color:g?"GrayText":"WindowText"},c)},qa(M),b&&!E&&[R.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&I&&{overflow:"hidden"},_&&!P&&{paddingRight:24},b&&_&&{paddingRight:40},g&&[{backgroundColor:T.disabledBackground,color:T.disabledText,borderColor:T.disabledBackground},qa(F)],x&&{textAlign:"left"},v&&!S&&{selectors:(u={},u[ca]={paddingLeft:11,paddingRight:11},u)},v&&b&&!S&&{selectors:(p={},p[ca]={paddingTop:4},p)},w],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:oi.medium,lineHeight:18},g&&{color:T.disabledText}],description:[R.description,{color:T.bodySubtext,fontSize:A.xSmall.fontSize}],errorMessage:[R.errorMessage,Ka.slideDownIn20,A.small,{color:T.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[R.prefix,N],suffix:[R.suffix,N],revealButton:[R.revealButton,"ms-Button","ms-Button--icon",fa(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:T.link,selectors:{":hover":{outline:0,color:T.primaryButtonBackgroundHovered,backgroundColor:T.buttonBackgroundHovered,selectors:(h={},h[ca]={borderColor:"Highlight",color:"Highlight"},h)},":focus":{outline:0}}},_&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:oi.medium,lineHeight:18},subComponentStyles:{label:dg(e)}}}),void 0,{scope:"TextField"}),hg={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function mg(e,t){if(void 0===t&&(t=hg),!e)return[];for(var n=[],r=0,o=0;o+r<e.length;o++){var i=e.charAt(o+r);if("\\"===i)r++;else{var a=t[i];a&&n.push({displayIndex:o,format:a})}}return n}function fg(e,t,n){var r=e;if(!r)return"";r=r.replace(/\\/g,"");var o=0;t.length>0&&(o=t[0].displayIndex-1);for(var i=0,a=t;i<a.length;i++){var s=a[i],l=" ";s.value?(l=s.value,s.displayIndex>o&&(o=s.displayIndex)):n&&(l=n),r=r.slice(0,s.displayIndex)+l+r.slice(s.displayIndex+1)}return n||(r=r.slice(0,o+1)),r}function gg(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function vg(e,t,n){for(var r=0;r<e.length;r++)if(e[r].displayIndex>=t){if(e[r].displayIndex>=t+n)break;e[r].value=void 0}return e}function yg(e,t,n){for(var r=0,o=0,i=!1,a=0;a<e.length&&r<n.length;a++)if(e[a].displayIndex>=t)for(i=!0,o=e[a].displayIndex;r<n.length;){if(e[a].format.test(n.charAt(r))){e[a].value=n.charAt(r++),a+1<e.length?o=e[a+1].displayIndex:o++;break}r++}return i?o:t}var bg=o.forwardRef((function(e,t){var n=o.useRef(null),r=e.componentRef,i=e.onFocus,a=e.onBlur,s=e.onMouseDown,l=e.onMouseUp,c=e.onChange,u=e.onPaste,p=e.onKeyDown,h=e.mask,m=e.maskChar,f=void 0===m?"_":m,g=e.maskFormat,v=void 0===g?hg:g,y=e.value,b=il((function(){return{maskCharData:mg(h,v),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}})),C=o.useState(),S=C[0],x=C[1],_=o.useState((function(){return fg(h,b.maskCharData,f)})),E=_[0],k=_[1],w=o.useCallback((function(e){for(var t=0,n=0;t<e.length&&n<b.maskCharData.length;){var r=e[t];b.maskCharData[n].format.test(r)&&(b.maskCharData[n].value=r,n++),t++}}),[b]),I=o.useCallback((function(e){null===i||void 0===i||i(e),b.isFocused=!0;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}),[b,i]),P=o.useCallback((function(e){null===a||void 0===a||a(e),b.isFocused=!1,b.moveCursorOnMouseUp=!0}),[b,a]),T=o.useCallback((function(e){null===s||void 0===s||s(e),b.isFocused||(b.moveCursorOnMouseUp=!0)}),[b,s]),D=o.useCallback((function(e){if(null===l||void 0===l||l(e),b.moveCursorOnMouseUp){b.moveCursorOnMouseUp=!1;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}}),[b,l]),A=o.useCallback((function(e,t){if(null===b.changeSelectionData&&n.current&&(b.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),b.changeSelectionData){var r=0,o=b.changeSelectionData,i=o.changeType,a=o.selectionStart,s=o.selectionEnd;if("textPasted"===i){var l=s-a,u=t.length+l-E.length,d=a,p=t.substr(d,u);l&&(b.maskCharData=vg(b.maskCharData,a,l)),r=yg(b.maskCharData,d,p)}else if("delete"===i||"backspace"===i){var m="delete"===i;(u=s-a)?(b.maskCharData=vg(b.maskCharData,a,u),r=gg(b.maskCharData,a)):m?(b.maskCharData=function(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=gg(b.maskCharData,a)):(b.maskCharData=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}(b.maskCharData,a))}else if(t.length>E.length){d=s-(u=t.length-E.length);var g=t.substr(d,u);r=yg(b.maskCharData,d,g)}else if(t.length<=E.length){u=1;var v=E.length+u-t.length;d=s-u,g=t.substr(d,u);b.maskCharData=vg(b.maskCharData,d,v),r=yg(b.maskCharData,d,g)}b.changeSelectionData=null;var y=fg(h,b.maskCharData,f);k(y),x(r),null===c||void 0===c||c(e,y)}}),[E.length,b,h,f,c]),R=o.useCallback((function(e){if(null===p||void 0===p||p(e),b.changeSelectionData=null,n.current&&n.current.value){var t=e.keyCode,r=e.ctrlKey,o=e.metaKey;if(r||o)return;if(t===rt||t===bt){var i=e.target.selectionStart,a=e.target.selectionEnd;if(!(t===rt&&a&&a>0)&&!(t===bt&&null!==i&&i<n.current.value.length))return;b.changeSelectionData={changeType:t===rt?"backspace":"delete",selectionStart:null!==i?i:-1,selectionEnd:null!==a?a:-1}}}}),[b,p]),N=o.useCallback((function(e){null===u||void 0===u||u(e);var t=e.target.selectionStart,n=e.target.selectionEnd;b.changeSelectionData={changeType:"textPasted",selectionStart:null!==t?t:-1,selectionEnd:null!==n?n:-1}}),[b,u]);return o.useEffect((function(){b.maskCharData=mg(h,v),void 0!==y&&w(y),k(fg(h,b.maskCharData,f))}),[h,y]),_o((function(){void 0!==S&&n.current&&n.current.setSelectionRange(S,S)}),[S]),o.useEffect((function(){b.isFocused&&void 0!==S&&n.current&&n.current.setSelectionRange(S,S)})),function(e,t,n){o.useImperativeHandle(e,(function(){return{get value(){for(var e="",n=0;n<t.maskCharData.length;n++){if(!t.maskCharData[n].value)return;e+=t.maskCharData[n].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}}),[t,n])}(r,b,n),o.createElement(pg,d({},e,{elementRef:t,onFocus:I,onBlur:P,onMouseDown:T,onMouseUp:D,onChange:A,onKeyDown:R,onPaste:N,value:E||"",componentRef:n}))}));bg.displayName="MaskedTextField";var Cg=cn(),Sg=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=zn("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,r=t.s,o=t.v,i=e.shiftKey?10:1;switch(e.which){case gt:n._isAdjustingSaturation=!1,o+=i;break;case yt:n._isAdjustingSaturation=!1,o-=i;break;case ft:n._isAdjustingSaturation=!0,r-=i;break;case vt:n._isAdjustingSaturation=!0,r+=i;break;default:return}n._updateColor(e,Uf(t,Nf(r,Ef),Nf(o,kf)))},n._onMouseDown=function(e){n._disposables.push(on(window,"mousemove",n._onMouseMove,!0),on(window,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=xg(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=xg(e,n.state.color,n._root.current);t&&n._updateColor(e,t),e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},br(n),n.state={color:t.color},n}return u(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,i=e.styles,a=e.ariaValueFormat,s=e.ariaLabel,l=e.ariaDescription,c=this.state.color,u=Cg(i,{theme:n,className:r,minSize:t}),d=a.replace("{0}",String(c.s)).replace("{1}",String(c.v));return o.createElement("div",{ref:this._root,tabIndex:0,className:u.root,style:{backgroundColor:zf(c)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?c.s:c.v,"aria-valuemin":0,"aria-valuemax":kf,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},o.createElement("div",{className:u.description,id:this._descriptionId},l),o.createElement("div",{className:u.light}),o.createElement("div",{className:u.dark}),o.createElement("div",{className:u.thumb,style:{left:c.s+"%",top:kf-c.v+"%",backgroundColor:c.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,r=this.state.color;t.s===r.s&&t.v===r.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(o.Component);function xg(e,t,n){var r=n.getBoundingClientRect(),o=void 0,i=e;if(i.touches){var a=i.touches[i.touches.length-1];void 0!==a.clientX&&void 0!==a.clientY&&(o={clientX:a.clientX,clientY:a.clientY})}if(!o){var s=e;void 0!==s.clientX&&void 0!==s.clientY&&(o={clientX:s.clientX,clientY:s.clientY})}if(o){var l=(o.clientX-r.left)/r.width,c=(o.clientY-r.top)/r.height;return Uf(t,Nf(Math.round(l*Ef),Ef),Nf(Math.round(kf-c*kf),kf))}}var _g=vo(Sg,(function(e){var t,n,r=e.className,o=e.theme,i=e.minSize,a=o.palette,s=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid ".concat(a.neutralLighter),borderRadius:s.roundedCorner2,minWidth:i,minHeight:i,outline:"none",selectors:(t={},t[ca]=d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".".concat(wr," &:focus")]=(n={outline:"1px solid ".concat(a.neutralSecondary)},n["".concat(ca)]={outline:"2px solid CanvasText"},n),t)},r],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(a.neutralSecondaryAlt),borderRadius:"50%",boxShadow:s.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid ".concat(a.white),borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:ya}}),void 0,{scope:"ColorRectangle"}),Eg=cn(),kg=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._onKeyDown=function(e){var t=n.value,r=n._maxValue,o=e.shiftKey?10:1;switch(e.which){case ft:t-=o;break;case vt:t+=o;break;case mt:t=0;break;case ht:t=r;break;default:return}n._updateValue(e,Nf(t,r))},n._onMouseDown=function(e){var t=ke(n);t&&n._disposables.push(on(t,"mousemove",n._onMouseMove,!0),on(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n._maxValue,r=n._root.current.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=Nf(Math.round(o*t),t);n._updateValue(e,i)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=e.touches[e.touches.length-1];if(void 0!==t.clientX){var r=n._maxValue,o=n._root.current.getBoundingClientRect(),i=(t.clientX-o.left)/o.width,a=Nf(Math.round(i*r),r);n._updateValue(e,a)}e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},br(n),Ye("ColorSlider",t,{thumbColor:"styles.sliderThumb",overlayStyle:"overlayColor",isAlpha:"type",maxValue:"type",minValue:"type"}),"hue"===n._type||t.overlayColor||t.overlayStyle||je("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),n.state={currentValue:t.value||0},n}return u(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this._type,t=this._maxValue,n=this.props,r=n.overlayStyle,i=n.overlayColor,a=n.theme,s=n.className,l=n.styles,c=n.ariaLabel,u=void 0===c?e:c,d=this.value,p=Eg(l,{theme:a,className:s,type:e}),h=100*d/t;return o.createElement("div",{ref:this._root,className:p.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":d,"aria-valuetext":String(d),"aria-valuemin":0,"aria-valuemax":t,"aria-label":u,"data-is-focusable":!0},!(!i&&!r)&&o.createElement("div",{className:p.sliderOverlay,style:i?{background:"transparency"===e?"linear-gradient(to right, #".concat(i,", transparent)"):"linear-gradient(to right, transparent, #".concat(i,")")}:r}),o.createElement("div",{className:p.sliderThumb,style:{left:h+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,n=e.type;return void 0===n?t?"alpha":"hue":n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return"hue"===this._type?359:If},enumerable:!1,configurable:!0}),t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={value:0},t}(o.Component),wg={background:"linear-gradient(".concat(["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(","),")")},Ig={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},Pg=vo(kg,(function(e){var t,n,r=e.theme,o=e.className,i=e.type,a=void 0===i?"hue":i,s=e.isAlpha,l=void 0===s?"hue"!==a:s,c=r.palette,u=r.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid ".concat(c.neutralLight),borderRadius:u.roundedCorner2,boxSizing:"border-box",outline:"none",forcedColorAdjust:"none",selectors:(t={},t[".".concat(wr," &:focus")]=(n={outline:"1px solid ".concat(c.neutralSecondary)},n["".concat(ca)]={outline:"2px solid CanvasText"},n),t)},l?Ig:wg,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(c.neutralSecondaryAlt),borderRadius:"50%",boxShadow:u.elevation8,transform:"translate(-50%, -50%)",top:"50%",forcedColorAdjust:"auto"}]}}),void 0,{scope:"ColorSlider"}),Tg=cn(),Dg=["hex","r","g","b","a","t"],Ag={hex:"hexError",r:"redError",g:"greenError",b:"blueError",a:"alphaError",t:"transparencyError"},Rg=function(e){function t(n){var r=e.call(this,n)||this;r._onSVChanged=function(e,t){r._updateColor(e,t)},r._onHChanged=function(e,t){r._updateColor(e,function(e,t){var n=Df(t,e.s,e.v),r=n.r,o=n.g,i=n.b,a=Mf(r,o,i);return d(d({},e),{h:t,r:r,g:o,b:i,hex:a,str:Lf(r,o,i,e.a,a)})}(r.state.color,t))},r._onATChanged=function(e,t){var n="transparency"===r.props.alphaType?rg:Wf;r._updateColor(e,n(r.state.color,Math.round(t)))},r._onBlur=function(e){var t,n=r.state,o=n.color,i=n.editingColor;if(i){var a,s=i.value,l=i.component,c="hex"===l,u="a"===l,p="t"===l,h=c?3:1;if(s.length>=h&&(c||!isNaN(Number(s)))){var m=void 0;if(c)m=Vf("#"+(!(a=s)||a.length<3?"ffffff":a.length>=6?a.substring(0,6):a.substring(0,3)));else if(u||p){m=(u?Wf:rg)(o,Nf(Number(s),If))}else m=Hf(function(e){return{r:Nf(e.r,wf),g:Nf(e.g,wf),b:Nf(e.b,wf),a:"number"===typeof e.a?Nf(e.a,If):e.a}}(d(d({},o),((t={})[l]=Number(s),t))));r._updateColor(e,m)}else r.setState({editingColor:void 0})}},br(r);var o=n.strings;Ye("ColorPicker",n,{hexLabel:"strings.hex",redLabel:"strings.red",greenLabel:"strings.green",blueLabel:"strings.blue",alphaLabel:"strings.alpha",alphaSliderHidden:"alphaType"}),o.hue&&je("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),r.state={color:Ng(n)||Vf("#ffffff")},r._textChangeHandlers={};for(var i=0,a=Dg;i<a.length;i++){var s=a[i];r._textChangeHandlers[s]=r._onTextChange.bind(r,s)}var l=t.defaultProps.strings;return r._textLabels={r:n.redLabel||o.red||l.red,g:n.greenLabel||o.green||l.green,b:n.blueLabel||o.blue||l.blue,a:n.alphaLabel||o.alpha||l.alpha,hex:n.hexLabel||o.hex||l.hex,t:o.transparency||l.transparency},r._strings=d(d(d({},l),{alphaAriaLabel:r._textLabels.a,transparencyAriaLabel:r._textLabels.t}),o),r}return u(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=Ng(this.props);n&&this._updateColor(void 0,n)}},t.prototype.render=function(){var e=this,t=this.props,n=this._strings,r=this._textLabels,i=t.theme,a=t.className,s=t.styles,l=t.alphaType,c=t.alphaSliderHidden,u=void 0===c?"none"===l:c,p=t.tooltipProps,h=this.state.color,m="transparency"===l,f=["hex","r","g","b",m?"t":"a"],g=m?h.t:h.a,v=m?r.t:r.a,y=Tg(s,{theme:i,className:a,alphaType:l}),b=[r.r,h.r,r.g,h.g,r.b,h.b];u||"number"!==typeof g||b.push(v,"".concat(g,"%"));var C=n.rootAriaLabelFormat.replace("{0}",b.join(" "));return o.createElement("div",{className:y.root,role:"group","aria-label":C},o.createElement("div",{className:y.panel},o.createElement(_g,{color:h,onChange:this._onSVChanged,ariaLabel:n.svAriaLabel,ariaDescription:n.svAriaDescription,ariaValueFormat:n.svAriaValueFormat,className:y.colorRectangle}),o.createElement("div",{className:y.flexContainer},o.createElement("div",{className:y.flexSlider},o.createElement(Pg,{className:"is-hue",type:"hue",ariaLabel:n.hue||n.hueAriaLabel,value:h.h,onChange:this._onHChanged}),!u&&o.createElement(Pg,{className:"is-alpha",type:l,ariaLabel:m?n.transparencyAriaLabel:n.alphaAriaLabel,overlayColor:h.hex,value:g,onChange:this._onATChanged})),t.showPreview&&o.createElement("div",{className:y.flexPreviewBox},o.createElement("div",{className:y.colorSquare+" is-preview",style:{backgroundColor:h.str}}))),o.createElement("table",{className:y.table,role:"group",cellPadding:"0",cellSpacing:"0"},o.createElement("thead",null,o.createElement("tr",{className:y.tableHeader},o.createElement("td",{className:y.tableHexCell},r.hex),o.createElement("td",null,r.r),o.createElement("td",null,r.g),o.createElement("td",null,r.b),!u&&o.createElement("td",{className:y.tableAlphaCell},v))),o.createElement("tbody",null,o.createElement("tr",null,f.map((function(t){if(("a"===t||"t"===t)&&u)return null;var n=e._getTooltipValue(t);return o.createElement("td",{key:t},o.createElement(Cc,d({content:n,directionalHint:hs,role:"alert"},p),o.createElement(pg,{className:y.input,onChange:e._textChangeHandlers[t],onBlur:e._onBlur,value:e._getDisplayValue(t),spellCheck:!1,ariaLabel:r[t],autoComplete:"off",invalid:!!n})))})))))))},t.prototype._getDisplayValue=function(e){var t=this.state,n=t.color,r=t.editingColor;return r&&r.component===e?r.value:"hex"===e?n[e]||"":"number"!==typeof n[e]||isNaN(n[e])?"":String(n[e])},t.prototype._getTooltipValue=function(e){var t=this.state.editingColor;if(t&&t.component===e){var n=t.value;if(!("hex"===e&&n.length>=3&&n.length<=6)){var r=Ag[e];return this._strings[r]}}},t.prototype._onTextChange=function(e,t,n){var r,o=this.state.color,i="hex"===e,a="a"===e,s="t"===e;if(n=(n||"").substr(0,i?6:3),(i?Pf:Tf).test(n))if(""!==n&&(i?6===n.length:a||s?Number(n)<=If:Number(n)<=wf))if(String(o[e])===n)this.state.editingColor&&this.setState({editingColor:void 0});else{var l=i?Vf("#"+n):s?rg(o,Number(n)):Hf(d(d({},o),((r={})[e]=Number(n),r)));this._updateColor(t,l)}else this.setState({editingColor:{component:e,value:n}})},t.prototype._updateColor=function(e,t){if(t){var n=this.state,r=n.color,o=n.editingColor;if(t.h!==r.h||t.str!==r.str||o){if(e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented))return;this.setState({color:t,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:Sg.defaultProps.ariaLabel,svAriaValueFormat:Sg.defaultProps.ariaValueFormat,svAriaDescription:Sg.defaultProps.ariaDescription,hexError:"Hex values must be between 3 and 6 characters long",alphaError:"Alpha must be between 0 and 100",transparencyError:"Transparency must be between 0 and 100",redError:"Red must be between 0 and 255",greenError:"Green must be between 0 and 255",blueError:"Blue must be between 0 and 255"}},t}(o.Component);function Ng(e){var t=e.color;return"string"===typeof t?Vf(t):t}vo(Rg,(function(e){var t=e.className,n=e.theme,r=e.alphaType;return{root:["ms-ColorPicker",n.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[n.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===r&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4",forcedColorAdjust:"none"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}}),void 0,{scope:"ColorPicker"});var Mg,Fg,Bg,Og,Lg,Hg=yn((function(e){var t,n=e.semanticColors;return{backgroundColor:n.disabledBackground,color:n.disabledText,cursor:"default",selectors:(t={":after":{borderColor:n.disabledBackground}},t[ca]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}})),Vg={selectors:(Mg={},Mg[ca]=d({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),Mg)},zg={selectors:(Fg={},Fg[ca]=d({color:"WindowText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),Fg)},Ug=yn((function(e,t,n,r,o,i){var a,s=e.palette,l=e.semanticColors,c={textHoveredColor:l.menuItemTextHovered,textSelectedColor:s.neutralDark,textDisabledColor:l.disabledText,backgroundHoveredColor:l.menuItemBackgroundHovered,backgroundPressedColor:l.menuItemBackgroundPressed};return ge({root:[e.fonts.medium,{backgroundColor:r?c.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:o?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:d(d((a={},a[ca]={border:"none",borderColor:"Background"},a),!o&&{"&.ms-Checkbox":{display:"flex",alignItems:"center"}}),{"&.ms-Button--command:hover:active":{backgroundColor:c.backgroundPressedColor},".ms-Checkbox-label":{width:"100%"}})},i?[{backgroundColor:"transparent",color:c.textSelectedColor,selectors:{":hover":[{backgroundColor:c.backgroundHoveredColor},Vg]}},fa(e,{inset:-1,isFocusedOnly:!1}),Vg]:[]],rootHovered:{backgroundColor:c.backgroundHoveredColor,color:c.textHoveredColor},rootFocused:{backgroundColor:c.backgroundHoveredColor},rootDisabled:{color:c.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}},t,n)})),Wg=yn((function(e,t){var n,r,o=e.semanticColors,i=e.fonts,a={buttonTextColor:o.bodySubtext,buttonTextHoveredCheckedColor:o.buttonTextChecked,buttonBackgroundHoveredColor:o.listItemBackgroundHovered,buttonBackgroundCheckedColor:o.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:o.listItemBackgroundCheckedHovered},s={selectors:(n={},n[ca]=d({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)};return ge({root:{color:a.buttonTextColor,fontSize:i.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:(r={},r[ca]=d({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},icon:{fontSize:i.small.fontSize},rootHovered:[{backgroundColor:a.buttonBackgroundHoveredColor,color:a.buttonTextHoveredCheckedColor,cursor:"pointer"},s],rootPressed:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootChecked:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootCheckedHovered:[{backgroundColor:a.buttonBackgroundCheckedHoveredColor,color:a.buttonTextHoveredCheckedColor},s],rootDisabled:[Hg(e),{position:"absolute"}]},t)})),Gg=yn((function(e,t,n){var r,o,i,a,s,l,c=e.semanticColors,u=e.fonts,p=e.effects,h={textColor:c.inputText,borderColor:c.inputBorder,borderHoveredColor:c.inputBorderHovered,borderPressedColor:c.inputFocusBorderAlt,borderFocusedColor:c.inputFocusBorderAlt,backgroundColor:c.inputBackground,erroredColor:c.errorText},m={headerTextColor:c.menuHeader,dividerBorderColor:c.bodyDivider},f={selectors:(r={},r[ca]={color:"GrayText"},r)},g=[{color:c.inputPlaceholderText},f],v=[{color:c.inputTextHovered},f],y=[{color:c.disabledText},f],b=d(d({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),C=va(h.borderPressedColor,p.roundedCorner2,"border",0);return ge({container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:h.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:h.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:(o={},o[ca]=b,o)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:h.borderColor,borderRadius:p.roundedCorner2}}}],rootHovered:{selectors:(i={":after":{borderColor:h.borderHoveredColor},".ms-ComboBox-Input":[{color:c.inputTextHovered},qa(v),zg]},i[ca]=d(d({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),i)},rootPressed:[{position:"relative",selectors:(a={},a[ca]=b,a)}],rootFocused:[{selectors:(s={".ms-ComboBox-Input":[{color:c.inputTextHovered},zg]},s[ca]=b,s)},C],rootDisabled:Hg(e),rootError:{selectors:{":after":{borderColor:h.erroredColor},":hover:after":{borderColor:c.inputBorderHovered}}},rootDisallowFreeForm:{},input:[qa(g),{backgroundColor:h.backgroundColor,color:h.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},zg],inputDisabled:[Hg(e),qa(y)],errorMessage:[e.fonts.small,{color:h.erroredColor,marginTop:"5px"}],callout:{boxShadow:p.elevation8},optionsContainerWrapper:{width:n},optionsContainer:{display:"block"},screenReaderText:ya,header:[u.medium,{fontWeight:ri.semibold,color:m.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(l={},l[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],divider:{height:1,backgroundColor:m.dividerBorderColor}},t)})),jg=yn((function(e,t,n,r,o,i,a,s){return{container:me("ms-ComboBox-container",t,e.container),label:me(e.label,r&&e.labelDisabled),root:me("ms-ComboBox",s?e.rootError:n&&"is-open",o&&"is-required",e.root,!a&&e.rootDisallowFreeForm,s&&!i?e.rootError:!r&&i&&e.rootFocused,!r&&{selectors:{":hover":s?e.rootError:!n&&!i&&e.rootHovered,":active":s?e.rootError:e.rootPressed,":focus":s?e.rootError:e.rootFocused}},r&&["is-disabled",e.rootDisabled]),input:me("ms-ComboBox-Input",e.input,r&&e.inputDisabled),errorMessage:me(e.errorMessage),callout:me("ms-ComboBox-callout",e.callout),optionsContainerWrapper:me("ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:me("ms-ComboBox-optionsContainer",e.optionsContainer),header:me("ms-ComboBox-header",e.header),divider:me("ms-ComboBox-divider",e.divider),screenReaderText:me(e.screenReaderText)}})),qg=yn((function(e){return{optionText:me("ms-ComboBox-optionText",e.optionText),root:me("ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:me(e.optionTextWrapper)}}));function Kg(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=e[o[r]];i&&n.push(i)}return n}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(Bg||(Bg={})),function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(Og||(Og={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(Lg||(Lg={}));var Yg=o.memo((function(e){return(0,e.render)()}),(function(e,t){e.render;var n=p(e,["render"]);t.render;return Ie(n,p(t,["render"]))})),Xg="ComboBox",Qg={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function Zg(e){var t=e.options,n=e.defaultSelectedKey,r=e.selectedKey,i=o.useState((function(){return tv(t,function(e,t){var n=nv(e);if(n.length)return n;return nv(t)}(n,r))})),a=i[0],s=i[1],l=o.useState(t),c=l[0],u=l[1],d=o.useState(),p=d[0],h=d[1];return o.useEffect((function(){if(void 0!==r){var e=nv(r),n=tv(t,e);s(n)}u(t)}),[t,r]),o.useEffect((function(){null===r&&h(void 0)}),[r]),[a,s,c,u,p,h]}var Jg=o.forwardRef((function(e,t){var n=Co(Qg,e),r=(n.ref,p(n,["ref"])),i=o.useRef(null),a=ul(i,t),s=Zg(r),l=s[0],c=s[1],u=s[2],h=s[3],m=s[4],f=s[5];return o.createElement(ev,d({},r,{hoisted:{mergedRootRef:a,rootRef:i,selectedIndices:l,setSelectedIndices:c,currentOptions:u,setCurrentOptions:h,suggestedDisplayValue:m,setSuggestedDisplayValue:f}}))}));function $g(e,t){for(var n=function(e,t){void 0===t&&(t=!0);var n=[];if(e){for(var r=0;r<e.children.length;r++)n.push(e.children.item(r));t&&Ht(e)&&n.push.apply(n,e._virtual.children)}return n}(e),r=0;r<n.length;r++){var o=n[r];if(t(o))return o;var i=$g(o,t);if(i)return i}return null}Jg.displayName=Xg;var ev=function(e){function t(t){var n=e.call(this,t)||this;return n._autofill=o.createRef(),n._comboBoxWrapper=o.createRef(),n._comboBoxMenu=o.createRef(),n._selectedElement=o.createRef(),n.focus=function(e,t){n.props.disabled||(n._autofill.current&&(t?rn(n._autofill.current):n._autofill.current.focus(),e&&n.setState({isOpen:!0})),n._hasFocus()||n.setState({focusState:"focused"}))},n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onUpdateValueInAutofillWillReceiveProps=function(){var e=n._autofill.current;return e?null===e.value||void 0===e.value?null:rv(n._currentVisibleValue):null},n._renderComboBoxWrapper=function(e,t){var r=n.props,i=r.label,a=r.disabled,s=r.ariaLabel,l=r.ariaDescribedBy,c=void 0===l?n.props["aria-describedby"]:l,u=r.required,p=r.errorMessage,h=r.buttonIconProps,m=r.isButtonAriaHidden,f=r.title,g=r.placeholder,v=r.tabIndex,y=r.autofill,b=r.iconButtonProps,C=r.hoisted.suggestedDisplayValue,S=n.state,x=S.ariaActiveDescendantValue,_=S.isOpen,E=n._hasFocus()&&n.props.multiSelect&&e?e:g,k=[n.props["aria-labelledby"],i&&n._id+"-label"].join(" ").trim(),w={"aria-labelledby":k||void 0,"aria-label":s&&!i?s:void 0};return o.createElement("div",{"data-ktp-target":!0,ref:n._comboBoxWrapper,id:n._id+"wrapper",className:n._classNames.root,"aria-owns":_?n._id+"-list":void 0},o.createElement(fu,d({"data-ktp-execute-target":!0,"data-is-interactable":!a,componentRef:n._autofill,id:n._id+"-input",className:n._classNames.input,type:"text",onFocus:n._onFocus,onBlur:n._onBlur,onKeyDown:n._onInputKeyDown,onKeyUp:n._onInputKeyUp,onClick:n._onAutofillClick,onTouchStart:n._onTouchStart,onInputValueChange:n._onInputChange,"aria-expanded":_,"aria-autocomplete":n._getAriaAutoCompleteValue(),role:"combobox",readOnly:a},w,{"aria-describedby":void 0!==p?Tt(c,t):c,"aria-activedescendant":x,"aria-required":u,"aria-disabled":a,"aria-controls":_?n._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:n._currentVisibleValue,suggestedDisplayValue:C,updateValueInWillReceiveProps:n._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:f,preventValueSelection:!n._hasFocus(),placeholder:E,tabIndex:a?-1:v},y)),o.createElement(Pp,d({className:"ms-ComboBox-CaretDown-button",styles:n._getCaretButtonStyles(),role:m?"presentation":void 0,"aria-hidden":m},m?void 0:w,{"data-is-focusable":!1,tabIndex:-1,onClick:n._onComboBoxClick,onBlur:n._onBlur,iconProps:h,disabled:a,checked:_},b)))},n._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return n._currentVisibleValue===n.props.hoisted.suggestedDisplayValue},n._getVisibleValue=function(){var e=n.props,t=e.text,r=e.allowFreeform,o=e.allowFreeInput,i=e.autoComplete,a=e.hoisted,s=a.suggestedDisplayValue,l=a.selectedIndices,c=a.currentOptions,u=n.state,d=u.currentPendingValueValidIndex,p=u.currentPendingValue,h=u.isOpen,m=ov(c,d);if((!h||!m)&&(t||""===t)&&(null===p||void 0===p))return t;if(n.props.multiSelect){if(n._hasFocus()){var f=-1;return"on"===i&&m&&(f=d),n._getPendingString(p,c,f)}return n._getMultiselectDisplayString(l,c,s)}f=n._getFirstSelectedIndex();return r||o?("on"===i&&m&&(f=d),n._getPendingString(p,c,f)):m&&"on"===i?(f=d,rv(p)):!n.state.isOpen&&p?ov(c,f)?p:rv(s):ov(c,f)?sv(c[f]):rv(s)},n._onInputChange=function(e){n.props.disabled?n._handleInputWhenDisabled(null):(n.props.onInputValueChange&&n.props.onInputValueChange(e),n.props.allowFreeform||n.props.allowFreeInput?n._processInputChangeWithFreeform(e):n._processInputChangeWithoutFreeform(e))},n._onFocus=function(){var e,t;null===(t=null===(e=n._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===t||t.select(),n._hasFocus()||n.setState({focusState:"focusing"})},n._onResolveOptions=function(){if(n.props.onResolveOptions){var e=n.props.onResolveOptions(m([],n.props.hoisted.currentOptions,!0));Array.isArray(e)?n.props.hoisted.setCurrentOptions(e):e&&e.then&&(n._currentPromise=e,e.then((function(t){e===n._currentPromise&&n.props.hoisted.setCurrentOptions(t)})))}},n._onBlur=function(e){var t,r,o=e.relatedTarget;if(null===e.relatedTarget&&(o=document.activeElement),o){var i=null===(t=n.props.hoisted.rootRef.current)||void 0===t?void 0:t.contains(o),a=null===(r=n._comboBoxMenu.current)||void 0===r?void 0:r.contains(o),s=n._comboBoxMenu.current&&Ut(n._comboBoxMenu.current,(function(e){return e===o}));if(i||a||s)return s&&n._hasFocus()&&(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}n._hasFocus()&&(n.setState({focusState:"none"}),n.props.multiSelect&&!n.props.allowFreeform||n._submitPendingValue(e))},n._onRenderContainer=function(e,t){var r=e.onRenderList,i=e.calloutProps,a=e.dropdownWidth,s=e.dropdownMaxWidth,l=e.onRenderUpperContent,c=void 0===l?n._onRenderUpperContent:l,u=e.onRenderLowerContent,p=void 0===u?n._onRenderLowerContent:u,h=e.useComboBoxAsMenuWidth,m=e.persistMenu,f=e.shouldRestoreFocus,g=void 0===f||f,v=n.state.isOpen,y=n._id,b=h&&n._comboBoxWrapper.current?n._comboBoxWrapper.current.clientWidth+2:void 0;return o.createElement(oc,d({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:ps,directionalHintFixed:!1},i,{onLayerMounted:n._onLayerMounted,className:kn(n._classNames.callout,null===i||void 0===i?void 0:i.className),target:n._comboBoxWrapper.current,onDismiss:n._onDismiss,onMouseDown:n._onCalloutMouseDown,onScroll:n._onScroll,setInitialFocus:!1,calloutWidth:h&&n._comboBoxWrapper.current?b&&b:a,calloutMaxWidth:s||b,hidden:m?!v:void 0,shouldRestoreFocus:g}),c(n.props,n._onRenderUpperContent),o.createElement("div",{className:n._classNames.optionsContainerWrapper,ref:n._comboBoxMenu},null===r||void 0===r?void 0:r(d(d({},e),{id:y}),n._onRenderList)),p(n.props,n._onRenderLowerContent))},n._onLayerMounted=function(){n._onCalloutLayerMounted(),n._async.setTimeout((function(){n._scrollIntoView()}),0),n.props.calloutProps&&n.props.calloutProps.onLayerMounted&&n.props.calloutProps.onLayerMounted()},n._onRenderLabel=function(e){var t=e.props,r=t.label,i=t.disabled,a=t.required;return r?o.createElement(Hm,{id:n._id+"-label",disabled:i,required:a,className:n._classNames.label},r,e.multiselectAccessibleText&&o.createElement("span",{className:n._classNames.screenReaderText},e.multiselectAccessibleText)):null},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,i=e.label,a=e.ariaLabel,s=e.multiSelect,l={items:[]},c=[],u=function(){var e=l.id?[o.createElement("div",{role:"group",key:l.id,"aria-labelledby":l.id},l.items)]:l.items;c=m(m([],c,!0),e,!0),l={items:[]}};e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case Bg.Header:l.items.length>0&&u();var o=n._id+e.key;l.items.push(r(d(d({id:o},e),{index:t}),n._onRenderItem)),l.id=o;break;case Bg.Divider:t>0&&l.items.push(r(d(d({},e),{index:t}),n._onRenderItem)),l.items.length>0&&u();break;default:l.items.push(r(d(d({},e),{index:t}),n._onRenderItem))}}(e,t)})),l.items.length>0&&u();var p=n._id;return o.createElement("div",{id:p+"-list",className:n._classNames.optionsContainer,"aria-labelledby":i&&p+"-label","aria-label":a&&!i?a:void 0,"aria-multiselectable":s?"true":void 0,role:"listbox"},c)},n._onRenderItem=function(e){switch(e.itemType){case Bg.Divider:return n._renderSeparator(e);case Bg.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._onRenderLowerContent=function(){return null},n._onRenderUpperContent=function(){return null},n._renderOption=function(e){var t,r=n.props.onRenderOption,i=void 0===r?n._onRenderOptionContent:r,a=null!==(t=e.id)&&void 0!==t?t:n._id+"-list"+e.index,s=n._isOptionSelected(e.index),l=n._isOptionChecked(e.index),c=n._isOptionIndeterminate(e.index),u=n._getCurrentOptionStyles(e),p=qg(n._getCurrentOptionStyles(e)),h=e.title;return o.createElement(Yg,{key:e.key,index:e.index,disabled:e.disabled,isSelected:s,isChecked:l,isIndeterminate:c,text:e.text,render:function(){return n.props.multiSelect?o.createElement(Bm,{id:a,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:a+"-label",key:e.key,styles:u,className:"ms-ComboBox-option",onChange:n._onItemClick(e),label:e.text,checked:l,indeterminate:c,title:h,disabled:e.disabled,onRenderLabel:n._renderCheckboxLabel.bind(n,d(d({},e),{id:a+"-label"})),inputProps:d({"aria-selected":l?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):o.createElement(Rp,{id:a,key:e.key,"data-index":e.index,styles:u,checked:s,className:"ms-ComboBox-option",onClick:n._onItemClick(e),onMouseEnter:n._onOptionMouseEnter.bind(n,e.index),onMouseMove:n._onOptionMouseMove.bind(n,e.index),onMouseLeave:n._onOptionMouseLeave,role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:h},o.createElement("span",{className:p.optionTextWrapper,ref:s?n._selectedElement:void 0},i(e,n._onRenderOptionContent)))},data:e.data})},n._onCalloutMouseDown=function(e){e.preventDefault()},n._onScroll=function(){var e;n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),(null===(e=n.props.calloutProps)||void 0===e?void 0:e.onScroll)&&n.props.calloutProps.onScroll(),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onRenderOptionContent=function(e){var t=qg(n._getCurrentOptionStyles(e));return o.createElement("span",{className:t.optionText},e.text)},n._onRenderMultiselectOptionContent=function(e){var t=qg(n._getCurrentOptionStyles(e));return o.createElement("span",{id:e.id,"aria-hidden":"true",className:t.optionText},e.text)},n._onDismiss=function(){var e=n.props.onMenuDismiss;e&&e(),n.props.persistMenu&&n._onCalloutLayerMounted(),n._setOpenStateAndFocusOnClose(!1,!1),n._resetSelectedIndex()},n._onAfterClearPendingInfo=function(){n._processingClearPendingInfo=!1},n._onInputKeyDown=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.allowFreeInput,a=t.autoComplete,s=t.hoisted.currentOptions,l=n.state,c=l.isOpen,u=l.currentPendingValueValidIndexOnHover;if(n._lastKeyDownWasAltOrMeta=lv(e),r)n._handleInputWhenDisabled(e);else{var d=n._getPendingSelectedIndex(!1);switch(e.which){case it:n._autofill.current&&n._autofill.current.inputElement&&n._autofill.current.inputElement.select(),n._submitPendingValue(e),n.props.multiSelect&&c?n.setState({currentPendingValueValidIndex:d}):(c||(!o||void 0===n.state.currentPendingValue||null===n.state.currentPendingValue||n.state.currentPendingValue.length<=0)&&n.state.currentPendingValueValidIndex<0)&&n.setState({isOpen:!c});break;case ot:return n.props.multiSelect||n._submitPendingValue(e),void(c&&n._setOpenStateAndFocusOnClose(!c,!1));case ct:if(n._resetSelectedIndex(),!c)return;n.setState({isOpen:!1});break;case gt:if(u===Lg.clearAll&&(d=n.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(c){n._setOpenStateAndFocusOnClose(!c,!0);break}return}e.preventDefault(),n._setPendingInfoFromIndexAndDirection(d,Og.backward);break;case yt:e.altKey||e.metaKey?n._setOpenStateAndFocusOnClose(!0,!0):(u===Lg.clearAll&&(d=-1),e.preventDefault(),n._setPendingInfoFromIndexAndDirection(d,Og.forward));break;case mt:case ht:if(o||i)return;d=-1;var p=Og.forward;e.which===ht&&(d=s.length,p=Og.backward),n._setPendingInfoFromIndexAndDirection(d,p);break;case ut:if(!o&&!i&&"off"===a)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===lt||"Meta"===e.key)return;if(!o&&!i&&"on"===a){n._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()}},n._onInputKeyUp=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.allowFreeInput,a=t.autoComplete,s=n.state.isOpen,l=n._lastKeyDownWasAltOrMeta&&lv(e);n._lastKeyDownWasAltOrMeta=!1;var c=l&&!(ro()||eo());r?n._handleInputWhenDisabled(e):e.which!==ut?c&&s?n._setOpenStateAndFocusOnClose(!s,!0):("focusing"===n.state.focusState&&n.props.openOnKeyboardFocus&&n.setState({isOpen:!0}),"focused"!==n.state.focusState&&n.setState({focusState:"focused"})):o||i||"off"!==a||n._setOpenStateAndFocusOnClose(!s,!!s)},n._onOptionMouseLeave=function(){n._shouldIgnoreMouseEvent()||n.props.persistMenu&&!n.state.isOpen||n.setState({currentPendingValueValidIndexOnHover:Lg.clearAll})},n._onComboBoxClick=function(){var e=n.props.disabled,t=n.state.isOpen;e||(n._setOpenStateAndFocusOnClose(!t,!1),n.setState({focusState:"focused"}))},n._onAutofillClick=function(){var e=n.props,t=e.disabled;e.allowFreeform&&!t?n.focus(n.state.isOpen||n._processingTouch):n._onComboBoxClick()},n._onTouchStart=function(){n._comboBoxWrapper.current&&!("onpointerdown"in n._comboBoxWrapper)&&n._handleTouchAndPointerEvent()},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},br(n),n._async=new we(n),n._events=new Ae(n),Ke(Xg,t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth",ariaLabel:"label"}),n._id=t.id||zn("ComboBox"),n._isScrollIdle=!0,n._processingTouch=!1,n._gotMouseMove=!1,n._processingClearPendingInfo=!1,n.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:Lg.default},n}return u(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return Kg(e.currentOptions,e.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var n,r,o,i=this,a=this.props,s=a.allowFreeform,l=a.allowFreeInput,c=a.text,u=a.onMenuOpen,p=a.onMenuDismissed,h=a.hoisted,m=h.currentOptions,f=h.selectedIndices,g=this.state,v=g.currentPendingValue,y=g.currentPendingValueValidIndex,b=g.isOpen;!b||t.isOpen&&t.currentPendingValueValidIndex===y||this._async.setTimeout((function(){return i._scrollIntoView()}),0),this._hasFocus()&&(b||t.isOpen&&!b&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!b||this._hasFocus()&&(!b&&!this.props.multiSelect&&e.hoisted.selectedIndices&&f&&e.hoisted.selectedIndices[0]!==f[0]||!s&&!l||c!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),b&&!t.isOpen&&u&&u(),!b&&t.isOpen&&p&&p();var C=y,S=m.map((function(e,t){return d(d({},e),{index:t})}));!Ie(e.hoisted.currentOptions,m)&&v&&(C=this.props.allowFreeform||this.props.allowFreeInput?this._processInputChangeWithFreeform(v):this._updateAutocompleteIndexWithoutFreeform(v));var x=void 0;b&&this._hasFocus()&&-1!==C?x=null!==(n=S[C].id)&&void 0!==n?n:this._id+"-list"+C:b&&f.length&&(x=null!==(o=null===(r=S[f[0]])||void 0===r?void 0:r.id)&&void 0!==o?o:this._id+"-list"+f[0]),x!==this.state.ariaActiveDescendantValue&&this.setState({ariaActiveDescendantValue:x})},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,n=t.className,r=t.disabled,i=t.required,a=t.errorMessage,s=t.onRenderContainer,l=void 0===s?this._onRenderContainer:s,c=t.onRenderLabel,u=void 0===c?this._onRenderLabel:c,p=t.onRenderList,h=void 0===p?this._onRenderList:p,m=t.onRenderItem,f=void 0===m?this._onRenderItem:m,g=t.onRenderOption,v=void 0===g?this._onRenderOptionContent:g,y=t.allowFreeform,b=t.styles,C=t.theme,S=t.persistMenu,x=t.multiSelect,_=t.hoisted,E=_.suggestedDisplayValue,k=_.selectedIndices,w=_.currentOptions,I=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var P=x?this._getMultiselectDisplayString(k,w,E):void 0,T=mr(this.props,hr,["onChange","value","aria-describedby","aria-labelledby"]),D=!!(a&&a.length>0);this._classNames=this.props.getClassNames?this.props.getClassNames(C,!!I,!!r,!!i,!!this._hasFocus(),!!y,!!D,n):jg(Gg(C,b),n,!!I,!!r,!!i,!!this._hasFocus(),!!y,!!D);var A=this._renderComboBoxWrapper(P,e);return o.createElement("div",d({},T,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),u({props:this.props,multiselectAccessibleText:P},this._onRenderLabel),A,(S||I)&&l(d(d({},this.props),{onRenderList:h,onRenderItem:f,onRenderOption:v,options:w.map((function(e,t){return d(d({},e),{index:t})})),onDismiss:this._onDismiss}),this._onRenderContainer),D&&o.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},a))},t.prototype._getPendingString=function(e,t,n){return null!==e&&void 0!==e?e:ov(t,n)?sv(t[n]):""},t.prototype._getMultiselectDisplayString=function(e,t,n){for(var r=[],o=0;e&&o<e.length;o++){var i=e[o];t[i].itemType!==Bg.SelectAll&&r.push(ov(t,i)?t[i].text:rv(n))}var a=this.props.multiSelectDelimiter,s=void 0===a?", ":a;return r.join(s)},t.prototype._processInputChangeWithFreeform=function(e){var t=this.props.hoisted.currentOptions,n=-1;if(""===e)return 1===(o=t.map((function(e,t){return d(d({},e),{index:t})})).filter((function(t){return iv(t)&&!t.disabled&&sv(t)===e}))).length&&(n=o[0].index),this._setPendingInfo(e,n,e),n;var r=e;e=e.toLocaleLowerCase();var o,i="";if("on"===this.props.autoComplete){if((o=t.map((function(e,t){return d(d({},e),{index:t})})).filter((function(t){return iv(t)&&!t.disabled&&0===sv(t).toLocaleLowerCase().indexOf(e)}))).length>0){var a=sv(o[0]);i=a.toLocaleLowerCase()!==e?a:"",n=o[0].index}}else 1===(o=t.map((function(e,t){return d(d({},e),{index:t})})).filter((function(t){return iv(t)&&!t.disabled&&sv(t).toLocaleLowerCase()===e}))).length&&(n=o[0].index);return this._setPendingInfo(r,n,i),n},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,n=this.state,r=n.currentPendingValue,o=n.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=rv(r)+e);var i=this._updateAutocompleteIndexWithoutFreeform(e);return this._autoCompleteTimeout=this._async.setTimeout((function(){t._autoCompleteTimeout=void 0}),1e3),i}var a=o>=0?o:this._getFirstSelectedIndex();return this._setPendingInfoFromIndex(a),a},t.prototype._updateAutocompleteIndexWithoutFreeform=function(e){var t=this.props.hoisted.currentOptions,n=e;e=e.toLocaleLowerCase();var r=t.map((function(e,t){return d(d({},e),{index:t})})).filter((function(t){return iv(t)&&!t.disabled&&0===t.text.toLocaleLowerCase().indexOf(e)}));return r.length>0?(this._setPendingInfo(n,r[0].index,sv(r[0])),r[0].index):-1},t.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return(null===e||void 0===e?void 0:e.length)?e[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var n=this.props.hoisted.currentOptions,r=e+t;if(!ov(n,r=Math.max(0,Math.min(n.length-1,r))))return-1;var o=n[r];if(!av(o)||!0===o.hidden){if(t===Og.none||!(r>0&&t<Og.none||r>=0&&r<n.length&&t>Og.none))return e;r=this._getNextSelectableIndex(r,t)}return r},t.prototype._setSelectedIndex=function(e,t,n){void 0===n&&(n=Og.none);var r=this.props,o=r.onChange,i=r.onPendingValueChanged,a=r.hoisted,s=a.selectedIndices,l=a.currentOptions,c=s?s.slice():[],u=l.slice();if(ov(l,e=this._getNextSelectableIndex(e,n))){if(this.props.multiSelect||c.length<1||1===c.length&&c[0]!==e){var p=d({},l[e]);if(!p||p.disabled)return;if(this.props.multiSelect)if(p.selected=void 0!==p.selected?!p.selected:c.indexOf(e)<0,p.itemType===Bg.SelectAll)c=[],p.selected?l.forEach((function(e,t){!e.disabled&&av(e)&&(c.push(t),u[t]=d(d({},e),{selected:!0}))})):u=l.map((function(e){return d(d({},e),{selected:!1})}));else{p.selected&&c.indexOf(e)<0?c.push(e):!p.selected&&c.indexOf(e)>=0&&(c=c.filter((function(t){return t!==e}))),u[e]=p;var h=u.filter((function(e){return e.itemType===Bg.SelectAll}))[0];if(h){var m=this._isSelectAllChecked(c),f=u.indexOf(h);m?(c.push(f),u[f]=d(d({},h),{selected:!0})):(c=c.filter((function(e){return e!==f})),u[f]=d(d({},h),{selected:!1}))}}else c[0]=e;t.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(c),this.props.hoisted.setCurrentOptions(u)),this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),o&&o(t,p,e,sv(p))}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,n=this.props,r=n.onChange,o=n.allowFreeform,i=n.autoComplete,a=n.multiSelect,s=n.hoisted,l=s.currentOptions,c=this.state,u=c.currentPendingValue,d=c.currentPendingValueValidIndex,p=c.currentPendingValueValidIndexOnHover,h=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(o){if(null===u||void 0===u)return void(p>=0&&(this._setSelectedIndex(p,e),this._clearPendingInfo()));if(ov(l,d)){var m=sv(l[d]).toLocaleLowerCase(),f=this._autofill.current;if(u.toLocaleLowerCase()===m||i&&0===m.indexOf(u.toLocaleLowerCase())&&(null===f||void 0===f?void 0:f.isValueSelected)&&u.length+(f.selectionEnd-f.selectionStart)===m.length||(null===(t=null===f||void 0===f?void 0:f.inputElement)||void 0===t?void 0:t.value.toLocaleLowerCase())===m){if(this._setSelectedIndex(d,e),a&&this.state.isOpen)return;return void this._clearPendingInfo()}}if(r)r&&r(e,void 0,void 0,u);else{var g={key:u||zn(),text:rv(u)};a&&(g.selected=!0);var v=l.concat([g]);h&&(a||(h=[]),h.push(v.length-1)),s.setCurrentOptions(v),s.setSelectedIndices(h)}}else d>=0?this._setSelectedIndex(d,e):p>=0&&this._setSelectedIndex(p,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t&&t>0?o.createElement("div",{role:"presentation",key:n,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOptionContent:t;return o.createElement("div",{id:e.id,key:e.key,className:this._classNames.header},n(e,this._onRenderOptionContent))},t.prototype._renderCheckboxLabel=function(e){var t=this.props.onRenderOption;return(void 0===t?this._onRenderMultiselectOptionContent:t)(e,this._onRenderMultiselectOptionContent)},t.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==Lg.clearAll&&(t>=0?t===e:this._isOptionSelected(e))},t.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){return this.props.hoisted.selectedIndices.indexOf(e)>=0}return!1},t.prototype._isOptionIndeterminate=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted;if(n&&void 0!==e&&r.selectedIndices&&r.currentOptions){var o=r.currentOptions[e];if(o&&o.itemType===Bg.SelectAll)return r.selectedIndices.length>0&&!this._isSelectAllChecked()}return!1},t.prototype._isSelectAllChecked=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted,o=r.currentOptions.find((function(e){return e.itemType===Bg.SelectAll})),i=e||r.selectedIndices;if(!n||!i||!o)return!1;var a=r.currentOptions.indexOf(o),s=i.filter((function(e){return e!==a})),l=r.currentOptions.filter((function(e){return!e.disabled&&e.itemType!==Bg.SelectAll&&av(e)}));return s.length===l.length},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,n=t.currentPendingValueValidIndex,r=t.currentPendingValue;return n>=0||e&&null!==r&&void 0!==r?n:this.props.multiSelect?-1:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,n=e.scrollSelectedToTop,r=this._getPendingSelectedIndex(!0);if(t)t(r>=0?r:this._getFirstSelectedIndex());else{var o=this._selectedElement.current;if(this.props.multiSelect&&this._comboBoxMenu.current&&(o=$g(this._comboBoxMenu.current,(function(e){var t;return(null===(t=e.dataset)||void 0===t?void 0:t.index)===r.toString()}))),o&&o.offsetParent){var i=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var a=this._comboBoxMenu.current.offsetParent,s=o.offsetParent,l=s.offsetHeight,c=s.offsetTop,u=a,d=u.offsetHeight,p=u.scrollTop,h=c+l>p+d;c<p||n?(i=!1,a.scrollTo(0,c)):h&&a.scrollTo(0,c-d+l)}else o.offsetParent.scrollIntoView(i)}}},t.prototype._onItemClick=function(e){var t=this,n=this.props.onItemClick,r=e.index;return function(o){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),n&&n(o,e,r),t._setSelectedIndex(r,o)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:Lg.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:rv(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:Lg.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(sv(n),e,sv(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===Og.forward&&e>=n.length-1?e=-1:t===Og.backward&&e<=0&&(e=n.length);var r=this._getNextSelectableIndex(e,t);e===r?t===Og.forward?e=this._getNextSelectableIndex(-1,t):t===Og.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=r,ov(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex,a=r.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&ov(n,a)?s=a:i!==e.currentPendingValueValidIndex&&ov(n,i)?s=i:o!==e.currentPendingValue&&(l=o),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?n[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==ot&&e.which!==ct&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return Wg(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,n=e.styles;return Ug(this.props.theme,t,n,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index))},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"list"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t=h([Bn("ComboBox",["theme","styles"],!0)],t)}(o.Component);function tv(e,t){if(!e||!t)return[];var n={};e.forEach((function(e,t){e.selected&&(n[t]=!0)}));for(var r=function(t){var r=Dt(e,(function(e){return e.key===t}));r>-1&&(n[r]=!0)},o=0,i=t;o<i.length;o++){r(i[o])}return Object.keys(n).map(Number).sort()}function nv(e){return void 0===e?[]:e instanceof Array?e:[e]}function rv(e){return e||""}function ov(e,t){return!!e&&t>=0&&t<e.length}function iv(e){return e.itemType!==Bg.Header&&e.itemType!==Bg.Divider&&e.itemType!==Bg.SelectAll}function av(e){return e.itemType!==Bg.Header&&e.itemType!==Bg.Divider}function sv(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function lv(e){return e.which===lt||"Meta"===e.key}var cv=0,uv=1,dv=2,pv=3,hv=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},mv=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},fv="spacer-",gv={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},vv=function(e){return e.getBoundingClientRect()},yv=vv,bv=vv,Cv=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._surface=o.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&_e()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return o.createElement("div",d({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return o.createElement("div",d({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,i=n.props,a=i.onRenderCell,s=i.onRenderCellConditional,l=i.role,c=e.page,u=c.items,h=void 0===u?[]:u,m=c.startIndex,f=p(e,["page"]),g=void 0===l?"listitem":"presentation",v=[],y=0;y<h.length;y++){var b=m+y,C=h[y],S=n.props.getKey?n.props.getKey(C,b):C&&C.key;null!==S&&void 0!==S||(S=b);var x=null!==s&&void 0!==s?s:a,_=null!==(r=null===x||void 0===x?void 0:x(C,b,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;s&&!_||v.push(o.createElement("div",{role:g,className:"ms-List-cell",key:S,"data-list-index":b,"data-automationid":"ListCell"},_))}return o.createElement("div",d({},f),v)},br(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new we(n),n._events=new Ae(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=cv);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=bv(this._scrollElement),p=hv(this._scrollElement),h={top:p,bottom:p+d.height},m=e-l,f=0;f<m;++f)a+=t(l+f);var g=a+t(e);switch(n){case uv:return void mv(this._scrollElement,a);case dv:return void mv(this._scrollElement,g-d.height);case pv:return void mv(this._scrollElement,(a+g-d.height)/2)}if(a>=h.top&&g<=h.bottom)return;a<h.top||g>h.bottom&&(a=g-d.height)}return void(this._scrollElement&&mv(this._scrollElement,a))}a+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){o=e(a);if(r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=Ve(this._root.current),this._scrollTop=0,this.setState(d(d({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle();n.onPagesUpdated&&n.onPagesUpdated(r.pages)}},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,i=e.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=mr(this.props,hr),u=0,p=s;u<p.length;u++){var h=p[u];l.push(this._renderPage(h))}var m=o?io(o,this._onRenderSurface):this._onRenderSurface;return(i?io(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:m({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:d(d({},c),{className:kn("ms-List",t),role:l.length>0?r:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return d(d({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Vt(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),d(d(d({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var a=d({},gv),s=[],l=1,c=0,u=null,p=this._focusedIndex,h=o+n,m=this._shouldVirtualize(e),f=0===this._estimatedPageHeight&&!i,g=this._allowedRect,v=function(n){var i=y._getPageSpecification(e,n,g),d=i.height,v=i.data,b=i.key;l=i.itemCount;var C,S,x=c+d-1,_=Dt(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!g||x>=g.top&&c<=g.bottom,k=!y._requiredRect||x>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!f&&(k||E&&_)||!m||p>=n&&p<n+l||n===o){u&&(s.push(u),u=null);var w=Math.min(l,h-n),I=y._createPage(b,r.slice(n,n+w),n,void 0,void 0,v);I.top=c,I.height=d,y._visibleRect&&y._visibleRect.bottom&&(I.isVisible=x>=y._visibleRect.top&&c<=y._visibleRect.bottom),s.push(I),k&&y._allowedRect&&(C=a,S={top:c,bottom:x,height:d,left:g.left,right:g.right,width:g.width},C.top=S.top<C.top||-1===C.top?S.top:C.top,C.left=S.left<C.left||-1===C.left?S.left:C.left,C.bottom=S.bottom>C.bottom||-1===C.bottom?S.bottom:C.bottom,C.right=S.right>C.right||-1===C.right?S.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else u||(u=y._createPage(fv+n,void 0,n,0,void 0,v,!0)),u.height=(u.height||0)+(x-c)+1,u.itemCount+=l;if(c+=x-c+1,f&&m)return"break"},y=this,b=o;b<h;b+=l){if("break"===v(b))break}return u&&(u.key="spacer-end",s.push(u)),this._materializedRect=a,d(d({},t),{pages:s,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var a=this._surfaceRect||d({},gv),s=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),l=hv(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-l)>this._estimatedPageHeight/3)&&(a=this._surfaceRect=yv(this._surface.current),this._scrollTop=l),!n&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var c=Math.max(0,-a.top),u=ke(this._root.current),p={top:c,left:a.left,bottom:c+u.innerHeight,right:a.right,width:a.width,height:u.innerHeight};this._requiredRect=Sv(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Sv(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return o.createElement(o.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(o.Component);function Sv(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}!function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=o.createRef(),n._list=o.createRef(),n._onRenderList=function(e){var t=e.id,r=e.onRenderItem;return o.createElement(Cv,{componentRef:n._list,role:"listbox",id:"".concat(t,"-list"),"aria-labelledby":"".concat(t,"-label"),items:e.options,onRenderCell:r?function(e){return r(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},br(n),n}u(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return o.createElement(Jg,d({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))}}(o.Component);var xv=yn((function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},r=e||{},o=r.root,i=r.label,a=p(r,["root","label"]);return d(d({},a),{root:o?[t,o]:t,label:i?[n,i]:n})})),_v=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},Ev=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},kv=function(e){var t=yd.getInstance(),n=e.className,r=e.overflowItems,i=e.keytipSequences,a=e.itemSubMenuProvider,s=e.onRenderOverflowButton,l=il({}),c=o.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),u=o.useMemo((function(){var e=[],n=[];return i?null===r||void 0===r||r.forEach((function(r){var o,a=r.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(r)?(s.onExecute=t.menuExecute.bind(t,i,null===(o=null===r||void 0===r?void 0:r.keytipProps)||void 0===o?void 0:o.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,e.push(s);var l=d(d({},r),{keytipProps:d(d({},a),{overflowSetSequence:i})});null===n||void 0===n||n.push(l)}else null===n||void 0===n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,i]),p=u.modifiedOverflowItems;return function(e,t,n){var r=pl(e);o.useEffect((function(){r&&(Ev(n,r),_v(t,n,e))})),o.useEffect((function(){return _v(t,n,e),function(){Ev(n,e)}}),[])}(l,u.keytipsToRegister,t),o.createElement("div",{className:n},s(p))},wv=cn(),Iv=o.forwardRef((function(e,t){var n=o.useRef(null),r=ul(n,t);!function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Kt(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&zt(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var i=e.items,a=e.overflowItems,s=e.className,l=e.styles,c=e.vertical,u=e.role,p=e.overflowSide,h=void 0===p?"end":p,m=e.onRenderItem,f=wv(l,{className:s,vertical:c}),g=!!a&&a.length>0;return o.createElement("div",d({},mr(e,hr),{role:u||"group","aria-orientation":"menubar"===u?!0===c?"vertical":"horizontal":void 0,className:f.root,ref:r}),"start"===h&&g&&o.createElement(kv,d({},e,{className:f.overflowButton})),i&&i.map((function(e,t){return o.createElement("div",{className:f.item,key:e.key,role:"none"},m(e))})),"end"===h&&g&&o.createElement(kv,d({},e,{className:f.overflowButton})))}));Iv.displayName="OverflowSet";var Pv={flexShrink:0,display:"inherit"},Tv=vo(Iv,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Pv],overflowButton:["ms-OverflowSet-overflowButton",Pv]}}),void 0,{scope:"OverflowSet"}),Dv=cn(),Av=function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=o.createRef(),n._resizeGroup=o.createRef(),n._onRenderData=function(e){var t=n.props,r=t.ariaLabel,i=t.primaryGroupAriaLabel,a=t.farItemsGroupAriaLabel,s=e.farItems&&e.farItems.length>0;return o.createElement(Bu,{className:kn(n._classNames.root),direction:Cu.horizontal,role:"menubar","aria-label":r},o.createElement(Tv,{role:s?"group":"none","aria-label":s?i:void 0,componentRef:n._overflowSet,className:kn(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),s&&o.createElement(Tv,{role:"group","aria-label":a,className:kn(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:Qe}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,(function(){}));var t=e.text||e.name,r=d(d({allowDisabledFocus:!0,role:"menuitem"},e),{styles:xv(e.buttonStyles),className:kn("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?o.createElement(Cc,d({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),n._commandButton(e,r)):n._commandButton(e,r)},n._commandButton=function(e,t){var r=n.props.buttonAs,i=e.commandBarButtonAs,a=Ap;return i&&(a=_n(i,a)),r&&(a=_n(r,a)),o.createElement(a,d({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,r=void 0===t?{}:t,i=m(m([],r.menuProps?r.menuProps.items:[],!0),e,!0),a=d(d({role:"menuitem"},r),{styles:d({menuIcon:{fontSize:"17px"}},r.styles),className:kn("ms-CommandBar-overflowButton",r.className),menuProps:d(d({},r.menuProps),{items:i}),menuIconProps:d({iconName:"More"},r.menuIconProps)}),s=n.props.overflowButtonAs?_n(n.props.overflowButtonAs,Ap):Ap;return o.createElement(s,d({},a))},n._onReduceData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataReduced,i=e.primaryItems,a=e.overflowItems,s=e.cacheKey,l=e.farItems,c=i[r?0:i.length-1];if(void 0!==c){c.renderedInOverflow=!0,a=m([c],a,!0),i=r?i.slice(1):i.slice(0,-1);var u=d(d({},e),{primaryItems:i,overflowItems:a});return s=n._computeCacheKey({primaryItems:i,overflow:a.length>0,farItems:l}),o&&o(c),u.cacheKey=s,u}},n._onGrowData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataGrown,i=e.minimumOverflowItems,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=e.farItems,u=s[0];if(void 0!==u&&s.length>i){u.renderedInOverflow=!1,s=s.slice(1),a=r?m([u],a,!0):m(m([],a,!0),[u],!1);var p=d(d({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0,farItems:c}),o&&o(u),p.cacheKey=l,p}},br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,r=e.farItems,i=e.styles,a=e.theme,s=e.dataDidRender,l=e.onReduceData,c=void 0===l?this._onReduceData:l,u=e.onGrowData,p=void 0===u?this._onGrowData:u,h=e.resizeGroupAs,f=void 0===h?Up:h,g={primaryItems:m([],t,!0),overflowItems:m([],n,!0),minimumOverflowItems:m([],n,!0).length,farItems:r,cacheKey:this._computeCacheKey({primaryItems:m([],t,!0),overflow:n&&n.length>0,farItems:r})};this._classNames=Dv(i,{theme:a});var v=mr(this.props,hr);return o.createElement(f,d({},v,{componentRef:this._resizeGroup,data:g,onReduceData:c,onGrowData:p,onRenderData:this._onRenderData,dataDidRender:s}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow,r=e.farItems,o=function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)};return[t&&t.reduce(o,""),n?"overflow":"",r&&r.reduce(o,"")].join("")},t.defaultProps={items:[],overflowItems:[]},t}(o.Component),Rv=(vo(Av,(function(e){var t=e.className,n=e.theme,r=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:r.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}}),void 0,{scope:"CommandBar"}),d(d({},$h),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'})),Nv=cn(),Mv={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e.match(/^\d{4}(-\d{2}){2}$/)&&(e+="T12:00");var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:th.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:Rv,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:rh.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};var Fv=o.forwardRef((function(e,t){var n,r,i=Co(Mv,e),a=i.firstDayOfWeek,s=i.strings,l=i.label,c=i.theme,u=i.className,p=i.styles,h=i.initialPickerDate,m=i.isRequired,f=i.disabled,g=i.ariaLabel,v=i.pickerAriaLabel,y=i.placeholder,b=i.allowTextInput,C=i.borderless,S=i.minDate,x=i.maxDate,_=i.showCloseButton,E=i.calendarProps,k=i.calloutProps,w=i.textField,I=i.underlined,P=i.allFocusable,T=i.calendarAs,D=void 0===T?km:T,A=i.tabIndex,R=i.disableAutoFocus,N=void 0===R||R,M=cl("DatePicker",i.id),F=cl("DatePicker-Callout"),B=o.useRef(null),O=o.useRef(null),L=function(){var e=o.useRef(null),t=o.useRef(!1);return[e,function(){var t,n;null===(n=null===(t=e.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},t,function(){t.current=!0}]}(),H=L[0],V=L[1],z=L[2],U=L[3],W=function(e,t){var n=e.allowTextInput,r=e.onAfterMenuDismiss,i=o.useState(!1),a=i[0],s=i[1],l=o.useRef(!1),c=ol();return o.useEffect((function(){l.current&&!a&&(n&&c.requestAnimationFrame(t),null===r||void 0===r||r()),l.current=!0}),[a]),[a,s]}(i,V),G=W[0],j=W[1],q=function(e){var t=e.formatDate,n=e.value,r=e.onSelectDate,i=sl(n,void 0,(function(e,t){return null===r||void 0===r?void 0:r(t)})),a=i[0],s=i[1],l=o.useState((function(){return n&&t?t(n):""})),c=l[0],u=l[1];return o.useEffect((function(){u(n&&t?t(n):"")}),[t,n]),[a,c,function(e){s(e),u(e&&t?t(e):"")},u]}(i),K=q[0],Y=q[1],X=q[2],Q=q[3],Z=function(e,t,n,r,i){var a,s=e.isRequired,l=e.allowTextInput,c=e.strings,u=e.parseDateFromString,d=e.onSelectDate,p=e.formatDate,h=e.minDate,m=e.maxDate,f=e.textField,g=o.useState(),v=g[0],y=g[1],b=o.useState(),C=b[0],S=b[1],x=o.useRef(!0),_=null===(a=null===f||void 0===f?void 0:f.validateOnLoad)||void 0===a||a;return o.useEffect((function(){x.current&&(x.current=!1,!_)||(s&&!t?y(c.isRequiredErrorMessage||" "):t&&Bv(t,h,m)?y(c.isOutOfBoundsErrorMessage||" "):y(void 0))}),[h&&xh(h),m&&xh(m),t&&xh(t),s,_]),[i?void 0:v,function(e){if(void 0===e&&(e=null),l)if(r||e){if(t&&!v&&p&&p(null!==e&&void 0!==e?e:t)===r)return;if(!(e=e||u(r))||isNaN(e.getTime())){n(t);var o=p?p(t):"",i=c.isResetStatusMessage?mo(c.isResetStatusMessage,r,o):c.invalidInputErrorMessage||"";S(i)}else Bv(e,h,m)?y(c.isOutOfBoundsErrorMessage||" "):(n(e),y(void 0),S(void 0))}else y(s?c.isRequiredErrorMessage||" ":void 0),null===d||void 0===d||d(e);else s&&!r?y(c.isRequiredErrorMessage||" "):(y(void 0),S(void 0))},y,i?void 0:C,S]}(i,K,X,Y,G),J=Z[0],$=Z[1],ee=Z[2],te=Z[3],ne=Z[4],re=o.useCallback((function(){G||(U(),j(!0))}),[G,U,j]);o.useImperativeHandle(i.componentRef,(function(){return{focus:V,reset:function(){j(!1),X(void 0),ee(void 0),ne(void 0)},showDatePickerPopup:re}}),[V,ee,j,X,ne,re]);var oe=function(e){G&&(j(!1),$(e),!b&&e&&X(e))},ie=function(e){U(),oe(e)},ae=function(e){G&&(e.stopPropagation(),ie())},se=Nv(p,{theme:c,className:u,disabled:f,underlined:I,label:!!l,isDatePickerShown:G}),le=mr(i,hr,["value"]),ce=w&&w.iconProps,ue=w&&w.id&&w.id!==M?w.id:M+"-label",de=!b&&!f,pe=null===(r=null!==(n=null===w||void 0===w?void 0:w["data-is-focusable"])&&void 0!==n?n:i["data-is-focusable"])||void 0===r||r;return o.createElement("div",d({},le,{className:se.root,ref:t}),o.createElement("div",{ref:O,"aria-owns":G?F:void 0,className:se.wrapper},o.createElement(pg,d({role:"combobox",label:l,"aria-expanded":G,ariaLabel:g,"aria-haspopup":"dialog","aria-controls":G?F:void 0,required:m,disabled:f,errorMessage:J,placeholder:y,borderless:C,value:Y,componentRef:H,underlined:I,tabIndex:A,readOnly:!b},w,{"data-is-focusable":pe,id:ue,className:kn(se.textField,w&&w.className),iconProps:d(d({iconName:"Calendar"},ce),{className:kn(se.icon,ce&&ce.className),onClick:function(e){e.stopPropagation(),G||i.disabled?i.allowTextInput&&oe():re()}}),onRenderDescription:function(e,t){return o.createElement(o.Fragment,null,e.description?t(e):null,o.createElement("div",{"aria-live":"assertive",className:se.statusMessage},te))},onKeyDown:function(e){switch(e.which){case it:e.preventDefault(),e.stopPropagation(),G?i.allowTextInput&&oe():($(),re());break;case ct:ae(e);break;case yt:e.altKey&&!G&&re()}},onFocus:function(){N||b||(z.current||re(),z.current=!1)},onBlur:function(e){$()},onClick:function(e){!(i.openOnClick||!i.disableAutoFocus)||G||i.disabled?i.allowTextInput&&oe():re()},onChange:function(e,t){var n,r=i.textField;b&&(G&&oe(),Q(t)),null===(n=null===r||void 0===r?void 0:r.onChange)||void 0===n||n.call(r,e,t)},onRenderInput:de?function(e){var t=mr(e,hr);return o.createElement("div",d({},t,{className:kn(t.className,se.readOnlyTextField),tabIndex:A||0}),Y||o.createElement("span",{className:se.readOnlyPlaceholder},y))}:void 0}))),G&&o.createElement(oc,d({id:F,role:"dialog",ariaLabel:v,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:O.current,directionalHint:ps},k,{className:kn(se.callout,k&&k.className),onDismiss:function(e){ie()},onPositioned:function(){var e=!0;i.calloutProps&&void 0!==i.calloutProps.setInitialFocus&&(e=i.calloutProps.setInitialFocus),B.current&&e&&B.current.focus()}}),o.createElement(ac,{isClickableOutsideFocusTrap:!0,disableFirstFocus:N},o.createElement(D,d({},E,{onSelectDate:function(e){i.calendarProps&&i.calendarProps.onSelectDate&&i.calendarProps.onSelectDate(e),ie(e)},onDismiss:function(e){ie()},isMonthPickerVisible:i.isMonthPickerVisible,showMonthPickerAsOverlay:i.showMonthPickerAsOverlay,today:i.today,value:K||h,firstDayOfWeek:a,strings:s,highlightCurrentMonth:i.highlightCurrentMonth,highlightSelectedMonth:i.highlightSelectedMonth,showWeekNumbers:i.showWeekNumbers,firstWeekOfYear:i.firstWeekOfYear,showGoToToday:i.showGoToToday,dateTimeFormatter:i.dateTimeFormatter,minDate:S,maxDate:x,componentRef:B,showCloseButton:_,allFocusable:P})))))}));function Bv(e,t,n){return!!t&&fh(t,e)>0||!!n&&fh(n,e)<0}Fv.displayName="DatePickerBase";var Ov,Lv,Hv,Vv,zv,Uv,Wv={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Gv=(vo(Fv,(function(e){var t,n=e.className,r=e.theme,o=e.disabled,i=e.underlined,a=e.label,s=e.isDatePickerShown,l=r.palette,c=r.semanticColors,u=r.fonts,d=ka(Wv,r),p={color:l.neutralSecondary,fontSize:ni.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[d.root,r.fonts.large,s&&"is-open",Ga,n],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},o&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[d.callout],icon:[p,a?d.withLabel:d.withoutLabel,{paddingTop:"7px"},!o&&[d.disabled,{pointerEvents:"initial",cursor:"pointer"}],o&&{color:c.disabledText,cursor:"default"}],statusMessage:[u.small,{color:c.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:32,lineHeight:30,overflow:"hidden",textOverflow:"ellipsis"},i&&{lineHeight:34}],readOnlyPlaceholder:(t={color:c.inputPlaceholderText},t[ca]={color:"GrayText"},t)}}),void 0,{scope:"DatePicker"}),"data-selection-index"),jv="data-selection-toggle",qv="data-selection-invoke",Kv="data-selection-all-toggle",Yv=function(e){function t(t){var n=e.call(this,t)||this;n._root=o.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||zt(document.activeElement,t)){if(zt(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,qv)){n.ignoreNextFocus();break}t=Vt(t)}}else n.ignoreNextFocus()},n._onFocus=function(e){var t=e.target,r=n.props.selection,o=n._isCtrlPressed||n._isMetaPressed,i=n._getSelectionMode();if(n._shouldHandleFocus&&i!==ao.none){var a=n._hasAttribute(t,jv),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);void 0===n._getItemSpan(s)&&(o?(r.setIndexSelected(l,r.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",l))}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=n.props.toggleWithoutModifierPressed,r=e.target,o=n._findItemRoot(r);if(!n._isSelectionDisabled(r))for(;r!==n._root.current&&!n._hasAttribute(r,Kv);){if(o){if(n._hasAttribute(r,jv))break;if(n._hasAttribute(r,qv))break;if(!(r!==o&&!n._shouldAutoSelect(r)||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed||t)){n._onInvokeMouseDown(e,n._getItemIndex(o),n._getItemSpan(o));break}if(n.props.disableAutoSelectOnInputElements&&("A"===r.tagName||"BUTTON"===r.tagName||"INPUT"===r.tagName))return}r=Vt(r)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,r=void 0!==t&&t;n._updateModifiers(e);for(var o=e.target,i=n._findItemRoot(o),a=n._isSelectionDisabled(o);o!==n._root.current;){if(n._hasAttribute(o,Kv)){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i),l=n._getItemSpan(i);if(n._hasAttribute(o,jv)){a||(n._isShiftPressed?n._onItemSurfaceClick("click",s,l):n._onToggleClick(e,s,l));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,qv)){void 0===l&&n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick("click",s,l);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=Vt(o)}},n._onContextMenu=function(e){var t=e.target,r=n.props,o=r.onItemContextMenu,i=r.selection;if(o){var a=n._findItemRoot(t);if(a){var s=n._getItemIndex(a);n._onInvokeMouseDown(e,s),o(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,r=n.props.onItemInvoked,o=n._findItemRoot(t);if(o&&r&&!n._isInputElement(t)){for(var i=n._getItemIndex(o);t!==n._root.current&&!n._hasAttribute(t,jv)&&!n._hasAttribute(t,qv);){if(t===o){n._onInvokeClick(e,i);break}t=Vt(t)}t=Vt(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,r=n._isSelectionDisabled(t),o=n.props,i=o.selection,a=o.selectionClearedOnEscapePress,s=e.which===xt&&(n._isCtrlPressed||n._isMetaPressed),l=e.which===ct;if(!n._isInputElement(t)){var c=n._getSelectionMode();if(s&&c===ao.multiple&&!i.isAllSelected())return r||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&l&&i.getSelectedCount()>0)return r||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var u=n._findItemRoot(t);if(u)for(var d=n._getItemIndex(u),p=n._getItemSpan(u);t!==n._root.current&&!n._hasAttribute(t,jv);){if(n._shouldAutoSelect(t)){r||void 0!==p||n._onInvokeMouseDown(e,d,p);break}if(!(e.which!==it&&e.which!==ut||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===u){if(e.which===it)return void(void 0===p&&(n._onInvokeClick(e,d),e.preventDefault()));if(e.which===ut)return r||n._onToggleClick(e,d,p),void e.preventDefault();break}t=Vt(t)}}},n._events=new Ae(n),n._async=new we(n),br(n);var r=n.props.selection,i=r.isModal&&r.isModal();return n.state={isModal:i},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return d(d({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=ke(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return o.createElement("div",{className:kn("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,o.createElement(Br,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===ao.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Vt(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===ao.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t,n){var r=this.props.selection,o=this._getSelectionMode();if(r.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==n?!r.isRangeSelected(t,n):!r.isIndexSelected(t))&&r.setModal&&(r.setModal(!0),this._setIsTouch(!1)),o===ao.multiple)void 0!==n?r.toggleRangeSelected(t,n):r.toggleIndexSelected(t);else{if(o!==ao.single)return void r.setChangeEvents(!0);if(void 0===n||1===n){var i=r.isIndexSelected(t),a=r.isModal&&r.isModal();r.setAllSelected(!1),r.setIndexSelected(t,!i,!0),a&&r.setModal&&r.setModal(!0)}}r.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t,n){var r,o=this.props,i=o.selection,a=o.toggleWithoutModifierPressed,s=this._isCtrlPressed||this._isMetaPressed,l=this._getSelectionMode();l===ao.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==n?null===(r=i.selectToRange)||void 0===r||r.call(i,t,n,!s):i.selectToIndex(t,!s):"click"===e&&(s||a)?void 0!==n?i.toggleRangeSelected(t,n):i.toggleIndexSelected(t):this._clearAndSelectIndex(t,n):l===ao.single&&this._clearAndSelectIndex(t,n)},t.prototype._onInvokeMouseDown=function(e,t,n){var r=this.props.selection;if(void 0!==n){if(r.isRangeSelected(t,n))return}else if(r.isIndexSelected(t))return;this._clearAndSelectIndex(t,n)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=Ve(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e,t){var n,r=this.props,o=r.selection,i=r.selectionClearedOnSurfaceClick,a=void 0===i||i;if(!((void 0===t||1===t)&&1===o.getSelectedCount()&&o.isIndexSelected(e))&&a){var s=o.isModal&&o.isModal();o.setChangeEvents(!1),o.setAllSelected(!1),void 0!==t?null===(n=o.setRangeSelected)||void 0===n||n.call(o,e,t,!0,!0):o.setIndexSelected(e,!0,!0),(s||this.props.enterModalOnTouch&&this._isTouch)&&(o.setModal&&o.setModal(!0),this._isTouch&&this._setIsTouch(!1)),o.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===ot},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(Gv),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=Vt(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){var t,n=parseInt(null!==(t=e.getAttribute(Gv))&&void 0!==t?t:"",10);return isNaN(n)?-1:n},t.prototype._getItemSpan=function(e){var t,n=parseInt(null!==(t=e.getAttribute("data-selection-span"))&&void 0!==t?t:"",10);return isNaN(n)?void 0:n},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;){var r=e.getAttribute(t);if("false"===r){n=!1;break}n="true"===r,e=Vt(e)}return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},t.prototype._isNonHandledClick=function(e){var t=Re();if(t&&e)for(;e&&e!==t.documentElement;){if(Jt(e)||e.hasAttribute("data-selection-index"))return!1;e=Vt(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:ao.none:t},t.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:ao.multiple,selectionClearedOnEscapePress:!0},t}(o.Component);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(Ov||(Ov={})),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(Lv||(Lv={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(Hv||(Hv={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(Vv||(Vv={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(zv||(zv={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(Uv||(Uv={}));var Xv,Qv,Zv=function(e){var t=e.count,n=e.indentWidth,r=void 0===n?36:n,i=e.role,a=void 0===i?"presentation":i,s=t*r;return t>0?o.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:s},role:a}):null},Jv={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},$v="cubic-bezier(0.445, 0.050, 0.550, 0.950)",ey=function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=ka(Jv,r);return{root:[s.root,r.fonts.small,{position:"relative",selectors:(t={},t[".".concat(s.listCell)]={minHeight:38},t)},i&&[s.compact,{selectors:(n={},n[".".concat(s.listCell)]={minHeight:32},n)}],o],group:[s.group,{transition:"background-color ".concat(qi," ").concat($v)}],groupIsDropping:{backgroundColor:a.neutralLight}}},ty={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},ny={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},ry={rowHeight:42,compactRowHeight:32},oy=d(d({},ry),{rowVerticalPadding:11,compactRowVerticalPadding:6}),iy={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},ay=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?ny:n,o=t.semanticColors;return[ka(iy,t).cell,fa(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 ".concat(r.cellRightPadding,"px 0 ").concat(r.cellLeftPadding,"px"),lineHeight:"inherit",margin:"0",height:42,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},sy={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},ly={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},cy="cubic-bezier(0.075, 0.820, 0.165, 1.000)",uy="cubic-bezier(0.390, 0.575, 0.565, 1.000)",dy="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Xv||(Xv={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Qv||(Qv={}));var py=cn(),hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,c=e.className,u=e.labelPosition,p=r,h=mr(this.props,hr,["size"]),m=n;void 0===m&&void 0!==t&&(m=t===Qv.large?Xv.large:Xv.medium);var f=py(a,{theme:l,size:m,className:c,labelPosition:u});return o.createElement("div",d({},h,{className:f.root}),o.createElement("div",{className:f.circle}),s&&o.createElement("div",{className:f.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(Ze,null,o.createElement("div",{className:f.screenReaderText},p))))},t.defaultProps={size:Xv.medium,ariaLive:"polite",labelPosition:"bottom"},t}(o.Component),my={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},fy=yn((function(){return Se({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),gy=vo(hy,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=ka(my,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:fy(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[ca]=d({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},r===Xv.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===Xv.small&&["ms-Spinner--small",{width:16,height:16}],r===Xv.medium&&["ms-Spinner--medium",{width:20,height:20}],r===Xv.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:ya}}),void 0,{scope:"Spinner"}),vy=cn(),yy=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&o&&o(t);n.setState({isCollapsed:i,isLoadingVisible:a}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===Lt(vt,n.props.theme);(!n.state.isCollapsed&&e.which===Lt(ft,n.props.theme)||i)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onHeaderClick=function(){var e=n.props,t=e.group,r=e.onGroupHeaderClick;r&&r(t)},n._onRenderTitle=function(e){if(!e.group)return null;var t=e.onRenderName?io(e.onRenderName,n._onRenderName):n._onRenderName;return o.createElement("div",{className:n._classNames.title,id:n._id,onClick:n._onHeaderClick,role:"gridcell","aria-colspan":n.props.ariaColSpan,"data-selection-invoke":!0},t(e))},n._onRenderName=function(e){var t=e.group;return t?o.createElement(o.Fragment,null,o.createElement("span",null,t.name),o.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=zn("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,r=e.isGroupLoading,o=!n&&r&&r(e.group);return d(d({},t),{isCollapsed:n||!1,isLoadingVisible:o||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,r=void 0===n?0:n,i=e.viewport,a=e.selectionMode,s=e.loadingText,l=e.isSelected,c=void 0!==l&&l,u=e.selected,p=void 0!==u&&u,h=e.indentWidth,m=e.onRenderGroupHeaderCheckbox,f=e.isCollapsedGroupSelectVisible,g=void 0===f||f,v=e.expandButtonProps,y=e.expandButtonIcon,b=e.selectAllButtonProps,C=e.theme,S=e.styles,x=e.className,_=e.compact,E=e.ariaLevel,k=e.ariaPosInSet,w=e.ariaSetSize,I=e.ariaRowIndex,P=e.useFastIcons,T=this.props.onRenderTitle?io(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,D=P?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,A=m?io(m,D):D,R=this.state,N=R.isCollapsed,M=R.isLoadingVisible,F=a===ao.multiple,B=F&&(g||!(t&&t.isCollapsed)),O=p||c,L=Ot(C);return this._classNames=vy(S,{theme:C,className:x,selected:O,isCollapsed:N,compact:_}),t?o.createElement("div",{className:this._classNames.root,style:i?{minWidth:i.width}:{},role:"row","aria-level":E,"aria-setsize":w,"aria-posinset":k,"aria-rowindex":I,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":F?O:void 0,"data-selection-index":t.startIndex,"data-selection-span":t.count},o.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},B?o.createElement("div",{role:"gridcell"},o.createElement("button",d({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":O,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},b),A({checked:O,theme:C},A))):a!==ao.none&&o.createElement(Zv,{indentWidth:48,count:1}),o.createElement(Zv,{indentWidth:h,count:r}),o.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},o.createElement(Rc,{iconName:"Tag"})),o.createElement("div",{role:"gridcell"},o.createElement("button",d({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},v),o.createElement(Rc,{className:this._classNames.expandIsCollapsed,iconName:y||(L?"ChevronLeftMed":"ChevronRightMed")}))),T(this.props),M&&o.createElement(gy,{label:s}))):null},t.prototype._defaultCheckboxRender=function(e){return o.createElement(Tm,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return o.createElement(by,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(o.Component),by=o.memo((function(e){return o.createElement(Tm,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),Cy=vo(yy,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,u=e.compact,d=ny.cellLeftPadding,p=u?40:48,h=a.semanticColors,m=a.palette,f=a.fonts,g=ka(ly,a),v=[fa(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[g.root,fa(a),a.fonts.medium,{borderBottom:"1px solid ".concat(h.listBackground),cursor:"default",userSelect:"none",selectors:(t={":hover":{background:h.listItemBackgroundHovered,color:h.actionLinkHovered}},t["&:hover .".concat(g.check)]={opacity:1},t[".".concat(wr," &:focus .").concat(g.check)]={opacity:1},t[":global(.".concat(g.group,".").concat(g.isDropping,")")]={selectors:(n={},n["& > .".concat(g.root," .").concat(g.dropIcon)]={transition:"transform ".concat(Yi," ").concat(cy," ")+"opacity ".concat(ji," ").concat(uy),transitionDelay:Ki,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(g.check)]={opacity:0},n)},t)},l&&[g.isSelected,{background:h.listItemBackgroundChecked,selectors:(r={":hover":{background:h.listItemBackgroundCheckedHovered}},r["".concat(g.check)]={opacity:1},r)}],u&&[g.compact,{border:"none"}],s],groupHeaderContainer:[{display:"flex",alignItems:"center",height:p}],headerCount:[{padding:"0px 4px"}],check:[g.check,v,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:48,height:p,selectors:(o={},o[".".concat(wr," &:focus")]={opacity:1},o)}],expand:[g.expand,v,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:f.small.fontSize,width:36,height:p,color:l?m.neutralPrimary:m.neutralSecondary,selectors:{":hover":{backgroundColor:l?m.neutralQuaternary:m.neutralLight},":active":{backgroundColor:l?m.neutralTertiaryAlt:m.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[g.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Ot(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[g.title,{paddingLeft:d,fontSize:u?f.medium.fontSize:f.mediumPlus.fontSize,fontWeight:c?ri.regular:ri.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[g.dropIcon,{position:"absolute",left:-26,fontSize:oi.large,color:m.neutralSecondary,transition:"transform ".concat(qi," ").concat(dy,", ")+"opacity ".concat(Yi," ").concat(uy),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(i={},i[":global(.".concat(g.iconTag,")")]={position:"absolute"},i)}]}}),void 0,{scope:"GroupHeader"}),Sy={root:"ms-GroupShowAll",link:"ms-Link"},xy=cn(),_y=vo((function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,i=void 0===r?"Show All":r,a=e.styles,s=e.theme,l=e.onToggleSummarize,c=xy(a,{theme:s}),u=o.useCallback((function(e){l(t),e.stopPropagation(),e.preventDefault()}),[l,t]);return t?o.createElement("div",{className:c.root},o.createElement(Zv,{count:n}),o.createElement(Wu,{onClick:u},i)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=ka(Sy,n);return{root:[o.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t[".".concat(o.link)]={fontSize:r.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),Ey={root:"ms-groupFooter"},ky=cn(),wy=vo((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,i=e.indentWidth,a=e.styles,s=e.theme,l=ky(a,{theme:s});return t&&r?o.createElement("div",{className:l.root},o.createElement(Zv,{indentWidth:i,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=ka(Ey,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),Iy=function(e){function t(n){var r=e.call(this,n)||this;r._root=o.createRef(),r._list=o.createRef(),r._subGroupRefs={},r._droppingClassName="",r._onRenderGroupHeader=function(e){return o.createElement(Cy,d({},e))},r._onRenderGroupShowAll=function(e){return o.createElement(_y,d({},e))},r._onRenderGroupFooter=function(e){return o.createElement(wy,d({},e))},r._renderSubGroup=function(e,n){var i=r.props,a=i.dragDropEvents,s=i.dragDropHelper,l=i.eventsToRegister,c=i.getGroupItemLimit,u=i.groupNestingDepth,d=i.groupProps,p=i.items,h=i.headerProps,m=i.showAllProps,f=i.footerProps,g=i.listProps,v=i.onRenderCell,y=i.selection,b=i.selectionMode,C=i.viewport,S=i.onRenderGroupHeader,x=i.onRenderGroupShowAll,_=i.onRenderGroupFooter,E=i.onShouldVirtualize,k=i.group,w=i.compact,I=e.level?e.level+1:u;return!e||e.count>0||d&&d.showEmptyGroups?o.createElement(t,{ref:function(e){return r._subGroupRefs["subGroup_"+n]=e},key:r._getGroupKey(e,n),dragDropEvents:a,dragDropHelper:s,eventsToRegister:l,footerProps:f,getGroupItemLimit:c,group:e,groupIndex:n,groupNestingDepth:I,groupProps:d,headerProps:h,items:p,listProps:g,onRenderCell:v,selection:y,selectionMode:b,showAllProps:m,viewport:C,onRenderGroupHeader:S,onRenderGroupShowAll:x,onRenderGroupFooter:_,onShouldVirtualize:E,groups:k?k.children:[],compact:w}):null},r._getGroupDragDropOptions=function(){var e=r.props,t=e.group,n=e.groupIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:r._updateDroppingState,canDrag:o.canDrag,canDrop:o.canDrop,onDrop:o.onDrop,onDragStart:o.onDragStart,onDragEnter:o.onDragEnter,onDragLeave:o.onDragLeave,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},r._updateDroppingState=function(e,t){var n=r.state.isDropping,o=r.props,i=o.dragDropEvents,a=o.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(r._droppingClassName=i.onDragEnter(a,t)),r.setState({isDropping:e}))};var i=n.selection,a=n.group;return br(r),r._id=zn("GroupedListSection"),r.state={isDropping:!1,isSelected:!(!i||!a)&&i.isRangeSelected(a.startIndex,a.count)},r._events=new Ae(r),r}return u(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,lo,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,r=e.groupIndex,i=e.headerProps,a=e.showAllProps,s=e.footerProps,l=e.viewport,c=e.selectionMode,u=e.onRenderGroupHeader,p=void 0===u?this._onRenderGroupHeader:u,h=e.onRenderGroupShowAll,m=void 0===h?this._onRenderGroupShowAll:h,f=e.onRenderGroupFooter,g=void 0===f?this._onRenderGroupFooter:f,v=e.onShouldVirtualize,y=e.groupedListClassNames,b=e.groups,C=e.compact,S=e.listProps,x=void 0===S?{}:S,_=this.state.isSelected,E=n&&t?t(n):1/0,k=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>E||n.hasMoreData),w=n&&n.children&&n.children.length>0,I=x.version,P={group:n,groupIndex:r,groupLevel:n?n.level:0,isSelected:_,selected:_,viewport:l,selectionMode:c,groups:b,compact:C},T={groupedListId:this._id,ariaLevel:(null===n||void 0===n?void 0:n.level)?n.level+1:1,ariaSetSize:b?b.length:void 0,ariaPosInSet:void 0!==r?r+1:void 0},D=d(d(d({},i),P),T),A=d(d({},a),P),R=d(d({},s),P),N=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return o.createElement("div",d({ref:this._root},N&&{draggable:!0},{className:kn(y&&y.group,this._getDroppingClassName()),role:"presentation"}),p(D,this._onRenderGroupHeader),n&&n.isCollapsed?null:w?o.createElement(Cv,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:v,version:I,id:this._id}):this._onRenderGroup(E),n&&n.isCollapsed?null:k&&m(A,this._onRenderGroupShowAll),g(R,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r;(r=this._list.current.pageRefs["subGroup_"+String(n)])&&r.forceListUpdate()}}else(r=this._subGroupRefs["subGroup_"+String(0)])&&r.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},t.prototype._onRenderGroupCell=function(e,t,n){return function(r,o){return e(t,r,o,n)}},t.prototype._onRenderGroup=function(e){var t=this.props,n=t.group,r=t.items,i=t.onRenderCell,a=t.listProps,s=t.groupNestingDepth,l=t.onShouldVirtualize,c=t.groupProps,u=n&&!n.isShowingAll?n.count:r.length,p=n?n.startIndex:0;return o.createElement(Cv,d({role:c&&c.role?c.role:"rowgroup","aria-label":null===n||void 0===n?void 0:n.name,items:r,onRenderCell:this._onRenderGroupCell(i,s,n),ref:this._list,renderCount:Math.min(u,e),startIndex:p,onShouldVirtualize:l,id:this._id},a))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return kn((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},t}(o.Component),Py=cn(),Ty=ry.rowHeight,Dy=ry.compactRowHeight,Ay=function(e){function t(t){var n=e.call(this,t)||this;n._list=o.createRef(),n._renderGroup=function(e,t){var r=n.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,l=r.groupProps,c=r.items,u=r.listProps,p=r.onRenderCell,h=r.selectionMode,m=r.selection,f=r.viewport,g=r.onShouldVirtualize,v=r.groups,y=r.compact,b={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},C=d(d({},l.headerProps),b),S=d(d({},l.showAllProps),b),x=d(d({},l.footerProps),b),_=n._getGroupNestingDepth();if(!l.showEmptyGroups&&e&&0===e.count)return null;var E=d(d({},u||{}),{version:n.state.version});return o.createElement(Iy,{key:n._getGroupKey(e,t),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:x,getGroupItemLimit:l&&l.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:_,groupProps:l,headerProps:C,listProps:E,items:c,onRenderCell:p,onRenderGroupHeader:l.onRenderHeader,onRenderGroupShowAll:l.onRenderShowAll,onRenderGroupFooter:l.onRenderFooter,selectionMode:h,selection:m,showAllProps:S,viewport:f,onShouldVirtualize:g,groupedListClassNames:n._classNames,groups:v,compact:y})},n._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?Dy:Ty;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,r=n.props.getGroupHeight,o=void 0===r?n._getGroupHeight:r,i=t&&t[e];return i?o(i,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,r=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(r&&r(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,r=t.selection,o=t.selectionMode;e&&r&&o===ao.multiple&&r.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===Lt(vt)},n._onToggleSummarize=function(e){var t=n.props.groupProps,r=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;r?r(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,r=t&&t[e];return{key:r&&r.key}},br(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var r=t.listProps,i=(void 0===r?{}:r).version,a=void 0===i?{}:i;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:a},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=d(d({},t),{selectionMode:r,compact:o,groups:n,listProps:a,items:i}),c=!1;return s===(t.listProps&&t.listProps.version)&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(c=!0),c&&(l=d(d({},l),{version:{}})),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,r=e.onShouldVirtualize,i=e.theme,a=e.role,s=void 0===a?"treegrid":a,l=e.styles,c=e.compact,u=e.focusZoneProps,p=void 0===u?{}:u,h=e.rootListProps,m=void 0===h?{}:h,f=this.state,g=f.groups,v=f.version;this._classNames=Py(l,{theme:i,className:t,compact:c});var y=p.shouldEnterInnerZone,b=void 0===y?this._isInnerZoneKeystroke:y;return o.createElement(Bu,d({direction:Cu.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},p,{shouldEnterInnerZone:b,className:kn(this._classNames.root,p.className)}),g?o.createElement(Cv,d({ref:this._list,role:s,items:g,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:r,version:v},m)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:ao.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(o.Component),Ry=vo(Ay,ey,void 0,{scope:"GroupedList"}),Ny=function e(t){return!(!t||!t.some((function(t){return t.children?e(t.children):!t.isCollapsed})))},My=function(e,t){if(void 0!==e)for(var n=0;n<e.length;n++)e[n].isCollapsed=t},Fy=function(e){return e.which===Lt(vt)},By=cn(),Oy=function(e,t){var n,r;switch(e.type){case"item":return null!==(r=null===(n=e.item)||void 0===n?void 0:n.key)&&void 0!==r?r:null;case"header":return e.group.key;case"footer":return"".concat(e.group.key,"-footer");case"showAll":return"".concat(e.group.key,"-showAll")}return null},Ly=function(e){return o.createElement(Cy,d({},e))},Hy=function(e){return o.createElement(_y,d({},e))},Vy=function(e){return e.group&&e.footerText?o.createElement(wy,d({},e)):null},zy=function(e){var t=e.selection,n=e.selectionMode,r=void 0===n?ao.multiple:n,i=e.groupProps,a=void 0===i?{}:i,s=e.compact,l=void 0!==s&&s,c=e.items,u=void 0===c?[]:c,p=e.groups,h=e.onGroupExpandStateChanged,m=e.className,f=e.usePageCache,g=e.onShouldVirtualize,v=e.theme,y=e.role,b=void 0===y?"treegrid":y,C=e.styles,S=e.focusZoneProps,x=void 0===S?{}:S,_=e.rootListProps,E=void 0===_?{}:_,k=e.onRenderCell,w=e.viewport,I=e.listRef,P=e.groupExpandedVersion,T=e.version,D=a.onRenderHeader,A=void 0===D?Ly:D,R=a.onRenderFooter,N=void 0===R?Vy:R,M=a.onRenderShowAll,F=void 0===M?Hy:M,B=By(C,{theme:v,className:m,compact:l}),O=o.useRef(),L=o.useRef([]),H=o.useRef(Ny(p)),V=o.useState({}),z=V[0],U=V[1],W=o.useState({}),G=W[0],j=W[1],q=x.shouldEnterInnerZone,K=void 0===q?Fy:q,Y=o.useMemo((function(){return function(e,t,n,r){if(!e)return t;n.length<1&&(n=new Array(t.length));for(var o=0,i=[],a=e.length-1;a>=0;)i.push({group:e[a],groupIndex:a+1}),a--;for(;i.length>0;){var s=i.pop(),l=s.group,c=s.groupIndex;for(n[o]={group:l,groupId:zn("GroupedListSection"),type:"header",groupIndex:c},o++;!0!==l.isCollapsed&&(null===l||void 0===l?void 0:l.children)&&l.children.length>0;){for(a=l.children.length-1;a>0;)i.push({group:l.children[a],groupIndex:a+1}),a--;l=l.children[0],n[o]={group:l,groupId:zn("GroupedListSection"),type:"header",groupIndex:1},o++}if(!0!==l.isCollapsed){for(var u=l.startIndex,d=r?r(l):1/0,p=l.isShowingAll?t.length:l.count,h=u+Math.min(p,d);u<h;)n[o]={group:l,item:t[u],itemIndex:u,type:"item"},u++,o++;!l.children&&!l.isCollapsed&&!l.isShowingAll&&(l.count>d||l.hasMoreData)&&(n[o]={group:l,type:"showAll"},o++)}n[o]={group:l,type:"footer"},o++}return n.length=o,n}(p,u,L.current,null===a||void 0===a?void 0:a.getGroupItemLimit)}),[p,null===a||void 0===a?void 0:a.getGroupItemLimit,u,G,L,P]),X=o.useCallback((function(e){var t=Y[e];return{key:"header"===t.type?t.group.key:void 0}}),[Y]);o.useEffect((function(){return(null===a||void 0===a?void 0:a.isAllGroupsCollapsed)&&My(p,a.isAllGroupsCollapsed),O.current=new Ae(undefined),function(){var e;null===(e=O.current)||void 0===e||e.dispose(),O.current=void 0}}),[]),o.useEffect((function(){U({})}),[T]),o.useEffect((function(){var e=Ny(p);e!==H.current&&(H.current=e,null===h||void 0===h||h(e))}),[p,G,h,P]);var Q=o.useCallback((function(e){var t,n=null===(t=null===a||void 0===a?void 0:a.headerProps)||void 0===t?void 0:t.onToggleCollapse;e&&(null===n||void 0===n||n(e),e.isCollapsed=!e.isCollapsed,j({}),U({}))}),[j,a]),Z=function(e){e&&t&&r===ao.multiple&&t.toggleRangeSelected(e.startIndex,e.count)},J=function(e){var t,n=null===(t=null===a||void 0===a?void 0:a.showAllProps)||void 0===t?void 0:t.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),U({}),j({}))},$=function(e,t){var n;return{group:e,groupIndex:t,groupLevel:null!==(n=e.level)&&void 0!==n?n:0,viewport:w,selectionMode:r,groups:p,compact:l,onToggleSelectGroup:Z,onToggleCollapse:Q,onToggleSummarize:J}};return o.createElement(Bu,d({direction:Cu.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},x,{shouldEnterInnerZone:K,className:kn(B.root,x.className)}),o.createElement(Cv,d({ref:I,role:b,items:Y,onRenderCellConditional:function(e,n){var r;if("header"===e.type)return function(e,n){var r,i=e.group;r="treegrid"===b?{ariaLevel:i.level?i.level+1:1,ariaSetSize:p?p.length:void 0,ariaPosInSet:e.groupIndex}:{ariaRowIndex:n};var s=d(d(d(d({},a.headerProps),$(e.group,n)),{key:i.key,groupedListId:e.groupId}),r);return o.createElement(Uy,{render:A,defaultRender:Ly,item:e,selection:t,eventGroup:O.current,props:s})}(e,n);if("showAll"===e.type)return function(e,t){var n=e.group,r=d(d(d({},a.showAllProps),$(n,t)),{key:n.key?"".concat(n.key,"-show-all"):void 0});return F(r,Hy)}(e,n);if("footer"===e.type)return function(e,t){var n=e.group,r=d(d(d({},a.footerProps),$(n,t)),{key:n.key?"".concat(n.key,"-footer"):void 0});return N(r,Vy)}(e,n);var i=e.group.level?e.group.level+1:1;return k(i,e.item,null!==(r=e.itemIndex)&&void 0!==r?r:n,e.group)},usePageCache:f,onShouldVirtualize:g,getPageSpecification:X,version:z,getKey:Oy},E)))},Uy=function(e){var t=e.render,n=e.defaultRender,r=e.item,i=e.selection,a=e.eventGroup,s=e.props,l=r.group,c=function(e,t,n,r){var i=o.useState((function(){var r;return null!==(r=null===n||void 0===n?void 0:n.isRangeSelected(e,t))&&void 0!==r&&r})),a=i[0],s=i[1];return o.useEffect((function(){if(n&&r){var o=function(){var r;s(null!==(r=null===n||void 0===n?void 0:n.isRangeSelected(e,t))&&void 0!==r&&r)};return r.on(n,lo,o),function(){null===r||void 0===r||r.off(n,lo,o)}}}),[e,t,n,r]),a}(l.startIndex,l.count,i,a);return t(d(d({},s),{isSelected:c,selected:c}),n)},Wy=function(e){function t(t){var n=e.call(this,t)||this;n._list=o.createRef(),br(n);var r=t.listProps,i=(void 0===r?{}:r).version,a=void 0===i?{}:i,s=t.groups;return n.state={version:a,groupExpandedVersion:{},groups:s},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=d(d({},t),{groups:n});return s===t.version&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(l.version={}),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){var e;return(null===(e=this._list.current)||void 0===e?void 0:e.getStartItemIndexInView())||0},t.prototype.render=function(){return o.createElement(zy,d({},this.props,this.state,{listRef:this._list}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdate()},t.prototype.toggleCollapseAll=function(e){var t,n=this.state.groups,r=this.props.groupProps;n&&n.length>0&&(null===(t=null===r||void 0===r?void 0:r.onToggleCollapseAll)||void 0===t||t.call(r,e),My(n,e),this.setState({groupExpandedVersion:{}}),this.forceUpdate())},t.prototype._forceListUpdate=function(){this.setState({version:{}})},t.displayName="GroupedListV2",t}(o.Component);vo(Wy,ey,void 0,{scope:"GroupedListV2"}).displayName="GroupedListV2_unstable";var Gy=cn(),jy=o.memo((function(e){return o.createElement(Tm,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function qy(e){return o.createElement(Tm,{checked:e.checked})}function Ky(e){return o.createElement(jy,{theme:e.theme,checked:e.checked})}var Yy,Xy=vo((function(e){var t=e.isVisible,n=void 0!==t&&t,r=e.canSelect,i=void 0!==r&&r,a=e.anySelected,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=e.selectionMode,h=e.isHeader,m=void 0!==h&&h,f=e.className,g=(e.checkClassName,e.styles),v=e.theme,y=e.compact,b=e.onRenderDetailsCheckbox,C=e.useFastIcons,S=void 0===C||C,x=p(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),_=S?Ky:qy,E=b?io(b,_):_,k=Gy(g,{theme:v,canSelect:i,selected:c,anySelected:s,className:f,isHeader:m,isVisible:n,compact:y}),w={checked:c,theme:v},I=gr("div",x,["aria-label","aria-labelledby","aria-describedby"]),P=u===ao.single?"radio":"checkbox";return i?o.createElement("div",d({},x,{role:P,className:kn(k.root,k.check),"aria-checked":c,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),E(w)):o.createElement("div",d({},I,{className:kn(k.root,k.check)}))}),(function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=ka(sy,t),u=r?42:s?ry.compactRowHeight:ry.rowHeight,d=l||o||i;return{root:[c.root,n],check:[!a&&c.isDisabled,r&&c.isHeader,fa(t),t.fonts.small,Pm.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:d?1:0,height:u,width:48,padding:0,margin:0}],isDisabled:[]}}),void 0,{scope:"DetailsRowCheck"},!0),Qy=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var r=this;if(!this._initialized){this._events=new Ae(this);var o=Re();o&&(this._events.on(o.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(o,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,d,p,h,m,f=n.key,g=void 0===f?"".concat(++this._lastId):f,v=[];if(n&&e){var y=n.eventMap,b=n.context,C=n.updateDropState,S={root:e,options:n,key:g};if(p=this._isDraggable(S),h=this._isDroppable(S),(p||h)&&y)for(var x=0,_=y;x<_.length;x++){var E=_[x],k={callback:E.callback.bind(null,b),eventName:E.eventName};v.push(k),this._events.on(e,k.eventName,k.callback)}h&&(a=function(e){e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]--,0===r._dragEnterCounts[g]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]++,1===r._dragEnterCounts[g]&&C(!0,e))},l=function(e){r._dragEnterCounts[g]=0,C(!1,e)},c=function(e){r._dragEnterCounts[g]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},u=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),p&&(d=this._onMouseDown.bind(this,S),l=this._onDragEnd.bind(this,S),i=function(t){var o=n;o&&o.onDragStart&&o.onDragStart(o.context.data,o.context.index,r._selection.getSelection(),t),r._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",d),t.on(e,"dragend",l)),m={target:S,dispose:function(){if(r._activeTargets[g]===m&&delete r._activeTargets[g],e){for(var n=0,o=v;n<o.length;n++){var f=o[n];r._events.off(e,f.eventName,f.callback)}h&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",l))}}},this._activeTargets[g]=m}return{key:g,dispose:function(){m&&m.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var r=n[t],o=this._activeTargets[r];o.target.root&&(this._events.off(o.target.root,"mousemove"),this._events.off(o.target.root,"mouseleave"))}this._dragData.dropTarget&&(Ae.raise(this._dragData.dropTarget.root,"dragleave"),Ae.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=Re();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,r=void 0===n?1:n;if(this._dragData&&1!==r)this._onMouseUp(t);else{var o=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(o,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(Ae.raise(this._dragData.dropTarget.root,"dragleave"),Ae.raise(o,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(Ae.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,r=Object.keys(this._activeTargets);n<r.length;n++){var o=r[n],i=this._activeTargets[o];i.target.root&&(this._events.on(i.target.root,"mousemove",this._onMouseMove.bind(this,i.target)),this._events.on(i.target.root,"mouseleave",this._onMouseLeave.bind(this,i.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!(!t.canDrag||!t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,n))},e}(),Zy=cn(),Jy=function(e){return function(t){return t?t.column.isIconOnly?o.createElement("span",{className:e.accessibleLabel},t.column.name):o.createElement(o.Fragment,null,t.column.name):null}},$y=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,n=p(e,["columnProps"]),r=(null===t||void 0===t?void 0:t.useFastIcons)?Tc:Rc;return o.createElement(r,d({},n))}},n._onRenderColumnHeaderTooltip=function(e){return o.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,r=t.onColumnClick,o=t.column;o.columnActionsMode!==Lv.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),r&&r(e,o))},n._onDragStart=function(e,t,r,o){var i=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(i.borderWhileDragging),n._async.setTimeout((function(){n._root.current&&n._root.current.classList.add(i.noBorderWhileDragging)}),20))},n._onDragEnd=function(e,t){var r=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(r.borderWhileDragging),n._root.current.classList.remove(r.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,r=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),r&&(r(o,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&0===e.button&&e.stopPropagation()},br(n),n._async=new we(n),n._events=new Ae(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.parentId,r=e.isDraggable,i=e.styles,a=e.theme,s=e.cellStyleProps,l=void 0===s?ny:s,c=e.useFastIcons,u=void 0===c||c,p=this.props.onRenderColumnHeaderTooltip,h=void 0===p?this._onRenderColumnHeaderTooltip:p;this._classNames=Zy(i,{theme:a,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Lv.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:l,transitionDurationDrag:200,transitionDurationDrop:1500});var m=this._classNames,f=u?Tc:Rc,g=t.onRenderFilterIcon?io(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),v=t.onRenderHeader?io(t.onRenderHeader,Jy(this._classNames)):Jy(this._classNames),y=t.columnActionsMode!==Lv.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),b={"aria-label":t.ariaLabel?t.ariaLabel:t.isIconOnly?t.name:void 0,"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:"".concat(n,"-").concat(t.key,"-name"),"aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleDescription()?"".concat(n,"-").concat(t.key,"-tooltip"):void 0};return o.createElement(o.Fragment,null,o.createElement("div",d({key:t.key,ref:this._root,role:"columnheader"},!y&&b,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":y||t.columnActionsMode===Lv.disabled?void 0:"true",className:m.root,"data-is-draggable":r,draggable:r,style:{width:t.calculatedWidth+l.cellLeftPadding+l.cellRightPadding+(t.isPadded?l.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key}),r&&o.createElement(f,{iconName:"GripperBarVertical",className:m.gripperBarVerticalStyle}),h({hostClassName:m.cellTooltip,id:"".concat(n,"-").concat(t.key,"-tooltip"),setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Lv.disabled?t.ariaLabel:"",children:o.createElement("span",d({id:"".concat(n,"-").concat(t.key),className:m.cellTitle,"data-is-focusable":y&&t.columnActionsMode!==Lv.disabled?"true":void 0,role:y?"button":void 0},y&&b,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Lv.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===Lv.hasDropdown?!!t.isMenuOpen:void 0}),o.createElement("span",{id:"".concat(n,"-").concat(t.key,"-name"),className:m.cellName},(t.iconName||t.iconClassName)&&o.createElement(f,{className:m.iconClassName,iconName:t.iconName}),v(this.props)),t.isFiltered&&o.createElement(f,{className:m.nearIcon,iconName:"Filter"}),(t.isSorted||t.showSortIconWhenUnsorted)&&o.createElement(f,{className:m.sortIcon,iconName:t.isSorted?t.isSortedDescending?"SortDown":"SortUp":"Sort"}),t.isGrouped&&o.createElement(f,{className:m.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Lv.hasDropdown&&!t.isIconOnly&&g({"aria-hidden":!0,columnProps:this.props,className:m.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},t.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?o.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(n,"-").concat(t.key,"-tooltip"),className:r.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(o.Component),eb={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},tb=vo($y,(function(e){var t,n=e.theme,r=e.headerClassName,o=e.iconClassName,i=e.isActionable,a=e.isEmpty,s=e.isIconVisible,l=e.isPadded,c=e.isIconOnly,u=e.cellStyleProps,p=void 0===u?ny:u,h=e.transitionDurationDrag,m=e.transitionDurationDrop,f=n.semanticColors,g=n.palette,v=n.fonts,y=ka(eb,n),b={iconForegroundColor:f.bodySubtext,headerForegroundColor:f.bodyText,headerBackgroundColor:f.bodyBackground,dropdownChevronForegroundColor:g.neutralSecondary,resizerColor:g.neutralTertiaryAlt},C={color:b.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid ".concat(g.themePrimary)},x={outlineColor:"transparent"};return{root:[ay(e),v.small,i&&[y.isActionable,{selectors:{":hover":{color:f.bodyText,background:f.listHeaderBackgroundHovered},":active":{background:f.listHeaderBackgroundPressed}}}],a&&[y.isEmpty,{textOverflow:"clip"}],s&&y.isIconVisible,l&&{paddingRight:p.cellExtraRightPadding+p.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},r],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:g.neutralTertiary,left:1},nearIcon:[y.nearIcon,C],sortIcon:[C,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:b.iconForegroundColor,opacity:1},o],filterChevron:[y.filterChevron,{color:b.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:v.small.fontSize}],cellTitle:[y.cellTitle,fa(n),d({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(p.cellRightPadding,"px 0 ").concat(p.cellLeftPadding,"px")},c?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:ri.semibold,fontSize:v.medium.fontSize},c&&{selectors:(t={},t[".".concat(y.nearIcon)]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:ya,borderWhileDragging:S,noBorderWhileDragging:[x,{transition:"outline ".concat(h,"ms ease")}],borderAfterDropping:S,noBorderAfterDropping:[x,{transition:"outline  ".concat(m,"ms ease")}]}}),void 0,{scope:"DetailsColumn"});!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(Yy||(Yy={}));var nb=cn(),rb=[],ob=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._rootComponent=o.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var r=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var o=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,i=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=o,r.onColumnDrop){var a={draggedIndex:n._draggedColumnIndex,targetIndex:o};r.onColumnDrop(a)}else r.handleColumnReorder&&r.handleColumnReorder(n._draggedColumnIndex,o)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._computeColumnIndexOffset=function(e){var t=1;return e&&(t+=1),n.props.groupNestingDepth&&n.props.groupNestingDepth>0&&(t+=1),t},n._updateDragInfo=function(e,t){var r=n._getColumnReorderProps(),o=e.itemIndex;if(o>=0)n._draggedColumnIndex=o-n._computeColumnIndexOffset(!n._isCheckboxColumnHidden()),n._getDropHintPositions(),r.onColumnDragStart&&r.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},r.onColumnDragEnd)){var i=n._isEventOnHeader(t);r.onColumnDragEnd({dropLocation:i},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,r=void 0===t?rb:t,o=n._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,l=o.frozenColumnCountFromEnd||0,c=s;c<r.length-l+1;c++)if(n._rootElement.current){var u=n._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;n._dropHintDetails[c-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,c===r.length-l&&(n._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=Ot(n.props.theme);if(n._rootElement.current){var r=e-n._rootElement.current.getBoundingClientRect().left,o=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&ib(t,r,n._dropHintDetails[o].startX,n._dropHintDetails[o].endX))return;var i=n.props.columns,a=void 0===i?rb:i,s=n._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,u=l,d=a.length-c,p=-1;if(ab(t,r,n._dropHintDetails[u].endX)?p=u:sb(t,r,n._dropHintDetails[d].startX)?p=d:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[o+1]&&ib(t,r,n._dropHintDetails[o+1].startX,n._dropHintDetails[o+1].endX)?p=o+1:n._dropHintDetails[o-1]&&ib(t,r,n._dropHintDetails[o-1].startX,n._dropHintDetails[o-1].endX)&&(p=o-1)),-1===p)for(var h=l,m=d;h<m;){var f=Math.ceil((m+h)/2);if(ib(t,r,n._dropHintDetails[f].startX,n._dropHintDetails[f].endX)){p=f;break}ab(t,r,n._dropHintDetails[f].originX)?m=f:sb(t,r,n._dropHintDetails[f].originX)&&(h=f)}p===n._draggedColumnIndex||p===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():o!==p&&p>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[p].dropHintElementRef,"inline-block"),n._currentDropHintIndex=p)}},n._renderColumnSizer=function(e){var t,r=e.columnIndex,i=n.props.columns,a=void 0===i?rb:i,s=a[r],l=n.state.columnResizeDetails,c=n._classNames;return s.isResizable?o.createElement("div",{key:"".concat(s.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:lb,"data-sizer-index":r,onBlur:n._onSizerBlur,className:kn(c.cellSizer,r<a.length-1?c.cellSizerStart:c.cellSizerEnd,(t={},t[c.cellIsResizing]=l&&l.columnIndex===r,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,r)}):null},n._onRenderColumnHeaderTooltip=function(e){return o.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),r=Number(t),o=n.props.columns,i=void 0===o?rb:o;null!==t&&0===e.button&&(n.setState({columnResizeDetails:{columnIndex:r,columnMinWidth:i[r].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing;r&&!o&&e.clientX!==r.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing,i=n.props,a=i.columns,s=void 0===a?rb:a,l=i.onColumnResized,c=e.target.getAttribute("data-sizer-index");if(c&&!o){var u=Number(c);if(r){var p=void 0;e.which===it?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===ft?p=Ot(n.props.theme)?1:-1:e.which===vt&&(p=Ot(n.props.theme)?-1:1),p&&(e.shiftKey||(p*=10),n.setState({columnResizeDetails:d(d({},r),{columnMinWidth:r.columnMinWidth+p})}),l&&l(s[u],r.columnMinWidth+p,u),e.preventDefault(),e.stopPropagation())}else e.which===it&&(n.setState({columnResizeDetails:{columnIndex:u,columnMinWidth:s[u].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,r=n.props,o=r.onColumnIsSizingChanged,i=r.onColumnResized,a=r.columns,s=void 0===a?rb:a,l=n.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&o&&o(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;Ot(n.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else n._onSizerMouseUp(e)},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,r=t.columns,o=void 0===r?rb:r,i=t.onColumnIsSizingChanged,a=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(o[a.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},br(n),n._events=new Ae(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=zn("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new Qy({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return u(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,lo,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?rb:t,r=this.props.columns,o=void 0===r?rb:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?rb:n,i=t.ariaLabel,a=t.ariaLabelForToggleAllGroupsButton,s=t.ariaLabelForSelectAllCheckbox,l=t.selectAllVisibility,c=t.ariaLabelForSelectionColumn,u=t.indentWidth,d=t.onColumnClick,p=t.onColumnContextMenu,h=t.onRenderColumnHeaderTooltip,m=void 0===h?this._onRenderColumnHeaderTooltip:h,f=t.styles,g=t.selectionMode,v=t.theme,y=t.onRenderDetailsCheckbox,b=t.groupNestingDepth,C=t.useFastIcons,S=t.checkboxVisibility,x=t.className,_=this.state,E=_.isAllSelected,k=_.columnResizeDetails,w=_.isSizing,I=_.isAllCollapsed,P=l!==Yy.none,T=l===Yy.hidden,D=S===Uv.always,A=this._getColumnReorderProps(),R=A&&A.frozenColumnCountFromStart?A.frozenColumnCountFromStart:0,N=A&&A.frozenColumnCountFromEnd?A.frozenColumnCountFromEnd:0;this._classNames=nb(f,{theme:v,isAllSelected:E,isSelectAllHidden:l===Yy.hidden,isResizingColumn:!!k&&w,isSizing:w,isAllCollapsed:I,isCheckboxHidden:T,className:x});var M=this._classNames,F=C?Tc:Rc,B=b>0,O=B&&this.props.collapseAllVisibility===Ov.visible,L=this._computeColumnIndexOffset(P),H=Ot(v);return o.createElement(Bu,{role:"row","aria-label":i,className:M.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:Cu.horizontal},P?[o.createElement("div",{key:"__checkbox",className:M.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:T?void 0:this._onSelectAllClicked,role:"columnheader"},m({hostClassName:M.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:s,children:o.createElement(Xy,{id:"".concat(this._id,"-check"),"aria-label":g===ao.multiple?s:c,"data-is-focusable":!T||void 0,isHeader:!0,selected:E,anySelected:!1,canSelect:!T,className:M.check,onRenderDetailsCheckbox:y,useFastIcons:C,isVisible:D})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:s&&!T?o.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},s):c&&T?o.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},c):null]:null,O?o.createElement("div",{className:M.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":a,"aria-expanded":!I,role:"columnheader"},o.createElement(F,{className:M.collapseButton,iconName:H?"ChevronLeftMed":"ChevronRightMed"}),o.createElement("span",{className:M.accessibleLabel},a)):B?o.createElement("div",{className:M.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,o.createElement(Zv,{indentWidth:u,role:"gridcell",count:b-1}),r.map((function(t,n){var i=!!A&&(n>=R&&n<r.length-N);return[A&&(i||n===r.length-N)&&e._renderDropHint(n),o.createElement(tb,{column:t,styles:t.styles,key:t.key,columnIndex:L+n,parentId:e._id,isDraggable:i,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:d,onColumnContextMenu:p,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]})),A&&0===N&&this._renderDropHint(r.length),w&&o.createElement(rc,null,o.createElement("div",{className:M.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&d(d({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===ao.none||n===Uv.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return Vv.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?rb:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?Tc:Rc;return o.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e)},o.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},o.createElement(n,{iconName:"CircleShapeSolid"})),o.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns;r&&r((void 0===o?rb:o)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:Yy.visible,collapseAllVisibility:Ov.visible,useFastIcons:!0},t}(o.Component);function ib(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function ab(e,t,n){return e?t>=n:t<=n}function sb(e,t,n){return e?t<=n:t>=n}function lb(e){e.stopPropagation()}var cb=vo(ob,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.isAllSelected,l=e.isResizingColumn,c=e.isSizing,u=e.isAllCollapsed,p=e.cellStyleProps,h=void 0===p?ny:p,m=i.semanticColors,f=i.palette,g=i.fonts,v=ka(iy,i),y={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,resizerColor:f.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},C=ay(e);return{root:[v.root,g.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(m.bodyDivider),cursor:"default",userSelect:"none",selectors:(t={},t["&:hover .".concat(v.check)]={opacity:1},t["& .".concat(v.tooltipHost," .").concat(v.checkTooltip)]={display:"block"},t)},s&&v.isAllSelected,l&&v.isResizingColumn,a],check:[v.check,{height:42},{selectors:(n={},n[".".concat(wr," &:focus")]={opacity:1},n)}],cellWrapperPadded:{paddingRight:h.cellExtraRightPadding+h.cellRightPadding},cellIsCheck:[C,v.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},s&&{opacity:1}],cellIsGroupExpander:[C,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,padding:0,border:"none",width:36,color:f.neutralSecondary,selectors:{":hover":{backgroundColor:f.neutralLighter},":active":{backgroundColor:f.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[v.cellSizer,{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(r={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":b,":hover:after":b},r["&.".concat(v.isResizing,":after")]=[b,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],r)}],cellIsResizing:v.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[v.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},u?[v.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Ot(i)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:v.checkTooltip,sizingOverlay:c&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(o={},o[ca]=d({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},accessibleLabel:ya,dropHintCircleStyle:[v.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid ".concat(f.themePrimary),background:f.white}],dropHintCaretStyle:[v.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:g.medium.fontSize,color:f.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[v.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:f.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),ub=function(e){var t=e.columns,n=e.rowClassNames,r=e.cellStyleProps,i=void 0===r?ny:r,a=e.item,s=e.itemIndex,l=e.isSelected,c=e.onRenderItemColumn,u=e.getCellValueKey,d=e.onRenderField,p=e.cellsByColumn,h=e.enableUpdateAnimations,m=e.rowHeaderId,f=o.useRef(),g=f.current||(f.current={}),v=o.useCallback((function(e){var t=e.column,r=e.cellValueKey,a=e.className,s=e.onRender,l=e.item,c=e.itemIndex,u="undefined"===typeof t.calculatedWidth?"auto":t.calculatedWidth+i.cellLeftPadding+i.cellRightPadding+(t.isPadded?i.cellExtraRightPadding:0),d="".concat(t.key).concat(void 0!==r?"-".concat(r):"");return o.createElement("div",{key:d,id:t.isRowHeader?m:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:kn(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,a),style:{width:u},"data-automationid":"DetailsRowCell","data-automation-key":t.key},s(l,c,t))}),[n,i,m]);return o.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,r=void 0===t?u:t,o=p&&e.key in p&&function(){return p[e.key]}||e.onRender||c||db,i=v;e.onRenderField&&(i=io(e.onRenderField,i)),d&&(i=io(d,i));var m=g[e.key],f=h&&r?r(a,s,e):void 0,y=!1;return void 0!==f&&void 0!==m&&f!==m&&(y=!0),g[e.key]=f,i({item:a,itemIndex:s,isSelected:l,column:e,cellValueKey:f,className:y?n.cellAnimation:void 0,onRender:o})})))};function db(e,t,n){return e&&n?function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return null!==n&&void 0!==n||(n=""),"boolean"===typeof n?n.toString():n}(e,n):null}var pb=cn(),hb=[],mb=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._cellMeasurer=o.createRef(),n._focusZone=o.createRef(),n._onSelectionChanged=function(){var e=fb(n.props);Ie(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var r=n.state.isDropping,o=n.props,i=o.dragDropEvents,a=o.item;e?i.onDragEnter&&(n._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),r!==e&&n.setState({isDropping:e})},br(n),n._events=new Ae(n),n.state={selectionState:fb(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return u(t,e),t.getDerivedStateFromProps=function(e,t){return d(d({},t),{selectionState:fb(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,lo,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=fb(e);return this.state.selectionState.isSelected!==n.isSelected||!Ie(this.props,e)}return!0},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.columns,i=void 0===r?hb:r,a=t.dragDropEvents,s=t.item,l=t.itemIndex,c=t.id,u=t.flatIndexOffset,p=void 0===u?2:u,h=t.onRenderCheck,m=void 0===h?this._onRenderCheck:h,f=t.onRenderDetailsCheckbox,g=t.onRenderItemColumn,v=t.onRenderField,y=t.getCellValueKey,b=t.selectionMode,C=t.checkboxVisibility,S=t.getRowAriaLabel,x=t.getRowAriaDescription,_=t.getRowAriaDescribedBy,E=t.isGridRow,k=t.checkButtonAriaLabel,w=t.checkboxCellClassName,I=t.rowFieldsAs,P=t.selection,T=t.indentWidth,D=t.enableUpdateAnimations,A=t.compact,R=t.theme,N=t.styles,M=t.cellsByColumn,F=t.groupNestingDepth,B=t.useFastIcons,O=void 0===B||B,L=t.cellStyleProps,H=t.group,V=t.focusZoneProps,z=t.disabled,U=void 0!==z&&z,W=this.state,G=W.columnMeasureInfo,j=W.isDropping,q=this.state.selectionState,K=q.isSelected,Y=void 0!==K&&K,X=q.isSelectionModal,Q=void 0!==X&&X,Z=a?!(!a.canDrag||!a.canDrag(s)):void 0,J=j?this._droppingClassNames||"is-dropping":"",$=S?S(s):void 0,ee=x?x(s):void 0,te=_?_(s):void 0,ne=!!P&&P.canSelectItem(s,l)&&!U,re=b===ao.multiple,oe=b!==ao.none&&C!==Uv.hidden,ie=b===ao.none?void 0:Y,ae=H?l-H.startIndex+1:void 0,se=H?H.count:void 0,le=V?V.direction:Cu.horizontal;this._classNames=d(d({},this._classNames),pb(N,{theme:R,isSelected:Y,canSelect:!re,anySelected:Q,checkboxCellClassName:w,droppingClassName:J,className:n,compact:A,enableUpdateAnimations:D,cellStyleProps:L,disabled:U}));var ce={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};Ie(this._rowClassNames||{},ce)||(this._rowClassNames=ce);var ue=I?_n(I,ub):ub,de=o.createElement(ue,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),cellsByColumn:M,columns:i,item:s,itemIndex:l,isSelected:Y,columnStartIndex:(oe?1:0)+(F?1:0),onRenderItemColumn:g,onRenderField:v,getCellValueKey:y,enableUpdateAnimations:D,cellStyleProps:L}),pe=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=zn("DetailsRow-description");var he=i.some((function(e){return!!e.isRowHeader})),me="".concat(c,"-checkbox")+(he?" ".concat(c,"-header"):""),fe=E?{}:{"aria-level":F&&F+1||void 0,"aria-posinset":ae,"aria-setsize":se};return o.createElement(Bu,d({"data-is-focusable":!0},mr(this.props,hr),"boolean"===typeof Z?{"data-is-draggable":Z,draggable:Z}:{},V,fe,{direction:le,elementRef:this._root,componentRef:this._focusZone,role:pe,"aria-label":$,"aria-disabled":U||void 0,"aria-describedby":ee?this._ariaRowDescriptionId:te,className:this._classNames.root,"data-selection-index":l,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(e=this.props["data-selection-disabled"])&&void 0!==e?e:U||void 0,"data-item-index":l,"aria-rowindex":void 0===ae?l+p:void 0,"data-automationid":"DetailsRow","aria-selected":ie,allowFocusRoot:!0}),ee?o.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},ee):null,oe&&o.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},m({id:c?"".concat(c,"-checkbox"):void 0,selected:Y,selectionMode:b,anySelected:Q,"aria-label":k,"aria-labelledby":c?me:void 0,canSelect:ne,compact:A,className:this._classNames.check,theme:R,isVisible:C===Uv.always,onRenderDetailsCheckbox:f,useFastIcons:O})),o.createElement(Zv,{indentWidth:T,role:"gridcell",count:0===F?-1:F}),s&&de,G&&o.createElement("span",{role:"presentation",className:kn(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},o.createElement(ue,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),columns:[G.column],item:s,itemIndex:l,columnStartIndex:(oe?1:0)+(F?1:0)+i.length,onRenderItemColumn:g,getCellValueKey:y})))},t.prototype.measureCell=function(e,t){var n=this.props.columns,r=d({},(void 0===n?hb:n)[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return o.createElement(Xy,d({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},t}(o.Component);function fb(e){var t,n=e.itemIndex,r=e.selection;return{isSelected:!!(null===r||void 0===r?void 0:r.isIndexSelected(n)),isSelectionModal:!!(null===(t=null===r||void 0===r?void 0:r.isModal)||void 0===t?void 0:t.call(r))}}var gb=vo(mb,(function(e){var t,n,r,o,i,a,s,l,c,u,p,h,m,f,g=e.theme,v=e.isSelected,y=e.canSelect,b=e.droppingClassName,C=e.isCheckVisible,S=e.checkboxCellClassName,x=e.compact,_=e.className,E=e.cellStyleProps,k=void 0===E?ny:E,w=e.enableUpdateAnimations,I=e.disabled,P=g.palette,T=g.fonts,D=P.neutralPrimary,A=P.white,R=P.neutralSecondary,N=P.neutralLighter,M=P.neutralLight,F=P.neutralDark,B=P.neutralQuaternaryAlt,O=g.semanticColors,L=O.focusBorder,H=O.linkHovered,V=ka(ty,g),z={defaultHeaderText:D,defaultMetaText:R,defaultBackground:A,defaultHoverHeaderText:F,defaultHoverMetaText:D,defaultHoverBackground:N,selectedHeaderText:F,selectedMetaText:D,selectedBackground:M,selectedHoverHeaderText:F,selectedHoverMetaText:D,selectedHoverBackground:B,focusHeaderText:F,focusMetaText:D,focusBackground:M,focusHoverBackground:B},U=[fa(g,{inset:-1,borderColor:L,outlineColor:A,highContrastStyle:{top:2,right:2,bottom:2,left:2}}),V.isSelected,{color:z.selectedMetaText,background:z.selectedBackground,borderBottom:"1px solid ".concat(A),selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(A)}},t[".".concat(V.cell," > .").concat(Uu.root)]={color:H,selectors:(n={},n[ca]={color:"HighlightText"},n)},t["&:hover"]={background:z.selectedHoverBackground,color:z.selectedHoverMetaText,selectors:(r={},r[ca]={background:"Highlight",selectors:(o={},o[".".concat(V.cell)]={color:"HighlightText"},o[".".concat(V.cell," > .").concat(Uu.root)]={forcedColorAdjust:"none",color:"HighlightText"},o)},r[".".concat(V.isRowHeader)]={color:z.selectedHoverHeaderText,selectors:(i={},i[ca]={color:"HighlightText"},i)},r)},t["&:focus"]={background:z.focusBackground,selectors:(a={},a[".".concat(V.cell)]={color:z.focusMetaText,selectors:(s={},s[ca]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},s)},a[".".concat(V.isRowHeader)]={color:z.focusHeaderText,selectors:(l={},l[ca]={color:"HighlightText"},l)},a[ca]={background:"Highlight"},a)},t[ca]=d(d({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:z.focusHoverBackground},t)}],W=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],G={minHeight:oy.compactRowHeight,border:0},j={minHeight:oy.compactRowHeight,paddingTop:oy.compactRowVerticalPadding,paddingBottom:oy.compactRowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px")},q=[fa(g,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:oy.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:oy.rowVerticalPadding,paddingBottom:oy.rowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px"),selectors:(c={"& > button":{maxWidth:"100%"}},c["[data-is-focusable='true']"]=fa(g,{inset:-1,borderColor:R,outlineColor:A}),c)},v&&{selectors:(u={},u[ca]=d({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)},x&&j,I&&{opacity:.5}];return{root:[V.root,Ka.fadeIn400,b,g.fonts.small,C&&V.isCheckVisible,fa(g,{borderColor:L,outlineColor:A}),{borderBottom:"1px solid ".concat(N),background:z.defaultBackground,color:z.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:oy.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(p={},p[".".concat(V.listCellFirstChild," &:before")]={display:"none"},p["&:hover"]={background:z.defaultHoverBackground,color:z.defaultHoverMetaText,selectors:(h={},h[".".concat(V.isRowHeader)]={color:z.defaultHoverHeaderText},h[".".concat(V.cell," > .").concat(Uu.root)]={color:H},h)},p["&:hover .".concat(V.check)]={opacity:1},p[".".concat(wr," &:focus .").concat(V.check)]={opacity:1},p[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},p)},v&&U,!y&&W,x&&G,_],cellUnpadded:{paddingRight:"".concat(k.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(k.cellExtraRightPadding+k.cellRightPadding,"px"),selectors:(m={},m["&.".concat(V.cellCheck)]={paddingRight:0},m)},cell:q,cellAnimation:w&&Xi.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[q,V.cellCheck,S,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:z.defaultHeaderText,fontSize:T.medium.fontSize},v&&{color:z.selectedHeaderText,fontWeight:ri.semibold,selectors:(f={},f[ca]={color:"HighlightText"},f)}],isMultiline:[q,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}}),void 0,{scope:"DetailsRow"});function vb(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=o.createRef(),n._registerResizeObserver=function(){var e=ke(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,r=n._root.current,o=ze(Ve(r)),i=ze(r);((i&&i.width)!==t.width||(o&&o.height)!==t.height)&&n._resizeAttempts<3&&i&&o?(n._resizeAttempts++,n.setState({viewport:{width:i.width,height:o.height}},(function(){n._updateViewport(e)}))):(n._resizeAttempts=0,e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate())},n._async=new we(n),n._events=new Ae(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return u(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,r=t.disableResizeObserver,o=t.skipViewportMeasures,i=ke(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),o||(!r&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),n?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.disableResizeObserver,o=n.skipViewportMeasures,i=ke(this._root.current);o!==t&&(o?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!r&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return o.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},o.createElement(e,d({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=ke(this._root.current);return e&&e.ResizeObserver},n}(Ad)}var yb=cn(),bb=100,Cb={tabIndex:0},Sb={},xb=function(e){var t=e.selection,n=e.ariaLabelForListHeader,r=e.ariaLabelForSelectAllCheckbox,i=e.ariaLabelForSelectionColumn,a=e.className,s=e.checkboxVisibility,l=e.compact,c=e.constrainMode,u=e.dragDropEvents,p=e.groups,h=e.groupProps,f=e.indentWidth,g=e.items,v=e.isPlaceholderData,y=e.isHeaderVisible,b=e.layoutMode,C=e.onItemInvoked,S=e.onItemContextMenu,x=e.onColumnHeaderClick,_=e.onColumnHeaderContextMenu,E=e.selectionMode,k=void 0===E?t.mode:E,w=e.selectionPreservedOnEmptyClick,I=e.selectionZoneProps,P=e.ariaLabel,T=e.ariaLabelForGrid,D=e.rowElementEventMap,A=e.shouldApplyApplicationRole,R=void 0!==A&&A,N=e.getKey,M=e.listProps,F=e.usePageCache,B=e.onShouldVirtualize,O=e.viewport,L=e.minimumPixelsForDrag,H=e.getGroupHeight,V=e.styles,z=e.theme,U=e.cellStyleProps,W=void 0===U?ny:U,G=e.onRenderCheckbox,j=e.useFastIcons,q=e.dragDropHelper,K=e.adjustedColumns,Y=e.isCollapsed,X=e.isSizing,Q=e.isSomeGroupExpanded,Z=e.version,J=e.rootRef,$=e.listRef,ee=e.focusZoneRef,te=e.columnReorderOptions,ne=e.groupedListRef,re=e.headerRef,oe=e.onGroupExpandStateChanged,ie=e.onColumnIsSizingChanged,ae=e.onRowDidMount,se=e.onRowWillUnmount,le=e.disableSelectionZone,ce=e.isSelectedOnFocus,ue=void 0===ce||ce,de=e.onColumnResized,pe=e.onColumnAutoResized,he=e.onToggleCollapse,me=e.onActiveRowChanged,fe=e.onBlur,ge=e.rowElementEventMap,ve=e.onRenderMissingItem,ye=e.onRenderItemColumn,be=e.onRenderField,Ce=e.getCellValueKey,Se=e.getRowAriaLabel,xe=e.getRowAriaDescribedBy,_e=e.checkButtonAriaLabel,Ee=e.checkButtonGroupAriaLabel,ke=e.checkboxCellClassName,we=e.useReducedRowRenderer,Ie=e.enableUpdateAnimations,Pe=e.enterModalSelectionOnTouch,Te=e.onRenderDefaultRow,De=e.selectionZoneRef,Ae=e.focusZoneProps,Re="grid",Ne=e.role?e.role:Re,Me=zn("row"),Fe=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(p),Be=function(e){return o.useMemo((function(){var t={};if(e)for(var n=1,r=1,o=0,i=e;o<i.length;o++){var a=i[o];t[a.key]={numOfGroupHeadersBeforeItem:r,totalRowCount:n},r++,n+=a.count+1}return t}),[e])}(p),Oe=o.useMemo((function(){return d({renderedWindowsAhead:X?0:2,renderedWindowsBehind:X?0:2,getKey:N,version:Z},M)}),[X,N,Z,M]),Le=Yy.none;if(k===ao.single&&(Le=Yy.hidden),k===ao.multiple){var He=h&&h.headerProps&&h.headerProps.isCollapsedGroupSelectVisible;void 0===He&&(He=!0),Le=He||!p||Q?Yy.visible:Yy.hidden}s===Uv.hidden&&(Le=Yy.none);var Ve=o.useCallback((function(e){return o.createElement(cb,d({},e))}),[]),ze=o.useCallback((function(){return null}),[]),Ue=e.onRenderDetailsHeader,We=o.useMemo((function(){return Ue?io(Ue,Ve):Ve}),[Ue,Ve]),Ge=e.onRenderDetailsFooter,je=o.useMemo((function(){return Ge?io(Ge,ze):ze}),[Ge,ze]),qe=o.useMemo((function(){return{columns:K,groupNestingDepth:Fe,selection:t,selectionMode:k,viewport:O,checkboxVisibility:s,indentWidth:f,cellStyleProps:W}}),[K,Fe,t,k,O,s,f,W]),Ke=te&&te.onDragEnd,Ye=o.useCallback((function(e,t){var n=e.dropLocation,r=Vv.outside;if(Ke){if(n&&n!==Vv.header)r=n;else if(J.current){var o=J.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=Vv.surface)}Ke(r)}}),[Ke,J]),Xe=o.useMemo((function(){if(te)return d(d({},te),{onColumnDragEnd:Ye})}),[te,Ye]),Qe=(y?1:0)+(e.onRenderDetailsFooter?1:0)+function(e){var t=0;if(e)for(var n=m([],e,!0),r=void 0;n&&n.length>0;)++t,(r=n.pop())&&r.children&&n.push.apply(n,r.children);return t}(p)+(g?g.length:0),Ze=(Le!==Yy.none?1:0)+(K?K.length:0)+(p?1:0),Je=o.useMemo((function(){return yb(V,{theme:z,compact:l,isFixed:b===zv.fixedColumns,isHorizontalConstrained:c===Hv.horizontalConstrained,className:a})}),[V,z,l,b,c,a]),$e=h&&h.onRenderFooter,et=o.useMemo((function(){return $e?function(e,n){return $e(d(d({},e),{columns:K,groupNestingDepth:Fe,indentWidth:f,selection:t,selectionMode:k,viewport:O,checkboxVisibility:s,cellStyleProps:W}),n)}:void 0}),[$e,K,Fe,f,t,k,O,s,W]),tt=h&&h.onRenderHeader,nt=o.useMemo((function(){return tt?function(e,n){var r,o,i=e.groupIndex,a=void 0!==i?null===(o=null===(r=e.groups)||void 0===r?void 0:r[i])||void 0===o?void 0:o.key:void 0,l=void 0!==a&&Be[a]?Be[a].totalRowCount:0;return tt(d(d({},e),{columns:K,groupNestingDepth:Fe,indentWidth:f,selection:t,selectionMode:s!==Uv.hidden?k:ao.none,viewport:O,checkboxVisibility:s,cellStyleProps:W,ariaColSpan:K.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?l+(y?1:0):void 0}),n)}:function(e,t){var n,r,o=e.groupIndex,i=void 0!==o?null===(r=null===(n=e.groups)||void 0===n?void 0:n[o])||void 0===r?void 0:r.key:void 0,a=void 0!==i&&Be[i]?Be[i].totalRowCount:0;return t(d(d({},e),{ariaColSpan:K.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?a+(y?1:0):void 0}))}}),[tt,K,Fe,f,y,t,k,O,s,W,Be]),rt=o.useMemo((function(){var e;return d(d({},h),{role:Ne===Re?"rowgroup":"presentation",onRenderFooter:et,onRenderHeader:nt,headerProps:d(d({},null===h||void 0===h?void 0:h.headerProps),{selectAllButtonProps:d({"aria-label":Ee},null===(e=null===h||void 0===h?void 0:h.headerProps)||void 0===e?void 0:e.selectAllButtonProps)})})}),[h,et,nt,Ee,Ne]),ot=il((function(){return yn((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),it=h&&h.collapseAllVisibility,at=o.useMemo((function(){return ot(K)}),[K,ot]),st=o.useCallback((function(n,r,o,i){var a=e.onRenderRow?io(e.onRenderRow,Te):Te,c=i?i.key:void 0,d=c&&Be[c]?Be[c].numOfGroupHeadersBeforeItem:0,p=Ne===Re?void 0:"presentation",h=y||o>0?Sb:Cb,m={item:r,itemIndex:o,flatIndexOffset:(y?2:1)+d,compact:l,columns:K,groupNestingDepth:n,id:"".concat(Me,"-").concat(o),selectionMode:k,selection:t,onDidMount:ae,onWillUnmount:se,onRenderItemColumn:ye,onRenderField:be,getCellValueKey:Ce,eventsToRegister:ge,dragDropEvents:u,dragDropHelper:q,viewport:O,checkboxVisibility:s,collapseAllVisibility:it,getRowAriaLabel:Se,getRowAriaDescribedBy:xe,checkButtonAriaLabel:_e,checkboxCellClassName:ke,useReducedRowRenderer:we,indentWidth:f,cellStyleProps:W,onRenderDetailsCheckbox:G,enableUpdateAnimations:Ie,rowWidth:at,useFastIcons:j,role:p,isGridRow:!0,focusZoneProps:h};return r?a(m):ve?ve(o,m):null}),[l,K,k,t,Me,ae,se,ye,be,Ce,ge,u,q,O,s,it,Se,xe,y,_e,ke,we,f,W,G,Ie,j,Te,ve,e.onRenderRow,at,Ne,Be]),lt=o.useCallback((function(e){return function(t,n){return st(e,t,n)}}),[st]),ct=o.useCallback((function(e){return e.which===Lt(vt,z)}),[z]),ut=d(d({},Ae),{componentRef:Ae&&Ae.componentRef?Ae.componentRef:ee,className:Ae&&Ae.className?kn(Je.focusZone,Ae.className):Je.focusZone,direction:Ae?Ae.direction:Cu.vertical,shouldEnterInnerZone:Ae&&Ae.shouldEnterInnerZone?Ae.shouldEnterInnerZone:ct,onActiveElementChanged:Ae&&Ae.onActiveElementChanged?Ae.onActiveElementChanged:me,shouldRaiseClicksOnEnter:!1,onBlur:Ae&&Ae.onBlur?Ae.onBlur:fe}),dt=p&&(null===h||void 0===h?void 0:h.groupedListAs)?_n(h.groupedListAs,Ry):Ry,pt=p?o.createElement(dt,{focusZoneProps:ut,componentRef:ne,groups:p,groupProps:rt,items:g,onRenderCell:st,role:"presentation",selection:t,selectionMode:s!==Uv.hidden?k:ao.none,dragDropEvents:u,dragDropHelper:q,eventsToRegister:D,listProps:Oe,onGroupExpandStateChanged:oe,usePageCache:F,onShouldVirtualize:B,getGroupHeight:H,compact:l}):o.createElement(Bu,d({},ut),o.createElement(Cv,d({ref:$,role:"presentation",items:g,onRenderCell:lt(0),usePageCache:F,onShouldVirtualize:B},Oe))),ht=o.useCallback((function(e){e.which===yt&&ee.current&&ee.current.focus()&&(ue&&0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,ee,ue]),mt=o.useCallback((function(e){e.which!==gt||e.altKey||re.current&&re.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[re]);return o.createElement("div",d({ref:J,className:Je.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},R?{role:"application"}:{}),o.createElement(Br,null),o.createElement("div",{role:Ne,"aria-label":T||P,"aria-rowcount":v?0:Qe,"aria-colcount":Ze,"aria-busy":v},o.createElement("div",{onKeyDown:ht,role:"presentation",className:Je.headerWrapper},y&&We({componentRef:re,selectionMode:k,layoutMode:b,selection:t,columns:K,onColumnClick:x,onColumnContextMenu:_,onColumnResized:de,onColumnIsSizingChanged:ie,onColumnAutoResized:pe,groupNestingDepth:Fe,isAllCollapsed:Y,onToggleCollapseAll:he,ariaLabel:n,ariaLabelForSelectAllCheckbox:r,ariaLabelForSelectionColumn:i,selectAllVisibility:Le,collapseAllVisibility:h&&h.collapseAllVisibility,viewport:O,columnReorderProps:Xe,minimumPixelsForDrag:L,cellStyleProps:W,checkboxVisibility:s,indentWidth:f,onRenderDetailsCheckbox:G,rowWidth:ot(K),useFastIcons:j},We)),o.createElement("div",{onKeyDown:mt,role:"presentation",className:Je.contentWrapper},le?pt:o.createElement(Yv,d({ref:De,selection:t,selectionPreservedOnEmptyClick:w,selectionMode:k,isSelectedOnFocus:ue,selectionClearedOnEscapePress:ue,toggleWithoutModifierPressed:!ue,onItemInvoked:C,onItemContextMenu:S,enterModalOnTouch:Pe},I||{}),pt)),je(d({},qe))))},_b=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._header=o.createRef(),n._groupedList=o.createRef(),n._list=o.createRef(),n._focusZone=o.createRef(),n._selectionZone=o.createRef(),n._onRenderRow=function(e,t){return o.createElement(gb,d({},e))},n._getDerivedStateFromProps=function(e,t){var r=n.props,o=r.checkboxVisibility,i=r.items,a=r.setKey,s=r.selectionMode,l=void 0===s?n._selection.mode:s,c=r.columns,u=r.viewport,p=r.compact,h=r.dragDropEvents,m=(n.props.groupProps||{}).isAllGroupsCollapsed,f=void 0===m?void 0:m,g=e.viewport&&e.viewport.width||0,v=u&&u.width||0,y=e.setKey!==a||void 0===e.setKey,b=!1;e.layoutMode!==n.props.layoutMode&&(b=!0);var C=t;return y&&(n._initialFocusedIndex=e.initialFocusedIndex,C=d(d({},C),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===i||n._selection.setItems(e.items,y),e.checkboxVisibility===o&&e.columns===c&&g===v&&e.compact===p||(b=!0),C=d(d({},C),n._adjustColumns(e,C,!0)),e.selectionMode!==l&&(b=!0),void 0===f&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(C=d(d({},C),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==h&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new Qy({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,b=!0),b&&(C=d(d({},C),{version:{}})),C},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,r=t.item,o=t.itemIndex,i=n._getItemKey(r,o);n._activeRows[i]=e,n._setFocusToRowIfPending(e);var a=n.props.onRowDidMount;a&&a(r,o)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,r=e.props,o=r.item,i=r.itemIndex,a=n._getItemKey(o,i);delete n._activeRows[a],t&&t(o,i)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,r){var o=Math.max(e.minWidth||bb,t);n.props.onColumnResize&&n.props.onColumnResize(e,o,r),n._rememberCalculatedWidth(e,o),n.setState(d(d({},n._adjustColumns(n.props,n.state,!0,r)),{version:{}}))},n._onColumnAutoResized=function(e,t){var r=0,o=0,i=Object.keys(n._activeRows).length;for(var a in n._activeRows){if(n._activeRows.hasOwnProperty(a))n._activeRows[a].measureCell(t,(function(a){r=Math.max(r,a),++o===i&&n._onColumnResized(e,r,t)}))}},n._onActiveRowChanged=function(e,t){var r=n.props,o=r.items,i=r.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(o[a],a,t),n.setState({focusedItemIndex:a}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},br(n),n._async=new we(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},Ke("DetailsList",t,{selection:"getKey"}),n._selection=t.selection||new co({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new Qy({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return u(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var i=this._getItemKey(o,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.updateColumn=function(e,t){var n,r,o=this.props,i=o.columns,a=void 0===i?[]:i,s=o.selectionMode,l=o.checkboxVisibility,c=o.columnReorderOptions,u=t.width,d=t.newColumnIndex,p=a.findIndex((function(t){return t.key===e.key}));if(u&&this._onColumnResized(e,u,p),void 0!==d&&c){var h=s===ao.none||l===Uv.hidden,m=(l!==Uv.hidden?2:1)+p,f=h?m-1:m-2,g=h?d-1:d-2,v=null!==(n=c.frozenColumnCountFromStart)&&void 0!==n?n:0,y=null!==(r=c.frozenColumnCountFromEnd)&&void 0!==r?r:0;if(g>=v&&g<a.length-y)if(c.onColumnDrop){var b={draggedIndex:f,targetIndex:g};c.onColumnDrop(b)}else c.handleColumnReorder&&c.handleColumnReorder(f,g)}},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var n=this._getItemKey(i,this._initialFocusedIndex);(r=this._activeRows[n])&&this._setFocusToRowIfPending(r)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!zt(this._root.current,document.activeElement,!1)){var r,o=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[o];n=this._getItemKey(i,this.state.focusedItemIndex);(r=this._activeRows[n])?this._setFocusToRow(r):this._initialFocusedIndex=o}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return o.createElement(xb,d({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,n,r){var o=this._getAdjustedColumns(e,t,n,r),i=this.props.viewport,a=i&&i.width?i.width:0;return d(d({},t),{adjustedColumns:o,lastWidth:a})},t.prototype._getAdjustedColumns=function(e,t,n,r){var o,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,p=this.props?this.props.columns:[],h=t?t.lastWidth:-1,m=t?t.lastSelectionMode:void 0;return n||h!==u||m!==l||p&&d!==p?(d=d||function(e,t,n,r,o,i,a,s){var l=[];if(e&&e.length){var c=e[0];for(var u in c)c.hasOwnProperty(u)&&l.push({key:u,name:u,fieldName:u,minWidth:bb,maxWidth:300,isCollapsible:!!l.length,isMultiline:void 0!==a&&a,isSorted:r===u,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:null!==s&&void 0!==s?s:Lv.clickable,isResizable:t,onColumnClick:n,isGrouped:i===u})}return l}(a,!0),s===zv.fixedColumns?(o=this._getFixedColumns(d,u,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(o=this._getJustifiedColumns(d,u,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),o):d||[]},t.prototype._getFixedColumns=function(e,t,n){var r=this,o=this.props,i=o.selectionMode,a=void 0===i?this._selection.mode:i,s=o.checkboxVisibility,l=o.flexMargin,c=o.skipViewportMeasures,u=t-(l||0),p=0;e.forEach((function(e){c||!e.flexGrow?u-=e.maxWidth||e.minWidth||bb:(u-=e.minWidth||bb,p+=e.flexGrow),u-=Eb(e,n,!0)}));var h=a!==ao.none&&s!==Uv.hidden?48:0,m=36*this._getGroupNestingDepth(),f=(u-=h+m)/p;return c||e.forEach((function(e){var t=d(d({},e),r._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var n=t.flexGrow*f+t.minWidth,o=n-t.maxWidth;o>0&&(u+=o,p-=o/(n-t.minWidth)*t.flexGrow)}})),f=u>0?u/p:0,e.map((function(e){var t=d(d({},e),r._columnOverrides[e.key]);return!c&&t.flexGrow&&u<=0||t.calculatedWidth||(!c&&t.flexGrow?(t.calculatedWidth=t.minWidth+t.flexGrow*f,t.calculatedWidth=Math.min(t.calculatedWidth,t.maxWidth||Number.MAX_VALUE)):t.calculatedWidth=t.maxWidth||t.minWidth||bb),t}))},t.prototype._getJustifiedColumns=function(e,t,n){var r=this,o=n.selectionMode,i=void 0===o?this._selection.mode:o,a=n.checkboxVisibility,s=n.skipViewportMeasures,l=i!==ao.none&&a!==Uv.hidden?48:0,c=36*this._getGroupNestingDepth(),u=0,p=0,h=t-(l+c),m=e.map((function(e,t){var o=d(d({},e),{calculatedWidth:e.minWidth||bb}),i=d(d({},o),r._columnOverrides[e.key]);return o.isCollapsible||o.isCollapsable||(p+=Eb(o,n)),u+=Eb(i,n),i}));if(s)return m;for(var f=m.length-1;f>=0&&u>h;){var g=(C=m[f]).minWidth||bb,v=u-h;if(C.calculatedWidth-g>=v||!C.isCollapsible&&!C.isCollapsable){var y=C.calculatedWidth;p<h&&(C.calculatedWidth=Math.max(C.calculatedWidth-v,g)),u-=y-C.calculatedWidth}else u-=Eb(C,n),m.splice(f,1);f--}for(var b=0;b<m.length&&u<h;b++){var C=m[b],S=b===m.length-1,x=this._columnOverrides[C.key];if(!x||!x.calculatedWidth||S){var _=h-u,E=void 0;if(S)E=_;else{var k=C.maxWidth;g=C.minWidth||k||bb;E=k?Math.min(_,k-g):_}C.calculatedWidth=C.calculatedWidth+E,u+=E}}return m},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},t.defaultProps={layoutMode:zv.justified,selectionMode:ao.multiple,constrainMode:Hv.horizontalConstrained,checkboxVisibility:Uv.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t=h([vb],t)}(o.Component);function Eb(e,t,n){var r=t.cellStyleProps,o=void 0===r?ny:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var kb,wb={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},Ib=vo(_b,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=r.semanticColors,c=ka(wb,r);return{root:[c.root,r.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& .".concat(c.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n[".".concat(c.listCell)]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(kb||(kb={}));var Pb=qi,Tb={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Db=cn(),Ab=function(e){function t(t){var n=e.call(this,t)||this;br(n);var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n}return u(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&function(){var e=Re();e&&e.body&&!Ne&&(e.body.classList.add(Me),e.body.addEventListener("touchmove",Le,{passive:!1,capture:!1})),Ne++}()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(Ne>0){var e=Re();e&&e.body&&1===Ne&&(e.body.classList.remove(Me),e.body.removeEventListener("touchmove",Le)),Ne--}}()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,i=e.styles,a=mr(this.props,hr),s=Db(i,{theme:r,className:n,isDark:t});return o.createElement("div",d({},a,{className:s.root}))},t}(o.Component),Rb={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},Nb=vo(Ab,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=ka(Rb,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[ca]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),Mb=yn((function(e,t){return{root:me(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),Fb={start:"touchstart",move:"touchmove",stop:"touchend"},Bb={start:"mousedown",move:"mousemove",stop:"mouseup"},Ob=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=Bb,n._events=[],n._onMouseDown=function(e){var t=o.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=Bb,n._onDragStart(e)},n._onMouseUp=function(e){var t=o.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=Bb,n._onDragStop(e)},n._onTouchStart=function(e){var t=o.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=Fb,n._onDragStart(e)},n._onTouchEnd=function(e){var t=o.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=Fb,n._onDragStop(e)},n._onDragStart=function(e){if("number"===typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t}),n._events=[on(document.body,n._currentEventType.move,n._onDrag,!0),on(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return u(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=o.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,i=r.position,a=r.isDragging,s=i.x,l=i.y;return n&&!a&&(s=n.x,l=n.y),o.cloneElement(e,{style:d(d({},t.style),{transform:"translate(".concat(s,"px, ").concat(l,"px)")}),className:Mb(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(o.Component),Lb={x:0,y:0},Hb={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},Vb=cn(),zb=o.forwardRef((function(e,t){var n,r,i,a,s,l=Co(Hb,e),c=l.allowTouchBodyScroll,u=l.className,p=l.children,h=l.containerClassName,m=l.scrollableContentClassName,f=l.elementToFocusOnDismiss,g=l.firstFocusableSelector,v=l.focusTrapZoneProps,y=l.forceFocusInsideTrap,b=l.disableRestoreFocus,C=void 0===b?l.ignoreExternalFocusing:b,S=l.isBlocking,x=l.isAlert,_=l.isClickableOutsideFocusTrap,E=l.isDarkOverlay,k=l.onDismiss,w=l.layerProps,I=l.overlay,P=l.isOpen,T=l.titleAriaId,D=l.styles,A=l.subtitleAriaId,R=l.theme,N=l.topOffsetFixed,M=l.responsiveMode,F=l.onLayerDidMount,B=l.isModeless,O=l.dragOptions,L=l.onDismissed,H=l.enableAriaHiddenSiblings,V=l.popupProps,z=o.useRef(null),U=o.useRef(null),W=ul(U,null===v||void 0===v?void 0:v.componentRef),G=o.useRef(null),j=ul(z,t),q=Hd(j),K=cl("ModalFocusTrapZone",null===v||void 0===v?void 0:v.id),Y=gl(),X=ml(),Q=X.setTimeout,Z=X.clearTimeout,J=o.useState(P),$=J[0],ee=J[1],te=o.useState(P),ne=te[0],re=te[1],oe=o.useState(Lb),ie=oe[0],ae=oe[1],se=o.useState(),le=se[0],ce=se[1],ue=al(!1),de=ue[0],pe=ue[1],he=pe.toggle,me=pe.setFalse,fe=il((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:c,scrollableContent:null,lastSetCoordinates:Lb,events:new Ae({})}})),ge=(O||{}).keepInBounds,ve=null!==x&&void 0!==x?x:S&&!B,ye=void 0===w?"":w.className,be=Vb(D,{theme:R,className:u,containerClassName:h,scrollableContentClassName:m,isOpen:P,isVisible:ne,hasBeenOpened:fe.hasBeenOpened,modalRectangleTop:le,topOffsetFixed:N,isModeless:B,layerClassName:ye,windowInnerHeight:null===Y||void 0===Y?void 0:Y.innerHeight,isDefaultDragHandle:O&&!O.dragHandleSelector}),Ce=d(d({eventBubblingEnabled:!1},w),{onLayerDidMount:w&&w.onLayerDidMount?w.onLayerDidMount:F,insertFirst:(null===w||void 0===w?void 0:w.insertFirst)||B,className:be.layer}),Se=o.useCallback((function(e){e?fe.allowTouchBodyScroll?Oe(e,fe.events):Be(e,fe.events):fe.events.off(fe.scrollableContent),fe.scrollableContent=e}),[fe]),xe=function(){var e=G.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(N&&ce(t.top),ge&&(fe.minPosition={x:-t.left,y:-t.top},fe.maxPosition={x:t.left,y:t.top}))},_e=o.useCallback((function(e,t){var n=fe.minPosition,r=fe.maxPosition;return ge&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[ge,fe]),Ee=function(){var e;fe.lastSetCoordinates=Lb,me(),fe.isInKeyboardMoveMode=!1,ee(!1),ae(Lb),null===(e=fe.disposeOnKeyUp)||void 0===e||e.call(fe),null===L||void 0===L||L()},ke=o.useCallback((function(){me(),fe.isInKeyboardMoveMode=!1}),[fe,me]),we=o.useCallback((function(e,t){ae((function(e){return{x:_e("x",e.x+t.delta.x),y:_e("y",e.y+t.delta.y)}}))}),[_e]),Ie=o.useCallback((function(){U.current&&U.current.focus()}),[]);o.useEffect((function(){Z(fe.onModalCloseTimer),P&&(requestAnimationFrame((function(){return Q(xe,0)})),ee(!0),O&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===ut&&zt(fe.scrollableContent,e.target)&&(he(),e.preventDefault(),e.stopPropagation())};fe.disposeOnKeyUp||(fe.events.on(Y,"keyup",e,!0),fe.disposeOnKeyUp=function(){fe.events.off(Y,"keyup",e,!0),fe.disposeOnKeyUp=void 0})}(),fe.hasBeenOpened=!0,re(!0)),!P&&$&&(fe.onModalCloseTimer=Q(Ee,1e3*parseFloat(Pb)),re(!1))}),[$,P]),bl((function(){fe.events.dispose()})),function(e,t){o.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(l,U),function(e){Sl({name:"Modal",props:e,deprecations:{onLayerDidMount:"layerProps.onLayerDidMount"}})}(l);var Pe=o.createElement(ac,d({},v,{id:K,ref:G,componentRef:W,className:kn(be.main,null===v||void 0===v?void 0:v.className),elementToFocusOnDismiss:null!==(n=null===v||void 0===v?void 0:v.elementToFocusOnDismiss)&&void 0!==n?n:f,isClickableOutsideFocusTrap:null!==(r=null===v||void 0===v?void 0:v.isClickableOutsideFocusTrap)&&void 0!==r?r:B||_||!S,disableRestoreFocus:null!==(i=null===v||void 0===v?void 0:v.disableRestoreFocus)&&void 0!==i?i:C,forceFocusInsideTrap:(null!==(a=null===v||void 0===v?void 0:v.forceFocusInsideTrap)&&void 0!==a?a:y)&&!B,firstFocusableSelector:(null===v||void 0===v?void 0:v.firstFocusableSelector)||g,focusPreviouslyFocusedInnerElement:null===(s=null===v||void 0===v?void 0:v.focusPreviouslyFocusedInnerElement)||void 0===s||s,onBlur:fe.isInKeyboardMoveMode?function(e){var t,n;null===(t=null===v||void 0===v?void 0:v.onBlur)||void 0===t||t.call(v,e),fe.lastSetCoordinates=Lb,fe.isInKeyboardMoveMode=!1,null===(n=fe.disposeOnKeyDown)||void 0===n||n.call(fe)}:void 0}),O&&fe.isInKeyboardMoveMode&&o.createElement("div",{className:be.keyboardMoveIconContainer},O.keyboardMoveIconProps?o.createElement(Rc,d({},O.keyboardMoveIconProps)):o.createElement(Rc,{iconName:"move",className:be.keyboardMoveIcon})),o.createElement("div",{ref:Se,className:be.scrollableContent,"data-is-scrollable":!0},O&&de&&o.createElement(O.menu,{items:[{key:"move",text:O.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===ut)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===ct;if(de&&t&&me(),!fe.isInKeyboardMoveMode||e.keyCode!==ct&&e.keyCode!==it||(fe.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),fe.isInKeyboardMoveMode){var n=!0,r=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case ct:ae(fe.lastSetCoordinates);case it:fe.lastSetCoordinates=Lb;break;case gt:ae((function(e){return{x:e.x,y:_e("y",e.y-r)}}));break;case yt:ae((function(e){return{x:e.x,y:_e("y",e.y+r)}}));break;case ft:ae((function(e){return{x:_e("x",e.x-r),y:e.y}}));break;case vt:ae((function(e){return{x:_e("x",e.x+r),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};fe.lastSetCoordinates=ie,me(),fe.isInKeyboardMoveMode=!0,fe.events.on(Y,"keydown",e,!0),fe.disposeOnKeyDown=function(){fe.events.off(Y,"keydown",e,!0),fe.disposeOnKeyDown=void 0}}},{key:"close",text:O.closeMenuItemText,onClick:Ee}],onDismiss:me,alignTargetEdge:!0,coverTarget:!0,directionalHint:ls,directionalHintFixed:!0,shouldFocusOnMount:!0,target:fe.scrollableContent}),p));return $&&q>=(M||Pd.small)&&o.createElement(rc,d({ref:j},Ce),o.createElement(kl,d({role:ve?"alertdialog":"dialog",ariaLabelledBy:T,ariaDescribedBy:A,onDismiss:k,shouldRestoreFocus:!C,enableAriaHiddenSiblings:H,"aria-modal":!B},V),o.createElement("div",{className:be.root,role:B?void 0:"document"},!B&&o.createElement(Nb,d({"aria-hidden":!0,isDarkThemed:E,onClick:S?void 0:k,allowTouchBodyScroll:c},I)),O?o.createElement(Ob,{handleSelector:O.dragHandleSelector||"#".concat(K),preventDragSelector:"button",onStart:ke,onDragChange:we,onStop:Ie,position:ie},Pe):Pe)))||null}));zb.displayName="Modal";var Ub=vo(zb,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,u=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,h=e.isDefaultDragHandle,m=e.windowInnerHeight,f=c.palette,g=c.effects,v=c.fonts,y=ka(Tb,c);return{root:[y.root,v.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(Pb)},u&&"number"===typeof l&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[y.main,{boxShadow:g.elevation64,borderRadius:g.roundedCorner2,backgroundColor:f.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?la.Layer:void 0},d&&{pointerEvents:"auto"},u&&"number"===typeof l&&s&&{top:l},h&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:m},t)},o],layer:d&&[p,y.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:v.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Ub.displayName="Modal";var Wb,Gb=cn(),jb=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=Gb(n,{theme:r,className:t}),o.createElement("div",{className:this._classNames.actions},o.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return o.Children.map(this.props.children,(function(t){return t?o.createElement("span",{className:e._classNames.action},t):null}))},t}(o.Component),qb={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Kb=vo(jb,(function(e){var t=e.className,n=e.theme,r=ka(qb,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}}),void 0,{scope:"DialogFooter"}),Yb=cn(),Xb=o.createElement(Kb,null).type,Qb=function(e){function t(t){var n=e.call(this,t)||this;return br(n),Ye("DialogContent",t,{titleId:"titleProps.id"}),n}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,i=t.closeButtonAriaLabel,a=t.onDismiss,s=t.subTextId,l=t.subText,c=t.titleProps,u=void 0===c?{}:c,p=t.titleId,h=t.title,m=t.type,f=t.styles,g=t.theme,v=t.draggableHeaderClassName,y=Yb(f,{theme:g,className:r,isLargeHeader:m===kb.largeHeader,isClose:m===kb.close,draggableHeaderClassName:v}),b=this._groupChildren();return l&&(e=o.createElement("p",{className:y.subText,id:s},l)),o.createElement("div",{className:y.content},o.createElement("div",{className:y.header},o.createElement("div",d({id:p,role:"heading","aria-level":1},u,{className:kn(y.title,u.className)}),h),o.createElement("div",{className:y.topButton},this.props.topButtonsProps.map((function(e,t){return o.createElement(Pp,d({key:e.uniqueId||t},e))})),(m===kb.close||n&&m!==kb.largeHeader)&&o.createElement(Pp,{className:y.button,iconProps:{iconName:"Cancel"},ariaLabel:i,onClick:a}))),o.createElement("div",{className:y.inner},o.createElement("div",{className:y.innerContent},e,b.contents),b.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return o.Children.map(this.props.children,(function(t){"object"===typeof t&&null!==t&&t.type===Xb?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=h([Bd],t)}(o.Component),Zb={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},Jb=vo(Qb,(function(e){var t,n,r,o=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,c=e.isMultiline,u=e.draggableHeaderClassName,d=i.palette,p=i.fonts,h=i.effects,m=i.semanticColors,f=ka(Zb,i);return{content:[a&&[f.contentLgHeader,{borderTop:"4px solid ".concat(d.themePrimary)}],s&&f.close,{flexGrow:1,overflowY:"hidden"},o],subText:[f.subText,p.medium,{margin:"0 0 24px 0",color:m.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:ri.regular}],header:[f.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&f.close,u&&[u,{cursor:"move"}]],button:[f.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:m.buttonText,fontSize:oi.medium}}}],inner:[f.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: ".concat(320,"px) and (max-width: ").concat(ha,"px)")]={padding:"0 16px 16px"},t)}],innerContent:[f.content,{position:"relative",width:"100%"}],title:[f.title,p.xLarge,{color:m.bodyText,margin:"0",minHeight:p.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: ".concat(320,"px) and (max-width: ").concat(ha,"px)")]={padding:"16px 46px 16px 16px"},n)},a&&{color:m.menuHeader},c&&{fontSize:p.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:m.buttonText},".ms-Dialog-button:hover":{color:m.buttonTextHovered,borderRadius:h.roundedCorner2}},r["@media (min-width: ".concat(320,"px) and (max-width: ").concat(ha,"px)")]={padding:"15px 8px 0 0"},r)}]}}),void 0,{scope:"DialogContent"}),$b=cn(),eC={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},tC={type:kb.normal,className:"",topButtonsProps:[]},nC=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,r=e.modalProps,o=e.dialogContentProps,i=e.subText,a=r&&r.subtitleAriaId||t;return a||(a=(o&&o.subText||i)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,r=e.modalProps,o=e.dialogContentProps,i=e.title,a=r&&r.titleAriaId||t;return a||(a=(o&&o.title||i)&&n._defaultTitleTextId),a},n._id=zn("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",Ye("Dialog",t,{isOpen:"hidden",type:"dialogContentProps.type",subText:"dialogContentProps.subText",contentClassName:"dialogContentProps.className",topButtonsProps:"dialogContentProps.topButtonsProps",className:"modalProps.className",isDarkOverlay:"modalProps.isDarkOverlay",isBlocking:"modalProps.isBlocking",containerClassName:"modalProps.containerClassName",onDismissed:"modalProps.onDismissed",onLayerDidMount:"modalProps.layerProps.onLayerDidMount",ariaDescribedById:"modalProps.subtitleAriaId",ariaLabelledById:"modalProps.titleAriaId"}),n}return u(t,e),t.prototype.render=function(){var e,t,n,r,i,a=this.props,s=a.className,l=a.containerClassName,c=a.contentClassName,u=a.elementToFocusOnDismiss,p=a.firstFocusableSelector,h=a.forceFocusInsideTrap,m=a.styles,f=a.hidden,g=a.disableRestoreFocus,v=void 0===g?a.ignoreExternalFocusing:g,y=a.isBlocking,b=a.isClickableOutsideFocusTrap,C=a.isDarkOverlay,S=a.isOpen,x=void 0===S?!f:S,_=a.onDismiss,E=a.onDismissed,k=a.onLayerDidMount,w=a.responsiveMode,I=a.subText,P=a.theme,T=a.title,D=a.topButtonsProps,A=a.type,R=a.minWidth,N=a.maxWidth,M=a.modalProps,F=d({onLayerDidMount:k},null===M||void 0===M?void 0:M.layerProps);(null===M||void 0===M?void 0:M.dragOptions)&&!(null===(e=M.dragOptions)||void 0===e?void 0:e.dragHandleSelector)&&(r="ms-Dialog-draggable-header",(i=d({},M.dragOptions)).dragHandleSelector=".".concat(r));var B=d(d(d(d({},eC),{elementToFocusOnDismiss:u,firstFocusableSelector:p,forceFocusInsideTrap:h,disableRestoreFocus:v,isClickableOutsideFocusTrap:b,responsiveMode:w,className:s,containerClassName:l,isBlocking:y,isDarkOverlay:C,onDismissed:E}),M),{dragOptions:i,layerProps:F,isOpen:x}),O=d(d(d({className:c,subText:I,title:T,topButtonsProps:D,type:A},tC),a.dialogContentProps),{draggableHeaderClassName:r,titleProps:d({id:(null===(t=a.dialogContentProps)||void 0===t?void 0:t.titleId)||this._defaultTitleTextId},null===(n=a.dialogContentProps)||void 0===n?void 0:n.titleProps)}),L=$b(m,{theme:P,className:B.className,containerClassName:B.containerClassName,hidden:f,dialogDefaultMinWidth:R,dialogDefaultMaxWidth:N});return o.createElement(Ub,d({},B,{className:L.root,containerClassName:L.main,onDismiss:_||B.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),o.createElement(Jb,d({subTextId:this._defaultSubTextId,showCloseButton:B.isBlocking,onDismiss:_},O),a.children))},t.defaultProps={hidden:!0},t=h([Bd],t)}(o.Component),rC={root:"ms-Dialog"},oC=vo(nC,(function(e){var t,n=e.className,r=e.containerClassName,o=e.dialogDefaultMinWidth,i=void 0===o?"288px":o,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,c=e.theme;return{root:[ka(rC,c).root,c.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: ".concat(da,"px)")]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},r]}}),void 0,{scope:"Dialog"});oC.displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(Wb||(Wb={}));var iC,aC=cn(),sC=o.createContext({}),lC=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=o.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){e.which!==it&&e.which!==ut||n._onAction(e)},n._onAction=function(e){var t=n.props,r=t.onClick,o=t.onClickHref,i=t.onClickTarget;r?r(e):!r&&o&&(i?window.open(o,i,"noreferrer noopener nofollow"):window.location.href=o,e.preventDefault(),e.stopPropagation())},br(n),Ye("DocumentCard",t,{accentColor:void 0}),n}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,r=t.onClickHref,i=t.children,a=t.type,s=t.accentColor,l=t.styles,c=t.theme,u=t.className,p=mr(this.props,hr,["className","onClick","type","role"]),h=!(!n&&!r);this._classNames=aC(l,{theme:c,className:u,actionable:h,compact:a===Wb.compact}),a===Wb.compact&&s&&(e={borderBottomColor:s});var m={role:this.props.role||(h?n?"button":"link":void 0),tabIndex:h?0:void 0};return o.createElement("div",d({ref:this._rootElement,role:"group",className:this._classNames.root,onKeyDown:h?this._onKeyDown:void 0,onClick:h?this._onClick:void 0,style:e},p),o.createElement(sC.Provider,{value:m},i))},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:Wb.normal},t}(o.Component),cC={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},uC=32,dC={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},pC={root:"ms-DocumentCardTitle"},hC={root:"ms-DocumentCardLocation"},mC={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},fC=(vo(lC,(function(e){var t,n,r=e.className,o=e.theme,i=e.actionable,a=e.compact,s=o.palette,l=o.fonts,c=o.effects,u=ka(mC,o);return{root:[u.root,{WebkitFontSmoothing:"antialiased",backgroundColor:s.white,border:"1px solid ".concat(s.neutralLight),maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(wr," &:focus")]=va(s.neutralSecondary,c.roundedCorner2),t[".".concat(hC.root," + .").concat(pC.root)]={paddingTop:"4px"},t)},i&&[u.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:s.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid ".concat(s.neutralTertiaryAlt),pointerEvents:"none"}}}],a&&[u.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(n={},n[".".concat(cC.root)]={borderRight:"1px solid ".concat(s.neutralLight),borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n[".".concat(cC.icon)]={maxHeight:"32px",maxWidth:"32px"},n[".".concat(dC.root)]={paddingBottom:"12px"},n[".".concat(pC.root)]={paddingBottom:"12px 16px 8px 16px",fontSize:l.mediumPlus.fontSize,lineHeight:"16px"},n)}],r]}}),void 0,{scope:"DocumentCard"}),cn()),gC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,r=t.views,i=t.styles,a=t.theme,s=t.className;return this._classNames=fC(i,{theme:a,className:s}),o.createElement("div",{className:this._classNames.root},n&&n.map((function(t,n){return o.createElement("div",{className:e._classNames.action,key:n},o.createElement(Pp,d({},t)))})),r>0&&o.createElement("div",{className:this._classNames.views},o.createElement(Rc,{iconName:"View",className:this._classNames.viewsIcon}),r))},t}(o.Component),vC={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},yC=(vo(gC,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts,i=ka(vC,n);return{root:[i.root,{height:"".concat(34,"px"),padding:"".concat(4,"px ").concat(12,"px"),position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:r.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:o.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:o.medium.fontSize,verticalAlign:"top"}}}),void 0,{scope:"DocumentCardActions"}),cn()),bC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,r=e.styles,i=e.theme,a=e.className;return this._classNames=yC(r,{theme:i,className:a,multiplePeople:n.length>1}),n&&0!==n.length?o.createElement("div",{className:this._classNames.root},this._renderAvatars(n),o.createElement("div",{className:this._classNames.details},o.createElement("span",{className:this._classNames.name},this._getNameString(n)),o.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return o.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return o.createElement("div",{className:this._classNames.avatar},o.createElement(lu,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:Nc.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(o.Component),CC=(vo(bC,(function(e){var t=e.theme,n=e.className,r=e.multiplePeople,o=t.palette,i=t.fonts,a=ka(dC,t);return{root:[a.root,r&&a.multiplePeople,{padding:"".concat(8,"px ").concat(16,"px"),position:"relative"},n],avatars:[a.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[a.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:uC,height:uC,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid ".concat(o.white),borderRadius:"50%"},":nth-of-type(2)":r&&{marginLeft:"-16px"}}}],details:[a.details,{left:"".concat(r?72:56,"px"),height:uC,position:"absolute",top:8,width:"calc(100% - ".concat(72,"px)")}],name:[a.name,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralPrimary,fontWeight:ri.semibold}],activity:[a.activity,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralSecondary}]}}),void 0,{scope:"DocumentCardActivity"}),cn()),SC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,r=e.theme,i=e.className;return this._classNames=CC(n,{theme:r,className:i}),o.createElement("div",{className:this._classNames.root},t)},t}(o.Component),xC={root:"ms-DocumentCardDetails"},_C=(vo(SC,(function(e){var t=e.className,n=e.theme;return{root:[ka(xC,n).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}}),void 0,{scope:"DocumentCardDetails"}),cn()),EC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,r=e.ariaLabel,i=e.onClick,a=e.styles,s=e.theme,l=e.className;return this._classNames=_C(a,{theme:s,className:l}),o.createElement("a",{className:this._classNames.root,href:n,onClick:i,"aria-label":r},t)},t}(o.Component),kC=(vo(EC,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[ka(hC,t).root,o.small,{color:r.themePrimary,display:"block",fontWeight:ri.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:r.themePrimary,cursor:"pointer"}}},n]}}),void 0,{scope:"DocumentCardLocation"}),cn()),wC=function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,r=t.getOverflowDocumentCountText,i=t.maxDisplayCount,a=void 0===i?3:i,s=e.length-a,l=s?r?r(s):"+"+s:null,c=e.slice(0,a).map((function(e,t){return o.createElement("li",{key:t},o.createElement(kc,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),o.createElement(Wu,d({className:n._classNames.fileListLink,href:e.url},e.linkProps),e.name))}));return o.createElement("div",null,o.createElement("ul",{className:n._classNames.fileList},c),l&&o.createElement("span",{className:n._classNames.fileListOverflowText},l))},br(n),n}return u(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.previewImages,i=n.styles,a=n.theme,s=n.className,l=r.length>1;return this._classNames=kC(i,{theme:a,className:s,isFileList:l}),r.length>1?t=this._renderPreviewList(r):1===r.length&&(t=this._renderPreviewImage(r[0]),r[0].accentColor&&(e={borderBottomColor:r[0].accentColor})),o.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,n=e.height,r=e.imageFit,i=e.previewIconProps,a=e.previewIconContainerClass;if(i)return o.createElement("div",{className:kn(this._classNames.previewIcon,a),style:{width:t,height:n}},o.createElement(Rc,d({},i)));var s,l=o.createElement(kc,{width:t,height:n,imageFit:r,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(s=o.createElement(kc,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),o.createElement("div",null,l,s)},t}(o.Component),IC=(vo(wC,(function(e){var t,n,r=e.theme,o=e.className,i=e.isFileList,a=r.palette,s=r.fonts,l=ka(cC,r);return{root:[l.root,s.small,{backgroundColor:i?a.white:a.neutralLighterAlt,borderBottom:"1px solid ".concat(a.neutralLight),overflow:"hidden",position:"relative"},o],previewIcon:[l.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[l.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[fa(r,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:a.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:(t={":hover":{color:a.themePrimary}},t[".".concat(wr," &:focus")]={selectors:(n={},n[ca]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}}),void 0,{scope:"DocumentCardPreview"}),cn()),PC=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},br(n),n.state={imageHasLoaded:!1},n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,r=e.height,i=e.imageFit,a=e.imageSrc;return this._classNames=IC(t,this.props),o.createElement("div",{className:this._classNames.root},a&&o.createElement(kc,{width:n,height:r,imageFit:i,src:a,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return o.createElement("div",{className:this._classNames.centeredIconWrapper},o.createElement(Rc,d({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return o.createElement(Rc,d({className:this._classNames.cornerIcon},e))},t}(o.Component),TC="42px",DC="32px",AC=(vo(PC,(function(e){var t=e.theme,n=e.className,r=e.height,o=e.width,i=t.palette;return{root:[{borderBottom:"1px solid ".concat(i.neutralLight),position:"relative",backgroundColor:i.neutralLighterAlt,overflow:"hidden",height:r&&"".concat(r,"px"),width:o&&"".concat(o,"px")},n],centeredIcon:[{height:TC,width:TC,fontSize:TC}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:DC,width:DC,fontSize:DC,position:"absolute",overflow:"visible"}]}}),void 0,{scope:"DocumentCardImage"}),cn()),RC=function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=o.createRef(),n._truncateTitle=function(){n._needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._titleElement.current;if(t){var r=getComputedStyle(t);if(r.width&&r.lineHeight&&r.height){var o=t.clientWidth,i=t.scrollWidth;n._clientWidth=o;var a=Math.floor((parseInt(r.height,10)+5)/parseInt(r.lineHeight,10));t.style.whiteSpace="";var s=i/(parseInt(r.width,10)*a);if(s>1){var l=e.length/s-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2)})}}}},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,r=e.truncatedTitleSecondPiece;if(t&&r){var o=n._titleElement.current;if(!o)return;(o.scrollHeight>o.clientHeight+5||o.scrollWidth>o.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:r.slice(1)})}},br(n),n._async=new we(n),n._events=new Ae(n),n._clientWidth=void 0,n.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},n}return u(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate?this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation)):this._events.off(window,"resize",this._updateTruncation):this._needMeasurement&&this._async.requestAnimationFrame((function(){t._truncateWhenInAnimation(),t._shrinkTitle()}))},t.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.title,r=t.shouldTruncate,i=t.showAsSecondaryTitle,a=t.styles,s=t.theme,l=t.className,c=this.state,u=c.truncatedTitleFirstPiece,d=c.truncatedTitleSecondPiece;return this._classNames=AC(a,{theme:s,className:l,showAsSecondaryTitle:i}),r&&u&&d?o.createElement(sC.Consumer,null,(function(t){var r=t.role,i=t.tabIndex;return o.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:i,role:r},u,"\u2026",d)})):o.createElement(sC.Consumer,null,(function(t){var r=t.role,i=t.tabIndex;return o.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:i,role:r,style:e._needMeasurement?{whiteSpace:"nowrap"}:void 0},n)}))},Object.defineProperty(t.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),t.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout((function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})}),250))},t}(o.Component),NC=(vo(RC,(function(e){var t,n=e.theme,r=e.className,o=e.showAsSecondaryTitle,i=n.palette,a=n.fonts,s=n.effects;return{root:[ka(pC,n).root,o?a.medium:a.large,{padding:"8px 16px",display:"block",overflow:"hidden",position:"relative",wordWrap:"break-word",height:o?"45px":"38px",lineHeight:o?"18px":"21px",color:o?i.neutralSecondary:i.neutralPrimary,selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(wr," &:focus")]=va(i.neutralSecondary,s.roundedCorner2),t)},r]}}),void 0,{scope:"DocumentCardTitle"}),cn()),MC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,r=e.theme,i=e.className;return this._classNames=NC(n,{theme:r,className:i}),o.createElement("div",{className:this._classNames.root},o.createElement(Rc,{iconName:t}))},t}(o.Component),FC={root:"ms-DocumentCardLogo"},BC=(vo(MC,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[ka(FC,t).root,{fontSize:o.xxLargePlus.fontSize,color:r.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}}),void 0,{scope:"DocumentCardLogo"}),cn()),OC=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,r=e.styles,i=e.theme,a=e.className,s={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=BC(r,{theme:i,className:a}),o.createElement("div",{className:this._classNames.root},t&&o.createElement(Rc,d({},s)),n)},t}(o.Component),LC={root:"ms-DocumentCardStatus"},HC=(vo(OC,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts;return{root:[ka(LC,n).root,o.medium,{margin:"8px 16px",color:r.neutralPrimary,backgroundColor:r.neutralLighter,height:"32px"},t]}}),void 0,{scope:"DocumentCardStatus"}),function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=[],r=0,o=0;o<e.length;o++){var i=e[o],a=i.itemType,s=i.hidden;a===Bg.Divider||a===Bg.Header?(t.push(o),n.push(o)):s?n.push(o):r++}this._size=r,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=n,this._cachedOptions=m([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}());!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(iC||(iC={}));var VC,zC=cn();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(VC||(VC={}));var UC,WC,GC,jC,qC,KC=function(e){function t(t){var n=e.call(this,t)||this;n._panel=o.createRef(),n._animationCallback=null,n._hasCustomNavigation=!(!n.props.onRenderNavigation&&!n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?Oe(e,n._events):Be(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return o.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,i=e.hasCloseButton,a=e.onRenderHeader,s=void 0===a?n._onRenderHeader:a;if(i){var l=null===(t=n._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return o.createElement(o.Fragment,null,!n._hasCustomNavigation&&s(n.props,n._onRenderHeader,n._headerTextId),o.createElement(Pp,{styles:l,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var i=e.headerText,a=e.headerTextProps,s=void 0===a?{}:a;return i?o.createElement("div",{className:n._classNames.header},o.createElement("div",d({id:r,role:"heading","aria-level":1},s,{className:kn(n._classNames.headerText,s.className)}),i)):null},n._onRenderBody=function(e){return o.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?o.createElement("div",{className:n._classNames.footer},o.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===VC.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete(e)}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(e){n._updateFooterPosition(),e===VC.open&&n.props.onOpened&&n.props.onOpened(),e===VC.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,i=void 0!==r&&r;return n._allowTouchBodyScroll=i,br(n),Ye("Panel",t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:VC.closed,id:zn("Panel")},n}return u(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==VC.closed&&t.visibility!==VC.animatingClosed?e.isOpen||t.visibility!==VC.open&&t.visibility!==VC.animatingOpen?null:{visibility:VC.animatingClosed}:{visibility:VC.animatingOpen}},t.prototype.componentDidMount=function(){this._async=new we(this),this._events=new Ae(this),this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:VC.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===VC.animatingOpen?this._animateTo(VC.open):this.state.visibility===VC.animatingClosed&&this._animateTo(VC.closed)),n&&!r?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,a=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,l=e.hasCloseButton,c=e.headerText,u=e.headerClassName,p=void 0===u?"":u,h=e.ignoreExternalFocusing,m=e.isBlocking,f=e.isFooterAtBottom,g=e.isLightDismiss,v=e.isHiddenOnDismiss,y=e.layerProps,b=e.overlayProps,C=e.popupProps,S=e.type,x=e.styles,_=e.theme,E=e.customWidth,k=e.onLightDismissClick,w=void 0===k?this._onPanelClick:k,I=e.onRenderNavigation,P=void 0===I?this._onRenderNavigation:I,T=e.onRenderHeader,D=void 0===T?this._onRenderHeader:T,A=e.onRenderBody,R=void 0===A?this._onRenderBody:A,N=e.onRenderFooter,M=void 0===N?this._onRenderFooter:N,F=this.state,B=F.isFooterSticky,O=F.visibility,L=F.id,H=S===iC.smallFixedNear||S===iC.customNear,V=Ot(_)?H:!H,z=S===iC.custom||S===iC.customNear?{width:E}:{},U=mr(this.props,hr),W=this.isActive,G=O===VC.animatingClosed||O===VC.animatingOpen;if(this._headerTextId=c&&L+"-headerText",!W&&!G&&!v)return null;this._classNames=zC(x,{theme:_,className:n,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:l,headerClassName:p,isAnimating:G,isFooterSticky:B,isFooterAtBottom:f,isOnRightSide:V,isOpen:W,isHiddenOnDismiss:v,type:S,hasCustomNavigation:this._hasCustomNavigation});var j,q=this._classNames,K=this._allowTouchBodyScroll;return m&&W&&(j=o.createElement(Nb,d({className:q.overlay,isDarkThemed:!1,onClick:g?w:void 0,allowTouchBodyScroll:K},b))),o.createElement(rc,d({},y),o.createElement(kl,d({role:"dialog","aria-modal":m?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:q.hiddenPanel,enableAriaHiddenSiblings:!!W},C),o.createElement("div",d({"aria-hidden":!W&&G},U,{ref:this._panel,className:q.root}),j,o.createElement(ac,d({ignoreExternalFocusing:h,forceFocusInsideTrap:!(!m||v&&!W)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:q.main,style:z,elementToFocusOnDismiss:r}),o.createElement("div",{className:q.contentInner},o.createElement("div",{ref:this._allowScrollOnPanel,className:q.scrollableContent,"data-is-scrollable":!0},o.createElement("div",{className:q.commands,"data-is-visible":!0},P(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!l)&&D(this.props,this._onRenderHeader,this._headerTextId),R(this.props,this._onRenderBody),M(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:VC.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:VC.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===VC.open||this.state.visibility===VC.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(zt(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:iC.smallFixedFar},t}(o.Component),YC={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},XC="100%",QC="auto",ZC=272,JC=340,$C=592,eS=644,tS=940,nS="auto",rS=0,oS=48,iS=428,aS=176,sS=((UC={})["@media (min-width: ".concat(da,"px)")]={width:JC},UC),lS=((WC={})["@media (min-width: ".concat(640,"px)")]={width:$C},WC["@media (min-width: ".concat(1024,"px)")]={width:eS},WC),cS=((GC={})["@media (min-width: ".concat(768,"px)")]={left:oS,width:QC},GC["@media (min-width: ".concat(pa,"px)")]={left:iS},GC),uS=((jC={})["@media (min-width: ".concat(pa,"px)")]={left:nS,width:tS},jC),dS=((qC={})["@media (min-width: ".concat(pa,"px)")]={left:aS},qC),pS=function(e){var t;switch(e){case iC.smallFixedFar:t=d({},sS);break;case iC.medium:t=d(d({},sS),lS);break;case iC.large:t=d(d(d({},sS),lS),cS);break;case iC.largeFixed:t=d(d(d(d({},sS),lS),cS),uS);break;case iC.extraLarge:t=d(d(d(d({},sS),lS),cS),dS)}return t},hS={paddingLeft:"24px",paddingRight:"24px"},mS=vo(KC,(function(e){var t,n,r,o,i=e.className,a=e.focusTrapZoneClassName,s=e.hasCloseButton,l=e.headerClassName,c=e.isAnimating,u=e.isFooterSticky,p=e.isFooterAtBottom,h=e.isOnRightSide,m=e.isOpen,f=e.isHiddenOnDismiss,g=e.hasCustomNavigation,v=e.theme,y=e.type,b=void 0===y?iC.smallFixedFar:y,C=v.effects,S=v.fonts,x=v.semanticColors,_=ka(YC,v),E=b===iC.custom||b===iC.customNear;return{root:[_.root,v.fonts.medium,m&&_.isOpen,s&&_.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},E&&h&&_.custom,E&&!h&&_.customNear,i],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&c&&Ka.fadeIn100,!m&&c&&Ka.fadeOut100],hiddenPanel:[!m&&!c&&f&&{visibility:"hidden"}],main:[_.main,{backgroundColor:x.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:nS,right:rS,width:XC,selectors:d((t={},t[ca]={borderLeft:"3px solid ".concat(x.variantBorder),borderRight:"3px solid ".concat(x.variantBorder)},t),pS(b))},b===iC.smallFluid&&{left:rS},b===iC.smallFixedNear&&{left:rS,right:nS,width:ZC},b===iC.customNear&&{right:"auto",left:0},E&&{maxWidth:"100vw"},m&&c&&!h&&Ka.slideRightIn40,m&&c&&h&&Ka.slideLeftIn40,!m&&c&&!h&&Ka.slideLeftOut40,!m&&c&&h&&Ka.slideRightOut40,a],commands:[_.commands,{backgroundColor:x.bodyBackground,paddingTop:18,selectors:(n={},n["@media (min-height: ".concat(da,"px)")]={position:"sticky",top:0,zIndex:1},n)},g&&{paddingTop:"inherit"}],navigation:[_.navigation,{display:"flex",justifyContent:"flex-end"},g&&{height:"44px"}],contentInner:[_.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[_.header,hS,{alignSelf:"flex-start"},s&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[_.headerText,S.xLarge,{color:x.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},l],scrollableContent:[_.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[_.content,hS,{paddingBottom:20},p&&{selectors:(r={},r["@media (min-height: ".concat(da,"px)")]={flexGrow:1},r)}],footer:[_.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(Ki," ").concat(Gi),selectors:(o={},o["@media (min-height: ".concat(da,"px)")]={position:"sticky",bottom:0},o)},u&&{backgroundColor:x.bodyBackground,borderTopColor:x.variantBorder}],footerInner:[_.footerInner,hS,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[_.closeButton,{marginRight:14,color:v.palette.neutralSecondary,fontSize:oi.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:v.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"}),fS="Dropdown",gS=cn(),vS={options:[]};var yS=o.forwardRef((function(e,t){var n=Co(vS,e),r=o.useRef(null),i=ul(t,r),a=Hd(r,n.responsiveMode),s=function(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,i=e.defaultSelectedKey,a=e.selectedKey,s=e.options,l=e.multiSelect,c=pl(s),u=o.useState([]),d=u[0],p=u[1],h=s!==c,m=pl(t=l?h&&void 0!==n?n:r:h&&void 0!==i?i:a);return o.useEffect((function(){var e=function(){return s.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},n=function(e){return Dt(s,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&c||t===m&&!h||p(function(){if(void 0===t)return l?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var r=[],o=0,i=t;o<i.length;o++){var a,s=i[o];-1!==(a=n(s))&&r.push(a)}return r}())}),[h,l,c,m,s,t]),[d,p]}(n),l=s[0],c=s[1];return o.createElement(_S,d({},n,{responsiveMode:a,hoisted:{rootRef:i,selectedIndices:l,setSelectedIndices:c}}))}));yS.displayName="DropdownBase";var bS,CS,SS,xS,_S=function(e){function t(t){var n=e.call(this,t)||this;n._host=o.createRef(),n._focusZone=o.createRef(),n._dropDown=o.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new HC,n._requestAnimationFrame=function(e){var t;return function(n){t||(t=new Set,Ln(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var r=requestAnimationFrame((function(){t.delete(r),n()}));t.add(r)}}(n),n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onChange=function(e,t,r,o,i){var a=n.props,s=a.onChange,l=a.onChanged;if(s||l){var c=i?d(d({},t[r]),{selected:!o}):t[r];s&&s(d(d({},e),{target:n._dropDown.current}),c,r),l&&l(c,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map((function(e){return e.text})).join(o)},n._onRenderTitle=function(e){return o.createElement(o.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?o.createElement(o.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,i=n.props,a=i.responsiveMode,s=i.dropdownWidth,l=a<=Pd.medium,c={firstFocusableTarget:"#".concat(n._listId,"1")},u=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,p=void 0,h=void 0;return"auto"===s?h=n._dropDown.current?n._dropDown.current.clientWidth:0:p=s||(n._dropDown.current?n._dropDown.current.clientWidth:0),l?o.createElement(mS,d({closeButtonAriaLabel:"Close",focusTrapZoneProps:c,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,styles:u},r),n._renderFocusableList(e)):o.createElement(oc,d({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:ps,calloutWidth:p,calloutMinWidth:h},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return o.createElement(Rc,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,i={items:[]},a=[],s=function(){var e=i.id?[o.createElement("div",{role:"group",key:i.id,"aria-labelledby":i.id},i.items)]:i.items;a=m(m([],a,!0),e,!0),i={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case Bg.Header:i.items.length>0&&s();var o=n._id+e.key;i.items.push(r(d(d({id:o},e),{index:t}),n._onRenderItem)),i.id=o;break;case Bg.Divider:t>0&&i.items.push(r(d(d({},e),{index:t}),n._onRenderItem)),i.items.length>0&&s();break;default:i.items.push(r(d(d({},e),{index:t}),n._onRenderItem))}}(e,t)})),i.items.length>0&&s(),o.createElement(o.Fragment,null,a)},n._onRenderItem=function(e){switch(e.itemType){case Bg.Divider:return n._renderSeparator(e);case Bg.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t,r=n.props,i=r.onRenderOption,a=void 0===i?n._onRenderOption:i,s=r.hoisted.selectedIndices,l=void 0===s?[]:s,c=!(void 0===e.index||!l)&&l.indexOf(e.index)>-1,u=e.hidden?n._classNames.dropdownItemHidden:c&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:c?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,p=e.title,h=n._listId+e.index,m=null!==(t=e.id)&&void 0!==t?t:h+"-label",f=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?o.createElement(Bm,{id:h,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:d({"aria-selected":c,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:p,onRenderLabel:n._onRenderItemLabel.bind(n,d(d({},e),{id:m})),className:kn(u,"is-multi-select"),checked:c,styles:f,ariaPositionInSet:e.hidden?void 0:n._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:m}):o.createElement(Rp,{id:h,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:u,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":c?"true":"false",ariaLabel:e.ariaLabel,title:p,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},a(e,n._onRenderOption))},n._onRenderOption=function(e){return o.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderMultiselectOption=function(e){return o.createElement("span",{id:e.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderMultiselectOption:t)(e,n._onRenderMultiselectOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame((function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&e&&e[0]&&!n.props.options[e[0]].disabled){var t=Re().getElementById("".concat(n._id,"-list").concat(e[0]));t&&n._focusZone.current.focusElement(t),n._hasBeenPositioned=!0}else n._focusZone.current.focus()})),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=window.setTimeout((function(){n._isScrollIdle=!0}),n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(Iw){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||n.state.isOpen||(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=n.state.isOpen;switch(e.which){case it:n.setState({isOpen:!i});break;case ct:if(!i)return;n.setState({isOpen:!1});break;case gt:if(o){if(i){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case yt:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case mt:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case ht:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case ut:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;n.props.onKeyUp&&(n.props.onKeyUp(e),e.defaultPrevented)||(e.which===ut?(n.setState({isOpen:!r}),e.stopPropagation(),e.preventDefault()):t&&r&&n.setState({isOpen:!1}))}},n._onZoneKeyDown=function(e){var t,r,o;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var i=e.altKey||e.metaKey;switch(e.which){case gt:i?n.setState({isOpen:!1}):n._host.current&&(o=qt(n._host.current,n._host.current.lastChild,!0));break;case mt:case ht:case dt:case pt:break;case yt:!i&&n._host.current&&(o=jt(n._host.current,n._host.current.firstChild,!0));break;case ct:n.setState({isOpen:!1});break;case ot:n.setState({isOpen:!1});var a=Re();a&&(e.shiftKey?null===(t=Yt(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(r=Xt(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===r||r.focus());break;default:return}o&&o.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=e.disabled,a=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(Hm,{className:n._classNames.label,id:n._labelId,required:r,styles:a,disabled:i},t):null},br(n);var r=t.multiSelect,i=t.selectedKey,a=t.selectedKeys,s=t.defaultSelectedKey,l=t.defaultSelectedKeys,c=t.options;if(Ye(fS,t,{isDisabled:"disabled",onChanged:"onChange",placeHolder:"placeholder",onRenderPlaceHolder:"onRenderPlaceholder"}),Ke(fS,t,{defaultSelectedKey:"selectedKey",defaultSelectedKeys:"selectedKeys",selectedKeys:"selectedKey"}),r){var u=function(e){return je("Dropdown property '".concat(e,"' cannot be used when 'multiSelect' is true. Use '").concat(e,"s' instead."))};void 0!==i&&u("selectedKey"),void 0!==s&&u("defaultSelectedKey")}else{var p=function(e){return je("Dropdown property '".concat(e,"s' cannot be used when 'multiSelect' is false/unset. Use '").concat(e,"' instead."))};void 0!==a&&p("selectedKey"),void 0!==l&&p("defaultSelectedKey")}return n._id=t.id||zn("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(c),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return u(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return Kg(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,i=t.options,a=t.ariaLabel,s=t.required,l=t.errorMessage,c=t.styles,u=t.theme,p=t.panelProps,h=t.calloutProps,m=t.onRenderTitle,f=void 0===m?this._getTitle:m,g=t.onRenderContainer,v=void 0===g?this._onRenderContainer:g,y=t.onRenderCaretDown,b=void 0===y?this._onRenderCaretDown:y,C=t.onRenderLabel,S=void 0===C?this._onRenderLabel:C,x=t.onRenderItem,_=void 0===x?this._onRenderItem:x,E=t.hoisted.selectedIndices,k=this.state,w=k.isOpen,I=k.calloutRenderEdge,P=k.hasFocus,T=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;i!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(i);var D=Kg(i,E),A=mr(t,hr),R=this._isDisabled(),N=e+"-errorMessage";this._classNames=gS(c,{theme:u,className:n,hasError:!!(l&&l.length>0),hasLabel:!!r,isOpen:w,required:s,disabled:R,isRenderingPlaceholder:!D.length,panelClassName:p?p.className:void 0,calloutClassName:h?h.className:void 0,calloutRenderEdge:I});var M=!!l&&l.length>0;return o.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":w?this._listId:void 0},S(this.props,this._onRenderLabel),o.createElement("div",d({"data-is-focusable":!R,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:R?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":w?"true":"false","aria-label":a,"aria-labelledby":r&&!a?Tt(this._labelId,this._optionId):void 0,"aria-describedby":M?this._id+"-errorMessage":void 0,"aria-required":s,"aria-disabled":R,"aria-controls":w?this._listId:void 0},A,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),o.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":P?"polite":void 0,"aria-atomic":!!P||void 0,"aria-invalid":M},D.length?f(D,this._onRenderTitle):T(t,this._onRenderPlaceholder)),o.createElement("span",{className:this._classNames.caretDownWrapper},b(t,this._onRenderCaretDown))),w&&v(d(d({},t),{onDismiss:this._onDismiss,onRenderItem:_}),this._onRenderContainer),M&&o.createElement("div",{role:"alert",id:N,className:this._classNames.errorMessage},l))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!!c&&c.indexOf(t)>-1,d=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===o&&void 0===i){if(a||s||t!==c[0]){if(a)if(d=c?this._copyArray(c):[],u){var p=d.indexOf(t);p>-1&&d.splice(p,1)}else d.push(t);else d=[t];e.persist(),this.props.hoisted.setSelectedIndices(d),this._onChange(e,r,t,u,a)}}else this._onChange(e,r,t,u,a)},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var i=0;o[n].itemType===Bg.Header||o[n].itemType===Bg.Divider||o[n].disabled;){if(i>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,i=e.ariaLabel,a=e.multiSelect;return o.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},o.createElement(Bu,{ref:this._focusZone,direction:Cu.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":i,"aria-labelledby":r&&!i?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key,r=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?o.createElement("div",{role:"presentation",key:n,className:r}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,i=e.id,a=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return o.createElement("div",{id:i,key:r,className:a},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===lt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(ro()||eo())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(o.Component),ES={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},kS=((bS={})["".concat(ca,", ").concat(ua.replace("@media ",""))]=d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),bS),wS={selectors:d((CS={},CS[ca]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},CS[".ms-Checkbox-checkbox"]=(SS={},SS[ca]={borderColor:"HighlightText"},SS),CS),kS)},IS={selectors:(xS={},xS[ca]={borderColor:"Highlight"},xS)},PS=ma(0,da),TS=vo(yS,(function(e){var t,n,r,o,i,a,s,l,c,u,p,h,f=e.theme,g=e.hasError,v=e.hasLabel,y=e.className,b=e.isOpen,C=e.disabled,S=e.required,x=e.isRenderingPlaceholder,_=e.panelClassName,E=e.calloutClassName,k=e.calloutRenderEdge;if(!f)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var w=ka(ES,f),I=f.palette,P=f.semanticColors,T=f.effects,D=f.fonts,A={color:P.menuItemTextHovered},R={color:P.menuItemText},N={borderColor:P.errorText},M=[w.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],F=[w.dropdownItemHeader,d(d({},D.medium),{fontWeight:ri.semibold,color:P.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(t={},t[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)})],B=P.menuItemBackgroundPressed,O=function(e){var t,n;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:P.menuItemTextHovered,backgroundColor:e?B:P.menuItemBackgroundHovered},wS],"&.is-multi-select:hover":[{backgroundColor:e?B:"transparent"},wS],"&:active:hover":[{color:P.menuItemTextHovered,backgroundColor:e?P.menuItemBackgroundHovered:P.menuItemBackgroundPressed},wS]},t[".".concat(wr," &:focus:after")]=(n={left:0,top:0,bottom:0,right:0},n[ca]={inset:"2px"},n),t[ca]={border:"none"},t)}},L=m(m([],M,!0),[{backgroundColor:B,color:P.menuItemTextHovered},O(!0),wS],!1),H=m(m([],M,!0),[{color:P.disabledText,cursor:"default",selectors:(n={},n[ca]={color:"GrayText",border:"none"},n)}],!1),V=k===Za.bottom?"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0"):"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2),z=k===Za.bottom?"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2):"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0");return{root:[w.root,y],label:w.label,dropdown:[w.dropdown,Ga,D.medium,{color:P.menuItemText,borderColor:P.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(r={},r["&:hover ."+w.title]=[!C&&A,{borderColor:b?I.neutralSecondary:I.neutralPrimary},IS],r["&:focus ."+w.title]=[!C&&A,{selectors:(o={},o[ca]={color:"Highlight"},o)}],r["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:C?"none":"2px solid ".concat(I.themePrimary),borderRadius:"2px",selectors:(i={},i[ca]={color:"Highlight"},i)}],r["&:active ."+w.title]=[!C&&A,{borderColor:I.themePrimary},IS],r["&:hover ."+w.caretDown]=!C&&R,r["&:focus ."+w.caretDown]=[!C&&R,{selectors:(a={},a[ca]={color:"Highlight"},a)}],r["&:active ."+w.caretDown]=!C&&R,r["&:hover ."+w.titleIsPlaceHolder]=!C&&R,r["&:focus ."+w.titleIsPlaceHolder]=!C&&R,r["&:active ."+w.titleIsPlaceHolder]=!C&&R,r["&:hover ."+w.titleHasError]=N,r["&:active ."+w.titleHasError]=N,r)},b&&"is-open",C&&"is-disabled",S&&"is-required",S&&!v&&{selectors:(s={":before":{content:"'*'",color:P.errorText,position:"absolute",top:-5,right:-10}},s[ca]={selectors:{":after":{right:-14}}},s)}],title:[w.title,Ga,{backgroundColor:P.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:P.inputBorder,borderRadius:b?V:T.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},x&&[w.titleIsPlaceHolder,{color:P.inputPlaceholderText}],g&&[w.titleHasError,N],C&&{backgroundColor:P.disabledBackground,border:"none",color:P.disabledText,cursor:"default",selectors:(l={},l[ca]=d({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],caretDownWrapper:[w.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!C&&{cursor:"pointer"}],caretDown:[w.caretDown,{color:I.neutralSecondary,fontSize:D.small.fontSize,pointerEvents:"none"},C&&{color:P.disabledText,selectors:(c={},c[ca]=d({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}],errorMessage:d(d({color:P.errorText},f.fonts.small),{paddingTop:5}),callout:[w.callout,{boxShadow:T.elevation8,borderRadius:z,selectors:(u={},u[".ms-Callout-main"]={borderRadius:z},u)},E],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[w.dropdownItems,{display:"block"}],dropdownItem:m(m([],M,!0),[O()],!1),dropdownItemSelected:L,dropdownItemDisabled:H,dropdownItemSelectedAndDisabled:[L,H,{backgroundColor:"transparent"}],dropdownItemHidden:m(m([],M,!0),[{display:"none"}],!1),dropdownDivider:[w.dropdownDivider,{height:1,backgroundColor:P.bodyDivider}],dropdownDividerHidden:[w.dropdownDivider,{display:"none"}],dropdownOptionText:[w.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:F,dropdownItemHeaderHidden:m(m([],F,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(p={},p[".".concat(wr," &:focus + label::before")]={outlineOffset:"0px"},p)}},panel:{root:[_],main:{selectors:(h={},h[PS]={width:272},h)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});TS.displayName="Dropdown",Na([{rawString:".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}"}]);var DS=Object.freeze({__proto__:null,pickerText:"pickerText_9f838726",pickerInput:"pickerInput_9f838726"}),AS=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=o.createRef(),n.selectedItemsList=o.createRef(),n.root=o.createRef(),n.input=o.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){t||(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===rt&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,r=n.state.queryString;if(void 0===t||t===r){var o=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===o)return;var i,a=o,s=o;s&&s.then?s.then((function(e){i=e,n._addProcessedItem(i)})):(i=a,n._addProcessedItem(i))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},br(n),n.selection=new co({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return u(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,r;return null!==(r=null!==(n=null!==(e=this.props.selectedItems)&&void 0!==e?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)&&void 0!==n?n:this.props.defaultSelectedItems)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,r=e.disabled,i=e.focusZoneProps,a=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,s=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return o.createElement("div",{ref:this.root,className:kn("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},o.createElement(Bu,d({direction:Cu.bidirectional},i),o.createElement(Yv,{selection:this.selection,selectionMode:ao.multiple},o.createElement("div",{className:kn("ms-BasePicker-text",DS.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&o.createElement(fu,d({},n,{className:kn("ms-BasePicker-input",DS.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":a,"aria-owns":s?"suggestion-list":void 0,"aria-expanded":s,"aria-haspopup":"true",role:"combobox",disabled:r,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return o.createElement(e,d({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return o.createElement(e,d({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(o.Component);Na([{rawString:".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);var RS,NS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(AS);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}u(t,e)}(NS);!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(RS||(RS={}));var MS=yn((function(e,t,n){var r=gp(e),o=ge(r,n);return d(d({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})})),FS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=p(e,["className","styles"]),i=MS(this.props.theme,t,n);return o.createElement(hp,d({},r,{variantClassName:"ms-Button--facepile",styles:i,onRenderDescription:Qe}))},t=h([Bn("FacepileButton",["theme","styles"],!0)],t)}(o.Component),BS=cn(),OS=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=BS(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,r=t.getPersonaProps,i=t.personaSize;return o.createElement(hu,d({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},r?r(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,r=t.getPersonaProps,i=t.personaSize;return o.createElement(lu,d({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},r?r(e):null))},br(n),n._ariaDescriptionId=zn(),n}return u(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,i=t.personas,a=t.overflowPersonas,s=t.showAddButton,l=t.ariaLabel,c=t.showTooltip,u=void 0===c||c,d=this._classNames,p="number"===typeof r?Math.min(i.length,r):i.length;n&&!e&&(e=n);var h=a&&a.length>0,m=h?i:i.slice(0,p),f=(h?a:i.slice(p))||[];return o.createElement("div",{className:d.root},this.onRenderAriaDescription(),o.createElement("div",{className:d.itemContainer},s?this._getAddNewElement():null,o.createElement("ul",{className:d.members,"aria-label":l},this._onRenderVisiblePersonas(m,0===f.length&&1===i.length,u)),e?this._getOverflowElement(f):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&o.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,n){var r=this,i=this.props,a=i.onRenderPersona,s=void 0===a?this._getPersonaControl:a,l=i.onRenderPersonaCoin,c=void 0===l?this._getPersonaCoinControl:l,u=i.onRenderPersonaWrapper;return e.map((function(e,i){var a=t?s(e,r._getPersonaControl):c(e,r._getPersonaCoinControl),l=e.onClick?function(){return r._getElementWithOnClickEvent(a,e,n,i)}:function(){return r._getElementWithoutOnClickEvent(a,e,n,i)};return o.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(i),className:r._classNames.member},u?u(e,l):l())}))},t.prototype._getElementWithOnClickEvent=function(e,t,n,r){var i=t.keytipProps;return o.createElement(FS,d({},mr(t,$n),this._getElementProps(t,n,r),{keytipProps:i,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n,r){return o.createElement("div",d({},mr(t,$n),this._getElementProps(t,n,r)),e)},t.prototype._getElementProps=function(e,t,n){var r=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:r.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case RS.descriptive:return this._getDescriptiveOverflowElement(e);case RS.downArrow:return this._getIconElement("ChevronDown");case RS.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map((function(e){return e.personaName})).join(", "),r=d({title:n},this.props.overflowButtonProps),i=Math.max(e.length,0),a=this._classNames;return o.createElement(FS,d({},r,{ariaDescription:r.title,className:a.descriptiveOverflowButton}),o.createElement(lu,{size:t,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:Fc.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,r=t.personaSize,i=this._classNames;return o.createElement(FS,d({},n,{className:i.overflowButton}),o.createElement(lu,{size:r,onRenderInitials:this._renderInitials(e,!0),initialsColor:Fc.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,r=this._classNames;return o.createElement(FS,d({},t,{className:r.addButton}),o.createElement(lu,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return o.createElement(Rc,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return o.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:Nc.size32},t}(o.Component),LS={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"};vo(OS,(function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,i=void 0===o?2:o,a=r.palette,s=r.fonts,l=ka(LS,r),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,r.fonts.medium,{width:"auto"},n],addButton:[l.addButton,fa(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,fa(r,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(i,"px")}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(i,"px")}],overflowButton:[l.overflowButton,fa(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[ca]={color:"WindowText"},t)}],screenReaderOnly:ya}}),void 0,{scope:"Facepile"});Na([{rawString:".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}"}]);var HS,VS=Object.freeze({__proto__:null,callout:"callout_ad5629e1"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(HS||(HS={})),Na([{rawString:".root_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_8c91000a{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var zS=Object.freeze({__proto__:null,root:"root_8c91000a",suggestionsItem:"suggestionsItem_8c91000a",closeButton:"closeButton_8c91000a",suggestionsItemIsSuggested:"suggestionsItemIsSuggested_8c91000a",itemButton:"itemButton_8c91000a",actionButton:"actionButton_8c91000a",buttonSelected:"buttonSelected_8c91000a",suggestionsTitle:"suggestionsTitle_8c91000a",suggestionsContainer:"suggestionsContainer_8c91000a",suggestionsNone:"suggestionsNone_8c91000a",suggestionsSpinner:"suggestionsSpinner_8c91000a",suggestionsAvailable:"suggestionsAvailable_8c91000a"}),US=zS,WS=cn(),GS=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,r=t.RenderSuggestion,i=t.onClick,a=t.className,s=t.id,l=t.onRemoveItem,c=t.isSelectedOverride,u=t.removeButtonAriaLabel,d=t.styles,p=t.theme,h=t.removeButtonIconProps,m=d?WS(d,{theme:p,className:a,suggested:n.selected||c}):{root:kn("ms-Suggestions-item",US.suggestionsItem,(e={},e["is-suggested "+US.suggestionsItemIsSuggested]=n.selected||c,e),a),itemButton:kn("ms-Suggestions-itemButton",US.itemButton),closeButton:kn("ms-Suggestions-closeButton",US.closeButton)};return o.createElement("div",{className:m.root,role:"presentation"},o.createElement(Rp,{onClick:i,className:m.itemButton,id:s,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},r(n.item,this.props)),this.props.showRemoveButton?o.createElement(Pp,{iconProps:null!==h&&void 0!==h?h:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:u,ariaLabel:u,onClick:l,className:m.closeButton}):null)},t}(o.Component),jS={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var qS=zS,KS=cn(),YS=vo(GS,(function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.suggested,u=l.palette,p=l.semanticColors,h=ka(jS,l);return{root:[h.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:p.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},c&&{selectors:(t={},t[".".concat(wr," &")]={selectors:(n={},n[".".concat(h.closeButton)]={display:"block",background:p.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(l.semanticColors.focusBorder)},t)},s],itemButton:[h.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(r={},r[ca]={color:"WindowText",selectors:{":hover":d({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})}},r[":hover"]={color:p.menuItemTextHovered},r)},c&&[h.isSuggested,{background:p.menuItemBackgroundPressed,selectors:(o={":hover":{background:p.menuDivider}},o[ca]=d({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}]],closeButton:[h.closeButton,{display:"none",color:u.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:u.neutralTertiaryAlt,color:u.neutralDark}},i[ca]={color:"WindowText"},i)},c&&(a={},a[".".concat(wr," &")]={selectors:{":hover, :active":{background:u.neutralTertiary}}},a.selectors={":hover, :active":{background:u.neutralTertiary,color:u.neutralPrimary}},a)]}}),void 0,{scope:"SuggestionItem"}),XS=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=o.createRef(),n._searchForMoreButton=o.createRef(),n._selectedElement=o.createRef(),n._scrollContainer=o.createRef(),n.tryHandleKeyDown=function(e,t){var r=!1,o=null,i=n.state.selectedActionType,a=n.props.suggestions.length;if(e===yt)switch(i){case HS.forceResolve:a>0?(n._refocusOnSuggestions(e),o=HS.none):o=n._searchForMoreButton.current?HS.searchMore:HS.forceResolve;break;case HS.searchMore:n._forceResolveButton.current?o=HS.forceResolve:a>0?(n._refocusOnSuggestions(e),o=HS.none):o=HS.searchMore;break;case HS.none:-1===t&&n._forceResolveButton.current&&(o=HS.forceResolve)}else if(e===gt)switch(i){case HS.forceResolve:n._searchForMoreButton.current?o=HS.searchMore:a>0&&(n._refocusOnSuggestions(e),o=HS.none);break;case HS.searchMore:a>0?(n._refocusOnSuggestions(e),o=HS.none):n._forceResolveButton.current&&(o=HS.forceResolve);break;case HS.none:-1===t&&n._searchForMoreButton.current&&(o=HS.searchMore)}return null!==o&&(n.setState({selectedActionType:o}),r=!0),r},n._getAlertText=function(){var e=n.props,t=e.isLoading,r=e.isSearching,o=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText,s=e.isExtendedLoading,l=e.loadingText;if(t||r){if(t&&s)return l||""}else{if(o.length>0)return i||"";if(a)return a}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&(n.props.onGetMoreResults(),n.setState({selectedActionType:HS.none}))},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._refocusOnSuggestions=function(e){"function"===typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},br(n),n.state={selectedActionType:HS.none},n}return u(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.forceResolveText,a=r.mostRecentlyUsedHeaderText,s=r.searchForMoreIcon,l=r.searchForMoreText,c=r.className,u=r.moreSuggestionsAvailable,p=r.noResultsFoundText,h=r.suggestions,m=r.isLoading,f=r.isSearching,g=r.loadingText,v=r.onRenderNoResultFound,y=r.searchingText,b=r.isMostRecentlyUsedVisible,C=r.resultsMaximumNumber,S=r.resultsFooterFull,x=r.resultsFooter,_=r.isResultsFooterVisible,E=void 0===_||_,k=r.suggestionsHeaderText,w=r.suggestionsClassName,I=r.theme,P=r.styles,T=r.suggestionsListId,D=r.suggestionsContainerAriaLabel;this._classNames=P?KS(P,{theme:I,className:c,suggestionsClassName:w,forceResolveButtonSelected:this.state.selectedActionType===HS.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===HS.searchMore}):{root:kn("ms-Suggestions",c,qS.root),title:kn("ms-Suggestions-title",qS.suggestionsTitle),searchForMoreButton:kn("ms-SearchMore-button",qS.actionButton,(e={},e["is-selected "+qS.buttonSelected]=this.state.selectedActionType===HS.searchMore,e)),forceResolveButton:kn("ms-forceResolve-button",qS.actionButton,(t={},t["is-selected "+qS.buttonSelected]=this.state.selectedActionType===HS.forceResolve,t)),suggestionsAvailable:kn("ms-Suggestions-suggestionsAvailable",qS.suggestionsAvailable),suggestionsContainer:kn("ms-Suggestions-container",qS.suggestionsContainer,w),noSuggestions:kn("ms-Suggestions-none",qS.suggestionsNone)};var A=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,R=P?{styles:A}:{className:kn("ms-Suggestions-spinner",qS.suggestionsSpinner)},N=k;b&&a&&(N=a);var M=void 0;E&&(M=h.length>=C?S:x);var F=(!h||!h.length)&&!m,B=this.state.selectedActionType===HS.forceResolve?"sug-selectedAction":void 0,O=this.state.selectedActionType===HS.searchMore?"sug-selectedAction":void 0;return o.createElement("div",{className:this._classNames.root,"aria-label":D||N,id:T,role:"listbox"},o.createElement(bu,{message:this._getAlertText(),"aria-live":"polite"}),N?o.createElement("div",{className:this._classNames.title},N):null,i&&this._shouldShowForceResolve()&&o.createElement(Rp,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:B,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},i),m&&o.createElement(gy,d({},R,{ariaLabel:g,label:g})),F?function(){var e=function(){return o.createElement("div",{className:n._classNames.noSuggestions},p)};return o.createElement("div",{id:"sug-noResultsFound",role:"option"},v?v(void 0,e):e())}():this._renderSuggestions(),l&&u&&o.createElement(Rp,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:s||{iconName:"Search"},id:O,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},l),f?o.createElement(gy,d({},R,{ariaLabel:y,label:y})):null,!M||u||b||f?null:o.createElement("div",{className:this._classNames.title},M(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==HS.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case HS.forceResolve:this._forceResolve();break;case HS.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:HS.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:HS.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:HS.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:HS.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,n=e.offsetTop,r=this._scrollContainer.current,o=r.offsetHeight,i=r.scrollTop,a=n+t>i+o;n<i?this._scrollContainer.current.scrollTo(0,n):a&&this._scrollContainer.current.scrollTo(0,n-o+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.removeSuggestionAriaLabel,i=t.suggestionsItemClassName,a=t.resultsMaximumNumber,s=t.showRemoveButtons,l=t.removeButtonIconProps,c=this.props.suggestions,u=YS,d=-1;return c.some((function(e,t){return!!e.selected&&(d=t,!0)})),a&&(c=d>=a?c.slice(d-a+1,d+1):c.slice(0,a)),0===c.length?null:o.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},c.map((function(t,a){return o.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:a,role:"presentation"},o.createElement(u,{suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,a),className:i,showRemoveButton:s,removeButtonAriaLabel:r,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,a),id:"sug-"+a,removeButtonIconProps:l}))})))},t}(o.Component),QS={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function ZS(e){var t,n=e.className,r=e.suggestionsClassName,o=e.theme,i=e.forceResolveButtonSelected,a=e.searchForMoreButtonSelected,s=o.palette,l=o.semanticColors,c=o.fonts,u=ka(QS,o),p={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid ".concat(s.neutralLight),height:40,textAlign:"left",width:"100%",fontSize:c.small.fontSize,selectors:{":hover":{backgroundColor:l.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:c.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},h={backgroundColor:s.themeLight,selectors:(t={},t[ca]=d({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)};return{root:[u.root,{minWidth:260},n],suggestionsContainer:[u.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},r],title:[u.title,{padding:"0 12px",fontSize:c.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid ".concat(l.menuItemBackgroundPressed)}],forceResolveButton:[u.forceResolveButton,p,i&&[u.isSelected,h]],searchForMoreButton:[u.searchForMoreButton,p,a&&[u.isSelected,h]],noSuggestions:[u.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:c.small.fontSize,lineHeight:30}],suggestionsAvailable:[u.suggestionsAvailable,ya],subComponentStyles:{spinner:{root:[u.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:c.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}var JS,$S=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.name||t.primaryText}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t,n){if(e&&e.length>0){if(n&&e.length>n){var r=t&&t>n?t+1-n:0;e=e.slice(r,r+n-1)}this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])}else this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}();!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(JS||(JS={})),Na([{rawString:".picker_94f06b16{position:relative}.pickerText_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_94f06b16:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid '},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:"";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}'}]);var ex=Object.freeze({__proto__:null,picker:"picker_94f06b16",pickerText:"pickerText_94f06b16",inputFocused:"inputFocused_94f06b16",inputDisabled:"inputDisabled_94f06b16",pickerInput:"pickerInput_94f06b16",pickerItems:"pickerItems_94f06b16",screenReaderOnly:"screenReaderOnly_94f06b16"}),tx=cn();var nx=function(e){function t(t){var n=e.call(this,t)||this;n.root=o.createRef(),n.input=o.createRef(),n.suggestionElement=o.createRef(),n.SuggestionOfProperType=XS,n._styledSuggestions=vo(n.SuggestionOfProperType,ZS,void 0,{scope:"Suggestions"}),n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then((function(){return t()})):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===gt?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===yt&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,r){n.addItemByIndex(r)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(r)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!zt(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onWrapperClick=function(e){n.state.items.length&&!n.canAddItems()&&n.resetFocus(n.state.items.length-1)},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case ct:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case ot:case it:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case rt:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case bt:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case gt:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case yt:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n._updateSelectedItems(o)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},(function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,r=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):r.then&&r.then((function(e){n.updateSuggestions(e),n.setState({isSearching:!1})}))}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)}));else{var i=n.state.items.concat([r]);n._updateSelectedItems(i)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,r=t.indexOf(e);if(r>=0){var o=t.slice(0,r).concat(t.slice(r+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(o),n._async.setTimeout((function(){n.setState({selectionRemoved:void 0})}),1e3)}},n.removeItems=function(e){var t=n.state.items.filter((function(t){return-1===e.indexOf(t)}));n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case gt:case yt:return!0}return e.which===it},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==JS.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestions(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},br(n),n._async=new we(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n._id=zn(),n._ariaMap={selectedItems:"selected-items-".concat(n._id),selectedSuggestionAlert:"selected-suggestion-alert-".concat(n._id),suggestionList:"suggestion-list-".concat(n._id),combobox:"combobox-".concat(n._id)},n.suggestionStore=new $S,n.selection=new co({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(r),n.state={items:r,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return u(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){if(this.state.items&&this.state.items!==t.items){var n=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(n,!1,!0),this.resetFocus(n)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=e.items,i=this.props,a=i.className,s=i.inputProps,l=i.disabled,c=i.selectionAriaLabel,u=i.selectionRole,p=void 0===u?"list":u,h=i.theme,m=i.styles,f=!!this.state.suggestionsVisible,g=f?this._ariaMap.suggestionList:void 0,v=m?tx(m,{theme:h,className:a,isFocused:n,disabled:l,inputClassName:s&&s.className}):{root:kn("ms-BasePicker",a||""),text:kn("ms-BasePicker-text",ex.pickerText,this.state.isFocused&&ex.inputFocused),itemsWrapper:ex.pickerItems,input:kn("ms-BasePicker-input",ex.pickerInput,s&&s.className),screenReaderText:ex.screenReaderOnly},y=this.props["aria-label"]||(null===s||void 0===s?void 0:s["aria-label"]);return o.createElement("div",{ref:this.root,className:v.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onWrapperClick},this.renderCustomAlert(v.screenReaderText),o.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},c||y),o.createElement(Yv,{selection:this.selection,selectionMode:ao.multiple},o.createElement("div",{className:v.text,"aria-owns":g},r.length>0&&o.createElement("span",{id:this._ariaMap.selectedItems,className:v.itemsWrapper,role:p,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems()),this.canAddItems()&&o.createElement(fu,d({spellCheck:!1},s,{className:v.input,componentRef:this.input,id:(null===s||void 0===s?void 0:s.id)?s.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":f?this.getActiveDescendant():void 0,"aria-controls":g,"aria-describedby":r.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":f,"aria-haspopup":"listbox","aria-label":y,role:"combobox",disabled:l,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?o.createElement(oc,d({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:ps,directionalHintForRTL:ms},this.props.pickerCalloutProps),o.createElement(e,d({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isExtendedLoading:this.state.suggestionsExtendedLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,r=t.removeButtonAriaLabel,o=t.removeButtonIconProps,i=this.props.onRenderItem,a=this.state,s=a.items,l=a.selectedIndices;return s.map((function(t,a){return i({item:t,index:a,key:t.key?t.key:a,selected:-1!==l.indexOf(a),onRemoveItem:function(){return e.removeItem(t)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:r,removeButtonIconProps:o})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length){e=null!==e&&void 0!==e?e:t.length-1;var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index] > button")[Math.min(e,t.length-1)];n&&n.focus()}else this.input.current&&this.input.current.focus()},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){var t,n=null===(t=this.props.pickerSuggestionsProps)||void 0===t?void 0:t.resultsMaximumNumber;this.suggestionStore.updateSuggestions(e,0,n),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var n=this;Array.isArray(e)?this._updateAndResolveValue(t,e):e&&e.then&&(this.setState({suggestionsLoading:!0}),this._startLoadTimer(),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement}),this.currentPromise=e,e.then((function(r){e===n.currentPromise&&n._updateAndResolveValue(t,r)})))},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var r=void 0;this.suggestionStore.currentSuggestion&&(r=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:r,suggestionsVisible:this._getShowSuggestions()},(function(){return n.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?(null===(e=this.suggestionElement.current)||void 0===e?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-".concat(t)}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=ex.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,r=n?n.ariaLabel:void 0;return o.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},"".concat(r," "))}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=ex.screenReaderOnly);var t=this.props.suggestionRemovedText,n=void 0===t?"removed {0}":t,r="";this.state.selectionRemoved&&(r=mo(n,this._getTextFromItem(this.state.selectionRemoved,"")));return o.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),r)},t.prototype._startLoadTimer=function(){var e=this;this._async.setTimeout((function(){e.state.suggestionsLoading&&e.setState({suggestionsExtendedLoading:!0})}),3e3)},t.prototype._updateAndResolveValue=function(e,t){var n;if(void 0!==e)this.resolveNewValue(e,t);else{var r=null===(n=this.props.pickerSuggestionsProps)||void 0===n?void 0:n.resultsMaximumNumber;this.suggestionStore.updateSuggestions(t,-1,r),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(o.Component),rx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=this.props,i=r.className,a=r.inputProps,s=r.disabled,l=r.selectionAriaLabel,c=r.selectionRole,u=void 0===c?"list":c,p=r.theme,h=r.styles,m=!!this.state.suggestionsVisible,f=m?this._ariaMap.suggestionList:void 0,g=h?tx(h,{theme:p,className:i,isFocused:n,inputClassName:a&&a.className}):{root:kn("ms-BasePicker",ex.picker,i||""),text:kn("ms-BasePicker-text",ex.pickerText,this.state.isFocused&&ex.inputFocused,s&&ex.inputDisabled),itemsWrapper:ex.pickerItems,input:kn("ms-BasePicker-input",ex.pickerInput,a&&a.className),screenReaderText:ex.screenReaderOnly},v=this.props["aria-label"]||(null===a||void 0===a?void 0:a["aria-label"]);return o.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},o.createElement("div",{className:g.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(g.screenReaderText),o.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},l||v),o.createElement("div",{className:g.text,"aria-owns":f},o.createElement(fu,d({},a,{className:g.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":m?this.getActiveDescendant():void 0,"aria-controls":f,"aria-expanded":m,"aria-haspopup":"listbox","aria-label":v,"aria-describedby":this.state.items.length>0?this._ariaMap.selectedItems:void 0,role:"combobox",id:(null===a||void 0===a?void 0:a.id)?a.id:this._ariaMap.combobox,disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),o.createElement(Yv,{selection:this.selection,selectionMode:ao.single},o.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:u,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(nx),ox={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function ix(e){var t,n,r,o=e.className,i=e.theme,a=e.isFocused,s=e.inputClassName,l=e.disabled;if(!i)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var c=i.semanticColors,u=i.effects,d=i.fonts,p=c.inputBorder,h=c.inputBorderHovered,m=c.inputFocusBorderAlt,f=ka(ox,i),g=[d.medium,{color:c.inputPlaceholderText,opacity:1,selectors:(t={},t[ca]={color:"GrayText"},t)}],v={color:c.disabledText,selectors:(n={},n[ca]={color:"GrayText"},n)},y="rgba(218, 218, 218, 0.29)";return{root:[f.root,o,{position:"relative"}],text:[f.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid ".concat(p),borderRadius:u.roundedCorner2},!a&&!l&&{selectors:{":hover":{borderColor:h}}},a&&!l&&va(m,u.roundedCorner2),l&&{borderColor:y,selectors:(r={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:y}},r[ca]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},r)}],itemsWrapper:[f.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[f.input,d.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:u.roundedCorner2,backgroundColor:"transparent",color:c.inputText,selectors:{"::-ms-clear":{display:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},qa(g),l&&qa(v),s],screenReaderText:ya}}var ax={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};var sx=cn(),lx=vo((function(e){var t=e.item,n=e.onRemoveItem,r=e.index,i=e.selected,a=e.removeButtonAriaLabel,s=e.styles,l=e.theme,c=e.className,u=e.disabled,p=e.removeButtonIconProps,h=o.createRef(),m=zn(),f=sx(s,{theme:l,className:c,selected:i,disabled:u,invalid:t.ValidationState===JS.warning}),g=f.subComponentStyles?f.subComponentStyles.persona:void 0,v=f.subComponentStyles?f.subComponentStyles.personaCoin:void 0;return o.createElement("div",{"data-selection-index":r,className:f.root,role:"listitem",key:r,onClick:function(){var e;null===(e=h.current)||void 0===e||e.focus()}},o.createElement("div",{className:f.itemContent,id:"selectedItemPersona-"+m},o.createElement(hu,d({size:Nc.size24,styles:g,coinProps:{styles:v}},t))),o.createElement(Pp,{componentRef:h,id:m,onClick:n,disabled:u,iconProps:null!==p&&void 0!==p?p:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:f.removeButton,ariaLabel:a,"aria-labelledby":"".concat(m," selectedItemPersona-").concat(m)}))}),(function(e){var t,n,r,o,i,a,s,l,c=e.className,u=e.theme,p=e.selected,h=e.invalid,m=e.disabled,f=u.palette,g=u.semanticColors,v=u.fonts,y=ka(ax,u),b=[p&&!h&&!m&&{color:f.white,selectors:(t={":hover":{color:f.white}},t[ca]={color:"HighlightText"},t)},(h&&!p||h&&p&&m)&&{color:f.redDark,borderBottom:"2px dotted ".concat(f.redDark),selectors:(n={},n[".".concat(y.root,":hover &")]={color:f.redDark},n)},h&&p&&!m&&{color:f.white,borderBottom:"2px dotted ".concat(f.white)},m&&{selectors:(r={},r[ca]={color:"GrayText"},r)}],C=[p&&!h&&!m&&{color:f.white,selectors:(o={":hover":{color:f.white}},o[ca]={color:"HighlightText"},o)}],S=[h&&{fontSize:v.xLarge.fontSize}];return{root:[y.root,fa(u,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:f.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(i={":hover":{background:p||m?"":f.neutralLight}},i[ca]=[{border:"1px solid WindowText"},m&&{borderColor:"GrayText"}],i)},p&&!m&&[y.isSelected,{background:f.themePrimary,selectors:(a={},a[ca]=d({borderColor:"HighLight",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}],h&&[y.isInvalid],h&&p&&!m&&{background:f.redDark},c],itemContent:[y.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[y.removeButton,{borderRadius:15,color:f.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:f.neutralTertiaryAlt,color:f.neutralDark}}},p&&[fa(u,{inset:2,borderColor:"transparent",highContrastStyle:{inset:2,left:1,top:1,bottom:1,right:1,outlineColor:"ButtonText"},outlineColor:f.white,borderRadius:15}),{color:f.white,selectors:(s={":hover":{color:f.white,background:f.themeDark},":active":{color:f.white,background:f.themeDarker}},s[ca]={color:"HighlightText"},s)},h&&{selectors:{":hover":{background:f.red},":active":{background:f.redDark}}}],m&&{selectors:(l={},l[".".concat(cp.msButtonIcon)]={color:g.buttonText},l)}],subComponentStyles:{persona:{primaryText:b,secondaryText:C},personaCoin:{initials:S}}}}),void 0,{scope:"PeoplePickerItem"}),cx={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var ux=cn(),dx=vo((function(e){var t=e.personaProps,n=e.suggestionsProps,r=e.compact,i=e.styles,a=e.theme,s=e.className,l=ux(i,{theme:a,className:n&&n.suggestionsItemClassName||s}),c=l.subComponentStyles&&l.subComponentStyles.persona?l.subComponentStyles.persona:void 0;return o.createElement("div",{className:l.root},o.createElement(hu,d({size:Nc.size24,styles:c,className:l.personaWrapper,showSecondaryText:!r,showOverflowTooltip:!1},t)))}),(function(e){var t,n,r,o=e.className,i=e.theme,a=ka(cx,i),s={selectors:(t={},t[".".concat(jS.isSuggested," &")]={selectors:(n={},n[ca]={color:"HighlightText"},n)},t[".".concat(a.root,":hover &")]={selectors:(r={},r[ca]={color:"HighlightText"},r)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},o],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}),void 0,{scope:"PeoplePickerItemSuggestion"}),px=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(nx),hx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(rx),mx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(lx,d({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(dx,{personaProps:e,suggestionsProps:t})},createGenericItem:vx},t}(px),fx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(lx,d({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(dx,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:vx},t}(px),gx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(lx,d({},e))},onRenderSuggestionsItem:function(e,t){return o.createElement(dx,{personaProps:e,suggestionsProps:t})},createGenericItem:vx},t}(hx);function vx(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==JS.warning&&(n.imageInitials=Yr(e,Ot())),n}vo(mx,ix,void 0,{scope:"NormalPeoplePicker"}),vo(fx,ix,void 0,{scope:"CompactPeoplePicker"}),vo(gx,ix,void 0,{scope:"ListPeoplePickerBase"});var yx={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"};var bx=cn(),Cx=vo((function(e){var t=e.theme,n=e.styles,r=e.selected,i=e.disabled,a=e.enableTagFocusInDisabledPicker,s=e.children,l=e.className,c=e.index,u=e.onRemoveItem,p=e.removeButtonAriaLabel,h=e.title,m=void 0===h?"string"===typeof e.children?e.children:e.item.name:h,f=e.removeButtonIconProps,g=o.createRef(),v=bx(n,{theme:t,className:l,selected:r,disabled:i}),y=cl(),b=a?{"aria-disabled":i,tabindex:0}:{disabled:i};return o.createElement("div",{"data-selection-index":c,className:v.root,role:"listitem",key:c,onClick:function(){var e;null===(e=g.current)||void 0===e||e.focus()}},o.createElement("span",{className:v.text,title:m,id:"".concat(y,"-text")},s),o.createElement(Pp,d({componentRef:g,id:y,onClick:u},b,{iconProps:null!==f&&void 0!==f?f:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:v.close,"aria-labelledby":"".concat(y,"-removeLabel ").concat(y,"-text")})),o.createElement("span",{id:"".concat(y,"-removeLabel"),hidden:!0},p))}),(function(e){var t,n,r,o,i,a=e.className,s=e.theme,l=e.selected,c=e.disabled,u=s.palette,d=s.effects,p=s.fonts,h=s.semanticColors,m=ka(yx,s);return{root:[m.root,p.medium,fa(s),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:d.roundedCorner2,color:h.inputText,background:u.neutralLighter,selectors:(t={":hover":[!c&&!l&&{color:u.neutralDark,background:u.neutralLight,selectors:{".ms-TagItem-close":{color:u.neutralPrimary}}},c&&{background:u.neutralLighter}]},t[ca]={border:"1px solid ".concat(l?"WindowFrame":"WindowText")},t)},c&&{selectors:(n={},n[ca]={borderColor:"GrayText"},n)},l&&!c&&[m.isSelected,{background:u.themePrimary,color:u.white}],a],text:[m.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},c&&{selectors:(r={},r[ca]={color:"GrayText"},r)}],close:[m.close,fa(s,{borderColor:"transparent",inset:1,outlineColor:u.white}),{color:u.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:Ot(s)?"".concat(d.roundedCorner2," 0 0 ").concat(d.roundedCorner2):"0 ".concat(d.roundedCorner2," ").concat(d.roundedCorner2," 0"),selectors:(o={":hover":{background:u.neutralQuaternaryAlt,color:u.neutralPrimary}},o[".".concat(m.isSelected," &, :focus")]={color:u.white,background:u.themePrimary},o[":focus:hover"]={color:u.white,background:u.themeDark},o[":active"]={color:u.white,backgroundColor:u.themeDark},o)},c&&{selectors:(i={},i[".".concat(cp.msButtonIcon)]={color:u.neutralSecondary},i)}]}}),void 0,{scope:"TagItem"}),Sx={suggestionTextOverflow:"ms-TagItem-TextOverflow"};var xx=cn(),_x=vo((function(e){var t=e.styles,n=e.theme,r=e.children,i=xx(t,{theme:n});return o.createElement("div",{className:i.suggestionTextOverflow}," ",r," ")}),(function(e){var t=e.className,n=e.theme;return{suggestionTextOverflow:[ka(Sx,n).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}),void 0,{scope:"TagItemSuggestion"}),Ex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.defaultProps={onRenderItem:function(e){return o.createElement(Cx,d({},e),e.item.name)},onRenderSuggestionsItem:function(e){return o.createElement(_x,null,e.name)}},t}(nx);vo(Ex,ix,void 0,{scope:"TagPicker"});Na([{rawString:".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var kx=Object.freeze({__proto__:null,suggestionsContainer:"suggestionsContainer_44c59fda"}),wx=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=o.createRef(),n.SuggestionsItemOfProperType=GS,n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},br(n),n.currentIndex=-1,n}return u(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.suggestionsItemClassName,i=t.resultsMaximumNumber,a=t.showRemoveButtons,s=t.suggestionsContainerAriaLabel,l=this.SuggestionsItemOfProperType,c=this.props.suggestions;return i&&(c=c.slice(0,i)),o.createElement("div",{className:kn("ms-Suggestions-container",kx.suggestionsContainer),id:"suggestion-list",role:"listbox","aria-label":s},c.map((function(t,i){return o.createElement("div",{ref:t.selected||i===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:i,id:"sug-"+i},o.createElement(l,{id:"sug-item"+i,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:r,showRemoveButton:a,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),isSelectedOverride:i===e.currentIndex}))})))},t.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},t}(o.Component);Na([{rawString:".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_ade399af:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var Ix,Px=Object.freeze({__proto__:null,root:"root_ade399af",actionButton:"actionButton_ade399af",buttonSelected:"buttonSelected_ade399af",suggestionsTitle:"suggestionsTitle_ade399af",suggestionsSpinner:"suggestionsSpinner_ade399af",itemButton:"itemButton_ade399af",screenReaderOnly:"screenReaderOnly_ade399af"});!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(Ix||(Ix={}));var Tx=function(e){function t(t){var n=e.call(this,t)||this;return br(n),n}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,r=t.onExecute,i=t.isSelected,a=t.id,s=t.className;return r?o.createElement("div",{id:a,onClick:r,className:kn("ms-Suggestions-sectionButton",s,Px.actionButton,(e={},e["is-selected "+Px.buttonSelected]=i,e))},n()):o.createElement("div",{id:a,className:kn("ms-Suggestions-section",s,Px.suggestionsTitle)},n())},t}(o.Component),Dx=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=o.createRef(),n._suggestions=o.createRef(),n.SuggestionsOfProperType=wx,br(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return u(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},(function(){t.resetSelectedItem()}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,r=e.footerItemsProps,i=e.suggestionsAvailableAlertText,a=me(ya),s=this.state.suggestions&&this.state.suggestions.length>0&&i;return o.createElement("div",{className:kn("ms-Suggestions",t||"",Px.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),r&&this.renderFooterItems(),s?o.createElement("span",{role:"alert","aria-live":"polite",className:a},i):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement},enumerable:!1,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,r=t.footerItemsProps,o=this.state,i=o.selectedHeaderIndex,a=o.selectedFooterIndex;if(n&&-1!==i&&i<n.length){var s=n[i];s.onExecute&&s.onExecute()}else if(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(r&&-1!==a&&a<r.length){var l=r[a];l.onExecute&&l.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(n=this._suggestions.current)||void 0===n?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,r,o,i=this.state,a=i.selectedHeaderIndex,s=i.selectedFooterIndex,l=!1;return e===yt?-1!==a||(null===(t=this._suggestions.current)||void 0===t?void 0:t.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectNextItem(Ix.header),l=!0):(null===(n=this._suggestions.current)||void 0===n?void 0:n.hasSuggestionSelected())?(this.selectNextItem(Ix.suggestion),l=!0):-1!==s&&(this.selectNextItem(Ix.footer),l=!0):this.selectFirstItem():e===gt?-1!==a||(null===(r=this._suggestions.current)||void 0===r?void 0:r.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectPreviousItem(Ix.header),l=!0):(null===(o=this._suggestions.current)||void 0===o?void 0:o.hasSuggestionSelected())?(this.selectPreviousItem(Ix.suggestion),l=!0):-1!==s&&(this.selectPreviousItem(Ix.footer),l=!0):this.selectLastItem():e!==it&&e!==ot||this.hasSelection()&&(this.executeSelectedAction(),l=!0),l},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,r=t.suggestionsHeaderContainerAriaLabel,i=this.state.selectedHeaderIndex;return n?o.createElement("div",{className:kn("ms-Suggestions-headerContainer",Px.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==i&&i===n;return t.shouldShow()?o.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},o.createElement(Tx,{id:"sug-header-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,r=t.suggestionsFooterContainerAriaLabel,i=this.state.selectedFooterIndex;return n?o.createElement("div",{className:kn("ms-Suggestions-footerContainer",Px.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==i&&i===n;return t.shouldShow()?o.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},o.createElement(Tx,{id:"sug-footer-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return o.createElement(e,d({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)}else this._selectNextItemOfItemType(e)},t.prototype.selectPreviousItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)}else this._selectPreviousItemOfItemType(e)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(Ix.header)||this._selectNextItemOfItemType(Ix.suggestion)||this._selectNextItemOfItemType(Ix.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(Ix.footer)||this._selectPreviousItemOfItemType(Ix.suggestion)||this._selectPreviousItemOfItemType(Ix.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,r;if(void 0===t&&(t=-1),e===Ix.suggestion){if(this.state.suggestions.length>t+1)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===Ix.header,i=o?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&i.length>t+1)for(var a=t+1;a<i.length;a++){var s=i[a];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:o?a:-1}),this.setState({selectedFooterIndex:o?-1:a}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,r;if(e===Ix.suggestion){if((o=void 0!==t?t:this.state.suggestions.length)>0)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o,i=e===Ix.header,a=i?this.props.headerItemsProps:this.props.footerItemsProps;if(a)if((o=void 0!==t?t:a.length)>0)for(var s=o-1;s>=0;s--){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:i?s:-1}),this.setState({selectedFooterIndex:i?-1:s}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case Ix.header:return this.state.selectedHeaderIndex;case Ix.suggestion:return this._suggestions.current.currentIndex;case Ix.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case Ix.header:return Ix.suggestion;case Ix.suggestion:return Ix.footer;case Ix.footer:return Ix.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case Ix.header:return Ix.footer;case Ix.suggestion:return Ix.header;case Ix.footer:return Ix.suggestion}},t}(o.Component),Ax=VS,Rx=function(e){function t(t){var n=e.call(this,t)||this;return n.root=o.createRef(),n.suggestionsControl=o.createRef(),n.SuggestionsControlOfProperType=Dx,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var r=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(r),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,r){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(r)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case ct:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case ot:case it:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case bt:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case gt:case yt:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new we(n),br(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return u(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return o.createElement("div",{ref:this.root,className:kn("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?o.createElement(oc,d({className:Ax.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:ps,directionalHintForRTL:ms,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),o.createElement(e,d({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this;Array.isArray(e)?this.updateSuggestions(e,!0):e&&e.then&&(this.currentPromise=e,e.then((function(n){e===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(n,!0)})))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(o.Component);Na([{rawString:".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var Nx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(Rx);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}u(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return n=d({},e),d({},t),o.createElement("div",{className:kn("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_f73be5be")},o.createElement(hu,d({presence:void 0!==n.presence?n.presence:Mc.none,size:Nc.size40,className:kn("ms-PeoplePicker-Persona","peoplePickerPersona_f73be5be"),showSecondaryText:!0},n)));var n},createGenericItem:Mx}}(Nx);function Mx(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=Yr(e,Ot())),n}!function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]}}();var Fx,Bx,Ox={host:"ms-HoverCard-host"};!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Fx||(Fx={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Bx||(Bx={}));var Lx,Hx={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Lx||(Lx={}));var Vx=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?ps:r,a=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,c=e.trapFocus,u=e.onLeave,p=e.className,h=e.finalHeight,m=e.content,f=e.calloutProps,g=d(d(d({},mr(e,hr)),{className:p,target:s,isBeakVisible:!1,directionalHint:i,directionalHintFixed:a,finalHeight:h,minPagePadding:24,onDismiss:u,gapSpace:n}),f);return o.createElement(o.Fragment,null,c?o.createElement(cc,d({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),m):o.createElement(oc,d({},g),m))},zx=cn(),Ux=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=o.createRef(),n._onKeyDown=function(e){e.which===ct&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return o.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),o.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},o.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new we(n),br(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return u(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,i=e.theme,a=e.mode,s=e.className,l=this.state,c=l.needsScroll,u=l.firstFrameRendered,p=n+r;this._classNames=zx(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===Lx.expanded&&u});var h=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return o.createElement(Vx,d({},this.props,{content:h,finalHeight:p,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(o.Component),Wx=vo(Ux,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=ka(Hx,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[ca]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Gx={root:"ms-PlainCard-root"};var jx=cn(),qx=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ct&&n.props.onLeave&&n.props.onLeave(e)},br(n),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=jx(t,{theme:n,className:r});var i=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return o.createElement(Vx,d({},this.props,{content:i,className:this._classNames.root}))},t}(o.Component),Kx=vo(qx,(function(e){var t,n=e.theme,r=e.className;return{root:[ka(Gx,n).root,{pointerEvents:"auto",selectors:(t={},t[ca]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Yx=cn(),Xx=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=o.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Lx.compact,openMode:"keydown"===e.type?Fx.hotKey:Fx.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ct)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ct||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Lx.compact,openMode:Fx.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Lx.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},br(n),n._async=new we(n),n._events=new Ae(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Lx.compact,openMode:Fx.hover},n}return u(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Lx.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Lx.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,i=e.setAriaDescribedBy,a=void 0===i||i,s=e.styles,l=e.theme,c=e.className,u=e.type,p=e.plainCardProps,h=e.trapFocus,m=e.setInitialFocus,f=this.state,g=f.isHoverCardVisible,v=f.mode,y=f.openMode,b=r||zn("hoverCard");this._classNames=Yx(s,{theme:l,className:c});var C=d(d({},mr(this.props,hr)),{id:b,trapFocus:!!h,firstFocus:m||y===Fx.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),S=d(d(d({},t),C),{mode:v}),x=d(d({},p),C);return o.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&g?b:void 0,"data-is-focusable":!this.props.target},n,g&&(u===Bx.expanding?o.createElement(Wx,d({},S)):o.createElement(Kx,d({},x))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Re().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:_t,type:Bx.expanding},t}(o.Component);vo(Xx,(function(e){var t=e.className,n=e.theme;return{host:[ka(Ox,n).host,t]}}),void 0,{scope:"HoverCard"});A("@fluentui/font-icons-mdl2","8.5.23");"".concat("https://res.cdn.office.net/files/fabric-cdn-prod_20230524.001","/assets/icons/"),ke();var Qx,Zx,Jx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,r=e.theme,i=e.disabled,a=e.visible,s=cn()(n,{theme:r,disabled:i,visible:a});return o.createElement("div",{className:s.container},o.createElement("span",{className:s.root},t))},t}(o.Component),$x=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},e_=function(e){return function(t){return ve({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},t_=vo(Jx,(function(e){var t,n=e.theme,r=e.disabled,o=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},r&&{opacity:.5,selectors:(t={},t[ca]={color:"GrayText",opacity:1},t)},!o&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},r&&{color:n.palette.neutralTertiaryAlt}]}}),void 0,{scope:"KeytipContent"}),n_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,r=t.offset,i=t.overflowSetSequence,a=this.props.calloutProps,s=function(e){var t=Re().querySelectorAll(e);return Array.from(t).find((function(e){return Zt(e)}))}(e=Sd(i?Cd(n,i):n));return s?(e=s,r&&(a=d(d({},a),{coverTarget:!0,directionalHint:ls})),a&&void 0!==a.directionalHint||(a=d(d({},a),{directionalHint:hs})),o.createElement(oc,d({},a,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:r?e_(r):$x,preventDismissOnScroll:!0,target:e}),o.createElement(t_,d({},this.props)))):o.createElement(o.Fragment,null)},t}(o.Component),r_=function(e){return{root:[{zIndex:la.KeytipLayer}]}},o_=function(){function e(){this.nodeMap={},this.root={id:vd,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var r=this._getFullSequence(e),o=bd(r);r.pop();var i=this._getParentID(r),a=this._createNode(o,i,[],e,n);this.nodeMap[t]=a,this.getNodes([i]).forEach((function(e){return e.children.push(o)}))},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),r=bd(n);n.pop();var o=this._getParentID(n),i=this.nodeMap[t],a=i.parent;if(i){if(a!==o&&this._removeChildFromParents(a,i.id),i.id!==r)this.getNodes([o]).forEach((function(e){var t=e.children.indexOf(i.id);t>=0?e.children[t]=r:e.children.push(r)}));i.id=r,i.keySequences=e.keySequences,i.overflowSetSequence=e.overflowSetSequence,i.onExecute=e.onExecute,i.onReturn=e.onReturn,i.hasDynamicChildren=e.hasDynamicChildren,i.hasMenu=e.hasMenu,i.parent=o,i.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),r=bd(n);n.pop(),this._removeChildFromParents(this._getParentID(n),r),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t){var n=this,r=this.getNodes(t.children).filter((function(t){return n._getNodeSequence(t)===e&&!t.disabled}));if(0!==r.length){var o=r[0];if(1===r.length)return o;var i=o.keySequences,a=o.overflowSetSequence,s=Sd(a?Cd(i,a):i),l=document.querySelectorAll(s);if(r.length<l.length)return o;var c=Array.from(l).findIndex((function(e){return Zt(e)}));return-1!==c?r[c]:r.find((function(e){return e.hasOverflowSubMenu}))||o}},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter((function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled}))},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce((function(e,r){return n.indexOf(t.nodeMap[r].id)>=0&&!t.nodeMap[r].persisted&&e.push(t.nodeMap[r].id),e}),[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce((function(n,r){return e.indexOf(t.nodeMap[r].id)>=0&&n.push(t.nodeMap[r]),n}),[])},e.prototype.getNode=function(e){var t;return At((t=this.nodeMap,Object.keys(t).reduce((function(e,n){return e.push(t[n]),e}),[])),(function(t){return t.id===e}))},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=m([],e.keySequences,!0);e.overflowSetSequence&&(t=Cd(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:bd(t),r=!1;if(this.currentKeytip.overflowSetSequence)r=bd(this.currentKeytip.keySequences)===n;return r||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:bd(e)},e.prototype._getFullSequence=function(e){var t=m([],e.keySequences,!0);return e.overflowSetSequence&&(t=Cd(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=m([],e.keySequences,!0);return e.overflowSetSequence&&(t=Cd(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,r,o){var i=this,a=r.keySequences,s=r.hasDynamicChildren,l=r.overflowSetSequence,c=r.hasMenu,u=r.onExecute,d=r.onReturn,p=r.disabled,h=r.hasOverflowSubMenu,m={id:e,keySequences:a,overflowSetSequence:l,parent:t,children:n,onExecute:u,onReturn:d,hasDynamicChildren:s,hasMenu:c,disabled:p,persisted:o,hasOverflowSubMenu:h};return m.children=Object.keys(this.nodeMap).reduce((function(t,n){return i.nodeMap[n].parent===e&&t.push(i.nodeMap[n].id),t}),[]),m},e.prototype._removeChildFromParents=function(e,t){this.getNodes([e]).forEach((function(e){var n=e.children.indexOf(t);n>=0&&e.children.splice(n,1)}))},e}(),i_={key:ro()?"Control":"Meta",modifierKeys:[lt]},a_=i_,s_={key:"Escape"},l_=cn(),c_=function(e){function t(t,n){var r=e.call(this,t,n)||this;r._keytipManager=yd.getInstance(),r._delayedKeytipQueue=[],r._keyHandled=!1,r._onDismiss=function(e){r.state.inKeytipMode&&r._exitKeytipMode(e)},r._onKeyDown=function(e){r._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":r.state.inKeytipMode&&(r._keyHandled=!0,r._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var n={key:t};n.modifierKeys=r._getModifierKey(t,e),r.processTransitionInput(n,e)}},r._onKeyPress=function(e){r.state.inKeytipMode&&!r._keyHandled&&(r.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},r._onKeytipAdded=function(e){var t,n=e.keytip,o=e.uniqueID;if(r._keytipTree.addNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(bd(n.keySequences)),r._keytipTree.currentKeytip&&r._keytipTree.currentKeytip.hasDynamicChildren&&r._keytipTree.currentKeytip.children.indexOf(n.id)<0)){var i=r._keytipTree.getNode(r._keytipTree.currentKeytip.id);i&&(r._keytipTree.currentKeytip=i)}r._persistedKeytipChecks(n)},r._onKeytipUpdated=function(e){var t,n=e.keytip,o=e.uniqueID;r._keytipTree.updateNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(bd(n.keySequences))),r._persistedKeytipChecks(n)},r._persistedKeytipChecks=function(e){if(r._newCurrentKeytipSequences&&Rt(e.keySequences,r._newCurrentKeytipSequences)&&r._triggerKeytipImmediately(e),r._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=Cd(t,e.overflowSetSequence)),r._keytipTree.currentKeytip=r._keytipTree.getNode(bd(t))}},r._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._removeKeytipFromQueue(bd(t.keySequences)),r._keytipTree.removeNode(t,n),r._setKeytips()},r._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.addNode(t,n,!0)},r._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.removeNode(t,n)},r._onPersistedKeytipExecute=function(e){r._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},r._setInKeytipMode=function(e){r.setState({inKeytipMode:e}),r._keytipManager.inKeytipMode=e},r._warnIfDuplicateKeytips=function(){var e=r._getDuplicateIds(r._keytipTree.getChildren());e.length&&je("Duplicate keytips found for "+e.join(", "))},r._getDuplicateIds=function(e){var t={};return e.filter((function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]}))},br(r),r._events=new Ae(r),r._async=new we(r);var o=r._keytipManager.getKeytips();return r.state={inKeytipMode:!1,keytips:o,visibleKeytips:r._getVisibleKeytips(o)},r._buildTree(),r._currentSequence="",r._events.on(r._keytipManager,md.KEYTIP_ADDED,r._onKeytipAdded),r._events.on(r._keytipManager,md.KEYTIP_UPDATED,r._onKeytipUpdated),r._events.on(r._keytipManager,md.KEYTIP_REMOVED,r._onKeytipRemoved),r._events.on(r._keytipManager,md.PERSISTED_KEYTIP_ADDED,r._onPersistedKeytipAdded),r._events.on(r._keytipManager,md.PERSISTED_KEYTIP_REMOVED,r._onPersistedKeytipRemoved),r._events.on(r._keytipManager,md.PERSISTED_KEYTIP_EXECUTE,r._onPersistedKeytipExecute),r}return u(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.styles,i=this.state,a=i.keytips,s=i.visibleKeytips;return this._classNames=l_(r,{}),o.createElement(rc,{styles:r_},o.createElement("span",{id:vd,className:this._classNames.innerContent},"".concat(n).concat(", ")),a&&a.map((function(t,n){return o.createElement("span",{key:n,id:bd(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(", "))})),s&&s.map((function(e){return o.createElement(n_,d({key:bd(e.keySequences)},e))})))},t.prototype.componentDidMount=function(){this._events.on(window,"mouseup",this._onDismiss,!0),this._events.on(window,"pointerup",this._onDismiss,!0),this._events.on(window,"resize",this._onDismiss),this._events.on(window,"keydown",this._onKeyDown,!0),this._events.on(window,"keypress",this._onKeyPress,!0),this._events.on(window,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,md.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,md.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;hd(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):hd(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):hd(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,r=this._keytipTree.currentKeytip;if(r){var o=this._keytipTree.getExactMatchedNode(n,r);if(o){this._keytipTree.currentKeytip=r=o;var i=this._keytipTree.getChildren();return r.onExecute&&(r.onExecute(this._getKtpExecuteTarget(r),this._getKtpTarget(r)),r=this._keytipTree.currentKeytip),0!==i.length||r.hasDynamicChildren||r.hasMenu?(this.showKeytips(i),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}var a=this._keytipTree.getPartiallyMatchedNodes(n,r);if(a.length>0){var s=a.filter((function(e){return!e.persisted})).map((function(e){return e.id}));this.showKeytips(s),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var r=n[t],o=bd(r.keySequences);r.overflowSetSequence&&(o=bd(Cd(r.keySequences,r.overflowSetSequence))),e.indexOf(o)>=0?r.visible=!0:r.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},t.prototype._buildTree=function(){this._keytipTree=new o_;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],r=this._keytipManager.keytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}for(var o=0,i=Object.keys(this._keytipManager.persistedKeytips);o<i.length;o++){n=i[o],r=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(bd(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t={};return e.filter((function(e){var n=bd(e.keySequences);return e.overflowSetSequence&&(n=bd(Cd(e.keySequences,e.overflowSetSequence))),t[n]=t[n]?t[n]+1:1,e.visible&&1===t[n]}))},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(lt),t.ctrlKey&&"Control"!==e&&n.push(st),t.shiftKey&&"Shift"!==e&&n.push(at),t.metaKey&&"Meta"!==e&&n.push(wt),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=m([],e.keySequences,!0);if(e.overflowSetSequence&&(t=Cd(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(bd(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300))},t.prototype._getKtpExecuteTarget=function(e){return Re().querySelector('[data-ktp-execute-target="'+e.id+'"]')},t.prototype._getKtpTarget=function(e){return Re().querySelector(Sd(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!Rt(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[i_],keytipExitSequences:[a_],keytipReturnSequences:[s_],content:""},t}(o.Component),u_=(vo(c_,(function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}}),void 0,{scope:"KeytipLayer"}),cn()),d_=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onMouseDown=function(e){var t=n.props,r=t.isEnabled,o=t.onShouldStartSelection;n._isMouseEventOnScrollbar(e)||n._isInSelectionToggle(e)||n._isTouch||!r||n._isDragStartInSelection(e)||o&&!o(e)||n._scrollableSurface&&0===e.button&&n._root.current&&(n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(window,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(window,"click",n._onMouseUp,!0),n._autoScroll=new We(n._root.current),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e))},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0))},br(n),n._async=new we(n),n._events=new Ae(n),n.state={dragRect:void 0},n}return u(t,e),t.prototype.componentDidMount=function(){this._scrollableParent=Ve(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,r=e.theme,i=e.className,a=e.styles,s=this.state.dragRect,l=u_(a,{theme:r,className:i});return o.createElement("div",d({},t,{className:l.root,ref:this._root}),n,s&&o.createElement("div",{className:l.dragMask}),s&&o.createElement("div",{className:l.box,style:s},o.createElement("div",{className:l.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth,r=t.offsetHeight-t.clientHeight;if(n||r){var o=t.getBoundingClientRect();if(Ot(this.props.theme)){if(e.clientX<o.left+n)return!0}else if(e.clientX>o.left+t.clientWidth)return!0;if(e.clientY>o.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame((function(){t._onMouseMove(e)})),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||function(e,t){var n=e.left||e.x||0,r=e.top||e.y||0,o=t.left||t.x||0,i=t.top||t.y||0;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}(this._dragOrigin,n)>5){if(!this.state.dragRect){var r=this.props.selection;e.shiftKey||r.setAllSelected(!1),this._preservedIndicies=r&&r.getSelectedIndices&&r.getSelectedIndices()}var o=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},i={left:Math.min(this._dragOrigin.left||0,o.left),top:Math.min(this._dragOrigin.top||0,o.top),width:Math.abs(o.left-(this._dragOrigin.left||0)),height:Math.abs(o.top-(this._dragOrigin.top||0))};this._evaluateSelection(i,t),this.setState({dragRect:i})}return!1}},t.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),r=0;r<n.length;r++){var o=n[r],i=Number(o.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){var a=o.getBoundingClientRect();if(this._isPointInRectangle(a,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,r=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var o=0;o<r.length;o++){var i=r[o],a=i.getAttribute("data-selection-index"),s=this._itemRectCache[a];s||(s={left:(s=i.getBoundingClientRect()).left-t.left,top:s.top-t.top,width:s.width,height:s.height,right:s.left-t.left+s.width,bottom:s.top-t.top+s.height}).width>0&&s.height>0&&(this._itemRectCache[a]=s),s.top<e.top+e.height&&s.bottom>e.top&&s.left<e.left+e.width&&s.right>e.left?this._selectedIndicies[a]=!0:delete this._selectedIndicies[a]}var l=this._allSelectedIndices||{};for(var a in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(a)&&(this._allSelectedIndices[a]=!0);if(this._preservedIndicies)for(var c=0,u=this._preservedIndicies;c<u.length;c++){a=u[c];this._allSelectedIndices[a]=!0}var d=!1;for(var a in this._allSelectedIndices)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(!d)for(var a in l)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(d){n.setChangeEvents(!1),n.setAllSelected(!1);for(var p=0,h=Object.keys(this._allSelectedIndices);p<h.length;p++){a=h[p];n.setIndexSelected(Number(a),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t}(o.Component);vo(d_,(function(e){var t,n,r,o=e.theme,i=e.className,a=o.palette;return{root:[i,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:(t={},t[ca]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid ".concat(a.themePrimary),pointerEvents:"none",zIndex:10,selectors:(n={},n[ca]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:a.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:(r={},r[ca]={background:"none",backgroundColor:"transparent"},r)}]}}),void 0,{scope:"MarqueeSelection"});!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Qx||(Qx={}));var p_,h_,m_,f_,g_=((Zx={})[Qx.info]="Info",Zx[Qx.warning]="Info",Zx[Qx.error]="ErrorBadge",Zx[Qx.blocked]="Blocked2",Zx[Qx.severeWarning]="Warning",Zx[Qx.success]="Completed",Zx),v_=cn(),y_=function(e){switch(e){case Qx.blocked:case Qx.error:case Qx.severeWarning:return"assertive"}return"polite"},b_=function(e){switch(e){case Qx.blocked:case Qx.error:case Qx.severeWarning:return"alert"}return"status"},C_=o.forwardRef((function(e,t){var n=al(!1),r=n[0],i=n[1].toggle,a=cl("MessageBar"),s=e.actions,l=e.className,c=e.children,u=e.overflowButtonAriaLabel,p=e.dismissIconProps,h=e.styles,m=e.theme,f=e.messageBarType,g=void 0===f?Qx.info:f,v=e.onDismiss,y=void 0===v?void 0:v,b=e.isMultiline,C=void 0===b||b,S=e.truncated,x=e.dismissButtonAriaLabel,_=e.messageBarIconProps,E=e.role,k=e.delayedRender,w=void 0===k||k,I=e.expandButtonProps,P=mr(e,qn,["className","role"]),T=v_(h,{theme:m,messageBarType:g||Qx.info,onDismiss:void 0!==y,actions:void 0!==s,truncated:S,isMultiline:C,expandSingleLine:r,className:l}),D={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},A=s||y?{"aria-describedby":a,role:"region"}:{},R=s?o.createElement("div",{className:T.actions},s):null,N=y?o.createElement(Pp,{disabled:!1,className:T.dismissal,onClick:y,iconProps:p||{iconName:"Clear"},title:x,ariaLabel:x}):null;return o.createElement("div",d({ref:t,className:T.root},A),o.createElement("div",{className:T.content},o.createElement("div",{className:T.iconContainer,"aria-hidden":!0},_?o.createElement(Rc,d({},_,{className:kn(T.icon,_.className)})):o.createElement(Rc,{iconName:g_[g],className:T.icon})),o.createElement("div",{className:T.text,id:a,role:E||b_(g),"aria-live":y_(g)},o.createElement("span",d({className:T.innerText},P),w?o.createElement(Ze,null,o.createElement("span",null,c)):o.createElement("span",null,c))),!C&&!R&&S&&o.createElement("div",{className:T.expandSingleLine},o.createElement(Pp,d({disabled:!1,className:T.expand,onClick:i,iconProps:D,ariaLabel:u,"aria-expanded":r},I))),!C&&R,!C&&N&&o.createElement("div",{className:T.dismissSingleLine},N),C&&N),C&&R)}));C_.displayName="MessageBar";var S_,x_={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},__=((p_={})[Qx.error]="errorBackground",p_[Qx.blocked]="errorBackground",p_[Qx.success]="successBackground",p_[Qx.warning]="warningBackground",p_[Qx.severeWarning]="severeWarningBackground",p_[Qx.info]="infoBackground",p_),E_=((h_={})[Qx.error]="errorIcon",h_[Qx.blocked]="errorIcon",h_[Qx.success]="successIcon",h_[Qx.warning]="warningIcon",h_[Qx.severeWarning]="severeWarningIcon",h_[Qx.info]="infoIcon",h_),k_=((m_={})[Qx.error]="#ff0000",m_[Qx.blocked]="#ff0000",m_[Qx.success]="#bad80a",m_[Qx.warning]="#fff100",m_[Qx.severeWarning]="#ff0000",m_[Qx.info]="WindowText",m_),w_=((f_={})[Qx.error]="#e81123",f_[Qx.blocked]="#e81123",f_[Qx.success]="#107c10",f_[Qx.warning]="#966400",f_[Qx.severeWarning]="#d83b01",f_[Qx.info]="WindowText",f_),I_=(vo(C_,(function(e){var t,n,r,o,i,a,s,l,c,u,p,h=e.theme,m=e.className,f=e.onDismiss,g=e.truncated,v=e.isMultiline,y=e.expandSingleLine,b=e.messageBarType,C=void 0===b?Qx.info:b,S=h.semanticColors,x=h.fonts,_=ma(0,ha),E=ka(x_,h),k={fontSize:oi.xSmall,height:10,lineHeight:"10px",color:S.messageText,selectors:(t={},t[ca]=d(d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),t)},w=[fa(h,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":k,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[E.root,x.medium,C===Qx.error&&E.error,C===Qx.blocked&&E.blocked,C===Qx.severeWarning&&E.severeWarning,C===Qx.success&&E.success,C===Qx.warning&&E.warning,v?E.multiline:E.singleline,!v&&f&&E.dismissalSingleLine,!v&&g&&E.expandingSingleLine,{background:S[__[C]],boxSizing:"border-box",color:S.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:S.messageLink,selectors:{":hover":{color:S.messageLinkHovered}}}},n[ca]=d(d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:"transparent",border:"1px solid ".concat(k_[C]),color:"WindowText"}),n[ua]={border:"1px solid ".concat(w_[C])},n)},v&&{flexDirection:"column"},m],content:[E.content,(r={display:"flex",width:"100%",lineHeight:"normal"},r[_]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},r)],iconContainer:[E.iconContainer,(o={fontSize:oi.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},o[_]={gridArea:"icon"},o)],icon:{color:S[E_[C]],selectors:(i={},i[ca]=d(d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),i)},text:[E.text,d(d({minWidth:0,display:"flex",flexGrow:1,margin:8},x.small),(a={},a[_]={gridArea:"text"},a.selectors=(s={},s[ca]=d({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s),a)),!f&&{marginRight:12}],innerText:[E.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},g&&{overflow:"visible",whiteSpace:"pre-wrap"},!v&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!v&&!g&&{selectors:(l={},l[_]={overflow:"visible",whiteSpace:"pre-wrap"},l)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[E.dismissSingleLine,(c={},c[_]={gridArea:"close"},c)],expandSingleLine:E.expandSingleLine,dismissal:[E.dismissal,w],expand:[E.expand,w],actions:[v?E.actions:E.actionsSingleline,(u={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"},u[_]={gridArea:"action",marginRight:8,marginBottom:8},u.selectors={"& button:nth-child(n+2)":(p={marginLeft:8},p[_]={marginBottom:0},p)},u),v&&{marginBottom:8},f&&!v&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),{root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"}),P_={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};var T_=cn(),D_=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=T_(r,{theme:a,groups:i});return o.createElement("div",{className:s.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,i=r.styles,a=r.groups,s=r.theme,l=r.onRenderGroupHeader,c=void 0===l?n._renderGroupHeader:l,u=n._isGroupExpanded(e),p=T_(i,{theme:s,isGroup:!0,isExpanded:u,groups:a}),h=d(d({},e),{isExpanded:u,onHeaderClick:function(t,r){n._onGroupHeaderClicked(e,t)}});return o.createElement("div",{key:t,className:p.group},h.name?c(h,n._renderGroupHeader):null,o.createElement("div",{className:p.groupContent},n._renderLinks(h.links,0)))},n._renderGroupHeader=function(e){var t,r=n.props,i=r.styles,a=r.groups,s=r.theme,l=r.expandButtonAriaLabel,c=e.isExpanded,u=T_(i,{theme:s,isGroup:!0,isExpanded:c,groups:a}),d=null!==(t=e.collapseAriaLabel)&&void 0!==t?t:e.expandAriaLabel,p=(c?d:e.expandAriaLabel)||l,h=e.onHeaderClick,m=h?function(e){h(e,c)}:void 0;return o.createElement("button",{className:u.chevronButton,onClick:m,"aria-label":p,"aria-expanded":c},o.createElement(Rc,{className:u.chevronIcon,iconName:"ChevronDown"}),e.name)},br(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,i=e.isOnTop,a=e.role,s=void 0===a?"navigation":a,l=e.theme;if(!n)return null;var c=n.map(this._renderGroup),u=T_(t,{theme:l,className:r,isOnTop:i,groups:n});return o.createElement(Bu,d({direction:Cu.vertical,componentRef:this._focusZone},this.props.focusZoneProps),o.createElement("nav",{role:s,className:u.root,"aria-label":this.props.ariaLabel},c))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r,i=this.props,a=i.styles,s=i.groups,l=i.theme,c=e.icon||e.iconProps,u=this._isLinkSelected(e),d=e.ariaCurrent,p=void 0===d?"page":d,h=T_(a,{theme:l,isSelected:u,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(c?0:24),groups:s}),m=e.url&&e.target&&(!(r=e.url)||/^[a-z0-9+-.]+:\/\//i.test(r))?"noopener noreferrer":void 0,f=this.props.linkAs?_n(this.props.linkAs,Ep):Ep,g=this.props.onRenderLink?io(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return o.createElement(f,{className:h.link,styles:P_,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:m,disabled:e.disabled,"aria-current":u?p:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},g(e))},t.prototype._renderCompositeLink=function(e,t,n){var r,i=d({},mr(e,hr,["onClick"])),a=this.props,s=a.expandButtonAriaLabel,l=a.styles,c=a.groups,u=a.theme,p=T_(l,{theme:u,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:c}),h="";if(e.links&&e.links.length>0)if(e.collapseAriaLabel||e.expandAriaLabel){var m=null!==(r=e.collapseAriaLabel)&&void 0!==r?r:e.expandAriaLabel;h=e.isExpanded?m:e.expandAriaLabel}else h=s?"".concat(e.name," ").concat(s):e.name;return o.createElement("div",d({},i,{key:e.key||t,className:p.compositeLink}),e.links&&e.links.length>0?o.createElement("button",{className:p.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":h,"aria-expanded":e.isExpanded?"true":"false"},o.createElement(Rc,{className:p.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,i=r.styles,a=r.groups,s=r.theme,l=T_(i,{theme:s,groups:a});return o.createElement("li",{key:e.key||t,role:"listitem",className:l.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,r){return n._renderLink(e,r,t)})),i=this.props,a=i.styles,s=i.groups,l=i.theme,c=T_(a,{theme:l,groups:s});return o.createElement("ul",{role:"list",className:c.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),void 0===e.isExpanded&&this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if("undefined"===typeof ke()||!e.url)return!1;(S_=S_||document.createElement("a")).href=e.url||"";var t=S_.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(S_.href=location.hash.substring(1),S_.href===t)))},t.prototype._isGroupExpanded=function(e){return void 0!==e.isExpanded?e.isExpanded:e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=d(d({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(o.Component),A_=(vo(D_,(function(e){var t,n=e.className,r=e.theme,o=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,c=e.isDisabled,u=e.isButtonEntry,d=e.navHeight,p=void 0===d?44:d,h=e.position,m=e.leftPadding,f=void 0===m?20:m,g=e.leftPaddingExpanded,v=void 0===g?28:g,y=e.rightPadding,b=void 0===y?20:y,C=r.palette,S=r.semanticColors,x=r.fonts,_=ka(I_,r);return{root:[_.root,n,x.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},o&&[{position:"absolute"},Ka.slideRightIn40]],linkText:[_.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[_.compositeLink,{display:"block",position:"relative",color:S.bodyText},i&&"is-expanded",l&&"is-selected",c&&"is-disabled",c&&{color:S.disabledText}],link:[_.link,fa(r),{display:"block",position:"relative",height:p,width:"100%",lineHeight:"".concat(p,"px"),textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:f,paddingRight:b,color:S.bodyText,selectors:(t={},t[ca]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!c&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:S.bodyBackgroundHovered}}},l&&{color:S.bodyTextChecked,fontWeight:ri.semibold,backgroundColor:S.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid ".concat(C.themePrimary),content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},c&&{color:S.disabledText},u&&{color:C.themePrimary}],chevronButton:[_.chevronButton,fa(r),x.small,{display:"block",textAlign:"left",lineHeight:"".concat(p,"px"),margin:"5px 0",padding:"0px, ".concat(b,"px, 0px, ").concat(v,"px"),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:S.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:S.bodyText}}},a&&{fontSize:x.large.fontSize,width:"100%",height:p,borderBottom:"1px solid ".concat(S.bodyDivider)},s&&{display:"block",width:v-2,height:p-2,position:"absolute",top:"1px",left:"".concat(h,"px"),zIndex:la.Nav,padding:0,margin:0}],chevronIcon:[_.chevronIcon,{position:"absolute",left:"8px",height:p,display:"inline-flex",alignItems:"center",lineHeight:"".concat(p,"px"),fontSize:x.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[_.navItem,{padding:0}],navItems:[_.navItems,{listStyleType:"none",padding:0,margin:0}],group:[_.group,i&&"is-expanded"],groupContent:[_.groupContent,{display:"none",marginBottom:"40px"},Ka.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"}),function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,i=o.useRef(),a=o.useRef(),s=hl((function(e){var t=function(e,t){if("undefined"!==typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach((function(e){return n.observe(e)})):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=ke(Array.isArray(e)?e[0]:e);if(!o)return function(){};var i=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(i),o.removeEventListener("resize",r,!1)}}(e,(function(t){a.current=t?t[0].contentRect.width:e.clientWidth,i.current&&i.current()}));return function(){t(),a.current=void 0}})),l=hl((function(e){return s(e.parentElement),function(){return s(null)}}));return _o((function(){var e=s.current,o=l.current;if(e&&o){for(var c=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==o&&c.push(d)}var p=[],h=0;i.current=function(){var e=a.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===p[t]){var i=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===r&&(h=p[t+1]-i),t===c.length-2&&(h+=o.offsetWidth),p[t]=i+h}if(e>p[t])return void f(t+1)}f(0)}};var m=c.length,f=function(e){m!==e&&(m=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},g=void 0;if(void 0!==a.current){var v=ke(e);if(v){var y=v.requestAnimationFrame(i.current);g=function(){return v.cancelAnimationFrame(y)}}}return function(){g&&g(),f(c.length),i.current=void 0}}})),{menuButtonRef:l}}),R_=function(e){function t(t){var n=e.call(this,t)||this;return br(n),Ye("PivotItem",t,{linkText:"headerText"}),n}return u(t,e),t.prototype.render=function(){return o.createElement("div",d({},mr(this.props,hr)),this.props.children)},t}(o.Component),N_=cn(),M_=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return o.Children.forEach(o.Children.toArray(e.children),(function(r,o){if(F_(r)){var i=r.props,a=i.linkText,s=p(i,["linkText"]),l=r.props.itemKey||o.toString();n.links.push(d(d({headerText:a},s),{itemKey:l})),n.keyToIndexMapping[l]=o,n.keyToTabIdMapping[l]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)}(e,t,l,o)}else r&&je("The children of a Pivot component must be of type PivotItem to be rendered.")})),n},F_=function(e){var t;return o.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===R_.name},B_=o.forwardRef((function(e,t){var n,r=o.useRef(null),i=o.useRef(null),a=cl("Pivot"),s=sl(e.selectedKey,e.defaultSelectedKey),l=s[0],c=s[1],u=e.componentRef,p=e.theme,h=e.linkSize,m=e.linkFormat,f=e.overflowBehavior,g=e.overflowAriaLabel,v=e.focusZoneProps,y=e.overflowButtonAs,b={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},C=mr(e,hr,["aria-label","aria-labelledby"]),S=M_(e,a);o.useImperativeHandle(u,(function(){return{focus:function(){var e;null===(e=r.current)||void 0===e||e.focus()}}}));var x=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,i=e.headerText;return o.createElement("span",{className:n.linkContent},void 0!==r&&o.createElement("span",{className:n.icon},o.createElement(Rc,{iconName:r})),void 0!==i&&o.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&o.createElement("span",{className:n.count}," (",t,")"))},_=function(e,t,r,i){var a,s=t.itemKey,l=t.headerButtonProps,c=t.onRenderItemLink,u=e.keyToTabIdMapping[s],p=r===s;a=c?c(t,x):x(t);var h=t.headerText||"";h+=t.itemCount?" ("+t.itemCount+")":"",h+=t.itemIcon?" xx":"";var m=t.role&&"tab"!==t.role?{role:t.role}:{role:"tab","aria-selected":p};return o.createElement(Rp,d({},l,m,{id:u,key:s,className:kn(i,p&&n.linkIsSelected),onClick:function(e){return E(s,e)},onKeyDown:function(e){return k(s,e)},"aria-label":t.ariaLabel,name:t.headerText,keytipProps:t.keytipProps,"data-content":h}),a)},E=function(e,t){t.preventDefault(),w(e,t)},k=function(e,t){t.which===it&&(t.preventDefault(),w(e))},w=function(t,n){var r;if(c(t),S=M_(e,a),e.onLinkClick&&S.keyToIndexMapping[t]>=0){var s=S.keyToIndexMapping[t],l=o.Children.toArray(e.children)[s];F_(l)&&e.onLinkClick(l,n)}null===(r=i.current)||void 0===r||r.dismissMenu()};n=N_(e.styles,{theme:p,linkSize:h,linkFormat:m});var I=function(){return null===(e=l)||void 0!==e&&void 0!==S.keyToIndexMapping[e]?l:S.links.length?S.links[0].itemKey:void 0;var e}(),P=I?S.keyToIndexMapping[I]:0,T=S.links.map((function(e){return _(S,e,I,n.link)})),D=o.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:ms}}),[]),A=A_({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)})),D.items=S.links.slice(e).filter((function(e){return e.itemKey!==I})).map((function(t,r){return t.role="menuitem",{key:t.itemKey||"".concat(e+r),onRender:function(){return _(S,t,I,n.linkInMenu)}}}))},rtl:Ot(p),pinnedIndex:P}).menuButtonRef,R=y||Rp;return o.createElement("div",d({ref:t},C),o.createElement(Bu,d({componentRef:r,role:"tablist"},b,{direction:Cu.horizontal},v,{className:kn(n.root,null===v||void 0===v?void 0:v.className)}),T,"menu"===f&&o.createElement(R,{className:kn(n.link,n.overflowMenuButton),elementRef:A,componentRef:i,menuProps:D,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:g})),I&&S.links.map((function(t){return(!0===t.alwaysRender||I===t.itemKey)&&function(t,r){if(e.headersOnly||!t)return null;var i=S.keyToIndexMapping[t],a=S.keyToTabIdMapping[t];return o.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":a,className:n.itemContainer},o.Children.toArray(e.children)[i])}(t.itemKey,I===t.itemKey)})))}));B_.displayName="Pivot";var O_,L_,H_={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},V_=function(e,t,n){var r,o,i;void 0===n&&(n=!1);var a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,u=l.fonts,p="large"===a,h="tabs"===s;return[u.medium,{color:c.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:c.buttonBackgroundHovered,color:c.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:c.buttonBackgroundPressed,color:c.buttonTextHovered},":focus":{outline:"none"}}},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:(r={},r[".".concat(wr," &:focus")]={outline:"1px solid ".concat(c.focusBorder)},r[".".concat(wr," &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},r[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(qi," ").concat(Gi,",\n                        right ").concat(qi," ").concat(Gi)},r[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:ri.bold,height:1,overflow:"hidden",visibility:"hidden"},r)},p&&{fontSize:u.large.fontSize},h&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:c.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-2px"}},o[".".concat(wr," &:focus::before")]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:c.buttonTextCheckedHovered},o["&:active, &:hover"]={color:c.primaryButtonText,backgroundColor:c.primaryButtonBackground},o["&.".concat(t.linkIsSelected)]={backgroundColor:c.primaryButtonBackground,color:c.primaryButtonText,fontWeight:ri.regular,selectors:(i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:c.primaryButtonBackgroundHovered,color:c.primaryButtonText},":active":{backgroundColor:c.primaryButtonBackgroundPressed,color:c.primaryButtonText}},i[ca]=d({fontWeight:ri.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},o[".".concat(wr," &.").concat(t.linkIsSelected,":focus")]={outlineColor:c.primaryButtonText},o)}]]]};vo(B_,(function(e){var t,n,r,o,i=e.className,a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,u=l.fonts,d=ka(H_,l),p="large"===a,h="tabs"===s;return{root:[d.root,u.medium,Ga,{position:"relative",color:c.link,whiteSpace:"nowrap"},p&&d.rootIsLarge,h&&d.rootIsTabs,i],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:m(m([d.link],V_(e,d),!0),[(t={},t["&[data-is-overflowing='true']"]={display:"none"},t)],!1),overflowMenuButton:[d.overflowMenuButton,(n={visibility:"hidden",position:"absolute",right:0},n[".".concat(d.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},n)],linkInMenu:m(m([d.linkInMenu],V_(e,d,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[d.link,d.linkIsSelected,{fontWeight:ri.semibold,selectors:(r={":before":{backgroundColor:c.inputBackgroundChecked,selectors:(o={},o[ca]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}},r[ca]={color:"Highlight"},r)}],linkContent:[d.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[d.text,{display:"inline-block",verticalAlign:"top"}],count:[d.count,{display:"inline-block",verticalAlign:"top"}],icon:d.icon}}),void 0,{scope:"Pivot"});!function(e){e.links="links",e.tabs="tabs"}(O_||(O_={})),function(e){e.normal="normal",e.large="large"}(L_||(L_={}));var z_,U_=cn(),W_=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaLabel,i=t.ariaValueText,a=t.barHeight,s=t.className,l=t.description,c=t.label,u=void 0===c?n.props.title:c,d=t.styles,p=t.theme,h="number"===typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,m=U_(d,{theme:p,className:s,barHeight:a,indeterminate:void 0===h}),f={width:void 0!==h?h+"%":void 0,transition:void 0!==h&&h<.01?"none":void 0},g=void 0!==h?0:void 0,v=void 0!==h?100:void 0,y=void 0!==h?Math.floor(h):void 0;return o.createElement("div",{className:m.itemProgress},o.createElement("div",{className:m.progressTrack}),o.createElement("div",{className:m.progressBar,style:f,role:"progressbar","aria-describedby":l?n._descriptionId:void 0,"aria-label":r,"aria-labelledby":u?n._labelId:void 0,"aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":y,"aria-valuetext":i}))};var r=zn("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,r=e.label,i=void 0===r?this.props.title:r,a=e.description,s=e.styles,l=e.theme,c=e.progressHidden,u=e.onRenderProgress,p=void 0===u?this._onRenderProgress:u,h="number"===typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,m=U_(s,{theme:l,className:n,barHeight:t,indeterminate:void 0===h});return o.createElement("div",{className:m.root},i?o.createElement("div",{id:this._labelId,className:m.itemName},i):null,c?null:p(d(d({},this.props),{percentComplete:h}),this._onRenderProgress),a?o.createElement("div",{id:this._descriptionId,className:m.itemDescription},a):null)},t.defaultProps={label:"",description:"",width:180},t}(o.Component),G_={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},j_=yn((function(){return Se({"0%":{left:"-30%"},"100%":{left:"100%"}})})),q_=yn((function(){return Se({"100%":{right:"-30%"},"0%":{right:"100%"}})})),K_=(vo(W_,(function(e){var t,n,r,o=Ot(e.theme),i=e.className,a=e.indeterminate,s=e.theme,l=e.barHeight,c=void 0===l?2:l,u=s.palette,p=s.semanticColors,h=s.fonts,m=ka(G_,s),f=u.neutralLight;return{root:[m.root,h.medium,i],itemName:[m.itemName,ja,{color:p.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[m.itemDescription,{color:p.bodySubtext,fontSize:h.small.fontSize,lineHeight:18}],itemProgress:[m.itemProgress,{position:"relative",overflow:"hidden",height:c,padding:"".concat(8,"px 0")}],progressTrack:[m.progressTrack,{position:"absolute",width:"100%",height:c,backgroundColor:f,selectors:(t={},t[ca]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:u.themePrimary,height:c,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[ca]=d({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(f," 0%, ")+"".concat(u.themePrimary," 50%, ").concat(f," 100%)"),animation:"".concat(o?q_():j_()," 3s infinite"),selectors:(r={},r[ca]={background:"highlight"},r)}:{transition:"width .15s linear"},m.progressBar]}}),void 0,{scope:"ProgressIndicator"}),{root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"});function Y_(e,t){var n;return{color:e,selectors:(n={},n[ca]={color:t},n)}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(z_||(z_={}));var X_=cn(),Q_=function(e){return o.createElement("div",{className:e.classNames.ratingStar},o.createElement(Rc,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&o.createElement(Rc,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},Z_=function(e,t){return"".concat(e,"-star-").concat(t-1)},J_=o.forwardRef((function(e,t){var n=cl("Rating"),r=cl("RatingLabel"),i=e.ariaLabel,a=e.ariaLabelFormat,s=e.disabled,l=e.getAriaLabel,c=e.styles,u=e.min,p=void 0===u?e.allowZeroStars?0:1:u,h=e.max,m=void 0===h?5:h,f=e.readOnly,g=e.size,v=e.theme,y=e.icon,b=void 0===y?"FavoriteStarFill":y,C=e.unselectedIcon,S=void 0===C?"FavoriteStar":C,x=e.onRenderStar,_=Math.max(p,0),E=sl(e.rating,e.defaultRating,e.onChange),k=E[0],w=E[1],I=function(e,t,n){return Math.min(Math.max(null!==e&&void 0!==e?e:t,t),n)}(k,_,m);!function(e){Sl({name:"Rating",props:e,controlledUsage:{valueProp:"rating",defaultValueProp:"defaultRating",onChangeProp:"onChange",readOnlyProp:"readOnly"}})}(e),function(e,t){o.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,I);var P=o.useRef(null),T=ul(P,t);Fr(P);for(var D=mr(e,hr),A=X_(c,{disabled:s,readOnly:f,theme:v}),R=null===l||void 0===l?void 0:l(I,m),N=i||R,M=[],F=function(e){var t,i,l=function(e,t){var n=Math.ceil(t),r=100;return e===t?r=100:e===n?r=t%1*100:e>n&&(r=0),r}(e,I);M.push(o.createElement("button",d({className:kn(A.ratingButton,g===z_.Large?A.ratingStarIsLarge:A.ratingStarIsSmall),id:Z_(n,e),key:e},e===Math.ceil(I)&&{"data-is-current":!0},{onKeyDown:function(t){var n=t.which,r=e;switch(n){case vt:case yt:r=Math.min(m,r+1);break;case ft:case gt:r=Math.max(1,r-1);break;case mt:case dt:r=1;break;case ht:case pt:r=m}r===e||void 0!==k&&Math.ceil(k)===r||w(r,t)},onClick:function(t){void 0!==k&&Math.ceil(k)===e||w(e,t)},disabled:!(!s&&!f),role:"radio","aria-hidden":f?"true":void 0,type:"button","aria-checked":e===Math.ceil(I)}),o.createElement("span",{id:"".concat(r,"-").concat(e),className:A.labelText},mo(a||"",e,m)),(t={fillPercentage:l,disabled:s,classNames:A,icon:l>0?b:S,starNum:e,unselectedIcon:S},(i=x)?i(t):o.createElement(Q_,d({},t)))))},B=1;B<=m;B++)F(B);var O=g===z_.Large?A.rootIsLarge:A.rootIsSmall;return o.createElement("div",d({ref:T,className:kn("ms-Rating-star",A.root,O),"aria-label":f?void 0:N,id:n,role:f?void 0:"radiogroup"},D),o.createElement(Bu,d({direction:Cu.bidirectional,className:kn(A.ratingFocusZone,O),defaultActiveElement:"#"+Z_(n,Math.ceil(I))},f&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":R,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),M))}));J_.displayName="RatingBase";vo(J_,(function(e){var t=e.disabled,n=e.readOnly,r=e.theme,o=r.semanticColors,i=r.palette,a=ka(K_,r),s=i.neutralSecondary,l=i.themePrimary,c=i.themeDark,u=i.neutralPrimary,d=o.disabledBodySubtext;return{root:[a.root,r.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":Y_(u,"Highlight")}}}}],rootIsSmall:[a.rootIsSmall,{height:"32px"}],rootIsLarge:[a.rootIsLarge,{height:"36px"}],ratingStar:[a.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[a.ratingStarBack,{color:s,width:"100%"},t&&Y_(d,"GrayText")],ratingStarFront:[a.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},Y_(u,"Highlight")],ratingButton:[fa(r),a.ratingButton,{backgroundColor:"transparent",padding:"".concat(8,"px ").concat(2,"px"),boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":Y_(s,"WindowText"),".ms-RatingStar-front":Y_(s,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[a.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[a.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[a.labelText,ya],ratingFocusZone:[fa(r),a.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"});var $_={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},eE=o.createContext({scrollablePane:void 0}),tE=cn(),nE=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyAboveRef=o.createRef(),n._stickyBelowRef=o.createRef(),n._contentContainer=o.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,r=0;e.forEach((function(e){var o=e.state,i=o.isStickyTop,a=o.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(r+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:r})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,r){if(t.children.length){if(!t.contains(r)){var o=[].slice.call(t.children),i=[];n._stickies.forEach((function(r){(t===n.stickyAbove&&e.canStickyTop||e.canStickyBottom)&&i.push(r)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var r=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!r&&o.indexOf(r)>-1}));s<l.length;s++){var c=l[s];if((c.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=c;break}}var u=null;a&&(u=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(r,u)}}else t.appendChild(r)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return d(d({height:e},Ot(n.props.theme)?{right:"0",left:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}:{left:"0",right:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}),t?{top:"0"}:{bottom:"".concat(n.state.scrollbarHeight||n._getScrollbarHeight()||0,"px")})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,br(n),n._async=new we(n),n._events=new Ae(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return u(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var r=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&r.push(e)})),r.length&&r.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"===typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.scrollContainerFocus,r=e.scrollContainerAriaLabel,i=e.theme,a=e.styles,s=e.onScroll,l=this.state,c=l.stickyTopHeight,u=l.stickyBottomHeight,p=tE(a,{theme:i,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),h=n?{role:"group",tabIndex:0,"aria-label":r,onScroll:s}:{onScroll:s};return o.createElement("div",d({},mr(d({},this.props),hr,["onScroll"]),{ref:this._root,className:p.root}),o.createElement("div",{ref:this._stickyAboveRef,className:p.stickyAbove,style:this._getStickyContainerStyle(c,!0)}),o.createElement("div",d({ref:this._contentContainer},h,{className:p.contentContainer,"data-is-scrollable":!0}),o.createElement(eE.Provider,{value:this._getScrollablePaneContext()},this.props.children)),o.createElement("div",{className:p.stickyBelow,style:this._getStickyContainerStyle(u,!1)},o.createElement("div",{ref:this._stickyBelowRef,className:p.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(o.Component),rE=(vo(nE,(function(e){var t,n,r=e.className,o=e.theme,i=ka($_,o),a={position:"absolute",pointerEvents:"none"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,o.fonts.medium,s,r],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[ca]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[ca]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"}),"SearchBox"),oE={root:{height:"auto"},icon:{fontSize:"12px"}},iE={iconName:"Clear"},aE={ariaLabel:"Clear text"},sE=cn(),lE=o.forwardRef((function(e,t){var n=e.ariaLabel,r=e.className,i=e.defaultValue,a=void 0===i?"":i,s=e.disabled,l=e.underlined,c=e.styles,u=e.labelText,p=e.placeholder,h=void 0===p?u:p,m=e.theme,f=e.clearButtonProps,g=void 0===f?aE:f,v=e.disableAnimation,y=void 0!==v&&v,b=e.showIcon,C=void 0!==b&&b,S=e.onClear,x=e.onBlur,_=e.onEscape,E=e.onSearch,k=e.onKeyDown,w=e.iconProps,I=e.role,P=e.onChange,T=e.onChanged,D=o.useState(!1),A=D[0],R=D[1],N=o.useRef(),M=sl(e.value,a,(function(e,t){e&&e.timeStamp===N.current||(N.current=null===e||void 0===e?void 0:e.timeStamp,null===P||void 0===P||P(e,t),null===T||void 0===T||T(t))})),F=M[0],B=M[1],O=String(F),L=o.useRef(null),H=o.useRef(null),V=ul(L,t),z=cl(rE,e.id),U=g.onClick,W=sE(c,{theme:m,className:r,underlined:l,hasFocus:A,disabled:s,hasInput:O.length>0,disableAnimation:y,showIcon:C}),G=mr(e,er,["className","placeholder","onFocus","onBlur","value","role"]),j=o.useCallback((function(e){var t;null===S||void 0===S||S(e),e.defaultPrevented||(B(""),null===(t=H.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[S,B]),q=o.useCallback((function(e){null===U||void 0===U||U(e),e.defaultPrevented||j(e)}),[U,j]),K=o.useCallback((function(e){R(!1),null===x||void 0===x||x(e)}),[x]),Y=function(e){B(e.target.value,e)};return function(e){Sl({name:rE,props:e,deprecations:{labelText:"placeholder"}})}(e),function(e,t,n){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.blur()},hasFocus:function(){return n}}}),[t,n])}(e.componentRef,H,A),o.createElement("div",{role:I,ref:V,className:W.root,onFocusCapture:function(t){var n;R(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)}},o.createElement("div",{className:W.iconContainer,onClick:function(){H.current&&(H.current.focus(),H.current.selectionStart=H.current.selectionEnd=0)},"aria-hidden":!0},o.createElement(Rc,d({iconName:"Search"},w,{className:W.icon}))),o.createElement("input",d({},G,{id:z,className:W.field,placeholder:h,onChange:Y,onInput:Y,onBlur:K,onKeyDown:function(e){switch(e.which){case ct:null===_||void 0===_||_(e),O&&!e.defaultPrevented&&j(e);break;case it:E&&(E(O),e.preventDefault(),e.stopPropagation());break;default:null===k||void 0===k||k(e),e.defaultPrevented&&e.stopPropagation()}},value:O,disabled:s,role:"searchbox","aria-label":n,ref:H})),O.length>0&&o.createElement("div",{className:W.clearButton},o.createElement(Pp,d({onBlur:K,styles:oE,iconProps:iE},g,{onClick:q}))))}));lE.displayName=rE;var cE={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};vo(lE,(function(e){var t,n,r,o,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,u=e.className,d=e.hasInput,p=e.disableAnimation,h=e.showIcon,m=a.palette,f=a.fonts,g=a.semanticColors,v=a.effects,y=ka(cE,a),b={color:g.inputPlaceholderText,opacity:1},C=m.neutralSecondary,S=m.neutralPrimary,x=m.neutralLighter,_=m.neutralLighter,E=m.neutralLighter;return{root:[y.root,f.medium,Ga,{color:g.inputText,backgroundColor:g.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:v.roundedCorner2,border:"1px solid ".concat(g.inputBorder),height:32,selectors:(t={},t[ca]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(n={},n[ca]={borderColor:"Highlight"},n)},t[":hover .".concat(y.iconContainer)]={color:g.inputIconHovered},t)},!c&&d&&{selectors:(r={},r[":hover .".concat(y.iconContainer)]={width:4},r[":hover .".concat(y.icon)]={opacity:0,pointerEvents:"none"},r)},c&&["is-active",{position:"relative"},va(g.inputFocusBorderAlt,s?0:v.roundedCorner2,s?"borderBottom":"border")],h&&[{selectors:(o={},o[":hover .".concat(y.iconContainer)]={width:32},o[":hover .".concat(y.icon)]={opacity:1},o)}],l&&["is-disabled",{borderColor:x,backgroundColor:E,pointerEvents:"none",cursor:"default",selectors:(i={},i[ca]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",u],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:g.inputIcon,cursor:"text"},c&&{width:4},l&&{color:g.inputIconDisabled},!p&&{transition:"width ".concat(ji)},h&&c&&{width:32}],icon:[y.icon,{opacity:1},c&&{opacity:0,pointerEvents:"none"},!p&&{transition:"opacity ".concat(ji," 0s")},h&&c&&{opacity:1}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:_},"&:hover .ms-Button-icon":{color:S},".ms-Button":{borderRadius:Ot(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:C}}}],field:[y.field,Ga,qa(b),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:g.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"});var uE=function(e){function t(t){var n=e.call(this,t)||this;n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat(e);n.updateItems(t)}));else{var i=n.state.items.concat(r);n.updateItems(i)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var r=t.slice(0,e).concat(t.slice(e+1));n.updateItems(r)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var r=n.state.items,o=r.indexOf(e);if(o>-1){var i=r.slice(0,o).concat(t).concat(r.slice(o+1));n.updateItems(i)}},n.removeItems=function(e){var t=n.state.items,r=e.filter((function(e){return n._canRemoveItem(e)})),o=t.filter((function(e){return-1===r.indexOf(e)})),i=r[0],a=t.indexOf(i);n.props.onItemsDeleted&&n.props.onItemsDeleted(r),n.updateItems(o,a)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map((function(r,o){return t({item:r,index:o,key:r.key?r.key:o,selected:n.selection.isIndexSelected(o),onRemoveItem:function(){return n.removeItem(r)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})}))},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n.updateItems(o)}},br(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n.state={items:r},n._defaultSelection=new co({onSelectionChanged:n.onSelectionChanged}),n}return u(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){n._onSelectedItemsUpdated(e,t)}))},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!==(e=this.props.selection)&&void 0!==e?e:this._defaultSelection},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=document.createElement("input");document.body.appendChild(n);try{if(n.value=t,n.select(),!document.execCommand("copy"))throw new Error}catch(r){}finally{document.body.removeChild(n)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t}(o.Component);Na([{rawString:".personaContainer_6625fd9a{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:';margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_6625fd9a::-moz-focus-inner{border:0}.personaContainer_6625fd9a{outline:transparent}.personaContainer_6625fd9a{position:relative}.ms-Fabric--isFocusVisible .personaContainer_6625fd9a:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid '},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_6625fd9a .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_6625fd9a .ms-Persona-primaryText.hover_6625fd9a{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a .actionButton_6625fd9a:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}.personaContainer_6625fd9a:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a{border:1px solid WindowText}}.personaContainer_6625fd9a .itemContent_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_6625fd9a .removeButton_6625fd9a{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_6625fd9a .expandButton_6625fd9a{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_6625fd9a .personaWrapper_6625fd9a{position:relative;display:inherit}.personaContainer_6625fd9a .personaWrapper_6625fd9a .ms-Persona-details{padding:0 8px}.personaContainer_6625fd9a .personaDetails_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_6625fd9a{display:inline-block;vertical-align:top}"}]);var dE=Object.freeze({__proto__:null,personaContainer:"personaContainer_6625fd9a",hover:"hover_6625fd9a",actionButton:"actionButton_6625fd9a",personaContainerIsSelected:"personaContainerIsSelected_6625fd9a",validationError:"validationError_6625fd9a",itemContent:"itemContent_6625fd9a",removeButton:"removeButton_6625fd9a",expandButton:"expandButton_6625fd9a",personaWrapper:"personaWrapper_6625fd9a",personaDetails:"personaDetails_6625fd9a",itemContainer:"itemContainer_6625fd9a"}),pE=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=o.createRef(),br(n),n.state={contextualMenuVisible:!1},n}return u(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.item,i=n.onExpandItem,a=n.onRemoveItem,s=n.removeButtonAriaLabel,l=n.index,c=n.selected,u=zn();return o.createElement("div",{ref:this.persona,className:kn("ms-PickerPersona-container",dE.personaContainer,(e={},e["is-selected "+dE.personaContainerIsSelected]=c,e),(t={},t["is-invalid "+dE.validationError]=!r.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":l,role:"listitem","aria-labelledby":"selectedItemPersona-"+u},o.createElement("div",{hidden:!r.canExpand||void 0===i},o.createElement(Pp,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:kn("ms-PickerItem-removeButton",dE.expandButton,dE.actionButton),ariaLabel:s})),o.createElement("div",{className:kn(dE.personaWrapper)},o.createElement("div",{className:kn("ms-PickerItem-content",dE.itemContent),id:"selectedItemPersona-"+u},o.createElement(hu,d({},r,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:Nc.size32}))),o.createElement(Pp,{onClick:this._onClickIconButton(a),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:kn("ms-PickerItem-removeButton",dE.removeButton,dE.actionButton),ariaLabel:s})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(o.Component),hE=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=o.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},br(n),n.state={contextualMenuVisible:!1},n}return u(t,e),t.prototype.render=function(){return o.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?o.createElement(ap,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:ps}):null)},t}(o.Component),mE={root:"ms-EditingItem",input:"ms-EditingItem-input"},fE=function(e){var t=Wa();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,r=ka(mE,t);return{root:[r.root,{margin:"4px"}],input:[r.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},gE=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=o.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?o.createElement(e,d({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):o.createElement(o.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate((function(){n._editingInput.focus()}))},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},br(n),n.state={contextualMenuVisible:!1},n}return u(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=zn(),t=mr(this.props,er),n=cn()(fE);return o.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},o.createElement("input",d({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==rt&&e.which!==bt||e.stopPropagation()},t}(o.Component),vE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(uE),yE=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map((function(e,n){return t._renderItem(e,n)}))},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}u(t,e),t.prototype._renderItem=function(e,t){var n=this,r=this.props.removeButtonAriaLabel,i=this.props.onExpandGroup,a={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:r,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:i?function(){return i(e)}:void 0,menuItems:this._createMenuItems(e)},s=a.menuItems.length>0;if(e.isEditing&&s)return o.createElement(gE,d({},a,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var l=(0,this.props.onRenderItem)(a);return s?o.createElement(hE,{key:a.key,renderedItem:l,beginEditing:this._beginEditing,menuItems:this._createMenuItems(a.item),item:a.item}):l},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return o.createElement(pE,d({},e))}}}(vE),cn()),bE=o.forwardRef((function(e,t){var n=e.styles,r=e.theme,i=e.className,a=e.vertical,s=e.alignContent,l=e.children,c=yE(n,{theme:r,className:i,alignContent:s,vertical:a});return o.createElement("div",{className:c.root,ref:t},o.createElement("div",{className:c.content,role:"separator","aria-orientation":a?"vertical":"horizontal"},l))})),CE=vo(bE,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,l="center"===o,c="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(l||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[ca]={backgroundColor:"WindowText"},t)}},!i&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[ca]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},i&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});CE.displayName="Separator";var SE,xE,_E={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},EE="100%",kE=yn((function(){return Se({"0%":{transform:"translateX(-".concat(EE,")")},"100%":{transform:"translateX(".concat(EE,")")}})})),wE=yn((function(){return Se({"100%":{transform:"translateX(-".concat(EE,")")},"0%":{transform:"translateX(".concat(EE,")")}})}));!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(SE||(SE={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(xE||(xE={}));var IE=cn(),PE={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var TE=vo((function(e){var t=e.height,n=e.styles,r=e.width,i=void 0===r?"100%":r,a=e.borderStyle,s=e.theme,l=IE(n,{theme:s,height:t,borderStyle:a});return o.createElement("div",{style:{width:i,minWidth:"number"===typeof i?"".concat(i,"px"):"auto"},className:l.root},o.createElement("svg",{width:"2",height:"2",className:l.topLeftCorner},o.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.topRightCorner},o.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.bottomRightCorner},o.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),o.createElement("svg",{width:"2",height:"2",className:l.bottomLeftCorner},o.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=ka(PE,o),s=r||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,o.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[ca]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),DE=cn(),AE={root:"ms-ShimmerGap-root"};var RE=vo((function(e){var t=e.height,n=e.styles,r=e.width,i=void 0===r?"10px":r,a=e.borderStyle,s=e.theme,l=DE(n,{theme:s,height:t,borderStyle:a});return o.createElement("div",{style:{width:i,minWidth:"number"===typeof i?"".concat(i,"px"):"auto"},className:l.root})}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=r||{};return{root:[ka(AE,o).root,o.fonts.medium,{backgroundColor:i.bodyBackground,height:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,selectors:(t={},t[ca]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),NE={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var ME=cn(),FE=vo((function(e){var t=e.height,n=e.styles,r=e.borderStyle,i=e.theme,a=ME(n,{theme:i,height:t,borderStyle:r});return o.createElement("div",{className:a.root},o.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:a.svg},o.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))}),(function(e){var t,n,r=e.height,o=e.borderStyle,i=e.theme,a=i.semanticColors,s=ka(NE,i),l=o||{};return{root:[s.root,i.fonts.medium,{width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[ca]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[ca]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),BE=cn();var OE=yn((function(e,t,n,r,o){var i,a=o&&n?o-n:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:"".concat(a,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:"".concat(a,"px")}):i={borderBottomWidth:"".concat(a?Math.floor(a/2):0,"px"),borderTopWidth:"".concat(a?Math.ceil(a/2):0,"px")},r)switch(t){case SE.circle:return{root:d(d({},i),{borderColor:r}),svg:{fill:r}};case SE.gap:return{root:d(d({},i),{borderColor:r,backgroundColor:r})};case SE.line:return{root:d(d({},i),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:i}}));var LE={root:"ms-ShimmerElementsGroup-root"};var HE=vo((function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,i=e.shimmerElements,a=e.rowHeight,s=void 0===a?function(e){return e.map((function(e){switch(e.type){case SE.circle:e.height||(e.height=xE.circle);break;case SE.line:e.height||(e.height=xE.line);break;case SE.gap:e.height||(e.height=xE.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(i||[]):a,l=e.flexWrap,c=void 0!==l&&l,u=e.theme,h=e.backgroundColor,m=BE(t,{theme:u,flexWrap:c});return o.createElement("div",{style:{width:r},className:m.root},function(e,t,n){var r=e?e.map((function(e,r){var i=e.type,a=p(e,["type"]),s=a.verticalAlign,l=a.height,c=OE(s,i,l,t,n);switch(e.type){case SE.circle:return o.createElement(FE,d({key:r},a,{styles:c}));case SE.gap:return o.createElement(RE,d({key:r},a,{styles:c}));case SE.line:return o.createElement(TE,d({key:r},a,{styles:c}))}})):o.createElement(TE,{height:xE.line});return r}(i,h,s))}),(function(e){var t=e.flexWrap,n=e.theme;return{root:[ka(LE,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),VE=cn(),zE=o.forwardRef((function(e,t){var n=e.styles,r=e.shimmerElements,i=e.children,a=e.width,s=e.className,l=e.customElementsGroup,c=e.theme,u=e.ariaLabel,p=e.shimmerColors,h=e.isDataLoaded,m=void 0!==h&&h,f=e.improveCSSPerformance,g=mr(e,hr),v=VE(n,{theme:c,isDataLoaded:m,className:s,transitionAnimationInterval:200,shimmerColor:p&&p.shimmer,shimmerWaveColor:p&&p.shimmerWave,improveCSSPerformance:f||!l}),y=il({lastTimeoutId:0}),b=ml(),C=b.setTimeout,S=b.clearTimeout,x=o.useState(m),_=x[0],E=x[1],k={width:a||"100%"};return o.useEffect((function(){if(m!==_){if(m)return y.lastTimeoutId=C((function(){E(!0)}),200),function(){return S(y.lastTimeoutId)};E(!1)}}),[m]),o.createElement("div",d({},g,{className:v.root,ref:t}),!_&&o.createElement("div",{style:k,className:v.shimmerWrapper},o.createElement("div",{className:v.shimmerGradient}),l||o.createElement(HE,{shimmerElements:r,backgroundColor:p&&p.background})),i&&o.createElement("div",{className:v.dataWrapper},i),u&&!m&&o.createElement("div",{role:"status","aria-live":"polite"},o.createElement(Ze,null,o.createElement("div",{className:v.screenReaderText},u))))}));zE.displayName="Shimmer";var UE=vo(zE,(function(e){var t,n=e.isDataLoaded,r=e.className,o=e.theme,i=e.transitionAnimationInterval,a=e.shimmerColor,s=e.shimmerWaveColor,l=e.improveCSSPerformance,c=o.semanticColors,u=ka(_E,o),p=Ot(o);return{root:[u.root,o.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[u.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:a||c.disabledBackground,transition:"opacity ".concat(i,"ms"),selectors:(t={},t[ca]=d({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},l?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[u.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(a||c.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(a||c.disabledBackground," 0%,\n                        ").concat(s||c.bodyDivider," 50%,\n                        ").concat(a||c.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(EE,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:p?wE():kE()}],dataWrapper:[u.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(i,"ms")},n&&{opacity:"1",position:"static"}],screenReaderText:ya}}),void 0,{scope:"Shimmer"}),WE=cn(),GE=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var r=n.props.onRenderCustomPlaceholder,i=r?r(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return o.createElement(UE,{customElementsGroup:i})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,r=e.selectionMode,i=e.checkboxVisibility,a=e.cellStyleProps,s=void 0===a?ny:a,l=n?ry.compactRowHeight:ry.rowHeight+1,c=[];return r!==ao.none&&i!==Uv.hidden&&c.push(o.createElement(HE,{key:"checkboxGap",shimmerElements:[{type:SE.gap,width:"40px",height:l}]})),t.forEach((function(e,t){var n=[],r=s.cellLeftPadding+s.cellRightPadding+e.calculatedWidth+(e.isPadded?s.cellExtraRightPadding:0);n.push({type:SE.gap,width:s.cellLeftPadding,height:l}),e.isIconOnly?(n.push({type:SE.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:SE.gap,width:s.cellRightPadding,height:l})):(n.push({type:SE.line,width:.95*e.calculatedWidth,height:7}),n.push({type:SE.gap,width:s.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?s.cellExtraRightPadding:0),height:l})),c.push(o.createElement(HE,{key:t,width:"".concat(r,"px"),shimmerElements:n}))})),c.push(o.createElement(HE,{key:"endGap",width:"100%",shimmerElements:[{type:SE.gap,width:"100%",height:l}]})),o.createElement("div",{style:{display:"flex"}},c)},n._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(10),n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,r=e.items,i=e.listProps,a=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),s=(e.shimmerLines,e.styles),l=e.theme,c=e.ariaLabelForGrid,u=e.ariaLabelForShimmer,h=p(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),m=i&&i.className;this._classNames=WE(s,{theme:l});var f=d(d({},i),{className:n&&!a?kn(this._classNames.root,m):m});return o.createElement(Ib,d({},h,{styles:t,items:n?this._shimmerItems:r,isPlaceholderData:n,ariaLabelForGrid:n&&u||c,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:f}))},t}(o.Component),jE=(vo(GE,(function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, ".concat(t.whiteTranslucent40," 65%,").concat(t.white," 100%)")}}}}}),void 0,{scope:"ShimmeredDetailsList"}),cn()),qE=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},KE=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},YE=function(e,t){var n=e.step,r=void 0===n?1:n,i=e.className,a=e.disabled,s=void 0!==a&&a,l=e.label,c=e.max,u=void 0===c?10:c,p=e.min,h=void 0===p?0:p,m=e.showValue,f=void 0===m||m,g=e.buttonProps,v=void 0===g?{}:g,y=e.vertical,b=void 0!==y&&y,C=e.snapToStep,S=e.valueFormat,x=e.styles,_=e.theme,E=e.originFromZero,k=e["aria-labelledby"],w=e.ariaLabel,I=void 0===w?e["aria-label"]:w,P=e.ranged,T=e.onChange,D=e.onChanged,A=o.useRef([]),R=ml(),N=R.setTimeout,M=R.clearTimeout,F=o.useRef(null),B=sl(e.value,e.defaultValue,(function(e,t){return null===T||void 0===T?void 0:T(t,P?[G.latestLowerValue,t]:void 0,e)})),O=B[0],L=B[1],H=sl(e.lowerValue,e.defaultLowerValue,(function(e,t){return null===T||void 0===T?void 0:T(G.latestValue,[t,G.latestValue],e)})),V=H[0],z=H[1],U=Math.max(h,Math.min(u,O||0)),W=Math.max(h,Math.min(U,V||0)),G=il({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:U,latestLowerValue:W});G.latestValue=U,G.latestLowerValue=W;var j=cl("Slider",e.id||(null===v||void 0===v?void 0:v.id)),q=jE(x,{className:i,disabled:s,vertical:b,showTransitions:!C&&!G.isBetweenSteps,showValue:f,ranged:P,theme:_}),K=(u-h)/r,Y=function(){M(G.onKeyDownTimer),G.onKeyDownTimer=-1},X=function(e){Y(),D&&(G.onKeyDownTimer=N((function(){D(e,G.latestValue,P?[G.latestLowerValue,G.latestValue]:void 0)}),1e3))},Q=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},Z=function(e,t,n){t=Math.min(u,Math.max(h,t)),n=void 0!==n?Math.min(u,Math.max(h,n)):void 0;var o=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,o))/Math.pow(10,o)!==r;)o++;var i=parseFloat(t.toFixed(o));G.isBetweenSteps=void 0!==n&&n!==i,P?G.isAdjustingLowerValue&&(E?i<=0:i<=G.latestValue)?z(i,e):!G.isAdjustingLowerValue&&(E?i>=0:i>=G.latestLowerValue)&&L(i,e):L(i,e)},J=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},$=function(t){var n,r=F.current.getBoundingClientRect(),o=(e.vertical?r.height:r.width)/K;if(e.vertical){var i=J(t,e.vertical);n=(r.bottom-i)/o}else{var a=J(t,e.vertical);n=(Ot(e.theme)?r.right-a:a-r.left)/o}return n},ee=function(e,t){var n=$(e),o=h+r*n,i=h+r*Math.round(n);Z(e,i,o),t||(e.preventDefault(),e.stopPropagation())},te=function(e){if(P){var t=$(e),n=h+r*t;G.isAdjustingLowerValue=n<=G.latestLowerValue||n-G.latestLowerValue<=G.latestValue-n}"mousedown"===e.type?A.current.push(on(window,"mousemove",ee,!0),on(window,"mouseup",ne,!0)):"touchstart"===e.type&&A.current.push(on(window,"touchmove",ee,!0),on(window,"touchend",ne,!0)),ee(e,!0)},ne=function(e){G.isBetweenSteps=void 0,null===D||void 0===D||D(e,G.latestValue,P?[G.latestLowerValue,G.latestValue]:void 0),re()},re=o.useCallback((function(){A.current.forEach((function(e){return e()})),A.current=[]}),[]);o.useEffect((function(){return re}),[re]);var oe=o.useRef(null),ie=o.useRef(null),ae=o.useRef(null);!function(e,t,n,r){o.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return r},focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}}),[r,t,n])}(e,ae,U,P?[W,U]:void 0);var se=qE(b?"bottom":Ot(e.theme)?"right":"left"),le=qE(b?"height":"width"),ce=E?0:h,ue=KE(U,h,u),de=KE(W,h,u),pe=KE(ce,h,u),he=P?ue-de:Math.abs(pe-ue),me=Math.min(100-ue,100-pe),fe=P?de:Math.min(ue,pe),ge={className:q.root,ref:t},ve={className:q.titleLabel,children:l,disabled:s,htmlFor:I?void 0:j},ye=f?{className:q.valueLabel,children:S?S(U):U,disabled:s,htmlFor:s?j:void 0}:void 0,be=P&&f?{className:q.valueLabel,children:S?S(W):W,disabled:s}:void 0,Ce=E?{className:q.zeroTick,style:se(pe)}:void 0,Se={className:kn(q.lineContainer,q.activeSection),style:le(he)},xe={className:kn(q.lineContainer,q.inactiveSection),style:le(me)},_e={className:kn(q.lineContainer,q.inactiveSection),style:le(fe)},Ee=d({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),ke=d(d(d({id:j,className:kn(q.slideBox,v.className),ref:ae},!s&&{onMouseDown:te,onTouchStart:te,onKeyDown:function(t){var n=G.isAdjustingLowerValue?G.latestLowerValue:G.latestValue,o=0;switch(t.which){case Lt(ft,e.theme):case yt:o=-r,Y(),X(t);break;case Lt(vt,e.theme):case gt:o=r,Y(),X(t);break;case mt:n=h,Y(),X(t);break;case ht:n=u,Y(),X(t);break;default:return}Z(t,n+o),t.preventDefault(),t.stopPropagation()}}),v&&mr(v,hr,["id","className"])),!P&&d(d({},Ee),{"aria-valuemin":h,"aria-valuemax":u,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":I||l,"aria-labelledby":k})),we=s?{}:{onFocus:function(e){G.isAdjustingLowerValue=e.target===oe.current}},Ie=d({ref:ie,className:q.thumb,style:se(ue)},P&&d(d(d({},Ee),we),{id:"max-".concat(j),"aria-valuemin":W,"aria-valuemax":u,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":"max ".concat(I||l)})),Pe=P?d(d(d({ref:oe,className:q.thumb,style:se(de)},Ee),we),{id:"min-".concat(j),"aria-valuemin":h,"aria-valuemax":U,"aria-valuenow":W,"aria-valuetext":Q(W),"aria-label":"min ".concat(I||l)}):void 0;return{root:ge,label:ve,sliderBox:ke,container:{className:q.container},valueLabel:ye,lowerValueLabel:be,thumb:Ie,lowerValueThumb:Pe,zeroTick:Ce,activeTrack:Se,topInactiveTrack:xe,bottomInactiveTrack:_e,sliderLine:{ref:F,className:q.line}}},XE="SliderBase",QE=o.forwardRef((function(e,t){var n=YE(e,t);return Sl({name:XE,props:e,mutuallyExclusive:{value:"defaultValue"}}),o.createElement("div",d({},n.root),n&&o.createElement(Hm,d({},n.label)),o.createElement("div",d({},n.container),e.ranged&&(e.vertical?n.valueLabel&&o.createElement(Hm,d({},n.valueLabel)):n.lowerValueLabel&&o.createElement(Hm,d({},n.lowerValueLabel))),o.createElement("div",d({},n.sliderBox),o.createElement("div",d({},n.sliderLine),e.ranged&&o.createElement("span",d({},n.lowerValueThumb)),o.createElement("span",d({},n.thumb)),n.zeroTick&&o.createElement("span",d({},n.zeroTick)),o.createElement("span",d({},n.bottomInactiveTrack)),o.createElement("span",d({},n.activeTrack)),o.createElement("span",d({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&o.createElement(Hm,d({},n.lowerValueLabel)):n.valueLabel&&o.createElement(Hm,d({},n.valueLabel))),o.createElement(Br,null))}));QE.displayName=XE;var ZE,JE={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},$E=(vo(QE,(function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,f=e.className,g=e.titleLabelClassName,v=e.theme,y=e.vertical,b=e.disabled,C=e.showTransitions,S=e.showValue,x=e.ranged,_=v.semanticColors,E=v.palette,k=ka(JE,v),w=_.inputBackgroundCheckedHovered,I=_.inputBackgroundChecked,P=E.neutralSecondaryAlt,T=E.neutralPrimary,D=E.neutralSecondaryAlt,A=_.disabledText,R=_.disabledBackground,N=_.inputBackground,M=_.smallInputBorder,F=_.disabledBorder,B=!b&&{backgroundColor:w,selectors:(t={},t[ca]={backgroundColor:"Highlight"},t)},O=!b&&{backgroundColor:P,selectors:(n={},n[ca]={borderColor:"Highlight"},n)},L=!b&&{backgroundColor:I,selectors:(r={},r[ca]={backgroundColor:"Highlight"},r)},H=!b&&{border:"2px solid ".concat(w),selectors:(o={},o[ca]={borderColor:"Highlight"},o)},V=!e.disabled&&{backgroundColor:_.inputPlaceholderBackgroundChecked,selectors:(i={},i[ca]={backgroundColor:"Highlight"},i)};return{root:m(m(m(m(m([k.root,v.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[b?void 0:k.enabled],!1),[b?k.disabled:void 0],!1),[y?void 0:k.row],!1),[y?k.column:void 0],!1),[f],!1),titleLabel:[{padding:0},g],container:[k.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:m(m([k.slideBox,!x&&fa(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active .".concat(k.activeSection)]=B,a[":hover .".concat(k.activeSection)]=L,a[":active .".concat(k.inactiveSection)]=O,a[":hover .".concat(k.inactiveSection)]=O,a[":active .".concat(k.thumb)]=H,a[":hover .".concat(k.thumb)]=H,a[":active .".concat(k.zeroTick)]=V,a[":hover .".concat(k.zeroTick)]=V,a[ca]={forcedColorAdjust:"none"},a)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?k.showValue:void 0],!1),[C?k.showTransitions:void 0],!1),thumb:[k.thumb,x&&fa(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:M,borderRadius:10,boxSizing:"border-box",background:N,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Ot(v)?"translateX(50%)":"translateX(-50%)"},C&&{transition:"left ".concat(Ki," ").concat(Wi)},b&&{borderColor:F,selectors:(s={},s[ca]={borderColor:"GrayText"},s)}],line:[k.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[k.activeSection,{background:T,selectors:(l={},l[ca]={backgroundColor:"WindowText"},l)},C&&{transition:"width ".concat(Ki," ").concat(Wi)},b&&{background:A,selectors:(c={},c[ca]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[k.inactiveSection,{background:D,selectors:(u={},u[ca]={border:"1px solid WindowText"},u)},C&&{transition:"width ".concat(Ki," ").concat(Wi)},b&&{background:R,selectors:(d={},d[ca]={borderColor:"GrayText"},d)}],zeroTick:[k.zeroTick,{position:"absolute",background:_.disabledBorder,selectors:(p={},p[ca]={backgroundColor:"WindowText"},p)},e.disabled&&{background:_.disabledBackground,selectors:(h={},h[ca]={backgroundColor:"GrayText"},h)},e.vertical?{width:"16px",height:"1px",transform:Ot(v)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[k.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"}),yn((function(e){var t,n=e.semanticColors,r=n.disabledText,o=n.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:r,selectors:(t={":after":{borderColor:o}},t[ca]={color:"GrayText"},t)}}))),ek=yn((function(e,t,n){var r,o,i,a=e.palette,s=e.semanticColors,l=e.effects,c=a.neutralSecondary,u=s.buttonText,d=s.buttonText,p=s.buttonBackgroundHovered,h=s.buttonBackgroundPressed;return ge({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:c,selectors:{"&.ms-DownButton":{borderRadius:"0 0 ".concat(l.roundedCorner2," 0")},"&.ms-UpButton":{borderRadius:"0 ".concat(l.roundedCorner2," 0 0")}}},rootHovered:{backgroundColor:p,color:u},rootChecked:{backgroundColor:h,color:d,selectors:(r={},r[ca]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootPressed:{backgroundColor:h,color:d,selectors:(o={},o[ca]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:(i={},i[ca]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},n)}));!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(ZE||(ZE={}));var tk=cn(),nk="SpinButton",rk={disabled:!1,label:"",step:1,labelPosition:Ja.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},ok=function(){},ik=function(e,t){var n=t.min,r=t.max;return"number"===typeof r&&(e=Math.min(e,r)),"number"===typeof n&&(e=Math.max(e,n)),e},ak=o.forwardRef((function(e,t){var n=Co(rk,e),r=n.disabled,i=n.label,a=n.min,s=n.max,l=n.step,c=n.defaultValue,u=n.value,p=n.precision,h=n.labelPosition,m=n.iconProps,f=n.incrementButtonIcon,g=n.incrementButtonAriaLabel,v=n.decrementButtonIcon,y=n.decrementButtonAriaLabel,b=n.ariaLabel,C=n.ariaDescribedBy,S=n.upArrowButtonStyles,x=n.downArrowButtonStyles,_=n.theme,E=n.ariaPositionInSet,k=n.ariaSetSize,w=n.ariaValueNow,I=n.ariaValueText,P=n.className,T=n.inputProps,D=n.onDecrement,A=n.onIncrement,R=n.iconButtonProps,N=n.onValidate,M=n.onChange,F=n.styles,B=o.useRef(null),O=cl("input"),L=cl("Label"),H=o.useState(!1),V=H[0],z=H[1],U=o.useState(ZE.notSpinning),W=U[0],G=U[1],j=ol(),q=o.useMemo((function(){return null!==p&&void 0!==p?p:Math.max(function(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(l),0)}),[p,l]),K=sl(u,null!==c&&void 0!==c?c:String(a||0),M),Y=K[0],X=K[1],Q=o.useState(),Z=Q[0],J=Q[1],$=o.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;$.latestValue=Y,$.latestIntermediateValue=Z;var ee=pl(u);o.useEffect((function(){u!==ee&&void 0!==Z&&J(void 0)}),[u,ee,Z]);var te=tk(F,{theme:_,disabled:r,isFocused:V,keyboardSpinDirection:W,labelPosition:h,className:P}),ne=mr(n,hr,["onBlur","onFocus","className","onChange"]),re=o.useCallback((function(e){var t=$.latestIntermediateValue;if(void 0!==t&&t!==$.latestValue){var n=void 0;N?n=N(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(ik(Number(t),{min:a,max:s}))),void 0!==n&&n!==$.latestValue&&X(n,e)}J(void 0)}),[$,s,a,N,X]),oe=o.useCallback((function(){$.stepTimeoutHandle>=0&&(j.clearTimeout($.stepTimeoutHandle),$.stepTimeoutHandle=-1),($.spinningByMouse||W!==ZE.notSpinning)&&($.spinningByMouse=!1,G(ZE.notSpinning))}),[$,W,j]),ie=o.useCallback((function(e,t){if(t.persist(),void 0!==$.latestIntermediateValue)return"keydown"!==t.type&&"mousedown"!==t.type||re(t),void j.requestAnimationFrame((function(){ie(e,t)}));var n=e($.latestValue||"",t);void 0!==n&&n!==$.latestValue&&X(n,t);var r=$.spinningByMouse;$.spinningByMouse="mousedown"===t.type,$.spinningByMouse&&($.stepTimeoutHandle=j.setTimeout((function(){ie(e,t)}),r?75:400))}),[$,j,re,X]),ae=o.useCallback((function(e){if(A)return A(e);var t=ik(Number(e)+Number(l),{max:s});return t=Qr(t,q),String(t)}),[q,s,A,l]),se=o.useCallback((function(e){if(D)return D(e);var t=ik(Number(e)-Number(l),{min:a});return t=Qr(t,q),String(t)}),[q,a,D,l]),le=o.useCallback((function(e){(r||e.which===gt||e.which===yt)&&oe()}),[r,oe]),ce=o.useCallback((function(e){ie(ae,e)}),[ae,ie]),ue=o.useCallback((function(e){ie(se,e)}),[se,ie]);!function(e,t,n){o.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}}),[t,n])}(n,B,Y),sk(n);var de=!!Y&&!isNaN(Number(Y)),pe=(m||i)&&o.createElement("div",{className:te.labelWrapper},m&&o.createElement(Rc,d({},m,{className:te.icon,"aria-hidden":"true"})),i&&o.createElement(Hm,{id:L,htmlFor:O,className:te.label,disabled:r},i));return o.createElement("div",{className:te.root,ref:t},h!==Ja.bottom&&pe,o.createElement("div",d({},ne,{className:te.spinButtonWrapper,"aria-label":b&&b,"aria-posinset":E,"aria-setsize":k,"data-ktp-target":!0}),o.createElement("input",d({value:null!==Z&&void 0!==Z?Z:Y,id:O,onChange:ok,onInput:function(e){J(e.target.value)},className:te.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":i&&L,"aria-valuenow":null!==w&&void 0!==w?w:de?Number(Y):void 0,"aria-valuetext":null!==I&&void 0!==I?I:de?void 0:Y,"aria-valuemin":a,"aria-valuemax":s,"aria-describedby":C,onBlur:function(e){var t;re(e),z(!1),null===(t=n.onBlur)||void 0===t||t.call(n,e)},ref:B,onFocus:function(e){var t;B.current&&(($.spinningByMouse||W!==ZE.notSpinning)&&oe(),B.current.select(),z(!0),null===(t=n.onFocus)||void 0===t||t.call(n,e))},onKeyDown:function(e){if(e.which!==gt&&e.which!==yt&&e.which!==it||(e.preventDefault(),e.stopPropagation()),r)oe();else{var t=ZE.notSpinning;switch(e.which){case gt:t=ZE.up,ie(ae,e);break;case yt:t=ZE.down,ie(se,e);break;case it:re(e);break;case ct:J(void 0)}W!==t&&G(t)}},onKeyUp:le,disabled:r,"aria-disabled":r,"data-lpignore":!0,"data-ktp-execute-target":!0},T)),o.createElement("span",{className:te.arrowButtonsContainer},o.createElement(Pp,d({styles:ek(_,!0,S),className:"ms-UpButton",checked:W===ZE.up,disabled:r,iconProps:f,onMouseDown:ce,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:g,"data-is-focusable":!1},R)),o.createElement(Pp,d({styles:ek(_,!1,x),className:"ms-DownButton",checked:W===ZE.down,disabled:r,iconProps:v,onMouseDown:ue,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:y,"data-is-focusable":!1},R)))),h===Ja.bottom&&pe)}));ak.displayName=nk;var sk=function(e){Sl({name:nk,props:e,mutuallyExclusive:{value:"defaultValue"}})},lk=(vo(ak,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.labelPosition,l=e.disabled,c=e.isFocused,u=i.palette,p=i.semanticColors,h=i.effects,m=i.fonts,f=p.inputBorder,g=p.inputBackground,v=p.inputBorderHovered,y=p.inputFocusBorderAlt,b=p.inputText,C=u.white,S=p.inputBackgroundChecked,x=p.disabledText;return{root:[m.medium,{outline:"none",width:"100%",minWidth:86},a],labelWrapper:[{display:"inline-flex",alignItems:"center"},s===Ja.start&&{height:32,float:"left",marginRight:10},s===Ja.end&&{height:32,float:"right",marginLeft:10},s===Ja.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:oi.large},l&&{color:x}],label:{pointerEvents:"none",lineHeight:oi.large},spinButtonWrapper:[d(d({display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86},va(f,h.roundedCorner2,"border",0)),{":after":(t={borderWidth:"1px"},t[ca]={borderColor:"GrayText"},t)}),(s===Ja.top||s===Ja.bottom)&&{width:"100%"},!l&&[{":hover:after":(n={borderColor:v},n[ca]={borderColor:"Highlight"},n)},c&&{":hover:after, :after":(r={borderColor:y,borderWidth:"2px"},r[ca]={borderColor:"Highlight"},r)}],l&&$E(i)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:m.medium.fontSize,fontFamily:"inherit",color:b,backgroundColor:g,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:"".concat(h.roundedCorner2," 0 0 ").concat(h.roundedCorner2)},!l&&{selectors:{"::selection":{backgroundColor:S,color:C,selectors:(o={},o[ca]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},o)}}},l&&$E(i)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},l&&$E(i)]}}),void 0,{scope:"SpinButton"}),d);function ck(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e;return i.isSlot?0===(n=o.Children.toArray(n)).length?i(t):i(d(d({},t),{children:n})):o.createElement.apply(o,m([e,t],n,!1))}function uk(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,i,a,s){if(o.isValidElement(n))return n;var l=function(e,t){var n,r;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((n={})[e]=t,r=n):r=t;return r}(r,n),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),lk(o,l)}return o.className=fe([e,i],{rtl:Ot(t)}),o}(a,s,t,l);if(i){if(i.component){var u=i.component;return o.createElement(u,d({},c))}if(i.render)return i.render(c,e)}return o.createElement(e,d({},c))}}var dk=yn((function(e){return uk(e)}));function pk(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return hk(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function hk(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):dk(e)(t,n,r,o,i)}function mk(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,i=function(n){var r=function(e,t,n){var r=["theme","styles","tokens"];return Tn.getSettings(n||r,e,t.customizations)}(t.displayName,o.useContext(Dn),t.fields),i=t.state;i&&(n=d(d({},n),i(n)));var a=n.theme||r.theme,s=fk(n,a,t.tokens,r.tokens,n.tokens),l=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return ge.apply(void 0,r.map((function(r){return"function"===typeof r?r(e,t,n):r})))}(n,a,s,t.styles,r.styles,n.styles),c=d(d({},n),{styles:l,tokens:s,_defaultStyles:l,theme:a});return e(c)};return i.displayName=t.displayName||e.name,r&&(i.create=uk(i,{defaultProp:r})),lk(i,t.statics),i}function fk(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=0,a=n;i<a.length;i++){var s=a[i];s&&(s="function"===typeof s?s(e,t):s,Array.isArray(s)&&(s=fk.apply(void 0,m([e,t],s,!1))),lk(o,s))}return o}A("@fluentui/foundation-legacy","8.2.43");var gk={root:"ms-StackItem"},vk={start:"flex-start",end:"flex-end"},yk=mk((function(e){var t=e.children,n=mr(e,qn);return null==t?null:ck(pk(e,{root:"div"}).root,d({},n),t)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=e.basis,d=void 0===u?"auto":u,p=ka(gk,t);return{root:[t.fonts.medium,p.root,{flexBasis:d,margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(i||!r&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:vk[a]||a},l&&{order:l},c]}}}),bk=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},Ck=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},Sk=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?bk(e,t):n.reduce((function(e,n){return bk(e,t)+" "+bk(n,t)}))},xk={start:"flex-start",end:"flex-end"},_k={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"};function Ek(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,i=o.Children.toArray(e);return i=o.Children.map(i,(function(e){if(!e||!o.isValidElement(e))return e;if(e.type===o.Fragment)return e.props.children?Ek(e.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var t,i=e,a={};(t=e)&&"object"===typeof t&&t.type&&t.type.displayName===yk.displayName&&(a={shrink:!n});var s=i.props.className;return o.cloneElement(i,d(d(d(d({},a),i.props),s&&{className:s}),r&&{className:kn(_k.child,s)}))}))}var kk,wk=mk((function(e){var t=e.as,n=void 0===t?"div":t,r=e.disableShrink,o=void 0!==r&&r,i=e.enableScopedSelectors,a=void 0!==i&&i,s=e.wrap,l=p(e,["as","disableShrink","enableScopedSelectors","wrap"]);Ye("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var c=Ek(e.children,{disableShrink:o,enableScopedSelectors:a}),u=mr(l,qn),h=pk(e,{root:n,inner:"div"});return ck(h.root,d({},u),s?ck(h.inner,null,c):c)}),{displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,l,c,u,p,h,m,f,g,v=e.className,y=e.disableShrink,b=e.enableScopedSelectors,C=e.grow,S=e.horizontal,x=e.horizontalAlign,_=e.reversed,E=e.verticalAlign,k=e.verticalFill,w=e.wrap,I=ka(_k,t),P=n&&n.childrenGap?n.childrenGap:e.gap,T=n&&n.maxHeight?n.maxHeight:e.maxHeight,D=n&&n.maxWidth?n.maxWidth:e.maxWidth,A=n&&n.padding?n.padding:e.padding,R=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"===typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:Ck(bk(n[0],t)),columnGap:Ck(bk(n[1],t))};var r=Ck(bk(e,t));return{rowGap:r,columnGap:r}}(P,t),N=R.rowGap,M=R.columnGap,F="".concat(-.5*M.value).concat(M.unit),B="".concat(-.5*N.value).concat(N.unit),O={textOverflow:"ellipsis"},L="> "+(b?"."+_k.child:"*"),H=((r={})["".concat(L,":not(.").concat(gk.root,")")]={flexShrink:0},r);return w?{root:[I.root,{flexWrap:"wrap",maxWidth:D,maxHeight:T,width:"auto",overflow:"visible",height:"100%"},x&&(o={},o[S?"justifyContent":"alignItems"]=xk[x]||x,o),E&&(i={},i[S?"alignItems":"justifyContent"]=xk[E]||E,i),v,{display:"flex"},S&&{height:k?"100%":"auto"}],inner:[I.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:F,marginRight:F,marginTop:B,marginBottom:B,overflow:"visible",boxSizing:"border-box",padding:Sk(A,t),width:0===M.value?"100%":"calc(100% + ".concat(M.value).concat(M.unit,")"),maxWidth:"100vw"},a[L]=d({margin:"".concat(.5*N.value).concat(N.unit," ").concat(.5*M.value).concat(M.unit)},O),a),y&&H,x&&(s={},s[S?"justifyContent":"alignItems"]=xk[x]||x,s),E&&(l={},l[S?"alignItems":"justifyContent"]=xk[E]||E,l),S&&(c={flexDirection:_?"row-reverse":"row",height:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")")},c[L]={maxWidth:0===M.value?"100%":"calc(100% - ".concat(M.value).concat(M.unit,")")},c),!S&&(u={flexDirection:_?"column-reverse":"column",height:"calc(100% + ".concat(N.value).concat(N.unit,")")},u[L]={maxHeight:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},u)]}:{root:[I.root,(p={display:"flex",flexDirection:S?_?"row-reverse":"row":_?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:k?"100%":"auto",maxWidth:D,maxHeight:T,padding:Sk(A,t),boxSizing:"border-box"},p[L]=O,p),y&&H,C&&{flexGrow:!0===C?1:C},x&&(h={},h[S?"justifyContent":"alignItems"]=xk[x]||x,h),E&&(m={},m[S?"alignItems":"justifyContent"]=xk[E]||E,m),S&&M.value>0&&(f={},f["".concat(L,_?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(M.value).concat(M.unit)},f),!S&&N.value>0&&(g={},g["".concat(L,_?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(N.value).concat(N.unit)},g),v]}},statics:{Item:yk}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(kk||(kk={}));!function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyContentTop=o.createRef(),n._stickyContentBottom=o.createRef(),n._nonStickyContent=o.createRef(),n._placeHolder=o.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){if(n.root&&n.nonStickyContent){var r=n._getNonStickyDistanceFromTop(e),o=!1,i=!1;if(n.canStickyTop)o=r-n._getStickyDistanceFromTop()<e.scrollTop;n.canStickyBottom&&e.clientHeight-t.offsetHeight<=r&&(i=r-Math.floor(e.scrollTop)>=n._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&n.nonStickyContent.contains(document.activeElement)&&(n.state.isStickyTop!==o||n.state.isStickyBottom!==i)?n._activeElement=document.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&o,isStickyBottom:i,distanceFromTop:r})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var r=0;return n.stickyContentBottom&&(r=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),r},n._getNonStickyDistanceFromTop=function(e){var t=0,r=n.root;if(r){for(;r&&r.offsetParent!==e;)t+=r.offsetTop,r=r.offsetParent;r&&r.offsetParent===e&&(t+=r.offsetTop)}return t},br(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n}u(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===kk.Both||this.props.stickyPosition===kk.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===kk.Both||this.props.stickyPosition===kk.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,i=r.isStickyTop,a=r.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,i=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||Ik(this._nonStickyContent,this._stickyContentTop)||Ik(this._nonStickyContent,this._stickyContentBottom)||Ik(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,r=this.props,i=r.stickyClassName,a=r.children;return this.context.scrollablePane?o.createElement("div",{ref:this._root},this.canStickyTop&&o.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},o.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&o.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},o.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),o.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&o.createElement("span",{style:ya},a),o.createElement("div",{ref:this._nonStickyContent,className:t||n?i:void 0,style:this._getContentStyles(t||n)},a))):o.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:kk.Both,isScrollSynced:!0},t.contextType=eE}(o.Component);function Ik(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var Pk=cn(),Tk=function(e){var t=Vf(e);return"ffffff"===(null===t||void 0===t?void 0:t.hex)},Dk=yn((function(e,t,n,r,o,i,a,s,l){var c=_p(e);return ve({root:["ms-Button",c.root,n,t,a&&["is-checked",c.rootChecked],i&&["is-disabled",c.rootDisabled],!i&&!a&&{selectors:{":hover":c.rootHovered,":focus":c.rootFocused,":active":c.rootPressed}},i&&a&&[c.rootCheckedDisabled],!i&&a&&{selectors:{":hover":c.rootCheckedHovered,":active":c.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",c.flexContainer]})})),Ak={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},Rk=vo((function(e){var t=e.item,n=e.idPrefix,r=void 0===n?e.id:n,i=e.isRadio,a=e.selected,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.styles,p=e.circle,h=void 0===p||p,m=e.color,f=e.onClick,g=e.onHover,v=e.onFocus,y=e.onMouseEnter,b=e.onMouseMove,C=e.onMouseLeave,S=e.onWheel,x=e.onKeyDown,_=e.height,E=e.width,k=e.borderWidth,w=Pk(u,{theme:e.theme,disabled:c,selected:s,circle:h,isWhite:Tk(m),height:_,width:E,borderWidth:k}),I=function(e){var t,n=w.svg;return o.createElement("svg",{className:n,role:"img","aria-label":e.label,viewBox:"0 0 20 20",fill:null===(t=Vf(e.color))||void 0===t?void 0:t.str},h?o.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):o.createElement("rect",{width:"100%",height:"100%"}))},P=i?{role:"radio","aria-checked":s,selected:void 0}:{role:"gridcell",selected:s};return o.createElement(ih,d({item:t,id:"".concat(r,"-").concat(t.id,"-").concat(t.index),key:t.id,disabled:c},P,{onRenderItem:function(t){var n=e.onRenderColorCellContent;return(void 0===n?I:n)(t,I)},onClick:f,onHover:g,onFocus:v,label:t.label,className:w.colorCell,getClassNames:Dk,index:t.index,onMouseEnter:y,onMouseMove:b,onMouseLeave:C,onWheel:S,onKeyDown:x}))}),(function(e){var t,n,r,o,i,a=e.theme,s=e.disabled,l=e.selected,c=e.circle,u=e.isWhite,d=e.height,p=void 0===d?20:d,h=e.width,m=void 0===h?20:h,f=e.borderWidth,g=a.semanticColors,v=a.palette,y=v.neutralLighter,b=v.neutralLight,C=v.neutralSecondary,S=v.neutralTertiary,x=f||(m<24?2:4);return{colorCell:[fa(a,{inset:-1,position:"relative",highContrastStyle:Ak}),{backgroundColor:g.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:p,width:m,verticalAlign:"top"},!c&&{selectors:(t={},t[".".concat(wr," &:focus::after")]={outlineOffset:"".concat(x-1,"px")},t)},c&&{borderRadius:"50%",selectors:(n={},n[".".concat(wr," &:focus::after")]={outline:"none",borderColor:g.focusBorder,borderRadius:"50%",left:-x,right:-x,top:-x,bottom:-x,selectors:(r={},r[ca]={outline:"1px solid ButtonText"},r)},n)},l&&{padding:2,border:"".concat(x,"px solid ").concat(b),selectors:(o={},o["&:hover::before"]={content:'""',height:p,width:m,position:"absolute",top:-x,left:-x,borderRadius:c?"50%":"default",boxShadow:"inset 0 0 0 1px ".concat(C)},o)},!l&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:g.bodyBackground,padding:2,border:"".concat(x,"px solid ").concat(y)},i["&:focus"]={borderColor:g.bodyBackground,padding:0,selectors:{":hover":{borderColor:a.palette.neutralLight,padding:2}}},i)},s&&{color:g.disabledBodyText,pointerEvents:"none",opacity:.3},u&&!l&&{backgroundColor:S,padding:1}],svg:[{width:"100%",height:"100%"},c&&{borderRadius:"50%"}]}}),void 0,{scope:"ColorPickerGridCell"},!0),Nk=cn(),Mk="SwatchColorPicker";var Fk=o.forwardRef((function(e,t){var n=cl("swatchColorPicker"),r=e.id||n,i=il({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),a=ml(),s=a.setTimeout,l=a.clearTimeout;!function(e){Sl({name:Mk,props:e,mutuallyExclusive:{focusOnHover:"onHover",selectedId:"defaultSelectedId"},deprecations:{isControlled:"selectedId' or 'defaultSelectedId",onColorChanged:"onChange"}})}(e);var c=e.colorCells,u=e.cellShape,p=void 0===u?"circle":u,h=e.columnCount,m=e.shouldFocusCircularNavigate,f=void 0===m||m,g=e.className,v=e.disabled,y=void 0!==v&&v,b=e.doNotContainWithinFocusZone,C=e.styles,S=e.cellMargin,x=void 0===S?10:S,_=e.defaultSelectedId,E=e.focusOnHover,k=e.mouseLeaveParentSelector,w=e.onChange,I=e.onColorChanged,P=e.onCellHovered,T=e.onCellFocused,D=e.getColorGridCellStyles,A=e.cellHeight,R=e.cellWidth,N=e.cellBorderWidth,M=e.onRenderColorCellContent,F=o.useMemo((function(){return c.map((function(e,t){return d(d({},e),{index:t})}))}),[c]),B=o.useCallback((function(e,t){var n,r=null===(n=c.filter((function(e){return e.id===t}))[0])||void 0===n?void 0:n.color;null===w||void 0===w||w(e,t,r),null===I||void 0===I||I(t,r)}),[w,I,c]),O=sl(e.selectedId,_,B),L=O[0],H=O[1],V=Nk(C,{theme:e.theme,className:g,cellMargin:x}),z={root:V.root,tableCell:V.tableCell,focusedContainer:V.focusedContainer},U=c.length<=h,W=o.useCallback((function(e){T&&(i.cellFocused=!1,T(void 0,void 0,e))}),[i,T]),G=o.useCallback((function(e){return E?(i.isNavigationIdle&&!y&&e.currentTarget.focus(),!0):!i.isNavigationIdle||!!y}),[E,i,y]),j=o.useCallback((function(e){if(!E)return!i.isNavigationIdle||!!y;var t=e.currentTarget;return!i.isNavigationIdle||document&&t===document.activeElement||t.focus(),!0}),[E,i,y]),q=o.useCallback((function(e){var t=k;if(E&&t&&i.isNavigationIdle&&!y)for(var n=document.querySelectorAll(t),r=0;r<n.length;r+=1)if(n[r].contains(e.currentTarget)){if(n[r].setActive)try{n[r].setActive()}catch(Iw){}else n[r].focus();break}}),[y,E,i,k]),K=o.useCallback((function(e,t){P&&(e?P(e.id,e.color,t):P(void 0,void 0,t))}),[P]),Y=o.useCallback((function(e,t){if(T)return e?(i.cellFocused=!0,T(e.id,e.color,t)):(i.cellFocused=!1,T(void 0,void 0,t))}),[i,T]),X=o.useCallback((function(e,t){y||e.disabled||e.id!==L&&(T&&i.cellFocused&&(i.cellFocused=!1,T(void 0,void 0,t)),H(e.id,t))}),[y,i,T,L,H]),Q=o.useCallback((function(){i.isNavigationIdle||void 0===i.navigationIdleTimeoutId?i.isNavigationIdle=!1:(l(i.navigationIdleTimeoutId),i.navigationIdleTimeoutId=void 0),i.navigationIdleTimeoutId=s((function(){i.isNavigationIdle=!0}),i.navigationIdleDelay)}),[l,i,s]),Z=o.useCallback((function(e){e.which!==gt&&e.which!==yt&&e.which!==ft&&e.which!==vt||Q()}),[Q]),J=function(e){return o.createElement(Rk,{item:e,idPrefix:r,color:e.color,styles:D,disabled:y||e.disabled,onClick:X,onHover:K,onFocus:Y,selected:L===e.id,circle:"circle"===p,label:e.label,onMouseEnter:G,onMouseMove:j,onMouseLeave:q,onWheel:Q,onKeyDown:Z,onRenderColorCellContent:M,height:A,width:R,borderWidth:N,isRadio:U})};if(c.length<1||h<1)return null;return o.createElement(eh,d({},e,{ref:t,id:r,items:F,columnCount:h,isSemanticRadio:U,onRenderItem:function(t,n){var r=e.onRenderColorCell;return(void 0===r?J:r)(t,J)},shouldFocusCircularNavigate:f,doNotContainWithinFocusZone:b,onBlur:W,theme:e.theme,styles:z}))}));Fk.displayName=Mk;var Bk={focusedContainer:"ms-swatchColorPickerBodyContainer"},Ok=(vo(Fk,(function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[ka(Bk,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}}),void 0,{scope:"SwatchColorPicker"}),cn()),Lk=o.forwardRef((function(e,t){var n,r,i,a,s,l,c,u=o.useRef(null),p=vl(),h=ul(u,t),m=cl("teaching-bubble-content-"),f=cl("teaching-bubble-title-"),g=null!==(n=e.ariaDescribedBy)&&void 0!==n?n:m,v=null!==(r=e.ariaLabelledBy)&&void 0!==r?r:f,y=e.illustrationImage,b=e.primaryButtonProps,C=e.secondaryButtonProps,S=e.headline,x=e.hasCondensedHeadline,_=e.hasCloseButton,E=void 0===_?e.hasCloseIcon:_,k=e.onDismiss,w=e.closeButtonAriaLabel,I=e.hasSmallHeadline,P=e.isWide,T=e.styles,D=e.theme,A=e.footerContent,R=e.focusTrapZoneProps,N=Ok(T,{theme:D,hasCondensedHeadline:x,hasSmallHeadline:I,hasCloseButton:E,hasHeadline:!!S,isWide:P,primaryButtonClassName:b?b.className:void 0,secondaryButtonClassName:C?C.className:void 0});if(dl(p,"keydown",o.useCallback((function(e){k&&e.which===ct&&k(e)}),[k])),y&&y.src&&(i=o.createElement("div",{className:N.imageContent},o.createElement(kc,d({},y)))),S){var M="string"===typeof S?"p":"div";a=o.createElement("div",{className:N.header},o.createElement(M,{role:"heading","aria-level":3,className:N.headline,id:v},S))}if(e.children){var F="string"===typeof e.children?"p":"div";s=o.createElement("div",{className:N.body},o.createElement(F,{className:N.subText,id:g},e.children))}return(b||C||A)&&(l=o.createElement(wk,{className:N.footer,horizontal:!0,horizontalAlign:A?"space-between":"end"},o.createElement(wk.Item,{align:"center"},o.createElement("span",null,A)),o.createElement(wk.Item,null,b&&o.createElement(Tp,d({},b,{className:N.primaryButton})),C&&o.createElement(xp,d({},C,{className:N.secondaryButton}))))),E&&(c=o.createElement(Pp,{className:N.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:w,onClick:k})),function(e,t){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,u),o.createElement("div",{className:N.content,ref:h,role:"dialog",tabIndex:-1,"aria-labelledby":v,"aria-describedby":g,"data-is-focusable":!0},i,o.createElement(ac,d({isClickableOutsideFocusTrap:!0},R),o.createElement("div",{className:N.bodyContent},a,s,l,c)))})),Hk={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},Vk=yn((function(){return Se({"0%":{opacity:0,animationTimingFunction:Wi,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),zk=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:"".concat(Vk()),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},Uk=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Wk=function(e){var t,n,r,o=e.hasCondensedHeadline,i=e.hasSmallHeadline,a=e.hasCloseButton,s=e.hasHeadline,l=e.isWide,c=e.primaryButtonClassName,u=e.secondaryButtonClassName,d=e.theme,p=e.calloutProps,h=void 0===p?{className:void 0,theme:d}:p,f=!o&&!i,g=d.palette,v=d.semanticColors,y=d.fonts,b=ka(Hk,d),C=fa(d,{outlineColor:"transparent",borderColor:"transparent"});return{root:[b.root,y.medium,h.className],body:[b.body,a&&!s&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[b.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[b.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:g.white,fontSize:y.small.fontSize,selectors:{":hover":{background:g.themeDarkAlt,color:g.white},":active":{background:g.themeDark,color:g.white},":focus":{border:"1px solid ".concat(v.variantBorder)}}}],content:m(m([b.content],zk(l),!0),[l&&{display:"flex"}],!1),footer:[b.footer,{display:"flex",flex:"auto",alignItems:"center",color:g.white,selectors:(t={},t[".".concat(b.button,":not(:first-child)")]={marginLeft:10},t)}],header:m(m([b.header],Uk(b,o,i),!0),[a&&{marginRight:24},(o||i)&&[y.medium,{fontWeight:ri.semibold}]],!1),headline:[b.headline,{margin:0,color:g.white,fontWeight:ri.semibold,overflowWrap:"break-word"},f&&[{fontSize:y.xLarge.fontSize}]],imageContent:[b.header,b.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[b.primaryButton,c,C,{backgroundColor:g.white,borderColor:g.white,color:g.themePrimary,whiteSpace:"nowrap",selectors:(n={},n[".".concat(b.buttonLabel)]=y.medium,n[":hover"]={backgroundColor:g.themeLighter,borderColor:g.themeLighter,color:g.themeDark},n[":focus"]={backgroundColor:g.themeLighter,border:"1px solid ".concat(g.black),color:g.themeDark,outline:"1px solid ".concat(g.white),outlineOffset:"-2px"},n[":active"]={backgroundColor:g.white,borderColor:g.white,color:g.themePrimary},n)}],secondaryButton:[b.secondaryButton,u,C,{backgroundColor:g.themePrimary,borderColor:g.white,whiteSpace:"nowrap",selectors:(r={},r[".".concat(b.buttonLabel)]=[y.medium,{color:g.white}],r[":hover"]={backgroundColor:g.themeDarkAlt,borderColor:g.white},r[":focus"]={backgroundColor:g.themeDark,border:"1px solid ".concat(g.black),outline:"1px solid ".concat(g.white),outlineOffset:"-2px"},r[":active"]={backgroundColor:g.themePrimary,borderColor:g.white},r)}],subText:[b.subText,{margin:0,fontSize:y.medium.fontSize,color:g.white,fontWeight:ri.regular}],subComponentStyles:{callout:{root:m(m([],zk(l,h),!0),[y.medium],!1),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},Gk=vo(Lk,Wk,void 0,{scope:"TeachingBubbleContent"}),jk={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Cs},qk=cn(),Kk=o.forwardRef((function(e,t){var n=o.useRef(null),r=ul(n,t),i=e.calloutProps,a=e.targetElement,s=e.onDismiss,l=e.hasCloseButton,c=void 0===l?e.hasCloseIcon:l,u=e.isWide,p=e.styles,h=e.theme,m=e.target,f=o.useMemo((function(){return d(d(d({},jk),i),{theme:h})}),[i,h]),g=qk(p,{theme:h,isWide:u,calloutProps:f,hasCloseButton:c}),v=g.subComponentStyles?g.subComponentStyles.callout:void 0;return function(e,t){o.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,n),o.createElement(oc,d({target:m||a,onDismiss:s},f,{className:g.root,styles:v,hideOverflow:!0}),o.createElement("div",{ref:r},o.createElement(Gk,d({},e))))}));Kk.displayName="TeachingBubble";var Yk,Xk,Qk;vo(Kk,Wk,void 0,{scope:"TeachingBubble"}),mk((function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,p(e,["block","className","as","variant","nowrap"]));return ck(pk(e,{root:n}).root,d({},mr(r,qn)))}),{displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),function(){function e(){}e.setSlot=function(t,n,r,o,i){if(void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0),t.color||!t.value)if(i){var a=void 0;if("string"===typeof n){if(!(a=Vf(n)))throw new Error("color is invalid in setSlot(): "+n)}else a=n;e._setSlot(t,a,r,o,i)}else t.color&&e._setSlot(t,t.color,r,o,i)},e.insureSlots=function(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(!o.inherits&&!o.value){if(!o.color)throw new Error("A color slot rule that does not inherit must provide its own color.");e._setSlot(o,o.color,n,!1,!1)}}},e.getThemeAsJson=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.name]=r.color?r.color.str:r.value||""}return t},e.getThemeAsCode=function(t){return e._makeRemainingCode("loadTheme({\n  palette: {\n",t)},e.getThemeAsCodeWithCreateTheme=function(t){return e._makeRemainingCode("const myTheme = createTheme({\n  palette: {\n",t)},e.getThemeAsSass=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.name.charAt(0).toLowerCase()+r.name.slice(1);t+=mo('${0}Color: "[theme: {1}, default: {2}]";\n',o,o,r.color?r.color.str:r.value||"")}return t},e.getThemeForPowerShell=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.value)continue;var o=r.name.charAt(0).toLowerCase()+r.name.slice(1),i=r.color?"#"+r.color.hex:r.value||"";r.color&&r.color.a&&100!==r.color.a&&(i+=String(r.color.a.toString(16))),t+=mo('"{0}" = "{1}";\n',o,i)}return"@{\n"+t+"}"},e._setSlot=function(t,n,r,o,i){if(void 0===i&&(i=!0),(t.color||!t.value)&&(i||!t.color||!t.isCustomized||!t.inherits)){!i&&t.isCustomized||o||!t.inherits||!$f(t.asShade)?(t.color=n,t.isCustomized=!0):(t.isBackgroundShade?t.color=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===Gf.Unshaded||!$f(t))return e;var r={h:e.h,s:e.s,v:e.v},o=t-1;return Hf(Pe(Df((r=n?tg(r,qf[Yf.length-1-o]):eg(r,jf[o])).h,r.s,r.v),{a:e.a}))}(n,t.asShade,r):t.color=ng(n,t.asShade,r),t.isCustomized=!1);for(var a=0,s=t.dependentRules;a<s.length;a++){var l=s[a];e._setSlot(l,t.color,r,!1,i)}}},e._makeRemainingCode=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e+=mo("    {0}: '{1}',\n",r.name.charAt(0).toLowerCase()+r.name.slice(1),r.color?"#"+r.color.hex:r.value||"")}return e+="  }});"}}();!function(e){e[e.primaryColor=0]="primaryColor",e[e.backgroundColor=1]="backgroundColor",e[e.foregroundColor=2]="foregroundColor"}(Yk||(Yk={})),function(e){e[e.themePrimary=0]="themePrimary",e[e.themeLighterAlt=1]="themeLighterAlt",e[e.themeLighter=2]="themeLighter",e[e.themeLight=3]="themeLight",e[e.themeTertiary=4]="themeTertiary",e[e.themeSecondary=5]="themeSecondary",e[e.themeDarkAlt=6]="themeDarkAlt",e[e.themeDark=7]="themeDark",e[e.themeDarker=8]="themeDarker",e[e.neutralLighterAlt=9]="neutralLighterAlt",e[e.neutralLighter=10]="neutralLighter",e[e.neutralLight=11]="neutralLight",e[e.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",e[e.neutralQuaternary=13]="neutralQuaternary",e[e.neutralTertiaryAlt=14]="neutralTertiaryAlt",e[e.neutralTertiary=15]="neutralTertiary",e[e.neutralSecondaryAlt=16]="neutralSecondaryAlt",e[e.neutralSecondary=17]="neutralSecondary",e[e.neutralPrimaryAlt=18]="neutralPrimaryAlt",e[e.neutralPrimary=19]="neutralPrimary",e[e.neutralDark=20]="neutralDark",e[e.black=21]="black",e[e.white=22]="white"}(Xk||(Xk={})),function(e){e[e.bodyBackground=0]="bodyBackground",e[e.bodyText=1]="bodyText",e[e.disabledBackground=2]="disabledBackground",e[e.disabledText=3]="disabledText"}(Qk||(Qk={}));var Zk=/^((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,Jk=/^((1[0-2]|0?[1-9]):[0-5][0-9]\s([AaPp][Mm]))$/,$k=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,ew=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/;(function(e){var t=e.label,n=e.increments,r=void 0===n?30:n,i=e.showSeconds,a=void 0!==i&&i,s=e.allowFreeform,l=void 0===s||s,c=e.useHour12,u=void 0!==c&&c,h=e.timeRange,m=e.strings,f=void 0===m?function(e,t){var n=e?"12-hour":"24-hour",r="hh:mm".concat(t?":ss":"").concat(e?" AP":"");return{invalidInputErrorMessage:"Enter a valid time in the ".concat(n," format: ").concat(r),timeOutOfBoundsErrorMessage:"Please enter a time within the range of {0} and {1}"}}(u,a):m,g=e.defaultValue,v=e.value,y=e.dateAnchor,b=e.onChange,C=e.onFormatDate,S=e.onValidateUserInput,x=e.onValidationResult,_=p(e,["label","increments","showSeconds","allowFreeform","useHour12","timeRange","strings","defaultValue","value","dateAnchor","onChange","onFormatDate","onValidateUserInput","onValidationResult"]),E=o.useState(""),k=E[0],w=E[1],I=o.useState(),P=I[0],T=I[1],D=o.useState(""),A=D[0],R=D[1],N=il(new Date),M=sl(v,g),F=M[0],B=M[1],O=rw(r,h),L=y||v||g||N,H=o.useMemo((function(){return tw(L,"start",r,h)}),[L,r,h]),V=o.useMemo((function(){return tw(L,"end",r,h)}),[L,r,h]),z=o.useMemo((function(){for(var e=Array(O),t=0;t<O;t++)e[t]=0;return e.map((function(e,t){var n=function(e,t){var n=new Date(e.getTime());return n.setTime(n.getTime()+t*ah.MinutesInOneHour*ah.MillisecondsIn1Sec),n}(H,r*t);n.setSeconds(0);var o=Fh(n,a,u);return{key:o,text:C?C(n):o}}))}),[H,r,O,a,C,u]);o.useEffect((function(){if(F&&!isNaN(F.valueOf())){var e=Fh(F,a,u),t=z.find((function(t){return t.key===e}));T(null===t||void 0===t?void 0:t.key),w(t?t.text:e)}else T(null)}),[F,z,C,a,u]);var U=o.useCallback((function(e,t,n,r){var o,i="";if(r&&l&&!t&&(C?S&&(i=S(r)):i=function(e){var t="";if((u?a?Zk:Jk:a?$k:ew).test(e)){if(h&&f.timeOutOfBoundsErrorMessage){var n=Mh(u,H,e);(n<H||n>V)&&(t=mo(f.timeOutOfBoundsErrorMessage,H.toString(),V.toString()))}}else t=f.invalidInputErrorMessage;return t}(r)),x&&A!==i&&x(e,{errorMessage:i}),i||void 0!==r&&!r.length){var s=r||(null===t||void 0===t?void 0:t.text)||"";w(s),B(i?new Date("invalid"):void 0),o=new Date("invalid")}else{s=(null===t||void 0===t?void 0:t.key)||r||"";var c=Mh(u,H,s);B(c),o=c}null===b||void 0===b||b(e,o),R(i)}),[h,H,V,l,C,S,a,u,f.invalidInputErrorMessage,f.timeOutOfBoundsErrorMessage,B,x,b,A]);return o.createElement(Jg,d({},_,{allowFreeform:l,selectedKey:P,label:t,errorMessage:A,options:z,onChange:U,text:k,onKeyPress:function(e){var t=e.charCode;C||t>=Ct&&t<=St||t===ut||t===xt||t===Et||t===kt||e.preventDefault()},useComboBoxAsMenuWidth:!0}))}).displayName="TimePicker";var tw=function(e,t,n,r){var o=new Date(e.getTime());if(r){var i=nw(r),a="start"===t?i.start:i.end;o.getHours()!==a&&o.setHours(a)}else"end"===t&&o.setDate(o.getDate()+1);return o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),function(e,t){var n=new Date(e.getTime()),r=n.getMinutes();if(ah.MinutesInOneHour%t)n.setMinutes(0);else{for(var o=ah.MinutesInOneHour/t,i=1;i<=o;i++)if(r>t*(i-1)&&r<=t*i){r=t*i;break}n.setMinutes(r)}return n}(o,n)},nw=function(e){return{start:Math.min(Math.max(e.start,0),23),end:Math.min(Math.max(e.end,0),23)}},rw=function(e,t){var n=function(e){var t=ah.HoursInOneDay;if(e){var n=nw(e);n.start>n.end?t=ah.HoursInOneDay-e.start-e.end:e.end>e.start&&(t=e.end-e.start)}return t}(t);return Math.floor(ah.MinutesInOneHour*n/e)},ow=cn(),iw="Toggle",aw=o.forwardRef((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.ariaLabel,a=e.checked,s=e.className,l=e.defaultChecked,c=void 0!==l&&l,u=e.disabled,p=e.inlineLabel,h=e.label,m=e.offAriaLabel,f=e.offText,g=e.onAriaLabel,v=e.onChange,y=e.onChanged,b=e.onClick,C=e.onText,S=e.role,x=e.styles,_=e.theme,E=sl(a,c,o.useCallback((function(e,t){null===v||void 0===v||v(e,t),null===y||void 0===y||y(t)}),[v,y])),k=E[0],w=E[1],I=ow(x,{theme:_,className:s,disabled:u,checked:k,inlineLabel:p,onOffMissing:!C&&!f}),P=k?g:m,T=cl(iw,e.id),D="".concat(T,"-label"),A="".concat(T,"-stateText"),R=k?C:f,N=mr(e,er,["defaultChecked"]),M=void 0;i||P||(h&&(M=D),R&&!M&&(M=A));var F=o.useRef(null);Fr(F),sw(e,k,F),Sl({name:iw,props:e,deprecations:{offAriaLabel:void 0,onAriaLabel:"ariaLabel",onChanged:"onChange"},mutuallyExclusive:{checked:"defaultChecked"}});var B={root:{className:I.root,hidden:N.hidden},label:{children:h,className:I.label,htmlFor:T,id:D},container:{className:I.container},pill:d(d({},N),{"aria-disabled":u,"aria-checked":k,"aria-label":i||P,"aria-labelledby":M,className:I.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:u,id:T,onClick:function(e){u||(w(!k,e),b&&b(e))},ref:F,role:S||"switch",type:"button"}),thumb:{className:I.thumb},stateText:{children:R,className:I.text,htmlFor:T,id:A}};return o.createElement(r,d({ref:t},B.root),h&&o.createElement(Hm,d({},B.label)),o.createElement("div",d({},B.container),o.createElement("button",d({},B.pill),o.createElement("span",d({},B.thumb))),(k&&C||f)&&o.createElement(Hm,d({},B.stateText))))}));aw.displayName="ToggleBase";var sw=function(e,t,n){o.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},lw=(vo(aw,(function(e){var t,n,r,o,i,a,s,l=e.theme,c=e.className,u=e.disabled,p=e.checked,h=e.inlineLabel,m=e.onOffMissing,f=l.semanticColors,g=l.palette,v=f.bodyBackground,y=f.inputBackgroundChecked,b=f.inputBackgroundCheckedHovered,C=g.neutralDark,S=f.disabledBodySubtext,x=f.smallInputBorder,_=f.inputForegroundChecked,E=f.disabledBodySubtext,k=f.disabledBackground,w=f.smallInputBorder,I=f.inputBorderHovered,P=f.disabledBodySubtext,T=f.disabledText;return{root:["ms-Toggle",p&&"is-checked",!u&&"is-enabled",u&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},h&&{display:"flex",alignItems:"center"},c],label:["ms-Toggle-label",{display:"inline-block"},u&&{color:T,selectors:(t={},t[ca]={color:"GrayText"},t)},h&&!m&&{marginRight:16},m&&h&&{order:1,marginLeft:16},h&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",fa(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid ".concat(w),background:v,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!u&&[!p&&{selectors:{":hover":[{borderColor:I}],":hover .ms-Toggle-thumb":[{backgroundColor:C,selectors:(n={},n[ca]={borderColor:"Highlight"},n)}]}},p&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(r={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:(o={},o[ca]={backgroundColor:"Highlight"},o)}]},r[ca]=d({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}]],u&&[{cursor:"default"},!p&&[{borderColor:P}],p&&[{backgroundColor:S,borderColor:"transparent",justifyContent:"flex-end"}]],!u&&{selectors:{"&:hover":{selectors:(i={},i[ca]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:x,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!u&&p&&[{backgroundColor:_,selectors:(a={},a[ca]={backgroundColor:"Window",borderColor:"Window"},a)}],u&&[!p&&[{backgroundColor:E}],p&&[{backgroundColor:k}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:ri.regular}}},u&&{selectors:{"&&":{color:T,selectors:(s={},s[ca]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),d(d({},Ih),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"})),cw={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},uw=cn(),dw=function(e){function t(t){var n=e.call(this,t)||this;n._dayGrid=o.createRef(),n._onSelectDate=function(e){var t=n.props.onSelectDate;n.setState({selectedDate:e}),n._focusOnUpdate=!0,t&&t(e)},n._onNavigateDate=function(e,t){var r=n.props.onNavigateDate;n.setState({navigatedDate:e}),n._focusOnUpdate=t,r&&r(e)},n._renderPreviousWeekNavigationButton=function(e){var t,r=n.props,i=r.minDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=Ot()?s.rightNavigation:s.leftNavigation,u=!i||fh(i,Ch(l,a))<0;return o.createElement("button",{className:kn(e.navigationIconButton,(t={},t[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectPrevDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectPrevDateRange):void 0,title:n._createPreviousWeekAriaLabel(),type:"button"},o.createElement(Rc,{iconName:c}))},n._renderNextWeekNavigationButton=function(e){var t,r=n.props,i=r.maxDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=Ot()?s.leftNavigation:s.rightNavigation,u=!i||fh(sh(Ch(l,a),7),i)<0;return o.createElement("button",{className:kn(e.navigationIconButton,(t={},t[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectNextDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectNextDateRange):void 0,title:n._createNextWeekAriaLabel(),type:"button"},o.createElement(Rc,{iconName:c}))},n._onSelectPrevDateRange=function(){n.props.showFullMonth?n._navigateDate(ch(n.state.navigatedDate,-1)):n._navigateDate(sh(n.state.navigatedDate,-7))},n._onSelectNextDateRange=function(){n.props.showFullMonth?n._navigateDate(ch(n.state.navigatedDate,1)):n._navigateDate(sh(n.state.navigatedDate,7))},n._navigateDate=function(e){n.setState({navigatedDate:e}),n.props.onNavigateDate&&n.props.onNavigateDate(e)},n._onWrapperKeyDown=function(e){switch(e.which){case it:case rt:e.preventDefault()}},n._onButtonKeyDown=function(e){return function(t){if(t.which===it)e()}},n._onTouchStart=function(e){var t=e.touches[0];t&&(n._initialTouchX=t.clientX)},n._onTouchMove=function(e){var t=Ot(),r=e.touches[0];r&&void 0!==n._initialTouchX&&r.clientX!==n._initialTouchX&&((r.clientX-n._initialTouchX)*(t?-1:1)<0?n._onSelectNextDateRange():n._onSelectPrevDateRange(),n._initialTouchX=void 0)},n._createPreviousWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.prevMonthAriaLabel)a=t.prevMonthAriaLabel+" "+t.months[ch(i,-1).getMonth()];else if(!r&&t.prevWeekAriaLabel){var s=Ch(sh(i,-7),o),l=sh(s,6);a=t.prevWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._createNextWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.nextMonthAriaLabel)a=t.nextMonthAriaLabel+" "+t.months[ch(i,1).getMonth()];else if(!r&&t.nextWeekAriaLabel){var s=Ch(sh(i,7),o),l=sh(s,6);a=t.nextWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._formatDateRange=function(e,t){var r=n.props,o=r.dateTimeFormatter,i=r.strings;return"".concat(null===o||void 0===o?void 0:o.formatMonthDayYear(e,i)," - ").concat(null===o||void 0===o?void 0:o.formatMonthDayYear(t,i))},br(n);var r=t.initialDate&&!isNaN(t.initialDate.getTime())?t.initialDate:t.today||new Date;return n.state={selectedDate:r,navigatedDate:r,previousShowFullMonth:!!t.showFullMonth,animationDirection:t.animationDirection},n._focusOnUpdate=!1,n}return u(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,r=!!e.showFullMonth,o=r!==t.previousShowFullMonth?zh.Vertical:zh.Horizontal;return mh(n,t.selectedDate)?{selectedDate:n,navigatedDate:t.navigatedDate,previousShowFullMonth:r,animationDirection:o}:{selectedDate:n,navigatedDate:n,previousShowFullMonth:r,animationDirection:o}},t.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},t.prototype.render=function(){var e=this.props,t=e.strings,n=e.dateTimeFormatter,r=e.firstDayOfWeek,i=e.minDate,a=e.maxDate,s=e.restrictedDates,l=e.today,c=e.styles,u=e.theme,h=e.className,m=e.showFullMonth,f=e.weeksToShow,g=p(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),v=uw(c,{theme:u,className:h});return o.createElement("div",{className:v.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":m},this._renderPreviousWeekNavigationButton(v),o.createElement(jh,d({styles:c,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:r,firstWeekOfYear:rh.FirstDay,dateRangeType:oh.Day,weeksToShow:m?f:1,dateTimeFormatter:n,minDate:i,maxDate:a,restrictedDates:s,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:l,lightenDaysOutsideNavigatedMonth:m,animationDirection:this.state.animationDirection},g)),this._renderNextWeekNavigationButton(v))},t.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},t.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:th.Sunday,strings:lw,navigationIcons:cw,dateTimeFormatter:wh,animationDirection:zh.Horizontal},t}(o.Component),pw={root:"ms-WeeklyDayPicker-root"},hw=(vo(dw,(function(e){var t,n=e.className,r=e.theme,o=r.palette,i=ka(pw,r);return{root:[i.root,Ga,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},n],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[fa(r,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:o.neutralLighter,fontSize:ni.small,fontFamily:"inherit",selectors:(t={},t[".".concat(i.root,":hover &, .").concat(wr," .").concat(i.root,":focus &, ")+".".concat(wr," &:focus")]={height:53,minHeight:12,overflow:"initial"},t[".".concat(wr," .").concat(i.root,":focus-within &")]={height:53,minHeight:12,overflow:"initial"},t["&:hover"]={cursor:"pointer",backgroundColor:o.neutralLight},t["&:active"]={backgroundColor:o.neutralTertiary},t)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:o.neutralTertiaryAlt,pointerEvents:"none"}}}}}),void 0,{scope:"WeeklyDayPicker"}),o.createContext(void 0));var mw=function(){var e=o.useContext(hw),t=On(["theme"]).theme;return e||t||sa({})},fw=0,gw={reset:function(){H.getInstance().onReset((function(){return fw++}))},getId:function(){return fw},renderStyles:function(e,t){return ye(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return Ce(e)},renderKeyframes:function(e){return Se(e)}};var vw=function(e){var t=new Map,n=new Set,r=function e(r){var o=r.currentTarget,i=o.__id__;t.delete(i),o.removeEventListener("unload",e),n.delete(i)};return function(i){void 0===i&&(i={});var a,s=i.theme,l=gl();l&&(l.__id__=l.__id__||zn(),a=l.__id__,n.has(a)||(n.add(a),l.addEventListener("unload",r)));var c=mw();s=s||c;var u=gw.getId(),d=[a,u,s],p=function(e,t){var n,r,o,i=t[0],a=t[1],s=t[2];return null===(o=null===(r=null===(n=e.get(i))||void 0===n?void 0:n.get(a))||void 0===r?void 0:r.get(s))||void 0===o?void 0:o.classMap}(t,d);if(o.useEffect((function(){return function(e,t){var n,r,o=t[0],i=t[1],a=t[2],s=null===(r=null===(n=e.get(o))||void 0===n?void 0:n.get(i))||void 0===r?void 0:r.get(a);s&&s.refCount++}(t,[a,u,s]),function(){return function(e,t){var n,r,o,i,a,s,l,c,u=t[0],d=t[1],p=t[2],h=null===(r=null===(n=e.get(u))||void 0===n?void 0:n.get(d))||void 0===r?void 0:r.get(p);h&&(h.refCount--,0===h.refCount&&(null===(i=null===(o=e.get(u))||void 0===o?void 0:o.get(d))||void 0===i||i.delete(p),0===(null===(s=null===(a=e.get(u))||void 0===a?void 0:a.get(d))||void 0===s?void 0:s.size)&&(null===(l=e.get(u))||void 0===l||l.delete(d),0===(null===(c=e.get(u))||void 0===c?void 0:c.size)&&e.delete(u))))}(t,[a,u,s])}}),[a,u,s]),!p){var h=function(e){return"function"===typeof e}(e)?e(s):e;p=gw.renderStyles(h,{targetWindow:l,rtl:!!s.rtl}),function(e,t,n){var r,o,i=t[0],a=t[1],s=t[2],l=null!==(r=e.get(i))&&void 0!==r?r:new Map;e.set(i,l);var c=null!==(o=l.get(a))&&void 0!==o?o:new Map;l.set(a,c),c.set(s,{classMap:n,refCount:0})}(t,d,p)}return p}}((function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}}));function yw(e){var t=vw(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,i=null===(n=vl())||void 0===n?void 0:n.body;o.useEffect((function(){if(r&&i){for(var e=0,n=t;e<n.length;e++){var o=n[e];o&&i.classList.add(o)}return function(){if(r&&i)for(var e=0,n=t;e<n.length;e++){var o=n[e];o&&i.classList.remove(o)}}}}),[r,i,t])}(e,[t.root,t.body]),e.className=kn(n,t.root,"element"===r&&t.body)}var bw=function(e){var t=e.customizerContext,n=e.ref,r=e.theme,i=e.as||"div",a="string"===typeof e.as?gr(e.as,e):e.as===o.Fragment?{children:e.children}:function(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(e,["as"]);return o.createElement(hw.Provider,{value:r},o.createElement(Dn.Provider,{value:t},o.createElement(Ur,{providerRef:n},o.createElement(i,d({},a)))))},Cw=new Map,Sw=function(e){var t=e.theme,n=mw(),r=e.theme=o.useMemo((function(){var e=No(n,t);return e.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i){var a=i.id||Cw.get(i);a||(a=zn(""),Cw.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=o.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}}),[r]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},xw=o.forwardRef((function(e,t){var n=function(e,t){var n=Co(t,e);return Sw(n),{state:n,render:bw}}(e,{ref:ul(t,o.useRef(null)),as:"div",applyTo:"element"}),r=n.render,i=n.state;return yw(i),r(i)}));xw.displayName="ThemeProvider";var _w=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod",n.embeddedAddPIContainerSelectorRoot="pidlddc-div-embeddedAddPi_",n.addPIContainerBusyBlockRoot="pidlddc-div-busyblock_",n.selectResourceTypeRef=i.createRef(),n.addResourceRefs={},n.onErrorShowEditAddressForm=function(e){var t,r=null===(t=null===e||void 0===e?void 0:e.error)||void 0===t?void 0:t.errors;r&&r.some((function(e){var t,r=e.propertyName;if(r&&("address_line1"===r||"address_line2"===r||"address_line3"===r||"city"===r||"region"===r||"postal_code"===r)){var o=n.state.selectedPm,i=o.family,a=o.type,s=n.getEmbeddedAddPiContainerId(i,a),l="".concat(n.optionsListContainerSelector," div#").concat(s),c=null!==(t=document.querySelector(l))&&void 0!==t?t:document,u=c.querySelector("#pidlddc-text-editAddressText")||c.querySelector("#pidlddc-button-editAddressText"),d=c.querySelector("#pidlddc-div-billingAddressShowGroup"),p=c.querySelector("#pidlddc-div-billingAddressEditGroup");u&&p&&d&&k(u,d,p)}}))},n.getSelectResourceTypeProps=function(){var e,t=I(n.props.returnOptions,null===(e=n.props.displayOptions)||void 0===e?void 0:e.busyBlockShowHideHandler);return d(d({},n.props),{returnOptions:t,displayOptions:d(d({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),ref:n.selectResourceTypeRef,onEvent:n.selectResourceTypeEventHandler,telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),options:void 0})},n.getAddResourceProps=function(e,t){var r,o=i.createRef(),a=I(n.props.returnOptions,null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler);return n.addResourceRefs[n.getAddResourceRefKey(e,t)]=o,d(d({},n.props),{ref:o,returnOptions:a,displayOptions:d(d({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),pidlDocInfo:d(d({},n.props.pidlDocInfo),{parameters:d(d({},n.props.pidlDocInfo.parameters),{family:e,type:t})}),telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),onEvent:n.addResourceEventHandler})},n.selectResourceTypeEventHandler=function(e,t){var r,o,i,a,s=!0,l=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,c=_.internal.constants.eventNames;if(!l||e!==c.pidlDownloading&&e!==c.inputSubmitting||l(!0),e==_.internal.constants.eventNames.pageRendered){var u=document.querySelectorAll("#pidlddc-div-pagebodycontents");if(u&&u.length>0){var d=null===(o=u[0])||void 0===o?void 0:o.children,p=void 0;d&&d.length>0&&(p=null===(i=d[0])||void 0===i?void 0:i.textContent),p&&n.setState({modalAriaMessage:p})}}if(e===_.internal.constants.eventNames.selectionChanged){var h=null===(a=n.selectResourceTypeRef.current.getSelectedResource())||void 0===a?void 0:a.id,m=null===h||void 0===h?void 0:h.paymentMethodFamily,f=null===h||void 0===h?void 0:h.paymentMethodType;s=m&&f,n.setState({selectedPm:{family:m,type:f}})}n.props.onEvent&&s&&n.props.onEvent(e,t)},n.addResourceEventHandler=function(e,t){var r,o,i=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,a=_.internal.constants.eventNames;e===a.error&&n.onErrorShowEditAddressForm(t),!i||e!==a.pageRendered&&e!==a.inputSubmitted||i(!1),e!==_.internal.constants.eventNames.pageRendered&&e!==_.internal.constants.eventNames.pageRefreshed||n.setState({addResourceRendered:!0}),e===_.internal.constants.eventNames.propertySelected&&n.setState({disableFocusOnLoad:!1,lastFocusedElementId:null===(o=document.activeElement)||void 0===o?void 0:o.id}),n.props.onEvent&&n.props.onEvent(e,t)},n.showAddPiForm=function(e,t){var r=n.getPmId(e,t),o=n.getEmbeddedAddPiContainerId(e,t),a=document.querySelector("".concat(n.optionsListContainerSelector," div#").concat(o));if(document.querySelectorAll("".concat(n.optionsListContainerSelector,' div[id^="').concat(n.embeddedAddPIContainerSelectorRoot,'"]')).forEach((function(e){return e.style.display="none"})),a)a.style.display="block";else{var l=document.querySelector("".concat(n.optionsListContainerSelector,' input[type="radio"][id$="').concat(r,'"]'));if(l&&l.parentElement){if(n.props.busyBlockElement){var c=document.createElement("div");c.id=n.addPIContainerBusyBlockRoot+o,l.parentElement.appendChild(c)}var u=document.createElement("div");u.id=o,l.parentElement.appendChild(u);var p=i.createElement(y,d({},n.getAddResourceProps(e,t)));s.render(p,u)}}},n.addParentOperationIdToTelemetryOptions=function(e,t){return d(d({},e),{contextData:d(d({},null===e||void 0===e?void 0:e.contextData),{parentOperationId:n.state.parentOperationId})})},n.getPmId=function(e,t){return e+"_"+t.replace(/\s|,/g,"_")},n.getEmbeddedAddPiContainerId=function(e,t){var r=n.getPmId(e,t);return n.embeddedAddPIContainerSelectorRoot+r},n.getAddResourceRefKey=function(e,t){return"".concat(e,"_").concat(t)},n.moveNextPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.moveNextPage()},n.movePrevPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.movePrevPage()},n.cancel=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.cancel()},n.getNextButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[_.internal.constants.supportedPidlActions.next]?i=a[_.internal.constants.supportedPidlActions.next]:a&&a[_.internal.constants.supportedPidlActions.submit]&&(i=a[_.internal.constants.supportedPidlActions.submit]);var s=null===i||void 0===i?void 0:i.displayContent;return s&&n.localizedStringFound(s,"Next")?{displayContent:s,type:_.internal.constants.supportedPidlActions.next}:i},n.getPrevButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;return(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[_.internal.constants.supportedPidlActions.prev]?i=a[_.internal.constants.supportedPidlActions.prev]:a&&a[_.internal.constants.supportedPidlActions.gohome]&&(i=a[_.internal.constants.supportedPidlActions.gohome]),i},n.getCancelButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;return(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[_.internal.constants.supportedPidlActions.gohome]&&(i=a[_.internal.constants.supportedPidlActions.gohome]),i},n.getSelectResourceTypeExternalControlPropsMap=function(){var e;return(null===(e=n.selectResourceTypeRef)||void 0===e?void 0:e.current)?n.selectResourceTypeRef.current.getPidlExternalControlPropsMap():null},n.localizedStringFound=function(e,t){var r,o;if(e===t)return!0;var i=null===(r=n.props.pidlDocInfo.parameters.language)||void 0===r?void 0:r.toLowerCase(),a=(i=null!==(o={"chr-cher-us":"en-us"}[i])&&void 0!==o?o:i)?P[i]:null;return!(!a||a[t]!==e)},n.state={addResourceRendered:!1,selectedPm:{family:"",type:""},parentOperationId:_.internal.utils.guid(),modalAriaMessage:"",lastFocusedElementId:void 0,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad},n}return u(t,e),t.prototype.render=function(){return i.createElement(i.Fragment,null,i.createElement("style",null," ",'\n                // Targets the embedded Add PIs inside each radio buttons.\n                #pidlddc-div-pagebodycontents div[id^="'.concat(this.embeddedAddPIContainerSelectorRoot,'"] {\n                    margin-left: 24px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n\n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;\n\n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                /* Allows click events for links inside the radio button to work, for example the "privacy statement" link */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField-input {\n                    height: fit-content;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText {\n                    margin-bottom: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents div[id^="').concat(this.embeddedAddPIContainerSelectorRoot,"\"] div.pidlddc-logoBlock {\n                    display: none; // Hides the credit card logos in Add PI.\n                }\n\n                /* hides duplicate header for pm types */\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentOptionText {\n                    display: none;\n                }\n\n                /* hides the duplicate logos for credit card */\n                #pidlddc-div-pagebodycontents .pidlddc-logo-image {\n                    display: none;\n                }\n\n                /* margins for the pm logo containers */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup {\n                    margin: 9px 6px 0 24px;\n                }\n\n                /* set height of pm logos so they aren't 0px by 0px */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup img {\n                    height: 32px;\n                    margin-right: 8px;\n                    width: 50px;\n                }\n\n                /* move container for logos below the pm type label */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField .ms-ChoiceField-input + div {\n                    align-items: flex-start;\n                    flex-direction: column;\n                }\n\n                /* alipay QR code */\n                #pidlddc-div-pagebodycontents #pidlddc-image-alipayQrCodeChallengeImage {\n                  width: 229px;\n                  height: 230px;\n                }\n            \n                /* Add spacing between all text fields except for first stack item (logo block) */\n                #pidlddc-div-pagebodycontents #pidlddc-div-pagebodycontents > .ms-StackItem ~ .ms-StackItem {\n                    padding-top: 7px;\n                }\n            ")),w(),i.createElement("div",{tabIndex:-1,"aria-label":this.state.modalAriaMessage},i.createElement(Tc,{iconName:"SingleColumnEdit",style:{display:"none"}}),i.createElement(C,d({},this.getSelectResourceTypeProps()))))},t.prototype.componentDidUpdate=function(e,t){var n=this,r=this.state.selectedPm,o=r.family,i=r.type,a=this.state.addResourceRendered;if(o&&i&&(o!=t.selectedPm.family||i!=t.selectedPm.type)&&this.showAddPiForm(o,i),a&&a!=t.addResourceRendered){var l=this.getEmbeddedAddPiContainerId(o,i),c=document.querySelector("".concat(this.optionsListContainerSelector," div#").concat(l));c.style.display="none";var u,d="".concat(this.optionsListContainerSelector," div#").concat(l),p=this.props.busyBlockElement;p&&(u=document.getElementById(this.addPIContainerBusyBlockRoot+l)),u&&s.render(p,u),setTimeout((function(){var e;if(E(d),n.setState({addResourceRendered:!1}),c.style.display="block",n.state.lastFocusedElementId&&!n.state.disableFocusOnLoad){var t=(null!==(e=document.querySelector(d))&&void 0!==e?e:document).querySelector("#".concat(n.state.lastFocusedElementId));t&&t.focus()}u&&(u.style.display="none",u.remove())}),100)}},t}(i.Component),Ew=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents",n.updateResourceRef=i.createRef(),n.busyCounter={count:0},n.getUpdateResourceProps=function(){var e,t=I(n.props.returnOptions,null===(e=n.props.displayOptions)||void 0===e?void 0:e.busyBlockShowHideHandler);return d(d({},n.props),{ref:n.updateResourceRef,returnOptions:t,displayOptions:d({},n.props.displayOptions),onEvent:n.updateResourceEventHandler})},n.updateResourceEventHandler=function(e,t){var r,o=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,i=_.internal.constants.eventNames;!o||e!==i.pidlDownloading&&e!==i.inputSubmitting||o(!0),!o||e!==i.pageRendered&&e!==i.inputSubmitted||o(!1),e===_.internal.constants.eventNames.pageRendered&&n.setState({updateResourceRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.moveNextPage=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.moveNextPage()},n.movePrevPage=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.movePrevPage()},n.cancel=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.cancel()},n.state={updateResourceRendered:!1},n}return u(t,e),t.prototype.render=function(){return i.createElement(i.Fragment,null,i.createElement("style",null," ","\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryAndCvvAddGroup, #pidlddc-div-expiryAndCvvUpdateGroup {\n                    align-items: flex-end;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n                \n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;    \n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText  {\n                    margin-bottom: 10px;\n                }\n                \n                /* Add spacing between all text fields */\n                #pidlddc-div-pagebodycontents > .ms-StackItem {\n                    padding-top: 7px;\n                }\n            "),w(),i.createElement(S,d({},this.getUpdateResourceProps())))},t.prototype.componentDidUpdate=function(e,t){var n=this.state.updateResourceRendered;n&&n!=t.updateResourceRendered&&setTimeout(E,100,this.optionsListContainerSelector)},t}(i.Component),kw=function(e){function t(t){var n=e.call(this,t)||this;return n.selectResourceRef=i.createRef(),n.getSelectResourceProps=function(){return d(d({},n.props),{ref:n.selectResourceRef})},n.getSelectedResource=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;if(t)return t.getSelectedResource()},n.moveNextPage=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.moveNextPage()},n.movePrevPage=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.movePrevPage()},n.cancel=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.cancel()},n}return u(t,e),t.prototype.render=function(){return i.createElement(i.Fragment,null,i.createElement("style",null,'\n                    /* Container for each pi item "row" */\n                    #pidlddc-div-pagebodycontents .ms-ChoiceField {\n                        height: 65px;\n                        outline: 2px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                    }\n\n                    /* Wraps all content inside each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-ChoiceField-wrapper {\n                        flex: 1;\n                    }\n\n                    /* Wraps all content to the right of the radio button in each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container {\n                        flex: 1;\n                        align-items: center;\n                    }\n\n                    /* Targets container of all pi choice text aka "Visa **1234" and "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container .ms-StackItem:nth-child(2) {\n                        flex: 1;\n                    }\n\n                    /* First line of text for each pi choice aka "Visa **1234" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container span[id^="pidlddc-text-optionPaymentText_part1_"] {\n                        font-weight: bold;\n                    }\n\n                    /* Second line of text for each pi choice aka "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] div[id^="pidlddc-div-optionTextGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-start;\n                    }\n\n                    /* Container  the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-end;\n                        display: flex;\n                    }\n\n                    /* Container inside the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] span {\n                        align-items: center;\n                    }\n\n                    /* "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] {\n                        color: #0067B8;\n                    }\n\n                    /* Logo for each pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-Image {\n                        margin: 0px 16px;\n                    }\n\n                    /* Element with warning class for expired pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument div[id^="pidlddc-div-optionTextGroup_"] .pidlddc-warning-icon {\n                        color: #C72127;\n                    }\n\n                    /* Container for Add a way to pay "row" */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        outline: 2px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                        margin-top: 6px;\n                        height: 59px;\n                        flex: 1;\n                        width: 100%;\n                    }\n\n                    /* Targets Add a way to pay + icon */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink i {\n                        color: #000;\n                        margin-right: 16px;\n                    }\n\n                    /* Targets "Add a way to pay" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        font-weight: bold;\n                    }\n\n                    /* Targets "I don\'t want a back-up" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-text-optionText_NoBackupPISelected {\n                        margin: 0px 16px;\n                        font-weight: bold;\n                    }\n                '),i.createElement(b,d({},this.getSelectResourceProps())))},t}(i.Component),ww=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapperId="pidlddc-div-validateAddressEnrichment",n.getValidateAddressProps=function(){return d(d({},n.props),{onEvent:n.validateAddressEventHandler})},n.updateModalAriaMessage=function(){var e,t=null!==(e=n.wrapper.querySelector("#pidlddc-text-addressChangePageSubheading"))&&void 0!==e?e:n.wrapper.querySelector("#pidlddc-text-addressSuggestionMessage");t&&t.textContent!==n.state.modalAriaMessage&&n.setState({modalAriaMessage:t.textContent})},n.validateAddressEventHandler=function(e,t){e!==_.internal.constants.eventNames.pageRendered&&e!==_.internal.constants.eventNames.pageRefreshed||n.setState({validateAddressRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.state={validateAddressRendered:!1,modalAriaMessage:""},n}return u(t,e),t.prototype.componentDidMount=function(){this.wrapper=document.getElementById(this.wrapperId)},t.prototype.componentDidUpdate=function(){var e,t,n,r=null===(e=document.getElementById("pidlddc-div-pagebodycontents"))||void 0===e?void 0:e.children;r&&r.length>2&&(null===(t=r[0])||void 0===t||t.setAttribute("aria-hidden","true"),null===(n=r[1])||void 0===n||n.setAttribute("aria-hidden","true")),this.updateModalAriaMessage()},t.prototype.render=function(){return i.createElement(i.Fragment,null,i.createElement("style",null," ","\n                #".concat(this.wrapperId," {\n                    display: flex;\n                    flex-direction: column;\n                    flex: 1;\n                    height: 100%;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents {\n                    margin-bottom: 15px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents #pidlddc-div-addressChangeGroup {\n                    margin-top: 10px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagesubmitblock {\n                    margin-top: auto;\n                    margin-bottom: 10px;\n                    bottom: auto !important;\n                    position: static !important;\n                }\n            ")),i.createElement("div",{id:this.wrapperId},i.createElement("div",{"aria-label":this.state.modalAriaMessage,"aria-live":"assertive"}),i.createElement(x,d({},this.getValidateAddressProps()))))},t}(i.Component);t.hB=_w,t.S1=Ew,t.aT=kw,t.HH=ww},47337:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0}),n(35644);var o=n(87363),i=r(o),a=r(n(65667)),s="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var l,c=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=m(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function C(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];x.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(k){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:S(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new x(t,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=p,e.Request=b,e.Response=x),t.Headers=p,t.Request=b,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!==typeof self?self:s)})),u=((l=c)&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")&&l.default,function(e,t){return u=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])},u(e,t)});function d(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}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)};function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function m(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function g(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var v,y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N,M,F,B,O,L,H,V,z,U,W,G,j,q,K,Y,X,Q,Z,J,$,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,he,me,fe,ge,ve,ye,be,Ce,Se,xe,_e,Ee,ke,we,Ie,Pe,Te,De,Ae,Re,Ne,Me,Fe,Be,Oe,Le,He,Ve,ze,Ue,We;!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(v||(v={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(y||(y={})),function(e){e.message="message"}(b||(b={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(C||(C={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(S||(S={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(x||(x={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio"}(_||(_={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(E||(E={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-"}(k||(k={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(w||(w={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(I||(I={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(P||(P={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(T||(T={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(D||(D={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(A||(A={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(R||(R={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.searchTransactions="searchTransactions"}(N||(N={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(M||(M={})),function(e){e.submit="submit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex"}(F||(F={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(B||(B={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.implementationMissing="implementationMissing",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled"}(O||(O={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered"}(L||(L={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2"}(H||(H={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(V||(V={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount"}(z||(z={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(U||(U={})),function(e){e.property="property",e.group="group"}(W||(W={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(G||(G={})),function(e){e.empty="required_field_empty"}(j||(j={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(q||(q={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}(K||(K={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test"}(Y||(Y={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(X||(X={})),function(e){e.operation="operation"}(Q||(Q={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}(Z||(Z={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(J||(J={})),function(e){e.alt="alt",e.tabIndex="tabindex"}($||($={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(ee||(ee={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(te||(te={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(ne||(ne={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(re||(re={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(oe||(oe={})),function(e){e.market="country"}(ie||(ie={})),function(e){e.country="market"}(ae||(ae={})),function(e){e.windows="windows"}(se||(se={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(le||(le={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(ce||(ce={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(ue||(ue={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(de||(de={})),function(e){e.empty="[]"}(pe||(pe={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(he||(he={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildIFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.searchTransactions="searchTransactions",e.offerResource="offerResource"}(me||(me={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(fe||(fe={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(ge||(ge={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(ve||(ve={})),function(e){e.userData="userData"}(ye||(ye={})),function(e){e.captchaType="captchaType"}(be||(be={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(Ce||(Ce={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint"}(Se||(Se={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(xe||(xe={})),function(e){e.allowedCountries="allowedCountries"}(_e||(_e={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(Ee||(Ee={})),function(e){e.primary="primary",e.secondary="secondary"}(ke||(ke={})),function(e){e.ignore="ignore",e.throw="throw"}(we||(we={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(Ie||(Ie={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(Pe||(Pe={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(Te||(Te={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(De||(De={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(Ae||(Ae={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(Re||(Re={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(Ne||(Ne={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(Me||(Me={})),function(e){e[e.Default=3e3]="Default"}(Fe||(Fe={})),function(e){e.link="]("}(Be||(Be={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(Oe||(Oe={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(Le||(Le={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(He||(He={})),function(e){e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(Ve||(Ve={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(ze||(ze={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(Ue||(Ue={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(We||(We={}));var Ge=Object.freeze({__proto__:null,get requestOriginator(){return v},get pidlTransformationTargets(){return y},get eventTypes(){return b},get displayTransformationTargets(){return C},get pidlResultType(){return S},get pidlResourceTypes(){return x},get htmlClassNames(){return _},get htmlClassPrefixes(){return E},get htmlElementIdPrefixes(){return k},get htmlElementIdSuffixes(){return w},get errorCode(){return I},get returnCallbackNames(){return P},get modelElementType(){return T},get textBlockTypes(){return D},get htmlBlockTypes(){return A},get htmlInputTypes(){return R},get telemetryPidlOperationType(){return N},get showDisplayNameValues(){return M},get supportedPidlActions(){return F},get resourceActions(){return B},get eventNames(){return O},get privateEventNames(){return L},get displayOptionNames(){return H},get errorNames(){return V},get errorTypes(){return z},get serverErrorTypes(){return U},get validationErrorTypes(){return W},get validationOptions(){return G},get validationErrorCodes(){return j},get htmlElementTypes(){return q},get containerTypes(){return K},get httpHeaders(){return Y},get flightHeaders(){return X},get httpUrlQueryParameters(){return Q},get htmlAttributes(){return Z},get pidlPayloadAttributes(){return J},get htmlTags(){return $},get htmlNodeTypes(){return ee},get htmlRoles(){return te},get ariaTags(){return ne},get ariaLiveInterruptLevels(){return re},get dataAttributes(){return oe},get sdkParamUrlQueryParamMap(){return ie},get pidlPropertyNameToPidlDocInfoProperty(){return ae},get themes(){return se},get pidlStringKeys(){return le},get controlStates(){return ce},get propertyEditState(){return ue},get controlOperationTypes(){return de},get errorValue(){return pe},get viewUpdateReasons(){return he},get pidlDdcApiNames(){return me},get keyCodes(){return fe},get dataTypes(){return ge},get clientDataTypes(){return ve},get propertyTypes(){return ye},get captchaPropertyName(){return be},get httpActions(){return Ce},get knownTags(){return Se},get knownTagPrefixes(){return xe},get knownQueryParameters(){return _e},get helpDialogPrefixedTags(){return Ee},get scenarioContextResourceType(){return ke},get scenarioContextTerminatingErrorHandling(){return we},get hmac(){return Ie},get delimiters(){return Pe},get dataStores(){return Te},get challengeScenario(){return De},get riskChallengeIndicator(){return Ae},get challengeWindowSize(){return Re},get challengeStatus(){return Ne},get challengeType(){return Me},get pollingInterval(){return Fe},get TextSymbols(){return Be},get displayHelpPosition(){return Oe},get SecureFieldEvent(){return Le},get SecureFieldMessages(){return He},get SecureFieldConstants(){return Ve},get CustomTriggerEventConstants(){return ze},get FrequencyUnitConstants(){return Ue},get PaymentMethodPIIDs(){return We}}),je=Object.prototype.hasOwnProperty,qe=Object.prototype.toString,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===qe.call(e)},Qe=function(e){if(!e||"[object Object]"!==qe.call(e))return!1;var t,n=je.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&je.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return"undefined"===typeof t||je.call(e,t)},Ze=function(e,t){Ke&&"__proto__"===t.name?Ke(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Je=function(e,t){if("__proto__"===t){if(!je.call(e,t))return;if(Ye)return Ye(e,t).value}return e[t]},$e=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"===typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!==typeof s&&"function"!==typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Je(s,n),s!==(o=Je(t,n))&&(u&&o&&(Qe(o)||(i=Xe(o)))?(i?(i=!1,a=r&&Xe(r)?r:[]):a=r&&Qe(r)?r:{},Ze(s,{name:n,newValue:e(u,a,o)})):"undefined"!==typeof o&&Ze(s,{name:n,newValue:o}));return s},et=function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},tokenizationEdge:{description:"Tokenization Service on Payments Edge",endpoint:"tokenizationedge-endpoint",name:"tokenizationedge",operation:"Tokenize User Input on Edge"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"}},this.updateEndpoints=function(t){var n={};e.currentEnv=t,"int"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.staticResources="staticresources.payments.microsoft-int.com",n.pifdBackend="pifd.cp.microsoft-int.com/v6.0",n.pifd="pifd.cp.microsoft-int.com/v6.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationint/tokens",n.transformation="pifd.cp.microsoft-int.com/v6.0",n.validation="pifd.cp.microsoft-int.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft-int.com",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"):"aircapi"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.staticResources="staticresources.payments.microsoft-int.com",n.pifdBackend="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.pifd="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationint/tokens",n.transformation="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.validation="paymentexperience-aircapi-westus.azurewebsites.net/v7.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="localhost:44326",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"):"ppe"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifdEdge="edge.payments.microsoft-int.com/pifdppe/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft-int.com/tokenizationppe/tokens",n.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",n.validation="paymentinstruments-int.mp.microsoft.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice-ppe.cp.microsoft.com",n.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net"):"prod"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="paymentinstruments.mp.microsoft.com/v6.0",n.pifdEdge="edge.payments.microsoft.com/pifd/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft.com/tokenization/tokens",n.transformation="paymentinstruments.mp.microsoft.com/v6.0",n.validation="paymentinstruments.mp.microsoft.com/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft.com",n.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net"):"feature"===t&&(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.staticResources="staticresources.payments.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.pifdEdge="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.tokenizationEdge="edge.payments.microsoft.com/tokenization/tokens",n.transformation="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.validation="st-pifd-prod-ncus.azurewebsites.net/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=n.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=n.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=n.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=n.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=n.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=n.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=n.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=n.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=n.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=n.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=n.tokenization,e.serviceEndpoints[e.virtualEndpoints.tokenizationEdge.endpoint]=n.tokenizationEdge,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=n.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=n.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=n.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=n.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=n.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=n.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=n.payeeTaxProfile},this.addGenericParameters=function(e,t,n){if(t&&t.parameters)for(var r in t.parameters){var o=ie[r];!t.parameters[r]||e[r]||e[o]||(e[r]=t.parameters[r])}return n&&(e.operationType=n),e},this.getGenericResourceParams=function(t,n,r){return e.addGenericParameters({},t,r)},this.getResourceEndpointParams=function(t,n,r,o){var i=e.addGenericParameters({},n,o);return i.resourceName=t,i},this.getOrderResourceEndpointParams=function(t,n,r){return e.getResourceEndpointParams("order",t,n,r)},this.getPaymentResourceParams=function(t,n,r){var o=(n=n||{}).paymentMethod||{};return e.addGenericParameters({family:o.paymentMethodFamily,type:o.paymentMethodType,country:((n.details||{}).address||{}).country},t,r)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var n="https://",r="edge.payments.microsoft.com",o="edge.payments.signup.azure.com",i=n+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],a=n+e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint],s=n+e.serviceEndpoints[e.virtualEndpoints.tokenizationEdge.endpoint],l=n+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],c=((window||{}).location||{}).hostname||"";c&&c.indexOf("signup.azure.com")>-1&&(l=l.replace(r,o),s=s.replace(r,o)),$t.startsWithIgnoreCase(t,i)?t=t.replace(i,l):$t.startsWithIgnoreCase(t,l)?t=t.replace(l,i):$t.startsWithIgnoreCase(t,a)?t=t.replace(a,s):$t.startsWithIgnoreCase(t,s)&&(t=t.replace(s,a))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.updateEndpoints("prod")},tt=new et;function nt(e,t){return e.debugMessage?$t.format(e.debugMessage,t):""}var rt,ot,it,at,st,lt,ct,ut,dt,pt,ht,mt,ft=function(e,t,n,r){this.message=n||"",this.name=t.name,this.code=t.code,this.type=e},gt=function(e){function t(t,n,r){var o=e.call(this,z.inputValidation,t,null,r)||this;return o.parameterName=n,o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),vt=function(e){function t(t,n,r){var o=e.call(this,z.inputValidation,t,null,r)||this;return o.apiName=n,o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),yt=function(e){function t(t,n,r,o){var i=e.call(this,z.userInputValidation,t,n,o)||this;return i.propertyName=r,i.errorCode=n,i.validationErrorType=W.property,i.debugMessage=nt(t,o),i}return d(t,e),t}(ft),bt=function(e){function t(t,n,r,o){var i=e.call(this,z.userInputValidation,t,n,o)||this;return i.groupDisplayId=r,i.errorCode=n,i.validationErrorType=W.group,i.debugMessage=nt(t,o),i}return d(t,e),t}(ft),Ct=function(e){function t(t,n,r,o){var i=e.call(this,z.formValidation,t,n,o)||this;return i.errors=r,i.debugMessage=nt(t,o),i}return d(t,e),t}(ft),St=function(e){function t(t,n,r){var o=e.call(this,z.unexpected,t,r,n)||this;return o.debugMessage=nt(t,n),o}return d(t,e),t}(ft),xt=function(e){function t(t,n,r,o,i,a,s,l,c,u){var d=e.call(this,z.serverError,t,null,s)||this;return d.innererror=r,d.status=o,d.url=n,d.statusText=i,d.responseText=a,d.httpMethod=l,d.retryAttempt=c,d.retryable=u,d.debugMessage=nt(t,s),d}return d(t,e),t}(ft),_t=function(e){function t(t,n,r){var o=e.call(this,z.invalidSetup,t,n,r)||this;return o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),Et=function(e){function t(t,n,r){var o=e.call(this,z.paymentMethodFailure,t,n,r)||this;return o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),kt=function(e){function t(t,n,r){var o=e.call(this,z.failedToOpenWindow,t,n,r)||this;return o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),wt=function(e){function t(t,n,r){var o=e.call(this,z.unmatchedAmount,t,n,r)||this;return o.debugMessage=nt(t,r),o}return d(t,e),t}(ft),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(ft),Pt=new(function(){function e(){this.inputParameterValidationFailedError=gt,this.apiValidationError=vt,this.propertyValidationFailedError=yt,this.groupValidationFailedError=bt,this.formValidationFailedError=Ct,this.unexpectedError=St,this.serverError=xt,this.invalidSetupError=_t,this.paymentMethodFailureError=Et,this.failedToOpenWindowError=kt,this.unmatchedAmountError=wt,this.testHookErrorBase=It}return e.prototype.isUnexpectedError=function(e){return $t.isObject(e)&&e.type===z.unexpected},e.prototype.isServerError=function(e){return $t.isObject(e)&&e.type===z.serverError},e}()),Tt={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."}};function Dt(e){return!$t.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function At(e){return!$t.isNullOrUndefined(e)&&"displayType"in e}function Rt(e){return At(e)&&(e.displayType===ct.group||e.displayType===ct.dataCollectionBindingGroup||e.displayType===ct.page||e.displayType===ct.textGroup)}function Nt(e){if(At(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===ct.file}return!1}function Mt(e){return At(e)&&e.displayType===ct.logo}function Ft(e){return At(e)&&(e.displayType===ct.property||e.displayType===ct.prefillControl)}function Bt(e){return!$t.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function Ot(e){return!$t.isNullOrUndefined(e)&&$t.isArray(e)&&e.length&&Bt(e[0])}function Lt(e){return!$t.isNullOrUndefined(e)&&"paymentInstruments"in e&&"pidlInfo"in e}function Ht(e){return!$t.isNullOrUndefined(e)&&"clientAction"in e}function Vt(e){return At(e)&&e.displayType===ct.pidlContainer}function zt(e){return!$t.isNullOrUndefined(e)&&$t.isString(e.type)&&(e.type===at.Pidl||e.type===at.Wait||e.type===at.Redirect||e.type===at.ReturnContext||e.type===at.ExecuteScriptAndResume||e.type===at.None||e.type===at.GoHome||e.type===at.Failure||e.type===at.MergeData||e.type===at.RestAction)}function Ut(e){return!$t.isNullOrUndefined(e)&&!$t.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.provisionWalletToken="provisionWalletToken",e.offer="Offer"}(rt||(rt={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(ot||(ot={})),function(e){e.regex="regex",e.service="service"}(it||(it={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction"}(at||(at={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(st||(st={})),function(e){e.regex="regex"}(lt||(lt={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(ct||(ct={})),function(e){e.inline="inline",e.vertical="vertical"}(ut||(ut={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(dt||(dt={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(pt||(pt={})),function(e){e.always="always",e.focusout="focusout"}(ht||(ht={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(mt||(mt={}));var Wt=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return rt},get validationModesValues(){return ot},get transformationModesValues(){return it},isDataDescription:Dt,get clientActionTypeValues(){return at},get paymentInstrumentStatusValues(){return st},get displayTransformationTypesValues(){return lt},get pidlDisplayTypesValues(){return ct},isDisplayDescription:At,get groupLayoutOrientationTypesValues(){return ut},isContainerDisplayDescription:Rt,isFilePickerDisplayDescription:Nt,isGroupDisplayDescription:function(e){return At(e)&&(e.displayType===ct.group||e.displayType===ct.dataCollectionBindingGroup)},isCaptchaDisplayDescription:function(e){return At(e)&&e.displayType===ct.captcha},isDataCollectionBindingGroupDisplayDescription:function(e){return At(e)&&e.displayType===ct.dataCollectionBindingGroup},isPageDisplayDescription:function(e){return At(e)&&e.displayType===ct.page},isContentDisplayDescription:function(e){return At(e)&&(e.displayType===ct.button||e.displayType===ct.expression||e.displayType===ct.heading||e.displayType===ct.hyperlink||e.displayType===ct.subheading||e.displayType===ct.text||e.displayType===ct.iFrame)},isLogoDisplayDescription:Mt,get pidlSubmitOrdersValues(){return dt},get pidlSelectTypeValues(){return pt},get resolutionPolicyValues(){return ht},isPropertyDisplayDescription:Ft,get serverErrorRetryPolicyValues(){return mt},isPidlDocument:Bt,isPidlDocumentArray:Ot,isPidlPayload:Lt,isPidlDocumentWithClientAction:Ht,isPidlContainerDisplayDescription:Vt,isClientAction:zt,isInvokeResourceActionApiParams:Ut}),Gt=new function(){var e=this;this.getResolvedPidls=function(t,n){var r=[];return t.forEach((function(t){var o=!1;for(var i in n){var a=jt.getPropertyFromDataDescription(t.data_description,i),s=n[i];if(s&&s.getValue&&!(o=e.resolveKeyProperty(a,s.getValue(a))))break}o&&r.push(t)})),r},this.getPidlContainersInSubmitOrder=function(t,n){t.forEach((function(t){if(Vt(t)){var r=t.submitOrder;r===dt.beforeBase?n.beforeBase.push(t):r===dt.afterBase?n.afterBase.push(t):n.withBase.push(t)}else Rt(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,n)}))},this.resolveInfoDescriptionId=function(t,n){return e.getResolvedPidls(t,n).map((function(e){return e.identity}))},this.getFirstPidlWithValidDefaultKey=function(t,n){return e.getResolvedPidls(t,n)[0]},this.getPidlSubmitOrder=function(t){var n={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,n),n},this.resolveKeyProperty=function(e,t){var n=(e||{validation:null}).validation;return!($t.isUndefined(t)||!n)&&new RegExp(n.resolutionRegex||n.regex).test(t)}},jt=new function(){var e=this;this.getPropertyDescriptorsHelper=function(t,n,r){var o=[];for(var i in t){var a=t[i];if(a instanceof Array)for(var s=0;s<a.length;s++)o=o.concat(e.getPropertyDescriptorsHelper(a[s].data_description,n,r));else a.hasOwnProperty(n)&&a[n]===r&&o.push({propertyName:i,propertyDescriptor:a})}return o},this.getPropertyValueFromInputDataHelper=function(t,n){var r;for(var o in t){if(o===n){r=t[o];break}if($t.isObject(t[o])&&void 0!==(r=e.getPropertyValueFromInputDataHelper(t[o],n)))break}return r},this.getPropertyFromDataDescriptionHelper=function(t,n,r){var o;if(void 0===r&&(r=!1),n)for(var i in t){var a=t[i];if(a instanceof Array){if(r&&i===n&&a[0])return a[0].data_description;if(a.some((function(t){return void 0!==(o=e.getPropertyFromDataDescriptionHelper(t.data_description,n,r))})),void 0!==o)break}else if(e.propertyMatchesDataDescriptionInternal(a,i,n)){o=a;break}}return o},this.getFirstResolvedPidlDocument=function(t,n){var r=null;return t.some((function(t){if(e.getKeyPropertyDescriptors(t.data_description).every((function(t){return Gt.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(n,t.propertyName))})))return r=t,!0})),r},this.propertyMatchesDataDescriptionInternal=function(e,t,n){return n&&(t===n||e&&e.display_property===n)},this.getPropertyNamesFromDataDescription=function(t,n,r){return e.getPropertyDescriptorsHelper(t,n,r)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,n){return e.getPropertyValueFromInputDataHelper(t,n)},this.getPropertyFromDataDescription=function(t,n){var r=e.getPropertyFromDataDescriptionHelper(t,n);return Dt(r)?r:void 0},this.getPropertiesFromDataDescription=function(t,n){return e.getPropertyFromDataDescriptionHelper(t,n,!0)},this.propertyMatchesDataDescription=function(t,n,r){return e.propertyMatchesDataDescriptionInternal(t,n,r)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}},qt=function(){var e=this;this.setService=function(t,n){e.services[t]=n},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}},Kt=new qt,Yt=function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,n){if(t&&(t.pidlAction&&n.push(t.pidlAction),Rt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getDisplayDescriptionPidlActions(t.members[r],n)},this.getLogoDescriptions=function(t,n){if(t&&n&&(Mt(t)&&n.push(t),Rt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getLogoDescriptions(t.members[r],n)},this.getPidlIdentityForProperty=function(t,n){var r;if(n)if(t instanceof Array){for(var o=0;o<t.length;o++)if(r=e.getPidlIdentityForProperty(t[o],n))return r}else if(t.data_description)for(var i in t.data_description){var a=t.data_description[i];if(a instanceof Array){if(r=e.getPidlIdentityForProperty(a,n))return r}else if(jt.propertyMatchesDataDescription(a,i,n))return t.identity}},this.createIdentityHash=function(e){var t="";for(var n in e)$t.isString(e[n])&&(t+=n+"_"+e[n]);return t},this.resolvePidlDocs=function(e,t){if(e instanceof Array){var n=[];if(t)for(var r=Kt.getCommerceService(),o=0;o<e.length;o++)for(var i=0;i<t.length;i++)if(r.areIdentitiesEqual(e[o].identity,t[i])){n.push(e[o]);break}return n}return[e]},this.getDisplayDescriptionsPidlActions=function(t){var n=[];if(e.getDisplayDescriptionPidlActions(t,n),Ft(t)){var r=t.possibleOptions;if(r)for(var o in r){var i=r[o].pidlAction;i&&(n=g(g([],n,!0),[i],!1))}}return n},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var n=[];return t.displayDescription.forEach((function(t){e.getDisplayDescriptionPidlActions(t,n)})),$t.find(n,(function(e){return e.type===F.submit}))}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||ke.primary)===ke.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===we.ignore},this.matchPidlIdsToPidls=function(e,t,n){for(var r=t&&n&&t.length===n.length,o=0;r&&o<t.length;o++){for(var i=!1,a=0;a<n.length;a++){var s=n[a]?n[a].identity:null;i=i||e.areIdentitiesEqual(t[o],s)}r=r&&i}return r},this.translateErrorTargetsToDisplayProperties=function(e,t){var n=[];return e.forEach((function(e){var r=jt.getPropertyFromDataDescription(t.data_description,e);n.push(r&&r.display_property||e)})),n},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&$t.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var n={},r=function(e){return function(n){return t(e,n)}},o=0,i=e.length;o<i;o++)for(var a=jt.getKeyPropertyDescriptors(e[o].data_description),s=0,l=a.length;s<l;s++){var c=a[s].propertyName,u=a[s].propertyDescriptor;n[c]={propertyDescriptor:u,getValue:r(c)}}return n},this.getPropertyValueGetter=function(e,t,n){return function(r,o){var i=e===r?t:n(r);return $t.toString(i)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&$t.toString(t.default_value)}},this.getDataSourceLinks=function(e){var t=[];if(e&&($t.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var n=0;n<e.linkedPidls.length;n++)$t.isNullOrEmptyObject(e.linkedPidls[n].dataSources)||t.push(e.linkedPidls[n].dataSources);return t}},Xt=new Yt,Qt=function(){function e(){var e=this;this.extend=$e,this.getSelectElementType=function(e){switch(e){case pt.radio:return T.radio;case pt.buttonList:return T.buttonList;default:return T.dropdown}},this.getErrorDetailsFromPidl=function(t,n){if(t&&n){var r=n[t];if(r&&r.Target)return e.extend(!0,r,{code:t,target:r.Target,message:r.ErrorMessage})}},this.processServerError=function(t,n,r){var o=[];if(t&&n&&n.length)for(var i=0;i<n.length;i++){var a=e.getFormatStringExpressionValue(n[i],{contextData:t}),s=e.getErrorDetailsFromPidl(a,r);if(s){o.push(s);break}}return o},this.processPimsPxError=function(t,n){var r=[];if(t)if(t.details&&t.details.length)for(var o=0;o<t.details.length;o++){var i=t.details[o];i&&r.push(i)}else{var a=e.getErrorDetailsFromPidl(t.code,n);a&&r.push(a)}return r},this.updatePidlDocUrlParamHelper=function(e,t,n){if(e&&e.parameters){if(e.parameters[t])return e.parameters[t]!==n&&(e.parameters[t]=n,!0);var r=ae[t];return r&&e.parameters[r]?e.parameters[r]!==n&&(e.parameters[r]=n,!0):(e.parameters[t]=n,!0)}return!1},this.s4=function(){return Math.floor(65536*(Math.random()+1)).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(n){t.value=n.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){var t=!1;$t.isString(e)?t="true"===e.toLowerCase():t=e;return t},this.getStringValue=function(e){for(var t="",n=0;n<e.length;++n)t+=e[n],t+=" ";return t.trim()},this.getModelElementType=function(t,n){var r={};switch(n.displayType){case ct.page:r.type=T.page;break;case ct.group:r.type=T.group;break;case ct.captcha:r.type=T.captcha;break;case ct.audio:r.type=T.audio;break;case ct.textGroup:r.type=T.textGroup;break;case ct.heading:r.type=T.heading;break;case ct.subheading:r.type=T.subheading;break;case ct.text:r.type=T.text;break;case ct.hyperlink:r.type=T.hyperlink;break;case ct.image:r.type=T.image;break;case ct.logo:r.type=T.logo;break;case ct.prefillControl:n.selectType===pt.checkBox?r.type=T.checkBox:n.selectType===pt.dropDown?r.type=T.dropdown:r.type=T.unknown;break;case ct.property:t?Ft(n)&&n.possibleOptions?r.type=e.getSelectElementType(n.selectType):"bool"===t.type?r.type=T.checkBox:Nt(n)?r.type=T.filePicker:r.type=T.textBox:r.error=new Pt.unexpectedError(Tt.displayElementPointingToMissingDataProperty,[n.displayId,n.propertyName]);break;case ct.button:r.type=T.button;break;case ct.expression:r.type=T.expression;break;case ct.pidlContainer:r.type=T.pidlContainer;break;case ct.dataCollectionBindingGroup:r.type=T.dataCollectionBindingGroup;break;case ct.iFrame:r.type=T.iFrame;break;case ct.secureProperty:r.type=T.secureProperty;break;case ct.separator:r.type=T.separator;break;case ct.spinner:r.type=T.spinner;break;default:r.type=T.unknown}return r},this.getPidlOperationType=function(e){switch(e){case B.addAddress:case B.addPaymentInstrument:case B.addResource:case B.handleChallenge:return rt.add;case B.collectResourceInfo:return rt.renderPidlPage;case B.selectPaymentInstrument:case B.selectResource:return rt.selectInstance;case B.selectResourceType:return rt.select;case B.selectSingleResource:return rt.selectSingleInstance;case B.updateProfile:case B.updateResource:return rt.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var n in e)$t.isNullOrUndefined(e[n])||(t||(t={}),t[n]=e[n]);return t},this.updatePidlDocUrlParams=function(t,n){var r=!1;for(var o in n){var i=Xt.getKeyPropertyPidlDownloadUrlParam(n[o].propertyDescriptor,o),a=n[o].getValue(n[o].propertyDescriptor);if(i){var s=e.updatePidlDocUrlParamHelper(t,i,a);r=r||s}}return r},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n],o=!0;if(r.target||(o=!1),o&&t&&r.code){t[r.code]||(t[r.code]={retryCount:0});var i=r.retryPolicy;i&&i.type===mt.limitedRetry&&i.context&&!$t.isUndefined(i.context.maxRetryCount)&&r.retryPolicy.context.maxRetryCount<=t[r.code].retryCount&&(o=!1)}o?t&&r.code&&t[r.code].retryCount++:($t.removeFromArray(e,n,1),n--)}return e},this.createParseErrorResponse=function(t,n,r,o,i){var a=[],s=void 0,l=void 0,c=void 0;if(o){var u=e.parseJSON(o.failureContent),d=u.succeeded?u.value:o.failureObject;if(c=o.failureContent,d){l=d;var p=d.innererror||d;switch(tn.getErrorSourceFromUrl(t)){case tt.virtualEndpoints.pifdProfile.endpoint:case tt.virtualEndpoints.pifdAddress.endpoint:n=n||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case tt.virtualEndpoints.jarvisAddress.endpoint:n=n||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(a=n?e.processServerError(d,n,r):e.processPimsPxError(p,r),a=e.getRetryableTargettedErrors(a,i),p&&p.clientAction&&(s=p.clientAction),!c)try{c=JSON.stringify(d)}catch(h){}}}else o=o||{status:S.Error};return{jsonResponse:l,clientAction:s,status:o.httpStatus,statusText:o.httpStatusText,responseText:c,errorMessage:o.errorMessage,targettedInnerErrors:a}},this.convertCustomErrorsInSdkErrors=function(t,n){for(var r=[],o=0;o<t.length;o++){var i=t[o],a=null;if(i.message?a={message:i.message,target:i.target,code:i.code}:i.code&&(a=e.getErrorDetailsFromPidl(i.code,n)),!a)return null;r.push(a)}return r},this.parseCustomSubmitError=function(t,n,r,o,i,a){return t||n&&0!==n.length?n&&0!==n.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(n,i)}:e.createParseErrorResponse(r,o,i,{status:S.Error,failureContent:t},a):{clientAction:{type:at.None}}},this.parseServerError=function(t,n,r,o,i){return e.createParseErrorResponse(t,n,r,o,i)},this.createServerError=function(t,n,r,o,i){var a=e.parseServerError(n,null,i,r);return new Pt.serverError(t,n,a.jsonResponse,r.httpStatus,r.httpStatusText,r.failureContent,o)},this.createServerErrorFromIPxServiceError=function(e,t){var n=JSON.stringify(t);return new Pt.serverError(e,null,t,null,null,n,[])},this.createPropertyErrors=function(e,t,n,r,o){if(t){var i=new Pt.groupValidationFailedError(Tt.propertyValidationFailed,r.code,t,[t,r.code]);i.message=r.message,o.push(i),n=null}for(var a=0;a<e.length;a++){var s=e[a],l=new Pt.propertyValidationFailedError(Tt.propertyValidationFailed,r.code,s,[s,r.code]);l.message=s===n?r.message:"",o.push(l)}},this.createResponseHeadersDictionary=function(e){var t;e&&(t=e.split("\r\n").reduce((function(e,t,n){var r=t.split(": ");return r[0]&&r[1]&&(e[$t.toLowerCase(r[0])]=$t.toLowerCase(r[1])),e}),{}));return t},this.isTagPrefixKnown=function(e){for(var t in xe)if($t.startsWith(e,xe[t]))return!0;return!1},this.getFormatStringExpressionValue=function(t,n,r){if(n&&$t.isFormatStringExpressionPlaceholder(t)){for(var o=t.substring(1,t.length-1),i=$t.getProperties(o,"<|","|>"),a=0;a<i.length;a++){var s=i[a],l=s.split("|"),c=l[0],u=l[1],d=void 0;if(u){var p=u.split(";");d=[];for(var h=0;h<p.length;h++)d[h]=e.getPropertyExpressionValue(p[h],n)}var m=e.getFunctionExecutionResult({functionName:c,arguments:d},n);m=$t.isNullOrUndefined(m)?"":m,o=o.replace("<|"+s+"|>",m)}var f=$t.getProperties(o,"{","}");for(a=0;a<f.length;a++){var g="{"+f[a]+"}",v=e.getPropertyExpressionValue(g,n)||"";r&&(v=r(v)),o=o.replace(g,v)}return o}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&$t.isFormatStringExpressionPlaceholder(e))for(var n=e.substring(1,e.length-1),r=$t.getProperties(n,"{","}"),o=0;o<r.length;o++)if(r[o].indexOf(".")<0&&r[o]in t)return t[r[o]];return null},this.getExpressionValue=function(t,n){for(var r=t,o=$t.getProperties(t,"(",")"),i=0;i<o.length;i++){var a=$t.getProperties(o[i],"{","}")[0],s=e.getPropertyExpressionValue("{"+a+"}",n),l=void 0,c=void 0;s?(l=(r=r.replace("{"+a+"}",s)).indexOf("("),c=(r=r.substring(0,l)+r.substring(l+1,r.length)).indexOf(")"),r=r.substring(0,c)+r.substring(c+1,r.length)):(l=r.indexOf("("),c=r.indexOf(")"),r=r.substring(0,l)+r.substring(c+1,r.length))}return r},this.applyRegexTransformation=function(e,t,n){if(!$t.isNullOrUndefined(e)&&t&&n)return e.replace(RegExp(t),n).trim()},this.applyDisplayTransformation=function(t,n){var r=n;if(t.type===lt.regex)($t.isString(n)||$t.isNumber(n))&&(r=e.applyRegexTransformation(n.toString(),t.inputRegex,t.replacementPattern)||r);else r=void 0;return r},this.getTextContent=function(t){if(-1===t.indexOf(Be.link))return t;var n="",r=e.parseDisplayContent(t);if(1===r.length)return t;for(var o=0;o<r.length;o++){var i=r[o];-1===i.indexOf(Be.link)?n+=i:n+=i.replace(i,i.match(/\[(.*?)\]/)[1])}return n},this.parseDisplayContent=function(e){for(var t=0,n=e.indexOf(Be.link,t),r=-1,o=-1,i=[];-1!==n;){r=-1;for(var a=n;a<=n&&a>=0;a--)if("["===e[a]){r=a;break}if(-1===r)return(i=[]).push(e),i;i.push(e.substring(o,r)),o=-1;for(var s=n;s>=n&&s<e.length;s++)if(")"===e[s]){o=s+1;break}if(-1===o)return(i=[]).push(e),i;if(i.push(e.substring(r,o)),t=n+2,-1===(n=e.indexOf(Be.link,t))){var l=e.substring(o,e.length);void 0!==l&&""!==l&&i.push(l)}}return i},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var n="";try{for(var r=window.atob(e),o=new ArrayBuffer(r.length),i=new Uint8Array(o),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);var s=new Blob([i],{type:t});n=URL.createObjectURL(s)}catch(l){}return n},this.verifyClientSupported=function(e){var t,n=p({},e);n.parameters=p({},e.parameters);var r=n.parameters.allowedPaymentMethods;if((null===(t=null===window||void 0===window?void 0:window.paymentAgent)||void 0===t?void 0:t.clientSupported)&&(null===r||void 0===r?void 0:r.length)){var o=window.paymentAgent.clientSupported(r);n.parameters.allowedPaymentMethods=o}return n}}return e.prototype.getPropertyExpressionValue=function(e,t){if(t&&$t.isString(e)&&$t.isDataBindingPlaceholder(e)){var n=e.substring(1,e.length-1);if(n.indexOf(".")<0)return t.modelData&&(t.modelData.getDisplayPropertyValue(n)||t.modelData.getPropertyValue(n));var r=$t.getDataSourceDetails(n),o=null;switch(r.dataSourceName){case Te.contextData:o=t.contextData;break;case Te.partnerData:o=t.modelData&&t.modelData.getPartnerData();break;default:o=t.modelData&&t.modelData.getAllDataSources()}return o&&r.jpath?$t.getPropertyValueByJPath(o,r.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,n){if(e&&e.functionName){var r={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources()};e.arguments&&(r.arguments=e.arguments);var o=void 0;try{o=window.pidlResourceHelpers}catch(l){}if(o&&o.executeExtensionFunc){var i=o.executeExtensionFunc(e.functionName,r);if(n&&"filterPaymentInstruments"===e.functionName&&$t.isArray(i)){var a={pidlDocInfo:r.partnerData&&r.partnerData.inputParameters&&r.partnerData.inputParameters.pidlDocInfo},s=i.map((function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}}));n.resourceHelpersFunctionExecuted(e.functionName,a,s)}return i}}return null},e}(),Zt=new Qt,Jt=function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"===typeof e},this.isBool=function(e){return"boolean"===typeof e},this.isNumber=function(e){return"number"===typeof e},this.isNullOrEmptyObject=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return"undefined"===typeof e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,n){return e.indexOf(t,n)>=0},this.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},this.includes=function(t,n){return!e.isNullOrUndefined(t)&&t.indexOf(n)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(n){return n&&n.message}return null===t||void 0===t?"":t},this.addSlashes=function(e){return e=e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,n){return e.isString(t)?((n=n||[])["{"]="{",n["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,(function(t){return e.addSlashes(e.serialize(n[t.substring(1,t.length-1)]))}))):t},this.attachAffixes=function(t,n,r){var o=e.isNullOrUndefined(t)?n:t+n;return e.isNullOrUndefined(r)?o:o+r},this.removeAffixes=function(t,n,r){if(e.isNullOrUndefined(n))return n;var o=e.isNullOrUndefined(t)?0:t.length,i=e.isNullOrUndefined(r)?n.length:n.length-r.length;return n.substring(o,i)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,n=void 0,r=e.indexOf(".");return r>0&&(t=e.substr(0,r),n=e.substr(r+1)),{dataSourceName:t,jpath:n}},this.getPropertyValueByJPath=function(t,n){e.startsWith(n,"{$.")?n=n.substring(3,n.length-1):e.startsWith(n,"{")&&(n=n.substring(1,n.length-1));for(var r=(n=(n=n.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0;o<r.length;o++){var i=r[o];if(!t||!(i in t))return;t=t[i]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,n){return e.toLowerCase(t)===e.toLowerCase(n)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,n){for(var r=[],o=-1,i=t.length,a=n.length;;){var s=e.indexOf(t,-1===o?0:o+a);if(-1===s)break;if(-1===(o=e.indexOf(n,s+i)))break;r.push(e.substr(s+i,o-s-i))}return r},this.boolify=function(t){return e.isString(t)?!e.equalsIgnoreCase(t,"false")&&!e.isEmptyString(t):!!t},this.deepCopy=function(e,t){return t=t||{},e&&Zt.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var n=0;n<e.length;n++)Zt.extend(t,e[n]);return t},this.removeFromArray=function(e,t,n){e&&e.splice(t,n)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map((function(t){return e[t]})):[]},this.filter=function(t,n){e.invokeIf(t,(function(e){return!(n||function(){return!0})(e)}),(function(e){t.splice(e,1)}))},this.objectEquals=function(t,n){if(!t||!n||e.keyCount(t)!==e.keyCount(n))return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,n){if(e&&t)for(var r=e.length;r--;)t(e[r])&&n(r)},e.prototype.find=function(e,t){if(e&&t)for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},e}(),$t=new Jt,en=new function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=$t.find($t.getKeys(_e),(function(t){return t.toLowerCase()===e.toLowerCase()}));return $t.boolify(t)},this.mapQueryParameter=function(e){return ie[$t.toLowerCase(e)]||e},this.buildUrlInternal=function(t,n,r){var o;if(o=$t.startsWith(t,"https://")?t:$t.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,n)for(var i=0;i<n.length;i++)o+=$t.startsWith(n[i],"/")?n[i]:"/"+n[i];return r&&Object.keys(r).sort().forEach((function(t){if(!e.skipQueryParameter(t)){var n=r[t];n&&(o=e.addQueryParameter(o,e.mapQueryParameter(t),n))}})),o},this.createFromTemplateInternal=function(t,n,r,o,i,a){if(t){var s=tn.replaceVirtualEndpointWithServiceAddress(t,n);return s=s.replace(/{id}/i,encodeURIComponent(o)).replace(/{resourcetype}/i,i),r&&(s=s.replace(/{userid}/i,r.getUserId(t))),e.buildUrlInternal(s,[],a)}},this.getUrlExpressionValue=function(t,n,r,o,i){var a=e.createFromTemplateInternal(t,n,r,o,null,null);return a&&i&&(a=Zt.getFormatStringExpressionValue("("+a+")",i,(function(e){return encodeURIComponent(e)}))),a},this.getResourceUrl=function(t,n){t=t||{};var r=tn.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(r.template,t.resourceEndpoint,n,t.id,t.resourceType,t.parameters),template:r.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:n},virtualEndpoint:r}},this.getPidlDocUrl=function(t,n,r){r=r||{};var o=$t.deepCopy(r.parameters||{});n&&(o[Q.operation]=n);var i=tn.getPidlDocEndpoint(r.resourceType);i.addResourceNameToQueryParam&&(o.resourceName=$t.toLowerCase(r.resourceType)),i.removeOperationParameter&&delete o[Q.operation];var a=r.resourceType+(r.resourceSuffix||i.suffix),s=r.anonymousPidl&&i.anonymousTemplate?i.anonymousTemplate:i.template;return{url:e.createFromTemplateInternal(s,r.pidlEndpoint,t,null,a,o),template:s,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:n,pidlDocInfo:r},virtualEndpoint:i}},this.getSubmitUrl=function(t,n,r,o,i){return{url:e.getUrlExpressionValue(r.href,null,n,o,i),template:r.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:n,context:r,id:o,bindingDataContext:i},virtualEndpoint:tn.findVirtualEndpointInTemplate(r.href)}},this.getRestMethodUrl=function(t,n,r,o){return{url:e.getUrlExpressionValue(t,null,n,r,o),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:n,id:r,bindingDataContext:o},virtualEndpoint:tn.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,n){$t.isString(n)||(n=JSON.stringify(n)),n=encodeURIComponent(n);var r=new RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o=new RegExp("([?])");if(e.match(o))return e.replace(o,"$1"+t+"="+n+"&");var i=-1!==e.indexOf("?")?"&":"?";return e+i+t+"="+n},this.addQueryStringParameters=function(t,n){if(n)for(var r in n)n[r]&&(t=e.addQueryParameter(t,r,n[r]));return t},this.buildUrl=function(t,n,r){return e.buildUrlInternal(t,n,r)},this.createFromTemplate=function(t,n,r,o,i,a){return e.createFromTemplateInternal(t,n,r,o,i,a)}},tn=new function(){var e=this;this.getContainingVirtualEndpoint=function(e){if($t.isString(e)){var t=e.toLowerCase();for(var n in tt.virtualEndpoints){var r="{"+tt.virtualEndpoints[n].endpoint+"}";if(-1!==t.indexOf(r))return tt.virtualEndpoints[n]}}},this.getPidlDocInfoFromResource=function(e,t){var n=$t.toLowerCase(e.resourceType),r=tt.resourceTypeToPidlDoc[n]||tt.resourceTypeToPidlDoc.default;return{resourceType:n,parameters:r.getParams&&r.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&$t.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,n=0,r=e.parameters.allowedPaymentMethods.length;n<r;n++)t=t&&$t.isObject(e.parameters.allowedPaymentMethods[n]);if(t){var o=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var i=0,a=o.length;i<a;i++){var s=o[i],l=s.family;l+=s.type?Pe.paymentMethodName+s.type:"",e.parameters.allowedPaymentMethods[l]=s.disabled?0:1}}}},this.additionalRedirectParams=function(e,t){var n={};for(var r in t&&(t.paymentMethod&&(n.family=t.paymentMethod.paymentMethodFamily,n.type=t.paymentMethod.paymentMethodType),$t.equalsIgnoreCase(t.status,st.Pending)&&t.details&&(n.pendingOn=t.details.pendingOn,n.picvRequired=t.details.picvRequired)),n)n[r]&&(e=en.addQueryParameter(e,r,n[r]));return e},this.getErrorSourceFromUrl=function(e){if(e=$t.toLowerCase(e))if(-1!==e.indexOf(tt.getServiceEndpoint(tt.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return tt.virtualEndpoints.pifdAddress.endpoint;if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return tt.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(tt.getServiceEndpoint(tt.virtualEndpoints.jarvis.endpoint)))return tt.virtualEndpoints.jarvisAddress.endpoint;return tt.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return tt.resourceTypeToResource[$t.toLowerCase(e)]||tt.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return tt.resourceTypeToPidlDoc[$t.toLowerCase(e)]||tt.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,n){var r=e.getContainingVirtualEndpoint(t);if(!r)return t;var o="{"+r.endpoint+"}",i=new RegExp(o,"i");return t=t.replace(i,n||tt.getServiceEndpoint(r.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}}},nn=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=k.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:k.div+w.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:w.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:w.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:w.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var n=e&&e.length>0&&e[0],r=!t&&n&&e[0].displayHelpName&&e.length>13;return{totalToShow:r?13:e.length,dialogButtonText:r?e[0].displayHelpName:null}}},this.pageBodyBlock={id:w.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:w.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:w.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:w.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",n="",r="",o="";for(var i in e)switch(i){case H.containerId:this.containerId=e[i];break;case H.busyBlockId:this.setBlockId(this.busyBlock,e[i]);break;case H.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[i],this.busyBlock.preExists=!0;break;case H.inputPropertyIdPrefix:t=e[i]||t;break;case H.inputPropertyIdSuffix:n=e[i]||n;break;case H.displayElementIdPrefix:r=e[i]||r;break;case H.displayElementIdSuffix:o=e[i]||o;break;case H.inputPropertyErrorIdPrefix:this.errorPrefix=e[i];break;case H.showPlaceholderInTextbox:this.showPlaceholderInTextbox=Zt.getBoolValue(e[i]);break;case H.disableEnterKeyAction:this.disableEnterKeyAction=Zt.getBoolValue(e[i]);break;case H.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[i]);break;case H.showErrorBlock:this.setShowBlock(this.errorBlock,e[i]);break;case H.hidePropertyErrors:this.hidePropertyErrors=Zt.getBoolValue(e[i]);break;case H.htmlExtender:this.htmlExtender=e[i];break;case H.disableFocusOnLoad:this.disableFocusOnLoad=Zt.getBoolValue(e[i]);break;case H.alwaysValidateOnChange:this.alwaysValidateOnChange=Zt.getBoolValue(e[i]);break;case H.ieExtender:this.ieExtender=e[i];break;case H.propagateCallbackException:this.propagateCallbackException=Zt.getBoolValue(e[i])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,n),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,n),this.getAffixedDisplayElementId=this.getAffixesAttacher(r,o),this.getTrimmedDisplayElementId=this.getAffixesRemover(r,o)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=Zt.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(n){return $t.attachAffixes(e,n,t)}},e.prototype.getAffixesRemover=function(e,t){return function(n){return $t.removeAffixes(e,n,t)}},e}(),rn=function(){},on=function(e){throw e};function an(e){return Promise.resolve(e)}function sn(e){return Promise.reject(e)}var ln,cn,un=Object.freeze({__proto__:null,doNothing:rn,throwException:on,createFakePromise:an,createFakeRejectedPromise:sn}),dn=function(e,t){var n=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=n.extendEventParameters(t))},this.invokePublicEvent=function(e,t,r,o){return t&&n.logMessage(e,t),n.invokeEventHandlers(n.publicEventHandlers,e,r,o)},this.invokePrivateEvent=function(e,t,r,o){return t&&(n.telemetryContext&&n.telemetryContext.enablePrivateEventConsoleLogging||!n.telemetryContext)&&n.logMessage(e,t),n.invokeEventHandlers(n.privateEventHandlers,e,r,o)},this.isEventConsoleLoggingEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return(n.telemetryContext&&n.telemetryContext.enableConsoleLogging||!n.telemetryContext)&&!(r&&r[e]&&r[e].disableConsoleLogging)},this.logMessage=function(e,t){if(n.isEventConsoleLoggingEnabled(e)){var r=Kt.getLoggingService();r&&r.logMessage(n.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,r){if(n.isEventConsoleLoggingEnabled(e)){var o=Kt.getLoggingService();o&&o.logError(t,r)}},this.getExtendedEventParameter=function(e){return n.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);for(var o in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n.getExtendedEventParameter(o));return t=Zt.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e=en.addQueryParameter(e,t,n.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(n.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&Kt.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return!(r&&r[e]&&r[e].disableLogging)},this.logTelemetryEvent=function(e,t){if(n.telemetryLogger&&n.telemetryContext&&n.telemetryContext.enableLogging){if((e===O.propertyValidated||e===O.error)&&t&&t.controlOperationType===de.editing)return;n.isEventTelemetryEnabled(e)&&n.telemetryLogger.logEvent(e,t,n.telemetryContext)}},this.getCorrelationId=function(){return n.telemetryLogger&&n.telemetryLogger.getCorrelationId&&n.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(n.telemetryLogger&&n.telemetryLogger.getHttpRequestCorrelationHeader)return n.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,r,o,i,a,s,l=null===(e=n.telemetryContext)||void 0===e?void 0:e.partnerContext,c=l.partnerName,u=l.scenarioId,d=l.sessionId;return!c&&(null===(r=null===(t=n.telemetryContext)||void 0===t?void 0:t.telemetryResource)||void 0===r?void 0:r.parameters.hasOwnProperty("partner"))&&(c=n.telemetryContext.telemetryResource.parameters.partner),d||(d=null===(o=n.telemetryContext)||void 0===o?void 0:o.sessionId),u||(u="commerce.payments.".concat(null===(a=null===(i=n.telemetryContext)||void 0===i?void 0:i.telemetryResource)||void 0===a?void 0:a.resourceType).concat(null===(s=n.telemetryContext)||void 0===s?void 0:s.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(u,",ms.b.tel.partner=").concat(c,",ms.c.cfs.payments.partnerSessionId=").concat(d)},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null===(e=n.telemetryContext)||void 0===e?void 0:e.sdkVersion,"_").concat(null===(t=n.telemetryContext)||void 0===t?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){n.telemetryContext&&e&&n.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,r,o){n.logTelemetryEvent(t,n.extendEventParameters(o));var i=n.extendEventParameters(r),a=!1;if(e)return e.forEach((function(e){a=e(t,i)||a})),a},this.addReturnOptions=function(e){n.returnUrls=e.urls?p({},e.urls):{},n.returnCallbacks=e.callbacks?p({},e.callbacks):{}},this.addPublicEventHandler=function(e){n.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){n.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){n.eventParameterExtenders.hasOwnProperty(e)?n.logMessage(L.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):n.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=n.getCorrelationId(),n.invokePrivateEvent(L.failure,null,{error:e},{error:e}),n.logError(L.failure,"failure",e);var t=n.returnCallbacks[P.failure];if(t)n.invokeReturnCallback(t,{error:e,cv:n.getCorrelationId()});else{var r=n.returnUrls.failure;if(!r)throw e;var o=r;e&&(o=en.addQueryParameter(o,"errormessage",e.message)),n.redirectUrl(n.addExtendedParametersToUrl(o))}},this.success=function(e){(e=e||{}).cv=n.getCorrelationId(),n.logMessage(L.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),n.invokePrivateEvent(L.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType});var t=n.returnCallbacks[P.success];if(t)n.invokeReturnCallback(t,e);else{var r=n.returnUrls.success;if(r){var o=r;e.id&&(o=en.addQueryParameter(o,"id",e.id)),n.redirectUrl(n.addExtendedParametersToUrl(o))}}},this.gohome=function(){n.logMessage(L.gohome,"Going to call go-home"),n.invokePrivateEvent(L.gohome);var e=n.returnCallbacks[P.gohome];e?n.invokeReturnCallback(e,{cv:n.getCorrelationId()}):n.returnUrls.gohome&&n.redirectUrl(n.addExtendedParametersToUrl(n.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,r,o){n.invokePublicEvent(O.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(o," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:r,propertyType:o},{id:e,displayId:t,pidlIdentity:r,propertyType:o})},this.selectionChanged=function(e,t,r){n.invokePublicEvent(O.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:r},{propertyName:e,displayId:t})},this.error=function(e,t){n.logError(O.error,"error",e),e.cv=n.getCorrelationId(),n.invokePublicEvent(O.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,r){n.invokePrivateEvent(L.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:r})},this.apiReturned=function(e,t,r){r||(r=an()),n.invokePrivateEvent(L.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:r},{name:e,succeeded:$t.boolify(t)})},this.secureFieldEventReceived=function(e,t,r){n.invokePrivateEvent(L.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventQueued=function(e,t,r){n.invokePrivateEvent(L.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventPosted=function(e,t,r){n.invokePrivateEvent(L.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.postMessageReceived=function(e,t,r){n.invokePrivateEvent(L.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:r},{origin:e,expectedOrigin:t,dataLength:r})},this.postMessageHandleSuccess=function(e){n.invokePrivateEvent(L.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){n.invokePrivateEvent(L.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){n.invokePrivateEvent(L.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){n.invokePrivateEvent(L.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){n.invokePrivateEvent(L.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){n.invokePrivateEvent(L.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.resourceHelpersFunctionExecuted=function(e,t,r){n.invokePrivateEvent(L.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:r},{functionName:e,inputParams:t,outputValue:r})},this.fetchCallCompleted=function(e){n.invokePublicEvent(O.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.propertySelected=function(e,t,r){n.invokePublicEvent(O.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyValidated=function(e,t){n.invokePublicEvent(O.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){n.invokePublicEvent(O.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id})},this.instanceDownloading=function(e){n.invokePublicEvent(O.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){n.invokePublicEvent(O.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){n.invokePublicEvent(O.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){n.invokePublicEvent(O.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){n.invokePublicEvent(O.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,r,o,i,a,s){n.invokePublicEvent(O.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.pageRefreshed=function(){n.invokePublicEvent(O.pageRefreshed,"PIDL document refreshed")},this.inputReading=function(){n.invokePublicEvent(O.inputReading,"Reading user input data")},this.inputRead=function(){n.invokePublicEvent(O.inputRead,"Read user input data")},this.inputValidating=function(){n.invokePublicEvent(O.inputValidating,"Validating user input data")},this.inputValidated=function(){n.invokePublicEvent(O.inputValidated,"Validated user input data")},this.inputTokenizing=function(){n.invokePublicEvent(O.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){n.invokePublicEvent(O.inputTokenized,"Tokenized user input data")},this.submitting=function(){n.invokePrivateEvent(L.submitting)},this.submitted=function(){n.invokePrivateEvent(L.submitted)},this.implementationMissing=function(e,t,r){n.invokePublicEvent(O.implementationMissing,"Implentation of ".concat(null!==t&&void 0!==t?t:"undefined"," missing in ").concat(e),r)},this.inputSubmitting=function(e){n.invokePublicEvent(O.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){n.invokePublicEvent(O.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){n.invokePublicEvent(O.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){n.invokePublicEvent(O.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){n.invokePublicEvent(O.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){n.invokePublicEvent(O.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){n.invokePublicEvent(O.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){n.invokePublicEvent(O.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){n.invokePublicEvent(O.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){n.invokePublicEvent(O.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,r,o,i,a){var s=r?"Redirect":"Navigate";return n.invokePublicEvent(O.navigate,"".concat(s," to url: ").concat(t),{displayId:e,dest:i||e,url:t,piRedirection:r,context:o,destinationId:a},{displayId:e,dest:i||e,url:t,piRedirection:r,destinationId:a})},this.triggerEvent=function(e,t){return n.invokePublicEvent(O.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return n.invokePublicEvent(O.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,r,o,i,a,s){n.invokePublicEvent(O.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(o),{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.click=function(e){n.invokePublicEvent(O.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){n.invokePublicEvent(O.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,r){n.invokePublicEvent(O.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:r},{id:e})},this.payloadCreated=function(e){n.invokePublicEvent(O.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){n.invokePublicEvent(O.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){n.invokePublicEvent(O.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.pidlResolved=function(e,t){var r=[];t&&(r=t.map((function(e){return Xt.createIdentityHash(e.identity)})));var o=$t.serialize(r);n.invokePrivateEvent(L.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(o),{context:e,resolvedPidlIdentity:o},{})},this.propertyUnselected=function(e,t,r){n.invokePrivateEvent(L.propertyUnselected,null,{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyCreated=function(e,t,r){n.invokePrivateEvent(L.propertyCreated,null,{propertyName:e,controlId:t,divId:r},{propertyName:e,controlId:t})},this.pollingStarted=function(e){n.invokePrivateEvent(L.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){n.invokePrivateEvent(L.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){n.invokePrivateEvent(L.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e){n.invokePrivateEvent(L.modelUpdated,null,{created:e},{created:e})},this.dataUpdated=function(){n.invokePrivateEvent(L.dataUpdated)},this.conflictingInputValues=function(e){n.invokePrivateEvent(L.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){n.invokePrivateEvent(L.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:n.returnUrls,returnCallbacks:n.returnCallbacks,publicEventHandlers:n.publicEventHandlers,privateEventHandlers:n.privateEventHandlers,eventParameterExtenders:n.eventParameterExtenders,telemetryContext:n.telemetryContext,telemetryLogger:n.telemetryLogger}},this.pollClientActionSuccess=function(e){n.invokePrivateEvent(L.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){n.invokePrivateEvent(L.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){n.invokePrivateEvent(L.hideModalDialog)},this.pidlActionInvoked=function(e,t){n.invokePrivateEvent(L.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){n.invokePrivateEvent(L.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){n.invokePrivateEvent(L.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){n.invokePublicEvent(O.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){n.invokePublicEvent(O.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){n.invokePublicEvent(O.submitOriginalPidl,"Submit Original Pidl Action")},this.telemetryContext=t,this.telemetryLogger=e};!function(e){e[e.PayPal=0]="PayPal"}(ln||(ln={})),function(e){e.googlePay="cdc85313-9b57-4052-81fb-dea336132cbf",e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(cn||(cn={}));var pn=function(e,t,n,r,o,i,a,s,l){void 0===l&&(l=!1);var c=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:c.type,headers:new Headers(c.headers),mode:"cors",credentials:c.includeCredentials?"include":"omit"};return c.payload&&(e.body=c.payload),new Request(c.url,e)},this.url=e,this.type=t,this.headers=n,this.payload=r,this.retryCount=o?0:-1,this.retryOnServerError=o,this.currentOperationName=i||"pidlsdkOperation",this.operationName=a||"DependentOperationName",this.serviceName=s||"PidlSdkDependentService",this.includeCredentials=l,this.serverErrorCount=0,n&&$t.isObject(n)){var u=n,d=Y.msRetryOnServerErr,p=u[d],m=h(u,["symbol"===typeof d?d:d+""]);this.retryOnServerError="false"!==p,this.headers=m}},hn=function(e){function t(t,n,r,o,i){var a=e.call(this,"Failed to fetch")||this;return a.status=t,a.statusText=n,a.failureContent=r,a.hasResponseFromServer=o,a.canRetryOnServerError=i,a}return d(t,e),t}(Error),mn=1e3,fn=function(){function e(){var e=this;this.FetchOptions=pn,this.getHttpTelemetryData=function(t,n){var r=t.url,o=t.type,i=t.contentType,a=t.currentOperationName,s=t.operationName,l=t.operationVersion,c=t.serviceName,u=t.retryCount,d=n.isSuccess,p=n.statusCode,h=n.headers,m=n.failureResponseText,f=n.timeTaken,g=n.serviceErrorCode,v=n.statusText,y=p?p.toString():"0",b=d||"200"===y?"":m||v,C=0;try{C=parseInt(n.headers.get("Content-Length"),10)}catch(S){}return{targetUri:r,requestMethod:o,responseContentType:i,operationName:a,dependencyOperationName:s,dependencyOperationVersion:l,serviceName:c,retryCount:u,succeeded:d,protocolStatusCode:y,failureResponse:b,contentLength:isNaN(C)?0:C,latencyMs:f,serviceErrorCode:g,headers:e.getDesiredResponseHeaders(h)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var n=tt.telemetryHeaders.names,r=tt.telemetryHeaders.prefixes;e.forEach((function(e,o){n.indexOf(o)>-1?t[o]=e:r.forEach((function(n){$t.startsWithIgnoreCase(o,n)&&(t[o]=e)}))}))}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var n=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},r=n.name,o=n.value;r&&o&&(t[r]=o)},this.updateFetchOptions=function(t,n){n&&n.headers&&e.addCVHeader(t,n.headers)},this.handleFetchFailure=function(t,n,r){var o,i,a,s,l;if(e.isFetchFailureError(t))o=t.status,i=t.statusText,a=t.failureContent,s=t.hasResponseFromServer,r=r&&t.canRetryOnServerError;else if(t){var c=t;o=c.status,i=c.statusText,a=c.failureContent||t.message||$t.serialize(c)}var u=!1,d=!1,p=!1;s?(500!==o&&502!==o&&503!==o&&504!==o||(d=!0,u=r),l="HTTP Error |".concat(o,"|").concat(i,"|: |").concat(a,"|")):(l="|NetworkError|Status: ".concat(o,", StatusText: ").concat(i,", FailureContent: ").concat(a,"| Uncaught Error. |").concat(a,"|"),p=!0,u=!0);var h=Zt.parseJSON(a);return{failureMessage:{status:S.Error,errorMessage:l,httpStatus:o,httpStatusText:i,failureContent:a,failureObject:h&&h.succeeded?h.value:void 0,connectivityError:p},retryable:u,serverError:d}},this.fetchWrapper=function(e){return fetch(e.getRequest())},this.xhrWrapper=function(t,n,r){return new Promise((function(o,i){var a=t.type,s=t.url,l=t.headers,c=t.payload,u=t.includeCredentials,d=new XMLHttpRequest;d.open(a,s),a===Ce.Get?d.timeout=12e3:d.timeout=42e3,l&&$t.getKeys(l).forEach((function(e){return d.setRequestHeader(e,l[e])})),u&&(d.withCredentials=u);var p=function(){var e=d.getAllResponseHeaders(),t={};$t.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach((function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");t[r]=o}));return t},h=function(){var e=void 0;return""!==d.responseType&&"text"!==d.responseType||(e=d.responseText),e};d.onload=function(){o(new Response(h(),{status:d.status,headers:new Headers(p()),statusText:d.statusText}))},d.onerror=function(){var o={isSuccess:!1,timeTaken:Date.now()-r,statusCode:d.status,headers:new Headers(p())};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,o));var a=h();i(new hn(d.status,d.statusText,a,$t.boolify(a),!0))},d.ontimeout=function(){var o={isSuccess:!1,timeTaken:Date.now()-r,statusCode:d.status,headers:new Headers};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,o)),i(new hn(d.status,d.statusText,void 0,!1,!0))},a===Ce.Post&&c?(d.setRequestHeader("Content-Type","application/json"),d.send(c)):d.send()}))},this.loadScript=function(e){return new Promise((function(t,n){try{if(document&&(document.head||document.body)){var r=document.createElement("script");r.onload=function(){t()},r.onerror=function(){n()},r.async=!0,r.src=e,(document.head||document.body).appendChild(r)}else n()}catch(o){n(o)}}))},this.getHttpHeaders=function(t,n,r,o,i){var a=e.getDefaultHttpHeaders(t);for(var s in n&&(a=n.getHeaders(a,o)),r&&(Zt.extend(!0,a,r),a.hasOwnProperty(Y.msCorrelationId)&&$t.isNullOrUndefinedOrWhiteSpaceString(a[Y.msCorrelationId])&&(a[Y.msCorrelationId]=Zt.guid()),a.hasOwnProperty(Y.msTrackingId)&&$t.isNullOrUndefinedOrWhiteSpaceString(a[Y.msTrackingId])&&(a[Y.msTrackingId]=Zt.guid())),o&&(o.indexOf("{pidl")>-1||o.indexOf("{pifd")>-1||o.indexOf("{resource-endpoint}")>-1)&&(a.hasOwnProperty(Y.correlationContext)||(a[Y.correlationContext]=null===t||void 0===t?void 0:t.getCorrelationContextHeaderValue()),a[Y.msPidlsdkVersion]=null===t||void 0===t?void 0:t.getPidlSdkVersionHeaderValue()),a)a[s]=Zt.getFormatStringExpressionValue(a[s],i);return a},this.getDefaultHttpHeaders=function(t){var n,r=((n={})[Y.contentType]="application/json",n);return e.addCVHeader(t,r),r},this.getPayeeFileUploadHttpHeaders=function(e,t){var n={};return t&&(n[Y.authorization]=t),n},this.testHookSetRetryTimeout=function(e){mn=e},this.testHookHandleFetchFailure=function(t,n,r){return void 0===n&&(n=Ce.Post),void 0===r&&(r=!1),e.handleFetchFailure(t,n,r)}}return e.prototype.successHandler=function(e,t,n,r,o){var i=this;return function(a){var s={isSuccess:a.ok,timeTaken:Date.now()-n,statusCode:a.status,headers:a.headers};if(s.isSuccess)try{e.fetchCallCompleted(i.getHttpTelemetryData(t,s))}catch(l){}return a.text().then((function(n){var c=Zt.parseJSON(n),u=!1;if(!s.isSuccess){s=p(p({},s),{statusText:a.statusText,serviceErrorCode:(c.value||{}).code,failureResponseText:n});try{e.fetchCallCompleted(i.getHttpTelemetryData(t,s))}catch(l){}u=t.serverErrorCount<2;try{var d=s.headers.get(Y.msRetryOnServerErr);u="true"===d||"false"!==d&&u}catch(m){}}if(!a.ok||!$t.isEmptyString(n)&&!c.succeeded)throw new hn(a.status,a.statusText,n,!0,u);try{var h=c.succeeded?c.value:{};o&&o(h),r.resolve(h)}catch(f){throw new hn(a.status,a.statusText,f.message,!0,!1)}}))}},e.prototype.exceptionHandler=function(e,t,n,r,o,i){var a=this;return function(s){var l=a.handleFetchFailure(s,t.type,t.retryOnServerError),c=l.failureMessage,u=l.retryable&&t.retryCount>=0&&t.retryCount<5;e.error(new Pt.serverError(Tt.restMethodInvocationFailed,t.url,c.failureObject||c.failureContent,c.httpStatus,c.httpStatusText,c.errorMessage,[t.url,c.httpStatusText],t.type,t.retryCount,u)),l.serverError&&t.serverErrorCount++,u?(t.retryCount+=1,2!==t.retryCount&&5!==t.retryCount||(t.url=tt.getAlternateUrl(t.url)),setTimeout((function(){n=Date.now(),a.updateFetchOptions(e,t),t.retryCount<4?a.fetchWrapper(t).then(a.successHandler(e,t,n,r,o)).catch(a.exceptionHandler(e,t,n,r,o,i)):a.xhrWrapper(t,e,n).then(a.successHandler(e,t,n,r,o)).catch(a.exceptionHandler(e,t,n,r,o,i))}),mn*Math.pow(1.5,t.retryCount-1))):(i&&i(c),r.reject(c))}},e.prototype.invokeFetch=function(e,t,n,r,o,i,a,s,l,c,u,d){var p=this;void 0===d&&(d=!1);var h=Date.now(),m=new this.FetchOptions(r,n,o,i,t,l,c,u,d),f=this.fetchWrapper(m);return new Promise((function(t,n){var r={resolve:t,reject:n};f.then(p.successHandler(e,m,h,r,a)).catch(p.exceptionHandler(e,m,h,r,a,s))}))},e.prototype.post=function(e,t,n,r,o,i,a,s,l,c,u){return void 0===u&&(u=!1),this.invokeFetch(e,t,Ce.Post,n,r,o,i,a,s,l,c,u)},e.prototype.put=function(e,t,n,r,o,i,a,s,l,c,u){return void 0===u&&(u=!1),this.invokeFetch(e,t,Ce.Put,n,r,o,i,a,s,l,c,u)},e.prototype.get=function(e,t,n,r,o,i){return this.invokeFetch(e,!0,Ce.Get,t,n,null,null,null,r,o,i)},e.prototype.delete=function(e,t,n,r,o,i){return this.invokeFetch(e,!0,Ce.Delete,t,n,null,null,null,r,o,i)},e}(),gn=new fn,vn=new(function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:p(p({},O),L)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:$t.getValues(p({},De))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:$t.getValues(p({},Ae))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:$t.getValues(p({},Re))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:$t.getValues(p({},B))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:$t.getValues(p({},De))},challengeWindowSize:{type:"string",possibleValues:$t.getValues(p({},Re))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{frequencyUnit:{type:"string",possibleValues:$t.getValues(p({},Ue))},frequency:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:$t.getValues(p({},Ne))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:$t.getValues(p({},De))},challengeWindowSize:{type:"string",possibleValues:$t.getValues(p({},Re))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,n,r){var o=e.validate(t,n,r);if(o)return o;if("dictionary"===n.type||!r)return null;if(e.isObjectSchema(n)){var i=n.allowedChildNames,a=n.ignoreUnspecifiedChild,s=n.children,l=n.childType;if(i)for(var c in r){if(!i[c])return new Pt.inputParameterValidationFailedError(Tt.inputParameterMissing,t,[n.type,$t.getType(r)]);if(l){var u=e.visitInputSchema(t+" element: ",l,r[c]);if(u)return u}}else{if(!a)for(var d in r)if(!s[d])return new Pt.inputParameterValidationFailedError(Tt.inputParameterNotInRange,d,[d]);for(var p in s){var h=e.visitInputSchema(p,s[p],r[p]);if(h)return h}}}if(e.isArraySchema(n)){if(!$t.isArray(r))return new Pt.inputParameterValidationFailedError(Tt.inputParameterTypeMismatch,t,[n.type,$t.getType(r)]);var m=n.minLength,f=n.maxLength;l=n.childType;if(m&&r.length<m)return new Pt.inputParameterValidationFailedError(Tt.inputParameterSmallerThanMinLength,t,[t,m,r.length]);if(f&&r.length>f)return new Pt.inputParameterValidationFailedError(Tt.inputParameterLargerThanMaxLength,t,[t,f,r.length]);if(l)for(var g=0;g<r.length;++g){var v=e.visitInputSchema(t+" element: "+g,l,r[g]);if(v)return v}}if(e.isSchemaSchema(n)){var y=e.visitInputSchema(t,n.schema,r);if(y)return y}return null},this.validate=function(e,t,n){if(!t.optional&&(null===n||void 0===n))return new Pt.inputParameterValidationFailedError(Tt.inputParameterMissing,e,[e]);var r=t.type;if(!n||"any"===r)return null;var o=typeof n;return"dictionary"===r||"schema"===r?r="object":"array"===r&&$t.isArray(n)&&(o="array"),"boolean"===r&&"string"===o&&("true"!==n&&"false"!==n||(o="boolean")),r&&o&&r!==o?new Pt.inputParameterValidationFailedError(Tt.inputParameterTypeMismatch,e,[r,o]):t.possibleValues&&!$t.contains(t.possibleValues,n)?new Pt.inputParameterValidationFailedError(Tt.inputParameterNotInRange,e,[e,n,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!$t.boolify(t)},this.validateInputParameters=function(t,n,r,o,i){var a=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,n));return(a=a&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,r)))&&r.busyBlockShowHideHandler&&r.busyBlockId&&(a=e.resultHandler(t,new Pt.inputParameterValidationFailedError(Tt.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),a=(a=a&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,o)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,i))},this.validateCheckoutParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,n))},this.validatePayeeTaxProfileParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,n))},this.validateMockFunctions=function(t,n){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,n))},this.validateReturnOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,n))},this.validatePidlDocInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,n))},this.validateResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,n))},this.validateAddUpdateOrDeleteOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,n))},this.validateSelectOrRenderOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,n))},this.validateShowResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,n))},this.validateOfferResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,n))},this.validateSearchResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,n))},this.validateFundStoredValueParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,n))},this.validateResourceOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,n))},this.validateResourceActionParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,n))},this.validatePaymentSessionData=function(t,n){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,n))},this.shouldValidateAuthorizationGroups=function(e,t){return t===We.applePay&&e.length>1},this.validatePaymentSessionOrData=function(t,n){var r,o;if(e.isPaymentSession(n))o=e.paymentSessionSchema;else{if(o=e.paymentSessionDataSchema,null===(r=null===n||void 0===n?void 0:n.recurringPaymentDetails)||void 0===r?void 0:r.frequencyUnit){var i=n.recurringPaymentDetails.frequencyUnit;n.recurringPaymentDetails.frequencyUnit=i.toLowerCase()}if((null===n||void 0===n?void 0:n.authorizationGroups)&&e.shouldValidateAuthorizationGroups(n.authorizationGroups,null===n||void 0===n?void 0:n.piid)){for(var a=0,s=0,l=n.authorizationGroups;s<l.length;s++){a+=100*l[s].totalAmount}if(a!==100*(null===n||void 0===n?void 0:n.amount)){var c=new Pt.unmatchedAmountError(Tt.unmatchedAmount,JSON.stringify(n));t.error(c)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",o,n))},this.validatePurchaseRiskChallengeParams=function(t,n){var r="purchaseRiskChallengeSchema",o=e.purchaseRiskChallengeSchema;return n&&n.riskChallengeData&&n.riskChallengeData.length>0&&"threeds"===n.riskChallengeData[0].toLowerCase()&&(r="purchaseRiskChallengeSchemaForThreeDS",o=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(r,o,n))},this.validateHandlePurchasePendingStateParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,n))},this.validateSelectedResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,n))},this.validateHandle=function(t,n){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,n))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&$t.isString(e.id)&&e.id.length},e}()),yn=function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var n=t.strings,r=n.constants,o=n.errorCodes;r&&(this.constants=p({},r)),o&&(this.errors=p({},o))}},bn=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,n){var r=t.getCacheEntryIndex(e);-1===r?t.cache.push({key:e,value:n}):t.cache[r].value=n},this.get=function(e){var n=t.getCacheEntryIndex(e);return-1!==n&&t.cache[n].value},this.remove=function(e){var n=t.getCacheEntryIndex(e),r=null;return-1!==n&&(r=t.cache[n],t.cache.splice(n,1)),r&&r.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&$t.filter(t.cache,(function(t){return!t||!t.value||!e(t.value)}))},this.cache=[],this.keyComparer=$t.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return-1},e}(),Cn=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,n){e.modelDataCache.put(t,e.getModelData(n))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,n){e.dataSourceCache[t]=n},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new bn,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var n in e){var r=e[n];r&&(t[n]=r.getValue())}return t},e}(),Sn=new function(){var e=this;this.createModelElement=function(t,n,r,o,i,a,s,l,c){switch(t){case T.button:return e.addHandleToDisplayDescriptions(r,s),new Wn(n,r,o,i,a,l,c);case T.filePicker:return new Vn(n,r,o,i,a);case T.checkBox:return new Hn(n,r,o,i,a);case T.dropdown:return e.addHandleToDisplayDescriptions(r,s),new Fn(n,r,o,i,a);case T.group:return new wn(t,n,r,o,i,a,c);case T.captcha:return new Dn(t,n,r,o,i,a,c);case T.page:return new An(n,r,o,i,a);case T.textGroup:return new Rn(n,r,o,i,a);case T.dataCollectionBindingGroup:return new In(n,r,o,i,a);case T.textBox:return new Ln(n,r,o,i,a,s);case T.radio:return e.addHandleToDisplayDescriptions(r,s),new Bn(n,r,o,i,a);case T.buttonList:return e.addHandleToDisplayDescriptions(r,s),new On(n,r,o,i,a);case T.secureProperty:return new Jn(n,r,o,i,a,s);case T.iFrame:return new $n(n,r,o,i,a);case T.heading:case T.subheading:case T.text:case T.hyperlink:return new Un(t,n,r,o,i,a,l,c);case T.image:return new qn(t,n,r,o,i,a,l,c);case T.logo:return new Xn(n,r,o,i,a,s,c);case T.audio:return new Gn(n,r,o,i,a,l,c);case T.expression:return new jn(n,r,o,i,a,l,c);case T.pidlContainer:return new Qn(n,r,o,i,a);case T.separator:return new Kn(t,n,r,o,i,a,c);case T.spinner:return new Yn(t,n,r,o,i,a,c);default:return new _n(t,n,r,o,i,a)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var n=t.getOperationHandle();if(n)for(var r=Xt.getDisplayDescriptionsPidlActions(e),o=0;o<r.length;o++){var i=r[o];i.type!==F.success&&i.type!==F.successWithPidlPayload||!$t.isObject(i.context)||(i.context.handle=n,$t.isObject(i.context.resourceActionContext)&&(i.context.resourceActionContext.handle=n))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var n=Xt.getPidlIdentityForProperty(e,t.propertyName);return n?Xt.createIdentityHash(n):void 0}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,n,r,o,i,a,s){var l=e.create(t,n,r,o,i,!1,{},null,a,s);if(e.isErrorObject(l))return l;var c=null,u=l.element,d=g([],l.warnings,!0);if(u)if(ar(u)){var p=e.createLinkedPidlModelElements(i,o,u.linkedPidlId,!0,{});if(e.isErrorObject(p))return p;c=g([],p.elements,!0),d=g(g([],d,!0),p.warnings,!0)}else c=[u];return{elements:c,warnings:d}},this.create=function(t,n,r,o,i,a,s,l,c,u){var d=Zt.getModelElementType(n,r);if(d.error)return{error:d.error};var p=e.getPidlIdentityHash(t,r),h=e.createModelElement(d.type,n,r,o,p,a,i,c,u),m=[];if(s&&(h.displayType!==ct.page&&s[h.displayId]&&(m=g(g([],m,!0),[new Pt.unexpectedError(Tt.duplicateDisplayHintIdOnPage,[h.displayId,l])],!1)),l||(l=h.displayId),s[h.displayId]=!0),nr(h))for(var f=h.displayDescription,v=["audioMembers","imageMembers"],y=0;y<v.length;y++)for(var b=0;b<f[v[y]].length;b++){var C=e.create(t,t&&jt.getPropertyFromDataDescription(t.data_description,f[v[y]][b].propertyName),f[v[y]][b],o,i,a,s,l,c,u);if(e.isErrorObject(C))return C;m=g(g([],m,!0),C.warnings,!0);var S=C.element;0===y?h.audioChildren.push(S):h.imageChildren.push(S)}else if(tr(h))for(f=h.displayDescription,b=0;b<f.members.length;b++){if(C=e.create(t,t&&jt.getPropertyFromDataDescription(t.data_description,f.members[b].propertyName),f.members[b],o,i,a,s,l,c,u),e.isErrorObject(C))return C;if(m=g(g([],m,!0),C.warnings,!0),ar(S=C.element)){var x=e.createLinkedPidlModelElements(i,o,S.linkedPidlId,!1,s,l);if(e.isErrorObject(x))return x;h.children=g(g([],h.children,!0),x.elements,!0),m=g(g([],m,!0),x.warnings,!0)}else h.children.push(S)}else sr(h)?e.createButtonWithDisplayContentGroup(h):e.createPossibleOptionMembers(h,c);return{element:h,warnings:m}},this.createPossibleOptionMembers=function(t,n){if(or(t))for(var r in t.possibleOptions){var o=t.possibleOptions[r];if(o.displayContent){var i=e.createModelElementsFromDisplayDescriptions([o.displayContent],t.operationType,n).elements;i&&i.length>=1&&(o.displayContentContainer=i[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var n=t.displayDescription.displayContentDisplayDescription,r=e.createModelElementsFromDisplayDescriptions([n],t.operationType).elements;r&&r.length>=1&&(t.displayContentModelElement=r[0])}},this.createLinkedPidlModelElements=function(t,n,r,o,i,a){for(var s=Xt.createIdentityHash(r),l=t.getLinkedPidl(s),c={elements:[],warnings:[]},u=!1,d=0;d<l.displayDescription.length;d++){var p=l.displayDescription[d],h=e.create(l,jt.getPropertyFromDataDescription(l.data_description,p.propertyName),p,n,t,!0,i,a);if(e.isErrorObject(h))return h;var m=h.element,f=h.warnings;if(c.warnings=g(g([],c.warnings,!0),f,!0),!o&&rr(m)){if(u)return{error:new Pt.unexpectedError(Tt.multiplePagesInLinkedPidlForSinglePagePidlContainer)};c.elements=g(g([],c.elements,!0),m.children,!0),u=!0}else c.elements=g(g([],c.elements,!0),[m],!1)}return c},this.createModelElements=function(t,n){var r=t.getResolvedOrFirstPidlDoc(),o=[],i=[];if(r&&r.displayDescription&&r.displayDescription.length)for(var a=0;a<r.displayDescription.length;a++){var s=r.displayDescription[a],l=e.addPage(r,jt.getPropertyFromDataDescription(r.data_description,s.propertyName),s,n,t);if(e.isErrorObject(l))return l;o=g(g([],o,!0),l.elements,!0),i=g(g([],i,!0),l.warnings,!0)}return 0===o.length?{error:new Pt.unexpectedError(Tt.noDisplayDescriptionInPidlDocument)}:{elements:o,warnings:i}},this.createModelElementsFromDisplayDescriptions=function(t,n,r,o,i,a){for(var s=[],l=0;l<t.length;l++){var c=t[l];if(c){var u=i&&i.data_description&&jt.getPropertyFromDataDescription(i.data_description,c.propertyName),d=e.addPage(i,u,c,n,a,r,o);e.isErrorObject(d)||(s=g(g([],s,!0),d.elements,!0))}}return{elements:s}}},xn=new(function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var n=$t.find(e,(function(e){return $t.equalsIgnoreCase(e,t)}));return n||(n=""),n},this.updateModelElements=function(t,n,r){e.propertiesVisitorProcessingAny(t,(function(e,t){return!!e.update&&e.update(t,r)}),n)},this.findFirstMatchingProperty=function(t,n){var r={properties:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(!e.isPrefillControl()&&$t.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0}),r),r.matchedProperty},this.getParentIfSame=function(t,n){for(var r=null,o=0;o<n.length;o++){var i={propertyName:n[o]};if(e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&e.children)for(var n=0;n<e.children.length;n++)if(e.children[n].isProperty()){var r=e.children[n];if(r&&r.getPropertyName&&r.getPropertyName()===t.propertyName)return t.parent=e,!0}}),i),i.parent)if(r){if(i.parent!==r)return null}else r=i.parent}return r},this.findPropertyElement=function(t,n){var r={propertyName:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0}),r),r.element},this.findElement=function(t,n){var r={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(n(e))return t.element=e,!0}),r),r.element},this.findAllElements=function(t,n){var r={elements:[]};return e.propertiesVisitorProcessingAny(t,(function(e,t){n(e)&&t.elements.push(e)}),r),r.elements},this.findPrefillControlElement=function(t){return e.findElement(t,(function(e){if(e&&e.displayType===ct.prefillControl)return!0}))},this.findFirstVisibleEnabledPropertyElement=function(t){var n={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0}),n),n.element},this.isButtonWithDisplayDescription=function(e){return sr(e)&&!$t.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,(function(e){return sr(e)}))},this.findHighlightedButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted}))},this.findDefaultPidlActionButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault}))},this.getDefaultPidlActionButton=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),r},this.getDefaultPidlAction=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)),r&&r.displayDescription&&r.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,n){var r=e.getDefaultPidlAction(t,n);if(r&&(r.type===F.success||r.type===F.successWithPidlPayload))return r.context},this.normalizeValueToPossibleValues=function(t,n){var r=e.normalizeValueToOptions($t.getKeys(t.possibleOptions),n);return $t.isEmptyString(r)&&t.dataDescription.possible_values&&(r=e.normalizeValueToOptions($t.getKeys(t.dataDescription.possible_values),n)),r},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,n){return e.normalizeValueToOptions($t.getKeys(t.possibleOptions),n)},this.getPollingPidlActions=function(t){var n={};return t.forEach((function(t){t.pidlAction&&t.pidlAction.type===F.poll&&(n[t.displayId]=t.pidlAction),t.children&&(n=p(p({},n),e.getPollingPidlActions(t.children)))})),n},this.findRadioElements=function(t){return e.findAllElements(t,(function(e){return dr(e)}))}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,n){if(e){var r=t(e,n);return r||(!(e.children&&e.children.length>0)||n&&n.stopDescendantsProcessing?void(n&&delete n.stopDescendantsProcessing):this.propertiesVisitorProcessingAny(e.children,t,n))}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!$t.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},e.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e){if(!$t.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}}},e}()),_n=function(){function e(e,t,n,r,o,i){var a=this;this.isText=function(){return a.isStaticText()||a.type===T.hyperlink},this.isStaticText=function(){return a.type===T.heading||a.type===T.subheading||a.type===T.text||a.type===T.expression},this.isProperty=function(){return a.displayDescription.displayType===ct.property},this.isCaptcha=function(){return a.displayDescription.displayType===ct.captcha},this.isPrefillControl=function(){return a.displayDescription.displayType===ct.prefillControl},this.isButton=function(){return a.displayDescription.displayType===ct.button},this.isHighlighted=function(){return a.displayDescription.isHighlighted},this.isIframe=function(){return a.displayDescription.displayType===ct.iFrame},this.isSecureProperty=function(){return a.displayDescription.displayType===ct.secureProperty},this.showKeyLogo=function(){return $t.boolify(a.dataDescription)&&!0===a.dataDescription.is_key},this.disabled=function(){return a.operationType===rt.update&&a.dataDescription&&!1===a.dataDescription.is_updatable||!0===a.isDisabled},this.hidden=function(){return a.isHidden||a.hasNoDataToShow},this.canBeRendered=function(){return a.displayConditionResult},this.getPrefixedTags=function(e,t,n){n=n||function(e,t){return!0};var r={};return Object.keys(a.tags?a.tags:{}).forEach((function(o){var i=a.tags[o];$t.startsWith(o,e)&&n(o,i)&&(r[t?o.replace(e,""):i]=i)})),r},this.getParentHtmlClassTags=function(){return a.getPrefixedTags(xe.parent,!1,(function(e,t){return!Se[e.replace(xe.parent,"")]}))},this.getHelpDialogTags=function(){return a.getPrefixedTags(xe.helpDialog,!0,(function(e,t){return Se[e.replace(xe.helpDialog,"")]}))},this.update=function(e,t){return a.displayCondition&&(a.displayConditionResult=Zt.getFunctionExecutionResult(a.displayCondition,e)),a.updateModelElement(e,t)},this.operationType=r,this.dataDescription=t,this.displayDescription=n,this.type=e,this.pidlIdentity=o,this.isLinkedPidl=i,this.hasNoDataToShow=!1;var s=this.displayDescription,l=s.isHidden,c=s.displayCondition,u=s.displayId,d=s.displayType,p=s.tags,h=s.propertyName,m=s.pidlAction,f=s.displayHelpName,g=s.displayHelp,v=s.displayImage,y=s.isDisabled,b=s.styleHints;this.isHidden=!0===l,this.displayCondition=c,this.displayConditionResult=!this.displayCondition,this.pidlAction=m,this.displayId=u,this.displayType=d,this.tags=p,this.styleHints=b,this.displayHelpName=f,this.displayHelp=g,this.displayImage=v,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var C=h;this.id=C||u,this.isDisabled=y,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),En=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,u=r.containerDescription,d=r.members,p=r.displayName,h=r.showDisplayName;return s.layoutOrientation=l||ut.vertical,s.layoutAlignment=c,s.containerDescription=u,s.members=d,s.displayName=p,s.showDisplayName=p&&$t.boolify(h),s}return d(t,e),t}(_n),kn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this,c=r.displayName,u=r.showDisplayName,d=r.isSubmitGroup,p=r.isModalGroup;return l.displayName=c,l.showDisplayName=c&&(!u||u===M.stringTrue),l.isSubmitGroup=d,l.isModalGroup=p,s&&(l.id+=s),l}return d(t,e),t}(En),wn=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return d(t,e),t}(kn),In=function(e){function t(t,n,r,o,i){var a=e.call(this,T.dataCollectionBindingGroup,t,n,r,o,i)||this;return a.dataCollectionSource=n.dataCollectionSource,a.filterDescription=n.filterDescription,a.childrenTemplates=a.children,a}return d(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=Zt.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=Zt.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var n=null;if(t&&t.length&&$t.isArray(t)){n=[];for(var r=0;r<t.length;r++)for(var o={modelData:e.modelData,contextData:t[r]},i=0;i<this.childrenTemplates.length;i++){var a=String(r);e.depth?(this.id=this.id+e.depth,a=e.depth+"_"+a,o.depth=a+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):o.depth=a+"a";var s=$t.deepCopy(this.childrenTemplates[i]),l=Sn.createModelElementsFromDisplayDescriptions([s.displayDescription],this.operationType,o,a).elements;l&&l.length>=1&&(e.stopDescendantsProcessing=!0,xn.updateModelElements(l,o),n=n.concat(l))}}this.children=n}return!1},t}(kn),Pn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,u=r.containerDescription,d=r.audioMembers,p=r.imageMembers,h=r.displayName,m=r.showDisplayName;return s.layoutOrientation=l||ut.vertical,s.layoutAlignment=c,s.containerDescription=u,s.audioMembers=d,s.imageMembers=p,s.displayName=h,s.showDisplayName=h&&$t.boolify(m),s}return d(t,e),t}(_n),Tn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.required=function(){return!(!0===l.dataDescription.is_optional)};var c=r.displayName,u=r.showDisplayName;return l.displayName=c,l.showDisplayName=c&&(!u||u===M.stringTrue),l.defaultValue=n.default_value,s&&(l.id+=s),l}return d(t,e),t}(Pn),Dn=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return d(t,e),t}(Tn),An=function(e){function t(t,n,r,o,i){var a=e.call(this,T.page,t,n,r,o,i)||this;return a.displayName=n.displayName,a.keyPidlActions=n.keyPidlActions,a}return d(t,e),t}(En),Rn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.textGroup,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return d(t,e),t}(En),Nn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.getPropertyName=function(){return s.displayDescription.propertyName},s.getErrorMessage=function(e,t){var n,r=s.displayErrorMessages;if(r){if(t&&r.fromErrorCode)for(var o=0;o<r.fromErrorCode.length;o++){var i=r.fromErrorCode[o];if(i.errorCode===t){n=i.errorMessage;break}}else if(r.fromRegex)for(o=0;o<r.fromRegex.length;o++){var a=r.fromRegex[o];if(new RegExp(a.regex).test(e)){n=a.errorMessage;break}}n||(n=r.defaultErrorMessage)}return n},s.required=function(){return!(!0===s.dataDescription.is_optional)&&s.displayDescription.displayType!==ct.prefillControl};var l=s.displayDescription,c=l.displayName,u=l.showDisplayName,d=l.displayErrorMessages,p=l.displayLogo,h=l.maskDisplay,m=l.resolutionPolicy,f=l.displayHelpPosition,g=n.is_key,v=n.transformation,y=n.displayOnly,b=n.default_value;return $t.isFormatStringExpressionPlaceholder(b)?s.defaultValueTemplate=b:s.defaultValue=b,s.displayName=c,s.showDisplayName=c&&(!u||u===M.stringTrue),s.isKeyProperty=!0===g,s.supportsDisplayTransformation=v&&!$t.isNullOrUndefined(v.forDisplay),s.displayErrorMessages=d,s.displayLogo=p,s.maskDisplay=h,s.triggerPidlDownloadOnChange=s.isKeyProperty&&Xt.doesKeyPropertyTriggerPidlDownload(s.dataDescription),s.resolutionPolicy=m||ht.always,s.displayOnly=y,s.displayHelpPosition=f,s}return d(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=Zt.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var n=e.modelData.getModelDataProperty(this.getPropertyName());n&&!n.getValue()&&n.setValue(this.defaultValue)}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(_n),Mn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.firstElementIdSuffix=function(){return s.getFirstElementIdSuffix(s.possibleOptions)};var l=r.possibleOptions,c=r.possibleValues,u=r.dataCollectionSource,d=r.filterDescription,p=r.displaySelectionText,h=r.displayPropertyDescription,m=r.isSelectFirstItem;if(s.possibleValues=c,s.possibleOptions=l,!s.possibleOptions&&c&&(s.possibleOptions=s.getPossibleOptions(c)),s.dataCollectionSource=u,s.filterDescription=d,s.displaySelectionText=p,s.description=h,s.isSelectFirstItem=m,s.selectedIndex=s.displaySelectionText?0:-1,s.dataCollectionSource){var f=Object.keys(s.possibleOptions);f&&f.length&&$t.isFormatStringExpressionPlaceholder(f[0])&&(s.possibleOptionsTemplate=s.possibleOptions[f[0]],s.possibleOptionsTemplate.key=f[0],s.possibleOptions={})}return s.isSelectFirstItem&&s.selectedIndex++,s}return d(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var n=[];if($t.isArray(this.dataCollectionSource))for(var r=0,o=this.dataCollectionSource;r<o.length;r++){var i=o[r],a=Zt.getPropertyExpressionValue(i,e);n.push.apply(n,a)}else n=Zt.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(n=Zt.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:n},t));var s={},l=this.defaultValue;if(n&&n.length&&$t.isArray(n))for(var c=0;c<n.length;c++){var u={modelData:e.modelData,contextData:n[c]},d=Zt.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,u);if(this.isSelectFirstItem&&$t.isNullOrUndefinedOrWhiteSpaceString(l)&&(l=d,e.modelData)){var p=e.modelData.getModelDataProperty(this.getPropertyName());p&&p.setValue(d)}var h={};for(var m in this.possibleOptionsTemplate){var f=Zt.getFormatStringExpressionValue(this.possibleOptionsTemplate[m],u);h[m]=$t.isObject(f)?$t.deepCopy(f):f}if(h.displayContent){var g=Sn.createModelElementsFromDisplayDescriptions([h.displayContent],this.operationType,u,String(c));g.elements&&g.elements.length>=1&&(xn.updateModelElements(g.elements,u),h.displayContentContainer=g.elements[0])}h.pidlAction=h.pidlAction||{},h.pidlAction.context=n[c],s[d]=h}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=s,this.hasNoDataToShow=0===$t.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var v=Zt.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(v){var y=v.possible_values,b=v.possibleValues,C=v.possibleOptions;y&&(this.dataDescription.possible_values=y),b&&(this.possibleValues=b),C&&(this.possibleOptions=C)}}return this.displayDescription.disableSingleItemDropdown&&this.type===T.dropdown&&this.possibleOptions&&1===$t.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||$t.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var n in e)t[n]={displayText:e[n],isDisabled:void 0};return t},t}(Nn),Fn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.dropdown,t,n,r,o,i)||this;return a.defaultValue&&(a.defaultValue=xn.normalizeValueToPossibleValues(a,a.defaultValue)),a}return d(t,e),t}(Mn),Bn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.radio,t,n,r,o,i)||this;return a.defaultValue||(a.defaultValue=$t.getFirstKey(a.possibleValues)),a}return d(t,e),t}(Mn),On=function(e){function t(t,n,r,o,i){return e.call(this,T.buttonList,t,n,r,o,i)||this}return d(t,e),t}(Mn),Ln=function(e){function t(t,n,r,o,i,a){var s=e.call(this,T.textBox,t,n,r,o,i)||this;s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getTextBoxType=function(){var e=s.displayDescription,t=e.inputScope,n=e.maskInput;return t||(!0===n||"password"===s.dataDescription.type?"password":"text")};var l=n.maxLength,c=n.direction,u=n.textAlignment,d=n.displayTransformations;return s.displayTransformations=d,s.maxLength=l,s.direction=c,s.textAlignment=u,s.pidlDocManager=a,s}return d(t,e),t}(Nn),Hn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.checkBox,t,n,r,o,i)||this;return a.description=n.displayPropertyDescription,a}return d(t,e),t}(Nn),Vn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.filePicker,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return d(t,e),t}(Nn),zn=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.displayContentTemplate=r.displayContent,c.displayContent=Zt.getFormatStringExpressionValue(c.displayContentTemplate,s),l&&(c.id+=l,c.displayId=c.id),c}return d(t,e),t.prototype.updateModelElement=function(e){if(this.displayContent=Zt.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=Zt.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=Zt.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===T.hyperlink&&this.pidlAction&&$t.isString(this.pidlAction.context)&&(this.pidlAction.context=Zt.getFormatStringExpressionValue(this.pidlAction.context,e)),this.type===T.hyperlink&&this.pidlAction&&$t.isObject(this.pidlAction.context)){var t={};for(var n in this.pidlAction.context)"instance"===n&&$t.isString(this.pidlAction.context[n])?t[n]=Zt.getFormatInstanceExpressionValue(this.pidlAction.context[n],e):t[n]=Zt.getFormatStringExpressionValue(this.pidlAction.context[n],e);this.pidlAction.context=t}return!1},t}(_n),Un=function(e){function t(t,n,r,o,i,a,s,l){return e.call(this,t,n,r,o,i,a,s,l)||this}return d(t,e),t}(zn),Wn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,T.button,t,n,r,o,i,a,s)||this;return l.tooltipText=n.tooltipText,l}return d(t,e),t}(zn),Gn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,T.audio,t,n,r,o,i,a,s)||this;return l.audioUrl=Zt.convertBase64strIntoBlobUrl(n.audioUrl,"audio/mp3"),l}return d(t,e),t}(zn),jn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,T.expression,t,n,r,o,i,a,s)||this;return l.expression=n.displayContent,l}return d(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=Zt.getExpressionValue(this.expression,e),!1},t}(zn),qn=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.sourceUrlTemplate=r.sourceUrl,c.sourceUrl=Zt.getFormatStringExpressionValue(c.sourceUrlTemplate,s),c.accessibilityName=Zt.getFormatStringExpressionValue(c.accessibilityName,s),l&&(c.id+=l,c.displayId=c.id),c}return d(t,e),t}(_n),Kn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(_n),Yn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(_n),Xn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,T.logo,t,n,r,o,i)||this;return l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.getAllLogos=function(){return l.pidlDocManager.getAllLogos()},l.sourceUrl=n.sourceUrl,l.pidlDocManager=a,s&&(l.id+=s,l.displayId=l.id),l}return d(t,e),t}(_n),Qn=function(e){function t(t,n,r,o,i){var a=e.call(this,T.pidlContainer,t,n,r,o,i)||this;return a.linkedPidlId=n.linkedPidlId,a}return d(t,e),t}(_n),Zn=function(){this.isOptional=!1,this.resolutionPolicy=ht.always},Jn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,T.secureProperty,t,n,r,o,i)||this;s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var l=n.sourceUrl,c=n.width,u=n.height,d=n.messageTimeout,p=n.frameName,h=n.displayName,m=n.propertyName,f=n.displayLogo;return s.sourceUrl=en.createFromTemplate(l),s.width=c,s.height=u,s.messageTimeout=d,s.frameName=p,s.displayName=h,s.propertyName=m,s.displayLogo=f,s.pidlDocManager=a,s}return d(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(Nn),$n=function(e){function t(t,n,r,o,i){var a=e.call(this,T.iFrame,t,n,r,o,i)||this,s=n.sourceUrl,l=n.displayContent,c=n.width,u=n.height,d=n.expectedClientActionId,p=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,f=n.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=c,a.height=u,a.expectedClientActionId=d,a.messageTimeout=p,a.messageTimeoutClientAction=h,a.useAuth=m,a.loadingMessage=f,a}return d(t,e),t}(zn);function er(e){return!$t.isNullOrUndefined(e)&&"type"in e}function tr(e){return er(e)&&(e.type===T.page||e.type===T.group||e.type===T.textGroup||e.type===T.dataCollectionBindingGroup||e.type===T.captcha)}function nr(e){return er(e)&&e.type===T.captcha}function rr(e){return er(e)&&e.type===T.page}function or(e){return er(e)&&(e.type===T.dropdown||e.type===T.radio||e.type===T.buttonList)}function ir(e){return er(e)&&e.type===T.dropdown}function ar(e){return er(e)&&e.type===T.pidlContainer}function sr(e){return er(e)&&e.type===T.button}function lr(e){return er(e)&&e.type===T.checkBox}function cr(e){return er(e)&&e.type===T.group}function ur(e){return er(e)&&e.type===T.textBox}function dr(e){return er(e)&&e.type===T.radio}function pr(e){return er(e)&&e.type===T.secureProperty}function hr(e){return er(e)&&e.isProperty()}var mr=Object.freeze({__proto__:null,ModelElement:_n,ContainerElement:En,GenericGroupElement:kn,GroupElement:wn,DataCollectionBindingGroupElement:In,CaptchaContainerElement:Pn,GenericCaptchaElement:Tn,CaptchaElement:Dn,PageElement:An,TextGroupElement:Rn,PropertyElement:Nn,SelectionElement:Mn,DropdownElement:Fn,RadioElement:Bn,ButtonListElement:On,TextBoxElement:Ln,CheckBoxElement:Hn,FilePickerElement:Vn,GenericTextElement:zn,TextElement:Un,ButtonElement:Wn,AudioElement:Gn,ExpressionElement:jn,ImageElement:qn,SeparatorElement:Kn,SpinnerElement:Yn,LogoElement:Xn,PidlContainer:Qn,SecurePropertyInitializations:Zn,SecurePropertyElement:Jn,IFrameElement:$n,isModelElement:er,isContainerElement:tr,isCaptchaElement:nr,isPageElement:rr,isSelectionElement:or,isDropdownElement:ir,isPrefillDropdownElement:function(e){return ir(e)&&e.displayType===ct.prefillControl},isPidlContainerElement:ar,isImageElement:function(e){return er(e)&&e.type===T.image},isLogoElement:function(e){return er(e)&&e.type===T.logo},isButtonElement:sr,isFilePickerElement:function(e){return er(e)&&e.type===T.filePicker},isCheckBoxElement:lr,isPrefilledCheckBoxElement:function(e){return lr(e)&&e.displayType===ct.prefillControl},isPageOrGroupOrDataCollectionBindingGroup:function(e){return er(e)&&(e.type===T.page||e.type===T.group||e.type===T.dataCollectionBindingGroup)},isGroupElement:cr,isTextGroupElement:function(e){return er(e)&&e.type===T.textGroup},isTextBoxElement:ur,isButtonListElement:function(e){return er(e)&&e.type===T.buttonList},isRadioElement:dr,isTextElement:function(e){var t=[T.heading,T.subheading,T.text,T.hyperlink];return er(e)&&$t.contains(t,e.type)},isDataCollectionBindingGroup:function(e){return er(e)&&e.type===T.dataCollectionBindingGroup},isExpressionElement:function(e){return er(e)&&e.type===T.expression},isIFrameElement:function(e){return er(e)&&e.type===T.iFrame},isSecurePropertyElement:pr,isSeparatorElement:function(e){return er(e)&&e.type===T.separator},isAudioElement:function(e){return er(e)&&e.type===T.audio},isPropertyElement:hr}),fr=function(e,t){this.value=e,this.objectId=t},gr=function(e,t,n,r,o){var i=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<i.possibleValues.length;t++)e[t]={displayText:i.possibleValues[t].value};return e},this.getIndex=function(){return i.index},this.setIndex=function(e){i.index=e;var t=i.possibleValues[i.index];if(t)for(var n=t.objectId,r=0;r<i.associatedModelDataProperties.length;r++)i.associatedModelDataProperties[r].setCurrentObjectId(n)},this.pidlIdentity=e,this.associatedModelDataProperties=r,this.possibleValues=[],o)for(var a=0;a<o.length;a++){var s=o[a];this.possibleValues.push(new fr(s,t))}for(var l=0;l<n.objectIds.length;l++){var c=n.objectIds[l];if(c!==t){for(var u=[],d=0;d<this.associatedModelDataProperties.length;d++){var p=this.associatedModelDataProperties[d];p.setCurrentObjectId(c);var h=p.getValue();h&&u.push(h),p.setCurrentObjectId(t)}this.possibleValues.push(new fr(Zt.getStringValue(u),c))}}},vr=function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]},yr=function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]},br="pidlddc_object_id",Cr=function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if($t.isArray(e))for(var n=0;n<e.length;n++)t.addId(e[n]);else if($t.isObject(e))for(var r in e.pidlddc_object_id||(e.pidlddc_object_id=Zt.guid()),e)r!==br&&t.addId(e[r])},this.getPropertyInstancesInternal=function(e,n,r){if($t.isArray(n))for(var o=0;o<n.length;o++)t.getPropertyInstancesInternal(e,n[o],r);else if($t.isObject(n)){var i=e.getPropertyName();for(var a in n){if(a===i){var s=n.pidlddc_object_id;s||(s=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var l=n[i];ir(e)&&(l=xn.normalizeValueToPossibleValues(e,n[i])),r[s]=l}t.getPropertyInstancesInternal(e,n[a],r)}}},this.getPropertyInstances=function(e,n){var r={};return n&&t.getPropertyInstancesInternal(e,n,r),r},this.parsePrefillData=function(e){var n=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(n),$t.keyCount(n)>0){var r=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var o in r||(r=new yr,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=r),n)$t.contains(r.objectIds,o)||r.objectIds.push(o);r.currentObjectId=r.objectIds[0]}},this.createPidlInfos=function(e,n){var r=n.pidlInfos[e.pidlIdentity];r||(r=new vr(n.pageIndex),n.pidlInfos[e.pidlIdentity]=r),r.pageIndex!==n.pageIndex&&(r.allPropertyOnSamePage=!1);var o=t.modelDataProperties[e.getPropertyName()];o&&r.modelDataProperties.push(o)},this.getPidlInfos=function(e){for(var n={},r=0;r<e.length;r++)xn.propertiesVisitorProcessingDataProperty(e[r].children,t.createPidlInfos,{pageIndex:r,pidlInfos:n});t.pidlDocInfos=n},this.getDefaultSelectionStrings=function(e,t,n){if(e&&t){var r=t.getIdentityString(e),o=r+"_"+le.prefillDropdownDefault,i=r+"_"+le.prefillDropdownNew,a=(n||{})[o],s=(n||{})[i];if(a&&s){var l=[];return l.push(a),l.push(s),l}}},this.createMultiPropertySelectors=function(e,n,r,o){var i=xn.findPrefillControlElement(e),a=!1;for(var s in t.pidlDocInfos){var l,c=t.pidlDocInfos[s],u=t.pidlIdentityPrefillObjectMapping[s],d=i&&c.allPropertyOnSamePage&&s===i.pidlIdentity;if(u&&u.objectIds&&c.modelDataProperties)if(d&&i.type===T.checkBox)u.objectIds.length>1&&o.error(new Pt.unexpectedError(Tt.unexpectedPrefillDataCount,[s,"1",u.objectIds.length.toString()])),l=new gr(s,t.defaultInstanceId,u,c.modelDataProperties),t.multiPropertySelectors[s]=l,a=!0;else if(d&&i.type===T.dropdown&&u.objectIds.length>1){var p=t.getDefaultSelectionStrings(s,r,n);l=new gr(s,t.defaultInstanceId,u,c.modelDataProperties,p),t.multiPropertySelectors[s]=l}else for(var h=0;h<c.modelDataProperties.length;h++)c.modelDataProperties[h].setDefaultObjectAsCurrent()}return a},this.getPidlInfoMatch=function(e){for(var n in t.pidlDocInfos)for(var r=t.pidlDocInfos[n].modelDataProperties,o=0;o<r.length;o++)if(e[r[o].propertyName])return t.pidlDocInfos[n]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var n=t.prefillData[e],r=t.getPidlInfoMatch(n);if(r)for(var o=0;o<r.modelDataProperties.length;o++){var i=r.modelDataProperties[o].propertyName;n[i]=n[i]?n[i]:""}}},this.getPropertyValueInternal=function(e,n,r){if(n){if(void 0===r)if($t.isArray(n))for(var o=0;o<n.length;o++)r=r||t.getPropertyValueInternal(e,n[o],r);else if($t.isObject(n)||n.hasOwnProperty(e))for(var i in n)e===i?r=n[i]:void 0===r&&(r=t.getPropertyValueInternal(e,n[i],r));return r}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,n,r,o,i,a){var s=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=r,t.getPidlInfos(n),t.prefillData&&(t.fillPrefillData(),xn.propertiesVisitorProcessingDataProperty(n,t.parsePrefillData),s=t.createMultiPropertySelectors(n,o,i,a)),{multiPropertySelectors:t.multiPropertySelectors,editable:s}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e},Sr=function(e,t,n,r){var o=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){o.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in o.objectIdValuesMapping)if(e!==o.defaultObjectId)break;var t=null;e&&(t=o.objectIdValuesMapping[e]),o.objectIdValuesMapping[o.defaultObjectId]=t,o.objectId=o.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&o.modelElement&&o.modelElement.hidden()&&o.modelElement.defaultValue&&(e=o.modelElement.defaultValue),o.objectId!==o.defaultObjectId&&e!==o.objectIdValuesMapping[o.objectId]&&(o.objectId=o.defaultObjectId,t=!0),o.objectIdValuesMapping[o.objectId]=e,t},this.getValue=function(e,t){var n=o.objectIdValuesMapping[o.objectId];if(or(o.modelElement)&&$t.isObject(o.modelElement.possibleOptions)){if(!o.modelElement.possibleOptions[n])return xn.normalizeValueToPossibleValues(o.modelElement,n);if(e&&t&&n&&o.modelElement.possibleOptions[n].pidlAction)return o.modelElement.possibleOptions[n].pidlAction.context}return n},this.isEditable=function(e){return(o.objectId===o.defaultObjectId||e)&&(!o.modelElement||!o.modelElement.disabled())},this.setInstances=function(e){o.objectIdValuesMapping=Zt.extend(o.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=r,this.editState=ue.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=n},xr=function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,n,r){if($t.isArray(n)){for(var o=0;o<n.length;o++)if(t.getInstancePropertyValue(e,n[o],r))return!0}else if($t.isObject(n))for(var i in n){if(i===e)return r[e]=n[e],!0;if(t.getInstancePropertyValue(e,n[i],r))return!0}},this.getDisplayPropertyValueInternal=function(e){var n=t.displayData&&t.displayData.details&&t.displayData.details[e];if(n)return n;var r=t.modelDataProperties[e];if(r){var o=r.modelElement;if(o&&o.possibleOptions){var i=r.getValue(),a=o.possibleOptions[i];if(a)return a.displayText}}},this.maskPropertyValueFlagExists=function(e){var n=t.modelDataProperties[e];return n&&n.modelElement&&n.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,n){var r=e.getPropertyName();if(n.userData.hasOwnProperty(r)){var o=n.userData[r],i=t.getMaskedPropertyValue(r);if(!i||o!==i){var a=t.modelDataProperties[r];o!==a.getValue(!1)&&n.conflictingInputValueReporter&&n.conflictingInputValueReporter(r),a.setValue(o)}}},this.updateModelElement=function(e){var n=e.getPropertyName(),r=t.modelDataProperties[n];r||(t.populateInternal(e),r=t.modelDataProperties[n]);var o=r.modelElement;if(o&&e.pidlIdentity!==o.pidlIdentity){r.modelElement=e;var i=t.multiPropertySelectors[o.pidlIdentity];i&&(t.multiPropertySelectors[e.pidlIdentity]=i,i.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[o.pidlIdentity])}},this.populateInternal=function(e){var n={},r=e.getPropertyName();t.modelDataProperties[r]||(n[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[r]=new Sr(r,t.defaultInstanceId,n,e))},this.getPropertyInternal=function(e,n,r){var o=!0,i=null,a=t.modelDataProperties[e];return a?(i=a.getValue(n,r),o=a.isEditable(t.editablePrefillData)):i=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:i,editable:o,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var n in t.modelDataProperties)e.hasOwnProperty(n)&&t.modelDataProperties[n].setValue(e[n])},this.removeClientAction=function(e){if(e){var t=$t.deepCopy(e);return delete t.clientAction,t}return e},this.setPrefillData=function(e,n,r,o){if(e.elements&&n){var i=t.inputPrefillDataManager.parse(n,e.elements,t.modelDataProperties,r,e.pidlDocManager,o);t.multiPropertySelectors=i.multiPropertySelectors,t.editablePrefillData=i.editable,t.setPrefillDataInPartnerDataSource(n)}},this.setPrefillDataInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.prefillData=e,t.setPartnerData(n)},this.setInputParametersInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.inputParameters=e,t.setPartnerData(n)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,n,r){n&&e&&e.elements&&xn.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:n,conflictingInputValueReporter:r})},this.updateModelElements=function(e){e&&xn.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,n,r){var o=t.getPropertyInternal(e,n,r);if(o)return o.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,n){var r=t.multiPropertySelectors[e];r&&r.setIndex(n)},this.getMultiPropertySelectorIndex=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,n){t.dataStore.saveDataSource(e,n)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData(Xt.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){xn.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var n={properties:{}};return xn.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r=e.getPropertyName(),o=t.modelDataProperties[r];o&&(n.properties[r]=o)}),n),n.properties},this.setInputInstance=function(e,n){n&&(xn.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r={},o=e.getPropertyName();t.getInstancePropertyValue(o,n.inputInstanceDetails,r)&&t.modelDataProperties[o].setValue(r[o])}),{inputInstanceDetails:n}),t.inputInstance=n)},this.setPrimaryResourceResponse=function(e,n){var r=[];n&&n.length&&n.forEach((function(e){return r.push(t.removeClientAction(e))})),t.resourceResponse={primary:t.removeClientAction(e),secondary:r}},this.retrieveFromCache=function(e,n){if(e=e||t.pidlDocManager.getPidlIdentity()){var r=t.dataStore.readModelData(Xt.createIdentityHash(e));if(n)for(var o=0;o<n.length;o++)r.hasOwnProperty(n[o])&&delete r[n[o]];if(r)return t.setJumpbackData(r),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=Zt.guid(),this.inputPrefillDataManager=new Cr(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new Cn},_r=new function(){this.luhn=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){var o=parseInt(e.charAt(r));n&&(o*=2)>9&&(o-=9),t+=o,n=!n}return t%10===0}},Er=function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise((function(n,r){var o=[],i=0,a=function(){if(++i===e.length){var r=o.length?o[0].error:null;r=o.length&&t?t(r):r,n({innerErrors:o,error:r})}};e.forEach((function(e){e.then((function(e){e.error&&o.push(e),a()})).catch((function(e){o.push({error:new Pt.unexpectedError(e)}),a()}))}))})):an({innerErrors:[]})}},kr=new Er,wr=function(){var e=this;this.validateUserInputDataFromService=function(e,t,n,r,o,i){var a=en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.validation.endpoint),[i]),s={value:r,propertyName:n};t&&(s.urlValidationType=t);var l=JSON.stringify(s),c=gn.getDefaultHttpHeaders(e);return c[Y.msFlight]="pxpidl",new Promise((function(t,r){gn.post(e,!0,a,c,l,(function(e){var r=$t.equalsIgnoreCase(e.status,S.Passed)?null:new Pt.propertyValidationFailedError(Tt.propertyValidationFailed,e.errorCode,n,[n,e.errorCode]);t({error:r})}),(function(e){t({error:new Pt.propertyValidationFailedError(Tt.propertyValidationFailed,j.empty,n,[n,j.empty])})}),o,tt.virtualEndpoints.validation.operation,tt.virtualEndpoints.validation.description,!0).catch(rn)}))},this.validateUserInputDataInternal=function(t,n,r,o,i){var a=n.data_description,s=[];for(var l in a){var c=a[l];if(Ot(c)){var u=c&&c.length&&c[0];u&&(s=s.concat(e.validateUserInputDataInternal(t,u,r[l],o,i)))}else{if(c.displayOnly||o===rt.update&&!c.is_updatable)continue;var d=null;if(i){var p=i.getModelDataProperty(l);p&&(d=p.modelElement)}s.push(e.validatePropertyFromPropertyDescription(t,d,jt.getPropertyValueFromInputData(r,l),o,l,c))}}return s},this.validatePropertyFromPropertyDescription=function(t,n,r,o,i,a){var s=S.Passed,l=null,c=null;if((null===n||void 0===n?void 0:n.type)===T.secureProperty)c=n.validate().then((function(e){return e?{error:new Pt.propertyValidationFailedError(Tt.propertyValidationFailed,e,a.display_property||i,[a.display_property||i,e])}:{error:null}}));else if(r){if(a.validation||a.validations)for(var u=null==a.validations?[a.validation]:a.validations,d=0;d<u.length&&s===S.Passed;d++)switch(u[d].validationType){case ot.regex:var p=new RegExp(u[d].regex);n&&n.type&&n.type===T.filePicker?r&&r.name&&!1===p.test(r.name)&&(s=S.Fail,l=u[d].error_code):!1===p.test(r)&&(s=S.Fail);break;case ot.function:_r[u[d].function]&&_r[u[d].function](r)||(s=S.Fail,l=u[d].error_code);break;case ot.service:c=e.validateUserInputDataFromService(t,u[d].urlValidationType,i,r,o,u[d].url);break;case ot.size:var h=u[d].maxFileSize;n&&n.type&&n.type===T.filePicker&&r&&r.size&&r.size>h&&(s=S.Fail,l=u[d].error_code)}}else a.is_optional||(s=S.Fail,l=j.empty);return c||(c=an({error:s===S.Passed?null:new Pt.propertyValidationFailedError(Tt.propertyValidationFailed,l,a.display_property||i,[a.display_property||i,l])})),c},this.validateUserInputData=function(t,n,r,o,i){var a=e.validateUserInputDataInternal(t,n,r,o,i);return kr.aggregateCommerceResults(a)},this.validateUserInputProperty=function(t,n,r,o){var i=e.validatePropertyFromPropertyDescription(t,n,r,o,n.getPropertyName(),n.dataDescription);return kr.aggregateCommerceResults([i])}},Ir=new wr,Pr=function(e,t){var n=this;this.shouldValidateProperty=function(e,t){if(n.alwaysValidateOnChange)return!0;var r=e.editState,o=e.modelElement;if(!o||o.type!==T.textBox&&o.type!==T.dropdown&&o.type!==T.checkBox&&o.type!==T.secureProperty)return r===ue.clean?""!==e.getValue():t===de.editing||t===de.finished;switch(r){case ue.clean:return!1;case ue.editing:return t===de.finished;case ue.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==G.dirtyOnly||e===ue.dirty},this.getUpdatedPropertyState=function(e,t){var n=e.editState,r=e.modelElement;if(!r||r.type!==T.textBox&&r.type!==T.dropdown&&r.type!==T.checkBox&&r.type!==T.secureProperty)return n===ue.clean&&""!==e.getValue()?ue.dirty:null;switch(n){case ue.clean:return t===de.editing?ue.editing:null;case ue.editing:return t===de.finished?ue.dirty:null;case ue.dirty:return null}},this.validatePropertyValue=function(e,t){return Ir.validateUserInputProperty(n.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,r,o){var i=[];for(var a in e){var s=e[a];n.shouldValidatePropertyInPageValidation(s.editState,t)&&i.push(n.validatePropertyValue(s,r).then((function(t){var n=t.error;if(n){var r=e[n.propertyName];if(r){var i=r.modelElement;(hr(i)||pr(i))&&(n.message=i.getErrorMessage(r.getValue(),n.errorCode)),r.editState=ue.dirty,o.push(n)}}})).catch((function(){return rn})))}return i},this.validateProperty=function(e,t,r){var o=n.shouldValidateProperty(e,t),i=n.getUpdatedPropertyState(e,t);return i&&(e.editState=i),new Promise((function(i,a){o?n.validatePropertyValue(e,r).then((function(r){var o=r.error;if(o){var a=e.modelElement;(hr(a)||pr(a))&&(o.message=a.getErrorMessage(e.getValue(),o.errorCode)),n.eventHub.error(o,t)}else n.eventHub.propertyValidated(e.propertyName,t);i()})).catch((function(){return rn})):i()}))},this.clearElementEditState=function(e){e.editState=ue.clean},this.validatePage=function(e,t,r){return t===G.all&&n.eventHub.inputValidating(),e?new Promise((function(o,i){var a=[],s=n.validatePageElements(e,t,r,a);Promise.all(s).then((function(){if(a.length){var e=new Pt.formValidationFailedError(t===G.all?Tt.formValidationFailed:Tt.editedPropertiesValidationFailed,"",a,[""]);n.eventHub.error(e),i(e)}else o(),t===G.all&&n.eventHub.inputValidated()}),(function(){i()}))})):(t===G.all&&n.eventHub.inputValidated(),an())},this.eventHub=e,this.alwaysValidateOnChange=t},Tr=new function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}},Dr={name:"HMAC",hash:{name:"SHA-256"}},Ar=function(){var e=this;this.init=function(){var t=Tr.getCryptoSubtleInstance();return t?new Promise((function(n,r){t.generateKey(Dr,!0,["sign"]).then((function(r){e.hmacKey=r,t.exportKey("raw",e.hmacKey).then((function(t){var r={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(o){r.error=new Pt.unexpectedError(Tt.hmacError,[o&&o.message])}n(r)}),(function(e){n({error:new Pt.unexpectedError(Tt.hmacError,[e&&e.message])})}))}),(function(e){n({error:new Pt.unexpectedError(Tt.hmacError,[e&&e.message])})}))})):an({error:new Pt.unexpectedError(Tt.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var n=Tr.getCryptoSubtleInstance();return n&&e.hmacKey?new Promise((function(r,o){for(var i=new Uint8Array(t.length),a=0;a<t.length;a++)i[a]=t.charCodeAt(a);n.sign(Dr,e.hmacKey,i).then((function(e){var t=null;try{var n=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,n))}catch(o){r({error:new Pt.unexpectedError(Tt.hmacError,[o&&o.message])})}r({data:t})}),(function(e){r({error:new Pt.unexpectedError(Tt.hmacError,[e&&e.message])})}))})):an({error:new Pt.unexpectedError(Tt.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return Dr},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null},Rr=new function(){var e=this;this.doServerTokenization=function(e,t,n,r,o){return new Promise((function(i,a){var s=o?tt.virtualEndpoints.tokenizationEdge:tt.virtualEndpoints.tokenization,l=en.buildUrl(tt.getServiceEndpoint(s.endpoint),[t,"getToken"]);return gn.post(e,!0,l,gn.getDefaultHttpHeaders(e),'{ "data": "'+n+'" }',(function(e){i({data:e.data})}),(function(e){(e=e||{status:S.Fail}).failureObject=e.failureObject||{},e.failureObject.code=U.tokenizationFailed;var t=" ";if($t.isString(n))for(var r=0;r<n.length;r++){var o=n.charCodeAt(r);t+=o>=48&&o<=57?"d":"c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,i({error:new Pt.serverError(Tt.tokenizationFailed,l,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})}),r,s.operation,s.description).catch((function(e){i({error:new Pt.unexpectedError(Tt.tokenizationFailed,[e.message])})}))}))},this.serverTokenization=function(t,n,r,o,i,a){return r.propertyTokenizing(n,en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(r,t.token_set,o[n],i,a).then((function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}}))},this.doFileUpload=function(e,t,n,r,o){var i=n.hmacContext;return new Promise((function(n,a){var s=tt.virtualEndpoints.payeeTaxProfile;return gn.post(e,!0,o,gn.getPayeeFileUploadHttpHeaders(e,i.userCredential),t,(function(e){n({data:e.filename})}),(function(e){(e=e||{status:S.Fail}).failureObject=e.failureObject||{},e.failureObject.code=U.fileUploadFailed,n({error:new Pt.serverError(Tt.fileUploadFailure,o,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})}),r,s.operation,s.description).catch((function(e){n({error:new Pt.unexpectedError(Tt.fileUploadFailure,[e.message])})}))}))},this.composePayeeFileUploadPayload=function(e,t){var n=new FormData;return n.append("file",e[t]),n.append("payeeid",e.payee_id),n.append("taxprofileid",e.tax_profile_id),n},this.fileUpload=function(t,n,r,o,i,a,s){var l=e.composePayeeFileUploadPayload(o,n),c=en.createFromTemplate(s);return r.fileUploading(n,c),e.doFileUpload(r,l,i,a,c).then((function(e){return e.error||(o[n]=e.data,r.fileUploaded(n)),{error:e.error}}))},this.msrCryptoEncryption=function(e,t,n,r){var o,i,a,s;n.propertyTokenizing(t,"");var l=e&&e.dataProtection&&e.dataProtection.parameters;if("undefined"!==typeof msrCrypto||l&&!l.encryptionLibrary)i=an();else{a=l&&l.encryptionLibrary||void 0;var c=l&&l.encryptionLibraryUrl||en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.msrCryptoJS.endpoint),[a]);i=gn.loadScript(c)}if("undefined"!==typeof encryption)o=an();else{s=l&&l.encryptionScript||void 0;var u=l&&l.encryptionScriptUrl||en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.encryptJS.endpoint),[s]);o=gn.loadScript(u)}return i.then((function(){return o.then((function(){return"undefined"===typeof encryption?{error:new Pt.unexpectedError(Tt.msrEncryptionFailed,["Fail to initialize "+s+" instance"])}:new Promise((function(o,i){encryption.Encrypt(e,r[t],(function(e){r[t]=e,n.propertyTokenized(t),o({})}),(function(e){i(e)}))})).catch((function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new Pt.serverError(Tt.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new Pt.serverError(Tt.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+a+" script file: "+JSON.stringify(e);return{error:new Pt.serverError(Tt.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.payPalHECEncryption=function(e,t,n,r,o){var i;if(n.propertyTokenizing(t,""),"undefined"!==typeof PayPalCrypto)i=an();else{var a=e&&e.dataProtection&&e.dataProtection.parameters,s=a&&a.encryptionScriptUrl;if(!s){var l=a&&a.encryptionScript||"paypalEncrypt.js";s=en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.paypalEncryptJS.endpoint),[l])}i=gn.loadScript(s)}var c=e;return i.then((function(){return"undefined"===typeof PayPalCrypto?{error:new Pt.unexpectedError(Tt.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise((function(e,i){PayPalCrypto.Encrypt(c,o,r[t],(function(o){r[t]=btoa(String.fromCharCode.apply(null,o)),n.propertyTokenized(t),e({})}))}))})).catch((function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new Pt.serverError(Tt.tokenizationFailed,null,null,null,t,null,[t])}}))},this.customEncryption=function(t,n,r,o,i,a,s){r.propertyTokenizing(n,"");var l=t;return new Promise((function(t,s){return m(e,void 0,void 0,(function(){var e;return f(this,(function(s){switch(s.label){case 0:return[4,a.encrypt(l,i,o[n])];case 1:return e=s.sent(),o[n]=e,r.propertyTokenized(n),t({}),[2]}}))}))})).catch((function(e){var t="".concat(s,"\n").concat(JSON.stringify(e));return{error:new Pt.serverError(Tt.tokenizationFailed,null,null,null,t,null,[t])}}))},this.createHmacSignatureInternal=function(t,n,r,o,i,a,s){return t.init().then((function(l){if(l.error)return{error:l.error};var c=t.getRawKey(),u="Pan:"+i.pan+"|HMACKey:"+c+"|UserCredential:"+i.userCredential,d={keyToken:null,data:null};return e.doServerTokenization(n,Ie.token,c,a,s).then((function(e){return e.error?e:(d.keyToken=e.data,t.sign(u))})).then((function(e){return e.error||(d.data=e.data,o[Ie.userCredential]=i.userCredential,o[r]={algorithm:Ie.algorithm,keyToken:d.keyToken,data:d.data}),{error:e.error}}))}))},this.getHmacSignatureFromSecurePX=function(e,t,n,r){var o=n;return new Promise((function(n,i){o.createHmacSignature("Pan",r).then((function(o){t[Ie.userCredential]=r,t[e]=o.value,n({})})).catch((function(e){n({error:new Pt.serverError(Tt.hmacError,null,null,null,e.message,null,[e.message])})}))}))},this.createHmacSignature=function(t,n,r,o,i,a){var s=o.hmacContext;return Tr.isSupported()&&s&&s.userCredential?s.panElement&&s.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(n,r,s.panElement,s.userCredential):s.pan?e.createHmacSignatureInternal(new Ar,t,n,r,s,i,a):(r[n]=null,an({})):(r[n]=null,an({}))},this.tokenizeUserInputDataInternal=function(t,n,r,o,i,a,s){var l=n.data_description,c=i||n.clientContext,u=[];for(var d in l){var p=l[d];if(Ot(p)){var h=p&&p.length&&p[0];if(h){var m=e.tokenizeUserInputDataInternal(t,h,r[d],o,c,a,s);u=g(g([],u,!0),m,!0)}}else{if(p.displayOnly||o===rt.update&&!p.is_updatable)continue;if(p.token_set&&!p.token_set.startsWith(Ve.tokenizationValuePrefix)||p.dataProtection)if(r.hasOwnProperty(d)){var f=p.dataProtection&&p.dataProtection.protection_type&&$t.isString(p.dataProtection.protection_type)&&p.dataProtection.protection_type.toUpperCase(),v=p.token_set&&$t.isString(p.token_set)&&p.token_set.toUpperCase();if("HMACSIGNATURE"===f)u.push(e.createHmacSignature(t,d,r,a,o,p.useEdgeTokenization));else if("MSRENCRYPT"===f)u.push(e.msrCryptoEncryption(p,d,t,r));else if("PAYPALENCRYPTION"===v)s&&s[ln.PayPal]?u.push(e.customEncryption(p,d,t,r,c,s[ln.PayPal],"HEC Encryption failed.")):u.push(e.payPalHECEncryption(p,d,t,r,c));else if("FILEUPLOAD"===v){var y=a.fileUploadUrls[d];u.push(e.fileUpload(p,d,t,r,a,o,y))}else u.push(e.serverTokenization(p,d,t,r,o,p.useEdgeTokenization))}else p.is_optional||u.push(an({error:new Pt.unexpectedError(Tt.tokenizationError,["DataDescription contains a required field '"+d+"' which is missing in the userInputData passed in."])}))}}return u},this.getFileUploadUrlsInDisplayDescription=function(t,n){if(t&&(Nt(t)&&(n[t.propertyName]=null===t||void 0===t?void 0:t.uploadUrl),Rt(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getFileUploadUrlsInDisplayDescription(t.members[r],n)},this.getFileUploadUrlsInPidlDoc=function(t){var n={};if(t&&t.displayDescription&&t.displayDescription.length)for(var r=0;r<t.displayDescription.length;r++){var o=t.displayDescription[r];e.getFileUploadUrlsInDisplayDescription(o,n)}return n},this.tokenizeUserInputData=function(t,n,r,o,i,a,s){void 0===s&&(s=null);var l={hmacContext:{userCredential:i,pan:r&&r.details&&r.details.accountToken,panElement:s&&s.getPropertyModelElement("accountToken")}};l.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(n);var c=e.tokenizeUserInputDataInternal(t,n,r,o,null,l,a);return kr.aggregateCommerceResults(c,(function(e){return e.code===Tt.tokenizationFailed.code?e:new Pt.unexpectedError(Tt.tokenizationFailed,[e.message])}))}},Nr=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.elements=[],this.resources=null,this.getSubmitButton=function(){var e=t.getCurrentPage().children,n=xn.findElement(e,(function(e){if(cr(e)&&e.isSubmitGroup)return!0}));if(!n&&!t.callbacks.submit)return t.eventHub.failure(new Pt.unexpectedError(Tt.missingSubmitActionInPidlDoc)),null;if(n){var r=xn.findElement([n],(function(e){for(var t=!1,n=sr(e)&&e.pidlAction;!t&&n;)t=t||"submit"===n.type||n.type===F.successWithSelectedPidlAction||n.type===F.successWithPidlPayload||n.type===F.success||n.type===F.propertyBindingAction||n.type===F.mergeData,n=n.nextAction;return t}));return sr(r)&&r}},this.getDataSources=function(e,n,r){var o=[];return(r=r||Xt.getDataSourceLinks(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&r.length&&r.forEach((function(r){for(var i in r)t.modelData.getDataSource(i)||o.push(t.getResourceData(i,r[i],e,n))})),Promise.all(o)},this.populateModelInternal=function(e){t.resources=new yn(t.pidlDocManager);var n=Sn.createModelElements(t.pidlDocManager,e);return Sn.isErrorObject(n)?n.error:(n.warnings&&n.warnings.forEach((function(e){t.eventHub.error(e)})),t.elements=n.elements,t.setupSecureFields(),null)},this.populateModel=function(e,n,r,o,i){var a=t.populateModelInternal(e);if(a)return t.eventHub.pageRendering(void 0),t.eventHub.failure(a),sn(a);t.eventHub.pageRendering(xn.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),o&&t.modelData.retrieveFromCache(o,i);var s=[];n&&(r?s.push(t.transformResourceInstance(t.elements,n).then((function(){t.modelData.setInputInstance(t.elements,n),xn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}))):t.modelData.setPrefillData(t,n,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(n);var l=t.pidlDocManager.getPidlPayload();if(l){for(var c in l)c!==J.pidlInfo&&t.modelData.setDataSource(c,l[c]);xn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else s.push(t.getDataSources(e,{modelData:t.modelData}).then((function(){xn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})));return Promise.all(s).then((function(){t.eventHub.modelUpdated(!0)}))},this.populateModelOnInternalCallback=function(e){var n=t.populateModelInternal(e);if(n)return t.eventHub.failure(n),n;t.modelData.updateModelElements(t.elements),xn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var n=e.children;n&&n.forEach((function(e){if(null===e||void 0===e?void 0:e.isSecureProperty()){var n=e;n&&(n.validationPromise=function(){return t.postSecureFieldMessage(n.frameName,He.validate,"")},n.submitPromise=function(e){return t.postSecureFieldMessage(n.frameName,He.prepareForSubmit,{tokenSet:e})},n.createHmacSignature=function(e,r){return t.postSecureFieldMessage(n.frameName,He.createHmacSignature,{tokenSet:e,userCredentials:r})},n.setFocus=function(){return t.postGuaranteedSecureFieldMessage(n.frameName,He.applyFocus,"")})}else(null===e||void 0===e?void 0:e.type)===T.group&&t.setupSecureFieldsRecursive(e)}))}},this.privateEventHandler=function(e,n){switch(e){case L.success:n&&n.operationType&&(n.operationType===rt.add||n.operationType===rt.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case L.failure:case L.gohome:t.clearAll()}},this.handleSuccess=function(e,n){t.pidlDocManager.clearCache(),e&&Xt.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,n);var r=e&&e.clientAction;if(r)return t.handleClientAction(r,e);var o=(t.pidlDocManager.getNextPidlRef()||{href:null}).href;if(!o)return t.eventHub.success(t.createSuccessEventPayload()),an();var i=en.getRestMethodUrl(o,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,i,gn.getHttpHeaders(t.eventHub,t.userContext,null,o,{modelData:t.modelData})).then((function(e){return e&&e.type?t.handleClientAction(e):t.populate()}),(function(e){return t.eventHub.failure(Zt.createServerError(Tt.pidlDocDownloadFailed,i.url,e,[e.errorMessage])),sn(e)}))},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),n={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(n.secondaryResponses=e.secondary),n},this.handleServerError=function(e,n,r){var o=e.targettedInnerErrors,i=void 0===o?[]:o,a=e.clientAction;if(i.length||a){var s=an();return a&&(s=t.doErrorNextClientAction(new Pt.serverError(Tt.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),s.then((function(){var n=[],o="";i.forEach((function(e){e.message===pe.empty&&(e.message="");var i=$t.isString(e.target)?e.target.split(","):[];i=Xt.translateErrorTargetsToDisplayProperties(i,r);var a=xn.getParentIfSame(t.elements,i),s=a&&a.children&&a.children.length===i.length&&a.layoutOrientation===ut.inline?a.displayId:null;Zt.createPropertyErrors(i,s,xn.findFirstMatchingProperty(t.elements,i),e,n),o||i.length||(o=e.message)}));var a=e.innerError,s=a&&a.message!==pe.empty?e.innerError.message:o;return t.clearElementEditStates(),t.handleRetryableError(new Pt.formValidationFailedError(Tt.formSubmissionFailedBadUserInput,s,n,[s]),!0)}))}return sn(new Pt.serverError(Tt.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))},this.handleRetryableError=function(e,n){var r=an(),o=e.errors;if(o&&o.length){var i=n?-1:t.pageIndex;e.errors.forEach((function(e){var n=e,r=t.getPropertyPageIndex(n.propertyName);i=-1===i||r>=0&&r<i?r:i})),i>=0&&(i<t.pageIndex||n)&&(r=t.moveToPageIndex(i))}return r.then((function(){return t.eventHub.error(e),{error:e}}))},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow()},this.clearElementEditStates=function(){t.elements.forEach((function(e){var n=t.modelData.getModelDataProperties([e]);for(var r in n)t.validator.clearElementEditState(n[r])}))},this.handleRestartFlow=function(){var e=t.pageIndex,n=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,n)},this.handleRenderPidlClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];var i=t.pageIndex,a=t.getCurrentPage(),s=t.clearFlow(),l=an();if(Ot(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(Ut(e.context)){var c=e.context.resourceActionContext,u=Zt.getPidlOperationType(c.action);t.pidlDocManager.setOperationInfo({operationType:u}),l=t.downloadPidlDocument(en.getPidlDocUrl(t.userContext,u,c.pidlDocInfo),c.pidlDocInfo)}return l.then((function(){return t.populate(n,r,i,a,e.pidlRetainUserInput?s:void 0,$t.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then((function(){if(e.pidlError){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc(),r=Zt.parseServerError(void 0,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:S.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(r,void 0,n).then((function(){return an()}))}}))}))},this.handleRenderPidlPageClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ot(e.context)&&e.context.length>0){var i=e.context[0],a=Sn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(a&&a.length>0)return t.modelData.updateModelElements(a),t.elements.splice(t.pageIndex+1,0,a[0]),t.moveNextPage().then((function(){return t.eventHub.renderedPidlPage(),an()}))}},this.handleRenderModalClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ot(e.context)&&e.context.length>0){var i=e.context[0],a=Sn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(a&&a.length>0){t.modelData.updateModelElements(a);var s=t.getCurrentPage();if(s&&s.children&&s.children.length>0){var l=s.children[s.children.length-1];cr(l)&&l.isModalGroup&&s.children.pop()}s.children=g(g([],s.children,!0),a[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,n,r){void 0===r&&(r=null);var o,i=e,a=t.urls,s=a.success,l=a.failure;if(i&&i.noCallbackParams){if(i&&i.baseUrl&&(o=en.createFromTemplate(i.baseUrl)),o)return o;n&&t.eventHub.failure(new Pt.unexpectedError(Tt.noRedirectUrlToNavigate))}else if(s&&l){var c=s,u=l;if(i&&i.baseUrl)o=en.createFromTemplate(i.baseUrl),c=en.addQueryStringParameters(c,i.successParams),u=en.addQueryStringParameters(u,i.failureParams);else if($t.isString(e)){o=en.createFromTemplate(e);var d=t.modelData.getPrimaryResourceResponseId();d&&(c=en.addQueryParameter(c,"id",d),c=tn.additionalRedirectParams(c,r))}if(o)return o+="?ru="+(c=encodeURIComponent(c))+"&rx="+(u=encodeURIComponent(u));n&&t.eventHub.failure(new Pt.unexpectedError(Tt.noRedirectUrlToNavigate))}else if(n){var p=s?"urls.failure":"urls.success";t.eventHub.failure(new Pt.inputParameterValidationFailedError(Tt.inputParameterMissing,p,[p]))}},this.handleSecureFieldMessage=function(e,n){if(e&&e.data&&e.data.source&&e.data.source===Ve.secureFieldMessageSource&&e.data.event){var r,o,i;switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case Le.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),r=t.modelData.getModelDataProperty(e.data.field);var a=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(He.init,a),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(He.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(He.clearState,""),0);var s=r.modelElement.getResolvedLogo(),l="";s&&"accountToken"===e.data.field&&t.hasPidlResolved&&(l="background-image: url(".concat(s,"); background-repeat: no-repeat; background-position: right center; ")),l&&t.guaranteedPostMessage(e.data.field,t.buildMessage(He.applyCss,l),0);var c=r.modelElement.placeHolderText();c&&t.guaranteedPostMessage(e.data.field,t.buildMessage(He.applyPlaceholder,c),0);break;case Le.initCompleted:t.queuedIFrameLoadedPromises.forEach((function(t){t.id===e.data.field&&t.resolve()})),t.queuedIFrameLoadedPromises=t.queuedIFrameLoadedPromises.filter((function(t){return t.id!==e.data.field}));break;case Le.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,r=t.modelData.getModelDataProperty(e.data.field),o=t.updatePropertyValue(r.modelElement,e.data.payload,de.finished,!1).then((function(){var n=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(He.init,n),0);var o=r.modelElement.getResolvedLogo(),i="";o&&(i="background-image: url(".concat(o,"); background-repeat: no-repeat; background-position: right center; ")),i&&t.guaranteedPostMessage(e.data.field,t.buildMessage(He.applyCss,i),0),t.updatePropertyValue(r.modelElement,e.data.payload,de.finished,!1).catch((function(e){}));var a=r.modelElement.placeHolderText();a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(He.applyPlaceholder,a),0);var s=t.modelData.getModelDataProperty("cvvToken");return n=t.getSecurePropertyInitializationPayload(s),t.guaranteedPostMessage("cvvToken",t.buildMessage(He.init,n),0),t.updatePropertyValue(s.modelElement,"",de.finished,!1)})).catch((function(e){t.secureFieldResolved=!1})),n)return o;break;case Le.valueUpdated:var u=e.data.payload.editState,d=e.data.payload.operationType;if((r=t.modelData.getModelDataProperty(e.data.field)).editState=u,o=t.updatePropertyValue(r.modelElement,"",d,!1),n)return o;break;case Le.readyForSubmit:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i){if(e.data.payload.error)return void t.eventHub.failure(new Pt.unexpectedError(Tt.tokenizationFailed,[e.data.payload.error]));var p={value:e.data.payload.value,propertyName:e.data.field};i.resolve(p)}else t.eventHub.failure(new Pt.unexpectedError(Tt.secureFieldPromiseNotFound));break;case Le.validationCompleted:i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i?i.resolve(e.data.payload):t.eventHub.failure(new Pt.unexpectedError(Tt.secureFieldPromiseNotFound));break;case Le.hmacSignatureCreated:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})),i){if(e.data.payload.error)return void t.eventHub.failure(new Pt.unexpectedError(Tt.hmacError,[e.data.payload.error]));p={value:e.data.payload.value,propertyName:e.data.field};i.resolve(p)}else t.eventHub.failure(new Pt.unexpectedError(Tt.secureFieldPromiseNotFound));break;default:var h=new Pt.unexpectedError(Tt.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(h)}}else{var m=new Pt.unexpectedError(Tt.unexpectedSecureFieldMessage);t.eventHub.failure(m)}},this.handleClientAction=function(e,n,r){var o;switch(t.eventHub.clientActionInvoked(null===e||void 0===e?void 0:e.type,{originator:r}),e.type){case at.None:t.eventHub.success(t.createSuccessEventPayload());break;case at.Redirect:var i=t.getLinkActionUrl(e.context,!0,n);if(i){var a=t.pageIndex,s=t.getCurrentPage()||{};if(e.redirectPidl)return t.eventHub.navigate("",i,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(n,!0,a,s);t.eventHub.navigate("",i,!0,e.context,null)||(t.eventHub.redirecting(i),Kt.getRedirectionService().redirect(i)),t.clearFlow()}break;case at.Pidl:return t.handleRenderPidlClientAction(e,n,!0);case at.ReturnContext:e.context?t.eventHub.success(e.context):(o=new Pt.unexpectedError(Tt.invalidReturnContextPidl),t.eventHub.failure(o));break;case at.GoHome:t.eventHub.gohome();break;case at.Failure:var l=Zt.createServerErrorFromIPxServiceError(r===v.iFrameMessageHandler?Tt.iFrameReturnedFailure:Tt.failureClientActionReturned,e.context);t.eventHub.failure(l);break;case at.PidlModal:t.handleRenderModalClientAction(e,n,!0);break;case at.PidlPage:return t.handleRenderPidlPageClientAction(e,n,!0);case at.MergeData:if(e.context&&e.context.payload){var c=e.context.payload;t.modelData.updateUserData(c),t.eventHub.modelUpdated(!1)}break;case at.RestAction:if(e.context)return t.invokeRestMethod(e.context);default:o=new Pt.unexpectedError(Tt.unknownClientActionType,[e.type]),t.eventHub.failure(o)}return o?sn(o):an()},this.doErrorNextClientAction=function(e,n){switch(n.type){case at.None:return an();case at.Pidl:return t.handleRenderPidlClientAction(n,null,!1).then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()}));default:return sn(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var n=t.view.getPageElementValues();for(var r in n){var o=t.getPropertyModelElement(r),i=n[r];ur(o)&&(!t.showMaskedValues||!o.maskDisplay)&&o.displayTransformations&&o.displayTransformations.forModel&&$t.isString(i)&&(n[r]=Zt.applyDisplayTransformation(o.displayTransformations.forModel,i)||n[r])}var a=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,n,a)},this.resolveKeyProperty=function(e){for(var n in e){var r=e[n];if(r&&hr(r.modelElement)){var o=r.modelElement,i=o.isKeyProperty&&!o.hidden()&&r.getValue();if(i)return t.updateResolvedPidlDoc(i,o,de.finished)}}return an(!0)},this.validatePage=function(e){var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===G.all&&t.resolveKeyProperty(n)||an()).then((function(){return n=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(n,e,t.operationType)}))},this.getClientDataProperties=function(){var e={sessionId:Zt.guid()};if(t.operationOptions){var n=t.operationOptions,r=n.sessionId,o=n.riskData;r&&(e.sessionId=r),o&&o.greenId&&(e.greenId=o.greenId)}return e},this.getInputDataFromResponse=function(e,t,n){for(var r in t){var o=t[r];if(o.match&&o.match(new RegExp("^{(.)*}$"))){var i=o.substring(1,o.length-1);if(!n||!n[i])return new Pt.unexpectedError(Tt.expectedPayloadValueNotPresentInServerResponse);e[r]=n[i]}else e[r]=o}return null},this.invokeSubmitRequest=function(e,n,r){void 0===r&&(r=!0);var o=t.callbacks.submit,i=t.transformers.submissionSuccessTransformer;if(r&&o&&(Xt.isPrimaryResource(e)||!n.url))return new Promise((function(r,i){o(n,{pidlDoc:e},(function(e){r(e)}),(function(r,o){i(Zt.parseCustomSubmitError(r,o,n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))}))}));if(!n.url||!n.virtualEndpoint){var a=new Pt.unexpectedError(Tt.submitPidlRequestMissingParameters,[n.url?"virtualEndpoint":"url"]);return t.eventHub.failure(a),sn(a)}return new Promise((function(r,o){Kt.getPidlService().submitPidlDocument(t.eventHub,n,t.operationType,i).then((function(e){r(e)}),(function(r){o(Zt.parseServerError(n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,r,t.serverErrorRetries))}))}))},this.submitValidatedData=function(e,n,r,o,i,a){var s,l=t.modelData.getId();o=o||Xt.getSubmitPidlAction(n)||{},i=i||1;var c=o.type!==F.validate,u=1===i?o.context:o["context"+i],d={modelData:t.modelData},p=u&&en.getSubmitUrl(t.operationType,t.userContext,u,l,d),h={method:u&&u.method?u.method:Ce.Post,url:p&&p.url,headers:u&&gn.getHttpHeaders(t.eventHub,t.userContext,u&&u.headers,p&&p.template,d),errorCodeExpressions:u&&u.errorCodeExpressions,virtualEndpoint:p&&p.virtualEndpoint},m=an();if(u&&u.payload){var f={},g=t.getInputDataFromResponse(f,u.payload,a);if(g)return void e.reject(g);h.data=f}else{h.data=r;var v=Rr.tokenizeUserInputData(t.eventHub,n,h.data,t.operationType,t.userContext.getUserCredential(),null===(s=t.callbacks)||void 0===s?void 0:s.encryptionHandler,t.modelData);m=new Promise((function(r,o){v.then((function(i){var a=i.error;if(a){if(Pt.isServerError(a)&&a.code===Tt.tokenizationFailed.code&&400===a.status){var s=Zt.parseServerError(a.url,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:S.Error,errorMessage:a.debugMessage,httpStatus:a.status,httpStatusText:a.statusText,failureObject:a.innererror},t.serverErrorRetries);return t.handleServerError(s,a.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}o(a)}else r()})).catch((function(e){return o(e)}))}))}m.then((function(){t.invokeSubmitRequest(n,h,c).then((function(a){i++,o["context"+i]?t.submitValidatedData(e,n,r,o,i,a):e.resolve({data:a})}),(function(r){return t.handleServerError(r,h.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}))}),(function(t){e.reject(new Pt.serverError(Tt.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))}))},this.scopeDownPidlDocAndUserInput=function(e,t,n){if(e&&e.type===F.validate&&e.context&&e.context.propertyName){var r=e.context.propertyName;n=jt.getPropertyValueFromInputData(n,r);var o=p(p({},t),{data_description:{}}),i=jt.getPropertiesFromDataDescription(t.data_description,r);Dt(i)?o.data_description[r]=i:o.data_description=i,t=o}return{pidlDocument:t,userInputData:n}},this.validatePidlArray=function(e,n,r,o,i){var a=g([n],r.map((function(e){return t.pidlDocManager.getLinkedPidl(Xt.createIdentityHash(e.linkedPidlId))})),!0),s=[],l=null,c=a.map((function(n){var r=e.createUserInputData(n,t.modelData,o,t.operationType,!0);return Ir.validateUserInputData(t.eventHub,n,r,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&n.forEach((function(e){var n=t.createFormValidationError(e.error);Pt.isUnexpectedError(n)?l=n:s.push(n)}))}))}));return new Promise((function(e,t){Promise.all(c).then((function(){l?t(l):s.length>0?t(s):e()}),(function(e){var n=(e||{}).message;t(new Pt.formValidationFailedError(Tt.formValidationFailed,n,[e],[n]))}))}))},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&jt.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var n=e.propertyName,r=e.errorCode,o=e.debugMessage;if(n){var i=t.modelData.getModelDataProperty(n);if(i){i.editState=ue.dirty;var a=xn.findPropertyElement(t.elements,n);return a&&(e.message=a.getErrorMessage(t.getPropertyValue(n),r)),e}return new Pt.unexpectedError(Tt.validationFailedForNonUserInputProperty,[n,r,o])}},this.validateAndTransformUserInputPidlData=function(e,n,r,o,i,a,s){return e.createUserSecureInputData(n[0],t.modelData,r,t.operationType,!0).then((function(l){var c=e.createUserInputData(n[0],t.modelData,r,t.operationType,!0);c.details&&l?c.details=Zt.extend({},c.details,l):c&&l&&(c=Zt.extend({},c,l));var u=t.getResolvedOrFirstPidlDoc(n,c);if(i&&!e.canSubmitUserInputData(u,c))return an({});var d=t.scopeDownPidlDocAndUserInput(o,u,c),p=d.pidlDocument,h=d.userInputData;return u=p,c=h,new Promise((function(n,r){var i=[];return Ir.validateUserInputData(t.eventHub,u,c,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&n.forEach((function(e){var n=t.createFormValidationError(e);n&&(Pt.isUnexpectedError(n)?r(n):i.push(n))}))})).then((function(){if(!i.length)return e.transformUserInputData(u,t.eventHub,c,t.operationType).then((function(){return s({resolve:n,reject:r},u,c,o)}),(function(e){var t=e&&e.message;r(new Pt.formValidationFailedError(Tt.propertyTransformationFailed,t,[e],[t]))}));a("",i).then((function(e){n(e)})).catch(r)}),(function(e){var t=e||{},n=t.message;r(new Pt.formValidationFailedError(Tt.formValidationFailed,n,[t],[n]))}))}))}))},this.handleRetryableValidationErrorsOnSubmit=function(e,n){return t.handleRetryableError(new Pt.formValidationFailedError(Tt.formValidationFailed,e,n,[e]))},this.tokenizeUserInputData=function(e,n,r){var o;return Rr.tokenizeUserInputData(t.eventHub,n,r,t.operationType,t.userContext.getUserCredential(),null===(o=t.callbacks)||void 0===o?void 0:o.encryptionHandler,t.modelData).then((function(t){var n=t.error;n?e.reject(n):e.resolve({data:r})})).catch((function(t){return e.reject(t)}))},this.submitLinkedPidlArray=function(e,n,r,o,i){return new Promise((function(a,s){if(o||e&&0!==e.length){n.pending=e.length+(o?1:0);var l=function(){n.pending--,0===n.pending&&a()},c=Kt.getCommerceService();o&&t.validateAndTransformUserInputPidlData(c,o,r,i,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData).then((function(e){e&&e.error?n.validationError=e.error:n.baseSuccessResponse=e&&e.data?e.data:e,l()}),(function(e){Xt.ignoreTerminatingError(o)||(n.baseFailure=e),l()})),e.forEach((function(e){var o=t.pidlDocManager.getLinkedPidl(Xt.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(c,[o],r,Xt.getSubmitPidlAction(o),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData).then((function(e){n.linkedResponses.push(e),l()}),(function(e){Xt.ignoreTerminatingError([o])||n.failures.push(e),l()}))}))}else a()}))},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var n=t.getClientDataProperties(),r=Kt.getCommerceService(),o={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(me.modelSubmitForm).result)return an({result:o});t.eventHub.submitting(),t.stateManager.setState(ce.submitting);var i=t.pidlDocManager.getResolvedOrAllPidlDocs(),a=r.getPidlSubmitOrder(i[0]);return new Promise((function(s,l){e.type===F.validate&&(a.beforeBase=[],a.withBase=[],a.afterBase=[]),t.validatePidlArray(r,i[0],a.beforeBase.concat(a.withBase,a.afterBase),n,e).then((function(){return t.submitLinkedPidlArray(a.beforeBase,o,n).then((function(){if(!(0!==o.failures.length||o.linkedResponses&&o.linkedResponses.length&&o.linkedResponses.some((function(e){return e.error}))))return t.submitLinkedPidlArray(a.withBase,o,n,i,e).then((function(){if(0===o.failures.length&&!o.baseFailure)return t.submitLinkedPidlArray(a.afterBase,o,n).then((function(){s()}));s()}));s()}))}),(function(e){if(!Pt.isUnexpectedError(e))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(e)?g([],e,!0):[e]).then((function(e){o.validationError=e.error,s()}));o.failures.push(e),s()})).catch((function(e){s()}))})).then((function(){return t.stateManager.setState(ce.executing),t.eventHub.submitted(),{result:o,basePidls:i}}))},this.transformResourceInstance=function(e,n){return Promise.all(t.transformResourceInstanceInternal(e,Kt.getCommerceService(),n)).then(rn,rn)},this.transformResourceInstanceInternal=function(e,n,r){var o=[];return e.forEach((function(e){if(hr(e)&&e.supportsDisplayTransformation){var i=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();o=g(g([],o,!0),[n.transformUserInputPropertyForDisplay(i,t.eventHub,e.getPropertyName(),r,t.operationType)],!1)}e.children&&e.children.length&&(o=g(g([],o,!0),t.transformResourceInstanceInternal(e.children,n,r),!0))})),o},this.updateResolvedPidlDoc=function(e,n,r){return new Promise((function(o,i){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,n,r).then((function(e){if(e){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&n&&n.identity&&$t.objectEquals(t.currentlyRenderedPidl.identity,n.identity)&&o(!1),n&&Xt.isPrimaryResource(n)&&t.eventHub.updateTelemetryContext(n.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=n}o(e)})).catch((function(e){o(!1)}))}))},this.updatePropertyValueInternal=function(e,n,r){var o=t.modelData.getModelDataProperty(e.getPropertyName());return o?(o.setValue(n)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(o,r),t.validator.validateProperty(o,r,t.operationType)):an()},this.sendResourceSelectedEventInternal=function(e,n){t.operationType===rt.selectInstance&&n!==de.finished&&t.eventHub.resourceSelected(e.propertyName,e.getValue(!0,!0))},this.getPropertyPageIndex=function(e){var n=-1;return t.elements.some((function(t,r){if(t.children&&xn.findPropertyElement(t.children,e))return n=r,!0})),n},this.navigateToPageIndex=function(e){xn.updateModelElements(t.elements,{modelData:t.modelData});var n=t.pageIndex,r=t.getCurrentPage()||{};t.pageIndex=e;var o=t.getCurrentPage()||{};t.eventHub.pageNavigated(n,r.displayId,r.displayName,t.pageIndex,o.displayId,o.displayName,o.containerDescription)},this.isMaskedValue=function(e,n,r,o){return e&&e.maskDisplay&&o&&r===de.finished&&n===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.downloadPidlDocument=function(e,n,r){var o=gn.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(n.anonymousPidl){var i=o[Y.msFlight];(!i||i.indexOf("pxpidl")<0)&&(o[Y.msFlight]=i?i+",pxpidl":"pxpidl")}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,o,n,r).then((function(e){return t.eventHub.pidlDownloaded(),e}),(function(n){var r;r=n.connectivityError?Tt.connectivityError:Tt.pidlDocDownloadFailed;var o=Zt.createServerError(r,e.url,n,[n.errorMessage]);return t.eventHub.failure(o),sn(o)}))},this.populate=function(e,n,r,o,i,a){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var s=new Pt.unexpectedError(Tt.noPidlDocumentInPopulateRequest);return t.eventHub.failure(s),sn(s)}return t.populateModel(t.operationType,e,n,i,a).then((function(){o=o||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(ce.executing),t.eventHub.pageRendered(r,o.displayId,o.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(n).then((function(){return an()}))}))},this.updatePropertyValue=function(e,n,r,o){if(o){if(t.isMaskedValue(e,n,r,o))return an();t.modelData.clearMaskedPropertyValue(e.getPropertyName())}var i=function(){return t.updatePropertyValueInternal(e,n,r)};return(e&&e.isKeyProperty&&(e.resolutionPolicy!==ht.focusout||r===de.finished)?t.updateResolvedPidlDoc(n,e,r):an(!0)).then(i,i).then((function(){t.sendSelectionChangeEvent(e,n)}))},this.sendSelectionChangeEvent=function(e,n){if(or(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,n),e.possibleOptions&&e.possibleOptions[n]&&e.possibleOptions[n].pidlAction&&e.possibleOptions[n].pidlAction.type===F.partnerAction)){var r=$t.deepCopy(e.possibleOptions[n].pidlAction.context);t.eventHub.partnerAction(e.id,r)}},this.sendResourceSelectedEvent=function(e,n){var r=t.modelData.getModelDataProperty(e);r&&t.sendResourceSelectedEventInternal(r,n)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,n){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,n)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){var e=t.modelData.getPropertyValue(be.captchaType);return e||null},this.validateEditedProperties=function(){return t.validatePage(G.dirtyOnly)},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),an()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new Pt.unexpectedError(Tt.cannotMoveToNextPageAsOnLastPage)),an()):(t.readUserInputData(),t.validatePage(G.all).then((function(){var n=Kt.getCommerceService(),r=n.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return n.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then((function(n){t.modelData.setDisplayData(n),t.navigateToPageIndex(e)}))})))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(G.all).then((function(){var e=Kt.getCommerceService(),n=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then((function(e){t.modelData.setDisplayData(e)}))}))},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new Pt.unexpectedError(Tt.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new Pt.unexpectedError(Tt.cannotMoveToPageIndex)),an()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),an()):t.moveNextPage().then((function(){return t.moveToPageIndex(e)}))},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(e){var n=e.result,r=e.basePidls;return n.baseFailure?(t.eventHub.failure(n.baseFailure),sn(n.baseFailure)):n.failures.length>=1?(t.eventHub.failure(n.failures[0]),sn(n.baseFailure)):n.baseSuccessResponse||Xt.ignoreTerminatingError(r)?t.handleSuccess(n.baseSuccessResponse,n.linkedResponses):void 0}))},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(n){var r=n.result;if(r.baseFailure||r.failures.length>=1||r.validationError)return r.baseFailure?(t.eventHub.failure(r.baseFailure),sn(r.baseFailure)):r.failures&&r.failures.length>=1?(t.eventHub.failure(r.failures[0]),sn(r.baseFailure)):sn();if(r.baseSuccessResponse){var o=r.baseSuccessResponse&&r.baseSuccessResponse.clientAction;if(o)return o.type===at.MergeData?t.handleClientAction(o,r.baseSuccessResponse).then((function(){return an()}),(function(e){return sn(e)})):(e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(o,r.baseSuccessResponse).then((function(){return sn()}),(function(e){return sn(e)})))}}))},this.createUserInputData=function(e,n){return t.readUserInputData(),Kt.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,n)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(Kt.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,(function(e,t){return sn(new Pt.formValidationFailedError(Tt.formValidationFailed,e,t,[e]))}),t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return an()})):(t.eventHub.failure(new Pt.unexpectedError(Tt.missingSubmitActionInPidlDoc)),sn())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return an()})):(t.eventHub.failure(new Pt.unexpectedError(Tt.missingSubmitActionInPidlDoc)),sn())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),an())},this.invokePidlAction=function(e,n){var r=e.type,o=e.nextAction,i=e.context,a=null;return t.eventHub.pidlActionInvoked(r,{nextAction:null===o||void 0===o?void 0:o.type}),new Promise((function(o,s){var l;switch(r){case F.closePidlPage:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),o()}),(function(){return s()})),t.eventHub.closePidlPage();break;case F.closeModalDialog:t.eventHub.hideModalDialog();var c=t.getCurrentPage();if(c&&c.children&&c.children.length>0){var u=c.children[c.children.length-1];cr(u)&&u.isModalGroup&&c.children.pop()}o();break;case F.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case F.propertyBindingAction:var d=i.bindingPropertyName,p=i.actionMap,h=t.getPropertyValue(d);$t.isBool(h)&&(h=$t.toString(h)),t.eventHub.propertyValueSelected(d,h);var m=p[h];m?t.invokePidlAction(m,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case F.mergeData:var f=i.payload;t.modelData.updateUserData(f),t.eventHub.modelUpdated(!1),o();break;case F.submit:t.submitForm(e).then((function(){return o()}),(function(e){s(e)}));break;case F.submitOriginalPidl:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then((function(){return o()}),(function(){s()}))}),(function(){return s()})),t.eventHub.submitOriginalPidl();break;case F.validate:t.validateForm(e).then((function(){return o()}),(function(){return s()}));break;case F.gohome:t.gohome(),o();break;case F.first:t.moveToPageIndex(0).then((function(){return o()}),(function(){return s()}));break;case F.last:t.moveToLastPage().then((function(){return o()}),(function(){return s()}));break;case F.next:t.moveNextPage().then((function(){return o()}),(function(){return s()}));break;case F.prev:t.movePrevPage().then((function(){return o()}),(function(){return s()}));break;case F.moveToPageIndex:var g=i.pageIndex;t.moveToPageIndex(g).then((function(){return o()}),(function(){return s()}));break;case F.restartFlow:t.restartFlow().then((function(){return o()}),(function(){return s()}));break;case F.restAction:i?t.invokeRestMethod(i).then((function(){return o()}),(function(){return s()})):(t.eventHub.error(new Pt.unexpectedError(Tt.contextMissingFromPidlAction,[e.type])),s());break;case F.success:n&&n.value?((a=$t.deepCopy(n.value)).operationType=t.operationType,t.eventHub.success(a)):t.eventHub.success(t.createSuccessEventPayload()),o();break;case F.partnerAction:n&&n.value&&(a=$t.deepCopy(n.value),t.eventHub.partnerAction(n.id,a)),o();break;case F.successWithPidlPayload:(a=$t.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=$t.deepCopy(n.value)),t.eventHub.success(a),o();break;case F.successWithSelectedPidlAction:(a=$t.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=$t.deepCopy(n.value)),t.eventHub.success(a),o();break;case F.navigateAndNext:var v=t.getLinkActionUrl(i,!0);if(v){var y=Kt.getRedirectionService();!t.eventHub.navigate(n.id,v,!1,null,n.dest)&&y&&y.openInNewTab(v),t.moveNextPage().then((function(){return o()}),(function(){return s()}))}else s();break;case F.navigate:t.eventHub.navigate(n.id,i,!1,null,n.dest,e.dest),o();break;case F.triggerEvent:t.eventHub.triggerEvent(null!==(l=e.context.name)&&void 0!==l?l:"",e.context.params),o();break;case F.redirect:t.eventHub.navigate(n.id,t.getLinkActionUrl(i,!0),!0,i,null),o();break;case F.poll:o();break;case F.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(i);break;case F.noAction:o();break;default:t.eventHub.error(new Pt.unexpectedError(Tt.unknownActionType,[r])),s()}})).then((function(){return!o||t.invokePidlAction(o,n)}),(function(e){if(e)throw e;return!1}))},this.invokeDefaultPidlAction=function(){var e=xn.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new Pt.unexpectedError(Tt.defaultActionNotFound)),sn(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var n=e.href?"method":"href";return t.eventHub.error(new Pt.unexpectedError(Tt.restActionPidlActionMissingParameters,[n])),an()}var r={modelData:t.modelData},o=e&&e.shouldHandleSuccess,i=en.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),r),a={url:i.url,method:e.method,headers:gn.getHttpHeaders(t.eventHub,t.userContext,e.headers,i.template,r),virtualEndpoint:i.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:$t.serialize(e.payload)};return t.eventHub.restMethodInvoking(i.url,t.operationType),new Promise((function(e,n){Kt.getPidlService().invokeRestMethod(t.eventHub,a,t.operationType).then((function(n){t.eventHub.restMethodInvoked(a.url);var r=n&&n.clientAction;if(r)return t.handleClientAction(r,n);n&&o&&(t.modelData.setPrimaryResourceResponse(n),t.eventHub.success(t.createSuccessEventPayload())),e()}),(function(r){var o=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(Zt.parseServerError(a.url,a.errorCodeExpressions,o&&o.strings&&o.strings.serverErrorCodes,r),a.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then((function(){return e()}),(function(e){return n(e)}))}))})).then(rn,(function(e){return t.eventHub.failure(e),sn(e)}))},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise((function(e,n){t.handleRestartFlow().then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()}),(function(e){return n(e)}))}))},this.refreshData=function(e){var n=!1,r=an(),o=Xt.getDataSourceLinks(t.pidlDocManager.getResolvedOrFirstPidlDoc());return o&&o.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),r=t.getDataSources(t.operationType,{modelData:t.modelData},o),n=!0),r.then((function(){n&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),xn.updateModelElements(t.elements,{modelData:t.modelData}),n?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()}))},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new nn({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.modelData=new xr(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new Pr(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new yn(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,n,r){var o=this,i=t.href,a=t.method,s=t.headers,l=en.getRestMethodUrl(i,this.userContext,this.modelData.getId(),r),c=l.url,u=l.template,d={url:c,method:a,virtualEndpoint:l.virtualEndpoint,pidlOperation:n,headers:gn.getHttpHeaders(this.eventHub,this.userContext,s,u,r)};return new Promise((function(t,n){Kt.getPidlService().getInstance(o.eventHub,d).then((function(n){o.eventHub.instanceDownloaded(),o.modelData.setDataSource(e,n),t()}),(function(e){var t=Zt.createServerError(Tt.resourceInstanceDownloadFailed,d.url,e,[e.errorMessage]);o.eventHub.failure(t),n(t)}))}))},e.prototype.postSecureFieldMessage=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=o.buildMessage(t,n);r&&(s.correlationId=r),o.queuedSecureFieldPromises.push({id:s.correlationId,resolve:i,reject:a}),o.guaranteedPostMessage(e,s,0)}))},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,n,r){var o=this.buildMessage(t,n);r&&(o.correlationId=r),this.guaranteedPostMessage(e,o,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise((function(n,r){t.queuedIFrameLoadedPromises.push({id:e,resolve:n,reject:r})}))},e.prototype.buildMessage=function(e,t){return{source:Ve.pidlSdkMessageSource,event:e,payload:t,correlationId:Zt.guid()}},e.prototype.guaranteedPostMessage=function(e,t,n){var r=this;if(!(n>this.maxRetryPostMessage))if(n++,this.loadedSecureFields.includes(e)&&window.frames[e]){var o="https://"+tt.getServiceEndpoint(tt.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(o=this.secureFieldOriginOverride),window.frames[e].postMessage(t,o),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout((function(){r.guaranteedPostMessage(e,t,n)}),this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,n,r,o=null===(t=null===e||void 0===e?void 0:e.modelElement)||void 0===t?void 0:t.dataDescription,i=null===(n=null===e||void 0===e?void 0:e.modelElement)||void 0===n?void 0:n.displayDescription,a=null===i||void 0===i?void 0:i.propertyName,s=null==o.validations?[o.validation]:o.validations;return{maxLength:null===i||void 0===i?void 0:i.maxLength,isOptional:o.is_optional,resolutionPolicy:null===(r=null===e||void 0===e?void 0:e.modelElement)||void 0===r?void 0:r.resolutionPolicy,keyPropertyResolutionMappings:o.keyPropertyResolutionMappings,propertyDataValidations:s,cssStyles:this.computedStyles.style[a],cVHeader:this.eventHub.getHttpRequestCorrelationHeader()}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e}(),Mr=function(e,t){var n=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,r){if(n.operationInfo&&n.operationInfo.handle){var o=Kt.getPidlStoreService();if(o){var i=o.get(n.operationInfo.handle);e=e||i&&i.pidls;var a=t[0]&&t[0].identity||i&&i.resolvedPidlIdentity;o.put(n.operationInfo.handle,r||i.pidlDocInfo,e,a)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(Mt(r))return r;if(Rt(r)&&r.members){var o=n.getResolvedLogoDescription(r.members);if(o)return o}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=Xt.createIdentityHash(e.identity),r=n.getIdentityLessCountry(e.identity);n.pidlIdentityHashMapping[t]=r}},this.addLogo=function(e){var t=e.displayDescription;if(t&&$t.isArray(t))for(var r=0;r<t.length;r++){var o=[];Xt.getLogoDescriptions(t[r],o);for(var i=0;i<o.length;i++){for(var a=!1,s=0;s<n.logos.length;s++)if(n.logos[s].displayId===o[i].displayId){a=!0;break}a||n.logos.push(o[i])}}},this.checkPidlDoc=function(e){if(e){n.addIdentity(e);var t=e.data_description;for(var r in t){var o=t[r];if(o instanceof Array)for(var i=0;i<o.length;i++)n.checkPidlDoc(o[i])}}},this.isPidlForCurrentOperation=function(e){return!(n.operationInfo&&n.operationInfo.operationType&&e&&e.identity&&e.identity.operation)||$t.equalsIgnoreCase(n.operationInfo.operationType,e.identity.operation)||$t.equalsIgnoreCase(rt.update,e.identity.operation)},this.swapPidlDoc=function(e,t,r){if(n.resetPidlDocs(),t){if(t instanceof Array)for(var o=0;o<t.length;o++)n.checkPidlDoc(t[o]),n.isPidlForCurrentOperation(t[o])&&(n.originalPidlDocs.push(t[o]),n.addLogo(t[o]));else n.checkPidlDoc(t),n.isPidlForCurrentOperation(t)&&(n.originalPidlDocs.push(t),n.addLogo(t));if(1===n.originalPidlDocs.length?n.resolvedPidlDocs=$t.copyArray(n.originalPidlDocs):r&&$t.invokeIf(n.originalPidlDocs,(function(e){var t=e.identity;return $t.objectEquals(r,t)}),(function(e){n.resolvedPidlDocs.push(n.originalPidlDocs[e])})),0===n.resolvedPidlDocs.length){var i=Kt.getCommerceService(),a=Xt.createKeyPropertyMap(n.originalPidlDocs,Xt.getDefaultPropertyValueGetter()),s=i.getFirstPidlWithValidDefaultKey(n.originalPidlDocs,a);s&&n.resolvedPidlDocs.push(s)}e&&e.pidlResolved("swapPidlDocs",n.resolvedPidlDocs)}},this.resetPidlDocs=function(){n.originalPidlDocs=[],n.resolvedPidlDocs=[],n.pidlIdentityHashMapping={},n.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise((function(r,o){var i=$t.toLowerCase(t.url);if(n.pidlPayload)r(n.pidlPayload);else{if(!n.downloadedPidlDocsByUrl[i])return Kt.getPidlService().getPidlDocument(e,t,n.getPidlDocumentHook).then((function(e){n.downloadedPidlDocsByUrl[i]=e,r(e)}),(function(e){o(e)}));r(n.downloadedPidlDocsByUrl[i])}}))},this.setPidlDoc=function(e,t,r){n.clearCache(),t instanceof Array||(t=t?[t]:null),n.swapPidlDoc(e,t,r),n.updatePidlDocStore(t,n.resolvedPidlDocs,n.currentPidlDocInfo)},this.getPidlPayload=function(){return n.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){n.setPidlDoc(e,n.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,r,o,i){return new Promise((function(a,s){n.getPidlDocument(e,{url:t.url,headers:r,virtualEndpoint:t.virtualEndpoint,pidlOperation:n.operationInfo.operationType}).then((function(s){var l,c;if(s&&s[0]&&s[0].clientAction)a(s[0].clientAction);else{var u;if(Lt(s)){for(var d in null===(l=null===s||void 0===s?void 0:s.pidlInfo)||void 0===l?void 0:l.pidls)if(n.operationInfo.operationType.toLowerCase()===d.toLowerCase()){u=null===(c=null===s||void 0===s?void 0:s.pidlInfo)||void 0===c?void 0:c.pidls[d];break}n.pidlPayload=s}else u=s;n.currentUrl=t,n.currentHeaders=r,n.currentPidlDocInfo=o||n.currentPidlDocInfo,n.lastDownloadedPidlDoc=u,n.swapPidlDoc(e,u,i),n.updatePidlDocStore(u,n.resolvedPidlDocs,o),a()}}),(function(e){s(e)}))}))},this.retrievePidlDocFromCache=function(e,t,r){return new Promise((function(o,i){var a=Kt.getPidlStoreService().get(t);a&&a.pidls?(n.lastDownloadedPidlDoc=a.pidls,n.swapPidlDoc(e,a.pidls,r),o()):i(Tt.invalidCacheEntry)}))},this.shouldDownloadNewPidl=function(e,t,r,o){return!(e instanceof Array&&e.length>=1||!n.currentUrl)&&!(ir(t)&&t.possibleOptions&&!r)&&t.triggerPidlDownloadOnChange&&(o===de.finished||ir(t)&&o===de.editing)},this.resolvePidlDoc=function(e,t,r,o,i){var a=Kt.getCommerceService(),s=n.getAllPidlDocs(),l=Xt.createKeyPropertyMap(s,Xt.getPropertyValueGetter(o.getPropertyName(),r,t));return a.resolveInfoDescriptionId(s,l).then((function(s){if(n.shouldDownloadNewPidl(s,o,r,i)){var c=$t.deepCopy(n.currentUrl.originalParameters);if(Zt.updatePidlDocUrlParams(c.pidlDocInfo,l)){var u=n.currentUrl.recreateUrl(c);return n.downloadPidlDoc(e,u,n.currentHeaders,c.pidlDocInfo).then((function(){return e.pidlDownloaded(),n.resolvePidlDoc(e,t,r,o,i).then((function(){return!0}))}),(function(t){return e.failure(Zt.createServerError(Tt.pidlDocDownloadFailed,u.url,t,[t.errorMessage])),!1}))}}else if(!Xt.matchPidlIdsToPidls(a,s,n.resolvedPidlDocs)&&(n.resolvedPidlDocs=Xt.resolvePidlDocs(n.originalPidlDocs,s),e.pidlResolved("resolvedPidlDocs",n.resolvedPidlDocs),0!==n.resolvedPidlDocs.length))return!0;return!1}))},this.isEmpty=function(){return 0===n.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==n.resolvedPidlDocs.length?n.resolvedPidlDocs:n.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return n.resolvedPidlDocs.length>0?n.resolvedPidlDocs[0]:n.originalPidlDocs.length>0?n.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return n.originalPidlDocs},this.clearCurrentPIDLResource=function(){n.currentPidlDocInfo&&Kt.getPidlStoreService().removeResourceEntries(n.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=n.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return n.logos},this.getResolvedLogo=function(){if(1===n.resolvedPidlDocs.length)return n.getResolvedLogoDescription(n.resolvedPidlDocs[0].displayDescription)},this.getIdentityString=function(e){return e&&e in n.pidlIdentityHashMapping?n.pidlIdentityHashMapping[e]:null},this.reset=function(){n.resetPidlDocs(),n.operationInfo=null,n.clearCache()},this.clearCache=function(){n.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(n.resolvedPidlDocs[0]&&n.resolvedPidlDocs[0].links)return n.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=n.getLinkedPidls();if(t)for(var r=0;r<t.length;r++)if(Xt.createIdentityHash(t[r].identity)===e)return t[r]},this.setOperationInfo=function(e){n.operationInfo=e},this.getOperationHandle=function(){if(n.operationInfo)return n.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return n.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return n.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){n.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){n.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null},Fr={addAddress:[ce.initialized],selectPaymentInstrument:[ce.initialized],addPaymentInstrument:[ce.initialized],listAddress:[ce.initialized],addResource:[ce.initialized],applyResource:[ce.initialized],replaceResource:[ce.initialized],updateResource:[ce.initialized],updateProfile:[ce.initialized],selectResource:[ce.initialized],selectSingleResource:[ce.initialized],selectResourceType:[ce.initialized],validateResource:[ce.initialized],showResource:[ce.initialized],offerResource:[ce.initialized],searchResource:[ce.initialized],deleteResource:[ce.initialized],fundStoredValue:[ce.initialized],createPaymentSession:[ce.initialized],handleChallenge:[ce.initialized],handlePaymentChallenge:[ce.initialized],handlePurchaseRiskChallenge:[ce.initialized],handlePurchasePendingState:[ce.initialized],renderPidlPage:[ce.initialized],getPidlPayload:[ce.executing],invokePageDefaultAction:[ce.executing],invokeResourceAction:[ce.initialized,ce.executing],moveNextPage:[ce.executing],submitPage:[ce.submitting,ce.executing,ce.initialized],movePrevPage:[ce.executing],moveToLastPage:[ce.executing],moveToFirstPage:[ce.executing],refreshData:[ce.executing],cancel:[ce.initialized,ce.executing,ce.submitting],modelSubmitForm:[ce.executing],handleAction:[ce.initialized],getSelectedResource:[ce.initialized,ce.executing,ce.submitting],renderPidlDocument:[ce.initialized],postMessageToChildIFrames:[ce.executing,ce.submitting],profilePrerequisite:[ce.initialized],handleCheckout:[ce.initialized],getPayeeTaxProfile:[ce.initialized],searchTransactions:[ce.initialized]},Br=function(){function e(e){this.state=ce.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e)}))}return e.prototype.privateEventHandler=function(e){if(this.state!==ce.notInitialized)switch(e){case L.success:case L.failure:case L.gohome:this.setState(ce.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===ce.notInitialized)return{error:new Pt.apiValidationError(Tt.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=Fr[e];return t?$t.contains(t,this.state)?{result:!0}:{error:new Pt.apiValidationError(Tt.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new Pt.unexpectedError(Tt.apiStateMappingNotFound,[e]),result:!1}},e}(),Or=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var n=tn.findVirtualEndpointInTemplate(e);if(n&&n.name&&this.userContext.serviceOverrides)for(var r in this.userContext.serviceOverrides)if($t.toLowerCase(r)===n.name)return this.userContext.serviceOverrides[r][t]||this.userContext[t];return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var n=this.getAuthToken(t);n&&(e[Y.authorization]=n);var r=this.getAdditionalHeaders(t);if(r)for(var o in r)e[o]=r[o];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var n=this.getAdditionalHeaders(e);for(var r in n)if($t.equalsIgnoreCase(r,Y.authorization)){t=n[r];break}}return t},e}(),Lr=function(e){var t=this;this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.errorPropertyGroups={},this.pollingActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e)},this.applyForModelDisplayTransformation=function(e,t,n){if(ur(e)&&(!n||!e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return Zt.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var n=!1;switch(e.type){case z.formValidation:var r=e;if(r.errors&&r.errors.length>0){for(var o=0;o<r.errors.length;o++)if(r.errors[o].message===pe.empty&&(r.errors[o].message=""),!t.showError(r.errors[o]))return;e.name===Tt.formSubmissionFailedBadUserInput.name&&r.message!==pe.empty&&(n=!0)}else n=!0;break;case z.userInputValidation:n=e.validationErrorType===W.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:n=!0}return n&&t.showPageError(e),!0},this.fillForm=function(e){var n=t.view.getVisibleProperties();t.model.showMaskedValues=e===he.pageNavigated;var r={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(n.forEach((function(e){var n=t.model.modelData.getProperty(e),o=t.model.getPropertyModelElement(e);r.isRadioProperty=dr(o);var i=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||ur(o)&&o.displayTransformations&&o.displayTransformations.forFormat&&Zt.applyDisplayTransformation(o.displayTransformations.forFormat,n.value)||n.value;t.model.showMaskedValues&&i!==n.value&&t.view.setAccessibilityText(o,o.tags&&o.tags.maskedAccessibilityName||o.accessibilityName||o.displayName),ir(o)&&(r.dropdownElement=o),i&&t.model.sendResourceSelectedEvent(e,de.ready),t.view.updatePropertyValue(e,n.editable,i,r)})),t.valueSetters&&t.valueSetters.length)for(var o=0;o<t.valueSetters.length;o++)t.valueSetters[o].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var n=[],r=0;r<e.errors.length;++r){var o=e.errors[r],i=e.errors[r];o.propertyName&&(n.push(o.propertyName),t.errorPropertyGroups[o.propertyName]=n),i.groupDisplayId&&(n.push(i.groupDisplayId),t.errorPropertyGroups[i.groupDisplayId]=n)}},this.deregisterGroupedErrors=function(e,n){if(n||(n=t.hideError),e&&t.errorPropertyGroups[e])for(var r=t.errorPropertyGroups[e],o=0;o<r.length;++o){var i=r[o];t.unseenErrors.length>0&&$t.filter(t.unseenErrors,(function(e){return!e.propertyName||e.propertyName!==i})),n(i),delete t.errorPropertyGroups[i]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var n=e.error;n&&((Pt.isServerError(n)&&!n.retryable||!Pt.isServerError(n))&&t.showHideBusy(!1),t.sortError(n),t.showError(n),n.name===Tt.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(n),t.view.setFocusOnFirstError()):n.name===Tt.formValidationFailed.name&&t.view.setFocusOnFirstError())}},this.sortError=function(e){if(e.type===z.formValidation){var n=e;if(!(null===n.errors||n.errors.length<=1)){var r=t.model.getCurrentPage(),o=[];t.addError(r,n,o),n.errors=o}}},this.addError=function(e,n,r){if(null!==e&&void 0!==e)for(var o=0;o<e.children.length;o++){var i=e.children[o];if(hr(i)||pr(i)){var a=i.getPropertyName(),s=t.getErrorByPropertyName(n.errors,a);null!==s&&r.push(s)}else if(tr(i)){t.addError(i,n,r);var l=t.getErrorByDisplayId(n.errors,i.displayId);null!==l&&r.push(l)}}},this.getErrorByPropertyName=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.propertyName)return r}return null},this.getErrorByDisplayId=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.groupDisplayId)return r}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var n=t.model.getSubmitButton()||{},r=n.accessibilityName,o=void 0===r?null:r,i=n.disabledAccessibilityName,a=void 0===i?null:i,s=n.displayId,l=void 0===s?null:s;t.view.setDisabledByDisplayId(l,e,{accessibilityName:o,disabledAccessibilityName:a})},this.publicEventHandler=function(e,n){switch(e){case O.error:t.handleErrorEvent(n);break;case O.propertyValidated:t.handlePropertyValidated(n);break;case O.pidlDownloading:case O.pageRendering:case O.inputSubmitting:case O.redirecting:case O.instanceDownloading:case O.restMethodInvoking:t.showHideBusy(!0);break;case O.pageRendered:for(var r in t.pollingActions=xn.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(r,t.pollingActions[r]);xn.findRadioElements(t.model.elements).forEach((function(e){hr(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)}));case O.pidlDownloaded:case O.inputSubmitted:case O.instanceDownloaded:case O.restMethodInvoked:t.showHideBusy(!1);break;case O.pageNavigated:t.updateView(he.pageNavigated);break;case O.propertySelected:t.view.markAsFilled(n.divId)}},this.privateEventHandler=function(e,n){switch(e){case L.modelUpdated:var r=n&&n.created?he.modelCreated:he.modelUpdated;t.updateView(r);break;case L.dataUpdated:t.fillForm();break;case L.success:case L.failure:case L.gohome:t.showHideBusy(!1),t.reset();break;case L.propertyCreated:var o=n;t.view.checkAndMarkAsFilled(o.divId,o.controlId);break;case L.propertyUnselected:var i=n;t.view.checkAndMarkAsUnfilled(i.divId,i.id);break;case L.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case L.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case L.hideModalDialog:t.hideModalDialog();break;case L.submitting:t.setSubmitButtonState(!0);break;case L.submitted:t.setSubmitButtonState(!1);break;case L.updatePollAndMoveLast:var a=n.pollId||"";t.stopPoll(a),t.startPollingWithNextAction(a),t.model.moveToLastPage().catch(rn)}},this.getPollingPidlActionContext=function(e){var t=e.context,n=t.href,r=t.responseResultExpression,o=t.responseActions,i=t.method;if(n&&r&&o&&i)return e.context},this.getPidlActionFromPollingResponse=function(e,t,n){if(!e||!t||!n)return null;var r=$t.getPropertyValueByJPath(e,t);return $t.getPropertyValueByJPath(n,r)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,n,r){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),n,r,!1)},this.updateView=function(e){var n=t.model.getCurrentPage(),r=t.model.getCaptchaType();t.model.secureFieldResolved||t.view.reset();var o=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:r,pageElement:n,viewEventHandler:t,displaySettings:t.displaySettings,eventHub:t.eventHub});if(t.valueSetters=o.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==he.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(rn),e===he.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var i=t.unseenErrors;t.unseenErrors=[],t.showHideBusy(!1);for(var a=0;a<i.length;a++)t.showError(i[a]);e!==he.modelUpdated&&t.view.setFocusOnFirstError()}},this.extractStylesFromStylesheet=function(e){for(var n=document.styleSheets,r=".".concat(_.errorStroke),o=".".concat(_.secureProperty),i=0;i<n.length;i++){var a=n[i];try{for(var s=a.cssRules||a.rules,l=0;l<s.length;l++){var c=s[l];if(c instanceof CSSStyleRule)for(var u=c.selectorText.split(","),d=0;d<u.length;d++){var p=u[d].trim();p.includes(".errorStroke")||p.includes(r)?e.push(p+"{ "+c.style.cssText+" }"):p.includes(o)&&(p=p.replace(o,""),e.push(p+"{ "+c.style.cssText+" }"))}}}catch(h){t.eventHub.styleSheetError(h,null===a||void 0===a?void 0:a.href)}}},this.computeSecurePropertyStyles=function(e,n){var r=[];n&&0===Object.keys(n).length?t.extractStylesFromStylesheet(r):n&&t.computeStylesFromHardCodedStyles(n,r),t.model.computedStyles.style[e]=r},this.computeStylesFromHardCodedStyles=function(e,t){var n=Object.keys(e.textFieldStyles).map((function(t){return"".concat(t,":").concat(e.textFieldStyles[t])})).join(";");t.push('input[type="text"]{'+n+"}");var r=Object.keys(e.fieldGroupNormalStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])})).join(";");t.push(".normalClass{"+r+"}");var o=Object.keys(e.fieldGroupFocusStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])})).join(";");t.push(".focusClass{"+o+"}");var i=Object.keys(e.fieldGroupErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])})).join(";");t.push(".errorClass{"+i+"}");var a=Object.keys(e.fieldGroupFocusErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])})).join(";");t.push(".focusErrorClass{"+a+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var r=lr(e.propertyElement)||ir(e.propertyElement)?de.finished:de.editing;t.model.updatePropertyValue(e.propertyElement,n,r,t.model.showMaskedValues).catch(rn),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,n,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,de.finished,t.model.showMaskedValues).catch(rn),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var n=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,de.editing,t.model.showMaskedValues).catch(rn),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?on:rn)},this.invokePidlAction=function(e){t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?on:rn)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)})).catch((function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)}))},this.postSecureFieldMessage=function(e,n,r){return t.model.postSecureFieldMessage(e,n,r)},this.secureFieldMessageHandler=function(e){var n=Zt.getHostName(tt.getServiceEndpoint(tt.virtualEndpoints.securePx.endpoint));Zt.getHostName(e.origin)===n&&e&&e.data&&e.data.source===Ve.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.iFrameMessageHandler=function(e){var n=Zt.getHostName(tt.getServiceEndpoint(tt.virtualEndpoints.pifd.endpoint)),r=Zt.getHostName(tt.getServiceEndpoint(tt.virtualEndpoints.pifdBackend.endpoint)),o=Zt.getHostName(e.origin);if(t.eventHub.postMessageReceived(o,n,e.data&&e.data.length),o===n||o===r){var i=Zt.parseJSON(e.data),a=i.succeeded?i.value:null;a?t.model.handleClientAction(a,null,v.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(a.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var n=Kt.getRedirectionService(),r=e.pidlAction,o=!1;switch(r.type){case F.redirect:var i=t.model.getLinkActionUrl(r.context,!1);if(!(o=t.eventHub.navigate(e.id,i,!0,r.context,null))&&n)return n.redirect(i),!0;break;case F.navigate:default:if(!(o=t.eventHub.navigate(e.id,r.context,!1,null,r.dest))&&n)return!n.openInNewTab(r.context)}return!o},this.captchaHyperlinkClickHandler=function(e,n,r){t.updateModelPropertyValue(e,n,r).catch(rn)},this.updatePrefillValue=function(e,n){return!0===n?t.model.setCurrentDataIndex(e,0):!1===n?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,n),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var n=e.type&&e.type===T.checkBox;n?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(he.prefillChanged),n||t.model.validateEditedProperties().catch(rn)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,n){if(!n)return!1;t.pollingTimersAndCounters[e]={pollingTimer:null,pollingCounter:0};var r=t.getPollingPidlActionContext(n);if(!r)return!1;var o=r.method,i=r.payload,a=r.headers,s=r.interval,l=void 0===s?Fe.Default:s,c=r.responseResultExpression,u=r.responseActions,d=r.maxPollingAttempts,p=r.checkPollingTimeOut,h=gn.getHttpHeaders(t.eventHub,t.userContext,a),m=en.getSubmitUrl(t.model.operationType,t.userContext,r,t.model.modelData.getId()),f=m.virtualEndpoint,g=f.operation,v=f.description,y=function(e,n){clearInterval(t.pollingTimersAndCounters[n].pollingTimer),t.pollingTimersAndCounters[n].pollingCounter=0,delete t.pollingTimersAndCounters[n],t.eventHub.pollingEnded(n),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval((function(){var r=null;if(o===Ce.Get)t.eventHub.pollingStarted(e),r=gn.get(t.eventHub,m.url,h,t.model.operationType,g,v);else if(o===Ce.Post)t.eventHub.pollingStarted(e),r=gn.post(t.eventHub,!0,m.url,h,JSON.stringify(i),null,null,t.model.operationType,g,v);else{if(o!==Ce.Put){var a=new Pt.unexpectedError(Tt.unableToSetupPolling);return y(a,e),!1}t.eventHub.pollingStarted(e),r=gn.put(t.eventHub,!0,m.url,h,JSON.stringify(i),null,null,t.model.operationType,g,v)}if(null===r)return a=new Pt.unexpectedError(Tt.unableToSetupPolling),y(a,e),!1;r.then((function(r){if(p&&t.pollingTimersAndCounters[e].pollingCounter++>d){var o=new Pt.unexpectedError(Tt.pollingTimedOut);return y(o,e),!1}var i=t.getPidlActionFromPollingResponse(r,c,u)||n;if(i.type!==F.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),i.type===F.moveNextAndPoll)return t.model.moveNextPage().catch(rn),t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===F.updatePoll)return t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===F.handleFailure)return t.eventHub.failure(new Pt.unexpectedError(Tt.failurePollingResponseReturned,[JSON.stringify(r)])),!1;r&&Xt.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(r)}if(!(r&&r.clientAction&&i&&i.type===F.success))return t.model.invokePidlAction(i);t.model.handleClientAction(r.clientAction).then((function(){t.eventHub.pollClientActionSuccess(r.clientAction.type)})).catch((function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+r.clientAction.type)}))}),(function(t){return y(t,e),!1}))}),l),!0},this.testHookPublicEventHandler=function(e,n){t.publicEventHandler(e,n)},this.testHookPrivateEventHandler=function(e,n){t.privateEventHandler(e,n)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,n){t.displaySettings=e,t.fillForm(n)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,n){t.deregisterGroupedErrors(e,n)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler((function(e,n){t.publicEventHandler(e,n)})),this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e,n)})),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)},Hr=new function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var n=$t.toLowerCase(t);$t.contains(e.envs,n)&&(e.env=n,tt.setEnv(e.env))},this.getAll=function(){return e.envs}},Vr=new function(){this.get=function(){return"2.4.0"}},zr=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),Kt.getOneDSService()&&(e.applicationInsightsInstance=Kt.getOneDSService().getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[]};e.applicationInsightsInstance&&$t.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(n){Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",n)}},this.initCVPlugin=function(){if(!e.cvPlugin){Kt.getOneDSService()&&(e.cvPlugin=Kt.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&$t.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&$t.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(Kt.getOneDSService()&&(e.cvPlugin=Kt.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&$t.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&$t.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(i){Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",i)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&$t.isFunction(t.increment)&&t.increment()}catch(n){Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",n)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&$t.isFunction(t.getValue)&&t.getValue()}catch(n){Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",n)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(n){Kt.getLoggingService()&&Kt.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",n)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}},Ur=new zr,Wr=function(e,t){var n=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.sdkVersion=Vr.get(),this.env=Hr.get(),this.sessionId=Zt.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.updateResourceInfo=function(e){if(e){try{for(var t in e.parameters)e.parameters.hasOwnProperty(t)&&(n.telemetryResource.parameters[t]=e.parameters[t])}catch(r){}e.id&&(n.telemetryResource.parameters.id=e.id),e.resourceType&&(n.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){n.operationType=e,t&&n.updateResourceInfo(t)},this.trackNewOperation=function(e,t){n.operationId=Zt.guid(),n.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&Ur&&Ur.initCV(this.partnerContext.cvInitValue));var r=this.partnerContext,o=r.sessionId,i=r.cvInitValue;!o&&i&&(o=i.substr(0,i.indexOf(".")),this.partnerContext.sessionId=o),!o&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t},Gr=function(){function e(){}return e.prototype.logError=function(e,t){var n="";if(t)try{n=JSON.stringify(t)}catch(o){n=""}var r=e+"= "+n;console.error(r)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),jr=function(){var e=this;this.createUserDataPropertyValue=function(e,t,n,r,o){if(t.indexedOn&&t.possible_values){var i=n.getPropertyValue(t.indexedOn,!1);if(i&&t.possible_values[i])return t.possible_values[i]}var a=n.getPropertyValue(jt.getDisplayPropertyName(t,e),r,o);return a=void 0===a?Zt.getFormatStringExpressionValue(t.default_value,{modelData:n}):a,t.type===ge.bool&&(a=$t.boolify(a)),a},this.createUserSecureInputDataInternal=function(t,n,r,o,i,a,s){var l=t.data_description,c=[];for(var u in l){var d=l[u];if(Ot(d)){var p=d&&d.length&&d[0];if(p){var h=e.createUserSecureInputDataInternal(p,n,r,o,i,a,s);c.push(h)}}else{var m=n.getModelDataProperty(u);if(m&&m.modelElement&&m.modelElement.isSecureProperty()){d.token_set&&d.token_set.startsWith(Ve.tokenizationValuePrefix)&&(d.token_set=d.token_set.replace(Ve.tokenizationValuePrefix,""));var f=m.modelElement.prepareForSubmit(d.token_set).then((function(e){var t=l[e.propertyName];t.token_set=Ve.tokenizationValuePrefix+t.token_set,i[e.propertyName]=e.value}));c.push(f)}}}return Promise.all(c).then((function(){}))},this.createUserInputDataInternal=function(t,n,r,o,i,a){var s,l={},c=t.data_description;for(var u in c){var d=c[u];if(Ot(d)){var p=d&&d.length&&d[0];p&&(l[u]=e.createUserInputDataInternal(p,n,r,o,i,a))}else{if(d.displayOnly&&!a||o===rt.update&&!d.is_updatable)continue;if(d.type===ge.hidden){l[u]||(r[u]?l[u]=r[u]:l[u]=Zt.getFormatStringExpressionValue(d.default_value,{modelData:n}));continue}var h=e.createUserDataPropertyValue(u,d,n,i,a);h&&(i&&d.type===ge.returnObject?($t.isObject(h)||((s={})[u]=h,h=s),l=Zt.extend({},l,h)):l[u]=e.getValueInDataType(h,i,d))}}return l},this.getValueInDataType=function(e,t,n){if(t){if(n.type===ge.number){var r=Number(e);return isNaN(r)?e:r}if(n.type===ge.bool){if(!$t.isBool(e))return $t.equalsIgnoreCase(e,"true")}else if(n.type===ge.object&&!$t.isObject(e))try{return JSON.parse(e)}catch(o){return e}}return e},this.canSubmitUserInputDataInternal=function(t,n,r){var o=t.data_description;for(var i in o){var a=o[i];if(Ot(a)){var s=a&&a.length&&a[0];if(s&&(e.canSubmitUserInputDataInternal(s,n?n[i]:n,r),r.canSubmit))return}else if(a.propertyType===ye.userData&&(r.noUserInputData=!1,!a.is_optional||n&&n[i]))return void(r.canSubmit=!0)}},this.createUserInputData=function(t,n,r,o,i,a){return e.createUserInputDataInternal(t,n,r,o,i,a)},this.createUserSecureInputData=function(t,n,r,o,i,a){var s={};return e.createUserSecureInputDataInternal(t,n,r,o,s,i,a).then((function(){return s}))},this.canSubmitUserInputData=function(t,n){var r={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,n,r),r.canSubmit||r.noUserInputData}},qr=new jr,Kr=new function(){var e=this;this.setPropertyValueOfInputData=function(t,n,r){for(var o in t){if(o===n){t[o]=r;break}$t.isObject(t[o])&&e.setPropertyValueOfInputData(t[o],n,r)}},this.checkForValidTransformationTarget=function(e,t){var n=e.transformation,r=void 0===n?{}:n;return t===y.forSubmit&&$t.boolify(r.forSubmit)||t===y.forDisplay&&$t.boolify(r.forDisplay)},this.transformUserInputDataFromService=function(e,t,n,r,o,i,a,s){var l={value:o,pidlIdentity:t.identity,propertyName:n,transformationTarget:r},c=gn.getDefaultHttpHeaders(e);c[Y.msFlight]="pxpidl",gn.post(e,!0,en.buildUrl(tt.getServiceEndpoint(tt.virtualEndpoints.transformation.endpoint),[i]),c,JSON.stringify(l),(function(e){var t;t=$t.equalsIgnoreCase(e.status,S.Passed)?{status:S.Passed,transformedValue:e.transformedValue}:{status:S.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage},s(t)}),(function(e){s({status:S.Error,mode:it.service,errorMessage:e.errorMessage})}),a,tt.virtualEndpoints.transformation.operation,tt.virtualEndpoints.transformation.description,!0).catch(rn)},this.transformPropertyInternal=function(t,n,r,o,i,a,s,l){var c=!1,u=n.data_description,d=function(d){var p=u[d];if(Ot(p)){var h=p.length&&p[0];h&&(c=e.transformPropertyInternal(t,h,r,o,i,a,(function(e){s(e)}),l)||c)}else if(d===r){var m=jt.getPropertyValueFromInputData(o,d);if(e.transformPropertyFromPropertyDescription(t,n,d,p,i,m,a,(function(t){t.status===S.Passed&&(e.setPropertyValueOfInputData(o,d,t.transformedValue),l()),t.status!==S.Error&&t.status!==S.Fail||s(new Error(t.errorMessage))})),e.checkForValidTransformationTarget(p,i))return{value:!0}}};for(var p in u){var h=d(p);if("object"===typeof h)return h.value}return c},this.transformUserInputDataInternal=function(t,n,r,o,i,a,s,l){var c=n.data_description,u=0,d=!1,p=l?r:c,h=function(p){var h=c[p];if(Ot(h)){var m=h&&h.length&&h[0];m&&(u++,d=e.transformUserInputDataInternal(t,m,r[p],o,(function(e){i(e)}),(function(){0===--u&&d&&a&&a()}),s,l)||d)}else{if(s===rt.update&&!h.is_updatable)return"continue";var f=jt.getPropertyValueFromInputData(r,p);if(!f){if(h.displayOnly||l)return"continue";h.is_optional||i(new Error(p+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(d=e.transformPropertyFromPropertyDescription(t,n,p,h,o,f,s,(function(t){t.status===S.Passed&&e.setPropertyValueOfInputData(r,p,t.transformedValue),t.status!==S.Error&&t.status!==S.Fail||i(new Error(t.errorMessage)),t.mode===it.service&&0===--u&&a&&a()})))&&u++}};for(var m in p)h(m);return 0===u&&a&&a(),u>0},this.transformPropertyFromPropertyDescription=function(t,n,r,o,i,a,s,l){var c={},u=!1;if(!a)return!1;if(o.transformation){var d=null;if(i===y.forSubmit){if(!o.transformation.forSubmit)return l(c),u;d=o.transformation.forSubmit}else{if(i!==y.forDisplay)throw new Error(r+"has invalid transformation type.");if(!o.transformation.forDisplay)return l(c),u;d=o.transformation.forDisplay}var p=d.inputregex,h=d.transformregex;if(p){if(h){var m=new RegExp(p),f=a.replace(m,h);c={status:S.Passed,transformedValue:JSON.parse('"'+f+'"')}}c.mode=it.regex}else d.url&&(u=!0,e.transformUserInputDataFromService(t,n,r,i,a,d.url,s,(function(e){(c=e).mode=it.service,l(c)})))}return u||l(c),u},this.getUserDisplayDataPartial=function(t,n,r,o,i,a){var s=$t.deepCopy(r);e.transformUserInputDataInternal(t,n,s,y.forDisplay,o,(function(){i(s)}),a,!0)},this.transformUserInputData=function(t,n,r,o,i,a){e.transformUserInputDataInternal(t,n,r,y.forSubmit,o,i,a)},this.transformUserInputPropertyForDisplay=function(t,n,r,o,i,a,s){e.transformPropertyInternal(t,n,r,o,y.forDisplay,i,a,s)||a(Error("The property with property Name:"+r+" does not have valid display transform in data description"))}},Yr=function(){function e(){var e=this;this.getParentOfProperty=function(t,n){for(var r in n){if(r===t)return n;if($t.isObject(n[r])){var o=e.getParentOfProperty(t,n[r]);if(o)return o}}},this.areIdentitiesEqual=function(e,t){if(!e||!t)return!1;if($t.keyCount(e)!==$t.keyCount(t))return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},this.resolveInfoDescriptionId=function(t,n){return e.invoke((function(e){try{var r=Gt.resolveInfoDescriptionId(t,n);e.resolve(r)}catch(o){e.reject(o)}}))},this.getFirstPidlWithValidDefaultKey=function(e,t){return Gt.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,n,r,o,i){return qr.createUserInputData(e,t,n,r,o,i)},this.createUserSecureInputData=function(e,t,n,r,o,i){return qr.createUserSecureInputData(e,t,n,r,o,i)}}return e.prototype.invoke=function(e){return new Promise((function(t,n){e({resolve:t,reject:n})}))},e.prototype.getUserDisplayDataPartial=function(e,t,n,r){return this.invoke((function(o){try{var i=t.getResolvedOrAllPidlDocs(),a=jt.getFirstResolvedPidlDocument(i,n);null==a&&(a=i[0]),Kr.getUserDisplayDataPartial(e,a,n,(function(e){o.reject(e)}),(function(e){o.resolve(e)}),r)}catch(s){o.reject(s)}}))},e.prototype.transformUserInputData=function(e,t,n,r){return this.invoke((function(o){try{Kr.transformUserInputData(t,e,n,(function(e){o.reject(e)}),(function(){o.resolve()}),r)}catch(i){o.reject(i)}}))},e.prototype.transformUserInputPropertyForDisplay=function(e,t,n,r,o){var i=this;return this.invoke((function(a){var s=!1;t.propertyTransforming(n);try{var l=i.getParentOfProperty(n,r),c={};c[n]=l[n];var u=jt.getFirstResolvedPidlDocument(e,r);null==u&&(u=e[0]),Kr.transformUserInputPropertyForDisplay(t,u,n,c,o,(function(e){s=!0,a.reject(e)}),(function(){t.propertyTransformed(n),l[n]=c[n],a.resolve()})),s||(t.propertyTransformed(n),l[n]=c[n],a.resolve())}catch(d){a.reject(d)}}))},e.prototype.canSubmitUserInputData=function(e,t){return qr.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return Gt.getPidlSubmitOrder(e)},e}();function Xr(e,t){return gn.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description)}var Qr=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,n){return n?new Promise((function(e,r){n(t,(function(t){e(t)}),(function(e){r(e)}))})):Xr(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),Xr(e,t)},e.prototype.submitPidlDocument=function(e,t,n,r){return e.inputSubmitting(t.url),new Promise((function(o,i){gn.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===Ce.Get||t.method.toUpperCase()===Ce.Delete?null:JSON.stringify(t.data),(function(n){r&&(n=r(t,n));var i="None";Ht(n)&&n.clientAction&&(i=n.clientAction.type),e.inputSubmitted(i),o(n)}),(function(e){i(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(o)}))},e.prototype.invokeRestMethod=function(e,t,n){return new Promise((function(r,o){gn.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,(function(e){r(e)}),(function(e){o(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(r)}))},e.prototype.getRequestInstance=function(e,t,n,r){var o=en.getResourceUrl(t,n);return{url:o.url,headers:gn.getHttpHeaders(e,n,null,o.template,null),virtualEndpoint:o.virtualEndpoint,pidlOperation:r}},e}(),Zr=function(){function e(){this.cache=null,this.cache=new bn}return e.prototype.put=function(e,t,n,r){var o={pidlDocInfo:t,pidls:n,resolvedPidlIdentity:r};this.cache.put(e,o)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf((function(t){return t&&t.pidlDocInfo&&$t.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)}))},e}(),Jr=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!(!window||!window.open)&&(window.open(e),!0)},e}(),$r=function(){function e(e,t,n,r,o,i,a,s,l,c){var u=this;this.logConstructorCall=function(e,t,n,r,o){var i={userContext:$t.boolify(e),returnOptions:$t.boolify(t),eventHandler:$t.boolify(n),displayOptions:$t.boolify(r),telemetryOptions:$t.boolify(o)},a={returnOptions:t,displayOptions:r,telemetryOptions:o};u.eventHub.apiCalled(me.constructor,i,a)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&u.eventHub.error(new Pt.unexpectedError(Tt.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case L.stateChanged:t&&t.newState===ce.initialized&&window.addEventListener("unhandledrejection",u.unhandledRejectionHandler);break;case L.failure:case L.success:case L.gohome:window.removeEventListener("unhandledrejection",u.unhandledRejectionHandler)}}catch(n){}},this.canApiStart=function(e){var t=u.stateManager.canApiStart(e);return!!t.result||(u.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:$t.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var n={piFamily:null===t||void 0===t?void 0:t.family,piType:null===t||void 0===t?void 0:t.type,tokenReference:null===t||void 0===t?void 0:t.tokenReference,sessionData:e};return new Promise((function(e,t){var r,o={resourceType:x.WalletToken,parameters:{}},i=tn.getResourceEndpoint(o.resourceType),a=null===(r=en.getResourceUrl(o,u.userContext))||void 0===r?void 0:r.url;try{return gn.post(u.eventHub,!0,a,gn.getHttpHeaders(u.eventHub,u.userContext,void 0,i.template),JSON.stringify(n),(function(t){return e(t)}),(function(e){return t(e)}),rt.provisionWalletToken,i.operation,i.description,!0)}catch(s){t(s)}}))},this.handlePaymentAgentChallenge=function(e,t,n,r){var o,i;if(!(null===(i=null===(o=null===window||void 0===window?void 0:window.paymentAgent)||void 0===o?void 0:o.isReadyToPay)||void 0===i?void 0:i.call(o))){var a=new Pt.invalidSetupError(Tt.invalidSetup);return u.eventHub.failure(a),u.apiFailure(!1)}var s=window.paymentAgent.handleChallenge(e,r).then((function(r){return r.tokenReference?u.provisionWalletToken(e,r).then((function(r){return n&&(n.current.style.display="flex",n.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=p(p({},e),r),u.renderPidlPageInternal(t)})):u.renderPidlPageInternal(t)})).catch((function(e){if("cancel"===(null===e||void 0===e?void 0:e.type)||"AbortError"===(null===e||void 0===e?void 0:e.name)||"CANCELED"===(null===e||void 0===e?void 0:e.statusCode))return u.model.gohome(),an();var t={error:e,stack:null===e||void 0===e?void 0:e.stack,message:null===e||void 0===e?void 0:e.message},n=void 0;return n="failed to open window"===e?new Pt.failedToOpenWindowError(Tt.failedToOpenWindow,JSON.stringify(t)):new Pt.paymentMethodFailureError(Tt.paymentMethodFailure,JSON.stringify(t)),u.eventHub.failure(n),u.apiFailure(n)}));return u.apiSuccess(!0,s)},this.invokeResourceAction=function(e){if(u.telemetryContext.trackNewOperation(N.invokeResourceAction),u.eventHub.apiCalled(me.invokeResourceAction),!u.canApiStart(me.invokeResourceAction)||!e||!vn.validateResourceActionParams(u.eventHub,e))return u.eventHub.apiReturned(me.invokeResourceAction,!1),u.apiFailure(!1);var t=e.resourceActionContext,n={result:null,promise:an(null)};switch(t.action){case B.addResource:case B.addAddress:u.telemetryContext.update(N.add,t.pidlDocInfo),n=u.addResourceInternal(rt.add,t.pidlDocInfo,e.prefillData,e.options);break;case B.collectResourceInfo:u.telemetryContext.update(N.renderPidlPage,t.pidlDocInfo),n=u.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case B.handleChallenge:u.telemetryContext.update(N.verify,t.resourceInfo),n=u.handleChallengeInternal(t.resourceInfo,e.options);break;case B.selectPaymentInstrument:case B.selectResource:u.telemetryContext.update(N.selectResource,t.pidlDocInfo),n=u.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case B.selectResourceType:u.telemetryContext.update(N.selectResourceType,t.pidlDocInfo),n=u.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case B.selectSingleResource:u.telemetryContext.update(N.selectSingleResource,t.pidlDocInfo),n=u.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case B.updateProfile:case B.updateResource:u.telemetryContext.update(N.update,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case B.deleteResource:u.telemetryContext.update(N.delete,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,rt.delete);break;case B.searchTransactions:u.telemetryContext.update(N.searchTransactions,t.pidlDocInfo),n=u.addResourceInternal(rt.searchTransactions,t.pidlDocInfo,void 0,e.options)}return u.eventHub.apiReturned(me.invokeResourceAction,$t.boolify(n.result),n.promise),n},this.addResourceInternal=function(e,t,n,r){if(!vn.validatePidlDocInfo(u.eventHub,t)||!vn.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);var o=en.getPidlDocUrl(u.userContext,e,t);return u.apiSuccess(!0,u.getPidl(o,n,e,r,t))},this.addResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(N.add,e),u.eventHub.apiCalled(me.addResource,{pidlDocInfo:$t.boolify(e),prefillData:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.addResource))return u.eventHub.apiReturned(me.addResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(rt.add,e,t,n);return u.eventHub.apiReturned(me.addResource,r.result,r.promise),r},this.searchTransactions=function(e){var t=e.pidlDocInfo,n=e.options;if(u.telemetryContext.trackNewOperation(N.searchTransactions,t),u.eventHub.apiCalled(me.searchTransactions,{pidlDocInfo:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:t}),!u.canApiStart(me.searchTransactions))return u.eventHub.apiReturned(me.searchTransactions,!1),u.apiFailure(!1);var r=u.addResourceInternal(rt.searchTransactions,t,void 0,n);return u.eventHub.apiReturned(me.searchTransactions,r.result,r.promise),r},this.addPaymentInstrument=function(e,t,n){var r=p(p({},e),{resourceType:"PaymentInstrument"});if(u.telemetryContext.trackNewOperation(N.addPaymentInstrument,r),u.eventHub.apiCalled(me.addPaymentInstrument,{pidlDocInfo:$t.boolify(r),prefillData:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:r}),!u.canApiStart(me.addPaymentInstrument))return u.eventHub.apiReturned(me.addPaymentInstrument,!1),u.apiFailure(!1);var o=u.addResourceInternal(rt.add,r,t,n);return u.eventHub.apiReturned(me.addPaymentInstrument,o.result,o.promise),o},this.applyResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(N.applyResource,e),u.eventHub.apiCalled(me.applyResource,{pidlDocInfo:$t.boolify(e),prefillData:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.applyResource))return u.eventHub.apiReturned(me.applyResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(rt.apply,e,t,n);return u.eventHub.apiReturned(me.applyResource,r.result,r.promise),r},this.replaceResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(N.replace,e),u.eventHub.apiCalled(me.replaceResource,{pidlDocInfo:$t.boolify(e),prefillData:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.replaceResource))return u.eventHub.apiReturned(me.replaceResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(rt.replace,e,t,n);return u.eventHub.apiReturned(me.replaceResource,r.result,r.promise),r},this.addAddress=function(e,t,n){var r=p(p({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(N.addAddress,r),u.eventHub.apiCalled(me.addAddress,{pidlDocInfo:$t.boolify(r),prefillData:$t.boolify(t),options:$t.boolify(n)},{pidlDocInfo:r}),!u.canApiStart(me.addAddress))return u.eventHub.apiReturned(me.addAddress,!1),u.apiFailure(!1);var o=u.addResourceInternal(rt.add,r,t,n);return u.eventHub.apiReturned(me.addAddress,o.result,o.promise),o},this.validateAddress=function(e){var t=p(p({},e),{resourceType:"Address"});return u.validateResource(t)},this.handleCheckout=function(e){var t=e||{},n=t.checkoutId,r=t.partner,o=t.redirectUrl,i=t.paymentProviderId,a=t.language,s=t.market,l={resourceType:x.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser};if(u.telemetryContext.trackNewOperation(N.handleCheckout,l),u.eventHub.apiCalled(me.handleCheckout,{checkoutParams:$t.boolify(e)},{}),!u.canApiStart(me.handleCheckout)||!vn.validateCheckoutParams(u.eventHub,e))return u.eventHub.apiReturned(me.handlePaymentChallenge,!1),u.apiFailure(!1);var c={resourceType:x.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser},d=u.renderPidlPageInternal(c);return u.eventHub.apiReturned(me.handleCheckout,d.result,d.promise),d},this.getPayeeTaxProfile=function(e){var t=e||{},n=t.section,r=t.tenant,o=t.sapidind,i=t.status,a=t.accounttype,s=t.payfromcc,l=t.residencecc,c=t.language,d={resourceType:x.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}};if(u.telemetryContext.trackNewOperation(N.getPayeeTaxProfile,d),u.eventHub.apiCalled(me.getPayeeTaxProfile,{payeeTaxProfileParams:$t.boolify(e)},{}),!u.canApiStart(me.getPayeeTaxProfile)||!vn.validatePayeeTaxProfileParams(u.eventHub,e))return u.eventHub.apiReturned(me.getPayeeTaxProfile,!1),u.apiFailure(!1);var p={resourceType:x.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}},h=u.renderPidlPageInternal(p);return u.eventHub.apiReturned(me.getPayeeTaxProfile,h.result,h.promise),h},this.createPaymentSession=function(e){var t=e||{},n=t.partner,r=void 0===n?null:n,o=t.country,i=void 0===o?null:o,a=t.language,s=void 0===a?null:a,l={resourceType:x.PaymentSession,parameters:{partner:r,market:i,language:s,paymentSessionData:e}};if(u.telemetryContext.trackNewOperation(N.createPaymentSession,l),u.eventHub.apiCalled(me.createPaymentSession,{paymentSessionData:$t.boolify(e)},{}),!u.canApiStart(me.createPaymentSession)||!vn.validatePaymentSessionData(u.eventHub,e))return u.eventHub.apiReturned(me.createPaymentSession,!1),u.apiFailure(!1);var c={resourceType:x.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(c.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(c.parameters.classicProduct=e.classicProduct);var d=u.addResourceInternal(rt.add,c);return u.eventHub.apiReturned(me.createPaymentSession,d.result,d.promise),d},this.renderPidlPageInternal=function(e,t){if(!vn.validatePidlDocInfo(u.eventHub,e)||!vn.validateSelectOrRenderOptions(u.eventHub,t))return u.apiFailure(!1);var n=rt.renderPidlPage,r=en.getPidlDocUrl(u.userContext,n,e);return u.apiSuccess(!0,u.getPidl(r,null,n,t,e))},this.renderPidlPage=function(e,t){if(u.telemetryContext.trackNewOperation(N.renderPidlPage,e),u.eventHub.apiCalled(me.renderPidlPage,{pidlDocInfo:$t.boolify(e),options:$t.boolify(t)},{pidlDocInfo:e}),!u.canApiStart(me.renderPidlPage))return u.eventHub.apiReturned(me.renderPidlPage,!1),u.apiFailure(!1);var n=u.renderPidlPageInternal(e,t);return u.eventHub.apiReturned(me.renderPidlPage,n.result,n.promise),n},this.handlePaymentChallenge=function(e,t){var n,r,o=e||{},i=o.partner,a=void 0===i?null:i,s=o.country,l=void 0===s?null:s,c=o.language,d=void 0===c?null:c,p={resourceType:x.Challenge,parameters:{partner:a,market:l,language:d,paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};if(u.telemetryContext.trackNewOperation(N.handlePaymentChallenge,p),u.eventHub.apiCalled(me.handlePaymentChallenge,{paymentSessionData:$t.boolify(e)},{}),!u.canApiStart(me.handlePaymentChallenge)||!vn.validatePaymentSessionOrData(u.eventHub,e))return u.eventHub.apiReturned(me.handlePaymentChallenge,!1),u.apiFailure(!1);var h,m={resourceType:x.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};e.billableAccountId&&(m.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(m.parameters.classicProduct=e.classicProduct);var f=u.userContext.getHeaders({},""),g=f[Y.msFlight]||"",v=f[Y.msTest]||"";if((null===g||void 0===g?void 0:g.includes(X.enablePaymentAgentChallenge))&&(null===(r=null===(n=window.paymentAgent)||void 0===n?void 0:n.isPaymentAgentSupportedPI)||void 0===r?void 0:r.call(n,e)))h=u.handlePaymentAgentChallenge(e,m,t,v);else if(e.piid===cn.googlePay||e.piid===cn.applePay){var y=new Pt.invalidSetupError(Tt.invalidSetup);u.eventHub.failure(y),h=u.apiFailure(!1)}else h=u.renderPidlPageInternal(m);return u.eventHub.apiReturned(me.handlePaymentChallenge,h.result,h.promise),h},this.handlePurchasePendingState=function(e){if(u.telemetryContext.trackNewOperation(N.handlePurchasePendingState),u.eventHub.apiCalled(me.handlePurchasePendingState),!u.canApiStart(me.handlePurchasePendingState)||!e||!vn.validateHandlePurchasePendingStateParams(u.eventHub,e))return u.eventHub.apiReturned(me.handlePurchasePendingState,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e),n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(me.handlePurchasePendingState,!0,n.promise),u.apiSuccess(!0,n.promise)},this.handlePurchaseRiskChallenge=function(e){if(u.telemetryContext.trackNewOperation(N.handlePurchaseRiskChallenge),u.eventHub.apiCalled(me.handlePurchaseRiskChallenge),!u.canApiStart(me.handlePurchaseRiskChallenge)||!e||!vn.validatePurchaseRiskChallengeParams(u.eventHub,e))return u.eventHub.apiReturned(me.handlePurchaseRiskChallenge,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(me.handlePurchaseRiskChallenge,n.result,n.promise),n},this.handleChallengeInternal=function(e,t){if(!vn.validateResourceInfo(u.eventHub,e)||!vn.validateAddUpdateOrDeleteOptions(u.eventHub,t))return u.apiFailure(!1);var n=rt.add;u.model.operationType=n,u.model.operationOptions=t,u.model.pidlDocManager.setOperationInfo({operationType:n});var r=Kt.getPidlService(),o=r.getRequestInstance(u.eventHub,e,u.userContext,n),i=r.getInstance(u.eventHub,o);return u.apiSuccess(!0,i.then((function(t){u.stateManager.setState(ce.executing),u.eventHub.instanceDownloaded();var r=tn.getPidlDocInfoFromResource(e,t);if(u.telemetryContext.updateResourceInfo(r),t.clientAction)return u.model.handleClientAction(t.clientAction,t);u.eventHub.success({id:t.id,operationType:n,response:t})}),(function(e){var t=Zt.createServerError(Tt.resourceInstanceDownloadFailed,o.url,e,[e.errorMessage]);return u.eventHub.failure(t),sn(t)})))},this.handleChallenge=function(e,t){if(u.telemetryContext.trackNewOperation(N.verify,e),u.eventHub.apiCalled(me.handleChallenge,{resourceInfo:$t.boolify(e),options:$t.boolify(t)},{resourceInfo:e}),!u.canApiStart(me.handleChallenge))return u.eventHub.apiReturned(me.handleChallenge,!1),u.apiFailure(!1);var n=u.handleChallengeInternal(e,t);return u.eventHub.apiReturned(me.handleChallenge,n.result,n.promise),n},this.updateOrDeleteResourceInternal=function(e,t,n,r,o){if(n&&!vn.validatePidlDocInfo(u.eventHub,n)||!vn.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);o=o||rt.update;u.model.operationType=o,u.model.operationOptions=r,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:n}),u.model.pidlDocManager.setOperationInfo({operationType:o});var i=null;if(t)i=u.downloadPidlDocument(en.getPidlDocUrl(u.userContext,o,n),r,(function(){return u.model.populate(t,!0)}),n);else{if(!vn.validateResourceInfo(u.eventHub,e))return u.apiFailure(!1);i=u.downloadInstance(e,n,o,r)}return u.apiSuccess(!0,i.then((function(){return u.stateManager.setState(ce.executing)})))},this.updateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(N.update,n||e),u.eventHub.apiCalled(me.updateResource,{resourceInfo:$t.boolify(e),resource:$t.boolify(t),pidlDocInfo:$t.boolify(n),options:$t.boolify(r)},{resourceInfo:e,pidlDocInfo:n}),!u.canApiStart(me.updateResource))return u.eventHub.apiReturned(me.updateResource,!1),u.apiFailure(!1);var o=u.updateOrDeleteResourceInternal(e,t,n,r);return u.eventHub.apiReturned(me.updateResource,o.result,o.promise),o},this.selectResource=function(e,t,n,r,o,i,a){if(!i&&!e||e&&(!vn.validatePidlDocInfo(u.eventHub,e)&&!vn.validateResourceInfo(u.eventHub,e)||!vn.validateSelectOrRenderOptions(u.eventHub,t))||i&&!vn.validateHandle(u.eventHub,i)||a&&!vn.validateSelectedResourceInfo(u.eventHub,a))return u.apiFailure(null);a&&(a.id||a.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},a.id&&(e.parameters.filters.id=a.id),a.backupId&&(e.parameters.filters.backupId=a.backupId));var s=i||Zt.guid();u.model.pidlDocManager.setOperationInfo({handle:s,operationType:n}),u.model.operationType=n,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var l=null;return i?l=new Promise((function(e,t){u.model.pidlDocManager.retrievePidlDocFromCache(u.eventHub,s,o).then((function(){r().then(e,(function(e){t(e)}))}),(function(e){u.eventHub.failure(new Pt.unexpectedError(e,[])),t()}))})):(u.model.operationOptions=t,tn.updatePidlDocInfo(e),l=u.downloadPidlDocument(en.getPidlDocUrl(u.userContext,n,e),t,r,e,o)),u.apiSuccess(s,l.then((function(){return u.stateManager.setState(ce.executing)})))},this.selectResourceTypeInternal=function(e,t){return u.selectResource(e,t,rt.select,u.onDownloadValidateOrSelectResourceType.bind(u))},this.selectResourceType=function(e,t){u.telemetryContext.trackNewOperation(N.selectResourceType,e);var n=e,r=u.userContext.getHeaders({},"")[Y.msFlight]||"";if((null===r||void 0===r?void 0:r.includes(X.enablePaymentAgentChallenge))&&(n=Zt.verifyClientSupported(e)),u.eventHub.apiCalled(me.selectResourceType,{pidlDocInfo:$t.boolify(n),options:$t.boolify(t)},{pidlDocInfo:n}),!u.canApiStart(me.selectResourceType))return u.eventHub.apiReturned(me.selectResourceType,!1),u.apiFailure(null);var o=u.selectResourceTypeInternal(n,t);return u.eventHub.apiReturned(me.selectResourceType,$t.boolify(o.result),o.promise),o},this.updateProfile=function(e,t,n,r){var o=p(p({},n),{resourceType:"Profile"});if(u.telemetryContext.trackNewOperation(N.updateProfile,o||e),u.eventHub.apiCalled(me.updateProfile,{resourceInfo:$t.boolify(e),resource:$t.boolify(t),pidlDocInfo:$t.boolify(o),options:$t.boolify(r)},{resourceInfo:e,pidlDocInfo:o}),!u.canApiStart(me.updateProfile))return u.eventHub.apiReturned(me.updateProfile,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(e,t,o,r);return u.eventHub.apiReturned(me.updateProfile,i.result,i.promise),i},this.selectInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,rt.selectInstance,(function(){return u.onDownloadSelectResource(n&&n.prefillData)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectInstance=function(e,t,n,r){u.telemetryContext.trackNewOperation(N.selectResource,e);var o=e,i=u.userContext.getHeaders({},"")[Y.msFlight]||"";if((null===i||void 0===i?void 0:i.includes(X.enablePaymentAgentChallenge))&&(o=Zt.verifyClientSupported(e)),u.eventHub.apiCalled(me.selectResource,{pidlDocInfo:$t.boolify(o),options:$t.boolify(t),actionContext:$t.boolify(n)},{pidlDocInfo:o}),!u.canApiStart(me.selectResource))return u.eventHub.apiReturned(me.selectResource,!1),u.apiFailure(null);var a=u.selectInstanceInternal(o,t,n,r);return u.eventHub.apiReturned(me.selectResource,$t.boolify(a.result),a.promise),a},this.listAddress=function(e,t,n,r){var o=p(p({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(N.listAddress,o),u.eventHub.apiCalled(me.listAddress,{pidlDocInfo:$t.boolify(e),options:$t.boolify(t),actionContext:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.listAddress))return u.eventHub.apiReturned(me.listAddress,!1),u.apiFailure(null);var i=u.selectInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(me.listAddress,$t.boolify(i.result),i.promise),i},this.selectPaymentInstrument=function(e,t,n,r){var o=p(p({},e),{resourceType:"PaymentInstrument"});if(u.telemetryContext.trackNewOperation(N.selectPaymentInstrument,o),u.eventHub.apiCalled(me.selectPaymentInstrument,{pidlDocInfo:$t.boolify(o),options:$t.boolify(t),actionContext:$t.boolify(n)},{pidlDocWithResource:o}),!u.canApiStart(me.selectPaymentInstrument))return u.eventHub.apiReturned(me.selectPaymentInstrument,!1),u.apiFailure(null);var i=u.selectInstanceInternal(o,t,n,r);return u.eventHub.apiReturned(me.selectPaymentInstrument,$t.boolify(i.result),i.promise),i},this.selectSingleInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,rt.selectSingleInstance,(function(){return u.onDownloadSelectSingleResource(n&&n.handle)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectSingleInstance=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(N.selectSingleResource,e),u.eventHub.apiCalled(me.selectSingleResource,{pidlDocInfo:$t.boolify(e),options:$t.boolify(t),actionContext:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.selectSingleResource))return u.eventHub.apiReturned(me.selectSingleResource,!1),u.apiFailure(null);var o=u.selectSingleInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(me.selectSingleResource,$t.boolify(o.result),o.promise),o},this.runApi=function(e,t,n,r,o){if(void 0===n&&(n=function(){return!1}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=function(){}),u.eventHub.apiCalled(e),!u.canApiStart(e)||n())return u.eventHub.apiReturned(e,!1),u.apiFailure(!1);var i=t(),a=r();return u.eventHub.apiReturned(e,$t.boolify(a),i),u.apiSuccess(a,o()||i)},this.showResource=function(e){u.telemetryContext.trackNewOperation(N.show);var t=e.pidlDocInfo,n=e.prefillData,r=e.options;return u.runApi(me.showResource,(function(){var e=rt.show,o=en.getPidlDocUrl(u.userContext,e,t);return u.getPidl(o,n,e,r,t)}),(function(){return!e||!vn.validateShowResourceParams(u.eventHub,e)||!vn.validatePidlDocInfo(u.eventHub,t)||!vn.validateResourceOptions(u.eventHub,r)}))},this.offerResource=function(e){u.telemetryContext.trackNewOperation(N.offer);var t=e.pidlDocInfo;return u.runApi(me.offerResource,(function(){var e=rt.offer,n=en.getPidlDocUrl(u.userContext,e,t);return u.getPidl(n,null,e,null,t)}),(function(){return!e||!vn.validateOfferResourceParams(u.eventHub,e)||!vn.validatePidlDocInfo(u.eventHub,t)}))},this.searchResource=function(e){u.telemetryContext.trackNewOperation(N.search);var t=e.pidlDocInfo,n=e.options;return u.runApi(me.searchResource,(function(){var e=rt.search,r=en.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!vn.validateSearchResourceParams(u.eventHub,e)}))},this.deleteResource=function(e){var t=e.resourceInfo,n=e.resource,r=e.pidlDocInfo,o=e.options;if(u.telemetryContext.trackNewOperation(N.delete,t||r),u.eventHub.apiCalled(me.deleteResource,{resourceInfo:$t.boolify(t),resource:$t.boolify(n),pidlDocInfo:$t.boolify(r),options:$t.boolify(o)},{resourceInfo:t,pidlDocInfo:r}),!u.canApiStart(me.deleteResource)||!e)return u.eventHub.apiReturned(me.deleteResource,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(t,n,r,o,rt.delete);return u.eventHub.apiReturned(me.deleteResource,i.result,i.promise),i},this.fundStoredValue=function(e){u.telemetryContext.trackNewOperation(N.fundStoredValue);var t=e.pidlDocInfo,n=e.options;return u.runApi(me.fundStoredValue,(function(){var e=rt.fundStoredValue,r=en.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!vn.validateFundStoredValueParams(u.eventHub,e)}))},this.validateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(N.validateResource,e),u.eventHub.apiCalled(me.validateResource,{pidlDocInfo:$t.boolify(e),options:$t.boolify(t),actionContext:$t.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(me.validateResource))return u.eventHub.apiReturned(me.validateResource,!1),u.apiFailure(null);var o=u.selectResource(e,t,rt.validateInstance,u.onDownloadValidateOrSelectResourceType.bind(u),n&&n.targetIdentity,n&&n.handle,r);return u.eventHub.apiReturned(me.validateResource,$t.boolify(o.result),o.promise),o},this.moveNextPage=function(){return u.runApi(me.moveNextPage,(function(){return u.model.moveNextOrSubmit().catch(u.displaySettings.propagateCallbackException?on:rn)}))},this.submitPage=function(){return u.runApi(me.submitPage,(function(){return u.model.submitAction().catch(u.displaySettings.propagateCallbackException?on:rn)}))},this.moveToLastPage=function(){return u.runApi(me.moveToLastPage,(function(){return u.model.moveToLastPage().catch(rn)}))},this.movePrevPage=function(){return u.runApi(me.movePrevPage,(function(){return u.model.movePrevOrCancel().catch(rn)}))},this.moveToFirstPage=function(){return u.runApi(me.moveToFirstPage,(function(){return u.model.moveToFirstPage().catch(rn)}))},this.refreshData=function(e){return u.runApi(me.refreshData,(function(){return u.model.refreshData(e).catch(rn)}))},this.cancel=function(){return u.runApi(me.cancel,(function(){return u.model.gohome(),an()}))},this.getSelectedResource=function(){return u.runApi(me.getSelectedResource,(function(){return an()}),(function(){return!1}),(function(){var e={},t=u.model.getCurrentPage();if(t){var n=t.operationType;n===rt.selectSingleInstance?e=xn.getDefaultSuccessPidlPayload([t],u.eventHub):n!==rt.selectInstance&&n!==rt.select||(e=$t.deepCopy(u.model.createUserInputData(!0,!0)))}return e.operationType=u.model.operationType,e||(e=void 0),e}))},this.invokePageDefaultAction=function(){return u.runApi(me.invokePageDefaultAction,(function(){return u.model.invokeDefaultPidlAction().catch(rn)}),(function(){return!1}),(function(){return!0}),(function(){return an()}))},this.returnUserInputData=function(){return new Promise((function(e,t){u.model.returnUserInputData().then((function(t){var n={};n.payload=$t.deepCopy(t),n.operationType=rt.getPidlPayload,e(n)}),(function(e){u.eventHub.error(e),t()}))}))},this.getPidlPayload=function(){return u.runApi(me.getPidlPayload,(function(){return u.returnUserInputData().then((function(e){return u.eventHub.payloadCreated(e)}),rn)}),(function(){return u.model.operationType!==rt.renderPidlPage}),(function(){return!0}),(function(){return an()}))},this.postMessageToChildIFrames=function(e){return u.runApi(me.postMessageToChildIFrames,(function(){}),(function(){return!1}),(function(){return u.viewEventHandler.postMessageToChildIFrames(e)}),(function(){return an()}))},this.testHookRenderPidl=function(e,t,n){return u.model.pidlDocManager.setPidlDoc(u.eventHub,e),u.model.operationType=t,u.model.populate(n).catch(rn)},this.testHookRenderPidlPage=function(e,t,n,r){void 0===n&&(n=0),u.telemetryContext.trackNewOperation(N.renderPidlDocument),u.eventHub.apiCalled(me.renderPidlDocument);var o=u.testHookRenderPidl(e,t,r).then((function(){u.model.moveToPageIndex(n).catch(rn),u.stateManager.setState(ce.executing)}));return u.eventHub.apiReturned(me.renderPidlDocument,!0,o),!0};var d=o.telemetryLogger,h=o.getPidlDocument,m=o.view,f=m&&$t.isFunction(m.getViewType)&&m.getViewType();if(this.telemetryContext=new Wr(i,f),this.eventHub=new dn(d,this.telemetryContext),this.stateManager=new Br(this.eventHub),Kt.getLoggingService()||Kt.setLoggingService(new Gr),!Kt.getOneDSService())if(s)Kt.setOneDSService(s);else{Kt.setOneDSService({getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}})}if(this.logConstructorCall(e,t,n,r,i),vn.validateReturnOptions(this.eventHub,t))if(this.eventHub.addReturnOptions(t),Kt.getCommerceService()||Kt.setCommerceService(new Yr),Kt.getRedirectionService()||Kt.setRedirectionService(new Jr),Kt.getPidlService()||Kt.setPidlService(new Qr),Kt.getPidlStoreService()||Kt.setPidlStoreService(new Zr),n&&this.eventHub.addPublicEventHandler(n),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),a&&this.eventHub.addPrivateEventHandler(a),vn.validateInputParameters(this.eventHub,e,r,i,o)){if(this.callbacks=o,this.transformers=l,this.userContext=new Or(e),this.displaySettings=new nn(r),!this.displaySettings.containerId)return this.eventHub.failure(new Pt.inputParameterValidationFailedError(Tt.containerIdNotFound,"containerId",[this.displaySettings.containerId])),void this.eventHub.apiReturned(me.constructor,!1);this.model=new Nr({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new Mr(h,c),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers});var g=this.callbacks,v=g.iFrameMessageHandler,y=g.view;this.viewEventHandler=new Lr({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:y,iFrameMessageHandler:v,userContext:this.userContext}),this.stateManager.setState(ce.initialized)}else this.eventHub.apiReturned(me.constructor,!1);else this.eventHub.apiReturned(me.constructor,!1)}return e.prototype.sumbitAction=function(){throw new Error("Method not implemented.")},e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?on:rn)||an()}},e.prototype.apiFailure=function(e){return{result:e,promise:an()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(this.model.pidlDocManager.isEmpty()){var t={handle:e,action:"selectResource"};return this.eventHub.success(t),an()}return this.model.populate()},e.prototype.getPidl=function(e,t,n,r,o){var i=this;return this.model.operationType=n,this.model.operationOptions=r,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:o}),this.model.pidlDocManager.setOperationInfo({operationType:n}),this.downloadPidlDocument(e,r,(function(){return i.model.populate(t,!1)}),o).then((function(){return i.stateManager.setState(ce.executing)}),rn)},e.prototype.downloadInstance=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=Kt.getPidlService(),l=s.getRequestInstance(o.eventHub,e,o.userContext,n);s.getInstance(o.eventHub,l).then((function(s){o.eventHub.instanceDownloaded(),t||(t=tn.getPidlDocInfoFromResource(e,s),o.telemetryContext.updateResourceInfo(t));var l=en.getPidlDocUrl(o.userContext,n,t);if(l&&l.url)return o.downloadPidlDocument(l,r,(function(){return o.model.populate(s,!0)}),t).then((function(e){return i(e)}),a);a()}),(function(e){var t=Zt.createServerError(Tt.resourceInstanceDownloadFailed,l.url,e,[e.errorMessage]);o.eventHub.failure(t),a(t)}))}))},e.prototype.downloadPidlDocument=function(e,t,n,r,o){var i=this;return this.model.downloadPidlDocument(e,r,o).then((function(e){return zt(e)?i.model.handleClientAction(e):n()}))},e}(),eo=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach((function(e){this.mockFunctionsMap[e.name]=e}),this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach((function(t){e=e.concat(t.name)})),e},e.prototype.createMockedFunction=function(t,n){return e.setArity(function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach((function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)}),this),e.returns}.bind(this),n)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",n=1;n<e;n++)t=t+",arg"+n;return t},e.setArity=function(t,n){return new Function(e.createArguments(n),"return this.apply(this, arguments);").bind(t)},e}(),to=function(){function e(){Kt.getTelemetryInjectionService()||Kt.setTelemetryInjectionService(new no)}return e.prototype.logEvent=function(e,t,n){Kt.getTelemetryInjectionService().logEvent(n,e,t)},e.prototype.getCorrelationId=function(){return Ur.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=Ur.getIncrementedCV();if(e)return{name:Y.msCV,value:e}},e}(),no=function(){function e(){}return e.prototype.logEvent=function(e,t,n){t===O.fetchCallCompleted?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,i,a,s;try{if($t.isObject(e)){var l=((window||{}).location||{}).href||"",c={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:l,destUri:l,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(o=e.partnerContext)||void 0===o?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(s=e.partnerContext)||void 0===s?void 0:s.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};$t.isObject(e.telemetryResource)&&(c.partC.resourceType=e.telemetryResource.resourceType,c.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),c.partC.resourceParametersMap=e.telemetryResource.parameters),Ur.writeEvent(c.name,c.partB,c.partC)}}catch(u){Kt.getLoggingService().logError("TelemetryError",u)}},e.prototype.logOSREvent=function(e,t){var n,r,o,i,a;try{if($t.isObject(e)){var s={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},l={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(s),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(r=e.partnerContext)||void 0===r?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null===(o=e.partnerContext)||void 0===o?void 0:o.flowId,partnerSessionId:null===(i=e.partnerContext)||void 0===i?void 0:i.sessionId,partnerScenarioId:null===(a=e.partnerContext)||void 0===a?void 0:a.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};Ur.writeEvent(l.name,l.partB,l.partC)}}catch(c){Kt.getLoggingService().logError("TelemetryError",c)}},e}(),ro=new(function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case K.busyBlock:return _.busyBlock;case K.errorBlock:return _.errorBlock;case K.helpDialogBlock:return _.helpDialogBlock;case K.helpDialogContentBlock:return _.helpDialogContentBlock;case K.modalDialogBlock:return _.modalDialogBlock;case K.modalDialogContentBlock:return _.modalDialogContentBlock;case K.pageContentBlock:return _.pageContentBlock;case K.submitBlock:return _.submitBlock}},this.getDivClassName=function(t,n,r){switch(n){case T.dropdown:return[_.dropdownDiv,_.propertyDiv];case T.checkBox:return[_.checkBoxDiv,_.propertyDiv];case T.textBox:return[_.textBoxDiv,_.propertyDiv];case T.secureProperty:return[_.propertyDiv];case T.image:return[_.imageDiv];case T.logo:return[_.logoDiv];case T.button:return[_.buttonDiv];case T.iFrame:return[_.iFrameDiv];case T.group:var o=[_.groupDiv],i=e.getContainerClassName(r);return i&&o.push(i),o}},this.generateClassName=function(t,n,r,o,i){var a=e.getClassName(t,n,r);if(o){var s=e.getDivClassName(t,o,i);s&&(a=a.concat(s))}if(a)return a.join(" ")},this.getClassName=function(t,n,r){switch(n){case q.div:return[_.div];case q.label:return[_.label];case q.dropdown:return[_.property,_.dropdown,e.getPropertyClassName(r)];case q.radio:return[_.property,_.radio,e.getPropertyClassName(r)];case q.buttonList:return[_.property,_.buttonList,e.getPropertyClassName(r)];case q.checkBox:return[_.property,_.checkBox,e.getPropertyClassName(r)];case q.textBox:return[_.property,_.textBox,e.getPropertyClassName(r)];case q.secureProperty:return[_.secureProperty];case q.button:return[_.button];case q.iFrame:return[_.iFrame];case q.heading:return[_.staticText,_.heading];case q.subHeading:return[_.staticText,_.subHeading];case q.text:return[_.staticText,_.text];case q.textGroup:return[_.staticText,_.text,_.textGroup];case q.hyperlink:return[_.hyperlink];case q.image:return[_.image];case q.logo:return[_.logo];case q.errorDiv:return[_.errorDiv];case q.error:return[_.error];case q.audio:return[_.audio];default:return void t.failure(new Pt.unexpectedError(Tt.noMappingToGetHtmlClassNameForElement,[n]))}},this.getDivId=function(t){return e.getId(k.div,t)},this.getId=function(e,t){return $t.replaceCharactersForHtml($t.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(k.property,t)},this.concatIdElement=function(e,t){return $t.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}()),oo=Object.freeze({__proto__:null}),io=Object.freeze({__proto__:null,constants:Ge,modelElementTypes:mr,promise:un,eventArgs:oo,oneDSAdapter:Ur,commerce2:Gt,commerceHelper:jt,config:tt,configManager:tn,error:Pt,fetchHelper:gn,inputValidationHelper:vn,iocContainer:Kt,modelElementFactory:Sn,modelElementsHelper:xn,pidlDocHelper:Xt,tokenizer:Rr,typeHelper:$t,urlBuilder:en,userInputDataHelper:qr,userInputDataTransformer:Kr,userInputDataValidator:Ir,utils:Zt,validationFunctions:_r,version:Vr,webCrypto:Tr,htmlAttributeHelper:ro,hmac:Ar,DisplaySettings:nn,errorMessages:Tt,EventHub:dn,mockFactory:eo,Resources:yn,stateManager:Br,telemetryContext:Wr,userContextWrapper:Or,ViewEventHandler:Lr,DataCache:bn,DataStore:Cn,InputPrefillDataManager:Cr,Model:Nr,ModelData:xr,ModelDataProperty:Sr,MultiPropertySelector:gr,pidlDocumentManager:Mr,Validator:Pr,commerceService:Yr,loggingService:Gr,pidlService:Qr,pidlStoreService:Zr,redirectionService:Jr,oneDSLogger:to,telemetryInjectionService:no}),ao=Object.freeze({__proto__:null,env:Hr,internal:io,pidlDocumentTypes:Wt,controlApi:$r,get EncryptionTypes(){return ln},get PaymentMethodPIIDs(){return cn}}),so=function(e,t){return so=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])},so(e,t)};function lo(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}so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)};Object.create;function uo(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var po,ho,mo=xe.pidlReact,fo=$t.startsWith;(po=t.AppScenario||(t.AppScenario={})).None="none",po.AddAddress="addAddress",po.AddPaymentInstrument="addPaymentInstrument",po.EditPaymentInstrument="editPaymentInstrument",po.DeletePaymentInstrument="deletePaymentInstrument",po.ApplyPaymentInstrument="applyPaymentInstrument",po.SelectPaymentMethod="selectPaymentMethod",po.ConfirmPayment="confirmPayment",po.SelectPaymentInstrument="selectPaymentInstrument",po.ListAddress="listAddress",po.RiskChallenge="riskChallenge",po.ProfilePrerequisite="profilePrerequisite",po.PaymentInstrumentDetails="paymentInstrumentDetails",po.HandlePaymentChallenge="handlePaymentChallenge",po.VerifyAddress="verifyAddress",po.OfferPaymentInstrument="offerPaymentInstrument",(ho=t.ElementType||(t.ElementType={})).alert="alert",ho.button="button",ho.buttonGroup="buttonGroup",ho.checkbox="checkbox",ho.dialog="dialog",ho.dropdown="dropdown",ho.error="error",ho.group="group",ho.captcha="captcha",ho.audio="audio",ho.heading="heading",ho.helpDialog="helpDialog",ho.hyperlink="hyperlink",ho.iframe="iframe",ho.secureProperty="secureProperty",ho.securePropertyLabel="securePropertyLabel",ho.image="image",ho.label="label",ho.logo="logo",ho.subheading="subheading",ho.text="text",ho.textBox="textBox",ho.radio="radio",ho.modal="modal",ho.overlay="overlay",ho.spinner="spinner",ho.panel="panel",ho.textgroup="textgroup",ho.filePicker="filePicker",ho.separator="separator",ho.tooltip="tooltip";var go,vo,yo="prod",bo={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},Co={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},So={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},xo={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},_o={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},Eo={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},ko={isCreditCard:"isCreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},wo={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument"},Io={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},Po={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},To={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},Do={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},Ao={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},Ro={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},No={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},Mo={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},Fo={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},Bo={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},Oo={ViewTermsId:"viewTermsButton"};(go=t.AddressScenario||(t.AddressScenario={})).billing="billing",go.shipping="shipping",go.profile="profile",(vo=t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})).xboxCoBrandedCard="xboxCoBrandedCard",vo.xboxApplyFullPageRender="xboxApplyFullPageRender",(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={})).xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow";var Lo={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function Ho(){return function(e,t){function n(n,r){var i=n.element;if(i){for(var a={},s=0,l=t;s<l.length;s++){var c=l[s],u=Lo[c];if(u)u(i,a);else{var d=i[c];a[c]=d instanceof Function?d():i[c]}}return o.createElement(e,co({ref:r},a,n))}return null}return n.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),o.forwardRef(n)}}var Vo=Ho(),zo=(Ho(),Ho(),Ho()),Uo=Ho(),Wo=Ho(),Go=Ho(),jo=Ho(),qo=Ho(),Ko=Ho(),Yo=Ho(),Xo=Ho(),Qo=Ho(),Zo=Ho(),Jo=Ho(),$o=Ho(),ei=Ho(),ti=Ho(),ni=Ho(),ri=Ho(),oi=(Ho(),o.createContext({pidlDocs:[]}),o.createContext(!1)),ii=o.createContext({values:{},accessibilityText:{},errors:{}}),ai=o.createContext({}),si=o.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null}),li=o.createContext(null),ci=o.createContext(null);function ui(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];$t.startsWith(o,xe.noPidlddc)||$t.startsWith(o,xe.pidlReact)?t.push(e[o]):Se[o]||Zt.isTagPrefixKnown(o)||t.push(E.taggedClass+e[o])}return t}function di(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];$t.startsWith(o,xe.pidlReact)&&t.push(e[o].substring(xe.pidlReact.length))}return t}var pi=function(e){var n=e.propertyName,r=(0,ro.getId)(Ge.htmlElementIdPrefixes.error,n);return o.createElement(si.Consumer,null,(function(e){return o.createElement(ii.Consumer,null,(function(i){var s=e.elementFactory,l=(e.displayOptions,e.displaySettings,i.errors[n]?i.errors[n].message:null);if(!l)return null;var c={errorMessage:l};return s&&s.canCreate(t.ElementType.error,c,{})?s.create(t.ElementType.error,c):o.createElement("span",{className:a("pidlddc-error",{"d-none":!l},"text-danger"),id:r,tabIndex:-1,role:"alert"},l)}))}))};pi.displayName="Error";var hi=function(e){var n=e.message;return o.createElement(si.Consumer,null,(function(e){var r=e.elementFactory,i=(e.displayOptions,e.displaySettings,{elementId:"pidlddc-page-alert-id",message:n});return r&&r.canCreate(t.ElementType.alert,i,{})?r.create(t.ElementType.alert,i):o.createElement("div",{id:i.elementId,className:"pidlddc-error-alert",role:"alert"},i.message)}))};hi.displayName="PageAlert";var mi=function(e){var n=e.className,r=e.element,i=e.elementId,s=e.displayContent,l=e.pidlAction,c=e.disabled,u=e.accessibilityName,d=e.onClick,p=e.tags,h=e.styleHints,m=e.tooltipText,f=e.gridColumn,g=e.gridRow,v=e.accessibilityHint,y=l.type,b=l.isDefault,C="submit"===y||b,S=(0,ro.getId)(Ge.htmlElementIdPrefixes.button,i),x=a(n,ui(p)),_=r.propertyElementRef;return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,r=e.theme,i={id:S,displayContent:s,onClick:d,additionalClassName:x,disabled:c,ariaLabel:u,accessibilityHint:v,primary:C,type:C?"primary":"secondary",propertyElementRef:_,theme:r,styleHints:h,tooltipText:m,gridColumn:f,gridRow:g};return n&&n.canCreate(t.ElementType.button,i,{})?n.create(t.ElementType.button,i):o.createElement("button",{id:S,className:a(C?"pidlddc-highlighted":"pidlddc-back",x),disabled:c,"aria-label":u,onClick:d},s)}))},fi=$o(mi,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText"]);fi.displayName="Button";var gi=function(e){var n=e.elementId,r=e.displayText,i=e.displayImageUrl,a=e.createElement,s=e.displayContentContainer,l=e.isDisabled,c=e.pidlKey,u=e.onClick,d=e.buttonAction,p=e.containerDisplayId,h=e.ariaLabel,m=e.propertyElementRef,f=e.styleHints,g=s?a(s):[i?o.createElement("img",{src:i,key:"".concat(n,"-img"),id:"pidlddc-buttonlist-".concat(n,"-").concat(c)}):null,r];return o.createElement(si.Consumer,null,(function(e){var r=e.elementFactory,i=e.displayOptions,a=ro,s=(0,a.concatIdElement)((0,a.getId)(i.inputPropertyIdPrefix,n),c),v=function(){return u({id:s,pidlAction:d,value:d.context,dest:""})},y={id:s,key:c,onClick:v,additionalClassName:"",displayContent:g,disabled:l,primary:!1,type:"list",containerDisplayId:p,ariaLabel:h,propertyElementRef:m,styleHints:f};return r&&r.canCreate(t.ElementType.button,y,{})?r.create(t.ElementType.button,y):o.createElement("button",{id:s,disabled:l,onClick:v,"aria-label":h},y.displayContent)}))},vi=ri(gi,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints"]);vi.displayName="ButtonListElement";var yi=function(e){var n=e.createElement,r=e.elementId,i=e.possibleOptions,s=e.onClick,l=e.tags,c=e.displayId,u=e.element,d=e.styleHints,p=[],h=(0,ro.getId)(Ge.htmlElementIdPrefixes.buttongroup,r),m=u.propertyElementRef,f=!1;for(var g in i)if(i.hasOwnProperty(g)&&i[g]){var v=i[g],y=i[g].pidlAction||{context:{id:g},type:""},b=null;f||v.isDisabled||(b=m,f=!0),p.push(o.createElement(vi,{element:v,elementId:r,createElement:n,onClick:s,buttonAction:y,pidlKey:g,containerDisplayId:c,propertyElementRef:b,ariaLabel:null===v||void 0===v?void 0:v.accessibilityName}))}return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,r={id:h,additionalClassName:a(ui(l)),options:p,optionsDirection:"vertical",displayId:c,propertyElementRef:m,styleHints:d};return n&&n.canCreate(t.ElementType.buttonGroup,r,{})?n.create(t.ElementType.buttonGroup,r):o.createElement("div",{className:a(ui(l)),id:r.id},p)}))},bi=Xo(yi,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints"]);bi.displayName="ButtonList";var Ci=function(e){var n=e.elementId,r=e.required,i=e.disabled,s=e.hidden,l=e.propertyName,c=e.displayName,u=e.accessibilityName,d=e.onChange,p=e.tags,h=e.displayId,m=e.useDisplayIdAsKeyForCheckState,f=e.element,g=e.styleHints,v=f.propertyElementRef,y=ro,b=y.getDivId,C=y.getId,S=b(n);return o.createElement(si.Consumer,null,(function(e){return o.createElement(ii.Consumer,null,(function(n){var y=e.elementFactory,b=e.displayOptions,x=e.displaySettings,_=C(b.inputPropertyIdPrefix,f.displayType===ct.prefillControl?x.prefillCheckboxBlock.id:l),E={elementId:_,displayContent:c,onChange:d,displayId:h,disabled:i,ariaLabel:n.accessibilityText[l]||u,additionalClassName:a(ui(p)),inlineError:n.errors[l]?n.errors[l].message:void 0,checked:m?!!n.values[h]:!0===n.values[l]||"true"===n.values[l],hidden:s,required:r,id:_,propertyName:l,propertyElementRef:v,styleHints:g},k=y&&y.canCreate(t.ElementType.checkbox,E,{});if(k)return function(e,t){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?t:o.createElement("div",{id:S},t)}(y,o.createElement(o.Fragment,null,y.create(t.ElementType.checkbox,E),k&&k.inlineError?null:o.createElement(pi,{propertyName:l})));var w="".concat(E.elementId,"_label");return o.createElement("div",{id:S},o.createElement("label",{id:w,htmlFor:_,"aria-label":E.ariaLabel,hidden:E.hidden},o.createElement("input",{type:"checkbox",id:_,required:E.required,hidden:E.hidden,disabled:E.disabled,checked:E.checked,"aria-labelledby":w,onChange:function(e){return E.onChange(e.currentTarget.checked)}}),E.displayContent),o.createElement(pi,{propertyName:l}))}))}))},Si=Zo(Ci,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints"]);Si.displayName="CheckBox";var xi=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:ct.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:ct.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:ct.text})},e.prototype.addGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:ct.group,layoutOrientation:ut.vertical,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addInlineGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:ct.group,layoutOrientation:ut.inline,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:ct.expression})},e.prototype.addTextGroup=function(t,n){this.group.members||(this.group.members=[]);var r={displayId:t,isSubmitGroup:!1,displayType:ct.textGroup,layoutOrientation:ut.inline,displayName:n||"",members:[]};return this.group.members.push(r),new e(r)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,n,r){return void 0===r&&(r={}),this.addChild(co({displayId:e,pidlAction:n,displayContent:t,displayType:"button",tags:{accessibilityName:t}},r))},e.prototype.addSubmitButton=function(e,t,n){return n=co({type:"submit",isDefault:!0},n),this.addButton(e,t,n,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,n){return n=co({type:"gohome"},n),this.addButton(e,t,n,{isBack:!0})},e}(),_i=function(e){var t=this;this.addDataDescription=function(e,n){return t.dataDescription[e]=n,t},this.addPage=function(e,n){var r={displayId:e,displayName:n,members:[],displayType:ct.page};return t.pages.push(r),new xi(r)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]},Ei=function(e){var t=this;this.required=function(e,n){return t.validations.push({error_code:e,error_message:n,validationType:ot.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:ot.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(o,"}$")}),t},this.alphanumeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:ot.regex,regex:"^[A-Za-z0-9]{".concat(o,"}$")}),t},this.numeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:ot.regex,regex:"^\\d{".concat(o,"}$")}),t},this.exactly=function(e,n,r){return r=Array.isArray(r)?r.join("|"):r,t.validations.push({error_code:e,error_message:n,validationType:ot.regex,regex:"^".concat(r,"$")}),t},this.validations=e},ki=function(e,t){var n=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,r){return n.dataCollectionSource=e,n.possibleOptions={},n.possibleOptions[t]={displayText:r,isDisabled:!1},n},this.validate=function(){return new Ei(n.validations)},this.setPossibleValues=function(e){n.possibleOptions={};for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];n.possibleOptions[o]={displayText:e[o],isDisabled:!1}}return n.possibleValues=e,n},this.setDisabled=function(){return n.isDisabled=!0,n},this.setDefaultValue=function(e){return n.defaultValue=e,n},this.buildData=function(){var e={validations:n.validations};return n.validations.length>0&&(e.validation=n.validations[0]),n.dataCollectionSource&&(e.possible_values={}),n.defaultValue&&(e.default_value=n.defaultValue),co(co({},n.base),e)},this.buildDisplay=function(e){var t=n.propertyName,r={};n.dataCollectionSource?(r.dataCollectionSource=n.dataCollectionSource,r.possibleOptions=n.possibleOptions):n.possibleValues&&(r.possibleValues={},r.possibleOptions={},Object.keys(n.possibleValues).forEach((function(e){var t=n.possibleValues&&n.possibleValues[e];t&&(r.possibleValues[e]=t,r.possibleOptions[e]={displayText:t,isDisabled:!1})})),r.displaySelectionText="--- ".concat(t," ---"));var o=n.validations[0],i=o?{defaultErrorMessage:o.error_message,fromErrorCode:[{errorCode:o.error_code,errorMessage:o.error_message}]}:{},a=!!n.isDisabled;return co(co({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:i,isDisabled:a},r),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}},wi=function(e){var t=e.displayId,n=e.required,r=e.disabled,i=e.hidden,a=e.elementId,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.element,h=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),m=i||!h;return o.createElement(Si,{element:p,elementId:a,required:n,hidden:m,disabled:r,propertyName:s,displayName:l,accessibilityName:c,onChange:function(e){return u(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:d})},Ii=Zo(wi,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);Ii.displayName="PrefillCheckBox";var Pi=function(e){function n(t){var n=e.call(this,t)||this;return n.toggleDisplay=function(e){n.setState({open:e})},n.state={open:!0},n}return lo(n,e),n.prototype.render=function(){var e=this.props,n=e.layoutOrientation,r=e.elementId,i=e.childNodes,s=e.tags,l=e.element,c=l.displayId,u=l.type,d=this.state.open,p=(0,ro.getDivId)(r);return o.createElement(si.Consumer,null,(function(e){var l=e.elementFactory,h=e.displaySettings,m={childNodes:i,layoutOrientation:n,elementId:p,groupClassName:ui(s),displayId:c,type:u,displaySettings:h,open:d};if(l&&l.canCreate(t.ElementType.modal,m,{}))return l.create(t.ElementType.modal,m);var f={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:d?"initial":"none"};return m.groupClassName=m.groupClassName.filter((function(e){return!$t.startsWith(e,xe.pidlReact)})),o.createElement("div",{key:"".concat(r,"-modal"),id:"".concat(r,"-modal"),style:f,className:a(m.groupClassName)},o.createElement("dialog",{key:"".concat(r,"-modal-content"),id:"".concat(r,"-modal-content"),tabIndex:-1,open:!0,style:{position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"}},o.createElement(oi.Provider,{value:"inline"===n},i)))}))},n}(o.Component),Ti=zo(Pi,["elementId","layoutOrientation","tags"]);Ti.displayName="Modal";var Di=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=t.possibleOptions,i=t.displayId,a=t.maxLength,s=(0,ro.getDivId)(r);t.eventHub.propertyCreating(s,{displayId:i,possibleOptions:o,maxLength:a},{})}return n}return lo(n,e),n.prototype.render=function(){for(var e,n=this,r=this.props,i=r.elementId,a=r.possibleOptions,s=r.accessibilityName,l=r.displayName,c=r.showDisplayName,u=r.propertyName,d=r.hidden,p=r.isPrefill,h=r.onSelect,m=r.disabled,f=r.required,g=r.displaySelectionText,v=r.onFocus,y=r.onBlur,b=r.optionsElements,C=r.isSelectFirstItem,S=r.displayId,x=r.element,_=r.eventHub,E=r.styleHints,k=Ge,w=ro,I=w.getDivId,P=w.generateClassName,T=ro.getId,D=T(k.htmlElementIdPrefixes.error,i),A=T(k.htmlElementIdPrefixes.input,i),R="input_".concat(i,"dummyLabel"),N=I(i),M=x.propertyElementRef,F="".concat(R," ").concat(D),B=[],O=0,L=Object.keys(a||{});O<L.length;O++){var H=L[O];if(a[H]){e=!p&&!C||e?e:H;var V=a[H],z=V.displayText,U=V.isDisabled,W=V.displayImageUrl,G=V.styleHints;B.push({key:H,text:z,disabled:U,data:{imageUrl:W},styleHints:G})}}!d&&Object.keys(a).length;var j=function(e){_.propertySelected(A,u,N),v&&v(e)},q=I(i),K=P(null,k.htmlElementTypes.div,u,k.modelElementType.dropdown);return o.createElement(si.Consumer,null,(function(r){var i=r.elementFactory,a=r.theme;return function(e,t,n,r){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?o.createElement(o.Fragment,null,r):o.createElement("div",{id:t,className:n},r)}(i,q,K,o.createElement(ii.Consumer,null,(function(r){var v={},C=v?v.style:void 0,x=r.errors[u]?r.errors[u].message:void 0,_=!!r.errors[u],k={disabled:m,inlineError:x,isInValidationErrorGroup:_,onBlur:y,onFocus:j,optionsElements:b,required:f,showDisplayName:c,displayName:l,displayId:S,id:A,ariaLabelId:F,dropdownOptions:B,hidden:d||0===B.length,onChange:h,placeholder:p?void 0:g,value:r.values[u]&&r.values[u].toString()||e,style:C,propertyElementRef:M,theme:a,styleHints:E},w=i&&i.canCreate(t.ElementType.dropdown,k,{inlineError:!0,label:c}),I=null;I=w?i.create(t.ElementType.dropdown,k):n.renderDropdownElement(k);var P=!c||w&&w.label;return o.createElement(o.Fragment,null,function(e,t,r,i){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?o.createElement(o.Fragment,null):o.createElement("label",{id:R,"aria-label":r,style:{display:i?"none":void 0},"aria-hidden":i},t,o.createElement("span",{className:"".concat(q,"-asterisk")},n.props.required?"*":""))}(i,l,r.accessibilityText[u]||s,P),I,w&&w.inlineError?null:o.createElement(pi,{propertyName:u}))})))}))},n.prototype.renderDropdownElement=function(e){var t=e.id,n=e.dropdownOptions,r=e.onChange,i=e.value,s=e.additionalClassName,l=e.hidden,c=e.disabled,u=e.required,d=e.placeholder,p=e.ariaLabelId,h=e.inlineError,m=e.onFocus,f=e.onBlur,g=e.isInValidationErrorGroup,v=d?o.createElement("option",{value:""},d):null,y=h||g&&!c,b=[];return n.forEach((function(e){var t=e.key,n=e.text,r=e.disabled;b.push(o.createElement("option",{value:t,key:t,disabled:r},n))})),o.createElement("select",{id:t,className:y?a(s,"pidlddc-errorstroke"):s,hidden:l,disabled:c,required:u,"aria-labelledby":p,onFocus:function(e){m&&e&&e.currentTarget&&m(e.currentTarget.value)},onBlur:function(e){f&&e&&e.currentTarget&&f(e.currentTarget.value)},onChange:function(e){r&&e&&e.target&&r(e.target.value)},value:i},v,b)},n}(o.Component),Ai=Yo(Di,["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints"]);Ai.displayName="Dropdown";var Ri=function(e){var n=e.elementId,r=e.isInline;return o.createElement(si.Consumer,null,(function(e){return o.createElement(ai.Consumer,null,(function(i){var s=e.elementFactory,l=(e.displayOptions,e.displaySettings,i[n]?i[n].message:""),c={errorMessage:l};if(s&&s.canCreate(t.ElementType.error,c,{}))return s.create(t.ElementType.error,c);var u={className:a("pidlddc-group-error",{"d-none":!l},"text-danger"),id:"pidlddc-error-".concat(n),tabIndex:-1,role:"alert"};return r?o.createElement("span",co({},u,{"aria-hidden":!l}),l):o.createElement("div",co({},u,{"aria-hidden":!l}),l)}))}))};Ri.displayName="GroupError";var Ni=zo((function(e){var n=e.layoutOrientation,r=e.elementId,i=e.childNodes,s=e.tags,l=e.labelNode,c=e.element,u=c.displayId,d=c.type,p=c.isSubmitGroup,h=e.styleHints,m=e.accessibilityName,f=e.gridColumn,g=e.gridRow;return o.createElement(si.Consumer,null,(function(e){var c=e.elementFactory,v=e.displaySettings,y=ro.getDivId;return o.createElement(oi.Consumer,null,(function(e){var b=y(r),C=o.createElement(Ri,{elementId:r,isInline:e}),S={childNodes:i,errorNode:C,labelNode:l,layoutOrientation:n,elementId:b,groupClassName:ui(s),displayId:u,type:d,displaySettings:v,styleHints:h,isSubmitGroup:p,ariaLabel:m,gridColumn:f,gridRow:g};return c&&c.canCreate(t.ElementType.group,S,{})?c.create(t.ElementType.group,S):(S.groupClassName=S.groupClassName.filter((function(e){return!$t.startsWith(e,xe.pidlReact)})),o.createElement("div",{id:S.elementId,className:a(S.groupClassName)},l,o.createElement(oi.Provider,{value:"inline"===n},i),C))}))}))}),["elementId","layoutOrientation","tags","accessibilityName","styleHints"]);Ni.displayName="Group";var Mi=Wo((function(e){var n=e.layoutOrientation,r=e.elementId,i=e.children,s=e.tags,l=e.ariaLabelledBy,c=e.styleHints,u="inline"===n,d=(0,ro.getId)(Ge.htmlElementIdPrefixes.div,r);return o.createElement(si.Consumer,null,(function(e){return function(e,n){var p={children:i,additionalClassName:a(ui(s)),elementId:r,ariaLabelledBy:l,styleHints:c};return e&&e.canCreate(t.ElementType.textgroup,p,{})?e.create(t.ElementType.textgroup,p):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?o.createElement(o.Fragment,null,n):o.createElement("div",{id:d,className:a({"d-inline-block":u},ui(s))},n)}(e.elementFactory,o.createElement(o.Fragment,null,i,o.createElement(Ri,{elementId:r,isInline:!0})))}))}),["elementId","layoutOrientation","tags","styleHints"]);Mi.displayName="TextGroup";var Fi=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=(0,ro.getDivId)(r);t.eventHub.captchaRendered(o)}return n}return lo(n,e),n.prototype.render=function(){var e=this.props,n=e.elementId,r=e.audioChildNodes,i=e.imageChildNodes,s=e.tags,l=e.element,c=e.required,u=l.displayId,d=l.type,p=l.id,h=l.displayName,m=l.showDisplayName,f=l.accessibilityName;return o.createElement(si.Consumer,null,(function(e){return o.createElement(ii.Consumer,null,(function(l){var g=e.elementFactory,v=ro.getDivId,y="image"==l.values[p],b=v(n),C={audioChildNodes:r,imageChildNodes:i,elementId:b,captchaClassName:ui(s),displayId:u,type:d,showImageCaptcha:y,displayName:h,showDisplayName:m,required:c};if(g&&g.canCreate(t.ElementType.captcha,C,{}))return g.create(t.ElementType.captcha,C);var S=o.createElement("label",{className:a("pidlddc-label",m?"d-block":"d-none"),id:n,"aria-label":f},h);return C.captchaClassName=C.captchaClassName.filter((function(e){return!$t.startsWith(e,xe.pidlReact)})),o.createElement("div",{id:C.elementId,className:a(C.captchaClassName)},S,y&&i,!y&&r)}))}))},n}(o.Component),Bi=Uo(Fi,["elementId","tags","required"]);Bi.displayName="Captcha";var Oi=function(e){var n=e.element,r=e.elementId,i=e.hidden,s=e.required,l=e.disabled,c=e.showDisplayName,u=e.displayName,d=e.accessibilityName;return c?o.createElement(si.Consumer,null,(function(e){var p=e.elementFactory,h=(e.displayOptions,e.displaySettings,(0,ro.getId)(Ge.htmlElementIdPrefixes.label,r)),m={disabled:l,required:s,elementId:h,displayContent:u};if(p&&p.canCreate(t.ElementType.label,m,{}))return p.create(t.ElementType.label,m);for(var f=0;f<n.children.length;f++)if(null!=n.children[f].dataDescription&&!n.children[f].dataDescription.is_optional){m.required=!0;break}return o.createElement("label",{className:a("pidlddc-label",i||!c?"d-none":"d-block"),id:m.elementId,"aria-label":d},u,o.createElement("span",{className:"".concat(m.elementId,"-asterisk")},m.required?"*":""))})):null};Oi.displayName="GroupLabelInner";var Li=zo(Oi,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);Li.displayName="GroupLabel";var Hi=function(e){function n(t){var n=e.call(this,t)||this;return n.linkRef=o.createRef(),n.toggle=function(e){!e&&n.linkRef&&n.linkRef.current&&n.linkRef.current.focus&&n.linkRef.current.focus(),n.setState({open:e})},n.escapeHandler=function(e){27===e.keyCode&&n.toggle(!1)},n.state={open:!1},n}return lo(n,e),n.prototype.componentDidUpdate=function(){var e,t=this.props,n=t.elementId,r=t.elementFactory,o=this.state.open;if(!(null===(e=null===r||void 0===r?void 0:r.isReactNative)||void 0===e?void 0:e.call(r))){var i=document.getElementById("".concat(n,"-dialog-body"));o?(document.addEventListener("keydown",this.escapeHandler,!1),i&&i.focus&&i.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},n.prototype.render=function(){var e=this,r=this.props,i=r.elementId,a=r.displayHelpName,s=r.displayImage,l=r.children,c=r.element,u=this.state.open;if((!a||0===a.length)&&!s)return null;var d=c.getHelpDialogTags(),p=d&&d[Ee.linkAccessibilityName]||c.accessibilityName,h=d&&d[Ee.closeButtonAccessibilityName]||"",m="".concat(s?k.image:k.button).concat(i),f=s?_.helpImageLink:_.helpTextLink;return o.createElement(si.Consumer,null,(function(r){var c=r.elementFactory,d=(r.displayOptions,r.displaySettings);n.elementIdHelpDialogIndex[i]||(n.elementIdHelpDialogIndex[i]=n.latestHelpDialogIndex,n.latestHelpDialogIndex++);var g=0===n.elementIdHelpDialogIndex[i]?"":n.elementIdHelpDialogIndex[i],v=d?d.getAffixedDisplayElementId(k.helpDialogContent+d.helpDialogBlock.id+g):i,y={id:m,children:l,linkAdditionalClassName:f,linkText:a,linkImageSource:s,linkAriaLabel:p,contentId:v,closeButtonAccessibilityName:h};return c&&c.canCreate(t.ElementType.helpDialog,y,{})?c.create(t.ElementType.helpDialog,y):[o.createElement("a",{key:"".concat(m,"-toggle"),id:m,className:f,"aria-label":p,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},s?o.createElement("img",{src:s,alt:p}):a),o.createElement("dialog",{key:"".concat(i,"-dialog-body"),id:"".concat(i,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:u},o.createElement("div",{key:"".concat(i,"-dialog-close-button"),id:"".concat(i,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},o.createElement("button",{"aria-label":h,onClick:function(){return e.toggle(!1)}},o.createElement("span",{"aria-hidden":"true"},"x"))),l)]}))},n.elementIdHelpDialogIndex={},n.latestHelpDialogIndex=0,n}(o.Component),Vi=Vo(Hi,["elementId","displayHelp","displayHelpName","displayImage"]);Vi.displayName="HelpDialog";var zi=Go((function(e){var n=e.elementId,r=e.pidlAction,i=e.displayContent,s=e.accessibilityName,l=e.tags,c=e.onClick,u=e.styleHints,d=e.gridColumn,p=e.gridRow,h="javascript:void(null);",m=(0,ro.getId)(Ge.htmlElementIdPrefixes.hyperlink,n),f=a(ui(l)),g=function(){c&&c({pidlAction:r,id:n})},v=function(e){e&&e.preventDefault&&e.preventDefault(),c&&c({pidlAction:r,id:n})};return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,a=(e.displayOptions,e.displaySettings,e.theme),l={id:m,displayContent:i,additionalClassName:f,href:r&&r.context?r.context:h,ariaLabel:s,onClick:g,theme:a,styleHints:u,gridColumn:d,gridRow:p};return n&&n.canCreate(t.ElementType.hyperlink,l,{})?n.create(t.ElementType.hyperlink,l):o.createElement("a",{id:m,href:r&&r.context?r.context:h,"aria-label":s,className:f,onClick:v},i)}))}),["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints"]);zi.displayName="Hyperlink";var Ui=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=t.expectedClientActionId,i=t.onIFrameMessage,a=t.onIFrameBusyTimerEnded,s=n.state.messageTimer;if(!r||!e.origin||0===r.indexOf(e.origin)){var l=Zt.parseJSON(e.data),c=l.succeeded?l.value:null;c&&o&&c.actionId!==o||(s&&(a(s),clearTimeout(s),n.setState({messageTimer:null})),i(e))}},n.iframe=o.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return lo(t,e),t.prototype.postMessage=function(e){return!!(this.iframe&&this.iframe.current&&this.iframe.current.contentWindow&&this.iframe.current.contentWindow.postMessage)&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onIFrameMessageTimeout,o=e.messageTimeout,i=e.messageTimeoutClientAction,a=e.onIFrameBusyTimerStarted,s=e.onIFrameBusyTimerEnded,l=this.iframe.current,c=this.state.messageTimer;if(window.addEventListener(b.message,this.onEvent),!n&&t&&l){var u=l.contentDocument;u&&(u.open(),u.write(t),u.close())}if(!c&&o&&i){var d=window.setTimeout((function(){r(i),s(d)}),o);a(d),this.setState({messageTimer:d})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,i=r.sourceUrl,a=this.iframe.current;if(!i&&o&&e&&e.displayContent!==o&&a){var s=a.contentDocument;s&&(s.open(),s.write(o),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(b.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,i=e.tags,s=e.sourceUrl,l=this.state,c=l.width,u=l.height,d={width:c,height:u},p=(0,ro.getId)(Ge.htmlElementIdPrefixes.iframe,t),h=(c||u)&&0===Number((c+u).replace(/\D/g,""))?0:void 0;return this.state.executing?o.createElement("iframe",{key:p,className:a(ui(i)),id:p,src:s,hidden:r,"aria-label":n,ref:this.iframe,style:d,frameBorder:h}):null},t}(o.Component),Wi=function(e){return o.createElement(si.Consumer,null,(function(n){var r=n.elementFactory,i=n.userContext,a=n.displayOptions,s=e.displayId,l={};e.useAuth&&null!=(null===i||void 0===i?void 0:i.authToken)&&(l=function(e,t){var n,r;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[0],xt:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[1]}}catch(o){return{authorization:t}}return{authorization:t}}(s,i.authToken));var c=co(co({},e),{headers:l,useWebView2:a.useWebView2||!1});return r&&r.canCreate(t.ElementType.iframe,c,{})?r.create(t.ElementType.iframe,c):o.createElement(Ui,co({},c,{ref:c.iFrameElementRef}))}))},Gi=qo(Wi,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage"]),ji=jo((function(e){var n=e.accessibilityName,r=e.element,i=e.elementId,s=e.sourceUrl,l=e.tags,c=e.styleHints,u=e.gridColumn,d=e.gridRow,p=ro.getId,h=Ge;return o.createElement(si.Consumer,null,(function(e){var m,f=e.elementFactory,g={additionalClassName:a(ui(l)),ariaLabel:n||(null===(m=null===r||void 0===r?void 0:r.displayDescription)||void 0===m?void 0:m.accessibilityName),elementId:p(h.htmlElementIdPrefixes.image,i),sourceUrl:s,styleHints:c,gridColumn:u,gridRow:d};return f&&f.canCreate(t.ElementType.image,g,{})?f.create(t.ElementType.image,g):o.createElement("img",{id:g.elementId,src:s,alt:n,"aria-label":n,className:g.additionalClassName})}))}),["elementId","accessibilityName","sourceUrl","tags","styleHints"]);ji.displayName="Image";var qi=ni((function(e){var n=e.displayId,r=e.sourceUrl,i=e.tags,s=e.styleHints,l=e.gridColumn,c=e.gridRow,u=i&&i.accessibilityName?i.accessibilityName:void 0,d=ro.getId,p=Ge;return o.createElement(si.Consumer,null,(function(e){var h=e.elementFactory,m={additionalClassName:a(ui(i)),ariaLabel:u,elementId:d(p.htmlElementIdPrefixes.image,n),sourceUrl:r,styleHints:s,gridColumn:l,gridRow:c};return h&&h.canCreate(t.ElementType.logo,m,{})?h.create(t.ElementType.logo,m):o.createElement("img",{className:a("pidlddc-logo-image","pidlddc-logoBlock",m.additionalClassName),id:m.elementId,src:r,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})}))}),["displayId","sourceUrl","tags","styleHints"]);qi.displayName="LogoElement";var Ki=function(e){var t=e.elementId,n=e.hidden,r=e.showDisplayName,i=e.displayName,s=e.accessibilityName,l=e.element,c=(0,ro.getId)(Ge.htmlElementIdPrefixes.label,t);return o.createElement(ii.Consumer,null,(function(e){return o.createElement("label",{className:a("pidlddc-label",{"d-none":n||!r}),id:c,"aria-label":e.accessibilityText[l.getPropertyName()]||s},i,o.createElement("span",{className:"".concat(c,"-asterisk")},l.dataDescription.is_optional?"":"*"))}))},Yi=Vo(Ki,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);Yi.displayName="PropertyLabel";var Xi=Jo(function(e){function n(t){return e.call(this,t)||this}return lo(n,e),n.prototype.render=function(){var e=this.props,n=e.element,r=e.elementId,i=e.possibleOptions,s=e.accessibilityName,l=e.displayName,c=e.showDisplayName,u=e.propertyName,d=e.disabled,p=e.required,h=e.hidden,m=e.onSelect,f=e.tags,g=e.optionsElements,v=e.styleHints,y=[];for(var b in i)i.hasOwnProperty(b)&&y.push({key:b,value:i[b].key||b,isDisabled:i[b].isDisabled,displayText:i[b].displayText,displayImageUrl:i[b].displayImageUrl});return o.createElement(si.Consumer,null,(function(e){return o.createElement(oi.Consumer,null,(function(i){return o.createElement(ii.Consumer,null,(function(b){var C,S=e.elementFactory,x=(e.displayOptions,e.displaySettings,e.theme),_=ro.getId,E=Ge,k=_(E.htmlElementIdPrefixes.div,r),w={elementId:r,isInline:i,hidden:h,options:y,optionsElements:g,ariaLabel:b.accessibilityText[u]||s,showDisplayName:c,displayName:l||n.displayName,additionalClassName:a(ui(f)),onSelect:m,disabled:d,propertyName:u,required:p,invalid:!1,selectedValue:b.values[u]&&b.values[u].toString(),propertyElementRef:n.propertyElementRef,theme:x,styleHints:v},I=S&&S.canCreate(t.ElementType.radio,w,{});return I?(null===(C=null===S||void 0===S?void 0:S.isReactNative)||void 0===C?void 0:C.call(S))?S.create(t.ElementType.radio,w):o.createElement("div",{id:k,className:a(k,_(E.htmlElementIdPrefixes.div,n.displayId))},S.create(t.ElementType.radio,w),I&&I.inlineError?null:o.createElement(pi,{propertyName:u})):o.createElement("div",{className:a("pidlddc-input-".concat(r))},y.map((function(e){var t="input_".concat(r,"_").concat(e.value),n="".concat(t,"_displayTextLabel");return o.createElement("div",{key:t},o.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":w.ariaLabel,className:a({"pidlddc-hidden":!c}),"aria-hidden":!c},l),o.createElement("div",{className:a(ui(f))},o.createElement("label",{id:n,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||d?null:m(e.value)}},o.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(u),disabled:e.isDisabled||d,required:p,"aria-labelledby":n,value:e.value,onChange:function(){return m(e.value)},checked:w.selectedValue===e.value}),g&&g[e.value]?g[e.value]:e.displayText)))})),o.createElement(pi,{propertyName:u}))}))}))}))},n}(o.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags"]);Xi.displayName="Radio";var Qi=function(e){var n=e.elementId,r=e.displayContent,i=e.tags,s=e.styleHints,l=a(ui(i)),c=(0,ro.getId)(Ge.htmlElementIdPrefixes.text,n);return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,i=(e.displayOptions,e.displaySettings,e.theme),a={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:i,styleHints:s};return n&&n.canCreate(t.ElementType.heading,a,{})?n.create(t.ElementType.heading,a):o.createElement("h2",{id:c,className:l},r)}))},Zi=Go(Qi,["elementId","displayContent","tags","styleHints"]);Zi.displayName="Heading";var Ji=function(e){var n=e.elementId,r=e.displayContent,i=e.tags,s=e.styleHints,l=a(ui(i)),c=(0,ro.getId)(Ge.htmlElementIdPrefixes.text,n);return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,i=(e.displayOptions,e.displaySettings,e.theme),a={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:i,styleHints:s};return n&&n.canCreate(t.ElementType.subheading,a,{})?n.create(t.ElementType.subheading,a):o.createElement("h3",{id:c,className:l},r)}))},$i=Go(Ji,["elementId","displayContent","tags","styleHints"]);$i.displayName="SubHeading";var ea=function(e){var n=e.elementId,r=e.displayContent,i=e.tags,s=e.styleHints,l=e.gridColumn,c=e.gridRow,u=(0,ro.getId)(Ge.htmlElementIdPrefixes.text,n),d=di(i),p=a(ui(i));return o.createElement(oi.Consumer,null,(function(e){return o.createElement(si.Consumer,null,(function(n){var i=n.elementFactory,a=(n.displayOptions,n.displaySettings,n.theme),h={id:u,displayContent:r,additionalClassName:p,inline:e,theme:a,styleHints:s,gridColumn:l,gridRow:c};if(i){if(d.indexOf("labelText")>=0&&i.canCreate(t.ElementType.label,h,{}))return i.create(t.ElementType.label,h);if(i.canCreate(t.ElementType.text,h,{}))return i.create(t.ElementType.text,h)}return e?o.createElement("span",{id:u,className:p},r):o.createElement("p",{id:u,className:p},r)}))}))},ta=Go(ea,["elementId","displayContent","tags","styleHints"]);ta.displayName="Text";var na=function(e){function t(n){var r=e.call(this,n)||this;return r.getTransformedLength=function(e,t,n){var r=t.substr(0,n),o=Zt.applyDisplayTransformation(e.forModel,r);return(o=Zt.applyDisplayTransformation(e.forFormat,o)).length},r.onFocus=function(e){var t=r.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onBlur=function(e){var t=r.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onChange=function(e){var n=r.props,o=n.element,i=n.onChange,a=n.id,s=o.displayTransformations;t.caretPosition={id:a,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var l=e.currentTarget.value;if(s&&s.forModel&&s.forFormat&&(t.caretPosition.start=r.getTransformedLength(s,l,t.caretPosition.start),t.caretPosition.end=r.getTransformedLength(s,l,t.caretPosition.end)),i){var c=e.currentTarget.value;s&&s.forModel&&(c=Zt.applyDisplayTransformation(s.forModel,c)),i(c)}},r.onCompositionStart=function(e){r.inComposition=!0},r.onCompositionEnd=function(e){r.inComposition=!1},r.htmlInput=o.createRef(),r.inComposition=!1,r}return lo(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,n=e.additionalClassName,r=e.id,i=e.maskInput,s=e.maxLength,l=e.required,c=e.hidden,u=e.disabled,d=e.placeholder,p=e.ariaLabelId,h=e.inlineError,m=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup),f=(e.styleHints,this.props.value),g=t.displayTransformations,v=h||m&&!u;return!this.inComposition&&g&&g.forFormat&&(f=Zt.applyDisplayTransformation(g.forFormat,f)),o.createElement("input",{type:i?"password":"text",className:v?a(n,"pidlddc-errorstroke"):n,id:r,ref:this.htmlInput,maxLength:s,required:l,hidden:c,disabled:u,value:f,placeholder:d,"aria-labelledby":p,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(o.Component),ra=Qo(function(e){function n(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,de.editing)},n.onBlur=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,de.finished)},n.onSelected=function(e,t,r){n.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},n.onUnselected=function(e,t,r){n.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},n.onFocusInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=t.onFocus,s=ro,l=s.getDivId,c=s.getId,u=l(r),d=c(i.inputPropertyIdPrefix,o);n.onSelected&&n.onSelected(d,o,u),a&&a(e)},n.onBlurInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=ro,s=a.getDivId,l=a.getId,c=s(r),u=l(i.inputPropertyIdPrefix,o);n.onUnselected&&n.onUnselected(u,o,c),n.onBlur&&n.onBlur(e)},n}return lo(n,e),n.prototype.render=function(){var e=this;return o.createElement(si.Consumer,null,(function(n){return o.createElement(ii.Consumer,null,(function(r){var i=n.elementFactory,s=n.displayOptions,l=n.theme,c=e.props,u=c.elementId,d=c.element,p=c.required,h=c.disabled,m=c.hidden,f=c.propertyName,g=c.maxLength,v=c.displayHelpName,y=c.displayImage,b=c.tags,C=void 0===b?{}:b,S=c.placeHolderText,x=c.showKeyLogo,_=c.resolvedLogo,E=c.displayHelpChildren,k=(c.onFocus,c.displayId),w=c.accessibilityName,I=c.accessibilityHint,P=c.styleHints,T=d.displayName,D=d.showDisplayName,A=d.displayDescription,R=d.propertyElementRef,N=Ge,M=ro,F=M.getDivId,B=M.getId,O=M.generateClassName,L=M.concatClassName,H=F(u),V=B(s.inputPropertyIdPrefix,f),z={inlineError:!0},U=r.errors[f]?r.errors[f].message:void 0,W=!!r.errors[f],G=D?o.createElement(Yi,{element:d}):null,j={id:u},q=v||y?o.createElement(Vi,co({},j,{element:d,children:E,elementFactory:i})):null,K={disabled:h,displayName:T,hidden:m,inlineError:U,isInValidationErrorGroup:W,maskInput:A&&A.maskInput,maxLength:g,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:p,showDisplayName:D,inlineHelpLink:q,additionalClassName:a(ui(C)),ariaLabelId:"pidlddc-label-".concat(f," pidlddc-error-").concat(f),id:V,inlineLogo:x&&_,placeholder:S,value:r.values[f]&&r.values[f].toString()||"",propertyName:f,displayId:k,propertyElementRef:R,ariaLabel:w,accessibilityHint:I,theme:l,styleHints:P},Y=null;(z=i&&i.canCreate(t.ElementType.textBox,K,z))?(Y=i.create(t.ElementType.textBox,K),z.label&&(G=null),z.inlineHelpLink&&(q=null)):Y=o.createElement(na,co({},K,{element:d}));var X=O(null,N.htmlElementTypes.div,f,N.modelElementType.textBox);k&&(X=L(X,F(k)));var Q;return Q=o.createElement(o.Fragment,null,G&&q&&d.displayHelpPosition!==Oe.floatRight?o.createElement("span",null,G," ",q):G,q&&d.displayHelpPosition===Oe.floatRight?o.createElement("span",null,Y," ",q):Y,G&&q?null:q,z&&z.inlineError?null:o.createElement(pi,{propertyName:f})),(null===i||void 0===i?void 0:i.isReactNative)&&i.isReactNative()?o.createElement(o.Fragment,null,Q):o.createElement("div",{id:H,className:X},Q)}))}))},n}(o.Component),["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints"]);ra.displayName="TextBox";var oa=ei(function(e){function n(t){var n=e.call(this,t)||this;return n.inputFileRef=o.createRef(),n.onChange=function(e){var t=n.props,r=t.onUpdateValue,o=t.propertyName,i=n.inputFileRef.current.value;i?n.setState({selectedFile:i.split(/(\\|\/)/g).pop()}):n.setState({selectedFile:""}),r(o,e.target.files[0],de.finished)},n.state={selectedFile:""},n.onButtonClick=n.onButtonClick.bind(n),n}return lo(n,e),n.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},n.prototype.render=function(){var e=this;return o.createElement(si.Consumer,null,(function(n){return o.createElement(ii.Consumer,null,(function(r){var i=n.elementFactory,s=e.state.selectedFile,l=e.props,c=l.className,u=l.element,d=l.propertyName,p=l.elementId,h=l.disabled,m=l.accessibilityName,f=l.tags,g=l.required,v=l.displayHelpName,y=l.displayHelpChildren,b=l.displayImage,C=u.displayName,S=u.showDisplayName,x=u.displayContent,_=(0,ro.getId)(Ge.htmlElementIdPrefixes.filePicker,p),E=a(c,ui(f)),k={inlineError:!0},w=S?o.createElement(Yi,{element:u}):null,I=o.createElement(pi,{propertyName:d}),P={id:p},T=v||b?o.createElement(Vi,co({},P,{element:u,children:y,elementFactory:i})):null,D={id:_,additionalClassName:E,disabled:h,inlineHelpLink:T,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:m,displayName:C,displayContent:x,showDisplayName:S,required:g,errorNode:I,selectedFile:s,inputFileRef:e.inputFileRef};return(k=i&&i.canCreate(t.ElementType.filePicker,D,k))?i.create(t.ElementType.filePicker,D):o.createElement("div",{id:_,className:a(E)},w&&T&&u.displayHelpPosition!==Oe.floatRight?o.createElement("span",null,w," ",T):w,w&&T?null:T,o.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),o.createElement("button",{id:_+"_button","aria-label":m,disabled:h,onClick:e.onButtonClick},x)," ",o.createElement("label",{id:_+"_label"}," ",s," "),k&&k.inlineError?null:o.createElement(pi,{propertyName:d}))}))}))},n}(o.Component),["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);oa.displayName="FilePicker";var ia=function(e){var n=e.className,r=e.element,o=e.elementId,s=e.accessibilityName,l=e.tags,c=e.audioUrl,u=(0,ro.getId)(Ge.htmlElementIdPrefixes.audio,o),d=a(n,ui(l)),p=r.propertyElementRef;return i.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,r=e.theme,o={id:u,additionalClassName:d,ariaLabel:s,propertyElementRef:p,theme:r,audioUrl:c};return n&&n.canCreate(t.ElementType.audio,o,{})?n.create(t.ElementType.audio,o):i.createElement("div",{id:u,className:d},i.createElement("audio",{"aria-label":s,src:c,controls:!0}))}))},aa=ti(ia,["elementId","accessibilityName","tags","audioUrl"]);aa.displayName="Audio";var sa=Go((function(e){var n=e.elementId,r=e.tags,i=(0,ro.getId)(Ge.htmlElementIdPrefixes.separator,n),s=a(ui(r));return o.createElement(si.Consumer,null,(function(e){var n=e.elementFactory,r={id:i,additionalClassName:s};return n&&n.canCreate(t.ElementType.separator,r,{})?n.create(t.ElementType.separator,r):o.createElement("hr",{id:i,className:s})}))}),["elementId","tags"]);sa.displayName="Separator";var la=Go((function(e){var n=e.elementId,r=e.tags,i=(0,ro.getId)(Ge.htmlElementIdPrefixes.spinner,n),s=a(ui(r));return o.createElement(si.Consumer,null,(function(e){var r=e.elementFactory,a={elementId:n,additionalClassName:s};return r&&r.canCreate(t.ElementType.spinner,a,{})?r.create(t.ElementType.spinner,a):o.createElement("hr",{id:i,className:s})}))}),["elementId","tags"]);la.displayName="Spinner";var ca=Ko(function(e){function n(t){var n,r,i=this;return(i=e.call(this,t)||this).onMessageEvent=function(e){var t,n,r,o,a,s,l=i.props,c=l.sourceUrl,u=l.propertyName,d=l.displayId,p=l.eventHandler,h=ro,m=h.getDivId,f=h.getId,g=Ge,v=m(d),y=f(g.htmlElementIdPrefixes.secureProperty,u);(null===e||void 0===e?void 0:e.origin)&&0!==(null===c||void 0===c?void 0:c.indexOf(e.origin))||((null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.event)!==g.SecureFieldEvent.focused||(null===(n=null===e||void 0===e?void 0:e.data)||void 0===n?void 0:n.field)!==u?(null===(r=null===e||void 0===e?void 0:e.data)||void 0===r?void 0:r.event)!==g.SecureFieldEvent.blurred||(null===(o=null===e||void 0===e?void 0:e.data)||void 0===o?void 0:o.field)!==u?(null===(a=null===e||void 0===e?void 0:e.data)||void 0===a?void 0:a.source)===g.SecureFieldConstants.secureFieldMessageSource&&(null===(s=null===e||void 0===e?void 0:e.data)||void 0===s?void 0:s.field)===u&&p.secureFieldMessageHandler(e):i.onBlurInternal(y,e.data.field,v):i.onFocusInternal(y,e.data.field,v))},i.onFocusInternal=function(e,t,n){i.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},i.onBlurInternal=function(e,t,n){i.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},i.computeStyles=function(){var e=ro,t=e.generateClassName,n=e.getPropertyClassName,r=e.concatClassName,o=Ge,s=i.props,l=s.propertyName,c=s.tags,u=s.eventHandler,d=t(null,o.htmlElementTypes.textBox,l);d=r(d,n(l)),d=r(d,a(ui(c))),u.computeSecurePropertyStyles(l,i.securePropertyHardCodedStyles)},i.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++){switch(r[n].toLowerCase()){case"width-fill":t=co(co({},t),{width:"100%"});break;case"width-half":t=co(co({},t),{width:"50%"});break;case"width-quarter":t=co(co({},t),{width:"25%"})}}return t}},i.iframe=o.createRef(),i.state={executing:!0,width:null===(n=t.element)||void 0===n?void 0:n.width,height:null===(r=t.element)||void 0===r?void 0:r.height},i}return lo(n,e),n.prototype.componentDidMount=function(){var e=this.props.element;e.propertyElementRef&&e.setFocus(),this.computeStyles(),window.addEventListener(b.message,this.onMessageEvent)},n.prototype.componentWillUnmount=function(){window.removeEventListener(b.message,this.onMessageEvent)},n.prototype.render=function(){var e=this;return o.createElement(si.Consumer,null,(function(n){return o.createElement(ii.Consumer,null,(function(r){var i,s=n.elementFactory,l={},c=e.props,u=c.displayId,d=c.propertyName,p=c.accessibilityName,h=c.hidden,m=c.tags,f=c.sourceUrl,g=c.frameName,v=c.element,y=c.labelNode,b=c.displayHelpName,C=c.displayImage,S=c.displayHelpChildren,x=c.styleHints,_=e.state,E={width:_.width,height:_.height},k=ro,w=k.getId,I=k.getDivId,P=k.generateClassName,T=k.concatClassName,D=Ge,A=w(D.htmlElementIdPrefixes.secureProperty,d),R=I(u),N=P(null,D.htmlElementTypes.div,null,D.modelElementType.secureProperty);d&&(N=T(N,I(d)));var M=P(null,D.htmlElementTypes.secureProperty);m&&(M=T(M,a(ui(m))));var F={id:u},B=b||C?o.createElement(Vi,co({},F,{element:v,children:S,elementFactory:s})):null;(l=s&&s.canCreate(t.ElementType.secureProperty,null,l))&&(e.securePropertyHardCodedStyles=l.securePropertyHardCodedStyles,(null===(i=l.securePropertyHardCodedStyles)||void 0===i?void 0:i.secureIframeDimensions)&&(E=co({},l.securePropertyHardCodedStyles.secureIframeDimensions)),l.inlineHelpLink||(B=null)),x&&(E=co(co({},E),e.getStylesFromHints(x)));var O=o.createElement("iframe",{className:M,id:A,src:f,hidden:h,"aria-label":p,ref:e.iframe,style:co(co({},E),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:g,frameBorder:"0"});return e.state.executing?o.createElement("div",{id:R,className:N},y&&B&&v.displayHelpPosition===Oe.floatRight?o.createElement("span",null,y," ",B):y,B?o.createElement("span",null,B," ",O):O,o.createElement(pi,{propertyName:d})):null}))}))},n}(o.Component),["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),ua=function(e){var n=e.element,r=e.elementId,i=e.hidden,s=e.required,l=e.disabled,c=e.displayId,u=e.displayHelpName,d=e.displayImage,p=e.showDisplayName,h=e.displayName,m=e.accessibilityName,f=e.displayHelpChildren;return p?o.createElement(si.Consumer,null,(function(e){var g=e.elementFactory,v=(0,ro.getId)(Ge.htmlElementIdPrefixes.label,r),y={id:c},b=u||d?o.createElement(Vi,co({},y,{element:n,children:f,elementFactory:g})):null,C={disabled:l,required:s,elementId:v,displayContent:h,inlineHelpLink:b};return(null===g||void 0===g?void 0:g.canCreate(t.ElementType.securePropertyLabel,C,{}))?g.create(t.ElementType.securePropertyLabel,C):o.createElement("label",{className:a("pidlddc-label",i||!p?"d-none":"d-block"),id:C.elementId,"aria-label":m},h,o.createElement("span",{className:"".concat(C.elementId,"-asterisk")},s?"*":""))})):null};ua.displayName="SecurePropertyLabelInner";var da=Ko(ua,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function pa(e,t,n,r,i){var a,s;if(!e.canBeRendered())return null;var l=e,c=l.getPropertyName&&l.getPropertyName()||"";if(e.hidden())return null;var u,d,p,h={element:e},m=e.displayHelp,f=e.operationType,g=T;switch(e.type){case g.page:return e.children&&e.children.map?e.children.map(ha(t,n,r,i)):null;case g.dataCollectionBindingGroup:case g.group:var v=co(co({},h),{childNodes:e.children&&e.children.map?e.children.map(ha(t,n,r,i)):null,labelNode:o.createElement(Li,co({},h))});return cr(e)&&e.isModalGroup?o.createElement(Ti,co({},v,{ref:e.groupElementRef})):o.createElement(Ni,co({},v));case g.captcha:return o.createElement(li.Consumer,null,(function(a){var s=co({},t),l=co({},t);s.buttonClickHandler=function(){var t=e.id;s.captchaHyperlinkClickHandler(t,"image",de.finished)},l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"audio",de.finished)};var c=co(co({},h),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(ha(s,n,r,i)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(ha(l,n,r,i)):null});return o.createElement(Bi,co({},c,{eventHub:a}))}));case g.textGroup:var y=void 0;return e.children&&e.children[0]&&e.children[0].id&&(y=ro.getId(k.text,e.children[0].id)),o.createElement(Mi,co({},h,{ariaLabelledBy:y}),o.createElement(oi.Provider,{value:!0},e.children&&e.children.map?e.children.map(ha(t,n,r,i)):null));case g.heading:return o.createElement(Zi,co({},h));case g.subheading:return o.createElement($i,co({},h));case g.text:return o.createElement(ta,co({},h));case g.hyperlink:return o.createElement(zi,co({onClick:(p=e.pidlAction,!p||p.type!==F.navigate&&p.type!==F.redirect?t.buttonClickHandler:t.hyperlinkClickHandler)},h));case g.image:return o.createElement(ji,co({},h));case g.logo:var b=e.getAllLogos(),C=b&&b.map?b.map((function(e){return o.createElement(qi,{element:e})})):null;return o.createElement(si.Consumer,null,(function(e){return function(e,t,n){return n&&(null===e||void 0===e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?o.createElement(o.Fragment,null,t):o.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)}(e.elementFactory,C,!0)}));case g.dropdown:return o.createElement(li.Consumer,null,(function(a){if(e.displayType===ct.prefillControl){var s=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return o.createElement(Ai,{element:co(co({},e),{getPropertyName:function(){return e.displayId},possibleOptions:s}),isPrefill:!0,onSelect:function(t){var n=parseInt(t);isNaN(n)||r(e,n)},eventHub:a})}if(u=e.possibleOptions){d={};for(var l=0,p=Object.keys(u||{});l<p.length;l++){var m=p[l];if(u[m]){var f=u[m].displayContentContainer;f&&(d||(d={}),d[m]=pa(f,t,n,r,i))}}}return o.createElement(Ai,co({},h,{onSelect:function(e){n(c,e.toString(),de.editing),n(c,e.toString(),de.finished)},optionsElements:d,eventHub:a}))}));case g.checkBox:if(e.displayType===ct.prefillControl){return o.createElement(Ii,co({},h,{onChange:function(t){r(e,t)},getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions}))}return o.createElement(Si,co({},h,{onChange:function(e){n(c,e,de.editing)}}));case g.textBox:var S;if(m){var x=Sn.createModelElementsFromDisplayDescriptions(m,f);S=x.elements&&x.elements.map?x.elements.map(ha(t,n,r,i)):void 0}return o.createElement(si.Consumer,null,(function(e){return o.createElement(ra,co({},h,{displayHelpChildren:S,onUpdateValue:n,propertyName:c,eventHandler:t,displayOptions:e.displayOptions}))}));case g.button:var _=e.pidlAction,E=e.displayContentModelElement,w=e.displayContent,I=void 0;return E&&(I=pa(E,t,n,r,i)),o.createElement(fi,co({},h,{onClick:function(){return t.buttonClickHandler({id:e.id,pidlAction:_,value:_.context,dest:""})},displayContent:null!==I&&void 0!==I?I:w}));case g.audio:return o.createElement(aa,co({},h));case g.radio:if(u=e.possibleOptions){d={};for(var P=0,D=Object.keys(u||{});P<D.length;P++){var A=D[P];if(u[A]){var R=u[A].displayContentContainer;R&&R[O.isDisabled]&&(R[O.isDisabled]=u[A].isDisabled),R&&(d||(d={}),d[u[A].key||A]=pa(R,t,n,r,i))}}}return o.createElement(Xi,co({},h,{onSelect:function(e){n(c,e,de.editing)},optionsElements:d}));case g.expression:return o.createElement(ta,co({},h));case g.buttonList:return o.createElement(bi,co({},h,{onClick:t.buttonClickHandler,createElement:function(e){return pa(e,t,n,r,i)}}));case g.iFrame:var N=o.createRef(),M=o.createElement(Gi,co({},h,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:N}));return i.push(N),M;case g.filePicker:var B=void 0;if(m)B=(null===(x=Sn.createModelElementsFromDisplayDescriptions(m,f))||void 0===x?void 0:x.elements)&&(null===(a=null===x||void 0===x?void 0:x.elements)||void 0===a?void 0:a.map)?x.elements.map(ha(t,n,r,i)):void 0;return o.createElement(oa,co({},h,{displayHelpChildren:B,propertyName:c,onUpdateValue:n}));case g.separator:return o.createElement(sa,co({},h));case g.spinner:return o.createElement(la,co({},h));case g.secureProperty:var L=void 0;if(m)L=(null===(x=Sn.createModelElementsFromDisplayDescriptions(m,f))||void 0===x?void 0:x.elements)&&(null===(s=null===x||void 0===x?void 0:x.elements)||void 0===s?void 0:s.map)?x.elements.map(ha(t,n,r,i)):void 0;var H=co(co({},h),{labelNode:o.createElement(da,co({},h,{displayHelpChildren:L}))});return o.createElement(ca,co({},H,{displayHelpChildren:L,eventHandler:t}));default:return}}function ha(e,t,n,r){return function(o,i,a){return pa(o,e,t,n,r)}}da.displayName="SecurePropertyLabel";var ma,fa=function(e){function t(t){var n=e.call(this,t)||this;return n.update=function(e,t){e.run.apply(e,uo([n,t||function(){}],e.args,!1))},n.displayValues={},n.propertyNames=[],n.getPropertyNames(n.props.pageElement.children,n.propertyNames),n.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},n}return lo(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,n=t.getModelPropertyValue,r=t.onPropertyChange;for(var o in this.state.pendingValues){var i=n(o);void 0!==i&&r&&r(o,i)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.isProperty()){var i=o;i.displayType!==ct.prefillControl&&t.push(i.getPropertyName())}else if(o.isCaptcha()){var a=o;t.push(a.getPropertyName())}o.children&&o.children.length&&this.getPropertyNames(o.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,n=e.pageElement,r={};this.propertyNames=[],n&&n.children&&this.getPropertyNames(n.children,this.propertyNames);for(var o=0,i=this.propertyNames;o<i.length;o++){var a=i[o];r[a]=t(a)}var s=co(co(co({},this.displayValues),r),this.state.pendingValues);return{errors:this.state.propertyErrors,values:s,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,n=e.elementFactory,r=e.displayOptions,i=e.displaySettings,a=e.eventHub,s=e.theme,l=e.userContext;return o.createElement(li.Provider,{value:a},o.createElement(ai.Provider,{value:this.state.groupErrors},o.createElement(ii.Provider,{value:this.getPropertyState()},o.createElement(si.Provider,{value:{elementFactory:n,displayOptions:r,displaySettings:i,theme:s,userContext:l}},t))))},t}(o.Component),ga=function(e,t,n){var r;e.setState({propertyErrors:co(co({},e.state.propertyErrors),(r={},r[n.propertyName]=n,r))},t)},va=function(e,t,n){var r;e.setState({groupErrors:co(co({},e.state.groupErrors),(r={},r[n.groupDisplayId]=n,r))},t)},ya=function(e,t,n){var r=co({},e.state.propertyErrors);if(r[n])delete r[n],e.setState({propertyErrors:r},t);else{var o=co({},e.state.groupErrors);o&&o[n]&&(delete o[n],e.setState({groupErrors:o},t))}},ba=function(e,t){e.updatePropertyValues(t)},Ca=function(e,t,n,r){var o;e.setState({accessibilityText:co(co({},e.state.accessibilityText),(o={},o[n]=r,o))},t)},Sa=function(e,t,n,r){var o;e.setState({pendingValues:co(co({},e.state.pendingValues),(o={},o[n]=r,o))})},xa=function(e,t,n,r){var o;e.displayValues=co(co({},e.displayValues),((o={})[n]=r,o)),e.forceUpdate(t)},_a=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},Ea=function e(t,n,r){t.map((function(t){if(t.isProperty()){var o=t,i=o.getPropertyName();r[i]=o}n[t.id]=t,e(t.children||[],n,r)}))},ka=function(e){function t(t){var n=e.call(this,t)||this;if(n._propertyElementRef=o.createRef(),n._propertyElementErrorRef=o.createRef(),n._modalRef=o.createRef(),n._navigationWrapperRef=o.createRef(),n.moreThanOneBusyBlockPropExists=function(){var e=n.props,t=e.busyBlockElement,r=e.displayOptions;return[r.busyBlockId,t,r.busyBlockShowHideHandler].filter((function(e){return e})).length>1},n.moveNextPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveNextPage)&&n.pidlControlApi.moveNextPage().result},n.submitPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.submitPage)&&n.pidlControlApi.submitPage().result},n.moveToLastPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToLastPage)&&n.pidlControlApi.moveToLastPage().result},n.movePrevPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.movePrevPage)&&n.pidlControlApi.movePrevPage().result},n.moveToFirstPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToFirstPage)&&n.pidlControlApi.moveToFirstPage().result},n.cancel=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.cancel)&&n.pidlControlApi.cancel().result},n.getPidlExternalControlPropsMap=function(){return n.pidlExternalControlProps},n.getSelectedResource=function(){return n.pidlControlApi?n.pidlControlApi.getSelectedResource().result:null},n.getPidlPayload=function(){return n.pidlControlApi?n.pidlControlApi.returnUserInputData():null},n.postMessageToChildIFrames=function(e){return!(!n.pidlControlApi||!n.pidlControlApi.postMessageToChildIFrames)&&n.pidlControlApi.postMessageToChildIFrames(e).result},n.updateChildIFramesHeight=function(e){n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(t,n,r){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)}))},n.focusOnPageRefresh=function(e){n.state.disableFocusOnLoad||(e===O.pageRendered||e===O.pageRefreshed?setTimeout((function(){var e,t,r,o;n.state.firstErrorPropertyName||(n.props.onPageRendered&&n.props.onPageRendered(),n.props.propertyElementRef||(null===(t=null===(e=n._propertyElementRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.focus)&&(null===(o=null===(r=n._propertyElementRef)||void 0===r?void 0:r.current)||void 0===o||o.focus()))}),100):e===O.pageNavigated&&setTimeout((function(){var e,t,r;if(!n.state.firstErrorPropertyName){var o=null!==(e=n.props.propertyElementRef)&&void 0!==e?e:n._propertyElementRef;(null===(t=null===o||void 0===o?void 0:o.current)||void 0===t?void 0:t.focus)&&(null===(r=null===o||void 0===o?void 0:o.current)||void 0===r||r.focus())}}),100))},n.busyBlockShowHide=function(e){n.setState({showBusyBlock:e})},n.toggleVisualCaptcha=function(e,t,r){n.onUpdateValue(e,t,r)},n.shouldRenderBusyBlock=function(){var e=n.state.showBusyBlock,t=n.props.busyBlockElement;return t&&o.isValidElement(t)&&e},n.reset=function(){n.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0},(function(){return n.updateState({run:_a,args:[]})}))},n.findFirstVisibleErroredProperty=function(e,t){for(var r=[],o=0;o<t.length;o++)r.push(t[o].propertyName);var i={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isProperty()&&!e.disabled()&&!e.hidden()&&r.includes(e.getPropertyName()))return t.element=e,!0}),i),i.element},n.findFirstVisibleEnabledPropertyElement=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return(!dr(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)}),t),t.element},n.findHighlightedButton=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0}),t),t.element},n.isRadioPossibleOptionsAllDisabled=function(e){for(var t=$t.getKeys(e.possibleOptions),n=!0,r=0;r<t.length;r++)n=n&&e.possibleOptions[t[r]].isDisabled;return n},n.findPropertyElementByPropertyName=function(e,t,r){var o={};return n.propertiesVisitorProcessingDataProperty(e,(function(e,o){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!dr(e)||r&&!$t.isEmptyString(xn.normalizeValueToDisplayDescriptionPossibleOptions(e,r))))return(!dr(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(o.element=e,!0)}),o),o.element},n.onUpdateValue=function(e,t,r){if(n.state.viewEventHandler){n.pendingPropertyValue(e,t);var o=function(){n.state.viewEventHandler.updateModelPropertyValue(e,t,r).then((function(){n.updatePropertyValues()}))};r===de.finished?setTimeout(o,1):o()}},n.onUpdatePrefill=function(e,t){if(n.state.viewEventHandler){var r=function(){n.updateDisplayValue(e.displayId,t)};n.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(r,r)}},n.updateState=function(e){if(e&&n.pendingUpdates.push(e),n.wrapper.current&&n.pendingUpdates.length>0){var t=n.pendingUpdates[0];n.pendingUpdates.splice(0,1),n.wrapper.current.update(t,(function(){return n.updateState()}))}},n.getTelemetryLogger=function(){var e,t,r,o,i=null===(t=null===(e=n.props.elementFactory)||void 0===e?void 0:e.isReactNative)||void 0===t?void 0:t.call(e),a=null===(r=n.props.callbacksIn)||void 0===r?void 0:r.telemetryLogger,s=null===(o=n.props.elementFactory)||void 0===o?void 0:o.telemetryLogger;return i&&s?n.props.elementFactory.telemetryLogger(a):a||new to},n.initPidl=function(){var e,t=n.props,r=t.userContext,o=t.returnOptions,i=t.displayOptions,a=t.telemetryOptions,s=t.callbacksIn,l=t.transformersIn,c=t.onShowHideBusy,u=t.pidlsdkMock,d=t.pidlPayload,p=co({},l),h=co(co({},s),{telemetryLogger:n.getTelemetryLogger(),view:s&&s.view?s.view:{initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},r={},o={},i=n.transformPage(e.pageElement,e.displaySettings);for(var a in Ea(i.children,t,r),r)r.hasOwnProperty(a)&&(o[a]=e.viewEventHandler.getModelPropertyValue(a)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=n.toggleVisualCaptcha,n.setState({elements:t,properties:r,pageElement:i,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return c&&c(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout((function(){var e,t,r,o;n.state.firstErrorPropertyName&&((null===(t=null===(e=n._propertyElementErrorRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.focus)&&(null===(o=null===(r=n._propertyElementErrorRef)||void 0===r?void 0:r.current)||void 0===o||o.focus()),n.setState({firstErrorPropertyName:void 0}))}),100)},showPropertyError:function(e){return n.showPropertyError(e),!0},showGroupError:function(e){return n.showGroupError(e),!0},showPageError:function(e){return n.setState({pageError:e}),!1},hidePropertyError:function(e){n.hidePropertyError(e)},hidePageError:function(){n.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(n,r,o){if(n&&n.current&&n.current.postMessage){var i=n.current.postMessage(e);t=t&&i}else t=!1})),t},getPageElementValues:function(){return n.wrapper.current?n.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,n){},getVisibleProperties:function(){if(n.wrapper.current&&n.state.pageElement){var e=[];return n.wrapper.current.getPropertyNames([n.state.pageElement],e),e}return[]},updatePrefillControls:function(){n.updatePropertyValues()},updatePropertyValue:function(e,t,r,o){var i=n.state.properties[e];i&&n.updateDisplayValue(i.displayName,r)},setAccessibilityText:function(e,t){n.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null===(t=null===(e=n._modalRef)||void 0===e?void 0:e.current)||void 0===t||t.toggleDisplay(!1)},getViewType:function(){return"reactview"}}});return e=u?u.initMock(r,o,n.eventHandler,i,a,h,p):new $r(r,o,n.eventHandler,co(co({},i),{containerId:i.containerId||""}),h,a,n.privateEventHandler,n.oneDSService,p,d),n.props.operation(e),e},n.moreThanOneBusyBlockPropExists())throw new Error(Tt.onlyOneBusyBlockPropAllowed.debugMessage);return n.eventHandler=function(e,t){var r,o,i,a,s,l,c,u,d,p,h;if(((null===(r=n.props.elementFactory)||void 0===r?void 0:r.createNavigationWrapper)&&(null===t||void 0===t?void 0:t.currentPageIndex)||(null===t||void 0===t?void 0:t.pageId))&&(t.currentPageIndex===n.state.currentPageIndex&&t.pageId===n.state.currentPageId||n.setState({currentPageIndex:null===t||void 0===t?void 0:t.currentPageIndex,currentPageId:null===t||void 0===t?void 0:t.pageId})),(null===(o=n.props.elementFactory)||void 0===o?void 0:o.createNavigationWrapper)&&e===O.pageRefreshed&&(null===(a=null===(i=n._navigationWrapperRef.current)||void 0===i?void 0:i.forceFocusRefRefresh)||void 0===a||a.call(i)),e===O.error&&n.state.pageElement&&((null===(s=null===t||void 0===t?void 0:t.error)||void 0===s?void 0:s.code)===Tt.formSubmissionFailedBadUserInput.code||(null===(l=null===t||void 0===t?void 0:t.error)||void 0===l?void 0:l.code)===Tt.formValidationFailed.code)&&(null===(c=null===t||void 0===t?void 0:t.error)||void 0===c?void 0:c.errors)&&(null===(u=null===t||void 0===t?void 0:t.error)||void 0===u?void 0:u.errors.length)>0&&((null===(d=null===t||void 0===t?void 0:t.error)||void 0===d?void 0:d.errors[0].propertyName)||(null===(p=null===t||void 0===t?void 0:t.error)||void 0===p?void 0:p.errors[0].groupDisplayId))){var m=n.findFirstVisibleErroredProperty(n.state.pageElement.children,t.error.errors);n.setState({firstErrorPropertyName:null!==(h=null===m||void 0===m?void 0:m.getPropertyName())&&void 0!==h?h:t.error.errors[0].propertyName})}return e===O.propertySelected&&n.setState({disableFocusOnLoad:!1,lastFocusedPropertyName:null===t||void 0===t?void 0:t.propertyName}),e===O.selectionChanged&&n.setState({disableFocusOnLoad:!1,lastFocusedPropertyName:null===t||void 0===t?void 0:t.propertyName,lastFocusedPropertyValue:null===t||void 0===t?void 0:t.propertyValue}),n.focusOnPageRefresh(e),n.props.onEvent&&n.props.onEvent(e,t)},n.privateEventHandler=function(e,t){e===L.propertyUnselected&&n.setState({lastFocusedPropertyName:void 0,firstErrorPropertyName:void 0}),e===L.success&&n.reset(),n.focusOnPageRefresh(e)},n.props&&n.props.elementFactory&&n.props.elementFactory.getOneDSService&&(n.oneDSService=n.props.elementFactory.getOneDSService()),n.wrapper=o.createRef(),n.pendingUpdates=[],n.iFrameInnerRefs=[],n.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,lastFocusedPropertyName:void 0,lastFocusedPropertyValue:void 0,firstErrorPropertyName:void 0,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad},n}return lo(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;Hr.set(e||yo),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl())},t.prototype.wrapGroupedElements=function(e,t){var n=this.state.pageError;return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?o.createElement(o.Fragment,null,t):o.createElement("div",{className:a("pidl-react-page-error",{"d-none":!n||!n.message})},t)},t.prototype.render=function(){var e=this.props,t=e.displayOptions,n=e.children,r=e.onPropertyChange,i=e.elementFactory,a=e.busyBlockElement,s=e.propertyElementRef,l=e.theme,c=this.state,u=c.pageElement,d=c.viewEventHandler,p=c.pageError,h=c.displaySettings,m=c.eventHub,f=c.firstErrorPropertyName,g=c.lastFocusedPropertyName,v=c.lastFocusedPropertyValue,y=t;a&&o.isValidElement(a)&&(y.busyBlockShowHideHandler=this.busyBlockShowHide);var b=n;if(this.pidlControlApi&&u&&d){this.attachFocusRef(u,s,f,g,v),this.attachModalRef(u);var C=u.children.map(ha(d,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs)),S=new Map,x=u.keyPidlActions;Object.keys(x||{}).forEach((function(e){var t=x[e];S.set(e,(function(){d.invokePidlAction(t)}))}));var _=(null===i||void 0===i?void 0:i.createNavigationWrapper)?i.createNavigationWrapper(C,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,S):o.createElement(o.Fragment,null,C);b=o.createElement(fa,{ref:this.wrapper,getModelPropertyValue:d.getModelPropertyValue,onPropertyChange:r,pageElement:u,elementFactory:i,displayOptions:y,displaySettings:h,eventHub:m,theme:l,userContext:this.props.userContext},_)}var E=p?o.createElement(hi,{message:p.message}):null;return o.createElement(o.Fragment,null,o.createElement(si.Provider,{value:{elementFactory:i,displayOptions:y,displaySettings:h,theme:l,userContext:this.props.userContext}},o.createElement(o.Fragment,null,this.wrapGroupedElements(i,E))),this.shouldRenderBusyBlock()&&((null===i||void 0===i?void 0:i.createBusyBlockWrapper)?i.createBusyBlockWrapper(o.cloneElement(a)):o.cloneElement(a)),b)},t.prototype.attachFocusRef=function(e,t,n,r,o){var i,a=e.children;if(n)(i=this.findPropertyElementByPropertyName(a,n))&&(i.propertyElementRef=this._propertyElementErrorRef);else{r&&(i=this.findPropertyElementByPropertyName(a,r,o))||(i=this.findFirstVisibleEnabledPropertyElement(a));var s=this.findHighlightedButton(a);i&&(i.isButton()&&s&&(i=s),i.propertyElementRef||(i.propertyElementRef=null!==t&&void 0!==t?t:this._propertyElementRef))}},t.prototype.attachModalRef=function(e){var t;e.children.forEach((function(e){cr(e)&&(t=e)})),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isButton()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingAny=function(e,t,n){if(e){var r=t(e,n);return r||(!(e.children&&e.children.length>0)||n&&n.stopDescendantsProcessing?void(n&&delete n.stopDescendantsProcessing):this.propertiesVisitorProcessingAny(e.children,t,n))}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:Sa,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:ba,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:xa,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:Ca,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:va,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:ga,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:ya,args:[e]})},t.prototype.splitChildren=function(e,t){var n=uo([],e.children,!0);if(!n||!n.length)return n;var r=n[n.length-1];if(!cr(r)||!r.isSubmitGroup)return n;(null===r||void 0===r?void 0:r.isSubmitGroup)&&this.setExternalControlNames(r);var o=r.operationType,i=r.pidlIdentity,a=r.isLinkedPidl;n.pop();var s={displayId:w.pageBlock,displayType:ct.group,displayName:null,styleHints:e.displayDescription.styleHints},l=new wn(T.group,null,s,o,i,a);return l.children=n,r.id=t.submitButtonBlock.id,[l,r]},t.prototype.transformPage=function(e,t){return co(co({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,n=F.gohome,r=F.submit,o=F.next,i=F.prev,a=e.members;a&&a.forEach((function(e){var a;e.displayContent&&(null===(a=e.pidlAction)||void 0===a?void 0:a.type)&&(e.pidlAction.type==n||e.pidlAction.type==r||e.pidlAction.type==o||e.pidlAction.type==i)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})})),this.pidlExternalControlProps=t},t.defaultProps={env:yo},t}(o.Component),wa=function(e){function t(t,n){var r=e.call(this,t)||this;return r.moveNextPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.moveNextPage)&&r.pidlRef.current.moveNextPage()},r.submitPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.submitPage)&&r.pidlRef.current.submitPage()},r.movePrevPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.movePrevPage)&&r.pidlRef.current.movePrevPage()},r.cancel=function(){return!(!r.pidlRef.current||!r.pidlRef.current.cancel)&&r.pidlRef.current.cancel()},r.getPidlExternalControlPropsMap=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlExternalControlPropsMap?r.pidlRef.current.getPidlExternalControlPropsMap():null},r.getSelectedResource=function(){return r.pidlRef.current&&r.pidlRef.current.getSelectedResource()},r.getPidlPayload=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlPayload()},r.postMessageToChildIFrames=function(e){return!(!r.pidlRef.current||!r.pidlRef.current.postMessageToChildIFrames)&&r.pidlRef.current.postMessageToChildIFrames(e)},r.implementationMissing=function(e,t,n){var o,i,a;if(!r.pidlRef.current)return null;var s=null===(a=null===(i=null===(o=r.pidlRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.state)||void 0===a?void 0:a.eventHub;null===s||void 0===s||s.implementationMissing(e,t,n)},r.updateChildIFramesHeight=function(e){r.pidlRef.current&&r.pidlRef.current.updateChildIFramesHeight&&r.pidlRef.current.updateChildIFramesHeight(e)},r.pidlRef=o.createRef(),r.pidlOperation=n,r}return lo(t,e),t.prototype.render=function(){return o.createElement(ka,co({},this.props,{ref:this.pidlRef,operation:this.pidlOperation}),this.props.children)},t}(o.Component),Ia=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addAddress(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return lo(t,e),t}(wa),Pa=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,n,r,o,i,a,s){var l={operation:bo.Operation,type:a||bo.DefaultAddressType,scenario:e,country:n,language:r,partner:o,setAsDefaultBilling:e===t.AddressScenario.profile||s};return i&&(l=co(co({},l),i)),l},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===bo.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.scenario,c=e.addressType,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onFailure,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.prefillData,b=e.pidlsdkMock,C=e.telemetryLogger,S=e.telemetryOptions,x=e.propertyElementRef,_=e.onPageRendered,E=e.setAsDefaultBilling,k=e.headers,w=e.callbacksIn,I=this.state.styleProvider,P=this.compileParameters(l,a,s,u,r,c,E),T=this.compileReturnOptions(p,h,m);return i.createElement(ci.Provider,{value:{styleProvider:I}},i.createElement(Ia,{busyBlockElement:o,displayOptions:{containerId:bo.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},pidlDocInfo:{resourceType:bo.ResourceType,parameters:P},env:n,returnOptions:T,onEvent:this.onEvent,userContext:{authToken:t,userId:bo.UserId,additionalHeaders:k},elementFactory:d,prefillData:y,pidlsdkMock:b,callbacksIn:co(co({},w),{telemetryLogger:C}),telemetryOptions:S,propertyElementRef:x,onPageRendered:_}))},n}(i.Component),Ta=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addPaymentInstrument(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return lo(t,e),t}(wa),Da=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=i.createRef(),r.compileParameters=function(e,t,n,r,o,i,a){var s={operation:To.Operation,country:e,language:t,partner:n,completePrerequisites:a,type:i,family:o};return r&&(s=co(co({},s),r)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n,o,i){return{urls:{success:e,failure:t},callbacks:{success:n,failure:r.FailureHandler,gohome:i}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=co({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===To.ViewTermsId)&&i(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddPaymentInstrument,s,l,c,u,d);return r.state={styleProvider:p},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.completePrerequisites,s=e.country,l=e.language,c=e.partner,u=e.paymentFamily,d=e.paymentType,p=e.elementFactory,h=e.onSuccess,m=e.onFailure,f=e.onCancel,g=e.showSubmitBlock,v=void 0===g||g,y=e.busyBlockShowHideHandler,b=e.prefillData,C=e.pidlsdkMock,S=(e.telemetryLogger,e.telemetryOptions),x=e.propertyElementRef,_=e.onPageRendered,E=e.headers,k=e.greenId,w=e.redirectionSuccessUrl,I=e.redirectionFailureUrl,P=e.serviceOverrides,T=this.state.styleProvider,D=this.compileParameters(s,l,c,r,u,d,a),A=this.compileReturnOptions(w,I,h,m,f),R=this.compileCallbacks(),N=this.compileOptions(k);return i.createElement(ci.Provider,{value:{styleProvider:T}},i.createElement(Ta,{busyBlockElement:o,displayOptions:{containerId:To.ContainerId,busyBlockShowHideHandler:y,showSubmitBlock:v},pidlDocInfo:{resourceType:To.ResourceType,parameters:D},env:n,returnOptions:A,onEvent:this.onEvent,userContext:{authToken:t,userId:To.UserId,additionalHeaders:E,serviceOverrides:P},elementFactory:p,prefillData:b,pidlsdkMock:C,callbacksIn:R,telemetryOptions:S,propertyElementRef:x,onPageRendered:_,ref:this.baseComponentRef,options:N}))},n}(i.Component),Aa=function(e){function t(t){var n=this,r=co(co({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return n=e.call(this,t,(function(e){return e.applyResource(r,n.props.prefillData,n.props.options)}))||this,n}return lo(t,e),t}(wa),Ra=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.paymentFamily,s=e.paymentType,l=e.scenario,c=e.prefillData,u=e.provider,d=e.channel,p=e.referrerId,h=e.sessionId,m=e.ocid,f={operation:Ro.Operation,country:t,language:n,partner:o,scenario:l,type:s,family:a,prefillData:c,provider:u,channel:d,referrerId:p,sessionId:h,ocid:m};return i&&(f=co(co({},f),i)),f},r.FailureHandler=function(e){var t,n,o,i=null===(o=null===(n=null===(t=null===ao||void 0===ao?void 0:io)||void 0===t?void 0:t.errorMessages)||void 0===n?void 0:n.pollingTimedOut)||void 0===o?void 0:o.code;i&&e.code===i.toString()?r.props.onTimeOut(e):r.props.onFailure(e)},r.compileReturnOptions=function(e,t,n,o){return{urls:o,callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=co({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.onNavigate;i&&e===O.navigate&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ApplyPaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,h=e.pidlsdkMock,m=e.prefillData,f=e.telemetryOptions,g=e.propertyElementRef,v=(e.onEvent,e.onPageRendered),y=e.headers,b=e.useWebView2,C=this.state.styleProvider,S=this.compileParameters(),x=this.compileReturnOptions(a,s,l,c),_=this.compileCallbacks();return i.createElement(ci.Provider,{value:{styleProvider:C}},i.createElement(Aa,{busyBlockElement:r,displayOptions:{containerId:Ro.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b},pidlDocInfo:{resourceType:Ro.ResourceType,parameters:S},env:n,returnOptions:x,onEvent:this.onEvent,userContext:{authToken:t,userId:Ro.UserId,additionalHeaders:y},elementFactory:o,prefillData:m,pidlsdkMock:h,callbacksIn:_,telemetryOptions:f,propertyElementRef:g,onPageRendered:v}))},n}(i.Component),Na=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return lo(t,e),t}(wa),Ma=function(e){function t(t){var n=e.call(this,t,(function(e){return e.applyResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return lo(t,e),t}(wa),Fa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchasePendingState(n.props.parameters)}))||this;return n}return lo(t,e),t}(wa),Ba=function(e){function n(n){var r=e.call(this,n)||this;r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:_o.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.piid,a=e.orderId,s=e.sessionId;return{piResourceInfo:{resourceType:_o.ResourceType,parameters:{market:t,language:n,partner:o,sessionId:s,orderId:a},id:i},sessionId:s,orderId:a,options:{}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onSuccess,n=e.onCancel,o=e.redirectReturnUrls,i=co({},o),a=i.success,s=i.failure,l=i.gohome;return{callbacks:{success:t,failure:r.FailureHandler,gohome:n},urls:{success:a,failure:s,gohome:l}}},r.compileCallbacksIn=function(){return co(co({},r.props.callbacksIn),{telemetryLogger:r.props.telemetryLogger})};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ConfirmPayment,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.pidlsdkMock,o=e.propertyElementRef,a=e.telemetryOptions,s=e.onEvent,l=e.onPageRendered,c=e.elementFactory,u=e.busyBlockElement,d=this.state.styleProvider,p=this.compileDisplayOptions(),h=this.compileParameters(),m=this.compileReturnOptions(),f=this.compileCallbacksIn();return i.createElement(ci.Provider,{value:{styleProvider:d}},i.createElement(Fa,{busyBlockElement:u,displayOptions:p,parameters:h,env:n,returnOptions:m,userContext:{authToken:t,userId:_o.UserId},onEvent:s,elementFactory:c,pidlsdkMock:r,callbacksIn:f,telemetryOptions:a,propertyElementRef:o,onPageRendered:l}))},n}(i.Component),Oa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.createPaymentSession(n.props.paymentSessionOrData)}))||this;return n}return lo(t,e),t}(wa),La=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return lo(t,e),t}(wa),Ha=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i){var a=co({operation:So.Operation,type:So.AddressType,scenario:e},{country:t,language:n,partner:r,addressId:i});return o&&(a=co(co({},a),o)),a},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===bo.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.addressId,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.scenario,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onFailure,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,_=this.state.styleProvider,E=this.compileParameters(s,l,c,u,o,n),k=this.compileReturnOptions(p,h,m);return i.createElement(ci.Provider,{value:{styleProvider:_}},i.createElement(La,{busyBlockElement:a,displayOptions:{containerId:So.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},resourceInfo:{id:n,resourceType:So.ResourceType,parameters:{}},pidlDocInfo:{resourceType:So.ResourceType,parameters:E},env:r,returnOptions:k,onEvent:this.onEvent,userContext:{authToken:t,userId:So.UserId,additionalHeaders:x},elementFactory:d,pidlsdkMock:y,callbacksIn:{telemetryLogger:b},propertyElementRef:C,onPageRendered:S}))},n}(i.Component),Va=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return lo(t,e),t}(wa),za=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=i.createRef(),r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Ao.ViewTermsId)&&i(t),o&&o(e,t)},r.compileParameters=function(e,t,n,r,o,i){var a={country:e,language:t,partner:o,type:n,family:r};return i&&(a=co(co({},a),i)),a},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.EditPaymentInstrument,s,l,c,u,d);return r.state={styleProvider:p},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.parameters,l=e.busyBlockElement,c=e.country,u=e.language,d=e.partner,p=e.elementFactory,h=e.onSuccess,m=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,_=e.callbacksIn,E=this.state.styleProvider,k=this.compileParameters(c,u,r,o,d,s),w=this.compileReturnOptions(h,m);return i.createElement(ci.Provider,{value:{styleProvider:E}},i.createElement(Va,{busyBlockElement:l,env:a,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:Ao.UserId,additionalHeaders:x},elementFactory:p,pidlsdkMock:y,callbacksIn:co(co({},_),{telemetryLogger:b}),propertyElementRef:C,onPageRendered:S,displayOptions:{containerId:Ao.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g},resourceInfo:{id:n,resourceType:Ao.ResourceType,parameters:{partner:d}},pidlDocInfo:{resourceType:Ao.ResourceType,parameters:k},ref:this.baseComponentRef}))},n}(i.Component),Ua=function(e){function t(t){var n=e.call(this,t,(function(e){return e.fundStoredValue(n.props.fundStoredValueParams)}))||this;return n}return lo(t,e),t}(wa),Wa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData,n.props.containerRef)}))||this;return n}return lo(t,e),t}(wa),Ga=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return lo(t,e),t}(wa);(ma=t.RiskPurchaseType||(t.RiskPurchaseType={})).CVV="cvv",ma.SMS="sms";var ja,qa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return lo(t,e),t}(wa),Ka=function(e){function n(n){var r=e.call(this,n)||this;r.HandleRiskChallengeInternalRef=i.createRef(),r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Oo.ViewTermsId)&&i(t),o&&o(e,t)},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:xo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},r.compileParameters=function(){var e=r.props,t=e.piid,n=e.language,o=e.country,i=e.partner,a=e.type,s=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:n,market:o,partner:i},resourceType:xo.ResourceType},riskChallengeData:[a],sessionId:s}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:r.onSuccess,failure:r.FailureHandler,gohome:t}}},r.onSuccess=function(e){var n=r.props,o=n.onSuccess;n.type===t.RiskPurchaseType.SMS?o({challengeType:t.RiskPurchaseType.SMS}):o(e)},r.compileCallbacksIn=function(){var e=r.props,n=e.onSuccess,o=e.telemetryLogger,i=e.callbacksIn,a=e.type,s=co(co({},i),{telemetryLogger:o});return a===t.RiskPurchaseType.CVV&&(s=co(co({},s),{submit:function(e){var t=null===e||void 0===e?void 0:e.data;n(t)}})),s},r.transformPidlString=function(e){return function(t,n){var r=n;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"===typeof n&&(r={value:n}):e.error(new Pt.unexpectedError(Tt.inputParameterMissing,["request url"])):e.error(new Pt.unexpectedError(Tt.inputParameterMissing,["request"])),r}},r.moveNextPage=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},r.movePrevPage=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},r.cancel=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RiskChallenge,s,l,c,u,d);return r.state={styleProvider:p},r}return lo(n,e),n.prototype.render=function(){var e=this,t=this.state.styleProvider,n=this.props,r=n.authToken,o=n.busyBlockElement,a=n.env,s=n.elementFactory,l=n.pidlsdkMock,c=n.propertyElementRef,u=n.onPageRendered,d=n.telemetryOptions,p=n.headers,h=this.compileDisplayOptions(),m=this.compileParameters(),f=this.compileReturnOptions(),g=this.compileCallbacksIn();return i.createElement(ci.Provider,{value:{styleProvider:t}},i.createElement(li.Consumer,null,(function(t){return i.createElement(qa,{busyBlockElement:o,displayOptions:h,parameters:m,env:a,returnOptions:f,userContext:{authToken:r,userId:xo.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:s,pidlsdkMock:l,callbacksIn:g,telemetryOptions:d,propertyElementRef:c,onPageRendered:u,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})})))},n}(i.Component),Ya=function(e){function t(t){var n=e.call(this,t,(function(e){return e.listAddress(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return lo(t,e),t}(wa),Xa=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i,a){var s={operation:i,scenario:e,type:a||Po.DefaultAddressType,country:t,language:n,partner:r};return o&&(s=co(co({},s),o)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ListAddress,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.scenario,u=e.elementFactory,d=e.onSuccess,p=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,f=void 0===m||m,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=e.telemetryLogger,b=e.telemetryOptions,C=e.addressType,S=e.propertyElementRef,x=e.onPageRendered,_=e.onEvent,E=e.callbacksIn,k=e.headers,w=this.state.styleProvider,I=this.compileParameters(c,a,s,l,r,Po.Operation,C),P=this.compileReturnOptions(d,p,h);return i.createElement(ci.Provider,{value:{styleProvider:w}},i.createElement(Ya,{busyBlockElement:o,displayOptions:{containerId:Po.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f},pidlDocInfo:{resourceType:Po.ResourceType,parameters:I},env:n,returnOptions:P,onEvent:_,userContext:{authToken:t,userId:Po.UserId,additionalHeaders:k},elementFactory:u,pidlsdkMock:v,callbacksIn:co(co({},E),{telemetryLogger:y}),telemetryOptions:b,propertyElementRef:S,onPageRendered:x}))},n}(i.Component),Qa=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return lo(t,e),t}(wa),Za=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a={operation:Fo.Operation,country:t,language:n,partner:o,filters:{id:r.props.paymentInstrument.id}};return i&&(a=co(co({},a),i)),a},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},r.eventHandler=function(e,t){var n=r.props,o=n.onChange,i=n.onEvent,a=n.paymentInstrument;e===O.click&&(null===t||void 0===t?void 0:t.id)===Fo.ChangeButtonId&&o&&o(a.id),i&&i(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=o.baseDisabledStyleOverrides,p=o.scenarioDisabledStyleOverrides,h=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.PaymentInstrumentDetails,a,s,l,c,u,null,d,p);return r.state={styleProvider:h},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,h=e.onPageRendered,m=e.callbacksIn,f=e.headers,g=this.state.styleProvider,v=this.compileParameters(),y=this.compileReturnOptions();return i.createElement(ci.Provider,{value:{styleProvider:g}},i.createElement(Qa,{busyBlockElement:r,displayOptions:{containerId:Fo.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s},pidlDocInfo:{resourceType:Fo.ResourceType,parameters:v},env:n,returnOptions:y,onEvent:this.eventHandler,userContext:{authToken:t,userId:Fo.UserId,additionalHeaders:f},elementFactory:o,pidlsdkMock:c,callbacksIn:co(co({},m),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:h}))},n}(i.Component),Ja=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateProfile(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return lo(t,e),t}(wa),$a=function(e){function n(n){var r=e.call(this,n)||this;r.compilePidlDocParameters=function(e,t,n,r){var o={operation:Mo.Operation,country:e,language:t,partner:n,type:"consumer"};return r&&(o=co(co({},o),r)),o},r.compileResourceParameters=function(e,t,n,r){return{country:e,language:t,partner:n,type:"consumer"}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=Ge,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===To.ViewTermsId)&&i(t),o&&o(e,t)};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ProfilePrerequisite,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,f=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,y=e.propertyElementRef,b=e.profileId,C=e.onPageRendered,S=e.callbacksIn,x=e.headers,_=this.state.styleProvider,E=this.compilePidlDocParameters(a,s,l,r),k=this.compileResourceParameters(a,s,l,r),w=this.compileReturnOptions(u,d,p);return i.createElement(ci.Provider,{value:{styleProvider:_}},i.createElement(Ja,{busyBlockElement:o,displayOptions:{containerId:Mo.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:m},pidlDocInfo:{resourceType:Mo.ResourceType,parameters:E},resourceInfo:{resourceType:Mo.ResourceType,parameters:k,id:b},env:n,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:Mo.UserId,additionalHeaders:x},elementFactory:c,pidlsdkMock:g,callbacksIn:co(co({},S),{telemetryLogger:v}),propertyElementRef:y,onPageRendered:C}))},n}(i.Component),es=function(e){function t(t){var n=e.call(this,t,(function(e){return e.replaceResource(n.props.pidlDocInfo,n.props.intersectingData,n.props.options)}))||this;return n}return lo(t,e),t}(wa),ts=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchResource({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return lo(t,e),t}(wa),ns=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectPaymentInstrument(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return lo(t,e),t}(wa),rs=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=i.createRef(),r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.allowedPaymentMethods,a=e.defaultPaymentMethod,s=e.parameters,l=e.sessionId,c=e.orderId,u=e.merchantId,d=e.currency,p=e.filters,h=e.classicProduct,m=e.billableAccountId,f={allowedPaymentMethods:(null===i||void 0===i?void 0:i.length)?i:wo.AllowedPaymentMethods,operation:wo.Operation,country:t,language:n,partner:o};return l&&(f.sessionId=l),c&&(f.orderId=c),u&&(f.merchantId=u),d&&(f.currency=d),p&&(f.filters=p),h&&(f.classicProduct=h),m&&(f.billableAccountId=m),a&&(f.defaultPaymentMethod=a),s&&(f=co(co({},f),s)),f},r.failureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel,n=e.onSuccess;return{callbacks:{failure:r.failureHandler,success:n,gohome:t}}},r.isCreditCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Zt.getFunctionExecutionResult({functionName:ko.isCreditCard},{contextData:e})},r.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Zt.getFunctionExecutionResult({functionName:ko.isCreditCardExpired},{contextData:e})},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,i=n.paymentInstrumentSelectedHandler,a=n.userPiAvailableCheckHandler;return e==O.pageRefreshed&&t&&"noPaymentInstrumentSelectPage"==(null===t||void 0===t?void 0:t.pageId)&&(r.setState({userPiExists:!1}),a&&a(r.state.userPiExists)),i&&e===O.resourceSelected?i(r.getSelectedResource()):o?o(e,t):void 0},r.getRef=function(){return r.baseComponentRef},r.getSelectedResource=function(){var e,t,n,o,i,a,s,l,c,u,d,p=(null===(n=null===(t=null===(e=r.baseComponentRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.getSelectedResource())||void 0===n?void 0:n.instance)||{};return{id:p.id,paymentMethodFamily:null===(o=p.paymentMethod)||void 0===o?void 0:o.paymentMethodFamily,paymentMethodType:null===(i=p.paymentMethod)||void 0===i?void 0:i.paymentMethodType,displayName:null===(s=null===(a=p.paymentMethod)||void 0===a?void 0:a.display)||void 0===s?void 0:s.name,email:null===(l=p.details)||void 0===l?void 0:l.email,lastFourDigits:null===(c=p.details)||void 0===c?void 0:c.lastFourDigits,isExpired:r.isCreditCard(p)?r.isCreditCardExpired(p):void 0,soldToAddressRequired:null===(d=null===(u=p.paymentMethod)||void 0===u?void 0:u.properties)||void 0===d?void 0:d.soldToAddressRequired}};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,h=o.scenarioDisabledStyleOverrides,m=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentInstrument,s,l,c,u,d,p,h);return r.state={styleProvider:m,userPiExists:!0},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,h=(e.onEvent,e.onPageRendered),m=e.headers,f=e.callbacksIn,g=this.state.styleProvider,v=this.compileParameters(),y=this.compileReturnOptions();return i.createElement(ci.Provider,{value:{styleProvider:g}},i.createElement(ns,{busyBlockElement:r,displayOptions:{containerId:wo.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s},pidlDocInfo:{resourceType:wo.ResourceType,parameters:v},env:n,returnOptions:y,onEvent:this.onEventInternal,userContext:{authToken:t,userId:wo.UserId,additionalHeaders:m},elementFactory:o,pidlsdkMock:c,callbacksIn:co(co({},f),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:h,ref:this.baseComponentRef}))},n}(i.Component),os=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return lo(t,e),t}(wa),is=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=i.createRef(),r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.defaultPaymentMethod,s=e.allowedPaymentMethods,l=e.filters,c=e.sessionId,u=e.orderId,d=e.merchantId,p=e.currency,h=e.pmGroupPageId,m={allowedPaymentMethods:(null===s||void 0===s?void 0:s.length)?s:Co.AllowedPaymentMethods,operation:Co.Operation,country:t,language:n,partner:o};return a&&(m.defaultPaymentMethod=a),c&&(m.sessionId=c),u&&(m.orderId=u),d&&(m.merchantId=d),p&&(m.currency=p),l&&(m.filters=l),h&&(m.pmGroupPageId=h),i&&(m=co(co({},m),i)),m},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentMethod,s,l,c,u,d);return r.state={styleProvider:p},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.showSubmitBlock,u=void 0===c||c,d=e.busyBlockShowHideHandler,p=e.pidlsdkMock,h=e.callbacksIn,m=e.propertyElementRef,f=e.onEvent,g=e.onPageRendered,v=e.telemetryLogger,y=e.headers,b=this.state.styleProvider,C=this.compileParameters(),S=this.compileReturnOptions(a,s,l);return i.createElement(ci.Provider,{value:{styleProvider:b}},i.createElement(os,{busyBlockElement:r,displayOptions:{containerId:Co.ContainerId,busyBlockShowHideHandler:d,showSubmitBlock:u,disableFocusOnLoad:this.props.disableFocusOnLoad},pidlDocInfo:{resourceType:Co.ResourceType,parameters:C},env:n,returnOptions:S,onEvent:f,userContext:{authToken:t,userId:Co.UserId,additionalHeaders:y},elementFactory:o,pidlsdkMock:p,callbacksIn:co(co({},h),{telemetryLogger:v}),propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef}))},n}(i.Component),as=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return lo(t,e),t}(wa),ss=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return lo(t,e),t}(wa),ls=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return lo(t,e),t}(wa),cs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.showResource({pidlDocInfo:n.props.pidlDocInfo,prefillData:n.props.prefillData,options:n.props.options})}))||this;return n}return lo(t,e),t}(wa),us=function(e){function t(t){var n=e.call(this,t,(function(e){return e.testHookRenderPidlPage(n.props.pidlDocument,n.props.operation,n.props.pageIndex||0,n.props.prefillData)}))||this;return n}return lo(t,e),t}(wa),ds=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return lo(t,e),t}(wa),ps=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return lo(t,e),t}(wa);(ja=t.ValidateAddressPages||(t.ValidateAddressPages={}))[ja.validateAddressPage=0]="validateAddressPage",ja[ja.editAddressPage=1]="editAddressPage";var hs,ms=function(e){function n(n){var r=e.call(this,n)||this;return r.onValidateAddressEvent=function(e,n){var o=r.props,i=o.onEvent,a=o.currentPageChangeHandler;if(e==O.pageRefreshed){switch(n.pageId){case"addressSuggestionPage1":r.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":r.setState({currentPage:t.ValidateAddressPages.editAddressPage})}a&&a(r.state.currentPage)}if(i)return i(e,n)},r.getCurrentPage=function(){return r.state.currentPage},r.state={currentPage:t.ValidateAddressPages.validateAddressPage},r}return lo(n,e),n.prototype.compileParameters=function(e,t,n,r,o,i){var a=co({operation:Eo.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=co(co({},a),i)),a},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.userContext,n=e.env,r=e.parameters,o=e.country,a=e.language,s=e.partner,l=e.addressId,c=e.addressType,u=e.elementFactory,d=e.returnOptions,p=e.pidlSdkRef,h=e.showSubmitBlock,m=void 0===h||h,f=e.busyBlockShowHideHandler,g=(e.onEvent,e.callbacksIn),v=this.compileParameters(o,a,s,l,c,r);return i.createElement(ps,{displayOptions:{containerId:Eo.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:m},pidlDocInfo:{resourceType:Eo.ResourceType,parameters:v},env:n,returnOptions:d,userContext:t,elementFactory:u,ref:p,onEvent:this.onValidateAddressEvent,callbacksIn:g})},n}(i.Component),fs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateResource(n.props.pidlDocInfo)}))||this;return n}return lo(t,e),t}(wa),gs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handleCheckout(n.props.checkoutParams)}))||this;return n}return lo(t,e),t}(wa),vs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.deleteResource({resourceInfo:n.props.resourceInfo,resource:n.props.resource,pidlDocInfo:n.props.pidlDocInfo,options:n.props.options||{}})}))||this;return n}return lo(t,e),t}(wa),ys=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(e,t,n,r,o,i){return{id:i,resourceType:Do.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:n,family:r,type:o}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.DeletePaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.busyBlockElement,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,h=e.onCancel,m=e.showSubmitBlock,f=void 0===m||m,g=e.busyBlockShowHideHandler,v=e.telemetryLogger,y=e.headers,b=e.callbacksIn,C=this.state.styleProvider,S=this.compileParameters(l,c,u,o,r,n),x=this.compileReturnOptions(p,h);return i.createElement(ci.Provider,{value:{styleProvider:C}},i.createElement(vs,{returnOptions:x,busyBlockElement:s,env:a,options:void 0,resourceInfo:S,elementFactory:d,callbacksIn:co(co({},b),{telemetryLogger:v}),userContext:{authToken:t,userId:Do.UserId,additionalHeaders:y},displayOptions:{containerId:Do.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f}}))},n}(i.Component),bs=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData)}))||this;return n}return lo(t,e),t}(wa),Cs=function(e){function n(n){var r=e.call(this,n)||this;r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock;return{containerId:Bo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:void 0===n||n}},r.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?r.props.onCancel(e):"TimedOut"===e.challengeStatus?r.props.onFailure(e):r.props.onSuccess(e)},r.failureHandler=function(e){var t=null===e||void 0===e?void 0:e.error;r.props.onFailure(null===t||void 0===t?void 0:t.innererror)},r.compileReturnOptions=function(){var e=r.props.onCancel;return{callbacks:{success:r.successHandler,failure:r.failureHandler,gohome:e}}},r.compileCallbacksIn=function(){return{telemetryLogger:r.props.telemetryLogger}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.HandlePaymentChallenge,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.state.styleProvider,t=this.props,n=t.authToken,r=t.busyBlockElement,o=t.env,a=t.elementFactory,s=t.headers,l=t.paymentSessionOrData,c=t.pidlsdkMock,u=t.propertyElementRef,d=t.onEvent,p=t.onPageRendered,h=t.telemetryOptions,m=this.compileDisplayOptions(),f=this.compileReturnOptions(),g=this.compileCallbacksIn();return i.createElement(ci.Provider,{value:{styleProvider:e}},i.createElement(bs,{busyBlockElement:r,displayOptions:m,env:o,returnOptions:f,userContext:{authToken:n,userId:Bo.UserId,additionalHeaders:s},paymentSessionOrData:l,onEvent:d,elementFactory:a,pidlsdkMock:c,callbacksIn:g,telemetryOptions:h,propertyElementRef:u,onPageRendered:p}))},n}(i.Component);!function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),(hs=t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}))[hs.Select=0]="Select";var Ss,xs,_s=function(e){function n(n){var r=e.call(this,n)||this;return r.SelectPaymentInstrumentRef=i.createRef(),r.SelectPaymentMethodRef=i.createRef(),r.AddPaymentInstrumentRef=i.createRef(),r.EditPaymentInstrumentRef=i.createRef(),r.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Zt.getFunctionExecutionResult({functionName:ko.isCreditCardExpired},{contextData:e})},r.isGiftCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Zt.getFunctionExecutionResult({functionName:ko.isEwalletStoredValue},{contextData:e})},r.onSelectPIEvent=function(e,n){var o,i,a=r.props,s=a.onEvent,l=a.paymentInstrumentSelectedHandler;return l&&e===O.resourceSelected&&r.state.currentView===t.AllowedViews.SelectPaymentInstrument?l(null===(i=null===(o=r.SelectPaymentInstrumentRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.getSelectedResource()):s?s(e,n):void 0},r.onSelectPISuccess=function(e){var n,o,i;if(e.resourceActionContext)switch(e.resourceActionContext.action){case"selectResourceType":r.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":r.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":r.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument})}else{var a=e.instance,s=r.props,l=s.onSuccess,c=s.onFailure,u=s.redeemGiftCardHandler,d=Io.RedeemGiftCardLink,p=Io.ManagePaymentInstrument,h=Io.redeemGiftCardHandlerName;if("string"===typeof a){if(a===Io.NewPaymentMethodLink&&r.setState({currentView:t.AllowedViews.SelectPaymentMethod}),a===d)if(u)u();else{var m=null===(o=null===(n=r.SelectPaymentInstrumentRef)||void 0===n?void 0:n.current)||void 0===o?void 0:o.getRef();null===(i=null===m||void 0===m?void 0:m.current)||void 0===i||i.implementationMissing(p,h),c({name:z.missingImplementationError,message:"Implentation of ".concat(null!==h&&void 0!==h?h:"undefined"," missing in ").concat(p),code:"",type:z.missingImplementationError,debugMessage:""})}}else r.isCreditCardExpired(a)?r.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id}):l(a)}},r.onSelectPaymentMethodSuccess=function(e){r.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?r.onSelectPISuccess({operationType:rt.select,instance:Io.RedeemGiftCardLink}):"windowssettings"===$t.toLowerCase(r.props.partner)&&"credit_card"!==$t.toLowerCase(e.paymentMethodFamily)?(0,r.props.onSuccess)(e):r.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},r.onAddPISuccess=function(e){try{var n=e.response;(0,r.props.onSuccess)(n)}catch(o){r.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},r.onEditPISuccess=function(e){r.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},r.cancelSelectPM=function(){r.pmGroupPageId=void 0,r.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:r.pmGroupPageId})},r.cancelAddPI=function(){r.pmGroupPageId=r.state.paymentFamily,r.setState({currentView:t.AllowedViews.SelectPaymentMethod,pmGroupPageId:r.pmGroupPageId})},r.cancelEditPI=function(){r.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},r.moveNextPage=function(){var e,n,o,i,a,s,l,c,u,d,p,h;switch(r.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(o=null===(n=null===(e=r.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=r.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=r.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=r.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.moveNextPage()}},r.movePrevPage=function(){var e,n,o,i,a,s,l,c,u,d,p,h;switch(r.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(o=null===(n=null===(e=r.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=r.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=r.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=r.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.movePrevPage()}},r.cancel=function(){var e,n,o,i,a,s,l,c,u,d,p,h;switch(r.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(o=null===(n=null===(e=r.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.cancel();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=r.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.cancel();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(c=null===(l=r.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===u||u.cancel();break;case t.AllowedViews.EditPaymentInstrument:null===(h=null===(p=null===(d=r.EditPaymentInstrumentRef)||void 0===d?void 0:d.current)||void 0===p?void 0:p.getRef().current)||void 0===h||h.cancel()}},r.cancelSelectPaymentInstrument=function(){var e,n,o;r.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null===(o=null===(n=null===(e=r.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.cancel())},r.cancelOrMovePrevSelectPaymentMethod=function(){var e,n,o;r.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null===(o=null===(n=null===(e=r.SelectPaymentMethodRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.movePrevPage())},r.cancelAddPaymentInstrument=function(){var e,n,o;r.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(o=null===(n=null===(e=r.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.cancel())},r.cancelEditPaymentInstrument=function(){var e,n,o;r.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(o=null===(n=null===(e=r.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.cancel())},r.submitAddPaymentInstrument=function(){var e,n,o;r.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(o=null===(n=null===(e=r.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.moveNextPage())},r.submitEditPaymentInstrument=function(){var e,n,o;r.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(o=null===(n=null===(e=r.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===o||o.moveNextPage())},r.getCurrentView=function(){return r.state.currentView},r.getSelectedResource=function(){var e,n;if(r.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null===(n=null===(e=r.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getSelectedResource()},r.state={currentView:t.AllowedViews.SelectPaymentInstrument,paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:r.props.allowedPaymentMethods},r.pmGroupPageId=void 0,r}return lo(n,e),n.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},n.prototype.componentDidUpdate=function(e,t,n){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},n.prototype.render=function(){var e=this.props,n=e.authToken,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.baseStyleOverrides,l=e.scenarioStyleOverrides,c=e.baseFocusStyleOverrides,u=e.scenarioFocusStyleOverrides,d=e.telemetryLogger,p=e.telemetryOptions,h=e.country,m=e.language,f=e.partner,g=e.elementFactory,v=e.onFailure,y=e.onCancel,b=e.busyBlockShowHideHandler,C=e.pidlsdkMock,S=e.propertyElementRef,x=e.onPageRendered,_=e.onEvent,E=e.completePrerequisites,k=e.viewTermsHandler,w=e.defaultPaymentMethod,I=e.sessionId,P=e.orderId,T=e.merchantId,D=e.currency,A=e.filters,R=e.headers,N=e.showSubmitBlock,M=void 0===N||N,F=this.state,B=F.currentView,O=F.paymentFamily,L=F.paymentType,H=F.paymentInstrumentId,V=F.allowedPaymentMethods;return i.createElement(i.Fragment,null,B===t.AllowedViews.SelectPaymentInstrument&&i.createElement(rs,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:r,onSuccess:this.onSelectPISuccess,onFailure:v,onCancel:y,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,parameters:o,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:this.onSelectPIEvent,allowedPaymentMethods:V,filters:A,sessionId:I,orderId:P,merchantId:T,currency:D,headers:R,showSubmitBlock:M,ref:this.SelectPaymentInstrumentRef}),B===t.AllowedViews.SelectPaymentMethod&&i.createElement(is,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:r,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:v,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,parameters:o,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,defaultPaymentMethod:w,allowedPaymentMethods:V,filters:A,sessionId:I,orderId:P,merchantId:T,currency:D,headers:R,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:M,ref:this.SelectPaymentMethodRef}),B===t.AllowedViews.AddPaymentInstrument&&i.createElement(Da,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:r,onSuccess:this.onAddPISuccess,onFailure:v,onCancel:this.cancelAddPI,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,paymentFamily:O,paymentType:L,completePrerequisites:E,parameters:o,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,viewTermsHandler:k,showSubmitBlock:M,headers:"windowssettings"===$t.toLowerCase(this.props.partner)?co(co({},R),{"x-ms-flight":"PXUsePartnerSettingsService"}):R,ref:this.AddPaymentInstrumentRef}),B===t.AllowedViews.EditPaymentInstrument&&i.createElement(za,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:g,authToken:n,env:r,onSuccess:this.onEditPISuccess,onFailure:v,onCancel:this.cancelEditPI,busyBlockShowHideHandler:b,busyBlockElement:a,country:h,language:m,partner:f,paymentInstrumentId:H,paymentFamily:O,paymentType:L,parameters:o,pidlsdkMock:C,telemetryLogger:d,telemetryOptions:p,propertyElementRef:S,onPageRendered:x,onEvent:_,viewTermsHandler:k,showSubmitBlock:M,headers:"windowssettings"===$t.toLowerCase(this.props.partner)?co(co({},R),{"x-ms-flight":"PXUsePartnerSettingsService"}):R,ref:this.EditPaymentInstrumentRef}))},n}(i.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(Ss||(Ss={})),(xs=t.ManageAddressMode||(t.ManageAddressMode={}))[xs.Select=0]="Select",xs[xs.Edit=1]="Edit";var Es,ks=function(e){function n(n){var r=e.call(this,n)||this;return r.onSuccessWrapper=function(e){"newAddressLink"===e.id&&r.props.onAddNewAddress?r.props.onAddNewAddress(e):"newAddressLink"===e.id?r.setState({currentView:Ss.AddNewAddress}):r.shouldOpenEditView(e)?r.setState({currentView:Ss.EditAddress,addressId:e.instance.id}):r.props.onSuccess(e)},r.shouldOpenEditView=function(e){var n,o,i=r.props,a=i.mode,s=i.scenario;return a===t.ManageAddressMode.Edit||a===t.ManageAddressMode.Select&&!((null===(n=null===e||void 0===e?void 0:e.instance)||void 0===n?void 0:n.first_name)&&(null===(o=null===e||void 0===e?void 0:e.instance)||void 0===o?void 0:o.last_name))&&s===t.AddressScenario.shipping},r.returnToListView=function(){r.setState({currentView:Ss.ListAddress})},r.state={currentView:Ss.ListAddress},r}return lo(n,e),n.prototype.componentDidUpdate=function(e){var t=this.props,n=t.mode,r=t.scenario,o=t.country,i=t.language,a=t.partner,s=t.addressType;e.mode===n&&e.scenario===r&&e.country===o&&e.language===i&&e.partner===a&&e.addressType===s||this.setState({currentView:Ss.ListAddress})},n.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,n=e.scenarioStyleOverrides,r=e.baseFocusStyleOverrides,o=e.scenarioFocusStyleOverrides,a=e.telemetryLogger,s=e.telemetryOptions,l=e.authToken,c=e.env,u=e.addressType,d=e.showSubmitBlock,p=void 0===d||d,h=e.busyBlockElement,m=e.country,f=e.language,g=e.partner,v=e.scenario,y=e.elementFactory,b=e.onFailure,C=e.onCancel,S=e.busyBlockShowHideHandler,x=e.pidlsdkMock,_=e.propertyElementRef,E=e.onPageRendered,k=e.onEvent,w=e.viewTermsHandler,I=e.headers,P=this.state,T=P.addressId,D=P.currentView;return i.createElement(i.Fragment,null,D===Ss.ListAddress&&i.createElement(Xa,{authToken:l,elementFactory:y,env:c,scenario:v,addressType:u,country:m,language:f,partner:g,onSuccess:this.onSuccessWrapper,onFailure:b,onCancel:C,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:h,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:a,telemetryOptions:s,propertyElementRef:_,onPageRendered:E,onEvent:k,headers:I,showSubmitBlock:p}),D===Ss.AddNewAddress&&i.createElement(Pa,{authToken:l,elementFactory:y,env:c,country:m,language:f,partner:g,scenario:v,addressType:u,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:h,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:a,telemetryOptions:s,propertyElementRef:_,onPageRendered:E,onEvent:k,viewTermsHandler:w,headers:I,showSubmitBlock:p}),D===Ss.EditAddress&&i.createElement(Ha,{authToken:l,addressId:T,elementFactory:y,env:c,country:m,scenario:v,language:f,partner:g,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockShowHideHandler:S,onPageRendered:E,onEvent:k,viewTermsHandler:w,telemetryLogger:a,telemetryOptions:s,headers:I,showSubmitBlock:p}))},n}(i.Component),ws=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return lo(t,e),t}(wa);(Es=t.VerifyAddressPages||(t.VerifyAddressPages={}))[Es.verifyAddressPage=0]="verifyAddressPage",Es[Es.editAddressPage=1]="editAddressPage",Es[Es.noAddressSuggestionsPage=2]="noAddressSuggestionsPage";var Is=function(e){function n(n){var r=e.call(this,n)||this;r.VerifyAddressRef=i.createRef(),r.moveNextPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},r.movePrevPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},r.cancel=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},r.submitPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.submitPage()},r.onVerifyAddressEvent=function(e,n){var o=r.props,i=o.onEvent,a=o.currentPageChangeHandler;if(e==O.pageRefreshed)switch(n.pageId){case"addressSuggestionPage1":a&&a(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":a&&a(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":a&&a(t.VerifyAddressPages.noAddressSuggestionsPage)}if(i)return i(e,n)};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=(null===a||void 0===a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.VerifyAddress,s,l,c,u,d);return r.state={styleProvider:p},r}return lo(n,e),n.prototype.compileParameters=function(e,t,n,r,o,i){var a=co({operation:Eo.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=co(co({},a),i)),a},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.env,n=e.parameters,r=e.country,o=e.language,a=e.partner,s=e.addressId,l=e.addressType,c=e.elementFactory,u=e.busyBlockElement,d=e.showSubmitBlock,p=void 0===d||d,h=e.busyBlockShowHideHandler,m=(e.onEvent,e.callbacksIn,e.onSuccess),f=e.onFailure,g=e.onCancel,v=e.headers,y=e.telemetryLogger,b=e.propertyElementRef,C=e.onPageRendered,S=e.pidlsdkMock,x=e.authToken,_=this.state.styleProvider,E=this.compileParameters(r,o,a,s,l,n),k=this.compileReturnOptions(m,f,g);return i.createElement(ci.Provider,{value:{styleProvider:_}},i.createElement(ws,{busyBlockElement:u,displayOptions:{containerId:Eo.ContainerId,busyBlockShowHideHandler:h,showSubmitBlock:p},pidlDocInfo:{resourceType:Eo.ResourceType,parameters:E},env:t,returnOptions:k,onEvent:this.onVerifyAddressEvent,userContext:{authToken:x,userId:Eo.UserId,additionalHeaders:v},elementFactory:c,pidlsdkMock:S,callbacksIn:{telemetryLogger:y},propertyElementRef:b,onPageRendered:C,ref:this.VerifyAddressRef}))},n}(i.Component),Ps=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchTransactions({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return lo(t,e),t}(wa),Ts=function(e){function t(t){return e.call(this,t,(function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})}))||this}return lo(t,e),t}(wa),Ds=function(e){function n(n){var r=e.call(this,n)||this;r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.scenario,s={operation:No.Operation,country:t,language:n,partner:o,scenario:a};return i&&(s=co(co({},s),i)),s},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}};var o=r.props,i=o.elementFactory,a=o.partner,s=o.baseStyleOverrides,l=o.scenarioStyleOverrides,c=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,d=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.OfferPaymentInstrument,a,s,l,c,u);return r.state={styleProvider:d},r}return lo(n,e),n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,h=e.pidlsdkMock,m=e.telemetryOptions,f=e.propertyElementRef,g=e.onEvent,v=e.onPageRendered,y=e.headers,b=e.useWebView2,C=this.state.styleProvider,S=this.compileParameters(),x=this.compileReturnOptions(a,s,l,c);return i.createElement(ci.Provider,{value:{styleProvider:C}},i.createElement(Ts,{busyBlockElement:r,displayOptions:{containerId:No.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b},pidlDocInfo:{resourceType:No.ResourceType,parameters:S},env:n,returnOptions:x,onEvent:g,userContext:{authToken:t,userId:No.UserId,additionalHeaders:y},elementFactory:o,pidlsdkMock:h,telemetryOptions:m,propertyElementRef:f,onPageRendered:v}))},n}(i.Component);t.AddAddress=Pa,t.AddAddressConstants=bo,t.AddPaymentInstrument=Da,t.AddPaymentInstrumentConstants=To,t.AddPaymentInstrumentInternal=Ta,t.AddResource=Na,t.ApplyPaymentInstrument=Ra,t.ApplyPaymentInstrumentConstants=Ro,t.ApplyPaymentInstrumentInternal=Aa,t.ApplyResource=Ma,t.Audio=aa,t.AudioInner=ia,t.BodyBlock=function(e){var t=e.children;return o.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},t.Button=fi,t.ButtonInner=mi,t.ButtonList=bi,t.ButtonListElement=vi,t.ButtonListElementInner=gi,t.ButtonListInner=yi,t.Captcha=Bi,t.CaptchaInner=Fi,t.CheckBox=Si,t.CheckBoxInner=Ci,t.ConfirmPayment=Ba,t.ConfirmPaymentConstants=_o,t.ConfirmPaymentInternal=Fa,t.CreatePaymentSession=Oa,t.DefaultIFrameElement=Ui,t.DeletePaymentInstrument=ys,t.DeletePaymentInstrumentConstants=Do,t.DeleteResource=vs,t.Dropdown=Ai,t.EditAddress=Ha,t.EditAddressConstants=So,t.EditPaymentInstrument=za,t.EditPaymentInstrumentConstants=Ao,t.Error=pi,t.FilePicker=oa,t.FundStoredValue=Ua,t.Group=Ni,t.GroupError=Ri,t.GroupLabel=Li,t.GroupLabelInner=Oi,t.HandleCheckout=gs,t.HandleIndia3DSChallenge=Cs,t.HandleIndia3DSChallengeConstants=Bo,t.HandleIndia3DSChallengeInternal=bs,t.HandlePaymentChallenge=Wa,t.HandlePurchaseRiskChallenge=Ga,t.HandleRiskChallenge=Ka,t.HandleRiskChallengeConstants=xo,t.HandleRiskChallengeInternal=qa,t.Heading=Zi,t.HeadingInner=Qi,t.HelpDialog=Vi,t.HelpDialogInner=Hi,t.Hyperlink=zi,t.IFrameElement=Gi,t.IFrameElementInner=Wi,t.Image=ji,t.ListAddress=Xa,t.ListAddressConstants=Po,t.LogoElement=qi,t.ManageAddress=ks,t.ManagePaymentInstrument=_s,t.ManagePaymentInstrumentConstants=Io,t.Modal=Ti,t.ModalInner=Pi,t.OfferPaymentInstrument=Ds,t.OfferPaymentInstrumentConstants=No,t.OfferPaymentInstrumentInternal=Ts,t.PageAlert=hi,t.PageErrorBlock=function(e){var t=e.children;return o.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},t.PaymentInstrumentDetails=Za,t.PaymentInstrumentDetailsConstants=Fo,t.PaymentInstrumentDetailsInternal=Qa,t.PidlComponent=ka,t.PidlDocBuilder=_i,t.PidlPropertyBuilder=ki,t.PrefillCheckBox=Ii,t.PrefillCheckBoxInner=wi,t.ProfilePrerequisite=$a,t.ProfilePrerequisiteConstants=Mo,t.PropertyLabel=Yi,t.PropertyLabelInner=Ki,t.Radio=Xi,t.ReplaceResource=es,t.ResourceHelpersConstants=ko,t.RiskChallengeConstants=Oo,t.SearchResource=ts,t.SearchTransactions=Ps,t.SelectPaymentInstrument=rs,t.SelectPaymentInstrumentConstants=wo,t.SelectPaymentMethod=is,t.SelectPaymentMethodConstants=Co,t.SelectPaymentMethodInternal=os,t.SelectResource=as,t.SelectResourceType=ss,t.SelectSingleResource=ls,t.ShowResource=cs,t.StyleProviderContext=ci,t.SubHeading=$i,t.SubHeadingInner=Ji,t.TestHookRenderPidl=us,t.Text=ta,t.TextBox=ra,t.TextGroup=Mi,t.TextInner=ea,t.UpdateResource=ds,t.ValidateAddress=ms,t.ValidateAddressConstants=Eo,t.ValidateResource=fs,t.VerifyAddress=Is,t.defaultEnvironment=yo,t.getClassNamesFromStyleHints=function(e){var t=[];if(e)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.push(E.taggedClass+o)}return t},t.getPidlReactCustomProps=di,t.getTagClassNames=ui,t.pidl=ao,t.pidlReactClassPrefix=mo,t.startsWith=fo},68706:function(e,t,n){"use strict";n.d(t,{K:function(){return g}});var r=n(23679),o=n(41630),i=n(47120),a=n(41370),s=n(11421),l=n(64430),c=n(89038),u=n(91072),d=n(39138),p=n(86748),h=n(27072),m=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],f=["queue","extensions","version","sv"],g=function(e){function t(){var n,r,u,g,v=e.call(this)||this;function y(){u=new d.Z,g=new p.Z,r=new h.K}return(0,o.Z)(t,v,(function(e,t){y(),e.initialize=function(n,o){(0,i.Lm)(e,(function(){return"ApplicationInsights:initialize"}),(function(){var i=[g,r];if(o&&(i=i.concat(o)),n||(0,a._y)("You must provide a config object!"),n.channels&&n.channels.length>0){for(var c=!1,d=0;d<n.channels[0].length;d++)if(n.channels[0][d].identifier===u.identifier){c=!0;break}c||n.channels[0].push(u)}else n.channels=[[u]];var p=n.extensionConfig=n.extensionConfig||[];p[u.identifier]=p[u.identifier]||n&&n.channelConfiguration||{},p[g.identifier]=p[g.identifier]||n&&n.propertyConfiguration||{},p[r.identifier]=p[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,i)}catch(h){(0,s.kP)(e.logger,1,514,"Failed to initialize SDK."+(0,l.eU)(h))}}),(function(){return{config:n,extensions:o}}))},e._getDbgPlgTargets=function(){return[v.config]},e.getPropertyManager=function(){return g},e.getPostChannel=function(){return u},e.getWebAnalyticsExtension=function(){return r},(0,a.Vb)(e,(function(){return r}),["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&((0,a.le)(n),(0,a.rW)(e,(function(n,r){if((0,a.HD)(n)&&!(0,a.mf)(r)&&n&&"_"!==n[0]&&-1===(0,a.UA)(m,n))try{t[n]=r}catch(o){(0,s.kP)(e.logger,2,514,"Failed to set ["+n+"] during initialization."+(0,l.eU)(o))}}))),(0,a.kJ)(t.queue)){for(var r=t.queue.length,o=0;o<r;o++){(0,t.queue[o])()}t.queue=void 0,delete t.queue}}catch(i){i&&(0,a.mf)(i.toString)&&i.toString()}},e.updateSnippetDefinitions=function(e){var t=v;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=(0,c.l7)(!0,e.config,t.config||{}):t.config=e.config,(0,a.cf)(e,t,(function(e){return e&&-1===(0,a.UA)(m,e)&&-1===(0,a.UA)(f,e)}))},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,(function(e){y(),n&&n(e)}),r)}})),v}return(0,r.ne)(t,e),t.__ieDyn=1,t}(u.Z)},73198:function(e,t,n){"use strict";n.r(t),n.d(t,{ActionType:function(){return _.U},AppInsightsCore:function(){return b.Z},ApplicationInsights:function(){return I.K},AutoCaptureHandler:function(){return w.b},BE_PROFILE:function(){return S.e2},Behavior:function(){return E.c},CoreUtils:function(){return f.Tr},DiagnosticLogger:function(){return y.AQ},EventLatency:function(){return p},EventPersistence:function(){return h},EventsDiscardedReason:function(){return v.h},MinChannelPriorty:function(){return a},NRT_PROFILE:function(){return S.je},NotificationManager:function(){return g.f},PostChannel:function(){return C.Z},PropertiesPlugin:function(){return x.Z},RT_PROFILE:function(){return S.ow},TraceLevel:function(){return m},Utils:function(){return f.cQ},ValueKind:function(){return d},WebAnalytics:function(){return k.K}});var r,o=n(25661),i=n(64430),a=100,s=n(23679),l=n(40197),c=n(41370),u=((0,l.By)({CRITICAL:1,WARNING:2}),(0,l.By)(((r={}).BrowserDoesNotSupportLocalStorage=0,r.BrowserCannotReadLocalStorage=1,r.BrowserCannotReadSessionStorage=2,r.BrowserCannotWriteLocalStorage=3,r.BrowserCannotWriteSessionStorage=4,r.BrowserFailedRemovalFromLocalStorage=5,r.BrowserFailedRemovalFromSessionStorage=6,r.CannotSendEmptyTelemetry=7,r.ClientPerformanceMathError=8,r.ErrorParsingAISessionCookie=9,r.ErrorPVCalc=10,r.ExceptionWhileLoggingError=11,r.FailedAddingTelemetryToBuffer=12,r.FailedMonitorAjaxAbort=13,r.FailedMonitorAjaxDur=14,r.FailedMonitorAjaxOpen=15,r.FailedMonitorAjaxRSC=16,r.FailedMonitorAjaxSend=17,r.FailedMonitorAjaxGetCorrelationHeader=18,r.FailedToAddHandlerForOnBeforeUnload=19,r.FailedToSendQueuedTelemetry=20,r.FailedToReportDataLoss=21,r.FlushFailed=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r.SessionRenewalDateIsZero=27,r.SenderNotInitialized=28,r.StartTrackEventFailed=29,r.StopTrackEventFailed=30,r.StartTrackFailed=31,r.StopTrackFailed=32,r.TelemetrySampledAndNotSent=33,r.TrackEventFailed=34,r.TrackExceptionFailed=35,r.TrackMetricFailed=36,r.TrackPVFailed=37,r.TrackPVFailedCalc=38,r.TrackTraceFailed=39,r.TransmissionFailed=40,r.FailedToSetStorageBuffer=41,r.FailedToRestoreStorageBuffer=42,r.InvalidBackendResponse=43,r.FailedToFixDepricatedValues=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r.CannotSerializeObject=48,r.CannotSerializeObjectNonSerializable=49,r.CircularReferenceDetected=50,r.ClearAuthContextFailed=51,r.ExceptionTruncated=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r.SetAuthContextFailed=59,r.SetAuthContextFailedAccountName=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r.TelemetryInitializerFailed=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r.SessionStorageBufferFull=67,r.CannotAccessCookie=68,r.IdTooLong=69,r.InvalidEvent=70,r.FailedMonitorAjaxSetRequestHeader=71,r.SendBrowserInfoOnUserInit=72,r.PluginException=73,r.NotificationException=74,r.SnippetScriptLoadFailure=99,r.InvalidInstrumentationKey=100,r.CannotParseAiBlobValue=101,r.InvalidContentBlob=102,r.TrackPageActionEventFailed=103,r.FailedAddingCustomDefinedRequestContext=104,r.InMemoryStorageBufferFull=105,r.InstrumentationKeyDeprecation=106,r))),d=(0,l.By)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),p=(0,l.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),h=((0,l.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),(0,l.By)({Normal:1,Critical:2})),m=(0,l.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),f=((0,c.FL)((0,s.uc)((0,s.uc)({},u),(0,l.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),n(89038)),g=n(92142),v=n(44742),y=n(11421),b=n(91072),C=n(39138),S=n(50839),x=n(86748),_=n(80714),E=n(90498),k=n(27072),w=n(49327),I=n(68706);function P(e,t){var n="undefined"!==typeof console?console:null;if(n){var r="warn";n[r]||(r="log"),n[r]("Failed to initialize AppInsights JS SDK for instance "+(e||"<unknown>")+" - "+t)}}!function(){try{var e="oneDSWeb",t=(0,o.Rd)();if(t)if("undefined"!==typeof JSON){if(void 0!==t[e=t.onedsSDK||e]){var n=t[e],r=new I.K;r.updateSnippetDefinitions(n),r.initialize(n.config,n.extensions),t[e]=r,r.emptySnippetQueue(n)}}else P(e,"Missing JSON - you must supply a JSON polyfill!");else P(e,"Missing global/window")}catch(a){P(e,"Unexpected Error: "+(0,i.eU)(a))}}()},91072:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(23679),o=n(41630),i=n(11421),a=n(47120),s=n(41370),l=n(64430),c=n(74696),u=n(25661),d=n(33907),p=n(46419),h=n(27810),m=500;function f(e,t,n){t&&(0,s.kJ)(t)&&t[c.R5]>0&&(t=t.sort((function(e,t){return e[d.yi]-t[d.yi]})),(0,s.tO)(t,(function(e){e[d.yi]<m&&(0,s._y)("Channel has invalid priority - "+e[c.pZ])})),e[c.MW]({queue:(0,s.FL)(t),chain:(0,p.jV)(t,n[c.TC],n)}))}var g=n(17289),v=n(28487),y=n(62561),b=function(e){function t(){var n,r,a=e.call(this)||this;function u(){n=0,r=[]}return a.identifier="TelemetryInitializerPlugin",a.priority=199,u(),(0,o.Z)(t,a,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[c.MW](t),{remove:function(){(0,s.tO)(r,(function(e,n){if(e.id===t.id)return r[c.cb](n,1),-1}))}}},e[d.hL]=function(t,n){for(var o=!1,a=r[c.R5],u=0;u<a;++u){var d=r[u];if(d)try{if(!1===d.fn[c.ZV](null,[t])){o=!0;break}}catch(p){(0,i.kP)(n[c.mc](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.jj)(p),{exception:(0,l.eU)(p)},!0)}}o||e[c.uL](t,n)},e[c.F3]=function(){u()}})),a}return(0,r.ne)(t,e),t.__ieDyn=1,t}(n(6864).i),C=n(35771),S="Plugins must provide initialize method",x="SDK is still unloading...",_={loggingLevelConsole:1};function E(e,t){return new a.Jk(t)}function k(e,t){var n=!1;return(0,s.tO)(t,(function(t){if(t===e)return n=!0,-1})),n}var w=function(){function e(){var t,n,l,w,I,P,T,D,A,R,N,M,F,B,O,L,H,V,z,U,W=0,G=!1;(0,o.Z)(e,this,(function(e){function o(n){if(!W&&!G&&(n||e[c.eZ]&&e[c.eZ].queue[c.R5]>0)){var r=(0,s.v4)(t.diagnosticLogInterval);r&&r>0||(r=1e4),W=setInterval((function(){clearInterval(W),W=0,Z()}),r)}return W}function j(){n=!1,t=(0,s.mm)(!0,{},_),e[c.TC]=t,e[c.eZ]=new i.AQ(t),e[c.iC]=[],O=new b,l=[],w=null,I=null,P=null,T=null,D=null,R=null,A=[],N=null,M=null,F=null,B=!1,L=null,H=(0,v.J)("AIBaseCore",!0),V=(0,C.Y)(),U=null}function q(){var n=(0,p.CD)(X(),t,e);return n[c.Fc](o),n}function K(n){var r=function(e,t,n){var r,o=[],a={};return(0,s.tO)(n,(function(n){((0,s.le)(n)||(0,s.le)(n[c.VL]))&&(0,s._y)(S);var r=n[d.yi],l=n[c.pZ];n&&r&&((0,s.le)(a[r])?a[r]=l:(0,i.jV)(e,"Two extensions have same priority #"+r+" - "+a[r]+", "+l)),(!r||r<t)&&o[c.MW](n)})),(r={all:n})[d.oV]=o,r}(e[c.eZ],m,A);R=r[d.oV],D=null;var a=r.all;if(F=(0,s.FL)(function(e,t,n){var r=[];if(e&&(0,s.tO)(e,(function(e){return f(r,e,n)})),t){var o=[];(0,s.tO)(t,(function(e){e[d.yi]>m&&o[c.MW](e)})),f(r,o,n)}return r}(M,a,e)),N){var l=(0,s.UA)(a,N);-1!==l&&a[c.cb](l,1),-1!==(l=(0,s.UA)(R,N))&&R[c.cb](l,1),N._setQueue(F)}else N=function(e,t){function n(){return(0,p.CD)(null,t[c.TC],t,null)}function r(e,t,n,r){var o=e?e[c.R5]+1:1;function i(){0===--o&&(r&&r(),r=null)}o>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[c.R5]>0){var r=e.chain,a=t[c.zV](r);a[c.Fc](i),n(a)}else o--})),i()}var o=!1,i={identifier:"ChannelControllerPlugin",priority:m,initialize:function(t,n,r,i){o=!0,(0,s.tO)(e,(function(e){e&&e.queue[c.R5]>0&&(0,h.bP)((0,p.CD)(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),(function(e){e[c.uL](t)}),(function(){o[c.uL](t)}))},update:function(t,n){var o=n||{reason:0};return r(e,t,(function(e){e[c.uL](o)}),(function(){t[c.uL](o)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var i=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[c.uL](i)}),(function(){t[c.uL](i),o=!1})),!0},getChannel:function(t){var n=null;return e&&e[c.R5]>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[c.R5]>0&&((0,s.tO)(e.queue,(function(e){if(e[c.pZ]===t)return n=e,-1})),n))return-1})),n},flush:function(t,o,i,a){var s=1,l=!1,u=null;function d(){s--,l&&0===s&&(u&&(clearTimeout(u),u=null),o&&o(l),o=null)}return a=a||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[c.kL]){s++;var n=!1;e[c.kL](t,(function(){n=!0,d()}),i)||n||(t&&null==u?u=setTimeout((function(){u=null,d()}),a):d())}}))}),(function(){l=!0,d()})),!0},_setQueue:function(t){e=t}};return i}(F,e);a[c.MW](N),R[c.MW](N),e[c.iC]=(0,h.AA)(a),N[c.VL](t,e,a);var u=q();(0,h.bP)(u,a),e[c.iC]=(0,s.FL)((0,h.AA)(R||[])).slice(),n&&function(t){var n=(0,p.xy)(X(),e);n[c.Fc](o),e._updateHook&&!0===e._updateHook(n,t)||n[c.uL](t)}(n)}function Y(t){var n,r=null,o=null;return(0,s.tO)(e[c.iC],(function(e){if(e[c.pZ]===t&&e!==N&&e!==O)return o=e,-1})),!o&&N&&(o=N.getChannel(t)),o&&((n={plugin:o})[c.$h]=function(e){(0,h.OY)(o)[d.mE]=!e},n.isEnabled=function(){var e=(0,h.OY)(o);return!e[c.fi]&&!e[d.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[o],i=((n={reason:1})[c.d]=e,n);Q(r,i,(function(e){e&&K({reason:32,removed:r}),t&&t(e)}))},r=n),r}function X(){if(!D){var n=(R||[]).slice();-1===(0,s.UA)(n,O)&&n[c.MW](O),D=(0,p.jV)((0,h.AA)(n),t,e)}return D}function Q(n,r,i){if(n&&n[c.R5]>0){var a=(0,p.jV)(n,t,e),l=(0,p.Bt)(a,e);l[c.Fc]((function(){var e=!1,t=[];(0,s.tO)(A,(function(r,o){k(r,n)?e=!0:t[c.MW](r)})),A=t;var r=[];M&&((0,s.tO)(M,(function(t,o){var i=[];(0,s.tO)(t,(function(t){k(t,n)?e=!0:i[c.MW](t)})),r[c.MW](i)})),M=r),i&&i(e),o()})),l[c.uL](r)}else i(!1)}function Z(){if(e[c.eZ]&&e[c.eZ].queue){var n=e[c.eZ].queue.slice(0);e[c.eZ].queue[c.R5]=0,(0,s.tO)(n,(function(n){var r,o=((r={})[c.I]=L||"InternalMessageId: "+n[c.Gc],r.iKey=(0,s.v4)(t[c.p$]),r.time=(0,s.Y6)(new Date),r.baseType=i.lQ.dataType,r.baseData={message:n[c.gU]},r);e.track(o)}))}}function J(e,t,n,r){return N?N[c.kL](e,t,n||6,r):(t&&t(!1),!0)}function $(t){var n=e[c.eZ];n?((0,i.kP)(n,2,73,t),o()):(0,s._y)(t)}j(),e[c.yl]=function(){return n},e[c.VL]=function(o,i,a,l){B&&(0,s._y)(x),e[c.yl]()&&(0,s._y)("Core should not be initialized more than once"),t=o||{},e[c.TC]=t,(0,s.le)(o[c.p$])&&(0,s._y)("Please provide instrumentation key"),w=l,e._notificationManager=l,function(){var e=(0,s.v4)(t.disableDbgExt);!0===e&&z&&(w[c.n7](z),z=null);w&&!z&&!0!==e&&(z=(0,y.p)(t),w[c.g](z))}(),function(){var e=(0,s.v4)(t.enablePerfMgr);!e&&P&&(P=null);e&&(0,s.qK)(t,d.DN,E)}(),(0,s.qK)(t,d.Zh,{}).NotificationManager=w,a&&(e[c.eZ]=a);var u=(0,s.qK)(t,d.js,[]);(A=[])[c.MW].apply(A,(0,r.$h)((0,r.$h)([],i,!1),u,!1)),M=(0,s.qK)(t,d.Z,[]),K(null),F&&0!==F[c.R5]||(0,s._y)("No "+d.Z+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return F&&(0,s.tO)(F,(function(t){e[c.MW](t.queue)})),(0,s.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[c.p$],n[c.Z_]=n[c.Z_]||(0,s.Y6)(new Date),n.ver=n.ver||"4.0",!B&&e[c.yl]()?q()[c.uL](n):l[c.MW](n)},e[c.SD]=q,e[c.tb]=function(){return w||(w=function(){var e;return(0,u.pu)(((e={})[c.g]=function(e){},e[c.n7]=function(e){},e[d.uC]=function(e){},e[d.$F]=function(e,t){},e[d.f_]=function(e,t){},e))}(),e._notificationManager=w),w},e[c.g]=function(e){w&&w[c.g](e)},e[c.n7]=function(e){w&&w[c.n7](e)},e.getCookieMgr=function(){return T||(T=(0,g.Nz)(t,e[c.eZ])),T},e.setCookieMgr=function(e){T=e},e[d.kl]=function(){if(!I&&!P&&(0,s.v4)(t.enablePerfMgr)){var n=(0,s.v4)(t[d.DN]);(0,s.mf)(n)&&(P=n(e,e[c.tb]()))}return I||P||(0,a.j5)()},e.setPerfMgr=function(e){I=e},e.eventCnt=function(){return l[c.R5]},e.releaseQueue=function(){if(n&&l[c.R5]>0){var e=l;l=[],(0,s.tO)(e,(function(e){q()[c.uL](e)}))}},e.pollInternalLogs=function(e){return L=e||null,G=!1,W&&(clearInterval(W),W=null),o(!0)},e[c.LS]=function(){G=!0,W&&(clearInterval(W),W=0,Z())},(0,s.Vb)(e,(function(){return O}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||(0,s._y)("SDK is not initialized"),B&&(0,s._y)(x);var a=((i={reason:50})[c.d]=t,i.flushComplete=!1,i),l=(0,p.Bt)(X(),e);function u(t){a.flushComplete=t,B=!0,V.run(l,a),e[c.LS](),l[c.uL](a)}l[c.Fc]((function(){j(),r&&r(a)}),e),Z(),J(t,u,6,o)||u(!1)},e[c.TO]=Y,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void $(S);var o=Y(e[c.pZ]);if(o&&!t)return r&&r(!1),void $("Plugin ["+e[c.pZ]+"] is already loaded!");var i={reason:16};function a(t){A[c.MW](e),i.added=[e],K(i),r&&r(!0)}if(o){var s=[o.plugin];Q(s,{reason:2,isAsync:!!n},(function(e){e?(i.removed=s,i.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return H},e[c.kL]=J,e.getTraceCtx=function(e){return U||(U=(0,h.Yn)()),U},e.setTraceCtx=function(e){U=e||null},(0,s.Oi)(e,"addUnloadCb",(function(){return V}),"add")}))}return e.__ieDyn=1,e}(),I=n(92142),P=function(e){function t(){var n=e.call(this)||this;return(0,o.Z)(t,n,(function(e,t){function n(t){var n=e[c.tb]();n&&n[d.$F]([t],2)}e[c.VL]=function(e,n,r,o){t[c.VL](e,n,r||new i.AQ(e),o||new I.f(e))},e.track=function(r){(0,a.Lm)(e[d.kl](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,s._y)("Invalid telemetry item")),function(e){(0,s.le)(e[c.I])&&(n(e),(0,s._y)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(w),T=n(81503),D=n(89038),A=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,o.Z)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new i.AQ({loggingLevelConsole:1})),e.initialize=function(n,r,o,c){(0,a.Lm)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var a=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=T.YT);var u=n.propertyStorageOverride;!u||u.getProperty&&u.setProperty||(0,s._y)("Invalid property storage override passed."),n.channels&&(0,s.tO)(n.channels,(function(e){e&&(0,s.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}}))}))}e.getWParam=function(){return"undefined"!==typeof document||n.enableWParam?0:-1},r&&(0,s.tO)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}})),e.pluginVersionString=a.join(";"),e.pluginVersionStringArr=a;try{t.initialize(n,r,o,c),e.pollInternalLogs("InternalLog")}catch(h){var d=e.logger,p=(0,l.eU)(h);-1!==p.indexOf("channels")&&(p+="\n - Channels must be provided through config.channels only!"),(0,i.kP)(d,1,514,"SDK Initialization Failed - no telemetry will be sent: "+p)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:c}}))},e.track=function(n){(0,a.Lm)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0,D.hK)(),(0,D.r7)(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=D.vs;var i=r.baseData=r.baseData||{};i[T.o6]=i[T.o6]||{};var a=i[T.o6];a[T.p8]=a[T.p8]||e.pluginVersionString||T.qS}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(P),R=A},81503:function(e,t,n){"use strict";n.d(t,{YT:function(){return o},o6:function(){return a},p8:function(){return i},qS:function(){return r}});var r="",o="https://browser.events.data.microsoft.com/OneCollector/1.0/",i="version",a="properties"},89038:function(e,t,n){"use strict";n.d(t,{Do:function(){return k},Sn:function(){return C},Tr:function(){return M},Vv:function(){return E},cQ:function(){return N},cm:function(){return w},dH:function(){return b},hK:function(){return P},if:function(){return A},jM:function(){return S},l7:function(){return I},mJ:function(){return F},ot:function(){return B},r7:function(){return x},vs:function(){return m},x9:function(){return y},yj:function(){return _}});var r,o=n(64430),i=n(41370),a=n(17289),s=n(6649),l=n(50786),c=n(47617),u=n(69634),d=n(25661),p=n(81503),h="3.2.14",m="1DS-Web-JS-3.2.14",f="withCredentials",g=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),v=null,y=Boolean((0,o.Me)()),b=Boolean((0,o.Jj)());function C(e){return!(e===p.qS||(0,i.le)(e))}function S(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return p.qS}function x(e){return!!(e&&(0,i.hj)(e)&&e>=1&&e<=4)}function _(e,t,n){if(!t&&!C(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,i.kJ)(t))t={value:t};else if("object"!==r||l.CY.call(t,"value")){if((0,i.le)(t.value)||t.value===p.qS||!(0,i.HD)(t.value)&&!(0,i.hj)(t.value)&&!(0,i.jn)(t.value)&&!(0,i.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,i.kJ)(t.value)&&!D(t.value))return null;if(!(0,i.le)(t.kind)){if((0,i.kJ)(t.value)||!T(t.kind))return null;t.value=t.value.toString()}return t}function E(e,t,n){var r=-1;if(!(0,i.o8)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){if(e>=0&&e<=9)return!0;return!1}(n))-1===r&&(r=0),r|=n;else{var o=g[R(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function k(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||p.qS}function w(e){void 0===e&&(e="D");var t=(0,s.GW)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,p.qS)),t}function I(e,t,n,r,o){var a={},s=!1,c=0,u=arguments.length,d=Object[l.hB],p=arguments;for("[object Boolean]"===d.toString.call(p[0])&&(s=p[0],c++);c<u;c++){e=p[c];(0,i.rW)(e,(function(e,t){s&&t&&(0,i.Kn)(t)?(0,i.kJ)(t)?(a[e]=a[e]||[],(0,i.tO)(t,(function(t,n){t&&(0,i.Kn)(t)?a[e][n]=I(!0,a[e][n],t):a[e][n]=t}))):a[e]=I(!0,a[e],t):a[e]=t}))}return a}var P=s.Jj;function T(e){return 0===e||e>0&&e<=13||32===e}function D(e){return e.length>0}function A(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=P()}function R(e){var t=0;if(null!==e&&void 0!==e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===l.fK&&(t=4,(0,i.kJ)(e)?(t=4096,e.length>0&&(t|=R(e[0]))):l.CY.call(e,"value")&&(t=8192|R(e.value)))}return t}var N={Version:h,FullVersionString:m,strUndefined:l.jA,strObject:l.fK,Undefined:l.jA,arrForEach:i.tO,arrIndexOf:i.UA,arrMap:i.Mr,arrReduce:i.Xz,objKeys:i.FY,toISOString:i.Y6,isReactNative:o.b$,isString:i.HD,isNumber:i.hj,isBoolean:i.jn,isFunction:i.mf,isArray:i.kJ,isObject:i.Kn,strTrim:i.nd,isDocumentObjectAvailable:y,isWindowObjectAvailable:b,isValueAssigned:C,getTenantId:S,isBeaconsSupported:o.MF,isUint8ArrayAvailable:function(){return null===v&&(v=!(0,i.o8)(Uint8Array)&&!function(){var e=(0,o.jW)();if(!(0,i.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,o.b$)()),v},isLatency:x,sanitizeProperty:_,getISOString:i.Y6,useXDomainRequest:o.cp,getCommonSchemaMetaData:E,cookieAvailable:a.p7,disallowsSameSiteNone:a.UY,setCookie:function(e,t,n){(0,a.p7)(null)&&(0,a.JP)(null).set(e,t,86400*n,null,"/")},deleteCookie:function(e){(0,a.p7)(null)&&(0,a.JP)(null).del(e)},getCookie:function(e){return(0,a.p7)(null)?k((0,a.JP)(null),e):p.qS},createGuid:w,extend:I,getTime:P,isValueKind:T,isArrayValid:D,objDefineAccessors:i.l_,addPageUnloadEventListener:c.c9,setProcessTelemetryTimings:A,addEventHandler:c.Ib,getFieldValueType:R,strEndsWith:i.Id,objForEachKey:i.rW},M={_canUseCookies:void 0,isTypeof:i.Ym,isUndefined:i.o8,isNullOrUndefined:i.le,hasOwnProperty:i.nr,isFunction:i.mf,isObject:i.Kn,isDate:i.J_,isArray:i.kJ,isError:i.VZ,isString:i.HD,isNumber:i.hj,isBoolean:i.jn,toISOString:i.Y6,arrForEach:i.tO,arrIndexOf:i.UA,arrMap:i.Mr,arrReduce:i.Xz,strTrim:i.nd,objCreate:d.pu,objKeys:i.FY,objDefineAccessors:i.l_,addEventHandler:c.Ib,dateNow:i.m6,isIE:o.w1,disableCookies:function(){(0,a.JP)(null).setEnabled(!1)},newGuid:s.GW,perfNow:s.Jj,newId:u.pZ,randomValue:u.az,random32:u._l,mwcRandomSeed:u.CN,mwcRandom32:u.F6,generateW3CId:s.DO};function F(){return!!(0,o.a8)("chrome")}function B(e,t,n,r,o,i){function a(e,t,n){try{e[t]=n}catch(r){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,f,n),s.open(e,t,!o),n&&a(s,f,n),!o&&i&&a(s,"timeout",i),s}},92800:function(e,t,n){"use strict";var r=n(23679),o=n(89038),i=n(11421),a=n(6864),s=n(12183),l=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.2.14",n._cvInitialValue=t,n._cv=n._cvInitialValue?new s.Cv(n._cvInitialValue):new s.Cv,n}return(0,r.ne)(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){(0,o.if)(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV||this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||(0,i.kP)(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(a.i);t.Z=l},12183:function(e,t,n){"use strict";n.d(t,{Cv:function(){return i}});var r=n(11421),o=function(){},i=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new o,this._cv2Constants=new o,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=(0,r.vH)(t),this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var i=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=i)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(this.isValid(e)){var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0}return(0,r.kP)(this._traceLogger,2,516,"Cannot set invalid correlation vector value"),!1},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}()},98633:function(e,t,n){"use strict";n.r(t),n.d(t,{CorrelationVectorPlugin:function(){return o.Z},Cv:function(){return r.Cv}});var r=n(12183),o=n(92800)},50839:function(e,t,n){"use strict";n.d(t,{e2:function(){return i},je:function(){return o},ow:function(){return r}});var r="REAL_TIME",o="NEAR_REAL_TIME",i="BEST_EFFORT"},39138:function(e,t,n){"use strict";n.d(t,{Z:function(){return se}});var r=n(23679),o=n(41630),i=n(47120),a=n(47617),s=n(28487),l=n(89038),c=n(41370),u=n(64430),d=n(44742),p=n(11421),h=n(6864),m=n(50839),f="",g="POST",v="drop",y="send",b="requeue",C="rspFail",S="application/x-json-stream",x="cache-control",_="content-type",E="kill-duration",k="time-delta-millis",w="client-version",I="client-id",P="time-delta-to-apply-millis",T="upload-time",D="apikey",A="AuthMsaDeviceTicket",R="AuthXToken";function N(e){var t=(e.ext||{}).intweb;return t&&(0,l.Sn)(t.msfpc)?t.msfpc:null}function M(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=N(e[n]);return t}var F=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=M(r);o.iKey=function(){return t},o.Msfpc=function(){return i||f},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=N(e)),!0)},o.split=function(n,o){var a;if(n<r.length){var s=r.length-n;(0,c.le)(o)||(s=o<s?o:s),a=r.splice(n,s),i=M(r)}return new e(t,a)}}return e.create=function(t,n){return new e(t,n)},e}(),B=function(){function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;(0,o.Z)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))}return e.__ieDyn=1,e}(),O=function(){function e(){var t={};(0,o.Z)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&(0,c.tO)(e,(function(e){t.push((0,c.nd)(e))})),t}(e.split(","));if("this-request-only"===n)return r;for(var o=1e3*parseInt(n,10),i=0;i<r.length;++i)t[r[i]]=(0,c.m6)()+o}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=(0,c.nd)(e);return void 0!==n[r]&&n[r]>(0,c.m6)()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),L=n(50786);function H(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var V,z=2e6,U=Math.min(z,65e3),W=/\./,G=function(){function e(t,n,r,a){var s="data",u="baseData",d=!!a,p=n,h={};(0,o.Z)(e,this,(function(e){function n(e,t,o,i,a,s,u){(0,c.rW)(e,(function(e,m){var f=null;if(m||(0,l.Sn)(m)){var g=o,v=e,y=a,b=t;if(d&&!i&&W.test(e)){var C=e.split("."),S=C.length;if(S>1){y&&(y=y.slice());for(var x=0;x<S-1;x++){var _=C[x];b=b[_]=b[_]||{},g+="."+_,y&&y.push(_)}v=C[S-1]}}var E=i&&function(e,t){var n=h[e];return void 0===n&&(e.length>=7&&(n=(0,c.xe)(e,"ext.metadata")||(0,c.xe)(e,"ext.web")),h[e]=n),n}(g);if(f=!E&&p&&p.handleField(g,v)?p.value(g,v,m,r):(0,l.yj)(v,m,r)){var k=f.value;if(b[v]=k,s&&s(y,v,f),u&&"object"===typeof k&&!(0,c.kJ)(k)){var w=y;w&&(w=w.slice()).push(v),n(m,k,g+"."+v,i,w,s,u)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:f,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:i,sendReason:o}},e.appendPayload=function(n,r,o){var a=n&&r&&!n.overflow;return a&&(0,i.Lm)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,l=[],u=[],d=n.isBeacon,p=d?65e3:3984588,h=d?U:z,m=0,f=0;m<t.length;){var g=t[m];if(g){if(a>=o){n.overflow=r.split(m);break}var v=e.getEventBlob(g);if(v&&v.length<=h){var y=v.length;if(i.length+y>p){n.overflow=r.split(m);break}i&&(i+="\n"),i+=v,++f>20&&(i.substr(0,1),f=0),s=!0,a++}else v?l.push(g):u.push(g),t.splice(m,1),m--}m++}if(l&&l.length>0&&n.sizeExceed.push(F.create(r.iKey(),l)),u&&u.length>0&&n.failedEvts.push(F.create(r.iKey(),u)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var b=r.iKey();-1===(0,c.UA)(n.apiKeys,b)&&n.apiKeys.push(b)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}})),a},e.getEventBlob=function(e){try{return(0,i.Lm)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,l.jM)(e.iKey);var r={},o=e.ext;o&&(t.ext=r,(0,c.rW)(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var i=t.data={};i.baseType=e.baseType;var a=i.baseData={};return n(e.baseData,a,u,!1,[u],(function(e,t,n){j(r,e,t,n)}),true),n(e.data,i,s,!1,[],(function(e,t,n){j(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(r){return null}}}))}return e.__ieDyn=1,e}();function j(e,t,n,r){if(r&&e){var o=(0,l.Vv)(r.value,r.kind,r.propertyType);if(o>-1){var i=e.metadata;i||(i=e.metadata={f:{}});var a=i.f;if(a||(a=i.f={}),t)for(var s=0;s<t.length;s++){var u=t[s];a[u]||(a[u]={f:{}});var d=a[u].f;d||(d=a[u].f={}),a=d}a=a[n]={},(0,c.kJ)(r.value)?a.a={t:o}:a.t=o}}}var q="&NoResponseBody=true",K=((V={})[1]=b,V[100]=b,V[200]="sent",V[8004]=v,V[8003]=v,V),Y={},X={};function Q(e,t,n){Y[e]=t,!1!==n&&(X[t]=e)}function Z(e){try{return e.responseText}catch(t){}return f}function J(e,t){var n=!1;if(e&&t){var r=(0,c.FY)(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&(0,c.nr)(t,a)&&a.toLowerCase()===o){n=!0;break}}}return n}function $(e,t,n,r){t&&n&&n.length>0&&(r&&Y[t]?(e.hdrs[Y[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function ee(e,t){return t&&((0,c.hj)(t)?e=[t].concat(e):(0,c.kJ)(t)&&(e=t.concat(e))),e}Q(A,A,!1),Q(w,w),Q(I,"Client-Id"),Q(D,D),Q(P,P),Q(T,T),Q(R,R);var te=function(){function e(t,n,r,a,s){this._responseHandlers=[];var d,h,m,b,A,R,N,M,F,V,z="?cors=true&"+_.toLowerCase()+"="+S,U=new O,W=!1,j=new B,Y=!1,Q=0,te=!0,ne=[],re={},oe=[],ie=null,ae=!1,se=!1,le=!1;(0,o.Z)(e,this,(function(e){var o=!0;function B(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?(0,u.cp)()?r=O:(0,u.Z3)()&&(r=ue):2===n&&(0,u.JO)(t)&&(!t||t&&!M)?r=ce:Y&&3===n&&(0,u.MF)()&&(r=pe),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function O(e,t,n){var r=new XDomainRequest;r.open(g,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Z(r);de(t,200,{},e),Ee(e)},r.onerror=function(){de(t,400,{})},r.ontimeout=function(){de(t,500,{})},r.onprogress=function(){},n?r.send(e.data):s.set((function(){r.send(e.data)}),0)}function ce(e,t,n){var r,i=e.urlString,a=!1,l=!1,u=((r={body:e.data,method:g}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(u.keepalive=!0,2===e._sendReason&&(a=!0,V&&(i+=q))),o&&(u.credentials="include"),e.headers&&(0,c.FY)(e.headers).length>0&&(u.headers=e.headers),fetch(i,u).then((function(e){var n={},r=f,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),l||(l=!0,de(t,e.status,n,r),Ee(r))})).catch((function(e){l||(l=!0,de(t,0,{}))})),a&&!l&&(l=!0,de(t,200,{})),!l&&e.timeout>0&&s.set((function(){l||(l=!0,de(t,500,{}))}),e.timeout)}function ue(e,t,n){var r=e.urlString;function i(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0,c.nd)(r))}return e}function a(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0,c.HD)(e)){var n=(0,c.nd)(e).split(/[\r\n]+/);(0,c.tO)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,c.nd)(e.substring(0,n)).toLowerCase(),o=(0,c.nd)(e.substring(n+1));t[r]=o}else t[(0,c.nd)(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=i(t,e,k),t=i(t,e,E),t=i(t,e,"kill-duration-seconds")),t}function s(e,n){de(t,e.status,a(e),n)}n&&e.disableXhrSync&&(n=!1);var u=(0,l.ot)(g,r,o,!0,n,e.timeout);(0,c.rW)(e.headers,(function(e,t){u.setRequestHeader(e,t)})),u.onload=function(){var e=Z(u);s(u,e),Ee(e)},u.onerror=function(){s(u)},u.ontimeout=function(){s(u)},u.send(e.data)}function de(e,t,n,r){try{e(t,n,r)}catch(o){(0,p.kP)(h,2,518,(0,u.eU)(o))}}function pe(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(V?q:f);try{var a=(0,u.jW)();if(!a.sendBeacon(i,e.data))if(o){var s=[];(0,c.tO)(o.batches,(function(e){if(s&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!a.sendBeacon(i,ie.getEventBlob(t[n]))){s.push(e.split(n));break}}else s.push(e.split(0))})),ke(s,8003,o.sendType,!0)}else r=0}catch(l){(0,p.jV)(h,"Failed to send telemetry using sendBeacon API. Ex:"+(0,u.eU)(l)),r=0}finally{de(t,r,{},f)}}function he(e){return 2===e||3===e}function me(e){return se&&he(e)&&(e=2),e}function fe(){return!W&&Q<n}function ge(){var e=oe;return oe=[],e}function ve(e,t,n){var r=!1;return e&&e.length>0&&!W&&m[t]&&ie&&(r=0!==t||fe()&&(n>0||j.allowRequestSending())),r}function ye(e){var t={};return e&&(0,c.tO)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function be(e,n,r,o,a){if(e&&0!==e.length)if(W)ke(e,1,o);else{o=me(o);try{var s=e,c=0!==o;(0,i.Lm)(b,(function(){return"HttpManager:_sendBatches"}),(function(i){i&&(e=e.slice(0));for(var s=[],u=null,d=(0,l.hK)(),p=m[o]||(c?m[1]:m[0]),h=p&&p._transport,f=F&&(se||he(o)||3===h||p._isSync&&2===h);ve(e,o,n);){var g=e.shift();g&&g.count()>0&&(U.isTenantKilled(g.iKey())?s.push(g):(u=u||ie.createPayload(n,r,c,f,a,o),ie.appendPayload(u,g,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,xe(u,d,(0,l.hK)(),a),d=(0,l.hK)(),u=null):(xe(u,d,(0,l.hK)(),a),d=(0,l.hK)(),e=[g].concat(e),u=null)))}u&&xe(u,d,(0,l.hK)(),a),e.length>0&&(oe=e.concat(oe)),ke(s,8004,o)}),(function(){return{batches:ye(s),retryCount:n,isTeardown:r,isSynchronous:c,sendReason:a,useSendBeacon:he(o),sendType:o}}),!c)}catch(d){(0,p.kP)(h,2,48,"Unexpected Exception sending batch: "+(0,u.eU)(d))}}}function Ce(e,t){var n={url:z,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,l.l7)(n.hdrs,re),n.useHdrs=(0,c.FY)(n.hdrs).length>0):(0,c.rW)(re,(function(e,t){X[e]?$(n,X[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),$(n,I,"NO_AUTH",t),$(n,w,l.vs,t);var r=f;(0,c.tO)(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),$(n,D,r,t),$(n,T,(0,c.m6)().toString(),t);var o=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return f}(e);if((0,l.Sn)(o)&&(n.url+="&ext.intweb.msfpc="+o),j.shouldAddClockSkewHeaders()&&$(n,P,j.getClockSkewHeaderValue(),t),b.getWParam){var i=b.getWParam();i>=0&&(n.url+="&w="+i)}for(var a=0;a<ne.length;a++)n.url+="&"+ne[a].name+"="+ne[a].value;return n}function Se(e,t,n){e[t]=e[t]||{},e[t][d.identifier]=n}function xe(t,n,o,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,f=m[t.sendType];!he(t.sendType)&&t.isBeacon&&2===t.sendReason&&(f=m[2]||m[3]||f);var g=le;(t.isBeacon||3===f._transport)&&(g=!1);var v=Ce(t,g);g=g||v.useHdrs;var y=(0,l.hK)();(0,i.Lm)(b,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var m=0;m<t.batches.length;m++)for(var C=t.batches[m].events(),E=0;E<C.length;E++){var k=C[E];if(ae){var w=k.timings=k.timings||{};Se(w,"sendEventStart",y),Se(w,"serializationStart",n),Se(w,"serializationCompleted",o)}k.sendAttempt>0?k.sendAttempt++:k.sendAttempt=1}ke(t.batches,1e3+(a||0),t.sendType,!0);var I={data:t.payloadBlob,urlString:v.url,headers:v.hdrs,_thePayload:t,_sendReason:a,timeout:R,disableXhrSync:N,disableFetchKeepAlive:M};g&&(J(I.headers,x)||(I.headers["cache-control"]="no-cache, no-store"),J(I.headers,_)||(I.headers["content-type"]=S));var P=null;f&&(P=function(n){j.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var a=9e3,s=null,u=!1,p=!1;try{var h=!0;if(typeof t!==L.jA){if(n){j.setClockSkew(n["time-delta-millis"]);var m=n["kill-duration"]||n["kill-duration-seconds"];(0,c.tO)(U.setKillSwitchTenants(n["kill-tokens"],m),(function(e){(0,c.tO)(o.batches,(function(t){if(t.iKey()===e){s=s||[];var n=t.split(0);o.numEvents-=n.count(),s.push(n)}}))}))}if(200==t||204==t)return void(a=200);((g=t)>=300&&g<500&&408!=g&&429!=g||501==g||505==g||o.numEvents<=0)&&(h=!1),a=9e3+t%1e3}if(h){a=100;var f=o.retryCnt;0===o.sendType&&(f<r?(u=!0,_e((function(){0===o.sendType&&Q--,be(o.batches,f+1,o.isTeardown,se?2:o.sendType,5)}),se,H(f))):(p=!0,se&&(a=8001)))}}finally{u||(j.setClockSkew(),function(t,n,r,o){try{o&&d._backOffTransmission(),200===n&&(o||t.isSync||d._clearBackOff(),function(e){if(ae){var t=(0,l.hK)();(0,c.tO)(e,(function(e){e&&e.count()>0&&function(e,t){ae&&(0,c.tO)(e,(function(e){Se(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),ke(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(Q--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,a,i,p)),ke(s,8004,o.sendType)}var g}(n,o,t,a)},i=t.isTeardown||t.isSync;try{f.sendPOST(n,o,i),e.sendListener&&e.sendListener(I,n,i,t.isBeacon)}catch(s){(0,p.jV)(h,"Unexpected exception sending payload. Ex:"+(0,u.eU)(s)),de(o,0,{})}}),(0,i.Lm)(b,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(P)if(0===t.sendType&&Q++,s&&!t.isBeacon&&3!==f._transport){var n={data:I.data,urlString:I.urlString,headers:(0,l.l7)({},I.headers),timeout:I.timeout,disableXhrSync:I.disableXhrSync,disableFetchKeepAlive:I.disableFetchKeepAlive},r=!1;(0,i.Lm)(b,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,te||e._thePayload||(e._thePayload=e._thePayload||I._thePayload,e._sendReason=e._sendReason||I._sendReason),P(e)}),t.isSync||t.isTeardown)}catch(o){r||P(I)}}))}else P(I)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&ke(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&ke(t.failedEvts,8002,t.sendType)}function _e(e,t,n){t?e():s.set(e,n)}function Ee(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(i){(0,p.kP)(h,1,519,"Response handler failed: "+i)}if(t){var o=JSON.parse(t);(0,l.Sn)(o.webResult)&&(0,l.Sn)(o.webResult.msfpc)&&A.set("MSFPC",o.webResult.msfpc,31536e3)}}catch(a){}}function ke(e,t,n,r){if(e&&e.length>0&&a){var o=a[function(e){var t=K[e];(0,l.Sn)(t)||(t="oth",e>=9e3&&e<=9999?t=C:e>=8e3&&e<=8999?t=v:e>=1e3&&e<=1999&&(t=y));return t}(t)];if(o){var s=0!==n;(0,i.Lm)(b,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){_e((function(){try{o.call(a,e,t,s,n)}catch(r){(0,p.kP)(h,1,74,"send request notification failed: "+r)}}),r||s,0)}),(function(){return{batches:ye(e),reason:t,isSync:s,sendSync:r,sendType:n}}),!s)}}}e.initialize=function(e,t,n,r,i){var a;i||(i={}),z=e+z,le=!!(0,c.o8)(i.avoidOptions)||!i.avoidOptions,b=t,A=t.getCookieMgr(),ae=!b.config.disableEventTimings;var s=!!b.config.enableCompoundKey;h=(d=n).diagLog();var l=i.valueSanitizer,f=i.stringifyObjects;(0,c.o8)(i.enableCompoundKey)||(s=!!i.enableCompoundKey),R=i.xhrTimeout,N=!!i.disableXhrSync,M=!!i.disableFetchKeepAlive,V=!1!==i.addNoResponse,Y=!(0,u.b$)(),ie=new G(b,l,f,s),(0,c.le)(i.useSendBeacon)||(Y=!!i.useSendBeacon);var g=r,v=i.alwaysUseXhrOverride?r:null,y=i.alwaysUseXhrOverride?r:null,C=[3,2];if(!r){te=!1;var S=(0,u.k$)();S&&S.protocol&&"file:"===S.protocol.toLowerCase()&&(o=!1);var x=[];(0,u.b$)()?(x=[2,1],C=[2,1,3]):x=[1,2,3],(r=B(x=ee(x,i.transports),!1))||(0,p.jV)(h,"No available transport to send events"),g=B(x,!0)}v||(v=B(C=ee(C,i.unloadTransports),!0)),F=!te&&(Y&&(0,u.MF)()||!M&&(0,u.JO)(!0)),(a={})[0]=r,a[1]=g||B([1,2,3],!0),a[2]=v||g||B([1],!0),a[3]=y||B([2,3],!0)||g||B([1],!0),m=a},e._getDbgPlgTargets=function(){return[m[0],U,ie,m]},e.addQueryStringParameter=function(e,t){for(var n=0;n<ne.length;n++)if(ne[n].name===e)return void(ne[n].value=t);ne.push({name:e,value:t})},e.addHeader=function(e,t){re[e]=t},e.canSendRequest=function(){return fe()&&j.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0,c.o8)(e)&&(e=0),se&&(e=me(e),t=2),ve(oe,e,0)&&be(ge(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!W&&0===Q&&0===oe.length},e.setUnloading=function(e){se=e},e.addBatch=function(e){if(e&&e.count()>0){if(U.isTenantKilled(e.iKey()))return!1;oe.push(e)}return!0},e.teardown=function(){oe.length>0&&be(ge(),0,!0,2,2)},e.pause=function(){W=!0},e.resume=function(){W=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,c.le)(t)&&(t=1),se&&(t=me(t),n=2),be([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function ne(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function re(e){clearTimeout(e)}function oe(e,t){return{set:e||ne,clear:t||re}}var ie="eventsDiscarded",ae=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.14";var h,f,g,v,y,b,C,S=!1,x=[],_=null,E=!1,k=0,w=500,I=0,P=1e4,T={},D=m.ow,R=null,N=null,M=0,B=0,O={},L=-1,V=!0,z=!1,U=6,W=2;return(0,o.Z)(t,r,(function(e,t){function r(e){"beforeunload"!==(e||(0,u.Jj)().event).type&&(z=!0,f.setUnloading(z)),Z(2,2)}function o(e){z=!1,f.setUnloading(z)}function G(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,V&&(l.if,e.ext=(0,c.Ax)(e.ext),e.baseData&&(e.baseData=(0,c.Ax)(e.baseData)),e.data&&(e.data=(0,c.Ax)(e.data))),e.sync)if(M||E)e.latency=3,e.sync=!1;else if(f)return V&&(e=(0,c.Ax)(e)),void f.sendSynchronousBatch(F.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=I,o=P;4===n&&(r=k,o=w);var i=!1;if(r<o)i=!ee(e,t);else{var a=1,s=20;4===n&&(a=4,s=1),i=!0,function(e,t,n,r){for(;n<=t;){var o=J(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?k-=a:I-=a,pe(ie,[i],d.h.QueueFull),!0}n++}return ne(),!1}(e.iKey,e.latency,a,s)&&(i=!ee(e,t))}i&&de(ie,[e],d.h.QueueFull)}function j(e,t,n){var r=re(e,t,n);return f.sendQueuedRequests(t,n),r}function q(){return I>0}function K(){if(L>=0&&re(L,0,y)&&f.sendQueuedRequests(0,y),k>0&&!N&&!E){var e=T[D][2];e>=0&&(N=X((function(){N=null,j(4,0,1),K()}),e))}var t=T[D][1];!R&&!_&&t>=0&&!E&&(q()?R=X((function(){R=null,j(0===B?3:1,0,1),B++,B%=2,K()}),t):B=0)}function Y(){n=null,S=!1,x=[],_=null,E=!1,k=0,w=500,I=0,P=1e4,T={},D=m.ow,R=null,N=null,M=0,B=0,h=null,O={},g=void 0,v=0,L=-1,y=null,V=!0,z=!1,U=6,W=2,b=null,C=oe(),f=new te(500,2,1,{requeue:ce,send:he,sent:me,drop:fe,rspFail:ge,oth:ve},C),le(),O[4]={batches:[],iKeyMap:{}},O[3]={batches:[],iKeyMap:{}},O[2]={batches:[],iKeyMap:{}},O[1]={batches:[],iKeyMap:{}},ye()}function X(e,t){0===t&&M&&(t=1);var n=1e3;return M&&(n=H(M-1)),C.set(e,t*n)}function Q(){return null!==R&&(C.clear(R),R=null,B=0,!0)}function Z(e,t){Q(),_&&(C.clear(_),_=null),E||j(1,e,t)}function J(e,t,n){var r=O[t];r||(r=O[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=F.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function $(t,n){f.canSendRequest()&&!M&&(g>0&&I>g&&(n=!0),n&&null==_&&e.flush(t,null,20))}function ee(e,t){V&&(e=(0,c.Ax)(e));var n=e.latency,r=J(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(I++,t&&0===e.sendAttempt&&$(!e.sync,v>0&&r.count()>=v)):k++,!0)}function ne(){for(var e=0,t=0,n=function(n){var r=O[n];r&&r.batches&&(0,c.tO)(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);I=t,k=e}function re(t,n,r){var o=!1,a=0===n;return!a||f.canSendRequest()?(0,i.Lm)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=O[n];r&&r.batches&&r.batches.length>0&&((0,c.tO)(r.batches,(function(t){f.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?k-=t.count():I-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&de(ie,e,d.h.KillSwitch),o&&L>=t&&(L=-1,y=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(L=L>=0?Math.min(L,t):t,y=Math.max(y,r)),o}function ae(e,t){j(1,0,t),ne(),se((function(){e&&e(),x.length>0?_=X((function(){_=null,ae(x.shift(),t)}),0):(_=null,K())}))}function se(e){f.isCompletelyIdle()?e():_=X((function(){_=null,se(e)}),.25)}function le(){(T={})[m.ow]=[2,1,0],T[m.je]=[6,3,0],T[m.e2]=[18,9,0]}function ce(t,n){var r=[],o=U;z&&(o=W),(0,c.tO)(t,(function(t){t&&t.count()>0&&(0,c.tO)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?((0,l.if)(t,e.identifier),G(t,!1)):r.push(t))}))})),r.length>0&&de(ie,r,d.h.NonRetryableStatus),z&&Z(2,2)}function ue(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(i){(0,p.kP)(e.diagLog(),1,74,t+" notification failed: "+i)}}function de(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ue(e,[t].concat(n))}function pe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&(0,c.tO)(t,(function(t){t&&t.count()>0&&ue(e,[t.events()].concat(n))}))}function he(e,t,n){e&&e.length>0&&ue("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function me(e,t){pe("eventsSent",e,t),K()}function fe(e,t){pe(ie,e,t>=8e3&&t<=8999?t-8e3:d.h.Unknown)}function ge(e){pe(ie,e,d.h.NonRetryableStatus),K()}function ve(e,t){pe(ie,e,d.h.Unknown),K()}function ye(){v=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,P/6)}Y(),e._getDbgPlgTargets=function(){return[f]},e.initialize=function(u,d,p){(0,i.Lm)(d,(function(){return"PostChannel:initialize"}),(function(){var i=d;t.initialize(u,d,p);try{d.addUnloadCb;b=(0,a.jU)((0,s.J)(e.identifier),d.evtNamespace&&d.evtNamespace());var m=e._getTelCtx();u.extensionConfig[e.identifier]=u.extensionConfig[e.identifier]||{},n=m.getExtCfg(e.identifier),C=oe(n.setTimeoutOverride,n.clearTimeoutOverride),V=!n.disableOptimizeObj&&(0,l.mJ)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(i),n.eventsLimitInMem>0&&(P=n.eventsLimitInMem),n.immediateEventLimit>0&&(w=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(g=n.autoFlushEventsLimit),(0,c.hj)(n.maxEventRetryAttempts)&&(U=n.maxEventRetryAttempts),(0,c.hj)(n.maxUnloadEventRetryAttempts)&&(W=n.maxUnloadEventRetryAttempts),ye(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(h=n.httpXHROverride),(0,l.Sn)(u.anonCookieName)&&f.addQueryStringParameter("anoncknm",u.anonCookieName),f.sendHook=n.payloadPreprocessor,f.sendListener=n.payloadListener;var v=n.overrideEndpointUrl?n.overrideEndpointUrl:u.endpointUrl;e._notificationManager=d.getNotifyMgr(),f.initialize(v,e.core,e,h,n);var y=u.disablePageUnloadEvents||[];(0,a.c9)(r,y,b),(0,a.TJ)(r,y,b),(0,a.nD)(o,u.disablePageShowEvents,b)}catch(S){throw e.setInitialized(!1),S}}),(function(){return{coreConfig:u,core:d,extensions:p}}))},e.processTelemetry=function(t,r){(0,l.if)(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),i=!!n.disableTelemetry;o&&(i=i||!!o.disableTelemetry);var a=t;i||S||(n.overrideInstrumentationKey&&(a.iKey=n.overrideInstrumentationKey),o&&o.overrideInstrumentationKey&&(a.iKey=o.overrideInstrumentationKey),G(a,!0),z?Z(2,2):K()),e.processNext(a,r)},e._doTeardown=function(e,t){Z(2,2),S=!0,f.teardown(),(0,a.JA)(null,b),(0,a.C9)(null,b),(0,a.Yl)(null,b),Y()},e.setEventQueueLimits=function(e,t){P=e>0?e:1e4,g=t>0?t:0,ye();var n=I>e;if(!n&&v>0)for(var r=1;!n&&r<=3;r++){var o=O[r];o&&o.batches&&(0,c.tO)(o.batches,(function(e){e&&e.count()>=v&&(n=!0)}))}$(!0,n)},e.pause=function(){Q(),E=!0,f.pause()},e.resume=function(){E=!1,f.resume(),K()},e.addResponseHandler=function(e){f._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){Q(),le(),D=m.ow,K(),(0,c.rW)(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=Math.ceil(o)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),T[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!E)if(n=n||1,e)null==_?(Q(),re(1,0,n),_=X((function(){_=null,ae(t,n)}),0)):x.push(t);else{var r=Q();j(1,1,n),null!==t&&void 0!==t&&t(),r&&K()}},e.setMsaAuthTicket=function(e){f.addHeader(A,e)},e.hasEvents=q,e._setTransmitProfile=function(e){D!==e&&void 0!==T[e]&&(Q(),D=e,K())},e._backOffTransmission=function(){M<4&&(M++,Q(),K())},e._clearBackOff=function(){M&&(M=0,Q(),K())},(0,c.l_)(e,"_setTimeoutOverride",(function(){return C.set}),(function(e){C=oe(e,C.clear)})),(0,c.l_)(e,"_clearTimeoutOverride",(function(){return C.clear}),(function(e){C=oe(C.set,e)}))})),r}return(0,r.ne)(t,e),t.__ieDyn=1,t}(h.i),se=ae},86748:function(e,t,n){"use strict";n.d(t,{Z:function(){return Pe}});var r,o=n(23679),i=n(41630),a=n(89038),s=n(41370),l=n(6864),c=n(40197),u="locale",d="ver",p="name",h=(0,c.cc)({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),m=(0,c.cc)({id:[0,"id"],ver:[1,d],appName:[2,p],locale:[3,u],expId:[4,"expId"],env:[5,"env"]}),f=(0,c.cc)({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),g=(0,c.cc)({locale:[0,u],localId:[1,"localId"],id:[2,"id"]}),v=(0,c.cc)({osName:[0,p],ver:[1,d]}),y=(0,c.cc)({ver:[0,d],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),b=(0,c.cc)({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),C=(0,c.cc)({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),S=(0,c.cc)({tz:[0,"tz"]}),x=(0,c.cc)({sessionId:[0,"sesId"]}),_=(0,c.cc)({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),E=(0,c.cc)({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),k=(0,c.cc)({traceId:[0,"traceID"],traceName:[1,p],parentId:[2,"parentID"]}),w=(0,c.cc)({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]}),I=n(95858),P=n(11421),T=n(17289),D=n(69634),A=n(25661);function R(){return void 0===r&&(r=!!M(0)),r}function N(){return R()?M(0):null}function M(e){var t,n,r=null;try{var o=(0,A.Rd)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&(0,s.mf)(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function F(){return this.getId()}function B(e){this.setId(e)}var O=function(){function e(){(0,i.Z)(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return(0,s.HD)(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void(0,s.l_)(e.prototype,"id",F,B),e}(),L="ai_session",H=function(){function e(t,n){var o,l,c=(0,P.vH)(t),u=(0,T.JP)(t);(0,i.Z)(e,this,(function(t){var i,d={sessionRenewalMs:(i=n).sessionRenewalMs&&function(){return i.sessionRenewalMs},sessionExpirationMs:i.sessionExpirationMs&&function(){return i.sessionExpirationMs},cookieDomain:i.cookieDomain&&function(){return i.cookieDomain},namePrefix:i.namePrefix&&function(){return i.namePrefix},sessionAsGuid:function(){return i.sessionAsGuid},idLength:function(){return i.idLength?i.idLength:22}};function p(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var i=+r[2];n.renewalDate=+new Date(i),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(a){(0,P.kP)(c,1,510,"Error parsing ai_session cookie, session will be reset: "+a)}0===n.renewalDate&&(0,P.kP)(c,2,517,"AI session renewal date is 0, session will be reset.")}function h(){var e=t.automaticSession,n=(new Date).getTime(),r=t.config.sessionAsGuid();!(0,s.o8)(r)&&r?(0,s.jn)(r)?e.setId((0,a.cm)()):e.setId((0,a.cm)(r)):e.setId((0,D.pZ)(d&&d.idLength?d.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,m(e.getId(),e.acquisitionDate,e.renewalDate),R()||(0,P.kP)(c,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function m(e,n,r){var i=n+t.config.sessionExpirationMs(),a=r+t.config.sessionRenewalMs(),s=new Date,c=[e,n,r];i<a?s.setTime(i):s.setTime(a);var d=t.config.cookieDomain?t.config.cookieDomain():null;u.set(l(),c.join("|")+";expires="+s.toUTCString(),null,d),o=(new Date).getTime()}(0,s.mf)(n.sessionExpirationMs)||(d.sessionExpirationMs=function(){return e.acquisitionSpan}),(0,s.mf)(n.sessionRenewalMs)||(d.sessionRenewalMs=function(){return e.renewalSpan}),t.config=d,l=function(){return t.config.namePrefix&&t.config.namePrefix()?L+t.config.namePrefix():L},t.automaticSession=new O,t.update=function(){t.automaticSession.getId()||function(){var e=u.get(l());if(e&&(0,s.mf)(e.split))p(e);else{var n=function(e,t){var n=N();if(null!==n)try{return n.getItem(t)}catch(o){r=!1,(0,P.kP)(e,1,503,"Browser failed read of local storage. "+o)}return null}(c,l());n&&p(n)}t.automaticSession.getId()||h()}();var n=t.automaticSession,i=t.config,a=(new Date).getTime(),d=a-n.acquisitionDate>i.sessionExpirationMs(),f=a-n.renewalDate>i.sessionRenewalMs();if(d||f)h();else{(!o||a-o>e.cookieUpdateInterval)&&(n.renewalDate=a,m(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e,n,o,i=t.automaticSession;e=i.getId(),n=i.acquisitionDate,o=i.renewalDate,function(e,t,n){var o=N();if(null!==o)try{o.setItem(t,n)}catch(i){r=!1,(0,P.kP)(e,1,504,"Browser failed write to local storage. "+i)}}(c,l(),[e,n,o].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),V=n(64430),z=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function U(e,t){void 0===t&&(t=z);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)W(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function W(e,t){if(void 0===t&&(t=z),!e||e.length<4)return!1;for(var n=!1,r=e.substring(0,3).toString().toUpperCase(),o=0;o<t.length;o++)if(t[o]+":"===r&&e.length<=256){n=!0;break}return n}function G(){return this.getExpId()}var j=function(){function e(t,n){var r=null,o=z.slice(0),s="Treatments",l=(0,T.JP)(n),c=t;(0,i.Z)(e,this,(function(e){if((0,V.Nv)()){var n=(0,V.Me)().documentElement;n&&(e.locale=n.lang)}function i(e){e!==r&&(r=U(e,o))}e.env=t.env?t.env:function(e){var t,n={},r=(0,V.Me)();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var i=t[o];if(i.name)if(0===i.name.toLowerCase().indexOf(e)){var a=i.name.replace(e,"");n[a]=i.content}}}return n}("awa-").env,e.getExpId=function(){return c.expId?(i(c.expId),r):(i((0,a.Do)(l,s)),r)}}))}return e.validateAppExpId=U,e._staticInit=void(0,s.l_)(e.prototype,"expId",G),e}(),q=function(){},K=function(){};function Y(){return this.getMsfpc()}function X(){return this.getAnid()}var Q=function(){function e(t,n){var r=(0,T.JP)(n);(0,i.Z)(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return(0,a.Do)(r,"MSFPC")},e.getAnid=function(){return(0,a.Do)(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;(0,s.l_)(t,"msfpc",Y),(0,s.l_)(t,"anid",X)}(),e}(),Z=function(){var e=(new Date).getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())},J={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IOS:/(ipad|iphone|ipod)(?=.*like mac os x)/i,LINUX:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ANDROID:/android/i,CROS:/CrOS/i},$={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},ee="Unknown",te=[{r:J.WINPHONE,os:"Windows Phone"},{r:J.WINRT,os:"Windows RT"},{r:J.WIN,os:"Windows"},{r:J.IOS,os:"iOS"},{r:J.ANDROID,os:"Android"},{r:J.LINUX,os:"Linux"},{r:J.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:J.OSX,os:"Mac OS X"}];function ne(e,t){return"Windows"===t?re(e,"Windows NT"):"Android"===t?re(e,t):"Mac OS X"===t?function(e){var t=e.match(new RegExp("Mac OS X ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var r=oe(n);return r?n.split(r)[0]:n}}return ee}(e):"iOS"===t?function(e){var t=e.match(new RegExp("OS ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var r=oe(n);return r?n.split(r)[0]:n}}return ee}(e):ee}function re(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?$[n[1]]?$[n[1]]:n[1]:ee}function oe(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var ie=function(e){if(e.populateOperatingSystemInfo){var t=this,n=(0,V.jW)()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<te.length;t++){var n=te[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return ee}(r.toLowerCase());t.name=i,t.ver=ne(r,i)}t.name&&t.name!==ee||!(0,s.HD)(o.platform)||(t.name=o.platform)}},ae=n(6649),se="MicrosoftApplicationsTelemetryDeviceId";var le=function(){function e(t,n){var r=0;(0,i.Z)(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=(0,D._l)(!1).toString();var i=(0,T.JP)(n,t);if(i.isEnabled()||o){var s=function(e,t,n){return t?t.getProperty(n)||"":(0,a.Do)(e,n)}(i,o,se);s||(s=(0,ae.GW)()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,se,s),e.installId=s}else i.purge(se);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),ce=function(e,t,n,r){var o=this;if(o.traceId=t||(0,ae.DO)(),e.enableDistributedTracing&&!n&&(n=(0,ae.DO)().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=(0,V.k$)();i&&i.pathname&&(o.name=i.pathname)}};function ue(){return this.getLocalId()}function de(e){this.setLocalId(e)}var pe=function(){function e(t,n,r){var o,l=n,c=(0,T.JP)(r,t);(0,i.Z)(e,this,(function(n){if(c&&c.isEnabled()&&(m(),l.enableApplicationInsightsUser)){var r=(0,a.Do)(c,e.userCookieName);if(r){var i=r.split(e.cookieSeparator);i.length>0&&(n.id=i[0])}if(!n.id){n.id=(0,D.pZ)(t&&!(0,s.o8)(t.idLength)?t.idLength:22);var u=(0,s.Y6)(new Date);n.accountAcquisitionDate=u;var d=[n.id,u],p=l.cookieDomain?l.cookieDomain:void 0;c.set(e.userCookieName,d.join(e.cookieSeparator),31536e3,p)}}if("undefined"!==typeof navigator){var h=navigator;n.locale=h.userLanguage||h.language}function m(){if(!l.hashIdentifiers&&!l.dropIdentifiers){var e=(0,a.Do)(c,"MUID");e&&(o="t:"+e)}return o}n.getLocalId=function(){return o||m()},n.setLocalId=function(e){o=e}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void(0,s.l_)(e.prototype,"localId",ue,de),e}(),he=function(e){var t=this;t.popSample=100,t.eventFlags=0,e.hashIdentifiers&&(t.eventFlags=1048576|t.eventFlags),e.dropIdentifiers&&(t.eventFlags=2097152|t.eventFlags),e.scrubIpOnly&&(t.eventFlags=4194304|t.eventFlags)},me=["Required","Analytics","SocialMedia","Advertising"],fe="([\\d,.]+)",ge="Unknown",ve="Edg/",ye=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:ve,b:"Edge"},{ua:"Electron",b:"Electron"},{ua:"Chrome",b:"Chrome"},{ua:"Trident",b:"MSIE"},{ua:"MSIE ",b:"MSIE"},{ua:"Firefox",b:"Firefox"},{ua:"Safari",b:"Safari"},{ua:"SkypeShell",b:"SkypeShell"}],be=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Ce(e,t){return t.indexOf(e)>-1}function Se(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function xe(e,t){return"MSIE"===t?function(e){var t=e.match(new RegExp("MSIE ([\\d,.]+)"));if(t)return t[1];var n=e.match(new RegExp("rv:([\\d,.]+)"));if(n)return n[1]}(e):function(e,t){"Safari"===e?e="Version":"Edge"===e&&Ce(ve,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+fe));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return ge}(t,e)}function _e(){return this.getUserConsent()}var Ee=function(){function e(t,n){var r=(0,T.JP)(n),o=t||{};(0,i.Z)(e,this,(function(e){var t=(0,V.k$)();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(o.populateBrowserInfo){var i=o.userAgent,l=(o.userAgentData||{}).brands,c=(0,V.jW)();c&&(i=i||c.userAgent||"",l=l||(c.userAgentData||{}).brands),function(t,n){if((0,s.kJ)(n))try{for(var r=0;r<be.length;r++){var o=Se(be[r].br,n);if(o)return e.browser=be[r].b,void(e.browserVer=o)}}catch(a){}if(t){var i=function(e){if(e)for(var t=0;t<ye.length;t++)if(Ce(ye[t].ua,e))return ye[t].b;return ge}(t);e.browser=i,e.browserVer=xe(t,i)}}(i,l);var u=function(){var e={h:0,w:0},t=(0,V.Jj)();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=u.w+"X"+u.h}(0,s.o8)(o.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=o.gpcDataSharingOptIn,e.getUserConsent=function(){return o.userConsented||!!(0,a.Do)(r,o.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){var t=null;try{var n=o.callback;if(n&&n.userConsentDetails){var r=n.userConsentDetails();if(r){t=o.disableConsentDetailsSanitize?r:{};for(var i=0;i<me.length;i++){var a=me[i];t[a]=r[a]||!1}}}var s=e.gpcDataSharingOptIn;return null!==s&&((t=t||{}).GPC_DataSharingOptIn=!!s),t?JSON.stringify(t):null}catch(l){}},(0,s.l_)(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void(0,s.l_)(e.prototype,"userConsent",_e),e}();function ke(e,t,n,r,o){var i=t.ext[h[e]];if(i)try{(0,s.rW)(r,(function(e,t){if((0,s.HD)(t)||(0,s.hj)(t)||(0,s.jn)(t)){var r=i[n[e]];!o&&(r||(0,s.HD)(r)||(0,s.hj)(r)||(0,s.jn)(r))&&(t=r),i[n[e]]=t}}))}catch(a){}return i}var we=function(){function e(t,n,r){(0,i.Z)(e,this,(function(e){e.app=new j(n,r),e.cloud=new q,e.user=new pe(t,n,r),e.os=new ie(n),e.web=new Ee(n,r);var o=new le(t,r),i=new Q(n,r),a=new he(n);e.loc=new Z,e.device=new K;var l=new H(r,n);e.session=new O;var c=function(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),(0,I.jN)(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),(0,I.Lc)(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new ce(n),p()),u=!(n||{}).eventContainExtFields;function d(){var t=e.session;if(t&&(0,s.HD)(t.customId))return t.customId;l.update();var n=l.automaticSession;if(n){var r=n.getId();r&&(0,s.HD)(r)&&(t.automaticId=r)}return t.automaticId}function p(){var e=c;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||c),e}e.getTraceCtx=function(){return c},e.getSessionId=d,e.applyApplicationContext=function(t){var n,r=e.app;ke(4,t,m,((n={})[0]=r.id,n[1]=r.ver,n[2]=r.name,n[3]=r.locale,n[4]=r.getExpId(),n[5]=r.env,n),u)},e.applyUserContext=function(t){var n,r=e.user;ke(0,t,g,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),u)},e.applyWebContext=function(t){var n,r=e.web;ke(3,t,f,((n={})[0]=r.domain,n[1]=r.browser,n[2]=r.browserVer,n[3]=r.screenRes,n[5]=r.getUserConsentDetails(),n[4]=r.getUserConsent(),n),u)},e.applyOsContext=function(t){var n,r=e.os;ke(5,t,v,((n={})[0]=r.name,n[1]=r.ver,n),u)},e.applySdkContext=function(e){var t;ke(6,e,y,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),u)},e.applyIntWebContext=function(e){var t;ke(7,e,b,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),u)},e.applyUtcContext=function(e){var t,n=((t={})[0]=a.popSample,t);a.eventFlags>0&&(n[1]=a.eventFlags),ke(8,e,C,n,u)},e.applyLocContext=function(t){var n;ke(9,t,S,((n={})[0]=e.loc.tz,n),u)},e.applySessionContext=function(e){var t;ke(4,e,x,((t={})[0]=d(),t),u)},e.applyDeviceContext=function(t){var n,r=e.device;ke(1,t,_,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),u)},e.applyCloudContext=function(t){var n,r=e.cloud;ke(10,t,E,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),u)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=p();r&&ke(2,e,k,((t={})[0]=r.getTraceId(),t[1]=r.getName(),t[2]=r.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,n=p();if(n){var r=((t={})[0]=n.getTraceId(),t[1]=n.getSpanId(),t),o=n.getTraceFlags();(0,s.le)(o)||(r[2]=o),ke(11,e,w,r,!1)}}}))}return e.__ieDyn=1,e}();var Ie=[h[4],h[0],h[3],h[5],h[6],h[7],h[8],h[9],h[1],h[2],h[11],h[10]],Pe=function(e){function t(){var n,r,o,l=e.call(this)||this;return l.identifier="SystemPropertiesCollector",l.priority=3,l.version="3.2.14",(0,i.Z)(t,l,(function(e,t){function i(){n=null,r={}}i(),e.initialize=function(r,i,a){t.initialize(r,i,a),o=e._getTelCtx().getExtCfg(e.identifier),n=new we(r,o,i),i&&i.setTraceCtx&&i.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,i){(0,a.if)(t,e.identifier),i=e._getTelCtx(i);var l,c,u=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},(0,s.tO)(Ie,(function(e){u[e]=u[e]||{}})),n&&(n.applyUtcContext(t),n.applyApplicationContext(t),n.applyUserContext(t),n.applyWebContext(t),n.applyOsContext(t),n.applySdkContext(t),n.applyIntWebContext(t),n.applyLocContext(t),n.applySessionContext(t),n.applyDeviceContext(t),o.enableApplicationInsightsTrace&&n.applyAITraceContext(t),o.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),(0,s.tO)((0,s.FY)(u),(function(e){0===(0,s.FY)(u[e]).length&&delete u[e]})),l=r,c=t.data,l&&(0,s.rW)(l,(function(e,t){c[e]||(c[e]=t)})),e.processNext(t,i)},e.getPropertiesContext=function(){return n},e.setProperty=function(e,t){r[e]=t},e._doTeardown=function(e,t){var r=(e||{}).core();if(r&&r.getTraceCtx&&n){var o=r.getTraceCtx(!1);o&&o===n.getTraceCtx()&&r.setTraceCtx(null)}i()}})),l}return(0,o.ne)(t,e),t.__ieDyn=1,t}(l.i)},90498:function(e,t,n){"use strict";var r;n.d(t,{c:function(){return r}}),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.TRIALINTENT=234]="TRIALINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(r||(r={}))},73403:function(e,t,n){"use strict";n.d(t,{AJ:function(){return v},Hc:function(){return h},NC:function(){return m},PL:function(){return f},kd:function(){return d},ps:function(){return p},w1:function(){return g}});var r=n(89038),o=n(64430),i=n(41370),a=n(11421),s=n(47617),l=n(28487),c=n(71391),u={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function d(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!(0,r.Sn)(t)&&"pii"===t.toLowerCase()}catch(n){return!1}}function p(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:function(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+((0,r.Sn)(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var o=t.search;if(!o){var i=t.hash||"",a=i.indexOf("?");-1!==a&&(o=i.slice(a))}n+=o}e.urlCollectHash&&(n+=t.hash||"");return n}(e,t)}function h(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"===typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=((0,o.k$)()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return n=r&&r[r.length-1]?r[r.length-1]:"Home"}function m(e){return e.callback&&"function"===typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function f(e,t){var n,o="",s={},l=[],c=e.cookiesToCollect;!1===e.shareAuthStatus?l=c:(0,i.tO)(c,(function(e){"ANON"!==e&&l.push(e)}));try{try{r.dH&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(l=l.concat(window.varCustomerCookies))}catch(u){(0,a.kP)(t,1,512,"Failed to get cookies ")}(0,i.tO)(l,(function(e){s.hasOwnProperty(e)||(s[e]="",r.x9&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(o+=e+"="+n+";"))}))}catch(u){(0,a.kP)(t,1,512,"Failed to get cookies ")}return o}function g(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(e){var t=e;if(t){var n=(0,c.TD)(t);if(n&&1===n.length){if(n[0].href)return n[0].href;if(n[0].src)return n[0].src}}return""}(e);break;case"INPUT":var n=e.type;if(n&&u[n.toUpperCase()]){var r=(0,o.k$)()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function v(e,t){var n=(0,s.jU)((0,l.J)("onDomLoaded"),t);y((function(){if(r.x9&&"complete"===document.readyState)e();else{var t=(0,o.Jj)();t&&(0,s.XO)(t,"load",(function(){e&&e(),e=null,(0,s.QY)(t,null,null,n)}),n)}}))}function y(e){var t=(0,o.Me)()||{};/in/.test(t.readyState)?setTimeout((function(){y(e)}),100):e.call()}},80714:function(e,t,n){"use strict";n.d(t,{U:function(){return o},t:function(){return r}});var r,o={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",OTHER:"O"};!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(r||(r={}))},27072:function(e,t,n){"use strict";n.d(t,{K:function(){return De}});var r=n(23679),o=n(41630),i=n(89038),a=n(6649),s=n(17289),l=n(64430),c=["c:","i:","w:"],u={"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"},d=function(){function e(t){this.core=t;var n,r=(0,i.cm)(),d=(0,a.DO)(),p=null,h=!1,m=(0,s.JP)(t);(0,o.Z)(e,this,(function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||d},e.getLastPageViewId=function(){return r},e.initializeIds=function(){h?r=(0,i.cm)():h=!0},e.getMuidUserId=function(){var e=(0,i.Do)(m,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(p=null,e)for(var t=0;t<c.length;t++)if(c[t]===e.substring(0,2)){p=e;break}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return p},e.syncMuid=function(e){var t=(0,l.k$)();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=(0,l.Me)();if(r){var o=r.createElement("IMG");o.style.display="none",o.src=n,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}return!0}return!1},e.getMuidHost=function(e){return u[e]}}))}return e.visitorId=function(){return(0,i.Do)((0,s.JP)(null),"MUID")},e}(),p=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var n=(new Date).getTime();if(t)return n-this._timers[e];this._timers[e]=n},e}(),h=n(41370),m=n(11421),f=n(2694),g=n(87927),v=n(20648),y=n(32928),b=n(70461),C=n(61348),S=n(18911),x=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[C.I]=(0,S.O$)(e,t)||b.b2,o[C.qZ]=(0,S.G9)(e,n),o[C.Ee]=(0,S.NN)(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),_=function(){function e(e,t,n,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,t=t||b.b2,i[C.gU]=(0,S.HS)(e,t),i[C.qZ]=(0,S.G9)(e,r),i[C.Ee]=(0,S.NN)(e,o),n&&(i[C.uO]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),E=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},k=function(){function e(e,t,n,r,o,i,a,s,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new E;u[C.yM]=r>0?r:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(o)||null===o?void 0:o,u[C.I]=(0,S.O$)(e,t)||b.b2,u.value=n,u.stdDev=isNaN(a)||null===a?void 0:a,c.metrics=[u],c[C.qZ]=(0,S.G9)(e,s),c[C.Ee]=(0,S.NN)(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),w=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=(0,S.oO)(e,a),s.url=(0,S.rr)(e,n),s[C.I]=(0,S.O$)(e,t)||b.b2,isNaN(r)||(s[C.az]=(0,f.eN)(r)),s[C.qZ]=(0,S.G9)(e,o),s[C.Ee]=(0,S.NN)(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),I=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=(0,S.rr)(e,n),s[C.I]=(0,S.O$)(e,t)||b.b2,s[C.qZ]=(0,S.G9)(e,o),s[C.Ee]=(0,S.NN)(e,i),a&&(s.domProcessing=a.domProcessing,s[C.az]=a[C.az],s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s[C.g5]=a[C.g5],s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();function P(e,t){var n=e;return n&&!(0,h.HD)(n)&&(JSON&&JSON[C.MB]?(n=JSON[C.MB](e),!t||n&&"{}"!==n||(n=(0,h.mf)(e[C.r_])?e[C.r_]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function T(e,t){var n=e;return e&&(n&&!(0,h.HD)(n)&&(n=e.message||e.description||n),n&&!(0,h.HD)(n)&&(n=P(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[C.ou](t)&&(n=t+": "+n),n||""}function D(e){return e&&e.src&&(0,h.HD)(e.src)&&e.obj&&(0,h.kJ)(e.obj)}function A(e){var t=e||"";(0,h.HD)(t)||(t=(0,h.HD)(t.stack)?t.stack:""+t);var n=t[C.w6]("\n");return{src:t,obj:n}}function R(e){var t=null;if(e)try{if(e.stack)t=A(e.stack);else if(e.error&&e.error.stack)t=A(e.error.stack);else if(e.exception&&e.exception.stack)t=A(e.exception.stack);else if(D(e))t=e;else if(D(e.stackDetails))t=e.stackDetails;else if(window&&window.opera&&e.message)t=function(e){for(var t=[],n=e[C.w6]("\n"),r=0;r<n[C.R5];r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e[C.gU]);else if(e.reason&&e.reason.stack)t=A(e.reason.stack);else if((0,h.HD)(e))t=A(e);else{var n=e.message||e.description||"";(0,h.HD)(e.errorSrc)&&(n&&(n+="\n"),n+=" from "+e.errorSrc),n&&(t=A(n))}}catch(r){t=A(r)}return t||{src:"",obj:null}}function N(e){var t="";if(e&&!(t=e.typeName||e[C.I]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[C.r_]());t=n&&n[C.R5]>1?n[1]:""}catch(r){}return t}function M(e){if(e)try{if(!(0,h.HD)(e)){var t=N(e),n=P(e,!1);return n&&"{}"!==n||(e.error&&(t=N(e=e.error)),n=P(e,!0)),0!==n[C.ou](t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var F=function(){function e(e,t,n,r,o,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,!function(e){try{if((0,h.Kn)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}return!1}(t)?(n||(n={}),a[C.pj]=[new B(e,t,n)],a[C.qZ]=(0,S.G9)(e,n),a[C.Ee]=(0,S.NN)(e,r),o&&(a[C.uO]=o),i&&(a.id=i)):(a[C.pj]=t[C.pj]||[],a[C.qZ]=t[C.qZ],a[C.Ee]=t[C.Ee],t[C.uO]&&(a[C.uO]=t[C.uO]),t.id&&(a.id=t.id),t[C.oJ]&&(a[C.oJ]=t[C.oJ]),(0,h.le)(t[C.NE])||(a[C.NE]=t[C.NE]))}return e.CreateAutoException=function(e,t,n,r,o,i,a,s){var l,c=N(o||i||e);return(l={})[C.gU]=T(e,c),l.url=t,l.lineNumber=n,l.columnNumber=r,l.error=M(o||i||e),l.evt=M(i||e),l[C.YX]=c,l.stackDetails=R(a||o||i),l.errorSrc=s,l},e.CreateFromInterface=function(t,n,o,i){var a=n[C.pj]&&(0,h.Mr)(n[C.pj],(function(e){return B[C.HO](t,e)}));return new e(t,(0,r.uc)((0,r.uc)({},n),{exceptions:a}),o,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,o=t.measurements,i=t.severityLevel,a=t.problemGroup,s=t.id,l=t.isManual,c=n instanceof Array&&(0,h.Mr)(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[C.pj]=c,e.severityLevel=i,e.properties=r,e.measurements=o,e.problemGroup=a,e.id=s,e.isManual=l,e},e.CreateSimpleException=function(e,t,n,r,o,i){var a;return{exceptions:[(a={},a[C.A5]=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=M,e}(),B=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if((0,h.Kn)(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}return!1}(t))r[C.YX]=t[C.YX],r[C.gU]=t[C.gU],r.stack=t.stack,r[C.Xo]=t[C.Xo]||[],r[C.A5]=t[C.A5];else{var o=t,i=o&&o.evt;(0,h.VZ)(o)||(o=o.error||i||o),r[C.YX]=(0,S.O$)(e,N(o))||b.b2,r[C.gU]=(0,S.HS)(e,T(t||o,r[C.YX]))||b.b2;var a=t.stackDetails||R(t);r[C.Xo]=function(e){var t,n=e.obj;if(n&&n[C.R5]>0){t=[];var r=0,o=0;if((0,h.tO)(n,(function(e){var n=e[C.r_]();if(O.regex.test(n)){var i=new O(n,r++);o+=i[C.$t],t.push(i)}})),o>32768)for(var i=0,a=t[C.R5]-1,s=0,l=i,c=a;i<a;){if((s+=t[i][C.$t]+t[a][C.$t])>32768){var u=c-l+1;t.splice(l,u);break}l=i,c=a,i++,a--}}return t}(a),(0,h.kJ)(r[C.Xo])&&(0,h.Mr)(r[C.Xo],(function(t){t[C.wp]=(0,S.O$)(e,t[C.wp]),t[C.us]=(0,S.O$)(e,t[C.us])})),r.stack=(0,S.GO)(e,function(e){var t="";return e&&(e.obj?(0,h.tO)(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(a)),r.hasFullStack=(0,h.kJ)(r.parsedStack)&&r.parsedStack[C.R5]>0,n&&(n[C.YX]=n[C.YX]||r[C.YX])}}return e.prototype.toInterface=function(){var e,t=this,n=t[C.Xo]instanceof Array&&(0,h.Mr)(t[C.Xo],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[C.YX],message:t[C.gU],hasFullStack:t[C.A5],stack:t.stack})[C.Xo]=n||void 0,e},e.CreateFromInterface=function(t,n){var o=n[C.Xo]instanceof Array&&(0,h.Mr)(n[C.Xo],(function(e){return O[C.HO](e)}))||n[C.Xo];return new e(t,(0,r.uc)((0,r.uc)({},n),{parsedStack:o}))},e}(),O=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[C.$t]=0,"string"===typeof t){var o=t;r[C.qs]=n,r[C.RQ]="<no_method>",r[C.wp]=(0,h.nd)(o),r[C.us]="",r[C.sO]=0;var i=o.match(e.regex);i&&i[C.R5]>=5&&(r[C.RQ]=(0,h.nd)(i[2])||r[C.RQ],r[C.us]=(0,h.nd)(i[4]),r[C.sO]=parseInt(i[5])||0)}else r[C.qs]=t[C.qs],r[C.RQ]=t[C.RQ],r[C.wp]=t[C.wp],r[C.us]=t[C.us],r[C.sO]=t[C.sO],r[C.$t]=0;r.sizeInBytes+=r.method[C.R5],r.sizeInBytes+=r.fileName[C.R5],r.sizeInBytes+=r.assembly[C.R5],r[C.$t]+=e.baseSize,r.sizeInBytes+=r.level.toString()[C.R5],r.sizeInBytes+=r.line.toString()[C.R5]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[C.qs],method:e[C.RQ],assembly:e[C.wp],fileName:e[C.us],line:e[C.sO]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),L=n(44793),H=n(67043),V=n(28985),z=n(47617),U=n(28487),W=n(46419),G=n(35918),j=n(50786),q=n(6864),K="enableUnhandledPromiseRejectionTracking",Y="isBrowserLinkTrackingEnabled",X="sendPageViewPerformanceInternal",Q="populatePageViewPerformanceEvent",Z=null;var J=function(){function e(t,n,r,i){(0,o.Z)(e,this,(function(e){var o,a=null,s=[],c=!1;function u(e){r&&r.flush(e)}function d(){a||(a=setTimeout((function(){a=null;var e=s.slice(0),t=!1;s=[],(0,h.tO)(e,(function(e){e()?t=!0:s.push(e)})),s.length>0&&d(),t&&u(!0)}),100))}function p(e){s.push(e),d()}r&&(o=r.logger),e.trackPageView=function(e,r){var a=e.name;if((0,h.le)(a)||"string"!==typeof a){var s=(0,l.Me)();a=e.name=s&&s.title||""}var d=e.uri;if((0,h.le)(d)||"string"!==typeof d){var f=(0,l.k$)();d=e.uri=f&&f.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),u(!0),void(function(){if(null==Z)try{Z=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Z=!1}return Z}()||(0,m.kP)(o,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var g,v,y=!1,b=i.getPerformanceTiming().navigationStart;b>0&&(g=(0,H.yZ)(b,+new Date),i.shouldCollectDuration(g)||(g=void 0)),(0,h.le)(r)||(0,h.le)(r.duration)||(v=r.duration),!n&&isNaN(v)||(isNaN(v)&&(r||(r={}),r.duration=g),t.sendPageViewInternal(e,r),u(!0),y=!0);r||(r={}),p((function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var s={name:a,uri:d};i[Q](s),s.isValid||y?(y||(r.duration=s.durationMs,t.sendPageViewInternal(e,r)),c||(t[X](s,r),c=!0)):(r.duration=g,t.sendPageViewInternal(e,r))}else b>0&&(0,H.yZ)(b,+new Date)>6e4&&(n=!0,y||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(u){(0,m.kP)(o,1,38,"trackPageView failed on page load calculation: "+(0,h.jj)(u),{exception:(0,l.eU)(u)})}return n}))},e.teardown=function(e,t){if(a){clearTimeout(a),a=null;var n=s.slice(0);s=[],(0,h.tO)(n,(function(e){e()&&!0}))}}}))}return e.__ieDyn=1,e}(),$=36e5,ee=["googlebot","adsbot-google","apis-google","mediapartners-google"];function te(){var e=(0,l.r)();return e&&!!e.timing}function ne(){var e=(0,l.r)(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0}function re(){return te()?(0,l.r)().timing:null}function oe(){return function(){var e=(0,l.r)();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0}()?(0,l.r)().getEntriesByType("navigation")[0]:null}function ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,l.jW)()||{},r=n.userAgent,o=!1;if(r)for(var i=0;i<ee.length;i++)o=o||-1!==r.toLowerCase().indexOf(ee[i]);if(o)return!1;for(i=0;i<e.length;i++)if(e[i]<0||e[i]>=$)return!1;return!0}var ae=function(){function e(t){var n=(0,m.vH)(t);(0,o.Z)(e,this,(function(e){e[Q]=function(t){t.isValid=!1;var r=oe(),o=re(),i=0,a=0,s=0,l=0,c=0;(r||o)&&(r?(i=r.duration,a=0===r.startTime?r.connectEnd:(0,H.yZ)(r.startTime,r.connectEnd),s=(0,H.yZ)(r.requestStart,r.responseStart),l=(0,H.yZ)(r.responseStart,r.responseEnd),c=(0,H.yZ)(r.responseEnd,r.loadEventEnd)):(i=(0,H.yZ)(o.navigationStart,o.loadEventEnd),a=(0,H.yZ)(o.navigationStart,o.connectEnd),s=(0,H.yZ)(o.requestStart,o.responseStart),l=(0,H.yZ)(o.responseStart,o.responseEnd),c=(0,H.yZ)(o.responseEnd,o.loadEventEnd)),0===i?(0,m.kP)(n,2,10,"error calculating page view performance.",{total:i,network:a,request:s,response:l,dom:c}):e.shouldCollectDuration(i,a,s,l,c)?i<Math.floor(a)+Math.floor(s)+Math.floor(l)+Math.floor(c)?(0,m.kP)(n,2,8,"client performance math error.",{total:i,network:a,request:s,response:l,dom:c}):(t.durationMs=i,t.perfTotal=t.duration=(0,f.eN)(i),t.networkConnect=(0,f.eN)(a),t.sentRequest=(0,f.eN)(s),t.receivedResponse=(0,f.eN)(l),t.domProcessing=(0,f.eN)(c),t.isValid=!0):(0,m.kP)(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:a,request:s,response:l,dom:c}))},e.getPerformanceTiming=re,e.isPerformanceTimingSupported=te,e.isPerformanceTimingDataReady=ne,e.shouldCollectDuration=ie}))}return e.__ieDyn=1,e}(),se=function(){function e(t,n){var r="prevPageVisitData";(0,o.Z)(e,this,(function(e){e.trackPreviousPageVisit=function(e,o){try{var i=function(e,n){var o=null;try{o=function(){var e=null;try{if((0,g.D3)()){var n=(0,h.m6)(),o=(0,g.Vd)(t,r);o&&(0,l.nS)()&&((e=(0,l.xA)().parse(o)).pageVisitTime=n-e.pageVisitStartTime,(0,g.ll)(t,r))}}catch(i){(0,m.jV)(t,"Stop page visit timer failed: "+(0,l.eU)(i)),e=null}return e}(),function(e,n){try{if((0,g.D3)()){null!=(0,g.Vd)(t,r)&&(0,h._y)("Cannot call startPageVisit consecutively without first calling stopPageVisit");var o=new le(e,n),i=(0,l.xA)().stringify(o);(0,g.yp)(t,r,i)}}catch(a){(0,m.jV)(t,"Call to start failed: "+(0,l.eU)(a))}}(e,n)}catch(i){(0,m.jV)(t,"Call to restart failed: "+(0,l.eU)(i)),o=null}return o}(e,o);i&&n(i.pageName,i.pageUrl,i.pageVisitTime)}catch(a){(0,m.jV)(t,"Auto track page visit time failed, metric will not be collected: "+(0,l.eU)(a))}},(0,h.l_)(e,"_logger",(function(){return t})),(0,h.l_)(e,"pageVisitTimeTrackingHandler",(function(){return n}))}))}return e.__ieDyn=1,e}(),le=function(e,t){this.pageVisitStartTime=(0,h.m6)(),this.pageName=e,this.pageUrl=t},ce=function(e,t){var n=this,r={};n.start=function(t){"undefined"!==typeof r[t]&&(0,m.kP)(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,o,i,a){var s=r[t];if(isNaN(s))(0,m.kP)(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=+new Date,c=(0,H.yZ)(s,l);n.action(t,o,c,i,a)}delete r[t],r[t]=void 0}};function ue(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function de(e,t){return(e=e||t)<6e4&&(e=6e4),e}function pe(e){return e||(e={}),e.sessionRenewalMs=de(e.sessionRenewalMs,18e5),e.sessionExpirationMs=de(e.sessionExpirationMs,864e5),e.disableExceptionTracking=(0,f.CO)(e.disableExceptionTracking),e.autoTrackPageVisitTime=(0,f.CO)(e.autoTrackPageVisitTime),e.overridePageViewDuration=(0,f.CO)(e.overridePageViewDuration),e[K]=(0,f.CO)(e[K]),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=(0,f.CO)(e.isStorageUseDisabled),e[Y]=(0,f.CO)(e[Y]),e.enableAutoRouteTracking=(0,f.CO)(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=(0,f.CO)(e.enableDebug),e.disableFlushOnBeforeUnload=(0,f.CO)(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=(0,f.CO)(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e}var he=function(e){function t(){var n,i,c,u,d,p,m,C,E,P,T,D,A,R,N=e.call(this)||this;N.identifier=v.BI,N.priority=180,N.autoRoutePVDelay=500;var M,B,O;return(0,o.Z)(t,N,(function(e,t){var o=t._addHook;function N(t,n,r,o,i){e.diagLog().throwInternal(t,n,r,o,i)}function q(){n=null,i=null,c=null,u=null,d=null,p=null,m=!1,C=!1,E=!1,P=!1,T=!1,D=!1,A=!1,R=!1,0;var e=(0,l.k$)(!0);M=e&&e.href||"",B=null,O=null}q(),e.getCookieMgr=function(){return(0,s.JP)(e.core)},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=(0,y.Z)(t,x.dataType,x.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){N(2,39,"trackTrace failed, trace will not be collected: "+(0,h.jj)(o),{exception:(0,l.eU)(o)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(t){N(1,29,"startTrackEvent failed, event will not be collected: "+(0,h.jj)(t),{exception:(0,l.eU)(t)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(o){N(1,30,"stopTrackEvent failed, event will not be collected: "+(0,h.jj)(o),{exception:(0,l.eU)(o)})}},e.trackTrace=function(t,n){try{var r=(0,y.Z)(t,_.dataType,_.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){N(2,39,"trackTrace failed, trace will not be collected: "+(0,h.jj)(o),{exception:(0,l.eU)(o)})}},e.trackMetric=function(t,n){try{var r=(0,y.Z)(t,k.dataType,k.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){N(1,36,"trackMetric failed, metric will not be collected: "+(0,h.jj)(o),{exception:(0,l.eU)(o)})}},e.trackPageView=function(t,n){try{var o=t||{};c.trackPageView(o,(0,r.uc)((0,r.uc)((0,r.uc)({},o.properties),o.measurements),n)),e.config.autoTrackPageVisitTime&&d.trackPreviousPageVisit(o.name,o.uri)}catch(i){N(1,37,"trackPageView failed, page view will not be collected: "+(0,h.jj)(i),{exception:(0,l.eU)(i)})}},e.sendPageViewInternal=function(t,n,r){var o=(0,l.Me)();o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri);var i=(0,y.Z)(t,w.dataType,w.envelopeType,e.diagLog(),n,r);e.core.track(i),0},e[X]=function(t,n,r){var o=(0,y.Z)(t,I.dataType,I.envelopeType,e.diagLog(),n,r);e.core.track(o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{u[Q](r),e[X](r,n)}catch(o){N(1,37,"trackPageViewPerformance failed, page view will not be collected: "+(0,h.jj)(o),{exception:(0,l.eU)(o)})}},e.startTrackPage=function(e){try{if("string"!==typeof e){var t=(0,l.Me)();e=t&&t.title||""}i.start(e)}catch(n){N(1,31,"startTrackPage failed, page view may not be collected: "+(0,h.jj)(n),{exception:(0,l.eU)(n)})}},e.stopTrackPage=function(t,n,r,o){try{if("string"!==typeof t){var a=(0,l.Me)();t=a&&a.title||""}if("string"!==typeof n){var s=(0,l.k$)();n=s&&s.href||""}i.stop(t,n,r,o),e.config.autoTrackPageVisitTime&&d.trackPreviousPageVisit(t,n)}catch(c){N(1,32,"stopTrackPage failed, page view will not be collected: "+(0,h.jj)(c),{exception:(0,l.eU)(c)})}},e.sendExceptionInternal=function(t,n,r){var o=t&&(t.exception||t.error)||(0,h.VZ)(t)&&t||{name:t&&typeof t,message:t||b.b2};t=t||{};var i=new F(e.diagLog(),o,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),a=(0,y.Z)(i,F.dataType,F.envelopeType,e.diagLog(),n,r);e.core.track(a)},e.trackException=function(t,n){t&&!t.exception&&t.error&&(t.exception=t.error);try{e.sendExceptionInternal(t,n)}catch(r){N(1,35,"trackException failed, exception will not be collected: "+(0,h.jj)(r),{exception:(0,l.eU)(r)})}},e._onerror=function(t){var n=t&&t.error,r=t&&t.evt;try{if(!r){var o=(0,l.Jj)();o&&(r=o.event)}var i=t&&t.url||((0,l.Me)()||{}).URL,a=t.errorSrc||"window.onerror@"+i+":"+(t.lineNumber||0)+":"+(t.columnNumber||0),s={errorSrc:a,url:i,lineNumber:t.lineNumber||0,columnNumber:t.columnNumber||0,message:t.message};(0,f.uI)(t.message,t.url,t.lineNumber,t.columnNumber,t.error)?function(t,n){var r=(0,y.Z)(t,F.dataType,F.envelopeType,e.diagLog(),n);e.core.track(r)}(F.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,t.lineNumber||0,t.columnNumber||0,n,r,null,a),s):(t.errorSrc||(t.errorSrc=a),e.trackException({exception:t,severityLevel:3},s))}catch(u){var c=n?n.name+", "+n.message:"null";N(1,11,"_onError threw exception while logging error, error will not be collected: "+(0,h.jj)(u),{exception:(0,l.eU)(u),errorString:c})}},e.addTelemetryInitializer=function(t){if(e.core)return e.core.addTelemetryInitializer(t);p||(p=[]),p.push(t)},e.initialize=function(r,s,f,y){if(!e.isInitialized()){(0,h.le)(s)&&(0,h._y)("Error initializing"),t.initialize(r,s,f,y),r.storagePrefix&&(0,g.mh)(r.storagePrefix);try{O=(0,z.jU)((0,U.J)(e.identifier),s.evtNamespace&&s.evtNamespace()),p&&((0,h.tO)(p,(function(e){s.addTelemetryInitializer(e)})),p=null);var b=function(t){var n=(0,W.CD)(null,t,e.core),r=e.identifier,o=pe(t),i=e.config=n.getExtCfg(r);void 0!==o&&(0,h.rW)(o,(function(e,t){i[e]=n.getConfig(r,e,t),void 0===i[e]&&(i=t)}));return i}(r);!function(e){(0,h.o8)(e.isStorageUseDisabled)||(e.isStorageUseDisabled?(0,g.B1)():(0,g.MB)())}(b),u=new ae(e.core),c=new J(e,b.overridePageViewDuration,e.core,u),d=new se(e.diagLog(),(function(t,n,r){return function(t,n,r){var o={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},o)}(t,n,r)})),function(t,n){m=t[Y]||n[Y],function(){if(!C&&m){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(m&&e.baseType===L.H.dataType){var n=e.baseData;if(n)for(var r=0;r<t.length;r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}return!0};e.addTelemetryInitializer(n),C=!0}}()}(b,r),(n=new ce(e.diagLog(),"trackEvent")).action=function(t,n,r,o,i){o||(o={}),i||(i={}),o.duration=r.toString(),e.trackEvent({name:t,properties:o,measurements:i})},(i=new ce(e.diagLog(),"trackPageView")).action=function(t,n,r,o,i){(0,h.le)(o)&&(o={}),o.duration=r.toString();var a={name:t,uri:n,properties:o,measurements:i};e.sendPageViewInternal(a,o)},(0,l.Ym)()&&(function(t){var n=(0,l.Jj)(),r=(0,l.k$)(!0);(T=t.disableExceptionTracking)||D||t.autoExceptionInstrumented||(o((0,G.qN)(n,"onerror",{ns:O,rsp:function(t,n,r,o,i,a){T||!0===t.rslt||e._onerror(F.CreateAutoException(n,r,o,i,a,t.evt))}},!1)),D=!0);!function(t,n,r){(A=!0===t[K])&&!R&&(o((0,G.qN)(n,"onunhandledrejection",{ns:O,rsp:function(t,n){A&&!0!==t.rslt&&e._onerror(F.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!(0,h.HD)(t)&&(0,h.mf)(t.toString)?t.toString():(0,l.eU)(t)}return e||""}(n),r?r.href:"",0,0,n,t.evt))}},!1)),R=!0,t.autoUnhandledPromiseInstrumented=R)}(t,n,r)}(b),function(t){var n=(0,l.Jj)(),r=(0,l.k$)(!0);if(E=!0===t.enableAutoRouteTracking,n&&E&&(0,l.fE)()){var i=(0,l.s1)();(0,h.mf)(i.pushState)&&(0,h.mf)(i.replaceState)&&typeof Event!==j.jA&&function(t,n,r,i){var s=t.namePrefix||"";function l(){E&&ue(n,(0,V.P)(s+"locationchange"))}function c(){if(B?(M=B,B=i&&i.href||""):B=i&&i.href||"",E){var t=function(){var t=null;e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1));if(!t){var n=e.core.getPlugin(v.A3);if(n){var r=n.plugin.context;r&&(t=(0,H.xx)(r.telemetryTrace))}}return t}();if(t){t.setTraceId((0,a.DO)());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName((0,S.O$)(e.diagLog(),n))}setTimeout(function(t){e.trackPageView({refUri:t,properties:{duration:0}})}.bind(e,M),e.autoRoutePVDelay)}}P||(o((0,G.qN)(r,"pushState",{ns:O,rsp:function(){E&&(ue(n,(0,V.P)(s+"pushState")),ue(n,(0,V.P)(s+"locationchange")))}},!0)),o((0,G.qN)(r,"replaceState",{ns:O,rsp:function(){E&&(ue(n,(0,V.P)(s+"replaceState")),ue(n,(0,V.P)(s+"locationchange")))}},!0)),(0,z.XO)(n,s+"popstate",l,O),(0,z.XO)(n,s+"locationchange",c,O),P=!0)}(t,n,i,r)}}(b))}catch(x){throw e.setInitialized(!1),x}}},e._doTeardown=function(e,t){c&&c.teardown(e,t),(0,z.QY)(window,null,null,O),q()},(0,h.l_)(e,"_pageViewManager",(function(){return c})),(0,h.l_)(e,"_pageViewPerformanceManager",(function(){return u})),(0,h.l_)(e,"_pageVisitTimeManager",(function(){return d})),(0,h.l_)(e,"_evtNamespace",(function(){return"."+O}))})),N}return(0,r.ne)(t,e),t.Version="2.8.16",t.getDefaultConfig=pe,t}(q.i),me=n(73403),fe=n(71391),ge=n(90498);function ve(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}var ye=function(){function e(e,t,n,r,o,i,a){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this.metaTags=i,this._traceLogger=a,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),(0,i.Sn)(e.name)||(e.name=me.Hc(this._config,t)),!(0,i.Sn)(e.uri)&&i.dH&&(e.uri=me.ps(this._config,(0,l.k$)()))},e.prototype._setCommonProperties=function(e,t,n){var r=this;r._setBasicProperties(e,n),r._setPageTags(e,n),r._pageTypeMetaTag=ve(r.metaTags,r._config.coreData,"pageType"),r._marketMetaTag=ve(r.metaTags,r._config.coreData,"market"),r._behaviorMetaTag=ve(r.metaTags,r._config.coreData,"behavior"),(0,i.Sn)(n.pageType)&&(e.pageType=n.pageType),(0,i.Sn)(r._pageTypeMetaTag)&&!(0,i.Sn)(e.pageType)&&(e.pageType=r._pageTypeMetaTag),(0,i.Sn)(r._marketMetaTag)&&(e.market=r._marketMetaTag),e.isLoggedIn=me.NC(r._config),t.cookieEnabled=(0,s.p7)()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},(0,h.rW)(n.metaTags,(function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)}))),n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=(0,i.l7)(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=(0,i.l7)(!0,n._pageTags,n._pageTagsCallback())),(0,i.Sn)(t.pageTags)&&(n._pageTags=(0,i.l7)(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&(0,i.Sn)(e.behavior)?t=e.behavior:(0,i.Sn)(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if((0,i.Sn)(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?ge.c[e]:n)in ge.c)return t}return 0},e.prototype._getContentFormatted=function(e){if((0,i.Sn)(e))return(0,h.kJ)(e)?JSON.stringify(e):(0,fe.uU)(JSON.stringify(e))},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ne)(t,e),t.prototype.trackContentUpdate=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};(0,h.tO)(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){r.baseData[t]=e[t]})),(0,h.rW)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=(0,i.Sn)(e)?e:{};var n={},r=(0,i.Sn)(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),(0,i.Sn)(e.actionType)&&(n.actionType=e.actionType);var o=(0,fe.Xl)(),a=(0,fe.zF)();n.pageHeight=i.x9?document.body.scrollHeight:null,n.vpHeight=o.h,n.vpWidth=o.w,n.vScrollOffset=a.v,n.hScrollOffset=a.h,n.contentVer="2.0",n.isManual=!e.isAuto;var s=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());s&&(n.content=s),(0,i.Sn)(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}(ye),Ce=n(80714),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ne)(t,e),t.prototype.trackPageAction=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:1};(0,h.o8)(e.sync)||(r.sync=e.sync),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,(0,h.rW)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=(0,i.Sn)(t)?t:{};var o={},a=(0,i.Sn)(n)?n:{};this._setCommonProperties(o,a,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var s={};if(e=(0,fe.rV)(e),r)o.behavior=9;else{var l=this._config||{};if((e&&(0,h.o8)(l.syncPageActionNavClick)||l.syncPageActionNavClick)&&(t.actionType===Ce.U.CLICKLEFT||t.actionType===Ce.U.KEYBOARDENTER)&&"a"===e.tagName.toLowerCase()){var c=(e.getAttribute("href")||"").toLowerCase();c&&((0,h.xe)(c,"https:")||(0,h.xe)(c,"http:")||(0,h.xe)(c,".")||(0,h.xe)(c,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=me.w1(e),s=this._contentHandler.getElementContent(e,Ce.t.PAGE_ACTION),(s=(0,i.l7)(s,this._getCustomTags(e)))&&s.bhvr&&!(0,i.Sn)(t.behavior))){var u=(0,fe.xZ)(s,"bhvr");o.behavior=this._getValidBehavior(u)}(0,i.Sn)(t.actionType)&&(o.actionType=t.actionType),(0,i.Sn)(t.clickCoordinateX)&&(0,i.Sn)(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),(0,i.Sn)(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer="2.0";var d=t.content||s;if(!(0,h.kJ)(d)){var p=this._config.callback.pageActionContentTags;d=(0,i.l7)(d,"function"===typeof p?p(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(d),a.timeToAction=this._getTimeToClick(),a.refUri=(0,i.Sn)(t.refUri)?t.refUri:this._config.coreData.referrerUri;var m=me.PL(this._config,this._traceLogger);m&&(a.cookies=m),this.trackPageAction(o,a)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!me.kd(e))for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=(0,l.r)();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(ye),xe=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,null,r,{},{},o)||this;return s._webAnalyticsPlugin=t,s._config=n,s._id=r,s._traceLogger=o,s._timestamp=i,s._maxScroll=a,s}return(0,r.ne)(t,e),t.prototype.trackPageUnload=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:3},o=this._config||{};((0,h.o8)(o.syncUnloadAction)||o.syncUnloadAction)&&(r.sync=3),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,(0,h.rW)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=(0,i.Sn)(e)?e:{};var n={},r=(0,i.Sn)(t)?t:{},o=i.x9?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=(0,fe.Xl)().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,i.dH){var a=(0,l.r)(),s=a?a.timing:null;s&&s.loadEventStart&&s.navigationStart&&s.loadEventStart>0&&(r.pageLoadTime=s.loadEventStart-s.navigationStart)}this.trackPageUnload(n,r)},t}(ye),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ne)(t,e),t.prototype.capturePageView=function(e,t){e=(0,i.Sn)(e)?e:{};var n={},r=(0,i.Sn)(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=(0,i.Sn)(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=me.PL(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(ye),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ne)(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=(0,i.Sn)(e)?e:{};var n={},r=(0,i.Sn)(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,r.behavior=this._getBehavior(e),r.vpHeight=e.vpHeight,r.vpWidth=e.vpWidth,r.framework=e.framework,r.systemTiming=e.systemTiming,r.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,r)},t}(ye),ke=n(49327),we={longNames:{isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},shortNames:{isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"}},Ie={parentId:"parentId",parentName:"parentName"},Pe={parentId:"pI",parentName:"pN"},Te=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?we.shortNames:we.longNames}return e.prototype.getMetadata=function(){var e={},t={};return i.x9&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),(0,i.l7)(!0,t,e)},e.prototype.getVisibleContent=function(){var e=(0,fe.Xl)(),t=(0,fe.jF)(e),n=null;i.x9&&(n=document.querySelectorAll((0,fe.uU)(this._contentBlobFieldNames.areaName)+","+(0,fe.uU)(this._contentBlobFieldNames.slotNumber)+","+(0,fe.uU)(this._config.biBlobAttributeTag)));var r=[];if(n)for(var o=0;o<n.length;o++){var a=n[o];if(!(0,fe.Yg)(a)&&(0,fe.bL)(a,t)){var s=this.getElementContent(a,Ce.t.CONTENT_UPDATE);s&&r.push(s)}}return r},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,r,o,a={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){r=(n=e).getAttribute(this._config.biBlobAttributeTag);try{a=JSON.parse(r)}catch(s){(0,m.kP)(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,a=(0,i.l7)(a,this._populateElementContentwithDataBi(o,e)));else if((n=(0,fe.n0)(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{a=JSON.parse(r)}catch(s){(0,m.kP)(this._traceLogger,1,506,"Can not parse "+r)}else o=(0,fe.Wn)(e,this._isTrackedWithDataBi),a=(0,i.l7)(a,this._populateElementContentwithDataBi(o,e));return(0,fe.Z0)(a),this._config.autoCapture.lineage&&t===Ce.t.PAGE_ACTION&&(a=(0,i.l7)(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=(0,i.l7)(a,this._getParentDetails(n||o,a))),a},e.prototype.getLineageDetails=function(e){for(var t,n,r,o=[],i=[],a=this._config.biBlobAttributeTag,s="data-module-id";e;){var l=e.getAttribute(a)||e[a],c=e.getAttribute(s)||e["data-module-id"];if(l){try{var u=JSON.parse(l)}catch(d){(0,m.kP)(this._traceLogger,1,507,"Can not parse "+l)}u&&(n=u.cN||u.cT,r=u.id||void 0,(n||r)&&(o.push(n),c&&(t=n),i.push(r)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),r=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||r)&&(o.push(n),c&&(t=n),i.push(r));e=e.parentElement}return{lineage:o.join(">"),lineageById:i.join(">"),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e){if(!this._config.useDefaultContentName)return n;e=t}var r=(0,fe.n0)(e,this._contentBlobFieldNames.areaName),o=(0,i.l7)({},this._getAreaContent(r)),a=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",s=this._getDefaultContentName(t,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:o.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:a||e.getAttribute(this._contentBlobFieldNames.contentName)||s||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||o.contentSource,tN:o.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||o.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||(0,m.kP)(this._traceLogger,2,515,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var l,c=0;c<e.attributes.length;c++){if((l=e.attributes[c]).name!==this._contentBlobFieldNames.id&&l.name!==this._contentBlobFieldNames.areaName&&l.name!==this._contentBlobFieldNames.slotNumber&&l.name!==this._contentBlobFieldNames.contentName&&l.name!==this._contentBlobFieldNames.contentSource&&l.name!==this._contentBlobFieldNames.templateName&&l.name!==this._contentBlobFieldNames.productId&&l.name!==this._contentBlobFieldNames.contentType&&l.name!==this._contentBlobFieldNames.parentId&&l.name!==this._contentBlobFieldNames.parentName&&-1!==l.name.indexOf("data-bi-"))n[l.name.replace("data-bi-","")]=l.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(i.x9){n=document.querySelectorAll("meta");for(var o=0;o<n.length;o++){var a=n[o];if(a.name)if(0===a.name.toLowerCase().indexOf(e))r[t?a.name.replace(e,""):a.name]=a.content}}return r},e.prototype._getAreaContent=function(e){if(e=(0,fe.rV)(e))return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||me.kd(e)||!e.tagName)return"";var n,r=(0,l.Me)()||{};switch(e.tagName){case"A":n=r.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":n=e.alt;break;default:n=e.value||e.name||e.alt||e.innerText||e.id}return n.substring(0,200)},e.prototype._getParentDetails=function(e,t){var n=this._contentBlobFieldNames.isShortNames?Pe.parentId:Ie.parentId,r=this._contentBlobFieldNames.isShortNames?Pe.parentName:Ie.parentName,o=t[n],i=t[r];return o||i||!e?{}:this._populateParentInfo(e,n,r)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var r,o,i={},a=this._config.biBlobAttributeTag,s=(0,fe.Wn)(e.parentElement,this._isTracked);if(s){var l=s.getAttribute(a)||e[a];if(l){try{var c=JSON.parse(l)}catch(u){(0,m.kP)(this._traceLogger,1,507,"Can not parse "+l)}c&&(r=c.id,o=c.cN)}else r=s.getAttribute(this._contentBlobFieldNames.id),o=s.getAttribute(this._contentBlobFieldNames.contentName);r&&(i[t]=r),o&&(i[n]=o)}return i},e}();var De=function(e){function t(){var n,r,a,s,l,c,u,f,g=e.call(this)||this;g.identifier="WebAnalyticsPlugin",g.version="3.2.14";var v,y,b,C,S=!1;return(0,o.Z)(t,g,(function(e,t){function o(){n=null,r=null,a=null,s=null,l=null,c=null,u=null,f={h:0,v:0},S=!1,v=null,y=null,b=null,C=null}function x(e){b&&(e&&(C.pageView&&b.pageView(),C.onLoad&&b.onLoad()),C.click&&b.click(),C.scroll&&b.scroll(u.debounceMs),C.resize&&b.resize(u.debounceMs),(C.onUnload||u.manualPageUnload)&&b.maxScroll(f),C.onUnload&&b.onUnload())}function _(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}o(),e.updateCoreDataConfig=function(e){u.coreData=(0,i.l7)(!0,u.coreData,e)},e.refreshMetadata=function(){var e=y.getMetadata();n.metaTags=e,a.metaTags=e,r.metaTags=e,l.metaTags=e},e.initialize=function(o,S,_){var E=S;o.extensionConfig=o.extensionConfig||[],o.extensionConfig[e.identifier]=o.extensionConfig[e.identifier]||{},e._config=u=function(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:i.x9?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return(0,h.rW)(t,(function(e,t){(0,h.Kn)(t)&&n.push(e)})),(0,fe.yn)(e,n),(0,i.l7)(!0,t,e)}(o.extensionConfig[e.identifier]),C=u.autoCapture;var k=E.getWParam;if(E.getWParam=function(){var e=0;return u.mscomCookies&&(e|=1),e|k()},o.extensionConfig[e.identifier].disableExceptionTracking=!C.jsError,t.initialize(o,S,_),y=y||new Te(u,e.diagLog()),b=b||new ke.b(e,e.diagLog()),u.manageCv){for(var w=0;w<_.length;w++)if("CorrelationVectorPlugin"===_[w].identifier){u.manageCv=!0,c=_[w];break}c||((0,m.kP)(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),u.manageCv=!1)}e.id=new d(S),v=new p;var I=y.getMetadata();n=new _e(g,u,y,e.id,u.callback.pageViewPageTags,I,e.diagLog()),r=new Se(g,u,y,e.id,u.callback.pageActionPageTags,I,e.diagLog()),a=new be(g,u,y,e.id,u.callback.contentUpdatePageTags,I,e.diagLog()),s=new xe(g,u,e.id,e.diagLog(),v,f),l=new Ee(g,u,y,e.id,u.callback.pageViewPageTags,I,e.diagLog()),u.syncMuid&&(0,me.AJ)((function(){var t=e.id.getMuidHost(u.muidDomain);e.id.syncMuid(t)}),e._evtNamespace),x(!0)},e.processTelemetry=function(n,r){(0,i.if)(n,e.identifier);var o=n;"PageviewData"===o.baseType?(o.name="Ms.Web.PageView",o.latency=3):"ExceptionData"===o.baseType?(o.name="Ms.Web.ClientError",o.latency=1,delete o.baseData.aiDataContract):"PageviewPerformanceData"===o.baseType&&(o.name="Ms.Web.PageViewPerformance",o.latency=1,delete o.baseData.isValid,delete o.baseData.durationMs);var a=null;"PageviewData"!==o.baseType?u.manageCv&&(a=c.getCv())&&a.increment():u.manageCv&&((a=c.getCv())?a.seed():a=c.getCv()),t.processTelemetry(o,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},(0,i.Sn)(n)&&(0,h.rW)(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,r){v._recordTimeSpan("dwellTime",!1),f.v=0,S=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,_(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,_(e))},e.capturePageViewPerformance=function(e,t){l.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||(0,i.cm)(),t.sendExceptionInternal(e,n,_(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){(0,fe.Ec)(e,t)&&r.capturePageAction(e,t,n,o)},e.trackContentUpdate=function(e,t){a.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){a.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){S||(S=!0,s.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){S||(S=!0,s.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){var n=e._pageViewPerformanceManager;n&&n.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){y=e},e.setAutoCaptureHandler=function(e){b!==e&&(b&&b.teardown(),b=e,x(!1))},e._doTeardown=function(e,n){b&&b.teardown(e,n),t._doTeardown(e,n),o()}})),g}return(0,r.ne)(t,e),t.__ieDyn=1,t}(he)},71391:function(e,t,n){"use strict";n.d(t,{A9:function(){return y},Ec:function(){return C},Gk:function(){return f},TD:function(){return l},Wn:function(){return c},Xl:function(){return w},Yg:function(){return b},Z0:function(){return s},bL:function(){return p},eT:function(){return E},i2:function(){return v},jF:function(){return I},n0:function(){return S},rV:function(){return d},sD:function(){return g},tr:function(){return m},uU:function(){return _},xZ:function(){return h},yn:function(){return a},zF:function(){return k}});var r=n(41370),o=n(89038),i=n(64430);function a(e,t){s(e),(0,r.tO)(t,(function(t,n){(0,r.Kn)(e[t])?s(e[t]):delete e[t]}))}function s(e){(0,r.rW)(e,(function(t,n){(!(0,o.Sn)(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function l(e){return c(e,u)}function c(e,t,n){var r=e;if(r){for(r=r;!t(r,n);)if(!(r=r=r.parentNode)||!r.getAttribute)return null;return r}}function u(e){return"A"===e.nodeName}function d(e){return e}function p(e,t){return function(e,t){var n=e.left,r=e.top,o=e.right,i=e.bottom,a=t.left,s=t.top,l=t.right,c=t.bottom;return Math.max(0,Math.min(o,l)-Math.max(n,a))*Math.max(0,Math.min(i,c)-Math.max(r,s))}((e=e).getBoundingClientRect(),t)>0}function h(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function m(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0}function f(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}function g(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}function v(e){if("keyCode"in e)return 13===e.keyCode}function y(e){if("keyCode"in e)return 32===e.keyCode}function b(e,t){var n=S(e,"data-bi-dnt");return!!(0,o.Sn)(n)}function C(e,t){return!(t&&t.isAuto&&(0,o.Sn)(S(e,"data-bi-mto")))&&!b(e)}function S(e,t){return c(e,x,t)}function x(e,t){var n=e.getAttribute(t);return(0,o.Sn)(n)||""===n}function _(e){return"["+e+"]"}function E(e,t,n,r){var o;return function(){var i=arguments,a=function(){o=0,t&&t.apply(r,i)},s=!o;clearTimeout(o),o=setTimeout(a,n),s&&e&&e.apply(r,i)}}function k(){var e={h:0,v:0},t=(0,i.Jj)(),n=(0,i.Me)();return n&&t&&(e={h:parseInt(n.body.scrollLeft||n.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(n.body.scrollTop||n.documentElement.scrollTop||t.pageYOffset,10)}),e}function w(){var e={h:0,w:0},t=(0,i.Jj)(),n=(0,i.Me)();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}function I(e){return{top:0,bottom:e.h,left:0,right:e.w}}},49327:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(41630),o=n(47617),i=n(28487),a=n(64430),s=n(73403),l=n(80714),c=n(71391),u={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},d=function(){function e(t,n){var d,p,h,m,f,g,v,y,b,C=this;(0,r.Z)(e,this,(function(e){function r(e){var t={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=(0,a.Jj)(),r=(e=e||n.event).srcElement||e.target,o={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},i=(0,c.tr)(e);if(i)o.actionType=l.U.CLICKRIGHT;else if((0,c.Gk)(e))o.actionType=l.U.CLICKLEFT;else if((0,c.i2)(e))o.actionType=l.U.KEYBOARDENTER;else if((0,c.A9)(e))o.actionType=l.U.KEYBOARDSPACE;else{if(!(0,c.sD)(e))return;o.actionType=l.U.CLICKMIDDLE}for(;r&&r.tagName;){if(r.control&&t[r.control.tagName.toUpperCase()]&&(r=r.control),t[r.tagName.toUpperCase()]){("INPUT"!==r.tagName.toUpperCase()||u[r.type.toUpperCase()])&&d&&d.capturePageAction(r,o,{},i);break}r=r.parentElement||r.parentNode}}function S(){e._analyticsPlugin=null,e._traceLogger=null,d=null,p=null,h=null,f=!1,g=!1,v=!1,y=!1,b=!1}S(),d=t,p=n,h=(0,o.jU)((0,i.J)("AutoCaptureHandler"),d._evtNamespace),e._analyticsPlugin=d,e._traceLogger=p,e.pageView=function(){d&&d.capturePageView({isAuto:!0})},e.onLoad=function(){d&&!b&&((0,s.AJ)((function(){d&&d.capturePageViewPerformance({isAuto:!0}),d&&d.captureContentUpdate({isAuto:!0,isDomComplete:!0})}),h),b=!0)},e.click=function(){if(!m){var e=(0,a.Jj)(),t=(0,a.Me)();if(e&&e.addEventListener){var n=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";(0,o.XO)(e,n,r,h),(0,o.XO)(e,"keyup",r,h)}else t&&t.attachEvent&&((0,o.XO)(t,"click",r,h),(0,o.XO)(t,"keyup",r,h));m=!0}},e.scroll=function(e){if(!f){var t=(0,c.eT)(null,(function(){d&&d.captureContentUpdate({isAuto:!0,actionType:l.U.SCROLL})}),e.scroll,C);(0,o.XO)((0,a.Jj)(),"scroll",t,h),f=!0}},e.maxScroll=function(e){if(!g){(0,o.XO)((0,a.Jj)(),"scroll",(function(){var t=(0,c.zF)();e.v=e.v>t.v?e.v:t.v}),h),g=!0}},e.resize=function(e){if(!v){var t=(0,c.eT)((function(){d&&d.captureContentUpdate({isAuto:!0,actionType:l.U.RESIZE})}),null,e.resize,C);(0,o.XO)((0,a.Jj)(),"resize",t,h),v=!0}},e.onUnload=function(){function e(){d&&d.capturePageUnload({isAuto:!0})}if(!y){var t=((d||{}).core||{}).config.disablePageUnloadEvents;(0,o.c9)(e,t,h),(0,o.TJ)(e,t,h),y=!0}},e.teardown=function(e,t){(0,o.QY)((0,a.Jj)(),null,null,h),(0,o.QY)((0,a.Me)(),null,null,h),(0,o.JA)(null,h),(0,o.C9)(null,h),S()},e._processClick=r}))}return e.__ieDyn=1,e}()},70461:function(e,t,n){"use strict";n.d(t,{b2:function(){return a},cA:function(){return o},ly:function(){return s},qp:function(){return i},tP:function(){return r}});var r="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o="https://dc.services.visualstudio.com",i="/v2/track",a="not_specified",s="iKey"},28985:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(41370),o=n(64430);function i(e){var t=null;if((0,r.mf)(Event))t=new Event(e);else{var n=(0,o.Me)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}},2694:function(e,t,n){"use strict";n.d(t,{CO:function(){return i},eN:function(){return a},uI:function(){return l},y1:function(){return s}});var r=n(41370),o=n(61348);function i(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString()[o.T1]()}function a(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[o.R5]?"00"+t:2===t[o.R5]?"0"+t:t,n=n[o.R5]<2?"0"+n:n,r=r[o.R5]<2?"0"+r:r,(a>0?a+".":"")+(i=i[o.R5]<2?"0"+i:i)+":"+r+":"+n+"."+t}function s(e,t){var n=null;return(0,r.tO)(e,(function(e){if(e.identifier===t)return n=e,-1})),n}function l(e,t,n,o,i){return!i&&(0,r.HD)(e)&&("Script error."===e||"Script error"===e)}},40438:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=(0,n(40197).cc)({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]})},87927:function(e,t,n){"use strict";n.d(t,{d4:function(){return b},D3:function(){return _},B1:function(){return g},MB:function(){return y},LN:function(){return C},Vd:function(){return k},lC:function(){return E},ll:function(){return I},KX:function(){return x},TY:function(){return S},yp:function(){return w},mh:function(){return v}});var r=n(41370),o=n(25661),i=n(64430),a=n(11421),s=n(40197),l=(0,s.By)({LocalStorage:0,SessionStorage:1}),c=((0,s.By)({AI:0,AI_AND_W3C:1,W3C:2}),n(61348)),u=void 0,d=void 0,p="";function h(){return b()?m(l.LocalStorage):null}function m(e){try{if((0,r.le)((0,o.Rd)()))return null;var t=(new Date)[c.r_](),n=(0,i.a8)(e===l.LocalStorage?"localStorage":"sessionStorage"),a=p+t;n.setItem(a,t);var s=n.getItem(a)!==t;if(n[c.XI](a),!s)return n}catch(u){}return null}function f(){return _()?m(l.SessionStorage):null}function g(){u=!1,d=!1}function v(e){p=e||""}function y(){u=b(!0),d=_(!0)}function b(e){return(e||void 0===u)&&(u=!!m(l.LocalStorage)),u}function C(e,t){var n=h();if(null!==n)try{return n.getItem(t)}catch(o){u=!1,(0,a.kP)(e,2,1,"Browser failed read of local storage. "+(0,r.jj)(o),{exception:(0,i.eU)(o)})}return null}function S(e,t,n){var o=h();if(null!==o)try{return o.setItem(t,n),!0}catch(s){u=!1,(0,a.kP)(e,2,3,"Browser failed write to local storage. "+(0,r.jj)(s),{exception:(0,i.eU)(s)})}return!1}function x(e,t){var n=h();if(null!==n)try{return n[c.XI](t),!0}catch(o){u=!1,(0,a.kP)(e,2,5,"Browser failed removal of local storage item. "+(0,r.jj)(o),{exception:(0,i.eU)(o)})}return!1}function _(e){return(e||void 0===d)&&(d=!!m(l.SessionStorage)),d}function E(){var e=[];return _()&&(0,r.rW)((0,i.a8)("sessionStorage"),(function(t){e.push(t)})),e}function k(e,t){var n=f();if(null!==n)try{return n.getItem(t)}catch(o){d=!1,(0,a.kP)(e,2,2,"Browser failed read of session storage. "+(0,r.jj)(o),{exception:(0,i.eU)(o)})}return null}function w(e,t,n){var o=f();if(null!==o)try{return o.setItem(t,n),!0}catch(s){d=!1,(0,a.kP)(e,2,4,"Browser failed write to session storage. "+(0,r.jj)(s),{exception:(0,i.eU)(s)})}return!1}function I(e,t){var n=f();if(null!==n)try{return n[c.XI](t),!0}catch(o){d=!1,(0,a.kP)(e,2,6,"Browser failed removal of session storage item. "+(0,r.jj)(o),{exception:(0,i.eU)(o)})}return!1}},32928:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(41370),o=n(70461),i=n(18911),a=n(61348);function s(e,t,n,s,l,c){var u;n=(0,i.O$)(s,n)||o.b2,((0,r.le)(e)||(0,r.le)(t)||(0,r.le)(n))&&(0,r._y)("Input doesn't contain all required fields");var d="";e[o.ly]&&(d=e[o.ly],delete e[o.ly]);var p=((u={})[a.I]=n,u.time=(0,r.Y6)(new Date),u.iKey=d,u.ext=c||{},u.tags=[],u.data={},u.baseType=t,u.baseData=e,u);return(0,r.le)(l)||(0,r.rW)(l,(function(e,t){p.data[e]=t})),p}!function(){function e(){}e.create=s}()},18911:function(e,t,n){"use strict";n.d(t,{G9:function(){return m},GO:function(){return h},HS:function(){return p},NN:function(){return f},O$:function(){return u},oO:function(){return g},rr:function(){return d}});var r,o=n(41370),i=n(11421),a=n(64430),s=n(61348);function l(e,t,n){var r=t[s.R5],o=c(e,t);if(o[s.R5]!==r){for(var i=0,a=o;void 0!==n[a];)i++,a=o[s.zc](0,147)+y(i);o=a}return o}function c(e,t){var n;return t&&(t=(0,o.nd)(t[s.r_]()))[s.R5]>150&&(n=t[s.zc](0,150),(0,i.kP)(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function u(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,o.nd)(t)).toString()[s.R5]>n&&(r=t[s.r_]()[s.zc](0,n),(0,i.kP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function d(e,t){return v(e,t,2048,66)}function p(e,t){var n;return t&&t[s.R5]>32768&&(n=t[s.zc](0,32768),(0,i.kP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function h(e,t){var n;if(t){var r=""+t;r[s.R5]>32768&&(n=r[s.zc](0,32768),(0,i.kP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function m(e,t){if(t){var n={};(0,o.rW)(t,(function(t,r){if((0,o.Kn)(r)&&(0,a.nS)())try{r=(0,a.xA)()[s.MB](r)}catch(c){(0,i.kP)(e,2,49,"custom property is not valid",{exception:c},!0)}r=u(e,r,8192),t=l(e,t,n),n[t]=r})),t=n}return t}function f(e,t){if(t){var n={};(0,o.rW)(t,(function(t,r){t=l(e,t,n),n[t]=r})),t=n}return t}function g(e,t){return t?v(e,t,128,69)[s.r_]():t}function v(e,t,n,r){var a;return t&&(t=(0,o.nd)(t))[s.R5]>n&&(a=t[s.zc](0,n),(0,i.kP)(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),a||t}function y(e){var t="00"+e;return t.substr(t[s.R5]-3)}(r={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768})[s.nQ]=l,r.sanitizeKey=c,r.sanitizeString=u,r.sanitizeUrl=d,r.sanitizeMessage=p,r[s.mG]=h,r[s.AD]=m,r[s.I9]=f,r.sanitizeId=g,r.sanitizeInput=v,r.padNumber=y,r.trim=o.nd},44793:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(2694),o=n(67043),i=n(61348),a=n(18911),s=function(){function e(e,t,n,s,l,c,u,d,p,h,m,f){void 0===p&&(p="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var g=this;g.ver=2,g.id=t,g[i.az]=(0,r.eN)(l),g.success=c,g.resultCode=u+"",g.type=(0,a.O$)(e,p);var v=(0,o.BB)(e,n,d,s);g.data=(0,a.rr)(e,s)||v.data,g.target=(0,a.O$)(e,v.target),h&&(g.target="".concat(g.target," | ").concat(h)),g[i.I]=(0,a.O$)(e,v[i.I]),g[i.qZ]=(0,a.G9)(e,m),g[i.Ee]=(0,a.NN)(e,f)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}()},91166:function(e,t,n){"use strict";n.d(t,{NZ:function(){return m},U:function(){return u},ZM:function(){return d},az:function(){return h},hq:function(){return p},oy:function(){return c}});var r=n(64430),o=n(41370),i=n(61348),a=(0,r.Me)()||{},s=0,l=[null,null,null,null,null];function c(e){var t=s,n=l,r=n[t];return a.createElement?n[t]||(r=n[t]=a.createElement("a")):r={host:h(e,!0)},r.href=e,++t>=n[i.R5]&&(t=0),s=t,r}function u(e){var t,n=c(e);return n&&(t=n.href),t}function d(e){var t,n=c(e);return n&&(t=n[i.wL]),t}function p(e,t){return e?e.toUpperCase()+" "+t:t}function h(e,t){var n=m(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[i.R5]>3&&(0,o.HD)(r[2])&&r[2][i.R5]>0)return r[2]+(r[3]||"")}return n}function m(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[i.R5]>2&&(0,o.HD)(r[2])&&r[2][i.R5]>0&&(n=r[2]||"",t&&r[i.R5]>2)){var a=(r[1]||"")[i.T1](),s=r[3]||"";("http"===a&&":80"===s||"https"===a&&":443"===s)&&(s=""),n+=s}}return n}},67043:function(e,t,n){"use strict";n.d(t,{BB:function(){return S},EX:function(){return b},QM:function(){return x},Qc:function(){return C},xx:function(){return E},yZ:function(){return _}});var r=n(41370),o=n(6649),i=n(17289),a=n(69634),s=n(64430),l=n(47617),c=n(95858),u=n(70461),d=n(28985),p=n(2694),h=n(40438),m=n(87927),f=n(18911),g=n(91166),v=n(61348),y=[u.cA+u.qp,"https://breeze.aimon.applicationinsights.io"+u.qp,"https://dc-int.services.visualstudio.com"+u.qp];function b(e){return-1!==(0,r.UA)(y,e[v.T1]())}u.b2,d.P,m.B1,m.d4,m.LN,m.TY,m.KX,m.D3,m.lC,m.Vd,m.yp,m.ll,o.oF,o.vn,i.UY,o.d8,p.CO,o.ej,o.kT,r.nd,a.pZ,o.DO,r.kJ,r.VZ,r.J_,r.Y6,s.sA,p.eN,p.uI,s.eU,r.jj,l.pZ,s.MF,p.y1,g.oy,g.U,g.ZM,g.hq,g.az,g.NZ;var C={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[v.ZP])for(var o=0;o<e.correlationHeaderExcludePatterns[v.R5];o++)if(e[v.ZP][o].test(t))return!1;var i=(0,g.oy)(t).host[v.T1]();if(!i||-1===i[v.ou](":443")&&-1===i[v.ou](":80")||(i=((0,g.NZ)(t,!0)||"")[v.T1]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a,s=e&&e.correlationHeaderDomains;if(s&&((0,r.tO)(s,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||t.test(i)})),!a))return!1;var l=e&&e.correlationHeaderExcludedDomains;if(!l||0===l[v.R5])return!0;for(o=0;o<l[v.R5];o++){if(new RegExp(l[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1}return i&&i[v.R5]>0},getCorrelationContext:function(e){if(e){var t=C.getCorrelationContextValue(e,h.C[1]);if(t&&t!==C.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[v.w6](","),r=0;r<n[v.R5];++r){var o=n[r][v.w6]("=");if(2===o[v.R5]&&o[0]===t)return o[1]}}};function S(e,t,n,r){var o,i=r,a=r;if(t&&t[v.R5]>0){var s=(0,g.oy)(t);if(o=s.host,!i)if(null!=s[v.wL]){var l=0===s.pathname[v.R5]?"/":s[v.wL];"/"!==l.charAt(0)&&(l="/"+l),a=s[v.wL],i=(0,f.O$)(e,n?n+" "+l:l)}else i=(0,f.O$)(e,t)}else o=r,i=r;return{target:o,name:i,data:a}}function x(){var e=(0,s.r)();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(0,r.m6)()}function _(e,t){var n=null;return 0===e||0===t||(0,r.le)(e)||(0,r.le)(t)||(n=t-e),n}function E(e,t){var n=e||{};return{getName:function(){return n[v.I]},setName:function(e){t&&t.setName(e),n[v.I]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,c.jN)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,c.Lc)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}},61348:function(e,t,n){"use strict";n.d(t,{$t:function(){return b},A5:function(){return I},AD:function(){return B},Ee:function(){return y},HO:function(){return E},I:function(){return l},I9:function(){return O},MB:function(){return d},NE:function(){return _},R5:function(){return o},RQ:function(){return T},T1:function(){return i},XI:function(){return s},Xo:function(){return g},YX:function(){return C},ZP:function(){return h},az:function(){return A},g5:function(){return R},gU:function(){return c},mG:function(){return F},nQ:function(){return M},oJ:function(){return x},ou:function(){return m},pj:function(){return f},qZ:function(){return v},qs:function(){return P},r_:function(){return a},sO:function(){return D},uO:function(){return S},us:function(){return w},w6:function(){return r},wL:function(){return p},wp:function(){return k},yM:function(){return u},zc:function(){return N}});var r="split",o="length",i="toLowerCase",a="toString",s="removeItem",l="name",c="message",u="count",d="stringify",p="pathname",h="correlationHeaderExcludePatterns",m="indexOf",f="exceptions",g="parsedStack",v="properties",y="measurements",b="sizeInBytes",C="typeName",S="severityLevel",x="problemGroup",_="isManual",E="CreateFromInterface",k="assembly",w="fileName",I="hasFullStack",P="level",T="method",D="line",A="duration",R="receivedResponse",N="substring",M="sanitizeKeyAndAddUniqueness",F="sanitizeException",B="sanitizeProperties",O="sanitizeMeasurements"},20648:function(e,t,n){"use strict";n.d(t,{A3:function(){return r},BI:function(){return o}});var r="AppInsightsPropertiesPlugin",o="ApplicationInsightsAnalytics"},40197:function(e,t,n){"use strict";n.d(t,{By:function(){return o},cc:function(){return i}});var r=n(41370);function o(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r._A)(t)}function i(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r._A)(t)}},44742:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=(0,n(40197).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},6864:function(e,t,n){"use strict";n.d(t,{i:function(){return c}});var r=n(41630),o=n(74696),i=n(41370),a=n(33907),s=n(46419),l=n(35771),c=function(){function e(){var t,n,c,u,d,p=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.CD)(null,{},p[a.oV]);t=c&&c.getPlugin?r[o.zV](null,c.getPlugin):r[o.zV](null,c)}return t}function m(e,t,r){e&&(0,i.sO)(e,a.Zh,[],null,i.le),!r&&t&&(r=t[o.SD]()[o.W2]());var l=c;c&&c.getPlugin&&(l=c.getPlugin()),p[a.oV]=t,n=(0,s.CD)(r,e,t,l)}function f(){t=!1,p[a.oV]=null,n=null,c=null,d=[],u=(0,l.Y)()}f(),(0,r.Z)(e,p,(function(e){e[o.VL]=function(e,n,r,o){m(e,n,o),t=!0},e[o.fi]=function(t,n){var r,l=e[a.oV];if(l&&(!t||l===t[a.oV]())){var p,h=!1,m=t||(0,s.Bt)(null,l,c&&c.getPlugin?c.getPlugin():c),g=n||((r={reason:0})[o.d]=!1,r);return e[o.F3]&&!0===e[o.F3](m,g,v)?p=!0:v(),p}function v(){if(!h){h=!0,u.run(m,n);var e=d;d=[],(0,i.tO)(e,(function(e){e.rm()})),!0===p&&m[o.uL](g),f()}}},e[o.Tu]=function(t,n){var r=e[a.oV];if(r&&(!t||r===t[a.oV]())){var i,l=!1,u=t||(0,s.xy)(null,r,c&&c.getPlugin?c.getPlugin():c),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(u,d,p)?i=!0:p(),i}function p(){l||(l=!0,m(u.getCfg(),u.core(),u[o.W2]()))}},e._addHook=function(e){e&&((0,i.kJ)(e)?d=d.concat(e):d[o.MW](e))},(0,i.Oi)(e,"_addUnloadCb",(function(){return u}),"add")})),p[o.mc]=function(e){return h(e)[o.mc]()},p[o.yl]=function(){return t},p.setInitialized=function(e){t=e},p[o.Jd]=function(e){c=e},p[o.uL]=function(e,t){t?t[o.uL](e):c&&(0,i.mf)(c[a.hL])&&c[a.hL](e,null)},p._getTelCtx=h}return e.__ieDyn=1,e}()},17289:function(e,t,n){"use strict";n.d(t,{JP:function(){return C},Nz:function(){return S},UY:function(){return P},kj:function(){return v},p7:function(){return x}});var r=n(74696),o=n(11421),i=n(64430),a=n(41370),s=n(33907),l="toGMTString",c="toUTCString",u="expires",d=null,p=null,h=null,m=(0,i.Me)(),f={},g={};function v(e,t){var n=S._ckMgr||g._ckMgr;return n||(n=S._ckMgr=S(e,t),g._ckMgr=n),n}function y(e){return!e||e.isEnabled()}function b(e,t){return!!(t&&e&&(0,a.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.ou](t)}function C(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[r.Lk];n=o._ckMgr?o._ckMgr:S(t)}return n||(n=v(t,(e||{})[r.eZ])),n}function S(e,t){var n,o=function(e){var t=e[r.Lk]=e[r.Lk]||{};if((0,a.sO)(t,"domain",e.cookieDomain,a.BX,a.le),(0,a.sO)(t,"path",e.cookiePath||"/",null,a.le),(0,a.le)(t.enabled)){var n=void 0;(0,a.o8)(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),(0,a.o8)(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||g),d=o.path||"/",h=o.domain,m=!1!==o.enabled,f=((n={isEnabled:function(){var e=m&&x(t),n=g._ckMgr;return e&&n&&f!==n&&(e=y(n)),e}})[r.$h]=function(e){m=!1!==e},n.set=function(e,t,n,m,g){var v=!1;if(y(f)&&!function(e,t){return!!(t&&e&&(0,a.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[r.ou](t))||b(e,t)}(o,e)){var C={},S=(0,a.nd)(t||s.qS),x=S[r.ou](";");if(-1!==x&&(S=(0,a.nd)(t[r.zc](0,x)),C=_(t[r.zc](x+1))),(0,a.sO)(C,"domain",m||h,a.fQ,a.o8),!(0,a.le)(n)){var w=(0,i.w1)();if((0,a.o8)(C.expires)){var T=(0,a.m6)()+1e3*n;if(T>0){var D=new Date;D.setTime(T),(0,a.sO)(C,u,E(D,w?l:c)||E(D,w?l:c)||s.qS,a.fQ)}}w||(0,a.sO)(C,"max-age",s.qS+n,null,a.o8)}var A=(0,i.k$)();A&&"https:"===A.protocol&&((0,a.sO)(C,"secure",null,null,a.o8),null===p&&(p=!P(((0,i.jW)()||{})[r.qV])),p&&(0,a.sO)(C,"SameSite","None",null,a.o8)),(0,a.sO)(C,"path",g||d,null,a.o8),(o.setCookie||I)(e,k(S,C)),v=!0}return v},n.get=function(e){var t=s.qS;return y(f)&&!b(o,e)&&(t=(o.getCookie||w)(e)),t},n.del=function(e,t){var n=!1;return y(f)&&(n=f.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(x(t)){var l=((r={}).path=n||"/",r.expires="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,i.w1)()||(l["max-age"]="0"),(o.delCookie||I)(e,k(s.qS,l)),a=!0}return a},n);return f._ckMgr=f,f}function x(e){if(null===d){d=!1;try{d=void 0!==(m||{}).cookie}catch(t){(0,o.kP)(e,2,68,"Cannot access document.cookie - "+(0,a.jj)(t),{exception:(0,i.eU)(t)})}}return d}function _(e){var t={};if(e&&e[r.R5]){var n=(0,a.nd)(e)[r.w6](";");(0,a.tO)(n,(function(e){if(e=(0,a.nd)(e||s.qS)){var n=e[r.ou]("=");-1===n?t[e]=null:t[(0,a.nd)(e[r.zc](0,n))]=(0,a.nd)(e[r.zc](n+1))}}))}return t}function E(e,t){return(0,a.mf)(e[t])?e[t]():null}function k(e,t){var n=e||s.qS;return(0,a.rW)(t,(function(e,t){n+="; "+e+((0,a.le)(t)?s.qS:"="+t)})),n}function w(e){var t=s.qS;if(m){var n=m.cookie||s.qS;h!==n&&(f=_(n),h=n),t=(0,a.nd)(f[e]||s.qS)}return t}function I(e,t){m&&(m.cookie=e+"="+t)}function P(e){return!!(0,a.HD)(e)&&(!(!(0,a._Q)(e,"CPU iPhone OS 12")&&!(0,a._Q)(e,"iPad; CPU OS 12"))||(!!((0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a._Q)(e,"Version/")&&(0,a._Q)(e,"Safari"))||(!(!(0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Id)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!(0,a._Q)(e,"Chrome/5")&&!(0,a._Q)(e,"Chrome/6"))||(!(!(0,a._Q)(e,"UnrealEngine")||(0,a._Q)(e,"Chrome"))||!(!(0,a._Q)(e,"UCBrowser/12")&&!(0,a._Q)(e,"UCBrowser/11")))))))}},6649:function(e,t,n){"use strict";n.d(t,{DO:function(){return f},GW:function(){return h},Jj:function(){return m},d8:function(){return S},ej:function(){return C},kT:function(){return x},oF:function(){return y},vn:function(){return b}});var r,o=n(25661),i=n(74696),a=n(17289),s=n(64430),l=n(47617),c=n(41370),u=n(33907),d=n(69634),p=null;function h(){var e=f();return e[i.zc](0,8)+"-"+e[i.zc](8,12)+"-"+e[i.zc](12,16)+"-"+e[i.zc](16,20)+"-"+e[i.zc](20)}function m(){var e=(0,s.r)();return e&&e.now?e.now():(0,c.m6)()}function f(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=u.qS,r=0;r<4;r++)n+=t[15&(e=(0,d._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&(0,d._l)())|0];return n[i.Jn](0,8)+n[i.Jn](9,4)+"4"+n[i.Jn](13,3)+o+n[i.Jn](16,3)+n[i.Jn](19,12)}var g={_canUseCookies:void 0,isTypeof:c.Ym,isUndefined:c.o8,isNullOrUndefined:c.le,hasOwnProperty:c.nr,isFunction:c.mf,isObject:c.Kn,isDate:c.J_,isArray:c.kJ,isError:c.VZ,isString:c.HD,isNumber:c.hj,isBoolean:c.jn,toISOString:c.Y6,arrForEach:c.tO,arrIndexOf:c.UA,arrMap:c.Mr,arrReduce:c.Xz,strTrim:c.nd,objCreate:o.pu,objKeys:c.FY,objDefineAccessors:c.l_,addEventHandler:l.Ib,dateNow:c.m6,isIE:s.w1,disableCookies:y,newGuid:h,perfNow:m,newId:d.pZ,randomValue:d.az,random32:d._l,mwcRandomSeed:d.CN,mwcRandom32:d.F6,generateW3CId:f};l.pZ,l.pZ,l.pD,l.pD;function v(e,t){var n=(0,a.kj)(e,t),o=g._canUseCookies;return null===p&&(p=[],r=o,(0,c.l_)(g,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,c.tO)(p,(function(t){t[i.$h](e)}))}))),-1===(0,c.UA)(p,n)&&p[i.MW](n),(0,c.jn)(o)&&n[i.$h](o),(0,c.jn)(r)&&n[i.$h](r),n}function y(){v()[i.$h](!1)}function b(e){return v(null,e).isEnabled()}function C(e,t){return v(null,e).get(t)}function S(e,t,n,r){v(null,e).set(t,n,null,r)}function x(e,t){return v(null,e).del(t)}},28487:function(e,t,n){"use strict";n.d(t,{J:function(){return m},K:function(){return f}});var r=n(50786),o=n(74696),i=n(41370),a=n(33907),s=n(69634),l=r.RJ,c="2.8.16",u="."+(0,s.pZ)(6),d=0;function p(e){return 1===e[o.xv]||9===e[o.xv]||!+e[o.xv]}function h(e,t){var n=t[e.id];if(!n){n={};try{p(t)&&(function(e,t,n){if(l)try{return l(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(r){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(r){}}return n}function m(e,t){return void 0===t&&(t=!1),(0,i.Gf)(e+d+++(t?".2.8.16":a.qS)+u)}function f(e){var t={id:m("_aiData-"+(e||a.qS)+"."+c),accept:function(e){return p(e)},get:function(e,n,r,o){var a=e[t.id];return a?a[(0,i.Gf)(n)]:(o&&((a=h(t,e))[(0,i.Gf)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}},62561:function(e,t,n){"use strict";n.d(t,{j:function(){return c},p:function(){return u}});var r,o=n(74696),i=n(64430),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function l(e,t){return function(){var n=arguments,r=c(t);if(r){var i=r.listener;i&&i[e]&&i[e][o.ZV](i,n)}}}function c(e){var t=s;return t||!0===e.disableDbgExt||(t=s||function(){var e=(0,i.a8)("Microsoft");return e&&(s=e.ApplicationInsights),s}()),t?t.ChromeDbgExt:null}function u(e){if(!r){r={};for(var t=0;t<a[o.R5];t++)r[a[t]]=l(a[t],e)}return r}},11421:function(e,t,n){"use strict";n.d(t,{AQ:function(){return h},jV:function(){return g},kP:function(){return f},lQ:function(){return d},vH:function(){return p}});var r=n(41630),o=n(74696),i=n(62561),a=n(64430),s=n(41370),l=n(33907);function c(e){return e?'"'+e[o.i7](/\"/g,l.qS)+'"':l.qS}function u(e,t){var n=(0,a.dr)();if(n){var r="log";n[e]&&(r=e),(0,s.mf)(n[r])&&n[r](t)}}var d=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i[o.Gc]=e,i[o.gU]=(n?"AI: ":"AI (Internal): ")+e;var s=l.qS;(0,a.nS)()&&(s=(0,a.xA)().stringify(r));var u=(t?" message:"+c(t):l.qS)+(r?" props:"+c(s):l.qS);i[o.gU]+=u}return e.dataType="MessageData",e}();function p(e,t){return(e||{})[o.eZ]||new h(t)}var h=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,c,p,h,m=0,f={};(0,r.Z)(e,this,(function(e){function r(t,n){if(!(m>=p)){var r=!0,i="AITR_"+n[o.Gc];if(f[i]?r=!1:f[i]=!0,r&&(t<=c&&(e.queue[o.MW](n),m++,g(1===t?"error":"warn",n)),m===p)){var a="Internal events throttle limit per PageView reached for this app.",s=new d(23,a,!1);e.queue[o.MW](s),1===t?e[l.ys](a):e[l.cL](a)}}}function g(e,n){var r=(0,i.j)(t||{});r&&r[o.mc]&&r[o.mc](e,n)}!function(e){n=(0,s.v4)(e.loggingLevelConsole,0),c=(0,s.v4)(e.loggingLevelTelemetry,1),p=(0,s.v4)(e.maxMessageLimit,25),h=(0,s.v4)(e.enableDebug,(0,s.v4)(e[o.Fr],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return c},e.maxInternalMessageLimit=function(){return p},e[o.Fr]=function(){return h},e.throwInternal=function(t,i,c,u,p){void 0===p&&(p=!1);var m=new d(i,c,p,u);if(h)throw(0,a.eU)(m);var v=1===t?l.ys:l.cL;if((0,s.o8)(m[o.gU]))g("throw"+(1===t?"Critical":"Warning"),m);else{if(p){var y=+m[o.Gc];!f[y]&&n>=t&&(e[v](m[o.gU]),f[y]=!0)}else n>=t&&e[v](m[o.gU]);r(t,m)}},e[l.cL]=function(e){u("warn",e),g("warning",e)},e[l.ys]=function(e){u("error",e),g("error",e)},e.resetInternalMessageCount=function(){m=0,f={}},e[o.jk]=r}))}return e.__ieDyn=1,e}();function m(e){return e||new h}function f(e,t,n,r,o,i){void 0===i&&(i=!1),m(e).throwInternal(t,n,r,o,i)}function g(e,t){m(e)[l.cL](t)}},64430:function(e,t,n){"use strict";n.d(t,{JO:function(){return V},Jj:function(){return S},MF:function(){return H},MX:function(){return N},Me:function(){return _},Nv:function(){return x},Ym:function(){return C},Z3:function(){return U},a8:function(){return b},b$:function(){return F},cp:function(){return z},dr:function(){return T},eU:function(){return L},fE:function(){return w},gz:function(){return M},jW:function(){return k},k$:function(){return P},nS:function(){return A},r:function(){return D},s1:function(){return I},sA:function(){return O},w1:function(){return B},xA:function(){return R}});var r=n(50786),o=n(25661),i=n(74696),a=n(41370),s=n(33907),l="window",c="JSON",u="msie",d="trident/",p="XMLHttpRequest",h=null,m=null,f=!1,g=null,v=null;function y(e,t){var n=!1;if(e){try{if(!(n=t in e)){var o=e[r.hB];o&&(n=t in o)}}catch(s){}if(!n)try{var i=new e;n=!(0,a.o8)(i[t])}catch(s){}}return n}function b(e){var t=(0,o.Rd)();return t&&t[e]?t[e]:e===l&&C()?window:null}function C(){return Boolean(typeof window===r.fK&&window)}function S(){return C()?window:b(l)}function x(){return Boolean(typeof document===r.fK&&document)}function _(){return x()?document:b("document")}function E(){return Boolean(typeof navigator===r.fK&&navigator)}function k(){return E()?navigator:b("navigator")}function w(){return Boolean(typeof history===r.fK&&history)}function I(){return w()?history:b("history")}function P(e){if(e&&f){var t=b("__mockLocation");if(t)return t}return typeof location===r.fK&&location?location:b("location")}function T(){return typeof console!==r.jA?console:b("console")}function D(){return b("performance")}function A(){return Boolean(typeof JSON===r.fK&&JSON||null!==b(c))}function R(){return A()?JSON||b(c):null}function N(){return b("crypto")}function M(){return b("msCrypto")}function F(){var e=k();return!(!e||!e.product)&&"ReactNative"===e.product}function B(){var e=k();if(e&&(e[i.qV]!==m||null===h)){var t=((m=e[i.qV])||s.qS)[i.T1]();h=(0,a._Q)(t,u)||(0,a._Q)(t,d)}return h}function O(e){if(void 0===e&&(e=null),!e){var t=k()||{};e=t?(t[i.qV]||s.qS)[i.T1]():s.qS}var n=(e||s.qS)[i.T1]();if((0,a._Q)(n,u)){var r=_()||{};return Math.max(parseInt(n[i.w6](u)[1]),r.documentMode||0)}if((0,a._Q)(n,d)){var o=parseInt(n[i.w6](d)[1]);if(o)return o+4}return null}function L(e){var t=Object[r.hB].toString[i._S](e),n=s.qS;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[i.I]+"'":A()&&(n=R().stringify(e)),t+n}function H(){return null===v&&(v=E()&&Boolean(k().sendBeacon)),v}function V(e){var t=!1;try{t=!!b("fetch");var n=b("Request");t&&e&&n&&(t=y(n,"keepalive"))}catch(r){}return t}function z(){return null===g&&(g=typeof XDomainRequest!==r.jA)&&U()&&(g=g&&!y(b(p),"withCredentials")),g}function U(){var e=!1;try{e=!!b(p)}catch(t){}return e}},47617:function(e,t,n){"use strict";n.d(t,{C9:function(){return O},Ib:function(){return A},JA:function(){return F},QY:function(){return P},TJ:function(){return B},XO:function(){return I},Yl:function(){return H},c9:function(){return M},jU:function(){return w},nD:function(){return L},pD:function(){return D},pZ:function(){return T}});var r=n(74696),o=n(28487),i=n(64430),a=n(41370),s=n(33907),l="events",c="visibilitychange",u="pagehide",d="pageshow",p="unload",h="beforeunload",m=(0,o.J)("aiEvtPageHide"),f=(0,o.J)("aiEvtPageShow"),g=/\.[\.]+/g,v=/[\.]+$/,y=1,b=(0,o.K)("events"),C=/^([^.]*)(?:\.(.+)|)/;function S(e){return e&&e[r.i7]?e[r.i7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.qS):e}function x(e,t){var n;if(t){var o=s.qS;(0,a.kJ)(t)?(o=s.qS,(0,a.tO)(t,(function(e){(e=S(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=S(t),o&&("."!==o[0]&&(o="."+o),e=(e||s.qS)+o)}var i=C.exec(e||s.qS)||[];return(n={})[r.P6]=i[1],n.ns=(i[2]||s.qS).replace(g,".").replace(v,s.qS)[r.w6](".").sort().join("."),n}function _(e,t,n){void 0===n&&(n=!0);var r=b.get(e,l,{},n),o=r[t];return o||(o=r[t]=[]),o}function E(e,t,n,o){e&&t&&t[r.P6]&&(e.removeEventListener?e.removeEventListener(t[r.P6],n,o):e.detachEvent&&e.detachEvent("on"+t[r.P6],n))}function k(e,t,n,o){for(var i=t[r.R5];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||o&&!o(a)||(E(e,a.evtName,a[r.Kn],a.capture),t[r.cb](i,1)))}}function w(e,t){return t?x("xx",(0,a.kJ)(t)?[e].concat(t):[e,t]).ns[r.w6]("."):e}function I(e,t,n,o,i){var a;void 0===i&&(i=!1);var s=!1;if(e)try{var l=x(t,o);if(s=function(e,t,n,o){var i=!1;return e&&t&&t[r.P6]&&n&&(e.addEventListener?(e.addEventListener(t[r.P6],n,o),i=!0):e.attachEvent&&(e.attachEvent("on"+t[r.P6],n),i=!0)),i}(e,l,n,i),s&&b.accept(e)){var c=((a={guid:y++,evtName:l})[r.Kn]=n,a.capture=i,a);_(e,l.type)[r.MW](c)}}catch(u){}return s}function P(e,t,n,o,i){if(void 0===i&&(i=!1),e)try{var s=x(t,o),c=!1;!function(e,t,n){if(t[r.P6])k(e,_(e,t[r.P6]),t,n);else{var o=b.get(e,l,{});(0,a.rW)(o,(function(r,o){k(e,o,t,n)})),0===(0,a.FY)(o)[r.R5]&&b.kill(e,l)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Kn]!==n)&&(c=!0,!0)})),c||E(e,s,n,i)}catch(u){}}function T(e,t,n,r){return void 0===r&&(r=!1),I(e,t,n,null,r)}function D(e,t,n,r){void 0===r&&(r=!1),P(e,t,n,null,r)}function A(e,t,n){var r=!1,o=(0,i.Jj)();o&&(r=I(o,e,t,n),r=I(o.body,e,t,n)||r);var a=(0,i.Me)();return a&&(r=I(a,e,t,n)||r),r}function R(e,t,n,o){var i=!1;return t&&e&&e[r.R5]>0&&(0,a.tO)(e,(function(e){e&&(n&&-1!==(0,a.UA)(n,e)||(i=A(e,t,o)||i))})),i}function N(e,t,n){e&&(0,a.kJ)(e)&&(0,a.tO)(e,(function(e){e&&function(e,t,n){var r=(0,i.Jj)();r&&(P(r,e,t,n),P(r.body,e,t,n));var o=(0,i.Me)();o&&P(o,e,t,n)}(e,t,n)}))}function M(e,t,n){return function(e,t,n,o){var i=!1;return t&&e&&(0,a.kJ)(e)&&!(i=R(e,t,n,o))&&n&&n[r.R5]>0&&(i=R(e,t,null,o)),i}([h,p,u],e,t,n)}function F(e,t){N([h,p,u],e,t)}function B(e,t,n){var r=w(m,n),o=R([u],e,t,r);return t&&-1!==(0,a.UA)(t,c)||(o=R([c],(function(t){var n=(0,i.Me)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=B(e,null,n)),o}function O(e,t){var n=w(m,t);N([u],e,n),N([c],null,n)}function L(e,t,n){var r=w(f,n),o=R([d],e,t,r);return!(o=R([c],(function(t){var n=(0,i.Me)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=L(e,null,n)),o}function H(e,t){var n=w(f,t);N([d],e,n),N([c],null,n)}},41370:function(e,t,n){"use strict";n.d(t,{Ax:function(){return fe},BX:function(){return P},FL:function(){return ne},FY:function(){return J},Gf:function(){return R},HD:function(){return V},Hb:function(){return E},Id:function(){return M},J_:function(){return O},Kn:function(){return D},Mr:function(){return K},Oi:function(){return pe},UA:function(){return q},VZ:function(){return H},Vb:function(){return he},Xz:function(){return Y},Y6:function(){return G},Ym:function(){return k},_A:function(){return te},_Q:function(){return B},_y:function(){return ce},cf:function(){return de},fQ:function(){return le},hj:function(){return z},hl:function(){return me},jj:function(){return oe},jn:function(){return U},kJ:function(){return L},l_:function(){return $},le:function(){return I},m6:function(){return re},mf:function(){return A},mm:function(){return ge},nd:function(){return X},nr:function(){return T},o8:function(){return w},qK:function(){return ae},rW:function(){return N},sO:function(){return ie},tO:function(){return j},v4:function(){return se},xe:function(){return F}});var r=n(50786),o=n(25661),i=n(74696),a=n(33907),s="constructor",l=r.RJ,c=r.Pw.freeze,u=(r.Pw.seal,r.Pw.keys),d=String[r.hB],p=d.trim,h=d.endsWith,m=d.startsWith,f=Date[r.hB].toISOString,g=Array.isArray,v=r.V4.toString,y=r.CY.toString,b=y[i._S](r.Pw),C=/-([a-z])/g,S=/([^\w\d_$])/g,x=/^(\d+[\w\d_$])/,_=Object.getPrototypeOf;function E(e){if(e){if(_)return _(e);var t=e.__proto__||e[r.hB]||e.constructor;if(t)return t}return null}function k(e,t){return typeof e===t}function w(e){return void 0===e||typeof e===r.jA}function I(e){return null===e||w(e)}function P(e){return!I(e)}function T(e,t){return!(!e||!r.CY[i._S](e,t))}function D(e){return!(!e||typeof e!==r.fK)}function A(e){return!(!e||typeof e!==r.cb)}function R(e){var t=e;return t&&V(t)&&(t=(t=(t=t[i.i7](C,(function(e,t){return t.toUpperCase()})))[i.i7](S,"_"))[i.i7](x,(function(e,t){return"_"+t}))),t}function N(e,t){if(e)for(var n in e)r.CY[i._S](e,n)&&t[i._S](e,n,e[n])}function M(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=h?e.endsWith(t):function(e,t){var n=!1,r=t?t[i.R5]:0,o=e?e[i.R5]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var a=o-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function F(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=m?e.startsWith(t):function(e,t){var n=!1,r=t?t[i.R5]:0;if(e&&r&&e[i.R5]>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}(e,t)),n}function B(e,t){return!(!e||!t)&&-1!==e[i.ou](t)}function O(e){return!(!e||"[object Date]"!==v[i._S](e))}var L=g||function(e){return!(!e||"[object Array]"!==v[i._S](e))};function H(e){return!(!e||"[object Error]"!==v[i._S](e))}function V(e){return"string"===typeof e}function z(e){return"number"===typeof e}function U(e){return"boolean"===typeof e}function W(e){var t=!1;if(e&&"object"===typeof e){var n=_?_(e):E(e);n?(n.constructor&&r.CY[i._S](n,s)&&(n=n.constructor),t=typeof n===r.cb&&y[i._S](n)===b):t=!0}return t}function G(e){if(e)return f?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[i.R5]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function j(e,t,n){var r=e[i.R5];try{for(var o=0;o<r&&(!(o in e)||-1!==t[i._S](n||e,e[o],o,e));o++);}catch(a){}}function q(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e[i.R5],o=n||0;try{for(var a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(s){}}return-1}function K(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var o=e[i.R5],a=n||e;r=new Array(o);try{for(var s=0;s<o;s++)s in e&&(r[s]=t[i._S](a,e[s],e))}catch(l){}}return r}function Y(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var o=e[i.R5],a=0;if(arguments[i.R5]>=3)r=arguments[2];else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function X(e){return e&&(e=p&&e.trim?e.trim():e[i.i7]?e[i.i7](/^\s+|(?=\s)\s+$/g,a.qS):e),e}var Q=!{toString:null}.propertyIsEnumerable("toString"),Z=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function J(e){var t=typeof e;if(t===r.cb||t===r.fK&&null!==e||(0,o.ZU)("objKeys called on non-object"),!Q&&u)return u(e);var n=[];for(var a in e)e&&r.CY[i._S](e,a)&&n[i.MW](a);if(Q)for(var s=Z[i.R5],l=0;l<s;l++)e&&r.CY[i._S](e,Z[l])&&n[i.MW](Z[l]);return n}function $(e,t,n,r){if(l)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),l(e,t,o),!0}catch(i){}return!1}function ee(e){return e}function te(e){return c&&N(e,(function(e,t){(L(t)||D(t))&&c(t)})),ne(e)}var ne=c||ee;function re(){var e=Date;return e.now?e.now():(new e).getTime()}function oe(e){return H(e)?e[i.I]:a.qS}function ie(e,t,n,r,o){var i=n;return e&&((i=e[t])===n||o&&!o(i)||r&&!r(n)||(i=n,e[t]=i)),i}function ae(e,t,n){var r;return e?!(r=e[t])&&I(r)&&(r=w(n)?{}:n,e[t]=r):r=w(n)?{}:n,r}function se(e,t){return I(e)?t:e}function le(e){return!!e}function ce(e){throw new Error(e)}function ue(e,t){var n=null,r=null;return A(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][i.ZV](r,e)}}function de(e,t,n){if(e&&t&&D(e)&&D(t)){var r=function(r){if(V(r)){var o=t[r];A(o)?n&&!n(r,!0,t,e)||(e[r]=ue(t,r)):n&&!n(r,!1,t,e)||(T(e,r)&&delete e[r],$(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}};for(var o in t)r(o)}return e}function pe(e,t,n,r,o){e&&t&&n&&(!1!==o||w(e[t]))&&(e[t]=ue(n,r))}function he(e,t,n,r){return e&&t&&D(e)&&L(n)&&j(n,(function(n){V(n)&&pe(e,n,t,n,r)})),e}function me(e){return function(){var t=this;e&&N(e,(function(e,n){t[e]=n}))}}function fe(e){return e&&r.rl&&(e=(0,r.Pw)((0,r.rl)({},e))),e}function ge(e,t,n,o,a,s){var l=arguments,c=l[0]||{},u=l[i.R5],d=!1,p=1;for(u>0&&U(c)&&(d=c,c=l[p]||{},p++),D(c)||(c={});p<u;p++){var h=l[p],m=L(h),f=D(h);for(var g in h){var v=m&&g in h||f&&r.CY[i._S](h,g);if(v){var y=h[g],b=void 0;if(d&&y&&((b=L(y))||W(y))){var C=c[g];b?L(C)||(C=[]):W(C)||(C={}),y=ge(d,C,y)}void 0!==y&&(c[g]=y)}}}return c}},35918:function(e,t,n){"use strict";n.d(t,{_z:function(){return d},n3:function(){return h},qN:function(){return m}});var r=n(50786),o=n(74696),i=n(64430),a=n(41370),s=["req","rsp","hkErr","fnErr"];function l(e,t){if(e)for(var n=0;n<e[o.R5]&&!t(e[n],n);n++);}function c(e,t,n,r,i){i>=0&&i<=2&&l(e,(function(e,a){var l=e.cbks,c=l[s[i]];if(c){t.ctx=function(){return r[a]=r[a]||{}};try{c[o.ZV](t.inst,n)}catch(p){var u=t.err;try{var d=l[s[2]];d&&(t.err=p,d[o.ZV](t.inst,n))}catch(h){}finally{t.err=u}}}}))}function u(e,t,n,r){var o=null;return e&&((0,a.nr)(e,t)?o=e:n&&(o=u((0,a.Hb)(e),t,r,!1))),o}function d(e,t,n){return e?h(e[r.hB],t,n,!1):null}function p(e,t,n,r){var a=n&&n._aiHooks;if(!a){var s=function(e){return function(){var t,n=this,r=arguments,a=e.h,s=((t={})[o.I]=e.n,t.inst=n,t.ctx=null,t.set=h,t),u=[],d=p([s],r);function p(e,t){return l(t,(function(t){e[o.MW](t)})),e}function h(e,t){(r=p([],r))[e]=t,d=p([s],r)}s.evt=(0,i.a8)("event"),c(a,s,d,u,0);var m=e.f;if(m)try{s.rslt=m[o.ZV](n,r)}catch(f){throw s.err=f,c(a,s,d,u,3),f}return c(a,s,d,u,1),s.rslt}}(a={i:0,n:t,f:n,h:[]});s._aiHooks=a,e[t]=s}var u={id:a.i,cbks:r,rm:function(){var e=this.id;l(a.h,(function(t,n){if(t.id===e)return a.h[o.cb](n,1),1}))}};return a.i++,a.h[o.MW](u),u}function h(e,t,n,o,i){if(void 0===o&&(o=!0),e&&t&&n){var a=u(e,t,o,i);if(a){var s=a[t];if(typeof s===r.cb)return p(a,t,s,n)}}return null}function m(e,t,n,r,o){if(e&&t&&n){var i=u(e,t,r,o)||e;if(i)return p(i,t,i[t],n)}return null}},33907:function(e,t,n){"use strict";n.d(t,{$F:function(){return h},C$:function(){return f},DN:function(){return a},Z:function(){return o},Zh:function(){return l},cL:function(){return v},f_:function(){return m},hL:function(){return u},js:function(){return c},kl:function(){return y},mE:function(){return s},oV:function(){return i},qS:function(){return r},uC:function(){return p},yi:function(){return d},ys:function(){return g}});var r="",o="channels",i="core",a="createPerfMgr",s="disabled",l="extensionConfig",c="extensions",u="processTelemetry",d="priority",p="eventsSent",h="eventsDiscarded",m="eventsSendRequest",f="perfEvent",g="errorToConsole",v="warnToConsole",y="getPerfMgr"},92142:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(41630),o=n(74696),i=n(41370),a=n(33907);function s(e,t,n,r){(0,i.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(o){}}))}var l=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,r.Z)(e,this,(function(e){e[o.g]=function(t){e.listeners[o.MW](t)},e[o.n7]=function(t){for(var n=(0,i.UA)(e[o.dE],t);n>-1;)e.listeners[o.cb](n,1),n=(0,i.UA)(e[o.dE],t)},e[a.uC]=function(t){s(e[o.dE],a.uC,!0,(function(e){e[a.uC](t)}))},e[a.$F]=function(t,n){s(e[o.dE],a.$F,!0,(function(e){e[a.$F](t,n)}))},e[a.f_]=function(t,n){s(e[o.dE],a.f_,n,(function(e){e[a.f_](t,n)}))},e[a.C$]=function(t){t&&(!n&&t[o.PL]()||s(e[o.dE],a.C$,!1,(function(e){t[o.d]?setTimeout((function(){return e[a.C$](t)}),0):e[a.C$](t)})))}}))}return e.__ieDyn=1,e}()},47120:function(e,t,n){"use strict";n.d(t,{Jk:function(){return c},Lm:function(){return d},j5:function(){return p}});var r=n(41630),o=n(74696),i=n(41370),a=n(33907),s=null,l=function(){function e(t,n,r){var a,s=this,l=!1;(s.start=(0,i.m6)(),s[o.I]=t,s[o.d]=r,s[o.PL]=function(){return!1},(0,i.mf)(n))&&(l=(0,i.l_)(s,"payload",(function(){return!a&&(0,i.mf)(n)&&(a=n(),n=null),a})));s[o.T]=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?s[t]:(s.ctx||{})[t]:null},s[o.wu]=function(t,n){if(t)if(t===e.ParentContextKey)s[t]||(s[o.PL]=function(){return!0}),s[t]=n;else if(t===e.ChildrenContextKey)s[t]=n;else{(s.ctx=s.ctx||{})[t]=n}},s[o.Km]=function(){var t=0,r=s[o.T](e.ChildrenContextKey);if((0,i.kJ)(r))for(var a=0;a<r[o.R5];a++){var c=r[a];c&&(t+=c[o.Z_])}s[o.Z_]=(0,i.m6)()-s.start,s.exTime=s[o.Z_]-t,s[o.Km]=function(){},!l&&(0,i.mf)(n)&&(s.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),c=function(){function e(t){this.ctx={},(0,r.Z)(e,this,(function(e){e.create=function(e,t,n){return new l(e,t,n)},e.fire=function(e){e&&(e[o.Km](),t&&(0,i.mf)(t[a.C$])&&t[a.C$](e))},e[o.wu]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e[o.T]=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),u="CoreUtils.doPerf";function d(e,t,n,r,i){if(e){var s=e;if(s[a.kl]&&(s=s[a.kl]()),s){var c=void 0,d=s[o.T](u);try{if(c=s.create(t(),r,i)){if(d&&c[o.wu]&&(c[o.wu](l.ParentContextKey,d),d[o.T]&&d[o.wu])){var p=d[o.T](l.ChildrenContextKey);p||(p=[],d[o.wu](l.ChildrenContextKey,p)),p[o.MW](c)}return s[o.wu](u,c),n(c)}}catch(h){c&&c[o.wu]&&c[o.wu]("exception",h)}finally{c&&s.fire(c),s[o.wu](u,d)}}}return n()}function p(){return s}},46419:function(e,t,n){"use strict";n.d(t,{Bt:function(){return m},CD:function(){return h},jV:function(){return g},xy:function(){return f}});var r=n(74696),o=n(11421),i=n(64430),a=n(41370),s=n(33907),l=n(47120),c=n(27810),u="TelemetryPluginChain",d=0;function p(e,t,n,l){var c=null,u=[];null!==l&&(c=l?function(e,t,n){for(;e;){if(e[r.TO]()===n)return e;e=e[r.W2]()}return g([n],t[r.TC]||{},t)}(e,n,l):e);var d={_next:function(){var e=c;if(c=e?e[r.W2]():null,!e){var t=u;t&&t[r.R5]>0&&((0,a.tO)(t,(function(e){try{e.func[r._S](e.self,e.args)}catch(t){(0,o.kP)(n[r.eZ],2,73,"Unexpected Exception during onComplete - "+(0,i.eU)(t))}})),u=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,o.vH)(n,t)},getCfg:function(){return t},getExtCfg:p,getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=p(e,null);i&&!(0,a.le)(i[n])?o=i[n]:t&&!(0,a.le)(t[n])&&(o=t[n]);return(0,a.le)(o)?r:o},hasNext:function(){return!!c},getNext:function(){return c},setNext:function(e){c=e},iterate:function(e){var t;for(;t=d._next();){var n=t[r.TO]();n&&e(n)}},onComplete:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e&&u[r.MW]({func:e,self:(0,a.o8)(t)?d.ctx:t,args:n})}}};function p(e,n,r){var o;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var i=t[s.Zh];i&&e&&(o=i[e])}if(o){if((0,a.Kn)(n)&&0!==r){var l=(0,a.mm)(!0,n,o);t&&2===r&&(0,a.rW)(n,(function(e){if((0,a.le)(l[e])){var n=t[e];(0,a.le)(n)||(l[e]=n)}})),o=l}}else o=n;return o}return d}function h(e,t,n,o){var i=p(e,t,n,o),l=i.ctx;return l[r.uL]=function(e){var t=i._next();return t&&t[s.hL](e,l),!t},l[r.zV]=function(e,o){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=g(e,t,n,o)),h(e||l[r.W2](),t,n,o)},l}function m(e,t,n){var o=t[r.TC]||{},i=p(e,o,t,n),s=i.ctx;return s[r.uL]=function(e){var t=i._next();return t&&t.unload(s,e),!t},s[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=g(e,o,t,n)),m(e||s[r.W2](),t,n)},s}function f(e,t,n){var o=t[r.TC]||{},i=p(e,o,t,n).ctx;return i[r.uL]=function(e){return i.iterate((function(t){(0,a.mf)(t[r.Tu])&&t[r.Tu](i,e)}))},i[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=g(e,o,t,n)),f(e||i[r.W2](),t,n)},i}function g(e,t,n,p){var m=null,f=!p;if((0,a.kJ)(e)&&e[r.R5]>0){var v=null;(0,a.tO)(e,(function(e){if(f||p!==e||(f=!0),f&&e&&(0,a.mf)(e[s.hL])){var g=function(e,t,n){var p,m=null,f=(0,a.mf)(e[s.hL]),g=(0,a.mf)(e[r.Jd]);p=e?e[r.pZ]+"-"+e[s.yi]+"-"+d++:"Unknown-0-"+d++;var v={getPlugin:function(){return e},getNext:function(){return m},processTelemetry:C,unload:S,update:x,_id:p,_setNext:function(e){m=e}};function y(){var r;return e&&(0,a.mf)(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=h(v,t,n)),r}function b(t,n,a,c,d){var h=!1,f=e?e[r.pZ]:u,g=t._hasRun;return g||(g=t._hasRun={}),t.setNext(m),e&&(0,l.Lm)(t[s.oV](),(function(){return f+":"+a}),(function(){g[p]=!0;try{var e=m?m._id:s.qS;e&&(g[e]=!1),h=n(t)}catch(c){var l=!m||g[m._id];l&&(h=!0),m&&l||(0,o.kP)(t[r.mc](),1,73,"Plugin ["+f+"] failed during "+a+" - "+(0,i.eU)(c)+", run flags: "+(0,i.eU)(g))}}),c,d),h}function C(t,n){function o(n){if(!e||!f)return!1;var o=(0,c.OY)(e);return!o[r.fi]&&!o[s.mE]&&(g&&e[r.Jd](m),e[s.hL](t,n),!0)}b(n=n||y(),o,"processTelemetry",(function(){return{item:t}}),!t.sync)||n[r.uL](t)}function S(t,n){function o(){var o=!1;if(e){var i=(0,c.OY)(e),a=e[s.oV]||i[s.oV];!e||a&&a!==t.core()||i[r.fi]||(i[s.oV]=null,i[r.fi]=!0,i[r.yl]=!1,e[r.fi]&&!0===e[r.fi](t,n)&&(o=!0))}return o}b(t,o,"unload",(function(){}),n[r.d])||t[r.uL](n)}function x(t,n){function o(){var o=!1;if(e){var i=(0,c.OY)(e),a=e[s.oV]||i[s.oV];!e||a&&a!==t.core()||i[r.fi]||e[r.Tu]&&!0===e[r.Tu](t,n)&&(o=!0)}return o}b(t,o,"update",(function(){}),!1)||t[r.uL](n)}return(0,a.FL)(v)}(e,t,n);m||(m=g),v&&v._setNext(g),v=g}}))}return p&&!m?g([p],t,n):m}},69634:function(e,t,n){"use strict";n.d(t,{CN:function(){return g},F6:function(){return v},_l:function(){return f},az:function(){return m},pZ:function(){return y}});var r=n(74696),o=n(64430),i=n(41370),a=n(33907),s=4294967296,l=4294967295,c=!1,u=123456789,d=987654321;function p(e){e<0&&(e>>>=0),u=123456789+e&l,d=987654321-e&l,c=!0}function h(){try{var e=2147483647&(0,i.m6)();p((Math.random()*s^e)+e)}catch(t){}}function m(e){return e>0?Math.floor(f()/l*(e+1))>>>0:0}function f(e){var t=0,n=(0,o.MX)()||(0,o.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&l),0===t&&(0,o.w1)()&&(c||h(),t=v()&l),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function g(e){e?p(e):h()}function v(e){var t=((d=36969*(65535&d)+(d>>16)&l)<<16)+(65535&(u=18e3*(65535&u)+(u>>16)&l))>>>0&l|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=f()>>>0,n=0,o=a.qS;o[r.R5]<e;)n++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(f()<<2&4294967295|3&t)>>>0,n=0);return o}},27810:function(e,t,n){"use strict";n.d(t,{AA:function(){return d},OY:function(){return c},Yn:function(){return p},bP:function(){return u}});var r=n(74696),o=n(28487),i=n(41370),a=n(33907),s=n(95858),l=(0,o.K)("plugin");function c(e){return l.get(e,"state",{},!0)}function u(e,t){for(var n,o=[],s=null,l=e[r.W2]();l;){var u=l[r.TO]();if(u){s&&(0,i.mf)(s[r.Jd])&&(0,i.mf)(u[a.hL])&&s[r.Jd](u);((0,i.mf)(u[r.yl])?u[r.yl]():(n=c(u))[r.yl])||o[r.MW](u),s=u,l=l[r.W2]()}}(0,i.tO)(o,(function(o){var i=e[a.oV]();o[r.VL](e.getCfg(),i,t,e[r.W2]()),n=c(o),o[a.oV]||n[a.oV]||(n[a.oV]=i),n[r.yl]=!0,delete n[r.fi]}))}function d(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,i.mf)(t[a.hL]);(0,i.mf)(e[a.hL])?n=r?e[a.yi]-t[a.yi]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function p(e){var t={};return{getName:function(){return t[r.I]},setName:function(n){e&&e.setName(n),t[r.I]=n},getTraceId:function(){return t[r.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.jN)(n)&&(t[r.nY]=n)},getSpanId:function(){return t[r._d]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.Lc)(n)&&(t[r._d]=n)},getTraceFlags:function(){return t[r.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.T0]=n}}}},35771:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var r=n(74696),o=n(11421),i=n(64430),a=n(41370);function s(){var e=[];return{add:function(t){t&&e[r.MW](t)},run:function(t,n){(0,a.tO)(e,(function(e){try{e(t,n)}catch(a){(0,o.kP)(t[r.mc](),2,73,"Unexpected error calling unload handler - "+(0,i.eU)(a))}})),e=[]}}}},95858:function(e,t,n){"use strict";n.d(t,{Lc:function(){return m},SU:function(){return p},aR:function(){return f},jN:function(){return h}});var r=n(74696),o=n(6649),i="00",a="ff",s="00000000000000000000000000000000",l="0000000000000000";function c(e,t,n){return!(!e||e[r.R5]!==t||e===n)&&!!e.match(/^[\da-f]*$/i)}function u(e,t,n){return c(e,t)?e:n}function d(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.R5]<2;)t="0"+t;return t}function p(e,t,n,s){var l;return(l={})[r.PA]=c(s,2,a)?s:i,l[r.nY]=h(e)?e:(0,o.DO)(),l.spanId=m(t)?t:(0,o.DO)()[r.Jn](0,16),l.traceFlags=n>=0&&n<=255?n:1,l}function h(e){return c(e,32,s)}function m(e){return c(e,16,l)}function f(e){if(e){var t=d(e[r.T0]);c(t,2)||(t="01");var n=e[r.PA]||i;return"00"!==n&&"ff"!==n&&(n=i),"".concat(n.toLowerCase(),"-").concat(u(e.traceId,32,s).toLowerCase(),"-").concat(u(e.spanId,16,l).toLowerCase(),"-").concat(t.toLowerCase())}return""}},74696:function(e,t,n){"use strict";n.d(t,{$h:function(){return H},F3:function(){return P},Fc:function(){return b},Fr:function(){return G},Gc:function(){return k},I:function(){return o},Jd:function(){return R},Jn:function(){return V},Km:function(){return ee},Kn:function(){return X},LS:function(){return y},Lk:function(){return M},MW:function(){return s},P6:function(){return Y},PA:function(){return oe},PL:function(){return Z},R5:function(){return p},SD:function(){return f},T:function(){return J},T0:function(){return re},T1:function(){return q},TC:function(){return c},TO:function(){return C},Tu:function(){return T},VL:function(){return r},W2:function(){return D},ZV:function(){return U},Z_:function(){return h},_S:function(){return K},_d:function(){return ne},cb:function(){return _},d:function(){return I},dE:function(){return Q},eZ:function(){return d},fi:function(){return E},g:function(){return g},gU:function(){return w},i7:function(){return W},iC:function(){return x},jk:function(){return j},kL:function(){return S},mc:function(){return A},n7:function(){return v},nY:function(){return te},ou:function(){return F},p$:function(){return u},pZ:function(){return a},qV:function(){return O},tb:function(){return i},uL:function(){return m},w6:function(){return L},wu:function(){return $},xv:function(){return z},yl:function(){return l},zV:function(){return N},zc:function(){return B}});var r="initialize",o="name",i="getNotifyMgr",a="identifier",s="push",l="isInitialized",c="config",u="instrumentationKey",d="logger",p="length",h="time",m="processNext",f="getProcessTelContext",g="addNotificationListener",v="removeNotificationListener",y="stopPollingInternalLogs",b="onComplete",C="getPlugin",S="flush",x="_extensions",_="splice",E="teardown",k="messageId",w="message",I="isAsync",P="_doTeardown",T="update",D="getNext",A="diagLog",R="setNextPlugin",N="createNew",M="cookieCfg",F="indexOf",B="substring",O="userAgent",L="split",H="setEnabled",V="substr",z="nodeType",U="apply",W="replace",G="enableDebugExceptions",j="logInternalMessage",q="toLowerCase",K="call",Y="type",X="handler",Q="listeners",Z="isChildEvt",J="getCtx",$="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",oe="version"},50786:function(e,t,n){"use strict";n.d(t,{CY:function(){return h},Pw:function(){return l},RJ:function(){return p},V4:function(){return c},bO:function(){return s},cb:function(){return r},fK:function(){return o},hB:function(){return a},jA:function(){return i},rl:function(){return u},yu:function(){return d}});var r="function",o="object",i="undefined",a="prototype",s="hasOwnProperty",l=Object,c=l[a],u=l.assign,d=l.create,p=l.defineProperty,h=c[s]},25661:function(e,t,n){"use strict";n.d(t,{Rd:function(){return i},ZU:function(){return a},pu:function(){return s}});var r=n(50786),o=null;function i(e){void 0===e&&(e=!0);var t=!1===e?null:o;return t||(typeof globalThis!==r.jA&&(t=globalThis),t||typeof self===r.jA||(t=self),t||typeof window===r.jA||(t=window),t||typeof n.g===r.jA||(t=n.g),o=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.yu;if(t)return t(e);if(null==e)return{};var n=typeof e;function o(){}return n!==r.fK&&n!==r.cb&&a("Object prototype may only be an Object:"+e),o[r.hB]=e,new o}},23679:function(e,t,n){"use strict";n.d(t,{$h:function(){return l},ne:function(){return s},uc:function(){return i}});var r=n(50786),o=n(25661),i=(((0,o.Rd)()||{}).Symbol,((0,o.Rd)()||{}).Reflect,r.rl||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])r.V4[r.bO].call(t,i)&&(e[i]=t[i]);return e}),a=function(e,t){return a=r.Pw.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.bO](n)&&(e[n]=t[n])},a(e,t)};function s(e,t){function n(){this.constructor=e}typeof t!==r.cb&&null!==t&&(0,o.ZU)("Class extends value "+String(t)+" is not a constructor or null"),a(e,t),e[r.hB]=null===t?(0,o.pu)(t):(n[r.hB]=t[r.hB],new n)}function l(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}},41630:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return P}});var o="undefined",i="constructor",a="prototype",s="function",l="_dynClass",c="_unknown_",u="_dyn__proto__",d=Object,p=d.getPrototypeOf,h=d.getOwnPropertyNames;var m=function(){var e;return typeof globalThis!==o&&(e=globalThis),e||typeof self===o||(e=self),e||typeof window===o||(e=window),e||typeof n.g===o||(e=n.g),e||{}}(),f=m.__dynProto$Gbl||(m.__dynProto$Gbl={o:(r={},r.setInstFuncs=!0,r.useBaseInst=!0,r),n:1e3});function g(e,t){return e&&d.prototype.hasOwnProperty.call(e,t)}function v(e){return e&&(e===d.prototype||e===Array.prototype)}function y(e){return v(e)||e===Function.prototype}function b(e){var t;if(e){if(p)return p(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,g(e,u)||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function C(e,t){var n=[];if(h)n=h(e);else for(var r in e)"string"===typeof r&&g(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function S(e,t,n){return t!==i&&typeof e[t]===s&&(n||g(e,t))}function x(e){throw new TypeError("DynamicProto: "+e)}function _(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function E(e,t,n,r){var o=null;if(e&&g(n,l)){var i=e._dynInstFuncs||{};if((o=(i[n._dynClass]||{})[t])||x("Missing ["+t+"] "+s),!o._dynInstChk&&!1!==i._dynInstChk){for(var a=!g(e,t),c=b(e),u=[];a&&c&&!y(c)&&!_(u,c);){var d=c[t];if(d){a=d===r;break}u.push(c),c=b(c)}try{a&&(e[t]=o),o._dynInstChk=1}catch(p){i._dynInstChk=!1}}}return o}function k(e,t,n){var r=t[e];return r===n&&(r=b(t)[e]),typeof r!==s&&x("["+e+"] is not a "+s),r}function w(e,t,n,r,o){if(!v(e)){var i=n._dynInstFuncs=n._dynInstFuncs||{},a=i[t]=i[t]||{};!1!==i._dynInstChk&&(i._dynInstChk=!!o),C(n,(function(t){S(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!g(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(E(this,t,e,n)||k(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}function I(e,t){return g(e,a)?e.name||t||c:((e||{}).constructor||{}).name||t||c}function P(e,t,n,r){g(e,a)||x("theClass is an invalid class definition.");var o=e.prototype;(function(e,t){if(p){for(var n=[],r=b(t);r&&!y(r)&&!_(n,r);){if(r===e)return!0;n.push(r),r=b(r)}return!1}return!0})(o,t)||x("["+I(e)+"] not in hierarchy of ["+I(t)+"]");var i=null;g(o,l)?i=o._dynClass:(i="_dynCls$"+I(e,"_")+"$"+f.n,f.n++,o._dynClass=i);var s=P._dfOpts,c=!!s.useBaseInst;c&&r&&void 0!==r.useBaseInst&&(c=!!r.useBaseInst);var u=function(e){var t={};return C(e,(function(n){!t[n]&&S(e,n,!1)&&(t[n]=e[n])})),t}(t),d=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o._isDynProxy&&r){var i=e._dynInstFuncs||{};!1!==i._dynInstChk&&(o=(i[t._dynClass]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};C(n,(function(e){i[e]=o(t,n,e)}));for(var a=b(e),s=[];a&&!y(a)&&!_(s,a);)C(a,(function(e){!i[e]&&S(a,e,!p)&&(i[e]=o(t,a,e))})),s.push(a),a=b(a);return i}(o,t,u,c);n(t,d);var h=!!p&&!!s.setInstFuncs;h&&r&&(h=!!r.setInstFuncs),w(o,i,t,u,!1!==h)}P._dfOpts=f.o},46076:function(e,t,n){"use strict";function r(e){i.length||(o(),!0),i[i.length]=e}e.exports=r;var o,i=[],a=0;function s(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0,!1}var l="undefined"!==typeof n.g?n.g:self,c=l.MutationObserver||l.WebKitMutationObserver;function u(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}o="function"===typeof c?function(e){var t=1,n=new c(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(s):u(s),r.requestFlush=o,r.makeRequestCallFromTimer=u},54791:function(e){var t=.1,n="function"===typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,t,n){return((r(t,n)*e+o(t,n))*e+i(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+i(t)}function l(e){return e}e.exports=function(e,r,o,i){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&o===i)return l;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,o);function d(n){for(var r=0,i=1;10!==i&&c[i]<=n;++i)r+=t;--i;var l=r+(n-c[i])/(c[i+1]-c[i])*t,u=s(l,e,o);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=s(t,n,r);if(0===i)return t;t-=(a(t,n,r)-e)/i}return t}(n,l,e,o):0===u?l:function(e,t,n,r,o){var i,s,l=0;do{(i=a(s=t+(n-t)/2,r,o)-e)>0?n=s:t=s}while(Math.abs(i)>1e-7&&++l<10);return s}(n,r,r+t,e,o)}return function(e){return 0===e?0:1===e?1:a(d(e),r,i)}}},65667:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},88928:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},32063:function(e,t,n){var r=n(97955);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},71856:function(e,t,n){var r=n(40822),o=n(25788),i=n(5147),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i(s,a,o(null)),e.exports=function(e){s[a][e]=!0}},42672:function(e,t,n){"use strict";var r=n(83458).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},93932:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},67695:function(e,t,n){var r=n(97955);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},70671:function(e,t,n){"use strict";var r,o=n(9522),i=n(3380),a=n(97955),s=n(44938),l=n(31540),c=n(5147),u=n(73920),d=n(3120).f,p=n(17929),h=n(12310),m=n(40822),f=n(64499),g=i.DataView,v=g&&g.prototype,y=i.Int8Array,b=y&&y.prototype,C=i.Uint8ClampedArray,S=C&&C.prototype,x=y&&p(y),_=b&&p(b),E=Object.prototype,k=E.isPrototypeOf,w=m("toStringTag"),I=f("TYPED_ARRAY_TAG"),P=!(!i.ArrayBuffer||!g),T=P&&!!h&&"Opera"!==l(i.opera),D=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&s(A,l(e))};for(r in A)i[r]||(T=!1);if((!T||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},T))for(r in A)i[r]&&h(i[r],x);if((!T||!_||_===E)&&(_=x.prototype,T))for(r in A)i[r]&&h(i[r].prototype,_);if(T&&p(S)!==_&&h(S,_),o&&!s(_,w))for(r in D=!0,d(_,w,{get:function(){return a(this)?this[I]:void 0}}),A)i[r]&&c(i[r],I,r);P&&h&&p(v)!==E&&h(v,E),e.exports={NATIVE_ARRAY_BUFFER:P,NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:D&&I,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(k.call(x,e))return e}else for(var t in A)if(s(A,r)){var n=i[t];if(n&&(e===n||k.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var r in A){var a=i[r];a&&s(a.prototype,e)&&delete a.prototype[e]}_[e]&&!n||u(_,e,n?t:T&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(o){if(h){if(n)for(r in A)(a=i[r])&&s(a,e)&&delete a[e];if(x[e]&&!n)return;try{return u(x,e,n?t:T&&y[e]||t)}catch(l){}}for(r in A)!(a=i[r])||a[e]&&!n||u(a,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||s(A,t)},isTypedArray:R,TypedArray:x,TypedArrayPrototype:_}},80922:function(e,t,n){"use strict";var r=n(3380),o=n(9522),i=n(70671).NATIVE_ARRAY_BUFFER,a=n(5147),s=n(90528),l=n(81949),c=n(93932),u=n(68606),d=n(60497),p=n(18528),h=n(21170),m=n(57472).f,f=n(3120).f,g=n(90112),v=n(31149),y=n(84392),b=y.get,C=y.set,S="ArrayBuffer",x="DataView",_="Wrong index",E=r.ArrayBuffer,k=E,w=r.DataView,I=r.RangeError,P=h.pack,T=h.unpack,D=function(e){return[255&e]},A=function(e){return[255&e,e>>8&255]},R=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},N=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},M=function(e){return P(e,23,4)},F=function(e){return P(e,52,8)},B=function(e,t){f(e.prototype,t,{get:function(){return b(this)[t]}})},O=function(e,t,n,r){var o=p(n),i=b(e);if(o+t>i.byteLength)throw I(_);var a=b(i.buffer).bytes,s=o+i.byteOffset,l=a.slice(s,s+t);return r?l:l.reverse()},L=function(e,t,n,r,o,i){var a=p(n),s=b(e);if(a+t>s.byteLength)throw I(_);for(var l=b(s.buffer).bytes,c=a+s.byteOffset,u=r(+o),d=0;d<t;d++)l[c+d]=u[i?d:t-d-1]};if(i){if(!l((function(){E(1)}))||!l((function(){new E(-1)}))||l((function(){return new E,new E(1.5),new E(NaN),E.name!=S}))){for(var H,V=(k=function(e){return c(this,k),new E(p(e))}).prototype=E.prototype,z=m(E),U=0;z.length>U;)(H=z[U++])in k||a(k,H,E[H]);V.constructor=k}var W=new w(new k(2)),G=w.prototype.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||s(w.prototype,{setInt8:function(e,t){G.call(this,e,t<<24>>24)},setUint8:function(e,t){G.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){c(this,k,S);var t=p(e);C(this,{bytes:g.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},w=function(e,t,n){c(this,w,x),c(e,k,x);var r=b(e).byteLength,i=u(t);if(i<0||i>r)throw I("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw I("Wrong length");C(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(B(k,"byteLength"),B(w,"buffer"),B(w,"byteLength"),B(w,"byteOffset")),s(w.prototype,{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return N(O(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return N(O(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return T(O(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){L(this,1,e,D,t)},setUint8:function(e,t){L(this,1,e,D,t)},setInt16:function(e,t){L(this,2,e,A,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){L(this,2,e,A,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){L(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){L(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){L(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){L(this,8,e,F,t,arguments.length>2?arguments[2]:void 0)}});v(k,S),v(w,x),e.exports={ArrayBuffer:k,DataView:w}},3752:function(e,t,n){"use strict";var r=n(25904),o=n(16648),i=n(60497),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n.length),l=o(e,s),c=o(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:o(u,s))-c,s-l),p=1;for(c<l&&l<c+d&&(p=-1,c+=d-1,l+=d-1);d-- >0;)c in n?n[l]=n[c]:delete n[l],l+=p,c+=p;return n}},90112:function(e,t,n){"use strict";var r=n(25904),o=n(16648),i=n(60497);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},26356:function(e,t,n){"use strict";var r=n(92081).forEach,o=n(55085);e.exports=o("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},38706:function(e,t,n){"use strict";var r=n(76525),o=n(25904),i=n(99790),a=n(66349),s=n(60497),l=n(40616),c=n(9117);e.exports=function(e){var t,n,u,d,p,h=o(e),m="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g,y=0,b=c(h);if(v&&(g=r(g,f>2?arguments[2]:void 0,2)),void 0==b||m==Array&&a(b))for(n=new m(t=s(h.length));t>y;y++)l(n,y,v?g(h[y],y):h[y]);else for(p=(d=b.call(h)).next,n=new m;!(u=p.call(d)).done;y++)l(n,y,v?i(d,g,[u.value,y],!0):u.value);return n.length=y,n}},50498:function(e,t,n){var r=n(76616),o=n(60497),i=n(16648),a=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},92081:function(e,t,n){var r=n(76525),o=n(95879),i=n(25904),a=n(60497),s=n(45223),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d;return function(h,m,f,g){for(var v,y,b=i(h),C=o(b),S=r(m,f,3),x=a(C.length),_=0,E=g||s,k=t?E(h,x):n?E(h,0):void 0;x>_;_++)if((p||_ in C)&&(y=S(v=C[_],_,b),e))if(t)k[_]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:l.call(k,v)}else if(u)return!1;return d?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},36340:function(e,t,n){"use strict";var r=n(76616),o=n(68606),i=n(60497),a=n(55085),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf");e.exports=c||u?function(e){if(c)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},9679:function(e,t,n){var r=n(81949),o=n(40822),i=n(81363),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},43255:function(e,t,n){var r=n(88928),o=n(25904),i=n(95879),a=n(60497),s=function(e){return function(t,n,s,l){r(n);var c=o(t),u=i(c),d=a(c.length),p=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(p in u){l=u[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in u&&(l=n(l,u[p],p,c));return l}};e.exports={left:s(!1),right:s(!0)}},45223:function(e,t,n){var r=n(97955),o=n(10117),i=n(40822)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},76525:function(e,t,n){var r=n(88928);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},99790:function(e,t,n){var r=n(67695);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},73340:function(e,t,n){var r=n(40822)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(s){}return n}},40071:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},31540:function(e,t,n){var r=n(78640),o=n(40071),i=n(40822)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},58719:function(e,t,n){"use strict";var r=n(3120).f,o=n(25788),i=n(90528),a=n(76525),s=n(93932),l=n(53050),c=n(39120),u=n(5831),d=n(9522),p=n(88505).fastKey,h=n(84392),m=h.set,f=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&l(r,e[c],e,n)})),h=f(t),g=function(e,t,n){var r,o,i=h(e),a=v(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},v=function(e,t){var n,r=h(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(u.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=h(t),r=v(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return h(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=f(t),i=f(r);c(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},37899:function(e,t,n){"use strict";var r=n(90528),o=n(88505).getWeakData,i=n(67695),a=n(97955),s=n(93932),l=n(53050),c=n(92081),u=n(44938),d=n(84392),p=d.set,h=d.getterFor,m=c.find,f=c.findIndex,g=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=f(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){s(e,d,t),p(e,{type:t,id:g++,frozen:void 0}),void 0!=r&&l(r,e[c],e,n)})),m=h(t),f=function(e,t,n){var r=m(e),a=o(i(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=m(this);if(a(e)){var n=o(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return f(this,e,t)}}:{add:function(e){return f(this,e,!0)}}),d}}},90409:function(e,t,n){"use strict";var r=n(12791),o=n(3380),i=n(52501),a=n(73920),s=n(88505),l=n(53050),c=n(93932),u=n(97955),d=n(81949),p=n(73340),h=n(31149),m=n(48461);e.exports=function(e,t,n){var f=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),v=f?"set":"add",y=o[e],b=y&&y.prototype,C=y,S={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(g||b.forEach&&!d((function(){(new y).entries().next()})))))C=n.getConstructor(t,e,f,v),s.REQUIRED=!0;else if(i(e,!0)){var _=new C,E=_[v](g?{}:-0,1)!=_,k=d((function(){_.has(1)})),w=p((function(e){new y(e)})),I=!g&&d((function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)}));w||((C=t((function(t,n){c(t,C,e);var r=m(new y,t,C);return void 0!=n&&l(n,r[v],r,f),r}))).prototype=b,b.constructor=C),(k||I)&&(x("delete"),x("has"),f&&x("get")),(I||E)&&x(v),g&&b.clear&&delete b.clear}return S[e]=C,r({global:!0,forced:C!=y},S),h(C,e),g||n.setStrong(C,e,f),C}},43566:function(e,t,n){var r=n(44938),o=n(48259),i=n(5693),a=n(3120);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},72362:function(e,t,n){var r=n(40822)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},66361:function(e,t,n){var r=n(81949);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},29514:function(e,t,n){var r=n(40840),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+a+"</"+t+">"}},1123:function(e,t,n){"use strict";var r=n(5709).IteratorPrototype,o=n(25788),i=n(80106),a=n(31149),s=n(84759),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=l,e}},5147:function(e,t,n){var r=n(9522),o=n(3120),i=n(80106);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},80106:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},40616:function(e,t,n){"use strict";var r=n(37364),o=n(3120),i=n(80106);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},78174:function(e,t,n){"use strict";var r=n(67695),o=n(37364);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},39120:function(e,t,n){"use strict";var r=n(12791),o=n(1123),i=n(17929),a=n(12310),s=n(31149),l=n(5147),c=n(73920),u=n(40822),d=n(27410),p=n(84759),h=n(5709),m=h.IteratorPrototype,f=h.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",C=function(){return this};e.exports=function(e,t,n,u,h,S,x){o(n,t,u);var _,E,k,w=function(e){if(e===h&&A)return A;if(!f&&e in T)return T[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",P=!1,T=e.prototype,D=T[g]||T["@@iterator"]||h&&T[h],A=!f&&D||w(h),R="Array"==t&&T.entries||D;if(R&&(_=i(R.call(new e)),m!==Object.prototype&&_.next&&(d||i(_)===m||(a?a(_,m):"function"!=typeof _[g]&&l(_,g,C)),s(_,I,!0,!0),d&&(p[I]=C))),h==y&&D&&D.name!==y&&(P=!0,A=function(){return D.call(this)}),d&&!x||T[g]===A||l(T,g,A),p[t]=A,h)if(E={values:w(y),keys:S?A:w(v),entries:w(b)},x)for(k in E)(f||P||!(k in T))&&c(T,k,E[k]);else r({target:t,proto:!0,forced:f||P},E);return E}},82054:function(e,t,n){var r=n(33068),o=n(44938),i=n(34256),a=n(3120).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},9522:function(e,t,n){var r=n(81949);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},67609:function(e,t,n){var r=n(3380),o=n(97955),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},31335:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80593:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},12791:function(e,t,n){var r=n(3380),o=n(5693).f,i=n(5147),a=n(73920),s=n(56627),l=n(43566),c=n(52501);e.exports=function(e,t){var n,u,d,p,h,m=e.target,f=e.global,g=e.stat;if(n=f?r:g?r[m]||s(m,{}):(r[m]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(h=o(n,u))&&h.value:n[u],!c(f?u:m+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},81949:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},92590:function(e,t,n){"use strict";var r=n(5147),o=n(73920),i=n(81949),a=n(40822),s=n(10569),l=a("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=a(e),h=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=h&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!h||!m||"replace"===e&&!c||"split"===e&&!u){var f=/./[p],g=n(p,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:f.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];o(String.prototype,e,v),o(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[p],"sham",!0)}}},46835:function(e,t,n){"use strict";var r=n(10117),o=n(60497),i=n(76525);e.exports=function e(t,n,a,s,l,c,u,d){for(var p,h=l,m=0,f=!!u&&i(u,d,3);m<s;){if(m in a){if(p=f?f(a[m],m,n):a[m],c>0&&r(p))h=e(t,n,p,o(p.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=p}h++}m++}return h}},22283:function(e,t,n){"use strict";var r=n(27410),o=n(3380),i=n(81949);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},38669:function(e,t,n){var r=n(81949);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},99865:function(e,t,n){var r=n(81949),o=n(78458);e.exports=function(e){return r((function(){return!!o[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||o[e].name!==e}))}},56171:function(e,t,n){var r=n(81949);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},26576:function(e,t,n){"use strict";var r=n(88928),o=n(97955),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},72591:function(e,t,n){var r=n(33068),o=n(3380),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},9117:function(e,t,n){var r=n(31540),o=n(84759),i=n(40822)("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},6574:function(e,t,n){var r=n(67695),o=n(9117);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},3380:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},44938:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},49901:function(e){e.exports={}},89591:function(e,t,n){var r=n(3380);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},36320:function(e,t,n){var r=n(72591);e.exports=r("document","documentElement")},75246:function(e,t,n){var r=n(9522),o=n(81949),i=n(67609);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},21170:function(e){var t=1/0,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var c,u,d,p=new Array(l),h=8*l-s-1,m=(1<<h)-1,f=m>>1,g=23===s?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===t?(u=e!=e?1:0,c=m):(c=o(i(e)/a),e*(d=r(2,-c))<1&&(c--,d*=2),(e+=c+f>=1?g/d:g*r(2,1-f))*d>=2&&(c++,d/=2),c+f>=m?(u=0,c=m):c+f>=1?(u=(e*d-1)*r(2,s),c+=f):(u=e*r(2,f-1)*r(2,s),c=0));s>=8;p[y++]=255&u,u/=256,s-=8);for(c=c<<s|u,h+=s;h>0;p[y++]=255&c,c/=256,h-=8);return p[--y]|=128*v,p},unpack:function(e,n){var o,i=e.length,a=8*i-n-1,s=(1<<a)-1,l=s>>1,c=a-7,u=i-1,d=e[u--],p=127&d;for(d>>=7;c>0;p=256*p+e[u],u--,c-=8);for(o=p&(1<<-c)-1,p>>=-c,c+=n;c>0;o=256*o+e[u],u--,c-=8);if(0===p)p=1-l;else{if(p===s)return o?NaN:d?-1/0:t;o+=r(2,n),p-=l}return(d?-1:1)*o*r(2,p-n)}}},95879:function(e,t,n){var r=n(81949),o=n(40071),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},48461:function(e,t,n){var r=n(97955),o=n(12310);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},49252:function(e,t,n){var r=n(2288),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},88505:function(e,t,n){var r=n(49901),o=n(97955),i=n(44938),a=n(3120).f,s=n(64499),l=n(56171),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},p=function(e){a(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!d(e))return"F";if(!t)return"E";p(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!d(e))return!0;if(!t)return!1;p(e)}return e[c].weakData},onFreeze:function(e){return l&&h.REQUIRED&&d(e)&&!i(e,c)&&p(e),e}};r[c]=!0},84392:function(e,t,n){var r,o,i,a=n(26071),s=n(3380),l=n(97955),c=n(5147),u=n(44938),d=n(57170),p=n(49901),h=s.WeakMap;if(a){var m=new h,f=m.get,g=m.has,v=m.set;r=function(e,t){return v.call(m,e,t),t},o=function(e){return f.call(m,e)||{}},i=function(e){return g.call(m,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){return c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},66349:function(e,t,n){var r=n(40822),o=n(84759),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},10117:function(e,t,n){var r=n(40071);e.exports=Array.isArray||function(e){return"Array"==r(e)}},52501:function(e,t,n){var r=n(81949),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},72677:function(e,t,n){var r=n(97955),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},85954:function(e,t,n){var r=n(28592);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},97955:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},27410:function(e){e.exports=!1},42227:function(e,t,n){var r=n(97955),o=n(40071),i=n(40822)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},53050:function(e,t,n){var r=n(67695),o=n(66349),i=n(60497),a=n(76525),s=n(9117),l=n(99790),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var p,h,m,f,g,v,y,b=a(t,n,u?2:1);if(d)p=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(o(h)){for(m=0,f=i(e.length);f>m;m++)if((g=u?b(r(y=e[m])[0],y[1]):b(e[m]))&&g instanceof c)return g;return new c(!1)}p=h.call(e)}for(v=p.next;!(y=v.call(p)).done;)if("object"==typeof(g=l(p,b,y.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},5709:function(e,t,n){"use strict";var r,o,i,a=n(17929),s=n(5147),l=n(44938),c=n(40822),u=n(27410),d=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),void 0==r&&(r={}),u||l(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},84759:function(e){e.exports={}},46915:function(e){var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},50489:function(e,t,n){var r=n(68351),o=Math.abs,i=Math.pow,a=i(2,-52),s=i(2,-23),l=i(2,127)*(2-s),c=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),u=r(e);return i<c?u*(i/c/s+1/a-1/a)*c*s:(n=(t=(1+s/a)*i)-(t-i))>l||n!=n?u*(1/0):u*n}},72185:function(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},68351:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},96337:function(e,t,n){var r,o,i,a,s,l,c,u,d=n(3380),p=n(5693).f,h=n(40071),m=n(64581).set,f=n(85954),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,y=d.Promise,b="process"==h(v),C=p(d,"queueMicrotask"),S=C&&C.value;S||(r=function(){var e,t;for(b&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=void 0,n}}i=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:g&&!f?(s=!0,l=document.createTextNode(""),new g(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,a=function(){u.call(c,r)}):a=function(){m.call(d,r)}),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},29044:function(e,t,n){var r=n(3380);e.exports=r.Promise},44478:function(e,t,n){var r=n(81949);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},91255:function(e,t,n){var r=n(81949),o=n(40822),i=n(27410),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},26071:function(e,t,n){var r=n(3380),o=n(49252),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},752:function(e,t,n){"use strict";var r=n(88928),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},51035:function(e,t,n){var r=n(42227);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},66272:function(e,t,n){var r=n(3380).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},64399:function(e,t,n){"use strict";var r=n(9522),o=n(81949),i=n(31900),a=n(13455),s=n(56346),l=n(25904),c=n(95879),u=Object.assign,d=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||i(u({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,u=1,d=a.f,p=s.f;o>u;)for(var h,m=c(arguments[u++]),f=d?i(m).concat(d(m)):i(m),g=f.length,v=0;g>v;)h=f[v++],r&&!p.call(m,h)||(n[h]=m[h]);return n}:u},25788:function(e,t,n){var r=n(67695),o=n(20370),i=n(80593),a=n(49901),s=n(36320),l=n(67609),c=n(57170)("IE_PROTO"),u=function(){},d=function(){var e,t=l("iframe"),n=i.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d.prototype[i[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[c]=e):n=d(),void 0===t?n:o(n,t)},a[c]=!0},20370:function(e,t,n){var r=n(9522),o=n(3120),i=n(67695),a=n(31900);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,l=0;s>l;)o.f(e,n=r[l++],t[n]);return e}},3120:function(e,t,n){var r=n(9522),o=n(75246),i=n(67695),a=n(37364),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},5693:function(e,t,n){var r=n(9522),o=n(56346),i=n(80106),a=n(76616),s=n(37364),l=n(44938),c=n(75246),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},71997:function(e,t,n){var r=n(76616),o=n(57472).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},57472:function(e,t,n){var r=n(32392),o=n(80593).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},13455:function(e,t){t.f=Object.getOwnPropertySymbols},17929:function(e,t,n){var r=n(44938),o=n(25904),i=n(57170),a=n(66361),s=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},32392:function(e,t,n){var r=n(44938),o=n(76616),i=n(50498).indexOf,a=n(49901);e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},31900:function(e,t,n){var r=n(32392),o=n(80593);e.exports=Object.keys||function(e){return r(e,o)}},56346:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},12310:function(e,t,n){var r=n(67695),o=n(32063);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},14432:function(e,t,n){var r=n(9522),o=n(31900),i=n(76616),a=n(56346).f,s=function(e){return function(t){for(var n,s=i(t),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},4381:function(e,t,n){"use strict";var r=n(78640),o=n(31540);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},48259:function(e,t,n){var r=n(72591),o=n(57472),i=n(13455),a=n(67695);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},32456:function(e,t,n){var r=n(3380),o=n(20918).trim,i=n(78458),a=r.parseFloat,s=1/a(i+"-0")!==-1/0;e.exports=s?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},20323:function(e,t,n){var r=n(3380),o=n(20918).trim,i=n(78458),a=r.parseInt,s=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},33068:function(e,t,n){var r=n(3380);e.exports=r},42454:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},84945:function(e,t,n){var r=n(67695),o=n(97955),i=n(752);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},41966:function(e){"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,s=function(e){return e+22+75*(e<26)},l=function(e,t,n){var r=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;r+=36)e=i(e/35);return i(r+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var r,c,u=e.length,d=128,p=0,h=72;for(r=0;r<e.length;r++)(c=e[r])<128&&n.push(a(c));var m=n.length,f=m;for(m&&n.push("-");f<u;){var g=t;for(r=0;r<e.length;r++)(c=e[r])>=d&&c<g&&(g=c);var v=f+1;if(g-d>i((t-p)/v))throw RangeError(o);for(p+=(g-d)*v,d=g,r=0;r<e.length;r++){if((c=e[r])<d&&++p>t)throw RangeError(o);if(c==d){for(var y=p,b=36;;b+=36){var C=b<=h?1:b>=h+26?26:b-h;if(y<C)break;var S=y-C,x=36-C;n.push(a(s(C+S%x))),y=i(S/x)}n.push(a(s(y))),h=l(p,v,f==m),p=0,++f}}++p,++d}return n.join("")};e.exports=function(e){var t,o,i=[],a=e.toLowerCase().replace(r,".").split(".");for(t=0;t<a.length;t++)o=a[t],i.push(n.test(o)?"xn--"+c(o):o);return i.join(".")}},90528:function(e,t,n){var r=n(73920);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},73920:function(e,t,n){var r=n(3380),o=n(5147),i=n(44938),a=n(56627),s=n(49252),l=n(84392),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},47905:function(e,t,n){var r=n(40071),o=n(10569);e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},10569:function(e,t,n){"use strict";var r=n(1758),o=RegExp.prototype.exec,i=String.prototype.replace,a=o,s=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=void 0!==/()??/.exec("")[1];(s||l)&&(a=function(e){var t,n,a,c,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",r.call(u))),s&&(t=u.lastIndex),a=o.call(u,e),s&&a&&(u.lastIndex=u.global?a.index+a[0].length:t),l&&a&&a.length>1&&i.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},1758:function(e,t,n){"use strict";var r=n(67695);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},40840:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},59840:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},56627:function(e,t,n){var r=n(3380),o=n(5147);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},5831:function(e,t,n){"use strict";var r=n(72591),o=n(3120),i=n(40822),a=n(9522),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},31149:function(e,t,n){var r=n(3120).f,o=n(44938),i=n(40822)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},57170:function(e,t,n){var r=n(7671),o=n(64499),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},2288:function(e,t,n){var r=n(3380),o=n(56627),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},7671:function(e,t,n){var r=n(27410),o=n(2288);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.5.0",mode:r?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},55085:function(e,t,n){"use strict";var r=n(81949);e.exports=function(e,t){var n=[][e];return!n||!r((function(){n.call(null,t||function(){throw 1},1)}))}},38660:function(e,t,n){var r=n(67695),o=n(88928),i=n(40822)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},83458:function(e,t,n){var r=n(68606),o=n(40840),i=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},6706:function(e,t,n){var r=n(60497),o=n(29229),i=n(40840),a=Math.ceil,s=function(e){return function(t,n,s){var l,c,u=String(i(t)),d=u.length,p=void 0===s?" ":String(s),h=r(n);return h<=d||""==p?u:(l=h-d,(c=o.call(p,a(l/p.length))).length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},29229:function(e,t,n){"use strict";var r=n(68606),o=n(40840);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},20918:function(e,t,n){var r=n(40840),o="["+n(78458)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},64581:function(e,t,n){var r,o,i,a=n(3380),s=n(81949),l=n(40071),c=n(76525),u=n(36320),d=n(67609),p=n(85954),h=a.location,m=a.setImmediate,f=a.clearImmediate,g=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,C={},S="onreadystatechange",x=function(e){if(C.hasOwnProperty(e)){var t=C[e];delete C[e],t()}},_=function(e){return function(){x(e)}},E=function(e){x(e.data)},k=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};m&&f||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return C[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},f=function(e){delete C[e]},"process"==l(g)?r=function(e){g.nextTick(_(e))}:y&&y.now?r=function(e){y.now(_(e))}:v&&!p?(i=(o=new v).port2,o.port1.onmessage=E,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)?r=S in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),x(e)}}:function(e){setTimeout(_(e),0)}:(r=k,a.addEventListener("message",E,!1))),e.exports={set:m,clear:f}},557:function(e,t,n){var r=n(40071);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},16648:function(e,t,n){var r=n(68606),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},18528:function(e,t,n){var r=n(68606),o=n(60497);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},76616:function(e,t,n){var r=n(95879),o=n(40840);e.exports=function(e){return r(o(e))}},68606:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},60497:function(e,t,n){var r=n(68606),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},25904:function(e,t,n){var r=n(40840);e.exports=function(e){return Object(r(e))}},94918:function(e,t,n){var r=n(33707);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},33707:function(e,t,n){var r=n(68606);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},37364:function(e,t,n){var r=n(97955);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},78640:function(e,t,n){var r={};r[n(40822)("toStringTag")]="z",e.exports="[object z]"===String(r)},56871:function(e,t,n){"use strict";var r=n(12791),o=n(3380),i=n(9522),a=n(74784),s=n(70671),l=n(80922),c=n(93932),u=n(80106),d=n(5147),p=n(60497),h=n(18528),m=n(94918),f=n(37364),g=n(44938),v=n(31540),y=n(97955),b=n(25788),C=n(12310),S=n(57472).f,x=n(83014),_=n(92081).forEach,E=n(5831),k=n(3120),w=n(5693),I=n(84392),P=n(48461),T=I.get,D=I.set,A=k.f,R=w.f,N=Math.round,M=o.RangeError,F=l.ArrayBuffer,B=l.DataView,O=s.NATIVE_ARRAY_BUFFER_VIEWS,L=s.TYPED_ARRAY_TAG,H=s.TypedArray,V=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,U=s.isTypedArray,W="BYTES_PER_ELEMENT",G="Wrong length",j=function(e,t){for(var n=0,r=t.length,o=new(z(e))(r);r>n;)o[n]=t[n++];return o},q=function(e,t){A(e,t,{get:function(){return T(this)[t]}})},K=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},Y=function(e,t){return U(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},X=function(e,t){return Y(e,t=f(t,!0))?u(2,e[t]):R(e,t)},Q=function(e,t,n){return!(Y(e,t=f(t,!0))&&y(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?A(e,t,n):(e[t]=n.value,e)};i?(O||(w.f=X,k.f=Q,q(V,"buffer"),q(V,"byteOffset"),q(V,"byteLength"),q(V,"length")),r({target:"Object",stat:!0,forced:!O},{getOwnPropertyDescriptor:X,defineProperty:Q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",l="get"+e,u="set"+e,f=o[s],g=f,v=g&&g.prototype,k={},w=function(e,t){A(e,t,{get:function(){return function(e,t){var n=T(e);return n.view[l](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=T(e);n&&(r=(r=N(r))<0?0:r>255?255:255&r),o.view[u](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};O?a&&(g=t((function(e,t,n,r){return c(e,g,s),P(y(t)?K(t)?void 0!==r?new f(t,m(n,i),r):void 0!==n?new f(t,m(n,i)):new f(t):U(t)?j(g,t):x.call(g,t):new f(h(t)),e,g)})),C&&C(g,H),_(S(f),(function(e){e in g||d(g,e,f[e])})),g.prototype=v):(g=t((function(e,t,n,r){c(e,g,s);var o,a,l,u=0,d=0;if(y(t)){if(!K(t))return U(t)?j(g,t):x.call(g,t);o=t,d=m(n,i);var f=t.byteLength;if(void 0===r){if(f%i)throw M(G);if((a=f-d)<0)throw M(G)}else if((a=p(r)*i)+d>f)throw M(G);l=a/i}else l=h(t),o=new F(a=l*i);for(D(e,{buffer:o,byteOffset:d,byteLength:a,length:l,view:new B(o)});u<l;)w(e,u++)})),C&&C(g,H),v=g.prototype=b(V)),v.constructor!==g&&d(v,"constructor",g),L&&d(v,L,s),k[s]=g,r({global:!0,forced:g!=f,sham:!O},k),W in g||d(g,W,i),W in v||d(v,W,i),E(s)}):e.exports=function(){}},83014:function(e,t,n){var r=n(25904),o=n(60497),i=n(9117),a=n(66349),s=n(76525),l=n(70671).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,d,p,h=r(e),m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,v=i(h);if(void 0!=v&&!a(v))for(p=(d=v.call(h)).next,h=[];!(u=p.call(d)).done;)h.push(u.value);for(g&&m>2&&(f=s(f,arguments[2],2)),n=o(h.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=g?f(h[t],t):h[t];return c}},74784:function(e,t,n){var r=n(3380),o=n(81949),i=n(73340),a=n(70671).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new s(2),1,void 0).length}))},64499:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},44651:function(e,t,n){var r=n(44478);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},28592:function(e,t,n){var r=n(72591);e.exports=r("navigator","userAgent")||""},81363:function(e,t,n){var r,o,i=n(3380),a=n(28592),s=i.process,l=s&&s.versions,c=l&&l.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},33979:function(e,t,n){var r=n(28592);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},40822:function(e,t,n){var r=n(3380),o=n(7671),i=n(44938),a=n(64499),s=n(44478),l=n(44651),c=o("wks"),u=r.Symbol,d=l?u:a;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},78458:function(e){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},34256:function(e,t,n){var r=n(40822);t.f=r},92707:function(e,t,n){"use strict";var r=n(12791),o=n(3380),i=n(80922),a=n(5831),s="ArrayBuffer",l=i.ArrayBuffer;r({global:!0,forced:o.ArrayBuffer!==l},{ArrayBuffer:l}),a(s)},41217:function(e,t,n){"use strict";var r=n(12791),o=n(81949),i=n(10117),a=n(97955),s=n(25904),l=n(60497),c=n(40616),u=n(45223),d=n(9679),p=n(40822),h=n(81363),m=p("isConcatSpreadable"),f=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,n,r,o,i,a=s(this),d=u(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(b(i=-1===t?a:arguments[t])){if(p+(o=l(i.length))>f)throw TypeError(g);for(n=0;n<o;n++,p++)n in i&&c(d,p,i[n])}else{if(p>=f)throw TypeError(g);c(d,p++,i)}return d.length=p,d}})},48841:function(e,t,n){var r=n(12791),o=n(3752),i=n(71856);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},72345:function(e,t,n){var r=n(12791),o=n(90112),i=n(71856);r({target:"Array",proto:!0},{fill:o}),i("fill")},14366:function(e,t,n){"use strict";var r=n(12791),o=n(92081).filter,i=n(81949),a=n(9679)("filter"),s=a&&!i((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!a||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},59039:function(e,t,n){"use strict";var r=n(12791),o=n(92081).findIndex,i=n(71856),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},37824:function(e,t,n){"use strict";var r=n(12791),o=n(92081).find,i=n(71856),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},95922:function(e,t,n){"use strict";var r=n(12791),o=n(46835),i=n(25904),a=n(60497),s=n(88928),l=n(45223);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return s(e),(t=l(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},67773:function(e,t,n){"use strict";var r=n(12791),o=n(46835),i=n(25904),a=n(60497),s=n(68606),l=n(45223);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=l(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},21870:function(e,t,n){var r=n(12791),o=n(38706);r({target:"Array",stat:!0,forced:!n(73340)((function(e){Array.from(e)}))},{from:o})},73767:function(e,t,n){"use strict";var r=n(12791),o=n(50498).includes,i=n(71856);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},28222:function(e,t,n){"use strict";var r=n(12791),o=n(50498).indexOf,i=n(55085),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,l=i("indexOf");r({target:"Array",proto:!0,forced:s||l},{indexOf:function(e){return s?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},81837:function(e,t,n){"use strict";var r=n(76616),o=n(71856),i=n(84759),a=n(84392),s=n(39120),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},91375:function(e,t,n){"use strict";var r=n(12791),o=n(95879),i=n(76616),a=n(55085),s=[].join,l=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||c},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},17996:function(e,t,n){var r=n(12791),o=n(36340);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},45514:function(e,t,n){"use strict";var r=n(12791),o=n(92081).map,i=n(81949),a=n(9679)("map"),s=a&&!i((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!a||!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},41536:function(e,t,n){"use strict";var r=n(12791),o=n(81949),i=n(40616);r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},21400:function(e,t,n){"use strict";var r=n(12791),o=n(43255).right;r({target:"Array",proto:!0,forced:n(55085)("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},56725:function(e,t,n){"use strict";var r=n(12791),o=n(43255).left;r({target:"Array",proto:!0,forced:n(55085)("reduce")},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},86498:function(e,t,n){"use strict";var r=n(12791),o=n(97955),i=n(10117),a=n(16648),s=n(60497),l=n(76616),c=n(40616),u=n(9679),d=n(40822)("species"),p=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!u("slice")},{slice:function(e,t){var n,r,u,m=l(this),f=s(m.length),g=a(e,f),v=a(void 0===t?f:t,f);if(i(m)&&("function"!=typeof(n=m.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(m,g,v);for(r=new(void 0===n?Array:n)(h(v-g,0)),u=0;g<v;g++,u++)g in m&&c(r,u,m[g]);return r.length=u,r}})},63108:function(e,t,n){"use strict";var r=n(12791),o=n(88928),i=n(25904),a=n(81949),s=n(55085),l=[],c=l.sort,u=a((function(){l.sort(void 0)})),d=a((function(){l.sort(null)})),p=s("sort");r({target:"Array",proto:!0,forced:u||!d||p},{sort:function(e){return void 0===e?c.call(i(this)):c.call(i(this),o(e))}})},41981:function(e,t,n){n(5831)("Array")},36948:function(e,t,n){"use strict";var r=n(12791),o=n(16648),i=n(68606),a=n(60497),s=n(25904),l=n(45223),c=n(40616),u=n(9679),d=Math.max,p=Math.min,h=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!u("splice")},{splice:function(e,t){var n,r,u,f,g,v,y=s(this),b=a(y.length),C=o(e,b),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=b-C):(n=S-2,r=p(d(i(t),0),b-C)),b+n-r>h)throw TypeError(m);for(u=l(y,r),f=0;f<r;f++)(g=C+f)in y&&c(u,f,y[g]);if(u.length=r,n<r){for(f=C;f<b-r;f++)v=f+n,(g=f+r)in y?y[v]=y[g]:delete y[v];for(f=b;f>b-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>C;f--)v=f+n-1,(g=f+r-1)in y?y[v]=y[g]:delete y[v];for(f=0;f<n;f++)y[f+C]=arguments[f+2];return y.length=b-r+n,u}})},91435:function(e,t,n){n(71856)("flatMap")},86858:function(e,t,n){n(71856)("flat")},31497:function(e,t,n){var r=n(5147),o=n(78174),i=n(40822)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},27913:function(e,t,n){"use strict";var r=n(97955),o=n(3120),i=n(17929),a=n(40822)("hasInstance"),s=Function.prototype;a in s||o.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},79826:function(e,t,n){var r=n(9522),o=n(3120).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&o(i,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},17364:function(e,t,n){var r=n(3380);n(31149)(r.JSON,"JSON",!0)},93051:function(e,t,n){"use strict";var r=n(90409),o=n(58719);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},92456:function(e,t,n){var r=n(12791),o=n(72185),i=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:o(e-1+s(e-1)*s(e+1))}})},54798:function(e,t,n){var r=n(12791),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):i(t+a(t*t+1)):t}})},21700:function(e,t,n){var r=n(12791),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},53176:function(e,t,n){var r=n(12791),o=n(68351),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*a(i(e),1/3)}})},51674:function(e,t,n){var r=n(12791),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(i(e+.5)*a):32}})},27422:function(e,t,n){var r=n(12791),o=n(46915),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},99007:function(e,t,n){var r=n(12791),o=n(46915);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},71873:function(e,t,n){n(12791)({target:"Math",stat:!0},{fround:n(50489)})},2504:function(e,t,n){var r=n(12791),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,s=0,l=arguments.length,c=0;s<l;)c<(n=i(arguments[s++]))?(o=o*(r=c/n)*r+1,c=n):o+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(o)}})},37419:function(e,t,n){var r=n(12791),o=n(81949),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},56347:function(e,t,n){var r=n(12791),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*i}})},15279:function(e,t,n){n(12791)({target:"Math",stat:!0},{log1p:n(72185)})},69605:function(e,t,n){var r=n(12791),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},47419:function(e,t,n){n(12791)({target:"Math",stat:!0},{sign:n(68351)})},36220:function(e,t,n){var r=n(12791),o=n(81949),i=n(46915),a=Math.abs,s=Math.exp,l=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(s(e-1)-s(-e-1))*(l/2)}})},97339:function(e,t,n){var r=n(12791),o=n(46915),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},33859:function(e,t,n){n(31149)(Math,"Math",!0)},10116:function(e,t,n){var r=n(12791),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},9508:function(e,t,n){"use strict";var r=n(9522),o=n(3380),i=n(52501),a=n(73920),s=n(44938),l=n(40071),c=n(48461),u=n(37364),d=n(81949),p=n(25788),h=n(57472).f,m=n(5693).f,f=n(3120).f,g=n(20918).trim,v="Number",y=o.Number,b=y.prototype,C=l(p(b))==v,S=function(e){var t,n,r,o,i,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=g(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;s<a;s++)if((l=i.charCodeAt(s))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(i(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(C?d((function(){b.valueOf.call(n)})):l(n)!=v)?c(new y(S(t)),n,_):S(t)},E=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;E.length>k;k++)s(y,x=E[k])&&!s(_,x)&&f(_,x,m(y,x));_.prototype=b,b.constructor=_,a(o,v,_)}},34010:function(e,t,n){n(12791)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},21230:function(e,t,n){n(12791)({target:"Number",stat:!0},{isFinite:n(66272)})},80465:function(e,t,n){n(12791)({target:"Number",stat:!0},{isInteger:n(72677)})},94157:function(e,t,n){n(12791)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},42195:function(e,t,n){var r=n(12791),o=n(72677),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},77212:function(e,t,n){n(12791)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},36308:function(e,t,n){n(12791)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21288:function(e,t,n){var r=n(12791),o=n(32456);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},87370:function(e,t,n){var r=n(12791),o=n(20323);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},44101:function(e,t,n){"use strict";var r=n(12791),o=n(68606),i=n(557),a=n(29229),s=n(81949),l=1..toFixed,c=Math.floor,u=function e(t,n,r){return 0===n?r:n%2===1?e(t,n-1,r*t):e(t*t,n/2,r)};r({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}))},{toFixed:function(e){var t,n,r,s,l=i(this),d=o(e),p=[0,0,0,0,0,0],h="",m="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*p[n],p[n]=r%1e7,r=c(r/1e7)},g=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=c(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*u(2,69,1))-69)<0?l*u(2,-t,1):l/u(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=d;r>=7;)f(1e7,0),r-=7;for(f(u(10,r,1),0),r=t-1;r>=23;)g(1<<23),r-=23;g(1<<r),f(1,1),g(2),m=v()}else f(0,n),f(1<<-t,0),m=v()+a.call("0",d);return m=d>0?h+((s=m.length)<=d?"0."+a.call("0",d-s)+m:m.slice(0,s-d)+"."+m.slice(s-d)):h+m}})},79001:function(e,t,n){var r=n(12791),o=n(64399);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},26839:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(22283),a=n(25904),s=n(88928),l=n(3120);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},12860:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(22283),a=n(25904),s=n(88928),l=n(3120);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},32767:function(e,t,n){var r=n(12791),o=n(14432).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},74792:function(e,t,n){var r=n(12791),o=n(56171),i=n(81949),a=n(97955),s=n(88505).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},27719:function(e,t,n){var r=n(12791),o=n(53050),i=n(40616);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),void 0,!0),t}})},74106:function(e,t,n){var r=n(12791),o=n(81949),i=n(76616),a=n(5693).f,s=n(9522),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},14602:function(e,t,n){var r=n(12791),o=n(9522),i=n(48259),a=n(76616),s=n(5693),l=n(40616);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=o(r,t=c[d++]))&&l(u,t,n);return u}})},82256:function(e,t,n){var r=n(12791),o=n(81949),i=n(71997).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},92646:function(e,t,n){var r=n(12791),o=n(81949),i=n(25904),a=n(17929),s=n(66361);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},44633:function(e,t,n){var r=n(12791),o=n(81949),i=n(97955),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},5166:function(e,t,n){var r=n(12791),o=n(81949),i=n(97955),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},48629:function(e,t,n){var r=n(12791),o=n(81949),i=n(97955),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},627:function(e,t,n){n(12791)({target:"Object",stat:!0},{is:n(59840)})},38640:function(e,t,n){var r=n(12791),o=n(25904),i=n(31900);r({target:"Object",stat:!0,forced:n(81949)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},67460:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(22283),a=n(25904),s=n(37364),l=n(17929),c=n(5693).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=c(n,r))return t.get}while(n=l(n))}})},79471:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(22283),a=n(25904),s=n(37364),l=n(17929),c=n(5693).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=c(n,r))return t.set}while(n=l(n))}})},90224:function(e,t,n){var r=n(12791),o=n(97955),i=n(88505).onFreeze,a=n(56171),s=n(81949),l=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&o(e)?l(i(e)):e}})},1502:function(e,t,n){var r=n(12791),o=n(97955),i=n(88505).onFreeze,a=n(56171),s=n(81949),l=Object.seal;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(e){return l&&o(e)?l(i(e)):e}})},31823:function(e,t,n){n(12791)({target:"Object",stat:!0},{setPrototypeOf:n(12310)})},59291:function(e,t,n){var r=n(78640),o=n(73920),i=n(4381);r||o(Object.prototype,"toString",i,{unsafe:!0})},79775:function(e,t,n){var r=n(12791),o=n(14432).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},69056:function(e,t,n){var r=n(12791),o=n(32456);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},18122:function(e,t,n){var r=n(12791),o=n(20323);r({global:!0,forced:parseInt!=o},{parseInt:o})},28813:function(e,t,n){"use strict";var r=n(12791),o=n(27410),i=n(29044),a=n(81949),s=n(72591),l=n(38660),c=n(84945),u=n(73920);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype.finally||u(i.prototype,"finally",s("Promise").prototype.finally)},58533:function(e,t,n){"use strict";var r,o,i,a,s=n(12791),l=n(27410),c=n(3380),u=n(72591),d=n(29044),p=n(73920),h=n(90528),m=n(31149),f=n(5831),g=n(97955),v=n(88928),y=n(93932),b=n(40071),C=n(49252),S=n(53050),x=n(73340),_=n(38660),E=n(64581).set,k=n(96337),w=n(84945),I=n(89591),P=n(752),T=n(42454),D=n(84392),A=n(52501),R=n(40822),N=n(81363),M=R("species"),F="Promise",B=D.get,O=D.set,L=D.getterFor(F),H=d,V=c.TypeError,z=c.document,U=c.process,W=u("fetch"),G=P.f,j=G,q="process"==b(U),K=!!(z&&z.createEvent&&c.dispatchEvent),Y="unhandledrejection",X=A(F,(function(){if(!(C(H)!==String(H))){if(66===N)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!H.prototype.finally)return!0;if(N>=51&&/native code/.test(H))return!1;var e=H.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[M]=t,!(e.then((function(){}))instanceof t)})),Q=X||!x((function(e){H.all(e).catch((function(){}))})),Z=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,l,c,u=r[a++],d=i?u.ok:u.fail,p=u.resolve,h=u.reject,m=u.domain;try{d?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===d?s=o:(m&&m.enter(),s=d(o),m&&(m.exit(),c=!0)),s===u.promise?h(V("Promise-chain cycle")):(l=Z(s))?l.call(s,p,h):p(s)):h(o)}catch(f){m&&!c&&m.exit(),h(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},$=function(e,t,n){var r,o;K?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===Y&&I("Unhandled promise rejection",n)},ee=function(e,t){E.call(c,(function(){var n,r=t.value;if(te(t)&&(n=T((function(){q?U.emit("unhandledRejection",r,e):$(Y,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){E.call(c,(function(){q?U.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,J(e,t,!0))},ie=function e(t,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(t===r)throw V("Promise can't be resolved itself");var i=Z(r);i?k((function(){var o={done:!1};try{i.call(r,re(e,t,o,n),re(oe,t,o,n))}catch(a){oe(t,o,a,n)}})):(n.value=r,n.state=1,J(t,n,!1))}catch(a){oe(t,{done:!1},a,n)}}};X&&(H=function(e){y(this,H,F),v(e),r.call(this);var t=B(this);try{e(re(ie,this,t),re(oe,this,t))}catch(n){oe(this,t,n)}},(r=function(e){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H.prototype,{then:function(e,t){var n=L(this),r=G(_(this,H));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=B(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},P.f=G=function(e){return e===H||e===i?new o(e):j(e)},l||"function"!=typeof d||(a=d.prototype.then,p(d.prototype,"then",(function(e,t){var n=this;return new H((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return w(H,W.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:X},{Promise:H}),m(H,F,!1,!0),f(F),i=u(F),s({target:F,stat:!0,forced:X},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:l||X},{resolve:function(e){return w(l&&this===i?H:this,e)}}),s({target:F,stat:!0,forced:Q},{all:function(e){var t=this,n=G(t),r=n.resolve,o=n.reject,i=T((function(){var n=v(t.resolve),i=[],a=0,s=1;S(e,(function(e){var l=a++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,o=T((function(){var o=v(t.resolve);S(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},96674:function(e,t,n){var r=n(12791),o=n(72591),i=n(88928),a=n(67695),s=n(81949),l=o("Reflect","apply"),c=Function.apply;r({target:"Reflect",stat:!0,forced:!s((function(){l((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),l?l(e,t,n):c.call(e,t,n)}})},28091:function(e,t,n){var r=n(12791),o=n(72591),i=n(88928),a=n(67695),s=n(97955),l=n(25788),c=n(26576),u=n(81949),d=o("Reflect","construct"),p=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),h=!u((function(){d((function(){}))})),m=p||h;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!p)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,u=l(s(o)?o:Object.prototype),m=Function.apply.call(e,u,t);return s(m)?m:u}})},11681:function(e,t,n){var r=n(12791),o=n(9522),i=n(67695),a=n(37364),s=n(3120);r({target:"Reflect",stat:!0,forced:n(81949)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t,!0);i(n);try{return s.f(e,r,n),!0}catch(o){return!1}}})},86670:function(e,t,n){var r=n(12791),o=n(67695),i=n(5693).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},51571:function(e,t,n){var r=n(12791),o=n(9522),i=n(67695),a=n(5693);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},67951:function(e,t,n){var r=n(12791),o=n(67695),i=n(17929);r({target:"Reflect",stat:!0,sham:!n(66361)},{getPrototypeOf:function(e){return i(o(e))}})},60106:function(e,t,n){var r=n(12791),o=n(97955),i=n(67695),a=n(44938),s=n(5693),l=n(17929);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,u=arguments.length<3?t:arguments[2];return i(t)===u?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):o(c=l(t))?e(c,n,u):void 0}})},92543:function(e,t,n){n(12791)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},2403:function(e,t,n){var r=n(12791),o=n(67695),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!i||i(e)}})},43847:function(e,t,n){n(12791)({target:"Reflect",stat:!0},{ownKeys:n(48259)})},46658:function(e,t,n){var r=n(12791),o=n(72591),i=n(67695);r({target:"Reflect",stat:!0,sham:!n(56171)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},21680:function(e,t,n){var r=n(12791),o=n(67695),i=n(32063),a=n(12310);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},16567:function(e,t,n){var r=n(12791),o=n(67695),i=n(97955),a=n(44938),s=n(81949),l=n(3120),c=n(5693),u=n(17929),d=n(80106);r({target:"Reflect",stat:!0,forced:s((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(u(e),"a",1,e)}))},{set:function e(t,n,r){var s,p,h=arguments.length<4?t:arguments[3],m=c.f(o(t),n);if(!m){if(i(p=u(t)))return e(p,n,r,h);m=d(0)}if(a(m,"value")){if(!1===m.writable||!i(h))return!1;if(s=c.f(h,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,l.f(h,n,s)}else l.f(h,n,d(0,r));return!0}return void 0!==m.set&&(m.set.call(h,r),!0)}})},70389:function(e,t,n){var r=n(9522),o=n(3380),i=n(52501),a=n(48461),s=n(3120).f,l=n(57472).f,c=n(42227),u=n(1758),d=n(73920),p=n(81949),h=n(5831),m=n(40822)("match"),f=o.RegExp,g=f.prototype,v=/a/g,y=/a/g,b=new f(v)!==v;if(r&&i("RegExp",!b||p((function(){return y[m]=!1,f(v)!=v||f(y)==y||"/a/i"!=f(v,"i")})))){for(var C=function(e,t){var n=this instanceof C,r=c(e),o=void 0===t;return!n&&r&&e.constructor===C&&o?e:a(b?new f(r&&!o?e.source:e,t):f((r=e instanceof C)?e.source:e,r&&o?u.call(e):t),n?this:g,C)},S=function(e){e in C||s(C,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},x=l(f),_=0;x.length>_;)S(x[_++]);g.constructor=C,C.prototype=g,d(o,"RegExp",C)}h("RegExp")},65984:function(e,t,n){"use strict";var r=n(12791),o=n(10569);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},45220:function(e,t,n){var r=n(9522),o=n(3120),i=n(1758);r&&"g"!=/./g.flags&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},36195:function(e,t,n){"use strict";var r=n(73920),o=n(67695),i=n(81949),a=n(1758),s="toString",l=RegExp.prototype,c=l.toString,u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)}),{unsafe:!0})},10798:function(e,t,n){"use strict";var r=n(90409),o=n(58719);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},91605:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},9865:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("big")},{big:function(){return o(this,"big","","")}})},93640:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("blink")},{blink:function(){return o(this,"blink","","")}})},94759:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("bold")},{bold:function(){return o(this,"b","","")}})},10417:function(e,t,n){"use strict";var r=n(12791),o=n(83458).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},16823:function(e,t,n){"use strict";var r=n(12791),o=n(5693).f,i=n(60497),a=n(51035),s=n(40840),l=n(72362),c=n(27410),u="".endsWith,d=Math.min,p=l("endsWith");r({target:"String",proto:!0,forced:!(!c&&!p&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}())&&!p},{endsWith:function(e){var t=String(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=i(t.length),o=void 0===n?r:d(i(n),r),l=String(e);return u?u.call(t,l,o):t.slice(o-l.length,o)===l}})},50164:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("fixed")},{fixed:function(){return o(this,"tt","","")}})},11712:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},15225:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},80509:function(e,t,n){var r=n(12791),o=n(16648),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},45933:function(e,t,n){"use strict";var r=n(12791),o=n(51035),i=n(40840);r({target:"String",proto:!0,forced:!n(72362)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},8386:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("italics")},{italics:function(){return o(this,"i","","")}})},92925:function(e,t,n){"use strict";var r=n(83458).charAt,o=n(84392),i=n(39120),a="String Iterator",s=o.set,l=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},76515:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("link")},{link:function(e){return o(this,"a","href",e)}})},48847:function(e,t,n){"use strict";var r=n(92590),o=n(67695),i=n(60497),a=n(40840),s=n(42672),l=n(47905);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;for(var d,p=[],h=0;null!==(d=l(a,c));){var m=String(d[0]);p[h]=m,""===m&&(a.lastIndex=s(c,i(a.lastIndex),u)),h++}return 0===h?null:p}]}))},67171:function(e,t,n){"use strict";var r=n(12791),o=n(6706).end;r({target:"String",proto:!0,forced:n(33979)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},88290:function(e,t,n){"use strict";var r=n(12791),o=n(6706).start;r({target:"String",proto:!0,forced:n(33979)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},80499:function(e,t,n){var r=n(12791),o=n(76616),i=n(60497);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},60164:function(e,t,n){n(12791)({target:"String",proto:!0},{repeat:n(29229)})},94049:function(e,t,n){"use strict";var r=n(92590),o=n(67695),i=n(25904),a=n(60497),s=n(68606),l=n(40840),c=n(42672),u=n(47905),d=Math.max,p=Math.min,h=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,f=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n){return[function(n,r){var o=l(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,i){var l=n(t,e,this,i);if(l.done)return l.value;var h=o(e),m=String(this),f="function"===typeof i;f||(i=String(i));var g=h.global;if(g){var v=h.unicode;h.lastIndex=0}for(var y=[];;){var b=u(h,m);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(h.lastIndex=c(m,a(h.lastIndex),v))}for(var C,S="",x=0,_=0;_<y.length;_++){b=y[_];for(var E=String(b[0]),k=d(p(s(b.index),m.length),0),w=[],I=1;I<b.length;I++)w.push(void 0===(C=b[I])?C:String(C));var P=b.groups;if(f){var T=[E].concat(w,k,m);void 0!==P&&T.push(P);var D=String(i.apply(void 0,T))}else D=r(E,m,k,w,P,i);k>=x&&(S+=m.slice(x,k)+D,x=k+E.length)}return S+m.slice(x)}];function r(e,n,r,o,a,s){var l=r+e.length,c=o.length,u=f;return void 0!==a&&(a=i(a),u=m),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=h(u/10);return 0===d?t:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}s=o[u-1]}return void 0===s?"":s}))}}))},7348:function(e,t,n){"use strict";var r=n(92590),o=n(67695),i=n(40840),a=n(59840),s=n(47905);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),l=String(this),c=i.lastIndex;a(c,0)||(i.lastIndex=0);var u=s(i,l);return a(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},8826:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("small")},{small:function(){return o(this,"small","","")}})},75161:function(e,t,n){"use strict";var r=n(92590),o=n(42227),i=n(67695),a=n(40840),s=n(38660),l=n(42672),c=n(60497),u=n(47905),d=n(10569),p=n(81949),h=[].push,m=Math.min,f=4294967295,g=!p((function(){return!RegExp(f,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?f:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,l,c,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,p+"g");(s=d.call(g,r))&&!((l=g.lastIndex)>m&&(u.push(r.slice(m,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,m=l,u.length>=i));)g.lastIndex===s.index&&g.lastIndex++;return m===r.length?!c&&g.test("")||u.push(""):u.push(r.slice(m)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var d=i(e),p=String(this),h=s(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),b=new h(g?d:"^(?:"+d.source+")",y),C=void 0===o?f:o>>>0;if(0===C)return[];if(0===p.length)return null===u(b,p)?[p]:[];for(var S=0,x=0,_=[];x<p.length;){b.lastIndex=g?x:0;var E,k=u(b,g?p:p.slice(x));if(null===k||(E=m(c(b.lastIndex+(g?0:x)),p.length))===S)x=l(p,x,v);else{if(_.push(p.slice(S,x)),_.length===C)return _;for(var w=1;w<=k.length-1;w++)if(_.push(k[w]),_.length===C)return _;x=S=E}}return _.push(p.slice(S)),_}]}),!g)},29894:function(e,t,n){"use strict";var r=n(12791),o=n(5693).f,i=n(60497),a=n(51035),s=n(40840),l=n(72362),c=n(27410),u="".startsWith,d=Math.min,p=l("startsWith");r({target:"String",proto:!0,forced:!(!c&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}())&&!p},{startsWith:function(e){var t=String(s(this));a(e);var n=i(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},42788:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("strike")},{strike:function(){return o(this,"strike","","")}})},61184:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("sub")},{sub:function(){return o(this,"sub","","")}})},24704:function(e,t,n){"use strict";var r=n(12791),o=n(29514);r({target:"String",proto:!0,forced:n(38669)("sup")},{sup:function(){return o(this,"sup","","")}})},55074:function(e,t,n){"use strict";var r=n(12791),o=n(20918).end,i=n(99865)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},50750:function(e,t,n){"use strict";var r=n(12791),o=n(20918).start,i=n(99865)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},32283:function(e,t,n){"use strict";var r=n(12791),o=n(20918).trim;r({target:"String",proto:!0,forced:n(99865)("trim")},{trim:function(){return o(this)}})},59389:function(e,t,n){n(82054)("asyncIterator")},43064:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(3380),a=n(44938),s=n(97955),l=n(3120).f,c=n(43566),u=i.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(p,u);var h=p.prototype=u.prototype;h.constructor=p;var m=h.toString,f="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(a(d,e))return"";var n=f?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},34466:function(e,t,n){n(82054)("hasInstance")},11691:function(e,t,n){n(82054)("isConcatSpreadable")},50893:function(e,t,n){n(82054)("iterator")},84933:function(e,t,n){"use strict";var r=n(12791),o=n(3380),i=n(72591),a=n(27410),s=n(9522),l=n(44478),c=n(44651),u=n(81949),d=n(44938),p=n(10117),h=n(97955),m=n(67695),f=n(25904),g=n(76616),v=n(37364),y=n(80106),b=n(25788),C=n(31900),S=n(57472),x=n(71997),_=n(13455),E=n(5693),k=n(3120),w=n(56346),I=n(5147),P=n(73920),T=n(7671),D=n(57170),A=n(49901),R=n(64499),N=n(40822),M=n(34256),F=n(82054),B=n(31149),O=n(84392),L=n(92081).forEach,H=D("hidden"),V="Symbol",z=N("toPrimitive"),U=O.set,W=O.getterFor(V),G=Object.prototype,j=o.Symbol,q=i("JSON","stringify"),K=E.f,Y=k.f,X=x.f,Q=w.f,Z=T("symbols"),J=T("op-symbols"),$=T("string-to-symbol-registry"),ee=T("symbol-to-string-registry"),te=T("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&u((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(G,t);r&&delete G[t],Y(e,t,n),r&&e!==G&&Y(G,t,r)}:Y,ie=function(e,t){var n=Z[e]=b(j.prototype);return U(n,{type:V,tag:e,description:t}),s||(n.description=t),n},ae=l&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof j},se=function(e,t,n){e===G&&se(J,t,n),m(e);var r=v(t,!0);return m(n),d(Z,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=b(n,{enumerable:y(0,!1)})):(d(e,H)||Y(e,H,y(1,{})),e[H][r]=!0),oe(e,r,n)):Y(e,r,n)},le=function(e,t){m(e);var n=g(t),r=C(n).concat(pe(n));return L(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=v(e,!0),n=Q.call(this,t);return!(this===G&&d(Z,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,H)&&this[H][t])||n)},ue=function(e,t){var n=g(e),r=v(t,!0);if(n!==G||!d(Z,r)||d(J,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},de=function(e){var t=X(g(e)),n=[];return L(t,(function(e){d(Z,e)||d(A,e)||n.push(e)})),n},pe=function(e){var t=e===G,n=X(t?J:g(e)),r=[];return L(n,(function(e){!d(Z,e)||t&&!d(G,e)||r.push(Z[e])})),r};(l||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function e(n){this===G&&e.call(J,n),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),oe(this,t,y(1,n))};return s&&re&&oe(G,t,{configurable:!0,set:n}),ie(t,e)},P(j.prototype,"toString",(function(){return W(this).tag})),w.f=ce,k.f=se,E.f=ue,S.f=x.f=de,_.f=pe,s&&(Y(j.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||P(G,"propertyIsEnumerable",ce,{unsafe:!0}))),c||(M.f=function(e){return ie(N(e),e)}),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:j}),L(C(te),(function(e){F(e)})),r({target:V,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d($,t))return $[t];var n=j(t);return $[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):le(b(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){_.f(1)}))},{getOwnPropertySymbols:function(e){return _.f(f(e))}}),q)&&r({target:"JSON",stat:!0,forced:!l||u((function(){var e=j();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(h(t)||void 0!==e)&&!ae(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,q.apply(null,o)}});j.prototype[z]||I(j.prototype,z,j.prototype.valueOf),B(j,V),A[H]=!0},32752:function(e,t,n){n(82054)("match")},39867:function(e,t,n){n(82054)("replace")},71816:function(e,t,n){n(82054)("search")},77351:function(e,t,n){n(82054)("species")},62770:function(e,t,n){n(82054)("split")},73427:function(e,t,n){n(82054)("toPrimitive")},22705:function(e,t,n){n(82054)("toStringTag")},11672:function(e,t,n){n(82054)("unscopables")},55910:function(e,t,n){"use strict";var r=n(70671),o=n(3752),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},63634:function(e,t,n){"use strict";var r=n(70671),o=n(92081).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8636:function(e,t,n){"use strict";var r=n(70671),o=n(90112),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},38404:function(e,t,n){"use strict";var r=n(70671),o=n(92081).filter,i=n(38660),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=i(this,this.constructor),r=0,l=t.length,c=new(s(n))(l);l>r;)c[r]=t[r++];return c}))},8791:function(e,t,n){"use strict";var r=n(70671),o=n(92081).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8376:function(e,t,n){"use strict";var r=n(70671),o=n(92081).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},65269:function(e,t,n){n(56871)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},21944:function(e,t,n){n(56871)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},89799:function(e,t,n){"use strict";var r=n(70671),o=n(92081).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},29027:function(e,t,n){"use strict";var r=n(74784);(0,n(70671).exportTypedArrayStaticMethod)("from",n(83014),r)},57367:function(e,t,n){"use strict";var r=n(70671),o=n(50498).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},5743:function(e,t,n){"use strict";var r=n(70671),o=n(50498).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},72161:function(e,t,n){n(56871)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},14281:function(e,t,n){n(56871)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},34458:function(e,t,n){n(56871)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},28632:function(e,t,n){"use strict";var r=n(3380),o=n(70671),i=n(81837),a=n(40822)("iterator"),s=r.Uint8Array,l=i.values,c=i.keys,u=i.entries,d=o.aTypedArray,p=o.exportTypedArrayMethod,h=s&&s.prototype[a],m=!!h&&("values"==h.name||void 0==h.name),f=function(){return l.call(d(this))};p("entries",(function(){return u.call(d(this))})),p("keys",(function(){return c.call(d(this))})),p("values",f,!m),p(a,f,!m)},44910:function(e,t,n){"use strict";var r=n(70671),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},78014:function(e,t,n){"use strict";var r=n(70671),o=n(36340),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},40750:function(e,t,n){"use strict";var r=n(70671),o=n(92081).map,i=n(38660),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},24179:function(e,t,n){"use strict";var r=n(70671),o=n(74784),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},71423:function(e,t,n){"use strict";var r=n(70671),o=n(43255).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},24126:function(e,t,n){"use strict";var r=n(70671),o=n(43255).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},58590:function(e,t,n){"use strict";var r=n(70671),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},64674:function(e,t,n){"use strict";var r=n(70671),o=n(60497),i=n(94918),a=n(25904),s=n(81949),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){l(this);var t=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=o(r.length),c=0;if(s+t>n)throw RangeError("Wrong length");for(;c<s;)this[t+c]=r[c++]}),s((function(){new Int8Array(1).set({})})))},60386:function(e,t,n){"use strict";var r=n(70671),o=n(38660),i=n(81949),a=r.aTypedArray,s=r.aTypedArrayConstructor,l=r.exportTypedArrayMethod,c=[].slice;l("slice",(function(e,t){for(var n=c.call(a(this),e,t),r=o(this,this.constructor),i=0,l=n.length,u=new(s(r))(l);l>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},86447:function(e,t,n){"use strict";var r=n(70671),o=n(92081).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},40145:function(e,t,n){"use strict";var r=n(70671),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},16185:function(e,t,n){"use strict";var r=n(70671),o=n(60497),i=n(16648),a=n(38660),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,l=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-l))}))},27847:function(e,t,n){"use strict";var r=n(3380),o=n(70671),i=n(81949),a=r.Int8Array,s=o.aTypedArray,l=o.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!a&&i((function(){c.call(new a(1))}));l("toLocaleString",(function(){return c.apply(d?u.call(s(this)):s(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},50210:function(e,t,n){"use strict";var r=n(70671).exportTypedArrayMethod,o=n(81949),i=n(3380).Uint8Array,a=i&&i.prototype||{},s=[].toString,l=[].join;o((function(){s.call({})}))&&(s=function(){return l.call(this)});var c=a.toString!=s;r("toString",s,c)},82759:function(e,t,n){n(56871)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},73460:function(e,t,n){n(56871)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},17443:function(e,t,n){n(56871)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},24380:function(e,t,n){n(56871)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},30959:function(e,t,n){"use strict";var r,o=n(3380),i=n(90528),a=n(88505),s=n(90409),l=n(37899),c=n(97955),u=n(84392).enforce,d=n(26071),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},f=e.exports=s("WeakMap",m,l);if(d&&p){r=l.getConstructor(m,"WeakMap",!0),a.REQUIRED=!0;var g=f.prototype,v=g.delete,y=g.has,b=g.get,C=g.set;i(g,{delete:function(e){if(c(e)&&!h(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(c(e)&&!h(e)){var t=u(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(c(e)&&!h(e)){var t=u(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!h(e)){var n=u(this);n.frozen||(n.frozen=new r),y.call(this,e)?C.call(this,e,t):n.frozen.set(e,t)}else C.call(this,e,t);return this}})}},21030:function(e,t,n){"use strict";n(90409)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(37899))},84233:function(e,t,n){n(82054)("dispose")},56129:function(e,t,n){n(82054)("observable")},37416:function(e,t,n){n(82054)("patternMatch")},26004:function(e,t,n){var r=n(3380),o=n(31335),i=n(26356),a=n(5147);for(var s in o){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(u){c.forEach=i}}},46555:function(e,t,n){var r=n(3380),o=n(31335),i=n(81837),a=n(5147),s=n(40822),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in o){var p=r[d],h=p&&p.prototype;if(h){if(h[l]!==u)try{a(h,l,u)}catch(f){h[l]=u}if(h[c]||a(h,c,d),o[d])for(var m in i)if(h[m]!==i[m])try{a(h,m,i[m])}catch(f){h[m]=i[m]}}}},36946:function(e,t,n){var r=n(12791),o=n(3380),i=n(64581);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},11940:function(e,t,n){var r=n(12791),o=n(3380),i=n(96337),a=n(40071),s=o.process,l="process"==a(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&s.domain;i(t?t.bind(e):e)}})},17299:function(e,t,n){"use strict";n(81837);var r=n(12791),o=n(72591),i=n(91255),a=n(73920),s=n(90528),l=n(31149),c=n(1123),u=n(84392),d=n(93932),p=n(44938),h=n(76525),m=n(31540),f=n(67695),g=n(97955),v=n(25788),y=n(80106),b=n(6574),C=n(9117),S=n(40822),x=o("fetch"),_=o("Headers"),E=S("iterator"),k="URLSearchParams",w="URLSearchParamsIterator",I=u.set,P=u.getterFor(k),T=u.getterFor(w),D=/\+/g,A=Array(4),R=function(e){return A[e-1]||(A[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},N=function(e){try{return decodeURIComponent(e)}catch(t){return e}},M=function(e){var t=e.replace(D," "),n=4;try{return decodeURIComponent(t)}catch(r){for(;n;)t=t.replace(R(n--),N);return t}},F=/[!'()~]|%20/g,B={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},O=function(e){return B[e]},L=function(e){return encodeURIComponent(e).replace(F,O)},H=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:M(r.shift()),value:M(r.join("="))}))},V=function(e){this.entries.length=0,H(this.entries,e)},z=function(e,t){if(e<t)throw TypeError("Not enough arguments")},U=c((function(e,t){I(this,{type:w,iterator:b(P(e).entries),kind:t})}),"Iterator",(function(){var e=T(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),W=function(){d(this,W,k);var e,t,n,r,o,i,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,h=[];if(I(u,{type:k,entries:h,updateURL:function(){},updateSearchParams:V}),void 0!==c)if(g(c))if("function"===typeof(e=C(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(f(r.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:s.value+""})}else for(l in c)p(c,l)&&h.push({key:l,value:c[l]+""});else H(h,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},G=W.prototype;s(G,{append:function(e,t){z(arguments.length,2);var n=P(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){z(arguments.length,1);for(var t=P(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){z(arguments.length,1);for(var t=P(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){z(arguments.length,1);for(var t=P(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){z(arguments.length,1);for(var t=P(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){z(arguments.length,1);for(var n,r=P(this),o=r.entries,i=!1,a=e+"",s=t+"",l=0;l<o.length;l++)(n=o[l]).key===a&&(i?o.splice(l--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=P(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=P(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new U(this,"keys")},values:function(){return new U(this,"values")},entries:function(){return new U(this,"entries")}},{enumerable:!0}),a(G,E,G.entries),a(G,"toString",(function(){for(var e,t=P(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(L(e.key)+"="+L(e.value));return n.join("&")}),{enumerable:!0}),l(W,k),r({global:!0,forced:!i},{URLSearchParams:W}),i||"function"!=typeof x||"function"!=typeof _||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(g(t=arguments[1])&&(n=t.body,m(n)===k&&((r=t.headers?new _(t.headers):new _).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),x.apply(this,o)}}),e.exports={URLSearchParams:W,getState:P}},50920:function(e,t,n){"use strict";n(92925);var r,o=n(12791),i=n(9522),a=n(91255),s=n(3380),l=n(20370),c=n(73920),u=n(93932),d=n(44938),p=n(64399),h=n(38706),m=n(83458).codeAt,f=n(41966),g=n(31149),v=n(17299),y=n(84392),b=s.URL,C=v.URLSearchParams,S=v.getState,x=y.set,_=y.getterFor("URL"),E=Math.floor,k=Math.pow,w="Invalid scheme",I="Invalid host",P="Invalid port",T=/[A-Za-z]/,D=/[\d+\-.A-Za-z]/,A=/\d/,R=/^(0x|0X)/,N=/^[0-7]+$/,M=/^\d+$/,F=/^[\dA-Fa-f]+$/,B=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,O=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,V=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return I;if(!(n=U(t.slice(1,-1))))return I;e.host=n}else if(Q(e)){if(t=f(t),B.test(t))return I;if(null===(n=z(t)))return I;e.host=n}else{if(O.test(t))return I;for(n="",r=h(t),o=0;o<r.length;o++)n+=Y(r[o],G);e.host=n}},z=function(e){var t,n,r,o,i,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=l[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=R.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?M:8==i?N:F).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=k(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*k(256,3-r);return s},U=function(e){var t,n,r,o,i,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return e.charAt(d)};if(":"==p()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=n=0;n<4&&F.test(p());)t=16*t+parseInt(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,c>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!A.test(p()))return;for(;A.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},W=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=E(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},G={},j=p({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),q=p({},j,{"#":1,"?":1,"{":1,"}":1}),K=p({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var n=m(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(X,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},$=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&$(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&$(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},se={},le={},ce={},ue={},de={},pe={},he={},me={},fe={},ge={},ve={},ye={},be={},Ce={},Se={},xe={},_e={},Ee=function(e,t,n,o){var i,a,s,l,c,u=n||re,p=0,m="",f=!1,g=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(H,""),i=h(t);p<=i.length;){switch(a=i[p],u){case re:if(!a||!T.test(a)){if(n)return w;u=ie;continue}m+=a.toLowerCase(),u=oe;break;case oe:if(a&&(D.test(a)||"+"==a||"-"==a||"."==a))m+=a.toLowerCase();else{if(":"!=a){if(n)return w;m="",u=ie,p=0;continue}if(n&&(Q(e)!=d(X,m)||"file"==m&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,n)return void(Q(e)&&X[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?u=ge:Q(e)&&o&&o.scheme==e.scheme?u=ae:Q(e)?u=ue:"/"==i[p+1]?(u=se,p++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Se)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return w;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=_e;break}u="file"==o.scheme?ge:le;continue;case ae:if("/"!=a||"/"!=i[p+1]){u=le;continue}u=de,p++;break;case se:if("/"==a){u=pe;break}u=Ce;continue;case le:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Q(e))u=ce;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=xe;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=Ce;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=_e}break;case ce:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=Ce;continue}u=pe}else u=de;break;case ue:if(u=de,"/"!=a||"/"!=m.charAt(p+1))continue;p++;break;case de:if("/"!=a&&"\\"!=a){u=pe;continue}break;case pe:if("@"==a){f&&(m="%40"+m),f=!0,s=h(m);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||v){var C=Y(b,K);v?e.password+=C:e.username+=C}else v=!0}m=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(f&&""==m)return"Invalid authority";p-=h(m).length+1,m="",u=he}else m+=a;break;case he:case me:if(n&&"file"==e.scheme){u=ye;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==m)return I;if(n&&""==m&&(Z(e)||null!==e.port))return;if(l=V(e,m))return l;if(m="",u=be,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),m+=a}else{if(""==m)return I;if(l=V(e,m))return l;if(m="",u=fe,n==me)return}break;case fe:if(!A.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=m){var S=parseInt(m,10);if(S>65535)return P;e.port=Q(e)&&S===X[e.scheme]?null:S,m=""}if(n)return;u=be;continue}return P}m+=a;break;case ge:if(e.scheme="file","/"==a||"\\"==a)u=ve;else{if(!o||"file"!=o.scheme){u=Ce;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",u=xe;else{if("#"!=a){ee(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),u=Ce;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=_e}}break;case ve:if("/"==a||"\\"==a){u=ye;break}o&&"file"==o.scheme&&!ee(i.slice(p).join(""))&&($(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=Ce;continue;case ye:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&$(m))u=Ce;else if(""==m){if(e.host="",n)return;u=be}else{if(l=V(e,m))return l;if("localhost"==e.host&&(e.host=""),n)return;m="",u=be}continue}m+=a;break;case be:if(Q(e)){if(u=Ce,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=Ce,"/"!=a))continue}else e.fragment="",u=_e;else e.query="",u=xe;break;case Ce:if(a==r||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=m).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):ne(m)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",u=xe):"#"==a&&(e.fragment="",u=_e)}else m+=Y(a,q);break;case Se:"?"==a?(e.query="",u=xe):"#"==a?(e.fragment="",u=_e):a!=r&&(e.path[0]+=Y(a,G));break;case xe:n||"#"!=a?a!=r&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":Y(a,G)):(e.fragment="",u=_e);break;case _e:a!=r&&(e.fragment+=Y(a,j))}p++}},ke=function(e){var t,n,r=u(this,ke,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(r,{type:"URL"});if(void 0!==o)if(o instanceof ke)t=_(o);else if(n=Ee(t={},String(o)))throw TypeError(n);if(n=Ee(s,a,null,t))throw TypeError(n);var l=s.searchParams=new C,c=S(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},i||(r.href=Ie.call(r),r.origin=Pe.call(r),r.protocol=Te.call(r),r.username=De.call(r),r.password=Ae.call(r),r.host=Re.call(r),r.hostname=Ne.call(r),r.port=Me.call(r),r.pathname=Fe.call(r),r.search=Be.call(r),r.searchParams=Oe.call(r),r.hash=Le.call(r))},we=ke.prototype,Ie=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",Z(e)&&(c+=n+(r?":"+r:"")+"@"),c+=W(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Pe=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Q(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Te=function(){return _(this).scheme+":"},De=function(){return _(this).username},Ae=function(){return _(this).password},Re=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Ne=function(){var e=_(this).host;return null===e?"":W(e)},Me=function(){var e=_(this).port;return null===e?"":String(e)},Fe=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Be=function(){var e=_(this).query;return e?"?"+e:""},Oe=function(){return _(this).searchParams},Le=function(){var e=_(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(we,{href:He(Ie,(function(e){var t=_(this),n=String(e),r=Ee(t,n);if(r)throw TypeError(r);S(t.searchParams).updateSearchParams(t.query)})),origin:He(Pe),protocol:He(Te,(function(e){var t=_(this);Ee(t,String(e)+":",re)})),username:He(De,(function(e){var t=_(this),n=h(String(e));if(!J(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Y(n[r],K)}})),password:He(Ae,(function(e){var t=_(this),n=h(String(e));if(!J(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Y(n[r],K)}})),host:He(Re,(function(e){var t=_(this);t.cannotBeABaseURL||Ee(t,String(e),he)})),hostname:He(Ne,(function(e){var t=_(this);t.cannotBeABaseURL||Ee(t,String(e),me)})),port:He(Me,(function(e){var t=_(this);J(t)||(""==(e=String(e))?t.port=null:Ee(t,e,fe))})),pathname:He(Fe,(function(e){var t=_(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",be))})),search:He(Be,(function(e){var t=_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,xe)),S(t.searchParams).updateSearchParams(t.query)})),searchParams:He(Oe),hash:He(Le,(function(e){var t=_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,_e)):t.fragment=null}))}),c(we,"toJSON",(function(){return Ie.call(this)}),{enumerable:!0}),c(we,"toString",(function(){return Ie.call(this)}),{enumerable:!0}),b){var Ve=b.createObjectURL,ze=b.revokeObjectURL;Ve&&c(ke,"createObjectURL",(function(e){return Ve.apply(b,arguments)})),ze&&c(ke,"revokeObjectURL",(function(e){return ze.apply(b,arguments)}))}g(ke,"URL"),o({global:!0,forced:!a,sham:!i},{URL:ke})},90698:function(e,t,n){"use strict";n(12791)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},46277:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,r=[],o=[],a=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var m=i^i<<1^i<<2^i<<3^i<<4;m=m>>>8^255&m^99,r[n]=m,o[m]=n;var f=e[n],g=e[f],v=e[g],y=257*e[m]^16843008*m;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*f^16843008*n,u[m]=y<<24|y>>>8,d[m]=y<<16|y>>>16,p[m]=y<<8|y>>>24,h[m]=y,n?(n=f^e[e[e[v^f]]],i^=e[e[i]]):n=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],f=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<o;a++)a<n?i[a]=t[a]:(c=i[a-1],a%n?n>6&&a%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=m[a/n|0]<<24),i[a]=i[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<o;l++){if(a=o-l,l%4)var c=i[a];else c=i[a-4];s[l]=l<4||a<=4?c:u[r[c>>>24]]^d[r[c>>>16&255]]^p[r[c>>>8&255]]^h[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,m=1;m<l;m++){var f=r[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&p]^n[h++],g=r[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&c]^n[h++],v=r[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^a[255&u]^n[h++],y=r[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^n[h++];c=f,u=g,d=v,p=y}f=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^n[h++],v=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],y=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[h++],e[t]=f,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(f)}(),i.AES)}()},13316:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,r=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],s={pbox:[],sbox:[]};function l(e,t){var n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i]}function c(e,t,n){for(var o,i=t,a=n,s=0;s<r;++s)o=i^=e.pbox[s],i=a=l(e,i)^a,a=o;return o=i,i=a,a=o,a^=e.pbox[r],{left:i^=e.pbox[r+1],right:a}}function u(e,t,n){for(var o,i=t,a=n,s=r+1;s>1;--s)o=i^=e.pbox[s],i=a=l(e,i)^a,a=o;return o=i,i=a,a=o,a^=e.pbox[1],{left:i^=e.pbox[0],right:a}}function d(e,t,n){for(var i=0;i<4;i++){e.sbox[i]=[];for(var s=0;s<256;s++)e.sbox[i][s]=a[i][s]}for(var l=0,u=0;u<r+2;u++)e.pbox[u]=o[u]^t[l],++l>=n&&(l=0);for(var d=0,p=0,h=0,m=0;m<r+2;m+=2)d=(h=c(e,d,p)).left,p=h.right,e.pbox[m]=d,e.pbox[m+1]=p;for(var f=0;f<4;f++)for(var g=0;g<256;g+=2)d=(h=c(e,d,p)).left,p=h.right,e.sbox[f][g]=d,e.sbox[f][g+1]=p;return!0}var p=n.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(p)}(),i.Blowfish)}()},62495:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(34629),void(i.lib.Cipher||function(e){var t=i,n=t.lib,r=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc,l=(s.Utf8,s.Base64),c=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var t=p.extend();function n(t,n,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),t}(),m=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},f=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:m}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),f.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return f.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:t+n,hasher:i}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,f.create({key:a,iv:s,salt:r})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()))}()},15734:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50633)}catch(g){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,i);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(s.Hasher=m.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},67923:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(){var e=o,t=e.lib.WordArray;function n(e,n,r){for(var o=[],i=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),o.enc.Base64)}()},39601:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(){var e=o,t=e.lib.WordArray;function n(e,n,r){for(var o=[],i=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return n(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),o.enc.Base64url)}()},34901:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(){var e=o,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i+=2){var a=r(t[i>>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(e){for(var n=e.length,o=[],i=0;i<n;i++)o[i>>>1]|=r(e.charCodeAt(i)<<16-i%2*16);return t.create(o,2*n)}}}(),o.enc.Utf16)}()},34629:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67657),n(14359),function(){var e=i,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),a=r.create(),s=a.words,l=o.keySize,c=o.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),i.EvpKDF)}()},42513:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),function(e){var t=i,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),i.format.Hex)}()},14359:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),void function(){var e=o,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}()},56449:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(92379),n(25132),n(34901),n(67923),n(39601),n(96720),n(67657),n(84489),n(47643),n(13756),n(44610),n(86708),n(35817),n(14359),n(82236),n(34629),n(62495),n(24307),n(9708),n(48191),n(37748),n(57545),n(97061),n(66119),n(1748),n(92155),n(7609),n(42513),n(46277),n(38625),n(6530),n(7627),n(97232),n(13316),i)}()},25132:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(){if("function"==typeof ArrayBuffer){var e=o.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],o=0;o<n;o++)r[o>>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),o.lib.WordArray)}()},96720:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],m=e[t+3],f=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],C=e[t+9],S=e[t+10],x=e[t+11],_=e[t+12],E=e[t+13],k=e[t+14],w=e[t+15],I=i[0],P=i[1],T=i[2],D=i[3];I=c(I,P,T,D,a,7,s[0]),D=c(D,I,P,T,l,12,s[1]),T=c(T,D,I,P,h,17,s[2]),P=c(P,T,D,I,m,22,s[3]),I=c(I,P,T,D,f,7,s[4]),D=c(D,I,P,T,g,12,s[5]),T=c(T,D,I,P,v,17,s[6]),P=c(P,T,D,I,y,22,s[7]),I=c(I,P,T,D,b,7,s[8]),D=c(D,I,P,T,C,12,s[9]),T=c(T,D,I,P,S,17,s[10]),P=c(P,T,D,I,x,22,s[11]),I=c(I,P,T,D,_,7,s[12]),D=c(D,I,P,T,E,12,s[13]),T=c(T,D,I,P,k,17,s[14]),I=u(I,P=c(P,T,D,I,w,22,s[15]),T,D,l,5,s[16]),D=u(D,I,P,T,v,9,s[17]),T=u(T,D,I,P,x,14,s[18]),P=u(P,T,D,I,a,20,s[19]),I=u(I,P,T,D,g,5,s[20]),D=u(D,I,P,T,S,9,s[21]),T=u(T,D,I,P,w,14,s[22]),P=u(P,T,D,I,f,20,s[23]),I=u(I,P,T,D,C,5,s[24]),D=u(D,I,P,T,k,9,s[25]),T=u(T,D,I,P,m,14,s[26]),P=u(P,T,D,I,b,20,s[27]),I=u(I,P,T,D,E,5,s[28]),D=u(D,I,P,T,h,9,s[29]),T=u(T,D,I,P,y,14,s[30]),I=d(I,P=u(P,T,D,I,_,20,s[31]),T,D,g,4,s[32]),D=d(D,I,P,T,b,11,s[33]),T=d(T,D,I,P,x,16,s[34]),P=d(P,T,D,I,k,23,s[35]),I=d(I,P,T,D,l,4,s[36]),D=d(D,I,P,T,f,11,s[37]),T=d(T,D,I,P,y,16,s[38]),P=d(P,T,D,I,S,23,s[39]),I=d(I,P,T,D,E,4,s[40]),D=d(D,I,P,T,a,11,s[41]),T=d(T,D,I,P,m,16,s[42]),P=d(P,T,D,I,v,23,s[43]),I=d(I,P,T,D,C,4,s[44]),D=d(D,I,P,T,_,11,s[45]),T=d(T,D,I,P,w,16,s[46]),I=p(I,P=d(P,T,D,I,h,23,s[47]),T,D,a,6,s[48]),D=p(D,I,P,T,y,10,s[49]),T=p(T,D,I,P,k,15,s[50]),P=p(P,T,D,I,g,21,s[51]),I=p(I,P,T,D,_,6,s[52]),D=p(D,I,P,T,m,10,s[53]),T=p(T,D,I,P,S,15,s[54]),P=p(P,T,D,I,l,21,s[55]),I=p(I,P,T,D,b,6,s[56]),D=p(D,I,P,T,w,10,s[57]),T=p(T,D,I,P,v,15,s[58]),P=p(P,T,D,I,E,21,s[59]),I=p(I,P,T,D,f,6,s[60]),D=p(D,I,P,T,x,10,s[61]),T=p(T,D,I,P,h,15,s[62]),P=p(P,T,D,I,C,21,s[63]),i[0]=i[0]+I|0,i[1]=i[1]+P|0,i[2]=i[2]+T|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),o.MD5)}()},24307:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=i}}),e}(),i.mode.CFB)}()},48191:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return e.Decryptor=r,e}(),i.mode.CTRGladman)}()},9708:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.mode.CTR=function(){var e=i.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return e.Decryptor=t,e}(),i.mode.CTR)}()},57545:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.mode.ECB=function(){var e=i.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),i.mode.ECB)}()},37748:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.mode.OFB=function(){var e=i.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}});return e.Decryptor=t,e}(),i.mode.OFB)}()},97061:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)}()},66119:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(r-1)).concat(i.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)}()},1748:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)}()},7609:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)}()},92155:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(62495),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding)}()},82236:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(84489),n(14359),function(){var e=i,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=r.create(),a=r.create([1]),l=i.words,c=a.words,u=n.keySize,d=n.iterations;l.length<u;){var p=o.update(t).finalize(a);o.reset();for(var h=p.words,m=h.length,f=p,g=1;g<d;g++){f=o.finalize(f),o.reset();for(var v=f.words,y=0;y<m;y++)h[y]^=v[y]}i.concat(p),c[0]++}return i.sigBytes=4*u,i}});e.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),i.PBKDF2)}()},97232:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)}()},7627:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)}()},6530:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)}()},35817:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,h,C,S,x,_,E,k,w,I,P=this._hash.words,T=d.words,D=p.words,A=s.words,R=l.words,N=c.words,M=u.words;for(x=i=P[0],_=a=P[1],E=h=P[2],k=C=P[3],w=S=P[4],n=0;n<80;n+=1)I=i+e[t+A[n]]|0,I+=n<16?m(a,h,C)+T[0]:n<32?f(a,h,C)+T[1]:n<48?g(a,h,C)+T[2]:n<64?v(a,h,C)+T[3]:y(a,h,C)+T[4],I=(I=b(I|=0,N[n]))+S|0,i=S,S=C,C=b(h,10),h=a,a=I,I=x+e[t+R[n]]|0,I+=n<16?y(_,E,k)+D[0]:n<32?v(_,E,k)+D[1]:n<48?g(_,E,k)+D[2]:n<64?f(_,E,k)+D[3]:m(_,E,k)+D[4],I=(I=b(I|=0,M[n]))+w|0,x=w,w=k,k=b(E,10),E=_,_=I;I=P[1]+h+k|0,P[1]=P[2]+C+w|0,P[2]=P[3]+S+x|0,P[3]=P[4]+i+_|0,P[4]=P[0]+a+E|0,P[0]=I},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(Math),o.RIPEMD160)}()},67657:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(){var e=o,t=e.lib,n=t.WordArray,r=t.Hasher,i=e.algo,a=[],s=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+a[c];d+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,l=s,s=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),o.SHA1)}()},47643:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(84489),function(){var e=i,t=e.lib.WordArray,n=e.algo,r=n.SHA256,o=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(o),e.HmacSHA224=r._createHmacHelper(o)}(),i.SHA224)}()},84489:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var m=c[h-15],f=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,g=c[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=f+c[h-7]+v+c[h-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),C=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];p=d,d=u,u=s,s=a+C|0,a=i,i=o,o=r,r=C+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),o.SHA256)}()},86708:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(92379),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(P=n[o]).high^=a,P.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,m=0,f=0;f<5;f++)h^=(P=n[p+5*f]).high,m^=P.low;var g=d[p];g.high=h,g.low=m}for(p=0;p<5;p++){var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,C=y.low;for(h=v.high^(b<<1|C>>>31),m=v.low^(C<<1|b>>>31),f=0;f<5;f++)(P=n[p+5*f]).high^=h,P.low^=m}for(var S=1;S<25;S++){var x=(P=n[S]).high,_=P.low,E=l[S];E<32?(h=x<<E|_>>>32-E,m=_<<E|x>>>32-E):(h=_<<E-32|x>>>64-E,m=x<<E-32|_>>>64-E);var k=d[c[S]];k.high=h,k.low=m}var w=d[0],I=n[0];for(w.high=I.high,w.low=I.low,p=0;p<5;p++)for(f=0;f<5;f++){var P=n[S=p+5*f],T=d[S],D=d[(p+1)%5+5*f],A=d[(p+2)%5+5*f];P.high=T.high^~D.high&A.high,P.low=T.low^~D.low&A.low}P=n[0];var R=u[s];P.high^=R.high,P.low^=R.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new r.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(p),t.HmacSHA3=o._createHmacHelper(p)}(Math),i.SHA3)}()},44610:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(92379),n(13756),function(){var e=i,t=e.x64,n=t.Word,r=t.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),i.SHA384)}()},13756:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(92379),function(){var e=i,t=e.lib.Hasher,n=e.x64,r=n.Word,o=n.WordArray,a=e.algo;function s(){return r.create.apply(r,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=r.high,m=r.low,f=o.high,g=o.low,v=i.high,y=i.low,b=a.high,C=a.low,S=s.high,x=s.low,_=u.high,E=u.low,k=d.high,w=d.low,I=p.high,P=p.low,T=h,D=m,A=f,R=g,N=v,M=y,F=b,B=C,O=S,L=x,H=_,V=E,z=k,U=w,W=I,G=P,j=0;j<80;j++){var q,K,Y=c[j];if(j<16)K=Y.high=0|e[t+2*j],q=Y.low=0|e[t+2*j+1];else{var X=c[j-15],Q=X.high,Z=X.low,J=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,$=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),ee=c[j-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[j-7],ae=ie.high,se=ie.low,le=c[j-16],ce=le.high,ue=le.low;K=(K=(K=J+ae+((q=$+se)>>>0<$>>>0?1:0))+re+((q+=oe)>>>0<oe>>>0?1:0))+ce+((q+=ue)>>>0<ue>>>0?1:0),Y.high=K,Y.low=q}var de,pe=O&H^~O&z,he=L&V^~L&U,me=T&A^T&N^A&N,fe=D&R^D&M^R&M,ge=(T>>>28|D<<4)^(T<<30|D>>>2)^(T<<25|D>>>7),ve=(D>>>28|T<<4)^(D<<30|T>>>2)^(D<<25|T>>>7),ye=(O>>>14|L<<18)^(O>>>18|L<<14)^(O<<23|L>>>9),be=(L>>>14|O<<18)^(L>>>18|O<<14)^(L<<23|O>>>9),Ce=l[j],Se=Ce.high,xe=Ce.low,_e=W+ye+((de=G+be)>>>0<G>>>0?1:0),Ee=ve+fe;W=z,G=U,z=H,U=V,H=O,V=L,O=F+(_e=(_e=(_e=_e+pe+((de+=he)>>>0<he>>>0?1:0))+Se+((de+=xe)>>>0<xe>>>0?1:0))+K+((de+=q)>>>0<q>>>0?1:0))+((L=B+de|0)>>>0<B>>>0?1:0)|0,F=N,B=M,N=A,M=R,A=T,R=D,T=_e+(ge+me+(Ee>>>0<ve>>>0?1:0))+((D=de+Ee|0)>>>0<de>>>0?1:0)|0}m=r.low=m+D,r.high=h+T+(m>>>0<D>>>0?1:0),g=o.low=g+R,o.high=f+A+(g>>>0<R>>>0?1:0),y=i.low=y+M,i.high=v+N+(y>>>0<M>>>0?1:0),C=a.low=C+B,a.high=b+F+(C>>>0<B>>>0?1:0),x=s.low=x+L,s.high=S+O+(x>>>0<L>>>0?1:0),E=u.low=E+V,u.high=_+H+(E>>>0<V>>>0?1:0),w=d.low=w+U,d.high=k+z+(w>>>0<U>>>0?1:0),P=p.low=P+G,p.high=I+W+(P>>>0<G>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),i.SHA512)}()},38625:function(e,t,n){!function(t,r,o){var i;e.exports=(i=n(15734),n(67923),n(96720),n(34629),n(62495),function(){var e=i,t=e.lib,n=t.WordArray,r=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(d);var m=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(m)}(),i.TripleDES)}()},92379:function(e,t,n){!function(t,r){var o;e.exports=(o=n(15734),function(e){var t=o,n=t.lib,r=n.Base,i=n.WordArray,a=t.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}})}(),o)}()},41270:function(e,t,n){"use strict";var r=n(40475);function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.log=function(){var e;return"object"===("undefined"===typeof console?"undefined":o(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!==typeof r&&"env"in r&&(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(95557)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},95557:function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=a,s=Number(new Date),l=s-(n||s);i.diff=l,i.prev=n,i.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!==typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var o=r.formatters[n];if("function"===typeof o){var a=t[c];e=o.call(i,a),t.splice(c,1),c--}return e})),r.formatArgs.call(i,t);var u=i.log||r.log;u.apply(i,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=o,a.extend=i,"function"===typeof r.init&&r.init(a),r.instances.push(a),a}function o(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+("undefined"===typeof t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"===typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(20048),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},35644:function(e,t,n){"use strict";e.exports=n(48648).polyfill()},48648:function(e,t,n){var r=n(40475);e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"===typeof e}var o=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,a=void 0,s=void 0,l=function(e,t){S[i]=e,S[i+1]=t,2===(i+=2)&&(s?s(x):E())};function c(e){s=e}function u(e){l=e}var d="undefined"!==typeof window?window:void 0,p=d||{},h=p.MutationObserver||p.WebKitMutationObserver,m="undefined"===typeof self&&"undefined"!==typeof r&&"[object process]"==={}.toString.call(r),f="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function g(){return function(){return r.nextTick(x)}}function v(){return"undefined"!==typeof a?function(){a(x)}:C()}function y(){var e=0,t=new h(x),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=x,function(){return e.port2.postMessage(0)}}function C(){var e=setTimeout;return function(){return e(x,1)}}var S=new Array(1e3);function x(){for(var e=0;e<i;e+=2)(0,S[e])(S[e+1]),S[e]=void 0,S[e+1]=void 0;i=0}function _(){try{var e=Function("return this")().require("vertx");return a=e.runOnLoop||e.runOnContext,v()}catch(t){return C()}}var E=void 0;function k(e,t){var n=this,r=new this.constructor(P);void 0===r[I]&&Y(r);var o=n._state;if(o){var i=arguments[o-1];l((function(){return G(o,r,i,n._result)}))}else U(n,r,e,t);return r}function w(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var n=new t(P);return L(n,e),n}E=m?g():h?y():f?b():void 0===d?_():C();var I=Math.random().toString(36).substring(2);function P(){}var T=void 0,D=1,A=2;function R(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function M(e,t,n,r){try{e.call(t,n,r)}catch(o){return o}}function F(e,t,n){l((function(e){var r=!1,o=M(n,t,(function(n){r||(r=!0,t!==n?L(e,n):V(e,n))}),(function(t){r||(r=!0,z(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,z(e,o))}),e)}function B(e,t){t._state===D?V(e,t._result):t._state===A?z(e,t._result):U(t,void 0,(function(t){return L(e,t)}),(function(t){return z(e,t)}))}function O(e,n,r){n.constructor===e.constructor&&r===k&&n.constructor.resolve===w?B(e,n):void 0===r?V(e,n):t(r)?F(e,n,r):V(e,n)}function L(t,n){if(t===n)z(t,R());else if(e(n)){var r=void 0;try{r=n.then}catch(o){return void z(t,o)}O(t,n,r)}else V(t,n)}function H(e){e._onerror&&e._onerror(e._result),W(e)}function V(e,t){e._state===T&&(e._result=t,e._state=D,0!==e._subscribers.length&&l(W,e))}function z(e,t){e._state===T&&(e._state=A,e._result=t,l(H,e))}function U(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+D]=n,o[i+A]=r,0===i&&e._state&&l(W,e)}function W(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?G(n,r,o,i):o(i);e._subscribers.length=0}}function G(e,n,r,o){var i=t(r),a=void 0,s=void 0,l=!0;if(i){try{a=r(o)}catch(c){l=!1,s=c}if(n===a)return void z(n,N())}else a=o;n._state!==T||(i&&l?L(n,a):!1===l?z(n,s):e===D?V(n,a):e===A&&z(n,a))}function j(e,t){try{t((function(t){L(e,t)}),(function(t){z(e,t)}))}catch(n){z(e,n)}}var q=0;function K(){return q++}function Y(e){e[I]=q++,e._state=void 0,e._result=void 0,e._subscribers=[]}function X(){return new Error("Array Methods must be provided an Array")}var Q=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(P),this.promise[I]||Y(this.promise),o(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?V(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&V(this.promise,this._result))):z(this.promise,X())}return e.prototype._enumerate=function(e){for(var t=0;this._state===T&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(l){a=!0,i=l}if(o===k&&e._state!==T)this._settledAt(e._state,t,e._result);else if("function"!==typeof o)this._remaining--,this._result[t]=e;else if(n===ne){var s=new n(P);a?z(s,i):O(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===T&&(this._remaining--,e===A?z(r,n):this._result[t]=n),0===this._remaining&&V(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;U(e,void 0,(function(e){return n._settledAt(D,t,e)}),(function(e){return n._settledAt(A,t,e)}))},e}();function Z(e){return new Q(this,e).promise}function J(e){var t=this;return o(e)?new t((function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function $(e){var t=new this(P);return z(t,e),t}function ee(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ne=function(){function e(t){this[I]=K(),this._result=this._state=void 0,this._subscribers=[],P!==t&&("function"!==typeof t&&ee(),this instanceof e?j(this,t):te())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();function re(){var e=void 0;if("undefined"!==typeof n.g)e=n.g;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(o){}if("[object Promise]"===r&&!t.cast)return}e.Promise=ne}return ne.prototype.then=k,ne.all=Z,ne.race=J,ne.resolve=w,ne.reject=$,ne._setScheduler=c,ne._setAsap=u,ne._asap=l,ne.polyfill=re,ne.Promise=ne,ne}()},47814:function(e,t,n){"use strict";var r=n(47353),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),f=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!f||!f[v])&&(!s||!s[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},10624:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||S(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===C||e.$$typeof===v)},t.typeOf=S},47353:function(e,t,n){"use strict";e.exports=n(10624)},35556:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},84437:function(e,t){var n;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},p=d.toString,h=d.hasOwnProperty,m=h.toString,f=m.call(Object),g={},v=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,C={type:!0,src:!0,nonce:!0,noModule:!0};function S(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in C)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[p.call(e)]||"object":typeof e}var _="3.6.3",E=function e(t,n){return new e.fn.init(t,n)};function k(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:_,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},E.extend=E.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"===typeof a&&(c=a,a=arguments[s]||{},s++),"object"===typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(E.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||E.isPlainObject(n)?n:{},o=!1,a[t]=E.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},E.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"===typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){S(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(k(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?E.merge(n,"string"===typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(k(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return l(a)},guid:1,support:g}),"function"===typeof Symbol&&(E.fn[Symbol.iterator]=i[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var w=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C="sizzle"+1*new Date,S=e.document,x=0,_=0,E=le(),k=le(),w=le(),I=le(),P=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,D=[],A=D.pop,R=D.push,N=D.push,M=D.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+O+"*\\]",V=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",z=new RegExp(O+"+","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),G=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),j=new RegExp(O+"|>"),q=new RegExp(V),K=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=Ce((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(D=M.call(S.childNodes),S.childNodes),D[S.childNodes.length].nodeType}catch(ke){N={apply:D.length?function(e,t){R.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,c,u,d,m,v,y=t&&t.ownerDocument,S=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==S&&9!==S&&11!==S)return r;if(!o&&(p(t),t=t||h,f)){if(11!==S&&(d=$.exec(e)))if(i=d[1]){if(9===S){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(y&&(c=y.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==S||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===S&&(j.test(e)||G.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=C)),s=(m=a(e)).length;s--;)m[s]=(u?"#"+u:":scope")+" "+be(m[s]);v=m.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return N.apply(r,y.querySelectorAll(v)),r}catch(x){I(e,!0)}finally{u===C&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,r,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[C]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(ke){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:S;return a!=h&&9===a.nodeType&&a.documentElement?(m=(h=a).documentElement,f=!i(h),S!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ue((function(e){return m.appendChild(e).appendChild(h.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=ue((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ue((function(e){return m.appendChild(e).id=C,!h.getElementsByName||!h.getElementsByName(C).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&f){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&f)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;m.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+B+")"),e.querySelectorAll("[id~="+C+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",V)})),n.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(m.compareDocumentPosition),b=t||J.test(m.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==S&&b(S,e)?-1:t==h||t.ownerDocument==S&&b(S,t)?1:u?F(u,e)-F(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==h?-1:t==h?1:o?-1:i?1:u?F(u,e)-F(u,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==S?-1:s[r]==S?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&f&&!I[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(ke){I(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&T.call(r.attrHandle,t.toLowerCase())?o(e,t,!f):void 0;return void 0!==i?i:n.attributes||!f?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(P),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+O+"|$)"))&&E(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,h,m,f=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(i){for(;f;){for(p=t;p=p[f];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;m=f="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(c=(u=(d=(p=g)[C]||(p[C]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[f]||(b=h=0)||m.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[x,h,b];break}}else if(y&&(b=h=(c=(u=(d=(p=t)[C]||(p[C]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++h&&p&&p[f]||(b=h=0)||m.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((u=(d=p[C]||(p[C]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=o)===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[C]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=F(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[C]?ce((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return K.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=me(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ce(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=_++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,p=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[C]||(t[C]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(u[i]=p,p[2]=e(t,n,l))return!0}return!1}}function Se(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function _e(e,t,n,r,o,i){return r&&!r[C]&&(r=_e(r)),o&&!o[C]&&(o=_e(o,i)),ce((function(i,a,s,l){var c,u,d,p=[],h=[],m=a.length,f=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?f:xe(f,p,e,s,l),v=n?o||(i?e:m||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(c=xe(v,h),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?F(i,d):p[u])>-1&&(i[c]=!(a[c]=d))}}else v=xe(v===a?v.splice(m,v.length):v),o?o(null,a,v,l):N.apply(a,v)}))}function Ee(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=Ce((function(e){return e===t}),s,!0),d=Ce((function(e){return F(t,e)>-1}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])p=[Ce(Se(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[C]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return _e(l>1&&Se(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l<o&&Ee(e.slice(l,o)),o<i&&Ee(e=e.slice(o)),o<i&&be(e))}p.push(n)}return Se(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=G.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(U," ")}),s=s.slice(n.length)),r.filter)!(o=Y[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=w[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[C]?o.push(s):i.push(s);s=w(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,m,g,v=0,y="0",b=i&&[],C=[],S=c,_=i||o&&r.find.TAG("*",u),E=x+=null==S?1:Math.random()||.1,k=_.length;for(u&&(c=a==h||a||u);y!==k&&null!=(d=_[y]);y++){if(o&&d){for(m=0,a||d.ownerDocument==h||(p(d),s=!f);g=e[m++];)if(g(d,a||h,s)){l.push(d);break}u&&(x=E)}n&&((d=!g&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(m=0;g=t[m++];)g(b,C,a,s);if(i){if(v>0)for(;y--;)b[y]||C[y]||(C[y]=A.call(l));C=xe(C)}N.apply(l,C),u&&!i&&C.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=E,c=S),b};return n?ce(i):i}(i,o)),s.selector=e}return s},l=se.select=function(e,t,n,o){var i,l,c,u,d,p="function"===typeof e&&e,h=!o&&a(e=p.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&f&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=Y.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=o.length&&be(l)))return N.apply(n,o),n;break}}return(p||s(e,h))(o,t,!f,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=C.split("").sort(P).join("")===C,n.detectDuplicates=!!d,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(B,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);E.find=w,(E.expr=w.selectors)[":"]=E.expr.pseudos,E.uniqueSort=E.unique=w.uniqueSort,E.text=w.getText,E.isXMLDoc=w.isXML,E.contains=w.contains,E.escapeSelector=w.escape;var I=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&E(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=E.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return v(t)?E.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?E.grep(e,(function(e){return u.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!==typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t<r;t++)if(E.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,o[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"===typeof e&&T.test(e)?E(e):e||[],!1).length}});var N,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||N,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(r[1])&&E.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,N=E(b);var F=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!==typeof e&&E(e);if(!T.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?E.uniqueSort(i):i)},index:function(e){return e?"string"===typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,r){var o=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(o=E.filter(r,o)),this.length>1&&(B[e]||E.uniqueSort(o),F.test(e)&&o.reverse()),this.pushStack(o)}}));var L=/[^\x20\t\r\n\f]+/g;function H(e){return e}function V(e){throw e}function z(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return E.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){E.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,(function(e,t){for(var n;(n=E.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?E.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,r){var o=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var i=0;function a(e,t,n,o){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<i)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"===typeof r||"function"===typeof r)&&r.then,v(c)?o?c.call(r,a(i,t,H,o),a(i,t,V,o)):(i++,c.call(r,a(i,t,H,o),a(i,t,V,o),a(i,t,H,t.notifyWith))):(n!==H&&(s=void 0,l=[r]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,u.stackTrace),e+1>=i&&(n!==V&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(E.Deferred.getStackHook&&(u.stackTrace=E.Deferred.getStackHook()),r.setTimeout(u))}}return E.Deferred((function(r){t[0][3].add(a(0,r,v(o)?o:H,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:H)),t[2][3].add(a(0,r,v(n)?n:V))})).promise()},promise:function(e){return null!=e?E.extend(e,o):o}},i={};return E.each(t,(function(e,r){var a=r[2],s=r[5];o[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),i=E.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(z(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||v(o[n]&&o[n].then)))return i.then();for(;n--;)z(o[n],a(n),i.reject);return i.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&U.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout((function(){throw e}))};var W=E.Deferred();function G(){b.removeEventListener("DOMContentLoaded",G),r.removeEventListener("load",G),E.ready()}E.fn.ready=function(e){return W.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||W.resolveWith(b,[E]))}}),E.ready.then=W.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(E.ready):(b.addEventListener("DOMContentLoaded",G),r.addEventListener("load",G));var j=function e(t,n,r,o,i,a,s){var l=0,c=t.length,u=null==r;if("object"===x(r))for(l in i=!0,r)e(t,n,l,r[l],!0,a,s);else if(void 0!==o&&(i=!0,v(o)||(s=!0),u&&(s?(n.call(t,o),n=null):(u=n,n=function(e,t,n){return u.call(E(e),n)})),n))for(;l<c;l++)n(t[l],r,s?o:o.call(t[l],l,n(t[l],r)));return i?t:u?n.call(t):c?n(t[0],r):a},q=/^-ms-/,K=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function X(e){return e.replace(q,"ms-").replace(K,Y)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=E.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"===typeof t)o[X(t)]=n;else for(r in t)o[X(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var J=new Z,$=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"===typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(o){}$.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return $.hasData(e)||J.hasData(e)},data:function(e,t,n){return $.access(e,t,n)},removeData:function(e,t){$.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=$.get(i),1===i.nodeType&&!J.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),ne(i,r,o[r]));J.set(i,"hasDataAttrs",!0)}return o}return"object"===typeof e?this.each((function(){$.set(this,e)})):j(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=$.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){$.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){$.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=E.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=E._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){E.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:E.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each((function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){E.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=E.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=J.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=b.documentElement,se=function(e){return E.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===E.css(e,"display")};function ue(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return E.css(e,t,"")},l=s(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=e.nodeType&&(E.cssNumber[t]||"px"!==c&&+l)&&oe.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)E.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;E.style(e,t,(u*=2)+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var de={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,o=de[r];return o||(t=n.body.appendChild(n.createElement(r)),o=E.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),de[r]=o,o)}function he(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=J.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ce(r)&&(o[i]=pe(r))):"none"!==n&&(o[i]="none",J.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}E.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){ce(this)?E(this).show():E(this).hide()}))}});var me=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",g.option=!!e.lastChild}();var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?E.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,g.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function Se(e,t,n,r,o){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),p=[],h=0,m=e.length;h<m;h++)if((i=e[h])||0===i)if("object"===x(i))E.merge(p,i.nodeType?[i]:i);else if(Ce.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(fe.exec(i)||["",""])[1].toLowerCase(),l=ve[s]||ve._default,a.innerHTML=l[1]+E.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;E.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",h=0;i=p[h++];)if(r&&E.inArray(i,r)>-1)o&&o.push(i);else if(c=se(i),a=ye(d.appendChild(i),"script"),c&&be(a),n)for(u=0;i=a[u++];)ge.test(i.type||"")&&n.push(i);return d}var xe=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function Ee(){return!1}function ke(e,t){return e===function(){try{return b.activeElement}catch(e){}}()===("focus"===t)}function we(e,t,n,r,o,i){var a,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)we(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"===typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ee;else if(!o)return e;return 1===i&&(a=o,o=function(e){return E().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=E.guid++)),e.each((function(){E.event.add(this,t,o,r,n)}))}function Ie(e,t,n){n?(J.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),J.set(this,t,i),r=n(this,t),this[t](),i!==(o=J.get(this,t))||r?J.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else i.length&&(J.set(this,t,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&E.event.add(e,t,_e)}E.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,h,m,f,g=J.get(e);if(Q(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&E.find.matchesSelector(ae,o),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)h=f=(s=xe.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),h&&(d=E.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=E.event.special[h]||{},u=E.extend({type:h,origType:f,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:m.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,m,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),E.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,h,m,f,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(h=f=(s=xe.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),h){for(d=E.event.special[h]||{},p=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)u=p[i],!o&&f!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,g.handle)||E.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)E.event.remove(e,h+t[c],n,r,!0);E.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),l=E.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,c),t=0;(o=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((E.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?E(o,this).index(c)>-1:E.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&Ie(t,"click",_e),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&D(t,"input")&&J.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0}).prototype={constructor:E.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(e,t){E.event.special[e]={setup:function(){return Ie(this,e,ke),!1},trigger:function(){return Ie(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||E.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),E.fn.extend({on:function(e,t,n,r){return we(this,e,t,n,r)},one:function(e,t,n,r){return we(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){E.event.remove(this,e,n,t)}))}});var Pe=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ae(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(o in J.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)E.event.add(t,o,s[o][n]);$.hasData(e)&&(i=$.access(e),a=E.extend({},i),$.set(t,a))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var o,i,a,s,c,u,d=0,p=e.length,h=p-1,m=t[0],f=v(m);if(f||p>1&&"string"===typeof m&&!g.checkClone&&Te.test(m))return e.each((function(o){var i=e.eq(o);f&&(t[0]=m.call(this,o,i.html())),Be(i,t,n,r)}));if(p&&(i=(o=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=E.map(ye(o,"script"),Re)).length;d<p;d++)c=o,d!==h&&(c=E.clone(c,!0,!0),s&&E.merge(a,ye(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,E.map(a,Ne),d=0;d<s;d++)c=a[d],ge.test(c.type||"")&&!J.access(c,"globalEval")&&E.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):S(c.textContent.replace(De,""),c,u))}return e}function Oe(e,t,n){for(var r,o=t?E.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||E.cleanData(ye(r)),r.parentNode&&(n&&se(r)&&be(ye(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),l=se(e);if(!g.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!E.isXMLDoc(e))for(a=ye(s),r=0,o=(i=ye(e)).length;r<o;r++)Fe(i[r],a[r]);if(t)if(n)for(i=i||ye(e),a=a||ye(s),r=0,o=i.length;r<o;r++)Me(i[r],a[r]);else Me(e,s);return(a=ye(s,"script")).length>0&&be(a,!l&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,o=E.event.special,i=0;void 0!==(n=e[i]);i++)if(Q(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)o[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[$.expando]&&(n[$.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return j(this,(function(e){return void 0===e?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ae(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ae(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Pe.test(e)&&!ve[(fe.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(e){for(var n,r=[],o=E(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),E(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Le=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),He=/^--/,Ve=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},ze=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ue=new RegExp(ie.join("|"),"i"),We=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g");function Ge(e,t,n){var r,o,i,a,s=He.test(t),l=e.style;return(n=n||Ve(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(We,"$1")||void 0),""!==a||se(e)||(a=E.style(e,t)),!g.pixelBoxStyles()&&Le.test(a)&&Ue.test(t)&&(r=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),o=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,i,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ae.appendChild(e).appendChild(t).appendChild(n),o=r.getComputedStyle(t),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var qe=["Webkit","Moz","ms"],Ke=b.createElement("div").style,Ye={};function Xe(e){var t=E.cssProps[e]||Ye[e];return t||(e in Ke?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in Ke)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ze={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"};function $e(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,o,i){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=E.css(e,n+ie[a],!0,o)),r?("content"===n&&(l-=E.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(l-=E.css(e,"border"+ie[a]+"Width",!0,o))):(l+=E.css(e,"padding"+ie[a],!0,o),"padding"!==n?l+=E.css(e,"border"+ie[a]+"Width",!0,o):s+=E.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function tt(e,t,n){var r=Ve(e),o=(!g.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),i=o,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Le.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&D(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===E.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(o?"border":"content"),i,r,a)+"px"}function nt(e,t,n,r,o){return new nt.prototype.init(e,t,n,r,o)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=X(t),l=He.test(t),c=e.style;if(l||(t=Xe(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=ue(e,t,o),i="number"),null!=n&&n===n&&("number"!==i||l||(n+=o&&o[3]||(E.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=X(t);return He.test(t)||(t=Xe(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ge(e,t,r)),"normal"===o&&t in Je&&(o=Je[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):ze(e,Ze,(function(){return tt(e,t,r)}))},set:function(e,n,r){var o,i=Ve(e),a=!g.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===E.css(e,"boxSizing",!1,i),l=r?et(e,t,r,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-et(e,t,"border",!1,i)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),$e(0,n,l)}}})),E.cssHooks.marginLeft=je(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"===typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(E.cssHooks[e+t].set=$e)})),E.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Ve(e),o=t.length;a<o;a++)i[t[a]]=E.css(e,t[a],!1,r);return i}return void 0!==n?E.style(e,t,n):E.css(e,t)}),e,t,arguments.length>1)}}),E.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(E.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(E.fx=nt.prototype.init).step={};var rt,ot,it=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){ot&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(st):r.setTimeout(st,E.fx.interval),E.fx.tick())}function lt(){return r.setTimeout((function(){rt=void 0})),rt=Date.now()}function ct(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ut(e,t,n){for(var r,o=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function dt(e,t,n){var r,o,i=0,a=dt.prefilters.length,s=E.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=rt||lt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=X(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=E.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=dt.prefilters[i].call(c,e,u,c.opts))return v(r.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return E.map(u,ut,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,o=e.length;r<o;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u,d="width"in t||"height"in t,p=this,h={},m=e.style,f=e.nodeType&&ce(e),g=J.get(e,"fxshow");for(r in n.queue||(null==(a=E._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,E.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],it.test(o)){if(delete t[r],i=i||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;f=!0}h[r]=g&&g[r]||E.style(e,r)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=g&&g.display)&&(c=J.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(he([e],!0),c=e.style.display||c,u=E.css(e,"display"),he([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(p.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",p.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),l=!1,h)l||(g?"hidden"in g&&(f=g.hidden):g=J.access(e,"fxshow",{display:c}),i&&(g.hidden=!f),f&&he([e],!0),p.done((function(){for(r in f||he([e]),J.remove(e,"fxshow"),h)E.style(e,r,h[r])}))),l=ut(f?g[r]:0,r,p),r in g||(g[r]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"===typeof e?E.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return E.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=E.isEmptyObject(e),i=E.speed(t,n,r),a=function(){var t=dt(this,E.extend({},e),i);(o||J.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=E.timers,a=J.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&at.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||E.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=E.timers,a=r?r.length:0;for(n.finish=!0,E.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,o){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,o)}})),E.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),rt=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ot||(ot=!0,st())},E.fx.stop=function(){ot=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,ht=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return j(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof e.getAttribute?E.prop(e,t,n):(1===i&&E.isXMLDoc(e)||(o=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(L);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||E.find.attr;ht[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=ht[a],ht[a]=o,o=null!=n(e,t,r)?a:null,ht[a]=i),o}}));var mt=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function gt(e){return(e.match(L)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(L)||[]}E.fn.extend({prop:function(e,t){return j(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&E.isXMLDoc(e)||(t=E.propFix[t]||t,o=E.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,r,o,i,a;return v(e)?this.each((function(t){E(this).addClass(e.call(this,t,vt(this)))})):(t=yt(e)).length?this.each((function(){if(r=vt(this),n=1===this.nodeType&&" "+gt(r)+" "){for(i=0;i<t.length;i++)o=t[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=gt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,o,i,a;return v(e)?this.each((function(t){E(this).removeClass(e.call(this,t,vt(this)))})):arguments.length?(t=yt(e)).length?this.each((function(){if(r=vt(this),n=1===this.nodeType&&" "+gt(r)+" "){for(i=0;i<t.length;i++)for(o=t[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=gt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,i,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,vt(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=yt(e),this.each((function(){if(s)for(i=E(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==a||((r=vt(this))&&J.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":J.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+gt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;E.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,E(this).val()):e)?o="":"number"===typeof o?o+="":Array.isArray(o)&&(o=E.map(o,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"===typeof(n=o.value)?n.replace(bt,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:gt(E.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=E(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=E.makeArray(t),a=o.length;a--;)((r=o[a]).selected=E.inArray(E.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},g.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var Ct=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,o){var i,a,s,l,c,u,d,p,m=[n||b],f=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(f+E.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),c=f.indexOf(":")<0&&"on"+f,(e=e[E.expando]?e:new E.Event(f,"object"===typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),d=E.event.special[f]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!y(n)){for(l=d.delegateType||f,Ct.test(l+f)||(a=a.parentNode);a;a=a.parentNode)m.push(a),s=a;s===(n.ownerDocument||b)&&m.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=m[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?l:d.bindType||f,(u=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&Q(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=f,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!Q(n)||c&&v(n[f])&&!y(n)&&((s=n[c])&&(n[c]=null),E.event.triggered=f,e.isPropagationStopped()&&p.addEventListener(f,St),n[f](),e.isPropagationStopped()&&p.removeEventListener(f,St),E.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),g.focusin||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t);o||r.addEventListener(e,n,!0),J.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t)-1;o?J.access(r,t,o):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var xt=r.location,_t={guid:Date.now()},Et=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(o){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var kt=/\[\]$/,wt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Tt(e,t,n,r){var o;if(Array.isArray(t))E.each(t,(function(t,o){n||kt.test(e)?r(e,o):Tt(e+"["+("object"===typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(o in t)Tt(e+"["+o+"]",t[o],n,r)}E.param=function(e,t){var n,r=[],o=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){o(this.name,this.value)}));else for(n in e)Tt(n,e[n],t,o);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Pt.test(this.nodeName)&&!It.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(wt,"\r\n")}})):{name:t.name,value:n.replace(wt,"\r\n")}})).get()}});var Dt=/%20/g,At=/#.*$/,Rt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Bt={},Ot={},Lt="*/".concat("*"),Ht=b.createElement("a");function Vt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(L)||[];if(v(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var o={},i=e===Ot;function a(s){var l;return o[s]=!0,E.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!==typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,r,o=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Ht.href=xt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,E.ajaxSettings),t):Ut(E.ajaxSettings,e)},ajaxPrefilter:Vt(Bt),ajaxTransport:Vt(Ot),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0);var n,o,i,a,s,l,c,u,d,p,h=E.ajaxSetup({},t=t||{}),m=h.context||h,f=h.context&&(m.nodeType||m.jquery)?E(m):E.event,g=E.Deferred(),v=E.Callbacks("once memory"),y=h.statusCode||{},C={},S={},x="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Nt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,C[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)_.always(e[_.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),k(0,t),this}};if(g.promise(_),h.url=((e||h.url||xt.href)+"").replace(Ft,xt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ht.protocol+"//"+Ht.host!==l.protocol+"//"+l.host}catch(w){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=E.param(h.data,h.traditional)),zt(Bt,h,t,_),c)return _;for(d in(u=E.event&&h.global)&&0===E.active++&&E.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(At,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"===typeof h.data)&&(o+=(Et.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Rt,"$1"),p=(Et.test(o)?"&":"?")+"_="+_t.guid+++p),h.url=o+p),h.ifModified&&(E.lastModified[o]&&_.setRequestHeader("If-Modified-Since",E.lastModified[o]),E.etag[o]&&_.setRequestHeader("If-None-Match",E.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&_.setRequestHeader("Content-Type",h.contentType),_.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Lt+"; q=0.01":""):h.accepts["*"]),h.headers)_.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(m,_,h)||c))return _.abort();if(x="abort",v.add(h.complete),_.done(h.success),_.fail(h.error),n=zt(Ot,h,t,_)){if(_.readyState=1,u&&f.trigger("ajaxSend",[_,h]),c)return _;h.async&&h.timeout>0&&(s=r.setTimeout((function(){_.abort("timeout")}),h.timeout));try{c=!1,n.send(C,k)}catch(w){if(c)throw w;k(-1,w)}}else k(-1,"No Transport");function k(e,t,a,l){var d,p,b,C,S,x=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,i=l||"",_.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(C=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,_,a)),!d&&E.inArray("script",h.dataTypes)>-1&&E.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),C=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(w){return{state:"parsererror",error:a?w:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,C,_,d),d?(h.ifModified&&((S=_.getResponseHeader("Last-Modified"))&&(E.lastModified[o]=S),(S=_.getResponseHeader("etag"))&&(E.etag[o]=S)),204===e||"HEAD"===h.type?x="nocontent":304===e?x="notmodified":(x=C.state,p=C.data,d=!(b=C.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),_.status=e,_.statusText=(t||x)+"",d?g.resolveWith(m,[p,x,_]):g.rejectWith(m,[_,x,b]),_.statusCode(y),y=void 0,u&&f.trigger(d?"ajaxSuccess":"ajaxError",[_,h,d?p:b]),v.fireWith(m,[_,x]),u&&(f.trigger("ajaxComplete",[_,h]),--E.active||E.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:o,data:n,success:r},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Gt=E.ajaxSettings.xhr();g.cors=!!Gt&&"withCredentials"in Gt,g.ajax=Gt=!!Gt,E.ajaxTransport((function(e){var t,n;if(g.cors||Gt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var jt=[],qt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jt.pop()||E.expando+"_"+_t.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",(function(e,t,n){var o,i,a,s=!1!==e.jsonp&&(qt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(qt,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||E.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=r[o],r[o]=function(){a=arguments},n.always((function(){void 0===i?E(r).removeProp(o):r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,jt.push(o)),a&&v(i)&&i(a[0]),a=i=void 0})),"script"})),g.createHTMLDocument=function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),E.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=Se([e],t,i),i&&i.length&&E(i).remove(),E.merge([],o.childNodes)));var r,o,i},E.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=gt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"===typeof t&&(o="POST"),a.length>0&&E.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,(function(t){return e===t.elem})).length},E.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=E.css(e,"position"),u=E(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=E.css(e,"top"),l=E.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),v(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){E.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),o.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-E.css(r,"marginTop",!0),left:t.left-o.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||ae}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return j(this,(function(e,r,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),E.each(["top","left"],(function(e,t){E.cssHooks[t]=je(g.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),Le.test(n)?E(e).position()[t]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){E.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!==typeof o),s=n||(!0===o||!0===i?"margin":"border");return j(this,(function(t,n,o){var i;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?E.css(t,n,s):E.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){E.fn[t]=function(e){return this.on(t,e)}})),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,o;if("string"===typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),o=function(){return e.apply(t||this,r.concat(s.call(arguments)))},o.guid=e.guid=e.guid||E.guid++,o},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=D,E.isFunction=v,E.isWindow=y,E.camelCase=X,E.type=x,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Kt,"$1")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var Yt=r.jQuery,Xt=r.$;return E.noConflict=function(e){return r.$===E&&(r.$=Xt),e&&r.jQuery===E&&(r.jQuery=Yt),E},"undefined"===typeof o&&(r.jQuery=r.$=E),E}))},67153:function(e,t,n){var r=n(41270)("jsonp");e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var a,s,l=t.prefix||"__jp",c=t.name||l+o++,u=t.param||"callback",d=null!=t.timeout?t.timeout:6e4,p=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;d&&(s=setTimeout((function(){m(),n&&n(new Error("Timeout"))}),d));function m(){a.parentNode&&a.parentNode.removeChild(a),window[c]=i,s&&clearTimeout(s)}return window[c]=function(e){r("jsonp got",e),m(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+p(c)).replace("?&","?"),r('jsonp req "%s"',e),(a=document.createElement("script")).src=e,h.parentNode.insertBefore(a,h),function(){window[c]&&m()}};var o=0;function i(){}},73107:function(e,t,n){var r=n(29519)(n(95498),"DataView");e.exports=r},63210:function(e,t,n){var r=n(43793),o=n(30044),i=n(25427),a=n(82720),s=n(1249);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},31864:function(e,t,n){var r=n(53910),o=n(39515),i=n(62267),a=n(69008),s=n(85035);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8553:function(e,t,n){var r=n(29519)(n(95498),"Map");e.exports=r},99365:function(e,t,n){var r=n(29789),o=n(12052),i=n(47940),a=n(36467),s=n(75188);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},12445:function(e,t,n){var r=n(29519)(n(95498),"Promise");e.exports=r},35889:function(e,t,n){var r=n(29519)(n(95498),"Set");e.exports=r},81294:function(e,t,n){var r=n(99365),o=n(37162),i=n(44456);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},69155:function(e,t,n){var r=n(31864),o=n(66960),i=n(4265),a=n(42468),s=n(58866),l=n(92822);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},25435:function(e,t,n){var r=n(95498).Symbol;e.exports=r},16343:function(e,t,n){var r=n(95498).Uint8Array;e.exports=r},51963:function(e,t,n){var r=n(29519)(n(95498),"WeakMap");e.exports=r},38047:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},30774:function(e,t,n){var r=n(20191),o=n(32824),i=n(49756),a=n(25377),s=n(90790),l=n(29239),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,m=h?r(e.length,String):[],f=m.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,f))||m.push(g);return m}},64013:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},13964:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},44402:function(e,t,n){var r=n(6170);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},53937:function(e,t,n){var r=n(64013),o=n(7530);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},14151:function(e,t,n){var r=n(64013),o=n(49756);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},41602:function(e,t,n){var r=n(25435),o=n(34745),i=n(24363),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},89801:function(e,t,n){var r=n(41602),o=n(57126);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},48247:function(e,t,n){var r=n(54329),o=n(57126);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},54329:function(e,t,n){var r=n(69155),o=n(2951),i=n(89691),a=n(14037),s=n(28342),l=n(49756),c=n(25377),u=n(29239),d="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,v){var y=l(e),b=l(t),C=y?p:s(e),S=b?p:s(t),x=(C=C==d?h:C)==h,_=(S=S==d?h:S)==h,E=C==S;if(E&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(E&&!x)return v||(v=new r),y||u(e)?o(e,t,n,f,g,v):i(e,t,C,n,f,g,v);if(!(1&n)){var k=x&&m.call(e,"__wrapped__"),w=_&&m.call(t,"__wrapped__");if(k||w){var I=k?e.value():e,P=w?t.value():t;return v||(v=new r),g(I,P,n,f,v)}}return!!E&&(v||(v=new r),a(e,t,n,f,g,v))}},18273:function(e,t,n){var r=n(48776),o=n(38758),i=n(74274),a=n(36512),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},1967:function(e,t,n){var r=n(41602),o=n(88465),i=n(57126),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},43746:function(e,t,n){var r=n(91121),o=n(92633),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},20191:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},77559:function(e,t,n){var r=n(42710),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},25098:function(e){e.exports=function(e){return function(t){return e(t)}}},82195:function(e){e.exports=function(e,t){return e.has(t)}},60078:function(e,t,n){var r=n(95498)["__core-js_shared__"];e.exports=r},2951:function(e,t,n){var r=n(81294),o=n(13964),i=n(82195);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=-1,f=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var v=e[m],y=t[m];if(a)var b=c?a(y,v,m,t,e,l):a(v,y,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){f=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},89691:function(e,t,n){var r=n(25435),o=n(16343),i=n(6170),a=n(2951),s=n(2107),l=n(22761),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var m=1&r;if(h||(h=l),e.size!=t.size&&!m)return!1;var f=p.get(e);if(f)return f==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},14037:function(e,t,n){var r=n(30337),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var f=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var b=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){f=!1;break}g||(g="constructor"==p)}if(f&&!g){var C=e.constructor,S=t.constructor;C==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof S&&S instanceof S||(f=!1)}return s.delete(e),s.delete(t),f}},41363:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},30337:function(e,t,n){var r=n(14151),o=n(86578),i=n(53675);e.exports=function(e){return r(e,i,o)}},38690:function(e,t,n){var r=n(55136);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},29519:function(e,t,n){var r=n(18273),o=n(14959);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},34745:function(e,t,n){var r=n(25435),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},86578:function(e,t,n){var r=n(38047),o=n(47759),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},28342:function(e,t,n){var r=n(73107),o=n(8553),i=n(12445),a=n(35889),s=n(51963),l=n(41602),c=n(36512),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",f=c(r),g=c(o),v=c(i),y=c(a),b=c(s),C=l;(r&&C(new r(new ArrayBuffer(1)))!=m||o&&C(new o)!=u||i&&C(i.resolve())!=d||a&&C(new a)!=p||s&&C(new s)!=h)&&(C=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return m;case g:return u;case v:return d;case y:return p;case b:return h}return t}),e.exports=C},14959:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},43793:function(e,t,n){var r=n(90811);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},30044:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},25427:function(e,t,n){var r=n(90811),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},82720:function(e,t,n){var r=n(90811),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1249:function(e,t,n){var r=n(90811);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},7530:function(e,t,n){var r=n(25435),o=n(32824),i=n(49756),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},90790:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},55136:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},38758:function(e,t,n){var r=n(60078),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},91121:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},53910:function(e){e.exports=function(){this.__data__=[],this.size=0}},39515:function(e,t,n){var r=n(44402),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},62267:function(e,t,n){var r=n(44402);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},69008:function(e,t,n){var r=n(44402);e.exports=function(e){return r(this.__data__,e)>-1}},85035:function(e,t,n){var r=n(44402);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},29789:function(e,t,n){var r=n(63210),o=n(31864),i=n(8553);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},12052:function(e,t,n){var r=n(38690);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},47940:function(e,t,n){var r=n(38690);e.exports=function(e){return r(this,e).get(e)}},36467:function(e,t,n){var r=n(38690);e.exports=function(e){return r(this,e).has(e)}},75188:function(e,t,n){var r=n(38690);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2107:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},90811:function(e,t,n){var r=n(29519)(Object,"create");e.exports=r},92633:function(e,t,n){var r=n(14102)(Object.keys,Object);e.exports=r},31495:function(e,t,n){e=n.nmd(e);var r=n(41363),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},24363:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},14102:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},95498:function(e,t,n){var r=n(41363),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},37162:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},44456:function(e){e.exports=function(e){return this.__data__.has(e)}},22761:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},66960:function(e,t,n){var r=n(31864);e.exports=function(){this.__data__=new r,this.size=0}},4265:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42468:function(e){e.exports=function(e){return this.__data__.get(e)}},58866:function(e){e.exports=function(e){return this.__data__.has(e)}},92822:function(e,t,n){var r=n(31864),o=n(8553),i=n(99365);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},36512:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},42710:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6170:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},43260:function(e,t,n){var r=n(53937);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},32824:function(e,t,n){var r=n(89801),o=n(57126),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},49756:function(e){var t=Array.isArray;e.exports=t},66274:function(e,t,n){var r=n(48776),o=n(88465);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},25377:function(e,t,n){e=n.nmd(e);var r=n(95498),o=n(98364),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},76032:function(e,t,n){var r=n(43746),o=n(28342),i=n(32824),a=n(49756),s=n(66274),l=n(25377),c=n(91121),u=n(29239),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},15888:function(e,t,n){var r=n(48247);e.exports=function(e,t){return r(e,t)}},48776:function(e,t,n){var r=n(41602),o=n(74274);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41009:function(e,t,n){var r=n(34596);e.exports=function(e){return"number"==typeof e&&e==r(e)}},88465:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},74274:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},57126:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},96502:function(e,t,n){var r=n(41009),o=9007199254740991;e.exports=function(e){return r(e)&&e>=-9007199254740991&&e<=o}},5100:function(e,t,n){var r=n(41602),o=n(57126);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},29239:function(e,t,n){var r=n(1967),o=n(25098),i=n(31495),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},53675:function(e,t,n){var r=n(30774),o=n(43746),i=n(66274);e.exports=function(e){return i(e)?r(e):o(e)}},47759:function(e){e.exports=function(){return[]}},98364:function(e){e.exports=function(){return!1}},91465:function(e,t,n){var r=n(24378),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},34596:function(e,t,n){var r=n(91465);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},24378:function(e,t,n){var r=n(77559),o=n(74274),i=n(5100),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},39997:function(module,exports,__webpack_require__){var factory;"undefined"!==typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,o=e.length;for(n=0;n<o;n+=1)for(var i in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,i)&&(t.prototype[i]=r[i])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,o=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)o.push(n);return o}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return idPrefix$1+"__lottie_element_"+(e+=1)}}();function HSVtoRGB(e,t,n){var r,o,i,a,s,l,c,u;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),a%6){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}return[r,o,i]}function RGBtoHSV(e,t,n){var r,o=Math.max(e,t,n),i=Math.min(e,t,n),a=o-i,s=0===o?0:a/o,l=o/255;switch(o){case i:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){o.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,o}((function(e){if(i.dataManager||(i.dataManager=function(){function e(o,i){var a,s,l,c,d,p,h=o.length;for(s=0;s<h;s+=1)if("ks"in(a=o[s])&&!a.completed){if(a.completed=!0,a.tt&&(o[s-1].td=a.tt),a.hasMask){var m=a.masksProperties;for(c=m.length,l=0;l<c;l+=1)if(m[l].pt.k.i)r(m[l].pt.k);else for(p=m[l].pt.k.length,d=0;d<p;d+=1)m[l].pt.k[d].s&&r(m[l].pt.k[d].s[0]),m[l].pt.k[d].e&&r(m[l].pt.k[d].e[0])}0===a.ty?(a.layers=t(a.refId,i),e(a.layers,i)):4===a.ty?n(a.shapes):5===a.ty&&u(a)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,o,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(i=e[t].ks.k.length,o=0;o<i;o+=1)e[t].ks.k[o].s&&r(e[t].ks.k[o].s[0]),e[t].ks.k[o].e&&r(e[t].ks.k[o].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function o(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var i=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),a=function(){var e=[4,7,99];return function(t){if(t.chars&&!o(e,t.v)){var r,i=t.chars.length;for(r=0;r<i;r+=1){var a=t.chars[r];a.data&&a.data.shapes&&(n(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[r].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),s=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"===typeof t.a&&(t.a={a:0,k:t.a}),"number"===typeof t.p&&(t.p={a:0,k:t.p}),"number"===typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var n,r,o,i=e.length;for(n=0;n<i;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(o=e[n].c.k.length,r=0;r<o;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,o;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(o=e[n].ks.k.length,r=0;r<o;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,o,i,a,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(i=c.length,o=0;o<i;o+=1)if(c[o].pt.k.i)c[o].pt.k.c=c[o].cl;else for(s=c[o].pt.k.length,a=0;a<s;a+=1)c[o].pt.k[a].s&&(c[o].pt.k[a].s[0].c=c[o].cl),c[o].pt.k[a].e&&(c[o].pt.k[a].e[0].c=c[o].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function u(e){0===e.t.a.length&&e.t.p}var d={completeData:function(n){n.__complete||(l(n),i(n),a(n),s(n),c(n),e(n.layers,n.assets),function(n,r){if(n){var o=0,i=n.length;for(o=0;o<i;o+=1)1===n[o].t&&(n[o].data.layers=t(n[o].data.refId,r),e(n[o].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return d.checkColors=l,d.checkChars=a,d.checkPathProperties=s,d.checkShapes=c,d.completeLayers=e,d}()),i.assetLoader||(i.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"===typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,o){var i,a=new XMLHttpRequest;try{a.responseType="json"}catch(s){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)i=e(a),r(i);else try{i=e(a),r(i)}catch(s){o&&o(s)}};try{a.open("GET",t,!0)}catch(l){a.open("GET",n+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,n=t.id,o=r[n];r[n]=null,"success"===t.status?o.onComplete(t.payload):o.onError&&o.onError()})}function s(e,t){var o="processId_"+(n+=1);return r[o]={onComplete:e,onError:t},o}return{loadAnimation:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"complete",animation:e,id:o})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var o=e.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),r=t+o}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function o(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.src=n;var i={img:o,assetData:t};return i},createImageData:function(t){var n=r(t,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var i={img:o,assetData:t};return i},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},o=0,i=0;i<n.length;i+=1)2===(t=n[i].split(":")).length&&(r[t[0]]=t[1].trim(),o+=1);if(0===o)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r],i={time:o.tm,duration:o.dr};try{i.payload=JSON.parse(t[r].cm)}catch(a){try{i.payload=e(t[r].cm)}catch(s){i.payload={name:t[r].cm}}}n.push(i)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var o=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===o?n.loop=!1:"true"===o?n.loop=!0:""!==o&&(n.loop=parseInt(o,10));var i=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==i,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,o=r.length,i=e.layers,a=i.length;for(n=0;n<a;n+=1)for(t=0;t<o;){if(r[t].id===i[n].id){r[t]=i[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(o=e.assets.length,t=0;t<o;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(r){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,o=0,i=!0,a=!1;function s(e){for(var n=0,o=e.target;n<r;)t[n].animation===o&&(t.splice(n,1),n-=1,r-=1,o.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var o=0;o<r;){if(t[o].elem===e&&null!==t[o].elem)return t[o].animation;o+=1}var i=new AnimationItem;return d(i,e),i.setData(e,n),i}function c(){o+=1,m()}function u(){o-=1}function d(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function p(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,o&&!a?window.requestAnimationFrame(p):i=!0}function h(e){n=e,window.requestAnimationFrame(p)}function m(){!a&&o&&i&&(window.requestAnimationFrame(h),i=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setSpeed(e,n)},e.setDirection=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=o.length;for(r=0;r<i;r+=1)n&&o[r].setAttribute("data-bm-type",n),l(o[r],e);if(t&&0===i){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,o){var i;for(i=0;i<r;i+=1)t[i].animation.goToAndStop(e,n,o)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,m()},e.setVolume=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,o,i){var a=i||("bez_"+e+"_"+n+"_"+r+"_"+o).replace(/\./g,"p");if(t[a])return t[a];var s=new c([e,n,r,o]);return t[a]=s,s}},t={},n=.1,r="function"===typeof Float32Array;function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function a(e){return 3*e}function s(e,t,n){return((o(t,n)*e+i(t,n))*e+a(t))*e}function l(e,t,n){return 3*o(t,n)*e*e+2*i(t,n)*e+a(t)}function c(e){this._p=e,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),t===n&&r===o?e:0===e?0:1===e?1:s(this._getTForX(e),n,o)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],r=0;r<11;++r)this._mSampleValues[r]=s(r*n,e,t)},_getTForX:function(e){for(var t=this._p[0],r=this._p[2],o=this._mSampleValues,i=0,a=1;10!==a&&o[a]<=e;++a)i+=n;var c=i+(e-o[--a])/(o[a+1]-o[a])*n,u=l(c,t,r);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=l(t,n,r);if(0===i)return t;t-=(s(t,n,r)-e)/i}return t}(e,c,t,r):0===u?c:function(e,t,n,r,o){var i,a,l=0;do{(i=s(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++l<10);return a}(e,i,i+n,t,r)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,o=e,i=createSizedArray(o);return{newElement:function(){return r?i[r-=1]:t()},release:function(e){r===o&&(i=pooling.double(i),o*=2),n&&n(e),i[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,o,i){var a=e*r+t*o+n*i-o*r-i*e-n*t;return a>-.001&&a<.001}var n=function(e,t,n,r){var o,i,a,s,l,c,u=getDefaultCurveSegments(),d=0,p=[],h=[],m=bezierLengthPool.newElement();for(a=n.length,o=0;o<u;o+=1){for(l=o/(u-1),c=0,i=0;i<a;i+=1)s=bmPow(1-l,3)*e[i]+3*bmPow(1-l,2)*l*n[i]+3*(1-l)*bmPow(l,2)*r[i]+bmPow(l,3)*t[i],p[i]=s,null!==h[i]&&(c+=bmPow(p[i]-h[i],2)),h[i]=p[i];c&&(d+=c=bmSqrt(c)),m.percents[o]=l,m.lengths[o]=d}return m.addedLength=d,m};function r(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var i=function(){var e={};return function(n,i,a,s){var l=(n[0]+"_"+n[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var c,u,d,p,h,m,f,g=getDefaultCurveSegments(),v=0,y=null;2===n.length&&(n[0]!==i[0]||n[1]!==i[1])&&t(n[0],n[1],i[0],i[1],n[0]+a[0],n[1]+a[1])&&t(n[0],n[1],i[0],i[1],i[0]+s[0],i[1]+s[1])&&(g=2);var b=new r(g);for(d=a.length,c=0;c<g;c+=1){for(f=createSizedArray(d),h=c/(g-1),m=0,u=0;u<d;u+=1)p=bmPow(1-h,3)*n[u]+3*bmPow(1-h,2)*h*(n[u]+a[u])+3*(1-h)*bmPow(h,2)*(i[u]+s[u])+bmPow(h,3)*i[u],f[u]=p,null!==y&&(m+=bmPow(f[u]-y[u],2));v+=m=bmSqrt(m),b.points[c]=new o(m,f),y=f}b.segmentLength=v,e[l]=b}return e[l]}}();function a(e,t){var n=t.percents,r=t.lengths,o=n.length,i=bmFloor((o-1)*e),a=e*t.addedLength,s=0;if(i===o-1||0===i||a===r[i])return n[i];for(var l=r[i]>a?-1:1,c=!0;c;)if(r[i]<=a&&r[i+1]>a?(s=(a-r[i])/(r[i+1]-r[i]),c=!1):i+=l,i<0||i>=o-1){if(i===o-1)return n[i];c=!1}return n[i]+(n[i+1]-n[i])*s}var s=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),o=e.c,i=e.v,a=e.o,s=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=n(i[t],i[t+1],a[t],s[t+1]),u+=c[t].addedLength;return o&&l&&(c[t]=n(i[t],i[0],a[t],s[0]),u+=c[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,o,i,l,c){i<0?i=0:i>1&&(i=1);var u,d=a(i,c),p=a(l=l>1?1:l,c),h=t.length,m=1-d,f=1-p,g=m*m*m,v=d*m*m*3,y=d*d*m*3,b=d*d*d,C=m*m*f,S=d*m*f+m*d*f+m*m*p,x=d*d*f+m*d*p+d*m*p,_=d*d*p,E=m*f*f,k=d*f*f+m*p*f+m*f*p,w=d*p*f+m*p*p+d*f*p,I=d*p*p,P=f*f*f,T=p*f*f+f*p*f+f*f*p,D=p*p*f+f*p*p+p*f*p,A=p*p*p;for(u=0;u<h;u+=1)s[4*u]=e.round(1e3*(g*t[u]+v*r[u]+y*o[u]+b*n[u]))/1e3,s[4*u+1]=e.round(1e3*(C*t[u]+S*r[u]+x*o[u]+_*n[u]))/1e3,s[4*u+2]=e.round(1e3*(E*t[u]+k*r[u]+w*o[u]+I*n[u]))/1e3,s[4*u+3]=e.round(1e3*(P*t[u]+T*r[u]+D*o[u]+A*n[u]))/1e3;return s},getPointInSegment:function(t,n,r,o,i,s){var l=a(i,s),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*o[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*o[1]+l*l*l*n[1]))/1e3]},buildBezierData:i,pointOnLine2D:t,pointOnLine3D:function(n,r,o,i,a,s,l,c,u){if(0===o&&0===s&&0===u)return t(n,r,i,a,l,c);var d,p=e.sqrt(e.pow(i-n,2)+e.pow(a-r,2)+e.pow(s-o,2)),h=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-o,2)),m=e.sqrt(e.pow(l-i,2)+e.pow(c-a,2)+e.pow(u-s,2));return(d=p>h?p>m?p-h-m:m-h-p:m>h?m-h-p:h-p-m)>-1e-4&&d<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,o=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,a,s,l,c,u,d,p,h,m=t.lastIndex,f=m,g=this.keyframes.length-1,v=!0;v;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===g-1&&e>=a.t-o){i.h&&(i=a),m=0;break}if(a.t-o>e){m=f;break}f<g-1?f+=1:(m=0,v=!1)}s=this.keyframesMetadata[f]||{};var y,b=a.t-o,C=i.t-o;if(i.to){s.bezierData||(s.bezierData=bez.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var S=s.bezierData;if(e>=b||e<C){var x=e>=b?S.points.length-1:0;for(c=S.points[x].point.length,l=0;l<c;l+=1)n[l]=S.points[x].point[l]}else{s.__fnct?h=s.__fnct:(h=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,s.__fnct=h),u=h((e-C)/(b-C));var _,E=S.segmentLength*u,k=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,v=!0,d=S.points.length;v;){if(k+=S.points[p].partialLength,0===E||0===u||p===S.points.length-1){for(c=S.points[p].point.length,l=0;l<c;l+=1)n[l]=S.points[p].point[l];break}if(E>=k&&E<k+S.points[p+1].partialLength){for(_=(E-k)/S.points[p+1].partialLength,c=S.points[p].point.length,l=0;l<c;l+=1)n[l]=S.points[p].point[l]+(S.points[p+1].point[l]-S.points[p].point[l])*_;break}p<d-1?p+=1:v=!1}t._lastPoint=p,t._lastAddedLength=k-S.points[p].partialLength,t._lastKeyframeIndex=f}}else{var w,I,P,T,D;if(g=i.s.length,y=a.s||i.e,this.sh&&1!==i.h)e>=b?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=C?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=Math.atan2(2*r*i-2*n*o,1-2*r*r-2*o*o),s=Math.asin(2*n*r+2*o*i),l=Math.atan2(2*n*i-2*r*o,1-2*n*n-2*o*o);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}(n,function(e,t,n){var r,o,i,a,s,l=[],c=e[0],u=e[1],d=e[2],p=e[3],h=t[0],m=t[1],f=t[2],g=t[3];return(o=c*h+u*m+d*f+p*g)<0&&(o=-o,h=-h,m=-m,f=-f,g=-g),1-o>1e-6?(r=Math.acos(o),i=Math.sin(r),a=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(a=1-n,s=n),l[0]=a*c+s*h,l[1]=a*u+s*m,l[2]=a*d+s*f,l[3]=a*p+s*g,l}(r(i.s),r(y),(e-C)/(b-C)));else for(f=0;f<g;f+=1)1!==i.h&&(e>=b?u=1:e<C?u=0:(i.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[f]?h=s.__fnct[f]:(w=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],I=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],P=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],T=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],h=BezierFactory.getBezierEasing(w,I,P,T).get,s.__fnct[f]=h)):s.__fnct?h=s.__fnct:(w=i.o.x,I=i.o.y,P=i.i.x,T=i.i.y,h=BezierFactory.getBezierEasing(w,I,P,T).get,i.keyframeMetadata=h),u=h((e-C)/(b-C)))),y=a.s||i.e,D=1===i.h?i.s[f]:i.s[f]+(y[f]-i.s[f])*u,"multidimensional"===this.propType?n[f]=D:n=D}return t.lastIndex=m,n}function r(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,o=Math.cos(t/2),i=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*a+o*i*c,s*i*a+o*l*c,o*l*a-s*i*c,o*i*a-s*l*c]}function o(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(t,this._caching);this.pv=o}return this._caching.lastFrame=t,this.pv}function i(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,o=this.v.length;r<o;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=i,this.addEffect=s}function c(e,t,n,r){var o;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),o=0;o<l;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=i,this.addEffect=s}function u(t,r,l,c){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=l||1,this.elem=t,this.container=c,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=a,this.setVValue=i,this.interpolateValue=n,this.effectsSequence=[o.bind(this)],this.addEffect=s}function d(t,r,l,c){var u;this.propType="multidimensional";var d,p,h,m,f=r.k.length;for(u=0;u<f-1;u+=1)r.k[u].to&&r.k[u].s&&r.k[u+1]&&r.k[u+1].s&&(d=r.k[u].s,p=r.k[u+1].s,h=r.k[u].to,m=r.k[u].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+h[0],d[1]+h[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+h[0],d[1]+h[1],d[2]+h[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(r.k[u].to=null,r.k[u].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===h[0]&&0===h[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===p[2]&&0===h[2]&&0===m[2])&&(r.k[u].to=null,r.k[u].ti=null));this.effectsSequence=[o.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=c,this.comp=t.comp,this.getValue=a,this.setVValue=i,this.interpolateValue=n,this.frameId=-1;var g=r.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),u=0;u<g;u+=1)this.v[u]=e,this.pv[u]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=s}return{getProp:function(e,t,n,r,o){var i;if(t.k.length)if("number"===typeof t.k[0])i=new c(e,t,r,o);else switch(n){case 0:i=new u(e,t,r,o);break;case 1:i=new d(e,t,r,o)}else i=new l(e,t,r,o);return i.effectsSequence.length&&o.addDynamicProperty(i),i}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,o){var i;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!o)&&(i[r]=pointPool.newElement()),i[r][0]=e,i[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,o,i,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(o,i,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var i,a=this._length-1,s=this._length;for(i=o;i<s;i+=1)e.setTripleAt(t[a][0],t[a][1],r[a][0],r[a][1],n[a][0],n[a][1],i,!1),a-=1;return e};var shapePool=function(){var e=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}));return e.clone=function(t){var n,r=e.newElement(),o=void 0===t._length?t.v.length:t._length;for(r.setLength(o),r.c=t.c,n=0;n<o;n+=1)r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],n);return r},e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?r[t-=1]:new ShapeCollection},release:function(e){var o,i=e._length;for(o=0;o<i;o+=1)shapePool.release(e.shapes[o]);e._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=e,t+=1}},t=0,n=4,r=createSizedArray(n);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,o,i,a,s,l,c,u,d,p=n.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)r=h[0].s[0],i=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],i=!0;else{for(var m,f,g,v=p,y=h.length-1,b=!0;b&&(m=h[v],!((f=h[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(i=1===m.h)){if(e>=f.t-this.offsetTime)u=1;else if(e<m.t-this.offsetTime)u=0;else{var C;g.__fnct?C=g.__fnct:(C=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=C),u=C((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}o=f.s?f.s[0]:m.e[0]}r=m.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=p,a=0;a<l;a+=1)for(s=0;s<c;s+=1)d=i?r.i[a][s]:r.i[a][s]+(o.i[a][s]-r.i[a][s])*u,t.i[a][s]=d,d=i?r.o[a][s]:r.o[a][s]+(o.o[a][s]-r.o[a][s])*u,t.o[a][s]=d,d=i?r.v[a][s]:r.v[a][s]+(o.v[a][s]-r.v[a][s])*u,t.v[a][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==e&&(o<n&&t<n||o>r&&t>r)||(this._caching.lastIndex=o<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function o(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var o=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,o,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?o.pt.k:o.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=o,a.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=t,l.prototype.setVValue=o,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,o=this.s.v[1]/2,i=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-o,a.v[1][0]=i?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+o,a.v[3][0]=i?t-r:t+r,a.v[3][1]=n,a.i[0][0]=i?t-r*e:t+r*e,a.i[0][1]=n-o,a.i[1][0]=i?t+r:t-r,a.i[1][1]=n-o*e,a.i[2][0]=i?t+r*e:t-r*e,a.i[2][1]=n+o,a.i[3][0]=i?t-r:t+r,a.i[3][1]=n+o*e,a.o[0][0]=i?t+r*e:t-r*e,a.o[0][1]=n-o,a.o[1][0]=i?t+r:t-r,a.o[1][1]=n+o*e,a.o[2][0]=i?t-r*e:t+r*e,a.o[2][1]=n+o,a.o[3][0]=i?t-r:t+r,a.o[3][1]=n-o*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,o=2*Math.floor(this.pt.v),i=2*Math.PI/o,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*o),p=2*Math.PI*l/(2*o),h=-Math.PI/2;h+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<o;e+=1){n=a?c:u,r=a?d:p;var f=(t=a?s:l)*Math.cos(h),g=t*Math.sin(h),v=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),y=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-v*r*n*m,g-y*r*n*m,f+v*r*n*m,g+y*r*n*m,e,!0),a=!a,h+=i*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,o=this.os.v,i=2*Math.PI*r/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(a),c=r*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*i*o*s,c-d*i*o*s,l+u*i*o*s,c+d*i*o*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=bmMin(n,r,this.r.v),i=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+o,e+n,t-r+i,0,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-i,e+n,t+r-o,1,!0),0!==o?(this.v.setTripleAt(e+n-o,t+r,e+n-o,t+r,e+n-i,t+r,2,!0),this.v.setTripleAt(e-n+o,t+r,e-n+i,t+r,e-n+o,t+r,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-o,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+i,e-n,t-r+o,5,!0),this.v.setTripleAt(e-n+o,t-r,e-n+o,t-r,e-n+i,t-r,6,!0),this.v.setTripleAt(e+n-o,t-r,e+n-i,t-r,e+n-o,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+i,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+i,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+i,e+n,t-r+o,0,!0),0!==o?(this.v.setTripleAt(e+n-o,t-r,e+n-o,t-r,e+n-i,t-r,1,!0),this.v.setTripleAt(e-n+o,t-r,e-n+i,t-r,e-n+o,t-r,2,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+o,e-n,t-r+i,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-i,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n+o,t+r,e-n+o,t+r,e-n+i,t+r,5,!0),this.v.setTripleAt(e+n-o,t+r,e+n-i,t+r,e+n-o,t+r,6,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-o,e+n,t+r-i,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+i,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-i,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-i,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new a(e,t,n):5===n?r=new d(e,t):6===n?r=new c(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function d(r,o){var i=e(o),a=t(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function p(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,r,o,i,a,s,l,c,u,d,p,h,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=m,this.props[15]=f,this}function m(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function f(e,t,n,r,o,i,a,s,l,c,u,d,p,h,m,f){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===o&&1===i&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*i+g[15]*h,g[14]=g[14]*u+g[15]*m,g[15]*=f,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],C=g[3],S=g[4],x=g[5],_=g[6],E=g[7],k=g[8],w=g[9],I=g[10],P=g[11],T=g[12],D=g[13],A=g[14],R=g[15];return g[0]=v*e+y*o+b*l+C*p,g[1]=v*t+y*i+b*c+C*h,g[2]=v*n+y*a+b*u+C*m,g[3]=v*r+y*s+b*d+C*f,g[4]=S*e+x*o+_*l+E*p,g[5]=S*t+x*i+_*c+E*h,g[6]=S*n+x*a+_*u+E*m,g[7]=S*r+x*s+_*d+E*f,g[8]=k*e+w*o+I*l+P*p,g[9]=k*t+w*i+I*c+P*h,g[10]=k*n+w*a+I*u+P*m,g[11]=k*r+w*s+I*d+P*f,g[12]=T*e+D*o+A*l+R*p,g[13]=T*t+D*i+A*c+R*h,g[14]=T*n+D*a+A*u+R*m,g[15]=T*r+D*s+A*d+R*f,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function y(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function C(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function x(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function _(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function E(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,o=this.props[0]/e,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=o,s.props[12]=i,s.props[13]=a,s}function k(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function w(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=k(e[t]);return r}function I(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var o=this.props[0],i=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*o+e[1]*a+l,r[1]=e[0]*i+e[1]*s+c,r[2]=t[0]*o+t[1]*a+l,r[3]=t[0]*i+t[1]*s+c,r[4]=n[0]*o+n[1]*a+l,r[5]=n[0]*i+n[1]*s+c}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function D(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function A(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function R(){var e=this.props;return"matrix("+A(e[0])+","+A(e[1])+","+A(e[4])+","+A(e[5])+","+A(e[12])+","+A(e[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=p,this.setTransform=h,this.translate=m,this.transform=f,this.applyToPoint=C,this.applyToX=S,this.applyToY=x,this.applyToZ=_,this.applyToPointArray=P,this.applyToTriplePoints=I,this.applyToPointStringified=T,this.toCSS=D,this.to2dCSS=R,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=w,this.inversePoint=k,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"===typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,o){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var a,s,l=[],c=i.length;for(a=0;a<c;a+=1){var u,d;(s=i[a]).e*o<r||s.s*o>r+n||(u=s.s*o<=r?0:(s.s*o-r)/n,d=s.e*o>=r+n?1:(s.e*o-r)/n,l.push([u,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,o;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,d,p=this.shapes.length,h=0;if(n===t)for(o=0;o<p;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(o=0;o<p;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var m,f,g=[];for(o=0;o<p;o+=1)if((m=this.shapes[o]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=m.shape.paths)._length,d=0,!m.shape._mdf&&m.pathsData.length)d=m.totalShapeLength;else{for(c=this.releasePathsData(m.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(r.shapes[s]),c.push(u),d+=u.totalLength;m.totalShapeLength=d,m.pathsData=c}h+=d,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var v,y=t,b=n,C=0;for(o=p-1;o>=0;o-=1)if((m=this.shapes[o]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(t,n,m.totalShapeLength,C,h),C+=m.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:m.totalShapeLength*y,e:m.totalShapeLength*b}):y>=1?g.push({s:m.totalShapeLength*(y-1),e:m.totalShapeLength*(b-1)}):(g.push({s:m.totalShapeLength*y,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(b-1)}));var S=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var x=S.pop();this.addPaths(S,f),S=this.addShapes(m,g[1],x)}else this.addPaths(S,f),S=this.addShapes(m,g[1]);this.addPaths(S,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,o,i,a){o.setXYAt(t[0],t[1],"o",i),o.setXYAt(n[0],n[1],"i",i+1),a&&o.setXYAt(e[0],e[1],"v",i),o.setXYAt(r[0],r[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,o,i,a,s,l,c,u,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,m=0,f=[],g=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),f.push(n),r=0;r<h;r+=1){for(l=d[r].lengths,n.c=p[r].c,i=p[r].c?l.length:l.length+1,o=1;o<i;o+=1)if(m+(a=l[o-1]).addedLength<t.s)m+=a.addedLength,n.c=!1;else{if(m>t.e){n.c=!1;break}t.s<=m&&t.e>=m+a.addedLength?(this.addSegment(p[r].v[o-1],p[r].o[o-1],p[r].i[o],p[r].v[o],n,s,g),g=!1):(c=bez.getNewSegment(p[r].v[o-1],p[r].v[o],p[r].o[o-1],p[r].i[o],(t.s-m)/a.addedLength,(t.e-m)/a.addedLength,l[o-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),m+=a.addedLength,s+=1}if(p[r].c&&l.length){if(a=l[o-1],m<=t.e){var v=l[o-1].addedLength;t.s<=m&&t.e>=m+v?(this.addSegment(p[r].v[o-1],p[r].o[o-1],p[r].i[0],p[r].v[0],n,s,g),g=!1):(c=bez.getNewSegment(p[r].v[o-1],p[r].v[0],p[r].o[o-1],p[r].i[0],(t.s-m)/v,(t.e-m)/v,l[o-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;m+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),m>t.e)break;r<h-1&&(n=shapePool.newElement(),g=!0,f.push(n),s=0)}return f},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],o=e._length,i=0;for(i=0;i<o;i+=1)r[0]+=e.v[i][0],r[1]+=e.v[i][1];r[0]/=o,r[1]/=o;var a,s,l,c,u,d,p=shapePool.newElement();for(p.c=e.c,i=0;i<o;i+=1)a=e.v[i][0]+(r[0]-e.v[i][0])*n,s=e.v[i][1]+(r[1]-e.v[i][1])*n,l=e.o[i][0]+(r[0]-e.o[i][0])*-n,c=e.o[i][1]+(r[1]-e.o[i][1])*-n,u=e.i[i][0]+(r[0]-e.i[i][0])*-n,d=e.i[i][1]+(r[1]-e.i[i][1])*-n,p.setTripleAt(a,s,l,c,u,d,i);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,o=t.or.k.length;for(r=0;r<o;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,o;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],o=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),o[0]=i.getValueAtTime(i.keyframes[0].t/n,0),o[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),o[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,a.pv],o[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=o=e;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",o=t.length,i=0;i<o;i+=1)switch(t[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,o,i){var a=i?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-o),l=r.s.v[1]+(1-r.s.v[1])*(1-o);e.translate(r.p.v[0]*a*o,r.p.v[1]*a*o,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*o),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(i?1/s:s,i?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,o,i,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=l;var p=this.o.v,h=p%1,m=p>0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,C=0;if(p>0){for(;C<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),C+=h)}else if(p<0){for(;C>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),C-=h)}for(r=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==C){for((0!==r&&1===o||r!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];C+=1,i-=1,r+=o}}else for(i=this._currentCopies,r=0,o=1;i;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,r+=o;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var o,i,a,s,l,c,u,d,p,h,m,f,g=e._length,v=0;for(n=0;n<g;n+=1)o=e.v[n],a=e.o[n],i=e.i[n],o[0]===a[0]&&o[1]===a[1]&&o[0]===i[0]&&o[1]===i[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=m=o[0]+(s[0]-o[0])*c,d=f=o[1]-(o[1]-s[1])*c,p=u-(u-o[0])*roundCorner,h=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,p,h,m,f,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=p=o[0]+(s[0]-o[0])*c,d=h=o[1]+(s[1]-o[1])*c,m=u-(u-o[0])*roundCorner,f=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,p,h,m,f,v),v+=1):(r.setTripleAt(o[0],o[1],a[0],a[1],i[0],i[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function o(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var o=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,o=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&o.push(n[t]);return o.join(",")}(e)+", "+t,{node:r,w:o,parent:n}}function i(e,t){var n,r=document.body&&t?"svg":"canvas",o=getFontProperties(e);if("svg"===r){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",o.style),i.setAttribute("font-weight",o.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),n=i}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=o.style+" "+o.weight+" 100px "+e.fFamily,n=a}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}var a=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};a.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},a.isZeroWidthJoiner=function(e,t){return t?e===r[0]&&t===r[1]:e===r[1]},a.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var s={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,o=e.length,i=this.chars.length;for(t=0;t<o;t+=1){for(n=0,r=!1;n<i;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),i+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=i(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,a=r.length,s=a;for(n=0;n<a;n+=1){var l,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=o(r[n].fFamily,"monospace"),r[n].sansCase=o(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("f-family",r[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(d)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[n].fPath)&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.type="text/css",p.rel="stylesheet",p.href=r[n].fPath,document.body.appendChild(p)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",r[n].fPath),t.appendChild(h)}}}else r[n].loaded=!0,s-=1;r[n].helper=i(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var o=0,i=this.chars.length;o<i;){if(this.chars[o].ch===t&&this.chars[o].style===n&&this.chars[o].fFamily===r)return this.chars[o];o+=1}return("string"===typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),o=e.charCodeAt(0);if(!r.cache[o+1]){var i=r.helper;if(" "===e){var a=i.measureText("|"+e+"|"),s=i.measureText("||");r.cache[o+1]=(a-s)/100}else r.cache[o+1]=i.measureText(e)/100}return r.cache[o+1]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,o=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(o-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return a.prototype=s,a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),o=t.viewData.length;for(n=0;n<o;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<o;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var o="";o="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var i="unidimensional"===n?new Number(o):Object.assign({},o);return i.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===n?o[0]:o,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(o){return o?"unidimensional"===o.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,o=t.pv*r,i=new Number(o);return i.value=o,n(i,t,"unidimensional"),function(){return t.k&&t.getValue(),o=t.v*r,i.value!==o&&((i=new Number(o)).value=o,n(i,t,"unidimensional")),i}}(o):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,o=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",o),a=createTypedArray("float32",o);return i.value=a,n(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<o;t+=1)a[t]=e.v[t]*r,i[t]=a[t];return i}}(o):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,o,i;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[n(),r(),o?o():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function o(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=i,d.toWorld=n,d.toWorldVec=t,d.fromWorld=o,d.fromWorldVec=r,d.toComp=n,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c;var p=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=0===c.data.ty?c.data.h:100,d.width=0===c.data.ty?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,c)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,o,i){function a(e){for(var t=n.ef,r=0,o=t.length;r<o;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(a,o),c=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?c.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):c.push(t(r.effectElements[s],n.ef[s].ty,i,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),a.enabled=0!==n.en,a.active=a.enabled,a}function t(e,t,n,r){var o=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):o()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,o=[],i=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)o.push(e(i[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,a=s.length;r<a;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return o[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},ShapePathInterface=function(e,t,n){var r=t.sh;function o(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?o.path:null}var i=propertyGroupFactory(o,n);return r.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(o,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),o},ShapeExpressionInterface=function(){function e(e,a,p){var h,m=[],f=e?e.length:0;for(h=0;h<f;h+=1)"gr"===e[h].ty?m.push(t(e[h],a[h],p)):"fl"===e[h].ty?m.push(n(e[h],a[h],p)):"st"===e[h].ty?m.push(o(e[h],a[h],p)):"tm"===e[h].ty?m.push(i(e[h],a[h],p)):"tr"===e[h].ty||("el"===e[h].ty?m.push(s(e[h],a[h],p)):"sr"===e[h].ty?m.push(l(e[h],a[h],p)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],a[h],p)):"rc"===e[h].ty?m.push(c(e[h],a[h],p)):"rd"===e[h].ty?m.push(u(e[h],a[h],p)):"rp"===e[h].ty?m.push(d(e[h],a[h],p)):"gf"===e[h].ty?m.push(r(e[h],a[h],p)):m.push((e[h],a[h],function(){return null})));return m}function t(t,n,r){var o=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,r);var i=function(t,n,r){var o,i=function(e){for(var t=0,n=o.length;t<n;){if(o[t]._name===e||o[t].mn===e||o[t].propertyIndex===e||o[t].ix===e||o[t].ind===e)return o[t];t+=1}return"number"===typeof e?o[e-1]:null};i.propertyGroup=propertyGroupFactory(i,r),o=e(t.it,n.it,i.propertyGroup),i.numProperties=o.length;var s=a(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.transform=s,i.propertyIndex=t.cix,i._name=t.nm,i}(t,n,o.propertyGroup),s=a(t.it[t.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.content=i,o.transform=s,Object.defineProperty(o,"_name",{get:function(){return t.nm}}),o.numProperties=t.np,o.propertyIndex=t.ix,o.nm=t.nm,o.mn=t.mn,o}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function o(e,t,n){var r,o=propertyGroupFactory(c,n),i=propertyGroupFactory(l,o);function a(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(i);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",o)),t.o.setGroupProperty(PropertyInterface("Opacity",o)),t.w.setGroupProperty(PropertyInterface("Stroke Width",o)),c}function i(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var o=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",o)),t.e.setGroupProperty(PropertyInterface("End",o)),t.o.setGroupProperty(PropertyInterface("Offset",o)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function a(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var o=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function s(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var o=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var o=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",o)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),i.pt.setGroupProperty(PropertyInterface("Points",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var o=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",o)),i.s.setGroupProperty(PropertyInterface("Size",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var o=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var o=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",o)),i.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var o;function i(e){if("number"===typeof e)return 0===(e=void 0===e?1:e)?r:o[e-1];for(var t=0,n=o.length;t<n;){if(o[t]._name===e)return o[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,(function(){return r})),o=e(t,n,i.propertyGroup),i.numProperties=o.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t,n;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return r!==t&&(e.textProperty.currentData.t=t,(n=new String(r)).value=r||new String(r)),n}}),r},getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var o,i=r.length;for(n=0;n<i;n+=1)o=new GroupEffect(r[n],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,o=this.data.ef.length,i=this.data.ef;for(n=0;n<o;n+=1){switch(r=null,i[n].ty){case 0:r=new SliderEffect(i[n],t,this);break;case 1:r=new AngleEffect(i[n],t,this);break;case 2:r=new ColorEffect(i[n],t,this);break;case 3:r=new PointEffect(i[n],t,this);break;case 4:case 7:r=new CheckboxEffect(i[n],t,this);break;case 10:r=new LayerIndexEffect(i[n],t,this);break;case 11:r=new MaskIndexEffect(i[n],t,this);break;case 5:r=new EffectsManager(i[n],t,this);break;default:r=new NoValueEffect(i[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=function(){var e=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof$2(n=n[e])?r:n;var o=e.indexOf(t);if(-1!==o){var i=parseInt(e.substr(o+t.length),10);return"object"===_typeof$2(n=n[i])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t};return function(t){function n(e){return"Data"===e?n.dataInterface:null}return n._name="Data",n.dataInterface=e(t),n}}();function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,o,i=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,d,p,h=this.masksProperties,m=0,f=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<a;r+=1)if(("a"!==h[r].mode&&"n"!==h[r].mode||h[r].inv||100!==h[r].o.k||h[r].o.x)&&(v="mask",y="mask"),"s"!==h[r].mode&&"i"!==h[r].mode||0!==m?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),f.push(c)),o=createNS("path"),"n"===h[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),elem:o,lastPath:""},i.appendChild(o);else{var b;if(m+=1,o.setAttribute("fill","s"===h[r].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==h[r].x.k?(v="mask",y="mask",p=PropertyFactory.getProp(this.element,h[r].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),i.appendChild(u),o.setAttribute("stroke","s"===h[r].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[r]={elem:o,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[r].mode){l=f.length;var C=createNS("g");for(s=0;s<l;s+=1)C.appendChild(f[s]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",g+"_"+m),S.appendChild(o),i.appendChild(S),C.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+m+")"),f.length=0,f.push(C)}else f.push(o);h[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(h[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),a=f.length,r=0;r<a;r+=1)this.maskElement.appendChild(f[r]);m>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,o=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<o;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,o=this.layers,i=0,a=o.length;i<a;)o[i].ind==t&&(r[i]&&!0!==r[i]?(n.push(r[i]),r[i].setAsParent(),void 0!==o[i].parent?this.buildElementParenting(e,o[i].parent,n):e.setHierarchy(n)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"===typeof n)t=this.elements[n];else{var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,o=this.comp;r;)o.finalTransform?(o.data.hasMask&&t.splice(0,0,o.finalTransform),o=o.comp):r=!1;var i,a=t.length;for(n=0;n<a;n+=1)i=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,o,i=" M"+t.v[0][0]+","+t.v[0][1];for(o=t._length,r=1;r<o;r+=1)i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&o>1&&(i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",a)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",o=e.data.ef?e.data.ef.length:0,i=createElementID(),a=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<o;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(n=new(0,registeredEffects[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,n){registeredEffects[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var o=createNS("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o),featureSupport.maskType||1!=this.data.td||(o.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),r=n,o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type","alpha");var a=createNS("g");i.appendChild(a),e=createElementID(),t=filtersFactory.createFilter(e);var s=createNS("feComponentTransfer");s.setAttribute("in","SourceGraphic"),t.appendChild(s);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),s.appendChild(l),this.globalData.defs.appendChild(t);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),a.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),a.appendChild(c),a.appendChild(this.layerElement),r=a,featureSupport.maskType||(i.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),a.appendChild(c),n.appendChild(this.layerElement),r=n,a.appendChild(n)),this.globalData.defs.appendChild(i)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var u=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=createElementID();if(u.setAttribute("id",p),u.appendChild(d),this.globalData.defs.appendChild(u),this.checkMasks()){var h=createNS("g");h.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),h.appendChild(this.layerElement),this.transformedElement=h,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,o=e.length;r<o;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,a=t.length||0;for(o=0;o<a;o+=1)i=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=i.k||this.k,this.dataProps[o]={n:t[o].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,o=4*this.data.p;for(t=0;t<o;t+=1)n=t%4===0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)n=t%2===0?100:1,r=t%2===0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var o,i,a,s=[];for(a=4*t.g.p,i=0;i<a;i+=4)o=createNS("stop"),r.appendChild(o),s.push(o);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,o,i=createNS("mask"),a=createNS("path");i.appendChild(a);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<o;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=i,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var o,i=e.o,a=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<t;o+=1)l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[o][0],a[o][1])+" "+r.applyToPointStringified(s[o][0],s[o][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function o(n,r,o){var i,a,s,l,c,u,d,p,h,m,f,g=r.styles.length,v=r.lvl;for(u=0;u<g;u+=1){if(l=r.sh._mdf||o,r.styles[u].lvl<v){for(p=t.reset(),m=v-r.styles[u].lvl,f=r.transformers.length-1;!l&&m>0;)l=r.transformers[f].mProps._mdf||l,m-=1,f-=1;if(l)for(m=v-r.styles[u].lvl,f=r.transformers.length-1;m>0;)h=r.transformers[f].mProps.v.props,p.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),m-=1,f-=1}else p=e;if(a=(d=r.sh.paths)._length,l){for(s="",i=0;i<a;i+=1)(c=d.shapes[i])&&c._length&&(s+=buildShapeString(c,c._length,c.c,p));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=l||r.styles[u]._mdf}}function i(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){s(e,t,n),l(0,t,n)}function s(e,t,n){var r,o,i,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||n){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||n){var h=1===e.t?"x1":"cx",m="x1"===h?"y1":"cy";l.setAttribute(h,u[0]),l.setAttribute(m,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(m,u[1]))}if(t.g._cmdf||n){r=t.cst;var f=t.g.c;for(i=r.length,o=0;o<i;o+=1)(a=r[o]).setAttribute("offset",f[4*o]+"%"),a.setAttribute("stop-color","rgb("+f[4*o+1]+","+f[4*o+2]+","+f[4*o+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(i=(r=t.g._collapsable?t.cst:t.ost).length,o=0;o<i;o+=1)a=r[o],t.g._collapsable||a.setAttribute("offset",g[2*o]+"%"),a.setAttribute("stop-opacity",g[2*o+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var v=Math.atan2(d[1]-u[1],d[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,C=Math.cos(v+t.a.v)*b+u[0],S=Math.sin(v+t.a.v)*b+u[1];l.setAttribute("fx",C),l.setAttribute("fy",S),c&&!t.g._collapsable&&(t.of.setAttribute("fx",C),t.of.setAttribute("fy",S))}}function l(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,o,i){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=o,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,o=this.shapes.length,i=this.stylesList.length,a=[],s=!1;for(n=0;n<i;n+=1){for(r=this.stylesList[n],s=!1,a.length=0,e=0;e<o;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),o=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var o=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,o,i,a){var s,l,c,u,d,p,h=[].concat(i),m=e.length-1,f=[],g=[];for(s=m;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=n[p-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],o),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),f.push(t[s].style);else if("gr"===e[s].ty){if(p)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,o+1,h,a),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,h.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,o)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty?(p?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(m=f.length,s=0;s<m;s+=1)f[s].closed=!0;for(m=g.length,s=0;s<m;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,o,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,a=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(r=0;r<o;r+=1)i=n!==this.keysIndex?this.effectsSequence[r](i,i.t):this.effectsSequence[r](this.currentData,i.t);t!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],o=0,i=e.length,a=!1;o<i;)t=e.charCodeAt(o),FontManager.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(o):t>=55296&&t<=56319?(n=e.charCodeAt(o+1))>=56320&&n<=57343?(a||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(o,2),a=!1):r.push(e.substr(o,2)),o+=1):r.push(e.charAt(o)):t>56319?(n=e.charCodeAt(o+1),FontManager.isZeroWidthJoiner(t,n)?(a=!0,r[r.length-1]+=e.substr(o,2),o+=1):r.push(e.charAt(o))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(o),a=!0):r.push(e.charAt(o)),o+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,o,i,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],d=0,p=c.m.g,h=0,m=0,f=0,g=[],v=0,y=0,b=l.getFontByName(e.f),C=0,S=getFontProperties(b);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var x,_=e.tr/1e3*e.finalSize;if(e.sz)for(var E,k,w=!0,I=e.sz[0],P=e.sz[1];w;){E=0,v=0,n=(k=this.buildFinalText(e.t)).length,_=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)x=k[t].charCodeAt(0),r=!1," "===k[t]?T=t:13!==x&&3!==x||(v=0,r=!0,E+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(k[t],b.fStyle,b.fFamily),C=r?0:s.w*e.finalSize/100):C=l.measureText(k[t],e.f,e.finalSize),v+C>I&&" "!==k[t]?(-1===T?n+=1:t=T,E+=e.finalLineHeight||1.2*e.finalSize,k.splice(t,T===t?1:0,"\r"),T=-1,v=0):(v+=C,v+=_);E+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,n=e.finalText.length,w=!1)}v=-_,C=0;var D,A=0;for(t=0;t<n;t+=1)if(r=!1,13===(x=(D=e.finalText[t]).charCodeAt(0))||3===x?(A=0,g.push(v),y=v>y?v:y,v=-2*_,o="",r=!0,f+=1):o=D,l.chars?(s=l.getCharData(D,b.fStyle,l.getFontByName(e.f).fFamily),C=r?0:s.w*e.finalSize/100):C=l.measureText(o,e.f,e.finalSize)," "===D?A+=C+_:(v+=C+_+A,A=0),u.push({l:C,an:C,add:h,n:r,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),2==p){if(h+=C,""===o||" "===o||t===n-1){for(""!==o&&" "!==o||(h-=C);m<=t;)u[m].an=h,u[m].ind=d,u[m].extra=C,m+=1;d+=1,h=0}}else if(3==p){if(h+=C,""===o||t===n-1){for(""===o&&(h-=C);m<=t;)u[m].an=h,u[m].ind=d,u[m].extra=C,m+=1;h=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var R,N,M,F,B=c.a;a=B.length;var O=[];for(i=0;i<a;i+=1){for((R=B[i]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),F=0,M=R.s.b,t=0;t<n;t+=1)(N=u[t]).anIndexes[i]=F,(1==M&&""!==N.val||2==M&&""!==N.val&&" "!==N.val||3==M&&(N.n||" "==N.val||t==n-1)||4==M&&(N.n||t==n-1))&&(1===R.s.rn&&O.push(F),F+=1);c.a[i].s.totalChars=F;var L,H=-1;if(1===R.s.rn)for(t=0;t<n;t+=1)H!=(N=u[t]).anIndexes[i]&&(H=N.anIndexes[i],L=O.splice(Math.floor(Math.random()*O.length),1)[0]),N.anIndexes[i]=L}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,i=0,a=1,s=1;this.ne.v>0?o=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(o,i,a,s).get,c=0,u=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)c=l(c=d===u?r>=d?1:0:e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(3===p)c=l(c=d===u?r>=d?0:1:1-e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(4===p)d===u?c=0:(c=e(0,t(.5/(d-u)+(r-u)/(d-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(d===u)c=0;else{var h=d-u,m=-h/2+(r=t(e(0,r+.5-u),d-u)),f=h/2;c=Math.sqrt(1-m*m/(f*f))}c=l(c)}else 6===p?(d===u?c=0:(r=t(e(0,r+.5-u),d-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(d-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(d,1)-(u-r):d-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;c<v?c=0:(c=(c-v)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,o=this.e.v/t+n;if(r>o){var i=r;r=o,o=i}this.finalS=r,this.finalE=o}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},o=PropertyFactory.getProp,i=t.a;this.a={r:i.r?o(e,i.r,0,degToRads,n):r,rx:i.rx?o(e,i.rx,0,degToRads,n):r,ry:i.ry?o(e,i.ry,0,degToRads,n):r,sk:i.sk?o(e,i.sk,0,degToRads,n):r,sa:i.sa?o(e,i.sa,0,degToRads,n):r,s:i.s?o(e,i.s,1,.01,n):r,a:i.a?o(e,i.a,1,0,n):r,o:i.o?o(e,i.o,0,.01,n):r,p:i.p?o(e,i.p,1,0,n):r,sw:i.sw?o(e,i.sw,0,0,n):r,sc:i.sc?o(e,i.sc,1,0,n):r,fc:i.fc?o(e,i.fc,1,0,n):r,fh:i.fh?o(e,i.fh,0,0,n):r,fs:i.fs?o(e,i.fs,0,.01,n):r,fb:i.fb?o(e,i.fb,0,.01,n):r,t:i.t?o(e,i.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S=this._moreOptions.alignment.v,x=this._animatorsData,_=this._textData,E=this.mHelper,k=this._renderType,w=this.renderedLetters.length,I=e.l;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=C.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},i=T._length-1,v=0,o=0;o<i;o+=1)P=bez.buildBezierData(T.v[o],T.v[o+1],[T.o[o][0]-T.v[o][0],T.o[o][1]-T.v[o][1]],[T.i[o+1][0]-T.v[o+1][0],T.i[o+1][1]-T.v[o+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;o=i,C.v.c&&(P=bez.buildBezierData(T.v[o],T.v[0],[T.o[o][0]-T.v[o][0],T.o[o][1]-T.v[o][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,c=0,u=!0,f=a.segments,s<0&&C.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(m=f[p=f.length-1].points).length-1;s<0;)s+=m[d].partialLength,(d-=1)<0&&(d=(m=f[p-=1].points).length-1);h=(m=f[p].points)[d-1],g=(l=m[d]).partialLength}i=I.length,n=0,r=0;var D,A,R,N,M,F=1.2*e.finalSize*.714,B=!0;R=x.length;var O,L,H,V,z,U,W,G,j,q,K,Y,X=-1,Q=s,Z=p,J=d,$=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,oe=2===e.j?-.5:-1,ie=0,ae=!0;for(o=0;o<i;o+=1)if(I[o].n){for(ne&&(ne+=re);ie<o;)I[ie].animatorJustifyOffset=ne,ie+=1;ne=0,ae=!0}else{for(A=0;A<R;A+=1)(D=x[A].a).t.propType&&(ae&&2===e.j&&(re+=D.t.v*oe),(M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars)).length?ne+=D.t.v*M[0]*oe:ne+=D.t.v*M*oe);ae=!1}for(ne&&(ne+=re);ie<o;)I[ie].animatorJustifyOffset=ne,ie+=1}for(o=0;o<i;o+=1){if(E.reset(),V=1,I[o].n)n=0,r+=e.yOffset,r+=B?1:0,s=Q,B=!1,this._hasMaskedPath&&(d=J,h=(m=f[p=Z].points)[d-1],g=(l=m[d]).partialLength,c=0),ee="",K="",j="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==I[o].line){switch(e.j){case 1:s+=v-e.lineWidths[I[o].line];break;case 2:s+=(v-e.lineWidths[I[o].line])/2}$=I[o].line}X!==I[o].ind&&(I[X]&&(s+=I[X].extra),s+=I[o].an/2,X=I[o].ind),s+=S[0]*I[o].an*.005;var se=0;for(A=0;A<R;A+=1)(D=x[A].a).p.propType&&((M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars)).length?se+=D.p.v[0]*M[0]:se+=D.p.v[0]*M),D.a.propType&&((M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars)).length?se+=D.a.v[0]*M[0]:se+=D.a.v[0]*M);for(u=!0,this._pathData.a.v&&(s=.5*I[0].an+(v-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*X/(i-1),s+=this._pathData.f.v);u;)c+g>=s+se||!m?(y=(s+se-c)/l.partialLength,L=h.point[0]+(l.point[0]-h.point[0])*y,H=h.point[1]+(l.point[1]-h.point[1])*y,E.translate(-S[0]*I[o].an*.005,-S[1]*F*.01),u=!1):m&&(c+=l.partialLength,(d+=1)>=m.length&&(d=0,f[p+=1]?m=f[p].points:C.v.c?(d=0,m=f[p=0].points):(c-=l.partialLength,m=null)),m&&(h=l,g=(l=m[d]).partialLength));O=I[o].an/2-I[o].add,E.translate(-O,0,0)}else O=I[o].an/2-I[o].add,E.translate(-O,0,0),E.translate(-S[0]*I[o].an*.005,-S[1]*F*.01,0);for(A=0;A<R;A+=1)(D=x[A].a).t.propType&&(M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?M.length?s+=D.t.v*M[0]:s+=D.t.v*M:M.length?n+=D.t.v*M[0]:n+=D.t.v*M));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(z=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(W=[e.fc[0],e.fc[1],e.fc[2]]),A=0;A<R;A+=1)(D=x[A].a).a.propType&&((M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars)).length?E.translate(-D.a.v[0]*M[0],-D.a.v[1]*M[1],D.a.v[2]*M[2]):E.translate(-D.a.v[0]*M,-D.a.v[1]*M,D.a.v[2]*M));for(A=0;A<R;A+=1)(D=x[A].a).s.propType&&((M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars)).length?E.scale(1+(D.s.v[0]-1)*M[0],1+(D.s.v[1]-1)*M[1],1):E.scale(1+(D.s.v[0]-1)*M,1+(D.s.v[1]-1)*M,1));for(A=0;A<R;A+=1){if(D=x[A].a,M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars),D.sk.propType&&(M.length?E.skewFromAxis(-D.sk.v*M[0],D.sa.v*M[1]):E.skewFromAxis(-D.sk.v*M,D.sa.v*M)),D.r.propType&&(M.length?E.rotateZ(-D.r.v*M[2]):E.rotateZ(-D.r.v*M)),D.ry.propType&&(M.length?E.rotateY(D.ry.v*M[1]):E.rotateY(D.ry.v*M)),D.rx.propType&&(M.length?E.rotateX(D.rx.v*M[0]):E.rotateX(D.rx.v*M)),D.o.propType&&(M.length?V+=(D.o.v*M[0]-V)*M[0]:V+=(D.o.v*M-V)*M),e.strokeWidthAnim&&D.sw.propType&&(M.length?U+=D.sw.v*M[0]:U+=D.sw.v*M),e.strokeColorAnim&&D.sc.propType)for(G=0;G<3;G+=1)M.length?z[G]+=(D.sc.v[G]-z[G])*M[0]:z[G]+=(D.sc.v[G]-z[G])*M;if(e.fillColorAnim&&e.fc){if(D.fc.propType)for(G=0;G<3;G+=1)M.length?W[G]+=(D.fc.v[G]-W[G])*M[0]:W[G]+=(D.fc.v[G]-W[G])*M;D.fh.propType&&(W=M.length?addHueToRGB(W,D.fh.v*M[0]):addHueToRGB(W,D.fh.v*M)),D.fs.propType&&(W=M.length?addSaturationToRGB(W,D.fs.v*M[0]):addSaturationToRGB(W,D.fs.v*M)),D.fb.propType&&(W=M.length?addBrightnessToRGB(W,D.fb.v*M[0]):addBrightnessToRGB(W,D.fb.v*M))}}for(A=0;A<R;A+=1)(D=x[A].a).p.propType&&(M=x[A].s.getMult(I[o].anIndexes[A],_.a[A].s.totalChars),this._hasMaskedPath?M.length?E.translate(0,D.p.v[1]*M[0],-D.p.v[2]*M[1]):E.translate(0,D.p.v[1]*M,-D.p.v[2]*M):M.length?E.translate(D.p.v[0]*M[0],D.p.v[1]*M[1],-D.p.v[2]*M[2]):E.translate(D.p.v[0]*M,D.p.v[1]*M,-D.p.v[2]*M));if(e.strokeWidthAnim&&(j=U<0?0:U),e.strokeColorAnim&&(q="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,S[1]*F*.01+r,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(le+=180),E.rotate(-le*Math.PI/180)}E.translate(L,H,0),s-=S[0]*I[o].an*.005,I[o+1]&&X!==I[o+1].ind&&(s+=I[o].an/2,s+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,r,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(I[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[o].line]),0,0);break;case 2:E.translate(I[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[o].line])/2,0,0)}E.translate(0,-e.ls),E.translate(O,0,0),E.translate(S[0]*I[o].an*.005,S[1]*F*.01,0),n+=I[o].l+.001*e.tr*e.finalSize}"html"===k?ee=E.toCSS():"svg"===k?ee=E.to2dCSS():te=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Y=V}w<=o?(N=new LetterProps(Y,j,q,K,ee,te),this.renderedLetters.push(N),w+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[o],this.lettersChangedFlag=N.update(Y,j,q,K,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,r,o=t.length,i="";for(n=0;n<o;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,i+=buildShapeString(r,r.i.length,!0,e));return i},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,o){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),o=createElementID();r.setAttribute("id",o),r.textContent=t.title,this.svgElement.appendChild(r),n+=o}if(t&&t.description){var i=createNS("desc"),a=createElementID();i.setAttribute("id",a),i.textContent=t.description,this.svgElement.appendChild(i),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,o=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var a,s=n.length;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,i=e.ks.or.k.length;for(o=0;o<i;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],o="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(o),o=""):o+=e[t],t+=1;return r.push(o),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var o=n.fWeight,i=n.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,d=0,p=0,h=!0,m=.001*n.tr*n.finalSize;if(!u||l||n.sz){var f,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var v=createNS("g");a.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(d=-m,p+=n.yOffset,p+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,d,p),d+=s[e].l||0,d+=m),l){var y;if(1===(f=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(f.data,this.globalData,this);else{var b=emptyShapeData;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,n.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var C=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(C.layerElement),C.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var S=this.textContainer,x="start";switch(n.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}S.setAttribute("text-anchor",x),S.setAttribute("letter-spacing",m);var _=this.buildTextContents(n.finalText);for(t=_.length,p=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=_[e],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",S.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,p+=n.finalLineHeight;this.layerElement.appendChild(S)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,o,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=i[e],r=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var o=createElementID();n.setAttribute("id",o),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?n.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(n)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(r=this.elements[o].getBaseElement()),o+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var n=0;for(n=this._length;n<e;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var o=this.sequences[r];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var n,r=0,o=e.transforms.length,i=t;r<o&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=o-1;r>=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,o=this.element.finalTransform.mat,i=this.element.canvasContext,a=this.masksProperties.length;for(i.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),r=this.viewData[e].v,t=o.applyToPointArray(r.v[0][0],r.v[0][1],0),i.moveTo(t[0],t[1]);var l=r._length;for(s=1;s<l;s+=1)n=o.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=o.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);r.d=o,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,o){var i,a,s,l,c,u,d=e.length-1,p=[],h=[],m=[].concat(o);for(i=d;i>=0;i-=1){if((l=this.searchProcessedElement(e[i]))?t[i]=n[l-1]:e[i]._shouldRender=r,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)l?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],m),p.push(t[i].style);else if("gr"===e[i].ty){if(l)for(s=t[i].it.length,a=0;a<s;a+=1)t[i].prevViewData[a]=t[i].it[a];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,r,m)}else"tr"===e[i].ty?(l||(u=this.createTransformElement(e[i]),t[i]=u),m.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?l||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty?(l?(c=t[i]).closed=!1:((c=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[i].ty&&(l?(c=t[i]).closed=!0:(c=ShapeModifiers.getModifier(e[i].ty),t[i]=c,c.init(this,e,i,t),this.shapeModifiers.push(c),r=!1),h.push(c));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=h.length,i=0;i<d;i+=1)h[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,o,i,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),i=l.elements,"st"===s||"gs"===s?(d.strokeStyle="st"===s?l.co:l.grd,d.lineWidth=l.wi,d.lineCap=l.lc,d.lineJoin=l.lj,d.miterLimit=l.ml||0):d.fillStyle="fl"===s?l.co:l.grd,u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=i.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),o=(a=i[t].trNodes).length,r=0;r<o;r+=1)"m"===a[r].t?d.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?d.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(d.stroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&d.fill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var o,i;for(i=e,o=t.length-1;o>=0;o-=1)"tr"===t[o].ty?(i=n[o].transform,this.renderShapeTransform(e,i)):"sh"===t[o].ty||"el"===t[o].ty||"rc"===t[o].ty||"sr"===t[o].ty?this.renderPath(t[o],n[o]):"fl"===t[o].ty?this.renderFill(t[o],n[o],i):"st"===t[o].ty?this.renderStroke(t[o],n[o],i):"gf"===t[o].ty||"gs"===t[o].ty?this.renderGradientFill(t[o],n[o],i):"gr"===t[o].ty?this.renderShape(i,t[o].it,n[o].it):t[o].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,o,i=e.trNodes,a=t.paths,s=a._length;i.length=0;var l=e.transforms.finalTransform;for(o=0;o<s;o+=1){var c=a.shapes[o];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,o=t.style;if(!o.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)r=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=c*d,h=Math.cos(u+t.a.v)*p+s[0],m=Math.sin(u+t.a.v)*p+s[1];r=a.createRadialGradient(h,m,0,s[0],s[1],c)}var f=e.g.p,g=t.g.c,v=1;for(i=0;i<f;i+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*i+1]),r.addColorStop(g[4*i]/100,"rgba("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+","+v+")");o.grd=r}o.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,o,i,a,s,l,c,u,d,p,h,m,f=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,C=0,S=0,x=!0,_=0;for(r=0;r<o;r+=1){a=(i=this.globalData.fontManager.getCharData(e.finalText[r],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},v.reset(),y&&g[r].n&&(C=-b,S+=e.yOffset,S+=x?1:0,x=!1),d=(c=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,C,S),h=createSizedArray(d-1);var E=0;for(u=0;u<d;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,p=c[u].ks.k,m=[],s=1;s<l;s+=1)1===s&&m.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),m.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[s][0],p.i[s][1],0),v.applyToY(p.i[s][0],p.i[s][1],0),v.applyToX(p.v[s][0],p.v[s][1],0),v.applyToY(p.v[s][0],p.v[s][1],0));m.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[0][0],p.i[0][1],0),v.applyToY(p.i[0][0],p.i[0][1],0),v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),h[E]=m,E+=1}y&&(C+=g[r].l,C+=b),this.textSpans[_]?this.textSpans[_].elem=h:this.textSpans[_]={elem:h},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,o,i,a=this.canvasContext;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var u,d,p=null,h=null,m=null;for(e=0;e<t;e+=1)if(!c[e].n){if((s=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?p!==s.fc&&(p=s.fc,a.fillStyle=s.fc):p!==this.values.fill&&(p=this.values.fill,a.fillStyle=this.values.fill),r=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(d=u[n]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?m!==s.sw&&(m=s.sw,a.lineWidth=s.sw):m!==this.values.sWidth&&(m=this.values.sWidth,a.lineWidth=this.values.sWidth),s&&s.sc?h!==s.sc&&(h=s.sc,a.strokeStyle=s.sc):h!==this.values.stroke&&(h=this.values.stroke,a.strokeStyle=this.values.stroke),r=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(d=u[n]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),o=this.img.width,i=this.img.height,a=o/i,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(n=i)*s:n=(t=o)/s,r.drawImage(this.img,(o-t)/2,(i-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,n=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)r[t]=n[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,n=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(t=0;t<16;t+=1)r[t]=n[t];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var e,t,n,r;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),i=o[1]||"meet",a=o[0]||"xMidYMid",s=a.substr(0,4),l=a.substr(4);n=e/t,(r=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===i||r<n&&"slice"===i?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===s&&(r<n&&"meet"===i||r>n&&"slice"===i)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(r<n&&"meet"===i||r>n&&"slice"===i)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(r>n&&"meet"===i||r<n&&"slice"===i)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(r>n&&"meet"===i||r<n&&"slice"===i)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,o,i,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,o,i,a,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,o,i,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,o){this.getBoundsOfCurve(e,t,n,r);var i=this.shapeBoundingBox;o.x=bmMin(i.left,o.x),o.xMax=bmMax(i.right,o.xMax),o.y=bmMin(i.top,o.y),o.yMax=bmMax(i.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var o,i,a,s,l,c,u,d=[[e[0],r[0]],[e[1],r[1]]],p=0;p<2;++p)i=6*e[p]-12*t[p]+6*n[p],o=-3*e[p]+9*t[p]-9*n[p]+3*r[p],a=3*t[p]-3*e[p],i|=0,a|=0,0===(o|=0)&&0===i||(0===o?(s=-a/i)>0&&s<1&&d[p].push(this.calculateF(s,e,t,n,r,p)):(l=i*i-4*a*o)>=0&&((c=(-i+bmSqrt(l))/(2*o))>0&&c<1&&d[p].push(this.calculateF(c,e,t,n,r,p)),(u=(-i-bmSqrt(l))/(2*o))>0&&u<1&&d[p].push(this.calculateF(u,e,t,n,r,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,o,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*n[i]+3*(1-e)*bmPow(e,2)*r[i]+bmPow(e,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var o=e.keyframes[r].s;o>n&&(n=o)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=o,r.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,o,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,d=e.l;o=d.length;var p,h=this.mHelper,m="",f=0;for(r=0;r<o;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?u=(c=this.textSpans[f]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(c=this.textSpans[f],l=this.textPaths[f]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(h,p),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,C="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=C,b.webkitTransform=C,d[r].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=d[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var S=l.style,x="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=x,S.webkitTransform=x}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=c,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,o,i,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?s+=1:(i=this.textSpans[n],a=this.textPaths[n],o=l[s],s+=1,o._mdf.m&&(this.isMasked?i.setAttribute("transform",o.m):(i.style.webkitTransform=o.m,i.style.transform=o.m)),i.style.opacity=o.o,o.sw&&o._mdf.sw&&a.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&a.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(a.setAttribute("fill",o.fc),a.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var i=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=i,n.webkitPerspective=i,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),a=[o[0]/i,o[1]/i,o[2]/i],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,p,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var m=this.mat.toCSS();(h=d.container.style).transform=m,h.webkitTransform=m}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var o,i,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a],o=(this.layers[a].ddd?this.getThreeDContainerByPos(a):i.getBaseElement())||o),a+=1;o?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,o):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,o=createTag("div");styleDiv(o);var i=createTag("div");if(styleDiv(i),"3d"===t){(n=o.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=i.style).transform=s,r.webkitTransform=s}o.appendChild(i);var l={container:i,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var o,i=this.threeDElements[n].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var i=createNS("defs");o.appendChild(i),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=i,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,n=0,r=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t],r,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0===(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}function seedRandom(e,t){var n=this,r=256,o=t.pow(r,6),i=t.pow(2,52),a=2*i,s=255;function l(e){var t,n=e.length,o=this,i=0,a=o.i=o.j=0,l=o.S=[];for(n||(e=[n++]);i<r;)l[i]=i++;for(i=0;i<r;i++)l[i]=l[a=s&a+e[i%n]+(t=l[i])],l[a]=t;o.g=function(e){for(var t,n=0,i=o.i,a=o.j,l=o.S;e--;)t=l[i=s&i+1],n=n*r+l[s&(l[i]=l[a=s&a+t])+(l[a]=t)];return o.i=i,o.j=a,n}}function c(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function u(e,t){var n,r=[],o=_typeof$1(e);if(t&&"object"==o)for(n in e)try{r.push(u(e[n],t-1))}catch(i){}return r.length?r:"string"==o?e:e+"\0"}function d(e,t){for(var n,r=e+"",o=0;o<r.length;)t[s&o]=s&(n^=19*t[s&o])+r.charCodeAt(o++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(s,h,m){var f=[],g=d(u((h=!0===h?{entropy:!0}:h||{}).entropy?[s,p(e)]:null===s?function(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),p(t)}catch(a){var o=n.navigator,i=o&&o.plugins;return[+new Date,n,i,n.screen,p(e)]}}():s,3),f),v=new l(f),y=function(){for(var e=v.g(6),t=o,n=0;e<i;)e=(e+n)*r,t*=r,n=v.g(1);for(;e>=a;)e/=2,t/=2,n>>>=1;return(e+n)/t};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,d(p(v.S),e),(h.pass||m||function(e,n,r,o){return o&&(o.S&&c(o,v),e.state=function(){return c(v,{})}),r?(t.random=e,n):e})(y,g,"global"in h?h.global:this==t,h.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,o=[];for(n=0;n<r;n+=1)o[n]=-e[n];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof(e),r=_typeof(t);if("string"===n||"string"===r)return e+t;if(isNumerable(n,e)&&isNumerable(r,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"===typeof e[o]||e[o]instanceof Number)&&("number"===typeof t[o]||t[o]instanceof Number)?s[o]=e[o]+t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof(e),r=_typeof(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"===typeof e[o]||e[o]instanceof Number)&&("number"===typeof t[o]||t[o]instanceof Number)?s[o]=e[o]-t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}function mul(e,t){var n,r,o,i=_typeof(e),a=_typeof(t);if(isNumerable(i,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e[r]*t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,o,i=_typeof(e),a=_typeof(t);if(isNumerable(i,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e[r]/t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"===typeof e&&(e=parseInt(e,10)),"string"===typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"===typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),o=0;for(n=0;n<r;n+=1)o+=Math.pow(t[n]-e[n],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],o=e[1],i=e[2],a=Math.max(r,o,i),s=Math.min(r,o,i),l=(a+s)/2;if(a===s)t=0,n=0;else{var c=a-s;switch(n=l>.5?c/(2-a-s):c/(a+s),a){case r:t=(o-i)/c+(o<i?6:0);break;case o:t=(i-r)/c+2;break;case i:t=(r-o)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,o=e[0],i=e[1],a=e[2];if(0===i)t=a,r=a,n=a;else{var s=a<.5?a*(1+i):a+i-a*i,l=2*a-s;t=hue2rgb(l,s,o+1/3),n=hue2rgb(l,s,o),r=hue2rgb(l,s,o-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,o){if(void 0!==r&&void 0!==o||(r=t,o=n,t=0,n=1),n<t){var i=n;n=t,t=i}if(e<=t)return r;if(e>=n)return o;var a,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(o-r)*s;var l=r.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=r[a]+(o[a]-r[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var o=createTypedArray("float32",r),i=BMMath.random();for(n=0;n<r;n+=1)o[n]=e[n]+i*(t[n]-e[n]);return o}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var o,i=e.length,a=shapePool.newElement();a.setPathData(!!r,i);var s,l,c=[0,0];for(o=0;o<i;o+=1)s=t&&t[o]?t[o]:c,l=n&&n[o]?n[o]:c,a.setTripleAt(e[o][0],e[o][1],l[0]+e[o][0],l[1]+e[o][1],s[0]+e[o][0],s[1]+e[o][1],o,!0);return a}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,o=this.pv.length?this.pv.length:1,i=createTypedArray("float32",o),a=Math.floor(5*time);for(n=0,r=0;n<a;){for(r=0;r<o;r+=1)i[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)c[r]=this.pv[r]+i[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+i[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,o){return applyEase(easeOutBez,e,t,n,r,o)}function easeIn(e,t,n,r,o){return applyEase(easeInBez,e,t,n,r,o)}function ease(e,t,n,r,o){return applyEase(easeInOutBez,e,t,n,r,o)}function applyEase(e,t,n,r,o,i){void 0===o?(o=n,i=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(o)){var s,l=o.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(i[s]-o[s])*a+o[s];return c}return(i-o)*a+o}function nearestKey(e){var t,n,r,o=data.k.length;if(data.k.length&&"number"!==typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<o-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var i={};return i.index=n,i.time=r/elem.comp.globalData.frameRate,i}function key(e){var t,n,r;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=o.length,n=0;n<r;n+=1)t[n]=o[n],t.value[n]=o[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"===typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"===typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var o;for(o=0;o<t.length;o+=1)r+=Math.pow(n[o]-t[o],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,o=this.getValueAtTime(e),i=this.getValueAtTime(e+r);if(o.length)for(t=createTypedArray("float32",o.length),n=0;n<o.length;n+=1)t[n]=(i[n]-o[n])/r;else t=(i-o)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(n?o=u-(r=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=u-(o=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-o)/r)%2!==0)return this.getValueAtTime((r-(l-o)%r+o)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(o/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0),m=Math.floor((l-o)/r);if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=(p[i]-d[i])*m+h[i];return s}return(p-d)*m+h}if("continue"===e){var f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(f.length)).length,i=0;i<a;i+=1)s[i]=f[i]+(f[i]-g[i])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return f+(l-u)/.001*(f-g)}}return this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(n?o=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(o=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2===0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(o/this.comp.globalData.frameRate,0),h=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),m=Math.floor((u-l)/r)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=h[i]-(p[i]-d[i])*m;return s}return h-(p-d)*m}if("continue"===e){var f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(f.length)).length,i=0;i<a;i+=1)s[i]=f[i]+(f[i]-g[i])*(u-l)/.001;return s}return f+(f-g)*(u-l)/.001}}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,o=this.comp.renderedFrame/this.comp.globalData.frameRate,i=o-e,a=t>1?(o+e-i)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(i+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-o*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-h*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var a=i(e,t,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=o.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,o,i,s,l){var c=a(r,o,i,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===o.a?o.k.length:0,c.propertyIndex=o.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,o,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var o=r._length,i=r[e],a=r.v,s=createSizedArray(o);for(n=0;n<o;n+=1)s[n]="i"===e||"o"===e?[i[n][0]-a[n][0],i[n][1]-a[n][1]]:[i[n][0],i[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,o=this._segmentsLength,i=o.lengths,a=o.totalLength*e,s=0,l=i.length,c=0;s<l;){if(c+i[s].addedLength>a){var u=s,d=n.c&&s===l-1?0:s+1,p=(a-c)/i[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],p,i[s]);break}c+=i[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),o=this.pointOnPath(e+.001,t),i=o[0]-r[0],a=o[1]-r[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[i/s,a/s]:[-a/s,i/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,o){var i=u(e,t,n,r,o);return i.propertyIndex=t.ix,i.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,i):4===n&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,n,r,o){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result",r+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var a=this.createMergeNode(r,[o,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),this.matrixFilter=i;var a=createNS("feFuncR");a.setAttribute("type","table"),i.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,e.appendChild(i)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var o=this.filterManager.effectElements,i=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,n,r,o){var i=t.container.globalData.renderConfig.filterSize,a=t.data.fs||i;e.setAttribute("x",a.x||i.x),e.setAttribute("y",a.y||i.y),e.setAttribute("width",a.width||i.width),e.setAttribute("height",a.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(r,[r+"_drop_shadow_4",o]);e.appendChild(d)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,o=createNS("feMerge");for(o.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),o.appendChild(n),o.appendChild(n);return o}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),a=createElementID();i.setAttribute("id",a),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");o[0];)s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=i,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,o=this.paths.length;for(t=0;t<o;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();i="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(c=0;c<p;c+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",i)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+" "+n[0]+" "+t[0],i=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,o){for(var i,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),d=0,p=o-r,h=t-e;s<=256;)a=(i=s/256)<=l?h<0?o:r:i>=c?h<0?r:o:r+p*Math.pow((i-e)/h,1/n),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(r),i=n*Math.sin(r);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",r),e.appendChild(o),this.feGaussianBlur=o}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,o=n.children,i=0,a=o.length;i<a&&o[i]!==e.layerElement;)i+=1;i<=a-2&&(r=o[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(r);var i=createNS("symbol");i.setAttribute("id",n),this.replaceInParent(t,n),i.appendChild(t.layerElement),o.appendChild(i);var a=createNS("use");a.setAttribute("href","#"+n),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,o=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+o);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},20048:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,a=365.25*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var i=Math.abs(e);if(i>=o)return s(e,i,o,"day");if(i>=r)return s(e,i,r,"hour");if(i>=n)return s(e,i,n,"minute");if(i>=t)return s(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},93545:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},40960:function(e,t,n){var r=n(61279);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,p)s+=p[1];else{var m=e[a],f=n[2],g=n[3],v=n[4],y=n[5],b=n[6],C=n[7];s&&(r.push(s),s="");var S=null!=f&&null!=m&&m!==f,x="+"===b||"*"===b,_="?"===b||"*"===b,E=n[2]||u,k=v||y;r.push({name:g||i++,prefix:f||"",delimiter:E,optional:_,repeat:x,partial:S,asterisk:!!C,pattern:k?c(k):C?".*":"[^"+l(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var p=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+p+h+")*"),a+=h=c.optional?c.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var m=l(n.delimiter||"/"),f=a.slice(-m.length)===m;return o||(a=(f?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&f?"":"(?="+m+"|$)",u(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},61279:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},11481:function(e){"use strict";var t={};function n(e){var n;return t[e]?e:(n=e.toLowerCase().replace("_","-"),t[n]?n:(n=n.split("-")[0],t[n]?n:null))}function r(e,r){var o=n(e);if(!o)return-1;if(!t[o].cFn)return 0;var i=String(r),a=i.indexOf(".")<0?"":i.split(".")[1],s=a.length,l=+r,c=+i.split(".")[0],u=0===a.length?0:+a.replace(/0+$/,"");return t[o].cFn(l,c,s,+a,u)}function o(e,r){var o=n(e);if(!o)return-1;if(!t[o].oFn)return 0;var i=String(r),a=i.indexOf(".")<0?"":i.split(".")[1],s=a.length,l=+r,c=+i.split(".")[0],u=0===a.length?0:+a.replace(/0+$/,"");return t[o].oFn(l,c,s,+a,u)}e.exports=function(e,o){var i=n(e);return i?t[i].c[r(i,o)]:null},e.exports.indexOf=r,e.exports.forms=function(e){var r=n(e);return t[r]?t[r].c:null},e.exports.ordinal=function(e,r){var i=n(e);return t[i]?t[i].o[o(i,r)]:null},e.exports.ordinal.indexOf=o,e.exports.ordinal.forms=function(e){var r=n(e);return t[r]?t[r].o:null};var i=["zero","one","two","few","many","other"];function a(e){return i[e]}function s(e,n){var r;for(n.c=n.c?n.c.map(a):["other"],n.o=n.o?n.o.map(a):["other"],r=0;r<e.length;r++)t[e[r]]=n}function l(e,t,n){return e<=n&&n<=t&&n%1===0}function c(e,t){return e.indexOf(t)>=0}s(["af","an","asa","bem","bez","bg","brx","ce","cgg","chr","ckb","dv","ee","el","eo","es","eu","fo","fur","gsw","ha","haw","jgo","jmc","kaj","kcg","kkj","kl","ks","ksb","ku","ky","lb","lg","mas","mgo","ml","mn","nah","nb","nd","nn","nnh","no","nr","ny","nyn","om","os","pap","ps","rm","rof","rwk","saq","sd","sdh","seh","sn","so","ss","ssy","st","syr","ta","te","teo","tig","tn","tr","ts","ug","uz","ve","vo","vun","wae","xh","xog"],{c:[1,5],cFn:function(e){return 1===e?0:1}}),s(["ak","bho","guw","ln","mg","nso","pa","ti","wa"],{c:[1,5],cFn:function(e){return l(0,1,e)?0:1}}),s(["am","fa","kn","zu"],{c:[1,5],cFn:function(e,t){return 0===t||1===e?0:1}}),s(["ar","ars"],{c:[0,1,2,3,4,5],cFn:function(e){var t=e%100;return 0===e?0:1===e?1:2===e?2:l(3,10,t)?3:l(11,99,t)?4:5}}),s(["as","bn"],{c:[1,5],cFn:function(e,t){return 0===t||1===e?0:1},o:[1,2,3,4,5],oFn:function(e){return c([1,5,7,8,9,10],e)?0:c([2,3],e)?1:4===e?2:6===e?3:4}}),s(["ast","de","et","fi","fy","gl","ia","io","ji","nl","pt-pt","sw","ur","yi"],{c:[1,5],cFn:function(e,t,n){return 1===t&&0===n?0:1}}),s(["az"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,3,4,5],oFn:function(e,t){var n=t%10,r=t%100,o=t%1e3;return c([1,2,5,7,8],n)||c([20,50,70,80],r)?0:c([3,4],n)||c([100,200,300,400,500,600,700,800,900],o)?1:0===t||6===n||c([40,60,90],r)?2:3}}),s(["be"],{c:[1,3,4,5],cFn:function(e){var t=e%10,n=e%100;return 1===t&&11!==n?0:l(2,4,t)&&!l(12,14,n)?1:0===t||l(5,9,t)||l(11,14,n)?2:3},o:[3,5],oFn:function(e){var t=e%100;return c([2,3],e%10)&&!c([12,13],t)?0:1}}),s(["bm","bo","dz","id","ig","ii","in","ja","jbo","jv","jw","kde","kea","km","ko","lkt","my","nqo","osa","root","sah","ses","sg","su","th","to","wo","yo","yue","zh"],{}),s(["br"],{c:[1,2,3,4,5],cFn:function(e){var t=e%10,n=e%100,r=e%1e6;return 1!==t||c([11,71,91],n)?2!==t||c([12,72,92],n)?!l(3,4,t)&&9!==t||l(10,19,n)||l(70,79,n)||l(90,99,n)?0!==e&&0===r?3:4:2:1:0}}),s(["bs","hr","sh","sr"],{c:[1,3,5],cFn:function(e,t,n,r){var o=t%10,i=t%100,a=r%10,s=r%100;return 0===n&&1===o&&11!==i||1===a&&11!==s?0:0===n&&l(2,4,o)&&!l(12,14,i)||l(2,4,a)&&!l(12,14,s)?1:2}}),s(["ca"],{c:[1,5],cFn:function(e,t,n){return 1===t&&0===n?0:1},o:[1,2,3,5],oFn:function(e){return c([1,3],e)?0:2===e?1:4===e?2:3}}),s(["ceb"],{c:[1,5],cFn:function(e,t,n,r){var o=t%10,i=r%10;return 0===n&&c([1,2,3],t)||0===n&&!c([4,6,9],o)||0!==n&&!c([4,6,9],i)?0:1}}),s(["cs","sk"],{c:[1,3,4,5],cFn:function(e,t,n){return 1===t&&0===n?0:l(2,4,t)&&0===n?1:0!==n?2:3}}),s(["cy"],{c:[0,1,2,3,4,5],cFn:function(e){return 0===e?0:1===e?1:2===e?2:3===e?3:6===e?4:5},o:[0,1,2,3,4,5],oFn:function(e){return c([0,7,8,9],e)?0:1===e?1:2===e?2:c([3,4],e)?3:c([5,6],e)?4:5}}),s(["da"],{c:[1,5],cFn:function(e,t,n,r,o){return 1===e||0!==o&&c([0,1],t)?0:1}}),s(["dsb","hsb"],{c:[1,2,3,5],cFn:function(e,t,n,r){var o=t%100,i=r%100;return 0===n&&1===o||1===i?0:0===n&&2===o||2===i?1:0===n&&l(3,4,o)||l(3,4,i)?2:3}}),s(["en"],{c:[1,5],cFn:function(e,t,n){return 1===t&&0===n?0:1},o:[1,2,3,5],oFn:function(e){var t=e%10,n=e%100;return 1===t&&11!==n?0:2===t&&12!==n?1:3===t&&13!==n?2:3}}),s(["ff","kab"],{c:[1,5],cFn:function(e,t){return c([0,1],t)?0:1}}),s(["fil","tl"],{c:[1,5],cFn:function(e,t,n,r){var o=t%10,i=r%10;return 0===n&&c([1,2,3],t)||0===n&&!c([4,6,9],o)||0!==n&&!c([4,6,9],i)?0:1},o:[1,5],oFn:function(e){return 1===e?0:1}}),s(["fr","hy"],{c:[1,5],cFn:function(e,t){return c([0,1],t)?0:1},o:[1,5],oFn:function(e){return 1===e?0:1}}),s(["ga"],{c:[1,2,3,4,5],cFn:function(e){return 1===e?0:2===e?1:l(3,6,e)?2:l(7,10,e)?3:4},o:[1,5],oFn:function(e){return 1===e?0:1}}),s(["gd"],{c:[1,2,3,5],cFn:function(e){return c([1,11],e)?0:c([2,12],e)?1:l(3,10,e)||l(13,19,e)?2:3},o:[1,2,3,5],oFn:function(e){return c([1,11],e)?0:c([2,12],e)?1:c([3,13],e)?2:3}}),s(["gu","hi"],{c:[1,5],cFn:function(e,t){return 0===t||1===e?0:1},o:[1,2,3,4,5],oFn:function(e){return 1===e?0:c([2,3],e)?1:4===e?2:6===e?3:4}}),s(["gv"],{c:[1,2,3,4,5],cFn:function(e,t,n){var r=t%10;return 0===n&&1===r?0:0===n&&2===r?1:0===n&&c([0,20,40,60,80],t%100)?2:0!==n?3:4}}),s(["he","iw"],{c:[1,2,4,5],cFn:function(e,t,n){var r=e%10;return 1===t&&0===n?0:2===t&&0===n?1:0!==n||l(0,10,e)||0!==r?3:2}}),s(["hu"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,5],oFn:function(e){return c([1,5],e)?0:1}}),s(["is"],{c:[1,5],cFn:function(e,t,n,r,o){return 0===o&&1===t%10&&11!==t%100||0!==o?0:1}}),s(["it","sc","scn"],{c:[1,5],cFn:function(e,t,n){return 1===t&&0===n?0:1},o:[4,5],oFn:function(e){return c([11,8,80,800],e)?0:1}}),s(["iu","naq","se","sma","smi","smj","smn","sms"],{c:[1,2,5],cFn:function(e){return 1===e?0:2===e?1:2}}),s(["ka"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,4,5],oFn:function(e,t){var n=t%100;return 1===t?0:0===t||l(2,20,n)||40===n||60===n||80===n?1:2}}),s(["kk"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[4,5],oFn:function(e){var t=e%10;return 6===t||9===t||0===t&&0!==e?0:1}}),s(["ksh"],{c:[0,1,5],cFn:function(e){return 0===e?0:1===e?1:2}}),s(["kw"],{c:[0,1,2,3,4,5],cFn:function(e){var t=e%100,n=e%1e3,r=e%1e5,o=e%1e6;return 0===e?0:1===e?1:c([2,22,42,62,82],t)||0===n&&(l(1e3,2e4,r)||4e4===r||6e4===r||8e4===r)||0!==e&&1e5===o?2:c([3,23,43,63,83],t)?3:1!==e&&c([1,21,41,61,81],t)?4:5},o:[1,4,5],oFn:function(e){var t=e%100;return l(1,4,e)||l(1,4,t)||l(21,24,t)||l(41,44,t)||l(61,64,t)||l(81,84,t)?0:5===e||5===t?1:2}}),s(["lag"],{c:[0,1,5],cFn:function(e,t){return 0===e?0:c([0,1],t)&&0!==e?1:2}}),s(["lo","ms","vi"],{o:[1,5],oFn:function(e){return 1===e?0:1}}),s(["lt"],{c:[1,3,4,5],cFn:function(e,t,n,r){var o=e%10,i=e%100;return 1!==o||l(11,19,i)?l(2,9,o)&&!l(11,19,i)?1:0!==r?2:3:0}}),s(["lv","prg"],{c:[0,1,5],cFn:function(e,t,n,r){var o=e%10,i=e%100,a=r%100,s=r%10;return 0===o||l(11,19,i)||2===n&&l(11,19,a)?0:1===o&&11!==i||2===n&&1===s&&11!==a||2!==n&&1===s?1:2}}),s(["mk"],{c:[1,5],cFn:function(e,t,n,r){return 0===n&&1===t%10&&11!==t%100||1===r%10&&11!==r%100?0:1},o:[1,2,4,5],oFn:function(e,t){var n=t%10,r=t%100;return 1===n&&11!==r?0:2===n&&12!==r?1:c([7,8],n)&&!c([17,18],r)?2:3}}),s(["mo","ro"],{c:[1,3,5],cFn:function(e,t,n){return 1===t&&0===n?0:0!==n||0===e||l(2,19,e%100)?1:2},o:[1,5],oFn:function(e){return 1===e?0:1}}),s(["mr"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,2,3,5],oFn:function(e){return 1===e?0:c([2,3],e)?1:4===e?2:3}}),s(["mt"],{c:[1,3,4,5],cFn:function(e){var t=e%100;return 1===e?0:0===e||l(2,10,t)?1:l(11,19,t)?2:3}}),s(["ne"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,5],oFn:function(e){return l(1,4,e)?0:1}}),s(["or"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,2,3,4,5],oFn:function(e){return 1===e||5===e||l(7,9,e)?0:c([2,3],e)?1:4===e?2:6===e?3:4}}),s(["pl"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 1===t&&0===n?0:0===n&&l(2,4,r)&&!l(12,14,o)?1:0===n&&1!==t&&l(0,1,r)||0===n&&l(5,9,r)||0===n&&l(12,14,o)?2:3}}),s(["pt"],{c:[1,5],cFn:function(e,t){return l(0,1,t)?0:1}}),s(["ru"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 0===n&&1===r&&11!==o?0:0===n&&l(2,4,r)&&!l(12,14,o)?1:0===n&&0===r||0===n&&l(5,9,r)||0===n&&l(11,14,o)?2:3}}),s(["shi"],{c:[1,3,5],cFn:function(e,t){return 0===t||1===e?0:l(2,10,e)?1:2}}),s(["si"],{c:[1,5],cFn:function(e,t,n,r){return c([0,1],e)||0===t&&1===r?0:1}}),s(["sl"],{c:[1,2,3,5],cFn:function(e,t,n){var r=t%100;return 0===n&&1===r?0:0===n&&2===r?1:0===n&&l(3,4,r)||0!==n?2:3}}),s(["sq"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[1,4,5],oFn:function(e){return 1===e?0:4===e%10&&14!==e%100?1:2}}),s(["sv"],{c:[1,5],cFn:function(e,t,n){return 1===t&&0===n?0:1},o:[1,5],oFn:function(e){var t=e%100;return c([1,2],e%10)&&!c([11,12],t)?0:1}}),s(["tk"],{c:[1,5],cFn:function(e){return 1===e?0:1},o:[3,5],oFn:function(e){return c([6,9],e%10)||10===e?0:1}}),s(["tzm"],{c:[1,5],cFn:function(e){return l(0,1,e)||l(11,99,e)?0:1}}),s(["uk"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 0===n&&1===r&&11!==o?0:0===n&&l(2,4,r)&&!l(12,14,o)?1:0===n&&0===r||0===n&&l(5,9,r)||0===n&&l(11,14,o)?2:3},o:[3,5],oFn:function(e){return 3===e%10&&13!==e%100?0:1}})},40475:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},61659:function(e,t,n){"use strict";var r=n(46076);function o(){}var i=null,a={};function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._U=0,this._V=0,this._W=null,this._X=null,e!==o&&h(e,this)}function l(e,t){for(;3===e._V;)e=e._W;if(s._Y&&s._Y(e),0===e._V)return 0===e._U?(e._U=1,void(e._X=t)):1===e._U?(e._U=2,void(e._X=[e._X,t])):void e._X.push(t);!function(e,t){r((function(){var n=1===e._V?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return i=n,a}}(n,e._W);r===a?u(t.promise,i):c(t.promise,r)}else 1===e._V?c(t.promise,e._W):u(t.promise,e._W)}))}(e,t)}function c(e,t){if(t===e)return u(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=function(e){try{return e.then}catch(t){return i=t,a}}(t);if(n===a)return u(e,i);if(n===e.then&&t instanceof s)return e._V=3,e._W=t,void d(e);if("function"===typeof n)return void h(n.bind(t),e)}e._V=1,e._W=t,d(e)}function u(e,t){e._V=2,e._W=t,s._Z&&s._Z(e,t),d(e)}function d(e){if(1===e._U&&(l(e,e._X),e._X=null),2===e._U){for(var t=0;t<e._X.length;t++)l(e,e._X[t]);e._X=null}}function p(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function h(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(r){return i=r,a}}(e,(function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}));n||r!==a||(n=!0,u(t,i))}e.exports=s,s._Y=null,s._Z=null,s._0=o,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,i){var a=new s(o);a.then(r,i),l(e,new p(t,n,a))}))}(this,e,t);var n=new s(o);return l(this,new p(e,t,n)),n}},22797:function(e,t,n){"use strict";var r=n(61659);e.exports=r;var o=u(!0),i=u(!1),a=u(null),s=u(void 0),l=u(0),c=u("");function u(e){var t=new r(r._0);return t._V=1,t._W=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return o;if(!1===e)return i;if(0===e)return l;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new r(t.bind(e))}catch(n){return new r((function(e,t){t(n)}))}return u(e)};var d=function(e){return"function"===typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};r.all=function(e){var t=d(e);return new r((function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._V;)s=s._W;return 1===s._V?i(a,s._W):(2===s._V&&n(s._W),void s.then((function(e){i(a,e)}),n))}var l=s.then;if("function"===typeof l)return void new r(l.bind(s)).then((function(e){i(a,e)}),n)}t[a]=s,0===--o&&e(t)}for(var a=0;a<t.length;a++)i(a,t[a])}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){d(e).forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)}},95975:function(e,t,n){"use strict";var r=n(61659),o=[ReferenceError,TypeError,RangeError],i=!1;function a(){i=!1,r._Y=null,r._Z=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=a,t.enable=function(e){e=e||{},i&&a();i=!0;var t=0,n=0,l={};function c(t){(e.allRejections||s(l[t].error,e.whitelist||o))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn("  "+e)}))}(l[t].displayId,l[t].error)))}r._Y=function(t){2===t._V&&l[t._1]&&(l[t._1].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._1):clearTimeout(l[t._1].timeout),delete l[t._1])},r._Z=function(e,n){0===e._U&&(e._1=t++,l[e._1]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._1),s(n,o)?100:2e3),logged:!1})}}},42102:function(e,t,n){"use strict";var r=n(21369);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},24974:function(e,t,n){e.exports=n(42102)()},21369:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6363:function(e,t,n){"use strict";n(84933),n(43064),n(59389),n(34466),n(11691),n(50893),n(32752),n(39867),n(71816),n(77351),n(62770),n(73427),n(22705),n(11672),n(41217),n(17364),n(33859),n(59291),n(84233),n(56129),n(37416),n(46555),n(21870),n(92925),"undefined"===typeof Promise&&(n(95975).enable(),self.Promise=n(22797)),"undefined"!==typeof window&&n(73316),Object.assign=n(93545)},48045:function(e,t,n){"use strict";n(84933),n(43064),n(59389),n(34466),n(11691),n(50893),n(32752),n(39867),n(71816),n(77351),n(62770),n(73427),n(22705),n(11672),n(41217),n(48841),n(72345),n(14366),n(37824),n(59039),n(67773),n(95922),n(21870),n(73767),n(28222),n(81837),n(91375),n(17996),n(45514),n(41536),n(56725),n(21400),n(86498),n(63108),n(41981),n(36948),n(86858),n(91435),n(92707),n(31497),n(27913),n(79826),n(17364),n(93051),n(92456),n(54798),n(21700),n(53176),n(51674),n(27422),n(99007),n(71873),n(2504),n(37419),n(56347),n(15279),n(69605),n(47419),n(36220),n(97339),n(33859),n(10116),n(9508),n(34010),n(21230),n(80465),n(94157),n(42195),n(77212),n(36308),n(21288),n(87370),n(44101),n(79001),n(26839),n(12860),n(32767),n(74792),n(27719),n(74106),n(14602),n(82256),n(92646),n(627),n(44633),n(5166),n(48629),n(38640),n(67460),n(79471),n(90224),n(1502),n(31823),n(59291),n(79775),n(69056),n(18122),n(58533),n(28813),n(96674),n(28091),n(11681),n(86670),n(60106),n(51571),n(67951),n(92543),n(2403),n(43847),n(46658),n(16567),n(21680),n(70389),n(65984),n(45220),n(36195),n(10798),n(10417),n(16823),n(80509),n(45933),n(92925),n(48847),n(67171),n(88290),n(80499),n(60164),n(94049),n(7348),n(75161),n(29894),n(32283),n(55074),n(50750),n(91605),n(9865),n(93640),n(94759),n(50164),n(11712),n(15225),n(8386),n(76515),n(8826),n(42788),n(61184),n(24704),n(65269),n(21944),n(34458),n(72161),n(14281),n(17443),n(24380),n(82759),n(73460),n(55910),n(63634),n(8636),n(38404),n(8376),n(8791),n(89799),n(29027),n(57367),n(5743),n(28632),n(44910),n(78014),n(40750),n(24179),n(24126),n(71423),n(58590),n(64674),n(60386),n(86447),n(40145),n(16185),n(27847),n(50210),n(30959),n(21030),n(26004),n(46555),n(36946),n(11940),n(50920),n(90698),n(17299),n(90406)},15443:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,m=60121,f=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),m=b("react.block"),f=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function C(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return C(e)===l}},9479:function(e,t,n){"use strict";e.exports=n(15443)},90844:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}},61162:function(e,t,n){"use strict";n(90844)},90406:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(A){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return D()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?m:p,l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",f={};function g(){}function v(){}function y(){}var b={};l(b,i,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(T([])));S&&S!==n&&r.call(S,i)&&(b=S);var x=y.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return v.prototype=y,l(x,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},_(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},68038:function(e,t){"use strict";function n(e,t){return e===t}function r(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=null,i=null;return function(){return r(t,o,arguments)||(i=e.apply(null,arguments)),o=arguments,i}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];var s=0,l=r.pop(),c=i(r),u=e.apply(void 0,[function(){return s++,l.apply(null,arguments)}].concat(n)),d=o((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return d.resultFunc=l,d.recomputations=function(){return s},d.resetRecomputations=function(){return s=0},d}}var s=t.P1=a(o)},73930:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return i},__asyncDelegator:function(){return S},__asyncGenerator:function(){return C},__asyncValues:function(){return x},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return I},__classPrivateFieldIn:function(){return T},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return o},__generator:function(){return d},__importDefault:function(){return w},__importStar:function(){return k},__makeTemplateObject:function(){return _},__metadata:function(){return c},__param:function(){return l},__read:function(){return f},__rest:function(){return a},__spread:function(){return g},__spreadArray:function(){return y},__spreadArrays:function(){return v},__values:function(){return m}});var r=function(e,t){return r=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])},r(e,t)};function o(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var p=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function m(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function w(e){return e&&e.__esModule?e:{default:e}}function I(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function T(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},73316:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return w},Headers:function(){return m},Request:function(){return S},Response:function(){return E},fetch:function(){return I}});var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,l="ArrayBuffer"in r;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!==typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=g(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=function(e){var t=e.toUpperCase();return C.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function _(e){var t=new m;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},b.call(S.prototype),b.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];E.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(P){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function I(e,t){return new Promise((function(n,o){var i=new S(e,t);if(i.signal&&i.signal.aborted)return o(new w("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:_(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;setTimeout((function(){n(new E(t,e))}),0)},s.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){o(new w("Aborted","AbortError"))}),0)},s.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&(a?s.responseType="blob":l&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof m?i.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,p(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",c)}),s.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}I.polyfill=!0,r.fetch||(r.fetch=I,r.Headers=m,r.Request=S,r.Response=E)},17710:function(e,t,n){"use strict";var r=function(e,t){return r=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])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var l,c={PIDLConfig:{"SelectResource.PaymentInstrument":{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.ClientSupported"],"ewallet.googlepay.default":["PaymentInstrumentHandler.ClientSupported"]}},HandlePaymentChallenge:{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.CollectPaymentToken"],"ewallet.googlepay.default":["PaymentInstrumentHandler.CollectPaymentToken"]}}},PaymentInstrumentHandlers:[{allowedAuthMethods:["PAN_ONLY"],protocolVersion:"ECv2",publicKey:"BAh0tL9h3W/hGxIkJrx0d4ZQLWjK9BcaevK8CwmqQO/XCg0Ry58agzufBl8hVcYdM65MQAchKv+/8zKyS5SegpU=",merchantName:"Microsoft",merchantId:"BCR2DN4TZ244PH2A",apiMajorVersion:"2",apiMinorVersion:"0",assuranceDetailsRequired:!0,publicKeyVersion:"1",enableGPayIframeForAllBrowsers:!1,paymentMethodFamily:"ewallet",paymentMethodType:"googlepay",piid:"cdc85313-9b57-4052-81fb-dea336132cbf",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{chrome:"100",edge:"100"},supportedOS:{ios:"16.0",android:"16.0",windows:"16.0"},additionalAPIsCheck:["canMakePayment"]}},{merchantCapabilities:["supports3DS","supportsEMV"],displayName:"Microsoft",initiative:"Web",initiativeContext:"mystore.example.com",merchantIdentifier:"merchant.com.microsoft.paymicrosoft.prod",applePayVersion:"3",paymentMethodFamily:"ewallet",paymentMethodType:"applepay",piid:"be4de87d-7e38-4b2d-8836-9237eb32848e",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{safari:"16.1"},supportedOS:{ios:"15.0"},additionalAPIsCheck:["canMakePaymentWithActiveCard"],paymentProxyRequired:{safari:"16.5"}}}]};!function(e){e.error="error",e.click="click",e.apiCalled="apiCalled",e.fetchCallCompleted="fetchCallCompleted",e.paymentAgentInitialized="paymentAgentInitialized",e.paymentAgentSetupComplete="paymentAgentSetupComplete",e.paymentAgentDeviceCheck="paymentAgentDeviceCheck",e.fallBackToDefaultPaymentConfiguration="fallBackToDefaultPaymentConfiguration",e.paymentSheetClosed="paymentSheetClosed",e.paymentSheetTokenReceived="paymentSheetTokenReceived"}(l||(l={}));var u,d,p,h,m,f,g,v={getType:function(e){return Object.prototype.toString.call(e)},isObject:function(e){return e&&"[object Object]"===v.getType(e)},isFunction:function(e){return e&&"[object Function]"===v.getType(e)}},y="gPayFrame",b={loadPaymentData:"gpay.loadPaymentData",channelSetup:"gpay.channelSetup",readyToPay:"readyToPay",isReadyToPay:"gpay.isReadyToPay",tokenReference:"tokenReference",error:"error"},C={recurringTransaction:"RecurringTransaction"},S={chinaUnionPay:"chinaUnionPay"},x=8e3,_=8e3,E=8e3,k=function(e,t,n,r,o,c){return void 0===o&&(o={method:"GET"}),void 0===c&&(c=3),a(void 0,void 0,void 0,(function(){var n,a,u,d;return s(this,(function(p){switch(p.label){case 0:n=c,a=Date.now(),u=function(){var u,d,p,h,m,f;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),u=new AbortController,d=setTimeout((function(){return u.abort()}),x),[4,fetch(r,i(i({},o),{signal:u.signal}))];case 1:if(p=s.sent(),clearTimeout(d),h={isSuccess:p.ok,timeTaken:Date.now()-a,statusCode:p.status,headers:p.headers},m=w(r,c,n,o,p,e),!p.ok)throw 1===n&&t.logEvent(l.error,{httpRequestTelemetryData:I(m,h)}),new Error("Failed to fetch: ".concat(p.status," ").concat(p.statusText));return t.logEvent(l.fetchCallCompleted,{httpRequestTelemetryData:I(m,h)}),[2,{value:p.json()}];case 2:if(f=s.sent(),!(--n>0))throw t.logEvent(l.error,{message:"fetch failure",debugMessage:JSON.stringify(f),error:f,operationName:e,url:r}),f;return console.warn("Fetch failed, retrying..."),[3,3];case 3:return[2]}}))},p.label=1;case 1:return n>0?[5,u()]:[3,3];case 2:return"object"===typeof(d=p.sent())?[2,d.value]:[3,1];case 3:return[2]}}))}))},w=function(e,t,n,r,o,i){return{url:e,type:r.method,retryCount:t-n,headers:o.headers,payload:"",dataType:"",contentType:"application/json",currentOperationName:"PaymentAgent Fetch",operationName:i,operationVersion:"1.0.0",serviceName:"paymentAgent",includeCredentials:!1,retryOnServerError:!1,serverErrorCount:0,getRequest:function(){throw new Error("Function not implemented.")}}},I=function(e,t){var n=e.url,r=e.type,o=e.contentType,i=e.currentOperationName,a=e.operationName,s=e.operationVersion,l=e.serviceName,c=e.retryCount,u=t.isSuccess,d=t.statusCode,p=t.headers,h=t.failureResponseText,m=t.timeTaken,f=t.serviceErrorCode,g=t.statusText,v=d?d.toString():"0",y=u||"200"===v?"":h||g,b=0;try{b=parseInt(t.headers.get("Content-Length"),10)}catch(C){}return{targetUri:n,requestMethod:r,responseContentType:o,operationName:i,dependencyOperationName:a,dependencyOperationVersion:s,serviceName:l,retryCount:c,succeeded:u,protocolStatusCode:v,failureResponse:y,contentLength:isNaN(b)?0:b,latencyMs:m,serviceErrorCode:f,headers:p}},P={baseUrl:{prod:"https://paymentinstruments.mp.microsoft.com",ppe:"https://paymentinstruments-int.mp.microsoft.com",int:"https://pifd.cp.microsoft-int.com"},tokenizationUrl:{prod:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",ppe:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",int:"https://tokenization.cp.microsoft-int.com/tokens/{type}/getToken"},staticResources:{prod:"https://pmservices.cp.microsoft.com",ppe:"https://pmservices.cp.microsoft-int.com",int:"https://pmservices.cp.microsoft-int.com"},endpoints:{loadConfig:"v7.0/getWalletConfig",setupProviderSession:"v7.0/setupWalletProviderSession"}};!function(e){e.EWallet="ewallet"}(u||(u={})),function(e){e.ApplePay="applepay",e.GooglePay="googlepay"}(d||(d={})),function(e){e.ApplePay="ewallet.applepay",e.GooglePay="ewallet.googlepay"}(p||(p={})),function(e){e.Supports3DS="supports3DS",e.SupportsCredit="supportsCredit",e.SupportsDebit="supportsDebit"}(h||(h={})),function(e){e.googlePay="cdc85313-9b57-4052-81fb-dea336132cbf",e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(m||(m={})),(f=t.Uz||(t.Uz={})).SingleDomain="singleDomain",f.TopDomain="topDomain",f.IframeDomain="iframeDomain",function(e){e.PostProviderSession="POST PaymentAgentProviderSession",e.PostToken="POST PaymentAgentToken",e.GetConfig="GET PaymentAgentConfig"}(g||(g={}));var T,D=function(){return(null===navigator||void 0===navigator?void 0:navigator.userAgent)?navigator.userAgent:""},A=function(e){var t=D();return e.exec(t)[1]},R=function(){var e=D();return null===e||void 0===e?void 0:e.includes("Edg/")},N=function(){var e=D();return((null===e||void 0===e?void 0:e.includes("Chrome/"))||(null===e||void 0===e?void 0:e.includes("CriOS/")))&&!(null===e||void 0===e?void 0:e.includes("Version/"))},M=function(){var e=D();return(null===e||void 0===e?void 0:e.includes("Safari/"))&&(null===e||void 0===e?void 0:e.includes("Version/"))},F=function(e,t){var n=this;this.isBrowserCompatible=function(e){var t=null;return R()?(t=A(/Edg\/(\d+\.\d+\.\d+\.\d+)/),n.checkConfigBrowserCompatability("edge",t,e)):M()?(t=A(/Version\/(\d+\.\d+\.\d+)/),n.checkConfigBrowserCompatability("safari",t,e)):!!N()&&(t=A(/Chrome\/(\d+\.\d+\.\d+\.\d+)/),n.checkConfigBrowserCompatability("chrome",t,e))},this.getUserAgent=function(){return(null===navigator||void 0===navigator?void 0:navigator.userAgent)?navigator.userAgent:""},this.checkConfigBrowserCompatability=function(e,t,n){var r=(null===n||void 0===n?void 0:n.supportedBrowsers)[e];if(r){var o=Number(r);return Number(t)>=o}return!1},this.telemetryLogger=e,this.telemetryOptions=t},B=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.iframeLoaded=!1,r.fallbackToGPayIframe=!1,r.useFallback=!1,r.setupPaymentIframe=function(e){return new Promise((function(t,n){if(!document.getElementById(y)){var o=setTimeout((function(){r.telemetryLogger.logEvent(l.error,{message:"Payment Iframe failed to load"}),document.body.removeChild(a),t(!1)}),_),i=new MessageChannel,a=document.createElement("iframe"),s="prod"===e?"prod":"int";a.id=y,a.style.display="none",a.src="".concat(P.staticResources[e],"/staticresourceservice/resources/gpay/").concat(s,"/googlepay.html"),a.allow="payment https://paymentsresources.azureedge.net https://pmservices.cp.microsoft-int.com https://pmservices.cp.microsoft.com",a.onload=function(){var n;r.iframeLoaded||(clearTimeout(o),r.iframeLoaded=!0,null===(n=a.contentWindow)||void 0===n||n.postMessage(b.channelSetup,P.staticResources[e],[i.port2]),t(!0))},document.body.appendChild(a),r.iframeMessageChannel=i}}))},r.collectPaymentToken=function(e,t,n,o){return a(r,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return e.enableGPayIframeForAllBrowsers||this.fallbackToGPayIframe?[4,this.collectTokenWithGPay(e,t,n,o)]:[3,2];case 1:case 3:return[2,r.sent()];case 2:return[4,this.collectTokenWithPaymentRequest(e,t,n,o)]}}))}))},r.collectTokenWithGPay=function(e,t,n,o){return a(r,void 0,void 0,(function(){var r=this;return s(this,(function(i){return[2,new Promise((function(i,a){var s,l,c=document.getElementById(y);c&&(r.iframeMessageChannel.port1.onmessage=function(e){e.data.messageType===b.tokenReference?i(e.data):e.data.messageType===b.error&&a(e.data.error)},null===(s=c.contentWindow)||void 0===s||s.postMessage("process_payment",{targetOrigin:P.staticResources[o],delegate:"payment"}),null===(l=c.contentWindow)||void 0===l||l.postMessage({messageType:"gpay.loadPaymentData",paymentSessionData:t,handlerConfig:e,env:o,useTestEnv:n},P.staticResources[o]))}))]}))}))},r.collectTokenWithPaymentRequest=function(e,t,n,o){return a(r,void 0,void 0,(function(){var r,o;return s(this,(function(i){return r=this.buildSupportedPaymentMethodData(e,n,t),o=this.buildPaymentDetails(t),[2,new PaymentRequest(r,o).show().then((function(e){e.complete("success");var t=e.toJSON();return Promise.resolve(t.details)})).catch((function(e){return Promise.reject(e)}))]}))}))},r.getPANConfigurationValues=function(e){e.authorizationGroups,e.challengeScenario,e.hasPreOrder;return["PAN_ONLY"]},r.compileGPayParameters=function(e,t){var n=e.allowedAuthMethodsPerCountry,o=e.assuranceDetailsRequired,i=e.enableBillingAddress,a=n[t.country.toLowerCase()],s=!(t.hasPreOrder||t.challengeScenario===C.recurringTransaction),l={allowedAuthMethods:r.getPANConfigurationValues(t),allowedCardNetworks:a,assuranceDetailsRequired:o,allowPrepaidCards:s};return i&&(l.billingAddressRequired=!0,l.billingAddressParameters={format:"MIN"}),l},r.buildSupportedPaymentMethodData=function(e,t,n){var o,i=e.protocolVersion,a=e.publicKey,s=e.integrationType,l=e.merchantName,c=e.merchantId,u=e.apiMajorVersion,d=e.apiMinorVersion,p=n.amount,h=n.country,m=n.currency,f=r.compileGPayParameters(e,n);return[{supportedMethods:"https://google.com/pay",data:{environment:t?"TEST":"PRODUCTION",apiVersion:Number(u),apiVersionMinor:Number(d),merchantInfo:{merchantName:l,merchantId:c||"BCR2DN4TZ244PH2A"},allowedPaymentMethods:[{type:"CARD",parameters:f,tokenizationSpecification:{type:(null===s||void 0===s?void 0:s.toUpperCase())||"DIRECT",parameters:{protocolVersion:i,publicKey:a}}}],transactionInfo:{currencyCode:m,countryCode:h,totalPriceStatus:"FINAL",totalPrice:(null===(o=p.toString)||void 0===o?void 0:o.call(p))||p,checkoutOption:"COMPLETE_IMMEDIATE_PURCHASE"}}}]},r.buildPaymentDetails=function(e){var t;return{total:{amount:{currency:e.currency,value:null===(t=e.amount)||void 0===t?void 0:t.toString()},label:"Pay Microsoft"}}},r.getActionMap=function(){return{collectPaymentToken:r.collectPaymentToken}},r.getDeviceCheckPaymentMethodData=function(){return[{supportedMethods:"https://google.com/pay",data:{environment:"TEST",apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantName:"Microsoft"},allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY"],allowedCardNetworks:["AMEX","DISCOVER","MASTERCARD","VISA"]}}]}}]},r.getDeviceCheckTransactionDetail=function(){return{id:"deviceCheck",total:{label:"total",amount:{currency:"USD",value:"1"}}}},r.deviceCheck=function(){return new Promise((function(e,t){if(M())r.checkIFrameForEligibility(e);else if(window.PaymentRequest){var n=r.getDeviceCheckPaymentMethodData(),o=r.getDeviceCheckTransactionDetail();new window.PaymentRequest(n,o).canMakePayment().then((function(t){r.shouldCheckIFrameForEligibility(t)?r.checkIFrameForEligibility(e):e(t)})).catch((function(t){var n=JSON.stringify(t);r.telemetryLogger.logEvent(l.error,{message:"Device check failed",error:n}),e(!1)}))}else e(!1)}))},r.shouldCheckIFrameForEligibility=function(e){return!e&&r.iframeLoaded&&(R()||N())},r.checkIFrameForEligibility=function(e){var t=setTimeout((function(){r.telemetryLogger.logEvent(l.error,{message:"Payment Iframe eligibility check timed out"}),e(!1)}),E);r.iframeLoaded?(r.useFallback=!0,r.iframeMessageChannel.port1.onmessage=function(n){var o;(null===(o=n.data)||void 0===o?void 0:o.messageType)===b.readyToPay&&(clearTimeout(t),n.data.result?(e(n.data.result),r.fallbackToGPayIframe=!0):e(!1))},r.iframeMessageChannel.port1.postMessage(b.isReadyToPay)):e(!1)},r.useFallbackCheck=function(){return r.useFallback},r}return o(t,e),t}(F),O=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.collectPaymentToken=function(e,t,n,o){return a(r,void 0,void 0,(function(){var n=this;return s(this,(function(r){return window.ApplePaySession?[2,new Promise((function(r,i){n.createSession(e,t,r,i,o).begin()}))]:[2,Promise.reject()]}))}))},r.createSession=function(e,t,n,o,i){var l,c,u=window.ApplePaySession,d=(null===(l=null===e||void 0===e?void 0:e.clientSupported)||void 0===l?void 0:l.applePayVersion)||"1";try{(c=new u(Number(d),r.createPaymentRequest(e,t))).onvalidatemerchant=function(t){return a(r,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.getServerSession(e,i)];case 1:return t=n.sent(),c.completeMerchantValidation(t),[2]}}))}))},c.onpaymentauthorized=function(e){var t=e.payment;n(t),c.completePayment(c.STATUS_SUCCESS)},c.oncancel=function(e){o(e)}}catch(p){o(p)}return c},r.getServerSession=function(e,t){return a(r,void 0,void 0,(function(){var n,r,o;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,k(g.PostProviderSession,this.telemetryLogger,this.telemetryOptions,"".concat(P.baseUrl[t],"/").concat(P.endpoints.setupProviderSession),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({piFamily:"ewallet",piType:"applepay",walletSessionData:{merchantIdentifier:e.merchantIdentifier,displayName:"Microsoft",initiative:"web",initiativeContext:this.formatOrigin(window.origin)}})})];case 1:return n=i.sent(),[2,(r=JSON.parse(n)).sessionData||r];case 2:throw o=i.sent(),new Error(o);case 3:return[2]}}))}))},r.formatOrigin=function(e){var t=null===e||void 0===e?void 0:e.split("://");return t[1]||t[0]},r.addRecurringPaymentDetails=function(e,t){var n=e,r=t.amount,o=t.recurringPaymentDetails,i={label:"Microsoft",amount:r,paymentTiming:"recurring",recurringPaymentIntervalUnit:o.frequencyUnit||"month"};return o.frequency&&(i.recurringPaymentIntervalCount=o.frequency),o.startDate&&(i.recurringPaymentStartDate=o.startDate),n.recurringPaymentRequest={paymentDescription:"Microsoft",regularBilling:i,managementURL:"https://account.microsoft.com"},n},r.createMultiTokenPaymentRequest=function(e,t,n){var o=e,i=t.authorizationGroups;return o.multiTokenContexts=null===i||void 0===i?void 0:i.map((function(e){return{merchantIdentifier:n.merchantIdentifier,externalIdentifier:n.merchantIdentifier,merchantName:r.createGroupMessage(e),amount:e.totalAmount}})),o},r.createBasePaymentRequest=function(e,t){var n=e.merchantCapabilities,r=e.allowedAuthMethodsPerCountry,o=e.enableBillingAddress,i=t.amount,a=t.country,s=t.currency,l=r[null===a||void 0===a?void 0:a.toLowerCase()]||[],c=[h.Supports3DS];if(0===l.length)throw new Error("No supported payment methods");(null===l||void 0===l?void 0:l.includes(S.chinaUnionPay))&&(c=n),(t.hasPreOrder||t.challengeScenario===C.recurringTransaction)&&(c.push(h.SupportsCredit),c.push(h.SupportsDebit));var u={countryCode:a,currencyCode:s,merchantCapabilities:c,supportedNetworks:l,total:{label:"Microsoft",type:"final",amount:i}};return o&&(u.requiredBillingContactFields=["name","postalAddress"]),u},r.createPaymentRequest=function(e,t){var n=r.createBasePaymentRequest(e,t);return t.authorizationGroups&&t.authorizationGroups.length>1?n=r.createMultiTokenPaymentRequest(n,t,e):t.challengeScenario===C.recurringTransaction&&(n=r.addRecurringPaymentDetails(n,t)),n},r.deviceCheck=function(){if(window.ApplePaySession){var e=window.ApplePaySession.canMakePayments();return Promise.resolve(e)}return Promise.resolve(!1)},r}return o(t,e),t.prototype.createGroupMessage=function(e){var t=e.itemTitles;if(t&&t.length>1){var n=t[0],r=n&&n.length>45?"".concat(n.substring(0,45),"..."):n;return"".concat(r||"Microsoft"," (+").concat(t.length-1,")")}return t&&1===t.length&&t[0]||"Microsoft"},t}(F);!function(e){e.Config="config",e.Token="token",e.HandleChallenge="handleChallenge",e.Error="Error"}(T||(T={}));var L=function(){function e(e,t,n,r){var o=this;this.initializing=!1,this.initialized=!1,this.setupComplete=!1,this.handlerFactory=function(e){switch(e){case d.ApplePay:return o.applePayHandler;case d.GooglePay:return o.googlePayHandler;default:return null}},this.paymentAgentDeviceCheckDetail=function(e,t,n){return{paymentMethodFamily:u.EWallet,type:e,result:t,usedFallback:n}},this.paymentDeviceEligibilityCheck=function(e,t){return"ewallet"===e&&"applepay"===t?o.getApplePayEligible():"ewallet"!==e||"googlepay"!==t||o.getGooglePayEligible()},this.tokenizeData=function(e,t,n,r){return a(o,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:r={data:JSON.stringify(e)},t===d.GooglePay&&(r.publicKeyVersion=n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,k(g.PostToken,this.telemetryLogger,this.telemetryOptions,"".concat(P.tokenizationUrl[this.environment].replace("{type}",this.mapType(t))),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:JSON.stringify(r)})})];case 2:return[2,i.sent()];case 3:throw o=i.sent(),new Error(o);case 4:return[2]}}))}))},this.mapType=function(e){switch(e){case"applepay":return"apay";case"googlepay":return"gpay";default:return e}},this.handleChallenge=function(e,t){return a(o,void 0,void 0,(function(){var n=this;return s(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,o){var i=n.getConfiguration();if(i){var c=i.PaymentInstrumentHandlers.find((function(t){return t.piid===e.piid})),u=n.handlerFactory(null===c||void 0===c?void 0:c.paymentMethodType);if(u&&c){var d="".concat(c.paymentMethodFamily,".").concat(c.paymentMethodType,".default"),p=i.PIDLConfig.HandlePaymentChallenge.actions[d],h={paymentMethodFamily:null===c||void 0===c?void 0:c.paymentMethodFamily,paymentMethodType:null===c||void 0===c?void 0:c.paymentMethodType};if(p.length&&"PaymentInstrumentHandler.CollectPaymentToken"===p[0]){var m=null===t||void 0===t?void 0:t.includes("px-use-google-apple-pay-test-env");u.collectPaymentToken(c,e,m,n.environment).then((function(e){return a(n,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:return this.telemetryLogger.logEvent(l.paymentSheetTokenReceived,{paymentSheetLogDetails:h}),e.tokenReference?(t=e.tokenReference,[3,3]):[3,1];case 1:return[4,this.tokenizeData(e,c.paymentMethodType,c.publicKeyVersion,this.telemetryLogger)];case 2:t=o.sent(),o.label=3;case 3:return n={tokenReference:t.data,integrationType:c.integrationType,family:c.paymentMethodFamily,type:c.paymentMethodType},this.telemetryLogger.logEvent(l.paymentSheetClosed,{paymentSheetLogDetails:h,success:!0}),r(n),[2]}}))}))})).catch((function(e){n.telemetryLogger.logEvent(l.paymentSheetClosed,{paymentSheetLogDetails:h,success:!1,error:JSON.stringify(e)}),o(e)}))}}else o("setup error")}else o("setup error")}))];case 1:return[2,r.sent()]}}))}))},this.isPaymentAgentSupportedPI=function(e){return e.piid===m.googlePay||e.piid===m.applePay},this.clientSupported=function(e){var t=e,n=o.getApplePayEligible();return o.getGooglePayEligible()||(t=t.filter((function(e){return e!==p.GooglePay}))),n||(t=t.filter((function(e){return e!==p.ApplePay}))),t},this.getConfiguration=function(){return o.config},this.getProvisionResponseData=function(){return o.provisionResponseData},this.getPartner=function(){return o.partner},this.getPaymentAgentTelemetryLogger=function(){return o.telemetryLogger},this.isReadyToPay=function(){return o.initialized&&o.setupComplete},this.isPaymentAgentInitialized=function(){return o.initialized},this.isPaymentAgentInitializing=function(){return o.initializing};var i=new MessageChannel;this.hostPort=i.port1,this.messageChannel=i,this.applePayEligible=!1,this.googlePayEligible=!1,this.config=c,this.partner=e;var h=(null===r||void 0===r?void 0:r.toLowerCase())||"prod";this.environment=!h||"prod"!==h&&"ppe"!==h&&"int"!==h?"prod":h,n&&(this.telemetryLogger=n),t&&(this.telemetryOptions=t)}return e.prototype.init=function(){var e;return a(this,void 0,void 0,(function(){var t=this;return s(this,(function(n){switch(n.label){case 0:return this.initializing||this.initialized?[3,3]:(this.initializing=!0,(null===(e=this.messageChannel)||void 0===e?void 0:e.port1)&&(this.messageChannel.port1.onmessage=function(e){return t.onHostMessage(e)}),this.initializePaymentHandlers(),[4,this.setupPayIframe()]);case 1:return n.sent(),[4,this.deviceCheck()];case 2:n.sent(),this.initialized=!0,this.initializing=!1,n.label=3;case 3:return[2,Promise.resolve()]}}))}))},e.prototype.initializePaymentHandlers=function(){this.googlePayHandler=new B(this.telemetryLogger,this.telemetryOptions),this.applePayHandler=new O(this.telemetryLogger,this.telemetryOptions)},e.prototype.setupPayIframe=function(){var e,t;return a(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,null===(t=(e=this.googlePayHandler).setupPaymentIframe)||void 0===t?void 0:t.call(e,this.environment)];case 1:return[2,n.sent()]}}))}))},e.prototype.setupTopDomain=function(e,n){var r,o;if(!this.setupComplete){var i=null===(r=null===document||void 0===document?void 0:document.getElementsByName(e))||void 0===r?void 0:r[0];this.setupContext=t.Uz.TopDomain,this.messageChannel&&this.hostPort&&i&&(null===(o=i.contentWindow)||void 0===o||o.postMessage("paymentAgent.setup",n,[this.messageChannel.port2]),this.setupComplete=!0)}return Promise.resolve()},e.prototype.setupIframeDomain=function(e){return a(this,void 0,void 0,(function(){var n=this;return s(this,(function(r){switch(r.label){case 0:return this.setupComplete?[3,2]:(this.setupContext=t.Uz.IframeDomain,this.iframePort=e.ports[0],this.iframePort.onmessage=function(e){return n.onIFrameMessage(e)},[4,this.loadConfig()]);case 1:r.sent(),this.iframePort.postMessage({type:T.Config,data:this.config}),this.setupComplete=!0,r.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.setupSingleDomain=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.setupComplete?[3,2]:(this.setupContext=t.Uz.SingleDomain,[4,this.loadConfig()]);case 1:e.sent(),this.setupComplete=!0,e.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.onHostMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.onIFrameMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.parsePostMessage=function(e){switch(e.type){case T.Config:this.config=e.data;break;case T.Token:var t=e.data;this.provisionResponseData=t;break;default:this.telemetryLogger.logEvent(l.error,{message:"undefined message type"})}},e.prototype.loadConfig=function(){return a(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,k(g.GetConfig,this.telemetryLogger,this.telemetryOptions,"".concat(P.baseUrl[this.environment],"/").concat(P.endpoints.loadConfig))];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),e=c,this.telemetryLogger.logEvent(l.fallBackToDefaultPaymentConfiguration,{message:"Failed to fetch payment config from server",debugMessage:JSON.stringify(t),error:t}),[3,3];case 3:return this.config=e,[2]}}))}))},e.prototype.deviceCheck=function(){return a(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return e=this,[4,this.applePayHandler.deviceCheck()];case 1:return e.applePayEligible=n.sent(),t=this,[4,this.googlePayHandler.deviceCheck()];case 2:return t.googlePayEligible=n.sent(),this.telemetryLogger.logEvent(l.paymentAgentDeviceCheck,i({},this.paymentAgentDeviceCheckDetail(d.ApplePay,this.applePayEligible))),this.telemetryLogger.logEvent(l.paymentAgentDeviceCheck,i({},this.paymentAgentDeviceCheckDetail(d.GooglePay,this.googlePayEligible,this.googlePayHandler.useFallbackCheck()))),[2]}}))}))},e.prototype.getApplePayEligible=function(){return this.applePayEligible},e.prototype.getGooglePayEligible=function(){return this.googlePayEligible},e.prototype.getMessageChannel=function(){return this.messageChannel},e.prototype.getIframePort=function(){return this.iframePort},e.prototype.getHostPort=function(){return this.hostPort},e}(),H=function(){this.getApplicationInsights=function(){try{var e=n(73198);if(null===e||void 0===e?void 0:e.ApplicationInsights)return new e.ApplicationInsights}catch(t){return{initialize:function(){},trackEvent:function(){}}}},this.getCorrelationVectorPlugin=function(e){try{var t=n(98633);if(null===t||void 0===t?void 0:t.CorrelationVectorPlugin)return new t.CorrelationVectorPlugin(e)}catch(r){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}}},V=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),e.oneDSService&&(e.applicationInsightsInstance=e.oneDSService.getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[]};e.applicationInsightsInstance&&v.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(n){console.error("1DS Error : Error when attempting to initialize 1DS.",n)}},this.initCVPlugin=function(){if(!e.cvPlugin){var t=void 0;e.oneDSService&&(e.cvPlugin=e.oneDSService.getCorrelationVectorPlugin(e.cvInitialValue)),e.cvPlugin&&v.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&v.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:e.cvPlugin&&v.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv())}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&v.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):console.error("1DS Error : ApplicationInsights is not correctly initialized")}catch(i){console.error("1DS Error : Error when attempting to track event with 1DS.",i)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&v.isFunction(t.increment)&&t.increment()}catch(n){console.error("1DS Error : There was an issue with incrementing the correlation vector",n)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&v.isFunction(t.getValue)&&t.getValue()}catch(n){console.error("1DS Error : There is an issue with correlation vector getValue function",n)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(n){console.error("1DS Error : There is an issue with Initializing CV",n)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null},this.oneDSService||(this.oneDSService=new H)},z=new V,U=function(){function e(){}return e.prototype.logEvent=function(e,t,n){"fetchCallCompleted"===t?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,i,a,s;try{if(v.isObject(e)){var l=((window||{}).location||{}).href||"",c={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:l,destUri:l,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(o=e.partnerContext)||void 0===o?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(s=e.partnerContext)||void 0===s?void 0:s.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};v.isObject(e.telemetryResource)&&(c.partC.resourceType=e.telemetryResource.resourceType,c.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),c.partC.resourceParametersMap=e.telemetryResource.parameters),z.writeEvent(c.name,c.partB,c.partC)}}catch(u){console.error("TelemetryError",u)}},e.prototype.logOSREvent=function(e,t){var n,r,o,i,a;try{if(v.isObject(e)){var s={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},l={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(s),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(r=e.partnerContext)||void 0===r?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null===(o=e.partnerContext)||void 0===o?void 0:o.flowId,partnerSessionId:null===(i=e.partnerContext)||void 0===i?void 0:i.sessionId,partnerScenarioId:null===(a=e.partnerContext)||void 0===a?void 0:a.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};z.writeEvent(l.name,l.partB,l.partC)}}catch(c){console.error("TelemetryError",c)}},e}(),W=function(){function e(e,t,n){this.partner=e,this.sdkVersion=t,this.telemetryInjectionService||(this.telemetryInjectionService=new U),n&&z.initCV(n)}return e.prototype.logEvent=function(e,t,n){var r,o=n||{};void 0===(null===o||void 0===o?void 0:o.sdkVersion)&&(o.sdkVersion=this.sdkVersion),void 0===(null===(r=null===o||void 0===o?void 0:o.partnerContext)||void 0===r?void 0:r.partnerName)&&(o.partnerContext?o.partnerContext.partnerName=this.partner:o.partnerContext={partnerName:this.partner}),this.telemetryInjectionService.logEvent(o,e,t)},e.prototype.getCorrelationId=function(){return z.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=z.getIncrementedCV();if(e)return{name:"ms-cv",value:e}},e}(),G="2.4.0",j=G,q={init:function(e,t,n,r){var o,i=null===t||void 0===t?void 0:t.contextData,a=null===(o=null===t||void 0===t?void 0:t.contextData)||void 0===o?void 0:o.cvInitValue,s=n;return s||(s=new W(e,j,a)),new Promise((function(n,o){var a,c,u,d;s.logEvent(l.apiCalled,{message:"PaymentAgent.init"},i);var p=null===window||void 0===window?void 0:window.paymentAgent;!window||p||(null===(a=null===p||void 0===p?void 0:p.isPaymentAgentInitializing)||void 0===a?void 0:a.call(p))||(null===(c=null===p||void 0===p?void 0:p.isPaymentAgentInitialized)||void 0===c?void 0:c.call(p))?(null===(d=null===(u=window.paymentAgent)||void 0===u?void 0:u.isPaymentAgentInitialized)||void 0===d?void 0:d.call(u))?(s.logEvent(l.paymentAgentInitialized,{message:"Payment Agent object already exists "},i),n(!0)):(s.logEvent(l.error,{message:"Payment Agent failed to initialize."},i),o(!1)):(window.paymentAgent=new L(e,t,s,r),window.paymentAgent.init().then((function(){s.logEvent(l.paymentAgentInitialized,{},i),n(!0)})).catch((function(e){var t=JSON.stringify(e);s.logEvent(l.error,{message:"Payment Agent failed to initialize.",error:t},i),o(!1)})))}))},setup:function(e,n,r,o,i){var a,s,c,u=null===o||void 0===o?void 0:o.contextData,d=null===window||void 0===window?void 0:window.paymentAgent,p=null===(a=null===o||void 0===o?void 0:o.contextData)||void 0===a?void 0:a.cvInitValue;if(d){null===(c=null===(s=d.getPaymentAgentTelemetryLogger)||void 0===s?void 0:s.call(d))||void 0===c||c.logEvent(l.apiCalled,{message:"PaymentAgent.setup",setupContext:n},u);var h=null;if(n===t.Uz.SingleDomain)h=d.setupSingleDomain();else if(n===t.Uz.TopDomain&&(null===r||void 0===r?void 0:r.iframeElementName)&&(null===r||void 0===r?void 0:r.iframeDomain))h=d.setupTopDomain(r.iframeElementName,r.iframeDomain);else{if(n!==t.Uz.IframeDomain||!(null===r||void 0===r?void 0:r.ports)){var m="Invalid properties passed to setup";return d.logEvent(l.error,{message:m},u),Promise.reject(m)}h=d.setupIframeDomain(r)}return h.then((function(){var e,t;return null===(t=null===(e=d.getPaymentAgentTelemetryLogger)||void 0===e?void 0:e.call(d))||void 0===t||t.logEvent(l.paymentAgentSetupComplete,{setupContext:n},u),!0})).catch((function(e){var t,n;return null===(n=null===(t=d.getPaymentAgentTelemetryLogger)||void 0===t?void 0:t.call(d))||void 0===n||n.logEvent(l.error,{message:e},u),!1}))}var f=new W(e,j,p);return(null!==i&&void 0!==i?i:f).logEvent(l.error,{message:"Payment Agent failed to setup."},u),Promise.reject("setup called before initialize")},isPaymentDeviceEligible:function(e,t,n,r,o){var i,a,s,c=null===r||void 0===r?void 0:r.contextData,u=null===window||void 0===window?void 0:window.paymentAgent,d=null===(i=null===r||void 0===r?void 0:r.contextData)||void 0===i?void 0:i.cvInitValue;if(u){var p=u.paymentDeviceEligibilityCheck(t,n);return null===(s=null===(a=u.getPaymentAgentTelemetryLogger)||void 0===a?void 0:a.call(u))||void 0===s||s.logEvent(l.apiCalled,{message:"PaymentAgent.isPaymentDeviceEligible",family:t,type:n,result:p},c),p}var h=new W(e,j,d);return(null!==o&&void 0!==o?o:h).logEvent(l.error,{message:"isPaymentDeviceEligible called before initialize",family:t,type:n},c),!1}},K={"ANDAMAN AND NICOBAR ISLAND":"AN","ANDHRA PRADESH":"AP","ARUNACHAL PRADESH":"AR",ASSAM:"AS",BIHAR:"BR",CHANDIGARH:"CH",CHHATTISGARH:"CT","DADRA AND NAGAR HAVELI":"DN","DAMAN AND DIU":"DD",DELHI:"DL",GOA:"GA",GUJARAT:"GJ",HARYANA:"HR","HIMACHAL PRADESH":"HP","JAMMU AND KASHMIR":"JK",JHARKHAND:"JH",KARNATAKA:"KA",KERALA:"KL",LAKSHADWEEP:"LD","MADHYA PRADESH":"MP",MAHARASHTRA:"MH",MANIPUR:"MN",MEGHALAYA:"ML",MIZORAM:"MZ",NAGALAND:"NL",ORISSA:"OR",PUDUCHERRY:"PY",PUNJAB:"PB",RAJASTHAN:"RJ",SIKKIM:"SK","TAMIL NADU":"TN",TELANGANA:"TG",TRIPURA:"TR","UTTAR PRADESH":"UP",UTTARAKHAND:"UT","WEST BENGAL":"WB",AN:"AN",AP:"AP",AR:"AR",AS:"AS",BR:"BR",CH:"CH",CT:"CT",DN:"DN",DD:"DD",DL:"DL",GA:"GA",GJ:"GJ",HR:"HR",HP:"HP",JK:"JK",JH:"JH",KA:"KA",KL:"KL",LD:"LD",MP:"MP",MH:"MH",MN:"MN",ML:"ML",MZ:"MZ",NL:"NL",OR:"OR",PY:"PY",PB:"PB",RJ:"RJ",SK:"SK",TN:"TN",TG:"TG",TR:"TR",UP:"UP",UT:"UT",WB:"WB"},Y={country:"pidlDocInfo.parameters.allowedCountries"};function X(e){return Object.prototype.toString.call(e)}function Q(e){return e&&"[object Array]"===X(e)}function Z(e){return e&&"[object Object]"===X(e)}function J(e,t,n){if(void 0===n&&(n=!1),Z(e)&&Q(t)){var r=Object.keys(e),o={};n?(t=t.map((function(e){return e.toLowerCase()})),r=r.map((function(e){var t=e.toLowerCase();return o[t]=e,t}))):r.forEach((function(e){return o[e]=e}));var i={};return r.forEach((function(n){t.indexOf(n)>=0&&(i[o[n]]=e[o[n]])})),i}}function $(e){var t=null;return e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&(t=e.partnerData.inputParameters.pidlDocInfo.parameters.allowedPaymentMethods),t&&t.length&&(t=t.map((function(e){return e.toUpperCase()}))),t}function ee(e,t,n){var r=t(e);return!!r&&n(r)}function te(e){return e&&e.paymentMethod&&"credit_card"===e.paymentMethod.paymentMethodFamily}function ne(e,t,n){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t&&e.paymentMethod.paymentMethodType===n}function re(e){return ne(e,"offline_bank_transfer","check")}function oe(e){return ne(e,"credit_card","visa")}function ie(e){return ne(e,"credit_card","mc")}function ae(e){return ne(e,"credit_card","amex")}function se(e){return ne(e,"credit_card","discover")}function le(e){return ne(e,"credit_card","jcb")}function ce(e){return ne(e,"credit_card","hipercard")}function ue(e){return ne(e,"credit_card","elo")}function de(e){return ne(e,"credit_card","unionpay_creditcard")}function pe(e){return ne(e,"credit_card","unionpay_debitcard")}function he(e){return ne(e,"ewallet","paypal")}function me(e){return ne(e,"ewallet","stored_value")}function fe(e){return function(e,t){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t}(e,"ewallet")}function ge(e){return ne(e,"direct_debit","ach")}function ve(e){return ne(e,"direct_debit","sepa")}function ye(e){return e&&e.paymentMethod&&"mobile_billing_non_sim"===e.paymentMethod.paymentMethodFamily}function be(e){return ne(e,"mobile_billing_non_sim","spt-us-nonsim")}function Ce(e){return ne(e,"mobile_billing_non_sim","vzw-us-nonsim")}function Se(e){return ne(e,"virtual","alipay")}function xe(e){return ne(e,"virtual","unionpay")}function _e(e){return ne(e,"virtual","invoice_basic")}function Ee(e){return ne(e,"virtual","invoice_check")}function ke(e){return!we(e)}function we(e){if(e&&e.details&&te(e)){var t=e.details,n=t.expiryMonth,r=t.expiryYear,o=void 0,i=void 0;try{o=Number(n),i=Number(r)}catch(c){return!1}var a=new Date,s=a.getMonth()+1,l=a.getFullYear();return l>i||s>o&&l>=i}return!1}function Ie(e){return e&&e.contextData}function Pe(e){if(e&&e.arguments&&e.arguments[0]&&e.dataSources&&e.dataSources.paymentInstruments&&Q(e.dataSources.paymentInstruments))for(var t=e.arguments[0],n=e.dataSources.paymentInstruments,r=0;r<n.length;r++)if(n[r].id===t)return n[r]}function Te(e){return e&&e.contextData&&e.contextData.primaryPaymentInstrument}function De(e){return e&&e.contextData&&e.contextData.backupPaymentInstrument}function Ae(e){return e&&e.partnerData&&e.partnerData.prefillData}function Re(e){var t=[],n=null,r=$(e);if(e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&e.partnerData.inputParameters.pidlDocInfo.parameters.filters&&(n=e.partnerData.inputParameters.pidlDocInfo.parameters.filters.allowedCurrencies),n&&n.length&&(n=n.map((function(e){return e.toUpperCase()}))),e&&e.contextData&&e.contextData.length)for(var o=e.contextData,i=0;i<o.length;i++){var a=o[i],s=a.currency&&a.currency.toUpperCase();if(!(n&&n.length&&n.indexOf(s)<0)){if(r&&r.length){var l=null,c=null,u=null,d=null,p=a.primaryPaymentInstrument&&a.primaryPaymentInstrument.paymentMethod;p&&(l=(p.paymentMethodFamily+"."+p.paymentMethodType).toUpperCase(),c=p.paymentMethodFamily.toUpperCase());var h=a.backupPaymentInstrument&&a.backupPaymentInstrument.paymentMethod;if(h&&(u=(h.paymentMethodFamily+"."+h.paymentMethodType).toUpperCase(),d=h.paymentMethodFamily.toUpperCase()),r.indexOf(l)<0&&r.indexOf(c)<0)continue;if(h&&r.indexOf(u)<0&&r.indexOf(d)<0)continue}t.push(a)}}return t}var Ne={filterBillingGroups:Re,filterPaymentInstruments:function(e){var t=[],n=$(e),r=!1,o=e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo;if(o&&o.parameters&&o.parameters.filters&&(r=o.parameters.filters.filterExpiredPayment),e&&e.contextData&&e.contextData.length){var i=e.contextData;if(e.partnerData&&e.partnerData.prefillData){var a=e.partnerData.prefillData.paymentInstruments;a&&i.push.apply(i,a)}for(var s=0;s<i.length;s++){var l=i[s];if(n&&n.length&&l.paymentMethod){var c=(l.paymentMethod.paymentMethodFamily+"."+l.paymentMethod.paymentMethodType).toUpperCase(),u=l.paymentMethod.paymentMethodFamily.toUpperCase();if(n.indexOf(c)<0&&n.indexOf(u)<0)continue}r&&we(l)||t.push(l)}}return t},filterOptions:function(e){var t=e.contextData;if(!t)return t;var n=t.propertyName,r=t.possible_values,o=t.possibleValues,i=t.possibleOptions;if(!n)return t;var a=function(e,t){if(e&&e.partnerData&&e.partnerData.inputParameters&&t){var n=Y[t];if(n){var r=e.partnerData.inputParameters;return n.split(".").forEach((function(e){r=Z(r)?r[e]:void 0})),r}}}(e,n);return a?(r&&(r=J(r,a,!0)),o&&(o=J(o,a,!0)),i&&(i=J(i,a,!0)),{propertyName:n,possible_values:r,possibleValues:o,possibleOptions:i}):t},getBalanceInLocalCurrency:function(e){var t=e||{},n=t.contextData,r=void 0===n?{}:n,o=t.partnerData,i=void 0===o?{}:o,a=r.currency,s=r.balanceAmount;if(void 0!==s&&null!==s){var l=i&&i.inputParameters&&i.inputParameters.pidlDocInfo&&i.inputParameters.pidlDocInfo.parameters&&i.inputParameters.pidlDocInfo.parameters.language;if(a&&l){var c={style:"currency",currency:a};try{return s.toLocaleString(l,c)}catch(u){}}return s.toString&&s.toString()}return s},getIndiaPANID:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"INDIAPANID"===r.type.toUpperCase())return r.taxId}return null},getNationalIdentificationNumber:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"NATIONALIDENTIFICATIONNUMBER"===r.type.toUpperCase())return r.taxId}return null},getVatId:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"VATID"===r.type.toUpperCase())return r.taxId}return null},getIndiaGSTID:function(e){var t=function(e){if(!e)return null;var t=e.dataSources,n=e.partnerData;if(!t)return null;var r=t.profileResource,o=t.addressResource;return r&&r.address&&r.address.region?r.address.region:r&&r.default_address&&r.default_address.region?r.default_address.region:o&&o.serviceUsageAddress&&o.serviceUsageAddress.state?o.serviceUsageAddress.state:n&&n.prefillData&&(n.prefillData.state||n.prefillData.region)?n.prefillData.region?n.prefillData.region:n.prefillData.state:null}(e),n=t&&K[t.toUpperCase()],r=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(n&&r&&r.length)for(var o=0;o<r.length;o++){var i=r[o];if(i.state&&i.state.toUpperCase()===n&&i.type&&"GSTINID"===i.type.toUpperCase())return i.taxId}return null},hasBGBackupPI:function(e){return ee(e,De,(function(e){return!!e}))},isBGBackupPICheck:function(e){return ee(e,De,re)},isBGBackupPICreditCard:function(e){return ee(e,De,te)},isBGBackupPINonCCNonCheck:function(e){return!ee(e,De,te)&&!ee(e,De,re)},isBGBackupPINonCreditCard:function(e){return!ee(e,De,te)},isBGPrimaryPICheck:function(e){return ee(e,Te,re)},isBGPrimaryPICreditCard:function(e){return ee(e,Te,te)},isBGPrimaryPINonCCNonCheck:function(e){return!ee(e,Te,te)&&!ee(e,Te,re)},isBGPrimaryPINonCreditCard:function(e){return!ee(e,Te,te)},isSelectedCreditCardExpired:function(e){return ee(e,Pe,we)},isCreditCardExpired:function(e){return ee(e,Ie,we)},isCreditCardNotExpired:function(e){return ee(e,Ie,ke)},isUserPICheck:function(e){return ee(e,Ie,re)},isUserPICreditCard:function(e){return ee(e,Ie,te)},isUserPIValidCreditCard:function(e){return ee(e,Ie,te)&&ee(e,Ie,ke)},isUserPINonCCNonCheck:function(e){return!ee(e,Ie,te)&&!ee(e,Ie,re)},isUserPINonCCNonCheckNonPayPal:function(e){return!ee(e,Ie,te)&&!ee(e,Ie,re)&&!ee(e,Ie,he)},isUserPINonCreditCard:function(e){return!ee(e,Ie,te)},isUserPIVisa:function(e){return ee(e,Ie,oe)},isUserPIMastercard:function(e){return ee(e,Ie,ie)},isUserPIAmex:function(e){return ee(e,Ie,ae)},isUserPIDiscover:function(e){return ee(e,Ie,se)},isUserPIJCB:function(e){return ee(e,Ie,le)},isUserPIHipercard:function(e){return ee(e,Ie,ce)},isUserPIElo:function(e){return ee(e,Ie,ue)},isUserPIUnionPayCreditCard:function(e){return ee(e,Ie,de)},isUserPIUnionPayDebitCard:function(e){return ee(e,Ie,pe)},IsEwalletPayPal:function(e){return ee(e,Ie,he)},IsEwalletStoredValue:function(e){return ee(e,Ie,me)},IsEwallet:function(e){return ee(e,Ie,fe)},IsEwalletNonStoredValue:function(e){return ee(e,Ie,fe)&&!ee(e,Ie,me)},isUserPIEWalletPayPal:function(e){return ee(e,Ie,he)},isUserPIEWalletStoredValue:function(e){return ee(e,Ie,me)},isUserPIDirectDebitAch:function(e){return ee(e,Ie,ge)},isUserPIDirectDebitSepa:function(e){return ee(e,Ie,ve)},isUserPISptNSM:function(e){return ee(e,Ie,be)},isUserPIVzwNSM:function(e){return ee(e,Ie,Ce)},isUserPINonSimMobi:function(e){return ee(e,Ie,ye)},isUserPIVirtualAlipay:function(e){return ee(e,Ie,Se)},isUserPIVirtualUnionpay:function(e){return ee(e,Ie,xe)},isUserPIVirtualInvoiceBasic:function(e){return ee(e,Ie,_e)},isUserPIVirtualInvoiceCheck:function(e){return ee(e,Ie,Ee)},showAddBGLink:function(e){return ee(e,Ae,(function(e){return e.showAddBillingGroupLink}))},showEditBGLink:function(e){e&&e.dataSources&&e.dataSources.billingGroups&&e.dataSources.billingGroups.value&&(e.contextData=e.dataSources.billingGroups.value);var t=Re(e);return t&&t.length>0},showAddPILink:function(e){var t=$(e),n=e&&e.dataSources&&e.dataSources.paymentMethods;if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(o.properties&&o.properties.userManaged){var i=(o.paymentMethodFamily+"."+o.paymentMethodType).toUpperCase(),a=o.paymentMethodFamily.toUpperCase();if(null==t||t.indexOf(i)>-1||t.indexOf(a)>-1)return!0}}return!1},showLEEditLink:function(e){return ee(e,Ae,(function(e){return e.showEditLink}))},ordersExists:function(e){return e&&e.contextData&&e.contextData.orders&&e.contextData.orders.length>0},subscriptionsExists:function(e){return e&&e.contextData&&e.contextData.subs&&e.contextData.subs.length>0},isUserCSVFilled:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance>0},isUserCSVEmpty:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance<=0}};function Me(e,t){return Ne.hasOwnProperty(e)?Ne[e].apply(null,[t]):null}function Fe(){try{window.pidlResourceHelpers={whitelistedFunctionMappings:Ne,executeExtensionFunc:Me}}catch(e){}}Fe(),t.qO=q,t._T=Fe},87363:function(e){"use strict";e.exports=React},61533:function(e){"use strict";e.exports=ReactDOM},50633:function(){}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__={};!function(){"use strict";__webpack_require__(6363),__webpack_require__(48045);var e=__webpack_require__(73930),t="!START",n="Ms.Web.PageView",r="Ms.Web.PageAction",o="Ms.Qos.OutgoingServiceRequest",i="Ms.Osgs.ExperimentTrigger",a="Ms.Osgs.ClientReliability",s="Ms.Webi.MeePortal.UserFeedbackV2",l=(function(){function e(t){var n=this;if(this.options=t,this.context={},this.maxResultLength=1024,this.serialize=function(){var t=Object.keys(n.context);if(!t.length)return"";for(var r=["v=1"],o=0,i=t;o<i.length;o++){var a=i[o],s=e.contextKeyMap[a]||encodeURIComponent(a),l=n.options.normalizePropertyValue&&n.options.normalizePropertyValue(a,n.context[a])||n.context[a];r.push("".concat(s,"=").concat(encodeURIComponent(l)))}var c=r.join(",");return c.length>n.maxResultLength?"":c},this.getProperty=function(e){return n.context[e]},this.setProperty=function(e,t){t&&(n.context[e]=t)},this.deleteProperty=function(e){return!!n.context[e]&&(delete n.context[e],!0)},!t)throw new Error("options must be specified.")}e.contextKeyMap={"app-id":"ms.a.app.id","app-version":"ms.a.app.ver","device-class":"ms.a.device.deviceClass","device-id":"ms.a.device.id","partner-id":"ms.b.tel.partner","product-id":"ms.b.tel.product","scenario-id":"ms.b.tel.scenario","scenario-step":"ms.c.ust.scenarioStep","user-id":"ms.a.user.id","root-operation":"ms.b.qos.rootOperationName",market:"ms.b.tel.market"}}(),__webpack_require__(84437)),c=__webpack_require__.n(l),u=-1,d=1,p=2,h=0,m=1,f=document.referrer,g=document.cookie;function v(e){var t=e||y;return{getLocationHref:function(){return t(window.spaLocationHref||window.location.href)},getRealLocationHref:function(){return t(window.location.href)},getSpaLocationHref:function(){return t(window.spaLocationHref||"")},getReferrer:function(){return t((window.spaReferrer||f).split("?")[0]||"")},getPageId:_,getQueryParameter:b,getCookie:C,getPerformanceTiming:function(){return window.performance&&window.performance.timing||{}},getNow:function(){return new Date},isPageOptedOutFromAutoPageView:S,setSpaLocationHref:function(e){window.spaLocationHref=e},setSpaReferrer:function(e){window.spaReferrer=e},setSpaPageId:function(e){window.spaPageId=e},setWindowLoadHandler:function(e){c()(window).on("load",e)}}}function y(e){return e}function b(e){return function(e,t){var n=new RegExp("".concat(e,"=([^&]+)"),"i"),r=t.match(n);return r&&2===r.length?r[1]:""}(e,window.location.search)}function C(e){for(var t=e.toLowerCase(),n=g.split(";"),r=0;r<n.length;r++){var o=n[r].split("="),i=decodeURIComponent(o[0].trim().toLowerCase()),a=o.length>1?o[1]:"";if(i===t)return decodeURIComponent(a)}return""}function S(){return!!c()("meta[name='noAutoPageView']").length}function x(e){var t=document.createElement("a");return t.href=e,t}function _(){return window.spaPageId||function(){var e=document.querySelector("html > head").getElementsByTagName("meta").namedItem("pageid");if(e)return e.getAttribute("content");return null}()||document.title}(function(){var e=C("oref");if(e)f=e,function(e){var t=new Date;t.setDate(t.getDate()-1),function(e,t,n,r){void 0===r&&(r="/");var o=n;o||(o=new Date).setDate(o.getDate()+1);var i="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),";expires=").concat(o.toUTCString(),";path=").concat(r);document.cookie=i}(e,"",t)}("oref")})(),f=function(e,t){var n=/^https:\/\/login\.live[\-\.]/i,r=/^https:\/\/login\.microsoftonline\.com/i,o=/^https:\/\/login\.windows-ppe\.net/i,i=/^http(s?):\/\/directvisit/i,a=/\brefd=([0-9a-z\.\-]+)\b/i,s=/\brefp=([0-9a-z\.\-]+)\b/i;if(e&&!n.test(e)&&!r.test(e)&&!o.test(e)&&!i.test(e))return e;if(!t)return e;var l=t.match(a);if(!l||2!==l.length)return e;var c="https://".concat(l[1].toLowerCase(),"/"),u=t.match(s);return u&&2===u.length&&(c+=u[1].replace("-","/").toLowerCase()),c}(f,window.location.search);!function(){function e(t,n,r,i){var a=this;if(this.options=t,this.cvManager=n,this.ccManager=r,this.qosLogger=i,this.willChangeSupportCors=!1,this.alwaysAddCvToRequestHeader=!0,this.timers={},this.mockedAjaxOps={},this.hostIdx=2,this.portIdx=3,this.minServerErrorStatusCode=500,this.maxServerErrorStatusCode=600,this.retryTimeout=50,this.cv1Length=16,this.cv2Length=22,this.base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.cv1Constants={validationPattern:new RegExp("^[".concat(this.base64CharSet,"]{").concat(16..toString(),"}(.[0-9]+)+$")),maxCorrelationVectorLength:63},this.cv2Constants={validationPattern:new RegExp("^[".concat(this.base64CharSet,"]{").concat(22..toString(),"}(.[0-9]+)+$")),maxCorrelationVectorLength:127},this.ajaxGet=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,u),a.sendRequest(e,a.getImpl)},this.ajaxPost=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.postImpl)},this.ajaxPut=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.putImpl)},this.ajaxDelete=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.delImpl)},this.getAntiForgeryToken=function(e,t){for(var n=e&&typeof e===typeof window?e:window,r=t&&"string"===typeof t?"_".concat(t.toString()):"",o="__RequestVerificationToken".concat(r),i=n.document.getElementsByTagName("input"),a=0;a<i.length;a++){var s=i[a];if("hidden"===s.type&&s.name===o)return{name:o,value:s.value}}return{}},this.mockAjaxOperationResult=function(e,t){if(!e)throw new Error("operationName must be specified.");if(!t)throw new Error("result must be specified.");a.mockedAjaxOps[e.toLowerCase()]=t},this.clearAjaxOperationMocks=function(){a.mockedAjaxOps={}},this.targetUriOverrideCallbackFunction=function(e){return e},this.getAntiForgeryTokenForRequest=function(e){return e.token?e.token:a.getAntiForgeryToken(e.tokenWindow,e.appPath)},this.prepareRequest=function(t){if(!t.serviceName)throw new Error("AjaxTelemetrySink: settings.serviceName is not set.");if(!t.operationName)throw new Error("AjaxTelemetrySink: settings.operationName is not set.");if(t.currentOperationName=t.parentOperationName||t.operationName,t.additionalHeaders=t.additionalHeaders||[],t.requestedWithHeaderBehavior&&"query"!==t.requestedWithHeaderBehavior)"header"===t.requestedWithHeaderBehavior&&(t.additionalHeaders["X-Requested-With"]="XMLHttpRequest");else if(t.url){var n=x(t.url);n.search+=(n.search?"&":"?")+"X-Requested-With=XMLHttpRequest",t.url=n.href}a.options.useJsll3xQuirks&&("auto"!==t.dataType?t.dataType=t.dataType||"json":delete t.dataType),a.cvManager.incrementCv(),t.cV=a.cvManager.getCurrentCvValue();var r=a.ccManager.serialize();r&&(void 0===t.addCvToRequestHeader||t.addCvToRequestHeader)&&(t.additionalHeaders["Correlation-Context"]=r),t.cache&&(t.noCacheBusting=!0),(a.options.overrideRequestQosData||t.overrideRequestQosData)&&(t.QosCallback=e.overrideRequestQosData.bind(a,a.options,t)),t.antiforgeryTokenBehavior||(a.isCrossDomainRequest(t)?t.antiforgeryTokenBehavior=u:a.isJsonContentType(t)&&(t.antiforgeryTokenBehavior=p))},this.flattenDataAndAppendAntiForgeryToken=function(e,t){var n=t||d,r=e.data;switch(r&&"string"!==typeof r&&(r=c().param(r)),n){case d:a.getTokenAndExecuteCommandIfTokenIsValid(e,(function(e){r=r?"".concat(r,"&"):"",r+="".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))}));break;case p:a.getTokenAndExecuteCommandIfTokenIsValid(e,(function(t){e.additionalHeaders[encodeURIComponent(t.name)]=encodeURIComponent(t.value)}));break;case u:break;default:throw new Error("Unsupported AntiforgeryTokenBehavior: ".concat(n))}e.data=r},this.isJsonContentType=function(e){return!!e.contentType&&"string"===typeof e.contentType&&-1!==e.contentType.indexOf("json")},this.isCrossDomainRequest=function(e){var t;try{t=location.href}catch(s){var n=document.createElement("a");n.href="",t=n.href}var r=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,o=r.exec(t.toLowerCase()),i=r.exec(e.url?e.url.toLowerCase():"");return!(!(i&&i.length>3&&o&&o.length>3)||i[1]===o[1]&&i[a.hostIdx]===o[a.hostIdx]&&(i[a.portIdx]||("http:"===i[1]?"80":"443"))===(o[a.portIdx]||("http:"===o[1]?"80":"443")))},this.sendRequest=function(e,t){if(e.operationName){var n=e.operationName.toLowerCase();if(a.mockedAjaxOps[n]){var r=a.mockedAjaxOps[n],o=c().Deferred();return setTimeout((function(){r(o)})),o}}return t(e)},this.postImpl=function(e){return e.method="POST",a.makeRequest(e)},this.getImpl=function(e){return e.method="GET",a.makeRequest(e)},this.putImpl=function(e){return e.method="PUT",a.makeRequest(e)},this.delImpl=function(e){return e.method="DELETE",a.makeRequest(e)},this.makeRequest=function(e){var t=a;if("function"===typeof c()){a.willChangeSupportCors&&(c().support.cors=!0);var n,r=e.additionalHeaders||{},i=e.body,s=i?JSON.stringify(i):e.data||void 0,l=e.maxRetry||0,u=0,d=e.operationName||e.url,p=e.errorFormatter||function(e){return e},h={url:e.url,type:e.method,data:s,crossDomain:!0,headers:{},success:e.success,timeout:e.timeout,error:e.error,jsonp:e.jsonp,jsonpCallback:e.jsonpCallback,cache:e.cache,beforeSend:function(o){if(e.contractVersion&&o.setRequestHeader("MS-Contract-Version",e.contractVersion),(!0===e.addCvToRequestHeader||!1!==e.addCvToRequestHeader&&t.alwaysAddCvToRequestHeader)&&t.isValid(n)&&o.setRequestHeader("MS-CV",n),r)for(var i in r)r.hasOwnProperty(i)&&o.setRequestHeader(i,r[i])}};e.dataType&&(h.dataType=e.dataType),e.noCacheBusting||(h.cache=!1),e.contentType&&(h.contentType=e.contentType),e.accept&&(h.headers.Accept=e.accept),e.accepts&&(h.accepts=e.accepts),e.async&&(h.async=e.async),e.xhrFields&&(h.xhrFields=e.xhrFields),e.complete&&(h.complete=e.complete),e.contents&&(h.contents=e.contents),e.context&&(h.context=e.context),e.dataFilter&&(h.dataFilter=e.dataFilter),e.global&&(h.global=e.global),e.ifModified&&(h.ifModified=e.ifModified),e.isLocal&&(h.isLocal=e.isLocal),e.mimeType&&(h.mimeType=e.mimeType),e.password&&(h.password=e.password),e.processData&&(h.processData=e.processData),e.scriptCharset&&(h.scriptCharset=e.scriptCharset),e.statusCode&&(h.statusCode=e.statusCode),e.traditional&&(h.traditional=e.traditional),e.type&&(h.type=e.type),e.username&&(h.username=e.username),e.xhr&&(h.xhr=e.xhr),n=a.isValid(e.cV)?e.cV:a.increment();var m=function(r,i,a){var s=r.getResponseHeader("Content-Length"),l={name:"Ms.Webi.OutgoingRequest",data:{cV:n,baseData:{operationName:e.currentOperationName,targetUri:t.targetUriOverrideCallbackFunction?t.targetUriOverrideCallbackFunction(h.url):h.url,latencyMs:a,serviceErrorCode:!i&&r.responseJSON&&r.responseJSON.code&&!isNaN(r.responseJSON.code)?r.responseJSON.code:-1,succeeded:i,requestMethod:h.type,responseContentType:h.dataType,protocolStatusCode:r.status.toString(),dependencyOperationName:d,dependencyOperationVersion:e.version&&e.version.toString(),dependencyName:e.serviceName,dependencyType:"WebService",responseSizeBytes:s&&parseInt(s,10)},baseType:o,message:i?void 0:JSON.stringify(r.errorThrown),retryCount:u,customData:e.customDataCallBack&&"function"===typeof e.customDataCallBack?JSON.stringify(e.customDataCallBack(r)):void 0}};e.QosCallback&&"function"===typeof e.QosCallback&&e.QosCallback(r,l),t.reportEvent(l.data)};return function r(){var o="".concat(d,"_Retry_").concat(u);return t.recordTimeSpan(o,!1),c().ajax(h).then((function(e,n,r){var i=t.recordTimeSpan(o,!0);return m(r,!0,i),r}),(function(i,a){var s=t.recordTimeSpan(o,!0);m(i,!1,s);var d=c().Deferred();return l>u&&(0===i.status||i.status>=t.minServerErrorStatusCode&&i.status<t.maxServerErrorStatusCode)?(u++,n=t.isValid(e.cV)?t.incrementExternal(n):t.increment(),setTimeout((function(){r().done(d.resolve).fail(d.reject)}),t.retryTimeout)):d.reject(i,a),d.promise()}))}().then((function(e,t,n){return n}),(function(t){return p(t,e)}))}},this.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(t.length===a.cv1Length)return a.validateWithCv1(e);if(t.length===a.cv2Length)return a.validateWithCv2(e)}}return!1},this.validateWithCv1=function(e){return!!(a.cv1Constants.validationPattern.test(e)&&e.length<=a.cv1Constants.maxCorrelationVectorLength)},this.validateWithCv2=function(e){return!!(a.cv2Constants.validationPattern.test(e)&&e.length<=a.cv2Constants.maxCorrelationVectorLength)},this.increment=function(){return a.cvManager.incrementCv(),a.cvManager.getCurrentCvValue()},this.incrementExternal=function(e){if(a.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var i=t[0].length===a.cv2Length?a.cv2Constants.maxCorrelationVectorLength:a.cv1Constants.maxCorrelationVectorLength;if(r.length<=i)return r}return""},this.reportEvent=function(e){var t=e.baseData,n={currentOperationName:t.operationName,operationName:t.dependencyOperationName,requestUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.serviceErrorCode,isSuccess:t.succeeded,httpMethod:t.requestMethod,contentType:t.responseContentType,httpStatusCode:t.protocolStatusCode,serviceName:t.dependencyName,serviceType:t.dependencyType,operationVersion:t.dependencyOperationVersion,responseSize:t.responseSizeBytes,errorMessage:e.message,retryCount:e.retryCount,customData:e.customData,cV:e.cV};a.qosLogger.reportOutgoingApi(n)},!t)throw new Error("options must be specified.");this.willChangeSupportCors=!1}e.prototype.getTokenAndExecuteCommandIfTokenIsValid=function(e,t){var n=this.getAntiForgeryTokenForRequest(e);n&&t(n)},e.overrideRequestQosData=function(e,t,n,r){if((r||r.data)&&(t.overrideRequestQosData||e.overrideRequestQosData)){var o=r.data.baseData,i=r.data,a={isSuccess:o&&o.succeeded,latencyMs:o&&o.latencyMs,httpStatusCode:o&&o.protocolStatusCode,serviceErrorCode:o&&o.serviceErrorCode,errorMessage:i&&i.message};a.responseStatus=n.status,a.requestTimeout=t.timeout;var s=h;t.overrideRequestQosData&&(s=t.overrideRequestQosData(t,n,a)),h===s&&e.overrideRequestQosData&&(e.overrideRequestQosData(a),s=m),m===s&&(o&&(o.succeeded=a.isSuccess,o.latencyMs=a.latencyMs,o.protocolStatusCode=a.httpStatusCode,o.serviceErrorCode=a.serviceErrorCode),i&&(i.message=a.errorMessage))}},e.prototype.recordTimeSpan=function(e,t){var n=(new Date).getTime();return t?n-this.timers[e]:void(this.timers[e]=n)}}();var E=function(){var e=this;this.ajaxGet=function(t){return e.performAjaxRequest("GET",t)},this.ajaxPost=function(t){return e.performAjaxRequest("POST",t)},this.ajaxPut=function(t){return e.performAjaxRequest("PUT",t)},this.ajaxDelete=function(t){return e.performAjaxRequest("DELETE",t)},this.getAntiForgeryToken=function(e,t){return{name:"antiforgery",value:"token"}},this.mockAjaxOperationResult=function(e,t){},this.clearAjaxOperationMocks=function(){},this.performAjaxRequest=function(e,t){return $.ajax($.extend({},t,{method:e}))}},k=function(){this.serialize=function(){return""},this.getProperty=function(e){return""},this.setProperty=function(e,t){},this.deleteProperty=function(e){return!1}},w=function(){this.getCurrentCvValue=function(){return"cv.1"},this.getCorrelationVectorFormFieldName=function(){return"cv"},this.seedCv=function(e){},this.incrementCv=function(){}},I=(function(){function e(e){var n=this;this.options=e,this.initializationAttempt=0,this.initializers=[],this.biSinks=[],this.qosSinks=[],this.perfSinks=[],this.scenariosSinks=[],this.experimentsSinks=[],this.configurationUpdateSinks=[],this.pageViewOccurred=!1,this.executeOnPageViewQueue=[],this.maxErrorStringLength=100,this.timeoutMultiplier=100,this.scenarioStartPoints={},this.useAsGlobalTelemetryProvider=function(){window.BradburyTelemetry=n.toTelemetryProvider(),n.dom.setWindowLoadHandler(n.$notifyPageLoaded)},this.toTelemetryProvider=function(){return{cv:n.cvManager,cc:n.ccManager,qos:n,perf:n,bi:n,scenarios:n,experiments:n,ajax:n.ajaxTelemetry,utilities:n.utilities,configuration:n}},this.setCorrelationVectorManager=function(e){n.cvManager=e},this.setCorrelationContextManager=function(e){n.ccManager=e},this.setUtilityFunctions=function(e){n.utilities=e},this.setAjaxTelemetrySink=function(e){n.ajaxTelemetry=e},this.registerInitializer=function(e){n.initializers.push(e)},this.registerBiSink=function(e){n.biSinks.push(e)},this.registerQosSink=function(e){n.qosSinks.push(e)},this.registerPerfSink=function(e){n.perfSinks.push(e)},this.registerScenariosSink=function(e){n.scenariosSinks.push(e)},this.registerExperimentsSink=function(e){n.experimentsSinks.push(e)},this.registerTelemetryConfigurationUpdateSink=function(e){n.configurationUpdateSinks.push(e)},this.updateFlights=function(e){n.configurationUpdateSinks.forEach((function(t){return t.updateFlights(e)}))},this.updateUserPuid=function(e){n.configurationUpdateSinks.forEach((function(t){return t.updateUserPuid(e)}))},this.reportOutgoingApi=function(e){n.reportQosOperation((function(t){return t.reportOutgoingApi(e)}))},this.reportClientError=function(e){n.reportQosOperation((function(t){return t.reportClientError(e)}))},this.reportFatalError=function(e){n.reportQosOperation((function(t){return t.reportFatalError(e)}))},this.reportRawEvent=function(e){n.reportQosOperation((function(t){return t.reportRawEvent(e)}))},this.reportViewPerformanceMetrics=function(e,t){n.reportClientPerformance((function(n){return n.reportViewPerformanceMetrics(e,t)}))},this.$notifyPageLoaded=function(){n.setExperimentData(),n.reportBiOperation((function(e){return e.$notifyPageLoaded()})),n.options.allowAutoPageView&&!n.dom.isPageOptedOutFromAutoPageView()&&n.reportPageView({url:n.dom.getLocationHref(),viewId:n.dom.getPageId()})},this.reportClick=function(e){n.executeAfterPageView((function(){return n.reportBiOperation((function(t){return t.reportClick(e)}))}))},this.reportPartialView=function(e){n.executeAfterPageView((function(){return n.reportBiOperation((function(t){return t.reportPartialView(e)}))}))},this.reportPageView=function(e){if(n.setExperimentData(),e.$hosted)n.executeAfterPageView((function(){return n.reportBiOperation((function(t){return t.reportPageView(e)}))}));else{if(n.reportBiOperation((function(t){return t.reportPageView(e)})),n.executeOnPageViewQueue.length){var t=n.executeOnPageViewQueue;n.executeOnPageViewQueue=[];for(var r=0,o=t;r<o.length;r++){(0,o[r])()}}n.pageViewOccurred=!0}},this.reportSpaPageView=function(e){n.setExperimentData(),e.$hosted?n.executeAfterPageView((function(){return n.reportSpaPageViewImpl(e)})):n.reportSpaPageViewImpl(e)},this.getDefaultPlt=function(){return function(e){var t=e.getNow().getTime(),n=e.getPerformanceTiming();return(n.domComplete||t)-(n.fetchStart||t)||0}(n.dom)},this.getCurrentLocation=function(){return n.dom.getLocationHref()},this.getCurrentReferrer=function(){return n.dom.getReferrer()},this.getCurrentPageId=function(){return n.dom.getPageId()},this.getTrafficOriginator=function(){return n.dom.getCookie("tref").toLowerCase()},this.beginScenario=function(e,r,o){return n.$beginScenario({area:e,name:r,currentStep:t,attribution:o&&o.attribution,data:o&&o.data}),r},this.beginMultiStepScenario=function(e,r,o,i){return n.$beginScenario({area:e,name:r,currentStep:t,nextStep:o,attribution:i&&i.attribution,data:i&&i.data}),r},this.endScenario=function(e){n.$completeStep({area:e.area,name:e.name,currentStep:t,nextStep:n.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:n.calculateScenarioTime(e)})},this.cancelScenario=function(e){n.$completeStep({area:e.area,name:e.name,currentStep:t,nextStep:n.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:n.calculateScenarioTime(e)})},this.endStep=function(e){n.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!1,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.cancelStep=function(e){n.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!0,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.endMultiStepScenario=function(e){n.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:n.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:n.calculateScenarioTime(e),data:e.data})},this.cancelMultiStepScenario=function(e){n.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:n.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:n.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:n.calculateScenarioTime(e),data:e.data})},this.$beginScenario=function(e){n.ccManager.deleteProperty("scenario-id"),n.ccManager.deleteProperty("scenario-step"),n.ccManager.setProperty("scenario-id",n.getCorrelationScenarioId(e)),e.nextStep&&n.ccManager.setProperty("scenario-step",e.nextStep),n.executeAfterPageView((function(){var t=n.createScenarioId(e.area,e.name);n.scenarioStartPoints[t]=n.dom.getNow().getTime(),e.attribution=n.populateScenarioAttribution(e.attribution||{}),e.market=n.options.market,e.language=n.options.language,n.reportScenarioEvent((function(t){return t.$beginScenario(e)}))}))},this.$completeStep=function(e){n.ccManager.deleteProperty("scenario-id"),n.ccManager.deleteProperty("scenario-step"),e.isStep&&(n.ccManager.setProperty("scenario-id",n.getCorrelationScenarioId(e)),e.nextStep&&n.ccManager.setProperty("scenario-step",e.nextStep)),n.executeAfterPageView((function(){e.attribution=n.populateScenarioAttribution(e.attribution||{}),e.market=n.options.market,e.language=n.options.language,n.reportScenarioEvent((function(t){return t.$completeStep(e)}))}))},this.reportExperimentTrigger=function(e){n.reportExperimentOperation((function(t){return t.reportExperimentTrigger(e)}))},this.getCorrelationScenarioId=function(e){return"".concat(e.area,".").concat(e.name)},this.executeAfterPageView=function(e){n.pageViewOccurred||n.options.$ignorePageViewQueue?e():n.executeOnPageViewQueue.push(e)},this.reportBiOperation=function(e){if(!n.initializers.length||n.initializeTelemetry((function(){return n.reportBiOperation(e)})))for(var t=0,r=n.biSinks;t<r.length;t++){var o=r[t];e(o)}},this.reportQosOperation=function(e){if(!n.initializers.length||n.initializeTelemetry((function(){return n.reportQosOperation(e)})))for(var t=0,r=n.qosSinks;t<r.length;t++){var o=r[t];e(o)}},this.reportClientPerformance=function(e){if(!n.initializers.length||n.initializeTelemetry((function(){return n.reportClientPerformance(e)})))for(var t=0,r=n.perfSinks;t<r.length;t++){var o=r[t];e(o)}},this.reportScenarioEvent=function(e){if(!n.initializers.length||n.initializeTelemetry((function(){return n.reportScenarioEvent(e)})))for(var t=0,r=n.scenariosSinks;t<r.length;t++){var o=r[t];e(o)}},this.reportExperimentOperation=function(e){if(!n.initializers.length||n.initializeTelemetry((function(){return n.reportExperimentOperation(e)})))for(var t=0,r=n.experimentsSinks;t<r.length;t++){var o=r[t];e(o)}},this.reportSpaPageViewImpl=function(e){var t=x(n.dom.getRealLocationHref()),r=n.dom.getSpaLocationHref();n.dom.setSpaPageId(e.viewId),n.dom.setSpaLocationHref("".concat(t.protocol.toLowerCase(),"//").concat(t.host.toLowerCase()).concat(function(e){var t=e||"/";return"/"!==t[0]&&(t="/".concat(t)),t}(e.path)).concat(t.search)),r&&n.dom.setSpaReferrer(r),n.reportPageView({url:n.dom.getLocationHref(),viewId:e.viewId,pltMsec:e.pltMsec,$internalIsSpa:!0})},this.createScenarioId=function(e,t){return"".concat(e,".").concat(t)},this.calculateScenarioTime=function(e){var t=n.createScenarioId(e.area,e.name),r=0;return n.scenarioStartPoints[t]&&(r=n.dom.getNow().getTime()-n.scenarioStartPoints[t],delete n.scenarioStartPoints[t]),r},this.getVirtualStepNameForTaskResult=function(e,t){return e?t.isSuccess?"!CANCELOK":"!CANCELFAIL":t.isSuccess?"!OK":"!FAIL"},this.getSafeStepErrorCodeValue=function(e){var t=e;return(t=(t=t||"").substr(0,n.maxErrorStringLength))&&!/^[0-9a-zA-Z-_. ]+$/.test(t)&&(t="InvalidErrorCodeValue_ReadDocumentation"),t},this.populateScenarioAttribution=function(e){var t=n.getTrafficOriginator(),r=(e.flow||n.dom.getQueryParameter("fref")).toLowerCase();return r||(r=t?"ext":"int"),t||(t="int"),e.origin=t,e.flow=r,e.owner=(e.owner||"").toLowerCase(),e},this.initializeTelemetry=function(e){if(!n.initializers.length)return!0;for(var t=[],r=0,o=n.initializers;r<o.length;r++){var i=o[r];i.initialize(n.initializationAttempt)||t.push(i)}return t.length?(n.initializationAttempt++,n.initializers=t,setTimeout(e,n.initializationAttempt*n.timeoutMultiplier),!1):(n.initializers=[],!0)},this.dom=e.dom||v(e.urlScrubber),this.cvManager=new w,this.ccManager=new k,this.ajaxTelemetry=new E,this.utilities={}}e.prototype.setExperimentData=function(){this.reportExperimentOperation((function(e){return e.setExperimentData()}))}}(),__webpack_require__(68706)),P=__webpack_require__(86748),T=__webpack_require__(23679),D=__webpack_require__(41630),A=__webpack_require__(47617),R=__webpack_require__(28487),N=__webpack_require__(64430),M=__webpack_require__(89038),F=__webpack_require__(17289),B=__webpack_require__(41370),O=__webpack_require__(11421),L=__webpack_require__(6864),H=0,V=1,z=2,U=__webpack_require__(70461);function W(e){try{return e.responseText}catch(t){}return""}var G=function(){function e(){}return e.prototype.makeRequest=function(e,t,n,r){var o,i=this;if((0,N.cp)()){var a=new XDomainRequest;a.open(n,e),a.onload=function(){r(200,W(a),{})},a.onerror=function(){r(400,W(a),{})},a.ontimeout=function(){r(500,W(a),{})},a.onprogress=function(){},setTimeout((function(){a.send(t)}),0)}else if((0,N.b$)())fetch(e,(o={body:t,method:n,credentials:"include"},o[U.tP]=!0,o)).then((function(e){var t={};e.headers&&e.headers.forEach((function(e,n){t[n]=e})),r(e.status,JSON.stringify(e.json()),t)})).catch((function(e){r(0,e,{})}));else if((0,N.Z3)()){var s=(0,M.ot)(n,e,!0,!0);s.onload=function(){r(s.status,W(s),i._convertAllHeadersToMap(s.getAllResponseHeaders()))},s.onerror=function(){r(s.status,W(s),i._convertAllHeadersToMap(s.getAllResponseHeaders()))},s.ontimeout=function(){r(s.status,W(s),i._convertAllHeadersToMap(s.getAllResponseHeaders()))},s.send(t)}},e.prototype._convertAllHeadersToMap=function(e){var t={};if(e)for(var n=e.split("\n"),r=0;r<n.length;++r){var o=n[r].split(": ");t[o[0]]=o[1]}return t},e}(),j=function(){function e(e,t,n){this._endpointUrl="",this._logger=n,this._endpointUrl=e,this._requestHandler=new G,this.setAuthType(t)}return e.prototype.setAuthType=function(e){var t="";switch(e){case z:t="aad.js";break;case V:t="msa.js"}this._getLoginUrlPath=this._endpointUrl+"auth/GetLoginUrl/"+t,this._signOutPath=this._endpointUrl+"auth/SignOut/"+t},e.prototype.startAuthHandshake=function(){var e=this;this._requestHandler.makeRequest(this._getLoginUrlPath,"","GET",(function(t,n,r){try{var o=JSON.parse(n).webResult.authLoginUrl,i=(0,N.Me)();if(i){var a=i.createElement("iframe"),s=Math.floor(Math.random()*Math.floor(1e4));a.id="telframe"+s,a.style.display="none",a.src=o,i.body.appendChild(a),e._loginIframeId=a.id}}catch(l){(0,O.kP)(e._logger,1,501,"Error with auth handshake process: "+l)}}))},e.prototype.cleanAuthIFrame=function(){var e=(0,N.Me)();if(e){var t=e.getElementById(this._loginIframeId);t&&e.body.removeChild(t)}},e.prototype.signOutAndClearCookies=function(){this._requestHandler.makeRequest(this._signOutPath,"","POST",(function(e,t,n){}))},e}(),q="authBounced",K=function(e){function t(){var n,r,o,i,a,s,l,c,u=e.call(this)||this;return u.identifier="AuthPlugin",u.priority=190,u.version="3.2.14",(0,D.Z)(t,u,(function(t,d){function p(){if(o.authType!=H){var e=n,t=e.getWParam;e.getWParam=function(){var e=0;return(e=o.authType===V?8|e:16|e)|(t?t():0)}}}function h(e,n){var r=(0,N.Me)();if(r){var o=r.createElement("a");o.href=n;var i=o.protocol+"//"+o.hostname;if((e.origin===i||"https://login.microsoftonline.com"===e.origin)&&e.data)try{m()}catch(a){(0,O.kP)(t.diagLog(),1,502,"Error receiving auth redirect message: "+a)}}}function m(){a&&clearTimeout(a),r&&r.cleanAuthIFrame(),i=!1,f()}function f(){(0,B.tO)(l,(function(e){e.ctx.processNext(e.item)})),l=[]}function g(){n=null,r=null,o=null,i=!1,a=null,s=null,l=[]}g(),t.initialize=function(t,a,l){var d=u;n=a,e.prototype.initialize.call(u,t,a,l),c=(0,A.jU)((0,R.J)(d.identifier),a.evtNamespace&&a.evtNamespace());var m=d.identifier;o=t.extensionConfig[m]||{},t.extensionConfig[m]=o,i=!1,s=o.handShakeTimeoutMs?o.handShakeTimeoutMs:5e3;var g=o.overrideAuthEndpointUrl?o.overrideAuthEndpointUrl:t.endpointUrl;function v(){f()}r=new j(g,o.authType,d.diagLog()),p();var y=t.disablePageUnloadEvents||[];(0,A.c9)(v,y,c),(0,A.TJ)(v,y,c);var b=(0,N.Jj)();b&&(0,A.XO)(b,"message",(function(e){h(e,g)}),c)},t.processTelemetry=function(e,n){if(n=t._getTelCtx(n),(0,M.if)(e,t.identifier),o.authType!==H&&o.loggedInStatusCallback&&!0===o.loggedInStatusCallback()){var c=(0,F.JP)(t.core);if(!(0,M.Do)(c,q)){c.set(q,(0,B.Y6)(new Date),1800),i=!0,a=setTimeout((function(){m()}),s),r.startAuthHandshake()}}i?l.push({ctx:n,item:e}):t.processNext(e,n)},t.signOut=function(){(0,F.JP)(n).del(q),r.signOutAndClearCookies(),m()},t.setAuthType=function(e){m(),o.authType=e,r.setAuthType(e),p()},t._doTeardown=function(e,t){m(),(0,A.QY)((0,N.Jj)(),"message",null,c),(0,A.JA)(null,c),(0,A.C9)(null,c),g()},(0,B.l_)(t,"_authHandler",(function(){return r})),(0,B.l_)(t,"_authConfig",(function(){return o})),(0,B.l_)(t,"_eventQueue",(function(){return l})),(0,B.l_)(t,"_handshakeInProgress",(function(){return i})),(0,B.l_)(t,"_evtNamespace",(function(){return"."+c}))})),u}return(0,T.ne)(t,e),t.__ieDyn=1,t}(L.i),Y=__webpack_require__(92800),X=__webpack_require__(6649),Q=function(){function e(t){var n=(0,M.cm)(),r=(0,X.DO)();(0,D.Z)(e,this,(function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||r},e.getLastPageViewId=function(){return n}}))}return e.__ieDyn=1,e}(),Z=__webpack_require__(44793);function J(e){var t="ai."+e+".";return function(e){return t+e}}var ee=J("application"),te=J("device"),ne=J("location"),re=J("operation"),oe=J("session"),ie=J("user"),ae=J("cloud"),se=J("internal"),le=function(e){function t(){return e.call(this)||this}return(0,T.ne)(t,e),t}((0,B.hl)({applicationVersion:ee("ver"),applicationBuild:ee("build"),applicationTypeId:ee("typeId"),applicationId:ee("applicationId"),applicationLayer:ee("layer"),deviceId:te("id"),deviceIp:te("ip"),deviceLanguage:te("language"),deviceLocale:te("locale"),deviceModel:te("model"),deviceFriendlyName:te("friendlyName"),deviceNetwork:te("network"),deviceNetworkName:te("networkName"),deviceOEMName:te("oemName"),deviceOS:te("os"),deviceOSVersion:te("osVersion"),deviceRoleInstance:te("roleInstance"),deviceRoleName:te("roleName"),deviceScreenResolution:te("screenResolution"),deviceType:te("type"),deviceMachineName:te("machineName"),deviceVMName:te("vmName"),deviceBrowser:te("browser"),deviceBrowserVersion:te("browserVersion"),locationIp:ne("ip"),locationCountry:ne("country"),locationProvince:ne("province"),locationCity:ne("city"),operationId:re("id"),operationName:re("name"),operationParentId:re("parentId"),operationRootId:re("rootId"),operationSyntheticSource:re("syntheticSource"),operationCorrelationVector:re("correlationVector"),sessionId:oe("id"),sessionIsFirst:oe("isFirst"),sessionIsNew:oe("isNew"),userAccountAcquisitionDate:ie("accountAcquisitionDate"),userAccountId:ie("accountId"),userAgent:ie("userAgent"),userId:ie("id"),userStoreRegion:ie("storeRegion"),userAuthUserId:ie("authUserId"),userAnonymousUserAcquisitionDate:ie("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ie("authUserAcquisitionDate"),cloudName:ae("name"),cloudRole:ae("role"),cloudRoleVer:ae("roleVer"),cloudRoleInstance:ae("roleInstance"),cloudEnvironment:ae("environment"),cloudLocation:ae("location"),cloudDeploymentUnit:ae("deploymentUnit"),internalNodeName:se("nodeName"),internalSdkVersion:se("sdkVersion"),internalAgentVersion:se("agentVersion"),internalSnippet:se("snippet"),internalSdkSrc:se("sdkSrc")})),ce="trace",ue=(new le,__webpack_require__(67043)),de=__webpack_require__(40438),pe=__webpack_require__(95858),he=__webpack_require__(32928),me=__webpack_require__(20648),fe=__webpack_require__(25661),ge=__webpack_require__(50786),ve=__webpack_require__(46419),ye=__webpack_require__(35918),be="duration",Ce="excludeRequestFromAutoTrackingPatterns",Se=__webpack_require__(2694),xe=__webpack_require__(91166),_e=__webpack_require__(18911);function Ee(e,t,n){var r=0,o=e[t],i=e[n];return o&&i&&(r=(0,ue.yZ)(o,i)),r}function ke(e,t,n,r,o){var i=0,a=Ee(n,r,o);return a&&(i=we(e,t,(0,Se.eN)(a))),i}function we(e,t,n){var r=0;e&&t&&n&&((e.ajaxPerf=e.ajaxPerf||{})[t]=n,r=1);return r}var Ie=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},Pe=function(){function e(t,n,r,o){var i,a=this,s=r;a.perfMark=null,a.completed=!1,a.requestHeadersSize=null,a.requestHeaders=null,a.responseReceivingDuration=null,a.callbackDuration=null,a.ajaxTotalDuration=null,a.aborted=0,a.pageUrl=null,a.requestUrl=null,a.requestSize=0,a.method=null,a.status=null,a.requestSentTime=null,a.responseStartedTime=null,a.responseFinishedTime=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new Ie,a.clientFailure=0,a.traceID=t,a.spanID=n,a.traceFlags=null===o||void 0===o?void 0:o.getTraceFlags(),a.eventTraceCtx=o?((i={}).traceId=o.getTraceId(),i.spanId=o.getSpanId(),i.traceFlags=o.getTraceFlags(),i):null,(0,D.Z)(e,a,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?(0,xe.U)(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?(0,_e.rr)(s,(0,xe.hq)(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){var o;if(e.ajaxTotalDuration=Math.round(1e3*(0,ue.yZ)(e.requestSentTime,e.responseFinishedTime))/1e3,e.ajaxTotalDuration<0)return null;var i=((o={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl()}).name=e.getPathName(),o.type=t,o.startTime=null,o.duration=e.ajaxTotalDuration,o.success=+e.status>=200&&+e.status<400,o.responseCode=+e.status,o.properties={HttpMethod:e.method},o),a=i.properties;if(e.aborted&&(a.aborted=!0),e.requestSentTime&&(i.startTime=new Date,i.startTime.setTime(e.requestSentTime)),function(e,t){var n=e.perfTiming,r=t.properties||{},o=0,i="name",a="domainLookup",s="connect",l="redirect",c="request",u="response",d="startTime",p="connectEnd",h="requestStart",m="responseEnd",f=l+"Start",g=l="End",v="transferSize",y="encodedBodySize",b="decodedBodySize",C="serverTiming";if(n){o|=ke(r,l,n,f,g),o|=ke(r,a,n,"domainLookupStart","domainLookupEnd"),o|=ke(r,s,n,"connectStart",p),o|=ke(r,c,n,h,"requestEnd"),o|=ke(r,u,n,"responseStart",m),o|=ke(r,"networkConnect",n,d,p),o|=ke(r,"sentRequest",n,h,m);var S=n.duration;S||(S=Ee(n,d,m)||0),o|=we(r,be,S),o|=we(r,"perfTotal",S);var x=n.serverTiming;if(x){var _={};(0,B.tO)(x,(function(e,t){var n=(0,B.Gf)(e.name||""+t),r=_[n]||{};(0,B.rW)(e,(function(e,t){(e!==i&&(0,B.HD)(t)||(0,B.hj)(t))&&(r[e]&&(t=r[e]+";"+t),!t&&(0,B.HD)(t)||(r[e]=t))})),_[n]=r})),o|=we(r,C,_)}o|=we(r,v,n.transferSize),o|=we(r,y,n.encodedBodySize),o|=we(r,b,n.decodedBodySize)}else e.perfMark&&(o|=we(r,"missing",e.perfAttempts));o&&(t.properties=r)}(e,i),n&&(0,B.FY)(e.requestHeaders).length>0&&(a.requestHeaders=e.requestHeaders),r){var s=r();if(s){var l=s.correlationContext;if(l&&(i.correlationContext=l),s.headerMap&&(0,B.FY)(s.headerMap).length>0&&(a.responseHeaders=s.headerMap),e.errorStatusText)if(e.status>=400){var c=s.type;""!==c&&"text"!==c||(a.responseText=s.responseText?s.statusText+" - "+s.responseText:s.statusText),"json"===c&&(a.responseText=s.response?s.statusText+" - "+JSON.stringify(s.response):s.statusText)}else 0===e.status&&(a.responseText=s.statusText||"")}}return i},e.getPartAProps=function(){var t,n=null,r=e.eventTraceCtx;if(r&&(r.traceId||r.spanId)){var o=(n={})[ce]=((t={}).traceID=r.traceId,t.parentID=r.spanId,t);(0,B.le)(r.traceFlags)||(o.traceFlags=r.traceFlags)}return n}}))}return e.__ieDyn=1,e}(),Te="ai.ajxmn.",De="fetch",Ae="Failed to monitor XMLHttpRequest",Re=", monitoring data for this ajax call ",Ne=Re+"may be incorrect.",Me=Re+"won't be sent.",Fe="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Be="Failed to add custom defined request context as configured call back may missing a null check.",Oe="Failed to calculate the duration of the ",Le=0;var He=null;var Ve=function(e,t){return e&&t&&e._ajaxData?(e._ajaxData.i||{})[t]:null},ze=function(e,t){var n=!1;if(e){var r=(e._ajaxData||{}).xh;r&&(0,B.tO)(r,(function(e){if(e.n===t)return n=!0,-1}))}return n};function Ue(e,t){var n="";try{var r=Ve(e,t);r&&r.requestUrl&&(n+="(url: '"+r.requestUrl+"')")}catch(o){}return n}function We(e,t,n,r,o){(0,O.kP)(e.diagLog(),1,t,n,r,o)}function Ge(e,t,n,r,o){(0,O.kP)(e.diagLog(),2,t,n,r,o)}function je(e,t,n){return function(r){We(e,t,n,{ajaxDiagnosticsMessage:Ue(r.inst,e._ajaxDataId),exception:(0,N.eU)(r.err)})}}function qe(e,t){return e&&t?e.indexOf(t):-1}function Ke(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){(0,B.tO)(e,(function(t,n){if(t.id===r.id)return e.splice(n,1),-1}))}}}function Ye(e,t,n,r){var o=!0;return(0,B.tO)(t,(function(t,i){try{!1===t.fn.call(null,n)&&(o=!1)}catch(a){(0,O.kP)(e&&e.logger,1,64,"Dependency "+r+" [#"+i+"] failed: "+(0,B.jj)(a),{exception:(0,N.eU)(a)},!0)}})),o}var Xe="*.blob.core.",Qe=(0,B._A)([Xe+"windows.net",Xe+"chinacloudapi.cn",Xe+"cloudapi.de",Xe+"usgovcloudapi.net"]),Ze=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Je(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:Qe,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0}}function $e(){var e=Je();return(0,B.rW)(e,(function(t){e[t]=void 0})),e}var et=function(e){function t(){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S,x,_,E,k,w=e.call(this)||this;return w.identifier=t.identifier,w.priority=120,(0,D.Z)(t,w,(function(e,w){var I=w._addHook;function P(){var w=(0,N.k$)();n=!1,r=!1,o=w&&w.host&&w.host.toLowerCase(),i=t.getEmptyConfig(),a=!1,s=!1,l=0,c=null,u=!1,d=!1,p=null,h=!1,m=0,f=!1,g={},v=!1,y=!1,b=null,C=null,S=null,_=0,E=[],k=[],x=(0,R.J)("ajaxData"),e._ajaxDataId=x}function D(e){var t=!0;return(e||i.ignoreHeaders)&&(0,B.tO)(i.ignoreHeaders,(function(n){if(n.toLowerCase()===e.toLowerCase())return t=!1,-1})),t}function M(e,t,n){I((0,ye._z)(e,t,n))}function F(e,t,n){var r=!1,o=(((0,B.HD)(t)?t:(t||{}).url||"")||"").toLowerCase();if((0,B.tO)(b,(function(e){var t=e;(0,B.HD)(e)&&(t=new RegExp(e)),r||(r=t.test(o))})),r)return r;var i=qe(o,"?"),a=qe(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),(0,B.le)(e)?(0,B.le)(t)||(r="object"===typeof t&&!0===t[U.tP]||!!n&&!0===n[U.tP]):r=!0===e[U.tP]||!0===o[U.tP],!r&&o&&(0,ue.EX)(o)&&(r=!0),r?g[o]||(g[o]=1):g[o]&&(r=!0),r}function O(e,t,n){var o=!0,i=r;return(0,B.le)(e)||(o=!0===n||!(0,B.le)(t)),i&&o}function L(){var t=null;return e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=(0,ue.xx)(c.telemetryTrace)),t}function H(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}function V(t){try{var n=t.getAllResponseHeaders();if(null!==n)if(-1!==qe(n.toLowerCase(),de.C[8])){var r=t.getResponseHeader(de.C[0]);return ue.Qc.getCorrelationContext(r)}}catch(o){Ge(e,18,Fe,{ajaxDiagnosticsMessage:Ue(t,x),exception:(0,N.eU)(o)})}}function z(e,t){if(t.requestUrl&&p&&h){var n=(0,N.r)();if(n&&(0,B.mf)(n.mark)){Le++;var r=p+e+"#"+Le;n.mark(r);var o=n.getEntriesByName(r);o&&1===o.length&&(t.perfMark=o[0])}}}function W(e,t,n,r){var o=t.perfMark,a=(0,N.r)(),s=i.maxAjaxPerfLookupAttempts,l=i.ajaxPerfLookupDelay,c=t.requestUrl,u=0;!function i(){try{if(a&&o){u++;for(var d=null,p=a.getEntries(),h=p.length-1;h>=0;h--){var m=p[h];if(m){if("resource"===m.entryType)m.initiatorType!==e||-1===qe(m.name,c)&&-1===qe(c,m.name)||(d=m);else if("mark"===m.entryType&&m.name===o.name){t.perfTiming=d;break}if(m.startTime<o.startTime-1e3)break}}}!o||t.perfTiming||u>=s||!1===t.async?(o&&(0,B.mf)(a.clearMarks)&&a.clearMarks(o.name),t.perfAttempts=u,n()):setTimeout(i,l)}catch(f){r(f)}}()}function G(t){var n="";try{(0,B.le)(t)||((0,B.HD)(t)?n+="(url: '".concat(t,"')"):n+="(url: '".concat(t.url,"')"))}catch(r){We(e,15,"Failed to grab failed fetch diagnostics message",{exception:(0,N.eU)(r)})}return n}function j(t,n,r,o,i,s,l){function c(t,n,o){var i=o||{};i.fetchDiagnosticsMessage=G(r),n&&(i.exception=(0,N.eU)(n)),Ge(e,t,Oe+"fetch call"+Me,i)}i&&(i.responseFinishedTime=(0,ue.QM)(),i.status=n,W(De,i,(function(){var t,l=i.CreateTrackItem("Fetch",a,s);try{C&&(t=C({status:n,request:r,response:o}))}catch(d){Ge(e,104,Be)}if(l){void 0!==t&&(l.properties=(0,T.uc)((0,T.uc)({},l.properties),t));var u=i.getPartAProps();K(k,e.core,i,l,null,u)}else c(14,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})}),(function(e){c(18,e,null)})))}function q(t){if(t&&t.headers)try{var n=t.headers.get(de.C[0]);return ue.Qc.getCorrelationContext(n)}catch(r){Ge(e,18,Fe,{fetchDiagnosticsMessage:G(t),exception:(0,N.eU)(r)})}}function K(t,n,r,o,i,a){var s=!0;t.length>0&&(s=Ye(n,t,{item:o,properties:i,sysProperties:a,context:r?r.context:null,aborted:!!r&&!!r.aborted},"initializer"));s&&e.trackDependencyDataInternal(o,i,a)}P(),e.initialize=function(o,l,g,_){e.isInitialized()||(w.initialize(o,l,g,_),S=(0,A.jU)((0,R.J)("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(n){var r=(0,ve.CD)(null,n,e.core);i=$e();var o=Je();(0,B.rW)(o,(function(e,n){i[e]=r.getConfig(t.identifier,e,n)}));var l=i.distributedTracingMode;if(a=i.enableRequestHeaderTracking,s=i.enableAjaxErrorStatusText,h=i.enableAjaxPerfTracking,m=i.maxAjaxCallsPerView,f=i.enableResponseHeaderTracking,b=[].concat(i[Ce]||[],!1!==i.addIntEndpoints?Ze:[]),C=i.addRequestContext,d=0===l||1===l,u=1===l||2===l,h){var c=n.instrumentationKey||"unkwn";p=c.length>5?Te+c.substring(c.length-5)+".":Te+c+"."}v=!!i.disableAjaxTracking,y=!!i.disableFetchTracking}(o),!function(e,t){var n,r=!1;if((0,N.Z3)()){var o=XMLHttpRequest[ge.hB];r=!(0,B.le)(o)&&!(0,B.le)(o.open)&&!(0,B.le)(o.send)&&!(0,B.le)(o.abort)}var i=(0,N.sA)();if(i&&i<9&&(r=!1),r)try{var a=new XMLHttpRequest,s={xh:[],i:(n={},n[t]={},n)};a._ajaxData=s;var l=XMLHttpRequest[ge.hB].open;XMLHttpRequest[ge.hB].open=l}catch(c){r=!1,We(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:(0,N.eU)(c)})}return r}(e,x)||v||r||(M(XMLHttpRequest,"open",{ns:S,req:function(t,n,r,o){if(!v){var i=t.inst,l=Ve(i,x);!F(i,r)&&O(i,l,!0)&&(l&&l.xhrMonitoringState.openDone||(l=function(t,n,r,o){var i,a=L(),l=a&&a.getTraceId()||(0,X.DO)(),c=(0,X.DO)().substr(0,16),u=t._ajaxData=t._ajaxData||{xh:[],i:{}},d=u.i=u.i||{},p=d[x]=d[x]||new Pe(l,c,e.diagLog(),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return p.traceFlags=a&&a.getTraceFlags(),p.method=n,p.requestUrl=r,p.xhrMonitoringState.openDone=!0,p.requestHeaders={},p.async=o,p.errorStatusText=s,p}(i,n,r,o)),function(t,n){n.xhrMonitoringState.stateChangeAttached=(0,A.XO)(t,"readystatechange",(function(){try{t&&4===t.readyState&&O(t,n)&&function(t){var n=Ve(t,x);function r(n,r){var o=r||{};o.ajaxDiagnosticsMessage=Ue(t,x),n&&(o.exception=(0,N.eU)(n)),Ge(e,14,Oe+"ajax call"+Me,o)}n.responseFinishedTime=(0,ue.QM)(),n.status=t.status,W("xmlhttprequest",n,(function(){try{var o=n.CreateTrackItem("Ajax",a,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:V(t),type:t.responseType,responseText:H(t),response:t.response};if(f){var n=t.getAllResponseHeaders();if(n){var r=(0,B.nd)(n).split(/[\r\n]+/),o={};(0,B.tO)(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");D(n)&&(o[n]=r)})),e.headerMap=o}}return e})),i=void 0;try{C&&(i=C({status:t.status,xhr:t}))}catch(c){Ge(e,104,Be)}if(o){void 0!==i&&(o.properties=(0,T.uc)((0,T.uc)({},o.properties),i));var s=n.getPartAProps();K(k,e.core,n,o,null,s)}else r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{var l=(t._ajaxData||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(c){}}}),(function(e){r(e,null)}))}(t)}catch(o){var r=(0,N.eU)(o);r&&-1!==qe(r.toLowerCase(),"c00c023f")||We(e,16,Ae+" 'readystatechange' event handler"+Ne,{ajaxDiagnosticsMessage:Ue(t,x),exception:r})}}),S)}(i,l))}},hkErr:je(e,15,Ae+".open"+Ne)}),M(XMLHttpRequest,"send",{ns:S,req:function(t,n){if(!v){var r=t.inst,o=Ve(r,x);O(r,o)&&!o.xhrMonitoringState.sendDone&&(z("xhr",o),o.requestSentTime=(0,ue.QM)(),e.includeCorrelationHeaders(o,void 0,void 0,r),o.xhrMonitoringState.sendDone=!0)}},hkErr:je(e,17,Ae+Ne)}),M(XMLHttpRequest,"abort",{ns:S,req:function(e){if(!v){var t=e.inst,n=Ve(t,x);O(t,n)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)}},hkErr:je(e,13,Ae+".abort"+Ne)}),M(XMLHttpRequest,"setRequestHeader",{ns:S,req:function(e,t,n){if(!v){var r=e.inst,o=Ve(r,x);o&&O(r,o)&&(function(e,t,n){if(e){var r=(e._ajaxData||{}).xh;r&&r.push({n:t,v:n})}}(r,t,n),a&&D(t)&&o&&(o.requestHeaders[t]=n))}},hkErr:je(e,71,Ae+".setRequestHeader"+Ne)}),r=!0),function(){var t=function(){var e=(0,fe.Rd)();return!e||(0,B.le)(e.Request)||(0,B.le)(e.Request[ge.hB])||(0,B.le)(e.fetch)?null:e.fetch}();if(!t)return;var o=(0,fe.Rd)(),i=t.polyfill;y||n?i&&I((0,ye.n3)(o,De,{ns:S,req:function(e,t,n){F(null,t,n)}})):(I((0,ye.n3)(o,De,{ns:S,req:function(t,o,l){var c;if(!y&&n&&!F(null,o,l)&&(!i||!r)){var u=t.ctx();c=function(t,n){var r,o=L(),i=o&&o.getTraceId()||(0,X.DO)(),l=(0,X.DO)().substr(0,16),c=new Pe(i,l,e.diagLog(),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());c.traceFlags=o&&o.getTraceFlags(),c.requestSentTime=(0,ue.QM)(),c.errorStatusText=s,t instanceof Request?c.requestUrl=t?t.url:"":c.requestUrl=t;var u="GET";n&&n.method?u=n.method:t&&t instanceof Request&&(u=t.method);c.method=u;var d={};if(a){new Headers((n?n.headers:0)||t instanceof Request&&t.headers||{}).forEach((function(e,t){D(t)&&(d[t]=e)}))}return c.requestHeaders=d,z(De,c),c}(o,l);var d=e.includeCorrelationHeaders(c,o,l);d!==l&&t.set(1,d),u.data=c}},rsp:function(e,t){if(!y){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(r){return j(e,(r||{}).status,t,r,n,(function(){var e={statusText:(r||{}).statusText,headerMap:null,correlationContext:q(r)};if(f&&r){var t={};r.headers.forEach((function(e,n){D(n)&&(t[n]=e)})),e.headerMap=t}return e})),r})).catch((function(r){throw j(e,0,t,null,n,null,{error:r.message||(0,N.eU)(r)}),r})))}},hkErr:je(e,15,"Failed to monitor Window.fetch"+Ne)},!0,function(){if(null==He)try{He=!!(self&&self instanceof WorkerGlobalScope)}catch(e){He=!1}return He}())),n=!0);i&&(o.fetch.polyfill=i)}(),function(){var t=e.core.getPlugin(me.A3);t&&(c=t.plugin.context)}())},e._doTeardown=function(){P()},e.trackDependencyData=function(t,n){K(k,e.core,null,t,n)},e.includeCorrelationHeaders=function(t,n,r,s){var l=e._currentWindowHost||o;if(function(e,t,n,r,o,i){if(e.length>0){var a={core:t,xhr:r,input:o,init:i,traceId:n.traceID,spanId:n.spanID,traceFlags:n.traceFlags,context:n.context||{},aborted:!!n.aborted};Ye(t,e,a,"listener"),n.traceID=a.traceId,n.spanID=a.spanId,n.traceFlags=a.traceFlags,n.context=a.context}}(E,e.core,t,s,n,r),n||""===n){if(ue.Qc.canIncludeCorrelationHeader(i,t.getAbsoluteUrl(),l)){r||(r={});var p=new Headers(r.headers||n instanceof Request&&n.headers||{});if(d){var h="|"+t.traceID+"."+t.spanID;p.set(de.C[3],h),a&&(t.requestHeaders[de.C[3]]=h)}if((g=i.appId||c&&c.appId())&&(p.set(de.C[0],de.C[2]+g),a&&(t.requestHeaders[de.C[0]]=de.C[2]+g)),u){var m=t.traceFlags;(0,B.le)(m)&&(m=1);var f=(0,pe.aR)((0,pe.SU)(t.traceID,t.spanID,m));p.set(de.C[4],f),a&&(t.requestHeaders[de.C[4]]=f)}r.headers=p}return r}if(s){if(ue.Qc.canIncludeCorrelationHeader(i,t.getAbsoluteUrl(),l)){if(d)if(ze(s,de.C[3]))Ge(e,71,"Unable to set ["+de.C[3]+"] as it has already been set by another instance");else{h="|"+t.traceID+"."+t.spanID;s.setRequestHeader(de.C[3],h),a&&(t.requestHeaders[de.C[3]]=h)}var g;if((g=i.appId||c&&c.appId())&&(ze(s,de.C[0])?Ge(e,71,"Unable to set ["+de.C[0]+"] as it has already been set by another instance"):(s.setRequestHeader(de.C[0],de.C[2]+g),a&&(t.requestHeaders[de.C[0]]=de.C[2]+g))),u){m=t.traceFlags;if((0,B.le)(m)&&(m=1),ze(s,de.C[4]))Ge(e,71,"Unable to set ["+de.C[4]+"] as it has already been set by another instance");else{f=(0,pe.aR)((0,pe.SU)(t.traceID,t.spanID,m));s.setRequestHeader(de.C[4],f),a&&(t.requestHeaders[de.C[4]]=f)}}}return s}},e.trackDependencyDataInternal=function(t,n,r){if(-1===m||l<m){2!==i.distributedTracingMode&&1!==i.distributedTracingMode||"string"!==typeof t.id||"."===t.id[t.id.length-1]||(t.id+="."),(0,B.le)(t.startTime)&&(t.startTime=new Date);var o=(0,he.Z)(t,Z.H.dataType,Z.H.envelopeType,e.diagLog(),n,r);e.core.track(o)}else l===m&&We(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},e.addDependencyListener=function(e){return Ke(E,_++,e)},e.addDependencyInitializer=function(e){return Ke(k,_++,e)}})),w}return(0,T.ne)(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=Je,t.getEmptyConfig=$e,t}(L.i);function tt(e,t,n){var r=function(e,t){var n;e&&e[t]&&(n=e[t],delete e[t]);return n}(e,n);return t[n]?t[n]:r}function nt(e,t){var n,r={},o=(0,N.Me)();if(o){n=o.querySelectorAll("meta");for(var i=0;i<n.length;i++){var a=n[i];if(a.name)if(0===a.name.toLowerCase().indexOf(e))r[t?a.name.replace(e,""):a.name]=a.content}}return r}function rt(e){(0,B.rW)(e,(function(t,n){(!(0,M.Sn)(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}var ot,it=function(){function e(){}return e.prototype._setCommonProperties=function(e,t){(0,M.Sn)(t.cV)&&(e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV=t.cV),e.baseData.operationName=t.operationName,e.baseData.latencyMs=t.latencyMs,e.baseData.serviceErrorCode=t.serviceErrorCode||-1,e.baseData.succeeded=t.succeeded,e.baseData.requestStatus=t.requestStatus,e.baseData.requestMethod=t.requestMethod,(0,M.Sn)(t.target)&&(e.baseData.target=t.target),(0,M.Sn)(t.responseContentType)&&(e.baseData.responseContentType=t.responseContentType),(0,M.Sn)(t.protocol)&&(e.baseData.protocol=t.protocol),(0,M.Sn)(t.protocolStatusCode)&&(e.baseData.protocolStatusCode=t.protocolStatusCode)},e}(),at=function(){function e(){this._qosEvent=new it}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),(0,M.Sn)(t.callerIpAddress)&&(e.baseData.callerIpAddress=t.callerIpAddress),(0,M.Sn)(t.callerName)&&(e.baseData.callerName=t.callerName),(0,M.Sn)(t.requestSizeBytes)&&(e.baseData.requestSizeBytes=t.requestSizeBytes),(0,M.Sn)(t.operationVersion)&&(e.baseData.operationVersion=t.operationVersion)},e}(),st=function(){function e(){this._qosEvent=new it}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),e.baseData.dependencyOperationName=t.dependencyOperationName,e.baseData.dependencyName=t.dependencyName,e.baseData.dependencyType=t.dependencyType||"WebService",(0,M.Sn)(t.dependencyOperationVersion)&&(e.baseData.dependencyOperationVersion=t.dependencyOperationVersion),(0,M.Sn)(t.responseSizeBytes)&&(e.baseData.responseSizeBytes=t.responseSizeBytes)},e}(),lt="MS-CV",ct=function(e){function t(){var n,r,o,i,a,s=e.call(this)||this;return s.identifier="QosPlugin",s.version="3.2.14",(0,D.Z)(t,s,(function(e,t){function s(e){var t={enableCorsCorrelation:!1,correlationHeaderExcludedDomains:[],correlationHeaderExcludePatterns:null,disableCorrelationHeaders:!1,maxAjaxCallsPerView:-1,disableAjaxTracking:!1,disableFetchTracking:!1,enableCvHeaders:!1,appId:void 0,excludeRequestFromAutoTrackingPatterns:void 0,distributedTracingMode:1,correlationHeaderDomains:void 0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,callback:{pageName:null,id:null},autoCapture:{msTags:!0},coreData:{requestUri:"",pageName:""}},n=[];return(0,B.rW)(t,(function(e,t){t&&(0,B.Kn)(t)&&n.push(e)})),function(e,t){rt(e),(0,B.tO)(t,(function(t){(0,B.Kn)(e[t])?rt(e[t]):delete e[t]}))}(e,n),(0,M.l7)(!0,t,e)}function l(t,n){u(t,n),e.core.track(t)}function c(){n=null,i={market:"",serverImpressionGuid:""},a={},r=new st,o=new at}function u(e,t){(0,M.Sn)(t)&&(0,B.rW)(t,(function(t,n){e.data[t]=n}))}c(),e.includeCorrelationHeaders=function(n,r,o,i){var s=t.includeCorrelationHeaders(n,r,o,i);if(a.enableCvHeaders){var l=e.getCv();if(l&&(r||i)){l.increment();var c=l.getValue();r?(s||(s=o||{}),s.headers&&(0,B.mf)(s.headers.append)||(s.headers=new Headers(s.headers||r instanceof Request&&r.headers||{})),s.headers.append(lt,c)):s.setRequestHeader(lt,c)}}return s},e.initialize=function(r,o,l){var c=r.extensionConfig=r.extensionConfig||[];c[e.identifier]=c[e.identifier]||{},a=e._qosConfig=s(c[e.identifier]),c[et.identifier]=a,t.initialize(r,o,l);var u=function(e){var t,n={};return t=nt("awa-",!0),e.autoCapture&&e.autoCapture.msTags&&(n=nt("ms.",!1)),(0,M.l7)(!0,t,n)}(e._qosConfig);i.market=tt(u,a.coreData,"market"),i.serverImpressionGuid=tt(u,a.coreData,"serverImpressionGuid");var d=(o.getPlugin("CorrelationVectorPlugin")||{}).plugin,p=(o.getPlugin("WebAnalyticsPlugin")||{}).plugin;p&&p.id?e.id=p.id:e.id=new Q(o),a.enableCvHeaders&&(d?(a.enableCvHeaders=!0,n=d):((0,O.kP)(e.diagLog(),2,508,'Enable cV headers it is set to "true" in config.  However, cv plugin is not available. Disabling adding Cv in dependency requests '),a.enableCvHeaders=!1))},e.processTelemetry=function(t,n){(0,M.if)(t,e.identifier);var r=t;if(r.baseType===Z.H.dataType)"Ms.Qos.OutgoingServiceRequest"!==r.name&&(r.name="Ms.Web.OutgoingRequest",r.baseData=r.baseData||{},r.baseData.properties=r.baseData.properties||{},r.baseData.properties.parentId=r.baseData.properties.parentId||e.id.getLastPageViewId(),delete r.baseData.method),r.latency=1;e.processNext(r,n)},e.trackDependencyData=function(t,n){e.trackDependencyDataInternal(t,n)},e.trackDependencyDataInternal=function(n,r,o){var s=o||{},l=s[ce];if(l){var c=s.dt=s.dt||{};c.traceId=c.traceId||l.traceID,c.spanId=c.spanId||l.parentID,(0,B.le)(l.traceFlags)||(0,B.hj)(c.traceFlags)||(c.traceFlags=l.traceFlags)}(0,M.Sn)(n.cV)&&(s.mscv={},s.mscv.cV=n.cV),n.id=a.callback&&a.callback.id?a.callback.id():(0,M.cm)(),(r=r||{}).pageName=(0,M.Sn)(r.pageName)?r.pageName:function(e){if(e.callback&&"function"===typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var t=((0,N.k$)()||{}).pathname||"",n=t.replace(/(^\/+|\/+$)/g,"").split("/"),r=n.length;return n&&n[r-1]?n[r-1]:"Home"}(e._qosConfig),r.uri=(0,M.Sn)(r.uri)?r.uri:function(e){var t=(0,N.k$)()||{};return e.coreData.requestUri?e.coreData.requestUri:t.href}(e._qosConfig),r.market=(0,M.Sn)(r.market)?r.market:i.market,r.serverImpressionGuid=(0,M.Sn)(r.serverImpressionGuid)?r.serverImpressionGuid:i.serverImpressionGuid,t.trackDependencyDataInternal(n,r,s)},e.trackServiceOutgoingQos=function(e,t){var n={name:"Ms.Qos.OutgoingServiceRequest",baseType:"RemoteDependencyData",ext:{},baseData:{},data:{},latency:3};r._setQosProperties(n,e),u(n,t),l(n)},e.trackServiceIncomingQos=function(e,t){var n={name:"Ms.Qos.IncomingServiceRequest",baseType:"RequestData",ext:{},baseData:{},data:{},latency:3};o._setQosProperties(n,e),u(n,t),l(n)},e.getCv=function(){return n?n.getCv():null},e._doTeardown=function(e,n){t._doTeardown(e,n),c()}})),s}return(0,T.ne)(t,e),t.__ieDyn=1,t}(et),ut=ct,dt=__webpack_require__(80714),pt=__webpack_require__(90498),ht=function(e){var t={referrerUri:Dt.dom.getReferrer()};Pt.capturePageView(t)},mt=function(e){if(Dt.allowClickTracking){var t={content:{id:e.clickId,aN:e.pageArea,cN:e.clickId,cS:e.containerGroup||e.container||e.clickId},isAuto:!1,targetUri:e.targetUri&&Dt.urlScrubber(e.targetUri)||Dt.dom.getLocationHref(),pageName:Dt.dom.getPageId(),refUri:Dt.dom.getReferrer(),actionType:dt.U.CLICKLEFT};Pt.capturePageAction(Dt.dummyElement,t)}},ft={reportPageView:ht,reportClick:mt,reportPartialView:function(e){var t={behavior:pt.c.IMPRESSION,pageName:e.viewId},n={pageLoadTime:e.pltMsec};Pt.captureContentUpdate(t,n)},$notifyPageLoaded:function(){}},gt=function(t){var n={errorInfo:(0,e.__assign)({Page:t.location,PageName:t.pageId,Script:t.script,Message:t.message,LineNumber:t.lineNumber,UserAgent:t.userAgent,flights:Dt.flights},t.ext),wasDisplayed:!1,uri:Dt.dom.getLocationHref(),pageName:t.pageId,market:Dt.market};Pt.trackException({},n)},vt=function(t){var n=t.content,r=n.baseData,o=(0,e.__rest)(n,["baseData"]),i={name:t.name,baseType:t.baseType,data:o,baseData:r};Pt.trackEvent(i)},yt=function(e){var t={latencyMs:e.latencyMs,requestMethod:e.httpMethod,succeeded:e.isSuccess,serviceErrorCode:e.serviceErrorCode,responseContentType:e.contentType,operationName:e.currentOperationName||e.operationName,responseSizeBytes:e.responseSize,protocolStatusCode:e.httpStatusCode,target:Dt.urlScrubber(e.requestUri),dependencyName:e.serviceName,dependencyOperationName:e.operationName,dependencyOperationVersion:e.operationVersion},n={errorMessage:e.errorMessage,customData:e._optionalData&&JSON.stringify(e._optionalData)||e.customData,pageName:Dt.dom.getPageId(),uri:Dt.dom.getLocationHref(),market:Dt.market,cV:e.cV};Tt.trackServiceOutgoingQos(t,n)},bt={reportClientError:function(e){var t=e&&e.data&&JSON.stringify(e.data),n={location:Dt.dom.getLocationHref(),pageId:Dt.dom.getPageId(),script:Dt.dom.getLocationHref(),message:e&&e.message||t||"unknown",userAgent:window.navigator.userAgent||""};gt(n)},reportFatalError:gt,reportRawEvent:vt,reportOutgoingApi:yt},Ct="awa-",St=function(){for(var e=document.getElementsByTagName("meta"),t={},n=0;n<e.length;n++){var r=e[n].name,o=e[n].content;if(r&&0===r.indexOf(Ct))t[r.replace(Ct,"")]=o}return t},xt=function(e){var t={name:i,baseType:"Ms.Content.PageView",baseData:{pageTags:{flight:e,metaTags:St()}}};Pt.trackEvent(t)},_t={reportExperimentTrigger:xt,setExperimentData:function(){}},Et=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clickCaptureInputTypes={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},e.KeyCodes={GamePadA:195,GamePadMenu:207},e.ActionTypes={GamePadA:"CGA",GamePadMenu:"CGM"},e}return(0,e.__extends)(n,t),n.prototype.click=function(){var e=this,t=(0,N.Jj)(),n=(0,N.Me)();if(t&&t.addEventListener){var r=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(r,(function(t){e._processClick(t)}),!1),t.addEventListener("keydown",(function(t){e._processClick(t)}),!1)}else n&&n.attachEvent&&(n.attachEvent("onclick",(function(t){e._processClick(t)})),n.attachEvent("keydown",(function(t){e._processClick(t)})))},n.prototype._processClick=function(e){var n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},r=(0,N.Jj)(),o=e||(null===r||void 0===r?void 0:r.event),i=o.srcElement||o.target,a={isAuto:!0,clickCoordinateX:o.pageX,clickCoordinateY:o.pageY};if(o.keyCode===this.KeyCodes.GamePadA)a.actionType=this.ActionTypes.GamePadA;else{if(o.keyCode!==this.KeyCodes.GamePadMenu)return void t.prototype._processClick.call(this,e);a.actionType=this.ActionTypes.GamePadMenu}for(;i&&i.tagName;){if(i.control&&n[i.control.tagName.toUpperCase()]&&(i=i.control),n[i.tagName.toUpperCase()]){("INPUT"!==i.tagName.toUpperCase()||this.clickCaptureInputTypes[i.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(i,a,{});break}i=i.parentElement||i.parentNode}},n}(__webpack_require__(49327).b),kt=function(t,n){var r={alt:It(t),vlt:Math.round(t.loadTimeMsec),data:t.components&&t.components.map((function(t){return(0,e.__assign)((0,e.__assign)({},t.data),{componentName:t.name,startTime:Math.round(t.started),endTime:Math.round(t.ended)})})),customData:{}};n&&n.forEach((function(e){r.customData[e.name]=e.value}));var o={pageName:t.viewName||Dt.dom.getPageId(),isDomComplete:!0},i={uri:Dt.dom.getLocationHref(),timings:r,pageTypeForPerf:t.viewName||Dt.dom.getPageId()};Pt.captureContentUpdate(o,i)},wt={reportViewPerformanceMetrics:kt},It=function(e){var t=e;return t.application?Math.round(t.application.loadTimeMsec):void 0},Pt=new I.K,Tt=new ut,Dt={},At=[r,n,"Ms.Web.ContentUpdate","Ms.Web.ClientError",o,i,s,a];function Rt(t,a){var l=new K;ot=new Y.Z(a.seedCv);var c=new P.Z,u=a.features.join("|"),d=a.urlScrubber||y;if(Dt.allowClickTracking=t.allowClickTracking,Dt.flights=u,Dt.urlScrubber=d,Dt.dom=a.dom||v(d),Dt.market=a.language,Dt.dummyElement=document.createElement("div"),t.useKeydownEvent){var p=Pt.getWebAnalyticsExtension(),h=new Et(p,p.diagLog());p.setAutoCaptureHandler(h)}var m={instrumentationKey:t.instrumentationKey,propertyConfiguration:{env:t.environment},webAnalyticsConfiguration:{autoCapture:{pageView:!1,onLoad:!1,lineage:!0,click:t.allowClickTracking,scroll:t.allowScrollTracking,jsError:!1},coreData:{market:a.language,pageTags:{flight:u}},shareAuthStatus:!0,useDefaultContentName:!0,manageCv:!0,urlCollectHash:!0,urlCollectQuery:!0,isLoggedIn:t.isUserSignedIn},extensions:[l,ot,Tt],extensionConfig:[]},f={callback:{},appId:t.appId,enableCvHeaders:!0,disableAjaxTracking:!0,disableFetchTracking:!0};m.extensionConfig[Tt.identifier]=f;var g={authType:V,loggedInStatusCallback:function(){return t.isUserSignedIn||!1}};m.extensionConfig[l.identifier]=g;m.extensionConfig[c.identifier]={populateBrowserInfo:!0,populateOperatingSystemInfo:!0},Pt.initialize(m,[]),t.userPuid&&t.isUserSignedIn&&(Pt.getPropertyManager().getPropertiesContext().user.localId="p:".concat(t.userPuid)),Pt.addTelemetryInitializer((function(t){var a,l;if(t.baseData||(t.baseData={}),t.data||(t.data={}),At.indexOf(t.name)>-1){t.data.referrerUri=Dt.dom.getReferrer(),t.data.isLoggedIn=t.baseData.isLoggedIn,t.data.isManual=t.baseData.isManual,t.baseData.pageName=Dt.dom.getPageId(),t.baseData.impressionGuid=t.baseData.id;var c=t.baseData.properties.pageTags||{},u=t.baseData.pageTags||{};if(t.baseData.pageTags=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},u),c),{metaTags:(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},u.metaTags),c.metaTags),St()),{pageTypeForPerf:t.data.pageTypeForPerf})}),delete t.baseData.properties.pageTags,t.name===r){t.data.refUri=d(t.data.refUri);var p=d(t.baseData.targetUri);t.baseData.targetUri=p,t.baseData.destUri=p;var h=JSON.parse(t.baseData.content||"");h=h.map((function(t){return(0,e.__assign)((0,e.__assign)({},t),{cN:t.cN?"REMOVED":void 0,srchq:t.srchq?"REMOVED":void 0})})),t.baseData.content=JSON.stringify(h)}else t.name===o?(t.baseData.targetUri=t.baseData.target,(null===(l=null===(a=t.ext)||void 0===a?void 0:a.mscv)||void 0===l?void 0:l.cV)&&t.data.overrideCv&&(t.ext.mscv.cV=t.data.overrideCv,delete t.data.overrideCv)):t.name===i||t.name===s?t.baseData.market=Dt.market||"":t.name===n&&(t.baseData.name=t.baseData.pageName);t.baseData.uri=Dt.dom.getLocationHref()}"Ms.Web.PageUnload"===t.name&&t.baseData.uri&&(t.baseData.uri=d(t.baseData.uri))}))}var Nt="awa-",Mt="Ms.Osgs.Scenario",Ft={$beginScenario:function(t){var n={name:Mt,data:(0,e.__assign)({uri:Dt.dom.getLocationHref(),referrerUri:Dt.dom.getReferrer(),pageName:Dt.dom.getPageId(),area:t.area,name:t.name,step:t.currentStep,next:t.nextStep||"",type:"s"},Bt(t))};Pt.trackEvent(n);var r={behavior:pt.c.STARTPROCESS,actionType:"A",contentTags:(0,e.__assign)({scn:t.name,scnstp:t.currentStep,scnnxtstp:t.nextStep},Ot(t.data))};Pt.capturePageAction(Dt.dummyElement,r)},$completeStep:function(t){var n="ef";t.canceled?n=t.successful?"cs":"cf":t.successful&&(n="es");var r={name:Mt,data:(0,e.__assign)({uri:Dt.dom.getLocationHref(),referrerUri:Dt.dom.getReferrer(),pageName:Dt.dom.getPageId(),area:t.area,name:t.name,step:t.currentStep,next:t.nextStep||"",type:t.isStep?"t":"x",result:n,tmsec:t.timeMsec||0,error:t.error},Bt(t))};Pt.trackEvent(r);var o=t.isStep?pt.c.PROCESSCHECKPOINT:pt.c.COMPLETEPROCESS;!t.isStep&&t.canceled&&(o=pt.c.SCENARIOCANCEL);var i={behavior:o,actionType:"A",contentTags:(0,e.__assign)({scn:t.name,scnstp:t.currentStep,scnnxtstp:t.nextStep,isSuccess:!!t.successful,isCancel:!!t.canceled,scnerror:t.error},Ot(t.data))};Pt.capturePageAction(Dt.dummyElement,i)}},Bt=function(e){var t,n,r;return{data:e.data&&JSON.stringify(e.data),origin:null===(t=e.attribution)||void 0===t?void 0:t.origin,flow:null===(n=e.attribution)||void 0===n?void 0:n.flow,owner:null===(r=e.attribution)||void 0===r?void 0:r.owner,mkt:e.market,lang:e.language}},Ot=function(e){if(e){var t={};return Object.keys(e).forEach((function(n){var r=n;n.startsWith(Nt)&&(r=r.replace(Nt,"")),t[r]=e[n]})),t}},Lt={getCorrelationVectorFormFieldName:function(){return"MS-CV"},getCurrentCvValue:function(){return ot.getCv().getValue()},incrementCv:function(){ot.getCv().increment()},seedCv:function(e){return e?ot.getCv().init(e):ot.getCv().seed()}},Ht={updateFlights:function(e){Dt.flights=e.join("|"),Pt.getWebAnalyticsExtension().updateCoreDataConfig({pageTags:{flight:Dt.flights}})},updateUserPuid:function(e){Pt.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e)}};window.OneDS={initialize:Rt,BiSink:ft,ClientQosSink:bt,CorrelationVectorManager:Lt,ExperimentsSink:_t,ScenarioSink:Ft,PerformanceSink:wt,TelemetryConfigurationUpdateSink:Ht},window.owap=Pt;var Vt=1,zt=2,Ut=3,Wt=4,Gt=__webpack_require__(87363),jt=__webpack_require__.n(Gt);var qt=/^[a-z][a-z0-9+.-]*:\/\//,Kt=function(e,t,n,r){void 0===n&&(n="default"),void 0===r&&(r=void 0);var o=null===t||void 0===t?void 0:t.toLowerCase(),i=Object.keys(e).find((function(e){var t=e.toLowerCase();return o===t||r&&t.indexOf(r)>-1&&t.split(r).indexOf(o)>-1}));return e[null!==i&&void 0!==i?i:n]},Yt=[],Xt=function(e){(0,Gt.useEffect)((function(){return e}),Yt)},Qt=function(e){var t=(0,Gt.useRef)(!1);t.current||(t.current=!0,e())};function Zt(e){return void 0!==e}var Jt,$t=function(e){return(0,Gt.useMemo)((function(){return localStorage?{get value(){return localStorage.getItem(e)},set value(t){null===t?localStorage.removeItem(e):localStorage.setItem(e,t)}}:{get value(){var t;return null!==(t=en.get(e))&&void 0!==t?t:null},set value(t){null===t?en.delete(e):en.set(e,t)}}}),[e])},en=new Map,tn=function(e,t){return e.name!==t&&Object.defineProperty(e,"name",{value:t}),e},nn=__webpack_require__(61533),rn=__webpack_require__.n(nn),on=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.getSnapshotBeforeUpdate=function(e){if(!e.isUpdating&&this.props.isUpdating&&document.activeElement){var t=rn().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,Jt=this)}return null},n.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=rn().findDOMNode(this);if(t&&document.activeElement===document.body&&Jt===this)if(t.contains(this.savedFocusElement))this.savedFocusElement.focus();else if(this.savedFocusElement.dataset.biId)if(t.tagName===this.savedFocusElement.tagName&&t.dataset.biId===this.savedFocusElement.dataset.biId)t.focus();else{var n=t.querySelector("".concat(this.savedFocusElement.tagName,'[data-bi-id="').concat(this.savedFocusElement.dataset.biId,'"]'));n&&n.focus()}this.savedFocusElement=void 0}},n.prototype.render=function(){return this.props.children},n}(jt().Component),an=JSON.parse('{"p":"main-content-landing","P":"main-content-landing-react"}');function sn(e,t){var n=e;if(!n)return n;if(null===t||!Array.isArray(t)&&"object"!==typeof t){var r=null===t||void 0===t?"":t;n=n.replace(/\{0\}/g,r)}else n=n.replace(/\{(\w+)\}/g,(function(e,n){var r=t[n];return null===r||void 0===r?"":r}));return n}var ln=function(e){var t=function(e){for(var t=encodeURIComponent(e).toLowerCase(),n=document.cookie.split(";"),r=0;r<n.length;r++){var o=n[r].split("="),i=decodeURIComponent(o[0].trim().toLowerCase());o.shift();var a=o.join("=");if(i===t)return decodeURIComponent(a)}return""}("mock-scenarios"),n=t.split(",");return e?n.filter((function(t){return 0===t.indexOf(e)})):n},cn=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;function un(e){return cn.test(e)&&!function(e){for(var t=0;t<e.length;++t)if(e.charCodeAt(t)>127)return!0;return!1}(e)}var dn=function(t,n,r){var o=encodeURIComponent(n),i=encodeURIComponent(r),a=t.split("#"),s=a[0],l=a[1],c=s.split("?"),u=c[0],d=c[1],p=[];(null===d||void 0===d?void 0:d.length)>0&&(p=null===d||void 0===d?void 0:d.split("&"));var h=p.filter((function(e){return e.split("=")[0]!==o})),m="".concat(o,"=").concat(i),f=(0,e.__spreadArray)((0,e.__spreadArray)([],h,!0),[m],!1).join("&"),g="".concat(u,"?").concat(f);return(null===l||void 0===l?void 0:l.length)>0&&(g="".concat(g,"#").concat(l)),g},pn=function(e,t){return null!==e&&t?t.reduce((function(e,t){var n=Object.entries(t)[0],r=n[0],o=n[1];return dn(e,r,o)}),e):e},hn=function(e){var t=new URLSearchParams(window.location.search),n=window.location.hash;t.delete(e);var r=t.toString(),o=""===r?"".concat(window.location.pathname):"".concat(window.location.pathname,"?").concat(r);n&&(o+=n),window.history.replaceState(null,"",o)},mn=function(e,t){return new URLSearchParams(window.location.search.toUpperCase()).get(e.toUpperCase())===t.toUpperCase()},fn=function(e,t){var n;return t?new URLSearchParams(window.location.search).get(e):new URLSearchParams(null===(n=window.location.search)||void 0===n?void 0:n.toUpperCase()).get(e.toUpperCase())};function gn(e,t){var n=fn(e,t);return hn(e),n}function vn(e,t){if(!e)throw new Error("".concat(t," not found"))}function yn(e){return e&&e.replace(/^http:\/\//i,"https://")}function bn(e,t){var n=e;if(!n)return n;if(null===t||!Array.isArray(t)&&"object"!==typeof t){var r=null===t||void 0===t?"":t;n=n.replace(/\{0\}/g,r)}else n=n.replace(/\{(\w+)\}/g,(function(e,n){var r=t[n];return null===r||void 0===r?"":r}));return n}var Cn=function(){return(65536*(1+function(){var e=window.crypto||window.msCrypto;if(e){var t=new Uint32Array(1);return e.getRandomValues(t)[0]/4294967296}return Math.random()}())|0).toString(16).substring(1)},Sn=function(){return"".concat(Cn()).concat(Cn(),"-").concat(Cn(),"-").concat(Cn(),"-").concat(Cn(),"-").concat(Cn()).concat(Cn()).concat(Cn())},xn=(__webpack_require__(56449),/\{([-\w]+)\}/),_n=/({[-\w]+\})/,En=function(e,t,n){return e.reduce((function(e,r,o){var i,a,s=r,l=null===(i=xn.exec(r))||void 0===i?void 0:i[1];if(l&&t.hasOwnProperty(l)){var c=t[l];if(a=c,jt().isValidElement(a))return c=n?n(c):c,e.push(jt().cloneElement(c,{key:o})),e;s=null!==c&&void 0!==c?c:""}var u=e.length;return u&&"string"===typeof e[u-1]?e[u-1]+=s:e.push(s),e}),[])},kn=[],wn=function(e){(0,Gt.useEffect)((function(){return e}),kn)},In=function(e){var t=(0,Gt.useRef)(!1);t.current||(t.current=!0,e())};var Pn,Tn={bingMapsOverlay:1,twoUIFlowProgressBar:1,twoUITab:1,bingMapsListContainer:2,bingMapsNoPushPinContainer:3,twoUINavBar:5,twoUILiveToast:6,twoUINavBarOverHeader:11,twoUILeftNavBypassBlocksButton:1e4,twoUIPanel:10001,twoUINotificationBar:10002},Dn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.getSnapshotBeforeUpdate=function(e){if(!e.isUpdating&&this.props.isUpdating&&document.activeElement){var t=rn().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,Pn=this)}return null},n.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=rn().findDOMNode(this);if(t&&document.activeElement===document.body&&Pn===this)if(t.contains(this.savedFocusElement))this.savedFocusElement.focus();else if(this.savedFocusElement.dataset.biId)if(t.tagName===this.savedFocusElement.tagName&&t.dataset.biId===this.savedFocusElement.dataset.biId)t.focus();else{var n=t.querySelector("".concat(this.savedFocusElement.tagName,'[data-bi-id="').concat(this.savedFocusElement.dataset.biId,'"]'));n&&n.focus()}this.savedFocusElement=void 0}},n.prototype.render=function(){return this.props.children},n}(jt().Component),An=["s","m","l","xl","xxl","xxxl"],Rn=(0,Gt.createContext)(null),Nn={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},Mn={s:Nn.m-1,m:Nn.l-1,l:Nn.xl-1,xl:Nn.xxl-1,xxl:Nn.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER};function Fn(e,t,n){return n.find((function(n){return e<=t[n]}))||n[n.length-1]}function Bn(e,t,n){var r=(0,Gt.useState)(Fn(window.innerWidth,n,e)),o=r[0],i=r[1],a={},s=function(t){if(t.matches){var r=a[t.media]||Fn(window.innerWidth,n,e);i(r)}};return(0,Gt.useEffect)((function(){var r=window.matchMedia?e.map((function(e){var r=window.matchMedia("(max-width: ".concat(n[e],"px) and (min-width: ").concat(t[e],"px)"));return a[r.media]=e,r})):void 0;return r&&r.forEach((function(e){void 0!==e&&void 0!==e.addEventListener&&e.addEventListener("change",s)})),i(Fn(window.innerWidth,n,e)),function(){r&&r.forEach((function(e){void 0!==e&&void 0!==e.removeEventListener&&e.removeEventListener("change",s)}))}}),[]),o}var On,Ln=function(e){var t=e.children,n=Bn(An,Nn,Mn);return jt().createElement(Rn.Provider,{value:{viewportType:n}},t)},Hn=["s","m","l"],Vn={s:0,m:548,l:1284},zn={s:Vn.m-1,m:Vn.l-1,l:Number.MAX_SAFE_INTEGER},Un=function(){return Bn(Hn,Vn,zn)},Wn=((0,e.__assign)((0,e.__assign)({},Tn),{billingOrderFilter:1,suiteHeaderWholeHeader:10,feedBackButton:10,suiteHeaderSkipToMainContent:1e4}),document.querySelector("html > head")),Gn={},jn=function e(t,n){if("string"===typeof t)if(Gn[t]){var r=document.head.getElementsByTagName("meta").namedItem(t);r&&(r.content=n)}else{if(null!==Yn(t))throw new Error("Metatag not added through MetatagService already exists");Gn[t]=!0;var o=document.createElement("meta");o.name=t,o.content=n,Wn.appendChild(o)}else for(var i=t,a=0,s=Object.keys(i);a<s.length;a++){var l=s[a];e(l,i[l])}},qn=function(e){var t;Gn[e]&&(delete Gn[e],null===(t=Yn(e))||void 0===t||t.remove())},Kn=function(){for(var e=0,t=Object.keys(Gn);e<t.length;e++){var n=t[e];qn(n)}};function Yn(e){return Wn.getElementsByTagName("meta").namedItem(e)}!function(e){e.AlreadyRunning="alreadyRunning"}(On||(On={}));var Xn=1e3;var Qn,Zn="mountStart",Jn="mountEnd",$n="updateStart",er="updateEnd",tr="PreScenario",nr=tr,rr=!0,or=function(e,t){return"".concat(e,"-").concat(t)},ir=function(e){return or(e,Zn)},ar=function(e){return or(e,Jn)},sr=function(e){return or(e,$n)},lr=function(e){return or(e,er)};ir(tr),ar(tr),sr(tr),lr(tr);function cr(t){var n=window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation");if(n&&n.length){var r=n[0],o=function(e){try{return{beforeJSTime:(e.domContentLoadedEventStart-e.startTime)/Xn,redirectTime:(e.redirectEnd-e.redirectStart)/Xn,contentDownloadTime:(e.responseEnd-e.responseStart)/Xn,TTFB:(e.responseStart-e.requestStart)/Xn,PLT:(e.loadEventStart-e.startTime)/Xn,DNS:(e.domainLookupEnd-e.domainLookupStart)/Xn,TCP:(e.connectEnd-e.connectStart)/Xn,SSL:(e.requestStart-e.secureConnectionStart)/Xn}}catch(t){return{beforeJSTime:-1,redirectTime:-1,contentDownloadTime:-1,TTFB:-1,PLT:-1,DNS:-1,TCP:-1,SSL:-1}}}(r),i=window.performance.getEntriesByType("mark").map((function(e){return JSON.stringify(e)})).toString(),a=function(e){try{return{navigationStart:e.startTime,redirectStart:e.redirectStart,redirectEnd:e.redirectEnd,responseStart:e.responseStart,responseEnd:e.responseEnd,domainLookupStart:e.domainLookupStart,domainLookupEnd:e.domainLookupEnd,connectStart:e.connectStart,connectEnd:e.connectEnd,requestStart:e.requestStart,secureConnectionStart:e.secureConnectionStart}}catch(t){return{navigationStart:-1,redirectStart:-1,redirectEnd:-1,responseStart:-1,responseEnd:-1,domainLookupStart:-1,domainLookupEnd:-1,connectStart:-1,connectEnd:-1,requestStart:-1,secureConnectionStart:-1}}}(r);Br((0,e.__assign)((0,e.__assign)((0,e.__assign)({name:"Ms.Webi.MeePortal.OneNavigationPerfEvent",scenarioName:Qn,successStatus:t,isFirstScenarioOnPage:rr},o),a),{timeMarkers:i}))}window.performance.clearMarks&&window.performance.clearMarks(),ur(tr),rr=!1}function ur(e){ir(nr=e),ar(nr),sr(nr),lr(nr)}var dr,pr,hr,mr,fr,gr="Scenario not started or already ended",vr=!1,yr={isReact:!0};function br(t){var n;vr&&Br({name:"Ms.Webi.MeePortal.ScenarioErrorEvent",message:"Scenario begin called, but Scenario '".concat(t.scenario,"' is already started"),area:t.area,scenario:t.scenario,eventType:On.AlreadyRunning}),Pr(t),ur(t.step),null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.beginMultiStepScenario(t.area,t.scenario,t.step,{attribution:t.attribution,data:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},t.data),yr),{scenarioStartTimestamp:Date.now()})})}function Cr(e){var t;if(!vr)throw new Error(gr);ur(e.step),dr.push(pr),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(Tr(e))}function Sr(t){var n;if(!vr)throw new Error(gr);if(dr.length<1)throw new Error("Scenario '".concat(mr,"': Cannot go back from step '").concat(pr.step,"'"));t&&t.step&&ur(t.step);var r=dr.pop(),o=(0,e.__assign)({step:r.step,data:r.data},t);null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.cancelStep(Tr(o))}function xr(t){var n;if(!vr)throw new Error(gr);t&&t.step&&ur(t.step);var r=(0,e.__assign)({step:pr.step,data:pr.data},t);null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.cancelMultiStepScenario(Tr(r)),cr("error"),vr=!1}function _r(t){var n;if(!vr)throw new Error(gr);t&&t.step&&ur(t.step);var r=(0,e.__assign)((0,e.__assign)({},pr.data),{timeElapsedFromScenarioStart:pr.data&&pr.data.scenarioStartTimestamp?Date.now()-pr.data.scenarioStartTimestamp:null}),o=(0,e.__assign)({step:pr.step,data:r},t);null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.endMultiStepScenario(Tr(o)),cr("success"),vr=!1}function Er(t){var n;Pr(t),ur(t.step),null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.endStep({area:t.area,name:t.scenario,step:t.fromStep,next:t.step,isSuccess:!t.error,error:t.error,attribution:t.attribution,data:(0,e.__assign)((0,e.__assign)({},t.data),yr)})}function kr(e){var t;if(!vr)throw new Error(gr);ur(e.step),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(Tr(e)),cr("error"),vr=!1}function wr(){return vr?mr:void 0}function Ir(){return vr}function Pr(t){if(dr=[],function(e){if(!e)throw new Error("Performance tracking begin(): no scenario specified");Qn=e}(t.scenario),!t.area)throw new Error("no area specified");if(!t.scenario)throw new Error("no scenario specified");if(!t.step)throw new Error("Scenario '".concat(mr,"': no step specified"));hr=t.area,mr=t.scenario,fr=t.attribution,vr=!0,pr={step:t.step,data:(0,e.__assign)((0,e.__assign)({},t.data),{scenarioStartTimestamp:Date.now()})}}function Tr(t){if(!t||!t.step)throw new Error("Scenario '".concat(mr,"': next step not specified"));var n=pr.data||t.data?(0,e.__assign)((0,e.__assign)({},pr.data),t.data):{},r=pr.data?pr.data.scenarioStartTimestamp:null,o={area:hr,name:mr,attribution:fr,data:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},n),yr),{timeElapsedFromScenarioStart:r?Date.now()-r:null}),step:pr.step,next:t.step,isSuccess:!t.error,error:t.error};return pr={step:o.next,data:o.data},o}var Dr=function(){var e;return null===(e=window.BradburyTelemetry)||void 0===e?void 0:e.cv.getCurrentCvValue()},Ar=__webpack_require__(40475),Rr=function(t){var n,r,o,i={name:a,baseType:a,content:{}};t.data&&t.data.error&&(t.data.error.config&&delete t.data.error.config.data,"{}"===JSON.stringify(t.data.error)&&(t.data.error=t.data.error.toString()));var s=wr();try{t.data=(0,e.__assign)((0,e.__assign)({},t.data),{scenario:s,devServer:null!==Yn("awa-devserver")}),o=JSON.stringify(t.data)}catch(MM){o=JSON.stringify({isReact:!0,scenario:s,devServer:!1,errorMessage:"Unable to parse customData."})}i.content={name:t.name,uri:t.uri,referrerUri:null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentReferrer(),pageName:t.pageName,area:t.area,result:t.result,durationMs:t.durationMs,kind:t.kind,data:o},null===(r=window.BradburyTelemetry)||void 0===r||r.qos.reportRawEvent(i)},Nr=function(e,t){var n;null===(n=window.BradburyTelemetry)||void 0===n||n.perf.reportViewPerformanceMetrics(e,t)},Mr=function(t,n){var r,o,i,a,s=t.httpStatusCode?t.httpStatusCode:0,l="https://request-uri-missing.com";(null===(o=null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.utilities)||void 0===o?void 0:o.globalUrlScrubber)&&(l=null===(i=window.BradburyTelemetry)||void 0===i?void 0:i.utilities.globalUrlScrubber(t.requestUri));var c,u={isSuccess:void 0!==t.isSuccess?t.isSuccess:s<500,latencyMs:Math.floor(t.latency),httpStatusCode:s.toString(),serviceErrorCode:t.serviceErrorCode||-1,errorMessage:t.errorMessage,errorCode:t.errorCode,requestTimeout:t.timeout,responseStatus:s,responseDataError:t.responseDataError};!function(e,t){var n,r,o;if(!e)return;var i=h;t&&(i=t(e));i!==m&&(null===(o=null===(r=null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.utilities)||void 0===r?void 0:r.overrideRequestQosData)||void 0===o||o.call(r,e))}(u,n);try{t.customData=(0,e.__assign)((0,e.__assign)({},t.customData),{devServer:null!==Yn("awa-devserver")}),c=JSON.stringify(t.customData)}catch(BM){c="Unable to parse customData."}null===(a=window.BradburyTelemetry)||void 0===a||a.qos.reportOutgoingApi({cV:t.overrideCv||Dr(),currentOperationName:t.operationName,requestUri:l,latencyMs:u.latencyMs||-1,serviceErrorCode:u.serviceErrorCode,isSuccess:u.isSuccess,httpMethod:t.httpMethod,httpStatusCode:u.httpStatusCode,contentType:t.contentType,operationName:t.operationName,serviceName:t.partnerName||"MeePortal",responseSize:t.responseSize,errorMessage:u.errorMessage,operationVersion:"ReactJS",customData:c})};function Fr(e,t){var n,r={path:window.location.pathname,viewId:"".concat(e,".").concat(t)};null===(n=window.BradburyTelemetry)||void 0===n||n.bi.reportSpaPageView(r)}function Br(t){var n,r={name:t.name,content:(0,e.__rest)(t,["name"])};null===(n=window.BradburyTelemetry)||void 0===n||n.qos.reportRawEvent(r)}function Or(e){var t,n,r,o,i="http://uri-missing.com";(null===(n=null===(t=window.BradburyTelemetry)||void 0===t?void 0:t.utilities)||void 0===n?void 0:n.globalUrlScrubber)&&(i=null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.utilities.globalUrlScrubber(e)),Br({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:i,page:null===(o=window.BradburyTelemetry)||void 0===o?void 0:o.bi.getCurrentLocation()})}function Lr(e,t,n){var r;Br({name:"Ms.Webi.MeePortal.ComponentErrorEvent",componentName:e,errorMessage:t,errorCount:n,page:null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.bi.getCurrentLocation()})}function Hr(e,t,n){var r,o,i;Br({name:"Ms.Webi.MeePortal.ComponentMountedEvent",componentName:t,componentId:n||"",twouiVersion:e,location:null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.bi.getCurrentLocation(),pageId:null===(o=window.BradburyTelemetry)||void 0===o?void 0:o.bi.getCurrentPageId(),environment:(null===(i=null===Ar||void 0===Ar?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===i?void 0:i.NODE_ENV)||""})}function Vr(e){for(var t,n,r,o,i,a,s,l,c=(null===(t=performance.getEntriesByType)||void 0===t?void 0:t.call(performance,"resource"))||[],u=null===(r=null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.utilities)||void 0===r?void 0:r.globalUrlScrubber,d=null===(i=null===(o=window.BradburyTelemetry)||void 0===o?void 0:o.utilities)||void 0===i?void 0:i.resourceNameScrubber,p=null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.bi.getCurrentPageId(),h=null===(s=window.BradburyTelemetry)||void 0===s?void 0:s.bi.getCurrentLocation(),m=0;m<c.length;m++){var f=c[m];try{var g=new URL(f.name),v=g.pathname.split("/"),y=v[v.length-1];if("file:"===g.protocol)continue;var b=u&&u(g.href),C=d&&d(g.pathname),S=d&&d(y),x=u&&u(g.search);Br({name:"Ms.Webi.MeePortal.ResourceTiming",domain:g.hostname,path:C||g.pathname,resourceName:S||y,fullUrl:b||g.href,queryString:x||g.search,size:f.transferSize,duration:Math.floor(f.duration),entryType:f.entryType,initiatorType:f.initiatorType,url:h,area:e,pageName:p})}catch(_){Br({name:"Ms.Webi.MeePortal.ResourceTiming",fullUrl:(b=u&&u(f.name))||f.name,url:h,pageName:p,area:e,error:_.message||"unknown error"})}finally{null===(l=performance.clearResourceTimings)||void 0===l||l.call(performance)}}}function zr(e,t){Br({name:"Ms.Webi.MeePortal.DimeErrorEvent",componentName:e,message:t})}var Ur=function(e,t,n,r){var o=performance.now()-n;Nr({application:{loadTimeMsec:o},loadTimeMsec:o},[{name:"area",value:t},{name:"pageName",value:"app"},{name:"result",value:e},{name:"isReact",value:!0},{name:"error",value:r&&r.message},{name:"stack",value:r&&r.stack}])};function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wr(e,t)}function Gr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wr(e,t)}var jr=__webpack_require__(24974),qr=__webpack_require__.n(jr);function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}function Yr(e){return"/"===e.charAt(0)}function Xr(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var Qr=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Yr(e),a=t&&Yr(t),s=i||a;if(e&&Yr(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Xr(o,u):".."===d?(Xr(o,u),c++):c&&(Xr(o,u),c--)}if(!s)for(;c--;c)o.unshift("..");!s||""===o[0]||o[0]&&Yr(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p},Zr="Invariant failed";var Jr=function(e,t){if(!e)throw new Error(Zr)};function $r(e){return"/"===e.charAt(0)?e:"/"+e}function eo(e){return"/"===e.charAt(0)?e.substr(1):e}function to(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function no(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function ro(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function oo(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=Kr({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Qr(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function io(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ao=!("undefined"===typeof window||!window.document||!window.document.createElement);function so(e,t){t(window.confirm(e))}var lo="popstate",co="hashchange";function uo(){try{return window.history.state||{}}catch(e){return{}}}function po(e){void 0===e&&(e={}),ao||Jr(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,s=o.getUserConfirmation,l=void 0===s?so:s,c=o.keyLength,u=void 0===c?6:c,d=e.basename?no($r(e.basename)):"";function p(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return d&&(i=to(i,d)),oo(i,r,n)}function h(){return Math.random().toString(36).substr(2,u)}var m=io();function f(e){Kr(I,e),I.length=t.length,m.notifyListeners(I.location,I.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(p(e.state))}function v(){b(p(uo()))}var y=!1;function b(e){if(y)y=!1,f();else{m.confirmTransitionTo(e,"POP",l,(function(t){t?f({action:"POP",location:e}):function(e){var t=I.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(y=!0,_(o))}(e)}))}}var C=p(uo()),S=[C.key];function x(e){return d+ro(e)}function _(e){t.go(e)}var E=0;function k(e){1===(E+=e)&&1===e?(window.addEventListener(lo,g),r&&window.addEventListener(co,v)):0===E&&(window.removeEventListener(lo,g),r&&window.removeEventListener(co,v))}var w=!1;var I={length:t.length,action:"POP",location:C,createHref:x,push:function(e,r){var o="PUSH",i=oo(e,r,h(),I.location);m.confirmTransitionTo(i,o,l,(function(e){if(e){var r=x(i),s=i.key,l=i.state;if(n)if(t.pushState({key:s,state:l},null,r),a)window.location.href=r;else{var c=S.indexOf(I.location.key),u=S.slice(0,c+1);u.push(i.key),S=u,f({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=oo(e,r,h(),I.location);m.confirmTransitionTo(i,o,l,(function(e){if(e){var r=x(i),s=i.key,l=i.state;if(n)if(t.replaceState({key:s,state:l},null,r),a)window.location.replace(r);else{var c=S.indexOf(I.location.key);-1!==c&&(S[c]=i.key),f({action:o,location:i})}else window.location.replace(r)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return w||(k(1),w=!0),function(){return w&&(w=!1,k(-1)),t()}},listen:function(e){var t=m.appendListener(e);return k(1),function(){k(-1),t()}}};return I}var ho="hashchange",mo={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+eo(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:eo,decodePath:$r},slash:{encodePath:$r,decodePath:$r}};function fo(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function go(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function vo(e){window.location.replace(fo(window.location.href)+"#"+e)}function yo(e){void 0===e&&(e={}),ao||Jr(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?so:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?no($r(e.basename)):"",l=mo[a],c=l.encodePath,u=l.decodePath;function d(){var e=u(go());return s&&(e=to(e,s)),oo(e)}var p=io();function h(e){Kr(k,e),k.length=t.length,p.notifyListeners(k.location,k.action)}var m=!1,f=null;function g(){var e,t,n=go(),r=c(n);if(n!==r)vo(r);else{var i=d(),a=k.location;if(!m&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(f===ro(i))return;f=null,function(e){if(m)m=!1,h();else{var t="POP";p.confirmTransitionTo(e,t,o,(function(n){n?h({action:t,location:e}):function(e){var t=k.location,n=C.lastIndexOf(ro(t));-1===n&&(n=0);var r=C.lastIndexOf(ro(e));-1===r&&(r=0);var o=n-r;o&&(m=!0,S(o))}(e)}))}}(i)}}var v=go(),y=c(v);v!==y&&vo(y);var b=d(),C=[ro(b)];function S(e){t.go(e)}var x=0;function _(e){1===(x+=e)&&1===e?window.addEventListener(ho,g):0===x&&window.removeEventListener(ho,g)}var E=!1;var k={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=fo(window.location.href)),n+"#"+c(s+ro(e))},push:function(e,t){var n="PUSH",r=oo(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=ro(r),o=c(s+t);if(go()!==o){f=t,function(e){window.location.hash=e}(o);var i=C.lastIndexOf(ro(k.location)),a=C.slice(0,i+1);a.push(t),C=a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=oo(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=ro(r),o=c(s+t);go()!==o&&(f=t,vo(o));var i=C.indexOf(ro(k.location));-1!==i&&(C[i]=t),h({action:n,location:r})}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return E||(_(1),E=!0),function(){return E&&(E=!1,_(-1)),t()}},listen:function(e){var t=p.appendListener(e);return _(1),function(){_(-1),t()}}};return k}function bo(e,t,n){return Math.min(Math.max(e,t),n)}function Co(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,s=t.keyLength,l=void 0===s?6:s,c=io();function u(e){Kr(g,e),g.length=g.entries.length,c.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,l)}var p=bo(a,0,o.length-1),h=o.map((function(e){return oo(e,void 0,"string"===typeof e?d():e.key||d())})),m=ro;function f(e){var t=bo(g.index+e,0,g.entries.length-1),r=g.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:m,push:function(e,t){var r="PUSH",o=oo(e,t,d(),g.location);c.confirmTransitionTo(o,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),u({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=oo(e,t,d(),g.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(g.entries[g.index]=o,u({action:r,location:o}))}))},go:f,goBack:function(){f(-1)},goForward:function(){f(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return g}var So=1073741823,xo="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:{};function _o(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var Eo=jt().createContext||function(e,t){var n,r,o="__create-react-context-"+function(){var e="__global_unique_id__";return xo[e]=(xo[e]||0)+1}()+"__",i=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=_o(t.props.value),t}Gr(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):So,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(Gt.Component);i.childContextTypes=((n={})[o]=qr().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Gr(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?So:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?So:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(Gt.Component);return a.contextTypes=((r={})[o]=qr().object,r),{Provider:i,Consumer:a}},ko=Eo,wo=__webpack_require__(40960),Io=__webpack_require__.n(wo);__webpack_require__(61162);function Po(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var To=__webpack_require__(47814),Do=__webpack_require__.n(To),Ao=function(e){var t=ko();return t.displayName=e,t},Ro=Ao("Router-History"),No=Ao("Router"),Mo=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Gr(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return jt().createElement(No.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},jt().createElement(Ro.Provider,{children:this.props.children||null,value:this.props.history}))},t}(jt().Component);jt().Component;jt().Component;var Fo={},Bo=0;function Oo(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Fo[n]||(Fo[n]={});if(r[e])return r[e];var o=[],i={regexp:Io()(e,o,t),keys:o};return Bo<1e4&&(r[e]=i,Bo++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Lo=function(e){function t(){return e.apply(this,arguments)||this}return Gr(t,e),t.prototype.render=function(){var e=this;return jt().createElement(No.Consumer,null,(function(t){t||Jr(!1);var n=e.props.location||t.location,r=Kr({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Oo(n.pathname,e.props):t.match}),o=e.props,i=o.children,a=o.component,s=o.render;return Array.isArray(i)&&function(e){return 0===jt().Children.count(e)}(i)&&(i=null),jt().createElement(No.Provider,{value:r},r.match?i?"function"===typeof i?i(r):i:a?jt().createElement(a,r):s?s(r):null:"function"===typeof i?i(r):null)}))},t}(jt().Component);function Ho(e){return"/"===e.charAt(0)?e:"/"+e}function Vo(e,t){if(!e)return t;var n=Ho(e);return 0!==t.pathname.indexOf(n)?t:Kr({},t,{pathname:t.pathname.substr(n.length)})}function zo(e){return"string"===typeof e?e:ro(e)}function Uo(e){return function(){Jr(!1)}}function Wo(){}jt().Component;var Go=function(e){function t(){return e.apply(this,arguments)||this}return Gr(t,e),t.prototype.render=function(){var e=this;return jt().createElement(No.Consumer,null,(function(t){t||Jr(!1);var n,r,o=e.props.location||t.location;return jt().Children.forEach(e.props.children,(function(e){if(null==r&&jt().isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?Oo(o.pathname,Kr({},e.props,{path:i})):t.match}})),r?jt().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(jt().Component);var jo=jt().useContext;function qo(){return jo(Ro)}function Ko(e){var t=jo(No).location,n=jo(No).match;return e?Oo(t.pathname,e):n}var Yo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=po(t.props),t}return Gr(t,e),t.prototype.render=function(){return jt().createElement(Mo,{history:this.history,children:this.props.children})},t}(jt().Component);jt().Component;var Xo=function(e,t){return"function"===typeof e?e(t):e},Qo=function(e,t){return"string"===typeof e?oo(e,null,null,t):e},Zo=function(e){return e},Jo=jt().forwardRef;"undefined"===typeof Jo&&(Jo=Zo);var $o=Jo((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=Po(e,["innerRef","navigate","onClick"]),a=i.target,s=Kr({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=Zo!==Jo&&t||n,jt().createElement("a",s)}));var ei=Jo((function(e,t){var n=e.component,r=void 0===n?$o:n,o=e.replace,i=e.to,a=e.innerRef,s=Po(e,["component","replace","to","innerRef"]);return jt().createElement(No.Consumer,null,(function(e){e||Jr(!1);var n=e.history,l=Qo(Xo(i,e.location),e.location),c=l?n.createHref(l):"",u=Kr({},s,{href:c,navigate:function(){var t=Xo(i,e.location),r=ro(e.location)===ro(Qo(t));(o||r?n.replace:n.push)(t)}});return Zo!==Jo?u.ref=t||a:u.innerRef=a,jt().createElement(r,u)}))})),ti=function(e){return e},ni=jt().forwardRef;"undefined"===typeof ni&&(ni=ti);ni((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,a=e.activeStyle,s=e.className,l=e.exact,c=e.isActive,u=e.location,d=e.sensitive,p=e.strict,h=e.style,m=e.to,f=e.innerRef,g=Po(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return jt().createElement(No.Consumer,null,(function(e){e||Jr(!1);var n=u||e.location,o=Qo(Xo(m,n),n),v=o.pathname,y=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?Oo(n.pathname,{path:y,exact:l,sensitive:d,strict:p}):null,C=!!(c?c(b,n):b),S="function"===typeof s?s(C):s,x="function"===typeof h?h(C):h;C&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(S,i),x=Kr({},x,a));var _=Kr({"aria-current":C&&r||null,className:S,style:x,to:o},g);return ti!==ni?_.ref=t||f:_.innerRef=f,jt().createElement(ei,_)}))}));function ri(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.bi.reportClick(e)}var oi=(0,Gt.createContext)(null),ii=function(){var e=(0,Gt.useContext)(oi);if(null===e)throw new Error("ViewQosContext: Context is uninitialized. Confirm that your component is contained within a ViewQosProvider component.");return e},ai=function(t){var n=t.area,r=t.view,o=t.manualPageView,i=void 0!==o&&o,a=t.requiredComponents,s=t.autoTrackComponents,l=void 0!==s&&s,c=t.children,u=(0,Gt.useRef)({requiredComponents:a.slice(),actualComponents:[],reportedViewName:"".concat(n,".").concat(r),eventSent:!1,timeoutHandle:void 0,startTime:performance.now()}).current,d=function(){var e=new Set(u.actualComponents.map((function(e){return e.name})));return u.requiredComponents.every((function(t){return e.has(t)}))},p=function(){var e=new Set(u.actualComponents.map((function(e){return e.name})));return u.requiredComponents.filter((function(t){return!e.has(t)}))},h=function(){return u.actualComponents.filter((function(e){return e.status!==Vt})).map((function(e){return e.name}))},m=function(e){var t=performance.now()-u.startTime;v(u.reportedViewName,"page",e,t),y(e,t),Vr(n)},f=function(){if(!u.eventSent&&d()){u.eventSent=!0;var e=u.actualComponents.map((function(e){return e.endTime})),t=(e.length?Math.max.apply(Math,e):performance.now())-u.startTime;!function(){var e=new Set(u.actualComponents.filter((function(e){return e.status===Vt})).map((function(e){return e.name})));return u.requiredComponents.every((function(t){return e.has(t)}))}()?(v(u.reportedViewName,"page",zt,t),y(zt,t)):(v(u.reportedViewName,"page",Vt,t),y(Vt,t)),Vr(n),clearTimeout(u.timeoutHandle)}},g=l?function(){return setTimeout(f)}:f,v=function(t,r,o,i){var a,s={};o!==Vt&&(s.failedComponents=h()),o!==Wt&&o!==Ut||(s.missingComponents=p()),Rr({area:n,name:t,result:o,durationMs:i,uri:null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.bi.getCurrentLocation(),pageName:u.reportedViewName,kind:r,data:(0,e.__assign)((0,e.__assign)({},s),{isReact:!0})})},y=function(e,t){var r=[{name:"area",value:n},{name:"pageName",value:u.reportedViewName},{name:"result",value:e},{name:"isReact",value:!0}];e!==Vt&&r.push({name:"failedComponents",value:h()}),e!==Wt&&e!==Ut||r.push({name:"missingComponents",value:p()}),Nr({loadTimeMsec:t},r)};return Qt((function(){u.timeoutHandle=setTimeout((function(){u.eventSent=!0,m(Wt)}),3e4),g()})),Xt((function(){u.eventSent||d()||(u.eventSent=!0,clearTimeout(u.timeoutHandle),m(Ut))})),jt().createElement(oi.Provider,{value:{area:n,view:r,sendPageViewEvent:i?function(){Fr(n,r)}:function(){console.warn("ViewQosContext: Calling sendPageViewEvent without manualPageView. This is unsupported.")},reportComponentLoaded:function(e){u.requiredComponents.includes(e.name)&&u.actualComponents.push(e),g()},addRequiredComponent:function(e){u.requiredComponents.includes(e)||u.requiredComponents.push(e)},autoTrackComponents:l}},c)},si={},li=(0,Gt.createContext)(null),ci=function(){var e=(0,Gt.useContext)(li);if(null===e)throw new Error("ComponentQosContext: Context is uninitialized. Confirm that your component is contained within a ComponentQosProvider component.");return e},ui=function(t){var n,r=t.children,o=ii(),i=o.area,a=o.view,s=o.addRequiredComponent,l=o.reportComponentLoaded,c=o.autoTrackComponents,u="".concat(i,".").concat(a),d=null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentLocation(),p=function(t,n,r,o){void 0===o&&(o={});var a="".concat(t,":").concat(n);if(si[a]){var s=performance.now(),c=s-si[a].startTime;clearTimeout(si[a].timeoutHandle),Rr({area:i,name:"".concat(i,".").concat(t,":").concat(n),result:r,durationMs:c,uri:d,pageName:u,kind:"component",data:(0,e.__assign)((0,e.__assign)({},o),{isReact:!0})}),si[a].isInit&&l({name:t,status:r,startTime:si[a].startTime,endTime:s}),delete si[a]}},h=function(e,t){p(e,t,Wt)},m=function(e,t){p(e,t,Ut)};return(0,Gt.useEffect)((function(){return function(){Object.keys(si).forEach((function(e){var t=e.split(":"),n=t[0],r=t[1];m(n,r)}))}}),[]),jt().createElement(li.Provider,{value:{startOperation:function(e,t,n){var r="".concat(e,":").concat(t),o=performance.now();si[r]||(c&&n&&s(e),si[r]={startTime:o,timeoutHandle:setTimeout((function(){h(e,t)}),3e4),isInit:n})},reportSuccess:function(e,t,n){p(e,t,Vt,n)},reportFailure:function(e,t,n,r){p(e,t,zt,{error:n,customData:r})},reportCancel:m}},r)},di=jt().createContext(null),pi=function(){var e=(0,Gt.useContext)(di);if(null===e)throw new Error("OperationStateContext: Context is uninitialized. Confirm that your component is contained within an OperationStateContext.Provider component.");return e},hi=jt().createContext(null),mi=function(){var e=(0,Gt.useContext)(hi);if(null===e)throw new Error("OperationDispatchContext: Context is uninitialized. Confirm that your component is contained within an OperationDispatchContext.Provider component.");return e},fi=jt().createContext(null),gi=function(t){var n=t.children,r=(0,Gt.useState)((function(){return new Map}))[0],o=pi(),i=ci(),a=i.reportSuccess,s=i.reportFailure;(0,Gt.useEffect)((function(){r.forEach((function(t,n){var i=o[t.operationName];if(i){var l=(0,e.__assign)((0,e.__assign)({},i.customData),{reportedAfterUnmount:!0});switch(i.status){case"finished":a(t.componentName,t.operationName,l),r.delete(n);break;case"update-failed":case"failed":s(t.componentName,t.operationName,i.error||new Error("unspecified error"),l),r.delete(n)}}else r.delete(n)}))}),[o]);var l=(0,Gt.useMemo)((function(){return{abandon:function(e,t){return r.set("".concat(e,":").concat(t),{componentName:e,operationName:t})},claim:function(e,t){return r.delete("".concat(e,":").concat(t))}}}),[]);return jt().createElement(fi.Provider,{value:l,children:n})},vi=function(t){var n,r=pi();if(t.updatingView){var o=null===(n=r[t.operationData.operationName])||void 0===n?void 0:n.status;return jt().createElement(on,{isUpdating:"updating"===o},jt().createElement(yi,(0,e.__assign)({},t)))}return jt().createElement(yi,(0,e.__assign)({},t))},yi=function(e){var t=e.operationData,n=e.finishedView,r=e.failedView,o=void 0===r?null:r,i=e.firstLoadView,a=void 0===i?null:i,s=e.inertView,l=void 0===s?null:s,c=e.updateFailedView,u=void 0===c?o:c,d=e.updatingView,p=void 0===d?n:d,h=pi(),m=ci(),f=m.startOperation,g=m.reportSuccess,v=m.reportFailure,y=h[t.operationName],b=null===y||void 0===y?void 0:y.status,C=(0,Gt.useRef)(b);(0,Gt.useEffect)((function(){C.current=b}),[b]);var S=(0,Gt.useContext)(fi);if((0,Gt.useEffect)((function(){return S.claim(t.componentName,t.operationName),function(){"first-load"!==C.current&&"updating"!==C.current||S.abandon(t.componentName,t.operationName)}}),[t.componentName,t.operationName]),!b)return"finished"===t.defaultState?n:l;switch(b){case"updating":return f(t.componentName,t.operationName,!1),p;case"first-load":return f(t.componentName,t.operationName,!0),a;case"finished":return g(t.componentName,t.operationName,y.customData),n;case"update-failed":return v(t.componentName,t.operationName,y.error||new Error("unspecified error"),y.customData),u;case"failed":return v(t.componentName,t.operationName,y.error||new Error("unspecified error"),y.customData),o;default:return l}},bi=function(t){var n=t.children,r=t.shareParentOperations,o=(0,Gt.useReducer)((function(t,n){var r;return(0,e.__assign)((0,e.__assign)({},t),((r={})[n.name]={status:n.status,error:n.error,customData:n.customData},r))}),{}),i=o[0],a=o[1];return jt().createElement(jt().Fragment,null,r?jt().createElement(ui,null,n):jt().createElement(hi.Provider,{value:a},jt().createElement(di.Provider,{value:i},jt().createElement(ui,null,jt().createElement(gi,null,n)))))},Ci=jt().createContext({}),Si=function(e){var t=e.children,n=e.externalEntities;return jt().createElement(Ci.Provider,{value:null!==n&&void 0!==n?n:{}},t)},xi=function(){return(0,Gt.useContext)(Ci)},_i=jt().createContext(null),Ei=jt().createContext(null),ki=function(t,n){var r;return(0,e.__assign)((0,e.__assign)({},t),((r={})[n.name]={status:n.status,error:n.error,customData:n.customData},r))},wi=function(e){var t=e.children,n=(0,Gt.useReducer)(ki,{}),r=n[0],o=n[1];return jt().createElement(Ei.Provider,{value:o},jt().createElement(_i.Provider,{value:r},t))},Ii=function(){var e=_i,t=(0,Gt.useContext)(e);if(!t)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return t},Pi={areaBiId:"areaUndefined"},Ti=(0,Gt.createContext)({reportComponentValidationErrorEvent:function(e,t,n){},logComponentMountEvent:function(e,t,n){},twoUITelemetryIds:Pi,twoUIFlights:[],getCv:function(){return""},reportClick:function(e){},checkUrlAndReportHttp:function(e){}}),Di=function(){return(0,Gt.useContext)(Ti)},Ai=function(){return(0,Gt.useContext)(Ti).twoUIFlights},Ri=function(e){var t=e.replace(/[^a-z0-9\-]/gi,"").substring(0,50);return 0===t.length?Pi.areaBiId:t},Ni=function(e,t,n){},Mi=function(t){var n=t.twoUITelemetryIds,r=t.twoUIFlights,o=t.logComponentMountEvent,i=t.reportHttpUrl,a=t.reportComponentValidationErrorEvent,s=t.reportClick,l=t.getCv,c=t.children,u=t.externalEntities,d=function(t){return(0,e.__assign)((0,e.__assign)({},t),{areaBiId:Ri(t.areaBiId)})}(n);Ni=a||Ni;return jt().createElement(Ti.Provider,{value:{twoUITelemetryIds:d,twoUIFlights:r,logComponentMountEvent:function(e,t,n){null===o||void 0===o||o(e,t,n)},reportClick:function(e){null===s||void 0===s||s(e)},reportComponentValidationErrorEvent:function(e,t,n){null===Ni||void 0===Ni||Ni(e,t,n)},getCv:function(){return(null===l||void 0===l?void 0:l())||""},checkUrlAndReportHttp:function(e){e&&i&&function(e){return!!e.startsWith("http://")}(e)&&i(e)}}},jt().createElement(Si,{externalEntities:u},jt().createElement(wi,null,c)))};function Fi(e,t){return function(){return e.apply(t,arguments)}}var Bi=Object.prototype.toString,Oi=Object.getPrototypeOf,Li=function(e){return function(t){var n=Bi.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),Hi=function(e){return e=e.toLowerCase(),function(t){return Li(t)===e}},Vi=function(e){return function(t){return typeof t===e}},zi=Array.isArray,Ui=Vi("undefined");var Wi=Hi("ArrayBuffer");var Gi=Vi("string"),ji=Vi("function"),qi=Vi("number"),Ki=function(e){return null!==e&&"object"===typeof e},Yi=function(e){if("object"!==Li(e))return!1;var t=Oi(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xi=Hi("Date"),Qi=Hi("File"),Zi=Hi("Blob"),Ji=Hi("FileList"),$i=Hi("URLSearchParams");function ea(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),zi(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{var s,l=a?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;for(n=0;n<c;n++)s=l[n],t.call(null,e[s],s,e)}}function ta(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var na="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,ra=function(e){return!Ui(e)&&e!==na};var oa,ia=(oa="undefined"!==typeof Uint8Array&&Oi(Uint8Array),function(e){return oa&&e instanceof oa}),aa=Hi("HTMLFormElement"),sa=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),la=Hi("RegExp"),ca=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};ea(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ua="abcdefghijklmnopqrstuvwxyz",da="0123456789",pa={DIGIT:da,ALPHA:ua,ALPHA_DIGIT:ua+ua.toUpperCase()+da};var ha=Hi("AsyncFunction"),ma={isArray:zi,isArrayBuffer:Wi,isBuffer:function(e){return null!==e&&!Ui(e)&&null!==e.constructor&&!Ui(e.constructor)&&ji(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||ji(e.append)&&("formdata"===(t=Li(e))||"object"===t&&ji(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Wi(e.buffer)},isString:Gi,isNumber:qi,isBoolean:function(e){return!0===e||!1===e},isObject:Ki,isPlainObject:Yi,isUndefined:Ui,isDate:Xi,isFile:Qi,isBlob:Zi,isRegExp:la,isFunction:ji,isStream:function(e){return Ki(e)&&ji(e.pipe)},isURLSearchParams:$i,isTypedArray:ia,isFileList:Ji,forEach:ea,merge:function e(){for(var t=ra(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&ta(r,o)||o;Yi(r[i])&&Yi(t)?r[i]=e(r[i],t):Yi(t)?r[i]=e({},t):zi(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i<a;i++)arguments[i]&&ea(arguments[i],o);return r},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return ea(t,(function(t,r){n&&ji(t)?e[r]=Fi(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Oi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Li,kindOfTest:Hi,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(zi(e))return e;var t=e.length;if(!qi(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:aa,hasOwnProperty:sa,hasOwnProp:sa,reduceDescriptors:ca,freezeMethods:function(e){ca(e,(function(t,n){if(ji(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];ji(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return zi(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:ta,global:na,isContextDefined:ra,ALPHABET:pa,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ji(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(Ki(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=zi(n)?[]:{};return ea(n,(function(t,n){var i=e(t,r+1);!Ui(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:ha,isThenable:function(e){return e&&(Ki(e)||ji(e))&&ji(e.then)&&ji(e.catch)}};function fa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function va(e,t,n){return t&&ga(e.prototype,t),n&&ga(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ya(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ma.inherits(ya,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ma.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ba=ya.prototype,Ca={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Ca[e]={value:e}})),Object.defineProperties(ya,Ca),Object.defineProperty(ba,"isAxiosError",{value:!0}),ya.from=function(e,t,n,r,o,i){var a=Object.create(ba);return ma.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),ya.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Sa=ya;function xa(e){return ma.isPlainObject(e)||ma.isArray(e)}function _a(e){return ma.endsWith(e,"[]")?e.slice(0,-2):e}function Ea(e,t,n){return e?e.concat(t).map((function(e,t){return e=_a(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var ka=ma.toFlatObject(ma,{},null,(function(e){return/^is[A-Z]/.test(e)}));var wa=function(e,t,n){if(!ma.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=ma.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ma.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&ma.isSpecCompliantForm(t);if(!ma.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ma.isDate(e))return e.toISOString();if(!s&&ma.isBlob(e))throw new Sa("Blob is not supported. Use a Buffer instead.");return ma.isArrayBuffer(e)||ma.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){var s=e;if(e&&!o&&"object"===typeof e)if(ma.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ma.isArray(e)&&function(e){return ma.isArray(e)&&!e.some(xa)}(e)||(ma.isFileList(e)||ma.endsWith(n,"[]"))&&(s=ma.toArray(e)))return n=_a(n),s.forEach((function(e,r){!ma.isUndefined(e)&&null!==e&&t.append(!0===a?Ea([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!xa(e)||(t.append(Ea(o,n,i),l(e)),!1)}var u=[],d=Object.assign(ka,{defaultVisitor:c,convertValue:l,isVisitable:xa});if(!ma.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ma.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ma.forEach(n,(function(n,i){!0===(!(ma.isUndefined(n)||null===n)&&o.call(t,n,ma.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Ia(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Pa(e,t){this._pairs=[],e&&wa(e,this,t)}var Ta=Pa.prototype;Ta.append=function(e,t){this._pairs.push([e,t])},Ta.toString=function(e){var t=e?function(t){return e.call(this,t,Ia)}:Ia;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Da=Pa;function Aa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ra(e,t,n){if(!t)return e;var r,o=n&&n.encode||Aa,i=n&&n.serialize;if(r=i?i(t,n):ma.isURLSearchParams(t)?t.toString():new Da(t,n).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var Na=function(){function e(){fa(this,e),this.handlers=[]}return va(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){ma.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Ma=Na,Fa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ba={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Da,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},isStandardBrowserEnv:function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),isStandardBrowserWebWorkerEnv:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var Oa=function(e){function t(e,n,r,o){var i=e[o++],a=Number.isFinite(+i),s=o>=e.length;return i=!i&&ma.isArray(r)?r.length:i,s?(ma.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&ma.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&ma.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(ma.isFormData(e)&&ma.isFunction(e.entries)){var n={};return ma.forEachEntry(e,(function(e,r){t(function(e){return ma.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null};var La={transitional:Fa,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=ma.isObject(e);if(i&&ma.isHTMLForm(e)&&(e=new FormData(e)),ma.isFormData(e))return o&&o?JSON.stringify(Oa(e)):e;if(ma.isArrayBuffer(e)||ma.isBuffer(e)||ma.isStream(e)||ma.isFile(e)||ma.isBlob(e))return e;if(ma.isArrayBufferView(e))return e.buffer;if(ma.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wa(e,new Ba.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ba.isNode&&ma.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=ma.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return wa(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(ma.isString(e))try{return(t||JSON.parse)(e),ma.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||La.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&ma.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(o){if("SyntaxError"===i.name)throw Sa.from(i,Sa.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ba.classes.FormData,Blob:Ba.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ma.forEach(["delete","get","head","post","put","patch"],(function(e){La.headers[e]={}}));var Ha=La;function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function za(e,t){if(e){if("string"===typeof e)return Va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Va(e,t):void 0}}function Ua(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||za(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Wa=ma.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ga=Symbol("internals");function ja(e){return e&&String(e).trim().toLowerCase()}function qa(e){return!1===e||null==e?e:ma.isArray(e)?e.map(qa):String(e)}function Ka(e,t,n,r,o){return ma.isFunction(r)?r.call(this,t,n):(o&&(t=n),ma.isString(t)?ma.isString(r)?-1!==t.indexOf(r):ma.isRegExp(r)?r.test(t):void 0:void 0)}var Ya=function(e,t){function n(e){fa(this,n),e&&this.set(e)}return va(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=ja(t);if(!o)throw new Error("header name must be a non-empty string");var i=ma.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=qa(e))}var i=function(e,t){return ma.forEach(e,(function(e,n){return o(e,n,t)}))};return ma.isPlainObject(e)||e instanceof this.constructor?i(e,t):ma.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&Wa[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=ja(e)){var n=ma.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(ma.isFunction(t))return t.call(this,r,n);if(ma.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=ja(e)){var n=ma.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ka(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=ja(e)){var o=ma.findKey(n,e);!o||t&&!Ka(0,n[o],o,t)||(delete n[o],r=!0)}}return ma.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Ka(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return ma.forEach(this,(function(r,o){var i=ma.findKey(n,o);if(i)return t[i]=qa(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=qa(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return ma.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&ma.isArray(n)?n.join(", "):n)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=Ua(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Ga]=this[Ga]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=ja(e);t[r]||(!function(e,t){var n=ma.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ma.isArray(e)?e.forEach(r):r(e),this}}]),n}();Ya.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ma.reduceDescriptors(Ya.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),ma.freezeMethods(Ya);var Xa=Ya;function Qa(e,t){var n=this||Ha,r=t||n,o=Xa.from(r.headers),i=r.data;return ma.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Za(e){return!(!e||!e.__CANCEL__)}function Ja(e,t,n){Sa.call(this,null==e?"canceled":e,Sa.ERR_CANCELED,t,n),this.name="CanceledError"}ma.inherits(Ja,Sa,{__CANCEL__:!0});var $a=Ja;var es=Ba.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),ma.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ma.isString(r)&&a.push("path="+r),ma.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ts(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ns=Ba.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=ma.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};var rs=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=o[a];n||(n=l),r[i]=s,o[i]=l;for(var u=a,d=0;u!==i;)d+=r[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}};function os(e,t){var n=0,r=rs(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;var c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var is="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i=e.data,a=Xa.from(e.headers).normalize(),s=e.responseType;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}ma.isFormData(i)&&(Ba.isStandardBrowserEnv||Ba.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.getContentType(/^\s*multipart\/form-data/)?ma.isString(o=a.getContentType())&&a.setContentType(o.replace(/^\s*(multipart\/form-data);+/,"$1")):a.setContentType("multipart/form-data"));var c=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(u+":"+d))}var p=ts(e.baseURL,e.url);function h(){if(c){var r=Xa.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Sa("Request failed with status code "+n.status,[Sa.ERR_BAD_REQUEST,Sa.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}}if(c.open(e.method.toUpperCase(),Ra(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(n(new Sa("Request aborted",Sa.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Sa("Network Error",Sa.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||Fa;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Sa(t,r.clarifyTimeoutError?Sa.ETIMEDOUT:Sa.ECONNABORTED,e,c)),c=null},Ba.isStandardBrowserEnv){var m=ns(p)&&e.xsrfCookieName&&es.read(e.xsrfCookieName);m&&a.set(e.xsrfHeaderName,m)}void 0===i&&a.setContentType(null),"setRequestHeader"in c&&ma.forEach(a.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),ma.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&c.addEventListener("progress",os(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",os(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){c&&(n(!t||t.type?new $a(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var f=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(p);f&&-1===Ba.protocols.indexOf(f)?n(new Sa("Unsupported protocol "+f+":",Sa.ERR_BAD_REQUEST,e)):c.send(i||null)}))},as={http:null,xhr:is};ma.forEach(as,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));var ss=function(e){return"- ".concat(e)},ls=function(e){return ma.isFunction(e)||null===e||!1===e},cs=function(e){for(var t,n,r=(e=ma.isArray(e)?e:[e]).length,o={},i=0;i<r;i++){var a=void 0;if(n=t=e[i],!ls(t)&&void 0===(n=as[(a=String(t)).toLowerCase()]))throw new Sa("Unknown adapter '".concat(a,"'"));if(n)break;o[a||"#"+i]=n}if(!n){var s=Object.entries(o).map((function(e){var t=Ua(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),l=r?s.length>1?"since :\n"+s.map(ss).join("\n"):" "+ss(s[0]):"as no adapter specified";throw new Sa("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return n};function us(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $a(null,e)}function ds(e){return us(e),e.headers=Xa.from(e.headers),e.data=Qa.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cs(e.adapter||Ha.adapter)(e).then((function(t){return us(e),t.data=Qa.call(e,e.transformResponse,t),t.headers=Xa.from(t.headers),t}),(function(t){return Za(t)||(us(e),t&&t.response&&(t.response.data=Qa.call(e,e.transformResponse,t.response),t.response.headers=Xa.from(t.response.headers))),Promise.reject(t)}))}var ps=function(e){return e instanceof Xa?e.toJSON():e};function hs(e,t){t=t||{};var n={};function r(e,t,n){return ma.isPlainObject(e)&&ma.isPlainObject(t)?ma.merge.call({caseless:n},e,t):ma.isPlainObject(t)?ma.merge({},t):ma.isArray(t)?t.slice():t}function o(e,t,n){return ma.isUndefined(t)?ma.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ma.isUndefined(t))return r(void 0,t)}function a(e,t){return ma.isUndefined(t)?ma.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(ps(e),ps(t),!0)}};return ma.forEach(Object.keys(Object.assign({},e,t)),(function(r){var i=l[r]||o,a=i(e[r],t[r],r);ma.isUndefined(a)&&i!==s||(n[r]=a)})),n}var ms="1.6.0",fs={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){fs[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var gs={};fs.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Sa(r(o," has been removed"+(t?" in "+t:"")),Sa.ERR_DEPRECATED);return t&&!gs[o]&&(gs[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var vs={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Sa("options must be an object",Sa.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new Sa("option "+i+" must be "+l,Sa.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Sa("Unknown option "+i,Sa.ERR_BAD_OPTION)}},validators:fs},ys=vs.validators,bs=function(){function e(t){fa(this,e),this.defaults=t,this.interceptors={request:new Ma,response:new Ma}}return va(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=hs(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&vs.assertOptions(r,{silentJSONParsing:ys.transitional(ys.boolean),forcedJSONParsing:ys.transitional(ys.boolean),clarifyTimeoutError:ys.transitional(ys.boolean)},!1),null!=o&&(ma.isFunction(o)?t.paramsSerializer={serialize:o}:vs.assertOptions(o,{encode:ys.function,serialize:ys.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&ma.merge(i.common,i[t.method]);i&&ma.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=Xa.concat(a,i);var s=[],l=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,p=0;if(!l){var h=[ds.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,u),d=h.length,c=Promise.resolve(t);p<d;)c=c.then(h[p++],h[p++]);return c}d=s.length;var m=t;for(p=0;p<d;){var f=s[p++],g=s[p++];try{m=f(m)}catch(v){g.call(this,v);break}}try{c=ds.call(this,m)}catch(v){return Promise.reject(v)}for(p=0,d=u.length;p<d;)c=c.then(u[p++],u[p++]);return c}},{key:"getUri",value:function(e){return Ra(ts((e=hs(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();ma.forEach(["delete","get","head","options"],(function(e){bs.prototype[e]=function(t,n){return this.request(hs(n||{},{method:e,url:t,data:(n||{}).data}))}})),ma.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(hs(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}bs.prototype[e]=t(),bs.prototype[e+"Form"]=t(!0)}));var Cs=bs,Ss=function(){function e(t){if(fa(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new $a(e,t,o),n(r.reason))}))}return va(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),xs=Ss;var _s={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_s).forEach((function(e){var t=Ua(e,2),n=t[0],r=t[1];_s[r]=n}));var Es=_s;var ks=function e(t){var n=new Cs(t),r=Fi(Cs.prototype.request,n);return ma.extend(r,Cs.prototype,n,{allOwnKeys:!0}),ma.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(hs(t,n))},r}(Ha);ks.Axios=Cs,ks.CanceledError=$a,ks.CancelToken=xs,ks.isCancel=Za,ks.VERSION=ms,ks.toFormData=wa,ks.AxiosError=Sa,ks.Cancel=ks.CanceledError,ks.all=function(e){return Promise.all(e)},ks.spread=function(e){return function(t){return e.apply(null,t)}},ks.isAxiosError=function(e){return ma.isObject(e)&&!0===e.isAxiosError},ks.mergeConfig=hs,ks.AxiosHeaders=Xa,ks.formToJSON=function(e){return Oa(ma.isHTMLForm(e)?new FormData(e):e)},ks.getAdapter=cs,ks.HttpStatusCode=Es,ks.default=ks;var ws=ks,Is=(__webpack_require__(67153),3e4);function Ps(e,t,n,r){return void 0===n&&(n={}),Ns(e,n,r),Ms("GET",e,t,n,ws.get(e,n),r)}function Ts(e,t,n,r,o){return void 0===r&&(r={}),Ns(e,r,o),Ms("POST",e,t,r,ws.post(e,n,r),o)}function Ds(e,t,n,r,o){return void 0===r&&(r={}),Ns(e,r,o),Ms("PUT",e,t,r,ws.put(e,n,r),o)}function As(e,t,n,r,o){return void 0===r&&(r={}),Ns(e,r,o),Ms("PATCH",e,t,r,ws.patch(e,n,r),o)}function Rs(e,t,n,r){return void 0===n&&(n={}),Ns(e,n,r),Ms("DELETE",e,t,n,ws.delete(e,n),r)}function Ns(e,t,n){var r;if(void 0===t.timeout&&(t.timeout=Is),t.headers||(t.headers={}),!1!==(null===n||void 0===n?void 0:n.addXRequestedWithHeader)&&(t.headers["X-Requested-With"]="XMLHttpRequest"),function(){var e;null===(e=window.BradburyTelemetry)||void 0===e||e.cv.incrementCv()}(),!1!==(null===n||void 0===n?void 0:n.addCVHeader)&&(t.headers["MS-CV"]=Dr()),(null===n||void 0===n?void 0:n.withCredentials)&&(t.withCredentials=!0),!function(e){var t;try{t=location.href}catch(a){var n=document.createElement("a");n.href="",t=n.href}var r=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,o=r.exec(t.toLowerCase()),i=r.exec(e?e.toLowerCase():"");return!(!i||!o||i[1]===o[1]&&i[2]===o[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(o[3]||("http:"===o[1]?"80":"443")))}(e)){var o=function(){for(var e="__RequestVerificationToken",t=document.getElementsByTagName("input"),n=0;n<t.length;n++){var r=t[n];if("hidden"===r.type&&r.name===e)return{name:e,value:r.value}}return null}();o&&(t.headers[o.name]=o.value)}if(null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.cc){var i=window.BradburyTelemetry.cc.serialize();i&&!1!==(null===n||void 0===n?void 0:n.addCorrelationContextHeader)&&(t.headers["Correlation-Context"]=i)}}var Ms=function(t,n,r,o,i,a){var s,l={operationName:r.operation,requestUri:n,httpMethod:t,partnerName:r.partnerName,customData:r.customData,overrideCv:null===(s=o.headers)||void 0===s?void 0:s["MS-CV"]},c=performance.now();return i.then((function(e){return l.httpStatusCode=e.status,l.contentType=e.headers["content-type"],l.responseSize=e.headers["content-length"],e})).catch((function(t){var n,r,o,i,a,s=NaN,c="";return t.code&&(s=parseInt(t.code,10)||NaN,c=String(t.code)||""),"ECONNABORTED"!==c&&"ERR_NETWORK"!==t.code&&"ERR_CANCELED"!==t.code||(l.customData=(0,e.__assign)((0,e.__assign)({},l.customData),{axiosError:t})),l.serviceErrorCode=s,l.errorCode=c,l.errorMessage=t.message,t.response&&t.response.status&&(l.httpStatusCode=t.response.status),t.response&&t.response.headers&&(l.contentType=t.response.headers["content-type"],l.responseSize=t.response.headers["content-length"]),(null===(r=null===(n=t.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.error)&&(l.responseDataError=null===(i=null===(o=t.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.error),t.config&&(t.config.headers={},t.config.data={}),t.response&&(t.response.headers={}),(null===(a=t.response)||void 0===a?void 0:a.config)&&(t.response.config.headers={},t.response.config.data={}),Promise.reject(t)})).finally((function(){var e,t=performance.now();l.latency=t-c,l.timeout=null!==(e=o.timeout)&&void 0!==e?e:Is,Mr(l,null===a||void 0===a?void 0:a.overrideRequestQosData)}))},Fs={top:-2,height:1,position:"absolute",overflow:"hidden"},Bs=function(t){var n=t.area,r=t.view,o=t.manualPageView,i=void 0!==o&&o,a=t.requiredComponents,s=t.withoutQosTracking,l=void 0!==s&&s,c=t.shareParentOperations,u=void 0!==c&&c,d=t.scrollToTopOnNav,p=void 0===d||d,h=t.routeHeader,m=t.children,f=(0,e.__rest)(t,["area","view","manualPageView","requiredComponents","withoutQosTracking","shareParentOperations","scrollToTopOnNav","routeHeader","children"]);return jt().createElement(Lo,(0,e.__assign)({},f,{key:"".concat(n,".").concat(r)}),h?jt().createElement("div",{style:Fs,"aria-live":"assertive"},h):null,jt().createElement(Vs,{area:n,view:r,manualPageView:i}),p?jt().createElement(Hs,null):null,l?jt().createElement(Ls,null,m):jt().createElement(Os,{area:n,view:r,manualPageView:i,requiredComponents:a,shareParentOperations:u},m))},Os=function(e){var t=e.area,n=e.view,r=e.manualPageView,o=void 0!==r&&r,i=e.shareParentOperations,a=void 0!==i&&i,s=e.requiredComponents,l=e.children;return jt().createElement(ai,{area:t,view:n,manualPageView:o,requiredComponents:s||[],autoTrackComponents:!s},jt().createElement(bi,{shareParentOperations:a},l))},Ls=function(e){var t=e.children;return jt().createElement(jt().Fragment,null,t)},Hs=function(){var e=document.getElementById(an.p);return(0,Gt.useLayoutEffect)((function(){e?e.scrollTop=0:window.scrollTo(0,0)}),[]),null},Vs=function(e){var t=e.area,n=e.view,r=e.manualPageView;return(0,Gt.useEffect)((function(){r?v().setSpaPageId("".concat(t,".").concat(n)):Fr(t,n)}),[]),jt().createElement(jt().Fragment,null)};function zs(e,t){var n;void 0===t&&(t=!0);var r,o=e.toLowerCase(),i=(null===(n=window.MeePortal)||void 0===n?void 0:n.g_userFeatures)||[];r=Ws(o)?o.substr(0,o.length-Us.length):"".concat(o,"cf");var a=i.filter((function(e){return e.split(":")[0]===o||e.split(":")[0]===r}));return a.length>0&&t&&function(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.experiments.reportExperimentTrigger(e)}(a.join("|")),i.some((function(e){return e.split(":")[0]===o}))}var Us="cf",Ws=function(e){return e.substr(-Us.length)===Us};var Gs,js={startOperation:function(e,t,n){},reportSuccess:function(e,t,n){},reportFailure:function(e,t,n,r){},reportCancel:function(e,t){}},qs=(0,Gt.createContext)(js),Ks=function(t){var n,r=Ii();if(t.updatingView){var o=null===(n=r[t.operationData.operationName])||void 0===n?void 0:n.status;return jt().createElement(Dn,{isUpdating:"updating"===o},jt().createElement(Ys,(0,e.__assign)({},t)))}return jt().createElement(Ys,(0,e.__assign)({},t))},Ys=function(e){var t=e.operationData,n=e.finishedView,r=e.failedView,o=void 0===r?null:r,i=e.firstLoadView,a=void 0===i?null:i,s=e.inertView,l=void 0===s?null:s,c=e.updateFailedView,u=void 0===c?o:c,d=e.updatingView,p=void 0===d?n:d,h=Ii()[t.operationName],m=null===h||void 0===h?void 0:h.status;if(!m)return"finished"===t.defaultState?n:l;switch(m){case"updating":return p;case"first-load":return a;case"finished":return n;case"update-failed":return u;case"failed":return o;default:return l}},Xs=function(t){var n,r,o=null!==(r=null===(n=xi().operationEntities)||void 0===n?void 0:n.ExternalProgressView)&&void 0!==r?r:Ks;return jt().createElement(o,(0,e.__assign)({},t))},Qs="ViewportProvider",Zs="Fluentv9Theming",Js="Fluentv9ColorMapping",$s=function(t){var n,r=t.areaBiId,o=t.children,i=zs("GTwouiLogging")?Hr:void 0,a=zs(Qs),s=zs(Zs),l=zs(Js),c=zs("XGPUPhaseTwo",!1),u=zs("XGPUPhaseTwoComingSoon",!1);n=c||u;var d=zs("PCGamePassPhaseTwo",!1),p=zs("PCGamePassPhaseTwoComingSoon",!1),h={areaBiId:r||"areaUndefined"},m=n||(d||p)?["lowerMediaImageHeight"]:[],f=a?[Qs]:[],g=s?[Zs]:[],v=l?[Js]:[],y=(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],m,!0),f,!0),["exampleComponentFlight"],!1),g,!0),v,!0);return jt().createElement(Mi,{twoUITelemetryIds:h,logComponentMountEvent:i,getCv:Dr,reportClick:ri,reportHttpUrl:Or,reportComponentValidationErrorEvent:Lr,externalEntities:{operationEntities:{operationDispatchContext:hi,ExternalProgressView:vi},componentQosContext:li},twoUIFlights:y},o)},el=function(e,t){if(!e)throw Error("inMemoryCache: null promiseCache sent to removePromiseCacheEntry");e[t]=null},tl=function(t,n,r,o){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var i,a,s,l;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(!t)throw Error("inMemoryCache: null promiseCache sent to fromInMemoryCache");return(i=t[n])?(null===o||void 0===o?void 0:o.reload)?[4,a=r()]:[3,2]:[3,3];case 1:e.sent(),t[n]=a,i=a,e.label=2;case 2:return[2,i];case 3:s=r(),t[n]=s,e.label=4;case 4:return e.trys.push([4,6,,7]),[4,s];case 5:return e.sent(),[3,7];case 6:throw l=e.sent(),t[n]=null,l;case 7:return[2,s]}}))}))},nl={},rl=function(t){var n=t.errorMessage,r=t.errorComponent,o=(0,Gt.useState)({title:"",summary:""}),i=o[0],a=o[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(t){return[2,tl(nl,"getFatalErrorContent",(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Ps("/CmsContent/fatalError",{operation:"GetFatalErrorPageContent"})];case 1:return[2,e.sent().data];case 2:return t=e.sent(),401===(null===(n=t.response)||void 0===n?void 0:n.status)&&window.location.reload(),[2,Promise.reject(t)];case 3:return[2]}}))}))}))]}))}))];case 1:return t=n.sent(),a(t),[2]}}))}))}));try{_r({error:"ErrorComponentWrapper_unhandledException",data:{errorMessage:n||"unhandled exception"}})}catch(MM){}return r({content:i,cv:Dr()})},ol=function(e,t){var n,r=window.BradburyTelemetry.bi.getCurrentPageId()||"unknown.unknown",o=t?t.componentStack:e.stack;!function(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.qos.reportFatalError(e)}({location:null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentLocation(),message:e?e.message:"",pageId:r,script:"",userAgent:window.navigator.userAgent||"",ext:{Area:r.split(".")[0],Stack:JSON.stringify(o),isReact:!0,devServer:null!==Yn("awa-devserver")}})},il=(0,Gt.createContext)(null),al=function(t){var n=t.children,r=t.errorComponent,o=(0,Gt.useState)(!1),i=o[0],a=o[1],s=(0,Gt.useState)(""),l=s[0],c=s[1];return i?jt().createElement(rl,{errorMessage:l,errorComponent:r}):jt().createElement(il.Provider,{value:{protectedOperation:function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return n=e.sent(),console.error(n),a(!0),c(n.message),ol(n),[3,3];case 3:return[2,Promise.resolve(null)]}}))}))}}},n)},sl=function(t){function n(e){var n=t.call(this,e)||this;return n.resetErrorState=function(){n.setState({hasError:!1})},n.state={hasError:!1},n}return(0,e.__extends)(n,t),n.getDerivedStateFromError=function(e){return{hasError:!0,errorMessage:null===e||void 0===e?void 0:e.message}},n.prototype.componentDidMount=function(){window.addEventListener("popstate",this.resetErrorState)},n.prototype.componentDidCatch=function(e,t){ol(e,t)},n.prototype.componentWillUnmount=function(){window.removeEventListener("popstate",this.resetErrorState)},n.prototype.render=function(){return this.state.hasError?jt().createElement(rl,{errorMessage:this.state.errorMessage,errorComponent:this.props.errorComponent}):jt().createElement(al,{errorComponent:this.props.errorComponent},this.props.children)},n}(jt().Component),ll=function(e,t){!function(e,t,n){var r=(0,Gt.useContext)(Ti);In((function(){r.logComponentMountEvent(e,t,n)}))}("0.1.24172002",e,t)},cl={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Gs||(Gs={}));var ul,dl={elevation4:Gs.depth4,elevation8:Gs.depth8,elevation16:Gs.depth16,elevation64:Gs.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function pl(e){ul!==e&&(ul=e)}function hl(){return void 0===ul&&(ul="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),ul}function ml(){return{rtl:hl()}}ul=hl();var fl,gl=0,vl=1,yl=2,bl="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),Cl={};try{Cl=window||{}}catch(Il){}var Sl,xl=function(){function t(t,n){var r,o,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?gl:vl,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(r=null===n||void 0===n?void 0:n.classNameToArgs)&&void 0!==r?r:this._classNameToArgs,this._counter=null!==(o=null===n||void 0===n?void 0:n.counter)&&void 0!==o?o:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===n||void 0===n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null===n||void 0===n?void 0:n.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===n||void 0===n?void 0:n.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(fl=Cl.__stylesheet__)||fl._lastStyleElement&&fl._lastStyleElement.ownerDocument!==document){var e=(null===Cl||void 0===Cl?void 0:Cl.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);fl=n,Cl.__stylesheet__=n}return fl},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,e.__assign)((0,e.__assign)({},this._config),t)},t.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},t.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},t.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},t.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},t.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},t.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==gl?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case vl:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(i){}break;case yl:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},t.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),bl||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},t.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},t}(),_l={};function El(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=_l[n]=_l[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var kl={"user-select":1};function wl(e,t){var n=function(){var e;if(!Sl){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,r=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();Sl=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Sl}(),r=e[t];if(kl[r]){var o=e[t+1];kl[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var Il,Pl=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Tl(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=Pl.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var Dl="left",Al="right",Rl=((Il={}).left=Al,Il.right=Dl,Il),Nl={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Ml(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(Dl)>=0)t[n]=r.replace(Dl,Al);else if(r.indexOf(Al)>=0)t[n]=r.replace(Al,Dl);else if(String(o).indexOf(Dl)>=0)t[n+1]=o.replace(Dl,Al);else if(String(o).indexOf(Al)>=0)t[n+1]=o.replace(Al,Dl);else if(Rl[r])t[n]=Rl[r];else if(Nl[o])t[n+1]=Nl[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function Fl(e){var t=e&&e["&"];return t?t.displayName:void 0}var Bl,Ol,Ll,Hl,Vl,zl=/\:global\((.+?)\)/g;function Ul(e,t){return e.indexOf(":global(")>=0?e.replace(zl,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Wl(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?Gl([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!zl.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return Gl([r],t,Ul(n,e))})):Gl([r],t,Ul(n,e))}function Gl(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=xl.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"===typeof s){var l=r.argsFromClassName(s);l&&Gl(l,t,n)}else if(Array.isArray(s))Gl(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&Wl(n,t,p,d[p])}else"object"===typeof u?null!==u&&Wl(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?jl(o,c,u):o[c]=u)}}return t}function jl(e,t,n){var r="string"===typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function ql(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function Kl(e,t){return t<=0?"":1===t?e:e+Kl(e,t-1)}function Yl(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&"displayName"!==r&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)El(n,o),Tl(n,o),Ml(e,n,o),wl(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function Xl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Gl(t),o=ql(e,r);if(o){var i=xl.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(Fl(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Yl(e,r[u]))}a.rulesToInsert=s}return a}}function Ql(e,t){void 0===t&&(t=1);var n=xl.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s];c=c.replace(/&/g,Kl(".".concat(e.className),t));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function Zl(e){var t=xl.getInstance(),n=Yl(ml(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(Bl||(Bl={})),function(e){e.Arabic="'".concat(Bl.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(Bl.Cyrillic,"'"),e.EastEuropean="'".concat(Bl.EastEuropean,"'"),e.Greek="'".concat(Bl.Greek,"'"),e.Hebrew="'".concat(Bl.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(Bl.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(Bl.Vietnamese,"'"),e.WestEuropean="'".concat(Bl.WestEuropean,"'"),e.Armenian="'".concat(Bl.Armenian,"'"),e.Georgian="'".concat(Bl.Georgian,"'")}(Ol||(Ol={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Ll||(Ll={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Hl||(Hl={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Vl||(Vl={}));var Jl="'Segoe UI', '".concat(Bl.WestEuropean,"'"),$l={ar:Ol.Arabic,bg:Ol.Cyrillic,cs:Ol.EastEuropean,el:Ol.Greek,et:Ol.EastEuropean,he:Ol.Hebrew,hi:Ol.Hindi,hr:Ol.EastEuropean,hu:Ol.EastEuropean,ja:Ol.Japanese,kk:Ol.EastEuropean,ko:Ol.Korean,lt:Ol.EastEuropean,lv:Ol.EastEuropean,pl:Ol.EastEuropean,ru:Ol.Cyrillic,sk:Ol.EastEuropean,"sr-latn":Ol.EastEuropean,th:Ol.Thai,tr:Ol.EastEuropean,uk:Ol.Cyrillic,vi:Ol.Vietnamese,"zh-hans":Ol.ChineseSimplified,"zh-hant":Ol.ChineseTraditional,hy:Ol.Armenian,ka:Ol.Georgian};function ec(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function tc(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}function nc(e){if(tc()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var rc,oc=void 0;try{oc=window}catch(eDe){}function ic(e){if(tc()&&"undefined"!==typeof oc){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:oc}}function ac(e){var t=null;try{var n=ic();t=n?n.sessionStorage.getItem(e):null}catch(eDe){}return t}var sc="language";function lc(e){if(void 0===e&&(e="sessionStorage"),void 0===rc){var t=nc(),n="localStorage"===e?function(e){var t=null;try{var n=ic();t=n?n.localStorage.getItem(e):null}catch(eDe){}return t}(sc):"sessionStorage"===e?ac(sc):void 0;n&&(rc=n),void 0===rc&&t&&(rc=t.documentElement.getAttribute("lang")),void 0===rc&&(rc="en")}return rc}var cc=function(e){var t=function(e){for(var t in $l)if($l.hasOwnProperty(t)&&e&&0===t.indexOf(e))return $l[t];return Jl}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:ec(Ll.mini,Hl.regular,n),xSmall:ec(Ll.xSmall,Hl.regular,n),small:ec(Ll.small,Hl.regular,n),smallPlus:ec(Ll.smallPlus,Hl.regular,n),medium:ec(Ll.medium,Hl.regular,n),mediumPlus:ec(Ll.mediumPlus,Hl.regular,n),large:ec(Ll.large,Hl.regular,n),xLarge:ec(Ll.xLarge,Hl.semibold,n),xLargePlus:ec(Ll.xLargePlus,Hl.semibold,n),xxLarge:ec(Ll.xxLarge,Hl.semibold,n),xxLargePlus:ec(Ll.xxLargePlus,Hl.semibold,n),superLarge:ec(Ll.superLarge,Hl.semibold,n),mega:ec(Ll.mega,Hl.semibold,n)}}(lc());function uc(e,t,n,r){Zl({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function dc(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);uc(t,i+"-light",Hl.light,o&&o+" Light"),uc(t,i+"-semilight",Hl.semilight,o&&o+" SemiLight"),uc(t,i+"-regular",Hl.regular,o),uc(t,i+"-semibold",Hl.semibold,o&&o+" SemiBold"),uc(t,i+"-bold",Hl.bold,o&&o+" Bold")}function pc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];hc(e||{},i)}return e}function hc(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!==typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:hc(e[r]||{},o,n)}}return n.pop(),e}function mc(t,n,r,o,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(fc(t,n,(0,e.__assign)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},r),o),i)}function fc(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,m=s.themeLighter,f=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,C=s.neutralPrimary,S=s.neutralSecondary,x=s.neutralSecondaryAlt,_=s.neutralTertiary,E=s.neutralTertiaryAlt,k=s.neutralLighterAlt,w=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),h&&(a.primaryButtonBackgroundHovered=h),m&&(a.inputPlaceholderBackgroundChecked=m),f&&(a.bodyBackgroundChecked=f,a.bodyFrameDivider=f,a.bodyDivider=f,a.variantBorder=f,a.buttonBackgroundCheckedHovered=f,a.buttonBackgroundPressed=f,a.listItemBackgroundChecked=f,a.listHeaderBackgroundPressed=f,a.menuItemBackgroundPressed=f,a.menuItemBackgroundChecked=f),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),_&&(a.disabledBodyText=_,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||_,a.buttonTextDisabled=_,a.inputIconDisabled=_,a.disabledText=_),C&&(a.bodyText=C,a.actionLink=C,a.buttonText=C,a.inputBorderHovered=C,a.inputText=C,a.listText=C,a.menuItemText=C),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),S&&(a.bodySubtext=S,a.focusBorder=S,a.inputBorder=S,a.smallInputBorder=S,a.inputPlaceholderText=S),x&&(a.buttonBorder=x),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),w&&(a.accentButtonBackground=w),(null===n||void 0===n?void 0:n.elevation4)&&(a.cardShadow=n.elevation4),!o&&(null===n||void 0===n?void 0:n.elevation8)?a.cardShadowHovered=n.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,e.__assign)((0,e.__assign)({},a),r)}!function(e){if(e){var t="".concat(e,"/fonts");dc(t,Bl.Thai,"leelawadeeui-thai","leelawadeeui"),dc(t,Bl.Arabic,"segoeui-arabic"),dc(t,Bl.Cyrillic,"segoeui-cyrillic"),dc(t,Bl.EastEuropean,"segoeui-easteuropean"),dc(t,Bl.Greek,"segoeui-greek"),dc(t,Bl.Hebrew,"segoeui-hebrew"),dc(t,Bl.Vietnamese,"segoeui-vietnamese"),dc(t,Bl.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),dc(t,Ol.Selawik,"selawik","selawik"),dc(t,Bl.Armenian,"segoeui-armenian"),dc(t,Bl.Georgian,"segoeui-georgian"),uc("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Hl.light),uc("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Hl.semibold)}}(function(){var e,t,n=null===(e=ic())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var gc={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function vc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=xl.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"===typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=o.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"===typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function yc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bc(e,ml())}function bc(t,n){var r=vc(t instanceof Array?t:[t]),o=r.classes,i=r.objects;return i.length&&o.push(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Xl.apply(void 0,(0,e.__spreadArray)([t],n,!1));return o?(Ql(o,t.specificityMultiplier),o.className):""}(n||{},i)),o.join(" ")}function Cc(e){var t=xl.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Yl(ml(),e[r]),"}");var o=n.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes ".concat(a,"{").concat(o,"}"),!0),t.cacheClassName(a,o,[],["keyframes",o]),a}var Sc="cubic-bezier(.1,.9,.2,1)",xc="cubic-bezier(.1,.25,.75,.9)",_c="0.167s",Ec="0.267s",kc="0.367s",wc="0.467s",Ic=Cc({from:{opacity:0},to:{opacity:1}}),Pc=Cc({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Tc=hu(-10),Dc=hu(-20),Ac=hu(-40),Rc=hu(-400),Nc=hu(10),Mc=hu(20),Fc=hu(40),Bc=hu(400),Oc=mu(10),Lc=mu(20),Hc=mu(-10),Vc=mu(-20),zc=fu(10),Uc=fu(20),Wc=fu(40),Gc=fu(400),jc=fu(-10),qc=fu(-20),Kc=fu(-40),Yc=fu(-400),Xc=gu(-10),Qc=gu(-20),Zc=gu(10),Jc=gu(20),$c=Cc({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),eu=Cc({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),tu=Cc({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),nu=Cc({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),ru=Cc({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),ou=Cc({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),iu=Sc,au=xc,su=_c,lu=Ec,cu=kc,uu=wc,du={slideRightIn10:pu("".concat(Ic,",").concat(Tc),kc,Sc),slideRightIn20:pu("".concat(Ic,",").concat(Dc),kc,Sc),slideRightIn40:pu("".concat(Ic,",").concat(Ac),kc,Sc),slideRightIn400:pu("".concat(Ic,",").concat(Rc),kc,Sc),slideLeftIn10:pu("".concat(Ic,",").concat(Nc),kc,Sc),slideLeftIn20:pu("".concat(Ic,",").concat(Mc),kc,Sc),slideLeftIn40:pu("".concat(Ic,",").concat(Fc),kc,Sc),slideLeftIn400:pu("".concat(Ic,",").concat(Bc),kc,Sc),slideUpIn10:pu("".concat(Ic,",").concat(Oc),kc,Sc),slideUpIn20:pu("".concat(Ic,",").concat(Lc),kc,Sc),slideDownIn10:pu("".concat(Ic,",").concat(Hc),kc,Sc),slideDownIn20:pu("".concat(Ic,",").concat(Vc),kc,Sc),slideRightOut10:pu("".concat(Pc,",").concat(zc),kc,Sc),slideRightOut20:pu("".concat(Pc,",").concat(Uc),kc,Sc),slideRightOut40:pu("".concat(Pc,",").concat(Wc),kc,Sc),slideRightOut400:pu("".concat(Pc,",").concat(Gc),kc,Sc),slideLeftOut10:pu("".concat(Pc,",").concat(jc),kc,Sc),slideLeftOut20:pu("".concat(Pc,",").concat(qc),kc,Sc),slideLeftOut40:pu("".concat(Pc,",").concat(Kc),kc,Sc),slideLeftOut400:pu("".concat(Pc,",").concat(Yc),kc,Sc),slideUpOut10:pu("".concat(Pc,",").concat(Xc),kc,Sc),slideUpOut20:pu("".concat(Pc,",").concat(Qc),kc,Sc),slideDownOut10:pu("".concat(Pc,",").concat(Zc),kc,Sc),slideDownOut20:pu("".concat(Pc,",").concat(Jc),kc,Sc),scaleUpIn100:pu("".concat(Ic,",").concat($c),kc,Sc),scaleDownIn100:pu("".concat(Ic,",").concat(tu),kc,Sc),scaleUpOut103:pu("".concat(Pc,",").concat(nu),_c,xc),scaleDownOut98:pu("".concat(Pc,",").concat(eu),_c,xc),fadeIn100:pu(Ic,_c,xc),fadeIn200:pu(Ic,Ec,xc),fadeIn400:pu(Ic,kc,xc),fadeIn500:pu(Ic,wc,xc),fadeOut100:pu(Pc,_c,xc),fadeOut200:pu(Pc,Ec,xc),fadeOut400:pu(Pc,kc,xc),fadeOut500:pu(Pc,wc,xc),rotate90deg:pu(ru,"0.1s",xc),rotateN90deg:pu(ou,"0.1s",xc)};function pu(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function hu(e){return Cc({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function mu(e){return Cc({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function fu(e){return Cc({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function gu(e){return Cc({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var vu,yu,bu,Cu,Su,xu=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=yc(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}(du);!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(vu||(vu={})),function(e){e.Arabic="'".concat(vu.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(vu.Cyrillic,"'"),e.EastEuropean="'".concat(vu.EastEuropean,"'"),e.Greek="'".concat(vu.Greek,"'"),e.Hebrew="'".concat(vu.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(vu.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(vu.Vietnamese,"'"),e.WestEuropean="'".concat(vu.WestEuropean,"'"),e.Armenian="'".concat(vu.Armenian,"'"),e.Georgian="'".concat(vu.Georgian,"'")}(yu||(yu={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(bu||(bu={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Cu||(Cu={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Su||(Su={}));var _u="'Segoe UI', '".concat(vu.WestEuropean,"'"),Eu={ar:yu.Arabic,bg:yu.Cyrillic,cs:yu.EastEuropean,el:yu.Greek,et:yu.EastEuropean,he:yu.Hebrew,hi:yu.Hindi,hr:yu.EastEuropean,hu:yu.EastEuropean,ja:yu.Japanese,kk:yu.EastEuropean,ko:yu.Korean,lt:yu.EastEuropean,lv:yu.EastEuropean,pl:yu.EastEuropean,ru:yu.Cyrillic,sk:yu.EastEuropean,"sr-latn":yu.EastEuropean,th:yu.Thai,tr:yu.EastEuropean,uk:yu.Cyrillic,vi:yu.Vietnamese,"zh-hans":yu.ChineseSimplified,"zh-hant":yu.ChineseTraditional,hy:yu.Armenian,ka:yu.Georgian};function ku(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function wu(e){var t=function(e){for(var t in Eu)if(Eu.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Eu[t];return _u}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:ku(bu.mini,Cu.regular,n),xSmall:ku(bu.xSmall,Cu.regular,n),small:ku(bu.small,Cu.regular,n),smallPlus:ku(bu.smallPlus,Cu.regular,n),medium:ku(bu.medium,Cu.regular,n),mediumPlus:ku(bu.mediumPlus,Cu.regular,n),large:ku(bu.large,Cu.regular,n),xLarge:ku(bu.xLarge,Cu.semibold,n),xLargePlus:ku(bu.xLargePlus,Cu.semibold,n),xxLarge:ku(bu.xxLarge,Cu.semibold,n),xxLargePlus:ku(bu.xxLargePlus,Cu.semibold,n),superLarge:ku(bu.superLarge,Cu.semibold,n),mega:ku(bu.mega,Cu.semibold,n)}}var Iu="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Pu="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",Tu=480,Du=1366;function Au(e,t){var n="number"===typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"===typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}var Ru,Nu="ms-Fabric--isFocusVisible",Mu="ms-Fabric--isFocusHidden";function Fu(e,t){e&&(e.classList.add(t?Nu:Mu),e.classList.remove(t?Mu:Nu))}function Bu(e,t,n){var r;n?n.forEach((function(t){return Fu(t.current,e)})):Fu(null===(r=ic(t))||void 0===r?void 0:r.document.body,e)}function Ou(e,t,n,r,o,i,a,s){return Lu(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function Lu(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,p=t.borderColor,h=void 0===p?e.palette.white:p,m=t.outlineColor,f=void 0===m?e.palette.neutralSecondary:m,g=t.isFocusedOnly,v=void 0===g||g,y=t.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(Nu," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(h),outline:"".concat(l,"px solid ").concat(f),zIndex:Ru.FocusStyle,borderRadius:o,selectors:(r={},r[Iu]=d,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Ru||(Ru={}));var Hu=function(e,t,n,r){var o,i,a;void 0===n&&(n="border"),void 0===r&&(r=-1);var s="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:r,top:r,bottom:r,right:s?0:r},o[n]="2px solid ".concat(e),o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(i={},i[Iu]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},Vu={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},zu=!1,Uu=0,Wu={empty:!0},Gu={},ju="undefined"===typeof WeakMap?null:WeakMap;function qu(){Uu++}function Ku(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!ju)return e;if(!zu){var r=xl.getInstance();r&&r.onReset&&xl.getInstance().onReset(qu),zu=!0}var o,i=0,a=Uu;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==Uu||t>0&&i>t)&&(o=Qu(),i=0,a=Uu),l=o;for(var c=0;c<r.length;c++){var u=Xu(r[c]);l.map.has(u)||l.map.set(u,Qu()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Yu(e){if(!ju)return e;var t=new ju;return function(n){if(!n||"function"!==typeof n&&"object"!==typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function Xu(e){return e?"object"===typeof e||"function"===typeof e?e:(Gu[e]||(Gu[e]={val:e}),Gu[e]):Wu}function Qu(){return{map:ju?new ju:null}}var Zu=Ku((function(e,t){var n=xl.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Ju(e,t,n){return Zu(e,void 0!==n?n:t.disableGlobalClassNames)}var $u=0,ed=function(){function e(){}return e.getValue=function(e,t){var n=td();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=td(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=nd();t||(t=e.__id__=String($u++)),n[t]=e},e.removeChangeListener=function(e){delete nd()[e.__id__]},e}();function td(){var e,t=ic()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function nd(){return td().__callbacks__}var rd={settings:{},scopedSettings:{},inCustomizerContext:!1},od=ed.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),id=[],ad=function(){function t(){}return t.reset=function(){od.settings={},od.scopedSettings={}},t.applySettings=function(n){od.settings=(0,e.__assign)((0,e.__assign)({},od.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){od.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},od.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=rd);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&od.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||od.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(Il){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){id.push(e)},t.unobserve=function(e){id=id.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||id.forEach((function(e){return e()}))},t}(),sd=function(){return sd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sd.apply(this,arguments)},ld="undefined"===typeof window?__webpack_require__.g:window,cd=ld&&ld.CSPSettings&&ld.CSPSettings.nonce,ud=function(){var e=ld.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=sd(sd({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=sd(sd({},e),{registeredThemableStyles:[]}));return ld.__themeState__=e,e}();function dd(e,t){ud.loadStyles?ud.loadStyles(md(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=md(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),cd&&n.setAttribute("nonce",cd);n.appendChild(document.createTextNode(o)),ud.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};i?ud.registeredThemableStyles.push(s):ud.registeredStyles.push(s)}(e)}function pd(e){ud.theme=e,function(){if(ud.theme){for(var e=[],t=0,n=ud.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(hd(ud.registeredStyles),ud.registeredStyles=[]);3!==e&&1!==e||(hd(ud.registeredThemableStyles),ud.registeredThemableStyles=[])}(1),dd([].concat.apply([],e)))}}()}function hd(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function md(e){var t=ud.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!==typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}var fd,gd={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(fd||(fd={}));var vd={elevation4:fd.depth4,elevation8:fd.depth8,elevation16:fd.depth16,elevation64:fd.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},yd=wu(lc());function bd(e,t,n,r){Zl({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Cd(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);bd(t,i+"-light",Cu.light,o&&o+" Light"),bd(t,i+"-semilight",Cu.semilight,o&&o+" SemiLight"),bd(t,i+"-regular",Cu.regular,o),bd(t,i+"-semibold",Cu.semibold,o&&o+" SemiBold"),bd(t,i+"-bold",Cu.bold,o&&o+" Bold")}function Sd(t,n,r,o,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(xd(t,n,(0,e.__assign)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},r),o),i)}function xd(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,m=s.themeLighter,f=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,C=s.neutralPrimary,S=s.neutralSecondary,x=s.neutralSecondaryAlt,_=s.neutralTertiary,E=s.neutralTertiaryAlt,k=s.neutralLighterAlt,w=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),h&&(a.primaryButtonBackgroundHovered=h),m&&(a.inputPlaceholderBackgroundChecked=m),f&&(a.bodyBackgroundChecked=f,a.bodyFrameDivider=f,a.bodyDivider=f,a.variantBorder=f,a.buttonBackgroundCheckedHovered=f,a.buttonBackgroundPressed=f,a.listItemBackgroundChecked=f,a.listHeaderBackgroundPressed=f,a.menuItemBackgroundPressed=f,a.menuItemBackgroundChecked=f),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),_&&(a.disabledBodyText=_,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||_,a.buttonTextDisabled=_,a.inputIconDisabled=_,a.disabledText=_),C&&(a.bodyText=C,a.actionLink=C,a.buttonText=C,a.inputBorderHovered=C,a.inputText=C,a.listText=C,a.menuItemText=C),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),S&&(a.bodySubtext=S,a.focusBorder=S,a.inputBorder=S,a.smallInputBorder=S,a.inputPlaceholderText=S),x&&(a.buttonBorder=x),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),w&&(a.accentButtonBackground=w),(null===n||void 0===n?void 0:n.elevation4)&&(a.cardShadow=n.elevation4),!o&&(null===n||void 0===n?void 0:n.elevation8)?a.cardShadowHovered=n.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,e.__assign)((0,e.__assign)({},a),r)}!function(e){if(e){var t="".concat(e,"/fonts");Cd(t,vu.Thai,"leelawadeeui-thai","leelawadeeui"),Cd(t,vu.Arabic,"segoeui-arabic"),Cd(t,vu.Cyrillic,"segoeui-cyrillic"),Cd(t,vu.EastEuropean,"segoeui-easteuropean"),Cd(t,vu.Greek,"segoeui-greek"),Cd(t,vu.Hebrew,"segoeui-hebrew"),Cd(t,vu.Vietnamese,"segoeui-vietnamese"),Cd(t,vu.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Cd(t,yu.Selawik,"selawik","selawik"),Cd(t,vu.Armenian,"segoeui-armenian"),Cd(t,vu.Georgian,"segoeui-georgian"),bd("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Cu.light),bd("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Cu.semibold)}}(function(){var e,t,n=null===(e=ic())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var _d={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Ed(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=pc({},e,t,{semanticColors:xd(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=pc(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:gd,effects:vd,fonts:yd,spacing:_d,isInverted:n,disableGlobalClassNames:!1,semanticColors:Sd(gd,vd,void 0,n,t),rtl:void 0},e)}var kd=Ed({}),wd=[],Id="theme";function Pd(){var t,n,r,o=ic();(null===(n=null===o||void 0===o?void 0:o.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var r;void 0===n&&(n=!1);kd=Ed(t,n),pd((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},kd.palette),kd.semanticColors),kd.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),t[c]=u}return t}(kd))),ad.applySettings(((r={}).theme=kd,r)),wd.forEach((function(e){try{e(kd)}catch(eDe){}}))}(o.FabricConfig.legacyTheme):ad.getSettings([Id]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(kd=Ed(o.FabricConfig.theme)),ad.applySettings(((t={}).theme=kd,t)))}Pd();var Td={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Dd={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Ad(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}function Rd(e){console&&console.warn&&console.warn(e)}var Nd=ed.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),Md=xl.getInstance();Md&&Md.onReset&&Md.onReset((function(){for(var e in Nd)Nd.hasOwnProperty(e)&&Nd[e].subset&&(Nd[e].subset.className=void 0)}));var Fd=function(e){return e.toLowerCase()};function Bd(t,n){var r=(0,e.__assign)((0,e.__assign)({},t),{isRegistered:!1,className:void 0}),o=t.icons;for(var i in n=n?(0,e.__assign)((0,e.__assign)({},Nd.__options),n):Nd.__options,o)if(o.hasOwnProperty(i)){var a=o[i],s=Fd(i);Nd[s]?Vd(i):Nd[s]={code:a,subset:r}}}function Od(e,t){Nd.__remapped[Fd(e)]=Fd(t)}var Ld=[],Hd=void 0;function Vd(e){var t=Nd.__options;t.disableWarnings||(Ld.push(e),void 0===Hd&&(Hd=setTimeout((function(){Rd("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+Ld.slice(0,10).join(", ")+(Ld.length>10?" (+ ".concat(Ld.length-10," more)"):"")),Hd=void 0,Ld=[]}),2e3)))}function zd(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var r={},o={},i=0,a=t;i<a.length;i++){var s=a[i];if(s)for(var l in s)if(s.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var u in c)c.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(c[u]):o[u]=[c[u]]);continue}var d=r[l],p=s[l];r[l]=void 0===d?p:(0,e.__spreadArray)((0,e.__spreadArray)([],Array.isArray(d)?d:[d],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(o).length>0){r.subComponentStyles={};var h=r.subComponentStyles,m=function(e){if(o.hasOwnProperty(e)){var t=o[e];h[e]=function(e){return zd.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var u in o)m(u)}return r}function Ud(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&r.push("function"===typeof a?a(e):a)}return 1===r.length?r[0]:r.length?zd.apply(void 0,r):{}}function Wd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gd(e,ml())}function Gd(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=zd.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=vc(r[i]),s=a.classes,l=a.objects;if(null===l||void 0===l?void 0:l.length)(d=Xl(t||{},{displayName:i},l))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var c=0,u=o;c<u.length;c++){var d;(d=u[c])&&Ql(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}var jd={},qd=void 0;try{qd=window}catch(eDe){}function Kd(e,t){if("undefined"!==typeof qd){var n=qd.__packages__=qd.__packages__||{};if(!n[e]||!jd[e])jd[e]=t,(n[e]=n[e]||[]).push(t)}}function Yd(e){var t=e.theme,n=e.isFocused,r=e.disabled,o=(null===t||void 0===t?void 0:t.semanticColors.inputFocusBorderAlt)?null===t||void 0===t?void 0:t.semanticColors.inputFocusBorderAlt:"#0f6cbd",i=(null===t||void 0===t?void 0:t.effects.roundedCorner4)?null===t||void 0===t?void 0:t.effects.roundedCorner4:4;return{text:[{borderRadius:null===t||void 0===t?void 0:t.effects.roundedCorner4},n&&!r&&Hu(o,i)]}}Kd("@fluentui/set-version","6.0.0"),Kd("@fluentui/style-utilities","8.9.18"),Pd();var Xd=function(e,t,n){return{".ms-Fabric--isFocusVisible &:focus::after":{border:"1px solid ".concat(e),borderRadius:t,inset:"0",outline:"2px solid ".concat(n)}}};function Qd(t){var n=t.theme,r=t.primary,o=t.split;return zd(function(e){return{root:{paddingLeft:"12px",paddingRight:"12px",borderRadius:e.effects.roundedCorner4}}}(n),r?function(t){var n=t.effects,r=t.palette,o=t.semanticColors;return{root:(0,e.__assign)({backgroundColor:o.primaryButtonBackground,borderColor:o.primaryButtonBorder,color:o.primaryButtonText},Xd(r.white,n.roundedCorner4,o.focusBorder)),rootHovered:{backgroundColor:o.primaryButtonBackgroundHovered,borderColor:o.primaryButtonBackgroundHovered,color:o.primaryButtonTextHovered},rootPressed:{backgroundColor:o.primaryButtonBackgroundPressed,borderColor:o.primaryButtonBackgroundPressed,color:o.primaryButtonTextPressed},rootDisabled:{backgroundColor:o.primaryButtonBackgroundDisabled,borderColor:o.primaryButtonBackgroundDisabled,color:o.primaryButtonTextDisabled},description:{color:o.primaryButtonText},descriptionHovered:{color:o.primaryButtonText}}}(n):function(t){var n=t.effects,r=t.palette,o=t.semanticColors;return{root:(0,e.__assign)({borderColor:o.buttonBorder,color:o.buttonText},Xd("transparent",n.roundedCorner4,o.focusBorder)),rootHovered:{backgroundColor:o.buttonBackgroundHovered,borderColor:r.neutralTertiaryAlt,color:o.buttonTextHovered},rootPressed:{backgroundColor:o.buttonBackgroundPressed,borderColor:r.neutralTertiary,color:o.buttonTextPressed},rootDisabled:{backgroundColor:o.buttonBackgroundDisabled,borderColor:o.buttonBorderDisabled,color:o.buttonTextDisabled}}}(n),o&&function(e){return{splitButtonMenuButton:{borderRadius:"unset",borderTopRightRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4,borderBottomRightRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4},splitButtonDivider:Zd,splitButtonDividerDisabled:Zd}}(n))}var Zd={position:"relative",top:"unset",bottom:"unset"};var Jd=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledSubtext:n?t.semanticColors.bodyTextChecked:t.semanticColors.inputPlaceholderText},$d=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledBorder:n?t.semanticColors.inputBackgroundChecked:t.semanticColors.inputPlaceholderText},ep=function(e){var t=e.theme,n=e.checked;return e.disabled?n?t.semanticColors.disabledBorder:t.semanticColors.inputBackground:n?t.semanticColors.inputBackgroundChecked:t.semanticColors.inputBackground},tp=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledBorder:n?t.semanticColors.inputBackgroundCheckedHovered:t.semanticColors.inputIconHovered},np=function(e){var t=e.theme,n=e.checked;return e.disabled?n?t.semanticColors.disabledBorder:t.semanticColors.inputBackground:n?t.semanticColors.inputBackgroundCheckedHovered:t.semanticColors.inputBackground},rp=function(e){var t=e.theme;return e.disabled?t.semanticColors.disabledSubtext:t.semanticColors.inputIconHovered},op=function(e){var t=e.theme;if(e.disabled)return t.semanticColors.buttonTextDisabled},ip=function(e){var t=e.theme,n=e.disabled,r=e.checked;return n?t.semanticColors.buttonTextDisabled:r?void 0:t.semanticColors.inputBackground};var ap=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledText:n?t.semanticColors.inputBackgroundChecked:t.semanticColors.inputPlaceholderText},sp=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledText:n?t.semanticColors.inputIconHovered:t.semanticColors.inputPlaceholderText},lp=function(e){var t=e.theme;return e.disabled?t.semanticColors.disabledText:t.semanticColors.inputIconHovered},cp=function(e,t){var n=e.theme,r=e.checked;return e.disabled&&r?n.semanticColors.disabledText:r?t?n.semanticColors.inputBackgroundCheckedHovered:n.semanticColors.inputBackgroundChecked:"transparent"},up=function(e,t){var n=e.theme,r=e.checked;return e.disabled?n.semanticColors.disabledText:r?t?n.semanticColors.inputBackgroundCheckedHovered:n.semanticColors.inputBackgroundChecked:n.semanticColors.inputIconHovered},dp=function(e){var t=e.theme,n=e.checked;return e.disabled?t.semanticColors.disabledText:n?sp(e):t.semanticColors.inputIconHovered};var pp=function(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.semanticColors,i=null!==(r=null===o||void 0===o?void 0:o.inputBottomBorderFocus)&&void 0!==r?r:e.palette.themePrimary,a="2px solid ".concat(n?o.errorText:i);return{borderColor:o.focusBorder,":after":{borderColor:o.focusBorder,borderBottom:t?"unset":a,clipPath:"inset(calc(100% - 2px) 0 0 0)"}}},hp=function(e){var t=e.semanticColors;return{borderRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4,border:"1px solid ".concat(t.disabledBorder),color:t.disabledText,backgroundColor:"unset"}};var mp,fp=9,gp=13,vp=18,yp=27,bp=32,Cp=33,Sp=34,xp=35,_p=36,Ep=37,kp=38,wp=39,Ip=40,Pp=65,Tp="isRTL";function Dp(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===mp){var t=ac(Tp);null!==t&&function(e,t){void 0===t&&(t=!1);var n=nc();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=ic())||void 0===n||n.sessionStorage.setItem(e,t)}catch(eDe){}}(Tp,e?"1":"0");pl(mp=e)}(mp="1"===t);var n=nc();void 0===mp&&n&&pl(mp="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!mp}function Ap(e,t){return void 0===t&&(t={}),Dp(t)&&(e===Ep?e=wp:e===wp&&(e=Ep)),e}var Rp,Np;function Mp(e){return{root:{borderRadius:e.theme.effects.roundedCorner4}}}!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Rp||(Rp={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Np||(Np={}));var Fp=function(e){var t=e.theme,n=e.checked,r=e.disabled,o=t.semanticColors;return n?r?o.buttonBackgroundDisabled:o.inputBackgroundChecked:n?void 0:o.primaryButtonBorder},Bp=function(e){var t=e.theme,n=e.checked,r=e.disabled,o=t.semanticColors;return n?r?o.buttonBackgroundDisabled:o.inputBackgroundCheckedHovered:n?void 0:o.primaryButtonBorder},Op=function(e){var t=e.theme,n=e.checked,r=e.disabled,o=t.semanticColors;return n?r?o.disabledBackground:o.primaryButtonBackgroundPressed:n?void 0:o.primaryButtonBorder},Lp=function(e){var t=e.theme,n=e.disabled,r=t.semanticColors;return n?r.disabledBodySubtext:r.inputText},Hp={Breadcrumb:{styles:function(e){var t=e.theme.effects;return{itemLink:{borderRadius:t.roundedCorner4,".ms-Fabric--isFocusVisible &:focus::after":{borderRadius:t.roundedCorner4}}}}},CalloutContent:{styles:function(e){var t=e.theme.effects;return{root:{borderRadius:t.roundedCorner4},calloutMain:{borderRadius:t.roundedCorner4},beakCurtain:{borderRadius:t.roundedCorner4}}}},Check:{styles:function(e){var t=e.checked,n=e.theme;return n||Rd("Theme is undefined or null."),{root:[{cursor:"pointer",width:"16px",height:"16px","::before":{transition:"all ease-in-out 200ms",borderRadius:"3px",backgroundColor:"transparent",inset:0,height:"100%",width:"100%"}},t&&{":hover":{"::before":{backgroundColor:n.semanticColors.inputBackgroundCheckedHovered},'[data-icon-name="CircleRing"]':{borderColor:n.semanticColors.inputBackgroundCheckedHovered}},"::before":{backgroundColor:n.semanticColors.inputBackgroundChecked},'[data-icon-name="StatusCircleCheckmark"]':{opacity:1}}],check:[{fontSize:"18px",lineHeight:"16px",margin:"0",width:"16px",height:"16px",fontWeight:Cu.regular,transition:"opacity ease-in-out 100ms",opacity:0,boxSizing:"border-box"},t&&{color:"white"}],circle:[{fontSize:0,width:"16px",height:"16px",borderRadius:2,borderColor:n.semanticColors.inputBorder,borderWidth:"1px",borderStyle:"solid",transition:"all ease-in-out 200ms",boxSizing:"border-box"},t&&{color:n.semanticColors.bodyTextChecked,borderColor:n.semanticColors.inputBackgroundChecked}]}}},Checkbox:{styles:function(e){return function(e){return{root:{"&:hover .ms-Checkbox-checkbox":{borderColor:tp(e),background:np(e)},"&:hover .ms-Checkbox-text":{color:rp(e)},"&:hover .ms-Checkbox-checkmark":{color:ip(e)}},label:{gap:"4px",padding:"3px"},checkbox:{margin:0,backgroundColor:ep(e),borderColor:$d(e)},text:{margin:0,color:Jd(e)},checkmark:{color:op(e)}}}(e)}},ChoiceGroup:{styles:function(e){return function(e){return{root:{},label:{color:e.theme.semanticColors.inputPlaceholderText},flexContainer:{}}}(e)}},ChoiceGroupOption:{styles:function(e){return function(e){return{field:{color:sp(e),".ms-ChoiceFieldLabel":{color:sp(e)},"&:hover .ms-ChoiceFieldLabel":{color:dp(e)},selectors:{"::before":{borderColor:ap(e),width:"17px",height:"17px",margin:"2px"},"::after":{width:"11px",height:"11px",background:cp(e,!1),borderColor:cp(e,!1)},":hover":{color:lp(e)},":hover::before":{borderColor:up(e,!0)},":hover::after":{background:cp(e,!0),borderColor:cp(e,!0)}}}}}(e)}},ColorPickerGridCell:{styles:function(e){var t,n=e.theme,r=e.circle,o=e.height,i=e.width,a=n.effects,s={borderRadius:a.roundedCorner2};if(o&&o>32&&o<=64||i&&i>32&&i<=64)s={borderRadius:a.roundedCorner4};else if(o&&o>64||i&&i>64){s={borderRadius:null!==(t=a.roundedCorner8)&&void 0!==t?t:"8px"}}return{colorCell:[!r&&s],svg:[!r&&s]}}},CommandBar:{styles:function(e){return{root:{height:"48px",borderRadius:e.theme.effects.roundedCorner8,alignItems:"center"},primarySet:{height:"40px"},secondarySet:{height:"40px"}}}},CommandBarButton:{styles:function(t){var n=t.theme,r=n,o=r.semanticColors,i=r.effects,a={borderRadius:0,borderTopRightRadius:i.roundedCorner4,borderBottomRightRadius:i.roundedCorner4},s={borderRadius:0,borderTopLeftRadius:i.roundedCorner4,borderBottomLeftRadius:i.roundedCorner4},l={height:32,paddingLeft:4,paddingRight:4},c=function(t){var n=t.effects,r=t.semanticColors,o={borderRadius:0,borderTopRightRadius:n.roundedCorner4,borderBottomRightRadius:n.roundedCorner4},i={borderRadius:0,borderTopLeftRadius:n.roundedCorner4,borderBottomLeftRadius:n.roundedCorner4};return{splitButtonContainer:{borderRadius:n.roundedCorner4,color:r.buttonText,".ms-Button:first-child":(0,e.__assign)((0,e.__assign)({},i),{height:"100%"}),".ms-Button--primary:hover":{border:"none"}},splitButtonMenuButton:(0,e.__assign)((0,e.__assign)({},o),{height:"100%",padding:"0px",width:20}),splitButtonContainerFocused:{":focus::after":{inset:"0px",outline:"none",borderRadius:n.roundedCorner4,border:"2px solid ".concat(r.focusBorder)}},splitButtonMenuFocused:{":focus::after":(0,e.__assign)({inset:"0px",outline:"none",border:"2px solid ".concat(r.focusBorder)},o)},splitButtonDivider:{right:19},splitButtonDividerDisabled:{right:19}}}(n);return(0,e.__assign)((0,e.__assign)({root:{backgroundColor:"transparent",height:"100%",padding:"0px",margin:"0px 2px",borderRadius:i.roundedCorner4,".ms-Fabric--isFocusVisible &:focus::after":{top:4,right:0,bottom:4,left:0,outline:"none",borderRadius:i.roundedCorner4,border:"2px solid ".concat(o.focusBorder)}},rootHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundHovered}},rootPressed:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundPressed}},rootExpanded:{backgroundColor:"transparent",color:"inherit",".ms-Button-flexContainer":{backgroundColor:"transparent"}},rootChecked:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundChecked}},rootCheckedHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundCheckedHovered}},rootCheckedPressed:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundPressed}},rootExpandedHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundHovered}},flexContainer:{height:32,paddingLeft:4,paddingRight:4,borderRadius:i.roundedCorner4},icon:{color:"inherit"},menuIcon:{color:"inherit",fontSize:"10px"},rootDisabled:{backgroundColor:"transparent"},textContainer:{height:16}},c),{splitButtonContainer:{borderRadius:i.roundedCorner4,color:o.buttonText,".ms-Button:first-child":{".ms-Button-flexContainer":(0,e.__assign)((0,e.__assign)({},s),l)}},splitButtonMenuButton:(0,e.__assign)((0,e.__assign)({},a),{height:"100%",padding:"0px",width:20,marginLeft:"-2px",backgroundColor:"transparent",".ms-Button-flexContainer":(0,e.__assign)((0,e.__assign)({},a),l),"&:hover":{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundHovered}}}),splitButtonContainerFocused:{":focus::after":{inset:"4px 0px",outline:"none",borderRadius:i.roundedCorner4,border:"2px solid ".concat(o.focusBorder)}},splitButtonMenuButtonExpanded:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundChecked},"&:hover":{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:o.buttonBackgroundCheckedHovered}}},splitButtonFlexContainer:{border:"none"}})}},CompoundButton:{styles:Qd},ContextualMenu:{styles:function(e){var t=e.theme.effects;return{root:{borderRadius:t.roundedCorner4,boxShadow:t.elevation8},container:{borderRadius:t.roundedCorner4},list:{padding:"4px"},subComponentStyles:{callout:{},menuItem:{root:{borderRadius:t.roundedCorner2,"&:after":{borderRadius:t.roundedCorner2}},divider:{margin:"4px"},icon:{color:"inherit"}}}}}},DefaultButton:{styles:Qd},DetailRowCheck:{styles:function(){return{check:[{opacity:1}]}}},Dialog:{styles:function(e){var t=e.theme.effects;return{main:{borderRadius:t.roundedCorner8,boxShadow:t.elevation64}}}},DialogContent:{styles:function(e){var t=e.theme.effects;return{topButton:{"&:hover":{".ms-Dialog-button":{borderRadius:t.roundedCorner4}}},button:{borderRadius:t.roundedCorner4}}}},Dropdown:{styles:function(e){var t,n=e.theme,r=e.disabled,o=n,i=o.semanticColors,a=o.palette,s=null!==(t=null===i||void 0===i?void 0:i.inputBottomBorderFocus)&&void 0!==t?t:a.themePrimary,l="2px solid ".concat(s);return{dropdown:[r&&hp(n),!r&&{selectors:{"&:focus:after":[{borderRadius:null===n||void 0===n?void 0:n.effects.roundedCorner4,borderColor:i.focusBorder,borderBottom:l,clipPath:"inset(calc(100% - 2px) 0 0 0)"}]}}],title:[{borderRadius:null===n||void 0===n?void 0:n.effects.roundedCorner4},r&&{backgroundColor:"unset"}],caretDown:{color:null===n||void 0===n?void 0:n.palette.neutralQuaternary},label:{fontWeight:Cu.regular}}}},IconButton:{styles:function(t){var n=t.theme,r=n.effects,o=n.palette,i=n.semanticColors;return{root:(0,e.__assign)({borderColor:"transparent",borderRadius:r.roundedCorner4,color:o.neutralPrimaryAlt},Xd("transparent",r.roundedCorner4,i.focusBorder)),rootHovered:{backgroundColor:o.neutralLighter,borderColor:o.neutralLighter,color:i.buttonTextHovered},rootPressed:{backgroundColor:i.buttonBackgroundPressed,borderColor:i.buttonBackgroundPressed,color:i.buttonTextPressed},rootDisabled:{backgroundColor:"transparent",borderColor:"transparent",color:i.buttonTextDisabled}}}},MessageBar:{styles:function(e){return{root:{borderRadius:e.theme.effects.roundedCorner4}}}},Modal:{styles:function(e){var t=e.theme.effects;return{main:{borderRadius:t.roundedCorner8,boxShadow:t.elevation64}}}},Pivot:{styles:function(e){var t=e.theme,n=t.effects,r=t.semanticColors;return{link:{backgroundColor:"transparent",border:"2px solid transparent",borderRadius:n.roundedCorner4,height:"44px",lineHeight:"20px",marginRight:0,padding:"12px","&:hover::before":{borderRadius:n.roundedCorner4,height:"3px"},"&:hover":{".ms-Pivot-icon":{}},".ms-Fabric--isFocusVisible &:focus":{border:"2px solid ".concat(r.focusBorder),borderRadius:n.roundedCorner4,inset:0,outline:"none"}},icon:{height:"14px",width:"14px"},linkIsSelected:{border:"2px solid transparent",borderRadius:n.roundedCorner4,height:"44px",lineHeight:"20px",marginRight:0,padding:"12px","&::before":{borderRadius:n.roundedCorner4,height:"3px"},".ms-Fabric--isFocusVisible &:focus":{border:"2px solid ".concat(r.focusBorder),borderRadius:n.roundedCorner4,inset:0,outline:"none"},".ms-Pivot-icon":{}}}}},NormalPeoplePicker:{styles:Yd},CompactPeoplePicker:{styles:Yd},ListPeoplePickerBase:{styles:Yd},SearchBox:{styles:function(e){var t=e.hasFocus,n=e.underlined,r=e.disabled,o=e.theme,i=o.palette,a=o.semanticColors,s="1px solid ".concat(i.neutralPrimary);return{root:[{borderRadius:n?0:o.effects.roundedCorner4,borderBottom:s},t&&["is-active",{position:"relative",borderColor:"unset"},pp(o)],r&&["is-disabled",hp(o),{borderBottom:"1px solid ".concat(a.disabledBorder)}]],field:[r&&{"::placeholder":{color:a.disabledText}}],iconContainer:[{color:o.palette.neutralPrimary},r&&["is-disabled",{color:a.disabledText}]]}}},Slider:{styles:function(e){var t,n=e.theme,r=e.vertical,o=e.disabled,i=n.semanticColors,a=o?void 0:{backgroundColor:i.smallInputBorder},s=o?void 0:{backgroundColor:i.primaryButtonBackgroundHovered},l=o?void 0:{border:"1px solid "+i.smallInputBorder};return{thumb:[{background:o?i.disabledBorder:i.primaryButtonBackground,boxShadow:"0 0 0 4px ".concat(i.buttonBackground," inset"),borderWidth:1,borderColor:i.disabledBorder,height:20,width:20,":hover":{backgroundColor:o?i.disabledBorder:i.primaryButtonBackgroundHovered}},r?{left:-8,margin:"0 auto",transform:"translateY(8px)"}:{top:-8,transform:Dp(n)?"translateX(50%)":"translateX(-50%)"}],activeSection:[{background:o?i.disabledBorder:i.primaryButtonBackground}],inactiveSection:{backgroundColor:o?i.buttonBackgroundDisabled:i.smallInputBorder},slideBox:[(t={},t[":active .ms-Slider-inactive"]=a,t[":hover .ms-Slider-inactive"]=a,t[":active .ms-Slider-active"]=s,t[":hover .ms-Slider-active"]=s,t[":active .ms-Slider-thumb"]=l,t[":hover .ms-Slider-thumb"]=l,t)]}}},SpinButton:{styles:function(e){var t=e.theme,n=e.isFocused,r=e.disabled,o=t.semanticColors,i=o.disabledBorder,a=o.inputBorder,s=n?t.palette.themePrimary:t.palette.neutralPrimary;return r&&(s=o.disabledBorder,a=o.disabledBorder),{label:{fontWeight:Cu.regular},input:{backgroundColor:"unset"},spinButtonWrapper:[{borderBottomColor:s,backgroundColor:"unset"},{":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:a,borderBottomColor:s,borderRadius:t.effects.roundedCorner4}},!r&&[{":hover :":{":after":{borderStyle:"solid",borderColor:i,borderBottom:t.palette.themePrimary,borderWidth:"1px"}}},n&&[{":hover:after, :after":{borderStyle:"solid",borderColor:i,borderBottomColor:s,borderWidth:"1px"}}]]]}}},Spinner:{styles:function(e){var t=e.theme,n=e.size;return{label:[t.fonts.mediumPlus,{color:t.semanticColors.bodyText,fontWeight:Cu.semibold}],circle:[{borderWidth:3},n===Rp.large&&{height:36,width:36},n===Rp.medium&&{height:32,width:32},n===Rp.small&&{height:28,width:28},n===Rp.xSmall&&{height:24,width:24}]}}},TagItem:{styles:Mp},TagPicker:{styles:Yd},Tag:{styles:Mp},TextField:{styles:function(e){var t=e.theme,n=e.focused,r=e.borderless,o=e.underlined,i=e.hasErrorMessage,a=e.disabled,s=t.effects,l=t.semanticColors,c=t.palette,u={backgroundColor:"unset"},d=i?l.errorText:c.neutralPrimary,p=r||o?"unset":"1px solid ".concat(d);return{subComponentStyles:{label:{root:{fontWeight:Cu.regular}}},prefix:u,suffix:u,field:[n&&{border:"unset",":after":{border:"unset"}},a&&{backgroundColor:"unset"},{borderRadius:s.roundedCorner4,":after":{borderRadius:s.roundedCorner4}}],fieldGroup:[{borderBottom:p,borderRadius:s.roundedCorner4,":after":{borderRadius:s.roundedCorner4}},n&&pp(t,o,i),a&&hp(t),a&&{borderBottom:"1px solid ".concat(l.disabledText)}]}}},Toggle:{styles:function(e){var t=e.theme,n=e.disabled,r=t.semanticColors,o=t.effects;return{root:{},label:{color:Lp(e)},thumb:{width:"14px",height:"14px",backgroundColor:n?r.inputIconDisabled:void 0},container:{},pill:{backgroundColor:Fp(e),"&:hover":{backgroundColor:Bp(e)},"&:active":{backgroundColor:Op(e)},"&:focus&:after":{borderRadius:o.roundedCorner4,outlineWidth:"2px"}},text:{}}}}},Vp="#BDBDBD",zp=(0,e.__assign)({themeDarker:"#0c3b5e",themeDark:"#0f548c",themeDarkAlt:"#115ea3",themePrimary:"#0f6cbd",themeSecondary:"#2886de",themeTertiary:"#77b7f7",themeLight:"#b4d6fa",themeLighter:"#cfe4fa",themeLighterAlt:"#ebf3fc",black:"#000000",blackTranslucent40:"rgba(0, 0, 0, 0.4)",neutralDark:"#141414",neutralPrimary:"#242424",neutralPrimaryAlt:"#383838",neutralSecondary:"#5c5c5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#9e9e9e",neutralTertiaryAlt:"#c7c7c7",neutralQuaternary:"#d1d1d1",neutralQuaternaryAlt:"#e0e0e0",neutralLight:"#ebebeb",neutralLighter:"#f5f5f5",neutralLighterAlt:"#fafafa",accent:"#0f6cbd",white:"#FFFFFF",whiteTranslucent40:"rgba(255 ,255 ,255 ,0.4)"},{yellowDark:"#d39300",yellow:"#fde300",yellowLight:"#fef7b2",orange:"#f7630c",orangeLight:"#f98845",orangeLighter:"#fdcfb4",redDark:"#750b1c",red:"#d13438",magentaDark:"#6b0043",magenta:"#bf0077",magentaLight:"#d957a8",purpleDark:"#401b6c",purple:"#5c2e91",purpleLight:"#c6b1de",blueDark:"#003966",blueMid:"#004e8c",blue:"#0078d4",blueLight:"#3a96dd",tealDark:"#006666",teal:"#038387",tealLight:"#00b7c3",greenDark:"#0b6a0b",green:"#107c10",greenLight:"#13a10e"}),Up=zp,Wp=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=pc({},e,t,{semanticColors:fc(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=pc(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:cl,effects:dl,fonts:cc,spacing:gc,isInverted:n,disableGlobalClassNames:!1,semanticColors:mc(cl,dl,void 0,n,t),rtl:void 0},e)}({palette:zp,semanticColors:{inputBottomBorderFocus:Up.themePrimary,inputBottomBorderRest:Up.neutralLighter,focusBorder:Up.neutralTertiary,inputBorder:Up.neutralQuaternary,inputBackgroundChecked:Up.themePrimary,inputBackground:Up.white,bodyTextChecked:Up.neutralPrimary,inputBackgroundCheckedHovered:Up.themeDarkAlt,warningText:Up.neutralPrimary,messageText:Up.neutralPrimary,messageLink:Up.themeDarkAlt,messageLinkHovered:Up.themeDarker,infoIcon:Up.neutralSecondary,warningIcon:Up.neutralPrimary,infoBackground:Up.neutralLighter,inputIconHovered:"#424242",inputPlaceholderText:"#616161",disabledBorder:Vp,disabledText:Vp},components:Hp,effects:{elevation4:"0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation8:"0px 4px 8px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation16:"0px 8px 16px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation64:"0px 32px 64px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px",roundedCorner8:"8px",roundedCornerCircle:"50%"}});function Gp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"===typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"===typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}var jp=Gt.createContext({window:"object"===typeof window?window:void 0}),qp=function(){return Gt.useContext(jp).window},Kp=function(){var e;return null===(e=Gt.useContext(jp).window)||void 0===e?void 0:e.document},Yp=Gt.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function Xp(e,t){var n=function(){var e=Gt.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=Gt.useContext(Yp).customizations,o=r.inCustomizerContext;return Gt.useEffect((function(){return o||ad.observe(n),function(){o||ad.unobserve(n)}}),[o]),ad.getSettings(e,t,r)}var Qp,Zp={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Qp||(Qp={}));var Jp,$p,eh,th,nh,rh={elevation4:Qp.depth4,elevation8:Qp.depth8,elevation16:Qp.depth16,elevation64:Qp.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(Jp||(Jp={})),function(e){e.Arabic="'".concat(Jp.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(Jp.Cyrillic,"'"),e.EastEuropean="'".concat(Jp.EastEuropean,"'"),e.Greek="'".concat(Jp.Greek,"'"),e.Hebrew="'".concat(Jp.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(Jp.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(Jp.Vietnamese,"'"),e.WestEuropean="'".concat(Jp.WestEuropean,"'"),e.Armenian="'".concat(Jp.Armenian,"'"),e.Georgian="'".concat(Jp.Georgian,"'")}($p||($p={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(eh||(eh={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(th||(th={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(nh||(nh={}));var oh="'Segoe UI', '".concat(Jp.WestEuropean,"'"),ih={ar:$p.Arabic,bg:$p.Cyrillic,cs:$p.EastEuropean,el:$p.Greek,et:$p.EastEuropean,he:$p.Hebrew,hi:$p.Hindi,hr:$p.EastEuropean,hu:$p.EastEuropean,ja:$p.Japanese,kk:$p.EastEuropean,ko:$p.Korean,lt:$p.EastEuropean,lv:$p.EastEuropean,pl:$p.EastEuropean,ru:$p.Cyrillic,sk:$p.EastEuropean,"sr-latn":$p.EastEuropean,th:$p.Thai,tr:$p.EastEuropean,uk:$p.Cyrillic,vi:$p.Vietnamese,"zh-hans":$p.ChineseSimplified,"zh-hant":$p.ChineseTraditional,hy:$p.Armenian,ka:$p.Georgian};function ah(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var sh=function(e){var t=function(e){for(var t in ih)if(ih.hasOwnProperty(t)&&e&&0===t.indexOf(e))return ih[t];return oh}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:ah(eh.mini,th.regular,n),xSmall:ah(eh.xSmall,th.regular,n),small:ah(eh.small,th.regular,n),smallPlus:ah(eh.smallPlus,th.regular,n),medium:ah(eh.medium,th.regular,n),mediumPlus:ah(eh.mediumPlus,th.regular,n),large:ah(eh.large,th.regular,n),xLarge:ah(eh.xLarge,th.semibold,n),xLargePlus:ah(eh.xLargePlus,th.semibold,n),xxLarge:ah(eh.xxLarge,th.semibold,n),xxLargePlus:ah(eh.xxLargePlus,th.semibold,n),superLarge:ah(eh.superLarge,th.semibold,n),mega:ah(eh.mega,th.semibold,n)}}(lc());function lh(e,t,n,r){Zl({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function ch(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);lh(t,i+"-light",th.light,o&&o+" Light"),lh(t,i+"-semilight",th.semilight,o&&o+" SemiLight"),lh(t,i+"-regular",th.regular,o),lh(t,i+"-semibold",th.semibold,o&&o+" SemiBold"),lh(t,i+"-bold",th.bold,o&&o+" Bold")}function uh(t,n,r,o,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(dh(t,n,(0,e.__assign)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},r),o),i)}function dh(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,m=s.themeLighter,f=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,C=s.neutralPrimary,S=s.neutralSecondary,x=s.neutralSecondaryAlt,_=s.neutralTertiary,E=s.neutralTertiaryAlt,k=s.neutralLighterAlt,w=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),h&&(a.primaryButtonBackgroundHovered=h),m&&(a.inputPlaceholderBackgroundChecked=m),f&&(a.bodyBackgroundChecked=f,a.bodyFrameDivider=f,a.bodyDivider=f,a.variantBorder=f,a.buttonBackgroundCheckedHovered=f,a.buttonBackgroundPressed=f,a.listItemBackgroundChecked=f,a.listHeaderBackgroundPressed=f,a.menuItemBackgroundPressed=f,a.menuItemBackgroundChecked=f),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),_&&(a.disabledBodyText=_,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||_,a.buttonTextDisabled=_,a.inputIconDisabled=_,a.disabledText=_),C&&(a.bodyText=C,a.actionLink=C,a.buttonText=C,a.inputBorderHovered=C,a.inputText=C,a.listText=C,a.menuItemText=C),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),S&&(a.bodySubtext=S,a.focusBorder=S,a.inputBorder=S,a.smallInputBorder=S,a.inputPlaceholderText=S),x&&(a.buttonBorder=x),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),w&&(a.accentButtonBackground=w),(null===n||void 0===n?void 0:n.elevation4)&&(a.cardShadow=n.elevation4),!o&&(null===n||void 0===n?void 0:n.elevation8)?a.cardShadowHovered=n.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,e.__assign)((0,e.__assign)({},a),r)}function ph(e,t){var n,r,o;void 0===t&&(t={});var i=pc({},e,t,{semanticColors:dh(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=pc(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}!function(e){if(e){var t="".concat(e,"/fonts");ch(t,Jp.Thai,"leelawadeeui-thai","leelawadeeui"),ch(t,Jp.Arabic,"segoeui-arabic"),ch(t,Jp.Cyrillic,"segoeui-cyrillic"),ch(t,Jp.EastEuropean,"segoeui-easteuropean"),ch(t,Jp.Greek,"segoeui-greek"),ch(t,Jp.Hebrew,"segoeui-hebrew"),ch(t,Jp.Vietnamese,"segoeui-vietnamese"),ch(t,Jp.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),ch(t,$p.Selawik,"selawik","selawik"),ch(t,Jp.Armenian,"segoeui-armenian"),ch(t,Jp.Georgian,"segoeui-georgian"),lh("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),th.light),lh("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),th.semibold)}}(function(){var e,t,n=null===(e=ic())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var hh={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function mh(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return ph({palette:Zp,effects:rh,fonts:sh,spacing:hh,isInverted:n,disableGlobalClassNames:!1,semanticColors:uh(Zp,rh,void 0,n,t),rtl:void 0},e)}var fh=Gt.createContext(void 0);var gh=function(){var e=(0,Gt.useContext)(fh),t=Xp(["theme"]).theme;return e||t||mh({})},vh=ic()||{};void 0===vh.__currentId__&&(vh.__currentId__=0);var yh=!1;function bh(e){if(!yh){var t=xl.getInstance();t&&t.onReset&&t.onReset(Ch),yh=!0}return(void 0===e?"id__":e)+vh.__currentId__++}function Ch(e){void 0===e&&(e=0),vh.__currentId__=e}var Sh=0,xh={reset:function(){xl.getInstance().onReset((function(){return Sh++}))},getId:function(){return Sh},renderStyles:function(e,t){return Gd(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return Zl(e)},renderKeyframes:function(e){return Cc(e)}};var _h=function(e){var t=new Map,n=new Set,r=function e(r){var o=r.currentTarget,i=o.__id__;t.delete(i),o.removeEventListener("unload",e),n.delete(i)};return function(o){void 0===o&&(o={});var i,a=o.theme,s=qp();s&&(s.__id__=s.__id__||bh(),i=s.__id__,n.has(i)||(n.add(i),s.addEventListener("unload",r)));var l=gh();a=a||l;var c=xh.getId(),u=[i,c,a],d=function(e,t){var n,r,o,i=t[0],a=t[1],s=t[2];return null===(o=null===(r=null===(n=e.get(i))||void 0===n?void 0:n.get(a))||void 0===r?void 0:r.get(s))||void 0===o?void 0:o.classMap}(t,u);if((0,Gt.useEffect)((function(){return function(e,t){var n,r,o=t[0],i=t[1],a=t[2],s=null===(r=null===(n=e.get(o))||void 0===n?void 0:n.get(i))||void 0===r?void 0:r.get(a);s&&s.refCount++}(t,[i,c,a]),function(){return function(e,t){var n,r,o,i,a,s,l,c,u=t[0],d=t[1],p=t[2],h=null===(r=null===(n=e.get(u))||void 0===n?void 0:n.get(d))||void 0===r?void 0:r.get(p);h&&(h.refCount--,0===h.refCount&&(null===(i=null===(o=e.get(u))||void 0===o?void 0:o.get(d))||void 0===i||i.delete(p),0===(null===(s=null===(a=e.get(u))||void 0===a?void 0:a.get(d))||void 0===s?void 0:s.size)&&(null===(l=e.get(u))||void 0===l||l.delete(d),0===(null===(c=e.get(u))||void 0===c?void 0:c.size)&&e.delete(u))))}(t,[i,c,a])}}),[i,c,a]),!d){var p=function(e){return"function"===typeof e}(e)?e(a):e;d=xh.renderStyles(p,{targetWindow:s,rtl:!!a.rtl}),function(e,t,n){var r,o,i=t[0],a=t[1],s=t[2],l=null!==(r=e.get(i))&&void 0!==r?r:new Map;e.set(i,l);var c=null!==(o=l.get(a))&&void 0!==o?o:new Map;l.set(a,c),c.set(s,{classMap:n,refCount:0})}(t,u,d)}return d}}((function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}}));function Eh(e){var t=_h(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,o=null===(n=Kp())||void 0===n?void 0:n.body;Gt.useEffect((function(){if(r&&o){for(var e=0,n=t;e<n.length;e++){var i=n[e];i&&o.classList.add(i)}return function(){if(r&&o)for(var e=0,n=t;e<n.length;e++){var i=n[e];i&&o.classList.remove(i)}}}}),[r,o,t])}(e,[t.root,t.body]),e.className=Gp(n,t.root,"element"===r&&t.body)}var kh=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},wh=kh(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Ih=kh(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ph=kh(Ih,wh),Th=kh(Ph,["form"]),Dh=kh(Ph,["height","loop","muted","preload","src","width"]),Ah=kh(Dh,["poster"]),Rh=kh(Ph,["start"]),Nh=kh(Ph,["value"]),Mh=kh(Ph,["download","href","hrefLang","media","rel","target","type"]),Fh=kh(Ph,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Bh=kh(Fh,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Oh=kh(Fh,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Lh=kh(Fh,["form","multiple","required"]),Hh=kh(Ph,["selected","value"]),Vh=kh(Ph,["cellPadding","cellSpacing"]),zh=Ph,Uh=kh(Ph,["rowSpan","scope"]),Wh=kh(Ph,["colSpan","headers","rowSpan","scope"]),Gh=kh(Ph,["span"]),jh=kh(Ph,["span"]),qh=kh(Ph,["acceptCharset","action","encType","encType","method","noValidate","target"]),Kh=kh(Ph,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Yh=kh(Ph,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Xh=Ph;function Qh(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}var Zh,Jh={label:Th,audio:Dh,video:Ah,ol:Rh,li:Nh,a:Mh,button:Fh,input:Bh,textarea:Oh,select:Lh,option:Hh,table:Vh,tr:zh,th:Uh,td:Wh,colGroup:Gh,col:jh,form:qh,iframe:Kh,img:Yh};function $h(e,t,n){return Qh(t,e&&Jh[e]||Ph,n)}function em(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function tm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nm.apply(this,[null,e].concat(t))}function nm(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var rm=((Zh={})[kp]=1,Zh[Ip]=1,Zh[Ep]=1,Zh[wp]=1,Zh[_p]=1,Zh[xp]=1,Zh[fp]=1,Zh[Cp]=1,Zh[Sp]=1,Zh);function om(e){return!!rm[e]}var im=new WeakMap,am=new WeakMap;function sm(e,t){var n,r=im.get(e);return n=r?r+t:1,im.set(e,n),n}function lm(e){var t=am.get(e);if(t)return t;return t={onMouseDown:function(t){return pm(t,e.registeredProviders)},onPointerDown:function(t){return hm(t,e.registeredProviders)},onKeyDown:function(t){return mm(t,e.registeredProviders)},onKeyUp:function(t){return fm(t,e.registeredProviders)}},am.set(e,t),t}var cm=Gt.createContext(void 0);function um(e){var t=Gt.useContext(cm);Gt.useEffect((function(){var n,r,o,i,a=ic(null===e||void 0===e?void 0:e.current);if(a&&!0!==(null===(n=a.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var s,l,c,u,d=a;if((null===(r=null===t||void 0===t?void 0:t.providerRef)||void 0===r?void 0:r.current)&&(null===(i=null===(o=null===t||void 0===t?void 0:t.providerRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.addEventListener)){d=t.providerRef.current;var p=lm(t);s=p.onMouseDown,l=p.onPointerDown,c=p.onKeyDown,u=p.onKeyUp}else s=pm,l=hm,c=mm,u=fm;var h=sm(d,1);return h<=1&&(d.addEventListener("mousedown",s,!0),d.addEventListener("pointerdown",l,!0),d.addEventListener("keydown",c,!0),d.addEventListener("keyup",u,!0)),function(){var e;a&&!0!==(null===(e=a.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(h=sm(d,-1))&&(d.removeEventListener("mousedown",s,!0),d.removeEventListener("pointerdown",l,!0),d.removeEventListener("keydown",c,!0),d.removeEventListener("keyup",u,!0))}}}),[t,e])}var dm=function(e){return um(e.rootRef),null};function pm(e,t){Bu(!1,e.target,t)}function hm(e,t){"mouse"!==e.pointerType&&Bu(!1,e.target,t)}function mm(e,t){om(e.which)&&Bu(!0,e.target,t)}function fm(e,t){om(e.which)&&Bu(!0,e.target,t)}var gm=function(e){var t=e.providerRef,n=e.layerRoot,r=Gt.useState([])[0],o=Gt.useContext(cm),i=void 0!==o&&!n,a=Gt.useMemo((function(){return i?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null===o||void 0===o||o.registerProvider(e)},unregisterProvider:function(e){null===o||void 0===o||o.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,o,i]);return Gt.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?Gt.createElement(cm.Provider,{value:a},e.children):Gt.createElement(Gt.Fragment,null,e.children)},vm=function(t){var n=t.customizerContext,r=t.ref,o=t.theme,i=t.as||"div",a="string"===typeof t.as?$h(t.as,t):t.as===Gt.Fragment?{children:t.children}:function(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(t,["as"]);return Gt.createElement(fh.Provider,{value:o},Gt.createElement(Yp.Provider,{value:n},Gt.createElement(gm,{providerRef:r},Gt.createElement(i,(0,e.__assign)({},a)))))},ym=new Map,bm=function(e){var t=e.theme,n=gh(),r=e.theme=Gt.useMemo((function(){var e=ph(n,t);return e.id=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i){var a=i.id||ym.get(i);a||(a=bh(""),ym.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=Gt.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}}),[r]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")};function Cm(t,n){for(var r=(0,e.__assign)({},n),o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];void 0===r[a]&&(r[a]=t[a])}return r}function Sm(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Gt.useCallback((function(e){r.current=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];"function"===typeof i?i(e):i&&(i.current=e)}}),(0,e.__spreadArray)([],t,!0));return r}var xm=Gt.forwardRef((function(e,t){var n=function(e,t){var n=Cm(t,e);return bm(n),{state:n,render:vm}}(e,{ref:Sm(t,Gt.useRef(null)),as:"div",applyTo:"element"}),r=n.render,o=n.state;return Eh(o),r(o)}));function _m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(n),!0).forEach((function(t){_m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}xm.displayName="ThemeProvider";var wm,Im={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(wm||(wm={}));var Pm,Tm={elevation4:wm.depth4,elevation8:wm.depth8,elevation16:wm.depth16,elevation64:wm.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function Dm(){return void 0===Pm&&(Pm="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Pm}function Am(){return{rtl:Dm()}}Pm=Dm();var Rm,Nm=0,Mm=1,Fm=2,Bm="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),Om={};try{Om=window||{}}catch(Il){}var Lm,Hm=function(){function t(t,n){var r,o,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?Nm:Mm,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(r=null===n||void 0===n?void 0:n.classNameToArgs)&&void 0!==r?r:this._classNameToArgs,this._counter=null!==(o=null===n||void 0===n?void 0:n.counter)&&void 0!==o?o:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===n||void 0===n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null===n||void 0===n?void 0:n.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===n||void 0===n?void 0:n.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(Rm=Om.__stylesheet__)||Rm._lastStyleElement&&Rm._lastStyleElement.ownerDocument!==document){var e=(null===Om||void 0===Om?void 0:Om.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);Rm=n,Om.__stylesheet__=n}return Rm},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,e.__assign)((0,e.__assign)({},this._config),t)},t.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},t.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},t.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},t.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},t.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},t.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},t.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==Nm?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case Mm:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(eDe){}break;case Fm:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},t.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),Bm||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},t.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},t}(),Vm={};function zm(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=Vm[n]=Vm[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var Um={"user-select":1};function Wm(e,t){var n=function(){var e;if(!Lm){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,r=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();Lm=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Lm}(),r=e[t];if(Um[r]){var o=e[t+1];Um[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var Gm,jm=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function qm(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=jm.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var Km="left",Ym="right",Xm=((Gm={}).left=Ym,Gm.right=Km,Gm),Qm={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Zm(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(Km)>=0)t[n]=r.replace(Km,Ym);else if(r.indexOf(Ym)>=0)t[n]=r.replace(Ym,Km);else if(String(o).indexOf(Km)>=0)t[n+1]=o.replace(Km,Ym);else if(String(o).indexOf(Ym)>=0)t[n+1]=o.replace(Ym,Km);else if(Xm[r])t[n]=Xm[r];else if(Qm[o])t[n+1]=Qm[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}var Jm,$m,ef,tf,nf;function rf(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&"displayName"!==r&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)zm(n,o),qm(n,o),Zm(e,n,o),Wm(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(Jm||(Jm={})),function(e){e.Arabic="'"+Jm.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+Jm.Cyrillic+"'",e.EastEuropean="'"+Jm.EastEuropean+"'",e.Greek="'"+Jm.Greek+"'",e.Hebrew="'"+Jm.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+Jm.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+Jm.Vietnamese+"'",e.WestEuropean="'"+Jm.WestEuropean+"'",e.Armenian="'"+Jm.Armenian+"'",e.Georgian="'"+Jm.Georgian+"'"}($m||($m={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(ef||(ef={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(tf||(tf={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(nf||(nf={}));var of="'Segoe UI', '"+Jm.WestEuropean+"'",af={ar:$m.Arabic,bg:$m.Cyrillic,cs:$m.EastEuropean,el:$m.Greek,et:$m.EastEuropean,he:$m.Hebrew,hi:$m.Hindi,hr:$m.EastEuropean,hu:$m.EastEuropean,ja:$m.Japanese,kk:$m.EastEuropean,ko:$m.Korean,lt:$m.EastEuropean,lv:$m.EastEuropean,pl:$m.EastEuropean,ru:$m.Cyrillic,sk:$m.EastEuropean,"sr-latn":$m.EastEuropean,th:$m.Thai,tr:$m.EastEuropean,uk:$m.Cyrillic,vi:$m.Vietnamese,"zh-hans":$m.ChineseSimplified,"zh-hant":$m.ChineseTraditional,hy:$m.Armenian,ka:$m.Georgian};function sf(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function lf(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var cf,uf=void 0;try{uf=window}catch(eDe){}function df(e){if(lf()&&"undefined"!==typeof uf){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:uf}}var pf="language";var hf=function(e){var t=function(e){for(var t in af)if(af.hasOwnProperty(t)&&e&&0===t.indexOf(e))return af[t];return of}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:sf(ef.mini,tf.regular,t),xSmall:sf(ef.xSmall,tf.regular,t),small:sf(ef.small,tf.regular,t),smallPlus:sf(ef.smallPlus,tf.regular,t),medium:sf(ef.medium,tf.regular,t),mediumPlus:sf(ef.mediumPlus,tf.regular,t),large:sf(ef.large,tf.regular,t),xLarge:sf(ef.xLarge,tf.semibold,t),xLargePlus:sf(ef.xLargePlus,tf.semibold,t),xxLarge:sf(ef.xxLarge,tf.semibold,t),xxLargePlus:sf(ef.xxLargePlus,tf.semibold,t),superLarge:sf(ef.superLarge,tf.semibold,t),mega:sf(ef.mega,tf.semibold,t)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===cf){var t=function(e){if(lf()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}(),n="localStorage"===e?function(e){var t=null;try{var n=df();t=n?n.localStorage.getItem(e):null}catch(eDe){}return t}(pf):"sessionStorage"===e?function(e){var t=null;try{var n=df();t=n?n.sessionStorage.getItem(e):null}catch(eDe){}return t}(pf):void 0;n&&(cf=n),void 0===cf&&t&&(cf=t.documentElement.getAttribute("lang")),void 0===cf&&(cf="en")}return cf}());function mf(e,t,n,r){!function(e){var t=Hm.getInstance(),n=rf(Am(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function ff(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;mf(t,i+"-light",tf.light,o&&o+" Light"),mf(t,i+"-semilight",tf.semilight,o&&o+" SemiLight"),mf(t,i+"-regular",tf.regular,o),mf(t,i+"-semibold",tf.semibold,o&&o+" SemiBold"),mf(t,i+"-bold",tf.bold,o&&o+" Bold")}function gf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];vf(e||{},i)}return e}function vf(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!==typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:vf(e[r]||{},o,n)}}return n.pop(),e}function yf(t,n,r,o,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(bf(t,n,(0,e.__assign)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},r),o),i)}function bf(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,m=s.themeLighter,f=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,C=s.neutralPrimary,S=s.neutralSecondary,x=s.neutralSecondaryAlt,_=s.neutralTertiary,E=s.neutralTertiaryAlt,k=s.neutralLighterAlt,w=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),h&&(a.primaryButtonBackgroundHovered=h),m&&(a.inputPlaceholderBackgroundChecked=m),f&&(a.bodyBackgroundChecked=f,a.bodyFrameDivider=f,a.bodyDivider=f,a.variantBorder=f,a.buttonBackgroundCheckedHovered=f,a.buttonBackgroundPressed=f,a.listItemBackgroundChecked=f,a.listHeaderBackgroundPressed=f,a.menuItemBackgroundPressed=f,a.menuItemBackgroundChecked=f),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),_&&(a.disabledBodyText=_,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||_,a.buttonTextDisabled=_,a.inputIconDisabled=_,a.disabledText=_),C&&(a.bodyText=C,a.actionLink=C,a.buttonText=C,a.inputBorderHovered=C,a.inputText=C,a.listText=C,a.menuItemText=C),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),S&&(a.bodySubtext=S,a.focusBorder=S,a.inputBorder=S,a.smallInputBorder=S,a.inputPlaceholderText=S),x&&(a.buttonBorder=x),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),w&&(a.accentButtonBackground=w),(null===n||void 0===n?void 0:n.elevation4)&&(a.cardShadow=n.elevation4),!o&&(null===n||void 0===n?void 0:n.elevation8)?a.cardShadowHovered=n.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,e.__assign)((0,e.__assign)({},a),r)}!function(e){if(e){var t=e+"/fonts";ff(t,Jm.Thai,"leelawadeeui-thai","leelawadeeui"),ff(t,Jm.Arabic,"segoeui-arabic"),ff(t,Jm.Cyrillic,"segoeui-cyrillic"),ff(t,Jm.EastEuropean,"segoeui-easteuropean"),ff(t,Jm.Greek,"segoeui-greek"),ff(t,Jm.Hebrew,"segoeui-hebrew"),ff(t,Jm.Vietnamese,"segoeui-vietnamese"),ff(t,Jm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),ff(t,$m.Selawik,"selawik","selawik"),ff(t,Jm.Armenian,"segoeui-armenian"),ff(t,Jm.Georgian,"segoeui-georgian"),mf("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",tf.light),mf("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",tf.semibold)}}(function(){var e,t,n=null===(e=df())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://static2.sharepointonline.com/files/fabric/assets"}());var Cf={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Sf(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=gf({},e,t,{semanticColors:bf(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=gf(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:Im,effects:Tm,fonts:hf,spacing:Cf,isInverted:n,disableGlobalClassNames:!1,semanticColors:yf(Im,Tm,void 0,n,t),rtl:void 0},e)}function xf(e){console&&console.warn&&console.warn(e)}var _f="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";var Ef={},kf=void 0;try{kf=window}catch(eDe){}function wf(e,t){if("undefined"!==typeof kf){var n=kf.__packages__=kf.__packages__||{};if(!n[e]||!Ef[e])Ef[e]=t,(n[e]=n[e]||[]).push(t)}}wf("@fluentui/set-version","6.0.0"),wf("@fluentui/style-utilities","8.7.12");var If=void 0;try{If=window}catch(eDe){}function Pf(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof If){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:If}}var Tf=0,Df=function(){function e(){}return e.getValue=function(e,t){var n=Af();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=Af(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=Rf();t||(t=e.__id__=String(Tf++)),n[t]=e},e.removeChangeListener=function(e){delete Rf()[e.__id__]},e}();function Af(){var e,t=Pf()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function Rf(){return Af().__callbacks__}var Nf={settings:{},scopedSettings:{},inCustomizerContext:!1},Mf=Df.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),Ff=[],Bf=function(){function t(){}return t.reset=function(){Mf.settings={},Mf.scopedSettings={}},t.applySettings=function(n){Mf.settings=(0,e.__assign)((0,e.__assign)({},Mf.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){Mf.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},Mf.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=Nf);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&Mf.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||Mf.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(Il){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){Ff.push(e)},t.unobserve=function(e){Ff=Ff.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||Ff.forEach((function(e){return e()}))},t}(),Of=Sf({}),Lf=[],Hf="theme";function Vf(){var t,n,r,o=Pf();(null===(n=null===o||void 0===o?void 0:o.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var r;void 0===n&&(n=!1);Of=Sf(t,n),pd((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},Of.palette),Of.semanticColors),Of.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),t[c]=u}return t}(Of))),Bf.applySettings(((r={}).theme=Of,r)),Lf.forEach((function(e){try{e(Of)}catch(eDe){}}))}(o.FabricConfig.legacyTheme):Bf.getSettings([Hf]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(Of=Sf(o.FabricConfig.theme)),Bf.applySettings(((t={}).theme=Of,t)))}Vf(),Vf();var zf,Uf=function(e){var t=e.theme;return{root:_m({border:"none"},_f,{border:"1px solid ".concat(null===t||void 0===t?void 0:t.semanticColors.buttonBorder)})}},Wf={paddingLeft:32,paddingRight:32},Gf={ActionButton:{styles:Uf},Button:{styles:function(e){return{root:{border:"none"}}}},Check:{styles:function(e){var t=e.checked,n=e.theme;return n||xf("Theme is undefined or null."),{root:[{cursor:"pointer",width:"16px",height:"16px","::before":{transition:"all ease-in-out 200ms",borderRadius:"3px",backgroundColor:"transparent",inset:0,height:"100%",width:"100%"}},t&&{":hover":{"::before":{backgroundColor:n.semanticColors.inputBackgroundCheckedHovered},'[data-icon-name="CircleRing"]':{borderColor:n.semanticColors.inputBackgroundCheckedHovered}},"::before":{backgroundColor:n.semanticColors.inputBackgroundChecked},'[data-icon-name="StatusCircleCheckmark"]':{opacity:1}}],check:[{fontSize:"18px",lineHeight:"16px",margin:"0",width:"16px",height:"16px",fontWeight:tf.regular,transition:"opacity ease-in-out 100ms",opacity:0,boxSizing:"border-box"},t&&{color:n.semanticColors.alwaysWhite}],circle:[{fontSize:0,width:"16px",height:"16px",borderRadius:2,borderColor:n.semanticColors.inputBorder,borderWidth:"1px",borderStyle:"solid",transition:"all ease-in-out 200ms",boxSizing:"border-box"},t&&{color:n.semanticColors.alwaysWhite,borderColor:n.semanticColors.inputBackgroundChecked}]}}},Checkbox:{styles:function(e){var t=e.theme,n=e.checked,r=e.disabled;t||xf("Theme is undefined or null.");var o=r?t.palette.neutralTertiaryAlt:n?t.palette.themePrimary:t.palette.neutralSecondaryAlt;return{checkbox:{border:"1px solid ".concat(o)},checkmark:["ms-Checkbox-checkmark",{color:t.semanticColors.inputForegroundChecked}]}}},ChoiceGroupOption:{styles:function(e){var t=e.theme,n=e.checked,r=e.disabled;return t||xf("Theme is undefined or null."),{field:{selectors:{":before":[{borderColor:r?t.semanticColors.disabledBodySubtext:t.palette.neutralPrimary},n&&{borderColor:r?t.semanticColors.disabledBodySubtext:t.semanticColors.inputBackgroundChecked}]}}}}},CommandBarButton:{styles:Uf},CompoundButton:{styles:Uf},DefaultButton:{styles:Uf},DetailsColumn:{styles:function(e){return{cellName:{fontSize:e.theme.fonts.small.fontSize}}}},DetailsRow:{styles:function(e){var t=e.theme;return{fields:{color:null===t||void 0===t?void 0:t.semanticColors.listText,selectors:{"& > :first-child":{fontWeight:tf.semibold}}}}}},DetailsRowCheck:{styles:function(){return{check:[{opacity:1}]}}},DialogFooter:{styles:function(e){return{action:{marginLeft:"0",marginRight:"16px"},actionsRight:{textAlign:"left"}}}},GroupHeader:{styles:function(){return{check:[{opacity:1}]}}},Overlay:{styles:function(e){var t=e.isDark,n=e.theme;return n||xf("Theme is undefined or null."),{root:[{backgroundColor:n.semanticColors.overlayBackground},t&&[{backgroundColor:n.semanticColors.overlayBackground}]]}}},Panel:{styles:function(e){var t=e.theme;return t||xf("Theme is undefined or null."),{main:[{boxShadow:t.effects.elevation64,background:t.semanticColors.panelBackground}],content:[Wf,{paddingBottom:32}],header:[Wf],footerInner:[Wf],closeButton:{color:t.semanticColors.menuIcon,selectors:{":hover":{color:t.semanticColors.menuIcon}}}}}},Pivot:{styles:function(e){var t=e.theme;return t||xf("M365Styles-Pivot error: Theme is undefined or null."),{link:[_m({":hover":{backgroundColor:t.semanticColors.dashboardBackdrop}},_f,{border:"none"})],linkIsSelected:[_m({":hover":{backgroundColor:t.semanticColors.dashboardBackdrop}},_f,{border:"none"})]}}},PrimaryButton:{styles:function(e){var t=e.theme;return t||xf("Theme is undefined or null."),{root:{color:t.semanticColors.primaryButtonText,border:"none"},rootHovered:{color:t.semanticColors.primaryButtonTextHovered,border:"none"},rootPressed:{color:t.semanticColors.primaryButtonTextPressed,border:"none"},rootChecked:{color:t.semanticColors.primaryButtonText}}}},SearchBox:{styles:function(e){return{root:{selectors:{"::after":{borderWidth:1}}}}}},Spinner:{styles:function(e){var t=e.theme;return t||xf("Theme is undefined or null."),{circle:{borderTopColor:t.palette.themeDarkAlt},label:{color:t.palette.themeDarkAlt}}}}};!function(e){e.themePrimary="#0078D4",e.themeLighterAlt="#F3F9FD",e.themeLighter="#D0E7F8",e.themeLight="#A9D3F2",e.themeTertiary="#5CA9E5",e.themeSecondary="#1A86D9",e.themeDarkAlt="#006CBE",e.themeDark="#005BA1",e.themeDarker="#004377",e.neutralLighterAlt="#F0F0F0",e.neutralLighter="#EDEDED",e.neutralLight="#E8E8E8",e.neutralQuaternaryAlt="#E1E1E1",e.neutralQuaternary="#D2D2D2",e.neutralTertiaryAlt="#C8C8C8",e.neutralTertiary="#A1A1A1",e.neutralSecondary="#484644",e.neutralPrimaryAlt="#8D8B8A",e.neutralPrimary="#323130",e.neutralDark="#605E5C",e.black="#000000",e.white="#FFFFFF",e.errorText="#990000",e.errorBackground="#FDE7E9",e.blockingBackground="#FDE7E9",e.warningBackground="#FFF4CE",e.warningHighlight="#FFB900",e.successBackground="#DFF6DD",e.severeWarningBackground="#FEE6DD",e.severeWarningIcon="#C53601",e.dashboardBackdrop="#DADADA",e.overlayBackground="rgba(0,0,0,.4)",e.navBackground="#E9E9E9",e.dataVis1="#0099BC",e.dataVis2="#77004D",e.dataVis3="#4F68ED",e.dataVis4="#AE8C00",e.dataVis5="#004E8C",e.dataVis6="#881798",e.dataVis7="#E43BA6",e.dataVis8="#0E7878",e.dataVis9="#8764b8",e.dataVis10="#814E29",e.criticalStatus="#610000",e.highStatus="#990000",e.mediumStatus="#E60000",e.lowStatus="#F56A00",e.goodStatus="#107C10",e.unknownStatus="#949494",e.insightLow="#768DF1",e.insightMedium="#4F6BED",e.insightHigh="#3B52B4",e.neutralRisk="#DADADA",e.needHelpBackground="#00838C",e.needHelpBackgroundPressed="#006B73",e.contextualAlertBackground="#5522E0",e.whiteTranslucent40="rgba(255,255,255,.4)",e.tagBackgroundLowImpact="#F3F2F1",e.tagBackgroundRecommendation="#D3F4ED",e.tagBackgroundInsight="#C7D3FF"}(zf||(zf={}));var jf=zf,qf={themePrimary:jf.themePrimary,themeLighterAlt:jf.themeLighterAlt,themeLighter:jf.themeLighter,themeLight:jf.themeLight,themeTertiary:jf.themeTertiary,themeSecondary:jf.themeSecondary,themeDarkAlt:jf.themeDarkAlt,themeDark:jf.themeDark,themeDarker:jf.themeDarker,neutralLighterAlt:jf.neutralLighterAlt,neutralLighter:jf.neutralLighter,neutralLight:jf.neutralLight,neutralQuaternaryAlt:jf.neutralQuaternaryAlt,neutralQuaternary:jf.neutralQuaternary,neutralTertiaryAlt:jf.neutralTertiaryAlt,neutralTertiary:jf.neutralTertiary,neutralSecondary:jf.neutralSecondary,neutralPrimaryAlt:jf.neutralPrimaryAlt,neutralPrimary:jf.neutralPrimary,neutralDark:jf.neutralDark,black:jf.black,white:jf.white},Kf={bodyTextChecked:jf.neutralDark,disabledSubtext:jf.neutralQuaternary,disabledBodySubtext:jf.neutralTertiaryAlt,primaryButtonTextDisabled:jf.neutralTertiary,bodyStandoutBackground:jf.neutralLighter,buttonBackground:jf.neutralLight,buttonBackgroundHovered:jf.neutralTertiaryAlt,buttonBackgroundPressed:jf.neutralTertiary,buttonTextHovered:jf.neutralPrimary,buttonTextChecked:jf.neutralSecondary,buttonTextPressed:jf.neutralPrimary,buttonTextDisabled:jf.neutralTertiary,menuHeader:jf.neutralPrimary,listItemBackgroundChecked:jf.neutralQuaternaryAlt,listItemBackgroundCheckedHovered:jf.neutralQuaternary,link:jf.themeDarkAlt,errorText:jf.errorText,warningHighlight:jf.warningHighlight,warningText:jf.neutralPrimary,messageText:jf.neutralPrimary,messageLink:jf.themeDarkAlt,messageLinkHovered:jf.themeDarker,infoIcon:jf.neutralSecondary,errorIcon:jf.highStatus,blockingIcon:jf.highStatus,successIcon:jf.goodStatus,warningIcon:jf.neutralPrimary,severeWarningIcon:jf.severeWarningIcon,infoBackground:jf.neutralLighter,errorBackground:jf.errorBackground,blockingBackground:jf.blockingBackground,warningBackground:jf.warningBackground,severeWarningBackground:jf.severeWarningBackground,successBackground:jf.successBackground,dashboardBackdrop:jf.dashboardBackdrop,actionCardDashboardBorder:"transparent",actionCardDashboardBorderHovered:"transparent",gridItemDestinationBackground:jf.neutralQuaternary,panelBackground:jf.white,overlayBackground:jf.overlayBackground,sectionDividerLine:jf.neutralPrimary,primaryDividerLine:jf.neutralTertiaryAlt,secondaryDividerLine:jf.neutralQuaternaryAlt,dataVis1:jf.dataVis1,dataVis2:jf.dataVis2,dataVis3:jf.dataVis3,dataVis4:jf.dataVis4,dataVis5:jf.dataVis5,dataVis6:jf.dataVis6,dataVis7:jf.dataVis7,dataVis8:jf.dataVis8,dataVis9:jf.dataVis9,dataVis10:jf.dataVis10,headerText:jf.black,secondaryListText:jf.neutralSecondary,navBackground:jf.navBackground,navItemBackgroundHovered:jf.neutralQuaternary,navItemBackgroundPressed:jf.neutralTertiaryAlt,criticalStatus:jf.criticalStatus,highStatus:jf.highStatus,mediumStatus:jf.mediumStatus,lowStatus:jf.lowStatus,goodStatus:jf.goodStatus,unknownStatus:jf.unknownStatus,insightLow:jf.insightLow,insightMedium:jf.insightMedium,insightHigh:jf.insightHigh,neutralRisk:jf.neutralRisk,stepCompleted:jf.themePrimary,stepCurrent:jf.themePrimary,stepNotStarted:jf.unknownStatus,stepModifierBorder:jf.themePrimary,stepHover:jf.themeDark,stepPressed:jf.themeDarker,stepError:jf.highStatus,allStepsComplete:jf.goodStatus,contextualAlertBackground:jf.contextualAlertBackground,needHelpForeground:jf.white,needHelpBackground:jf.needHelpBackground,needHelpBackgroundPressed:jf.needHelpBackgroundPressed,feedbackForeground:jf.white,feedbackBackground:jf.neutralDark,feedbackBackgroundPressed:jf.neutralSecondary,alwaysWhite:jf.white,alwaysBlack:jf.black,filterPillRest:jf.neutralLighterAlt,filterPillHover:jf.neutralLight,filterPillPressed:jf.neutralQuaternary,filterPillEditedRest:jf.themeLighter,filterPillEditedHover:jf.themeLight,filterPillEditedPressed:jf.themeTertiary,tagBackgroundInsight:jf.tagBackgroundInsight,tagBackgroundLowImpact:jf.tagBackgroundLowImpact,tagBackgroundMediumImpact:jf.neutralTertiaryAlt,tagBackgroundHighImpact:jf.neutralPrimary,tagBackgroundNew:jf.themePrimary,tagBackgroundActiveWarning:jf.highStatus,tagBackgroundRecommendation:jf.tagBackgroundRecommendation,tagTextInsight:jf.neutralPrimary,tagTextLowImpact:jf.neutralPrimary,tagTextMediumImpact:jf.neutralPrimary,tagTextHighImpact:jf.white,tagTextNew:jf.white,tagTextActiveWarning:jf.white},Yf=(Sf({palette:km({},zf),semanticColors:Kf}),Sf({palette:qf,semanticColors:Kf,components:Gf})),Xf={themePrimary:"#006fc9",themeLighterAlt:"#f3f8fd",themeLighter:"#cfe5f6",themeLight:"#a7cfef",themeTertiary:"#59a3df",themeSecondary:"#197ed0",themeDarkAlt:"#0064b5",themeDark:"#005499",themeDarker:"#003e71",neutralLighterAlt:"#ececec",neutralLighter:"#e8e8e8",neutralLight:"#dedede",neutralQuaternary:"#c6c6c6",neutralQuaternaryAlt:"#cfcfcf",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#bebebe",neutralSecondary:"#605e5c",neutralPrimaryAlt:"#3b3a39",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#f2f2f2",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"},Qf={bodyBackground:Xf.white,navBackground:Xf.white,navItemBackgroundHovered:Xf.neutralLighter,navItemBackgroundPressed:Xf.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:Xf.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",buttonBackground:Xf.neutralHigh,cautionYellow:"#9D5D00"},Zf=wu(lc()||navigator.language),Jf={small:{font:"Segoe UI Variable Small, ".concat(Zf.medium.fontFamily)},medium:{font:"Segoe UI Variable Text, ".concat(Zf.medium.fontFamily)},large:{font:"Segoe UI Variable Display, ".concat(Zf.medium.fontFamily)}},$f={fontFamily:Jf.medium.font},eg={palette:Xf,semanticColors:Qf},tg={palette:Xf,semanticColors:(0,e.__assign)((0,e.__assign)({},Yf),Qf)},ng={palette:{themePrimary:"#a80000",neutralLight:"#f4cfc2",neutralDark:"#323130",neutralSecondary:"#323130",neutralTertiaryAlt:"#e9c4b7",themeDarkAlt:"#901619",themeDark:"#790C0E"},semanticColors:Qf,fonts:Jf},rg=["themePrimary","themeLighterAlt","themeLighter","themeLight","themeTertiary","themeSecondary","themeDarkAlt","themeDark","themeDarker","neutralLighterAlt","neutralLighter","neutralLight","neutralQuaternaryAlt","neutralTertiary","neutralTertiaryAlt","neutralSecondary","neutralPrimaryAlt","neutralPrimary","neutralDark","neutralMed","neutralHigh","transparent","black","white","redDark","redLight","highlighter"],og=((0,e.__spreadArray)([],rg,!0),{themePrimary:"#047769",themeLighterAlt:"#f0faf8",themeLighter:"#c5e9e5",themeLight:"#98d6cf",themeTertiary:"#49aea2",themeSecondary:"#14887b",themeDarkAlt:"#036c60",themeDark:"#035b51",themeDarker:"#02433c",neutralLighterAlt:"#ececec",neutralLighter:"#e8e8e8",neutralLight:"#dedede",neutralQuaternary:"#c6c6c6",neutralQuaternaryAlt:"#cfcfcf",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#bebebe",neutralSecondary:"#6e6e6e",neutralPrimaryAlt:"#3b3a39",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#f2f2f2",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"}),ig={bodyBackground:og.white,navBackground:og.white,navItemBackgroundHovered:og.neutralLighter,navItemBackgroundPressed:og.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:og.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",cautionYellow:"#9D5D00"},ag={palette:og,semanticColors:ig},sg=((0,e.__assign)((0,e.__assign)({},Yf),ig),(0,e.__spreadArray)([],rg,!0),{themePrimary:"#027063",themeLighterAlt:"#f0f9f8",themeLighter:"#c4e8e4",themeLight:"#96d4cd",themeTertiary:"#46a99e",themeSecondary:"#128174",themeDarkAlt:"#026559",themeDark:"#02554c",themeDarker:"#013f38",neutralLighterAlt:"#c0e2de",neutralLighter:"#bddeda",neutralLight:"#b5d5d1",neutralQuaternaryAlt:"#a9c6c3",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#9bb6b3",neutralSecondary:"#605e5c",neutralPrimaryAlt:"#3b3a39",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#c5e9e5",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"}),lg={AMC:eg,"AMC-on-red":ng,Family:ag,FamilyInsights:{palette:sg,semanticColors:{bodyBackground:sg.white,navBackground:sg.white,navItemBackgroundHovered:sg.neutralLighter,navItemBackgroundPressed:sg.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a8000",messageLink:og.themeDarkAlt,messageWebSuccess:"#107c10",cautionYellow:"#9D5D00"}},"Family-On-NeutralLighterAlt":{palette:(0,e.__assign)((0,e.__assign)({},ag.palette),{neutralMed:og.themeLighterAlt,white:"#ffffff"}),semanticColors:(0,e.__assign)((0,e.__assign)({},ig),{bodyBackground:og.themeLighterAlt})},XboxTheme:{palette:{themePrimary:"#107c10",themeDark:"#054B16",themeDarker:"#054B16",themeDarkAlt:"#054B16",neutralTertiary:Xf.neutralTertiary,transparent:"transparent"},semanticColors:Qf},"AMC-on-caution-yellow":{palette:{themePrimary:"#9D5D00",neutralLight:"#f4cfc2",neutralDark:"#323130",neutralSecondary:"#323130",neutralTertiaryAlt:"#e9c4b7",themeDarkAlt:"#704200",themeDark:"#472A00"},semanticColors:Qf,fonts:Jf}},cg=function(t){var n=t.variant,r=t.noRootElement,o=t.id,i=t.children,a=r?ug:void 0,s=(0,e.__assign)((0,e.__assign)({},lg[n]),{defaultFontStyle:$f,fonts:Jf}),l=Ai(),c=jt().createElement(xm,{id:o,theme:s,as:a},i);return(null===l||void 0===l?void 0:l.includes("Fluentv9Theming"))?jt().createElement(xm,{theme:Wp,as:a},c):c},ug=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){return this.props.children},n}(jt().Component),dg=function(){return gh()},pg=e.__assign;function hg(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t;return i.isSlot?0===(r=Gt.Children.toArray(r)).length?i(n):i((0,e.__assign)((0,e.__assign)({},n),{children:r})):Gt.createElement.apply(Gt,(0,e.__spreadArray)([t,n],r,!1))}function mg(t,n){void 0===n&&(n={});var r=n.defaultProp,o=void 0===r?"children":r;return function(n,r,i,a,s){if(Gt.isValidElement(r))return r;var l=function(e,t){var n,r;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((n={})[e]=t,r=n):r=t;return r}(o,r),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),pg(o,l)}return o.className=bc([e,i],{rtl:Dp(t)}),o}(a,s,n,l);if(i){if(i.component){var u=i.component;return Gt.createElement(u,(0,e.__assign)({},c))}if(i.render)return i.render(c,t)}return Gt.createElement(t,(0,e.__assign)({},c))}}var fg=Ku((function(e){return mg(e)}));function gg(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return vg(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function vg(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):fg(e)(t,n,r,o,i)}function yg(t,n){void 0===n&&(n={});var r=n.factoryOptions,o=(void 0===r?{}:r).defaultProp,i=function(r){var o=function(e,t,n){var r=["theme","styles","tokens"];return ad.getSettings(n||r,e,t.customizations)}(n.displayName,Gt.useContext(Yp),n.fields),i=n.state;i&&(r=(0,e.__assign)((0,e.__assign)({},r),i(r)));var a=r.theme||o.theme,s=bg(r,a,n.tokens,o.tokens,r.tokens),l=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return zd.apply(void 0,r.map((function(r){return"function"===typeof r?r(e,t,n):r})))}(r,a,s,n.styles,o.styles,r.styles),c=(0,e.__assign)((0,e.__assign)({},r),{styles:l,tokens:s,_defaultStyles:l,theme:a});return t(c)};return i.displayName=n.displayName||t.name,o&&(i.create=mg(i,{defaultProp:o})),pg(i,n.statics),i}function bg(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];for(var i={},a=0,s=r;a<s.length;a++){var l=s[a];l&&(l="function"===typeof l?l(t,n):l,Array.isArray(l)&&(l=bg.apply(void 0,(0,e.__spreadArray)([t,n],l,!1))),pg(i,l))}return i}var Cg={root:"ms-StackItem"},Sg={start:"flex-start",end:"flex-end"},xg=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},_g=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},Eg=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?xg(e,t):n.reduce((function(e,n){return xg(e,t)+" "+xg(n,t)}))},kg={start:"flex-start",end:"flex-end"},wg={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},Ig=yg((function(t){var n=t.children,r=Qh(t,Ph);return null==n?null:hg(gg(t,{root:"div"}).root,(0,e.__assign)({},r),n)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=e.basis,d=void 0===u?"auto":u,p=Ju(Cg,t);return{root:[t.fonts.medium,p.root,{flexBasis:d,margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(i||!r&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:Sg[a]||a},l&&{order:l},c]}}});function Pg(t,n){var r=n.disableShrink,o=n.enableScopedSelectors,i=n.doNotRenderFalsyValues,a=Gt.Children.toArray(t);return a=Gt.Children.map(a,(function(t){if(!t)return i?null:t;if(!Gt.isValidElement(t))return t;if(t.type===Gt.Fragment)return t.props.children?Pg(t.props.children,{disableShrink:r,enableScopedSelectors:o,doNotRenderFalsyValues:i}):null;var n,a=t,s={};(n=t)&&"object"===typeof n&&n.type&&n.type.displayName===Ig.displayName&&(s={shrink:!r});var l=a.props.className;return Gt.cloneElement(a,(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},s),a.props),l&&{className:l}),o&&{className:Gp(wg.child,l)}))}))}var Tg=yg((function(t){var n=t.as,r=void 0===n?"div":n,o=t.disableShrink,i=void 0!==o&&o,a=t.doNotRenderFalsyValues,s=void 0!==a&&a,l=t.enableScopedSelectors,c=void 0!==l&&l,u=t.wrap,d=(0,e.__rest)(t,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),p=Pg(t.children,{disableShrink:i,enableScopedSelectors:c,doNotRenderFalsyValues:s}),h=Qh(d,Ph),m=gg(t,{root:r,inner:"div"});return hg(m.root,(0,e.__assign)({},h),u?hg(m.inner,null,p):p)}),{displayName:"Stack",styles:function(t,n,r){var o,i,a,s,l,c,u,d,p,h,m,f,g,v=t.className,y=t.disableShrink,b=t.enableScopedSelectors,C=t.grow,S=t.horizontal,x=t.horizontalAlign,_=t.reversed,E=t.verticalAlign,k=t.verticalFill,w=t.wrap,I=Ju(wg,n),P=r&&r.childrenGap?r.childrenGap:t.gap,T=r&&r.maxHeight?r.maxHeight:t.maxHeight,D=r&&r.maxWidth?r.maxWidth:t.maxWidth,A=r&&r.padding?r.padding:t.padding,R=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"===typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:_g(xg(n[0],t)),columnGap:_g(xg(n[1],t))};var r=_g(xg(e,t));return{rowGap:r,columnGap:r}}(P,n),N=R.rowGap,M=R.columnGap,F="".concat(-.5*M.value).concat(M.unit),B="".concat(-.5*N.value).concat(N.unit),O={textOverflow:"ellipsis"},L="> "+(b?"."+wg.child:"*"),H=((o={})["".concat(L,":not(.").concat(Cg.root,")")]={flexShrink:0},o);return w?{root:[I.root,{flexWrap:"wrap",maxWidth:D,maxHeight:T,width:"auto",overflow:"visible",height:"100%"},x&&(i={},i[S?"justifyContent":"alignItems"]=kg[x]||x,i),E&&(a={},a[S?"alignItems":"justifyContent"]=kg[E]||E,a),v,{display:"flex"},S&&{height:k?"100%":"auto"}],inner:[I.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:F,marginRight:F,marginTop:B,marginBottom:B,overflow:"visible",boxSizing:"border-box",padding:Eg(A,n),width:0===M.value?"100%":"calc(100% + ".concat(M.value).concat(M.unit,")"),maxWidth:"100vw"},s[L]=(0,e.__assign)({margin:"".concat(.5*N.value).concat(N.unit," ").concat(.5*M.value).concat(M.unit)},O),s),y&&H,x&&(l={},l[S?"justifyContent":"alignItems"]=kg[x]||x,l),E&&(c={},c[S?"alignItems":"justifyContent"]=kg[E]||E,c),S&&(u={flexDirection:_?"row-reverse":"row",height:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")")},u[L]={maxWidth:0===M.value?"100%":"calc(100% - ".concat(M.value).concat(M.unit,")")},u),!S&&(d={flexDirection:_?"column-reverse":"column",height:"calc(100% + ".concat(N.value).concat(N.unit,")")},d[L]={maxHeight:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},d)]}:{root:[I.root,(p={display:"flex",flexDirection:S?_?"row-reverse":"row":_?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:k?"100%":"auto",maxWidth:D,maxHeight:T,padding:Eg(A,n),boxSizing:"border-box"},p[L]=O,p),y&&H,C&&{flexGrow:!0===C?1:C},x&&(h={},h[S?"justifyContent":"alignItems"]=kg[x]||x,h),E&&(m={},m[S?"alignItems":"justifyContent"]=kg[E]||E,m),S&&M.value>0&&(f={},f["".concat(L,_?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(M.value).concat(M.unit)},f),!S&&N.value>0&&(g={},g["".concat(L,_?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(N.value).concat(N.unit)},g),v]}},statics:{Item:Ig}}),Dg=function(e,t){if(void 0!==t){var n=[];t.forEach((function(e){var t=e();t&&n.push(t)})),0!==n.length&&Ag(e,n.join(", "),n.length)}},Ag=function(e,t,n){Ni(e,t,n)},Rg=["theme","styles"];function Ng(t,n,r,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,l=void 0===s?Rg:s,c=Gt.forwardRef((function(o,i){var s=Gt.useRef(),c=Xp(l,a),u=c.styles,d=(c.dir,(0,e.__rest)(c,["styles","dir"])),p=r?r(o):void 0,h=s.current&&s.current.__cachedInputs__||[],m=o.styles;if(!s.current||u!==h[1]||m!==h[2]){var f=function(e){return Ud(e,n,u,m)};f.__cachedInputs__=[n,u,m],f.__noStyleOverride__=!u&&!m,s.current=f}return Gt.createElement(t,(0,e.__assign)({ref:i},d,p,o,{styles:s.current}))}));c.displayName="Styled".concat(t.displayName||t.name);var u=i?Gt.memo(c):c;return c.displayName&&(u.displayName=c.displayName),u}var Mg={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},Fg="100%",Bg=Ku((function(){return Cc({"0%":{transform:"translateX(-".concat(Fg,")")},"100%":{transform:"translateX(".concat(Fg,")")}})})),Og=Ku((function(){return Cc({"100%":{transform:"translateX(-".concat(Fg,")")},"0%":{transform:"translateX(".concat(Fg,")")}})}));var Lg=0,Hg=xl.getInstance();Hg&&Hg.onReset&&Hg.onReset((function(){return Lg++}));var Vg="__retval__";function zg(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=Lg;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var l=t,c=a.theme,u=c&&void 0!==c.rtl?c.rtl:Dp(),d=e.disableCaching;if(o!==Lg&&(o=Lg,t=new Map,n=0),e.disableCaching||(l=Wg(t,i),l=Wg(l,a)),!d&&l[Vg]||(l[Vg]=void 0===i?{}:Gd(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=ic();(null===(s=null===p||void 0===p?void 0:p.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return l[Vg]}}function Ug(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Wg(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=Ug(e,r[n])}else e=Ug(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=Ug(e,t[o]));return e}var Gg,jg,qg=function(t){function n(e){var n=t.call(this,e)||this;return n.state={isRendered:void 0===ic()},n}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},n.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},n.prototype.render=function(){return this.state.isRendered?Gt.Children.only(this.props.children):null},n.defaultProps={delay:0},n}(Gt.Component);!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(Gg||(Gg={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(jg||(jg={}));var Kg=zg(),Yg={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var Xg=Ng((function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"100%":r,i=e.borderStyle,a=e.theme,s=Kg(n,{theme:a,height:t,borderStyle:i});return Gt.createElement("div",{style:{width:o,minWidth:"number"===typeof o?"".concat(o,"px"):"auto"},className:s.root},Gt.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},Gt.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),Gt.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},Gt.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),Gt.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},Gt.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),Gt.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},Gt.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=Ju(Yg,o),s=r||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,o.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[Iu]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),Qg=zg(),Zg={root:"ms-ShimmerGap-root"};var Jg=Ng((function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"10px":r,i=e.borderStyle,a=e.theme,s=Qg(n,{theme:a,height:t,borderStyle:i});return Gt.createElement("div",{style:{width:o,minWidth:"number"===typeof o?"".concat(o,"px"):"auto"},className:s.root})}),(function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,i=o.semanticColors,a=r||{};return{root:[Ju(Zg,o).root,o.fonts.medium,{backgroundColor:i.bodyBackground,height:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,selectors:(t={},t[Iu]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),$g={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var ev=zg(),tv=Ng((function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=e.theme,i=ev(n,{theme:o,height:t,borderStyle:r});return Gt.createElement("div",{className:i.root},Gt.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},Gt.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))}),(function(e){var t,n,r=e.height,o=e.borderStyle,i=e.theme,a=i.semanticColors,s=Ju($g,i),l=o||{};return{root:[s.root,i.fonts.medium,{width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[Iu]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[Iu]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),nv=zg();var rv=Ku((function(t,n,r,o,i){var a,s=i&&r?i-r:0;if(t&&"center"!==t?t&&"top"===t?a={borderBottomWidth:"".concat(s,"px"),borderTopWidth:"0px"}:t&&"bottom"===t&&(a={borderBottomWidth:"0px",borderTopWidth:"".concat(s,"px")}):a={borderBottomWidth:"".concat(s?Math.floor(s/2):0,"px"),borderTopWidth:"".concat(s?Math.ceil(s/2):0,"px")},o)switch(n){case Gg.circle:return{root:(0,e.__assign)((0,e.__assign)({},a),{borderColor:o}),svg:{fill:o}};case Gg.gap:return{root:(0,e.__assign)((0,e.__assign)({},a),{borderColor:o,backgroundColor:o})};case Gg.line:return{root:(0,e.__assign)((0,e.__assign)({},a),{borderColor:o}),topLeftCorner:{fill:o},topRightCorner:{fill:o},bottomLeftCorner:{fill:o},bottomRightCorner:{fill:o}}}return{root:a}}));var ov={root:"ms-ShimmerElementsGroup-root"};var iv=Ng((function(t){var n=t.styles,r=t.width,o=void 0===r?"auto":r,i=t.shimmerElements,a=t.rowHeight,s=void 0===a?function(e){return e.map((function(e){switch(e.type){case Gg.circle:e.height||(e.height=jg.circle);break;case Gg.line:e.height||(e.height=jg.line);break;case Gg.gap:e.height||(e.height=jg.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(i||[]):a,l=t.flexWrap,c=void 0!==l&&l,u=t.theme,d=t.backgroundColor,p=nv(n,{theme:u,flexWrap:c});return Gt.createElement("div",{style:{width:o},className:p.root},function(t,n,r){var o=t?t.map((function(t,o){var i=t.type,a=(0,e.__rest)(t,["type"]),s=a.verticalAlign,l=a.height,c=rv(s,i,l,n,r);switch(t.type){case Gg.circle:return Gt.createElement(tv,(0,e.__assign)({key:o},a,{styles:c}));case Gg.gap:return Gt.createElement(Jg,(0,e.__assign)({key:o},a,{styles:c}));case Gg.line:return Gt.createElement(Xg,(0,e.__assign)({key:o},a,{styles:c}))}})):Gt.createElement(Xg,{height:jg.line});return o}(i,d,s))}),(function(e){var t=e.flexWrap,n=e.theme;return{root:[Ju(ov,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"});function av(e){var t=Gt.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}var sv=function(){var e=av({});return Gt.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),av({setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n){var r=setTimeout(t,n);return e[r]=1,r})),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){delete e[t],clearTimeout(t)}))})},lv=zg(),cv=Gt.forwardRef((function(t,n){var r=t.styles,o=t.shimmerElements,i=t.children,a=t.width,s=t.className,l=t.customElementsGroup,c=t.theme,u=t.ariaLabel,d=t.shimmerColors,p=t.isDataLoaded,h=void 0!==p&&p,m=t.improveCSSPerformance,f=Qh(t,Xh),g=lv(r,{theme:c,isDataLoaded:h,className:s,transitionAnimationInterval:200,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave,improveCSSPerformance:m||!l}),v=av({lastTimeoutId:0}),y=sv(),b=y.setTimeout,C=y.clearTimeout,S=Gt.useState(h),x=S[0],_=S[1],E={width:a||"100%"};return Gt.useEffect((function(){if(h!==x){if(h)return v.lastTimeoutId=b((function(){_(!0)}),200),function(){return C(v.lastTimeoutId)};_(!1)}}),[h]),Gt.createElement("div",(0,e.__assign)({},f,{className:g.root,ref:n}),!x&&Gt.createElement("div",{style:E,className:g.shimmerWrapper},Gt.createElement("div",{className:g.shimmerGradient}),l||Gt.createElement(iv,{shimmerElements:o,backgroundColor:d&&d.background})),i&&Gt.createElement("div",{className:g.dataWrapper},i),u&&!h&&Gt.createElement("div",{role:"status","aria-live":"polite"},Gt.createElement(qg,null,Gt.createElement("div",{className:g.screenReaderText},u))))}));cv.displayName="Shimmer";var uv=Ng(cv,(function(t){var n,r=t.isDataLoaded,o=t.className,i=t.theme,a=t.transitionAnimationInterval,s=t.shimmerColor,l=t.shimmerWaveColor,c=t.improveCSSPerformance,u=i.semanticColors,d=Ju(Mg,i),p=Dp(i);return{root:[d.root,i.fonts.medium,{position:"relative",height:"auto"},o],shimmerWrapper:[d.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:s||u.disabledBackground,transition:"opacity ".concat(a,"ms"),selectors:(n={},n[Iu]=(0,e.__assign)({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},r&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},c?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[d.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(s||u.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(s||u.disabledBackground," 0%,\n                        ").concat(l||u.bodyDivider," 50%,\n                        ").concat(s||u.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(Fg,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:p?Og():Bg()}],dataWrapper:[d.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(a,"ms")},r&&{opacity:"1",position:"static"}],screenReaderText:Vu}}),void 0,{scope:"Shimmer"}),dv=function(e){var t=function(t){return t?jt().createElement(pv,{shimmerElements:e.firstLoadView,isLoaded:!0,isOverflowHidden:e.isOverflowHidden,children:t}):void 0};return jt().createElement(Xs,{operationData:e.operationData,inertView:e.inertView,firstLoadView:jt().createElement(pv,{shimmerElements:e.firstLoadView}),finishedView:t(e.finishedView),failedView:t(e.failedView),updatingView:t(e.updatingView),updateFailedView:t(e.updateFailedView)})},pv=function(e){var t=e.children,n=e.shimmerElements,r=e.isLoaded,o=e.isOverflowHidden,i=void 0!==o&&o;return jt().createElement(uv,{styles:{root:{width:"100%",overflow:i?"hidden":void 0},shimmerWrapper:{overflow:"visible"},shimmerGradient:{display:"none"}},shimmerColors:{shimmerWave:"transparent",shimmer:"transparent"},isDataLoaded:r,customElementsGroup:n},r?t:null)};var hv=function e(t,n,r){var o=yv(t);if(vv(t)){if(gv(r).test(o)||n.includes(t.type))return t;if(t.type===dv){var i=t.props;return Object.keys(i).forEach((function(t){if("operationData"!==t){var o=i[t];e(o,n,r)}})),t}}return Ag(o,"Invalid ".concat(r," component ").concat(o,".")+" Use an allowed child component or a custom component wrapped using the childWrapper HOC defined in ".concat(r),1),t},mv=bh("Validation"),fv=function(e){return"".concat(e).concat(mv)},gv=function(e){return new RegExp("_".concat(fv(e),"$"))},vv=function(e){return!!e&&jt().isValidElement(e)&&"string"!==typeof e.type},yv=function(e){var t,n=(null===(t=null===e||void 0===e?void 0:e.type)||void 0===t?void 0:t.type)||(null===e||void 0===e?void 0:e.type);return"".concat(n?n.displayName||n.name||n:e)},bv=0,Cv=1,Sv=2,xv=3,_v=4,Ev=5,kv=6,wv=7,Iv=8,Pv=9,Tv=10,Dv=11,Av=12,Rv=13,Nv={"top-auto":xv,"top-center":Cv,"top-right":Sv,"top-left":bv,"right-center":Av,"right-top":Dv,"right-bottom":Rv,"bottom-auto":wv,"bottom-center":Ev,"bottom-right":kv,"bottom-left":_v,"left-center":Pv,"left-top":Iv,"left-bottom":Tv},Mv=["s","m","l","xl","xxl","xxxl"],Fv="ViewportProvider",Bv={"12px":"16px","14px":"20px","16px":"24px","24px":"32px","32px":"40px","48px":"64px","60px":"72px","72px":"88px","96px":"112px","246px":"246px","186px":"186px","220px":"220px","270px":"270px"},Ov={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},Lv={s:Ov.m-1,m:Ov.l-1,l:Ov.xl-1,xl:Ov.xxl-1,xxl:Ov.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER},Hv=function(e){return Mv.find((function(t){return e<=Lv[t]}))||"xxxl"},Vv=("@media only screen and (min-width: ".concat(Ov.s,"px)"),"@media only screen and (min-width: ".concat(Ov.m,"px)")),zv="@media only screen and (min-width: ".concat(Ov.l,"px)"),Uv="@media only screen and (min-width: ".concat(Ov.xl,"px)"),Wv="@media only screen and (min-width: ".concat(Ov.xxl,"px)"),Gv="@media only screen and (min-width: ".concat(Ov.xxxl,"px)"),jv="@media only screen and (max-width: ".concat(Lv.s,"px)"),qv="@media only screen and (max-width: ".concat(Lv.m,"px)"),Kv="@media only screen and (max-width: ".concat(Lv.l,"px)"),Yv=("@media only screen and (max-width: ".concat(Lv.xl,"px)"),"@media only screen and (max-width: ".concat(Lv.xxl,"px)"),"@media only screen and (min-height: 0px)"),Xv="@media only screen and (min-height: 420px)",Qv="@media only screen and (-ms-high-contrast: active), (forced-colors: active)",Zv="@media only screen and (-ms-high-contrast: white-on-black), (forced-colors: active) and (prefers-color-scheme: dark)",Jv=function(e){var t=e,n=[];return{setValue:function(e){t!==e&&(t=e,rn().unstable_batchedUpdates((function(){n.forEach((function(t){return t(e)}))})))},useValue:function(){var e=function(e){var t=(0,Gt.useState)(e)[1];return(0,Gt.useCallback)((function(e){t(e)}),[])}(t);return In((function(){n=n.concat(e)})),wn((function(){n=n.filter((function(t){return t!==e}))})),t}}}(Hv(window.innerWidth)),$v="x-viewport",ey=window.matchMedia?Mv.map((function(e){var t=window.matchMedia("(max-width: ".concat(Lv[e],"px) and (min-width: ").concat(Ov[e],"px)"));return t[$v]=e,t})):void 0,ty=function(e){var t;if(e.matches){var n=e[$v]||(null===(t=e.currentTarget)||void 0===t?void 0:t[$v])||Hv(window.innerWidth);Jv.setValue(n)}},ny=function(){var e=Ai().includes(Fv),t=Jv.useValue();return e?function(){var e=(0,Gt.useContext)(Rn);if(null===e)throw new Error("ViewportContext: Context is uninitialized. Confirm that your component is contained within an ViewportContext.Provider component.");return e.viewportType}():t},ry=function(e){return["s","m"].includes(e)},oy=function(){var e;return{root:(e={cursor:"pointer",position:"relative",borderWidth:"0px",height:"100%",width:"100%",padding:"0px"},e[Qv]={borderWidth:"1px",":focus":{outline:"auto"}},e)}},iy=function(e,t,n,r){return{root:{borderRadius:t,overflow:"0px"!==t?"hidden":void 0,boxShadow:n?Qp.depth4:void 0,borderBottom:r?"1px solid ".concat(e.palette.white):void 0}}},ay=zg(),sy=function(t){function n(e){var n=t.call(this,e)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaLabel,o=t.ariaValueText,i=t.barHeight,a=t.className,s=t.description,l=t.label,c=void 0===l?n.props.title:l,u=t.styles,d=t.theme,p="number"===typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,h=ay(u,{theme:d,className:a,barHeight:i,indeterminate:void 0===p}),m={width:void 0!==p?p+"%":void 0,transition:void 0!==p&&p<.01?"none":void 0},f=void 0!==p?0:void 0,g=void 0!==p?100:void 0,v=void 0!==p?Math.floor(p):void 0;return Gt.createElement("div",{className:h.itemProgress},Gt.createElement("div",{className:h.progressTrack}),Gt.createElement("div",{className:h.progressBar,style:m,role:"progressbar","aria-describedby":s?n._descriptionId:void 0,"aria-label":r,"aria-labelledby":c?n._labelId:void 0,"aria-valuemin":f,"aria-valuemax":g,"aria-valuenow":v,"aria-valuetext":o}))};var r=bh("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.barHeight,r=t.className,o=t.label,i=void 0===o?this.props.title:o,a=t.description,s=t.styles,l=t.theme,c=t.progressHidden,u=t.onRenderProgress,d=void 0===u?this._onRenderProgress:u,p="number"===typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,h=ay(s,{theme:l,className:r,barHeight:n,indeterminate:void 0===p});return Gt.createElement("div",{className:h.root},i?Gt.createElement("div",{id:this._labelId,className:h.itemName},i):null,c?null:d((0,e.__assign)((0,e.__assign)({},this.props),{percentComplete:p}),this._onRenderProgress),a?Gt.createElement("div",{id:this._descriptionId,className:h.itemDescription},a):null)},n.defaultProps={label:"",description:"",width:180},n}(Gt.Component),ly={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},cy=Ku((function(){return Cc({"0%":{left:"-30%"},"100%":{left:"100%"}})})),uy=Ku((function(){return Cc({"100%":{right:"-30%"},"0%":{right:"100%"}})})),dy=Ng(sy,(function(t){var n,r,o,i=Dp(t.theme),a=t.className,s=t.indeterminate,l=t.theme,c=t.barHeight,u=void 0===c?2:c,d=l.palette,p=l.semanticColors,h=l.fonts,m=Ju(ly,l),f=d.neutralLight;return{root:[m.root,h.medium,a],itemName:[m.itemName,Dd,{color:p.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[m.itemDescription,{color:p.bodySubtext,fontSize:h.small.fontSize,lineHeight:18}],itemProgress:[m.itemProgress,{position:"relative",overflow:"hidden",height:u,padding:"".concat(8,"px 0")}],progressTrack:[m.progressTrack,{position:"absolute",width:"100%",height:u,backgroundColor:f,selectors:(n={},n[Iu]={borderBottom:"1px solid WindowText"},n)}],progressBar:[{backgroundColor:d.themePrimary,height:u,position:"absolute",transition:"width .3s ease",width:0,selectors:(r={},r[Iu]=(0,e.__assign)({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},s?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(f," 0%, ")+"".concat(d.themePrimary," 50%, ").concat(f," 100%)"),animation:"".concat(i?uy():cy()," 3s infinite"),selectors:(o={},o[Iu]={background:"highlight"},o)}:{transition:"width .15s linear"},m.progressBar]}}),void 0,{scope:"ProgressIndicator"});function py(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"\ue700",ChevronDown:"\ue70d",ChevronUp:"\ue70e",Edit:"\ue70f",Add:"\ue710",Cancel:"\ue711",More:"\ue712",Settings:"\ue713",Mail:"\ue715",Filter:"\ue71c",Search:"\ue721",Share:"\ue72d",BlockedSite:"\ue72f",FavoriteStar:"\ue734",FavoriteStarFill:"\ue735",CheckMark:"\ue73e",Delete:"\ue74d",ChevronLeft:"\ue76b",ChevronRight:"\ue76c",Calendar:"\ue787",Megaphone:"\ue789",Undo:"\ue7a7",Flag:"\ue7c1",Page:"\ue7c3",Pinned:"\ue840",View:"\ue890",Clear:"\ue894",Download:"\ue896",Upload:"\ue898",Folder:"\ue8b7",Sort:"\ue8cb",AlignRight:"\ue8e2",AlignLeft:"\ue8e4",Tag:"\ue8ec",AddFriend:"\ue8fa",Info:"\ue946",SortLines:"\ue9d0",List:"\uea37",CircleRing:"\uea3a",Heart:"\ueb51",HeartFill:"\ueb52",Tiles:"\ueca5",Embed:"\uecce",Glimmer:"\uecf4",Ascending:"\uedc0",Descending:"\uedc1",SortUp:"\uee68",SortDown:"\uee69",SyncToPC:"\uee6e",LargeGrid:"\ueecb",SkypeCheck:"\uef80",SkypeClock:"\uef81",SkypeMinus:"\uef82",ClearFilter:"\uef8f",Flow:"\uef90",StatusCircleCheckmark:"\uf13e",MoreVertical:"\uf2bc"}},t)}function hy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"\ue302",CommentSolid:"\ue30e",ChangeEntitlements:"\ue310",Installation:"\ue311",WebAppBuilderModule:"\ue313",WebAppBuilderFragment:"\ue314",WebAppBuilderSlot:"\ue315",BullseyeTargetEdit:"\ue319",WebAppBuilderFragmentCreate:"\ue31b",PageData:"\ue31c",PageHeaderEdit:"\ue31d",ProductList:"\ue31e",UnpublishContent:"\ue31f",DependencyAdd:"\ue344",DependencyRemove:"\ue345",EntitlementPolicy:"\ue346",EntitlementRedemption:"\ue347",SchoolDataSyncLogo:"\ue34c",PinSolid12:"\ue352",PinSolidOff12:"\ue353",AddLink:"\ue35e",SharepointAppIcon16:"\ue365",DataflowsLink:"\ue366",TimePicker:"\ue367",UserWarning:"\ue368",ComplianceAudit:"\ue369",InternetSharing:"\ue704",Brightness:"\ue706",MapPin:"\ue707",Airplane:"\ue709",Tablet:"\ue70a",QuickNote:"\ue70b",Video:"\ue714",People:"\ue716",Phone:"\ue717",Pin:"\ue718",Shop:"\ue719",Stop:"\ue71a",Link:"\ue71b",AllApps:"\ue71d",Zoom:"\ue71e",ZoomOut:"\ue71f",Microphone:"\ue720",Camera:"\ue722",Attach:"\ue723",Send:"\ue724",FavoriteList:"\ue728",PageSolid:"\ue729",Forward:"\ue72a",Back:"\ue72b",Refresh:"\ue72c",Lock:"\ue72e",ReportHacked:"\ue730",EMI:"\ue731",MiniLink:"\ue732",Blocked:"\ue733",ReadingMode:"\ue736",Favicon:"\ue737",Remove:"\ue738",Checkbox:"\ue739",CheckboxComposite:"\ue73a",CheckboxFill:"\ue73b",CheckboxIndeterminate:"\ue73c",CheckboxCompositeReversed:"\ue73d",BackToWindow:"\ue73f",FullScreen:"\ue740",Print:"\ue749",Up:"\ue74a",Down:"\ue74b",OEM:"\ue74c",Save:"\ue74e",ReturnKey:"\ue751",Cloud:"\ue753",Flashlight:"\ue754",CommandPrompt:"\ue756",Sad:"\ue757",RealEstate:"\ue758",SIPMove:"\ue759",EraseTool:"\ue75c",GripperTool:"\ue75e",Dialpad:"\ue75f",PageLeft:"\ue760",PageRight:"\ue761",MultiSelect:"\ue762",KeyboardClassic:"\ue765",Play:"\ue768",Pause:"\ue769",InkingTool:"\ue76d",Emoji2:"\ue76e",GripperBarHorizontal:"\ue76f",System:"\ue770",Personalize:"\ue771",SearchAndApps:"\ue773",Globe:"\ue774",EaseOfAccess:"\ue776",ContactInfo:"\ue779",Unpin:"\ue77a",Contact:"\ue77b",Memo:"\ue77c",IncomingCall:"\ue77e"}},t)}function my(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"\ue77f",WindowsLogo:"\ue782",Error:"\ue783",GripperBarVertical:"\ue784",Unlock:"\ue785",Slideshow:"\ue786",Trim:"\ue78a",AutoEnhanceOn:"\ue78d",AutoEnhanceOff:"\ue78e",Color:"\ue790",SaveAs:"\ue792",Light:"\ue793",Filters:"\ue795",AspectRatio:"\ue799",Contrast:"\ue7a1",Redo:"\ue7a6",Crop:"\ue7a8",PhotoCollection:"\ue7aa",Album:"\ue7ab",Rotate:"\ue7ad",PanoIndicator:"\ue7b0",Translate:"\ue7b2",RedEye:"\ue7b3",ViewOriginal:"\ue7b4",ThumbnailView:"\ue7b6",Package:"\ue7b8",Telemarketer:"\ue7b9",Warning:"\ue7ba",Financial:"\ue7bb",Education:"\ue7be",ShoppingCart:"\ue7bf",Train:"\ue7c0",Move:"\ue7c2",TouchPointer:"\ue7c9",Merge:"\ue7d5",TurnRight:"\ue7db",Ferry:"\ue7e3",Highlight:"\ue7e6",PowerButton:"\ue7e8",Tab:"\ue7e9",Admin:"\ue7ef",TVMonitor:"\ue7f4",Speakers:"\ue7f5",Game:"\ue7fc",HorizontalTabKey:"\ue7fd",UnstackSelected:"\ue7fe",StackIndicator:"\ue7ff",Nav2DMapView:"\ue800",StreetsideSplitMinimize:"\ue802",Car:"\ue804",Bus:"\ue806",EatDrink:"\ue807",SeeDo:"\ue808",LocationCircle:"\ue80e",Home:"\ue80f",SwitcherStartEnd:"\ue810",ParkingLocation:"\ue811",IncidentTriangle:"\ue814",Touch:"\ue815",MapDirections:"\ue816",CaretHollow:"\ue817",CaretSolid:"\ue818",History:"\ue81c",Location:"\ue81d",MapLayers:"\ue81e",SearchNearby:"\ue820",Work:"\ue821",Recent:"\ue823",Hotel:"\ue824",Bank:"\ue825",LocationDot:"\ue827",Dictionary:"\ue82d",ChromeBack:"\ue830",FolderOpen:"\ue838",PinnedFill:"\ue842",RevToggleKey:"\ue845",USB:"\ue88e",Previous:"\ue892",Next:"\ue893",Sync:"\ue895",Help:"\ue897",Emoji:"\ue899",MailForward:"\ue89c",ClosePane:"\ue89f",OpenPane:"\ue8a0",PreviewLink:"\ue8a1",ZoomIn:"\ue8a3",Bookmarks:"\ue8a4",Document:"\ue8a5",ProtectedDocument:"\ue8a6",OpenInNewWindow:"\ue8a7",MailFill:"\ue8a8",ViewAll:"\ue8a9",Switch:"\ue8ab",Rename:"\ue8ac",Go:"\ue8ad",Remote:"\ue8af",SelectAll:"\ue8b3",Orientation:"\ue8b4",Import:"\ue8b5"}},t)}function fy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"\ue8b9",ChromeClose:"\ue8bb",ShowResults:"\ue8bc",Message:"\ue8bd",CalendarDay:"\ue8bf",CalendarWeek:"\ue8c0",MailReplyAll:"\ue8c2",Read:"\ue8c3",Cut:"\ue8c6",PaymentCard:"\ue8c7",Copy:"\ue8c8",Important:"\ue8c9",MailReply:"\ue8ca",GotoToday:"\ue8d1",Font:"\ue8d2",FontColor:"\ue8d3",FolderFill:"\ue8d5",Permissions:"\ue8d7",DisableUpdates:"\ue8d8",Unfavorite:"\ue8d9",Italic:"\ue8db",Underline:"\ue8dc",Bold:"\ue8dd",MoveToFolder:"\ue8de",Dislike:"\ue8e0",Like:"\ue8e1",AlignCenter:"\ue8e3",OpenFile:"\ue8e5",ClearSelection:"\ue8e6",FontDecrease:"\ue8e7",FontIncrease:"\ue8e8",FontSize:"\ue8e9",CellPhone:"\ue8ea",RepeatOne:"\ue8ed",RepeatAll:"\ue8ee",Calculator:"\ue8ef",Library:"\ue8f1",PostUpdate:"\ue8f3",NewFolder:"\ue8f4",CalendarReply:"\ue8f5",UnsyncFolder:"\ue8f6",SyncFolder:"\ue8f7",BlockContact:"\ue8f8",Accept:"\ue8fb",BulletedList:"\ue8fd",Preview:"\ue8ff",News:"\ue900",Chat:"\ue901",Group:"\ue902",World:"\ue909",Comment:"\ue90a",DockLeft:"\ue90c",DockRight:"\ue90d",Repair:"\ue90f",Accounts:"\ue910",Street:"\ue913",RadioBullet:"\ue915",Stopwatch:"\ue916",Clock:"\ue917",WorldClock:"\ue918",AlarmClock:"\ue919",Photo:"\ue91b",ActionCenter:"\ue91c",Hospital:"\ue91d",Timer:"\ue91e",FullCircleMask:"\ue91f",LocationFill:"\ue920",ChromeMinimize:"\ue921",ChromeRestore:"\ue923",Annotation:"\ue924",Fingerprint:"\ue928",Handwriting:"\ue929",ChromeFullScreen:"\ue92d",Completed:"\ue930",Label:"\ue932",FlickDown:"\ue935",FlickUp:"\ue936",FlickLeft:"\ue937",FlickRight:"\ue938",MiniExpand:"\ue93a",MiniContract:"\ue93b",Streaming:"\ue93e",MusicInCollection:"\ue940",OneDriveLogo:"\ue941",CompassNW:"\ue942",Code:"\ue943",LightningBolt:"\ue945",CalculatorMultiply:"\ue947",CalculatorAddition:"\ue948",CalculatorSubtract:"\ue949",CalculatorPercentage:"\ue94c",CalculatorEqualTo:"\ue94e",PrintfaxPrinterFile:"\ue956",StorageOptical:"\ue958",Communications:"\ue95a",Headset:"\ue95b",Health:"\ue95e",Webcam2:"\ue960",FrontCamera:"\ue96b",ChevronUpSmall:"\ue96d"}},t)}function gy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"\ue96e",ChevronLeftSmall:"\ue96f",ChevronRightSmall:"\ue970",ChevronUpMed:"\ue971",ChevronDownMed:"\ue972",ChevronLeftMed:"\ue973",ChevronRightMed:"\ue974",Devices2:"\ue975",PC1:"\ue977",PresenceChickletVideo:"\ue979",Reply:"\ue97a",HalfAlpha:"\ue97e",ConstructionCone:"\ue98f",DoubleChevronLeftMed:"\ue991",Volume0:"\ue992",Volume1:"\ue993",Volume2:"\ue994",Volume3:"\ue995",Chart:"\ue999",Robot:"\ue99a",Manufacturing:"\ue99c",LockSolid:"\ue9a2",FitPage:"\ue9a6",FitWidth:"\ue9a7",BidiLtr:"\ue9aa",BidiRtl:"\ue9ab",RightDoubleQuote:"\ue9b1",Sunny:"\ue9bd",CloudWeather:"\ue9be",Cloudy:"\ue9bf",PartlyCloudyDay:"\ue9c0",PartlyCloudyNight:"\ue9c1",ClearNight:"\ue9c2",RainShowersDay:"\ue9c3",Rain:"\ue9c4",Thunderstorms:"\ue9c6",RainSnow:"\ue9c7",Snow:"\ue9c8",BlowingSnow:"\ue9c9",Frigid:"\ue9ca",Fog:"\ue9cb",Squalls:"\ue9cc",Duststorm:"\ue9cd",Unknown:"\ue9ce",Precipitation:"\ue9cf",Ribbon:"\ue9d1",AreaChart:"\ue9d2",Assign:"\ue9d3",FlowChart:"\ue9d4",CheckList:"\ue9d5",Diagnostic:"\ue9d9",Generate:"\ue9da",LineChart:"\ue9e6",Equalizer:"\ue9e9",BarChartHorizontal:"\ue9eb",BarChartVertical:"\ue9ec",Freezing:"\ue9ef",FunnelChart:"\ue9f1",Processing:"\ue9f5",Quantity:"\ue9f8",ReportDocument:"\ue9f9",StackColumnChart:"\ue9fc",SnowShowerDay:"\ue9fd",HailDay:"\uea00",WorkFlow:"\uea01",HourGlass:"\uea03",StoreLogoMed20:"\uea04",TimeSheet:"\uea05",TriangleSolid:"\uea08",UpgradeAnalysis:"\uea0b",VideoSolid:"\uea0c",RainShowersNight:"\uea0f",SnowShowerNight:"\uea11",Teamwork:"\uea12",HailNight:"\uea13",PeopleAdd:"\uea15",Glasses:"\uea16",DateTime2:"\uea17",Shield:"\uea18",Header1:"\uea19",PageAdd:"\uea1a",NumberedList:"\uea1c",PowerBILogo:"\uea1e",Info2:"\uea1f",MusicInCollectionFill:"\uea36",Asterisk:"\uea38",ErrorBadge:"\uea39",CircleFill:"\uea3b",Record2:"\uea3f",AllAppsMirrored:"\uea40",BookmarksMirrored:"\uea41",BulletedListMirrored:"\uea42",CaretHollowMirrored:"\uea45",CaretSolidMirrored:"\uea46",ChromeBackMirrored:"\uea47",ClearSelectionMirrored:"\uea48",ClosePaneMirrored:"\uea49",DockLeftMirrored:"\uea4c",DoubleChevronLeftMedMirrored:"\uea4d",GoMirrored:"\uea4f"}},t)}function vy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"\uea51",ImportMirrored:"\uea52",ImportAllMirrored:"\uea53",ListMirrored:"\uea55",MailForwardMirrored:"\uea56",MailReplyMirrored:"\uea57",MailReplyAllMirrored:"\uea58",MiniContractMirrored:"\uea59",MiniExpandMirrored:"\uea5a",OpenPaneMirrored:"\uea5b",ParkingLocationMirrored:"\uea5e",SendMirrored:"\uea63",ShowResultsMirrored:"\uea65",ThumbnailViewMirrored:"\uea67",Media:"\uea69",Devices3:"\uea6c",Focus:"\uea6f",VideoLightOff:"\uea74",Lightbulb:"\uea80",StatusTriangle:"\uea82",VolumeDisabled:"\uea85",Puzzle:"\uea86",EmojiNeutral:"\uea87",EmojiDisappointed:"\uea88",HomeSolid:"\uea8a",Ringer:"\uea8f",PDF:"\uea90",HeartBroken:"\uea92",StoreLogo16:"\uea96",MultiSelectMirrored:"\uea98",Broom:"\uea99",AddToShoppingList:"\uea9a",Cocktails:"\uea9d",Wines:"\ueabf",Articles:"\ueac1",Cycling:"\ueac7",DietPlanNotebook:"\ueac8",Pill:"\ueacb",ExerciseTracker:"\ueacc",HandsFree:"\uead0",Medical:"\uead4",Running:"\ueada",Weights:"\ueadb",Trackers:"\ueadf",AddNotes:"\ueae3",AllCurrency:"\ueae4",BarChart4:"\ueae7",CirclePlus:"\ueaee",Coffee:"\ueaef",Cotton:"\ueaf3",Market:"\ueafc",Money:"\ueafd",PieDouble:"\ueb04",PieSingle:"\ueb05",RemoveFilter:"\ueb08",Savings:"\ueb0b",Sell:"\ueb0c",StockDown:"\ueb0f",StockUp:"\ueb11",Lamp:"\ueb19",Source:"\ueb1b",MSNVideos:"\ueb1c",Cricket:"\ueb1e",Golf:"\ueb1f",Baseball:"\ueb20",Soccer:"\ueb21",MoreSports:"\ueb22",AutoRacing:"\ueb24",CollegeHoops:"\ueb25",CollegeFootball:"\ueb26",ProFootball:"\ueb27",ProHockey:"\ueb28",Rugby:"\ueb2d",SubstitutionsIn:"\ueb31",Tennis:"\ueb33",Arrivals:"\ueb34",Design:"\ueb3c",Website:"\ueb41",Drop:"\ueb42",HistoricalWeather:"\ueb43",SkiResorts:"\ueb45",Snowflake:"\ueb46",BusSolid:"\ueb47",FerrySolid:"\ueb48",AirplaneSolid:"\ueb4c",TrainSolid:"\ueb4d",Ticket:"\ueb54",WifiWarning4:"\ueb63",Devices4:"\ueb66",AzureLogo:"\ueb6a",BingLogo:"\ueb6b",MSNLogo:"\ueb6c",OutlookLogoInverse:"\ueb6d",OfficeLogo:"\ueb6e",SkypeLogo:"\ueb6f",Door:"\ueb75",EditMirrored:"\ueb7e",GiftCard:"\ueb8e",DoubleBookmark:"\ueb8f",StatusErrorFull:"\ueb90"}},t)}function yy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"\ueb95",FastForward:"\ueb9d",Rewind:"\ueb9e",Photo2:"\ueb9f",OpenSource:"\uebc2",Movers:"\uebcd",CloudDownload:"\uebd3",Family:"\uebda",WindDirection:"\uebe6",Bug:"\uebe8",SiteScan:"\uebec",BrowserScreenShot:"\uebed",F12DevTools:"\uebee",CSS:"\uebef",JS:"\uebf0",DeliveryTruck:"\uebf4",ReminderPerson:"\uebf7",ReminderGroup:"\uebf8",ReminderTime:"\uebf9",TabletMode:"\uebfc",Umbrella:"\uec04",NetworkTower:"\uec05",CityNext:"\uec06",CityNext2:"\uec07",Section:"\uec0c",OneNoteLogoInverse:"\uec0d",ToggleFilled:"\uec11",ToggleBorder:"\uec12",SliderThumb:"\uec13",ToggleThumb:"\uec14",Documentation:"\uec17",Badge:"\uec1b",Giftbox:"\uec1f",VisualStudioLogo:"\uec22",HomeGroup:"\uec26",ExcelLogoInverse:"\uec28",WordLogoInverse:"\uec29",PowerPointLogoInverse:"\uec2a",Cafe:"\uec32",SpeedHigh:"\uec4a",Commitments:"\uec4d",ThisPC:"\uec4e",MusicNote:"\uec4f",MicOff:"\uec54",PlaybackRate1x:"\uec57",EdgeLogo:"\uec60",CompletedSolid:"\uec61",AlbumRemove:"\uec62",MessageFill:"\uec70",TabletSelected:"\uec74",MobileSelected:"\uec75",LaptopSelected:"\uec76",TVMonitorSelected:"\uec77",DeveloperTools:"\uec7a",Shapes:"\uec7c",InsertTextBox:"\uec7d",LowerBrightness:"\uec8a",WebComponents:"\uec8b",OfflineStorage:"\uec8c",DOM:"\uec8d",CloudUpload:"\uec8e",ScrollUpDown:"\uec8f",DateTime:"\uec92",Event:"\ueca3",Cake:"\ueca4",Org:"\ueca6",PartyLeader:"\ueca7",DRM:"\ueca8",CloudAdd:"\ueca9",AppIconDefault:"\uecaa",Photo2Add:"\uecab",Photo2Remove:"\uecac",Calories:"\uecad",POI:"\uecaf",AddTo:"\uecc8",RadioBtnOff:"\uecca",RadioBtnOn:"\ueccb",ExploreContent:"\ueccd",Product:"\uecdc",ProgressLoopInner:"\uecde",ProgressLoopOuter:"\uecdf",Blocked2:"\uece4",FangBody:"\ueceb",Toolbox:"\ueced",PageHeader:"\uecee",ChatInviteFriend:"\uecfe",Brush:"\uecff",Shirt:"\ued00",Crown:"\ued01",Diamond:"\ued02",ScaleUp:"\ued09",QRCode:"\ued14",Feedback:"\ued15",SharepointLogoInverse:"\ued18",YammerLogo:"\ued19",Hide:"\ued1a",Uneditable:"\ued1d",ReturnToSession:"\ued24",OpenFolderHorizontal:"\ued25",CalendarMirrored:"\ued28"}},t)}function by(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"\ued29",OutOfOffice:"\ued34",Trophy:"\ued3f",ReopenPages:"\ued50",EmojiTabSymbols:"\ued58",AADLogo:"\ued68",AccessLogo:"\ued69",AdminALogoInverse32:"\ued6a",AdminCLogoInverse32:"\ued6b",AdminDLogoInverse32:"\ued6c",AdminELogoInverse32:"\ued6d",AdminLLogoInverse32:"\ued6e",AdminMLogoInverse32:"\ued6f",AdminOLogoInverse32:"\ued70",AdminPLogoInverse32:"\ued71",AdminSLogoInverse32:"\ued72",AdminYLogoInverse32:"\ued73",DelveLogoInverse:"\ued76",ExchangeLogoInverse:"\ued78",LyncLogo:"\ued79",OfficeVideoLogoInverse:"\ued7a",SocialListeningLogo:"\ued7c",VisioLogoInverse:"\ued7d",Balloons:"\ued7e",Cat:"\ued7f",MailAlert:"\ued80",MailCheck:"\ued81",MailLowImportance:"\ued82",MailPause:"\ued83",MailRepeat:"\ued84",SecurityGroup:"\ued85",Table:"\ued86",VoicemailForward:"\ued87",VoicemailReply:"\ued88",Waffle:"\ued89",RemoveEvent:"\ued8a",EventInfo:"\ued8b",ForwardEvent:"\ued8c",WipePhone:"\ued8d",AddOnlineMeeting:"\ued8e",JoinOnlineMeeting:"\ued8f",RemoveLink:"\ued90",PeopleBlock:"\ued91",PeopleRepeat:"\ued92",PeopleAlert:"\ued93",PeoplePause:"\ued94",TransferCall:"\ued95",AddPhone:"\ued96",UnknownCall:"\ued97",NoteReply:"\ued98",NoteForward:"\ued99",NotePinned:"\ued9a",RemoveOccurrence:"\ued9b",Timeline:"\ued9c",EditNote:"\ued9d",CircleHalfFull:"\ued9e",Room:"\ued9f",Unsubscribe:"\ueda0",Subscribe:"\ueda1",HardDrive:"\ueda2",RecurringTask:"\uedb2",TaskManager:"\uedb7",TaskManagerMirrored:"\uedb8",Combine:"\uedbb",Split:"\uedbc",DoubleChevronUp:"\uedbd",DoubleChevronLeft:"\uedbe",DoubleChevronRight:"\uedbf",TextBox:"\uedc2",TextField:"\uedc3",NumberField:"\uedc4",Dropdown:"\uedc5",PenWorkspace:"\uedc6",BookingsLogo:"\uedc7",ClassNotebookLogoInverse:"\uedc8",DelveAnalyticsLogo:"\uedca",DocsLogoInverse:"\uedcb",Dynamics365Logo:"\uedcc",DynamicSMBLogo:"\uedcd",OfficeAssistantLogo:"\uedce",OfficeStoreLogo:"\uedcf",OneNoteEduLogoInverse:"\uedd0",PlannerLogo:"\uedd1",PowerApps:"\uedd2",Suitcase:"\uedd3",ProjectLogoInverse:"\uedd4",CaretLeft8:"\uedd5",CaretRight8:"\uedd6",CaretUp8:"\uedd7",CaretDown8:"\uedd8",CaretLeftSolid8:"\uedd9",CaretRightSolid8:"\uedda",CaretUpSolid8:"\ueddb",CaretDownSolid8:"\ueddc",ClearFormatting:"\ueddd",Superscript:"\uedde",Subscript:"\ueddf",Strikethrough:"\uede0",Export:"\uede1",ExportMirrored:"\uede2"}},t)}function Cy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"\uedff",SingleBookmarkSolid:"\uee00",DoubleChevronDown:"\uee04",FollowUser:"\uee05",ReplyAll:"\uee0a",WorkforceManagement:"\uee0f",RecruitmentManagement:"\uee12",Questionnaire:"\uee19",ManagerSelfService:"\uee23",ProductionFloorManagement:"\uee29",ProductRelease:"\uee2e",ProductVariant:"\uee30",ReplyMirrored:"\uee35",ReplyAllMirrored:"\uee36",Medal:"\uee38",AddGroup:"\uee3d",QuestionnaireMirrored:"\uee4b",CloudImportExport:"\uee55",TemporaryUser:"\uee58",CaretSolid16:"\uee62",GroupedDescending:"\uee66",GroupedAscending:"\uee67",AwayStatus:"\uee6a",MyMoviesTV:"\uee6c",GenericScan:"\uee6f",AustralianRules:"\uee70",WifiEthernet:"\uee77",TrackersMirrored:"\uee92",DateTimeMirrored:"\uee93",StopSolid:"\uee95",DoubleChevronUp12:"\uee96",DoubleChevronDown12:"\uee97",DoubleChevronLeft12:"\uee98",DoubleChevronRight12:"\uee99",CalendarAgenda:"\uee9a",ConnectVirtualMachine:"\uee9d",AddEvent:"\ueeb5",AssetLibrary:"\ueeb6",DataConnectionLibrary:"\ueeb7",DocLibrary:"\ueeb8",FormLibrary:"\ueeb9",FormLibraryMirrored:"\ueeba",ReportLibrary:"\ueebb",ReportLibraryMirrored:"\ueebc",ContactCard:"\ueebd",CustomList:"\ueebe",CustomListMirrored:"\ueebf",IssueTracking:"\ueec0",IssueTrackingMirrored:"\ueec1",PictureLibrary:"\ueec2",OfficeAddinsLogo:"\ueec7",OfflineOneDriveParachute:"\ueec8",OfflineOneDriveParachuteDisabled:"\ueec9",TriangleSolidUp12:"\ueecc",TriangleSolidDown12:"\ueecd",TriangleSolidLeft12:"\ueece",TriangleSolidRight12:"\ueecf",TriangleUp12:"\ueed0",TriangleDown12:"\ueed1",TriangleLeft12:"\ueed2",TriangleRight12:"\ueed3",ArrowUpRight8:"\ueed4",ArrowDownRight8:"\ueed5",DocumentSet:"\ueed6",GoToDashboard:"\ueeed",DelveAnalytics:"\ueeee",ArrowUpRightMirrored8:"\ueeef",ArrowDownRightMirrored8:"\ueef0",CompanyDirectory:"\uef0d",OpenEnrollment:"\uef1c",CompanyDirectoryMirrored:"\uef2b",OneDriveAdd:"\uef32",ProfileSearch:"\uef35",Header2:"\uef36",Header3:"\uef37",Header4:"\uef38",RingerSolid:"\uef3a",Eyedropper:"\uef3c",MarketDown:"\uef42",CalendarWorkWeek:"\uef51",SidePanel:"\uef52",GlobeFavorite:"\uef53",CaretTopLeftSolid8:"\uef54",CaretTopRightSolid8:"\uef55",ViewAll2:"\uef56",DocumentReply:"\uef57",PlayerSettings:"\uef58",ReceiptForward:"\uef59",ReceiptReply:"\uef5a",ReceiptCheck:"\uef5b",Fax:"\uef5c",RecurringEvent:"\uef5d",ReplyAlt:"\uef5e",ReplyAllAlt:"\uef5f",EditStyle:"\uef60",EditMail:"\uef61",Lifesaver:"\uef62",LifesaverLock:"\uef63",InboxCheck:"\uef64",FolderSearch:"\uef65"}},t)}function Sy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"\uef66",ExpandMenu:"\uef67",Boards:"\uef68",SunAdd:"\uef69",SunQuestionMark:"\uef6a",LandscapeOrientation:"\uef6b",DocumentSearch:"\uef6c",PublicCalendar:"\uef6d",PublicContactCard:"\uef6e",PublicEmail:"\uef6f",PublicFolder:"\uef70",WordDocument:"\uef71",PowerPointDocument:"\uef72",ExcelDocument:"\uef73",GroupedList:"\uef74",ClassroomLogo:"\uef75",Sections:"\uef76",EditPhoto:"\uef77",Starburst:"\uef78",ShareiOS:"\uef79",AirTickets:"\uef7a",PencilReply:"\uef7b",Tiles2:"\uef7c",SkypeCircleCheck:"\uef7d",SkypeCircleClock:"\uef7e",SkypeCircleMinus:"\uef7f",SkypeMessage:"\uef83",ClosedCaption:"\uef84",ATPLogo:"\uef85",OfficeFormsLogoInverse:"\uef86",RecycleBin:"\uef87",EmptyRecycleBin:"\uef88",Hide2:"\uef89",Breadcrumb:"\uef8c",BirthdayCake:"\uef8d",TimeEntry:"\uef95",CRMProcesses:"\uefb1",PageEdit:"\uefb6",PageArrowRight:"\uefb8",PageRemove:"\uefba",Database:"\uefc7",DataManagementSettings:"\uefc8",CRMServices:"\uefd2",EditContact:"\uefd3",ConnectContacts:"\uefd4",AppIconDefaultAdd:"\uefda",AppIconDefaultList:"\uefde",ActivateOrders:"\uefe0",DeactivateOrders:"\uefe1",ProductCatalog:"\uefe8",ScatterChart:"\uefeb",AccountActivity:"\ueff4",DocumentManagement:"\ueffc",CRMReport:"\ueffe",KnowledgeArticle:"\uf000",Relationship:"\uf003",HomeVerify:"\uf00e",ZipFolder:"\uf012",SurveyQuestions:"\uf01b",TextDocument:"\uf029",TextDocumentShared:"\uf02b",PageCheckedOut:"\uf02c",PageShared:"\uf02d",SaveAndClose:"\uf038",Script:"\uf03a",Archive:"\uf03f",ActivityFeed:"\uf056",Compare:"\uf057",EventDate:"\uf059",ArrowUpRight:"\uf069",CaretRight:"\uf06b",SetAction:"\uf071",ChatBot:"\uf08b",CaretSolidLeft:"\uf08d",CaretSolidDown:"\uf08e",CaretSolidRight:"\uf08f",CaretSolidUp:"\uf090",PowerAppsLogo:"\uf091",PowerApps2Logo:"\uf092",SearchIssue:"\uf09a",SearchIssueMirrored:"\uf09b",FabricAssetLibrary:"\uf09c",FabricDataConnectionLibrary:"\uf09d",FabricDocLibrary:"\uf09e",FabricFormLibrary:"\uf09f",FabricFormLibraryMirrored:"\uf0a0",FabricReportLibrary:"\uf0a1",FabricReportLibraryMirrored:"\uf0a2",FabricPublicFolder:"\uf0a3",FabricFolderSearch:"\uf0a4",FabricMovetoFolder:"\uf0a5",FabricUnsyncFolder:"\uf0a6",FabricSyncFolder:"\uf0a7",FabricOpenFolderHorizontal:"\uf0a8",FabricFolder:"\uf0a9",FabricFolderFill:"\uf0aa",FabricNewFolder:"\uf0ab",FabricPictureLibrary:"\uf0ac",PhotoVideoMedia:"\uf0b1",AddFavorite:"\uf0c8"}},t)}function xy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"\uf0c9",BufferTimeBefore:"\uf0cf",BufferTimeAfter:"\uf0d0",BufferTimeBoth:"\uf0d1",PublishContent:"\uf0d4",ClipboardList:"\uf0e3",ClipboardListMirrored:"\uf0e4",CannedChat:"\uf0f2",SkypeForBusinessLogo:"\uf0fc",TabCenter:"\uf100",PageCheckedin:"\uf104",PageList:"\uf106",ReadOutLoud:"\uf112",CaretBottomLeftSolid8:"\uf121",CaretBottomRightSolid8:"\uf122",FolderHorizontal:"\uf12b",MicrosoftStaffhubLogo:"\uf130",GiftboxOpen:"\uf133",StatusCircleOuter:"\uf136",StatusCircleInner:"\uf137",StatusCircleRing:"\uf138",StatusTriangleOuter:"\uf139",StatusTriangleInner:"\uf13a",StatusTriangleExclamation:"\uf13b",StatusCircleExclamation:"\uf13c",StatusCircleErrorX:"\uf13d",StatusCircleInfo:"\uf13f",StatusCircleBlock:"\uf140",StatusCircleBlock2:"\uf141",StatusCircleQuestionMark:"\uf142",StatusCircleSync:"\uf143",Toll:"\uf160",ExploreContentSingle:"\uf164",CollapseContent:"\uf165",CollapseContentSingle:"\uf166",InfoSolid:"\uf167",GroupList:"\uf168",ProgressRingDots:"\uf16a",CaloriesAdd:"\uf172",BranchFork:"\uf173",MuteChat:"\uf17a",AddHome:"\uf17b",AddWork:"\uf17c",MobileReport:"\uf18a",ScaleVolume:"\uf18c",HardDriveGroup:"\uf18f",FastMode:"\uf19a",ToggleLeft:"\uf19e",ToggleRight:"\uf19f",TriangleShape:"\uf1a7",RectangleShape:"\uf1a9",CubeShape:"\uf1aa",Trophy2:"\uf1ae",BucketColor:"\uf1b6",BucketColorFill:"\uf1b7",Taskboard:"\uf1c2",SingleColumn:"\uf1d3",DoubleColumn:"\uf1d4",TripleColumn:"\uf1d5",ColumnLeftTwoThirds:"\uf1d6",ColumnRightTwoThirds:"\uf1d7",AccessLogoFill:"\uf1db",AnalyticsLogo:"\uf1de",AnalyticsQuery:"\uf1df",NewAnalyticsQuery:"\uf1e0",AnalyticsReport:"\uf1e1",WordLogo:"\uf1e3",WordLogoFill:"\uf1e4",ExcelLogo:"\uf1e5",ExcelLogoFill:"\uf1e6",OneNoteLogo:"\uf1e7",OneNoteLogoFill:"\uf1e8",OutlookLogo:"\uf1e9",OutlookLogoFill:"\uf1ea",PowerPointLogo:"\uf1eb",PowerPointLogoFill:"\uf1ec",PublisherLogo:"\uf1ed",PublisherLogoFill:"\uf1ee",ScheduleEventAction:"\uf1ef",FlameSolid:"\uf1f3",ServerProcesses:"\uf1fe",Server:"\uf201",SaveAll:"\uf203",LinkedInLogo:"\uf20a",Decimals:"\uf218",SidePanelMirrored:"\uf221",ProtectRestrict:"\uf22a",Blog:"\uf22b",UnknownMirrored:"\uf22e",PublicContactCardMirrored:"\uf230",GridViewSmall:"\uf232",GridViewMedium:"\uf233",GridViewLarge:"\uf234",Step:"\uf241",StepInsert:"\uf242",StepShared:"\uf243",StepSharedAdd:"\uf244",StepSharedInsert:"\uf245",ViewDashboard:"\uf246",ViewList:"\uf247"}},t)}function _y(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"\uf248",ViewListTree:"\uf249",TriggerAuto:"\uf24a",TriggerUser:"\uf24b",PivotChart:"\uf24c",StackedBarChart:"\uf24d",StackedLineChart:"\uf24e",BuildQueue:"\uf24f",BuildQueueNew:"\uf250",UserFollowed:"\uf25c",ContactLink:"\uf25f",Stack:"\uf26f",Bullseye:"\uf272",VennDiagram:"\uf273",FiveTileGrid:"\uf274",FocalPoint:"\uf277",Insert:"\uf278",RingerRemove:"\uf279",TeamsLogoInverse:"\uf27a",TeamsLogo:"\uf27b",TeamsLogoFill:"\uf27c",SkypeForBusinessLogoFill:"\uf27d",SharepointLogo:"\uf27e",SharepointLogoFill:"\uf27f",DelveLogo:"\uf280",DelveLogoFill:"\uf281",OfficeVideoLogo:"\uf282",OfficeVideoLogoFill:"\uf283",ExchangeLogo:"\uf284",ExchangeLogoFill:"\uf285",Signin:"\uf286",DocumentApproval:"\uf28b",CloneToDesktop:"\uf28c",InstallToDrive:"\uf28d",Blur:"\uf28e",Build:"\uf28f",ProcessMetaTask:"\uf290",BranchFork2:"\uf291",BranchLocked:"\uf292",BranchCommit:"\uf293",BranchCompare:"\uf294",BranchMerge:"\uf295",BranchPullRequest:"\uf296",BranchSearch:"\uf297",BranchShelveset:"\uf298",RawSource:"\uf299",MergeDuplicate:"\uf29a",RowsGroup:"\uf29b",RowsChild:"\uf29c",Deploy:"\uf29d",Redeploy:"\uf29e",ServerEnviroment:"\uf29f",VisioDiagram:"\uf2a0",HighlightMappedShapes:"\uf2a1",TextCallout:"\uf2a2",IconSetsFlag:"\uf2a4",VisioLogo:"\uf2a7",VisioLogoFill:"\uf2a8",VisioDocument:"\uf2a9",TimelineProgress:"\uf2aa",TimelineDelivery:"\uf2ab",Backlog:"\uf2ac",TeamFavorite:"\uf2ad",TaskGroup:"\uf2ae",TaskGroupMirrored:"\uf2af",ScopeTemplate:"\uf2b0",AssessmentGroupTemplate:"\uf2b1",NewTeamProject:"\uf2b2",CommentAdd:"\uf2b3",CommentNext:"\uf2b4",CommentPrevious:"\uf2b5",ShopServer:"\uf2b6",LocaleLanguage:"\uf2b7",QueryList:"\uf2b8",UserSync:"\uf2b9",UserPause:"\uf2ba",StreamingOff:"\uf2bb",ArrowTallUpLeft:"\uf2bd",ArrowTallUpRight:"\uf2be",ArrowTallDownLeft:"\uf2bf",ArrowTallDownRight:"\uf2c0",FieldEmpty:"\uf2c1",FieldFilled:"\uf2c2",FieldChanged:"\uf2c3",FieldNotChanged:"\uf2c4",RingerOff:"\uf2c5",PlayResume:"\uf2c6",BulletedList2:"\uf2c7",BulletedList2Mirrored:"\uf2c8",ImageCrosshair:"\uf2c9",GitGraph:"\uf2ca",Repo:"\uf2cb",RepoSolid:"\uf2cc",FolderQuery:"\uf2cd",FolderList:"\uf2ce",FolderListMirrored:"\uf2cf",LocationOutline:"\uf2d0",POISolid:"\uf2d1",CalculatorNotEqualTo:"\uf2d2",BoxSubtractSolid:"\uf2d3"}},t)}function Ey(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"\uf2d4",BoxMultiplySolid:"\uf2d5",BoxPlaySolid:"\uf2d6",BoxCheckmarkSolid:"\uf2d7",CirclePauseSolid:"\uf2d8",CirclePause:"\uf2d9",MSNVideosSolid:"\uf2da",CircleStopSolid:"\uf2db",CircleStop:"\uf2dc",NavigateBack:"\uf2dd",NavigateBackMirrored:"\uf2de",NavigateForward:"\uf2df",NavigateForwardMirrored:"\uf2e0",UnknownSolid:"\uf2e1",UnknownMirroredSolid:"\uf2e2",CircleAddition:"\uf2e3",CircleAdditionSolid:"\uf2e4",FilePDB:"\uf2e5",FileTemplate:"\uf2e6",FileSQL:"\uf2e7",FileJAVA:"\uf2e8",FileASPX:"\uf2e9",FileCSS:"\uf2ea",FileSass:"\uf2eb",FileLess:"\uf2ec",FileHTML:"\uf2ed",JavaScriptLanguage:"\uf2ee",CSharpLanguage:"\uf2ef",CSharp:"\uf2f0",VisualBasicLanguage:"\uf2f1",VB:"\uf2f2",CPlusPlusLanguage:"\uf2f3",CPlusPlus:"\uf2f4",FSharpLanguage:"\uf2f5",FSharp:"\uf2f6",TypeScriptLanguage:"\uf2f7",PythonLanguage:"\uf2f8",PY:"\uf2f9",CoffeeScript:"\uf2fa",MarkDownLanguage:"\uf2fb",FullWidth:"\uf2fe",FullWidthEdit:"\uf2ff",Plug:"\uf300",PlugSolid:"\uf301",PlugConnected:"\uf302",PlugDisconnected:"\uf303",UnlockSolid:"\uf304",Variable:"\uf305",Parameter:"\uf306",CommentUrgent:"\uf307",Storyboard:"\uf308",DiffInline:"\uf309",DiffSideBySide:"\uf30a",ImageDiff:"\uf30b",ImagePixel:"\uf30c",FileBug:"\uf30d",FileCode:"\uf30e",FileComment:"\uf30f",BusinessHoursSign:"\uf310",FileImage:"\uf311",FileSymlink:"\uf312",AutoFillTemplate:"\uf313",WorkItem:"\uf314",WorkItemBug:"\uf315",LogRemove:"\uf316",ColumnOptions:"\uf317",Packages:"\uf318",BuildIssue:"\uf319",AssessmentGroup:"\uf31a",VariableGroup:"\uf31b",FullHistory:"\uf31c",Wheelchair:"\uf31f",SingleColumnEdit:"\uf321",DoubleColumnEdit:"\uf322",TripleColumnEdit:"\uf323",ColumnLeftTwoThirdsEdit:"\uf324",ColumnRightTwoThirdsEdit:"\uf325",StreamLogo:"\uf329",PassiveAuthentication:"\uf32a",AlertSolid:"\uf331",MegaphoneSolid:"\uf332",TaskSolid:"\uf333",ConfigurationSolid:"\uf334",BugSolid:"\uf335",CrownSolid:"\uf336",Trophy2Solid:"\uf337",QuickNoteSolid:"\uf338",ConstructionConeSolid:"\uf339",PageListSolid:"\uf33a",PageListMirroredSolid:"\uf33b",StarburstSolid:"\uf33c",ReadingModeSolid:"\uf33d",SadSolid:"\uf33e",HealthSolid:"\uf33f",ShieldSolid:"\uf340",GiftBoxSolid:"\uf341",ShoppingCartSolid:"\uf342",MailSolid:"\uf343",ChatSolid:"\uf344",RibbonSolid:"\uf345"}},t)}function ky(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"\uf346",FinancialMirroredSolid:"\uf347",HeadsetSolid:"\uf348",PermissionsSolid:"\uf349",ParkingSolid:"\uf34a",ParkingMirroredSolid:"\uf34b",DiamondSolid:"\uf34c",AsteriskSolid:"\uf34d",OfflineStorageSolid:"\uf34e",BankSolid:"\uf34f",DecisionSolid:"\uf350",Parachute:"\uf351",ParachuteSolid:"\uf352",FiltersSolid:"\uf353",ColorSolid:"\uf354",ReviewSolid:"\uf355",ReviewRequestSolid:"\uf356",ReviewRequestMirroredSolid:"\uf357",ReviewResponseSolid:"\uf358",FeedbackRequestSolid:"\uf359",FeedbackRequestMirroredSolid:"\uf35a",FeedbackResponseSolid:"\uf35b",WorkItemBar:"\uf35c",WorkItemBarSolid:"\uf35d",Separator:"\uf35e",NavigateExternalInline:"\uf35f",PlanView:"\uf360",TimelineMatrixView:"\uf361",EngineeringGroup:"\uf362",ProjectCollection:"\uf363",CaretBottomRightCenter8:"\uf364",CaretBottomLeftCenter8:"\uf365",CaretTopRightCenter8:"\uf366",CaretTopLeftCenter8:"\uf367",DonutChart:"\uf368",ChevronUnfold10:"\uf369",ChevronFold10:"\uf36a",DoubleChevronDown8:"\uf36b",DoubleChevronUp8:"\uf36c",DoubleChevronLeft8:"\uf36d",DoubleChevronRight8:"\uf36e",ChevronDownEnd6:"\uf36f",ChevronUpEnd6:"\uf370",ChevronLeftEnd6:"\uf371",ChevronRightEnd6:"\uf372",ContextMenu:"\uf37c",AzureAPIManagement:"\uf37f",AzureServiceEndpoint:"\uf380",VSTSLogo:"\uf381",VSTSAltLogo1:"\uf382",VSTSAltLogo2:"\uf383",FileTypeSolution:"\uf387",WordLogoInverse16:"\uf390",WordLogo16:"\uf391",WordLogoFill16:"\uf392",PowerPointLogoInverse16:"\uf393",PowerPointLogo16:"\uf394",PowerPointLogoFill16:"\uf395",ExcelLogoInverse16:"\uf396",ExcelLogo16:"\uf397",ExcelLogoFill16:"\uf398",OneNoteLogoInverse16:"\uf399",OneNoteLogo16:"\uf39a",OneNoteLogoFill16:"\uf39b",OutlookLogoInverse16:"\uf39c",OutlookLogo16:"\uf39d",OutlookLogoFill16:"\uf39e",PublisherLogoInverse16:"\uf39f",PublisherLogo16:"\uf3a0",PublisherLogoFill16:"\uf3a1",VisioLogoInverse16:"\uf3a2",VisioLogo16:"\uf3a3",VisioLogoFill16:"\uf3a4",TestBeaker:"\uf3a5",TestBeakerSolid:"\uf3a6",TestExploreSolid:"\uf3a7",TestAutoSolid:"\uf3a8",TestUserSolid:"\uf3a9",TestImpactSolid:"\uf3aa",TestPlan:"\uf3ab",TestStep:"\uf3ac",TestParameter:"\uf3ad",TestSuite:"\uf3ae",TestCase:"\uf3af",Sprint:"\uf3b0",SignOut:"\uf3b1",TriggerApproval:"\uf3b2",Rocket:"\uf3b3",AzureKeyVault:"\uf3b4",Onboarding:"\uf3ba",Transition:"\uf3bc",LikeSolid:"\uf3bf",DislikeSolid:"\uf3c0",CRMCustomerInsightsApp:"\uf3c8",EditCreate:"\uf3c9",PlayReverseResume:"\uf3e4",PlayReverse:"\uf3e5",SearchData:"\uf3f1",UnSetColor:"\uf3f9",DeclineCall:"\uf405"}},t)}function wy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"\uf407",TeamsLogo16:"\uf40a",TeamsLogoFill16:"\uf40b",Spacer:"\uf40d",SkypeLogo16:"\uf40e",SkypeForBusinessLogo16:"\uf40f",SkypeForBusinessLogoFill16:"\uf410",FilterSolid:"\uf412",MailUndelivered:"\uf415",MailTentative:"\uf416",MailTentativeMirrored:"\uf417",MailReminder:"\uf418",ReceiptUndelivered:"\uf419",ReceiptTentative:"\uf41a",ReceiptTentativeMirrored:"\uf41b",Inbox:"\uf41c",IRMReply:"\uf41d",IRMReplyMirrored:"\uf41e",IRMForward:"\uf41f",IRMForwardMirrored:"\uf420",VoicemailIRM:"\uf421",EventAccepted:"\uf422",EventTentative:"\uf423",EventTentativeMirrored:"\uf424",EventDeclined:"\uf425",IDBadge:"\uf427",BackgroundColor:"\uf42b",OfficeFormsLogoInverse16:"\uf433",OfficeFormsLogo:"\uf434",OfficeFormsLogoFill:"\uf435",OfficeFormsLogo16:"\uf436",OfficeFormsLogoFill16:"\uf437",OfficeFormsLogoInverse24:"\uf43a",OfficeFormsLogo24:"\uf43b",OfficeFormsLogoFill24:"\uf43c",PageLock:"\uf43f",NotExecuted:"\uf440",NotImpactedSolid:"\uf441",FieldReadOnly:"\uf442",FieldRequired:"\uf443",BacklogBoard:"\uf444",ExternalBuild:"\uf445",ExternalTFVC:"\uf446",ExternalXAML:"\uf447",IssueSolid:"\uf448",DefectSolid:"\uf449",LadybugSolid:"\uf44a",NugetLogo:"\uf44c",TFVCLogo:"\uf44d",ProjectLogo32:"\uf47e",ProjectLogoFill32:"\uf47f",ProjectLogo16:"\uf480",ProjectLogoFill16:"\uf481",SwayLogo32:"\uf482",SwayLogoFill32:"\uf483",SwayLogo16:"\uf484",SwayLogoFill16:"\uf485",ClassNotebookLogo32:"\uf486",ClassNotebookLogoFill32:"\uf487",ClassNotebookLogo16:"\uf488",ClassNotebookLogoFill16:"\uf489",ClassNotebookLogoInverse32:"\uf48a",ClassNotebookLogoInverse16:"\uf48b",StaffNotebookLogo32:"\uf48c",StaffNotebookLogoFill32:"\uf48d",StaffNotebookLogo16:"\uf48e",StaffNotebookLogoFill16:"\uf48f",StaffNotebookLogoInverted32:"\uf490",StaffNotebookLogoInverted16:"\uf491",KaizalaLogo:"\uf492",TaskLogo:"\uf493",ProtectionCenterLogo32:"\uf494",GallatinLogo:"\uf496",Globe2:"\uf49a",Guitar:"\uf49b",Breakfast:"\uf49c",Brunch:"\uf49d",BeerMug:"\uf49e",Vacation:"\uf49f",Teeth:"\uf4a0",Taxi:"\uf4a1",Chopsticks:"\uf4a2",SyncOccurence:"\uf4a3",UnsyncOccurence:"\uf4a4",GIF:"\uf4a9",PrimaryCalendar:"\uf4ae",SearchCalendar:"\uf4af",VideoOff:"\uf4b0",MicrosoftFlowLogo:"\uf4b1",BusinessCenterLogo:"\uf4b2",ToDoLogoBottom:"\uf4b3",ToDoLogoTop:"\uf4b4",EditSolid12:"\uf4b5",EditSolidMirrored12:"\uf4b6",UneditableSolid12:"\uf4b7",UneditableSolidMirrored12:"\uf4b8",UneditableMirrored:"\uf4b9",AdminALogo32:"\uf4ba",AdminALogoFill32:"\uf4bb",ToDoLogoInverse:"\uf4bc"}},t)}function Iy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"\uf4bd",WaffleOffice365:"\uf4e0",ImageSearch:"\uf4e8",NewsSearch:"\uf4e9",VideoSearch:"\uf4ea",R:"\uf4eb",FontColorA:"\uf4ec",FontColorSwatch:"\uf4ed",LightWeight:"\uf4ee",NormalWeight:"\uf4ef",SemiboldWeight:"\uf4f0",GroupObject:"\uf4f1",UngroupObject:"\uf4f2",AlignHorizontalLeft:"\uf4f3",AlignHorizontalCenter:"\uf4f4",AlignHorizontalRight:"\uf4f5",AlignVerticalTop:"\uf4f6",AlignVerticalCenter:"\uf4f7",AlignVerticalBottom:"\uf4f8",HorizontalDistributeCenter:"\uf4f9",VerticalDistributeCenter:"\uf4fa",Ellipse:"\uf4fb",Line:"\uf4fc",Octagon:"\uf4fd",Hexagon:"\uf4fe",Pentagon:"\uf4ff",RightTriangle:"\uf500",HalfCircle:"\uf501",QuarterCircle:"\uf502",ThreeQuarterCircle:"\uf503","6PointStar":"\uf504","12PointStar":"\uf505",ArrangeBringToFront:"\uf506",ArrangeSendToBack:"\uf507",ArrangeSendBackward:"\uf508",ArrangeBringForward:"\uf509",BorderDash:"\uf50a",BorderDot:"\uf50b",LineStyle:"\uf50c",LineThickness:"\uf50d",WindowEdit:"\uf50e",HintText:"\uf50f",MediaAdd:"\uf510",AnchorLock:"\uf511",AutoHeight:"\uf512",ChartSeries:"\uf513",ChartXAngle:"\uf514",ChartYAngle:"\uf515",Combobox:"\uf516",LineSpacing:"\uf517",Padding:"\uf518",PaddingTop:"\uf519",PaddingBottom:"\uf51a",PaddingLeft:"\uf51b",PaddingRight:"\uf51c",NavigationFlipper:"\uf51d",AlignJustify:"\uf51e",TextOverflow:"\uf51f",VisualsFolder:"\uf520",VisualsStore:"\uf521",PictureCenter:"\uf522",PictureFill:"\uf523",PicturePosition:"\uf524",PictureStretch:"\uf525",PictureTile:"\uf526",Slider:"\uf527",SliderHandleSize:"\uf528",DefaultRatio:"\uf529",NumberSequence:"\uf52a",GUID:"\uf52b",ReportAdd:"\uf52c",DashboardAdd:"\uf52d",MapPinSolid:"\uf52e",WebPublish:"\uf52f",PieSingleSolid:"\uf530",BlockedSolid:"\uf531",DrillDown:"\uf532",DrillDownSolid:"\uf533",DrillExpand:"\uf534",DrillShow:"\uf535",SpecialEvent:"\uf536",OneDriveFolder16:"\uf53b",FunctionalManagerDashboard:"\uf542",BIDashboard:"\uf543",CodeEdit:"\uf544",RenewalCurrent:"\uf545",RenewalFuture:"\uf546",SplitObject:"\uf547",BulkUpload:"\uf548",DownloadDocument:"\uf549",GreetingCard:"\uf54b",Flower:"\uf54e",WaitlistConfirm:"\uf550",WaitlistConfirmMirrored:"\uf551",LaptopSecure:"\uf552",DragObject:"\uf553",EntryView:"\uf554",EntryDecline:"\uf555",ContactCardSettings:"\uf556",ContactCardSettingsMirrored:"\uf557"}},t)}function Py(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"\uf558",CalendarSettingsMirrored:"\uf559",HardDriveLock:"\uf55a",HardDriveUnlock:"\uf55b",AccountManagement:"\uf55c",ReportWarning:"\uf569",TransitionPop:"\uf5b2",TransitionPush:"\uf5b3",TransitionEffect:"\uf5b4",LookupEntities:"\uf5b5",ExploreData:"\uf5b6",AddBookmark:"\uf5b7",SearchBookmark:"\uf5b8",DrillThrough:"\uf5b9",MasterDatabase:"\uf5ba",CertifiedDatabase:"\uf5bb",MaximumValue:"\uf5bc",MinimumValue:"\uf5bd",VisualStudioIDELogo32:"\uf5d0",PasteAsText:"\uf5d5",PasteAsCode:"\uf5d6",BrowserTab:"\uf5d7",BrowserTabScreenshot:"\uf5d8",DesktopScreenshot:"\uf5d9",FileYML:"\uf5da",ClipboardSolid:"\uf5dc",FabricUserFolder:"\uf5e5",FabricNetworkFolder:"\uf5e6",BullseyeTarget:"\uf5f0",AnalyticsView:"\uf5f1",Video360Generic:"\uf609",Untag:"\uf60b",Leave:"\uf627",Trending12:"\uf62d",Blocked12:"\uf62e",Warning12:"\uf62f",CheckedOutByOther12:"\uf630",CheckedOutByYou12:"\uf631",CircleShapeSolid:"\uf63c",SquareShapeSolid:"\uf63d",TriangleShapeSolid:"\uf63e",DropShapeSolid:"\uf63f",RectangleShapeSolid:"\uf640",ZoomToFit:"\uf649",InsertColumnsLeft:"\uf64a",InsertColumnsRight:"\uf64b",InsertRowsAbove:"\uf64c",InsertRowsBelow:"\uf64d",DeleteColumns:"\uf64e",DeleteRows:"\uf64f",DeleteRowsMirrored:"\uf650",DeleteTable:"\uf651",AccountBrowser:"\uf652",VersionControlPush:"\uf664",StackedColumnChart2:"\uf666",TripleColumnWide:"\uf66e",QuadColumn:"\uf66f",WhiteBoardApp16:"\uf673",WhiteBoardApp32:"\uf674",PinnedSolid:"\uf676",InsertSignatureLine:"\uf677",ArrangeByFrom:"\uf678",Phishing:"\uf679",CreateMailRule:"\uf67a",PublishCourse:"\uf699",DictionaryRemove:"\uf69a",UserRemove:"\uf69b",UserEvent:"\uf69c",Encryption:"\uf69d",PasswordField:"\uf6aa",OpenInNewTab:"\uf6ab",Hide3:"\uf6ac",VerifiedBrandSolid:"\uf6ad",MarkAsProtected:"\uf6ae",AuthenticatorApp:"\uf6b1",WebTemplate:"\uf6b2",DefenderTVM:"\uf6b3",MedalSolid:"\uf6b9",D365TalentLearn:"\uf6bb",D365TalentInsight:"\uf6bc",D365TalentHRCore:"\uf6bd",BacklogList:"\uf6bf",ButtonControl:"\uf6c0",TableGroup:"\uf6d9",MountainClimbing:"\uf6db",TagUnknown:"\uf6df",TagUnknownMirror:"\uf6e0",TagUnknown12:"\uf6e1",TagUnknown12Mirror:"\uf6e2",Link12:"\uf6e3",Presentation:"\uf6e4",Presentation12:"\uf6e5",Lock12:"\uf6e6",BuildDefinition:"\uf6e9",ReleaseDefinition:"\uf6ea",SaveTemplate:"\uf6ec",UserGauge:"\uf6ed",BlockedSiteSolid12:"\uf70a",TagSolid:"\uf70e",OfficeChat:"\uf70f"}},t)}function Ty(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"\uf710",MailSchedule:"\uf72e",WarningSolid:"\uf736",Blocked2Solid:"\uf737",SkypeCircleArrow:"\uf747",SkypeArrow:"\uf748",SyncStatus:"\uf751",SyncStatusSolid:"\uf752",ProjectDocument:"\uf759",ToDoLogoOutline:"\uf75b",VisioOnlineLogoFill32:"\uf75f",VisioOnlineLogo32:"\uf760",VisioOnlineLogoCloud32:"\uf761",VisioDiagramSync:"\uf762",Event12:"\uf763",EventDateMissed12:"\uf764",UserOptional:"\uf767",ResponsesMenu:"\uf768",DoubleDownArrow:"\uf769",DistributeDown:"\uf76a",BookmarkReport:"\uf76b",FilterSettings:"\uf76c",GripperDotsVertical:"\uf772",MailAttached:"\uf774",AddIn:"\uf775",LinkedDatabase:"\uf779",TableLink:"\uf77a",PromotedDatabase:"\uf77d",BarChartVerticalFilter:"\uf77e",BarChartVerticalFilterSolid:"\uf77f",MicOff2:"\uf781",MicrosoftTranslatorLogo:"\uf782",ShowTimeAs:"\uf787",FileRequest:"\uf789",WorkItemAlert:"\uf78f",PowerBILogo16:"\uf790",PowerBILogoBackplate16:"\uf791",BulletedListText:"\uf792",BulletedListBullet:"\uf793",BulletedListTextMirrored:"\uf794",BulletedListBulletMirrored:"\uf795",NumberedListText:"\uf796",NumberedListNumber:"\uf797",NumberedListTextMirrored:"\uf798",NumberedListNumberMirrored:"\uf799",RemoveLinkChain:"\uf79a",RemoveLinkX:"\uf79b",FabricTextHighlight:"\uf79c",ClearFormattingA:"\uf79d",ClearFormattingEraser:"\uf79e",Photo2Fill:"\uf79f",IncreaseIndentText:"\uf7a0",IncreaseIndentArrow:"\uf7a1",DecreaseIndentText:"\uf7a2",DecreaseIndentArrow:"\uf7a3",IncreaseIndentTextMirrored:"\uf7a4",IncreaseIndentArrowMirrored:"\uf7a5",DecreaseIndentTextMirrored:"\uf7a6",DecreaseIndentArrowMirrored:"\uf7a7",CheckListText:"\uf7a8",CheckListCheck:"\uf7a9",CheckListTextMirrored:"\uf7aa",CheckListCheckMirrored:"\uf7ab",NumberSymbol:"\uf7ac",Coupon:"\uf7bc",VerifiedBrand:"\uf7bd",ReleaseGate:"\uf7be",ReleaseGateCheck:"\uf7bf",ReleaseGateError:"\uf7c0",M365InvoicingLogo:"\uf7c1",RemoveFromShoppingList:"\uf7d5",ShieldAlert:"\uf7d7",FabricTextHighlightComposite:"\uf7da",Dataflows:"\uf7dd",GenericScanFilled:"\uf7de",DiagnosticDataBarTooltip:"\uf7df",SaveToMobile:"\uf7e0",Orientation2:"\uf7e1",ScreenCast:"\uf7e2",ShowGrid:"\uf7e3",SnapToGrid:"\uf7e4",ContactList:"\uf7e5",NewMail:"\uf7ea",EyeShadow:"\uf7eb",FabricFolderConfirm:"\uf7ff",InformationBarriers:"\uf803",CommentActive:"\uf804",ColumnVerticalSectionEdit:"\uf806",WavingHand:"\uf807",ShakeDevice:"\uf80a",SmartGlassRemote:"\uf80b",Rotate90Clockwise:"\uf80d",Rotate90CounterClockwise:"\uf80e",CampaignTemplate:"\uf811",ChartTemplate:"\uf812",PageListFilter:"\uf813",SecondaryNav:"\uf814",ColumnVerticalSection:"\uf81e",SkypeCircleSlash:"\uf825",SkypeSlash:"\uf826"}},t)}function Dy(e,t){void 0===e&&(e=""),Bd({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"\uf828",DuplicateRow:"\uf82a",RemoveFromTrash:"\uf82b",MailOptions:"\uf82c",Childof:"\uf82d",Footer:"\uf82e",Header:"\uf82f",BarChartVerticalFill:"\uf830",StackedColumnChart2Fill:"\uf831",PlainText:"\uf834",AccessibiltyChecker:"\uf835",DatabaseSync:"\uf842",ReservationOrders:"\uf845",TabOneColumn:"\uf849",TabTwoColumn:"\uf84a",TabThreeColumn:"\uf84b",BulletedTreeList:"\uf84c",MicrosoftTranslatorLogoGreen:"\uf852",MicrosoftTranslatorLogoBlue:"\uf853",InternalInvestigation:"\uf854",AddReaction:"\uf85d",ContactHeart:"\uf862",VisuallyImpaired:"\uf866",EventToDoLogo:"\uf869",Variable2:"\uf86d",ModelingView:"\uf871",DisconnectVirtualMachine:"\uf873",ReportLock:"\uf875",Uneditable2:"\uf876",Uneditable2Mirrored:"\uf877",BarChartVerticalEdit:"\uf89d",GlobalNavButtonActive:"\uf89f",PollResults:"\uf8a0",Rerun:"\uf8a1",QandA:"\uf8a2",QandAMirror:"\uf8a3",BookAnswers:"\uf8a4",AlertSettings:"\uf8b6",TrimStart:"\uf8bb",TrimEnd:"\uf8bc",TableComputed:"\uf8f5",DecreaseIndentLegacy:"\ue290",IncreaseIndentLegacy:"\ue291",SizeLegacy:"\ue2b2"}},t)}var Ay=function(){Od("trash","delete"),Od("onedrive","onedrivelogo"),Od("alertsolid12","eventdatemissed12"),Od("sixpointstar","6pointstar"),Od("twelvepointstar","12pointstar"),Od("toggleon","toggleleft"),Od("toggleoff","toggleright")};Kd("@fluentui/font-icons-mdl2","8.5.25");var Ry="".concat("https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002","/assets/icons/"),Ny=ic();function My(e,t){var n,r;void 0===e&&(e=(null===(n=null===Ny||void 0===Ny?void 0:Ny.FabricConfig)||void 0===n?void 0:n.iconBaseUrl)||(null===(r=null===Ny||void 0===Ny?void 0:Ny.FabricConfig)||void 0===r?void 0:r.fontBaseUrl)||Ry),[py,hy,my,fy,gy,vy,yy,by,Cy,Sy,xy,_y,Ey,ky,wy,Iy,Py,Ty,Dy].forEach((function(n){return n(e,t)})),Ay()}var Fy=function(e,t){var n=function(e){r=r.filter((function(t){return t.substr(0,e.length)!==e}))};if(t){var r=Object.keys(t).filter((function(e){return-1!==e.indexOf("-")}));n("aria-"),n("data-"),r.length>0&&Ag(e,"Invalid props: ".concat(r),1)}},By=function(e,t){return e.palette[t]||e.semanticColors[t]},Oy=new Set(["Accept","Add","AddFriend","AddGroup","AddMedium","AddTo","Admin","Airplane","AllApps","AppIconDefaultAdd","AppIconDefaultList","Apps","AskAParent","AuthenticatorApp","Back","BingLogo","BirthdayCake","BlockContact","Blocked","BoardActivityFeed","BrokenFile","BulletedList","BumperLeft","BumperRight","ButtonA","ButtonB","ButtonX","ButtonY","Calendar","CalendarReply","Camera","Cancel","Car","CellPhone","CellPhonePermissions","CheckMark","ChevronDown","ChevronDownMed","ChevronDownSmall","ChevronLeft","ChevronLeftMed","ChevronLeftSmall","ChevronRight","ChevronRightMed","ChevronRightSmall","ChevronUp","ChevronUpMed","ChevronUpSmall","ChromeClose","ChromeMaximize","ChromeMinimize","CircleFill","CircleFillBadge12","CircleRing","CityNext2","ClearFilter","Clock","Cloud","CloudUpload","CompassNW","Completed","CompletedSolid","Contact","ContactCircle","ContactSolid","ConvertTo","Copy","CriticalErrorSolid","DataConnectionLibrary","DateTime","DefenderApp","Delete","DeviceFamily","DeviceLaptopNoPic","Devices","Devices2","Devices3","DeviceTag","Diagnostic","Diamond","DisconnectDevice","Dislike","Download","DpadDown","DpadLeft","DpadRight","DpadUp","Dynamics365Logo","EdgeLogo","EditContact","EditListPencil","Education","Error","ErrorBadge","Family","FamilySafety","Favicon","FavoriteStar","Feedback","FileExplorer","FilterAlt","Financial","Flag","Folder","FollowUser","Forward","FullCircleMask","Game","GenericApp","Giftbox","GitHubLogo","Globe","Globe2","Group","HardDrive","Headset","Health","Heart","HeartBroken","Help","Hide","History","Home","HourGlass","ImageOff","Important","Info","InfoSolid","InkingColorOutline","Insights","Installation","InternetSharing","Jogging","LaptopSecure","LaptopSelected","Leisure","Like","Link","LinkedInLogo","LocaleLanguage","Lock","Mail","Manage","MapPin","Media","Message","Microphone","Microsoft365Logo","MicrosoftLogo","MobBattery0","MobBattery1","MobBattery10","MobBattery2","MobBattery3","MobBattery4","MobBattery5","MobBattery6","MobBattery7","MobBattery8","MobBattery9","Money","More","MoreVertical","MultiplayerJoinChallenge","MultiSelect","MyMoviesTV","MyNetwork","NavigateExternalInline","Oem","OfficeLogo","OneDriveLogo","OpenInNewTab","OpenInNewWindow","OutlookLogoInverse","Package","PassiveAuthentication","Pause","PaymentCard","PaymentCardArt128","PC1","People","PeopleSettings","Permissions","PersonWork","Photo2","Photo2Remove","PhotosApp","PictureFill","PieSingle","Pin","Pinned","Play","POI","PopExpand","PowerButton","PreviewLink","Print","ProtectedDocument","Pulse","QRCode","RadioBullet","ReadingMode","Recent","Refresh","RemoveCircle","Repair","RevealPasswordMedium","RewardsLogo","Ringer","Safe","Savings","ScreenTime","Search","Send","Settings","SettingsApp","SettingsSync","Share","Shield","ShieldTask","ShieldTaskSolid","Shirt","Shop","ShoppingCart","Signin","SignOut","Silver","SkypeLogo","Snooze","SortDown","SortUp","SpeedHigh","StarburstSuggested","StatusCircle","StatusCircle7","StatusCircleBlock2","StatusCircleCheckmark","StatusCircleExclamation","StatusCircleOuter","StatusErrorCircle7","StatusErrorFull","StatusWarning","Stop","Stopwatch","StoreLogo16","Street","Subscriptions","Switch","Sync","System","Tablet","Tag","TagSolid","TeamsLogo","TextSortAscending","TextSortDescending","ThisPC","Ticket","Toolbox","TriggerLeft","TriggerRight","Trophy","TVMonitor","TwitterLogo","Undo","Unknown","Unlock","UpdateRestore","Video","ViewDashboard","Volume","Warning","WarningSolid","WebSearch","Website","WhatsThis","Wifi","WindowsLogo","Work","XboxController","XboxGamePass","XboxGold","XboxLogo","XboxOneConsole"]),Ly="AMC Icons",Hy=function(t){var n=t.iconName,r=t.size,o=void 0===r?"16px":r,i=t.color,a=t.disabled,s=void 0!==a&&a,l=t["aria-label"],c=(0,e.__rest)(t,["iconName","size","color","disabled","aria-label"]);ll("Icon",c.id),Fy("Icon",c);var u=dg(),d=Oy.has(n)?n:"BrokenFile",p=Vy(u,o,i,s);return(0,Gt.useEffect)((function(){Dg("Icon",[function(){if(!Oy.has(n))return"Invalid icon name: ".concat(n,". Please refer to the TwoUI Icon component for a list of all valid icon names.")}])}),[n]),jt().createElement("span",(0,e.__assign)({role:l?"img":"presentation","aria-hidden":!l,"data-icon-name":d,className:d,style:p,"aria-label":l},c))},Vy=function(t,n,r,o){var i=o?"neutralTertiaryAlt":r;return(0,e.__assign)((0,e.__assign)({fontFamily:Ly},i&&{color:By(t,i)}),{fontSize:n})},zy=function(e){var t=[],n={};e.forEach((function(e){Oy.has(e)&&(t.push(e),n[e]=jt().createElement(Hy,{iconName:e}))})),function(e){for(var t=Nd.__options,n=function(e){var n=Fd(e);Nd[n]?delete Nd[n]:t.disableWarnings||Rd('The icon "'.concat(e,'" tried to unregister but was not registered.')),Nd.__remapped[n]&&delete Nd.__remapped[n],Object.keys(Nd.__remapped).forEach((function(e){Nd.__remapped[e]===n&&delete Nd.__remapped[e]}))},r=0,o=e;r<o.length;r++)n(o[r])}(t),Bd({icons:n})},Uy=zg(),Wy=function(e,t){Gt.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},Gy=function(t,n){n.as;var r=n.disabled,o=n.target,i=n.href,a=(n.theme,n.getStyles,n.styles,n.componentRef,n.underline,(0,e.__rest)(n,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"===typeof t?"a"===t?(0,e.__assign)({target:o,href:r?void 0:i},a):"button"===t?(0,e.__assign)({type:"button",disabled:r},a):(0,e.__assign)((0,e.__assign)({},a),{disabled:r}):(0,e.__assign)({target:o,href:i,disabled:r},a)},jy=Gt.forwardRef((function(t,n){var r=function(t,n){var r=t.as,o=t.className,i=t.disabled,a=t.href,s=t.onClick,l=t.styles,c=t.theme,u=t.underline,d=Gt.useRef(null),p=Sm(d,n);Wy(t,d),um(d);var h=Uy(l,{className:o,isButton:!a,isDisabled:i,isUnderlined:u,theme:c}),m=r||(a?"a":"button");return{state:{},slots:{root:m},slotProps:{root:(0,e.__assign)((0,e.__assign)({},Gy(m,t)),{"aria-disabled":i,className:h.root,onClick:function(e){i?e.preventDefault():s&&s(e)},ref:p})}}}(t,n),o=r.slots,i=r.slotProps;return Gt.createElement(o.root,(0,e.__assign)({},i.root))}));jy.displayName="LinkBase";var qy,Ky,Yy={root:"ms-Link"},Xy=Ng(jy,(function(e){var t,n,r,o,i,a,s,l=e.className,c=e.isButton,u=e.isDisabled,d=e.isUnderlined,p=e.theme,h=p.semanticColors,m=h.link,f=h.linkHovered,g=h.disabledText,v=h.focusBorder,y=Ju(Yy,p);return{root:[y.root,p.fonts.medium,{color:m,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:d?"underline":"none",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px ".concat(v," inset"),outline:"1px auto ".concat(v),selectors:(n={},n[Iu]={outline:"1px solid WindowText"},n)}},t[Iu]={borderBottom:"none"},t)},c&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(r={},r[Iu]={color:"LinkText",forcedColorAdjust:"none"},r)},!c&&{selectors:(o={},o[Iu]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},u&&["is-disabled",{color:g,cursor:"default"},{selectors:(i={"&:link, &:visited":{pointerEvents:"none"}},i[Iu]={color:"GrayText"},i)}],!u&&{selectors:{"&:active, &:hover, &:active:hover":{color:f,textDecoration:"underline",selectors:(a={},a[Iu]={color:"LinkText"},a)},"&:focus":{color:m,selectors:(s={},s[Iu]={color:"LinkText"},s)}}},y.root,l]}}),void 0,{scope:"Link"}),Qy={"semi-bold":Cu.semibold,bold:Cu.bold},Zy=function(e,t){return{disabled:e.palette.neutralTertiary,error:e.palette.redDark,white:e.palette.neutralHigh}[t]},Jy="1.4",$y="1.2",eb=function(t,n,r,o){var i,a=function(e,t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S,x,_,E,k,w,I,P,T;return{xxlPageBanner:{fontSize:"80px",fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:$y,fontFamily:null===(n=e.fonts)||void 0===n?void 0:n.large.font,hoverColor:e.palette.neutralPrimary},xlPageHeader:{fontSize:"64px",fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:$y,fontFamily:null===(r=e.fonts)||void 0===r?void 0:r.large.font,hoverColor:e.palette.neutralPrimary},pageBanner:{fontSize:bu.superLarge,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(o=e.fonts)||void 0===o?void 0:o.large.font,hoverColor:e.palette.neutralPrimary},pageTitle:{fontSize:bu.xxLargePlus,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(i=e.fonts)||void 0===i?void 0:i.large.font,hoverColor:e.palette.neutralPrimary},pageHeader:{fontSize:bu.xxLarge,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(a=e.fonts)||void 0===a?void 0:a.large.font,hoverColor:e.palette.neutralPrimary},statusHeader:{fontSize:bu.xLargePlus,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(s=e.fonts)||void 0===s?void 0:s.medium.font,hoverColor:e.palette.neutralPrimary},bodyLargeRegular:{fontSize:bu.xLargePlus,fontWeight:Cu.regular,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(l=e.fonts)||void 0===l?void 0:l.medium.font,hoverColor:e.palette.neutralPrimary},paneHeader:{fontSize:bu.xLarge,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(c=e.fonts)||void 0===c?void 0:c.medium.font,hoverColor:e.palette.neutralPrimary},paneThemeTitle:{fontSize:bu.large,fontWeight:Cu.semibold,color:e.palette.themePrimary,lineHeight:Jy,fontFamily:null===(u=e.fonts)||void 0===u?void 0:u.medium.font,hoverColor:e.palette.themePrimary},paneTitle:{fontSize:bu.large,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(d=e.fonts)||void 0===d?void 0:d.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumThemeRegular:{fontSize:bu.large,fontWeight:Cu.regular,lineHeight:Jy,color:e.palette.themePrimary,fontFamily:null===(p=e.fonts)||void 0===p?void 0:p.medium.font,hoverColor:e.palette.themePrimary},bodyMediumRegular:{fontSize:bu.large,fontWeight:Cu.regular,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(h=e.fonts)||void 0===h?void 0:h.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumSecondaryRegular:{fontSize:bu.large,fontWeight:Cu.regular,color:e.palette.neutralSecondary,lineHeight:Jy,fontFamily:null===(m=e.fonts)||void 0===m?void 0:m.medium.font,hoverColor:e.palette.neutralSecondary},headerErrorText:{fontSize:bu.mediumPlus,fontWeight:Cu.semibold,color:e.semanticColors.errorBlockIcon,lineHeight:Jy,fontFamily:null===(f=e.fonts)||void 0===f?void 0:f.medium.font,hoverColor:e.semanticColors.errorBlockIcon},subjectTitle:{fontSize:bu.mediumPlus,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(g=e.fonts)||void 0===g?void 0:g.medium.font,hoverColor:e.palette.neutralPrimary},errorBlockIcon:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.semanticColors.errorBlockIcon,lineHeight:Jy,fontFamily:null===(v=e.fonts)||void 0===v?void 0:v.medium.font,hoverColor:e.semanticColors.errorBlockIcon},cautionYellowText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.semanticColors.cautionYellow,lineHeight:Jy,fontFamily:null===(y=e.fonts)||void 0===y?void 0:y.medium.font,hoverColor:e.semanticColors.cautionYellow},bodySuccessText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.semanticColors.messageWebSuccess,lineHeight:Jy,fontFamily:null===(b=e.fonts)||void 0===b?void 0:b.medium.font,hoverColor:e.semanticColors.messageWebSuccess},bodyThemeDarkText:{fontSize:bu.medium,fontWeight:Cu.semibold,color:e.palette.themeDarkAlt,lineHeight:Jy,fontFamily:null===(C=e.fonts)||void 0===C?void 0:C.medium.font,hoverColor:e.palette.themeDarkAlt},bodyThemeText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.palette.themePrimary,lineHeight:Jy,fontFamily:null===(S=e.fonts)||void 0===S?void 0:S.medium.font,hoverColor:e.palette.themeDark},headerText:{fontSize:bu.medium,fontWeight:Cu.semibold,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(x=e.fonts)||void 0===x?void 0:x.medium.font,hoverColor:e.palette.neutralPrimary},bodyTertiaryText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.palette.neutralTertiary,lineHeight:Jy,fontFamily:null===(_=e.fonts)||void 0===_?void 0:_.medium.font,hoverColor:e.palette.neutralTertiary},bodySecondaryText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.palette.neutralSecondary,lineHeight:Jy,fontFamily:null===(E=e.fonts)||void 0===E?void 0:E.medium.font,hoverColor:e.palette.neutralSecondary},bodyPrimaryText:{fontSize:bu.medium,fontWeight:Cu.regular,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(k=e.fonts)||void 0===k?void 0:k.medium.font,hoverColor:e.palette.neutralPrimary},metadataText:{fontSize:bu.small,fontWeight:Cu.regular,color:e.palette.neutralSecondary,lineHeight:Jy,fontFamily:null===(w=e.fonts)||void 0===w?void 0:w.small.font,hoverColor:e.palette.neutralSecondary},captionText:{fontSize:bu.xSmall,fontWeight:Cu.regular,color:e.palette.neutralPrimary,lineHeight:Jy,fontFamily:null===(I=e.fonts)||void 0===I?void 0:I.small.font,hoverColor:e.palette.neutralPrimary},superscript:{fontSize:bu.xSmall,fontWeight:Cu.regular,color:e.palette.themePrimary,lineHeight:Jy,fontFamily:null===(P=e.fonts)||void 0===P?void 0:P.small.font,hoverColor:e.palette.themePrimary},paneCautionTitle:{fontSize:bu.large,fontWeight:Cu.semibold,color:e.semanticColors.cautionYellow,lineHeight:Jy,fontFamily:null===(T=e.fonts)||void 0===T?void 0:T.medium.font,hoverColor:e.semanticColors.cautionYellow}}[t]}(t,n),s=(0,e.__assign)((0,e.__assign)({},a),{fontWeight:r?Qy[r]:a.fontWeight,color:o?Zy(t,o):a.color,fontSize:a.fontSize,lineHeight:a.lineHeight});return(0,e.__assign)((0,e.__assign)({},s),{selectors:(i={},i[Iu]={color:"windowtext"},i)})},tb=yg((function(t){if(null==t.children)return null;t.block,t.className;var n=t.as,r=void 0===n?"span":n,o=(t.variant,t.nowrap,(0,e.__rest)(t,["block","className","as","variant","nowrap"]));return hg(gg(t,{root:r}).root,(0,e.__assign)({},Qh(o,Ph)))}),{displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),nb=function(t){var n=t.tag,r=t.variant,o=void 0===r?"paneHeader":r,i=t.block,a=t.nowrap,s=t.weightOverride,l=t.colorOverride,c=t.children,u=(0,e.__rest)(t,["tag","variant","block","nowrap","weightOverride","colorOverride","children"]);ll("Heading",u.id),Fy("Heading",u);var d=dg(),p=eb(d,o,s,l);return jt().createElement(tb,(0,e.__assign)({as:n,block:i,nowrap:a,styles:{root:{fontSize:p.fontSize,fontWeight:p.fontWeight,lineHeight:p.lineHeight,fontFamily:p.fontFamily,selectors:p.selectors,color:p.color}}},u),c)};!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(qy||(qy={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Ky||(Ky={}));var rb=zg(),ob=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.type,r=t.size,o=t.ariaLabel,i=t.ariaLive,a=t.styles,s=t.label,l=t.theme,c=t.className,u=t.labelPosition,d=o,p=Qh(this.props,Xh,["size"]),h=r;void 0===h&&void 0!==n&&(h=n===Ky.large?qy.large:qy.medium);var m=rb(a,{theme:l,size:h,className:c,labelPosition:u});return Gt.createElement("div",(0,e.__assign)({},p,{className:m.root}),Gt.createElement("div",{className:m.circle}),s&&Gt.createElement("div",{className:m.label},s),d&&Gt.createElement("div",{role:"status","aria-live":i},Gt.createElement(qg,null,Gt.createElement("div",{className:m.screenReaderText},d))))},n.defaultProps={size:qy.medium,ariaLive:"polite",labelPosition:"bottom"},n}(Gt.Component),ib={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},ab=Ku((function(){return Cc({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),sb=Ng(ob,(function(t){var n,r=t.theme,o=t.size,i=t.className,a=t.labelPosition,s=r.palette,l=Ju(ib,r);return{root:[l.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===a&&{flexDirection:"column-reverse"},"right"===a&&{flexDirection:"row"},"left"===a&&{flexDirection:"row-reverse"},i],circle:[l.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+s.themeLight,borderTopColor:s.themePrimary,animationName:ab(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(n={},n[Iu]=(0,e.__assign)({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},o===qy.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===qy.small&&["ms-Spinner--small",{width:16,height:16}],o===qy.medium&&["ms-Spinner--medium",{width:20,height:20}],o===qy.large&&["ms-Spinner--large",{width:28,height:28}]],label:[l.label,r.fonts.small,{color:s.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===a&&{margin:"0 0 8px"},"right"===a&&{margin:"0 0 0 8px"},"left"===a&&{margin:"0 8px 0 0"}],screenReaderText:Vu}}),void 0,{scope:"Spinner"}),lb=zg({cacheSize:100}),cb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.as,r=void 0===n?"label":n,o=t.children,i=t.className,a=t.disabled,s=t.styles,l=t.required,c=t.theme,u=lb(s,{className:i,disabled:a,required:l,theme:c});return Gt.createElement(r,(0,e.__assign)({},Qh(this.props,Xh),{className:u.root}),o)},n}(Gt.Component),ub=Ng(cb,(function(t){var n,r=t.theme,o=t.className,i=t.disabled,a=t.required,s=r.semanticColors,l=Cu.semibold,c=s.bodyText,u=s.disabledBodyText,d=s.errorText;return{root:["ms-Label",r.fonts.medium,{fontWeight:l,color:c,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(n={},n[Iu]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},a&&{selectors:{"::after":{content:"' *'",color:d,paddingRight:12}}},o]}}),void 0,{scope:"Label"}),db="100ms",pb={rest:Qp.depth4,hover:Qp.depth8,controls:Qp.depth16,surface:Qp.depth64},hb={root:{position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"}},mb=function(e,t){return function(){return e>t?"The total number of slots passed to the SlotStackItems (".concat(e,")\n    is greater than the total passed to the SlotStack (").concat(t,")"):void 0}},fb=function(e){return function(){return jt().isValidElement(e)&&e.type===gb?void 0:"SlotStack only accepts children of type SlotStackItem."}};var gb=function(){return jt().createElement(jt().Fragment,null)},vb=function(t){var n=t.children,r=(0,e.__rest)(t,["children"]),o=jt().Children.toArray(n).filter((function(e){return!!e})).map((function(t){return Dg("SlotStack",[fb(t)]),jt().createElement(Cb,(0,e.__assign)({},t.props,{key:t.key||void 0}))}));return jt().createElement(bb,(0,e.__assign)({type:"slots"},r,{children:o}))},yb=function(e){return function(){return jt().isValidElement(e)&&e.type===Cb&&e.props.slots?void 0:'<SlotStack type="slots"> only accepts children of type <StackItem slot="x">.'}},bb=function(t){var n=t.type,r=t.children,o=t.childrenGap,i=t.horizontal,a=t.height,s=t.width,l=t.maxHeight,c=t.maxWidth,u=t.overflow,d=t.tabIndex,p=t.margin,h=t.padding,m=t.backgroundColor,f=t.reversed,g=void 0!==f&&f,v=t.textAlignment,y=t.totalSlots,b=t.wrap,C=void 0!==b&&b,S=t.withBorder,x=void 0!==S&&S,_=t.boxShadow,E=void 0!==_&&_,k=t.borderRadius,w=(0,e.__rest)(t,["type","children","childrenGap","horizontal","height","width","maxHeight","maxWidth","overflow","tabIndex","margin","padding","backgroundColor","reversed","textAlignment","totalSlots","wrap","withBorder","boxShadow","borderRadius"]);Fy("Stack",w);var I=dg(),P={root:{}},T={};if(T.childrenGap="slots"===n?16:o,l&&(T.maxHeight=l),c&&(T.maxWidth=c),u&&(P.root.overflow=u),p&&(P.root.margin=p),h&&(P.root.padding=h),a&&(P.root.height=a),s&&(P.root.width=s),x&&(P.root.borderWidth="1px",P.root.borderStyle="solid",P.root.borderColor=I.palette.neutralSecondary,P.root.borderRadius="2px"),v&&(P.root["text-align"]=v),m&&(P.root["background-color"]=I.palette[m]),E&&(P.root.boxShadow=pb.rest),k&&(P.root["border-radius"]=k),"slots"===n){var D=function(t,n){var r=t.reduce((function(e,t){return e+t.props.slots}),0);return Dg("SlotStack",[mb(r,n)]),t.map((function(t){var r=t.props,o=r.slots,i=(0,e.__rest)(r,["slots"]),a=o/n,s=16*(1-a),l="calc(".concat(100*a,"% - ").concat(s,"px)");return jt().createElement(Cb,(0,e.__assign)({},i,{width:l,key:t.key||void 0}))}))}((Array.isArray(r)?r:[r]).map((function(e){return Dg("Stack",[yb(e)]),e})),y);return jt().createElement(Tg,(0,e.__assign)({horizontal:!0,reversed:g,styles:P,tokens:T,wrap:!1},w,{doNotRenderFalsyValues:!0}),D)}return jt().createElement(Tg,(0,e.__assign)({horizontal:i,reversed:g,styles:P,tokens:T,wrap:C,tabIndex:d},w,{doNotRenderFalsyValues:!0}),r)},Cb=function(t){var n=t.children,r=void 0===n?jt().createElement(jt().Fragment,null):n,o=t.margin,i=t.height,a=t.padding,s=t.width,l=t.boxSizing,c=t.textAlignment,u=(0,e.__rest)(t,["children","margin","height","padding","width","boxSizing","textAlignment"]);Fy("StackItem",u);var d={root:{}};return o&&(d.root.margin=o),a&&(d.root.padding=a),i&&(d.root.height=i),s&&(d.root.width=s),l&&(d.root.boxSizing=l),c&&(d.root["text-align"]=c),jt().createElement(Ig,(0,e.__assign)({styles:d,tokens:{}},u),r)},Sb=function(e,t){switch(t){case"Error":return e.palette.redDark;case"Saving":case"Saved":return e.palette.themePrimary;case"Light":return e.palette.neutralSecondary}},xb=function(t){var n=t.labelState,r=t.disabled,o=t.required,i=t.htmlFor,a=t.children,s=(0,e.__rest)(t,["labelState","disabled","required","htmlFor","children"]);ll("Label",s.id),Fy("Label",s);var l=dg(),c=function(e,t){switch(t){case"Error":case"Saving":case"Saved":return{root:{height:16,fontWeight:"normal",fontSize:12,lineHeight:16,padding:0,color:Sb(e,t)}};case"Light":return{root:{fontWeight:"normal",color:Sb(e,t)}};default:return{root:{}}}}(l,n),u=jt().createElement(ub,(0,e.__assign)({disabled:r,required:o,htmlFor:i,styles:c},s),a);return void 0!==n&&"Error"!==n?jt().createElement(bb,{horizontal:!0,childrenGap:7},function(t,n){switch(n){case"Saving":return jt().createElement(sb,{ariaLive:"assertive",size:qy.xSmall});case"Saved":return jt().createElement(Hy,(0,e.__assign)({iconName:"CheckMark",size:"16px"},{styles:{root:{color:t.palette.blue}}}));default:return}}(l,n),u):u},_b=function(e){return!1===isNaN(Number(e))},Eb=function(){return navigator.userAgent.includes("rv:11.0")};var kb=function(e){return e.stopPropagation()},wb=function(t){var n,r=t.children,o=t.keycodes,i=void 0===o?[]:o,a=(0,e.__rest)(t,["children","keycodes"]);return ll("StopPropagation"),jt().createElement("div",{style:(n=a,"inline-block"===n.display?{display:"inline-block"}:n.grow?{height:"100%",width:"100%"}:void 0),onClick:kb,onKeyDown:function(e){return function(e,t){t.includes(e.keyCode)&&e.stopPropagation()}(e,i)},role:"presentation"},r)},Ib=function(t){var n=t.block,r=t.nowrap,o=t.variant,i=void 0===o?"bodyPrimaryText":o,a=t.colorOverride,s=t.weightOverride,l=t.children,c=t.disabled,u=void 0!==c&&c,d=(0,e.__rest)(t,["block","nowrap","variant","colorOverride","weightOverride","children","disabled"]);ll("Text",d.id),Fy("Text",d);var p=dg(),h=eb(p,i,s,u?"disabled":a);return jt().createElement(tb,(0,e.__assign)({block:n,nowrap:r,styles:{root:{fontSize:h.fontSize,fontWeight:h.fontWeight,lineHeight:h.lineHeight,fontFamily:h.fontFamily,selectors:h.selectors,color:h.color}}},d),l)};function Pb(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function Tb(e,t){return e&&e!==document.body?t(e)?e:Tb(Pb(e),t):null}var Db="data-portal-element";function Ab(e,t){var n=Tb(e,(function(e){return t===e||e.hasAttribute(Db)}));return null!==n&&n.hasAttribute(Db)}function Rb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Nb(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Rb(e,e[n],t[n]))}function Mb(e){Nb(e,{componentDidMount:Fb,componentDidUpdate:Bb,componentWillUnmount:Ob})}function Fb(){Lb(this.props.componentRef,this)}function Bb(e){e.componentRef!==this.props.componentRef&&(Lb(e.componentRef,null),Lb(this.props.componentRef,this))}function Ob(){Lb(this.props.componentRef,null)}function Lb(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var Hb,Vb=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=ic(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=ic(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var d=function t(n){var d=Date.now(),p=d-c,h=s?a-p:a;return p>=a&&(!n||s)?(c=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(t,h)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var m=function(e){h&&(r.clearTimeout(h),h=null),p=e},f=function(t){m(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(l&&n-d>=s&&(o=!0),d=n);var a=n-d,m=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:m=Math.min(m,u-g)),a>=s||v||o?f(n):null!==h&&t||!c||(h=r.setTimeout(e,m)),i},v=function(){return!!h},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return y.cancel=function(){v()&&m(Date.now())},y.flush=function(){return v()&&f(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=ic(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=ic(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function zb(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=Pb(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Hb||(Hb={}));function Ub(e,t,n){return qb(e,t,!0,!1,!1,n)}function Wb(e,t,n){return jb(e,t,!0,!1,!0,n)}function Gb(e,t){var n=qb(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(rC(n),!0)}function jb(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=Kb(t);if(o&&l&&(i||!Qb(t)&&!Zb(t))){var c=jb(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&Xb(c,!0)||!s)return c;var u=jb(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var p=jb(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&Xb(t,s))return t;var h=jb(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:jb(e,t.parentElement,!0,!1,!1,i,a,s))}function qb(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?Yb:Kb)(t);if(n&&c&&Xb(t,s))return t;if(!o&&c&&(i||!Qb(t)&&!Zb(t))){var u=qb(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}if(t===e)return null;var d=qb(e,t.nextElementSibling,!0,!0,!1,i,a,s,l);return d||(r?null:qb(e,t.parentElement,!1,!1,!0,i,a,s,l))}function Kb(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!==t&&void 0!==t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Yb(e){return!!e&&Kb(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Xb(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function Qb(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Zb(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Jb(e,t){return"true"!==function(e,t){var n=Tb(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var $b,eC,tC,nC=void 0;function rC(e){if(e){var t=ic(e);t&&(void 0!==nC&&t.cancelAnimationFrame(nC),nC=t.requestAnimationFrame((function(){e&&e.focus(),nC=void 0})))}}function oC(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}($b||($b={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(eC||(eC={}));var iC=0,aC=yc({overflow:"hidden !important"}),sC="data-is-scrollable",lC=function(e,t){if(e){var n=0,r=null;t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=dC(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),r=e}},cC=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},uC=function(e){e.preventDefault()};function dC(e){for(var t=e,n=nc(e);t&&t!==n.body;){if("true"===t.getAttribute(sC))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(sC)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=ic(e)),t}var pC,hC=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function mC(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var fC=((pC={})[bv]=mC($b.top,$b.left),pC[Cv]=mC($b.top),pC[Sv]=mC($b.top,$b.right),pC[xv]=mC($b.top,void 0,!0),pC[_v]=mC($b.bottom,$b.left),pC[Ev]=mC($b.bottom),pC[kv]=mC($b.bottom,$b.right),pC[wv]=mC($b.bottom,void 0,!0),pC[Iv]=mC($b.left,$b.top),pC[Pv]=mC($b.left),pC[Tv]=mC($b.left,$b.bottom),pC[Dv]=mC($b.right,$b.top),pC[Av]=mC($b.right),pC[Rv]=mC($b.right,$b.bottom),pC);function gC(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function vC(e,t){var n=[];return e.top<t.top&&n.push($b.top),e.bottom>t.bottom&&n.push($b.bottom),e.left<t.left&&n.push($b.left),e.right>t.right&&n.push($b.right),n}function yC(e,t){return e[$b[t]]}function bC(e,t,n){return e[$b[t]]=n,e}function CC(e,t){var n=RC(t);return(yC(e,n.positiveEdge)+yC(e,n.negativeEdge))/2}function SC(e,t){return e>0?t:-1*t}function xC(e,t){return SC(e,yC(t,e))}function _C(e,t,n){return SC(n,yC(e,n)-yC(t,n))}function EC(e,t,n,r){void 0===r&&(r=!0);var o=yC(e,t)-n,i=bC(e,t,n);return r&&(i=bC(e,-1*t,yC(e,-1*t)-o)),i}function kC(e,t,n,r){return void 0===r&&(r=0),EC(e,n,yC(t,n)+SC(n,r))}function wC(e,t,n){return xC(n,e)>xC(n,t)}function IC(e,t){for(var n=0,r=0,o=vC(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(_C(e,t,i),2)}return n}function PC(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,n,r,o){void 0===o&&(o=0);var i=[$b.left,$b.right,$b.bottom,$b.top];Dp()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,p=0;p<4;p++){if(wC(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var h=IC(s,n);(!a||h<a)&&(a=h,u=l,d=c),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(c=l,l=i.slice(-1)[0]),s=AC(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=AC(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=vC(c.elementRectangle,n),d=i?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:AC(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(c,t,o,a);if(gC(p.elementRectangle,n))return p;c=TC(vC(p.elementRectangle,n),c,n,d)}else c=TC(u,c,n,d);else c=TC(u,c,n,d);return c}function TC(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;if(r&&r===-1*a)s=EC(t.elementRectangle,a,yC(n,a),!1),t.forcedInBounds=!0;else wC(s=kC(t.elementRectangle,n,a),n,-1*a)||(s=EC(s,-1*a,yC(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function DC(e,t,n){var r=RC(t).positiveEdge;return EC(e,r,n-(CC(e,t)-yC(e,r)))}function AC(e,t,n,r,o){void 0===r&&(r=0);var i=new hC(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?kC(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=SC(-1*n,r);return EC(e,-1*n,yC(t,n)+o)}(i,t,s,r),a)?i=kC(i,t,a):i=DC(i,l,CC(t,s));return i}function RC(e){return e===$b.top||e===$b.bottom?{positiveEdge:$b.left,negativeEdge:$b.right}:{positiveEdge:$b.top,negativeEdge:$b.bottom}}function NC(e,t,n){return n&&Math.abs(_C(e,n,t))>Math.abs(_C(e,n,-1*t))?-1*t:t}function MC(e,t,n,r,o,i,a,s){var l,c={},u=zC(t),d=i?n:-1*n,p=o||RC(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&yC(e,t)===yC(n,t)}(e,(l=p,-1*l),r)||(p=NC(e,p,r)),c[$b[d]]=_C(e,u,d),c[$b[p]]=_C(e,u,p),s&&(c[$b[-1*d]]=_C(e,u,-1*d),c[$b[-1*p]]=_C(e,u,-1*p)),c}function FC(e){return Math.sqrt(e*e*2)}function BC(t,n,r){if(void 0===t&&(t=wv),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,e.__assign)({},fC[t]);return Dp()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?fC[n]:o):o}function OC(e,t,n){var r=CC(t,e),o=CC(n,e),i=RC(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function LC(e,t,n,r,o,i,a){var s=AC(e,t,r,o,a);return gC(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:PC(s,t,n,r,o,i,a)}function HC(t,n,r){var o=-1*t.targetEdge,i=new hC(0,t.elementRectangle.width,0,t.elementRectangle.height),a={},s=NC(t.elementRectangle,t.alignmentEdge?t.alignmentEdge:RC(o).positiveEdge,r),l=_C(t.elementRectangle,t.targetRectangle,o)>Math.abs(yC(n,o));return a[$b[o]]=yC(n,o),a[$b[s]]=_C(n,i,s),{elementPosition:(0,e.__assign)({},a),closestEdge:OC(t.targetEdge,n,i),targetEdge:o,hideBeak:!l}}function VC(e,t){var n=t.targetRectangle,r=RC(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=CC(n,t.targetEdge),s=new hC(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new hC(0,e,0,e);return wC(l=DC(l=EC(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-xC(o,t.elementRectangle)),s,o)?wC(l,s,i)||(l=kC(l,s,i)):l=kC(l,s,o),l}function zC(e){var t=e.getBoundingClientRect();return new hC(t.left,t.right,t.top,t.bottom)}function UC(e){return new hC(e.left,e.right,e.top,e.bottom)}function WC(t,n,r,o){var i=t.gapSpace?t.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new hC(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=zC(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new hC(i,s,a,l)}if(!gC(n,e))for(var c=0,u=vC(n,e);c<u.length;c++){var d=u[c];n[$b[d]]=e[$b[d]]}}else n=new hC(0,0,0,0);return n}(r,t.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=OC(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(BC(t.directionalHint,t.directionalHintForRTL,o),a,r,t.coverTarget,t.alignTargetEdge),l=LC(zC(n),a,r,s,i,t.directionalHintFixed,t.coverTarget);return(0,e.__assign)((0,e.__assign)({},l),{targetRectangle:a})}function GC(e,t,n,r,o){return{elementPosition:MC(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function jC(t,n,r,o,i){var a=t.isBeakVisible&&t.beakWidth||0,s=FC(a)/2+(t.gapSpace?t.gapSpace:0),l=t;l.gapSpace=s;var c=t.bounds?UC(t.bounds):new hC(0,window.innerWidth-function(){if(void 0===tC){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),tC=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return tC}(),0,window.innerHeight),u=WC(l,r,c,o),d=HC(u,VC(a,u),c);return(0,e.__assign)((0,e.__assign)({},GC(u,n,c,t.coverTarget,i)),{beakPosition:d})}function qC(e,t,n,r){return function(e,t,n,r){return jC(e,t,n,r,!0)}(e,t,n,r)}var KC=["TEMPLATE","STYLE","SCRIPT"];function YC(e){var t=nc(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null===a||void 0===a?void 0:a.toLowerCase())&&-1===KC.indexOf(i.tagName)&&n.push([i,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}function XC(){var e=Gt.useRef();return e.current||(e.current=new Vb),Gt.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function QC(e,t,n,r){var o=Gt.useRef(n);o.current=n,Gt.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return oC(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function ZC(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==ic()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function JC(e,t){var n=e.onRestoreFocus,r=void 0===n?ZC:n,o=Gt.useRef(),i=Gt.useRef(!1);Gt.useEffect((function(){return o.current=nc().activeElement,function(e){var t=nc(e),n=t&&t.activeElement;return!(!n||!zb(e,n))}(t.current)&&(i.current=!0),function(){var e;null===r||void 0===r||r({originalElement:o.current,containsFocus:i.current,documentContainsFocus:(null===(e=nc())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),QC(t,"focus",Gt.useCallback((function(){i.current=!0}),[]),!0),QC(t,"blur",Gt.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}var $C,eS=Gt.forwardRef((function(t,n){var r=Cm({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=Gt.useRef(),i=Sm(o,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;Gt.useEffect((function(){if(n&&t.current)return YC(t.current)}),[t,n])}(r,o),JC(r,o);var a=r.role,s=r.className,l=r.ariaLabel,c=r.ariaLabelledBy,u=r.ariaDescribedBy,d=r.style,p=r.children,h=r.onDismiss,m=function(e,t){var n=XC(),r=Gt.useState(!1),o=r[0],i=r[1];return Gt.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}o!==r&&i(r)}})),function(){return n.dispose()}})),o}(r,o),f=Gt.useCallback((function(e){if(e.which===yp)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return QC(qp(),"keydown",f),Gt.createElement("div",(0,e.__assign)({ref:i},Qh(r,Xh),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:f,style:(0,e.__assign)({overflowY:m?"scroll":void 0,outline:"none"},d)}),p)}));function tS(e,t){var n=Gt.useRef(),r=Gt.useRef(null),o=qp();if(!e||e!==n.current||"string"===typeof e){var i=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var a=nc(i);r.current=a?a.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,o]}eS.displayName="Popup";var nS=(($C={})[$b.top]=xu.slideUpIn10,$C[$b.bottom]=xu.slideDownIn10,$C[$b.left]=xu.slideLeftIn10,$C[$b.right]=xu.slideRightIn10,$C),rS=0,oS=0,iS={opacity:0,filter:"opacity(0)",pointerEvents:"none"},aS=["role","aria-roledescription"],sS={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:wv},lS=zg({disableCaching:!0});function cS(t,n,r,o,i){var a=Gt.useState(),s=a[0],l=a[1],c=Gt.useRef(0),u=Gt.useRef(),d=XC(),p=t.hidden,h=t.target,m=t.finalHeight,f=t.calloutMaxHeight,g=t.onPositioned,v=t.directionalHint;return Gt.useEffect((function(){if(!p){var a=d.requestAnimationFrame((function(){var a,d,p,v;if(n.current&&r){var y=(0,e.__assign)((0,e.__assign)({},t),{target:o.current,bounds:i()}),b=r.cloneNode(!0);b.style.maxHeight=f?"".concat(f):"",b.style.visibility="hidden",null===(a=r.parentElement)||void 0===a||a.appendChild(b);var C=u.current===h?s:void 0,S=m?qC(y,n.current,b,C):function(e,t,n,r){return jC(e,t,n,r)}(y,n.current,b,C);null===(d=r.parentElement)||void 0===d||d.removeChild(b),!s&&S||s&&S&&(v=S,!pS((p=s).elementPosition,v.elementPosition)||!pS(p.beakPosition.elementPosition,v.beakPosition.elementPosition))&&c.current<5?(c.current++,l(S)):c.current>0&&(c.current=0,null===g||void 0===g||g(s))}}),r);return u.current=h,function(){d.cancelAnimationFrame(a),u.current=void 0}}l(void 0),c.current=0}),[p,v,d,r,f,n,o,m,i,g,s,t,h]),s}var uS=Gt.memo(Gt.forwardRef((function(t,n){var r=Cm(sS,t),o=r.styles,i=r.style,a=r.ariaLabel,s=r.ariaDescribedBy,l=r.ariaLabelledBy,c=r.className,u=r.isBeakVisible,d=r.children,p=r.beakWidth,h=r.calloutWidth,m=r.calloutMaxWidth,f=r.calloutMinWidth,g=r.doNotLayer,v=r.finalHeight,y=r.hideOverflow,b=void 0===y?!!v:y,C=r.backgroundColor,S=r.calloutMaxHeight,x=r.onScroll,_=r.shouldRestoreFocus,E=void 0===_||_,k=r.target,w=r.hidden,I=r.onLayerMounted,P=r.popupProps,T=Gt.useRef(null),D=Gt.useState(null),A=D[0],R=D[1],N=Gt.useCallback((function(e){R(e)}),[]),M=Sm(T,n),F=tS(r.target,{current:A}),B=F[0],O=F[1],L=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?sS.minPagePadding:o,a=e.target,s=Gt.useState(!1),l=s[0],c=s[1],u=Gt.useRef(),d=Gt.useCallback((function(){if(!u.current||l){var e="function"===typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+i,left:e.left+i,right:e.right-i,bottom:e.bottom-i,width:e.width-2*i,height:e.height-2*i}),u.current=e,l&&c(!1)}return u.current}),[r,i,a,t,n,l]),p=XC();return QC(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),d}(r,B,O),H=cS(r,T,A,B,L),V=function(e,t,n){var r,o=e.calloutMaxHeight,i=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,l=e.hidden,c=Gt.useState(),u=c[0],d=c[1],p=null!==(r=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==r?r:{},h=p.top,m=p.bottom;return Gt.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},i=r.top,a=r.bottom;"number"===typeof h&&a?n=a-h:"number"===typeof m&&"number"===typeof i&&a&&(n=a-i-m),d(!o&&!l||o&&n&&o>n?n:o||void 0)}),[m,o,i,a,s,t,l,n,h]),u}(r,L,H),z=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,u=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,h=Gt.useRef(!1),m=XC(),f=av([function(){h.current=!0},function(){h.current=!1}]),g=!!t;return Gt.useEffect((function(){var e=function(e){g&&!s&&v(e)},t=function(e){l||p&&p(e)||null===a||void 0===a||a(e)},f=function(e){c||v(e)},v=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,s=n.current&&!zb(n.current,i);if(s&&h.current)h.current=!1;else if(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||u||i!==r.current&&!zb(r.current,i))){if(p&&p(e))return;null===a||void 0===a||a(e)}},y=function(e){d&&((!p||p(e))&&(p||c)||(null===o||void 0===o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null===a||void 0===a||a(e))},b=new Promise((function(n){m.setTimeout((function(){if(!i&&o){var r=[oC(o,"scroll",e,!0),oC(o,"resize",t,!0),oC(o.document.documentElement,"focus",f,!0),oC(o.document.documentElement,"click",f,!0),oC(o,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[i,m,n,r,o,a,d,u,c,l,s,g,p]),f}(r,H,T,B,O),U=z[0],W=z[1],G=(null===H||void 0===H?void 0:H.elementPosition.top)&&(null===H||void 0===H?void 0:H.elementPosition.bottom),j=(0,e.__assign)((0,e.__assign)({},null===H||void 0===H?void 0:H.elementPosition),{maxHeight:V});if(G&&(j.bottom=void 0),function(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=XC(),a=!!t;Gt.useEffect((function(){if(!r&&o&&a&&n){var e=i.requestAnimationFrame((function(){return Gb(n)}),n);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}(r,H,A),Gt.useEffect((function(){w||null===I||void 0===I||I()}),[w]),!O)return null;var q=b,K=u&&!!k,Y=lS(o,{theme:r.theme,className:c,overflowYHidden:q,calloutWidth:h,positions:H,beakWidth:p,backgroundColor:C,calloutMaxWidth:m,calloutMinWidth:f,doNotLayer:g}),X=(0,e.__assign)((0,e.__assign)({maxHeight:S||"100%"},i),q&&{overflowY:"hidden"}),Q=r.hidden?{visibility:"hidden"}:void 0;return Gt.createElement("div",{ref:M,className:Y.container,style:Q},Gt.createElement("div",(0,e.__assign)({},Qh(r,Xh,aS),{className:Gp(Y.root,H&&H.targetEdge&&nS[H.targetEdge]),style:H?(0,e.__assign)({},j):iS,tabIndex:-1,ref:N}),K&&Gt.createElement("div",{className:Y.beak,style:dS(H)}),K&&Gt.createElement("div",{className:Y.beakCurtain}),Gt.createElement(eS,(0,e.__assign)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:Y.calloutMain,onDismiss:r.onDismiss,onMouseDown:U,onMouseUp:W,onRestoreFocus:r.onRestoreFocus,onScroll:x,shouldRestoreFocus:E,style:X},P),d)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||em(e,t)}));function dS(t){var n,r,o=(0,e.__assign)((0,e.__assign)({},null===(n=null===t||void 0===t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null===t||void 0===t?void 0:t.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=oS,o.top=rS),o}function pS(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function hS(e){return{height:e,width:e}}uS.displayName="CalloutContentBase";var mS={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},fS=Ng(uS,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=Ju(mS,n),p=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Ru.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Iu]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},hS(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),gS=Gt.createContext(void 0),vS=function(){return function(){}};gS.Provider;function yS(t,n){void 0===t&&(t={});var r=CS(n)?n:function(t){return function(n){return t?(0,e.__assign)((0,e.__assign)({},n),t):n}}(n);return r(t)}function bS(t,n){return void 0===t&&(t={}),(CS(n)?n:function(t){void 0===t&&(t={});return function(n){var r=(0,e.__assign)({},n);for(var o in t)t.hasOwnProperty(o)&&(r[o]=(0,e.__assign)((0,e.__assign)({},n[o]),t[o]));return r}}(n))(t)}function CS(e){return"function"===typeof e}var SS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){ad.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){ad.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,t=this.props.contextTransform;return Gt.createElement(Yp.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:yS(r.settings,e.settings),scopedSettings:bS(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),Gt.createElement(Yp.Provider,{value:r},e.props.children)}))},n}(Gt.Component),xS=zg(),_S=Ku((function(t,n){return mh((0,e.__assign)((0,e.__assign)({},t),{rtl:n}))})),ES=Gt.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.applyTheme,a=t.applyThemeToBody,s=t.styles,l=xS(s,{theme:o,applyTheme:i,className:r}),c=Gt.useRef(null);return function(e,t,n){var r=t.bodyThemed;Gt.useEffect((function(){if(e){var t=nc(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,l,c),Gt.createElement(Gt.Fragment,null,function(t,n,r,o){var i=n.root,a=t.as,s=void 0===a?"div":a,l=t.dir,c=t.theme,u=Qh(t,Xh,["dir"]),d=function(e){var t=e.theme,n=e.dir,r=Dp(t)?"rtl":"ltr",o=Dp()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(t),p=d.rootDir,h=d.needsTheme,m=Gt.createElement(gm,{providerRef:r},Gt.createElement(s,(0,e.__assign)({dir:p},u,{className:i,ref:Sm(r,o)})));h&&(m=Gt.createElement(SS,{settings:{theme:_S(c,"rtl"===l)}},m));return m}(t,l,c,n))}));ES.displayName="FabricBase";var kS={fontFamily:"inherit"},wS={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},IS=Ng(ES,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[Ju(wS,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":kS,"& input":kS,"& textarea":kS},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});var PS={},TS={},DS="fluent-default-layer-host",AS="#".concat(DS);var RS,NS=tc()?Gt.useLayoutEffect:Gt.useEffect,MS=zg(),FS=Gt.forwardRef((function(t,n){var r=function(){var e;return null!==(e=Gt.useContext(gS))&&void 0!==e?e:vS}(),o=Gt.useRef(null),i=Sm(o,n),a=Gt.useRef(),s=Gt.useRef(null),l=Gt.useContext(cm),c=Gt.useState(!1),u=c[0],d=c[1],p=Gt.useCallback((function(e){var t,n=!!(null===(t=null===l||void 0===l?void 0:l.providerRef)||void 0===t?void 0:t.current)&&t.current.classList.contains(Nu);e&&n&&e.classList.add(Nu)}),[l]),h=t.children,m=t.className,f=t.eventBubblingEnabled,g=t.fabricProps,v=t.hostId,y=t.insertFirst,b=t.onLayerDidMount,C=void 0===b?function(){}:b,S=t.onLayerMounted,x=void 0===S?function(){}:S,_=t.onLayerWillUnmount,E=t.styles,k=t.theme,w=Sm(s,null===g||void 0===g?void 0:g.ref,p),I=MS(E,{theme:k,className:m,isNotHost:!v}),P=function(e){var t,n;if(v){var r=function(e){var t=TS[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var o=AS,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",DS),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},T=function(){null===_||void 0===_||_();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t=nc(o.current);if(t){var n=P(t);if(n){T();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=I.root,r.setAttribute(Db,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,o.current),y?n.insertBefore(r,n.firstChild):n.appendChild(r),a.current=r,d(!0)}}};return NS((function(){D(),v&&function(e,t){PS[e]||(PS[e]=[]),PS[e].push(t);var n=TS[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(v,D);var e=a.current?r(a.current):void 0;return function(){e&&e(),T(),v&&function(e,t){var n=PS[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete PS[e])}var o=TS[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(v,D)}}),[v]),Gt.useEffect((function(){a.current&&u&&(null===x||void 0===x||x(),null===C||void 0===C||C(),d(!1))}),[u,x,C]),Gt.createElement("span",{className:"ms-layer",ref:i},a.current&&nn.createPortal(Gt.createElement(gm,{layerRoot:!0,providerRef:w},Gt.createElement(IS,(0,e.__assign)({},!f&&function(){RS||(RS={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return RS[e]=BS})));return RS}(),g,{className:Gp(I.content,null===g||void 0===g?void 0:g.className),ref:w}),h)),a.current))}));FS.displayName="LayerBase";var BS=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var OS={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},LS=Ng(FS,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Ju(OS,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Ru.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),HS=Gt.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,i=(0,e.__rest)(t,["layerProps","doNotLayer"]),a=Gt.createElement(fS,(0,e.__assign)({},i,{doNotLayer:o,ref:n}));return o?a:Gt.createElement(LS,(0,e.__assign)({},r),a)}));HS.displayName="Callout";var VS,zS=zg(),US=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"===typeof t.content?Gt.createElement("p",{className:e._classNames.subText},t.content):Gt.createElement("div",{className:e._classNames.subText},t.content)},e}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.calloutProps,o=t.directionalHint,i=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,u=void 0===c?this._onRenderContent:c,d=t.targetElement,p=t.theme;return this._classNames=zS(a,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:l}),Gt.createElement(HS,(0,e.__assign)({target:d,directionalHint:o,directionalHintForRTL:i},r,Qh(this.props,Xh,["id"]),{className:this._classNames.root}),Gt.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},u(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:Cv,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(Gt.Component),WS=Ng(US,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,xu.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(VS||(VS={}));var GS=zg(),jS=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=Gt.createRef(),r._defaultTooltipId=bh("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Hb.Parent:return r._tooltipHost.current.parentElement;case Hb.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var t,o=r.props,i=o.overflowMode,a=o.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&(!function(e){return e.clientWidth<e.scrollWidth}(t=s)&&!function(e){return e.clientHeight<e.scrollHeight}(t)))return}if(!e.target||!Ab(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==VS.zero){var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===yp||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case VS.medium:return 300;case VS.long:return 500;default:return 0}},Mb(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Vb(r),r}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,r=t.children,o=t.content,i=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,u=void 0===c||c,d=t.tooltipProps,p=t.styles,h=t.theme;this._classNames=GS(p,{theme:h,className:s});var m=this.state.isTooltipVisible,f=l||this._defaultTooltipId,g=(0,e.__assign)((0,e.__assign)({id:"".concat(f,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:tm({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},Qh(this.props,Xh,["id"])),d),v=(null===d||void 0===d?void 0:d.onRenderContent)?d.onRenderContent(g,(function(e){return(null===e||void 0===e?void 0:e.content)?Gt.createElement(Gt.Fragment,null,e.content):null})):o,y=m&&!!v,b=u&&m&&v?f:void 0;return Gt.createElement("div",(0,e.__assign)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":b}),r,y&&Gt.createElement(WS,(0,e.__assign)({},g)),Gt.createElement("div",{hidden:!0,id:f,style:Vu},v))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:VS.medium},n}(Gt.Component),qS={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},KS=Ng(jS,(function(e){var t=e.className,n=e.theme;return{root:[Ju(qS,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),YS=function(e){return{backgroundColor:e.palette.neutralHigh,styles:{beakCurtain:{backgroundColor:e.palette.neutralHigh}}}},XS=function(e){var t=e.children,n=e.tooltipText,r=e.tooltipPosition;ll("TooltipHost");var o=dg();return jt().createElement(KS,{directionalHint:Nv[r||"top-center"],content:n,calloutProps:YS(o)},t)},QS=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},ZS=function(e){var t=e;return t.includes("px")&&(t=t.replace("px","")),+t},JS=function(e){return ZS(QS(e,"font-size"))},$S=function(e){var t=QS(e,"line-height");return"normal"===t?1.4*JS(e):ZS(t)},ex=function(e,t){return Math.round(e*t)},tx=function(t){var n,r=t.type,o=t.lines,i=void 0===o?1:o,a=t.stopPropagation,s=void 0===a||a,l=t.onTruncatedFocusable,c=void 0===l||l,u=t.onTruncated,d=t.lineHeight,p=(0,e.__rest)(t,["type","lines","stopPropagation","onTruncatedFocusable","onTruncated","lineHeight"]);ll("TruncatedText",p.id);var h=(0,Gt.useRef)(null),m=(0,Gt.useState)(void 0),f=m[0],g=m[1],v=(0,Gt.useState)(!1),y=v[0],b=v[1],C=function(){if(h.current){var e=function(e,t){var n=$S(e),r=ex(n,t);return e.scrollHeight>r}(h.current,i);b(e),e&&(null===u||void 0===u||u())}},S=function(){var e;(null===(e=h.current)||void 0===e?void 0:e.firstElementChild)&&g(JS(h.current.firstElementChild))};(0,Gt.useLayoutEffect)((function(){return window.addEventListener("resize",S),window.addEventListener("resize",C),function(){window.removeEventListener("resize",C),window.removeEventListener("resize",S)}}),[]),(0,Gt.useLayoutEffect)((function(){S()}),[h]),(0,Gt.useLayoutEffect)((function(){C()}),[f,p.children]);var x=y&&c?{"data-is-focusable":!0,tabIndex:0}:null,_=Eb()&&h.current?{height:ex($S(h.current),i),overflowY:"scroll"}:void 0,E=jt().createElement("span",(0,e.__assign)({ref:h},x,{style:(0,e.__assign)({fontSize:f,overflow:"hidden",boxSizing:"content-box",whiteSpace:"normal",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i,color:null!==(n=p.colorOverride)&&void 0!==n?n:void 0,lineHeight:null!==d&&void 0!==d?d:void 0},_)}),"heading"===r?jt().createElement(nb,(0,e.__assign)({},p)):jt().createElement(Ib,(0,e.__assign)({},p)));if(y&&!Eb()){var k=jt().createElement(XS,{tooltipText:p.children,tooltipPosition:"bottom-left"},E);return s?jt().createElement(wb,null,k):k}return E},nx=function(t){var n,r=t.children,o=t.disabled,i=t.truncatedLinkProps,a=t.textVariant,s=void 0===a?"bodyThemeText":a,l=t.underline,c=(0,e.__rest)(t,["children","disabled","truncatedLinkProps","textVariant","underline"]);ll("Hyperlink",c.id);var u,d,p,h=Di(),m=dg(),f="download"in c?c.download:void 0,g="href"in c?c.href:void 0;g||(g="#",o||(p=ei,u="to"in c?c.to:void 0,d="replace"in c?c.replace:void 0));var v=c.title,y=(0,e.__rest)(c,["title"]);delete y.textVariant,Fy("Hyperlink",y);var b=v||y["aria-label"];"string"!==typeof r&&hv(r,[nb,xb],"Hyperlink"),"target"in y&&(y.rel="noreferrer noopener");var C=eb(m,s,void 0,o?"disabled":void 0),S={root:(n={fontSize:C.fontSize,fontWeight:C.fontWeight,lineHeight:C.lineHeight,fontFamily:C.fontFamily,selectors:C.selectors,color:C.color,":hover":{color:C.hoverColor}},n[Iu]={color:"linktext",":focus > span":{color:"Highlight",outline:"1px solid Highlight"}},n)};return(0,Gt.useEffect)((function(){h.checkUrlAndReportHttp(g)}),[g]),jt().createElement(Xy,(0,e.__assign)({href:g,title:b,disabled:o,styles:S},y,{as:p,to:u,replace:d,download:f,underline:l}),i?jt().createElement(tx,{lines:i.lines,variant:s,stopPropagation:!1},r):r)},rx=function(t){var n,r=t.children,o=t.disabled,i=t.textVariant,a=void 0===i?"bodyThemeText":i,s=t.truncatedLinkProps,l=t.underline,c=(0,e.__rest)(t,["children","disabled","textVariant","truncatedLinkProps","underline"]);ll("NoHrefLink",c.id),Fy("NoHrefLink",c);var u=dg(),d=eb(u,a,void 0,o?"disabled":void 0),p={root:{fontSize:d.fontSize,fontWeight:d.fontWeight,lineHeight:d.lineHeight,fontFamily:d.fontFamily,selectors:d.selectors,color:d.color,":hover":{color:d.hoverColor}}};return o||(p.root.selectors=((n={})[Iu]={color:"linktext"},n["@media screen and (-ms-high-contrast: active)"]={color:"-ms-hotlight"},n)),jt().createElement(Xy,(0,e.__assign)({disabled:o,styles:p,underline:l},c),s?jt().createElement(tx,{lines:s.lines,variant:a,stopPropagation:!1},r):r)},ox=function(t){var n=t.textWithTokens,r=t.tokensAndValues,o=t.truncatedTextProps,i=(0,e.__rest)(t,["textWithTokens","tokensAndValues","truncatedTextProps"]);ll("RichText",i.id);var a=function(e){return e.split(_n).filter((function(e){return""!==e}))}(n);return o?jt().createElement(tx,(0,e.__assign)({},i,o),En(a,r,ix)):jt().createElement(Ib,(0,e.__assign)({},i),En(a,r,ix))},ix=function(t){var n=[rx],r=[nx],o=null===t||void 0===t?void 0:t.type;if(n.includes(o)){var i=t.props;return jt().createElement(rx,(0,e.__assign)({},i,{underline:!0}))}if(r.includes(o)){i=t.props;return jt().createElement(nx,(0,e.__assign)({},i,{underline:!0}))}return t},ax=function(e,t,n,r,o){var i,a,s;"wide"===t?a="480px":"narrow"===t&&(a="200px"),"thick"===o?s="8px":"thin"===o&&(s="4px");var l=eb(e,"metadataText");return{itemProgress:{padding:"0px",borderRadius:"4px"},itemName:{fontSize:l.fontSize,fontWeight:l.fontWeight,lineHeight:l.lineHeight,fontFamily:l.fontFamily,color:l.color,selectors:l.selectors},progressBar:{borderRadius:s,backgroundColor:n},progressTrack:(i={borderRadius:s,backgroundColor:r},i[Iu]={backgroundColor:"windowText"},i),root:{maxWidth:a}}},sx=function(e){return jt().createElement(bb,null,jt().createElement(ox,{textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues,truncatedTextProps:e.truncatedTextProps}))},lx=function(e){var t,n,r=e.label,o=e.labelTextVariant,i=void 0===o?"headerText":o,a=e.description,s=e.percentComplete,l=e.ariaValueText,c=e.ariaLabel,u=e.icon,d=e.usage,p=e.barColor,h=void 0===p?"themePrimary":p,m=e.trackColor,f=void 0===m?"neutralLight":m,g=e.barType,v=e.isStackStyle,y=e.size;ll("ProgressIndicator");var b,C=dg();b=g?"thick"===g?8:4:s||0===s?4:2;var S=null!==(t=C.palette[h])&&void 0!==t?t:C.semanticColors[h],x=null!==(n=C.palette[f])&&void 0!==n?n:C.semanticColors[f],_=jt().createElement(tx,{lines:3,variant:"metadataText"},a);return jt().createElement(dy,{styles:ax(C,y,S,x,g),label:jt().createElement(bb,{horizontal:!v,horizontalAlign:"space-between",wrap:!0},jt().createElement(bb,{horizontal:!0,childrenGap:5},u&&!v?jt().createElement(Hy,{iconName:u.iconName,size:u.size,color:u.color,disabled:u.disabled}):null,r?"string"===typeof r?jt().createElement(bb,null,jt().createElement(tx,{lines:2,variant:i},r)):sx(r):null),d?sx(d):null),description:_,percentComplete:s,ariaValueText:l,barHeight:b,ariaLabel:c})},cx=function(e,t,n){return{root:{minHeight:n,width:"100%",backgroundColor:t?e.palette.neutralMed:e.palette.neutralHigh,textAlign:"left",selectors:{":hover":{backgroundColor:e.palette.neutralLighter},":active":{backgroundColor:e.palette.neutralLight}}}}},ux=function(e){return{root:{width:e?"calc(100% - 48px)":"100%"}}},dx=function(e,t){var n="0px"!==t?"calc(".concat(t," + 8px)"):"8px",r="0px"!==t?"calc(".concat(t," + 16px)"):"16px";return{root:{padding:"start"===e?"0px ".concat(n," 0px 0px"):"0px 0px 0px ".concat(r)}}},px=function(e){return{root:{padding:"0px"!==e?"0px 0px 0px ".concat(e):void 0}}},hx=function(){return Dp()},mx=function(e){if(hx())switch(e){case"ChevronLeft":return"ChevronRight";case"ChevronRight":return"ChevronLeft";case"ChevronLeftSmall":return"ChevronRightSmall";case"ChevronRightSmall":return"ChevronLeftSmall";case"ChevronRightMed":return"ChevronLeftMed";case"ChevronLeftMed":return"ChevronRightMed";default:return e}return e},fx=function(){return lc()||navigator.language},gx=function(e,t){return Cx(e).toLocaleDateString(t||fx(),{year:"numeric",month:"numeric",day:"numeric"})},vx=function(e,t){return Cx(e).toLocaleDateString(t||fx(),{year:"numeric",month:"long",day:"numeric"})},yx=function(e,t){return Cx(e).toLocaleString(t||fx())},bx=function(e){return function(){return e?"string"===typeof e&&isNaN(Date.parse(e))?"dateTimeFormat: Unsupported timestamp format":void 0:"dateTimeFormat: timestamp not specified"}},Cx=function(e){Dg("dateTimeFormat",[bx(e)]);var t=e;return"string"===typeof e&&(t=new Date(e)),t},Sx=function(e,t,n){return{transform:"start"===n?xx(t):_x(t),transition:"transform 0.1s linear 0s",fontSize:"16px",fontFamily:"AMC Icons",color:e.palette.neutralSecondary}},xx=function(e){var t=hx(),n="rotate(0deg)";return e&&t&&(n="rotate(-90deg)"),e&&!t&&(n="rotate(90deg)"),n},_x=function(e){var t=hx(),n="rotate(0deg)";return e&&t&&(n="rotate(-180deg)"),e&&!t&&(n="rotate(180deg)"),n},Ex=function(e){var t=e.chevronPosition,n=void 0===t?"start":t,r=e.isShimmer,o=void 0!==r&&r,i=(0,Gt.useContext)(Cw),a=dg(),s="start"===n?mx("ChevronRightMed"):"ChevronDownMed";return jt().createElement("span",{role:o?void 0:"button","data-is-focusable":!0,tabIndex:0,"aria-expanded":o?void 0:i.drawerOpen,"aria-controls":i.drawerID,"aria-labelledby":o?void 0:i.drawerHeaderTitleId,"data-icon-name":s,className:s,style:Sx(a,i.drawerOpen,n),onClick:i.onClickDrawer,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),void 0!==i.onClickDrawer&&i.onClickDrawer(e))}})},kx=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var i;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,o||!1,!0),tm(a,r),i=t.dispatchEvent(a)}else if("undefined"!==typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],p=0;!1!==i&&p<d.length;p++){var h=d[p];h.objectCallback&&(i=h.objectCallback.call(h.parent,r))}t=o?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!==typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof r||r===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(t){function n(e,r){var o=t.call(this,e,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)wx(e,t,n[r])}(o,n.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}(0,e.__extends)(n,t),n.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},n.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},n.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(n.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_async",{get:function(){return this.__async||(this.__async=new Vb(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_events",{get:function(){return this.__events||(this.__events=new kx(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),n.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},n.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},n.prototype._warnDeprecations=function(e){this.className,this.props},n.prototype._warnMutuallyExclusive=function(e){this.className,this.props},n.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},n.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(Gt.Component);function wx(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function Ix(){return null}function Px(t,n,r){return function(o){var i,a=(i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,e.__extends)(a,i),a.prototype.componentDidMount=function(){ad.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){ad.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return Gt.createElement(Yp.Consumer,null,(function(a){var s=ad.getSettings(n,t,a.customizations),l=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles((0,e.__assign)((0,e.__assign)({},s),l))),r&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var c=zd(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=c}return Gt.createElement(o,(0,e.__assign)({},s,l,{styles:i._styleCache.merged}))}return Gt.createElement(o,(0,e.__assign)({},s,l))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(Gt.Component),i.displayName="Customized"+t,i);return function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(o,a)}}function Tx(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function Dx(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ax,Rx,Nx,Mx,Fx=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"===typeof o?o(t):o&&(o.current=t)}}},Bx=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&Dx(t.refs,e)||(t.resolver=Fx(t)),t.refs=e,t.resolver}};function Ox(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(Ax||(Ax={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(Rx||(Rx={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(Nx||(Nx={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(Mx||(Mx={}));var Lx=zg(),Hx=/\.svg$/i;var Vx=Gt.forwardRef((function(t,n){var r=Gt.useRef(),o=Gt.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,i=e.src,a=Gt.useState(Mx.notLoaded),s=a[0],l=a[1];NS((function(){l(Mx.notLoaded)}),[i]),Gt.useEffect((function(){s===Mx.notLoaded&&t.current&&(i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&Hx.test(i))&&l(Mx.loaded)})),Gt.useEffect((function(){null===n||void 0===n||n(s)}),[s]);var c=Gt.useCallback((function(e){null===r||void 0===r||r(e),i&&l(Mx.loaded)}),[i,r]),u=Gt.useCallback((function(e){null===o||void 0===o||o(e),l(Mx.error)}),[o]);return[s,c,u]}(t,o),a=i[0],s=i[1],l=i[2],c=Qh(t,Yh,["width","height"]),u=t.src,d=t.alt,p=t.width,h=t.height,m=t.shouldFadeIn,f=void 0===m||m,g=t.shouldStartVisible,v=t.className,y=t.imageFit,b=t.role,C=t.maximizeFrame,S=t.styles,x=t.theme,_=t.loading,E=function(e,t,n,r){var o=Gt.useRef(t),i=Gt.useRef();(void 0===i||o.current===Mx.notLoaded&&t===Mx.loaded)&&(i.current=function(e,t,n,r){var o=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===Mx.loaded&&(o===Rx.cover||o===Rx.contain||o===Rx.centerContain||o===Rx.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==Rx.centerContain&&o!==Rx.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return Nx.landscape}return Nx.portrait}(e,t,n,r));return o.current=t,i.current}(t,a,o,r),k=Lx(S,{theme:x,className:v,width:p,height:h,maximizeFrame:C,shouldFadeIn:f,shouldStartVisible:g,isLoaded:a===Mx.loaded||a===Mx.notLoaded&&t.shouldStartVisible,isLandscape:E===Nx.landscape,isCenter:y===Rx.center,isCenterContain:y===Rx.centerContain,isCenterCover:y===Rx.centerCover,isContain:y===Rx.contain,isCover:y===Rx.cover,isNone:y===Rx.none,isError:a===Mx.error,isNotImageFit:void 0===y});return Gt.createElement("div",{className:k.root,style:{width:p,height:h},ref:r},Gt.createElement("img",(0,e.__assign)({},c,{onLoad:s,onError:l,key:"fabricImage"+t.src||"",className:k.image,ref:Sm(o,n),src:u,alt:d,role:b,loading:_})))}));Vx.displayName="ImageBase";var zx={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Ux=Ng(Vx,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,f=e.isError,g=e.isNotImageFit,v=e.theme,y=Ju(zx,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=ic(),S=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,x=u&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&xu.fadeIn400,(c||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[y.imageCenter,b],u&&[y.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&x,!S&&b],d&&[y.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&x,!S&&b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],m&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",f&&"is-error"]}}),void 0,{scope:"Image"},!0);Ux.displayName="Image";var Wx=Wd({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),Gx="ms-Icon",jx=Ku((function(e){var t=function(e){var t=void 0,n=Nd.__options;if(e=e?Fd(e):"",e=Nd.__remapped[e]||e)if(t=Nd[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(Zl(r.fontFace),r.isRegistered=!0),r.className||(r.className=yc(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Rd('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null}),void 0,!0),qx=function(t){var n=t.iconName,r=t.className,o=t.style,i=void 0===o?{}:o,a=jx(n)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,u=a.mergeImageProps,d=Qh(t,Ph),p=t["aria-label"]||t.title,h=t["aria-label"]||t["aria-labelledby"]||t.title?{role:u?void 0:"img"}:{"aria-hidden":!0},m=l;return u&&"object"===typeof l&&"object"===typeof l.props&&p&&(m=Gt.cloneElement(l,{alt:p})),Gt.createElement("i",(0,e.__assign)({"data-icon-name":n},h,d,u?{title:void 0,"aria-label":void 0}:{},{className:Gp(Gx,Wx.root,s,!n&&Wx.placeholder,r),style:(0,e.__assign)({fontFamily:c},i)}),m)},Kx=(Ku((function(e,t,n){return qx({iconName:e,className:t,"aria-label":n})})),zg({cacheSize:100})),Yx=function(t){function n(e){var n=t.call(this,e)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===Mx.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.children,r=t.className,o=t.styles,i=t.iconName,a=t.imageErrorAs,s=t.theme,l="string"===typeof i&&0===i.length,c=!!this.props.imageProps||this.props.iconType===Ax.image||this.props.iconType===Ax.Image,u=jx(i)||{},d=u.iconClassName,p=u.children,h=u.mergeImageProps,m=Kx(o,{theme:s,className:r,iconClassName:d,isImage:c,isPlaceholder:l}),f=c?"span":"i",g=Qh(this.props,Ph,["aria-label"]),v=this.state.imageLoadError,y=(0,e.__assign)((0,e.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=v&&a||Ux,C=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||C||this.props.title,x=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"])?{role:c||h?void 0:"img","aria-label":c||h?void 0:S}:{"aria-hidden":!0},_=p;return h&&p&&"object"===typeof p&&S&&(_=Gt.cloneElement(p,{alt:S})),Gt.createElement(f,(0,e.__assign)({"data-icon-name":i},x,g,h?{title:void 0,"aria-label":void 0}:{},{className:m.root}),c?Gt.createElement(b,(0,e.__assign)({},y)):n||_)},n}(Gt.Component),Xx=Ng(Yx,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&Wx.placeholder,Wx.root,o&&Wx.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);Xx.displayName="Icon";var Qx=function(t){var n=t.className,r=t.imageProps,o=Qh(t,Ph,["aria-label","aria-labelledby","title","aria-describedby"]),i=r.alt||t["aria-label"],a=i||t["aria-labelledby"]||t.title||r["aria-label"]||r["aria-labelledby"]||r.title,s={"aria-labelledby":t["aria-labelledby"],"aria-describedby":t["aria-describedby"],title:t.title},l=a?{}:{"aria-hidden":!0};return Gt.createElement("div",(0,e.__assign)({},l,o,{className:Gp(Gx,Wx.root,Wx.image,n)}),Gt.createElement(Ux,(0,e.__assign)({},s,r,{alt:a?i:""})))};var Zx,Jx=Yu((function(e){return Yu((function(t){var n=Yu((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function $x(e,t){return Jx(e)(t)}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Zx||(Zx={}));var e_,t_={none:0,all:1,inputOnly:2};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(e_||(e_={}));var n_,r_="data-is-focusable",o_="data-focuszone-id",i_="tabindex",a_="data-no-vertical-wrap",s_="data-no-horizontal-wrap",l_=999999999,c_=-999999999;function u_(e,t){var n;"function"===typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null===t||void 0===t?void 0:t.ctrlKey,metaKey:null===t||void 0===t?void 0:t.metaKey,shiftKey:null===t||void 0===t?void 0:t.shiftKey,altKey:null===t||void 0===t?void 0:t.altKey,bubbles:null===t||void 0===t?void 0:t.bubbles,cancelable:null===t||void 0===t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var d_,p_={},h_=new Set,m_=["text","number","password","email","tel","url","search","textarea"],f_=!1,g_=function(t){function n(e){var r,o,i,a,s=this;(s=t.call(this,e)||this)._root=Gt.createRef(),s._mergedRef=Bx(),s._onFocus=function(e){if(!s._portalContainsElement(e.target)){var t,n=s.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,l=n.onFocus,c=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=s._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==s._root.current;){if(Xb(p)&&s._isImmediateDescendantOfZone(p)){t=p;break}p=Pb(p,f_)}if(c&&e.target===s._root.current){var h=u&&"function"===typeof u&&s._root.current&&u(s._root.current);h&&Xb(h)?(t=h,h.focus()):(s.focus(!0),s._activeElement&&(t=null))}var m=!s._activeElement;t&&t!==s._activeElement&&((d||m)&&s._setFocusAlignment(t,!0,!0),s._activeElement=t,m&&s._updateTabIndexes()),r&&r(s._activeElement,e),(i||o)&&e.stopPropagation(),l?l(e):a&&a()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(e){if(!s._portalContainsElement(e.target)&&!s.props.disabled){for(var t=e.target,n=[];t&&t!==s._root.current;)n.push(t),t=Pb(t,f_);for(;n.length&&((t=n.pop())&&Xb(t)&&s._setActiveElement(t,!0),!Qb(t)););}},s._onKeyDown=function(e,t){if(!s._portalContainsElement(e.target)){var n=s.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!o&&(s.props.onKeyDown&&s.props.onKeyDown(e),!e.isDefaultPrevented()&&(s._getDocument().activeElement!==s._root.current||!s._isInnerZone))){if((l&&l(e)||i&&i(e))&&s._isImmediateDescendantOfZone(e.target)){var c=s._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!Zb(e.target))return;if(!s.focusElement(qb(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case bp:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(e.target,e))break;return;case Ep:if(r!==e_.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusLeft(t)))break;return;case wp:if(r!==e_.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusRight(t)))break;return;case kp:if(r!==e_.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusUp()))break;return;case Ip:if(r!==e_.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusDown()))break;return;case Sp:if(!a&&s._moveFocusPaging(!0))break;return;case Cp:if(!a&&s._moveFocusPaging(!1))break;return;case fp:if(s.props.allowTabKey||s.props.handleTabKey===t_.all||s.props.handleTabKey===t_.inputOnly&&s._isElementInput(e.target)){var u=!1;if(s._processingTabKey=!0,r!==e_.vertical&&s._shouldWrapFocus(s._activeElement,s_))u=(Dp(t)?!e.shiftKey:e.shiftKey)?s._moveFocusLeft(t):s._moveFocusRight(t);else u=e.shiftKey?s._moveFocusUp():s._moveFocusDown();if(s._processingTabKey=!1,u)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case _p:if(s._isContentEditableElement(e.target)||s._isElementInput(e.target)&&!s._shouldInputLoseFocus(e.target,!1))return!1;var d=s._root.current&&s._root.current.firstChild;if(s._root.current&&d&&s.focusElement(qb(s._root.current,d,!0)))break;return;case xp:if(s._isContentEditableElement(e.target)||s._isElementInput(e.target)&&!s._shouldInputLoseFocus(e.target,!0))return!1;var p=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(jb(s._root.current,p,!0,!0,!0)))break;return;case gp:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(e,t,n){var r=s._focusAlignment.left||s._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),l=Math.floor(t.top);return e&&o>i||!e&&a<l?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):s._shouldWrapFocus(s._activeElement,a_)?l_:c_},Mb(s),s._id=bh("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=null===(o=null!==(r=e.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===o||o;return s._shouldRaiseClicksOnEnter=null!==(i=e.shouldRaiseClicksOnEnter)&&void 0!==i?i:l,s._shouldRaiseClicksOnSpace=null!==(a=e.shouldRaiseClicksOnSpace)&&void 0!==a?a:l,s}return(0,e.__extends)(n,t),n.getOuterZones=function(){return h_.size},n._onKeyDownCapture=function(e){e.which===fp&&h_.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(p_[this._id]=this,e){for(var t=Pb(e,f_);t&&t!==this._getDocument().body&&1===t.nodeType;){if(Qb(t)){this._isInnerZone=!0;break}t=Pb(t,f_)}this._isInnerZone||(h_.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!zb(this._root.current,this._activeElement,f_)||this._defaultFocusElement&&!zb(this._root.current,this._defaultFocusElement,f_))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return Xb(n)&&Kb(n)?n:qb(e,n,!0)||jb(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete p_[this._id],this._isInnerZone||(h_.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,r=n.as,o=n.elementType,i=n.rootProps,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=Qh(this.props,Ph),u=r||o||"div";this._evaluateFocusBeforeRender();var d,p=(void 0===d&&(d=!1),!0===d&&(kd=Ed({},d)),kd);return Gt.createElement(u,(0,e.__assign)({"aria-labelledby":s,"aria-describedby":a},c,i,{className:Gp((n_||(n_=yc({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),n_),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(r_)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=p_[n.getAttribute(o_)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&zb(this._root.current,this._activeElement)&&Xb(this._activeElement)&&(!t||Yb(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(qb(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},n.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(jb(this._root.current,e,!0,!0,!0))}return!1},n.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},n.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=zb(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Pb(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},n.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(Qb(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(r_)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return u_(n,t),!0;n=Pb(n,f_)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Qb(e))return p_[e.getAttribute(o_)];for(var t=e.firstElementChild;t;){if(Qb(t))return p_[t.getAttribute(o_)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},n.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===e_.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?qb(this._root.current,o):jb(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(qb(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(jb(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,a_)?l_:c_:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,a_)?l_:c_:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,s_);return!!this._moveFocus(Dp(e),(function(r,o){var i=-1;return(Dp(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==e_.vertical?i=r.right-o.right:n||(i=c_),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,s_);return!!this._moveFocus(!Dp(e),(function(r,o){var i=-1;return(Dp(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==e_.vertical?i=o.left-r.left:n||(i=c_),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=dC(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?qb(this._root.current,n):jb(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(c.bottom),h=Math.floor(u.bottom),m=Math.floor(c.top),f=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>p+l||!e&&h<m-l)break;f>-1&&(e&&d>a?(a=d,o=f,i=n):!e&&h<s?(s=h,o=f,i=n):(-1===o||f<=o)&&(o=f,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(qb(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(jb(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===e_.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},n.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},n.prototype._getOwnerZone=function(e){for(var t=Pb(e,f_);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Qb(t))return t;t=Pb(t,f_)}return t},n.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!zb(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Xb(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];Qb(r)?"true"===r.getAttribute(r_)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(i_)&&r.setAttribute(i_,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(i_)&&r.setAttribute(i_,"0"))):(r.getAttribute&&"false"===r.getAttribute(r_)&&r.setAttribute(i_,"-1"),Xb(r)?this.props.disabled?r.setAttribute(i_,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(i_)&&r.setAttribute(i_,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(i_)&&r.setAttribute(i_,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},n.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&m_.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},n.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Jb(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Ab(e,this._root.current)},n.prototype._getDocument=function(){return nc(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:e_.bidirectional,shouldRaiseClicks:!0},n}(Gt.Component);function v_(e){var t;if("undefined"===typeof d_||e){var n=ic(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;d_=!!r&&-1!==r.indexOf("Macintosh")}return!!d_}var y_=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function b_(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function C_(e){return!(!e.subMenuProps&&!e.items)}function S_(e){return!(!e.isDisabled&&!e.disabled)}function x_(e){return null!==b_(e)?"menuitemcheckbox":"menuitem"}var __,E_=function(t){var n=t.item,r=t.classNames,o=n.iconProps;return Gt.createElement(Xx,(0,e.__assign)({},o,{className:r.icon}))},k_=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,E_):E_(e):null},w_=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=b_(n);if(t){return Gt.createElement(Xx,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},I_=function(e){var t=e.item,n=e.classNames;return t.text||t.name?Gt.createElement("span",{className:n.label},t.text||t.name):null},P_=function(e){var t=e.item,n=e.classNames;return t.secondaryText?Gt.createElement("span",{className:n.secondaryText},t.secondaryText):null},T_=function(t){var n=t.item,r=t.classNames,o=t.theme;return C_(n)?Gt.createElement(Xx,(0,e.__assign)({iconName:Dp(o)?"ChevronLeft":"ChevronRight"},n.submenuIconProps,{className:r.subMenuIcon})):null},D_=function(t){function n(e){var n=t.call(this,e)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();C_(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;C_(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Mb(n),n}return(0,e.__extends)(n,t),n.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return Gt.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:w_,renderItemIcon:k_,renderItemName:I_,renderSecondaryText:P_,renderSubMenuIcon:T_}))},n.prototype._renderLayout=function(e,t){return Gt.createElement(Gt.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},n}(Gt.Component),A_=Ku((function(e){return Wd({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),R_=36,N_=Au(0,639),M_=Ku((function(t){var n,r,o,i,a,s=t.semanticColors,l=t.fonts,c=t.palette,u=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,h=s.bodyDivider;return zd({item:[l.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[Ou(t),l.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:R_,lineHeight:R_,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(n={},n[Iu]={color:"GrayText",opacity:1},n)},rootHovered:{backgroundColor:u,color:d,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootFocused:{backgroundColor:c.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(o={},o[Iu]={color:"inherit"},o)},r[Iu]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:t.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:R_,fontSize:Su.medium,width:Su.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[N_]={fontSize:Su.large,width:Su.large},i)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:R_,lineHeight:R_,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Su.small,selectors:(a={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},a[N_]={fontSize:Su.medium},a)},splitButtonFlexContainer:[Ou(t),{display:"flex",height:R_,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),F_="28px",B_=Au(0,639),O_=Ku((function(e){var t;return Wd(A_(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[B_]={right:32},t)},divider:{height:16,width:1}})})),L_={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},H_=Ku((function(e,t,n,r,o,i,a,s,l,c,u,d){var p,h,m,f,g=M_(e),v=Ju(L_,e);return Wd({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".".concat(Nu," &:focus, .").concat(Nu," &:focus:hover")]=g.rootFocused,p[".".concat(Nu," &:hover")]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - ".concat(F_,")")},r&&["is-checked",g.rootChecked],(t||u)&&["is-disabled",g.rootDisabled],!(t||u)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ .".concat(v.splitMenu)]=g.rootHovered,h[":active"]=g.rootPressed,h[".".concat(Nu," &:focus, .").concat(Nu," &:focus:hover")]=g.rootFocused,h[".".concat(Nu," &:hover")]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:F_},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(m={":hover":g.rootHovered,":active":g.rootPressed},m[".".concat(Nu," &:focus, .").concat(Nu," &:focus:hover")]=g.rootFocused,m[".".concat(Nu," &:hover")]={background:"inherit;"},m)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(f={},f[".".concat(Nu," &:focus, .").concat(Nu," &:focus:hover")]=g.rootFocused,f)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,Vu,{visibility:"hidden"}]})})),V_=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return H_(t,n,r,o,i,a,s,l,c,u,d,p)},z_=Ng(D_,V_,void 0,{scope:"ContextualMenuItem"}),U_=function(t){function n(e){var n=t.call(this,e)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},Mb(n),n}return(0,e.__extends)(n,t),n.prototype.shouldComponentUpdate=function(e){return!em(e,this.props)},n}(Gt.Component);function W_(e){var t=(0,Gt.useRef)();return(0,Gt.useEffect)((function(){t.current=e})),t.current}!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(__||(__={}));var G_=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(e){this.delayUpdatingKeytipChange=e},t.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?__.PERSISTED_KEYTIP_ADDED:__.KEYTIP_ADDED;kx.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||kx.raise(this,__.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?__.PERSISTED_KEYTIP_REMOVED:__.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||kx.raise(this,r,{keytip:e,uniqueID:t})},t.prototype.enterKeytipMode=function(){kx.raise(this,__.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){kx.raise(this,__.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,e.__spreadArray)([],t.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,e.__assign)((0,e.__assign)({},t),{overflowSetSequence:r.overflowSetSequence})}return t},t.prototype.menuExecute=function(e,t){kx.raise(this,__.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=bh()),{keytip:(0,e.__assign)({},t),uniqueID:n}},t._instance=new t,t}();function j_(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function q_(t){var n=Gt.useRef(),r=t.keytipProps?(0,e.__assign)({disabled:t.disabled},t.keytipProps):void 0,o=av(G_.getInstance()),i=W_(t);NS((function(){n.current&&r&&((null===i||void 0===i?void 0:i.keytipProps)!==t.keytipProps||(null===i||void 0===i?void 0:i.disabled)!==t.disabled)&&o.update(r,n.current)})),NS((function(){return r&&(n.current=o.register(r)),function(){r&&o.unregister(r,n.current)}}),[]);var a={ariaDescribedBy:void 0,keytipId:void 0};return r&&(a=function(t,n,r){var o=t.addParentOverflow(n),i=Ox(r,function(e){var t=" ktp-layer-id";return e.length?t+" "+j_(e):t}(o.keySequences)),a=(0,e.__spreadArray)([],o.keySequences,!0);o.overflowSetSequence&&(a=function(t,n){var r=n.length,o=(0,e.__spreadArray)([],n,!0).pop();return function(e,t,n){var r=e.slice();return r.splice(t,0,n),r}((0,e.__spreadArray)([],t,!0),r-1,o)}(a,o.overflowSetSequence));var s=j_(a);return{ariaDescribedBy:i,keytipId:s}}(o,r,t.ariaDescribedBy)),a}var K_=function(t){var n,r=t.children,o=q_((0,e.__rest)(t,["children"])),i=o.keytipId,a=o.ariaDescribedBy;return r(((n={})["data-ktp-target"]=i,n["data-ktp-execute-target"]=i,n["aria-describedby"]=a,n))},Y_=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._anchor=Gt.createRef(),n._getMemoizedMenuButtonKeytipProps=Ku((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClick;o&&o(r,e)},n._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?z_:u,p=n.expandedMenuItemKey,h=n.onItemClick,m=n.openSubMenu,f=n.dismissSubMenu,g=n.dismissMenu,v=r.rel;r.target&&"_blank"===r.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=C_(r),b=Qh(r,Mh),C=S_(r),S=r.itemProps,x=r.ariaDescription,_=r.keytipProps;_&&y&&(_=this._getMemoizedMenuButtonKeytipProps(_)),x&&(this._ariaDescriptionId=bh());var E=Ox(r.ariaDescribedBy,x?this._ariaDescriptionId:void 0,b["aria-describedby"]),k={"aria-describedby":E};return Gt.createElement("div",null,Gt.createElement(K_,{keytipProps:r.keytipProps,ariaDescribedBy:E,disabled:C},(function(n){return Gt.createElement("a",(0,e.__assign)({},k,b,n,{ref:t._anchor,href:r.href,target:r.target,rel:v,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":S_(r),style:r.style,onClick:t._onItemClick,onMouseEnter:t._onItemMouseEnter,onMouseLeave:t._onItemMouseLeave,onMouseMove:t._onItemMouseMove,onKeyDown:y?t._onItemKeyDown:void 0}),Gt.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:l&&h?h:void 0,hasIcons:c,openSubMenu:m,dismissSubMenu:f,dismissMenu:g,getSubmenuTarget:t._getSubmenuTarget},S)),t._renderAriaDescription(x,o.screenReaderText))})))},n}(U_),X_=zg(),Q_=Gt.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=X_(n,{theme:r,getClassNames:o,className:i});return Gt.createElement("span",{className:a.wrapper,ref:t},Gt.createElement("span",{className:a.divider}))}));Q_.displayName="VerticalDividerBase";var Z_=Ng(Q_,(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),J_=function(t){function n(n){var r=t.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=Ku((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),r._onItemKeyDown=function(e){var t=r.props,n=t.item,o=t.onItemKeyDown;e.which===gp?(r._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(n,e)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:r._ariaDescriptionId,className:t},e):null},r._onItemMouseEnterPrimary=function(t){var n=r.props,o=n.item,i=n.onItemMouseEnter;i&&i((0,e.__assign)((0,e.__assign)({},o),{subMenuProps:void 0,items:void 0}),t,r._splitButton)},r._onItemMouseEnterIcon=function(e){var t=r.props,n=t.item,o=t.onItemMouseEnter;o&&o(n,e,r._splitButton)},r._onItemMouseMovePrimary=function(t){var n=r.props,o=n.item,i=n.onItemMouseMove;i&&i((0,e.__assign)((0,e.__assign)({},o),{subMenuProps:void 0,items:void 0}),t,r._splitButton)},r._onItemMouseMoveIcon=function(e){var t=r.props,n=t.item,o=t.onItemMouseMove;o&&o(n,e,r._splitButton)},r._onIconItemClick=function(e){var t=r.props,n=t.item,o=t.onItemClickBase;o&&o(n,e,r._splitButton?r._splitButton:e.currentTarget)},r._executeItemClick=function(e){var t=r.props,n=t.item,o=t.executeItemClick,i=t.onItemClick;if(!n.disabled&&!n.isDisabled)return r._processingTouch&&!n.canCheck&&i?i(n,e):void(o&&o(n,e))},r._onTouchStart=function(e){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(e)},r._onPointerDown=function(e){"touch"===e.pointerType&&(r._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},r._async=new Vb(r),r._events=new kx(r),r._dismissLabelId=bh(),r}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.render=function(){var t,n=this,r=this.props,o=r.item,i=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,c=r.hasCheckmarks,u=r.hasIcons,d=r.onItemMouseLeave,p=r.expandedMenuItemKey,h=C_(o),m=o.keytipProps;m&&(m=this._getMemoizedMenuButtonKeytipProps(m));var f=o.ariaDescription;f&&(this._ariaDescriptionId=bh());var g=null!==(t=b_(o))&&void 0!==t?t:void 0;return Gt.createElement(K_,{keytipProps:m,disabled:S_(o)},(function(t){return Gt.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(e){return n._splitButton=e},role:x_(o),"aria-label":o.ariaLabel,className:i.splitContainer,"aria-disabled":S_(o),"aria-expanded":h?o.key===p:void 0,"aria-haspopup":!0,"aria-describedby":Ox(o.ariaDescribedBy,f?n._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":g,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,(0,e.__assign)((0,e.__assign)({},o),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":o["aria-roledescription"]},n._renderSplitPrimaryButton(o,i,a,c,u),n._renderSplitDivider(o),n._renderSplitIconButton(o,i,a,t),n._renderAriaDescription(f,i.screenReaderText))}))},n.prototype._renderSplitPrimaryButton=function(t,n,r,o,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?z_:s,c=a.onItemClick,u={key:t.key,disabled:S_(t)||t.primaryDisabled,name:t.name,text:t.text||t.name,secondaryText:t.secondaryText,className:n.splitPrimary,canCheck:t.canCheck,isChecked:t.isChecked,checked:t.checked,iconProps:t.iconProps,id:this._dismissLabelId,onRenderIcon:t.onRenderIcon,data:t.data,"data-is-focusable":!1},d=t.itemProps;return Gt.createElement("button",(0,e.__assign)({},Qh(u,Fh)),Gt.createElement(l,(0,e.__assign)({"data-is-focusable":!1,item:u,classNames:n,index:r,onCheckmarkClick:o&&c?c:void 0,hasIcons:i},d)))},n.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||O_;return Gt.createElement(Z_,{getClassNames:t})},n.prototype._renderSplitIconButton=function(t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?z_:a,l=i.onItemMouseLeave,c=i.onItemMouseDown,u=i.openSubMenu,d=i.dismissSubMenu,p=i.dismissMenu,h={onClick:this._onIconItemClick,disabled:S_(t),className:n.splitMenu,subMenuProps:t.subMenuProps,submenuIconProps:t.submenuIconProps,split:!0,key:t.key,"aria-labelledby":this._dismissLabelId},m=(0,e.__assign)((0,e.__assign)({},Qh(h,Fh)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,t):void 0,onMouseDown:function(e){return c?c(t,e):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-haspopup":!0}),f=t.itemProps;return Gt.createElement("button",(0,e.__assign)({},m),Gt.createElement(s,(0,e.__assign)({componentRef:t.componentRef,item:h,classNames:n,index:r,hasIcons:!1,openSubMenu:u,dismissSubMenu:d,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},f)))},n.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},n}(U_),$_=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._btn=Gt.createRef(),n._getMemoizedMenuButtonKeytipProps=Ku((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?z_:u,p=n.expandedMenuItemKey,h=n.onItemMouseDown,m=n.onItemClick,f=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=b_(r),b=null!==y,C=x_(r),S=C_(r),x=r.itemProps,_=r.ariaLabel,E=r.ariaDescription,k=Qh(r,Fh);delete k.disabled;var w=r.role||C;E&&(this._ariaDescriptionId=bh());var I=Ox(r.ariaDescribedBy,E?this._ariaDescriptionId:void 0,k["aria-describedby"]),P={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return h?h(r,e):void 0},onMouseMove:this._onItemMouseMove,href:r.href,title:r.title,"aria-label":_,"aria-describedby":I,"aria-haspopup":S||void 0,"aria-expanded":S?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":S_(r),"aria-checked":"menuitemcheckbox"!==w&&"menuitemradio"!==w||!b?void 0:!!y,"aria-selected":"menuitem"===w&&b?!!y:void 0,role:w,style:r.style},T=r.keytipProps;return T&&S&&(T=this._getMemoizedMenuButtonKeytipProps(T)),Gt.createElement(K_,{keytipProps:T,ariaDescribedBy:I,disabled:S_(r)},(function(n){return Gt.createElement("button",(0,e.__assign)({ref:t._btn},k,P,n),Gt.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:c,openSubMenu:f,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:t._getSubmenuTarget},x)),t._renderAriaDescription(E,o.screenReaderText))}))},n}(U_);function eE(e,t){var n=Gt.useRef(t);return n.current||(n.current=bh(e)),n.current}var tE;!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(tE||(tE={}));var nE,rE,oE=[479,639,1023,1365,1919,99999999];function iE(){var e;return null!==(e=null!==nE&&void 0!==nE?nE:rE)&&void 0!==e?e:tE.large}function aE(e){try{return e.document.documentElement.clientWidth}catch(eDe){return e.innerWidth}}function sE(e){var t=tE.small;if(e){try{for(;aE(e)>oE[t];)t++}catch(eDe){t=iE()}rE=t}else{if(void 0===nE)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=nE}return t}var lE=function(e,t){var n=Gt.useState(iE()),r=n[0],o=n[1],i=Gt.useCallback((function(){var t=sE(ic(e.current));r!==t&&o(t)}),[e,r]);return QC(qp(),"resize",i),Gt.useEffect((function(){void 0===t&&i()}),[t]),null!==t&&void 0!==t?t:r},cE=Gt.createContext({}),uE=zg(),dE=zg(),pE={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:wv,beakWidth:16};function hE(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];if(o.itemType!==Zx.Divider&&o.itemType!==Zx.Header)t+=o.customOnRenderListLength?o.customOnRenderListLength:1}return t}function mE(t,n){var r=null===n||void 0===n?void 0:n.target,o=t.subMenuProps?t.subMenuProps.items:t.items;if(o){for(var i=[],a=0,s=o;a<s.length;a++){var l=s[a];if(l.preferMenuTargetAsEventTarget){var c=l.onClick,u=(0,e.__rest)(l,["onClick"]);i.push((0,e.__assign)((0,e.__assign)({},u),{onClick:EE(c,r)}))}else i.push(l)}return i}}var fE="ContextualMenu",gE=Ku((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return Ud.apply(void 0,(0,e.__spreadArray)([n,V_],t,!1))}}));function vE(e,t){var n=e.hidden,r=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,l=Gt.useState(),c=l[0],u=l[1],d=Gt.useState(),p=d[0],h=d[1],m=Gt.useState(),f=m[0],g=m[1],v=eE(fE,a),y=Gt.useCallback((function(){g(void 0),u(void 0),h(void 0)}),[]),b=Gt.useCallback((function(e,t,n){var r=e.key;c!==r&&(t.focus(),g(n),u(r),h(t))}),[c]);Gt.useEffect((function(){n&&y()}),[n,y]);var C=function(e,t){var n=Gt.useRef(!1);return Gt.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,y);return[c,b,function(){var e=_E(c,r),t=null;if(e&&(t={items:mE(e,{target:s}),target:p,onDismiss:C,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:f,directionalHint:Dp(o)?Iv:Dv,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&tm(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=EE(n,s)}return t},C]}function yE(e,t,n,r){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=void 0===a?{}:a,l=s.checkForNoWrap,c=s.direction,u=void 0===c?e_.vertical:c,d=Gt.useRef(),p=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},h=function(e){return e.which===yp||function(e){var t=Dp(o)?wp:Ep;return!(e.which!==t||!i)&&!(u!==e_.vertical&&(!l||Jb(e.target,"data-no-horizontal-wrap")))}(e)||e.which===kp&&(e.altKey||e.metaKey)},m=function(e){d.current=CE(e);var t=e.which===yp&&(v_()||y_());return p(e,h,t)},f=function(e){var t=d.current&&CE(e);return d.current=!1,!!t&&!(y_()||v_())};return[m,function(e){return p(e,f,!0)},function(e){if(!m(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),r=e.which===kp,o=e.which===Ip;if(!t&&(r||o)){var i=r?Wb(n.current,n.current.lastChild,!0):Ub(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=Dp(o)?Ep:wp;e.disabled||t.which!==n&&t.which!==gp&&(t.which!==Ip||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var bE=Gt.memo(Gt.forwardRef((function(t,n){var r,o=Cm(pE,t),i=(o.ref,(0,e.__rest)(o,["ref"])),a=Gt.useRef(null),s=XC(),l=eE(fE,i.id),c=function(e,t){var n;return null===(n=i.onDismiss)||void 0===n?void 0:n.call(i,e,t)},u=tS(i.target,a),d=u[0],p=u[1],h=function(e,t,n){var r=e.hidden,o=e.onRestoreFocus,i=Gt.useRef(),a=Gt.useCallback((function(e){var t,n;o?o(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t))}),[o]);return NS((function(){var e,o;if(r)i.current&&(a({originalElement:i.current,containsFocus:!0,documentContainsFocus:(null===(o=nc())||void 0===o?void 0:o.hasFocus())||!1}),i.current=void 0);else{var s=null===t||void 0===t?void 0:t.document.activeElement;(null===(e=n.current)||void 0===e?void 0:e.contains(s))||"BODY"===s.tagName||(i.current=s)}}),[r,null===t||void 0===t?void 0:t.document.activeElement,a,n]),[a]}(i,p,a)[0],m=vE(i,c),f=m[0],g=m[1],v=m[2],y=m[3],b=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=Gt.useRef(!t),o=Gt.useRef(!1);Gt.useEffect((function(){r.current=!t,o.current=!n&&!t&&o.current}),[t,n]);var i=Gt.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,o,i]}(i),C=b[0],S=b[1],x=b[2],_=function(e){var t=Gt.useRef(!0),n=Gt.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout((function(){t.current=!0}),250)},t]}(s),E=_[0],k=_[1],w=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,o=Gt.useRef(void 0),i=function(){void 0!==o.current&&(t.clearTimeout(o.current),o.current=void 0)};return[i,function(e){o.current=t.setTimeout((function(){e(),i()}),r)},o]}(i,s),I=w[0],P=w[1],T=w[2],D=lE(a,i.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,i=e.onMenuOpened,a=W_(r),s=Gt.useRef(i),l=Gt.useRef(o),c=Gt.useRef(e);s.current=i,l.current=o,c.current=e,Gt.useEffect((function(){var e,t;r&&!1===a?null===(e=l.current)||void 0===e||e.call(l,c.current):r||!1===a||null===(t=s.current)||void 0===t||t.call(s,c.current)}),[r,a]),Gt.useEffect((function(){return function(){var e;return null===(e=l.current)||void 0===e?void 0:e.call(l,c.current)}}),[])}(i);var A=yE(i,c,a,g),R=A[0],N=A[1],M=A[2],F=A[3],B=function(e,t,n,r,o,i,a,s,l,c,u,d,p){var h=e.target,m=function(){return!t.current||!i.current},f=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(c(),void 0===a&&r.focus(),C_(e)?(t.stopPropagation(),l((function(){r.focus(),u(e,r,!0)}))):l((function(){d(t),r.focus()})))},g=function(t,n,r){var o=mE(t,{target:h});if(c(),C_(t)||o&&o.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType;u(t,r,i)}}else v(t,n);n.stopPropagation(),n.preventDefault()},v=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&kE(n,h);var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),!r&&n.defaultPrevented||p(n,!0)}};return[function(e,t,n){o.current&&(i.current=!0),m()||f(e,t,n)},function(e,a,s){var l=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===r||void 0===r?void 0:r.document.activeElement)&&f(e,a,s))},function(e,t){var n;if(!m()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(eDe){}else null===(n=s.current)||void 0===n||n.focus()},function(e,t){g(e,t,t.currentTarget)},function(e,t){v(e,t),t.stopPropagation()},v,g]}(i,k,T,p,C,S,f,a,P,I,g,y,c),O=B[0],L=B[1],H=B[2],V=B[3],z=B[4],U=B[5],W=B[6],G=function(e,t,n){var r=0,o=e.items,i=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return Gt.createElement("ul",{className:t.list,onKeyDown:R,onKeyUp:N,role:"presentation"},o.map((function(e,n){var o=j(e,n,r,i,a,s,t);if(e.itemType!==Zx.Divider&&e.itemType!==Zx.Header){var l=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=l}return o})))},j=function(e,t,n,r,o,a,s){var l,c,u=[],d=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,m=h?h.styles:void 0,g=e.itemType===Zx.Divider?e.className:void 0,v=e.submenuIconProps?e.submenuIconProps.className:"";if(p)c=p(i.theme,S_(e),f===e.key,!!b_(e),!!e.href,"None"!==d.iconName,e.className,g,d.className,v,e.primaryDisabled);else{var y={theme:i.theme,disabled:S_(e),expanded:f===e.key,checked:!!b_(e),isAnchorLink:!!e.href,knownIcon:"None"!==d.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:d.className,subMenuClassName:v,primaryDisabled:e.primaryDisabled};c=dE(gE(null===(l=s.subComponentStyles)||void 0===l?void 0:l.menuItem,m),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=Zx.Divider),e.itemType){case Zx.Divider:u.push(Y(t,c));break;case Zx.Header:u.push(Y(t,c));var b=Q(e,c,s,t,o,a);u.push(K(b,e.key||t,c,e.title));break;case Zx.Section:u.push(q(e,c,s,t,o,a));break;default:var C=function(){return X(e,c,t,n,r,o,a)},S=i.onRenderContextualMenuItem?i.onRenderContextualMenuItem(e,C):C();u.push(K(S,e.key||t,c,e.title))}return Gt.createElement(Gt.Fragment,{key:e.key},u)},q=function(t,n,r,o,i,a){var s=t.sectionProps;if(s){var c,u;if(s.title){var d=void 0,p="";if("string"===typeof s.title){var h=l+s.title.replace(/\s/g,"");d={key:"section-".concat(s.title,"-title"),itemType:Zx.Header,text:s.title,id:h},p=h}else{var m=s.title.id||l+s.title.key.replace(/\s/g,"");d=(0,e.__assign)((0,e.__assign)({},s.title),{id:m}),p=m}d&&(u={role:"group","aria-labelledby":p},c=Q(d,n,r,o,i,a))}if(s.items&&s.items.length>0){var f=0;return Gt.createElement("li",{role:"presentation",key:s.key||t.key||"section-".concat(o)},Gt.createElement("div",(0,e.__assign)({},u),Gt.createElement("ul",{className:r.list,role:"presentation"},s.topDivider&&Y(o,n,!0,!0),c&&K(c,t.key||o,n,t.title),s.items.map((function(e,t){var n=j(e,t,f,hE(s.items),i,a,r);if(e.itemType!==Zx.Divider&&e.itemType!==Zx.Header){var o=e.customOnRenderListLength?e.customOnRenderListLength:1;f+=o}return n})),s.bottomDivider&&Y(o,n,!1,!0))))}}},K=function(e,t,n,r){return Gt.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Y=function(e,t,n,r){return r||e>0?Gt.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},X=function(t,n,r,o,a,s,l){if(t.onRender)return t.onRender((0,e.__assign)({"aria-posinset":o+1,"aria-setsize":a},t),c);var u={item:t,classNames:n,index:r,focusableElementIndex:o,totalItemCount:a,hasCheckmarks:s,hasIcons:l,contextualMenuItemAs:i.contextualMenuItemAs,onItemMouseEnter:O,onItemMouseLeave:H,onItemMouseMove:L,onItemMouseDown:SE,executeItemClick:U,onItemKeyDown:F,expandedMenuItemKey:f,openSubMenu:g,dismissSubMenu:y,dismissMenu:c};return t.href?Gt.createElement(Y_,(0,e.__assign)({},u,{onItemClick:z})):t.split&&C_(t)?Gt.createElement(J_,(0,e.__assign)({},u,{onItemClick:V,onItemClickBase:W,onTap:I})):Gt.createElement($_,(0,e.__assign)({},u,{onItemClick:V,onItemClickBase:W}))},Q=function(t,n,r,o,a,s){var l=i.contextualMenuItemAs,c=void 0===l?z_:l,u=t.itemProps,d=t.id,p=u&&Qh(u,Xh);return Gt.createElement("div",(0,e.__assign)({id:d,className:r.header},p,{style:t.style}),Gt.createElement(c,(0,e.__assign)({item:t,classNames:n,index:o,onCheckmarkClick:a?V:void 0,hasIcons:s},u)))},Z=i.isBeakVisible,J=i.items,$=i.labelElementId,ee=i.id,te=i.className,ne=i.beakWidth,re=i.directionalHint,oe=i.directionalHintForRTL,ie=i.alignTargetEdge,ae=i.gapSpace,se=i.coverTarget,le=i.ariaLabel,ce=i.doNotLayer,ue=i.target,de=i.bounds,pe=i.useTargetWidth,he=i.useTargetAsMinWidth,me=i.directionalHintFixed,fe=i.shouldFocusOnMount,ge=i.shouldFocusOnContainer,ve=i.title,ye=i.styles,be=i.theme,Ce=i.calloutProps,Se=i.onRenderSubMenu,xe=void 0===Se?xE:Se,_e=i.onRenderMenuList,Ee=void 0===_e?function(e,t){return G(e,Ie)}:_e,ke=i.focusZoneProps,we=i.getMenuClassNames,Ie=we?we(be,te):uE(ye,{theme:be,className:te}),Pe=function e(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.iconProps)return!0;if(o.itemType===Zx.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(J);var Te,De=(0,e.__assign)((0,e.__assign)({direction:e_.vertical,handleTabKey:t_.all,isCircularNavigation:!0},ke),{className:Gp(Ie.root,null===(r=i.focusZoneProps)||void 0===r?void 0:r.className)}),Ae=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(J),Re=f&&!0!==i.hidden?v():null;Z=void 0===Z?D<=tE.medium:Z;var Ne=d.current;if((pe||he)&&Ne&&Ne.offsetWidth){var Me=Ne.getBoundingClientRect().width-2;pe?Te={width:Me}:he&&(Te={minWidth:Me})}if(J&&J.length>0){var Fe=hE(J),Be=Ie.subComponentStyles?Ie.subComponentStyles.callout:void 0;return Gt.createElement(cE.Consumer,null,(function(t){return Gt.createElement(HS,(0,e.__assign)({styles:Be,onRestoreFocus:h},Ce,{target:ue||t.target,isBeakVisible:Z,beakWidth:ne,directionalHint:re,directionalHintForRTL:oe,gapSpace:ae,coverTarget:se,doNotLayer:ce,className:Gp("ms-ContextualMenu-Callout",Ce&&Ce.className),setInitialFocus:fe,onDismiss:i.onDismiss||t.onDismiss,onScroll:E,bounds:de,directionalHintFixed:me,alignTargetEdge:ie,hidden:i.hidden||t.hidden,ref:n}),Gt.createElement("div",{style:Te,ref:a,id:ee,className:Ie.container,tabIndex:ge?0:-1,onKeyDown:M,onKeyUp:N,onFocusCapture:x,"aria-label":le,"aria-labelledby":$,role:"menu"},ve&&Gt.createElement("div",{className:Ie.title}," ",ve," "),J&&J.length?function(t,n){var r=i.focusZoneAs,o=void 0===r?g_:r;return Gt.createElement(o,(0,e.__assign)({},n),t)}(Ee({ariaLabel:le,items:J,totalItemCount:Fe,hasCheckmarks:Ae,hasIcons:Pe,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return j(e,n,r,o,i,a,t)}(e,Ie)},labelElementId:$},(function(e,t){return G(e,Ie)})),De):null,Re&&xe(Re,xE)),Gt.createElement(dm,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||em(e,t)}));function CE(e){return e.which===vp||"Meta"===e.key}function SE(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function xE(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function _E(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===Zx.Section&&o.sectionProps){var i=_E(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function EE(e,t){return e?function(n,r){return kE(n,t),e(n,r)}:e}function kE(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}bE.displayName="ContextualMenuBase";var wE={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function IE(t){return Gt.createElement(PE,(0,e.__assign)({},t))}var PE=Ng(bE,(function(e){var t=e.className,n=e.theme,r=Ju(wE,n),o=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:Cu.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:R_,lineHeight:R_,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}}),(function(e){return{onRenderSubMenu:e.onRenderSubMenu?$x(e.onRenderSubMenu,IE):IE}}),{scope:"ContextualMenu"}),TE=PE;TE.displayName="ContextualMenu";var DE={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},AE=Ku((function(e,t,n,r,o,i,a,s,l,c,u){var d,p,h=Ju(DE,e||{}),m=c&&!u;return Wd({root:[h.msButton,t.root,r,l&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover .".concat(h.msButtonIcon)]=t.iconExpandedHovered,d[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[DE.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!m&&!l&&{selectors:(p={":hover":t.rootHovered},p[":hover .".concat(h.msButtonLabel)]=t.labelHovered,p[":hover .".concat(h.msButtonIcon)]=t.iconHovered,p[":hover .".concat(h.msButtonDescription)]=t.descriptionHovered,p[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active .".concat(h.msButtonIcon)]=t.iconPressed,p[":active .".concat(h.msButtonDescription)]=t.descriptionPressed,p[":active .".concat(h.msButtonMenuIcon)]=t.menuIconPressed,p)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!m&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),RE=Ku((function(e,t,n,r,o){return{root:yc(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:yc(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:yc(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:yc(e.splitButtonFlexContainer),divider:yc(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}));var NE=Yu((function(t){var n=t;return Yu((function(r){if(t===r)throw new Error("Attempted to compose a component with itself.");var o=r,i=Yu((function(t){return function(n){return Gt.createElement(o,(0,e.__assign)({},n,{defaultRender:t}))}}));return function(t){var r=t.defaultRender;return Gt.createElement(n,(0,e.__assign)({},t,{defaultRender:r?i(r):o}))}}))}));function ME(e,t){return NE(e)(t)}var FE=function(t){function n(n){var r=t.call(this,n)||this;return r._buttonElement=Gt.createRef(),r._splitButtonContainer=Gt.createRef(),r._mergedRef=Bx(),r._renderedVisibleMenu=!1,r._getMemoizedMenuButtonKeytipProps=Ku((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),r._onRenderIcon=function(t,n){var o=r.props.iconProps;if(o&&(void 0!==o.iconName||o.imageProps)){var i=o.className,a=o.imageProps,s=(0,e.__rest)(o,["className","imageProps"]);if(o.styles)return Gt.createElement(Xx,(0,e.__assign)({className:Gp(r._classNames.icon,i),imageProps:a},s));if(o.iconName)return Gt.createElement(qx,(0,e.__assign)({className:Gp(r._classNames.icon,i)},s));if(a)return Gt.createElement(Qx,(0,e.__assign)({className:Gp(r._classNames.icon,i),imageProps:a},s))}return null},r._onRenderTextContents=function(){var e=r.props,t=e.text,n=e.children,o=e.secondaryText,i=void 0===o?r.props.description:o,a=e.onRenderText,s=void 0===a?r._onRenderText:a,l=e.onRenderDescription,c=void 0===l?r._onRenderDescription:l;return t||"string"===typeof n||i?Gt.createElement("span",{className:r._classNames.textContainer},s(r.props,r._onRenderText),c(r.props,r._onRenderDescription)):[s(r.props,r._onRenderText),c(r.props,r._onRenderDescription)]},r._onRenderText=function(){var e=r.props.text,t=r.props.children;return void 0===e&&"string"===typeof t&&(e=t),r._hasText()?Gt.createElement("span",{key:r._labelId,className:r._classNames.label,id:r._labelId},e):null},r._onRenderChildren=function(){var e=r.props.children;return"string"===typeof e?null:e},r._onRenderDescription=function(e){var t=e.secondaryText,n=void 0===t?r.props.description:t;return n?Gt.createElement("span",{key:r._descriptionId,className:r._classNames.description,id:r._descriptionId},n):null},r._onRenderAriaDescription=function(){var e=r.props.ariaDescription;return e?Gt.createElement("span",{className:r._classNames.screenReaderText,id:r._ariaDescriptionId},e):null},r._onRenderMenuIcon=function(t){var n=r.props.menuIconProps;return Gt.createElement(qx,(0,e.__assign)({iconName:"ChevronDown"},n,{className:r._classNames.menuIcon}))},r._onRenderMenu=function(t){var n=r.props.menuAs?ME(r.props.menuAs,TE):TE;return Gt.createElement(n,(0,e.__assign)({},t))},r._onDismissMenu=function(e){var t=r.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||r._dismissMenu()},r._dismissMenu=function(){r._menuShouldFocusOnMount=void 0,r._menuShouldFocusOnContainer=void 0,r.setState({menuHidden:!0})},r._openMenu=function(e,t){void 0===t&&(t=!0),r.props.menuProps&&(r._menuShouldFocusOnContainer=e,r._menuShouldFocusOnMount=t,r._renderedVisibleMenu=!0,r.setState({menuHidden:!1}))},r._onToggleMenu=function(e){var t=!0;r.props.menuProps&&!1===r.props.menuProps.shouldFocusOnMount&&(t=!1),r.state.menuHidden?r._openMenu(e,t):r._dismissMenu()},r._onSplitContainerFocusCapture=function(e){var t=r._splitButtonContainer.current;!t||e.target&&Ab(e.target,t)||t.focus()},r._onSplitButtonPrimaryClick=function(e){r.state.menuHidden||r._dismissMenu();var t=r._processingTouch&&!r.props.toggle;!t&&r.props.onClick?r.props.onClick(e):t&&r._onMenuClick(e)},r._onKeyDown=function(e){!r.props.disabled||e.which!==gp&&e.which!==bp?r.props.disabled||(r.props.menuProps?r._onMenuKeyDown(e):void 0!==r.props.onKeyDown&&r.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},r._onKeyUp=function(e){r.props.disabled||void 0===r.props.onKeyUp||r.props.onKeyUp(e)},r._onKeyPress=function(e){r.props.disabled||void 0===r.props.onKeyPress||r.props.onKeyPress(e)},r._onMouseUp=function(e){r.props.disabled||void 0===r.props.onMouseUp||r.props.onMouseUp(e)},r._onMouseDown=function(e){r.props.disabled||void 0===r.props.onMouseDown||r.props.onMouseDown(e)},r._onClick=function(e){r.props.disabled||(r.props.menuProps?r._onMenuClick(e):void 0!==r.props.onClick&&r.props.onClick(e))},r._onSplitButtonContainerKeyDown=function(e){e.which===gp||e.which===bp?r._buttonElement.current&&(r._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):r._onMenuKeyDown(e)},r._onMenuKeyDown=function(e){var t;if(!r.props.disabled){r.props.onKeyDown&&r.props.onKeyDown(e);var n=e.which===kp,o=e.which===Ip;if(!e.defaultPrevented&&r._isValidMenuOpenKey(e)){var i=r.props.onMenuClick;i&&i(e,r.props),r._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==gp&&e.which!==bp||Bu(!0,e.target,null===(t=r.context)||void 0===t?void 0:t.registeredProviders),!e.altKey&&!e.metaKey&&(n||o))if(!r.state.menuHidden&&r.props.menuProps)(void 0!==r._menuShouldFocusOnMount?r._menuShouldFocusOnMount:r.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),r._menuShouldFocusOnMount=!0,r.forceUpdate())}},r._onTouchStart=function(){r._isSplitButton&&r._splitButtonContainer.current&&!("onpointerdown"in r._splitButtonContainer.current)&&r._handleTouchAndPointerEvent()},r._onMenuClick=function(e){var t=r.props,n=t.onMenuClick,o=t.menuProps;n&&n(e,r.props);var i="boolean"===typeof(null===o||void 0===o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(r._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},Mb(r),r._async=new Vb(r),r._events=new kx(r),r.props.split,r._labelId=bh(),r._descriptionId=bh(),r._ariaDescriptionId=bh(),r.state={menuHidden:!0},r}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,d=t.href,p=t.iconProps,h=t.menuIconProps,m=t.styles,f=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,C=t.role,S=this.state.menuHidden,x=a||l;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,x,f,!S,!!this.props.menuProps,this.props.split,!!s):AE(v,m,i,g,p&&p.className,h&&h.className,x,!!this.props.menuProps,f,!S,this.props.split);var _=this,E=_._ariaDescriptionId,k=_._labelId,w=_._descriptionId,I=!x&&!!d,P=I?"a":"button",T=Qh(tm(I?{}:{type:"button"},this.props.rootProps,this.props),I?Mh:Fh,["disabled"]),D=r||T["aria-label"],A=void 0;n?A=E:u&&this.props.onRenderDescription!==Ix?A=w:T["aria-describedby"]&&(A=T["aria-describedby"]);var R=void 0;T["aria-labelledby"]?R=T["aria-labelledby"]:A&&!D&&(R=this._hasText()?k:void 0);var N=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),M="menuitemcheckbox"===C||"checkbox"===C,F=M||!0===y?!!f:void 0,B=tm(T,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:x&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":D,"aria-labelledby":R,"aria-describedby":A,"aria-disabled":x,"data-is-focusable":N})[M?"aria-checked":"aria-pressed"]=F,e));if(o&&(B["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(P,B);if(this.props.menuProps){var O=this.props.menuProps.id,L=void 0===O?"".concat(this._labelId,"-menu"):O;tm(B,{"aria-expanded":!S,"aria-controls":S?null:L,"aria-haspopup":!0})}return this._onRenderContent(P,B)},n.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},n.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?(Bu(!0,void 0,null===(e=this.context)||void 0===e?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(Bu(!0,void 0,null===(t=this.context)||void 0===t?void 0:t.registeredProviders),this._buttonElement.current.focus())},n.prototype.dismissMenu=function(){this._dismissMenu()},n.prototype.openMenu=function(e,t){this._openMenu(e,t)},n.prototype._onRenderContent=function(t,n){var r=this,o=this.props,i=t,a=o.menuIconProps,s=o.menuProps,l=o.onRenderIcon,c=void 0===l?this._onRenderIcon:l,u=o.onRenderAriaDescription,d=void 0===u?this._onRenderAriaDescription:u,p=o.onRenderChildren,h=void 0===p?this._onRenderChildren:p,m=o.onRenderMenu,f=void 0===m?this._onRenderMenu:m,g=o.onRenderMenuIcon,v=void 0===g?this._onRenderMenuIcon:g,y=o.disabled,b=o.keytipProps;b&&s&&(b=this._getMemoizedMenuButtonKeytipProps(b));var C=function(t){return Gt.createElement(i,(0,e.__assign)({},n,t),Gt.createElement("span",{className:r._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(o,r._onRenderIcon),r._onRenderTextContents(),d(o,r._onRenderAriaDescription),h(o,r._onRenderChildren),!r._isSplitButton&&(s||a||r.props.onRenderMenuIcon)&&v(r.props,r._onRenderMenuIcon),s&&!s.doNotLayer&&r._shouldRenderMenu()&&f(r._getMenuProps(s),r._onRenderMenu)))},S=b?Gt.createElement(K_,{keytipProps:this._isSplitButton?void 0:b,ariaDescribedBy:n["aria-describedby"],disabled:y},(function(e){return C(e)})):C();return s&&s.doNotLayer?Gt.createElement(Gt.Fragment,null,S,this._shouldRenderMenu()&&f(this._getMenuProps(s),this._onRenderMenu)):Gt.createElement(Gt.Fragment,null,S,Gt.createElement(dm,null))},n.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},n.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},n.prototype._getMenuProps=function(t){var n=this.props.persistMenu,r=this.state.menuHidden;return t.ariaLabel||t.labelElementId||!this._hasText()||(t=(0,e.__assign)((0,e.__assign)({},t),{labelElementId:this._labelId})),(0,e.__assign)((0,e.__assign)({id:this._labelId+"-menu",directionalHint:_v},t),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:n?r:void 0,className:Gp("ms-BaseButton-menuhost",t.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},n.prototype._onRenderSplitButtonContent=function(t,n){var r=this,o=this.props,i=o.styles,a=void 0===i?{}:i,s=o.disabled,l=o.allowDisabledFocus,c=o.checked,u=o.getSplitButtonClassNames,d=o.primaryDisabled,p=o.menuProps,h=o.toggle,m=o.role,f=o.primaryActionButtonProps,g=this.props.keytipProps,v=this.state.menuHidden,y=u?u(!!s,!v,!!c,!!l):a&&RE(a,!!s,!v,!!c,!!d);tm(n,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var b=Qh(n,[],["disabled"]);f&&tm(n,f);var C=function(o){return Gt.createElement("div",(0,e.__assign)({},b,{"data-ktp-target":o?o["data-ktp-target"]:void 0,role:m||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":h?!!c:void 0,"aria-describedby":Ox(n["aria-describedby"],o?o["aria-describedby"]:void 0),className:y&&y.splitButtonContainer,onKeyDown:r._onSplitButtonContainerKeyDown,onTouchStart:r._onTouchStart,ref:r._splitButtonContainer,"data-is-focusable":!0,onClick:s||d?void 0:r._onSplitButtonPrimaryClick,tabIndex:!s&&!d||l?0:void 0,"aria-roledescription":n["aria-roledescription"],onFocusCapture:r._onSplitContainerFocusCapture}),Gt.createElement("span",{style:{display:"flex",width:"100%"}},r._onRenderContent(t,n),r._onRenderSplitButtonMenuButton(y,o),r._onRenderSplitButtonDivider(y)))};return g?Gt.createElement(K_,{keytipProps:g,disabled:s},(function(e){return C(e)})):C()},n.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return Gt.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},n.prototype._onRenderSplitButtonMenuButton=function(t,r){var o=this.props,i=o.allowDisabledFocus,a=o.checked,s=o.disabled,l=o.splitButtonMenuProps,c=o.splitButtonAriaLabel,u=o.primaryDisabled,d=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var h=(0,e.__assign)((0,e.__assign)({},l),{styles:t,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:(0,e.__assign)((0,e.__assign)({},p),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return Gt.createElement(n,(0,e.__assign)({},h,{"data-ktp-execute-target":r?r["data-ktp-execute-target"]:r,onMouseDown:this._onMouseDown,tabIndex:u&&!i?0:-1}))},n.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},n.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()}),500)},n.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===Ip&&(e.altKey||e.metaKey))},n.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},n.contextType=cm,n}(Gt.Component),BE={outline:0},OE=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},LE=Ku((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Ou(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+a,borderRadius:o.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-block",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[Ou(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":BE,":focus":BE}}],iconDisabled:{color:l,selectors:(t={},t[Iu]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[Iu]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:OE(i.mediumPlus.fontSize),menuIcon:OE(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Vu}})),HE=Ku((function(t,n){var r,o,i,a,s,l,c,u,d,p,h,m,f,g=t.effects,v=t.palette,y=t.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8};return zd({splitButtonContainer:[Ou(t,{highContrastStyle:b,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(r={},r[Iu]=(0,e.__assign)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r[":hover"]={border:"none"},r[":active"]={border:"none"},r)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(o={},o[Iu]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[Iu]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(a={},a[Iu]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[Iu]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(l={},l[Iu]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(c={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid ".concat(v.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},c[Iu]={".ms-Button-menuIcon":{color:"WindowText"}},c),splitButtonDivider:(0,e.__assign)((0,e.__assign)({},C),{selectors:(u={},u[Iu]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:(0,e.__assign)((0,e.__assign)({},C),{selectors:(d={},d[Iu]={backgroundColor:"GrayText"},d)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[Iu]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(m={},m[Iu]={color:"GrayText"},m)}},p[Iu]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},p)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(f={},f[Iu]=(0,e.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f)},splitButtonMenuFocused:(0,e.__assign)({},Ou(t,{highContrastStyle:b,inset:2}))},n)}));var VE=Ku((function(t,n,r){var o=LE(t),i=HE(t);return zd(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:Cu.semibold}},r?function(t){var n,r,o,i,a,s,l,c,u,d=t.palette,p=t.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid ".concat(p.primaryButtonBackground),color:p.primaryButtonText,selectors:(n={},n[Iu]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n[".".concat(Nu," &:focus")]={selectors:{":after":{border:"none",outlineColor:d.white}}},n)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid ".concat(p.primaryButtonBackgroundHovered),color:p.primaryButtonTextHovered,selectors:(r={},r[Iu]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid ".concat(p.primaryButtonBackgroundPressed),color:p.primaryButtonTextPressed,selectors:(o={},o[Iu]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{color:p.primaryButtonTextDisabled,backgroundColor:p.primaryButtonBackgroundDisabled,selectors:(i={},i[Iu]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(a={},a[Iu]={border:"none"},a)},splitButtonDivider:(0,e.__assign)((0,e.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:d.white,selectors:(s={},s[Iu]={backgroundColor:"Window"},s)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(l={},l[Iu]={backgroundColor:"Canvas"},l[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(c={},c[Iu]={color:"Highlight"},c)},l)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(u={},u[Iu]={color:"GrayText"},u)}}}(t):function(t){var n,r,o,i,a,s=t.semanticColors,l=t.palette,c=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,p=s.buttonBackgroundDisabled,h=s.buttonText,m=s.buttonTextHovered,f=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:c,color:h},rootHovered:{backgroundColor:d,color:m,selectors:(n={},n[Iu]={borderColor:"Highlight",color:"Highlight"},n)},rootPressed:{backgroundColor:u,color:g},rootExpanded:{backgroundColor:u,color:g},rootChecked:{backgroundColor:u,color:g},rootCheckedHovered:{backgroundColor:u,color:v},rootDisabled:{color:f,backgroundColor:p,selectors:(r={},r[Iu]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(o={},o[Iu]={border:"none"},o)},splitButtonMenuButton:{color:l.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:l.neutralLight,selectors:(i={},i[Iu]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:s.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:s.buttonBackgroundDisabled}}},splitButtonDivider:(0,e.__assign)((0,e.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:l.neutralTertiaryAlt,selectors:(a={},a[Iu]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:t.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}(t),i,n)})),zE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.primary,r=void 0!==n&&n,o=t.styles,i=t.theme;return Gt.createElement(FE,(0,e.__assign)({},this.props,{variantClassName:r?"ms-Button--primary":"ms-Button--default",styles:VE(i,o,r),onRenderDescription:Ix}))},n=(0,e.__decorate)([Px("DefaultButton",["theme","styles"],!0)],n)}(Gt.Component),UE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){return Gt.createElement(zE,(0,e.__assign)({},this.props,{primary:!0,onRenderDescription:Ix}))},n=(0,e.__decorate)([Px("PrimaryButton",["theme","styles"],!0)],n)}(Gt.Component),WE=Ku((function(e,t){var n,r,o;return zd(LE(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[Iu]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(r={},r[Iu]={color:"Highlight"},r)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:(o={},o[Iu]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),GE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme;return Gt.createElement(FE,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:WE(r,n),onRenderDescription:Ix}))},n=(0,e.__decorate)([Px("ActionButton",["theme","styles"],!0)],n)}(Gt.Component),jE=Ku((function(e,t){var n,r=LE(e),o=HE(e),i=e.palette;return zd(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Iu]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)})),qE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme;return Gt.createElement(FE,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:jE(r,n),onRenderText:Ix,onRenderDescription:Ix}))},n=(0,e.__decorate)([Px("IconButton",["theme","styles"],!0)],n)}(Gt.Component),KE=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},YE={display:"inline-block",verticalAlign:"text-top"},XE=function(t){var n=t.targetOrTriggerButton,r=t.calloutPosition,o=void 0===r?"bottom-center":r,i=t.errorMessage,a=t.errorMessageAriaLabel,s=(0,e.__rest)(t,["targetOrTriggerButton","calloutPosition","errorMessage","errorMessageAriaLabel"]);ll("ErrorCallout",s.id);var l,c,u=dg(),d=(0,Gt.useState)(!0),p=d[0],h=d[1],m=(0,Gt.useRef)(null);"aria-label"in n?c=n:l=n;var f=l||m;Fy("ErrorCallout",s);var g={icon:{color:u.semanticColors.errorIcon},root:{height:"100%"}};return jt().createElement(jt().Fragment,null,c?jt().createElement("div",null,jt().createElement("div",{ref:m,style:YE},jt().createElement(qE,{onClick:function(){h(!p)},ariaLabel:c["aria-label"],"data-bi-id":c["data-bi-id"],iconProps:{iconName:"Error"},styles:g}))):null,p?jt().createElement(HS,(0,e.__assign)({styles:KE(u),role:"alertdialog",target:f,onDismiss:function(){h(!1)},setInitialFocus:!0,directionalHint:Nv[o]},s),jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:6},c?null:jt().createElement(Hy,{iconName:"Error",color:"errorIcon",size:"16px"}),jt().createElement(xb,{"aria-label":a},i))):null)},QE=function(e,t,n){return void 0===n&&(n="themePrimary"),t?{rest:"neutralTertiaryAlt",hover:"neutralTertiaryAlt",pressed:"neutralTertiaryAlt"}:"primary"===e?{rest:"white",hover:"white",pressed:"white"}:"error"===e?{rest:"errorIcon",hover:"warningIcon",pressed:"severeWarningIcon"}:"themePrimary"===n?{rest:"themePrimary",hover:"themeDark",pressed:"themeDarker"}:{rest:"neutralPrimary",hover:"neutralPrimary",pressed:"neutralDark"}},ZE=function(t){var n=t.errorIconName,r=void 0===n?"Error":n,o=t.errorMessage,i=t.errorMessageAriaLabel,a=t.retryLink,s=(t.children,(0,e.__rest)(t,["errorIconName","errorMessage","errorMessageAriaLabel","retryLink","children"]));return Fy("RetryActionButton",s),jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},jt().createElement(Tg,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:r,color:"errorIcon",size:"12px"})),jt().createElement(Tg,{horizontal:!1,doNotRenderFalsyValues:!0},jt().createElement(xb,{"aria-label":i},o),jt().createElement(rx,(0,e.__assign)({},a))))},JE=function(t){var n,r=t.text,o=t["aria-label"],i=t.disabled,a=void 0!==i&&i,s=t.iconName,l=t.textAlignment,c=void 0===l?"center":l,u=t.operationData,d=t.type,p=t.parentComponentName,h=(0,e.__rest)(t,["text","aria-label","disabled","iconName","textAlignment","operationData","type","parentComponentName"]);ll("ActionButton",h.id),Fy("ActionButton",h);var m=Di(),f="primary"===d?UE:GE,g=function(e,t,n){return void 0===n&&(n="themePrimary"),"error"===e?{rest:"errorIcon",hover:"warningIcon",pressed:"severeWarningIcon"}:QE(e,t,n)}(t.type,a),v="TextColumn"===p||"MediaTitleColumn"===p;"default"!==t.type&&t.type||(g=QE(t.type,a,t.buttonColor));var y,b=dg(),C=(0,e.__assign)({text:r,disabled:a,ariaLabel:o,styles:{root:(0,e.__assign)((n={color:By(b,g.rest),textAlign:c},n[Iu]={color:(y=t.type,"primary"!==y?"highlight":void 0)},n),v&&{height:"auto",wordBreak:"normal"}),rootHovered:{color:By(b,g.hover)},rootPressed:{color:By(b,g.pressed)}},onRenderIcon:s?function(){return jt().createElement(Hy,{size:"16px",iconName:s})}:void 0},h),S=h.href;(0,Gt.useEffect)((function(){m.checkUrlAndReportHttp(S)}),[S]);var x=function(){return h.tooltipHostProps?jt().createElement(XS,(0,e.__assign)({},h.tooltipHostProps),jt().createElement(f,(0,e.__assign)({},C))):jt().createElement(f,(0,e.__assign)({},C))};if(u){var _=x();"retryActionButton"in u&&u.retryActionButton?_=jt().createElement(ZE,(0,e.__assign)({},u.retryActionButton)):"errorCallout"in u&&u.errorCallout&&(_=jt().createElement($E,{as:f,buttonProps:C,errorCalloutProps:u.errorCallout}));var E=(0,e.__assign)((0,e.__assign)({},C),{text:u.textWhileUpdating||r,disabled:!0,onRenderIcon:function(){return jt().createElement(sb,{size:qy.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return jt().createElement(Xs,{operationData:u.progressViewOperationData,updatingView:jt().createElement(f,(0,e.__assign)({},E)),updateFailedView:_,finishedView:x(),failedView:void 0})}return x()},$E=function(t){var n=t.as,r=t.buttonProps,o=t.errorCalloutProps,i=(0,Gt.useRef)(null);return jt().createElement(jt().Fragment,null,jt().createElement(n,(0,e.__assign)({elementRef:i},r)),jt().createElement(XE,(0,e.__assign)({targetOrTriggerButton:i},o)))},ek=function(t){var n=t.iconName,r=t.menuItems,o=t.iconColor,i=t.isBeakVisible,a=t.backgroundColor,s=t.onMenuOpened,l=t.onMenuDismissed,c=t.menuItemsPadding,u=t.disabled,d=t.hasHighContrastBackground,p=t.menuIconVariant,h=void 0===p?"default":p,m=(0,e.__rest)(t,["iconName","menuItems","iconColor","isBeakVisible","backgroundColor","onMenuOpened","onMenuDismissed","menuItemsPadding","disabled","hasHighContrastBackground","menuIconVariant"]);ll("MenuIconButton",m.id);var f=dg(),g=Di(),v=g.twoUITelemetryIds.areaBiId,y=function(){return null},b=r.map((function(t,n){if("divider"===t.itemType)return{key:"divider_".concat(n),text:"",itemType:Zx.Divider};if("header"===t.itemType)return(0,e.__assign)((0,e.__assign)({},t),{style:t.backgroundColor?{backgroundColor:By(f,t.backgroundColor)}:{},itemType:Zx.Header});return(0,e.__assign)((0,e.__assign)({},t),{ariaLabel:t["aria-label"],itemType:Zx.Normal,onRender:u?function(){return jt().createElement(bb,{padding:"8px 8p 4px 8px"},jt().createElement(Ib,{disabled:!0},t.name))}:t.onRender,onClick:function(e){var n={clickId:"".concat(t["data-bi-id"]),pageArea:v};g.reportClick(n),t.onClick&&t.onClick(e)}})})),C={iconProps:{iconName:n},menuProps:{items:b,isBeakVisible:i,styles:{root:{padding:c,backgroundColor:a?By(f,a):void 0}},directionalHint:kv,gapSpace:4,onMenuOpened:s,onMenuDismissed:l}},S={icon:{}};return"card"===h&&(S.root=(0,e.__assign)((0,e.__assign)({},S.root),{padding:"22px 10px 22px 10px"})),o&&(S.icon.color=By(f,o)),d&&(S.rootHovered={backgroundColor:f.palette.neutralLight},S.rootPressed={backgroundColor:f.palette.neutralQuaternaryAlt}),m.tooltipHostProps?jt().createElement(XS,(0,e.__assign)({},m.tooltipHostProps),jt().createElement(qE,(0,e.__assign)({},C,m,{onRenderMenuIcon:y,styles:S}))):jt().createElement(qE,(0,e.__assign)({},C,m,{onRenderMenuIcon:y,styles:S}))},tk=function(e,t){return{display:"flex",flexDirection:"row",justifyContent:e,flexWrap:"wrap",overflow:"hidden",flexShrink:1,alignItems:"center",height:t,whiteSpace:"nowrap"}};function nk(e,t){var n;return function(){clearTimeout(n),n=__webpack_require__.g.setTimeout(e,t)}}var rk="MoreVertical",ok=function(e,t,n){for(var r=[],o=e.clientHeight+e.offsetTop,i=function(e){var i=t[e];if(i.hasAttribute("hidden")&&i.removeAttribute("hidden"),i.offsetTop>=o){var a=n[e];i.setAttribute("hidden","");var s=ak(a);r.push({key:"overflow-".concat(e+1),name:"overflowItem-".concat(e+1),"data-bi-id":a.props["data-bi-id"]||"","aria-label":a.props["aria-label"]||"",onRender:function(){return s}})}},a=0;a<t.length;a++)i(a);return r},ik=function(t,n,r){n.setAttribute("hidden","");var o=ak(r);return(0,e.__spreadArray)([{key:"overflow-0",name:"overflowItem-0","data-bi-id":r.props["data-bi-id"]||"","aria-label":r.props["aria-label"]||r.props.ariaLabel||"",onRender:function(){return o}}],t,!0)},ak=function(t){return jt().cloneElement(t,{children:jt().isValidElement(t.props.children)?jt().cloneElement(t.props.children,(0,e.__assign)((0,e.__assign)({},t.props.children.props),{role:"menuitem"})):t.props.children,role:jt().isValidElement(t.props.children)?void 0:"menuitem"})},sk=function(t){var n=t.children,r=t.alignment,o=void 0===r?"flex-start":r,i=(0,e.__rest)(t,["children","alignment"]);ll("FlexibleMenu",i.id);var a=(0,Gt.useState)(1),s=a[0],l=a[1],c=function(){l(window.innerWidth)};return(0,Gt.useLayoutEffect)((function(){var e=nk(c,300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),jt().createElement(lk,(0,e.__assign)({windowWidth:s,alignment:o},i),n)},lk=function(t){var n=t.menuProps,r=t.height,o=t.children,i=t.windowWidth,a=t.alignment,s=(0,e.__rest)(t,["menuProps","height","children","windowWidth","alignment"]),l=(0,Gt.useRef)(null),c=(0,Gt.useState)(!1),u=c[0],d=c[1],p=(0,Gt.useState)([]),h=p[0],m=p[1],f=(null===n||void 0===n?void 0:n.menuItems)||[],g=tk(a,r);return(0,Gt.useLayoutEffect)((function(){d(!0)}),[i,o,n]),(0,Gt.useLayoutEffect)((function(){if(l.current){var t=Array.from(l.current.children),n=jt().Children.toArray(o),r=ok(l.current,t,n);if(t.length>0){var i=t[0],a=n[0],s=l.current.clientWidth;i.clientWidth>=s&&(r=ik(r,i,a))}var c=(0,e.__spreadArray)((0,e.__spreadArray)([],r,!0),f,!0);c.length>0?m(c):d(!1)}}),[i,o,n]),jt().createElement(bb,{horizontal:!0,verticalAlign:"center",grow:!0,horizontalAlign:"end",padding:u?"":"0 8px 0 0"},jt().createElement(wb,{grow:!0},jt().createElement("div",{style:g,ref:l},o)),u?jt().createElement(ek,(0,e.__assign)({},s,n,{iconName:rk,menuItems:h})):null)},ck=function(t){var n=t.actionAlignment,r=t.actionButton,o=t.menuIconButton,i=(0,e.__rest)(t,["actionAlignment","actionButton","menuIconButton"]),a=(0,e.__assign)({menuProps:o,height:"40px",alignment:n},i);return jt().createElement(wb,{keycodes:[13]},jt().createElement(sk,(0,e.__assign)({},a),r?jt().createElement(JE,(0,e.__assign)({},r)):null))},uk=function(t){var n=t.errorMessage,r=t.errorMessageAriaLabel,o=t.retryLink,i=(t.children,(0,e.__rest)(t,["errorMessage","errorMessageAriaLabel","retryLink","children"]));return Fy("ErrorButton",i),jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},jt().createElement(Tg,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:"Error",color:"errorIcon",size:"12px"})),jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:6},doNotRenderFalsyValues:!0},jt().createElement(ub,{"aria-label":r},n),jt().createElement(rx,(0,e.__assign)({},o))))},dk=function(t){var n=t.type,r=void 0===n?"default":n,o=t.onClick,i=t.text,a=t["aria-label"],s=t.disabled,l=void 0!==s&&s,c=t.allowDisabledFocus,u=void 0!==c&&c,d=t.operationData,p=(0,e.__rest)(t,["type","onClick","text","aria-label","disabled","allowDisabledFocus","operationData"]);ll("Button",p.id),Fy("Button",p);var h=dg(),m="primaryAlt"===r?function(e){var t;return zd({root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}},{root:{backgroundColor:e.palette.transparent,borderColor:e.palette.themeDarkAlt,color:e.palette.themeDarkAlt,selectors:(t={},t[".".concat(Nu," &:focus")]={selectors:{":after":{border:"none",outlineColor:e.palette.themeDark}}},t)},rootHovered:{backgroundColor:e.palette.transparent,borderColor:e.palette.themeDark,color:e.palette.themeDark},rootPressed:{backgroundColor:e.palette.transparent,borderColor:e.palette.themeDarker,color:e.palette.themeDarker},rootDisabled:{backgroundColor:e.palette.transparent,borderColor:e.palette.neutralTertiary,color:e.palette.neutralTertiary}})}(h):"error"===r?function(e){var t;return zd({root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}},{root:{borderColor:e.palette.redDark,color:e.palette.redDark,selectors:(t={},t[".".concat(Nu," &:focus")]={selectors:{":after":{border:"none",outlineColor:e.palette.themeDark}}},t)}})}(h):{root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}},f=(0,e.__assign)({onClick:o,text:i,disabled:l,ariaLabel:a,allowDisabledFocus:u,styles:m},p),g="primary"===r||"primaryAlt"===r?UE:zE;if(d){var v=d.errorButton?jt().createElement(uk,(0,e.__assign)({},d.errorButton)):jt().createElement(g,(0,e.__assign)({},f)),y=(0,e.__assign)((0,e.__assign)({},f),{onClick:void 0,text:i,disabled:!0,allowDisabledFocus:!1,onRenderIcon:function(){return jt().createElement(sb,{size:qy.small,styles:{root:{marginRight:"4px"}}})}});return jt().createElement(Xs,{operationData:d.progressViewOperationData,updatingView:jt().createElement(g,(0,e.__assign)({},y)),finishedView:jt().createElement(g,(0,e.__assign)({},f)),failedView:v})}return jt().createElement(g,(0,e.__assign)({},f))},pk=function(t){var n=t.onClick,r=t["aria-label"],o=t.disabled,i=void 0!==o&&o,a=t.iconName,s=t.iconColor,l=void 0===s?"themePrimary":s,c=t.hasHighContrastBackground,u=t.iconButtonVariant,d=void 0===u?"default":u,p=t.iconButtonRef,h=(0,e.__rest)(t,["onClick","aria-label","disabled","iconName","iconColor","hasHighContrastBackground","iconButtonVariant","iconButtonRef"]);ll("IconButton",h.id),Fy("IconButton",h);var m=dg(),f=(0,e.__assign)((0,e.__assign)({},h),{onClick:n,disabled:i,ariaLabel:r,componentRef:p,onRenderIcon:function(){return jt().createElement(Hy,{size:"16px",color:i?"neutralTertiaryAlt":l,iconName:a})}}),g=By(m,l),v={icon:{color:g}};"card"===d&&(v.root={padding:"22px"});var y=function(){return h.tooltipHostProps?jt().createElement(XS,(0,e.__assign)({},h.tooltipHostProps),jt().createElement(qE,(0,e.__assign)({},f,{styles:v}))):jt().createElement(qE,(0,e.__assign)({},f,{styles:v}))};if(i&&(v.rootDisabled={backgroundColor:"inherit"}),c&&(v.rootHovered={backgroundColor:m.palette.neutralLight},v.rootPressed={backgroundColor:m.palette.neutralQuaternaryAlt}),h.operationData){var b=h.operationData,C=(0,e.__assign)((0,e.__assign)({},f),{onClick:function(){},disabled:!0,onRenderIcon:function(){return jt().createElement(sb,{color:g,size:qy.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return jt().createElement(Xs,{operationData:b.progressViewOperationData,inertView:jt().createElement(qE,(0,e.__assign)({},f,{styles:v})),updatingView:jt().createElement(GE,(0,e.__assign)({},C)),finishedView:y()})}return y()},hk={display:"inline-block"},mk=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},fk=function(t){var n=t.calloutPosition,r=t.calloutRole,o=void 0===r?"status":r,i=t.children,a=(0,e.__rest)(t,["calloutPosition","calloutRole","children"]);ll("Callout",a.id),Fy("Callout",a);var s,l=(0,Gt.useState)(!1),c=l[0],u=l[1],d=(0,Gt.useRef)(null),p=dg(),h=function(){u(!c)},m="IconButton"===a.calloutTrigger?a.calloutTriggerProps.iconName:void 0;switch((0,Gt.useEffect)((function(){u(!1)}),[m]),a.calloutTrigger){case"NoHrefLink":s=jt().createElement(rx,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}));break;case"IconButton":s=jt().createElement(pk,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}));break;case"Button":s=jt().createElement(dk,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}))}return jt().createElement(jt().Fragment,null,jt().createElement("div",{style:(0,e.__assign)({},hk),ref:d},s),c?jt().createElement(HS,(0,e.__assign)({styles:mk(p),role:o,target:d,onDismiss:function(){u(!1)},setInitialFocus:!0,directionalHint:Nv[n||"bottom-center"],layerProps:{eventBubblingEnabled:!0}},a),i):null)},gk=function(e){var t=e.errorMessage,n=e.id;return jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(Tg,{verticalAlign:"center",tokens:{padding:"0px 16px 0px 0px"},doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:"Error",size:"16px",color:"errorIcon"})),jt().createElement(Tg,{verticalAlign:"center",styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},jt().createElement(Ib,{block:!0,nowrap:!0,colorOverride:"error",variant:"bodyPrimaryText",id:n},t)))},vk={root:{maxWidth:"fit-content"}},yk=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},bk=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},Ck=function(t){var n=G_.getInstance(),r=t.className,o=t.overflowItems,i=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=av({}),c=Gt.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),u=Gt.useMemo((function(){var t=[],r=[];return i?null===o||void 0===o||o.forEach((function(o){var a,s=o.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(o)?(l.onExecute=n.menuExecute.bind(n,i,null===(a=null===o||void 0===o?void 0:o.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var u=(0,e.__assign)((0,e.__assign)({},o),{keytipProps:(0,e.__assign)((0,e.__assign)({},s),{overflowSetSequence:i})});null===r||void 0===r||r.push(u)}else null===r||void 0===r||r.push(o)})):r=o,{modifiedOverflowItems:r,keytipsToRegister:t}}),[o,c,n,i]),d=u.modifiedOverflowItems;return function(e,t,n){var r=W_(e);Gt.useEffect((function(){r&&(bk(n,r),yk(t,n,e))})),Gt.useEffect((function(){return yk(t,n,e),function(){bk(n,e)}}),[])}(l,u.keytipsToRegister,n),Gt.createElement("div",{className:r},s(d))},Sk=zg(),xk=Gt.forwardRef((function(t,n){var r=Gt.useRef(null),o=Sm(r,n);!function(e,t){Gt.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Gb(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&zb(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(t,r);var i=t.items,a=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,u=t.role,d=t.overflowSide,p=void 0===d?"end":d,h=t.onRenderItem,m=Sk(l,{className:s,vertical:c}),f=!!a&&a.length>0;return Gt.createElement("div",(0,e.__assign)({},Qh(t,Xh),{role:u||"group","aria-orientation":"menubar"===u?!0===c?"vertical":"horizontal":void 0,className:m.root,ref:o}),"start"===p&&f&&Gt.createElement(Ck,(0,e.__assign)({},t,{className:m.overflowButton})),i&&i.map((function(e,t){return Gt.createElement("div",{className:m.item,key:e.key,role:"none"},h(e))})),"end"===p&&f&&Gt.createElement(Ck,(0,e.__assign)({},t,{className:m.overflowButton})))}));xk.displayName="OverflowSet";var _k,Ek={flexShrink:0,display:"inherit"},kk=Ng(xk,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Ek],overflowButton:["ms-OverflowSet-overflowButton",Ek]}}),void 0,{scope:"OverflowSet"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(_k||(_k={}));var wk=function(t){void 0===t&&(t=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}}());var n,r=t;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var o=t();return r.addMeasurementToCache(e,o),o}function i(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,a,s,l){if(void 0!==l||void 0!==a.dataToMeasure){if(l){if(n&&a.renderedData&&!a.dataToMeasure)return(0,e.__assign)((0,e.__assign)({},a),function(t,r,o,i){var a;return a=t>n?i?{resizeDirection:"grow",dataToMeasure:i(o)}:{resizeDirection:"shrink",dataToMeasure:r}:{resizeDirection:"shrink",dataToMeasure:o},n=t,(0,e.__assign)((0,e.__assign)({},a),{measureContainer:!1})}(l,t.data,a.renderedData,t.onGrowData));n=l}var c=(0,e.__assign)((0,e.__assign)({},a),{measureContainer:!1});return a.dataToMeasure&&(c="grow"===a.resizeDirection&&t.onGrowData?(0,e.__assign)((0,e.__assign)({},c),function(t,a,s,l){for(var c=t,u=o(t,s);u<n;){var d=a(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,e.__assign)({resizeDirection:"shrink"},i(c,l,s))}(a.dataToMeasure,t.onGrowData,s,t.onReduceData)):(0,e.__assign)((0,e.__assign)({},c),i(a.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,e.__assign)({},t),resizeDirection:"grow",measureContainer:!0}}}},Ik=Gt.createContext({isMeasured:!1}),Pk={position:"fixed",visibility:"hidden"},Tk={position:"relative"};function Dk(t,n){var r;switch(n.type){case"resizeData":return(0,e.__assign)({},n.value);case"dataToMeasure":return(0,e.__assign)((0,e.__assign)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,e.__assign)((0,e.__assign)({},t),((r={})[n.type]=n.value,r))}}function Ak(t,n){var r=av(wk),o=Gt.useRef(null),i=Gt.useRef(null),a=Gt.useRef(!1),s=XC(),l=function(t,n,r){var o=av((function(){return n.getInitialResizeGroupState(t.data)})),i=Gt.useReducer(Dk,o),a=i[0],s=i[1];Gt.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=Gt.useRef(o);return l.current=(0,e.__assign)({},a),[l,Gt.useCallback((function(e){e&&s({type:"resizeData",value:e})}),[]),Gt.useCallback((function(){r.current&&s({type:"measureContainer",value:!0})}),[r])]}(t,r,n),c=l[0],u=l[1],d=l[2];Gt.useEffect((function(){var e;c.current.renderedData&&(a.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,c.current.renderedData))})),Gt.useEffect((function(){s.requestAnimationFrame((function(){var e=void 0;if(c.current.measureContainer&&n.current){var s=n.current.getBoundingClientRect();e=t.direction===_k.vertical?s.height:s.width}var l=r.getNextState(t,c.current,(function(){var e=a.current?i:o;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===_k.vertical?n.height:n.width}),e);u(l)}),n.current)})),QC(qp(),"resize",s.debounce(d,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(c.current.dataToMeasure),h=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,d,o,i,p,h]}var Rk={isMeasured:!0},Nk=Gt.forwardRef((function(t,n){var r=Gt.useRef(null),o=Sm(r,n),i=Ak(t,r),a=i[0],s=i[1],l=i[2],c=i[3],u=i[4],d=i[5],p=i[6];Gt.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var h=t.className,m=t.onRenderData,f=Qh(t,Xh,["data"]);return Gt.createElement("div",(0,e.__assign)({},f,{className:h,ref:o}),Gt.createElement("div",{style:Tk},d&&!p&&Gt.createElement("div",{style:Pk,ref:u},Gt.createElement(Ik.Provider,{value:Rk},m(a))),Gt.createElement("div",{ref:c,style:p?Pk:void 0,"data-automation-id":"visibleContent"},p?m(a):s&&m(s))))}));Nk.displayName="ResizeGroupBase";var Mk=Nk,Fk={"6px":"12px","8px":"14px","10px":"16px","12px":"20px","14px":"24px","16px":"32px","20px":"36px","24px":"40px","28px":"48px","32px":"60px","40px":"72px","48px":"96px","60px":"110px","72px":"132px","96px":"164px","164px":"294px","200px":"368px"},Bk=(Object.keys(Fk),Object.values(Fk),function(e,t,n,r,o){var i={image:{}};if(n&&(i.image.borderRadius=n),e&&(i.image.filter="grayscale(100%)"),t&&(i.image.opacity="0.5"),r&&(i.image[Zv]={filter:"invert(100%)"}),o)switch(o){case"toLeft":i.image["-webkit-mask-image"]="linear-gradient(to left, #fff, transparent);";break;case"toBottom":i.image["-webkit-mask-image"]="linear-gradient(to bottom, #fff, transparent);";break;case"toRight":i.image["-webkit-mask-image"]="linear-gradient(to right, #fff, transparent);";break;case"toTop":i.image["-webkit-mask-image"]="linear-gradient(to top, #fff, transparent);"}return i}),Ok={none:Rx.none,center:Rx.center,"center-contain":Rx.centerContain,"center-cover":Rx.centerCover,contain:Rx.contain,cover:Rx.cover},Lk=function(e,t,n,r){return{root:{height:t,width:n,backgroundColor:r?e.palette.neutralLighter:"transparent"}}},Hk=function(t){var n=t.height,r=t.width,o=t.fallbackIconProps,i=(0,e.__rest)(t,["height","width","fallbackIconProps"]),a=dg();if(n&&r){var s=Vk(n),l=Vk(r),c=Math.min(s,l),u=c>=36,d=void 0;d=c>=100?"48px":c<100&&c>=50?"32px":"16px";var p=o?jt().createElement(Hy,(0,e.__assign)({},o,{size:d})):jt().createElement(Hy,{iconName:"Photo2Remove",color:"neutralTertiaryAlt",size:d}),h=jt().createElement(Tg,{styles:Lk(a,s,l,u),horizontalAlign:"center",verticalAlign:"center",role:"altTextImage"===i.imageType?"img":"presentation",doNotRenderFalsyValues:!0},p);return"altTextImage"===i.imageType?jt().createElement(XS,{tooltipText:i.alt,tooltipPosition:"top-center"},h):h}return null},Vk=function(e){return"number"===typeof e?e:e.includes("px")?+e.substr(0,e.length-"px".length):0},zk=function(t){var n=t.imageFit,r=t.src,o=t.errorSrc,i=t.borderRadius,a=t.height,s=t.width,l=t.grayscale,c=t.disabled,u=t.enableHighContrastMode,d=t.imageGradientType,p=(0,e.__rest)(t,["imageFit","src","errorSrc","borderRadius","height","width","grayscale","disabled","enableHighContrastMode","imageGradientType"]);ll("Image",p.id),Fy("Image",p);var h=Di(),m=(0,Gt.useState)(r),f=m[0],g=m[1],v=(0,Gt.useState)(!1),y=v[0],b=v[1];(0,Gt.useEffect)((function(){h.checkUrlAndReportHttp(r),g(r)}),[r]);var C=(0,Gt.useRef)(!0);(0,Gt.useEffect)((function(){C.current?C.current=!1:b(!1)}),[f]);var S={};return"ariaHiddenImage"===p.imageType&&(S={"aria-hidden":!0}),y?jt().createElement(Hk,(0,e.__assign)({height:a,width:s},p)):jt().createElement(Ux,(0,e.__assign)({onLoadingStateChange:function(e){e!==Mx.error&&void 0!==f&&null!==f||(o&&f!==o?g(o):b(!0))},imageFit:n?Ok[n]:void 0,src:f,styles:Bk(l,c,i,u,d),height:a,width:s},S,p))},Uk=function(e,t,n){return{root:{width:e,backgroundColor:t,fontSize:e,lineHeight:e,minHeight:e,borderRadius:n||"0px"}}},Wk=function(e,t,n){return{root:{width:e,height:e,backgroundColor:t,borderRadius:n||"0px"}}},Gk=function(e,t,n){return{position:"absolute",backgroundColor:t.palette[e.backgroundColor],width:"100%",bottom:"0px",height:"topAligned"===e.type?"33%":void 0,borderBottomLeftRadius:n,borderBottomRightRadius:n,paddingBottom:"6px",paddingTop:"6px",paddingLeft:"8px",paddingRight:"8px",opacity:"75%",boxSizing:"border-box"}},jk=function(t){var n=t.size,r=t.image,o=t.height,i=t.padding,a=t.imagePadding,s=t.disabled,l=t.topAlign,c=t.borderRadius,u=t.horizontal,d=void 0===u||u,p=t.linkProps,h=t.children,m=(0,e.__rest)(t,["size","image","height","padding","imagePadding","disabled","topAlign","borderRadius","horizontal","linkProps","children"]);ll("Media",m.id),Fy("Media",m);var f,g,v=dg(),y=ny(),b={},C=o||"44px",S=i||"6px 0",x=Ai();switch(n){case"xs":b={height:g="16px",width:g,lineHeight:"14px",fontSize:"10px"},f="12px";break;case"sm":b={height:g="24px",width:g,lineHeight:"22px",fontSize:"15px"},f="16px";break;case"md":b={height:g="32px",width:g,lineHeight:"29px",fontSize:"20px"},f="24px";break;case"lg":f="32px",g="48px",C=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?Fk[f]:g,b={height:g,width:g,lineHeight:"45px",fontSize:"30px"};break;case"xl":S=i||"10px 0",f="48px",g="60px",C=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?Fk[f]:g,b={height:g,width:g,lineHeight:"57px",fontSize:"60px"};break;case"xxl":S=i||"10px 0",f="60px",g="72px",C=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?Fk[f]:g,b={height:g,width:g,lineHeight:"69px",fontSize:"45px"};break;case"xxxl":S=i||"10px 0",f="96px",g="96px",C=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?Fk[f]:g,b={height:g,width:g,lineHeight:"93px",fontSize:"60px"}}if("imageCard"===r.imageType){if(x.includes("lowerMediaImageHeight"))g="220px",b={height:"220px",width:"146.67px"};else switch(n){case"xl":case"xxl":case"xxxl":case"lg":case"md":g="246px",b={height:"246px",width:"164px"};break;case"sm":case"xs":g="186px",b={height:"186px",width:"124px"}}S=i||"0px",C=null!==o&&void 0!==o?o:g}var _=d?"start":"center",E=d?void 0:"center",k={display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",height:"100%",position:"imageCard"===r.imageType&&r.textHost?"relative":void 0},w=jt().createElement(bb,(0,e.__assign)({horizontal:d,childrenGap:"8px",padding:S},m),jt().createElement(Cb,{align:_,height:l?void 0:C,shrink:0,padding:a},jt().createElement("div",{style:k},function(){var t;switch(r.imageType){case"image":case"imageCard":return qk((0,e.__assign)((0,e.__assign)({},r),{theme:v,viewportType:y,style:b,imageSize:g,disabled:s,borderRadius:c}));case"imageFavicon":var o=null!==(t=r.iconProps)&&void 0!==t?t:{iconName:"Globe",color:"neutralPrimary"};return qk((0,e.__assign)((0,e.__assign)({},r),{theme:v,viewportType:y,style:b,imageSize:g,disabled:s,borderRadius:c,fallbackIconProps:o}));case"icon":return Yk((0,e.__assign)({theme:v,iconSize:f,disabled:s,borderRadius:c},r));case"character":return Xk((0,e.__assign)({theme:v,style:b,size:n,disabled:s,borderRadiusStyle:c},r))}}())),h?jt().createElement(Cb,{align:"center",grow:!0,textAlignment:E},h):null);if(p){p.kind;var I=(0,e.__rest)(p,["kind"]);return jt().createElement(Xy,(0,e.__assign)({},I,{styles:{root:{selectors:{":hover":{textDecoration:"none"},":active:focus":{textDecoration:"none"}}}},disabled:s}),w)}return w},qk=function(t){var n,r=t.theme,o=(t.viewportType,t.imageSize),i=t.backplate,a=t.textHost,s=(t.imageType,t.style),l=(0,e.__rest)(t,["theme","viewportType","imageSize","backplate","textHost","imageType","style"]),c=a?jt().createElement(jt().Fragment,null,jt().createElement(zk,(0,e.__assign)({},l,{alt:"",height:s.height,width:s.width})),Kk(a,r,l.borderRadius)):jt().createElement(zk,(0,e.__assign)({},l,{alt:"",height:s.height,width:s.width}));if(i){var u=null!==(n=By(r,!0===i?"themePrimary":i))&&void 0!==n?n:i;return jt().createElement(Tg,{verticalAlign:"center",horizontalAlign:"center",styles:Wk(Bv[o],u,l.borderRadius),doNotRenderFalsyValues:!0},c)}return c},Kk=function(t,n,r){return jt().createElement("div",{style:Gk(t,n,r)},jt().createElement(tx,(0,e.__assign)({},t.truncatedTextProps)))},Yk=function(t){var n,r=t.theme,o=t.iconSize,i=t.borderRadius,a=(t.imageType,t.iconColor),s=t.backplate,l=(0,e.__rest)(t,["theme","iconSize","borderRadius","imageType","iconColor","backplate"]),c=jt().createElement(Hy,(0,e.__assign)({},l,{size:o,color:a}));if(s){var u=By(r,!0===s?"themePrimary":s);return jt().createElement(Tg,{horizontal:!0,styles:Uk(Fk[o],u,i),doNotRenderFalsyValues:!0},jt().createElement(Tg,{verticalAlign:"center",styles:(n=Fk[o],{root:{width:n,height:n,position:"absolute",verticalAlign:"center",textAlign:"center"}}),doNotRenderFalsyValues:!0},c))}return c},Xk=function(t){var n,r=t.theme,o=t.style,i=t.size,a=t.disabled,s=t.borderRadiusStyle,l=t.characterVariant,c=t.backplateColor,u=(0,e.__rest)(t,["theme","style","size","disabled","borderRadiusStyle","characterVariant","backplateColor"]);Dg("Media",[(n=u.character,function(){return 1!==n.length?"Prop 'character' must be one character":void 0})]);var d,p,h=r.palette,m=null!==s&&void 0!==s?s:["xs","sm","md"].includes(i)?"2px":"4px";c?(d=By(r,c),p=l&&"neutralDark"===l?r.palette.neutralDark:r.palette.neutralHigh):(d=a?h.neutralLighter:h.neutralSecondary,p=r.palette.neutralHigh);var f=(0,e.__assign)({background:d,color:p,borderRadius:m},o);return jt().createElement("div",{style:f},u.character)},Qk=function(e){return e.map((function(e){return e.key})).toString()},Zk=function(t){var n=t.mediaImageList,r=t.overflowLabel,o=t.mediaLabel,i=t.hideHeaderMedia,a=t.id,s="",l=n?n.map((function(e,t){return s+="item".concat(t),{key:t.toString(),mediaImage:e}})):[],c=hx()?"translateX(100%)":"translateX(-100%)",u={transition:"transform 0.5s ease-out",transformOrigin:"left",transform:i?c:"translateX(0%)"},d=function(e){return jt().createElement(bb,{margin:"0px 8px 0px 0px"},jt().createElement(jk,{size:"md",borderRadius:"4px",image:{imageType:"image",src:e.mediaImage},height:"32px",padding:"0px"}))},p=function(e){return jt().createElement(bb,{verticalAlign:"center"},jt().createElement(Ib,{variant:"bodySecondaryText"},"+".concat(null===e||void 0===e?void 0:e.length," ").concat(r)))},h={primary:l,overflow:[],cacheKey:s};return jt().createElement(bb,{grow:!0},jt().createElement(bb,{width:"inherit",maxWidth:"664px"},jt().createElement(Mk,{onRenderData:function(e){return jt().createElement(bb,{childrenGap:"17px",verticalAlign:"center",horizontal:!0},jt().createElement(Ib,{id:a},o),jt().createElement(bb,{overflow:"hidden"},jt().createElement(Tg,{style:u,doNotRenderFalsyValues:!0},jt().createElement(kk,{items:e.primary,onRenderItem:d,overflowItems:e.overflow,onRenderOverflowButton:p}))))},data:h,onReduceData:function(t){if(0!==t.primary.length){var n=(0,e.__spreadArray)((0,e.__spreadArray)([],t.primary.slice(-1),!0),t.overflow,!0),r=t.primary.slice(0,-1);return{primary:r,overflow:n,cacheKey:Qk(r)}}},onGrowData:function(t){if(0!==t.overflow.length){var n=(0,e.__spreadArray)([],t.overflow.slice(1),!0),r=(0,e.__spreadArray)((0,e.__spreadArray)([],t.primary,!0),t.overflow.slice(0,1),!0);return{primary:r,overflow:n,cacheKey:Qk(r)}}}})))},Jk=function(e){return"text"!==e.kind||void 0===e.nowrap||e.nowrap?{}:{root:{textAlign:"left"}}},$k=function(t){switch(t.kind){case"text":t.kind;var n=t.nowrap,r=void 0===n||n,o=(0,e.__rest)(t,["kind","nowrap"]);return r?jt().createElement(tx,(0,e.__assign)({},o)):jt().createElement(Ib,(0,e.__assign)({},o));case"hyperlink":t.kind;var i=(0,e.__rest)(t,["kind"]);return jt().createElement(wb,{keycodes:[13]},jt().createElement(nx,(0,e.__assign)({},i)));case"heading":t.kind;var a=t.nowrap,s=(r=void 0===a||a,(0,e.__rest)(t,["kind","nowrap"]));return r?jt().createElement(tx,(0,e.__assign)({type:"heading"},s)):jt().createElement(nb,(0,e.__assign)({},s))}},ew=function(t){var n=t.nowrap,r=void 0===n||n,o=(0,e.__rest)(t,["nowrap"]);return r?jt().createElement(tx,(0,e.__assign)({variant:"metadataText"},o)):jt().createElement(Ib,(0,e.__assign)({variant:"metadataText"},o))},tw=function(t){var n=t.media,r=t.title,o=t.subtitleTextProps,i=t.id,a=jt().createElement(Tg,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",styles:Jk(r),doNotRenderFalsyValues:!0},jt().createElement($k,(0,e.__assign)({},r,{id:i}))),jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},o?jt().createElement(ew,(0,e.__assign)({},o)):null));return jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},n?jt().createElement(Tg,{verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(jk,(0,e.__assign)({},n),a)):a)},nw=function(e){var t=e.height,n=e.width,r=void 0===n?"100%":n,o=e.shimmerColors;return ll("ShimmerLine"),jt().createElement(uv,{width:r,shimmerElements:[{type:Gg.line,width:"100%",height:t}],shimmerColors:o})},rw=function(t){var n=t.media,r=t.title,o=t.id;return jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},n?jt().createElement(Tg,{styles:{root:{paddingRight:"16px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(jk,(0,e.__assign)({},n))):null,jt().createElement(Tg,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",styles:Jk(r),doNotRenderFalsyValues:!0},jt().createElement($k,(0,e.__assign)({},r,{id:o}))),jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},jt().createElement(nw,{height:8,width:286}))))};function ow(e,t,n){var r=Gt.useState(t),o=r[0],i=r[1],a=av(void 0!==e),s=a?e:o,l=Gt.useRef(s),c=Gt.useRef(n);Gt.useEffect((function(){l.current=s,c.current=n}));var u=av((function(){return function(e,t){var n="function"===typeof e?e(l.current):e;c.current&&c.current(t,n),a||i(n)}}));return[s,u]}var iw=zg(),aw="Toggle",sw=Gt.forwardRef((function(t,n){var r=t.as,o=void 0===r?"div":r,i=t.ariaLabel,a=t.checked,s=t.className,l=t.defaultChecked,c=void 0!==l&&l,u=t.disabled,d=t.inlineLabel,p=t.label,h=t.offAriaLabel,m=t.offText,f=t.onAriaLabel,g=t.onChange,v=t.onChanged,y=t.onClick,b=t.onText,C=t.role,S=t.styles,x=t.theme,_=ow(a,c,Gt.useCallback((function(e,t){null===g||void 0===g||g(e,t),null===v||void 0===v||v(t)}),[g,v])),E=_[0],k=_[1],w=iw(S,{theme:x,className:s,disabled:u,checked:E,inlineLabel:d,onOffMissing:!b&&!m}),I=E?f:h,P=eE(aw,t.id),T="".concat(P,"-label"),D="".concat(P,"-stateText"),A=E?b:m,R=Qh(t,Bh,["defaultChecked"]),N=void 0;i||I||(p&&(N=T),A&&!N&&(N=D));var M=Gt.useRef(null);um(M),lw(t,E,M);var F={root:{className:w.root,hidden:R.hidden},label:{children:p,className:w.label,htmlFor:P,id:T},container:{className:w.container},pill:(0,e.__assign)((0,e.__assign)({},R),{"aria-disabled":u,"aria-checked":E,"aria-label":i||I,"aria-labelledby":N,className:w.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:u,id:P,onClick:function(e){u||(k(!E,e),y&&y(e))},ref:M,role:C||"switch",type:"button"}),thumb:{className:w.thumb},stateText:{children:A,className:w.text,htmlFor:P,id:D}};return Gt.createElement(o,(0,e.__assign)({ref:n},F.root),p&&Gt.createElement(ub,(0,e.__assign)({},F.label)),Gt.createElement("div",(0,e.__assign)({},F.container),Gt.createElement("button",(0,e.__assign)({},F.pill),Gt.createElement("span",(0,e.__assign)({},F.thumb))),(E&&b||m)&&Gt.createElement(ub,(0,e.__assign)({},F.stateText))))}));sw.displayName="ToggleBase";var lw=function(e,t,n){Gt.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},cw=Ng(sw,(function(t){var n,r,o,i,a,s,l,c=t.theme,u=t.className,d=t.disabled,p=t.checked,h=t.inlineLabel,m=t.onOffMissing,f=c.semanticColors,g=c.palette,v=f.bodyBackground,y=f.inputBackgroundChecked,b=f.inputBackgroundCheckedHovered,C=g.neutralDark,S=f.disabledBodySubtext,x=f.smallInputBorder,_=f.inputForegroundChecked,E=f.disabledBodySubtext,k=f.disabledBackground,w=f.smallInputBorder,I=f.inputBorderHovered,P=f.disabledBodySubtext,T=f.disabledText;return{root:["ms-Toggle",p&&"is-checked",!d&&"is-enabled",d&&"is-disabled",c.fonts.medium,{marginBottom:"8px"},h&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:T,selectors:(n={},n[Iu]={color:"GrayText"},n)},h&&!m&&{marginRight:16},m&&h&&{order:1,marginLeft:16},h&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",Ou(c,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid ".concat(w),background:v,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!d&&[!p&&{selectors:{":hover":[{borderColor:I}],":hover .ms-Toggle-thumb":[{backgroundColor:C,selectors:(r={},r[Iu]={borderColor:"Highlight"},r)}]}},p&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(o={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:(i={},i[Iu]={backgroundColor:"Highlight"},i)}]},o[Iu]=(0,e.__assign)({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}]],d&&[{cursor:"default"},!p&&[{borderColor:P}],p&&[{backgroundColor:S,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:(a={},a[Iu]={borderColor:"Highlight"},a)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:x,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!d&&p&&[{backgroundColor:_,selectors:(s={},s[Iu]={backgroundColor:"Window",borderColor:"Window"},s)}],d&&[!p&&[{backgroundColor:E}],p&&[{backgroundColor:k}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Cu.regular}}},d&&{selectors:{"&&":{color:T,selectors:(l={},l[Iu]={color:"GrayText"},l)}}}]}}),void 0,{scope:"Toggle"}),uw=function(t){var n=t.label,r=t.labelPosition,o=void 0===r?"right":r,i=t.spinnerSize,a=void 0===i?qy.medium:i,s=(0,e.__rest)(t,["label","labelPosition","spinnerSize"]);return ll("Spinner",s.id),Fy("Spinner",s),jt().createElement(sb,(0,e.__assign)({role:"alert",label:n,labelPosition:o,size:a},s))},dw=function(){var e=(0,Gt.useState)(!1),t=e[0],n=e[1];return(0,Gt.useEffect)((function(){var e=setTimeout((function(){n(!0)}),1e3);return function(){return clearTimeout(e)}}),[]),t?jt().createElement(sb,null):null},pw=function(t,n){return(0,e.__assign)((0,e.__assign)({},n),{text:(0,e.__assign)((0,e.__assign)({},null===n||void 0===n?void 0:n.text),{wordBreak:"normal"}),pill:[(0,e.__assign)({},null===n||void 0===n?void 0:n.pill),{selectors:{":focus":{outline:"1px solid ".concat(t.palette.neutralPrimary)}}}]})},hw=function(e){var t=e.inlineLabel,n=e.label,r=e.labelState,o=e.htmlFor,i=e.children,a=0,s="";return t&&(a=16,s="4px 0 0 0"),jt().createElement(bb,{horizontal:t,childrenGap:a},n?jt().createElement(bb,null,jt().createElement(xb,{labelState:r,htmlFor:o},n)):null,jt().createElement(bb,{horizontal:!0,padding:s,height:32},i))},mw=(0,Gt.forwardRef)((function(t,n){var r=t.inlineLabel,o=t.label,i=t.labelState,a=t.children,s=t.id,l=t.styles,c=(0,e.__rest)(t,["inlineLabel","label","labelState","children","id","styles"]),u=(0,Gt.useRef)(s||bh("Toggle")).current,d=dg();return jt().createElement(hw,{inlineLabel:r,label:o,labelState:i,htmlFor:u},jt().createElement("div",{ref:n},jt().createElement(cw,(0,e.__assign)({},c,{id:u,"data-bi-ctrlstate":!!c.checked,styles:pw(d,l)}))),a)})),fw=function(t){var n=(0,Gt.useState)(!1),r=n[0],o=n[1],i=(0,e.__assign)((0,e.__assign)({},t),{checked:!t.checked,disabled:!0});(0,Gt.useEffect)((function(){var e=setTimeout((function(){o(!0)}),1e3);return function(){return clearTimeout(e)}}),[]);var a=jt().createElement(bb,{verticalAlign:"start",padding:"0 0 8px 8px"},jt().createElement(uw,{"aria-label":t.ariaLabel})),s={};return r&&(s.text={display:"none"},t.onText||t.offText||(s.pill={display:"none"})),jt().createElement(mw,(0,e.__assign)({},i,{styles:s}),r?a:null)},gw=function(t){var n,r=t.errorCalloutProps,o=t.toggleProps,i=(0,Gt.useRef)(null);return n=o.onText||o.offText?r.targetOrTriggerButton:i,jt().createElement(mw,(0,e.__assign)({},o,{ref:i,styles:{text:{display:"none"}}}),jt().createElement(bb,{verticalAlign:"baseline"},jt().createElement(XE,{calloutPosition:"bottom-center",targetOrTriggerButton:n,errorMessageAriaLabel:r.errorMessageAriaLabel,errorMessage:r.errorMessage})))},vw=function(t){var n=t["aria-label"],r=t.label,o=t.labelPosition,i=void 0===o?null:o,a=t.labelState,s=t.onText,l=t.offText,c=t.onChange,u=t.checked,d=t.disabled,p=void 0!==d&&d,h=t.operationData,m=t.componentRef,f=(0,e.__rest)(t,["aria-label","label","labelPosition","labelState","onText","offText","onChange","checked","disabled","operationData","componentRef"]);ll("Toggle",f.id),Fy("Toggle",f);var g=(0,e.__assign)((0,e.__assign)({ariaLabel:n,label:r,labelState:a,onText:s,offText:l,onChange:c,checked:u,disabled:p,componentRef:m},f),function(e){if("inline"===e)return{inlineLabel:!0}}(i));if(h){var v=jt().createElement(mw,(0,e.__assign)({},g));return h.errorCallout&&(v=jt().createElement(gw,{toggleProps:g,errorCalloutProps:h.errorCallout,operationData:h})),jt().createElement(Xs,{operationData:h.progressViewOperationData,updatingView:jt().createElement(fw,(0,e.__assign)({},g)),finishedView:jt().createElement(mw,(0,e.__assign)({},g)),updateFailedView:v})}return jt().createElement(mw,(0,e.__assign)({},g))},yw=[tw,function(e){var t=e.iconName,n=e.statusAlignment,r=void 0===n?"start":n,o=e.textWeightOverride,i=e.textVariant,a=e.children;return jt().createElement(Tg,{horizontal:!0,horizontalAlign:r,verticalAlign:"center",doNotRenderFalsyValues:!0},t?jt().createElement(Tg,{verticalAlign:"center",styles:{root:{paddingRight:"8px"}},doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:t,size:"16px"})):null,jt().createElement(Tg,{styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},jt().createElement(tx,{weightOverride:o,variant:i},a)))},ck,function(t){var n=t.label,r=t.togglePosition,o=void 0===r?"start":r,i=(0,e.__rest)(t,["label","togglePosition"]),a=ny(),s="s"===a||"m"===a||"l"===a,l=(0,e.__assign)({},i);return s&&(l=(0,e.__assign)((0,e.__assign)({},i),{offText:void 0,onText:void 0})),jt().createElement(vb,{totalSlots:5,reversed:"end"===o,verticalAlign:"center"},jt().createElement(gb,{slots:2},jt().createElement(bb,{verticalAlign:"center",horizontalAlign:"end",padding:"12px 0 0 0"},jt().createElement(wb,{keycodes:[13]},jt().createElement(vw,(0,e.__assign)({},l))))),jt().createElement(gb,{slots:3},s?null:jt().createElement(Ib,{variant:"bodySecondaryText",block:!0,nowrap:!0},n)))},function(t){var n=t.kind,r=t.showDrawerLinkEllipsis,o=void 0===r||r,i=(0,e.__rest)(t,["kind","showDrawerLinkEllipsis"]),a=jt().createElement(jt().Fragment,null),s=o?{truncatedLinkProps:{}}:void 0;switch(n){case"hyperlink":a=jt().createElement(nx,(0,e.__assign)({},i.hyperlink,s));break;case"routelink":a=jt().createElement(nx,(0,e.__assign)({},i.routelink,s));break;case"nohreflink":a=jt().createElement(rx,(0,e.__assign)({},i.nohreflink,s))}return jt().createElement(wb,{keycodes:[13]},jt().createElement(Tg,{styles:vk,doNotRenderFalsyValues:!0},a))},gk,Zk,rw,function(t){var n=t.calloutProps;return jt().createElement(Tg,{horizontalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(wb,null,jt().createElement(fk,(0,e.__assign)({},n),n.children)))}],bw=function(e){var t,n,r=e.totalSlots,o=e.columns,i=e.chevronPosition,a=void 0===i?"start":i,s=e.progressIndicator,l=e.showAltBackgroundColor,c=void 0!==l&&l,u=e.minHeight,d=void 0===u?"48px":u,p=e.indentPadding,h=void 0===p?"0px":p,m=e.isShimmer,f=void 0!==m&&m,g=dg(),v=[tw,gk,rw,Zk],y=v.map((function(e){return e.name})).join(", "),b=(0,Gt.useContext)(Cw).drawerHeaderTitleId;t=o&&o.length>=1?o[0].column:void 0,(0,Gt.useEffect)((function(){t&&v.includes(t.type)||Ag("DrawerHeader","Invalid first column for Drawer Header. Acceptable types for the DrawerHeader's first column are: ".concat(y),1),o.forEach((function(e){hv(e.column,yw,"DrawerHeader")}))}),[o]);var C=jt().createElement(Tg,{verticalAlign:"center",styles:{root:{padding:"0px 16px"}},doNotRenderFalsyValues:!0},jt().createElement(Ex,{chevronPosition:a,isShimmer:f}));t&&(n=jt().cloneElement(t,{id:b}));var S=o.map((function(e,r){var i="start"===a&&0===r||"end"===a&&r===o.length-1,s="end"===a&&0===r||"start"===a&&r===o.length-1;return jt().createElement(gb,{slots:e.slots,key:r},jt().createElement(Tg,{horizontal:!0,styles:s?dx(a,h):0===r?px(h):void 0,doNotRenderFalsyValues:!0},"start"===a&&0===r?C:null,jt().createElement(Tg,{styles:ux(i),doNotRenderFalsyValues:!0},0===r&&t?n:e.column),"end"===a&&r===o.length-1?C:null))})),x=s?jt().createElement(lx,{ariaValueText:null===s||void 0===s?void 0:s.ariaValueText,ariaLabel:null===s||void 0===s?void 0:s.ariaLabel}):jt().createElement(jt().Fragment,null),_=s?"6px 0px 8px 0px":"8px 0px";return jt().createElement(Tg,{verticalAlign:"center",styles:cx(g,c,d),doNotRenderFalsyValues:!0},x,jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",tokens:{padding:_},doNotRenderFalsyValues:!0},jt().createElement(Tg,{verticalAlign:"center",styles:{root:{width:"100%"}},doNotRenderFalsyValues:!0},jt().createElement(vb,{verticalAlign:"center",totalSlots:r},S))))},Cw=(0,Gt.createContext)({drawerOpen:!1,drawerID:"",drawerHeaderTitleId:"",onClickDrawer:function(){}}),Sw=[bw],xw=function(t){var n,r,o,i=t.drawerOpen,a=void 0!==i&&i,s=t.drawerHeader,l=t.drawerContentPadding,c=t.borderRadius,u=void 0===c?"4px":c,d=t.shadow,p=void 0!==d&&d,h=t.onClickToOpen,m=t.onClickToClose,f=t.buttonId,g=t.children,v=t.showDivider,y=void 0!==v&&v,b=t.isListItem,C=void 0!==b&&b,S=(0,e.__rest)(t,["drawerOpen","drawerHeader","drawerContentPadding","borderRadius","shadow","onClickToOpen","onClickToClose","buttonId","children","showDivider","isListItem"]),x=dg();n=s,r=Sw,o="Drawer",(0,Gt.useEffect)((function(){hv(n,r,o)}),[n,r,o]);var _=function(e){if("click"===e.type||"keydown"===e.type&&"Enter"===e.key||" "===e.key){var t=a?m:h;t&&t(e)}},E="drawer_".concat(Sn()),k="drawerHeaderTitle_".concat(Sn());return jt().createElement(Cw.Provider,{value:{drawerOpen:a,drawerID:E,drawerHeaderTitleId:k,onClickDrawer:_}},jt().createElement(Tg,{styles:iy(x,u,p,y),doNotRenderFalsyValues:!0,role:C?"listitem":void 0},jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},jt().createElement(Tg,(0,e.__assign)({id:f,onClick:_,styles:oy()},S,{doNotRenderFalsyValues:!0}),s)),jt().createElement(Tg,{id:E,tokens:{padding:a?l:"0px"},doNotRenderFalsyValues:!0},a?g:void 0)))},_w=function(t){var n,r=t.children,o=t.alignment,i=void 0===o?"flex-start":o,a=t.nonFlexiblePart,s=(0,e.__rest)(t,["children","alignment","nonFlexiblePart"]);ll("FlexibleMenuWithConstrain",s.id),Dg("FlexibleMenuWithConstrain",[(n=a,function(){if(jt().Children.toArray(n).length>3)return"More than allowed number of elements are constrained in FlexibleMenuWithConstrain"})]);var l=(0,Gt.useState)(1),c=l[0],u=l[1],d=function(){u(window.innerWidth)};(0,Gt.useLayoutEffect)((function(){var e=nk(d,300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var p=(0,e.__assign)({windowWidth:c,alignment:i,nonFlexiblePart:a},s);return jt().createElement(Ew,(0,e.__assign)({},p),r)},Ew=function(t){var n=t.menuProps,r=t.height,o=t.children,i=t.windowWidth,a=t.alignment,s=t.nonFlexiblePart,l=(0,e.__rest)(t,["menuProps","height","children","windowWidth","alignment","nonFlexiblePart"]),c=(0,Gt.useRef)(null),u=(0,Gt.useRef)(null),d=(0,Gt.useState)(!1),p=d[0],h=d[1],m=(0,Gt.useState)([]),f=m[0],g=m[1],v=(null===n||void 0===n?void 0:n.menuItems)||[],y=tk(a,r),b={display:"flex",flexDirection:"row",justifyContent:a,flexWrap:"nowrap",minWidth:"fit-content",alignItems:"center"};return(0,Gt.useLayoutEffect)((function(){h(!0)}),[i,o,n]),(0,Gt.useLayoutEffect)((function(){if(c.current&&u.current){var t=Array.from(c.current.children),n=jt().Children.toArray(o),r=ok(c.current,t,n);if(t.length>0){var i=t[0],a=n[0],s=u.current.getBoundingClientRect().width;Array.from(u.current.children).reduce((function(e,t){return e+t.getBoundingClientRect().width}),0)>=s&&(r=ik(r,i,a))}var l=(0,e.__spreadArray)((0,e.__spreadArray)([],r,!0),v,!0);l.length>0?g(l):h(!1)}}),[i,o,n]),jt().createElement(bb,{horizontal:!0,verticalAlign:"center",grow:!0,horizontalAlign:"end",padding:p?"":"0 8px 0 0"},jt().createElement(wb,{grow:!0},jt().createElement("div",{style:b,ref:u},s,jt().createElement("div",{style:y,ref:c},o))),p?jt().createElement(ek,(0,e.__assign)({},l,n,{iconName:rk,menuItems:f})):null)},kw="8px 0 8px 16px",ww=function(t){var n=t.operationalData,r=t.children,o=jt().createElement(jt().Fragment,null,r);return n?jt().createElement(Xs,{operationData:n.operationData,updatingView:jt().createElement(uw,(0,e.__assign)({},n.spinnerProps)),finishedView:o,inertView:o}):o},Iw=function(t,n){switch(t.contentType){case"hyperlink":return t.hyperlinkElements.map((function(t,r){return jt().createElement(nx,(0,e.__assign)({},t,{disabled:n,key:r}))}));case"text":return t.textElements.map((function(r,o){return t.truncatedTextProps?jt().createElement(tx,(0,e.__assign)({lines:t.truncatedTextProps.lines,stopPropagation:t.truncatedTextProps.stopPropagation},r,{disabled:n,key:o})):jt().createElement(Ib,(0,e.__assign)({},r,{disabled:n,key:o}))}));case"callout":return t.calloutElements.map((function(t,n){return jt().createElement(fk,(0,e.__assign)({},t,{key:n}))}));default:return}},Pw=function(e,t){return function(){if(t&&t>1){var n=0;if(e.slice(0,t).forEach((function(e){n-=e.text?1:0})),n<0)return"More than 1 Action Button cannot be constraint in case the button also has text inside it"}}},Tw=function(t){var n=t.actionButtonProps,r=t.menuProps,o=void 0===r?{"aria-label":"Menu Icon Button","data-bi-id":"Menu Icon Button",tooltipHostProps:{tooltipText:""},menuItems:[]}:r,i=(t.collapseActionText,t.disabled),a=(t.menuDisabled,t.operationalData),s=t.numberofButtonsToConstrain,l=t.textAlignment,c=void 0===l?"left":l,u=(0,e.__rest)(t,["actionButtonProps","menuProps","collapseActionText","disabled","menuDisabled","operationalData","numberofButtonsToConstrain","textAlignment"]),d=Di(),p=d.twoUITelemetryIds.areaBiId;Dg("ActionButtonFinalColumn",[Pw(n,s)]);var h=n.map((function(t,n){return jt().createElement(wb,{key:n},jt().createElement(JE,(0,e.__assign)({},t,{onClick:function(e){var n={clickId:"".concat(t["data-bi-id"]),pageArea:p};d.reportClick(n),"onClick"in t&&t.onClick(e)}})))})),m=s||"right"===c?_w:sk,f=(0,e.__assign)({menuProps:o,height:"40px",alignment:"flex-end","aria-label":"","data-bi-id":""},s&&{nonFlexiblePart:h.slice(0,s)}),g=jt().createElement(bb,{verticalAlign:"center",padding:"right"===c?"0 8px 0 0":""},jt().createElement(ww,{operationalData:a},Iw(u,i)));return"right"===c&&(f.nonFlexiblePart=f.nonFlexiblePart?(0,e.__spreadArray)([g],f.nonFlexiblePart,!0):g),jt().createElement(bb,{verticalAlign:s?"center":void 0,horizontal:!0,grow:!0,childrenGap:16},"left"===c?g:void 0,jt().createElement(m,(0,e.__assign)({},f),h.slice(s)))},Dw="0 16px 0 0",Aw=function(t){var n=t.menuProps,r=t.disabled,o=t.operationalData,i=(0,e.__rest)(t,["menuProps","disabled","operationalData"]);return jt().createElement(bb,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},jt().createElement(bb,null,jt().createElement(ww,{operationalData:o},Iw(i,r))),jt().createElement(wb,null,jt().createElement(ek,(0,e.__assign)({},n,{disabled:r,menuItemsPadding:2}))))},Rw=function(e,t,n){var r;return{root:{color:e.palette.themePrimary,width:"100%",height:"60px",padding:n?"0 16px":"0 16px 0 12px",textAlign:"left",":focus":{":focus::after":(r={},r[Qv]={inset:"4px"},r)}},rootHovered:{color:e.palette.themePrimary,background:t?e.palette[t]:e.palette.neutralMed},icon:{marginRight:"4px",marginLeft:"0px"}}},Nw=function(t){var n=t.href,r=t.iconName,o=t.backgroundHoverColorOverride,i=(0,e.__rest)(t,["href","iconName","backgroundHoverColorOverride"]);Fy("CardCallToAction",i);var a=Di(),s=dg();(0,Gt.useEffect)((function(){a.checkUrlAndReportHttp(n)}),[n]);var l=(0,e.__assign)({},i);return jt().createElement(wb,null,jt().createElement(GE,(0,e.__assign)({href:n,iconProps:{iconName:r},styles:Rw(s,o,!!r)},l)))},Mw={tokens:{childrenGap:10,padding:"16px 16px 0 16px"},styles:{root:{marginBottom:"-20px"}},grow:!0},Fw=[nx,dk,rx],Bw=function(t){var n=t.heading,r=t.text,o=t.textColorOverride;return(0,Gt.useEffect)((function(){"string"!==typeof r&&Object.keys(r.tokensAndValues).forEach((function(e){return function(e,t,n){var r=yv(e);return vv(e)?(gv(n).test(r)||!t.includes(e.type)||Ag(r,"Invalid ".concat(n," component ").concat(r,".")+" Use an allowed child component or a custom component wrapped using the childWrapper HOC defined in ".concat(n),1),e):e}(r.tokensAndValues[e],Fw,"CardDetails")}))}),[r]),jt().createElement(Tg,(0,e.__assign)({},Mw,{doNotRenderFalsyValues:!0}),jt().createElement(tx,{variant:"subjectTitle",lines:1},n),"string"===typeof r?jt().createElement(tx,{variant:"metadataText",colorOverride:o,lines:3},r):jt().createElement(ox,(0,e.__assign)({},r,{truncatedTextProps:{lines:3}})))},Ow="12px 0 12px 16px",Lw=function(e,t){return{height:"44px",borderBottom:"1px solid ".concat(e.palette.neutralLighter),boxSizing:"border-box",selectors:{":hover":{backgroundColor:t?e.palette[t]:e.palette.neutralMed},":active":{background:e.palette.neutralLighterAlt}}}},Hw=function(t,n,r,o){return{styles:{root:(0,e.__assign)({cursor:r?"pointer":void 0},Lw(t,o))},tokens:{padding:n?"12px 12px 12px 16px":Ow}}},Vw=function(t){var n=t.text,r=t.action,o=t.tag,i=void 0===o?"h5":o,a=(0,e.__rest)(t,["text","action","tag"]),s="withInfoIcon"===a.headerType,l=dg(),c=Hw(l,s,!!r,a.backgroundHoverColorOverride),u=c.styles,d=c.tokens,p=jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:5},"withTitleImage"===a.headerType?jt().createElement(zk,{width:22,height:22,imageType:"ariaHiddenImage",src:a.imgSrc}):null,jt().createElement(tx,{variant:"headerText",lines:1,type:"heading",tag:i},n)),jt().createElement(bb,{horizontal:!0,verticalAlign:"center"},"withInfoIcon"===a.headerType?jt().createElement(Hy,{iconName:"Info",size:"14px",color:"errorIcon"}):null,a.headerType&&"default"!==a.headerType||!a.menuProps?null:jt().createElement(wb,null,jt().createElement(ek,(0,e.__assign)({},a.menuProps,{iconName:"MoreVertical",iconColor:"neutralSecondary",menuIconVariant:"card"})))));return r?jt().createElement(wb,null,jt().createElement(Tg,(0,e.__assign)({styles:u,tokens:d,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between"},r,{tabIndex:0,doNotRenderFalsyValues:!0}),jt().createElement(GE,(0,e.__assign)({text:n,styles:hb},r)),p)):jt().createElement(Tg,{styles:u,tokens:d,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",doNotRenderFalsyValues:!0},p)};function zw(e){var t=function(e){var t;"function"===typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0);return t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}var Uw=function(e){return{styles:{root:{margin:"16px 16px 0",overflow:"hidden"}},tokens:{padding:"".concat(e&&"0 24px")}}},Ww={width:"100%",height:"210px"},Gw=function(e,t,n,r){var o;return{root:{backgroundColor:r?e.palette[r]:e.palette.neutralHigh,height:t,minWidth:"".concat(244,"px"),maxWidth:"".concat(288,"px"),borderRadius:"8px",boxShadow:Qp.depth4,overflow:"hidden",transitionDuration:db,cursor:n?"pointer":"auto",selectors:(o={":hover":{boxShadow:n?Qp.depth8:void 0}},o[Iu]={outline:"1px solid transparent",":focus":{outline:"3px auto highlight"},"a:focus":{outline:"3px auto transparent"}},o)}}},jw={large:"424px",medium:"336px",small:"124px"},qw=function(t){var n=t.childrenGap,r=void 0===n?0:n,o=t.height,i=void 0===o?"large":o,a=t.action,s=t.children,l=t.backgroundColorOverride,c=t["aria-label"],u=t.role,d=void 0===u?"group":u,p=(0,e.__rest)(t,["childrenGap","height","action","children","backgroundColorOverride","aria-label","role"]),h=Di();Fy("CardCanvas",p);var m=dg(),f=a&&a["aria-label"]||c;return jt().createElement(Tg,(0,e.__assign)({role:d,"data-testid":"card",onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),zw(e.target))},onClick:function(e){var t;a&&(a.onClick&&a.onClick(e),a.href&&("_blank"===a.target?window.open(a.href):window.location.assign(a.href)),h.reportClick({clickId:a["data-bi-id"],pageArea:(null===(t=a["data-bi-id"])||void 0===t?void 0:t.split(".")[0])||"",targetUri:a.href}))},tabIndex:a?0:void 0,grow:!0,styles:Gw(m,jw[i],!!a,l),tokens:{childrenGap:r},"aria-label":f},p,{doNotRenderFalsyValues:!0}),s)},Kw=__webpack_require__(39997),Yw=__webpack_require__.n(Kw),Xw={hover:"mouseenter",click:"click"},Qw="data_ready",Zw="complete",Jw=function(e){var t=e.id,n=e.src,r=e.alt,o=e.animationTrigger,i=e.height,a=e.width,s=e.autoPlay,l=void 0!==s&&s,c=e.loop,u=void 0!==c&&c,d=Di(),p=(0,Gt.useRef)(null),h=eE(r),m=(0,Gt.useRef)(!1),f=(0,Gt.useRef)(),g=o?Xw[o]:void 0;(0,Gt.useEffect)((function(){if(g){var e=function(){!m.current&&f.current&&(m.current=!0,f.current.goToAndPlay(0))};return p.current.addEventListener(g,e),function(){p.current.removeEventListener(g,e)}}}),[g]),(0,Gt.useEffect)((function(){var e=function(){m.current=!1},t=function(){m.current=l,f.current.addEventListener(Zw,e)};return f.current=Yw().loadAnimation({container:p.current,renderer:"svg",loop:u,autoplay:l,path:n,name:h}),f.current.addEventListener(Qw,t),function(){f.current.removeEventListener(Qw,t),f.current.removeEventListener(Zw,e),Yw().destroy(h)}}),[f,r,l,u,n,h]),(0,Gt.useEffect)((function(){d.checkUrlAndReportHttp(n)}),[n]);var v={height:i,width:a};return jt().createElement("div",{id:t,ref:p,style:v,role:"img","aria-label":r})},$w=zg(),eI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.message,r=t.styles,o=t.as,i=void 0===o?"div":o,a=t.className,s=$w(r,{className:a});return Gt.createElement(i,(0,e.__assign)({role:"status",className:s.root},Qh(this.props,Xh,["className"])),Gt.createElement(qg,null,Gt.createElement("div",{className:s.screenReaderText},n)))},n.defaultProps={"aria-live":"polite"},n}(Gt.Component),tI=Ng(eI,(function(e){return{root:e.className,screenReaderText:Vu}})),nI=function(t){var n=t.message,r=t.ariaLive,o=void 0===r?"polite":r,i=(0,e.__rest)(t,["message","ariaLive"]);return ll("Announced"),jt().createElement(tI,(0,e.__assign)({message:n,"aria-live":o},i))},rI=function(t){var n=t.announcedComponent,r=iI();return jt().createElement(jt().Fragment,null,r.announcements.map((function(t,r){return jt().createElement(n,(0,e.__assign)({key:r},t))})))},oI=(0,Gt.createContext)(null),iI=function(){var e=(0,Gt.useContext)(oI);if(null===e)throw new Error("AnnouncementsContext: Context is uninitialized. Confirm that your component is contained within an AnnouncementsContext.Provider component.");return e.state},aI=function(){var e=(0,Gt.useContext)(oI);if(null===e)throw new Error("AnnouncementsContext: Context is uninitialized. Confirm that your component is contained within an AnnouncementsContext.Provider component.");return e.dispatch},sI=function(e){var t=e.children,n=e.announcedComponent,r=(0,Gt.useReducer)((function(e,t){if("push"===t.type)return{announcements:e.announcements.concat(t.announcement)}}),{announcements:[]}),o=r[0],i=r[1];return jt().createElement(oI.Provider,{value:{state:o,dispatch:i}},t,jt().createElement(rI,{announcedComponent:n}))},lI=function(e){switch(e){case"Small":return"3px 8px";case"Large":return"8px 16px"}},cI=function(t){var n=t.text,r=t.badgeSize,o=void 0===r?"Small":r,i=t.lowlight,a=void 0!==i&&i,s=t.uppercase,l=void 0!==s&&s,c=(0,e.__rest)(t,["text","badgeSize","lowlight","uppercase"]);ll("Badge",c.id),Fy("Badge",c);var u=function(e,t,n,r){return{root:{borderRadius:"2px",background:n?e.palette.neutralPrimary:e.palette.highlighter,color:n?e.palette.neutralMed:e.palette.neutralDark,padding:lI(t),fontSize:14,fontWeight:"normal",lineHeight:20,textTransform:r&&"Large"===t?"uppercase":"none",width:"fit-content"}}}(dg(),o,a,l);return jt().createElement(ub,(0,e.__assign)({styles:u},c),n)},uI=function(e){return function(){return e.length<1?"Banner cannot have less than ".concat(1," column"):void 0}},dI=function(e){return function(){return e.length>3?"Banner cannot have more than ".concat(3," column"):void 0}},pI=(0,Gt.createContext)({setDisplaySecondColumnContainer:function(){},setDisplayThirdColumnContainer:function(){}}),hI=function(t){var n=t.id,r=t.expanded,o=void 0===r||r,i=t.children;ll("Banner",n);var a=(0,Gt.useState)(!0),s=a[0],l=a[1],c=(0,Gt.useState)(!0),u=c[0],d=c[1],p=jt().Children.toArray(i);Dg("Banner",[uI(p),dI(p)]);var h=p.length,m=ny(),f=["s","m","l"].includes(m),g=["s","m"].includes(m),v="".concat(g?"28px":"24px"," 0 0"),y=o?v:void 0,b=!f&&h>1?"50%":"100%",C=function(e){return e?{root:{width:"s"===m?"100%":"50%"}}:{root:{width:"0%",overflow:"hidden"}}},S={horizontalAlign:f?"start":"end"},x=f?"100%":"50%";return jt().createElement(pI.Provider,{value:{setDisplaySecondColumnContainer:l,setDisplayThirdColumnContainer:d}},jt().createElement(Tg,{horizontal:!0,wrap:!0,styles:{root:{width:"100%",padding:y}},id:n,doNotRenderFalsyValues:!0},jt().createElement(Ig,{styles:{root:{width:b}},shrink:0},p[0]),h>1?jt().createElement(Tg,(0,e.__assign)({},S,{horizontal:!0,wrap:!0,styles:{root:{width:x}},doNotRenderFalsyValues:!0}),p[1]?jt().createElement(Ig,{styles:C(s),shrink:0},p[1]):null,p[2]?jt().createElement(Ig,{styles:C(u),shrink:0},p[2]):null):null))},mI=zg(),fI=function(){return null},gI={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},vI=function(t){function n(n){var r=t.call(this,n)||this;return r._focusZone=Gt.createRef(),r._onReduceData=function(t){var n=t.renderedItems,r=t.renderedOverflowItems,o=t.props.overflowIndex,i=n[o];if(i)return(n=(0,e.__spreadArray)([],n,!0)).splice(o,1),r=(0,e.__spreadArray)((0,e.__spreadArray)([],r,!0),[i],!1),(0,e.__assign)((0,e.__assign)({},t),{renderedItems:n,renderedOverflowItems:r})},r._onGrowData=function(t){var n=t.renderedItems,r=t.renderedOverflowItems,o=t.props,i=o.overflowIndex,a=o.maxDisplayedItems,s=(r=(0,e.__spreadArray)([],r,!0)).pop();if(s&&!(n.length>=a))return(n=(0,e.__spreadArray)([],n,!0)).splice(i,0,s),(0,e.__assign)((0,e.__assign)({},t),{renderedItems:n,renderedOverflowItems:r})},r._onRenderBreadcrumb=function(t){var n=t.props,o=n.ariaLabel,i=n.dividerAs,a=void 0===i?Xx:i,s=n.onRenderItem,l=n.overflowAriaLabel,c=n.overflowIndex,u=n.onRenderOverflowIcon,d=n.overflowButtonAs,p=t.renderedOverflowItems,h=t.renderedItems,m=p.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?r._onBreadcrumbClicked.bind(r,e):null,href:e.href,disabled:!t,itemProps:t?void 0:gI}})),f=h.length-1,g=p&&0!==p.length,v=h.map((function(e,t){var n=r._onRenderItem;return e.onRender&&(n=$x(e.onRender,n)),s&&(n=$x(s,n)),Gt.createElement("li",{className:r._classNames.listItem,key:e.key||String(t)},n(e),(t!==f||g&&t===c-1)&&Gt.createElement(a,{className:r._classNames.chevron,iconName:Dp(r.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(g){var y=u?{}:{iconName:"More"},b=u||fI,C=d||qE;v.splice(c,0,Gt.createElement("li",{className:r._classNames.overflow,key:"overflow"},Gt.createElement(C,{className:r._classNames.overflowButton,iconProps:y,role:"button","aria-haspopup":"true",ariaLabel:l,onRenderMenuIcon:b,menuProps:{items:m,directionalHint:_v}}),c!==f+1&&Gt.createElement(a,{className:r._classNames.chevron,iconName:Dp(r.props.theme)?"ChevronLeft":"ChevronRight",item:p[p.length-1]})))}var S=Qh(r.props,Ph,["className"]);return Gt.createElement("div",(0,e.__assign)({className:r._classNames.root,role:"navigation","aria-label":o},S),Gt.createElement(g_,(0,e.__assign)({componentRef:r._focusZone,direction:e_.horizontal},r.props.focusZoneProps),Gt.createElement("ol",{className:r._classNames.list},v)))},r._onRenderItem=function(t){if(!t)return null;var n=t.as,o=t.href,i=t.onClick,a=t.isCurrentItem,s=t.text,l=t.onRenderContent,c=(0,e.__rest)(t,["as","href","onClick","isCurrentItem","text","onRenderContent"]),u=yI;if(l&&(u=$x(l,u)),r.props.onRenderItemContent&&(u=$x(r.props.onRenderItemContent,u)),i||o)return Gt.createElement(Xy,(0,e.__assign)({},c,{as:n,className:r._classNames.itemLink,href:o,"aria-current":a?"page":void 0,onClick:r._onBreadcrumbClicked.bind(r,t)}),Gt.createElement(KS,(0,e.__assign)({content:s,overflowMode:Hb.Parent},r.props.tooltipHostProps),u(t)));var d=n||"span";return Gt.createElement(d,(0,e.__assign)({},c,{className:r._classNames.item}),Gt.createElement(KS,(0,e.__assign)({content:s,overflowMode:Hb.Parent},r.props.tooltipHostProps),u(t)))},r._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},Mb(r),r._validateProps(n),r}return(0,e.__extends)(n,t),n.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},n.prototype.render=function(){this._validateProps(this.props);var t=this.props,n=t.onReduceData,r=void 0===n?this._onReduceData:n,o=t.onGrowData,i=void 0===o?this._onGrowData:o,a=t.overflowIndex,s=t.maxDisplayedItems,l=t.items,c=t.className,u=t.theme,d=t.styles,p=(0,e.__spreadArray)([],l,!0),h=p.splice(a,p.length-s),m={props:this.props,renderedItems:p,renderedOverflowItems:h};return this._classNames=mI(d,{className:c,theme:u}),Gt.createElement(Mk,{onRenderData:this._onRenderBreadcrumb,onReduceData:r,onGrowData:i,data:m})},n.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},n.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},n}(Gt.Component);function yI(e){return e?Gt.createElement(Gt.Fragment,null,e.text):null}var bI,CI,SI,xI,_I={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},EI={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},kI=Au(0,479),wI=Au(Tu,639),II=Ng(vI,(function(t){var n,r,o,i,a,s=t.className,l=t.theme,c=l.palette,u=l.semanticColors,d=l.fonts,p=Ju(_I,l),h=u.menuItemBackgroundHovered,m=u.menuItemBackgroundPressed,f=c.neutralSecondary,g=Cu.regular,v=c.neutralPrimary,y=c.neutralPrimary,b=Cu.semibold,C=c.neutralSecondary,S=c.neutralSecondary,x={fontWeight:b,color:y},_={":hover":{color:v,backgroundColor:h,cursor:"pointer",selectors:(n={},n[Iu]={color:"Highlight",backgroundColor:"transparent"},n)},":active":{backgroundColor:m,color:v},"&:active:hover":{color:v,backgroundColor:m},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},E={color:f,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:g};return{root:[p.root,d.medium,{margin:"11px 0 1px"},s],list:[p.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[p.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":(0,e.__assign)((0,e.__assign)({},x),(r={},r[Iu]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},r)),"&:last-child .ms-Breadcrumb-item":x}}],chevron:[p.chevron,{color:C,fontSize:d.small.fontSize,selectors:(o={},o[Iu]=(0,e.__assign)({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o[wI]={fontSize:8},o[kI]={fontSize:8},o)}],overflow:[p.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[p.overflowButton,Ou(l,{highContrastStyle:{left:1,right:1,top:1,bottom:1}}),EI,{fontSize:16,color:S,height:"100%",cursor:"pointer",selectors:(0,e.__assign)((0,e.__assign)({},_),(i={},i[kI]={padding:"4px 6px"},i[wI]={fontSize:d.mediumPlus.fontSize},i))}],itemLink:[p.itemLink,Ou(l),EI,(0,e.__assign)((0,e.__assign)({},E),{selectors:(0,e.__assign)((a={":focus":{color:c.neutralDark}},a[".".concat(Nu," &:focus")]={outline:"none"},a),_)})],item:[p.item,(0,e.__assign)((0,e.__assign)({},E),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"}),PI={selectors:(bI={},bI[jv]={fontSize:"12px",lineHeight:"16px"},bI[Vv]={fontSize:"12px",lineHeight:"16px"},bI[Uv]={fontSize:"14px",lineHeight:"20px"},bI)},TI=function(t,n){var r,o={};return n&&(o={color:t.palette.neutralSecondary,fontFamily:Ly,selectors:(r={},r[jv]={fontSize:18},r[Vv]={fontSize:18},r[zv]={fontSize:24},r[Uv]={fontSize:24},r)}),{chevron:(0,e.__assign)({marginLeft:2,marginRight:2},o),listItem:{height:"100%"},overflowButton:{height:"16px"},item:(0,e.__assign)((0,e.__assign)({},PI),{":hover":{cursor:"text"}}),itemLink:PI,list:{selectors:{"li:first-child > *:first-child":{paddingLeft:"0px"}},alignItems:"center"}}},DI=function(e,t){var n,r,o,i,a="[class*=crumbTitle], .".concat(t);return{root:(n={color:e.palette.neutralSecondary},n[a]={color:e.palette.neutralSecondary},n[":hover"]=(r={},r[a]={backgroundColor:e.palette.neutralLighter},r.textDecoration="none",r),n[":active:hover"]=(o={},o[a]={backgroundColor:e.palette.neutralLight},o.textDecoration="none",o),n[":focus"]={textDecoration:"none"},n[Iu]=(i={},i[a]={color:"LinkText"},i[":focus"]={outline:"highlight auto 1px !important"},i),n)}},AI=function(e,t){var n=eb(e,t);return{root:{fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,fontFamily:n.fontFamily,color:e.palette.neutralSecondary,selectors:n.selectors,overflow:"hidden",textOverflow:"ellipsis"}}},RI=function(e,t,n,r){return{root:{marginRight:4,marginLeft:e&&!t?4:0,maxWidth:n,width:r,alignItems:"center"}}},NI=function(e,t){return{root:{marginRight:e?8:2,marginLeft:t?0:2,marginTop:0}}},MI=function(e,t){return{root:{marginRight:e?8:2,marginLeft:t?0:2,marginTop:0}}},FI=0,BI=1,OI=function(t){var n=t.items,r=t.overflowIndex,o=void 0===r?0:r,i=t.maxDisplayedItems,a=void 0===i?3:i,s=t.pageArea,l=t.dataBiPrefix,c=t.isIncludingCurrentPage,u=t.itemStyle,d=void 0===u?FI:u,p=(0,e.__rest)(t,["items","overflowIndex","maxDisplayedItems","pageArea","dataBiPrefix","isIncludingCurrentPage","itemStyle"]),h=Di();ll("Breadcrumb"),(0,Gt.useEffect)((function(){}),[]);var m=ny(),f=qo(),g=dg(),v=d===BI,y=n.length>1?n[0].mediaProps:void 0,b=(0,Gt.useRef)(null),C=(0,Gt.useState)(500),S=C[0],x=C[1],_=(0,Gt.useState)(void 0),E=_[0],k=_[1];function w(e,t){var n=function(e){var t,n,r,o,i=document.createElement("span"),a=eb(g,e);switch(e){case"paneTitle":i.style.fontFamily=null!==(n=null===(t=g.fonts.medium)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"Segoe UI";break;case"statusHeader":i.style.fontFamily=null!==(o=null===(r=g.fonts.large)||void 0===r?void 0:r.fontFamily)&&void 0!==o?o:"Segoe UI"}return i.style.fontSize=a.fontSize,i.style.fontWeight=a.fontWeight.toLocaleString(),document.body.appendChild(i),i}(t);n.innerText=e;var r=Math.ceil(n.getBoundingClientRect().width);return n.remove(),r+4}function I(e,t,n){var r="paneTitle",o=16;switch(m){case"l":case"xl":case"xxl":case"xxxl":r="statusHeader",o=24}var i=t?w(e,r):0;return n?i+o+2+8:i+4}var P=function(){if(b.current){var e=.85*b.current.offsetWidth-24;if(e>0)if(1===n.length)x(e);else{var t=I(n[0].text,!y,!!n[0].mediaProps),r=I(n[n.length-1].text,!0,!!n[n.length-1].mediaProps),o=Math.floor(e-t),i=Math.floor(.7*e);if(o<(i=i>r?r:i))k(Math.floor(e-i)),x(i);else{var a=r>o?o:r;k(void 0),x(a)}}else k(void 0),x(void 0)}};(0,Gt.useEffect)((function(){window.addEventListener("resize",P)}),[]);var T=function(e,t){var n={clickId:"".concat(l,"-").concat(null===t||void 0===t?void 0:t.key),pageArea:s};h.reportClick(n)},D=null===n||void 0===n?void 0:n.map((function(e,t){switch(e.type){case"route":return{text:e.text,key:e.id,onClick:function(t,n){T(0,n),f.push(e.to)},isCurrentItem:c&&t===n.length-1,id:e.id};case"hyperlink":return{text:e.text,key:e.id,href:e.href,onClick:T,isCurrentItem:c&&t===n.length-1,id:e.id};case"text":return{text:e.text,key:e.id,isCurrentItem:c&&t===n.length-1,id:e.id}}}));(0,Gt.useEffect)((function(){D.forEach((function(e){h.checkUrlAndReportHttp(e.href)}))}),[D]);var A=(0,Gt.useState)("paneTitle"),R=A[0],N=A[1],M=(0,Gt.useState)("".concat(16,"px")),F=M[0],B=M[1];(0,Gt.useEffect)((function(){switch(P(),m){case"s":case"m":N("paneTitle"),B("".concat(16,"px"));break;case"l":case"xl":case"xxl":case"xxxl":N("statusHeader"),B("".concat(24,"px"))}}),[m]);var O=jt().createElement(II,(0,e.__assign)({styles:TI(g,v),items:D,overflowIndex:o,maxDisplayedItems:a,onRenderItem:v?function(t){var r,o,i,a=(null===t||void 0===t?void 0:t.key)===n[n.length-1].id,s=(null===t||void 0===t?void 0:t.key)===n[0].id,l=n.findIndex((function(e){return e.id===(null===t||void 0===t?void 0:t.key)})),c=!(s&&!a)&&""!==n[l].text;switch(null===(r=n[l].mediaProps)||void 0===r?void 0:r.kind){case"image":o=jt().createElement(Tg,{styles:NI(c,s),doNotRenderFalsyValues:!0},jt().createElement(zk,(0,e.__assign)({imageType:"altTextImage"},n[l].mediaProps,{height:F,width:F})));break;case"icon":i=n[l].mediaProps.iconName,o=jt().createElement(Tg,{styles:MI(c,s),doNotRenderFalsyValues:!0},jt().createElement(Hy,(0,e.__assign)({},n[l].mediaProps,{size:F})))}var u={href:t.href,styles:DI(g,i),"data-bi-id":t.text,"aria-label":t.text,onClick:t.onClick,underline:!1,id:t.id};return a||"text"===n[l].type?jt().createElement(Tg,{horizontal:!0,styles:a?RI(void 0===o,s,void 0,S):RI(void 0===o,s,s?E:void 0,void 0),doNotRenderFalsyValues:!0},o,jt().createElement(tx,{type:"heading",tag:"h1",lines:1,variant:R,lineHeight:1.4,id:t.id,block:!0,nowrap:!0},t.text)):y&&(null===t||void 0===t?void 0:t.key)===n[0].id?jt().createElement(XS,{tooltipText:t.text,tooltipPosition:"top-center"},jt().createElement(Xy,(0,e.__assign)({},u),jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},o))):jt().createElement(XS,{tooltipText:t.text,tooltipPosition:"top-center"},jt().createElement(Xy,(0,e.__assign)({},u),jt().createElement(Tg,{horizontal:!0,styles:RI(void 0===o,s,s?E:void 0,void 0),doNotRenderFalsyValues:!0},o,jt().createElement(tb,{className:"crumbTitle",styles:AI(g,R)},t.text))))}:void 0,focusZoneProps:{handleTabKey:1}},p));return v?jt().createElement("div",{className:"divRef",ref:b},O):O},LI=function(t){var n=t.breadcrumbTitleProps,r=(0,e.__rest)(t,["breadcrumbTitleProps"]);return Fy("BannerBreadcrumbTitleColumn",r),jt().createElement(Tg,{styles:{root:{paddingTop:"18px",paddingBottom:"24px"}},doNotRenderFalsyValues:!0},jt().createElement(OI,(0,e.__assign)({maxDisplayedItems:5,itemStyle:BI},n)))},HI=function(){var e;return{root:{selectors:(e={},e[jv]={paddingTop:"4px",paddingBottom:"8px"},e[Vv]={paddingTop:"8px",paddingBottom:"8px"},e[Uv]={paddingTop:"29px",paddingBottom:"19px"},e)}}},VI=function(e,t,n){var r,o,i,a,s,l,c,u=".".concat(t),d=n?e.palette.themeDarkAlt:e.palette.neutralPrimary,p=n?e.palette.themePrimary:e.palette.themeSecondary,h=p,m=n?e.palette.themeDarkAlt:e.palette.themePrimary;return{root:{maxWidth:"100%",selectors:(r={".FullCircleMask":{color:e.palette.themeLighter}},r[u]={color:e.palette.themePrimary},r[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:d},r[".ChevronRight, .ChevronLeft"]=(o={display:"block",paddingLeft:"13px",paddingRight:"52px",transform:"translateY(4px)"},o[qv]={transform:"translateY(8px)"},o),r[".infoColumnInfoText"]={color:e.palette.neutralSecondary},r[":focus"]={outline:"1px solid ".concat(e.palette.neutralPrimary),selectors:(i={".FullCircleMask":{color:e.palette.themeLighter}},i[u]={color:e.palette.themePrimary},i[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:d},i[".infoColumnInfoText"]={color:e.palette.neutralSecondary},i)},r[":hover"]={selectors:(a={".FullCircleMask":{color:e.palette.themeSecondary}},a[u]={color:e.palette.neutralHigh},a[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:p},a[".infoColumnInfoText"]={color:h},a)},r[":active:focus"]={outline:"0px",selectors:(s={".FullCircleMask":{color:e.palette.themePrimary}},s[u]={color:e.palette.neutralHigh},s[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:e.palette.themePrimary},s[".infoColumnInfoText"]={color:m},s)},r[Iu]=(l={".FullCircleMask, .infoColumnCta, .infoColumnInfoText":{color:"LinkText"}},l[u]={color:"Window"},l[":hover, &:focus"]=(c={".FullCircleMask, .infoColumnCta, .infoColumnInfoText, .ChevronRight, .ChevronLeft":{color:"highlight"}},c[u]={color:"Window"},c),l),r)}}},zI=function(e){var t,n,r=".".concat(e);return{root:{float:"left",width:"32px",marginLeft:"5px",marginRight:"13px",selectors:(t={".FullCircleMask":{float:"left",fontSize:"32px",lineHeight:"32px"}},t[r]={float:"left",fontSize:"16px",lineHeight:"32px",marginLeft:"-24px"},t[Iu]=(n={},n[r]={"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"},n),t)}}},UI=function(e){var t;return{root:{position:"relative",selectors:(t={".StatusCircle7, .StatusWarning":{transform:e?"rotateY(180deg)":void 0},".StatusCircle7":{position:"absolute",left:"5px",top:"-3px"},".StatusWarning":{position:"absolute",left:"12.75px",top:"5px"}},t[Iu]={".StatusWarning, .StatusCircle7":{"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"}},t)}}},WI=function(e){var t,n;return{root:{maxWidth:"100%",marginRight:e?void 0:"13px",selectors:{".infoColumnCta":{fontWeight:Cu.semibold,selectors:(t={},t[qv]={lineHeight:"16px",marginTop:"8px"},t[zv]={lineHeight:"16px"},t)},".infoColumnInfoText":{lineHeight:"16px",selectors:(n={},n[jv]={display:"none"},n[Vv]={display:"none"},n[zv]={display:"block"},n)}}}}},GI=function(t){var n=t.iconName,r=t.ctaText,o=t.ctaUrl,i=t.onClick,a=t.infoText,s=t.badge,l=t.isHyperlinkVariant,c=(0,e.__rest)(t,["iconName","ctaText","ctaUrl","onClick","infoText","badge","isHyperlinkVariant"]);Fy("BannerInfoColumn",c);var u,d=dg(),p=hx();if("Alert"===s)u=jt().createElement(Tg,{styles:UI(p),doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:"StatusCircle7",color:"errorIcon",size:"32px"}),jt().createElement(Hy,{iconName:"StatusWarning",color:"white",size:"24px"}));else u=jt().createElement(jt().Fragment,null);return jt().createElement(Tg,{horizontal:!0,styles:HI(),doNotRenderFalsyValues:!0},jt().createElement(Ig,null,jt().createElement(Xy,(0,e.__assign)({href:o,onClick:i,style:{textDecoration:"none",boxShadow:"none",display:"inline-block"},styles:VI(d,n,l)},c),u,jt().createElement(Tg,{horizontal:!0,styles:zI(n),doNotRenderFalsyValues:!0},jt().createElement(Hy,{iconName:"FullCircleMask",size:"32px"}),jt().createElement(Hy,{iconName:n,size:"16px"})),jt().createElement(Tg,{styles:WI(l),doNotRenderFalsyValues:!0},jt().createElement(tb,{className:"infoColumnCta",block:!0,variant:"small"},r),jt().createElement(tb,{className:"infoColumnInfoText",block:!0,variant:"small"},a)))),l?jt().createElement(Ig,{styles:VI(d,n,l)},jt().createElement(Hy,{iconName:mx("ChevronRight"),size:"12px"})):null)},jI=function(e){var t=e.height,n=e.shimmerColors;return ll("ShimmerCircle"),jt().createElement(uv,{style:{borderRadius:"100%",overflow:"hidden"},shimmerElements:[{type:Gg.circle,height:t}],shimmerColors:n})},qI=function(){var e=ny(),t=["l","xl","xxl","xxxl"].includes(e);return jt().createElement(Tg,{horizontal:!0,styles:HI(),doNotRenderFalsyValues:!0},jt().createElement(Tg,{horizontal:!0,styles:zI(),doNotRenderFalsyValues:!0},jt().createElement(jI,{height:32})),jt().createElement(Tg,{styles:WI(),verticalAlign:"center",tokens:{childrenGap:2},doNotRenderFalsyValues:!0},jt().createElement(nw,{width:102,height:14}),t?jt().createElement(nw,{width:135,height:14}):null))};!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(CI||(CI={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(SI||(SI={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(xI||(xI={}));var KI,YI,XI,QI=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,ZI=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,JI=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,$I=/\s+/g,eP=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function tP(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(QI,"")).replace(ZI,"")).replace($I," ")).trim()}(e),eP.test(e)||!n&&JI.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}!function(e){e.size8="20px",e.size10="20px",e.size16="16px",e.size24="24px",e.size28="28px",e.size32="32px",e.size40="40px",e.size48="48px",e.size56="56px",e.size72="72px",e.size100="100px",e.size120="120px"}(YI||(YI={})),function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"}(XI||(XI={}));var nP=function(e){return{isSize8:e===CI.size8,isSize10:e===CI.size10||e===CI.tiny,isSize16:e===CI.size16,isSize24:e===CI.size24||e===CI.extraExtraSmall,isSize28:e===CI.size28||e===CI.extraSmall,isSize32:e===CI.size32,isSize40:e===CI.size40||e===CI.small,isSize48:e===CI.size48||e===CI.regular,isSize56:e===CI.size56,isSize72:e===CI.size72||e===CI.large,isSize100:e===CI.size100||e===CI.extraLarge,isSize120:e===CI.size120}},rP=((KI={})[CI.tiny]=10,KI[CI.extraExtraSmall]=24,KI[CI.extraSmall]=28,KI[CI.small]=40,KI[CI.regular]=48,KI[CI.large]=72,KI[CI.extraLarge]=100,KI[CI.size8]=8,KI[CI.size10]=10,KI[CI.size16]=16,KI[CI.size24]=24,KI[CI.size28]=28,KI[CI.size32]=32,KI[CI.size40]=40,KI[CI.size48]=48,KI[CI.size56]=56,KI[CI.size72]=72,KI[CI.size100]=100,KI[CI.size120]=120,KI),oP=function(e){return{isAvailable:e===SI.online,isAway:e===SI.away,isBlocked:e===SI.blocked,isBusy:e===SI.busy,isDoNotDisturb:e===SI.dnd,isOffline:e===SI.offline}},iP=zg({cacheSize:100}),aP=Gt.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,o=e.styles,i=e.presence,a=e.theme,s=e.presenceTitle,l=e.presenceColors,c=Sm(t,Gt.useRef(null)),u=nP(e.size),d=!(u.isSize8||u.isSize10||u.isSize16||u.isSize24||u.isSize28||u.isSize32)&&(!n||n>32),p=n?n/3<40?n/3+"px":"40px":"",h=n?{fontSize:n?n/6<20?n/6+"px":"20px":"",lineHeight:p}:void 0,m=n?{width:p,height:p}:void 0,f=iP(o,{theme:a,presence:i,size:e.size,isOutOfOffice:r,presenceColors:l});return i===SI.none?null:Gt.createElement("div",{role:"presentation",className:f.presence,style:m,title:s,ref:c},d&&Gt.createElement(Xx,{className:f.presenceIcon,iconName:sP(e.presence,e.isOutOfOffice),style:h}))}));function sP(e,t){if(e){var n="SkypeArrow";switch(SI[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}aP.displayName="PersonaPresenceBase";var lP={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function cP(e){return{color:e,borderColor:e}}function uP(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function dP(e){return{height:e,width:e}}function pP(e){return{backgroundColor:e}}var hP=Ng(aP,(function(t){var n,r,o,i,a,s,l=t.theme,c=t.presenceColors,u=l.semanticColors,d=l.fonts,p=Ju(lP,l),h=nP(t.size),m=oP(t.presence),f=c&&c.available||"#6BB700",g=c&&c.away||"#FFAA44",v=c&&c.busy||"#C43148",y=c&&c.dnd||"#C50F1F",b=c&&c.offline||"#8A8886",C=c&&c.oof||"#B4009E",S=c&&c.background||u.bodyBackground,x=m.isOffline||t.isOutOfOffice&&(m.isAvailable||m.isBusy||m.isAway||m.isDoNotDisturb),_=h.isSize72||h.isSize100?"2px":"1px";return{presence:[p.presence,(0,e.__assign)((0,e.__assign)({position:"absolute",height:XI.size12,width:XI.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(S),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:(n={},n[Iu]={borderColor:"Window",backgroundColor:"WindowText"},n)}),(h.isSize8||h.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(r={},r[Iu]={top:"9px",border:"1px solid WindowText"},r)},(h.isSize8||h.isSize10||h.isSize24||h.isSize28||h.isSize32)&&dP(XI.size8),(h.isSize40||h.isSize48)&&dP(XI.size12),h.isSize16&&{height:XI.size6,width:XI.size6,borderWidth:"1.5px"},h.isSize56&&dP(XI.size16),h.isSize72&&dP(XI.size20),h.isSize100&&dP(XI.size28),h.isSize120&&dP(XI.size32),m.isAvailable&&{backgroundColor:f,selectors:(o={},o[Iu]=pP("Highlight"),o)},m.isAway&&pP(g),m.isBlocked&&[{selectors:(i={":after":h.isSize40||h.isSize48||h.isSize72||h.isSize100?{content:'""',width:"100%",height:_,backgroundColor:v,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},i[Iu]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},i)}],m.isBusy&&pP(v),m.isDoNotDisturb&&pP(y),m.isOffline&&pP(b),(x||m.isBlocked)&&[{backgroundColor:S,selectors:(a={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(_," solid ").concat(v),borderRadius:"50%",boxSizing:"border-box"}},a[Iu]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},a)}],x&&m.isAvailable&&uP(_,f),x&&m.isBusy&&uP(_,v),x&&m.isAway&&uP(_,C),x&&m.isDoNotDisturb&&uP(_,y),x&&m.isOffline&&uP(_,b),x&&m.isOffline&&t.isOutOfOffice&&uP(_,C)],presenceIcon:[p.presenceIcon,{color:S,fontSize:"6px",lineHeight:XI.size12,verticalAlign:"top",selectors:(s={},s[Iu]={color:"Window"},s)},h.isSize56&&{fontSize:"8px",lineHeight:XI.size16},h.isSize72&&{fontSize:d.small.fontSize,lineHeight:XI.size20},h.isSize100&&{fontSize:d.medium.fontSize,lineHeight:XI.size28},h.isSize120&&{fontSize:d.medium.fontSize,lineHeight:XI.size32},m.isAway&&{position:"relative",left:x?void 0:"1px"},x&&m.isAvailable&&cP(f),x&&m.isBusy&&cP(v),x&&m.isAway&&cP(C),x&&m.isDoNotDisturb&&cP(y),x&&m.isOffline&&cP(b),x&&m.isOffline&&t.isOutOfOffice&&cP(C)]}}),void 0,{scope:"PersonaPresence"}),mP=[xI.lightBlue,xI.blue,xI.darkBlue,xI.teal,xI.green,xI.darkGreen,xI.lightPink,xI.pink,xI.magenta,xI.purple,xI.orange,xI.lightRed,xI.darkRed,xI.violet,xI.gold,xI.burgundy,xI.warmGray,xI.cyan,xI.rust,xI.coolGray],fP=mP.length;function gP(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"===typeof r?r:function(e){switch(e){case xI.lightBlue:return"#4F6BED";case xI.blue:return"#0078D4";case xI.darkBlue:return"#004E8C";case xI.teal:return"#038387";case xI.lightGreen:case xI.green:return"#498205";case xI.darkGreen:return"#0B6A0B";case xI.lightPink:return"#C239B3";case xI.pink:return"#E3008C";case xI.magenta:return"#881798";case xI.purple:return"#5C2E91";case xI.orange:return"#CA5010";case xI.red:return"#EE1111";case xI.lightRed:return"#D13438";case xI.darkRed:return"#A4262C";case xI.transparent:return"transparent";case xI.violet:return"#8764B8";case xI.gold:return"#986F0B";case xI.burgundy:return"#750B1C";case xI.warmGray:return"#7A7574";case xI.cyan:return"#005B70";case xI.rust:return"#8E562E";case xI.coolGray:return"#69797E";case xI.black:return"#1D1D1D";case xI.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=xI.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<<i)+(o>>8-i)}return mP[n%fP]}(n||t))}var vP=zg({cacheSize:100}),yP=Ku((function(e,t,n,r,o,i){return yc(e,!i&&{backgroundColor:gP({text:r,initialsColor:t,primaryText:o}),color:n})})),bP={size:CI.size48,presence:SI.none,imageAlt:""};var CP=Gt.forwardRef((function(t,n){var r=Cm(bP,t),o=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=Gt.useState(Mx.notLoaded),o=r[0],i=r[1];return Gt.useEffect((function(){i(Mx.notLoaded)}),[n]),[o,function(e){i(e),null===t||void 0===t||t(e)}]}(r),i=o[0],a=o[1],s=SP(a),l=r.className,c=r.coinProps,u=r.showUnknownPersonaCoin,d=r.coinSize,p=r.styles,h=r.imageUrl,m=r.initialsColor,f=r.initialsTextColor,g=r.isOutOfOffice,v=r.onRenderCoin,y=void 0===v?s:v,b=r.onRenderPersonaCoin,C=void 0===b?y:b,S=r.onRenderInitials,x=void 0===S?xP:S,_=r.presence,E=r.presenceTitle,k=r.presenceColors,w=r.primaryText,I=r.showInitialsUntilImageLoads,P=r.text,T=r.theme,D=r.size,A=Qh(r,Xh),R=Qh(c||{},Xh),N=d?{width:d,height:d}:void 0,M=u,F={coinSize:d,isOutOfOffice:g,presence:_,presenceTitle:E,presenceColors:k,size:D,theme:T},B=vP(p,{theme:T,className:c&&c.className?c.className:l,size:D,coinSize:d,showUnknownPersonaCoin:u}),O=Boolean(i!==Mx.loaded&&(I&&h||!h||i===Mx.error||M));return Gt.createElement("div",(0,e.__assign)({role:"presentation"},A,{className:B.coin,ref:n}),D!==CI.size8&&D!==CI.size10&&D!==CI.tiny?Gt.createElement("div",(0,e.__assign)({role:"presentation"},R,{className:B.imageArea,style:N}),O&&Gt.createElement("div",{className:yP(B.initials,m,f,P,w,u),style:N,"aria-hidden":"true"},x(r,xP)),!M&&C(r,s),Gt.createElement(hP,(0,e.__assign)({},F))):r.presence?Gt.createElement(hP,(0,e.__assign)({},F)):Gt.createElement(Xx,{iconName:"Contact",className:B.size10WithoutPresenceIcon}),r.children)}));CP.displayName="PersonaCoinBase";var SP=function(e){return function(t){var n=t.coinSize,r=t.styles,o=t.imageUrl,i=t.imageAlt,a=t.imageShouldFadeIn,s=t.imageShouldStartVisible,l=t.theme,c=t.showUnknownPersonaCoin,u=t.size,d=void 0===u?bP.size:u;if(!o)return null;var p=vP(r,{theme:l,size:d,showUnknownPersonaCoin:c}),h=n||rP[d];return Gt.createElement(Ux,{className:p.image,imageFit:Rx.cover,src:o,width:h,height:h,alt:i,shouldFadeIn:a,shouldStartVisible:s,onLoadingStateChange:e})}},xP=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,o=e.text,i=e.primaryText,a=e.theme;if(r)return Gt.createElement(Xx,{iconName:"Help"});var s=Dp(a);return""!==(t=t||tP(o||i||"",s,n))?Gt.createElement("span",null,t):Gt.createElement(Xx,{iconName:"Contact"})},_P={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},EP=Ng(CP,(function(t){var n,r=t.className,o=t.theme,i=t.coinSize,a=o.palette,s=o.fonts,l=nP(t.size),c=Ju(_P,o),u=i||t.size&&rP[t.size]||48;return{coin:[c.coin,s.medium,l.isSize8&&c.size8,l.isSize10&&c.size10,l.isSize16&&c.size16,l.isSize24&&c.size24,l.isSize28&&c.size28,l.isSize32&&c.size32,l.isSize40&&c.size40,l.isSize48&&c.size48,l.isSize56&&c.size56,l.isSize72&&c.size72,l.isSize100&&c.size100,l.isSize120&&c.size120,r],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[c.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:u,width:u},u<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[c.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},u<=10&&{overflow:"visible",background:"transparent",height:0,width:0},u>10&&{height:u,width:u}],initials:[c.initials,{borderRadius:"50%",color:t.showUnknownPersonaCoin?"rgb(168, 0, 0)":a.white,fontSize:s.large.fontSize,fontWeight:Cu.semibold,lineHeight:48===u?46:u,height:u,selectors:(n={},n[Iu]=(0,e.__assign)((0,e.__assign)({border:"1px solid WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),n.i={fontWeight:Cu.semibold},n)},t.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},u<32&&{fontSize:s.xSmall.fontSize},u>=32&&u<40&&{fontSize:s.medium.fontSize},u>=40&&u<56&&{fontSize:s.mediumPlus.fontSize},u>=56&&u<72&&{fontSize:s.xLarge.fontSize},u>=72&&u<100&&{fontSize:s.xxLarge.fontSize},u>=100&&{fontSize:s.superLarge.fontSize}]}}),void 0,{scope:"PersonaCoin"}),kP=zg(),wP={size:CI.size48,presence:SI.none,imageAlt:"",showOverflowTooltip:!0};var IP=Gt.forwardRef((function(t,n){var r=Cm(wP,t),o=Sm(n,Gt.useRef(null)),i=function(){return r.text||r.primaryText||""},a=function(e,t,n){var o=t&&t(r,n);return o?Gt.createElement("div",{dir:"auto",className:e},o):void 0},s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return Gt.createElement(KS,{content:e,overflowMode:Hb.Parent,directionalHint:bv},e)}:function(){return Gt.createElement(Gt.Fragment,null,e)}:void 0},l=s(i(),r.showOverflowTooltip),c=s(r.secondaryText,r.showOverflowTooltip),u=s(r.tertiaryText,r.showOverflowTooltip),d=s(r.optionalText,r.showOverflowTooltip),p=r.hidePersonaDetails,h=r.onRenderOptionalText,m=void 0===h?d:h,f=r.onRenderPrimaryText,g=void 0===f?l:f,v=r.onRenderSecondaryText,y=void 0===v?c:v,b=r.onRenderTertiaryText,C=void 0===b?u:b,S=r.onRenderPersonaCoin,x=void 0===S?function(t){return Gt.createElement(EP,(0,e.__assign)({},t))}:S,_=r.size,E=r.allowPhoneInitials,k=r.className,w=r.coinProps,I=r.showUnknownPersonaCoin,P=r.coinSize,T=r.styles,D=r.imageAlt,A=r.imageInitials,R=r.imageShouldFadeIn,N=r.imageShouldStartVisible,M=r.imageUrl,F=r.initialsColor,B=r.initialsTextColor,O=r.isOutOfOffice,L=r.onPhotoLoadingStateChange,H=r.onRenderCoin,V=r.onRenderInitials,z=r.presence,U=r.presenceTitle,W=r.presenceColors,G=r.showInitialsUntilImageLoads,j=r.showSecondaryText,q=r.theme,K=(0,e.__assign)({allowPhoneInitials:E,showUnknownPersonaCoin:I,coinSize:P,imageAlt:D,imageInitials:A,imageShouldFadeIn:R,imageShouldStartVisible:N,imageUrl:M,initialsColor:F,initialsTextColor:B,onPhotoLoadingStateChange:L,onRenderCoin:H,onRenderInitials:V,presence:z,presenceTitle:U,showInitialsUntilImageLoads:G,size:_,text:i(),isOutOfOffice:O,presenceColors:W},w),Y=kP(T,{theme:q,className:k,showSecondaryText:j,presence:z,size:_}),X=Qh(r,Xh),Q=Gt.createElement("div",{className:Y.details},a(Y.primaryText,g,l),a(Y.secondaryText,y,c),a(Y.tertiaryText,C,u),a(Y.optionalText,m,d),r.children);return Gt.createElement("div",(0,e.__assign)({},X,{ref:o,className:Y.root,style:P?{height:P,minWidth:P}:void 0}),x(K,x),(!p||_===CI.size8||_===CI.size10||_===CI.tiny)&&Q)}));IP.displayName="PersonaBase";var PP={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},TP=Ng(IP,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=Ju(PP,r),s=nP(e.size),l=oP(e.presence),c="16px",u={color:o.bodySubtext,fontWeight:Cu.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,Td,{color:o.bodyText,position:"relative",height:YI.size48,minWidth:YI.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:YI.size8,minWidth:YI.size8}],s.isSize10&&[a.size10,{height:YI.size10,minWidth:YI.size10}],s.isSize16&&[a.size16,{height:YI.size16,minWidth:YI.size16}],s.isSize24&&[a.size24,{height:YI.size24,minWidth:YI.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:YI.size28,minWidth:YI.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:YI.size32,minWidth:YI.size32}],s.isSize40&&[a.size40,{height:YI.size40,minWidth:YI.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:YI.size56,minWidth:YI.size56}],s.isSize72&&[a.size72,{height:YI.size72,minWidth:YI.size72}],s.isSize100&&[a.size100,{height:YI.size100,minWidth:YI.size100}],s.isSize120&&[a.size120,{height:YI.size120,minWidth:YI.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,Dd,{color:o.bodyText,fontWeight:Cu.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:c,lineHeight:c,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:YI.size8},s.isSize16&&{lineHeight:YI.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:22}],secondaryText:[a.secondaryText,Dd,u,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,Dd,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,Dd,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,Dd]}}),void 0,{scope:"Persona"}),DP=["160","200","256"],AP={24:CI.size24,28:CI.size28,32:CI.size32,40:CI.size40,48:CI.size48,56:CI.size56,72:CI.size72,100:CI.size100,120:CI.size120};function RP(e){return AP[e||"32"]}var NP=function(t){var n=(0,e.__rest)(t,[]);return jt().createElement(MP,(0,e.__assign)({},n))},MP=function(t){var n,r=t.operationData,o=t.size,i=void 0===o?"32":o,a=t.imageUrl,s=t.text,l=t.secondaryText,c=t.hideText,u=void 0!==c&&c,d=t.trackingId,p=(0,e.__rest)(t,["operationData","size","imageUrl","text","secondaryText","hideText","trackingId"]);Fy("Persona",p);var h=eE(),m=Di();ll("Persona",p.id);var f=function(){var e=xi().componentQosContext,t=qs;e&&(t=e);var n=(0,Gt.useContext)(t);if(!n)throw new Error("TwoUIComponentQoS: Context is uninitialized");return n}(),g=f.startOperation,v=f.reportSuccess,y=f.reportFailure,b=(0,Gt.useState)(!1),C=b[0],S=b[1],x=function(e){return DP.includes(e)}(i),_=x?CI.size120:RP(i),E=x?Number(i):void 0,k=a?function(e){try{return new URL(e).host}catch(t){return window.location.host}}(a):"unknown-domain",w="".concat("persona.image-load.").concat(k,".").concat(d),I=dg();(0,Gt.useEffect)((function(){m.checkUrlAndReportHttp(a),a?(S(!0),d&&g(w,h,!0)):S(!1)}),[a]);var P=function(){return jt().createElement(jI,{height:+i})},T=yc({selectors:(n={},n.span={fontSize:"96px"},n)}),D="256"===i?{coinProps:{className:T}}:void 0,A=(0,e.__assign)({size:_,coinSize:E,imageUrl:a,text:s,secondaryText:l,hidePersonaDetails:u,onPhotoLoadingStateChange:function(e){e===Mx.error?(d&&y(w,h,new Error("Image failed to load")),S(!1)):e===Mx.loaded&&(d&&v(w,h),S(!1))},onRenderInitials:C?P:void 0,initialsTextColor:I.palette.neutralHigh,showInitialsUntilImageLoads:C,coinProps:D},p),R=jt().createElement(TP,(0,e.__assign)({},A)),N=jt().createElement(TP,(0,e.__assign)({},A,{showInitialsUntilImageLoads:!0,onRenderInitials:P,onPhotoLoadingStateChange:void 0}));return r?jt().createElement(dv,{operationData:r,inertView:N,firstLoadView:N,updatingView:N,updateFailedView:R,finishedView:R,failedView:R}):R},FP=function(){var e;return{root:{selectors:(e={},e[jv]={paddingTop:"13px",paddingBottom:"14px"},e[Vv]={paddingTop:"24px",paddingBottom:"8px"},e[Uv]={paddingTop:"23px",paddingBottom:"17px"},e)}}},BP={s:25,m:33,l:33,xl:44,xxl:44,xxxl:44},OP=function(){var e=ny(),t=e?BP[e]:BP.xl;return jt().createElement(Tg,{horizontal:!0,styles:FP(),doNotRenderFalsyValues:!0},jt().createElement(nw,{width:200,height:t}))},LP=function(e){var t=e.horizontal,n=void 0===t||t,r=e.horizontalAlign,o=void 0===r?"space-between":r,i=e.children,a=Ai();In((function(){ey&&ey.forEach((function(e){e.addListener(ty)})),Jv.setValue(Hv(window.innerWidth))})),wn((function(){ey&&ey.forEach((function(e){return e.removeListener(ty)}))}));var s={root:{backgroundColor:dg().semanticColors.bodyBackground}},l=jt().createElement(Tg,{horizontal:n,horizontalAlign:o,styles:s,doNotRenderFalsyValues:!0},i);return a.includes(Fv)?jt().createElement(Ln,null,l):l},HP=function(t){return ll("BaseLayout"),jt().createElement(cg,{variant:t.variant},jt().createElement(LP,(0,e.__assign)({},t)))},VP=function(e){var t=e.children,n=e.disabled,r=e.iconName;return jt().createElement(bb,{horizontal:!0,grow:!0,verticalAlign:"center"},t,r?jt().createElement(bb,{padding:Dw},jt().createElement(Hy,{size:"16px",iconName:mx(r),color:"neutralSecondary",disabled:n})):null)},zP=function(t){var n=t.buttonProps,r=t.disabled,o=t.columnAlign,i=void 0===o?"end":o,a=t.iconName,s=t.operationalData,l=(0,e.__rest)(t,["buttonProps","disabled","columnAlign","iconName","operationalData"]);return jt().createElement(VP,{iconName:a,disabled:r},jt().createElement(bb,{horizontal:!0,grow:!0,horizontalAlign:"end"===i?"space-between":"start",childrenGap:16,verticalAlign:"center"},jt().createElement(bb,null,jt().createElement(ww,{operationalData:s},Iw(l,r))),jt().createElement(bb,{padding:Dw},jt().createElement(wb,null,jt().createElement(dk,(0,e.__assign)({},n,{disabled:r}))))))},UP=function(t){var n=t.calloutProps,r=t.operationalData;return jt().createElement(bb,{horizontalAlign:"start"},jt().createElement(ww,{operationalData:r},jt().createElement(wb,null,n.map((function(t,n){return jt().createElement(fk,(0,e.__assign)({},t,{key:n}),t.children)})))))},WP=function(e){var t=e.children,n=e.onCardReflow,r=(0,Gt.useRef)(null),o=(0,Gt.useState)(1),i=o[0],a=o[1];(0,Gt.useLayoutEffect)((function(){var e=function(){if(r.current){var e=r.current.clientWidth,t=GP(e);a(t)}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,Gt.useLayoutEffect)((function(){null===n||void 0===n||n(i)}),[i]);var s,l,c,u=jt().Children.toArray(t),d=(l=i,(s=u).length<=0||0===l?[]:s.reduce((function(e,t,n){return n%l===0?e.push([t]):e[e.length-1].push(t),e}),[]));return jt().createElement("div",{style:{display:"flex"},ref:r},jt().createElement(Tg,{tokens:{childrenGap:16},styles:(c=i,{root:{minWidth:244,maxWidth:"".concat(jP(c),"px")}}),grow:!0,doNotRenderFalsyValues:!0},d.map((function(e,t){return jt().createElement(vb,{totalSlots:i,key:t},e.map((function(e,t){return jt().createElement(gb,{slots:1,key:t},e)})))}))))},GP=function(e){return Math.max(Math.floor((e+16)/260),1)},jP=function(e){return 288*e+16*(e-1)},qP=zg(),KP=Gt.forwardRef((function(t,n){var r=t.disabled,o=t.required,i=t.inputProps,a=t.name,s=t.ariaLabel,l=t.ariaLabelledBy,c=t.ariaDescribedBy,u=t.ariaPositionInSet,d=t.ariaSetSize,p=t.title,h=t.checkmarkIconProps,m=t.styles,f=t.theme,g=t.className,v=t.boxSide,y=void 0===v?"start":v,b=eE("checkbox-",t.id),C=Gt.useRef(null),S=Sm(C,n),x=Gt.useRef(null),_=ow(t.checked,t.defaultChecked,t.onChange),E=_[0],k=_[1],w=ow(t.indeterminate,t.defaultIndeterminate),I=w[0],P=w[1];um(C);var T=qP(m,{theme:f,className:g,disabled:r,indeterminate:I,checked:E,reversed:"start"!==y,isUsingCustomLabelRender:!!t.onRenderLabel}),D=Gt.useCallback((function(e){I?(k(!!E,e),P(!1)):k(!E,e)}),[k,P,I,E]),A=Gt.useCallback((function(e){return e&&e.label?Gt.createElement("span",{className:T.text,title:e.title},e.label):null}),[T.text]),R=Gt.useCallback((function(e){if(x.current){var t=!!e;x.current.indeterminate=t,P(t)}}),[P]);!function(e,t,n,r,o){Gt.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(e){r(e)},focus:function(){o.current&&o.current.focus()}}}),[o,t,n,r])}(t,E,I,R,x),Gt.useEffect((function(){return R(I)}),[R,I]);var N=t.onRenderLabel||A,M=I?"mixed":void 0,F=(0,e.__assign)((0,e.__assign)({className:T.input,type:"checkbox"},i),{checked:!!E,disabled:r,required:o,name:a,id:b,title:p,onChange:D,"aria-disabled":r,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,"aria-posinset":u,"aria-setsize":d,"aria-checked":M});return Gt.createElement("div",{className:T.root,title:p,ref:S},Gt.createElement("input",(0,e.__assign)({},F,{ref:x,title:p,"data-ktp-execute-target":!0})),Gt.createElement("label",{className:T.label,htmlFor:b},Gt.createElement("div",{className:T.checkbox,"data-ktp-target":!0},Gt.createElement(Xx,(0,e.__assign)({iconName:"CheckMark"},h,{className:T.checkmark}))),N(t,A)))}));KP.displayName="CheckboxBase";var YP={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},XP="20px",QP="200ms",ZP="cubic-bezier(.4, 0, .23, 1)",JP=Ng(KP,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C=t.className,S=t.theme,x=t.reversed,_=t.checked,E=t.disabled,k=t.isUsingCustomLabelRender,w=t.indeterminate,I=S.semanticColors,P=S.effects,T=S.palette,D=S.fonts,A=Ju(YP,S),R=I.inputForegroundChecked,N=T.neutralSecondary,M=T.neutralPrimary,F=I.inputBackgroundChecked,B=I.inputBackgroundChecked,O=I.disabledBodySubtext,L=I.inputBorderHovered,H=I.inputBackgroundCheckedHovered,V=I.inputBackgroundChecked,z=I.inputBackgroundCheckedHovered,U=I.inputBackgroundCheckedHovered,W=I.inputTextHovered,G=I.disabledBodySubtext,j=I.bodyText,q=I.disabledText,K=[(n={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:E?O:F,transitionProperty:"border-width, border, border-color",transitionDuration:QP,transitionTimingFunction:ZP},n[Iu]={borderColor:"WindowText"},n)];return{root:[A.root,{position:"relative",display:"flex"},x&&"reversed",_&&"is-checked",!E&&"is-enabled",E&&"is-disabled",!E&&[!_&&(r={},r[":hover .".concat(A.checkbox)]=(o={borderColor:L},o[Iu]={borderColor:"Highlight"},o),r[":focus .".concat(A.checkbox)]={borderColor:L},r[":hover .".concat(A.checkmark)]=(i={color:N,opacity:"1"},i[Iu]={color:"Highlight"},i),r),_&&!w&&(a={},a[":hover .".concat(A.checkbox)]={background:z,borderColor:U},a[":focus .".concat(A.checkbox)]={background:z,borderColor:U},a[Iu]=(s={},s[":hover .".concat(A.checkbox)]={background:"Highlight",borderColor:"Highlight"},s[":focus .".concat(A.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(A.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(A.checkmark)]={color:"Window"},s[":hover .".concat(A.checkmark)]={color:"Window"},s),a),w&&(l={},l[":hover .".concat(A.checkbox,", :hover .").concat(A.checkbox,":after")]=(c={borderColor:H},c[Iu]={borderColor:"WindowText"},c),l[":focus .".concat(A.checkbox)]={borderColor:H},l[":hover .".concat(A.checkmark)]={opacity:"0"},l),(u={},u[":hover .".concat(A.text,", :focus .").concat(A.text)]=(d={color:W},d[Iu]={color:E?"GrayText":"WindowText"},d),u)],C],input:(p={position:"absolute",background:"none",opacity:0},p[".".concat(Nu," &:focus + label::before")]=(h={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},h[Iu]={outline:"1px solid WindowText"},h),p),label:[A.label,S.fonts.medium,{display:"flex",alignItems:k?"center":"flex-start",cursor:E?"default":"pointer",position:"relative",userSelect:"none"},x&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[A.checkbox,(m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:XP,width:XP,border:"1px solid ".concat(M),borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:QP,transitionTimingFunction:ZP,overflow:"hidden",":after":w?K:null},m[Iu]=(0,e.__assign)({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m),w&&{borderColor:F},x?{marginLeft:4}:{marginRight:4},!E&&!w&&_&&(f={background:V,borderColor:B},f[Iu]={background:"Highlight",borderColor:"Highlight"},f),E&&(g={borderColor:O},g[Iu]={borderColor:"GrayText"},g),_&&E&&(v={background:G,borderColor:O},v[Iu]={background:"Window"},v)],checkmark:[A.checkmark,(y={opacity:_&&!w?"1":"0",color:R},y[Iu]=(0,e.__assign)({color:E?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),y)],text:[A.text,(b={color:E?q:j,fontSize:D.medium.fontSize,lineHeight:"20px"},b[Iu]=(0,e.__assign)({color:E?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),x?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),$P=function(t){var n=t.operationData,r=t.label,o=t.labelPosition,i=t["aria-label"],a=t.onChange,s=t.disabled,l=t.checked,c=t.id,u=(0,e.__rest)(t,["operationData","label","labelPosition","aria-label","onChange","disabled","checked","id"]);ll("Checkbox",c),Fy("Checkbox",u);var d={ariaLabel:i,boxSide:o||"start",onChange:s?void 0:a,disabled:s,checked:l,id:c,inputProps:(0,e.__assign)((0,e.__assign)({},u),{"data-bi-ctrlstate":!!l})},p=function(t){return r&&"string"!==typeof r?jt().createElement(JP,(0,e.__assign)({},d,{onRenderLabel:function(){return jt().createElement(ox,(0,e.__assign)({},r))}},t)):jt().createElement(JP,(0,e.__assign)({},d,{label:r},t))},h=(0,Gt.useRef)(null);if(n){var m=void 0;return m=r?{"aria-label":n.errorProps.targetOrTriggerButton["aria-label"],"data-bi-id":n.errorProps.targetOrTriggerButton["data-bi-id"]}:h,jt().createElement(Xs,{operationData:n.progressViewOperationData,updatingView:jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"center"},d.label?p({checked:!l,disabled:!0}):null,jt().createElement(dw,null)),finishedView:jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"center"},p()),updateFailedView:jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"center"},jt().createElement("div",{ref:h},p()),jt().createElement(XE,(0,e.__assign)({},n.errorProps,{targetOrTriggerButton:m})))})}return p()},eT=zg(),tT={imageSize:{width:32,height:32}},nT=function(t){var n=Cm((0,e.__assign)((0,e.__assign)({},tT),{key:t.itemKey}),t),r=n.ariaLabel,o=n.focused,i=n.required,a=n.theme,s=n.iconProps,l=n.imageSrc,c=n.imageSize,u=n.disabled,d=n.checked,p=n.id,h=n.styles,m=n.name,f=(0,e.__rest)(n,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),g=eT(h,{theme:a,hasIcon:!!s,hasImage:!!l,checked:d,disabled:u,imageIsLarge:!!l&&(c.width>71||c.height>71),imageSize:c,focused:o}),v=Qh(f,Bh),y=v.className,b=(0,e.__rest)(v,["className"]),C=function(){return Gt.createElement("span",{id:n.labelId,className:"ms-ChoiceFieldLabel"},n.text)},S=function(){var t=n.imageAlt,r=void 0===t?"":t,o=n.selectedImageSrc,i=(n.onRenderLabel?$x(n.onRenderLabel,C):C)((0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}));return Gt.createElement("label",{htmlFor:p,className:g.field},l&&Gt.createElement("div",{className:g.innerField},Gt.createElement("div",{className:g.imageWrapper},Gt.createElement(Ux,(0,e.__assign)({src:l,alt:r},c))),Gt.createElement("div",{className:g.selectedImageWrapper},Gt.createElement(Ux,(0,e.__assign)({src:o,alt:r},c)))),s&&Gt.createElement("div",{className:g.innerField},Gt.createElement("div",{className:g.iconWrapper},Gt.createElement(Xx,(0,e.__assign)({},s)))),l||s?Gt.createElement("div",{className:g.labelWrapper},i):i)},x=n.onRenderField,_=void 0===x?S:x;return Gt.createElement("div",{className:g.root},Gt.createElement("div",{className:g.choiceFieldWrapper},Gt.createElement("input",(0,e.__assign)({"aria-label":r,id:p,className:Gp(g.input,y),type:"radio",name:m,disabled:u,checked:d,required:i},b,{onChange:function(t){var r;null===(r=n.onChange)||void 0===r||r.call(n,t,(0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}))},onFocus:function(t){var r;null===(r=n.onFocus)||void 0===r||r.call(n,t,(0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}))},onBlur:function(e){var t;null===(t=n.onBlur)||void 0===t||t.call(n,e)}})),_((0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}),S)))};nT.displayName="ChoiceGroupOption";var rT={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},oT="200ms",iT="cubic-bezier(.4, 0, .23, 1)";function aT(e,t){var n,r;return["is-inFocus",{selectors:(n={},n[".".concat(Nu," &")]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid ".concat(e),position:"absolute",selectors:(r={},r[Iu]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function sT(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:oT,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var lT=Ng(nT,(function(t){var n,r,o,i,a,s=t.theme,l=t.hasIcon,c=t.hasImage,u=t.checked,d=t.disabled,p=t.imageIsLarge,h=t.focused,m=t.imageSize,f=s.palette,g=s.semanticColors,v=s.fonts,y=Ju(rT,s),b=f.neutralPrimary,C=g.inputBorderHovered,S=g.inputBackgroundChecked,x=f.themeDark,_=g.disabledBodySubtext,E=g.bodyBackground,k=f.neutralSecondary,w=g.inputBackgroundChecked,I=f.themeDark,P=g.disabledBodySubtext,T=f.neutralDark,D=g.focusBorder,A=g.inputBorderHovered,R=g.inputBackgroundChecked,N=f.themeDark,M=f.neutralLighter,F={selectors:{".ms-ChoiceFieldLabel":{color:T},":before":{borderColor:u?x:C},":after":[!l&&!c&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:k},u&&{borderColor:I,background:I}]}},B={borderColor:u?N:A,selectors:{":before":{opacity:1,borderColor:u?x:C}}},O=[{content:'""',display:"inline-block",backgroundColor:E,borderWidth:1,borderStyle:"solid",borderColor:b,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:oT,transitionTimingFunction:iT,borderRadius:"50%"},d&&{borderColor:_,selectors:(n={},n[Iu]=(0,e.__assign)({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},u&&{borderColor:d?_:S,selectors:(r={},r[Iu]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},r)},(l||c)&&{top:3,right:3,left:"auto",opacity:u?1:0}],L=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:oT,transitionTimingFunction:iT,boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:d?P:w,background:w,left:5,top:5,width:10,height:10,selectors:(o={},o[Iu]={borderColor:"Highlight",forcedColorAdjust:"none"},o)},u&&(l||c)&&{top:8,right:8,left:"auto"}];return{root:[y.root,s.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:g.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!l&&!c&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},c&&"ms-ChoiceField--image",l&&"ms-ChoiceField--icon",(l||c)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:M,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,h&&aT(D,l||c)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},d&&"is-disabled"],field:[y.field,u&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!d&&F,":focus":!d&&F,":before":O,":after":L}},l&&"ms-ChoiceField--icon",c&&"ms-ChoiceField-field--image",(l||c)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:oT,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:R},(l||c)&&!d&&{selectors:{":hover":B,":focus":B}},d&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:(i={},i[Iu]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},u&&d&&{borderColor:M}],innerField:[y.innerField,c&&{height:m.height,width:m.width},(l||c)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(l||c)&&p&&{paddingLeft:24,paddingRight:24},(l||c)&&d&&{opacity:.25,selectors:(a={},a[Iu]={color:"GrayText",opacity:1},a)}],imageWrapper:sT(!1,y.imageWrapper,u),selectedImageWrapper:sT(!0,y.imageWrapper,u),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,v.medium,(l||c)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*m.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),cT=zg(),uT=function(e,t){return"".concat(t,"-").concat(e.key)},dT=function(e,t){return void 0===t?void 0:function(e,t){var n=Tx(e,t);if(!(n<0))return e[n]}(e,(function(e){return e.key===t}))},pT=function(e,t,n,r){var o=dT(e,t)||e.filter((function(e){return!e.disabled}))[0],i=o&&document.getElementById(uT(o,n));i&&(i.focus(),Bu(!0,i,r))},hT=Gt.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.styles,a=t.options,s=void 0===a?[]:a,l=t.label,c=t.required,u=t.disabled,d=t.name,p=t.defaultSelectedKey,h=t.componentRef,m=t.onChange,f=eE("ChoiceGroup"),g=eE("ChoiceGroupLabel"),v=Qh(t,Xh,["onChange","className","required"]),y=cT(i,{theme:o,className:r,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),b=t.ariaLabelledBy||(l?g:t["aria-labelledby"]),C=ow(t.selectedKey,p),S=C[0],x=C[1],_=Gt.useState(),E=_[0],k=_[1],w=Gt.useRef(null),I=Sm(w,n),P=Gt.useContext(cm);!function(e,t,n,r,o){Gt.useImperativeHandle(r,(function(){return{get checkedOption(){return dT(e,t)},focus:function(){pT(e,t,n,o)}}}),[e,t,n,o])}(s,S,f,h,null===P||void 0===P?void 0:P.registeredProviders),um(w);var T=Gt.useCallback((function(e,t){var n;t&&(k(t.itemKey),null===(n=t.onFocus)||void 0===n||n.call(t,e))}),[]),D=Gt.useCallback((function(e,t){var n;k(void 0),null===(n=null===t||void 0===t?void 0:t.onBlur)||void 0===n||n.call(t,e)}),[]),A=Gt.useCallback((function(e,t){var n;t&&(x(t.itemKey),null===(n=t.onChange)||void 0===n||n.call(t,e),null===m||void 0===m||m(e,dT(s,t.itemKey)))}),[m,s,x]),R=Gt.useCallback((function(e){(function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper})(e)&&pT(s,S,f,null===P||void 0===P?void 0:P.registeredProviders)}),[s,S,f,P]);return Gt.createElement("div",(0,e.__assign)({className:y.root},v,{ref:I}),Gt.createElement("div",(0,e.__assign)({role:"radiogroup"},b&&{"aria-labelledby":b},{onFocus:R}),l&&Gt.createElement(ub,{className:y.label,required:c,id:g,disabled:u},l),Gt.createElement("div",{className:y.flexContainer},s.map((function(t){return Gt.createElement(lT,(0,e.__assign)({itemKey:t.key},t,{key:t.key,onBlur:D,onFocus:T,onChange:A,focused:t.key===E,checked:t.key===S,disabled:t.disabled||u,id:uT(t,f),labelId:t.labelId||"".concat(g,"-").concat(t.key),name:d||f,required:c}))})))))}));hT.displayName="ChoiceGroup";var mT,fT,gT,vT,yT,bT={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},CT=Ng(hT,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=Ju(bT,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),ST=function(e){return["selectButton","mediaButton"].includes(e)?{root:{width:"100%"},flexContainer:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}}:{}},xT="0px 0px 12px 0px",_T="8px",ET=function(e){return e?"bodyTertiaryText":"bodyPrimaryText"},kT=function(e,t,n,r,o,i){var a=o?e.palette.neutralLighter:e.palette.neutralHigh;return{backgroundColor:i?e.palette.themeLighterAlt:a,padding:t?"12px":"24px",width:"100%",minHeight:t?"auto":n,textAlign:r,borderRadius:_T}},wT=function(t,n,r,o,i){return{root:{width:n||i?"100%":"calc(50% - ".concat("8px",")"),paddingTop:8},choiceFieldWrapper:(0,e.__assign)({width:"100%",height:"100%",display:"flex"},IT(t,r,o))}},IT=function(e,t,n){var r;return n?{}:((r={boxSizing:"content-box",border:"solid",borderWidth:t?"2px":"1px",padding:t?"0px":"1px",borderRadius:_T,borderColor:t?e.palette.themePrimary:e.palette.neutralTertiary})[Qv]={borderWidth:t?"4px":"1px",padding:t?"0px":"3px"},r.selectors={":focus-within":{outline:"3px solid",outlineColor:e.palette.neutralPrimary,borderWidth:"2px",padding:"0px",borderRadius:_T},":hover":{borderColor:t?void 0:e.palette.neutralPrimary,boxShadow:Qp.depth16,transitionDuration:db}," input":{cursor:"pointer"}},r)},PT=function(t,n,r,o,i){var a=t.trim().length>0,s=i?"0px 0px 6px":"0px 0px 14px";return jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontal:!0},a?jt().createElement(bb,{padding:"selectButton"===o?s:xT,grow:1},jt().createElement(Ib,{variant:ET(n),weightOverride:"bold"},t)):null,r?jt().createElement(bb,{padding:"selectButton"===o?s:xT,horizontalAlign:"end",grow:1},function(e,t){return"richText"===e.lineItemType?jt().createElement(bb,null,e.ariaLabelOverride&&jt().createElement("p",{style:{width:"1px",height:"1px",overflow:"hidden",margin:"-1px",padding:"0px",border:0,whiteSpace:"nowrap"}},e.ariaLabelOverride),jt().createElement(ox,{"aria-hidden":!!e.ariaLabelOverride,textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues})):jt().createElement(Ib,{variant:ET(t),weightOverride:e.isBold?"bold":void 0},e.text)}(r,n)):null),i?jt().createElement(jk,(0,e.__assign)({padding:"0px 0px 25px"},i),jt().createElement(Ib,{variant:ET(n),weightOverride:"bold"},i.text)):null)},TT=function(t,n){return jt().createElement(jt().Fragment,null,t?t.map((function(t,r){return"media"===t.lineItemType?jt().createElement(jk,(0,e.__assign)({key:r},t,{disabled:n}),jt().createElement(Ib,{variant:ET(n),weightOverride:t.isBold?"bold":void 0},t.text)):jt().createElement(Ib,{key:r,variant:ET(n),weightOverride:t.isBold?"bold":void 0},t.text)})):null)},DT=function(e){switch(e){case"left":case"right":return"start";case"top":case"bottom":return"center"}},AT=function(e){return{root:{width:"top"===e||"bottom"===e?"100%":"100px",overflow:"hidden",display:"flex",paddingTop:"bottom"===e?"8px":void 0,paddingBottom:"top"===e?"8px":void 0,justifyContent:"center",alignItems:"center",paddingRight:"left"===e?"24px":void 0}}},RT=function(e,t){return function(){return t&&"left"!==e?"MediaButtonChoiceGroup must have mediaPosition set to `left` when provided a topRightText":void 0}},NT=function(t){var n=t.text,r=t.lines,o=t.disabled,i=t.height,a=t.mediaPosition,s=t.mediaProp,l=t.selected,c=t.topRightText,u=t.optionType,d=ny(),p=dg(),h=ry(d),m=(0,e.__assign)((0,e.__assign)({},s),{shouldFadeIn:"image"!==s.imageType&&void 0});return Dg("MediaButtonChoiceGroup",[RT(a,c)]),jt().createElement(Tg,(0,e.__assign)({},function(t,n,r,o,i,a){void 0===r&&(r="auto");var s=["left","right"].includes(o),l=["bottom","right"].includes(o),c=["top","bottom"].includes(o),u=s?"left":"center";return{horizontal:s,reversed:l,verticalAlign:c?"center":"start",horizontalAlign:"right"===o?"space-between":c?"center":void 0,styles:{root:(0,e.__assign)({},kT(t,n,r,u,i,a))}}}(p,h,i,a,o,l),{doNotRenderFalsyValues:!0}),jt().createElement(Tg,{styles:AT(a),doNotRenderFalsyValues:!0},jt().createElement(jk,{size:"xl",padding:"0px",image:m,disabled:o})),jt().createElement(bb,{width:"100%"},PT(n,o,c,u),jt().createElement(bb,{horizontalAlign:DT(a)},TT(r,o))))},MT=function(t,n,r,o,i,a){return void 0===r&&(r="auto"),{root:(0,e.__assign)({},kT(t,n,r,o,i,a))}},FT=function(e){switch(e){case"left":return"start";case"center":return"center";case"right":return"end"}},BT=function(e,t){return function(){return t&&"left"!==e?"SelectButtonChoiceGroup must have textAlignment set to `left` when provided a topRightText":void 0}},OT=function(e){var t=e.text,n=e.lines,r=e.disabled,o=e.height,i=e.textAlignment,a=e.selected,s=e.topRightText,l=e.optionType,c=e.subTextWithMedia,u=ny(),d=dg(),p=ry(u);return Dg("SelectButtonChoiceGroup",[BT(i,s)]),jt().createElement(Tg,{styles:MT(d,p,o,i,r,a),doNotRenderFalsyValues:!0},PT(t,r,s,l,c),jt().createElement(bb,{horizontalAlign:FT(i)},TT(n,r)))},LT=function(t){var n=t.label,r=t.onChange,o=t.selectedKey,i=t.textAlignment,a=void 0===i?"left":i,s=t.operationData,l=t.isSingleColumn,c=(0,e.__rest)(t,["label","onChange","selectedKey","textAlignment","operationData","isSingleColumn"]);ll("ChoiceGroup",c.id);var u=(0,Gt.useState)(o||void 0),d=u[0],p=u[1];(0,Gt.useEffect)((function(){p(o)}),[o]);var h=ny(),m=dg(),f=ry(h),g=["selectButton","mediaButton"].includes(c.optionType),v=function(t){var n;return n="selectButton"===c.optionType?c.options.map((function(n){return(0,e.__assign)((0,e.__assign)({},n),{styles:wT(m,f,n.key===d,t||n.disabled,l),onRenderField:function(){return jt().createElement(OT,(0,e.__assign)({},n,{height:l?"auto":c.height,textAlignment:a,selected:n.key===d,disabled:t||n.disabled,optionType:c.optionType}))}})})):"mediaButton"===c.optionType?c.options.map((function(n){return(0,e.__assign)((0,e.__assign)({},n),{styles:wT(m,f,n.key===d,t||n.disabled,l),onRenderField:function(){var r;return jt().createElement(NT,(0,e.__assign)({},n,{height:l?"auto":c.height,mediaPosition:null!==(r=c.mediaPosition)&&void 0!==r?r:"left",selected:n.key===d,disabled:t||n.disabled,optionType:c.optionType}))}})})):c.options.slice(),n},y=c.optionType,b=(c.options,c.height,c.mediaPosition,(0,e.__rest)(c,["optionType","options","height","mediaPosition"]));Fy("ChoiceGroup",b);var C=(0,e.__assign)({label:n,selectedKey:o,options:v(),onChange:function(e,t){g&&!o&&p(t.key),r&&r(t,e)},styles:ST(y)},b);return s?jt().createElement(Xs,{operationData:s.progressViewOperationData,updatingView:jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontal:!0,childrenGap:8},jt().createElement(ub,{disabled:!0},n),jt().createElement(dw,null)),jt().createElement(CT,(0,e.__assign)({},C,{label:"",disabled:!0,options:v(!0)}))),updateFailedView:jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontal:!0,childrenGap:8},jt().createElement(ub,null,n),jt().createElement(bb,{padding:"8px 0px 0px 0px"},jt().createElement(XE,(0,e.__assign)({},s.errorProps)))),jt().createElement(CT,(0,e.__assign)({},C,{label:""}))),finishedView:jt().createElement(CT,(0,e.__assign)({},C))}):jt().createElement(CT,(0,e.__assign)({},C))},HT={listStyle:"none",display:"inline-flex"},VT=((0,e.__assign)((0,e.__assign)({},HT),{verticalAlign:"top"}),function(e){var t=e.children;return jt().createElement(bb,null,t)}),zT=function(e){var t=e.count,n=e.indentWidth,r=void 0===n?36:n,o=e.role,i=void 0===o?"presentation":o,a=t*r;return t>0?Gt.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:a},role:i}):null},UT=(0,Gt.forwardRef)((function(t,n){var r=t.as,o=void 0===r?"div":r,i=t.direction,a=void 0===i?"bidirectional":i,s=t.handleTabKey,l=t.shouldEnterInnerZone,c=t.children,u=(0,e.__rest)(t,["as","direction","handleTabKey","shouldEnterInnerZone","children"]);ll("FocusZone",u.id);var d=(0,Gt.useRef)(null);return(0,Gt.useImperativeHandle)(n,(function(){return{focus:function(){var e;null===(e=d.current)||void 0===e||e.focus()}}})),Fy("FocusZone",u),jt().createElement(g_,(0,e.__assign)({as:o,direction:e_[a],handleTabKey:s?t_[s]:void 0,isInnerZoneKeystroke:l},u,{componentRef:d}),c)})),WT=function(e,t){return function(){return e&&t?"Forbidden passing listItemRole when removeRole prop is true":void 0}},GT=function(t,n,r,o,i,a,s,l){var c,u,d,p,h,m,f=n||"neutralHigh",g="themeLighterAlt"===f?t.palette.themeLighter:t.palette.neutralLighterAlt,v=i?{cursor:"pointer",":hover":(c={background:g},c[Iu]={background:"highlight"},c),":active":(u={background:t.palette.neutralLight},u[Iu]={background:"highlight"},u)}:void 0,y=s?{backgroundColor:t.palette.themeLighterAlt,border:"1px solid ".concat(t.palette.themeSecondary),":hover":(d={backgroundColor:t.palette.themeLighterAlt,borderColor:t.palette.themeDark},d[Iu]={backgroundColor:"highlight"},d),":active":(p={backgroundColor:t.palette.themeLighter,borderColor:t.palette.themeDark},p[Iu]={backgroundColor:"highlight"},p)}:void 0,b=((h={})[Iu]={border:"1px solid WindowText"},h[":focus"]={outlineOffset:"-2px"},h),C={":hover":(m={background:g,outline:"1px solid ".concat(g)},m[Iu]={background:"highlight"},m),":active":{backgroundColor:t.palette.neutralLight,outline:"1px solid ".concat(t.palette.neutralLight)},":hover:active":{backgroundColor:t.palette.neutralLight,outline:"1px solid ".concat(t.palette.neutralLight)}};return{root:(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({backgroundColor:By(t,f),padding:r,borderBottom:a?"1px solid ".concat(t.palette.white):void 0,minHeight:o},v),y),b),"DetailsList"===l&&C)}},jT=function(t){var n=t.backgroundColor,r=t.padding,o=t.children,i=t.groupSpacerNestingDepth,a=t.onClickProps,s=t.onEnter,l=t.onLeave,c=t.showDivider,u=void 0===c||c,d=t.disabled,p=t.selected,h=t["data-is-focusable"],m=void 0===h||h,f=t.listItemRole,g=t.horizontalStack,v=void 0===g||g,y=t.listType,b=(0,e.__rest)(t,["backgroundColor","padding","children","groupSpacerNestingDepth","onClickProps","onEnter","onLeave","showDivider","disabled","selected","data-is-focusable","listItemRole","horizontalStack","listType"]),C=Di();Fy("ListItemCanvas",b);var S,x=dg();(0,Gt.useEffect)((function(){Dg("ListItemCanvas",[WT(b.removeRole,f)])})),a&&!d&&(S=(0,e.__assign)((0,e.__assign)({},a),{onClick:function(e){C.reportClick({clickId:a["data-bi-id"],pageArea:a.pageArea}),a.onClick(e)}}));return jt().createElement(Tg,(0,e.__assign)({"data-is-focusable":m,tabIndex:m?0:-1,grow:!0,verticalAlign:"center",styles:GT(x,n,r,"48px",!!a&&!d,u,p,y),role:b.removeRole?void 0:f||"listitem"},b,S,{"aria-label":b["aria-label"],onMouseEnter:s,onTouchStart:s,onFocus:s,onMouseLeave:l,onTouchCancel:l,onBlur:l,doNotRenderFalsyValues:!0}),jt().createElement(UT,{direction:"horizontal"},jt().createElement(Tg,{verticalAlign:"center",horizontal:v,grow:!0,doNotRenderFalsyValues:!0},void 0!==i&&0!==i?jt().createElement(Cb,null,jt().createElement(zT,{count:i})):null,S?jt().createElement(wb,null,jt().createElement(zE,(0,e.__assign)({text:S["aria-label"]},S,{id:S.id?"".concat(S.id,"-hidden"):void 0,styles:hb}))):null,jt().createElement(Cb,{grow:!0},o))))},qT=function(t){return jt().createElement(KT,(0,e.__assign)({},t))},KT=function(t){var n=t.image,r=t.imageSize,o=void 0===r?"md":r,i=t.children,a=t.groupSpacerNestingDepth,s=t.onClickProps,l=t.backgroundColor,c=t.actions,u=t.disabled,d=void 0!==u&&u,p=t.showDivider,h=void 0!==p&&p,m=(0,e.__rest)(t,["image","imageSize","children","groupSpacerNestingDepth","onClickProps","backgroundColor","actions","disabled","showDivider"]);Fy("BaseFeedListItemInternal",m);var f,g,v,y,b=ny(),C=jt().createElement(jt().Fragment,null);switch(c&&(Dg("BaseFeedListItemInternal",[(f=c.length,function(){return f>3?"BaseFeedListItem supports up to ".concat(3," action slots"):void 0})]),C=["xl","xxl","xxxl"].includes(b)?jt().createElement(bb,{verticalAlign:"center",type:"slots",totalSlots:c.length},c.map((function(e,t){return jt().createElement(Cb,{key:e.key||t,slots:1},d?jt().cloneElement(e,{disabled:d}):e)}))):jt().createElement(bb,{verticalAlign:"center",horizontal:!0,horizontalAlign:["s","m"].includes(b)?"end":"start"},c.map((function(e,t){return jt().createElement(Cb,{key:e.key||t},d?jt().cloneElement(e,{disabled:d}):e)})))),b){case"s":y=(g=4)-(v=(null===c||void 0===c?void 0:c.length)?1:0);break;case"m":case"l":y=(g=6)-(v=(null===c||void 0===c?void 0:c.length)?2:0);break;case"xl":y=(g=12)-(v=c?2*c.length:0);break;case"xxl":case"xxxl":y=(g=12)-(v=c?2*c.length:0)-1}return jt().createElement(jT,{groupSpacerNestingDepth:a,onClickProps:s,backgroundColor:l,showDivider:h},jt().createElement(vb,(0,e.__assign)({totalSlots:g,verticalAlign:"center"},m),jt().createElement(gb,{slots:y},jt().createElement(jk,{disabled:d,size:o,image:n,padding:"2px 0 2px 16px"},i)),v?jt().createElement(gb,{slots:v},C):null))},YT=function(e){var t,n,r,o,i,a=e.backgroundColor,s=void 0===a?"neutralMed":a,l=ny();switch(l){case"s":r=(t=4)-(n=1),o=20,i=131;break;case"m":case"l":r=(t=6)-(n=2),o=20,i=166;break;case"xl":r=(t=12)-(n=6),o=20,i=277;break;case"xxl":case"xxxl":r=(t=12)-(n=6)-1,o=20,i=277}return jt().createElement(jT,{backgroundColor:s},jt().createElement(vb,{totalSlots:t},jt().createElement(gb,{slots:r},"s"===l?jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,{padding:"0 0 0 11px",key:"1"},jt().createElement(nw,{height:16,width:16})),jt().createElement(Cb,{padding:"0 0 0 9px",key:"2"},jt().createElement(nw,{height:o,width:i}))):jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,{padding:"0 0 0 16px",key:"1"},jt().createElement(nw,{height:16,width:16})),jt().createElement(Cb,{padding:"0 0 0 10px",key:"2"},jt().createElement(nw,{height:32,width:32})),jt().createElement(Cb,{padding:"0 0 0 9px",key:"3"},jt().createElement(nw,{height:o,width:i})))),["l","m","s"].includes(l)?jt().createElement(gb,{slots:n},jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,null,jt().createElement(nw,{height:16,width:"s"===l?63:145})))):jt().createElement(gb,{slots:n},jt().createElement(bb,{type:"slots",totalSlots:3,verticalAlign:"center",height:"100%"},jt().createElement(Cb,{slots:1,key:"1"},jt().createElement(nw,{height:16,width:100})),jt().createElement(Cb,{slots:1,key:"2"},jt().createElement(nw,{height:16,width:100})),jt().createElement(Cb,{slots:1,key:"3"},jt().createElement(nw,{height:16,width:100}))))))};!function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(mT||(mT={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(fT||(fT={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(gT||(gT={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(vT||(vT={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(yT||(yT={}));var XT,QT={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},ZT={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},JT={rowHeight:42,compactRowHeight:32},$T=(0,e.__assign)((0,e.__assign)({},JT),{rowVerticalPadding:11,compactRowVerticalPadding:6}),eD=zg(),tD=function(e){return function(t){return t?t.column.isIconOnly?Gt.createElement("span",{className:e.accessibleLabel},t.column.name):Gt.createElement(Gt.Fragment,null,t.column.name):null}},nD=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Gt.createRef(),r._tooltipRef=Gt.createRef(),r._onRenderFilterIcon=function(t){return function(t){var n=t.columnProps,r=(0,e.__rest)(t,["columnProps"]),o=(null===n||void 0===n?void 0:n.useFastIcons)?qx:Xx;return Gt.createElement(o,(0,e.__assign)({},r))}},r._onRenderColumnHeaderTooltip=function(e){return Gt.createElement("span",{className:e.hostClassName},e.children)},r._onColumnClick=function(e){var t=r.props,n=t.onColumnClick,o=t.column;o.columnActionsMode!==mT.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),n&&n(e,o))},r._onColumnBlur=function(){r._tooltipRef.current&&r._tooltipRef.current.dismiss()},r._onColumnFocus=function(){r._tooltipRef.current&&r._tooltipRef.current.show()},r._onDragStart=function(e,t,n,o){var i=r._classNames;t&&(r._updateHeaderDragInfo(t),r._root.current.classList.add(i.borderWhileDragging),r._async.setTimeout((function(){r._root.current&&r._root.current.classList.add(i.noBorderWhileDragging)}),20))},r._onDragEnd=function(e,t){var n=r._classNames;t&&r._updateHeaderDragInfo(-1,t),r._root.current.classList.remove(n.borderWhileDragging),r._root.current.classList.remove(n.noBorderWhileDragging)},r._updateHeaderDragInfo=function(e,t){r.props.setDraggedItemIndex&&r.props.setDraggedItemIndex(e),r.props.updateDragInfo&&r.props.updateDragInfo({itemIndex:e},t)},r._onColumnContextMenu=function(e){var t=r.props,n=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),n&&(n(o,e),e.preventDefault())},r._onRootMouseDown=function(e){r.props.isDraggable&&0===e.button&&e.stopPropagation()},Mb(r),r._async=new Vb(r),r._events=new kx(r),r}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.column,r=t.parentId,o=t.isDraggable,i=t.styles,a=t.theme,s=t.cellStyleProps,l=void 0===s?ZT:s,c=t.useFastIcons,u=void 0===c||c,d=this.props.onRenderColumnHeaderTooltip,p=void 0===d?this._onRenderColumnHeaderTooltip:d;this._classNames=eD(i,{theme:a,headerClassName:n.headerClassName,iconClassName:n.iconClassName,isActionable:n.columnActionsMode!==mT.disabled,isEmpty:!n.name,isIconVisible:n.isSorted||n.isGrouped||n.isFiltered,isPadded:n.isPadded,isIconOnly:n.isIconOnly,cellStyleProps:l,transitionDurationDrag:200,transitionDurationDrop:1500});var h=this._classNames,m=u?qx:Xx,f=n.onRenderFilterIcon?$x(n.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),g=n.onRenderHeader?$x(n.onRenderHeader,tD(this._classNames)):tD(this._classNames),v=n.columnActionsMode!==mT.disabled&&(void 0!==n.onColumnClick||void 0!==this.props.onColumnClick),y=this.props.onRenderColumnHeaderTooltip?!n.ariaLabel:this._hasAccessibleDescription(),b={"aria-label":n.ariaLabel?n.ariaLabel:n.isIconOnly?n.name:void 0,"aria-labelledby":n.ariaLabel||n.isIconOnly?void 0:"".concat(r,"-").concat(n.key,"-name"),"aria-describedby":y?"".concat(r,"-").concat(n.key,"-tooltip"):void 0};return Gt.createElement(Gt.Fragment,null,Gt.createElement("div",(0,e.__assign)({key:n.key,ref:this._root,role:"columnheader"},!v&&b,{"aria-sort":n.isSorted?n.isSortedDescending?"descending":"ascending":"none","data-is-focusable":v||n.columnActionsMode===mT.disabled?void 0:"true",className:h.root,"data-is-draggable":o,draggable:o,style:{width:n.calculatedWidth+l.cellLeftPadding+l.cellRightPadding+(n.isPadded?l.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":n.key,onBlur:this._onColumnBlur,onFocus:this._onColumnFocus}),o&&Gt.createElement(m,{iconName:"GripperBarVertical",className:h.gripperBarVerticalStyle}),p({hostClassName:h.cellTooltip,id:"".concat(r,"-").concat(n.key,"-tooltip"),setAriaDescribedBy:!1,column:n,componentRef:this._tooltipRef,content:n.columnActionsMode!==mT.disabled?n.ariaLabel:"",children:Gt.createElement("span",(0,e.__assign)({id:"".concat(r,"-").concat(n.key),className:h.cellTitle,"data-is-focusable":v&&n.columnActionsMode!==mT.disabled?"true":void 0,role:v?"button":void 0},v&&b,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":n.columnActionsMode===mT.hasDropdown?"menu":void 0,"aria-expanded":n.columnActionsMode===mT.hasDropdown?!!n.isMenuOpen:void 0}),Gt.createElement("span",{id:"".concat(r,"-").concat(n.key,"-name"),className:h.cellName},(n.iconName||n.iconClassName)&&Gt.createElement(m,{className:h.iconClassName,iconName:n.iconName}),g(this.props)),n.isFiltered&&Gt.createElement(m,{className:h.nearIcon,iconName:"Filter"}),(n.isSorted||n.showSortIconWhenUnsorted)&&Gt.createElement(m,{className:h.sortIcon,iconName:n.isSorted?n.isSortedDescending?"SortDown":"SortUp":"Sort"}),n.isGrouped&&Gt.createElement(m,{className:h.nearIcon,iconName:"GroupedDescending"}),n.columnActionsMode===mT.hasDropdown&&!n.isIconOnly&&f({"aria-hidden":!0,columnProps:this.props,className:h.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},n.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},n.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},n.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},n.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},n.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?Gt.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(n,"-").concat(t.key,"-tooltip"),className:r.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},n.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},n}(Gt.Component),rD={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},oD=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?ZT:n,o=t.semanticColors;return[Ju(rD,t).cell,Ou(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 ".concat(r.cellRightPadding,"px 0 ").concat(r.cellLeftPadding,"px"),lineHeight:"inherit",margin:"0",height:42,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},iD={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},aD=Ng(nD,(function(t){var n,r=t.theme,o=t.headerClassName,i=t.iconClassName,a=t.isActionable,s=t.isEmpty,l=t.isIconVisible,c=t.isPadded,u=t.isIconOnly,d=t.cellStyleProps,p=void 0===d?ZT:d,h=t.transitionDurationDrag,m=t.transitionDurationDrop,f=r.semanticColors,g=r.palette,v=r.fonts,y=Ju(iD,r),b={iconForegroundColor:f.bodySubtext,headerForegroundColor:f.bodyText,headerBackgroundColor:f.bodyBackground,dropdownChevronForegroundColor:g.neutralSecondary,resizerColor:g.neutralTertiaryAlt},C={color:b.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid ".concat(g.themePrimary)},x={outlineColor:"transparent"};return{root:[oD(t),v.small,a&&[y.isActionable,{selectors:{":hover":{color:f.bodyText,background:f.listHeaderBackgroundHovered},":active":{background:f.listHeaderBackgroundPressed}}}],s&&[y.isEmpty,{textOverflow:"clip"}],l&&y.isIconVisible,c&&{paddingRight:p.cellExtraRightPadding+p.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},o],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:g.neutralTertiary,left:1},nearIcon:[y.nearIcon,C],sortIcon:[C,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:b.iconForegroundColor,opacity:1},i],filterChevron:[y.filterChevron,{color:b.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:v.small.fontSize}],cellTitle:[y.cellTitle,Ou(r),(0,e.__assign)({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(p.cellRightPadding,"px 0 ").concat(p.cellLeftPadding,"px")},u?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:Cu.semibold,fontSize:v.medium.fontSize},u&&{selectors:(n={},n[".".concat(y.nearIcon)]={paddingLeft:0},n)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:Vu,borderWhileDragging:S,noBorderWhileDragging:[x,{transition:"outline ".concat(h,"ms ease")}],borderAfterDropping:S,noBorderAfterDropping:[x,{transition:"outline  ".concat(m,"ms ease")}]}}),void 0,{scope:"DetailsColumn"}),sD=Gt.createContext({scrollablePane:void 0});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(XT||(XT={}));var lD,cD=function(t){function n(e){var n=t.call(this,e)||this;return n._root=Gt.createRef(),n._stickyContentTop=Gt.createRef(),n._stickyContentBottom=Gt.createRef(),n._nonStickyContent=Gt.createRef(),n._placeHolder=Gt.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){if(n.root&&n.nonStickyContent){var r=n._getNonStickyDistanceFromTop(e),o=!1,i=!1;if(n.canStickyTop)o=r-n._getStickyDistanceFromTop()<e.scrollTop;n.canStickyBottom&&e.clientHeight-t.offsetHeight<=r&&(i=r-Math.floor(e.scrollTop)>=n._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&n.nonStickyContent.contains(document.activeElement)&&(n.state.isStickyTop!==o||n.state.isStickyBottom!==i)?n._activeElement=document.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&o,isStickyBottom:i,distanceFromTop:r})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var r=0;return n.stickyContentBottom&&(r=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),r},n._getNonStickyDistanceFromTop=function(e){var t=0,r=n.root;if(r){for(;r&&r.offsetParent!==e;)t+=r.offsetTop,r=r.offsetParent;r&&r.offsetParent===e&&(t+=r.offsetTop)}return t},Mb(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===XT.Both||this.props.stickyPosition===XT.Header},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===XT.Both||this.props.stickyPosition===XT.Footer},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},n.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},n.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,i=r.isStickyTop,a=r.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},n.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,i=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||uD(this._nonStickyContent,this._stickyContentTop)||uD(this._nonStickyContent,this._stickyContentBottom)||uD(this._nonStickyContent,this._placeHolder)},n.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,r=this.props,o=r.stickyClassName,i=r.children;return this.context.scrollablePane?Gt.createElement("div",{ref:this._root},this.canStickyTop&&Gt.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},Gt.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&Gt.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},Gt.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),Gt.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&Gt.createElement("span",{style:Vu},i),Gt.createElement("div",{ref:this._nonStickyContent,className:t||n?o:void 0,style:this._getContentStyles(t||n)},i))):Gt.createElement("div",null,this.props.children)},n.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},n.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},n.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},n.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},n.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},n.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}}return{}},n.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},n.defaultProps={stickyPosition:XT.Both,isScrollSynced:!0},n.contextType=sD,n}(Gt.Component);function uD(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(lD||(lD={}));var dD=zg(),pD=Gt.forwardRef((function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.className,i=e.theme,a=e.styles,s=e.useFastIcons,l=void 0===s||s,c=dD(a,{theme:i,className:o,checked:r}),u=l?qx:Xx;return Gt.createElement("div",{className:c.root,ref:t},Gt.createElement(u,{iconName:"CircleRing",className:c.circle}),Gt.createElement(u,{iconName:"StatusCircleCheckmark",className:c.check}))}));pD.displayName="CheckBase";var hD,mD,fD={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},gD=Ng(pD,(function(t){var n,r,o,i,a,s=t.height,l=void 0===s?t.checkBoxHeight||"18px":s,c=t.checked,u=t.className,d=t.theme,p=d.palette,h=d.semanticColors,m=d.fonts,f=Dp(d),g=Ju(fD,d),v={fontSize:l,position:"absolute",left:0,top:0,width:l,height:l,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[g.root,m.medium,{lineHeight:"1",width:l,height:l,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(n={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:h.bodyBackground}},n[".".concat(g.checkHost,":hover &, .").concat(g.checkHost,":focus &, &:hover, &:focus")]={opacity:1},n)},c&&["is-checked",{selectors:{":before":{background:p.themePrimary,opacity:1,selectors:(r={},r[Iu]={background:"Window"},r)}}}],u],circle:[g.circle,v,{color:p.neutralSecondary,selectors:(o={},o[Iu]={color:"WindowText"},o)},c&&{color:p.white}],check:[g.check,v,{opacity:0,color:p.neutralSecondary,fontSize:Su.medium,left:f?"-0.5px":".5px",top:"-1px",selectors:(i={":hover":{opacity:1}},i[Iu]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},c&&{opacity:1,color:p.white,fontWeight:900,selectors:(a={},a[Iu]={border:"none",color:"WindowText"},a)}],checkHost:g.checkHost}}),void 0,{scope:"Check"},!0),vD={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},yD="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(hD||(hD={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(mD||(mD={}));var bD=zg(),CD=Gt.memo((function(e){return Gt.createElement(gD,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function SD(e){return Gt.createElement(gD,{checked:e.checked})}function xD(e){return Gt.createElement(CD,{theme:e.theme,checked:e.checked})}var _D,ED=Ng((function(t){var n=t.isVisible,r=void 0!==n&&n,o=t.canSelect,i=void 0!==o&&o,a=t.anySelected,s=void 0!==a&&a,l=t.selected,c=void 0!==l&&l,u=t.selectionMode,d=t.isHeader,p=void 0!==d&&d,h=t.className,m=(t.checkClassName,t.styles),f=t.theme,g=t.compact,v=t.onRenderDetailsCheckbox,y=t.useFastIcons,b=void 0===y||y,C=(0,e.__rest)(t,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),S=b?xD:SD,x=v?$x(v,S):S,_=bD(m,{theme:f,canSelect:i,selected:c,anySelected:s,className:h,isHeader:p,isVisible:r,compact:g}),E={checked:c,theme:f},k=$h("div",C,["aria-label","aria-labelledby","aria-describedby"]),w=u===hD.single?"radio":"checkbox";return i?Gt.createElement("div",(0,e.__assign)({},C,{role:w,className:Gp(_.root,_.check),"aria-checked":c,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),x(E)):Gt.createElement("div",(0,e.__assign)({},k,{className:Gp(_.root,_.check)}))}),(function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=Ju(vD,t),u=r?42:s?JT.compactRowHeight:JT.rowHeight,d=l||o||i;return{root:[c.root,n],check:[!a&&c.isDisabled,r&&c.isHeader,Ou(t),t.fonts.small,fD.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:d?1:0,height:u,width:48,padding:0,margin:0}],isDisabled:[]}}),void 0,{scope:"DetailsRowCheck"},!0),kD=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var r=this;if(!this._initialized){this._events=new kx(this);var o=nc();o&&(this._events.on(o.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(o,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,d,p,h,m,f=n.key,g=void 0===f?"".concat(++this._lastId):f,v=[];if(n&&e){var y=n.eventMap,b=n.context,C=n.updateDropState,S={root:e,options:n,key:g};if(p=this._isDraggable(S),h=this._isDroppable(S),(p||h)&&y)for(var x=0,_=y;x<_.length;x++){var E=_[x],k={callback:E.callback.bind(null,b),eventName:E.eventName};v.push(k),this._events.on(e,k.eventName,k.callback)}h&&(a=function(e){e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]--,0===r._dragEnterCounts[g]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]++,1===r._dragEnterCounts[g]&&C(!0,e))},l=function(e){r._dragEnterCounts[g]=0,C(!1,e)},c=function(e){r._dragEnterCounts[g]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},u=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),p&&(d=this._onMouseDown.bind(this,S),l=this._onDragEnd.bind(this,S),i=function(t){var o=n;o&&o.onDragStart&&o.onDragStart(o.context.data,o.context.index,r._selection.getSelection(),t),r._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",d),t.on(e,"dragend",l)),m={target:S,dispose:function(){if(r._activeTargets[g]===m&&delete r._activeTargets[g],e){for(var n=0,o=v;n<o.length;n++){var f=o[n];r._events.off(e,f.eventName,f.callback)}h&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",l))}}},this._activeTargets[g]=m}return{key:g,dispose:function(){m&&m.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var r=n[t],o=this._activeTargets[r];o.target.root&&(this._events.off(o.target.root,"mousemove"),this._events.off(o.target.root,"mouseleave"))}this._dragData.dropTarget&&(kx.raise(this._dragData.dropTarget.root,"dragleave"),kx.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=nc();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,r=void 0===n?1:n;if(this._dragData&&1!==r)this._onMouseUp(t);else{var o=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(o,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(kx.raise(this._dragData.dropTarget.root,"dragleave"),kx.raise(o,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(kx.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,r=Object.keys(this._activeTargets);n<r.length;n++){var o=r[n],i=this._activeTargets[o];i.target.root&&(this._events.on(i.target.root,"mousemove",this._onMouseMove.bind(this,i.target)),this._events.on(i.target.root,"mouseleave",this._onMouseLeave.bind(this,i.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!(!t.canDrag||!t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,n))},e}();!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(_D||(_D={}));var wD=zg(),ID=[],PD=function(t){function n(n){var r=t.call(this,n)||this;return r._rootElement=Gt.createRef(),r._rootComponent=Gt.createRef(),r._draggedColumnIndex=-1,r._dropHintDetails={},r._updateDroppingState=function(e,t){r._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&r._resetDropHints()},r._onDragOver=function(e,t){r._draggedColumnIndex>=0&&(t.stopPropagation(),r._computeDropHintToBeShown(t.clientX))},r._onDrop=function(e,t){var n=r._getColumnReorderProps();if(r._draggedColumnIndex>=0&&t){var o=r._draggedColumnIndex>r._currentDropHintIndex?r._currentDropHintIndex:r._currentDropHintIndex-1,i=r._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(r._onDropIndexInfo.sourceIndex=r._draggedColumnIndex,r._onDropIndexInfo.targetIndex=o,n.onColumnDrop){var a={draggedIndex:r._draggedColumnIndex,targetIndex:o};n.onColumnDrop(a)}else n.handleColumnReorder&&n.handleColumnReorder(r._draggedColumnIndex,o)}r._resetDropHints(),r._dropHintDetails={},r._draggedColumnIndex=-1},r._computeColumnIndexOffset=function(e){var t=1;return e&&(t+=1),r.props.groupNestingDepth&&r.props.groupNestingDepth>0&&(t+=1),t},r._updateDragInfo=function(e,t){var n=r._getColumnReorderProps(),o=e.itemIndex;if(o>=0)r._draggedColumnIndex=o-r._computeColumnIndexOffset(!r._isCheckboxColumnHidden()),r._getDropHintPositions(),n.onColumnDragStart&&n.onColumnDragStart(!0);else if(t&&r._draggedColumnIndex>=0&&(r._resetDropHints(),r._draggedColumnIndex=-1,r._dropHintDetails={},n.onColumnDragEnd)){var i=r._isEventOnHeader(t);n.onColumnDragEnd({dropLocation:i},t)}},r._getDropHintPositions=function(){for(var e,t=r.props.columns,n=void 0===t?ID:t,o=r._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,l=o.frozenColumnCountFromEnd||0,c=s;c<n.length-l+1;c++)if(r._rootElement.current){var u=r._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;r._dropHintDetails[c-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,c===n.length-l&&(r._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},r._computeDropHintToBeShown=function(e){var t=Dp(r.props.theme);if(r._rootElement.current){var n=e-r._rootElement.current.getBoundingClientRect().left,o=r._currentDropHintIndex;if(r._isValidCurrentDropHintIndex()&&TD(t,n,r._dropHintDetails[o].startX,r._dropHintDetails[o].endX))return;var i=r.props.columns,a=void 0===i?ID:i,s=r._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,u=l,d=a.length-c,p=-1;if(DD(t,n,r._dropHintDetails[u].endX)?p=u:AD(t,n,r._dropHintDetails[d].startX)?p=d:r._isValidCurrentDropHintIndex()&&(r._dropHintDetails[o+1]&&TD(t,n,r._dropHintDetails[o+1].startX,r._dropHintDetails[o+1].endX)?p=o+1:r._dropHintDetails[o-1]&&TD(t,n,r._dropHintDetails[o-1].startX,r._dropHintDetails[o-1].endX)&&(p=o-1)),-1===p)for(var h=l,m=d;h<m;){var f=Math.ceil((m+h)/2);if(TD(t,n,r._dropHintDetails[f].startX,r._dropHintDetails[f].endX)){p=f;break}DD(t,n,r._dropHintDetails[f].originX)?m=f:AD(t,n,r._dropHintDetails[f].originX)&&(h=f)}p===r._draggedColumnIndex||p===r._draggedColumnIndex+1?r._isValidCurrentDropHintIndex()&&r._resetDropHints():o!==p&&p>=0&&(r._resetDropHints(),r._updateDropHintElement(r._dropHintDetails[p].dropHintElementRef,"inline-block"),r._currentDropHintIndex=p)}},r._renderColumnSizer=function(e){var t,n=e.columnIndex,o=r.props.columns,i=void 0===o?ID:o,a=i[n],s=r.state.columnResizeDetails,l=r._classNames;return a.isResizable?Gt.createElement("div",{key:"".concat(a.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:RD,"data-sizer-index":n,onBlur:r._onSizerBlur,className:Gp(l.cellSizer,n<i.length-1?l.cellSizerStart:l.cellSizerEnd,(t={},t[l.cellIsResizing]=s&&s.columnIndex===n,t)),onDoubleClick:r._onSizerDoubleClick.bind(r,n)}):null},r._onRenderColumnHeaderTooltip=function(e){return Gt.createElement("span",{className:e.hostClassName},e.children)},r._onSelectAllClicked=function(){var e=r.props.selection;e&&e.toggleAllSelected()},r._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),n=Number(t),o=r.props.columns,i=void 0===o?ID:o;null!==t&&0===e.button&&(r.setState({columnResizeDetails:{columnIndex:n,columnMinWidth:i[n].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},r._onRootMouseMove=function(e){var t=r.state,n=t.columnResizeDetails,o=t.isSizing;n&&!o&&e.clientX!==n.originX&&r.setState({isSizing:!0})},r._onRootKeyDown=function(t){var n=r.state,o=n.columnResizeDetails,i=n.isSizing,a=r.props,s=a.columns,l=void 0===s?ID:s,c=a.onColumnResized,u=t.target.getAttribute("data-sizer-index");if(u&&!i){var d=Number(u);if(o){var p=void 0;t.which===gp?(r.setState({columnResizeDetails:void 0}),t.preventDefault(),t.stopPropagation()):t.which===Ep?p=Dp(r.props.theme)?1:-1:t.which===wp&&(p=Dp(r.props.theme)?-1:1),p&&(t.shiftKey||(p*=10),r.setState({columnResizeDetails:(0,e.__assign)((0,e.__assign)({},o),{columnMinWidth:o.columnMinWidth+p})}),c&&c(l[d],o.columnMinWidth+p,d),t.preventDefault(),t.stopPropagation())}else t.which===gp&&(r.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:l[d].calculatedWidth}}),t.preventDefault(),t.stopPropagation())}},r._onSizerMouseMove=function(e){var t=e.buttons,n=r.props,o=n.onColumnIsSizingChanged,i=n.onColumnResized,a=n.columns,s=void 0===a?ID:a,l=r.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&o&&o(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;Dp(r.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else r._onSizerMouseUp(e)},r._onSizerBlur=function(e){r.state.columnResizeDetails&&r.setState({columnResizeDetails:void 0,isSizing:!1})},r._onSizerMouseUp=function(e){var t=r.props,n=t.columns,o=void 0===n?ID:n,i=t.onColumnIsSizingChanged,a=r.state.columnResizeDetails;r.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(o[a.columnIndex],!1)},r._onToggleCollapseAll=function(){var e=r.props.onToggleCollapseAll,t=!r.state.isAllCollapsed;r.setState({isAllCollapsed:t}),e&&e(t)},Mb(r),r._events=new kx(r),r.state={columnResizeDetails:void 0,isAllCollapsed:r.props.isAllCollapsed,isAllSelected:!!r.props.selection&&r.props.selection.isAllSelected()},r._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},r._id=bh("header"),r._currentDropHintIndex=-1,r._dragDropHelper=new kD({selection:{getSelection:function(){}},minimumPixelsForDrag:r.props.minimumPixelsForDrag}),r}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,yD,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},n.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?ID:t,r=this.props.columns,o=void 0===r?ID:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},n.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},n.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?ID:n,o=t.ariaLabel,i=t.ariaLabelForToggleAllGroupsButton,a=t.ariaLabelForSelectAllCheckbox,s=t.selectAllVisibility,l=t.ariaLabelForSelectionColumn,c=t.indentWidth,u=t.onColumnClick,d=t.onColumnContextMenu,p=t.onRenderColumnHeaderTooltip,h=void 0===p?this._onRenderColumnHeaderTooltip:p,m=t.styles,f=t.selectionMode,g=t.theme,v=t.onRenderDetailsCheckbox,y=t.groupNestingDepth,b=t.useFastIcons,C=t.checkboxVisibility,S=t.className,x=this.state,_=x.isAllSelected,E=x.columnResizeDetails,k=x.isSizing,w=x.isAllCollapsed,I=s!==_D.none,P=s===_D.hidden,T=C===yT.always,D=this._getColumnReorderProps(),A=D&&D.frozenColumnCountFromStart?D.frozenColumnCountFromStart:0,R=D&&D.frozenColumnCountFromEnd?D.frozenColumnCountFromEnd:0;this._classNames=wD(m,{theme:g,isAllSelected:_,isSelectAllHidden:s===_D.hidden,isResizingColumn:!!E&&k,isSizing:k,isAllCollapsed:w,isCheckboxHidden:P,className:S});var N=this._classNames,M=b?qx:Xx,F=y>0,B=F&&this.props.collapseAllVisibility===lD.visible,O=this._computeColumnIndexOffset(I),L=Dp(g);return Gt.createElement(g_,{role:"row","aria-label":o,className:N.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:e_.horizontal},I?[Gt.createElement("div",{key:"__checkbox",className:N.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:P?void 0:this._onSelectAllClicked,role:"columnheader"},h({hostClassName:N.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:a,children:Gt.createElement(ED,{id:"".concat(this._id,"-check"),"aria-label":f===hD.multiple?a:l,"data-is-focusable":!P||void 0,isHeader:!0,selected:_,anySelected:!1,canSelect:!P,className:N.check,onRenderDetailsCheckbox:v,useFastIcons:b,isVisible:T})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:a&&!P?Gt.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:N.accessibleLabel,"aria-hidden":!0},a):l&&P?Gt.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:N.accessibleLabel,"aria-hidden":!0},l):null]:null,B?Gt.createElement("div",{className:N.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!w,role:"columnheader"},Gt.createElement(M,{className:N.collapseButton,iconName:L?"ChevronLeftMed":"ChevronRightMed"}),Gt.createElement("span",{className:N.accessibleLabel},i)):F?Gt.createElement("div",{className:N.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,Gt.createElement(zT,{indentWidth:c,role:"gridcell",count:y-1}),r.map((function(t,n){var o=!!D&&(n>=A&&n<r.length-R);return[D&&(o||n===r.length-R)&&e._renderDropHint(n),Gt.createElement(aD,{column:t,styles:t.styles,key:t.key,columnIndex:O+n,parentId:e._id,isDraggable:o,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:u,onColumnContextMenu:d,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:b}),e._renderColumnDivider(n)]})),D&&0===R&&this._renderDropHint(r.length),k&&Gt.createElement(LS,null,Gt.createElement("div",{className:N.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},n.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},n.prototype._getColumnReorderProps=function(){var t=this.props,n=t.columnReorderOptions;return t.columnReorderProps||n&&(0,e.__assign)((0,e.__assign)({},n),{onColumnDragEnd:void 0})},n.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},n.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},n.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===hD.none||n===yT.hidden},n.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},n.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},n.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return gT.header}},n.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?ID:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},n.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?qx:Xx;return Gt.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e)},Gt.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},Gt.createElement(n,{iconName:"CircleShapeSolid"})),Gt.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},n.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns;r&&r((void 0===o?ID:o)[e],e)},n.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},n.defaultProps={selectAllVisibility:_D.visible,collapseAllVisibility:lD.visible,useFastIcons:!0},n}(Gt.Component);function TD(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function DD(e,t,n){return e?t>=n:t<=n}function AD(e,t,n){return e?t<=n:t>=n}function RD(e){e.stopPropagation()}var ND=Ng(PD,(function(t){var n,r,o,i,a=t.theme,s=t.className,l=t.isAllSelected,c=t.isResizingColumn,u=t.isSizing,d=t.isAllCollapsed,p=t.cellStyleProps,h=void 0===p?ZT:p,m=a.semanticColors,f=a.palette,g=a.fonts,v=Ju(rD,a),y={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,resizerColor:f.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},C=oD(t);return{root:[v.root,g.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(m.bodyDivider),cursor:"default",userSelect:"none",selectors:(n={},n["&:hover .".concat(v.check)]={opacity:1},n["& .".concat(v.tooltipHost," .").concat(v.checkTooltip)]={display:"block"},n)},l&&v.isAllSelected,c&&v.isResizingColumn,s],check:[v.check,{height:42},{selectors:(r={},r[".".concat(Nu," &:focus")]={opacity:1},r)}],cellWrapperPadded:{paddingRight:h.cellExtraRightPadding+h.cellRightPadding},cellIsCheck:[C,v.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},l&&{opacity:1}],cellIsGroupExpander:[C,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,padding:0,border:"none",width:36,color:f.neutralSecondary,selectors:{":hover":{backgroundColor:f.neutralLighter},":active":{backgroundColor:f.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[v.cellSizer,{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(o={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":b,":hover:after":b},o["&.".concat(v.isResizing,":after")]=[b,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],o)}],cellIsResizing:v.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[v.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},d?[v.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Dp(a)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:v.checkTooltip,sizingOverlay:u&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(i={},i[Iu]=(0,e.__assign)({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},accessibleLabel:Vu,dropHintCircleStyle:[v.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid ".concat(f.themePrimary),background:f.white}],dropHintCaretStyle:[v.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:g.medium.fontSize,color:f.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[v.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:f.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),MD=function(e){var t=e.columns,n=e.rowClassNames,r=e.cellStyleProps,o=void 0===r?ZT:r,i=e.item,a=e.itemIndex,s=e.isSelected,l=e.onRenderItemColumn,c=e.getCellValueKey,u=e.onRenderField,d=e.cellsByColumn,p=e.enableUpdateAnimations,h=e.rowHeaderId,m=Gt.useRef(),f=m.current||(m.current={}),g=Gt.useCallback((function(e){var t=e.column,r=e.cellValueKey,i=e.className,a=e.onRender,s=e.item,l=e.itemIndex,c="undefined"===typeof t.calculatedWidth?"auto":t.calculatedWidth+o.cellLeftPadding+o.cellRightPadding+(t.isPadded?o.cellExtraRightPadding:0),u="".concat(t.key).concat(void 0!==r?"-".concat(r):"");return Gt.createElement("div",{key:u,id:t.isRowHeader?h:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:Gp(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,i),style:{width:c},"data-automationid":"DetailsRowCell","data-automation-key":t.key},a(s,l,t))}),[n,o,h]);return Gt.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,r=void 0===t?c:t,o=d&&e.key in d&&function(){return d[e.key]}||e.onRender||l||FD,h=g;e.onRenderField&&(h=$x(e.onRenderField,h)),u&&(h=$x(u,h));var m=f[e.key],v=p&&r?r(i,a,e):void 0,y=!1;return void 0!==v&&void 0!==m&&v!==m&&(y=!0),f[e.key]=v,h({item:i,itemIndex:a,isSelected:s,column:e,cellValueKey:v,className:y?n.cellAnimation:void 0,onRender:o})})))};function FD(e,t,n){return e&&n?function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return null!==n&&void 0!==n||(n=""),"boolean"===typeof n?n.toString():n}(e,n):null}var BD=zg(),OD=[],LD=function(t){function n(e){var n=t.call(this,e)||this;return n._root=Gt.createRef(),n._cellMeasurer=Gt.createRef(),n._focusZone=Gt.createRef(),n._onSelectionChanged=function(){var e=HD(n.props);em(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var r=n.state.isDropping,o=n.props,i=o.dragDropEvents,a=o.item;e?i.onDragEnter&&(n._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),r!==e&&n.setState({isDropping:e})},Mb(n),n._events=new kx(n),n.state={selectionState:HD(e),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(t,n){return(0,e.__assign)((0,e.__assign)({},n),{selectionState:HD(t)})},n.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,yD,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},n.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},n.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},n.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=HD(e);return this.state.selectionState.isSelected!==n.isSelected||!em(this.props,e)}return!0},n.prototype.render=function(){var t,n=this.props,r=n.className,o=n.columns,i=void 0===o?OD:o,a=n.dragDropEvents,s=n.item,l=n.itemIndex,c=n.id,u=n.flatIndexOffset,d=void 0===u?2:u,p=n.onRenderCheck,h=void 0===p?this._onRenderCheck:p,m=n.onRenderDetailsCheckbox,f=n.onRenderItemColumn,g=n.onRenderField,v=n.getCellValueKey,y=n.selectionMode,b=n.checkboxVisibility,C=n.getRowAriaLabel,S=n.getRowAriaDescription,x=n.getRowAriaDescribedBy,_=n.isGridRow,E=n.checkButtonAriaLabel,k=n.checkboxCellClassName,w=n.rowFieldsAs,I=n.selection,P=n.indentWidth,T=n.enableUpdateAnimations,D=n.compact,A=n.theme,R=n.styles,N=n.cellsByColumn,M=n.groupNestingDepth,F=n.useFastIcons,B=void 0===F||F,O=n.cellStyleProps,L=n.group,H=n.focusZoneProps,V=n.disabled,z=void 0!==V&&V,U=this.state,W=U.columnMeasureInfo,G=U.isDropping,j=this.state.selectionState,q=j.isSelected,K=void 0!==q&&q,Y=j.isSelectionModal,X=void 0!==Y&&Y,Q=a?!(!a.canDrag||!a.canDrag(s)):void 0,Z=G?this._droppingClassNames||"is-dropping":"",J=C?C(s):void 0,$=S?S(s):void 0,ee=x?x(s):void 0,te=!!I&&I.canSelectItem(s,l)&&!z,ne=y===hD.multiple,re=y!==hD.none&&b!==yT.hidden,oe=y===hD.none?void 0:K,ie=L?l-L.startIndex+1:void 0,ae=L?L.count:void 0,se=H?H.direction:e_.horizontal;this._classNames=(0,e.__assign)((0,e.__assign)({},this._classNames),BD(R,{theme:A,isSelected:K,canSelect:!ne,anySelected:X,checkboxCellClassName:k,droppingClassName:Z,className:r,compact:D,enableUpdateAnimations:T,cellStyleProps:O,disabled:z}));var le={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};em(this._rowClassNames||{},le)||(this._rowClassNames=le);var ce=w?ME(w,MD):MD,ue=Gt.createElement(ce,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),cellsByColumn:N,columns:i,item:s,itemIndex:l,isSelected:K,columnStartIndex:(re?1:0)+(M?1:0),onRenderItemColumn:f,onRenderField:g,getCellValueKey:v,enableUpdateAnimations:T,cellStyleProps:O}),de=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=bh("DetailsRow-description");var pe=i.some((function(e){return!!e.isRowHeader})),he="".concat(c,"-checkbox")+(pe?" ".concat(c,"-header"):""),me=_?{}:{"aria-level":M&&M+1||void 0,"aria-posinset":ie,"aria-setsize":ae};return Gt.createElement(g_,(0,e.__assign)({"data-is-focusable":!0},Qh(this.props,Xh),"boolean"===typeof Q?{"data-is-draggable":Q,draggable:Q}:{},H,me,{direction:se,elementRef:this._root,componentRef:this._focusZone,role:de,"aria-label":J,"aria-disabled":z||void 0,"aria-describedby":$?this._ariaRowDescriptionId:ee,className:this._classNames.root,"data-selection-index":l,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(t=this.props["data-selection-disabled"])&&void 0!==t?t:z||void 0,"data-item-index":l,"aria-rowindex":void 0===ie?l+d:void 0,"data-automationid":"DetailsRow","aria-selected":oe,allowFocusRoot:!0}),$?Gt.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},$):null,re&&Gt.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},h({id:c?"".concat(c,"-checkbox"):void 0,selected:K,selectionMode:y,anySelected:X,"aria-label":E,"aria-labelledby":c?he:void 0,canSelect:te,compact:D,className:this._classNames.check,theme:A,isVisible:b===yT.always,onRenderDetailsCheckbox:m,useFastIcons:B})),Gt.createElement(zT,{indentWidth:P,role:"gridcell",count:0===M?-1:M}),s&&ue,W&&Gt.createElement("span",{role:"presentation",className:Gp(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},Gt.createElement(ce,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),columns:[W.column],item:s,itemIndex:l,columnStartIndex:(re?1:0)+(M?1:0)+i.length,onRenderItemColumn:f,getCellValueKey:v})))},n.prototype.measureCell=function(t,n){var r=this.props.columns,o=void 0===r?OD:r,i=(0,e.__assign)({},o[t]);i.minWidth=0,i.maxWidth=999999,delete i.calculatedWidth,this.setState({columnMeasureInfo:{index:t,column:i,onMeasureDone:n}})},n.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},n.prototype._onRenderCheck=function(t){return Gt.createElement(ED,(0,e.__assign)({},t))},n.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},n}(Gt.Component);function HD(e){var t,n=e.itemIndex,r=e.selection;return{isSelected:!!(null===r||void 0===r?void 0:r.isIndexSelected(n)),isSelectionModal:!!(null===(t=null===r||void 0===r?void 0:r.isModal)||void 0===t?void 0:t.call(r))}}var VD=Ng(LD,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f,g=t.theme,v=t.isSelected,y=t.canSelect,b=t.droppingClassName,C=t.isCheckVisible,S=t.checkboxCellClassName,x=t.compact,_=t.className,E=t.cellStyleProps,k=void 0===E?ZT:E,w=t.enableUpdateAnimations,I=t.disabled,P=g.palette,T=g.fonts,D=P.neutralPrimary,A=P.white,R=P.neutralSecondary,N=P.neutralLighter,M=P.neutralLight,F=P.neutralDark,B=P.neutralQuaternaryAlt,O=g.semanticColors,L=O.focusBorder,H=O.linkHovered,V=Ju(QT,g),z={defaultHeaderText:D,defaultMetaText:R,defaultBackground:A,defaultHoverHeaderText:F,defaultHoverMetaText:D,defaultHoverBackground:N,selectedHeaderText:F,selectedMetaText:D,selectedBackground:M,selectedHoverHeaderText:F,selectedHoverMetaText:D,selectedHoverBackground:B,focusHeaderText:F,focusMetaText:D,focusBackground:M,focusHoverBackground:B},U=[Ou(g,{inset:-1,borderColor:L,outlineColor:A,highContrastStyle:{top:2,right:2,bottom:2,left:2},pointerEvents:"none"}),V.isSelected,{color:z.selectedMetaText,background:z.selectedBackground,borderBottom:"1px solid ".concat(A),selectors:(n={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(A)}},n[".".concat(V.cell," > .").concat(Yy.root)]={color:H,selectors:(r={},r[Iu]={color:"HighlightText"},r)},n["&:hover"]={background:z.selectedHoverBackground,color:z.selectedHoverMetaText,selectors:(o={},o[Iu]={background:"Highlight",selectors:(i={},i[".".concat(V.cell)]={color:"HighlightText"},i[".".concat(V.cell," > .").concat(Yy.root)]={forcedColorAdjust:"none",color:"HighlightText"},i)},o[".".concat(V.isRowHeader)]={color:z.selectedHoverHeaderText,selectors:(a={},a[Iu]={color:"HighlightText"},a)},o)},n["&:focus"]={background:z.focusBackground,selectors:(s={},s[".".concat(V.cell)]={color:z.focusMetaText,selectors:(l={},l[Iu]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},l)},s[".".concat(V.isRowHeader)]={color:z.focusHeaderText,selectors:(c={},c[Iu]={color:"HighlightText"},c)},s[Iu]={background:"Highlight"},s)},n[Iu]=(0,e.__assign)((0,e.__assign)({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),n["&:focus:hover"]={background:z.focusHoverBackground},n)}],W=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],G={minHeight:$T.compactRowHeight,border:0},j={minHeight:$T.compactRowHeight,paddingTop:$T.compactRowVerticalPadding,paddingBottom:$T.compactRowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px")},q=[Ou(g,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:$T.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:$T.rowVerticalPadding,paddingBottom:$T.rowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px"),selectors:(u={"& > button":{maxWidth:"100%"}},u["[data-is-focusable='true']"]=Ou(g,{inset:-1,borderColor:R,outlineColor:A}),u)},v&&{selectors:(d={},d[Iu]=(0,e.__assign)({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)},x&&j,I&&{opacity:.5}];return{root:[V.root,xu.fadeIn400,b,g.fonts.small,C&&V.isCheckVisible,Ou(g,{borderColor:L,outlineColor:A}),{borderBottom:"1px solid ".concat(N),background:z.defaultBackground,color:z.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:$T.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(p={},p[".".concat(V.listCellFirstChild," &:before")]={display:"none"},p["&:hover"]={background:z.defaultHoverBackground,color:z.defaultHoverMetaText,selectors:(h={},h[".".concat(V.isRowHeader)]={color:z.defaultHoverHeaderText},h[".".concat(V.cell," > .").concat(Yy.root)]={color:H},h)},p["&:hover .".concat(V.check)]={opacity:1},p[".".concat(Nu," &:focus .").concat(V.check)]={opacity:1},p[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},p)},v&&U,!y&&W,x&&G,_],cellUnpadded:{paddingRight:"".concat(k.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(k.cellExtraRightPadding+k.cellRightPadding,"px"),selectors:(m={},m["&.".concat(V.cellCheck)]={paddingRight:0},m)},cell:q,cellAnimation:w&&du.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[q,V.cellCheck,S,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:z.defaultHeaderText,fontSize:T.medium.fontSize},v&&{color:z.selectedHeaderText,fontWeight:Cu.semibold,selectors:(f={},f[Iu]={color:"HighlightText"},f)}],isMultiline:[q,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}}),void 0,{scope:"DetailsRow"}),zD="data-selection-index",UD="data-selection-toggle",WD="data-selection-invoke",GD="data-selection-all-toggle",jD=function(t){function n(e){var n=t.call(this,e)||this;n._root=Gt.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||zb(document.activeElement,t)){if(zb(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,WD)){n.ignoreNextFocus();break}t=Pb(t)}}else n.ignoreNextFocus()},n._onFocus=function(e){var t=e.target,r=n.props.selection,o=n._isCtrlPressed||n._isMetaPressed,i=n._getSelectionMode();if(n._shouldHandleFocus&&i!==hD.none){var a=n._hasAttribute(t,UD),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);void 0===n._getItemSpan(s)&&(o?(r.setIndexSelected(l,r.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",l))}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=n.props.toggleWithoutModifierPressed,r=e.target,o=n._findItemRoot(r);if(!n._isSelectionDisabled(r))for(;r!==n._root.current&&!n._hasAttribute(r,GD);){if(o){if(n._hasAttribute(r,UD))break;if(n._hasAttribute(r,WD))break;if(!(r!==o&&!n._shouldAutoSelect(r)||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed||t)){n._onInvokeMouseDown(e,n._getItemIndex(o),n._getItemSpan(o));break}if(n.props.disableAutoSelectOnInputElements&&("A"===r.tagName||"BUTTON"===r.tagName||"INPUT"===r.tagName))return}r=Pb(r)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,r=void 0!==t&&t;n._updateModifiers(e);for(var o=e.target,i=n._findItemRoot(o),a=n._isSelectionDisabled(o);o!==n._root.current;){if(n._hasAttribute(o,GD)){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i),l=n._getItemSpan(i);if(n._hasAttribute(o,UD)){a||(n._isShiftPressed?n._onItemSurfaceClick("click",s,l):n._onToggleClick(e,s,l));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,WD)){void 0===l&&n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick("click",s,l);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=Pb(o)}},n._onContextMenu=function(e){var t=e.target,r=n.props,o=r.onItemContextMenu,i=r.selection;if(o){var a=n._findItemRoot(t);if(a){var s=n._getItemIndex(a);n._onInvokeMouseDown(e,s),o(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,r=n.props.onItemInvoked,o=n._findItemRoot(t);if(o&&r&&!n._isInputElement(t)){for(var i=n._getItemIndex(o);t!==n._root.current&&!n._hasAttribute(t,UD)&&!n._hasAttribute(t,WD);){if(t===o){n._onInvokeClick(e,i);break}t=Pb(t)}t=Pb(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,r=n._isSelectionDisabled(t),o=n.props,i=o.selection,a=o.selectionClearedOnEscapePress,s=e.which===Pp&&(n._isCtrlPressed||n._isMetaPressed),l=e.which===yp;if(!n._isInputElement(t)){var c=n._getSelectionMode();if(s&&c===hD.multiple&&!i.isAllSelected())return r||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&l&&i.getSelectedCount()>0)return r||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var u=n._findItemRoot(t);if(u)for(var d=n._getItemIndex(u),p=n._getItemSpan(u);t!==n._root.current&&!n._hasAttribute(t,UD);){if(n._shouldAutoSelect(t)){r||void 0!==p||n._onInvokeMouseDown(e,d,p);break}if(!(e.which!==gp&&e.which!==bp||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===u){if(e.which===gp)return void(void 0===p&&(n._onInvokeClick(e,d),e.preventDefault()));if(e.which===bp)return r||n._onToggleClick(e,d,p),void e.preventDefault();break}t=Pb(t)}}},n._events=new kx(n),n._async=new Vb(n),Mb(n);var r=n.props.selection,o=r.isModal&&r.isModal();return n.state={isModal:o},n}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(t,n){var r=t.selection.isModal&&t.selection.isModal();return(0,e.__assign)((0,e.__assign)({},n),{isModal:r})},n.prototype.componentDidMount=function(){var e=ic(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},n.prototype.render=function(){var e=this.state.isModal;return Gt.createElement("div",{className:Gp("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,Gt.createElement(dm,null))},n.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},n.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===hD.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Pb(e)}return!1},n.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===hD.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},n.prototype._onToggleClick=function(e,t,n){var r=this.props.selection,o=this._getSelectionMode();if(r.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==n?!r.isRangeSelected(t,n):!r.isIndexSelected(t))&&r.setModal&&(r.setModal(!0),this._setIsTouch(!1)),o===hD.multiple)void 0!==n?r.toggleRangeSelected(t,n):r.toggleIndexSelected(t);else{if(o!==hD.single)return void r.setChangeEvents(!0);if(void 0===n||1===n){var i=r.isIndexSelected(t),a=r.isModal&&r.isModal();r.setAllSelected(!1),r.setIndexSelected(t,!i,!0),a&&r.setModal&&r.setModal(!0)}}r.setChangeEvents(!0),e.stopPropagation()},n.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},n.prototype._onItemSurfaceClick=function(e,t,n){var r,o=this.props,i=o.selection,a=o.toggleWithoutModifierPressed,s=this._isCtrlPressed||this._isMetaPressed,l=this._getSelectionMode();l===hD.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==n?null===(r=i.selectToRange)||void 0===r||r.call(i,t,n,!s):i.selectToIndex(t,!s):"click"===e&&(s||a)?void 0!==n?i.toggleRangeSelected(t,n):i.toggleIndexSelected(t):this._clearAndSelectIndex(t,n):l===hD.single&&this._clearAndSelectIndex(t,n)},n.prototype._onInvokeMouseDown=function(e,t,n){var r=this.props.selection;if(void 0!==n){if(r.isRangeSelected(t,n))return}else if(r.isIndexSelected(t))return;this._clearAndSelectIndex(t,n)},n.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=dC(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},n.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},n.prototype._clearAndSelectIndex=function(e,t){var n,r=this.props,o=r.selection,i=r.selectionClearedOnSurfaceClick,a=void 0===i||i;if(!((void 0===t||1===t)&&1===o.getSelectedCount()&&o.isIndexSelected(e))&&a){var s=o.isModal&&o.isModal();o.setChangeEvents(!1),o.setAllSelected(!1),void 0!==t?null===(n=o.setRangeSelected)||void 0===n||n.call(o,e,t,!0,!0):o.setIndexSelected(e,!0,!0),(s||this.props.enterModalOnTouch&&this._isTouch)&&(o.setModal&&o.setModal(!0),this._isTouch&&this._setIsTouch(!1)),o.setChangeEvents(!0)}},n.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===fp},n.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(zD),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=Pb(e)}if(e!==this._root.current)return e},n.prototype._getItemIndex=function(e){var t,n=parseInt(null!==(t=e.getAttribute(zD))&&void 0!==t?t:"",10);return isNaN(n)?-1:n},n.prototype._getItemSpan=function(e){var t,n=parseInt(null!==(t=e.getAttribute("data-selection-span"))&&void 0!==t?t:"",10);return isNaN(n)?void 0:n},n.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},n.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;){var r=e.getAttribute(t);if("false"===r){n=!1;break}n="true"===r,e=Pb(e)}return n},n.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},n.prototype._isNonHandledClick=function(e){var t=nc();if(t&&e)for(;e&&e!==t.documentElement;){if(Xb(e)||e.hasAttribute("data-selection-index"))return!1;e=Pb(e)}return!0},n.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},n.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},n.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:hD.none:t},n.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:hD.multiple,selectionClearedOnEscapePress:!0},n}(Gt.Component),qD=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.onItemsChanged,i=n.getKey,a=n.canSelectItem,s=void 0===a?function(){return!0}:a,l=n.items,c=n.selectionMode,u=void 0===c?hD.multiple:c;this.mode=u,this._getKey=i||KD,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._onItemsChanged=o,this._canSelectItem=s,this._keyToIndexMap={},this._isModal=!1,this.setItems(l||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"===typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"===typeof n||n?"".concat(n):""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=!1,a=0;a<e.length;a++){if(u=e[a])(g=this.getKey(u,a))&&(i||g in this._keyToIndexMap&&this._keyToIndexMap[g]===a||(i=!0),n[g]=a);r[a]=u&&!this.canSelectItem(u),r[a]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var u,d=Number(c),p=(u=this._items[d])?this.getKey(u,Number(d)):void 0,h=p?n[p]:d;void 0===h?o=!0:(s[h]=!0,l++,o=o||h!==d)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),!i)for(var m=0,f=Object.keys(this._keyToIndexMap);m<f.length;m++){var g;if(!((g=f[m])in n)){i=!0;break}}this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&this._updateCount(),i&&(kx.raise(this,"items-change"),this._onItemsChanged&&this._onItemsChanged()),o&&this._change(),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.getItemIndex=function(e){var t=this._keyToIndexMap[e];return null!==t&&void 0!==t?t:-1},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===hD.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===hD.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==hD.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var r=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===hD.single&&this._setAllSelected(!1,!0),r&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!r&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,n,r){if(this.mode!==hD.none&&(e=Math.min(Math.max(0,e),this._items.length-1),t=Math.min(Math.max(0,t),this._items.length-e),!(e<0||e>=this._items.length||0===t))){this.setChangeEvents(!1);for(var o=e,i=e+t-1,a=(this._anchoredIndex||0)>=i?o:i;o<=i;o++)this.setIndexSelected(o,n,!!r&&o===a);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,n){if(this.mode!==hD.none)if(this.mode!==hD.single){var r=this._anchoredIndex||0,o=Math.min(e,r),i=Math.max(e+t-1,r);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);o<=i;o++)this.setIndexSelected(o,!0,!1);this.setChangeEvents(!0)}else 1===t&&this.setIndexSelected(e,!0,!0)},e.prototype.selectToIndex=function(e,t){if(this.mode!==hD.none)if(this.mode!==hD.single){var n=this._anchoredIndex||0,r=Math.min(e,n),o=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=o;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==hD.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===hD.single&&t>1)){this.setChangeEvents(!1);for(var o=e;o<r;o++)this.setIndexSelected(o,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===hD.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,kx.raise(this,yD),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function KD(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var YD={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},XD="cubic-bezier(0.445, 0.050, 0.550, 0.950)",QD={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},ZD="cubic-bezier(0.075, 0.820, 0.165, 1.000)",JD="cubic-bezier(0.390, 0.575, 0.565, 1.000)",$D="cubic-bezier(0.600, -0.280, 0.735, 0.045)",eA=zg(),tA=function(t){function n(e){var n=t.call(this,e)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&o&&o(t);n.setState({isCollapsed:i,isLoadingVisible:a}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===Ap(wp,n.props.theme);(!n.state.isCollapsed&&e.which===Ap(Ep,n.props.theme)||i)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onHeaderClick=function(){var e=n.props,t=e.group,r=e.onGroupHeaderClick;r&&r(t)},n._onRenderTitle=function(e){if(!e.group)return null;var t=e.onRenderName?$x(e.onRenderName,n._onRenderName):n._onRenderName;return Gt.createElement("div",{className:n._classNames.title,id:n._id,onClick:n._onHeaderClick,role:"gridcell","aria-colspan":n.props.ariaColSpan,"data-selection-invoke":!0},t(e))},n._onRenderName=function(e){var t=e.group;return t?Gt.createElement(Gt.Fragment,null,Gt.createElement("span",null,t.name),Gt.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=bh("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(t,n){if(t.group){var r=t.group.isCollapsed,o=t.isGroupLoading,i=!r&&o&&o(t.group);return(0,e.__assign)((0,e.__assign)({},n),{isCollapsed:r||!1,isLoadingVisible:i||!1})}return n},n.prototype.render=function(){var t=this.props,n=t.group,r=t.groupLevel,o=void 0===r?0:r,i=t.viewport,a=t.selectionMode,s=t.loadingText,l=t.isSelected,c=void 0!==l&&l,u=t.selected,d=void 0!==u&&u,p=t.indentWidth,h=t.onRenderGroupHeaderCheckbox,m=t.isCollapsedGroupSelectVisible,f=void 0===m||m,g=t.expandButtonProps,v=t.expandButtonIcon,y=t.selectAllButtonProps,b=t.theme,C=t.styles,S=t.className,x=t.compact,_=t.ariaLevel,E=t.ariaPosInSet,k=t.ariaSetSize,w=t.ariaRowIndex,I=t.useFastIcons,P=this.props.onRenderTitle?$x(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,T=I?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,D=h?$x(h,T):T,A=this.state,R=A.isCollapsed,N=A.isLoadingVisible,M=a===hD.multiple,F=M&&(f||!(n&&n.isCollapsed)),B=d||c,O=Dp(b);return this._classNames=eA(C,{theme:b,className:S,selected:B,isCollapsed:R,compact:x}),n?Gt.createElement("div",{className:this._classNames.root,style:i?{minWidth:i.width}:{},role:"row","aria-level":_,"aria-setsize":k,"aria-posinset":E,"aria-rowindex":w,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":n.ariaLabel,"aria-labelledby":n.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":M?B:void 0,"data-selection-index":n.startIndex,"data-selection-span":n.count},Gt.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},F?Gt.createElement("div",{role:"gridcell"},Gt.createElement("button",(0,e.__assign)({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":B,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},y),D({checked:B,theme:b},D))):a!==hD.none&&Gt.createElement(zT,{indentWidth:48,count:1}),Gt.createElement(zT,{indentWidth:p,count:o}),Gt.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},Gt.createElement(Xx,{iconName:"Tag"})),Gt.createElement("div",{role:"gridcell"},Gt.createElement("button",(0,e.__assign)({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},g),Gt.createElement(Xx,{className:this._classNames.expandIsCollapsed,iconName:v||(O?"ChevronLeftMed":"ChevronRightMed")}))),P(this.props),N&&Gt.createElement(sb,{label:s}))):null},n.prototype._defaultCheckboxRender=function(e){return Gt.createElement(gD,{checked:e.checked})},n.prototype._fastDefaultCheckboxRender=function(e){return Gt.createElement(nA,{theme:e.theme,checked:e.checked})},n.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},n}(Gt.Component),nA=Gt.memo((function(e){return Gt.createElement(gD,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),rA=Ng(tA,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,u=e.compact,d=ZT.cellLeftPadding,p=u?40:48,h=a.semanticColors,m=a.palette,f=a.fonts,g=Ju(QD,a),v=[Ou(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[g.root,Ou(a),a.fonts.medium,{borderBottom:"1px solid ".concat(h.listBackground),cursor:"default",userSelect:"none",selectors:(t={":hover":{background:h.listItemBackgroundHovered,color:h.actionLinkHovered}},t["&:hover .".concat(g.check)]={opacity:1},t[".".concat(Nu," &:focus .").concat(g.check)]={opacity:1},t[":global(.".concat(g.group,".").concat(g.isDropping,")")]={selectors:(n={},n["& > .".concat(g.root," .").concat(g.dropIcon)]={transition:"transform ".concat(uu," ").concat(ZD," ")+"opacity ".concat(su," ").concat(JD),transitionDelay:cu,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(g.check)]={opacity:0},n)},t)},l&&[g.isSelected,{background:h.listItemBackgroundChecked,selectors:(r={":hover":{background:h.listItemBackgroundCheckedHovered}},r["".concat(g.check)]={opacity:1},r)}],u&&[g.compact,{border:"none"}],s],groupHeaderContainer:[{display:"flex",alignItems:"center",height:p}],headerCount:[{padding:"0px 4px"}],check:[g.check,v,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:48,height:p,selectors:(o={},o[".".concat(Nu," &:focus")]={opacity:1},o)}],expand:[g.expand,v,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:f.small.fontSize,width:36,height:p,color:l?m.neutralPrimary:m.neutralSecondary,selectors:{":hover":{backgroundColor:l?m.neutralQuaternary:m.neutralLight},":active":{backgroundColor:l?m.neutralTertiaryAlt:m.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[g.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Dp(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[g.title,{paddingLeft:d,fontSize:u?f.medium.fontSize:f.mediumPlus.fontSize,fontWeight:c?Cu.regular:Cu.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[g.dropIcon,{position:"absolute",left:-26,fontSize:Su.large,color:m.neutralSecondary,transition:"transform ".concat(lu," ").concat($D,", ")+"opacity ".concat(uu," ").concat(JD),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(i={},i[":global(.".concat(g.iconTag,")")]={position:"absolute"},i)}]}}),void 0,{scope:"GroupHeader"}),oA={root:"ms-GroupShowAll",link:"ms-Link"},iA=zg(),aA=Ng((function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,o=void 0===r?"Show All":r,i=e.styles,a=e.theme,s=e.onToggleSummarize,l=iA(i,{theme:a}),c=(0,Gt.useCallback)((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?Gt.createElement("div",{className:l.root},Gt.createElement(zT,{count:n}),Gt.createElement(Xy,{onClick:c},o)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=Ju(oA,n);return{root:[o.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t[".".concat(o.link)]={fontSize:r.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),sA={root:"ms-groupFooter"},lA=zg(),cA=Ng((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,o=e.indentWidth,i=e.styles,a=e.theme,s=lA(i,{theme:a});return t&&r?Gt.createElement("div",{className:s.root},Gt.createElement(zT,{indentWidth:o,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=Ju(sA,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),uA=0,dA=1,pA=2,hA=3,mA=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},fA=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},gA="spacer-",vA={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},yA=function(e){return e.getBoundingClientRect()},bA=yA,CA=yA,SA=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Gt.createRef(),r._surface=Gt.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(e,t){return e.items!==r.props.items||e.renderCount!==r.props.renderCount||e.startIndex!==r.props.startIndex||e.version!==r.props.version||!t.hasMounted&&r.props.renderEarly&&tc()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(e,t)):t},r._onRenderRoot=function(t){var n=t.rootRef,r=t.surfaceElement,o=t.divProps;return Gt.createElement("div",(0,e.__assign)({ref:n},o),r)},r._onRenderSurface=function(t){var n=t.surfaceRef,r=t.pageElements,o=t.divProps;return Gt.createElement("div",(0,e.__assign)({ref:n},o),r)},r._onRenderPage=function(t,n){for(var o,i=r.props,a=i.onRenderCell,s=i.onRenderCellConditional,l=i.role,c=t.page,u=c.items,d=void 0===u?[]:u,p=c.startIndex,h=(0,e.__rest)(t,["page"]),m=void 0===l?"listitem":"presentation",f=[],g=0;g<d.length;g++){var v=p+g,y=d[g],b=r.props.getKey?r.props.getKey(y,v):y&&y.key;null!==b&&void 0!==b||(b=v);var C=null!==s&&void 0!==s?s:a,S=null!==(o=null===C||void 0===C?void 0:C(y,v,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;s&&!S||f.push(Gt.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":v,"data-automationid":"ListCell"},S))}return Gt.createElement("div",(0,e.__assign)({},h),f)},Mb(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._async=new Vb(r),r._events=new kx(r),r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._onAsyncScroll=r._async.debounce(r._onAsyncScroll,100,{leading:!1,maxWait:500}),r._onAsyncIdle=r._async.debounce(r._onAsyncIdle,200,{leading:!1}),r._onAsyncResize=r._async.debounce(r._onAsyncResize,16,{leading:!1}),r._onScrollingDone=r._async.debounce(r._onScrollingDone,500,{leading:!1}),r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=uA);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=CA(this._scrollElement),p=mA(this._scrollElement),h={top:p,bottom:p+d.height},m=e-l,f=0;f<m;++f)a+=t(l+f);var g=a+t(e);switch(n){case dA:return void fA(this._scrollElement,a);case pA:return void fA(this._scrollElement,g-d.height);case hA:return void fA(this._scrollElement,(a+g-d.height)/2)}if(a>=h.top&&g<=h.bottom)return;a<h.top||g>h.bottom&&(a=g-d.height)}return void(this._scrollElement&&fA(this._scrollElement,a))}a+=u}},n.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){o=e(a);if(r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},n.prototype.componentDidMount=function(){this._scrollElement=dC(this._root.current),this._scrollTop=0,this.setState((0,e.__assign)((0,e.__assign)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},n.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle();n.onPagesUpdated&&n.onPagesUpdated(r.pages)}},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,r=t.role,o=void 0===r?"list":r,i=t.onRenderSurface,a=t.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=Qh(this.props,Xh),d=0,p=l;d<p.length;d++){var h=p[d];c.push(this._renderPage(h))}var m=i?$x(i,this._onRenderSurface):this._onRenderSurface;return(a?$x(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:m({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,e.__assign)((0,e.__assign)({},u),{className:Gp("ms-List",n),role:c.length>0?o:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,e.__assign)((0,e.__assign)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Pb(t)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var r=this._buildPages(t,n),o=n.pages;return this._notifyPageChanges(o,r.pages,this.props),(0,e.__assign)((0,e.__assign)((0,e.__assign)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},n.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},n.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},n.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},n.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},n.prototype._buildPages=function(t,n){var r=t.renderCount,o=t.items,i=t.startIndex,a=t.getPageHeight;r=this._getRenderCount(t);for(var s=(0,e.__assign)({},vA),l=[],c=1,u=0,d=null,p=this._focusedIndex,h=i+r,m=this._shouldVirtualize(t),f=0===this._estimatedPageHeight&&!a,g=this._allowedRect,v=function(e){var r=y._getPageSpecification(t,e,g),a=r.height,v=r.data,b=r.key;c=r.itemCount;var C,S,x=u+a-1,_=Tx(n.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,E=!g||x>=g.top&&u<=g.bottom,k=!y._requiredRect||x>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!f&&(k||E&&_)||!m||p>=e&&p<e+c||e===i){d&&(l.push(d),d=null);var w=Math.min(c,h-e),I=y._createPage(b,o.slice(e,e+w),e,void 0,void 0,v);I.top=u,I.height=a,y._visibleRect&&y._visibleRect.bottom&&(I.isVisible=x>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(I),k&&y._allowedRect&&(C=s,S={top:u,bottom:x,height:a,left:g.left,right:g.right,width:g.width},C.top=S.top<C.top||-1===C.top?S.top:C.top,C.left=S.left<C.left||-1===C.left?S.left:C.left,C.bottom=S.bottom>C.bottom||-1===C.bottom?S.bottom:C.bottom,C.right=S.right>C.right||-1===C.right?S.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else d||(d=y._createPage(gA+e,void 0,e,0,void 0,v,!0)),d.height=(d.height||0)+(x-u)+1,d.itemCount+=c;if(u+=x-u+1,f&&m)return"break"},y=this,b=i;b<h;b+=c){if("break"===v(b))break}return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,(0,e.__assign)((0,e.__assign)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},n.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},n.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},n.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},n.prototype._updateRenderRects=function(t,n,r){var o=t.renderedWindowsAhead,i=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||(0,e.__assign)({},vA),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),c=mA(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=bA(this._surface.current),this._scrollTop=c),!r&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),d=ic(this._root.current),p={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=xA(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=xA(p,i,o),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return Gt.createElement(Gt.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n}(Gt.Component);function xA(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var _A=function(t){function n(r){var o=t.call(this,r)||this;o._root=Gt.createRef(),o._list=Gt.createRef(),o._subGroupRefs={},o._droppingClassName="",o._onRenderGroupHeader=function(t){return Gt.createElement(rA,(0,e.__assign)({},t))},o._onRenderGroupShowAll=function(t){return Gt.createElement(aA,(0,e.__assign)({},t))},o._onRenderGroupFooter=function(t){return Gt.createElement(cA,(0,e.__assign)({},t))},o._renderSubGroup=function(e,t){var r=o.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,l=r.getGroupItemLimit,c=r.groupNestingDepth,u=r.groupProps,d=r.items,p=r.headerProps,h=r.showAllProps,m=r.footerProps,f=r.listProps,g=r.onRenderCell,v=r.selection,y=r.selectionMode,b=r.viewport,C=r.onRenderGroupHeader,S=r.onRenderGroupShowAll,x=r.onRenderGroupFooter,_=r.onShouldVirtualize,E=r.group,k=r.compact,w=e.level?e.level+1:c;return!e||e.count>0||u&&u.showEmptyGroups?Gt.createElement(n,{ref:function(e){return o._subGroupRefs["subGroup_"+t]=e},key:o._getGroupKey(e,t),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:m,getGroupItemLimit:l,group:e,groupIndex:t,groupNestingDepth:w,groupProps:u,headerProps:p,items:d,listProps:f,onRenderCell:g,selection:v,selectionMode:y,showAllProps:h,viewport:b,onRenderGroupHeader:C,onRenderGroupShowAll:S,onRenderGroupFooter:x,onShouldVirtualize:_,groups:E?E.children:[],compact:k}):null},o._getGroupDragDropOptions=function(){var e=o.props,t=e.group,n=e.groupIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:o._updateDroppingState,canDrag:r.canDrag,canDrop:r.canDrop,onDrop:r.onDrop,onDragStart:r.onDragStart,onDragEnter:r.onDragEnter,onDragLeave:r.onDragLeave,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},o._updateDroppingState=function(e,t){var n=o.state.isDropping,r=o.props,i=r.dragDropEvents,a=r.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(o._droppingClassName=i.onDragEnter(a,t)),o.setState({isDropping:e}))};var i=r.selection,a=r.group;return Mb(o),o._id=bh("GroupedListSection"),o.state={isDropping:!1,isSelected:!(!i||!a)&&i.isRangeSelected(a.startIndex,a.count)},o._events=new kx(o),o}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,yD,this._onSelectionChange)},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},n.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},n.prototype.render=function(){var t=this.props,n=t.getGroupItemLimit,r=t.group,o=t.groupIndex,i=t.headerProps,a=t.showAllProps,s=t.footerProps,l=t.viewport,c=t.selectionMode,u=t.onRenderGroupHeader,d=void 0===u?this._onRenderGroupHeader:u,p=t.onRenderGroupShowAll,h=void 0===p?this._onRenderGroupShowAll:p,m=t.onRenderGroupFooter,f=void 0===m?this._onRenderGroupFooter:m,g=t.onShouldVirtualize,v=t.groupedListClassNames,y=t.groups,b=t.compact,C=t.listProps,S=void 0===C?{}:C,x=this.state.isSelected,_=r&&n?n(r):1/0,E=r&&!r.children&&!r.isCollapsed&&!r.isShowingAll&&(r.count>_||r.hasMoreData),k=r&&r.children&&r.children.length>0,w=S.version,I={group:r,groupIndex:o,groupLevel:r?r.level:0,isSelected:x,selected:x,viewport:l,selectionMode:c,groups:y,compact:b},P={groupedListId:this._id,ariaLevel:(null===r||void 0===r?void 0:r.level)?r.level+1:1,ariaSetSize:y?y.length:void 0,ariaPosInSet:void 0!==o?o+1:void 0},T=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},i),I),P),D=(0,e.__assign)((0,e.__assign)({},a),I),A=(0,e.__assign)((0,e.__assign)({},s),I),R=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(r)&&!!this.props.dragDropEvents.canDragGroups;return Gt.createElement("div",(0,e.__assign)({ref:this._root},R&&{draggable:!0},{className:Gp(v&&v.group,this._getDroppingClassName()),role:"presentation"}),d(T,this._onRenderGroupHeader),r&&r.isCollapsed?null:k?Gt.createElement(SA,{role:"presentation",ref:this._list,items:r?r.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:g,version:w,id:this._id}):this._onRenderGroup(_),r&&r.isCollapsed?null:E&&h(D,this._onRenderGroupShowAll),f(A,this._onRenderGroupFooter))},n.prototype.forceUpdate=function(){t.prototype.forceUpdate.call(this),this.forceListUpdate()},n.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r;(r=this._list.current.pageRefs["subGroup_"+String(n)])&&r.forceListUpdate()}}else(r=this._subGroupRefs["subGroup_"+String(0)])&&r.forceListUpdate()},n.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},n.prototype._onRenderGroupCell=function(e,t,n){return function(r,o){return e(t,r,o,n)}},n.prototype._onRenderGroup=function(t){var n=this.props,r=n.group,o=n.items,i=n.onRenderCell,a=n.listProps,s=n.groupNestingDepth,l=n.onShouldVirtualize,c=n.groupProps,u=r&&!r.isShowingAll?r.count:o.length,d=r?r.startIndex:0;return Gt.createElement(SA,(0,e.__assign)({role:c&&c.role?c.role:"rowgroup","aria-label":null===r||void 0===r?void 0:r.name,items:o,onRenderCell:this._onRenderGroupCell(i,s,r),ref:this._list,renderCount:Math.min(u,t),startIndex:d,onShouldVirtualize:l,id:this._id},a))},n.prototype._returnOne=function(){return 1},n.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},n.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return Gp((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},n}(Gt.Component),EA=zg(),kA=JT.rowHeight,wA=JT.compactRowHeight,IA=function(t){function n(n){var r=t.call(this,n)||this;r._list=Gt.createRef(),r._renderGroup=function(t,n){var o=r.props,i=o.dragDropEvents,a=o.dragDropHelper,s=o.eventsToRegister,l=o.groupProps,c=o.items,u=o.listProps,d=o.onRenderCell,p=o.selectionMode,h=o.selection,m=o.viewport,f=o.onShouldVirtualize,g=o.groups,v=o.compact,y={onToggleSelectGroup:r._onToggleSelectGroup,onToggleCollapse:r._onToggleCollapse,onToggleSummarize:r._onToggleSummarize},b=(0,e.__assign)((0,e.__assign)({},l.headerProps),y),C=(0,e.__assign)((0,e.__assign)({},l.showAllProps),y),S=(0,e.__assign)((0,e.__assign)({},l.footerProps),y),x=r._getGroupNestingDepth();if(!l.showEmptyGroups&&t&&0===t.count)return null;var _=(0,e.__assign)((0,e.__assign)({},u||{}),{version:r.state.version});return Gt.createElement(_A,{key:r._getGroupKey(t,n),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:S,getGroupItemLimit:l&&l.getGroupItemLimit,group:t,groupIndex:n,groupNestingDepth:x,groupProps:l,headerProps:b,listProps:_,items:c,onRenderCell:d,onRenderGroupHeader:l.onRenderHeader,onRenderGroupShowAll:l.onRenderShowAll,onRenderGroupFooter:l.onRenderFooter,selectionMode:p,selection:h,showAllProps:C,viewport:m,onShouldVirtualize:f,groupedListClassNames:r._classNames,groups:g,compact:v})},r._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},r._getGroupItemLimit=function(e){var t=r.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:r._getDefaultGroupItemLimit)(e)},r._getGroupHeight=function(e){var t=r.props.compact?wA:kA;return t+(e.isCollapsed?0:t*r._getGroupItemLimit(e))},r._getPageHeight=function(e){var t=r.state.groups,n=r.props.getGroupHeight,o=void 0===n?r._getGroupHeight:n,i=t&&t[e];return i?o(i,e):0},r._onToggleCollapse=function(e){var t=r.props.groupProps,n=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(n&&n(e),e.isCollapsed=!e.isCollapsed,r._updateIsSomeGroupExpanded(),r.forceUpdate())},r._onToggleSelectGroup=function(e){var t=r.props,n=t.selection,o=t.selectionMode;e&&n&&o===hD.multiple&&n.toggleRangeSelected(e.startIndex,e.count)},r._isInnerZoneKeystroke=function(e){return e.which===Ap(wp)},r._onToggleSummarize=function(e){var t=r.props.groupProps,n=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),r.forceUpdate())},r._getPageSpecification=function(e){var t=r.state.groups,n=t&&t[e];return{key:n&&n.key}},Mb(r),r._isSomeGroupExpanded=r._computeIsSomeGroupExpanded(n.groups);var o=n.listProps,i=(void 0===o?{}:o).version,a=void 0===i?{}:i;return r.state={groups:n.groups,items:n.items,listProps:n.listProps,version:a},r}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(t,n){var r=t.groups,o=t.selectionMode,i=t.compact,a=t.items,s=t.listProps,l=s&&s.version,c=(0,e.__assign)((0,e.__assign)({},n),{selectionMode:o,compact:i,groups:r,listProps:s,items:a}),u=!1;return l===(n.listProps&&n.listProps.version)&&a===n.items&&r===n.groups&&o===n.selectionMode&&i===n.compact||(u=!0),u&&(c=(0,e.__assign)((0,e.__assign)({},c),{version:{}})),c},n.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},n.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},n.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},n.prototype.render=function(){var t=this.props,n=t.className,r=t.usePageCache,o=t.onShouldVirtualize,i=t.theme,a=t.role,s=void 0===a?"treegrid":a,l=t.styles,c=t.compact,u=t.focusZoneProps,d=void 0===u?{}:u,p=t.rootListProps,h=void 0===p?{}:p,m=this.state,f=m.groups,g=m.version;this._classNames=EA(l,{theme:i,className:n,compact:c});var v=d.shouldEnterInnerZone,y=void 0===v?this._isInnerZoneKeystroke:v;return Gt.createElement(g_,(0,e.__assign)({direction:e_.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},d,{shouldEnterInnerZone:y,className:Gp(this._classNames.root,d.className)}),f?Gt.createElement(SA,(0,e.__assign)({ref:this._list,role:s,items:f,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:r,onShouldVirtualize:o,version:g},h)):this._renderGroup(void 0,0))},n.prototype.forceUpdate=function(){t.prototype.forceUpdate.call(this),this._forceListUpdates()},n.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},n.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},n.prototype._returnOne=function(){return 1},n.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},n.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},n.prototype._forceListUpdates=function(e){this.setState({version:{}})},n.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},n.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},n.defaultProps={selectionMode:hD.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},n}(Gt.Component),PA=Ng(IA,(function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=Ju(YD,r);return{root:[s.root,r.fonts.small,{position:"relative",selectors:(t={},t[".".concat(s.listCell)]={minHeight:38},t)},i&&[s.compact,{selectors:(n={},n[".".concat(s.listCell)]={minHeight:32},n)}],o],group:[s.group,{transition:"background-color ".concat(lu," ").concat(XD)}],groupIsDropping:{backgroundColor:a.neutralLight}}}),void 0,{scope:"GroupedList"}),TA=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var DA=function(t){function n(e){var n=t.call(this,e)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return(0,e.__extends)(n,t),n.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=TA);var r=[],o=function(o){"function"!==typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[o].apply(t,e)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},n}(Gt.Component);function AA(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}function RA(t){return function(n){function r(e){var t=n.call(this,e)||this;return t._root=Gt.createRef(),t._registerResizeObserver=function(){var e=ic(t._root.current);t._viewportResizeObserver=new e.ResizeObserver(t._onAsyncResize),t._viewportResizeObserver.observe(t._root.current)},t._unregisterResizeObserver=function(){t._viewportResizeObserver&&(t._viewportResizeObserver.disconnect(),delete t._viewportResizeObserver)},t._updateViewport=function(e){var n=t.state.viewport,r=t._root.current,o=AA(dC(r)),i=AA(r);((i&&i.width)!==n.width||(o&&o.height)!==n.height)&&t._resizeAttempts<3&&i&&o?(t._resizeAttempts++,t.setState({viewport:{width:i.width,height:o.height}},(function(){t._updateViewport(e)}))):(t._resizeAttempts=0,e&&t._composedComponentInstance&&t._composedComponentInstance.forceUpdate())},t._async=new Vb(t),t._events=new kx(t),t._resizeAttempts=0,t.state={viewport:{width:0,height:0}},t}return(0,e.__extends)(r,n),r.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,r=t.disableResizeObserver,o=t.skipViewportMeasures,i=ic(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),o||(!r&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),n?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},r.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.disableResizeObserver,o=n.skipViewportMeasures,i=ic(this._root.current);o!==t&&(o?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!r&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},r.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},r.prototype.render=function(){var n=this.state.viewport,r=n.width>0&&n.height>0?n:void 0;return Gt.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},Gt.createElement(t,(0,e.__assign)({ref:this._updateComposedComponentRef,viewport:r},this.props)))},r.prototype.forceUpdate=function(){this._updateViewport(!0)},r.prototype._onAsyncResize=function(){this._updateViewport()},r.prototype._isResizeObserverAvailable=function(){var e=ic(this._root.current);return e&&e.ResizeObserver},r}(DA)}var NA=zg(),MA=100,FA={tabIndex:0},BA={},OA=function(t){var n=t.selection,r=t.ariaLabelForListHeader,o=t.ariaLabelForSelectAllCheckbox,i=t.ariaLabelForSelectionColumn,a=t.className,s=t.checkboxVisibility,l=t.compact,c=t.constrainMode,u=t.dragDropEvents,d=t.groups,p=t.groupProps,h=t.indentWidth,m=t.items,f=t.isPlaceholderData,g=t.isHeaderVisible,v=t.layoutMode,y=t.onItemInvoked,b=t.onItemContextMenu,C=t.onColumnHeaderClick,S=t.onColumnHeaderContextMenu,x=t.selectionMode,_=void 0===x?n.mode:x,E=t.selectionPreservedOnEmptyClick,k=t.selectionZoneProps,w=t.ariaLabel,I=t.ariaLabelForGrid,P=t.rowElementEventMap,T=t.shouldApplyApplicationRole,D=void 0!==T&&T,A=t.getKey,R=t.listProps,N=t.usePageCache,M=t.onShouldVirtualize,F=t.viewport,B=t.minimumPixelsForDrag,O=t.getGroupHeight,L=t.styles,H=t.theme,V=t.cellStyleProps,z=void 0===V?ZT:V,U=t.onRenderCheckbox,W=t.useFastIcons,G=t.dragDropHelper,j=t.adjustedColumns,q=t.isCollapsed,K=t.isSizing,Y=t.isSomeGroupExpanded,X=t.version,Q=t.rootRef,Z=t.listRef,J=t.focusZoneRef,$=t.columnReorderOptions,ee=t.groupedListRef,te=t.headerRef,ne=t.onGroupExpandStateChanged,re=t.onColumnIsSizingChanged,oe=t.onRowDidMount,ie=t.onRowWillUnmount,ae=t.disableSelectionZone,se=t.isSelectedOnFocus,le=void 0===se||se,ce=t.onColumnResized,ue=t.onColumnAutoResized,de=t.onToggleCollapse,pe=t.onActiveRowChanged,he=t.onBlur,me=t.rowElementEventMap,fe=t.onRenderMissingItem,ge=t.onRenderItemColumn,ve=t.onRenderField,ye=t.getCellValueKey,be=t.getRowAriaLabel,Ce=t.getRowAriaDescribedBy,Se=t.checkButtonAriaLabel,xe=t.checkButtonGroupAriaLabel,_e=t.checkboxCellClassName,Ee=t.useReducedRowRenderer,ke=t.enableUpdateAnimations,we=t.enterModalSelectionOnTouch,Ie=t.onRenderDefaultRow,Pe=t.selectionZoneRef,Te=t.focusZoneProps,De="grid",Ae=t.role?t.role:De,Re=bh("row"),Ne=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(d),Me=function(e){return Gt.useMemo((function(){var t={};if(e)for(var n=1,r=1,o=0,i=e;o<i.length;o++){var a=i[o];t[a.key]={numOfGroupHeadersBeforeItem:r,totalRowCount:n},r++,n+=a.count+1}return t}),[e])}(d),Fe=Gt.useMemo((function(){return(0,e.__assign)({renderedWindowsAhead:K?0:2,renderedWindowsBehind:K?0:2,getKey:A,version:X},R)}),[K,A,X,R]),Be=_D.none;if(_===hD.single&&(Be=_D.hidden),_===hD.multiple){var Oe=p&&p.headerProps&&p.headerProps.isCollapsedGroupSelectVisible;void 0===Oe&&(Oe=!0),Be=Oe||!d||Y?_D.visible:_D.hidden}s===yT.hidden&&(Be=_D.none);var Le=Gt.useCallback((function(t){return Gt.createElement(ND,(0,e.__assign)({},t))}),[]),He=Gt.useCallback((function(){return null}),[]),Ve=t.onRenderDetailsHeader,ze=Gt.useMemo((function(){return Ve?$x(Ve,Le):Le}),[Ve,Le]),Ue=t.onRenderDetailsFooter,We=Gt.useMemo((function(){return Ue?$x(Ue,He):He}),[Ue,He]),Ge=Gt.useMemo((function(){return{columns:j,groupNestingDepth:Ne,selection:n,selectionMode:_,viewport:F,checkboxVisibility:s,indentWidth:h,cellStyleProps:z}}),[j,Ne,n,_,F,s,h,z]),je=$&&$.onDragEnd,qe=Gt.useCallback((function(e,t){var n=e.dropLocation,r=gT.outside;if(je){if(n&&n!==gT.header)r=n;else if(Q.current){var o=Q.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=gT.surface)}je(r)}}),[je,Q]),Ke=Gt.useMemo((function(){if($)return(0,e.__assign)((0,e.__assign)({},$),{onColumnDragEnd:qe})}),[$,qe]),Ye=(g?1:0)+(t.onRenderDetailsFooter?1:0)+function(t){var n=0;if(t)for(var r=(0,e.__spreadArray)([],t,!0),o=void 0;r&&r.length>0;)++n,(o=r.pop())&&o.children&&r.push.apply(r,o.children);return n}(d)+(m?m.length:0),Xe=(Be!==_D.none?1:0)+(j?j.length:0)+(d?1:0),Qe=Gt.useMemo((function(){return NA(L,{theme:H,compact:l,isFixed:v===vT.fixedColumns,isHorizontalConstrained:c===fT.horizontalConstrained,className:a})}),[L,H,l,v,c,a]),Ze=p&&p.onRenderFooter,Je=Gt.useMemo((function(){return Ze?function(t,r){return Ze((0,e.__assign)((0,e.__assign)({},t),{columns:j,groupNestingDepth:Ne,indentWidth:h,selection:n,selectionMode:_,viewport:F,checkboxVisibility:s,cellStyleProps:z}),r)}:void 0}),[Ze,j,Ne,h,n,_,F,s,z]),$e=p&&p.onRenderHeader,et=Gt.useMemo((function(){return $e?function(t,r){var o,i,a=t.groupIndex,l=void 0!==a?null===(i=null===(o=t.groups)||void 0===o?void 0:o[a])||void 0===i?void 0:i.key:void 0,c=void 0!==l&&Me[l]?Me[l].totalRowCount:0;return $e((0,e.__assign)((0,e.__assign)({},t),{columns:j,groupNestingDepth:Ne,indentWidth:h,selection:n,selectionMode:s!==yT.hidden?_:hD.none,viewport:F,checkboxVisibility:s,cellStyleProps:z,ariaColSpan:j.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==a?c+(g?1:0):void 0}),r)}:function(t,n){var r,o,i=t.groupIndex,a=void 0!==i?null===(o=null===(r=t.groups)||void 0===r?void 0:r[i])||void 0===o?void 0:o.key:void 0,s=void 0!==a&&Me[a]?Me[a].totalRowCount:0;return n((0,e.__assign)((0,e.__assign)({},t),{ariaColSpan:j.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?s+(g?1:0):void 0}))}}),[$e,j,Ne,h,g,n,_,F,s,z,Me]),tt=Gt.useMemo((function(){var t;return(0,e.__assign)((0,e.__assign)({},p),{role:Ae===De?"rowgroup":"presentation",onRenderFooter:Je,onRenderHeader:et,headerProps:(0,e.__assign)((0,e.__assign)({},null===p||void 0===p?void 0:p.headerProps),{selectAllButtonProps:(0,e.__assign)({"aria-label":xe},null===(t=null===p||void 0===p?void 0:p.headerProps)||void 0===t?void 0:t.selectAllButtonProps)})})}),[p,Je,et,xe,Ae]),nt=av((function(){return Ku((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),rt=p&&p.collapseAllVisibility,ot=Gt.useMemo((function(){return nt(j)}),[j,nt]),it=Gt.useCallback((function(e,r,o,i){var a=t.onRenderRow?$x(t.onRenderRow,Ie):Ie,c=i?i.key:void 0,d=c&&Me[c]?Me[c].numOfGroupHeadersBeforeItem:0,p=Ae===De?void 0:"presentation",m=g||o>0?BA:FA,f={item:r,itemIndex:o,flatIndexOffset:(g?2:1)+d,compact:l,columns:j,groupNestingDepth:e,id:"".concat(Re,"-").concat(o),selectionMode:_,selection:n,onDidMount:oe,onWillUnmount:ie,onRenderItemColumn:ge,onRenderField:ve,getCellValueKey:ye,eventsToRegister:me,dragDropEvents:u,dragDropHelper:G,viewport:F,checkboxVisibility:s,collapseAllVisibility:rt,getRowAriaLabel:be,getRowAriaDescribedBy:Ce,checkButtonAriaLabel:Se,checkboxCellClassName:_e,useReducedRowRenderer:Ee,indentWidth:h,cellStyleProps:z,onRenderDetailsCheckbox:U,enableUpdateAnimations:ke,rowWidth:ot,useFastIcons:W,role:p,isGridRow:!0,focusZoneProps:m};return r?a(f):fe?fe(o,f):null}),[l,j,_,n,Re,oe,ie,ge,ve,ye,me,u,G,F,s,rt,be,Ce,g,Se,_e,Ee,h,z,U,ke,W,Ie,fe,t.onRenderRow,ot,Ae,Me]),at=Gt.useCallback((function(e){return function(t,n){return it(e,t,n)}}),[it]),st=Gt.useCallback((function(e){return e.which===Ap(wp,H)}),[H]),lt=(0,e.__assign)((0,e.__assign)({},Te),{componentRef:Te&&Te.componentRef?Te.componentRef:J,className:Te&&Te.className?Gp(Qe.focusZone,Te.className):Qe.focusZone,direction:Te?Te.direction:e_.vertical,shouldEnterInnerZone:Te&&Te.shouldEnterInnerZone?Te.shouldEnterInnerZone:st,onActiveElementChanged:Te&&Te.onActiveElementChanged?Te.onActiveElementChanged:pe,shouldRaiseClicksOnEnter:!1,onBlur:Te&&Te.onBlur?Te.onBlur:he}),ct=d&&(null===p||void 0===p?void 0:p.groupedListAs)?ME(p.groupedListAs,PA):PA,ut=d?Gt.createElement(ct,{focusZoneProps:lt,componentRef:ee,groups:d,groupProps:tt,items:m,onRenderCell:it,role:"presentation",selection:n,selectionMode:s!==yT.hidden?_:hD.none,dragDropEvents:u,dragDropHelper:G,eventsToRegister:P,listProps:Fe,onGroupExpandStateChanged:ne,usePageCache:N,onShouldVirtualize:M,getGroupHeight:O,compact:l}):Gt.createElement(g_,(0,e.__assign)({},lt),Gt.createElement(SA,(0,e.__assign)({ref:Z,role:"presentation",items:m,onRenderCell:at(0),usePageCache:N,onShouldVirtualize:M},Fe))),dt=Gt.useCallback((function(e){e.which===Ip&&J.current&&J.current.focus()&&(le&&0===n.getSelectedIndices().length&&n.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[n,J,le]),pt=Gt.useCallback((function(e){e.which!==kp||e.altKey||te.current&&te.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[te]);return Gt.createElement("div",(0,e.__assign)({ref:Q,className:Qe.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},D?{role:"application"}:{}),Gt.createElement(dm,null),Gt.createElement("div",{role:Ae,"aria-label":I||w,"aria-rowcount":f?0:Ye,"aria-colcount":Xe,"aria-busy":f},Gt.createElement("div",{onKeyDown:dt,role:"presentation",className:Qe.headerWrapper},g&&ze({componentRef:te,selectionMode:_,layoutMode:v,selection:n,columns:j,onColumnClick:C,onColumnContextMenu:S,onColumnResized:ce,onColumnIsSizingChanged:re,onColumnAutoResized:ue,groupNestingDepth:Ne,isAllCollapsed:q,onToggleCollapseAll:de,ariaLabel:r,ariaLabelForSelectAllCheckbox:o,ariaLabelForSelectionColumn:i,selectAllVisibility:Be,collapseAllVisibility:p&&p.collapseAllVisibility,viewport:F,columnReorderProps:Ke,minimumPixelsForDrag:B,cellStyleProps:z,checkboxVisibility:s,indentWidth:h,onRenderDetailsCheckbox:U,rowWidth:nt(j),useFastIcons:W},ze)),Gt.createElement("div",{onKeyDown:pt,role:"presentation",className:Qe.contentWrapper},ae?ut:Gt.createElement(jD,(0,e.__assign)({ref:Pe,selection:n,selectionPreservedOnEmptyClick:E,selectionMode:_,isSelectedOnFocus:le,selectionClearedOnEscapePress:le,toggleWithoutModifierPressed:!le,onItemInvoked:y,onItemContextMenu:b,enterModalOnTouch:we},k||{}),ut)),We((0,e.__assign)({},Ge))))},LA=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Gt.createRef(),r._header=Gt.createRef(),r._groupedList=Gt.createRef(),r._list=Gt.createRef(),r._focusZone=Gt.createRef(),r._selectionZone=Gt.createRef(),r._onRenderRow=function(t,n){return Gt.createElement(VD,(0,e.__assign)({},t))},r._getDerivedStateFromProps=function(t,n){var o=r.props,i=o.checkboxVisibility,a=o.items,s=o.setKey,l=o.selectionMode,c=void 0===l?r._selection.mode:l,u=o.columns,d=o.viewport,p=o.compact,h=o.dragDropEvents,m=(r.props.groupProps||{}).isAllGroupsCollapsed,f=void 0===m?void 0:m,g=t.viewport&&t.viewport.width||0,v=d&&d.width||0,y=t.setKey!==s||void 0===t.setKey,b=!1;t.layoutMode!==r.props.layoutMode&&(b=!0);var C=n;return y&&(r._initialFocusedIndex=t.initialFocusedIndex,C=(0,e.__assign)((0,e.__assign)({},C),{focusedItemIndex:void 0!==r._initialFocusedIndex?r._initialFocusedIndex:-1})),r.props.disableSelectionZone||t.items===a||r._selection.setItems(t.items,y),t.checkboxVisibility===i&&t.columns===u&&g===v&&t.compact===p||(b=!0),C=(0,e.__assign)((0,e.__assign)({},C),r._adjustColumns(t,C,!0)),t.selectionMode!==c&&(b=!0),void 0===f&&t.groupProps&&void 0!==t.groupProps.isAllGroupsCollapsed&&(C=(0,e.__assign)((0,e.__assign)({},C),{isCollapsed:t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!t.groupProps.isAllGroupsCollapsed})),t.dragDropEvents!==h&&(r._dragDropHelper&&r._dragDropHelper.dispose(),r._dragDropHelper=t.dragDropEvents?new kD({selection:r._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,b=!0),b&&(C=(0,e.__assign)((0,e.__assign)({},C),{version:{}})),C},r._onGroupExpandStateChanged=function(e){r.setState({isSomeGroupExpanded:e})},r._onColumnIsSizingChanged=function(e,t){r.setState({isSizing:t})},r._onRowDidMount=function(e){var t=e.props,n=t.item,o=t.itemIndex,i=r._getItemKey(n,o);r._activeRows[i]=e,r._setFocusToRowIfPending(e);var a=r.props.onRowDidMount;a&&a(n,o)},r._onRowWillUnmount=function(e){var t=r.props.onRowWillUnmount,n=e.props,o=n.item,i=n.itemIndex,a=r._getItemKey(o,i);delete r._activeRows[a],t&&t(o,i)},r._onToggleCollapse=function(e){r.setState({isCollapsed:e}),r._groupedList.current&&r._groupedList.current.toggleCollapseAll(e)},r._onColumnResized=function(t,n,o){var i=Math.max(t.minWidth||MA,n);r.props.onColumnResize&&r.props.onColumnResize(t,i,o),r._rememberCalculatedWidth(t,i),r.setState((0,e.__assign)((0,e.__assign)({},r._adjustColumns(r.props,r.state,!0,o)),{version:{}}))},r._onColumnAutoResized=function(e,t){var n=0,o=0,i=Object.keys(r._activeRows).length;for(var a in r._activeRows){if(r._activeRows.hasOwnProperty(a))r._activeRows[a].measureCell(t,(function(a){n=Math.max(n,a),++o===i&&r._onColumnResized(e,n,t)}))}},r._onActiveRowChanged=function(e,t){var n=r.props,o=n.items,i=n.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(o[a],a,t),r.setState({focusedItemIndex:a}))}},r._onBlur=function(e){r.setState({focusedItemIndex:-1})},Mb(r),r._async=new Vb(r),r._activeRows={},r._columnOverrides={},r.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:r._getAdjustedColumns(n,void 0),isSizing:!1,isCollapsed:n.groupProps&&n.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:n.groupProps&&!n.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:r._getDerivedStateFromProps},r._selection=n.selection||new qD({onSelectionChanged:void 0,getKey:n.getKey,selectionMode:n.selectionMode}),r.props.disableSelectionZone||r._selection.setItems(n.items,!1),r._dragDropHelper=n.dragDropEvents?new kD({selection:r._selection,minimumPixelsForDrag:n.minimumPixelsForDrag}):void 0,r._initialFocusedIndex=n.initialFocusedIndex,r}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},n.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},n.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var i=this._getItemKey(o,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},n.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},n.prototype.updateColumn=function(e,t){var n,r,o=this.props,i=o.columns,a=void 0===i?[]:i,s=o.selectionMode,l=o.checkboxVisibility,c=o.columnReorderOptions,u=t.width,d=t.newColumnIndex,p=a.findIndex((function(t){return t.key===e.key}));if(u&&this._onColumnResized(e,u,p),void 0!==d&&c){var h=s===hD.none||l===yT.hidden,m=(l!==yT.hidden?2:1)+p,f=h?m-1:m-2,g=h?d-1:d-2,v=null!==(n=c.frozenColumnCountFromStart)&&void 0!==n?n:0,y=null!==(r=c.frozenColumnCountFromEnd)&&void 0!==r?r:0;if(g>=v&&g<a.length-y)if(c.onColumnDrop){var b={draggedIndex:f,targetIndex:g};c.onColumnDrop(b)}else c.handleColumnReorder&&c.handleColumnReorder(f,g)}},n.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},n.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var n=this._getItemKey(i,this._initialFocusedIndex);(r=this._activeRows[n])&&this._setFocusToRowIfPending(r)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!zb(this._root.current,document.activeElement,!1)){var r,o=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[o];n=this._getItemKey(i,this.state.focusedItemIndex);(r=this._activeRows[n])?this._setFocusToRow(r):this._initialFocusedIndex=o}this.props.onDidUpdate&&this.props.onDidUpdate(this)},n.prototype.render=function(){return Gt.createElement(OA,(0,e.__assign)({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},n.prototype.forceUpdate=function(){t.prototype.forceUpdate.call(this),this._forceListUpdates()},n.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},n.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},n.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},n.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},n.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},n.prototype._adjustColumns=function(t,n,r,o){var i=this._getAdjustedColumns(t,n,r,o),a=this.props.viewport,s=a&&a.width?a.width:0;return(0,e.__assign)((0,e.__assign)({},n),{adjustedColumns:i,lastWidth:s})},n.prototype._getAdjustedColumns=function(e,t,n,r){var o,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,p=this.props?this.props.columns:[],h=t?t.lastWidth:-1,m=t?t.lastSelectionMode:void 0;return n||h!==u||m!==l||p&&d!==p?(d=d||function(e,t,n,r,o,i,a,s){var l=[];if(e&&e.length){var c=e[0];for(var u in c)c.hasOwnProperty(u)&&l.push({key:u,name:u,fieldName:u,minWidth:MA,maxWidth:300,isCollapsible:!!l.length,isMultiline:void 0!==a&&a,isSorted:r===u,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:null!==s&&void 0!==s?s:mT.clickable,isResizable:t,onColumnClick:n,isGrouped:i===u})}return l}(a,!0),s===vT.fixedColumns?(o=this._getFixedColumns(d,u,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(o=this._getJustifiedColumns(d,u,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),o):d||[]},n.prototype._getFixedColumns=function(t,n,r){var o=this,i=this.props,a=i.selectionMode,s=void 0===a?this._selection.mode:a,l=i.checkboxVisibility,c=i.flexMargin,u=i.skipViewportMeasures,d=n-(c||0),p=0;t.forEach((function(e){u||!e.flexGrow?d-=e.maxWidth||e.minWidth||MA:(d-=e.minWidth||MA,p+=e.flexGrow),d-=HA(e,r,!0)}));var h=s!==hD.none&&l!==yT.hidden?48:0,m=36*this._getGroupNestingDepth(),f=(d-=h+m)/p;return u||t.forEach((function(t){var n=(0,e.__assign)((0,e.__assign)({},t),o._columnOverrides[t.key]);if(n.flexGrow&&n.maxWidth){var r=n.flexGrow*f+n.minWidth,i=r-n.maxWidth;i>0&&(d+=i,p-=i/(r-n.minWidth)*n.flexGrow)}})),f=d>0?d/p:0,t.map((function(t){var n=(0,e.__assign)((0,e.__assign)({},t),o._columnOverrides[t.key]);return!u&&n.flexGrow&&d<=0||n.calculatedWidth||(!u&&n.flexGrow?(n.calculatedWidth=n.minWidth+n.flexGrow*f,n.calculatedWidth=Math.min(n.calculatedWidth,n.maxWidth||Number.MAX_VALUE)):n.calculatedWidth=n.maxWidth||n.minWidth||MA),n}))},n.prototype._getJustifiedColumns=function(t,n,r){var o=this,i=r.selectionMode,a=void 0===i?this._selection.mode:i,s=r.checkboxVisibility,l=r.skipViewportMeasures,c=a!==hD.none&&s!==yT.hidden?48:0,u=36*this._getGroupNestingDepth(),d=0,p=0,h=n-(c+u),m=t.map((function(t,n){var i=(0,e.__assign)((0,e.__assign)({},t),{calculatedWidth:t.minWidth||MA}),a=(0,e.__assign)((0,e.__assign)({},i),o._columnOverrides[t.key]);return i.isCollapsible||i.isCollapsable||(p+=HA(i,r)),d+=HA(a,r),a}));if(l)return m;for(var f=m.length-1;f>=0&&d>h;){var g=(C=m[f]).minWidth||MA,v=d-h;if(C.calculatedWidth-g>=v||!C.isCollapsible&&!C.isCollapsable){var y=C.calculatedWidth;p<h&&(C.calculatedWidth=Math.max(C.calculatedWidth-v,g)),d-=y-C.calculatedWidth}else d-=HA(C,r),m.splice(f,1);f--}for(var b=0;b<m.length&&d<h;b++){var C=m[b],S=b===m.length-1,x=this._columnOverrides[C.key];if(!x||!x.calculatedWidth||S){var _=h-d,E=void 0;if(S)E=_;else{var k=C.maxWidth;g=C.minWidth||k||MA;E=k?Math.min(_,k-g):_}C.calculatedWidth=C.calculatedWidth+E,d+=E}}return m},n.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},n.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},n.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},n.defaultProps={layoutMode:vT.justified,selectionMode:hD.multiple,constrainMode:fT.horizontalConstrained,checkboxVisibility:yT.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},n=(0,e.__decorate)([RA],n)}(Gt.Component);function HA(e,t,n){var r=t.cellStyleProps,o=void 0===r?ZT:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var VA={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},zA=Ng(LA,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=r.semanticColors,c=Ju(VA,r);return{root:[c.root,r.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& .".concat(c.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n[".".concat(c.listCell)]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"}),UA=function(e){var t=e.operationalData;return jt().createElement(bb,{horizontalAlign:"start"},jt().createElement(ww,{operationalData:t}))},WA=function(t){var n=t.iconName,r=t.disabled,o=t.operationalData,i=t.columnAlign,a=void 0===i?"start":i,s=(0,e.__rest)(t,["iconName","disabled","operationalData","columnAlign"]);return jt().createElement(VP,{iconName:n,disabled:r},jt().createElement(bb,{horizontalAlign:"end"===a?"end":"start",margin:"end"===a?"0px 8px":void 0,grow:!0},jt().createElement(ww,{operationalData:o},Iw(s,r))))},GA=function(t){var n=t.toggleProps,r=t.disabled,o=t.columnAlign,i=void 0===o?"end":o,a=t.iconName,s=t.operationalData,l=(0,e.__rest)(t,["toggleProps","disabled","columnAlign","iconName","operationalData"]);return jt().createElement(VP,{iconName:a,disabled:r},jt().createElement(bb,{horizontal:!0,grow:!0,horizontalAlign:"end"===i?"space-between":"start",childrenGap:16,verticalAlign:"center"},jt().createElement(bb,null,jt().createElement(ww,{operationalData:s},Iw(l,r))),jt().createElement(bb,{padding:Dw},jt().createElement(wb,null,jt().createElement(vw,(0,e.__assign)({},n,{labelPosition:"inline",disabled:r}))))))},jA=function(t){var n=t.label,r=t.links,o=t.disabled;return jt().createElement(bb,{verticalAlign:"center",wrap:!0,horizontal:!0,padding:"1px 0 1px 0"},n?jt().createElement(bb,{horizontal:!0,verticalAlign:"center",padding:"0 16px 0 0"},jt().createElement(Ib,{variant:"bodySecondaryText",disabled:o},n)):null,jt().createElement(bb,{verticalAlign:"center",horizontal:!0,wrap:!0},r.map((function(t,n){return jt().createElement(Cb,{padding:"0 16px 0 0",key:n},"href"in t?jt().createElement(nx,(0,e.__assign)({},t,{disabled:null!==o&&void 0!==o?o:t.disabled})):jt().createElement(rx,(0,e.__assign)({},t,{disabled:null!==o&&void 0!==o?o:t.disabled})))}))))},qA=function(t){var n=t.hyperlinks,r=t.disabled,o=t.operationalData;return jt().createElement(bb,{horizontal:!0,childrenGap:"16",wrap:!0},jt().createElement(ww,{operationalData:o},n.map((function(t,n){return jt().createElement(nx,(0,e.__assign)({},t,{disabled:null!==r&&void 0!==r?r:t.disabled,key:n}))}))))},KA=function(){return jt().createElement(vb,{totalSlots:12},jt().createElement(gb,{slots:1},jt().createElement(jt().Fragment,null)),jt().createElement(gb,{slots:8},jt().createElement(nw,{height:12})),jt().createElement(gb,{slots:2},jt().createElement(nw,{height:12})),jt().createElement(gb,{slots:1},jt().createElement(jt().Fragment,null)))},YA="RevealPasswordMedium",XA=function(e,t,n){return jt().createElement(tb,{key:"".concat(t,"-").concat(n),style:{color:e}},t)},QA=function(e){var t=e.contentType,n=function(e,t,n){var r=[];"password"===n&&Array.from(e).forEach((function(e,n){_b(e)?r.push(XA(t.semanticColors.errorBlockIcon,e,n)):function(e){return 1===e.length&&/[a-zA-Z]/.test(e)}(e)?r.push(XA(t.palette.neutralPrimary,e,n)):r.push(XA(t.semanticColors.messageLink,e,n))}));return r}(e.value,dg(),t);return jt().createElement(Tg,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap"}},doNotRenderFalsyValues:!0},n)},ZA=function(){var t=(0,e.__spreadArray)([],Array(25),!0).map((function(e,t){return jt().createElement(Hy,{key:t,iconName:"CircleFillBadge12",size:"6px",color:"neutralSecondary"})}));return jt().createElement(Tg,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap",overflow:"hidden",height:"6px"}},doNotRenderFalsyValues:!0},t)},JA=function(e){var t=e.contentType,n=e.shown,r=e.value;return n&&r?jt().createElement(QA,{value:r,contentType:t}):jt().createElement(ZA,null)},$A=function(e){var t=e.contentType,n=e.onHideButtonClick,r=e.onShowButtonClick,o=e.operationalData,i=e.showIconButton,a=e.hideIconButton,s=e.value,l=e.iconButtonRef;ll("SensitiveContent");var c=(0,Gt.useState)(!0),u=c[0],d=c[1],p=(0,Gt.useState)({iconName:YA,tooltip:i.tooltip,"aria-label":i["aria-label"],"data-bi-id":i["data-bi-id"],disabled:i.disabled}),h=p[0],m=p[1],f=function(){u?(d(!1),g(!0),r&&r()):(d(!0),g(!1),n&&n())},g=function(e){m({iconName:e?"Hide":YA,tooltip:e?a.tooltip:i.tooltip,"aria-label":e?a["aria-label"]:i["aria-label"],"data-bi-id":e?a["data-bi-id"]:i["data-bi-id"],disabled:e?a.disabled:i.disabled})},v={display:"flex",justifyContent:"space-between",maxWidth:"calc(".concat(120,"px + ").concat(48,"px)")},y=jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:v},doNotRenderFalsyValues:!0},jt().createElement(JA,{shown:!1,value:s,contentType:t}),jt().createElement(Tg,{styles:{root:{height:"32px",padding:"0px 16px 0px 8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(uw,{"aria-label":null===o||void 0===o?void 0:o.spinnerAriaLabel,spinnerSize:qy.small}))),b=jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:v},doNotRenderFalsyValues:!0},jt().createElement(JA,{shown:!u,value:s,contentType:t}),jt().createElement(Tg,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(wb,null,jt().createElement(pk,{iconButtonRef:l,iconName:h.iconName,iconColor:"neutralSecondary",disabled:h.disabled,onClick:f,"aria-label":h["aria-label"],"data-bi-id":h["data-bi-id"],tooltipHostProps:{tooltipText:h.tooltip}})))),C=jt().createElement(Tg,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:v},doNotRenderFalsyValues:!0},jt().createElement(JA,{shown:!1,value:void 0,contentType:t}),jt().createElement(Tg,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(wb,null,jt().createElement(pk,{iconName:YA,iconColor:"neutralSecondary",disabled:i.disabled,onClick:f,"aria-label":i["aria-label"],"data-bi-id":i["data-bi-id"],tooltipHostProps:{tooltipText:i.tooltip}}))));return o?jt().createElement(dv,{operationData:o.operationData,inertView:b,firstLoadView:jt().createElement(KA,null),failedView:C,updatingView:y,updateFailedView:b,finishedView:b}):b},eR=function(t){var n=t.sensitiveContentProps;return jt().createElement($A,(0,e.__assign)({},n))},tR=function(e){var t=e.shimmerLineProps,n=e.horizontal,r=n?"":"0 0 4px 0";return jt().createElement(bb,{childrenGap:"0 10px",verticalAlign:"center",horizontal:n},t.map((function(e,n){return jt().createElement(bb,{margin:n===t.length-1?"":r,key:n},jt().createElement(nw,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))})))},nR=function(t){var n=t.textElements,r=void 0===n?[]:n,o=t.disabled,i=void 0!==o&&o,a=t.indentPadding,s=void 0===a?"0px":a,l=t.operationalData,c=t.truncatedTextProps,u=t.ctaButtonProps,d=r.map((function(t,n){return c?jt().createElement(tx,(0,e.__assign)({lines:c.lines,stopPropagation:!1},t,{disabled:i,key:n})):jt().createElement(Ib,(0,e.__assign)({},t,{disabled:i,key:n}))}));return jt().createElement(bb,{horizontalAlign:"start",padding:"0px"!==s?"0px 0px 0px ".concat(s," "):void 0},jt().createElement(ww,{operationalData:l},u?jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},d,u&&jt().createElement(JE,(0,e.__assign)({},u,{parentComponentName:"TextColumn"}))):d))},rR=function(t){var n=t.titleHyperlinkProps,r=t.subtitles,o=void 0===r?[]:r,i=t.disabled,a=t.truncatedSubtitleTextProps;return jt().createElement(bb,null,jt().createElement(nx,(0,e.__assign)({},n)),o.map((function(t,n){return a?jt().createElement(tx,(0,e.__assign)({lines:a.lines,stopPropagation:!1},t,{disabled:i,key:n})):jt().createElement(Ib,(0,e.__assign)({},t,{disabled:i,key:n}))})))},oR=function(t){var n=t.children,r=t.indicatorColor,o=t.image,i=t.disabled,a=void 0!==i&&i,s=t.padding,l=t.height,c=(0,e.__rest)(t,["children","indicatorColor","image","disabled","padding","height"]),u=o?jt().createElement(jk,(0,e.__assign)({},c,{padding:s||"0px",height:l||"auto",image:o}),jt().createElement(bb,{padding:"0px 0px 0px 12px"},a?jt().Children.map(n,(function(e,t){return jt().isValidElement(e)?jt().cloneElement(e,{disabled:a,key:e.key||t}):e})):n)):jt().createElement(bb,null,n);return r?jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:16},jt().createElement(Cb,null,jt().createElement("div",{role:"presentation",style:{backgroundColor:r,borderRadius:2,width:12,height:12}})),u):u},iR=function(t){var n=t.listItemMediaProps,r=t.title,o=t.titleTextVariant,i=t.isTitleSemiBold,a=void 0!==i&&i,s=t.subtitles,l=void 0===s?[]:s,c=t.disabled,u=t.truncatedTitleTextProps,d=t.truncatedSubtitleTextProps,p=t.ctaButtonProps,h=u?jt().createElement(tx,{lines:u.lines,stopPropagation:u.stopPropagation,children:r,variant:o,weightOverride:a?"semi-bold":void 0,disabled:c}):jt().createElement(Ib,{variant:o,weightOverride:a?"semi-bold":void 0,children:r,disabled:c}),m=l.map((function(t,n){return d?jt().createElement(tx,(0,e.__assign)({lines:d.lines,stopPropagation:d.stopPropagation},t,{disabled:c,key:n})):jt().createElement(Ib,(0,e.__assign)({},t,{disabled:c,key:n}))}));return jt().createElement(oR,(0,e.__assign)({},n),p?jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},h,m,p&&jt().createElement(JE,(0,e.__assign)({},p,{parentComponentName:"MediaTitleColumn"}))):jt().createElement(jt().Fragment,null,h,m))},aR=function(t){var n=t.personaProps,r=t.title,o=t.subtitles,i=void 0===o?[]:o,a=t.disabled,s=t.truncatedTitleTextProps,l=t.truncatedSubtitleTextProps;return jt().createElement(bb,{verticalAlign:"center",horizontal:!0,padding:"4px 0 4px 0",childrenGap:10},jt().createElement(bb,{height:n.size,width:n.size}," ",jt().createElement(NP,(0,e.__assign)({},n,{text:r,hideText:!0}))," "),jt().createElement(bb,null,s?jt().createElement(tx,{lines:s.lines,stopPropagation:s.stopPropagation,children:r,disabled:a}):jt().createElement(Ib,{children:r,disabled:a}),i.map((function(t,n){return l?jt().createElement(tx,(0,e.__assign)({lines:l.lines,stopPropagation:l.stopPropagation},t,{disabled:a,key:n})):jt().createElement(Ib,(0,e.__assign)({},t,{disabled:a,key:n}))}))))},sR=function(e){var t=e.personaGraphic,n=e.children;return jt().createElement(bb,{horizontal:!0,padding:"12px 0"},t,jt().createElement(bb,{horizontal:!1},n))},lR=[fk,Hy,Ib,nx,XE],cR=(0,e.__spreadArray)([sR,oR,NP,Ib],lR,!0),uR=[JE,dk,fk,pk,rx,nx,vw],dR=[Tw,Aw,zP,UP,function(e){var t=e.shimmerSize;return jt().createElement(bb,{horizontal:!0,verticalAlign:"center"},jt().createElement(bb,{width:t,margin:"0 10px 0 0"},jt().createElement(jI,{height:t})))},VT,aD,nD,UA,jA,qA,rR,function(t){var n=t.icons,r=t.disabled,o=t.operationalData;return jt().createElement(bb,{horizontal:!0,childrenGap:"16",wrap:!0},jt().createElement(ww,{operationalData:o},n.map((function(t,n){return jt().createElement(Hy,(0,e.__assign)({},t,{disabled:null!==r&&void 0!==r?r:t.disabled,key:n}))}))))},tR,function(e){var t=e.mediaShimmerSize,n=e.shimmerLineProps;return jt().createElement(bb,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},jt().createElement(nw,{height:t,width:t}),jt().createElement(bb,{horizontal:!1},n.map((function(e,t){return jt().createElement(bb,{margin:t===n.length-1?"":"0 0 4px 0",key:t},jt().createElement(nw,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},iR,eR,function(e){var t=e.personaShimmerSize,n=e.shimmerLineProps;return jt().createElement(bb,{horizontal:!0,verticalAlign:"center"},jt().createElement(bb,{width:t,margin:"0 10px 0 0"},jt().createElement(jI,{height:t})),jt().createElement(bb,{horizontal:!1},n.map((function(e,t){return jt().createElement(bb,{margin:t===n.length-1?"":"0 0 4px 0"},jt().createElement(nw,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},aR,nR,WA,function(t){var n=t.title,r=t.isTitleSemiBold,o=void 0!==r&&r,i=t.subtitles,a=void 0===i?[]:i,s=t.disabled,l=t.truncatedTitleTextProps,c=t.truncatedSubtitleTextProps;return jt().createElement(bb,null,l?jt().createElement(tx,{lines:l.lines,stopPropagation:l.stopPropagation,children:n,weightOverride:o?"semi-bold":void 0,disabled:s}):jt().createElement(Ib,{children:n,weightOverride:o?"semi-bold":void 0,disabled:s}),a.map((function(t,n){return c?jt().createElement(tx,(0,e.__assign)({lines:c.lines,stopPropagation:c.stopPropagation},t,{disabled:s,key:n})):jt().createElement(Ib,(0,e.__assign)({},t,{disabled:s,key:n}))})))},GA],pR=[Tw,Aw,zP,UP,VT,qA,rR,eR,GA],hR="ListItem",mR=function(e,t){return hv(e,t,hR)},fR=function(e,t){return function(){return e&&t>2?"Clickable list item cannot have more than ".concat(2," final column actions but has ").concat(t,"."):void 0}},gR=function(e,t,n){Dg("".concat(e,"ListItemInternal"),[fR(t,n)])};var vR=function(t){var n,r=t.find((function(e){return e.type===oR||e.type===NP})),o=t.filter((function(e){return e!==r}));if(r)if(r.type===NP){var i=yR((0,e.__spreadArray)([jt().createElement(Ib,null,r.props.text)],o,!0));n=jt().createElement(sR,{personaGraphic:jt().cloneElement(r,(0,e.__assign)((0,e.__assign)({},r.props),{text:void 0}))},i)}else{i=yR((0,e.__spreadArray)([r.props.children],o,!0));n=jt().cloneElement(r,void 0,i)}return n?[n]:t},yR=function(e){return e.map((function(e,t){return e&&null===e.key?jt().cloneElement(e,{key:t}):e}))},bR={ThreeThreeThreeThree:[3,3,3,3],SixTwoTwoTwo:[6,2,2,2],SixThreeThree:[6,3,3],ThreeThreeSix:[3,3,6],SixTwoFour:[6,2,4],SixFourTwo:[6,4,2],ThreeSixThree:[3,6,3],EightTwoTwo:[8,2,2],FourFourFour:[4,4,4],SixSix:[6,6],EightFour:[8,4],FourEight:[4,8],Twelve:[12],TwoTwoTwoTwoTwo:[2.4,2.4,2.4,2.4,2.4],ThreeNine:[3,9]},CR=function(e,t,n){return function(){return e!==t?"ListItem needs to have ".concat(t," columns for variant ").concat(n,"."):void 0}},SR=function(t){var n=t.columns,r=void 0===n?[]:n,o=t.disabled,i=void 0!==o&&o,a=(t.menuDisabled,t.verticalAlign),s=void 0===a?"center":a,l=t.variant,c=t.cellRole,u=t.customListItemPadding,d=(0,e.__rest)(t,["columns","disabled","menuDisabled","verticalAlign","variant","cellRole","customListItemPadding"]);Fy("ListItem",d);var p=bR[l];(0,Gt.useEffect)((function(){Dg("ListItem",[CR(r.length,p.length,l)])}),[r,p,l]),(0,Gt.useEffect)((function(){r.forEach((function(e){return mR(e,dR)}))}),[r]);var h=jt().createElement(vb,{totalSlots:12,verticalAlign:s},r.map((function(e,t){return jt().createElement(gb,{slots:p[t],key:e.key||t},c?jt().createElement(Tg,{role:c,doNotRenderFalsyValues:!0},jt().cloneElement(e,{disabled:i||e.props.disabled,key:e.key||t})):jt().cloneElement(e,{disabled:i||e.props.disabled,key:e.key||t}))})));return jt().createElement(jT,(0,e.__assign)({},d,{showDivider:d.showDivider,padding:null!==u&&void 0!==u?u:kw,disabled:i}),h)},xR=function(t){var n=t.leftColumn,r=t.rightColumn,o=t.disabled,i=void 0!==o&&o,a=(t.menuDisabled,t.cellRole),s=t.customListItemPadding,l=(0,e.__rest)(t,["leftColumn","rightColumn","disabled","menuDisabled","cellRole","customListItemPadding"]);Fy("MobileListItem",l),(0,Gt.useEffect)((function(){mR(n,dR)}),[n]),(0,Gt.useEffect)((function(){mR(r,dR)}),[r]);var c=function(e){return a?jt().createElement("div",{role:a},jt().cloneElement(e,{disabled:i})):jt().cloneElement(e,{disabled:i})},u=jt().createElement(bb,{verticalAlign:"center",horizontalAlign:"space-between",horizontal:!0,childrenGap:16},jt().createElement(bb,{verticalAlign:"center",grow:!0},c(n)),jt().createElement(bb,{verticalAlign:"center",grow:!0},c(r)));return jt().createElement(jT,(0,e.__assign)({padding:null!==s&&void 0!==s?s:kw},l),u)},_R=function(t){var n=t.defaultExpanded,r=t.onClickToOpen,o=t.onClickToClose,i=(0,e.__rest)(t,["defaultExpanded","onClickToOpen","onClickToClose"]);ll("Drawer",i.buttonId);var a=(0,Gt.useState)(n),s=a[0],l=a[1],c=function(){l(!s)};return jt().createElement(xw,(0,e.__assign)({drawerOpen:s,onClickToOpen:function(e){null===r||void 0===r||r(e),c()},onClickToClose:function(e){null===o||void 0===o||o(e),c()}},i))},ER={display:"inline-block",marginRight:"8px"},kR=function(e){var t=e.charactersInPill,n="".concat(40+6*t,"px");return jt().createElement("span",{style:ER},jt().createElement(nw,{width:n,height:12}))},wR=function(e,t,n){return"image"===(null===t||void 0===t?void 0:t.contentType)?{imageProps:{src:t.imgSrc,imageFit:Rx.contain,maximizeFrame:!0},styles:{root:{margin:"0px 8px 0px 0px"}}}:{iconName:null===t||void 0===t?void 0:t.iconName,styles:{root:{color:PR(e,n),margin:"0px 8px 0px 0px"}}}},IR=function(e){return"high"===e?"errorBlockIcon":"bodyPrimaryText"},PR=function(e,t){switch(t){case"high":return e.semanticColors.errorBlockIcon;case"medium":case"low":return e.palette.neutralPrimary;default:return e.palette.neutralSecondary}},TR=function(t){var n=t.text,r=t.disabled,o=t.onClick,i=t.operationData,a=t.pillMedia,s=t.severity,l=(0,e.__rest)(t,["text","disabled","onClick","operationData","pillMedia","severity"]);ll("Pill",l.id),Fy("Pill",l);var c=dg(),u=function(e,t){var n=function(e,t){switch(t){case"high":return e.semanticColors.severeWarning;case"medium":return e.semanticColors.warningBackground;case"low":return e.palette.neutralLighterAlt;default:return e.palette.neutralHigh}}(e,t);return{root:{background:n,border:t?"0px":"1px solid ".concat(e.palette.neutralHigh),borderRadius:16,boxShadow:pb.rest,margin:"4px 4px 4px 0",padding:"6px 8px",selectors:{":focus":{background:e.palette.neutralHigh,border:"1px solid ".concat(e.palette.neutralHigh)},":hover":{background:e.palette.neutralLighter,border:"1px solid ".concat(e.palette.neutralSecondary)},":active":{background:e.palette.neutralLight,border:"1px solid ".concat(e.palette.neutralLight)},":disabled":{background:e.palette.neutralLighter,border:"1px solid ".concat(e.palette.neutralLighter),boxShadow:"none"},".ms-Fabric--isFocusVisible &:focus:after":{borderRadius:16,borderColor:e.palette.neutralSecondary,outline:"none"}},maxWidth:"288px",minWidth:"34px"},rootHovered:{backgroundColor:n,border:"1px solid ".concat(e.palette.neutralSecondary)},rootFocused:{backgroundColor:n},rootPressed:{backgroundColor:n,border:"1px solid ".concat(e.palette.black)}}}(c,s),d=jt().createElement(zE,(0,e.__assign)({disabled:r,onClick:o,styles:u,iconProps:wR(c,a,s)},l),jt().createElement(Ib,{block:!0,nowrap:!0,variant:IR(s),disabled:r},n)),p=(0,Gt.useRef)(null);if(i){var h=jt().createElement("span",{ref:p,style:{paddingBottom:"11px"}},d,jt().createElement(XE,{targetOrTriggerButton:p,errorMessageAriaLabel:"Error message aria label",errorMessage:i.errorMessage,calloutPosition:"top-auto"}));return jt().createElement(Xs,{operationData:i.progressViewOperationData,updatingView:jt().createElement(kR,{charactersInPill:n.length}),finishedView:d,failedView:h})}return d},DR=function(e,t){var n=e.map((function(e,t){return function(e){var t;return void 0!==(null===(t=e)||void 0===t?void 0:t.key)}(e)?e.key:"".concat(t)})),r=(null===t||void 0===t?void 0:t.pills)||e;return{visible:e,pills:r,remaining:r.length-e.length,cacheKey:n.join("_")}},AR=function(e){return e.visible.length?DR(e.visible.slice(0,-1),e):void 0},RR=function(e){return e.remaining?DR(e.pills.slice(0,e.visible.length+1),e):void 0},NR=(0,Gt.forwardRef)((function(t,n){var r=t.children,o=(0,e.__rest)(t,["children"]),i=(0,Gt.useState)(0),a=i[0],s=i[1];(0,Gt.useImperativeHandle)(n,(function(){return{setRemaining:s}}));var l=jt().Children.toArray(r);return l=l.slice(l.length-a),jt().createElement(MR,(0,e.__assign)({children:l},o))})),MR=function(t){var n=t.children,r=t.severity,o=t.lines,i=void 0===o?2:o,a=t.showMoreBtnBiId,s=t.showMoreAriaLabelFormatter,l=(0,e.__rest)(t,["children","severity","lines","showMoreBtnBiId","showMoreAriaLabelFormatter"]);ll("PillContainer");var c=(0,Gt.useRef)(null),u=(0,Gt.useState)(!1),d=u[0],p=u[1],h=(0,Gt.useCallback)((function(){return p(!0)}),[]),m=(0,Gt.useCallback)((function(){return p(!1)}),[]),f=(0,Gt.useCallback)((function(e){var t;return null===(t=c.current)||void 0===t?void 0:t.setRemaining(e.remaining)}),[]),g=jt().Children.toArray(n),v=jt().createElement(jt().Fragment,null,jt().createElement(Mk,{data:DR(g,null),onRenderData:function(e){return jt().createElement("div",{style:{display:"flex"}},e.visible,i<=1&&e.remaining?jt().createElement(TR,{"aria-label":s(e.remaining),"data-bi-id":a,text:"+".concat(e.remaining),onClick:l.useCustomExpand?l.onShowMore:h,severity:r}):null)},onReduceData:AR,onGrowData:RR,dataDidRender:f}),i>1?jt().createElement(NR,(0,e.__assign)({ref:c,lines:i-1,children:g,showMoreBtnBiId:a,showMoreAriaLabelFormatter:s,severity:r},l)):null);return g.length?(l.useCustomExpand||(v=jt().createElement(jt().Fragment,null,jt().createElement("div",{style:d?{visibility:"hidden",position:"absolute",width:"100%"}:void 0},v),d?jt().createElement(jt().Fragment,null,jt().createElement("div",{style:{display:"flex",flexFlow:"wrap"}},n),jt().createElement(rx,{"aria-label":l.showLessAriaLabel,"data-bi-id":l.showLessBiId,onClick:m},l.showLessText)):null)),v):null},FR=function(e){return e.map((function(e){return e.key})).toString()},BR=function(t){var n=t.finalColumnText,r=t.finalColumnActions,o=void 0===r?[]:r,i=t.existingMenuProps,a=void 0===i?{"aria-label":"","data-bi-id":""}:i,s=t.finalColumnAlign,l=void 0===s?"end":s,c=t.collapseActionText,u=void 0!==c&&c,d=t.disabled,p=void 0!==d&&d,h=t.menuDisabled,m=void 0!==h&&h,f=(0,e.__rest)(t,["finalColumnText","finalColumnActions","existingMenuProps","finalColumnAlign","collapseActionText","disabled","menuDisabled"]),g=a.menuItems||[],v=o.length>0||g.length>0,y="",b=o.map((function(e,t){return y+="item".concat(t),{key:"item".concat(t),name:e.props.text,"aria-label":e.props["aria-label"],"data-bi-id":e.props["data-bi-id"],action:e,isCollapsible:!!e.props.iconName,onRender:function(){return jt().createElement(wb,{key:t},e)}}})),C={primary:b,overflow:[],cacheKey:y},S=function(e){return jt().createElement(wb,{key:e.key},p?jt().cloneElement(e.action,{disabled:p}):e.action)},x=function(t){return jt().createElement(bb,{verticalAlign:"center"},jt().createElement(ek,(0,e.__assign)({},a,{iconName:"MoreVertical",disabled:m||p,menuItems:t,menuItemsPadding:a.menuItemsPadding||2})))};return jt().createElement(bb,{horizontal:!0,grow:!0},n&&n.length>0?jt().createElement(bb,{horizontal:!0,verticalAlign:"center",childrenGap:16},n.map((function(e,t){return!p&&e.key?e:jt().cloneElement(e,{disabled:p,key:e.key||t})}))):null,v?jt().createElement(bb,{grow:!0},jt().createElement(Mk,{data:C,onReduceData:function(t){if(0!==t.primary.length){var n=(0,e.__spreadArray)((0,e.__spreadArray)([],t.primary.slice(-1),!0),t.overflow,!0),r=t.primary.slice(0,-1);return{primary:r,overflow:n,cacheKey:FR(r)}}},onGrowData:function(t){if(0!==t.overflow.length){var n=(0,e.__spreadArray)([],t.overflow.slice(1),!0),r=(0,e.__spreadArray)((0,e.__spreadArray)([],t.primary,!0),t.overflow.slice(0,1),!0);return{primary:r,overflow:n,cacheKey:FR(r)}}},onRenderData:function(t){var n=t.primary;u&&(n=n.map((function(t){return t.isCollapsible?(0,e.__assign)((0,e.__assign)({},t),{action:jt().cloneElement(t.action,(0,e.__assign)((0,e.__assign)({},t.action.props),{text:""}))}):t})));var r="start"===l||0===n.length?{overflowButton:{"flex-grow":1,"justify-content":"flex-end"}}:{item:{alignItems:"center",":first-of-type":{"flex-grow":1,"justify-content":"flex-end"}}};return 0===t.overflow.length&&0===g.length&&(r.root={padding:"0 8px 0 0"}),jt().createElement(kk,{items:n,overflowItems:(0,e.__spreadArray)((0,e.__spreadArray)([],g,!0),t.overflow,!0),onRenderItem:S,onRenderOverflowButton:x,styles:r})}})):null,f.iconName&&0===C.overflow.length?jt().createElement(bb,{grow:!0,horizontalAlign:"end",verticalAlign:"center",padding:"0 8px 0 0"},jt().createElement(Hy,{size:"16px",iconName:mx(f.iconName),color:"neutralPrimary"})):null)},OR=function(t){return jt().createElement(LR,(0,e.__assign)({},t))},LR=function(t){var n=t.firstColumn,r=t.actions,o=void 0===r?[]:r,i=t.actionsAlign,a=void 0===i?"end":i,s=t.disabled,l=void 0!==s&&s,c=t.menuDisabled,u=void 0!==c&&c,d=(0,e.__rest)(t,["firstColumn","actions","actionsAlign","disabled","menuDisabled"]);(0,Gt.useEffect)((function(){}),[]),Fy("OneColumnInternalListItem",d),(0,Gt.useEffect)((function(){n.forEach((function(e){return mR(e,cR)}))}),[n]),(0,Gt.useEffect)((function(){o.forEach((function(e){return mR(e,uR)}))}),[o]);var p=ny(),h=void 0!==d.onClickProps;gR("OneColumn",h,o.length);var m,f="s"===p||"m"===p||"l"===p;return"menu"===d.decorationType&&(m=(0,e.__assign)({},d.menuProps)),jt().createElement(jT,(0,e.__assign)({},d),jt().createElement(bb,{verticalAlign:"center",horizontal:!0,padding:kw,childrenGap:16},jt().createElement(bb,{verticalAlign:"center",grow:!1},n.map((function(e,t){return jt().cloneElement(e,{disabled:l,key:e.key||t})}))),jt().createElement(BR,{finalColumnActions:o,finalColumnAlign:a,collapseActionText:f,existingMenuProps:m,iconName:"icon"===d.decorationType?d.iconName:void 0,disabled:l,menuDisabled:u})))},HR=function(t){var n=t.firstColumn,r=void 0===n?[]:n,o=t.firstColumnWidth,i=t.secondColumn,a=void 0===i?[]:i,s=t.secondColumnWidth,l=t.thirdColumn,c=void 0===l?[]:l,u=t.thirdColumnWidth,d=t.finalColumnText,p=void 0===d?[]:d,h=t.finalColumnActions,m=void 0===h?[]:h,f=t.finalColumnWidth,g=t.finalColumnAlign,v=void 0===g?"end":g,y=t.disabled,b=void 0!==y&&y,C=t.menuDisabled,S=void 0!==C&&C,x=(0,e.__rest)(t,["firstColumn","firstColumnWidth","secondColumn","secondColumnWidth","thirdColumn","thirdColumnWidth","finalColumnText","finalColumnActions","finalColumnWidth","finalColumnAlign","disabled","menuDisabled"]);(0,Gt.useEffect)((function(){}),[]),Fy("FourColumnListItemInternal",x),(0,Gt.useEffect)((function(){r.forEach((function(e){return mR(e,cR)}))}),[r]),(0,Gt.useEffect)((function(){a&&a.forEach((function(e){mR(e,lR)}))}),[a]),(0,Gt.useEffect)((function(){c&&c.forEach((function(e){mR(e,lR)}))}),[c]),(0,Gt.useEffect)((function(){p&&p.forEach((function(e){return mR(e,lR)}))}),[p]),(0,Gt.useEffect)((function(){m&&m.forEach((function(e){return mR(e,uR)}))}),[m]);var _,E=ny(),k=void 0!==x.onClickProps;return gR("FourColumn",k,m.length),"s"===E||"m"===E||"l"===E?jt().createElement(OR,(0,e.__assign)({firstColumn:vR((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],r,!0),a,!0),c,!0),p,!0)),actions:m,actionsAlign:"end",disabled:b,menuDisabled:S},x)):("menu"===x.decorationType&&(_=(0,e.__assign)({},x.menuProps)),jt().createElement(jT,(0,e.__assign)({},x),jt().createElement(vb,{totalSlots:12,verticalAlign:"center"},jt().createElement(gb,{slots:o},jt().createElement(bb,{padding:kw},r.map((function(e,t){return jt().cloneElement(e,{disabled:b,key:e.key||t})})))),jt().createElement(gb,{slots:s},jt().createElement(bb,{horizontal:!0,childrenGap:4},a.map((function(e,t){return jt().cloneElement(e,{disabled:b,key:e.key||t})})))),jt().createElement(gb,{slots:u},jt().createElement(bb,{horizontal:!0,childrenGap:4},c.map((function(e,t){return jt().cloneElement(e,{disabled:b,key:e.key||t})})))),jt().createElement(gb,{slots:f},jt().createElement(BR,{finalColumnText:p,finalColumnActions:m,finalColumnAlign:v,existingMenuProps:_,collapseActionText:k,iconName:"icon"===x.decorationType?x.iconName:void 0,disabled:b,menuDisabled:S})))))},VR={SixSix:[6,6],EightFour:[8,4],SixThreeThree:[6,3,3],ThreeThreeSix:[3,3,6],ThreeSixThree:[3,6,3],SixTwoFour:[6,2,4],SixFourTwo:[6,4,2],ThreeThreeThreeThree:[3,3,3,3],SixTwoTwoTwo:[6,2,2,2],EightTwoTwo:[8,2,2]},zR=function(e){var t,n,r,o=e.backgroundColor,i=ny();switch(i){case"s":r=(t=4)-(n=1);break;case"m":case"l":r=(t=6)-(n=2);break;case"xl":r=(t=12)-(n=2);break;case"xxl":case"xxxl":r=(t=12)-(n=2)-1}return jt().createElement(jT,{backgroundColor:o},jt().createElement(vb,{totalSlots:t},jt().createElement(gb,{slots:r},jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,{padding:"0 0 0 16px"},jt().createElement(nw,{height:32,width:32})),jt().createElement(Cb,{padding:"0 0 0 8px"},jt().createElement(nw,{height:20,width:"s"===i||"m"===i?145:277})))),jt().createElement(gb,{slots:n},jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,null,jt().createElement(nw,{height:14,width:"s"===i||"m"===i?14:150}))))))},UR=[function(t){var n=t.image,r=t.text,o=t.firstDetail,i=t.secondDetail,a=t.detailsIconButtonProps,s=t.actionProps,l=t.disabled,c=void 0!==l&&l,u=(0,e.__rest)(t,["image","text","firstDetail","secondDetail","detailsIconButtonProps","actionProps","disabled"]);Fy("DetailsFeedListItem",u),(0,Gt.useEffect)((function(){}),[]);var d,p=ny(),h=jt().createElement(fk,(0,e.__assign)({},a,{calloutPosition:"left-top"}));return d=["s","m"].includes(p)?[h,jt().createElement(pk,(0,e.__assign)({key:"iconAction",disabled:c},s))]:"l"===p?[h,jt().createElement(JE,(0,e.__assign)({key:"buttonAction",disabled:c},s))]:[jt().createElement(Ib,{key:"first",disabled:c},o),jt().createElement(Ib,{key:"second",disabled:c},i),jt().createElement(JE,(0,e.__assign)({key:"buttonAction",disabled:c},s))],jt().createElement(qT,(0,e.__assign)({image:n,actions:d,disabled:c},u),jt().createElement(Ib,{disabled:c},r))},YT,_R,function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"ThreeThreeThreeThree":return jt().createElement(HR,(0,e.__assign)({firstColumnWidth:3,secondColumnWidth:3,thirdColumnWidth:3,finalColumnWidth:3},r));case"SixTwoTwoTwo":return jt().createElement(HR,(0,e.__assign)({firstColumnWidth:6,secondColumnWidth:2,thirdColumnWidth:2,finalColumnWidth:2},r))}},OR,function(t){var n=t.image,r=t.text,o=t.actionProps,i=(0,e.__rest)(t,["image","text","actionProps"]);Fy("SimpleFeedListItem",i),(0,Gt.useEffect)((function(){}),[]);var a,s=ny();return a=["s","m"].includes(s)?jt().createElement(pk,(0,e.__assign)({key:"iconAction"},o)):jt().createElement(JE,(0,e.__assign)({key:"buttonAction"},o)),jt().createElement(qT,(0,e.__assign)({image:n,actions:[a]},i),r)},zR,function(e){var t=e.firstColumnComponentName,n=void 0===t?"Text":t,r=e.variant;(0,Gt.useEffect)((function(){}),[]);var o=ny(),i="s"===o||"m"===o,a=i?16:32,s=jt().createElement(nw,{height:i?15:20});switch(n){case"Icon":s=jt().createElement(bb,{width:a,margin:"0 10px 0 0"},jt().createElement(jI,{height:a}));break;case"Persona":s=jt().createElement(bb,{horizontal:!0,verticalAlign:"center"},jt().createElement(bb,{width:a,margin:"0 10px 0 0"},jt().createElement(jI,{height:a})),jt().createElement(nw,{height:a,width:150}));break;case"ListItemMedia":s=jt().createElement(bb,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},jt().createElement(nw,{height:a,width:a}),jt().createElement(nw,{height:a,width:150}))}var l=r?VR[r][0]:12;return i?jt().createElement(jT,null,jt().createElement(bb,{backgroundColor:"neutralHigh",margin:"0 0 3px 0",padding:"8px 13px 4px 52px",verticalAlign:"center"},jt().createElement(bb,{margin:"0 0 4px 0"},s),r?VR[r].slice(1).map((function(e,t){return jt().createElement(bb,{margin:"0 0 4px 0",key:t},jt().createElement(nw,{height:20}))})):null)):jt().createElement(jT,null,jt().createElement(vb,{backgroundColor:"neutralHigh",totalSlots:12,height:48,margin:"0 0 3px 0",padding:"0 13px 0 52px",verticalAlign:"center"},jt().createElement(gb,{slots:l},s),r?VR[r].slice(1).map((function(e,t){return jt().createElement(gb,{slots:e,key:t},jt().createElement(nw,{height:20}))})):null))},SR,xR,jT,function(t){var n=t.pills,r=t.groupSpacerNestingDepth,o=t.backgroundColor,i=t.onClickProps,a=t.pillContainerProps,s=(0,e.__rest)(t,["pills","groupSpacerNestingDepth","backgroundColor","onClickProps","pillContainerProps"]);return ll("PillContainerListItem",s.id),Fy("PillContainerListItem",s),jt().createElement(jT,(0,e.__assign)({groupSpacerNestingDepth:r,backgroundColor:o,onClickProps:i},s),jt().createElement(bb,{padding:"0 16px"},jt().createElement(MR,(0,e.__assign)({useCustomExpand:!0},a),n.map((function(t,n){return jt().createElement(TR,(0,e.__assign)({},t,{key:n}))})))))}],WR="neutralHigh",GR=function(t,n,r,o,i){return void 0===o&&(o=0),void 0===i&&(i=!0),jt().cloneElement(t,(0,e.__assign)({disabled:r,backgroundColor:t.props.backgroundColor||n,groupSpacerNestingDepth:o,showDivider:i},t.props))},jR="List",qR=function(e){return(Array.isArray(e)?e:e?[e]:[]).map((function(e){return hv(e,UR,jR)}))};function KR(e){return function(e,t,n){var r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e.apply(void 0,r);return hv(i,t,n)};return Object.defineProperty(r,"displayName",{enumerable:!0,configurable:!0,get:function(){return"".concat(e.displayName||e.name,"_").concat(fv(n))},set:function(){}}),r}(e,UR,jR)}var YR=function e(t){for(var n,r=0,o=t.length;r<o;r++){var i=t[r];if(jt().isValidElement(i)&&i.props.children){if(n&&"non-leaf"!==n)return!1;if(n="non-leaf",!e(qR(i.props.children)))return!1}else{if(n&&"leaf"!==n)return!1;n="leaf"}}return!0},XR=function(e){return function(){return YR(e)?void 0:"Cannot mix childless and child-containing list nodes on the same level."}},QR=function(e,t){var n;return{root:{backgroundColor:e.palette.neutralHigh,borderBottom:t?void 0:"0px",selectors:(n={":focus":{background:e.palette.neutralHigh},":hover":{background:e.palette.neutralHigh},":active":{background:e.palette.neutralHigh},":disabled":{background:e.palette.neutralHigh}},n[Iu]={border:"none"},n)},groupHeaderContainer:{height:"100%"}}},ZR=function(t){var n=t.children,r=t.listItemBackgroundColor,o=void 0===r?WR:r,i=t.disabled,a=t.showDivider,s=void 0===a||a,l=t.expandButtonProps,c=(0,e.__rest)(t,["children","listItemBackgroundColor","disabled","showDivider","expandButtonProps"]);(0,Gt.useEffect)((function(){}),[]),Dg("GroupedList",[XR(qR(n))]);var u=(0,Gt.useRef)(new Map).current,d=dg(),p=[],h=JR(qR(n),u,p)||[];return jt().createElement(PA,{groups:h,items:p,onRenderCell:function(e,t){return GR(t,o,i,e,s)},groupProps:{headerProps:{onRenderTitle:i?function(e){var t=e.group.data;return jt().cloneElement(t,{menuDisabled:!0})}:function(e){var t=e.group.data;return GR(t,o,i,void 0,!1)},styles:QR(d,s),onToggleCollapse:function(e){u.set(e.key,!e.isCollapsed)},expandButtonProps:l},role:"group"},selectionMode:hD.none,onShouldVirtualize:function(){return!1},rootListProps:c})},JR=function e(t,n,r,o,i){void 0===r&&(r=[]),void 0===o&&(o=0),void 0===i&&(i="");for(var a=[],s=0,l=t.length;s<l;s++){var c=t[s];if(jt().isValidElement(c)&&c.props.children){var u=(c.key||s).toString();i&&(u="".concat(i,"-").concat(s));var d=qR(c.props.children),p=r.length,h=d.length,m=e(d,n,r,o+1,u);a.push({count:h,key:u,name:c.props["aria-label"],ariaLabel:c.props["aria-label"],startIndex:p,level:o,children:m,isCollapsed:n.has(u)?n.get(u):!c.props.defaultExpanded,data:jt().cloneElement(c,{defaultExpanded:void 0,children:void 0,key:u})})}else r.push(c)}return a},$R=(0,Gt.forwardRef)((function(t,n){return ll("List",t.id),jt().createElement(lN,(0,e.__assign)({},t,{listType:"List",ref:n}))})),eN=(0,Gt.forwardRef)((function(t,n){var r=t.children,o=t.listItemBackgroundColor,i=void 0===o?WR:o,a=t.enableVirtualization,s=void 0!==a&&a,l=t.disabled,c=t.showDivider,u=void 0===c||c,d=t.isTabbable,p=void 0!==d&&d,h=t.listRole,m=void 0===h?"list":h,f=(0,e.__rest)(t,["children","listItemBackgroundColor","enableVirtualization","disabled","showDivider","isTabbable","listRole"]),g=hx(),v=p?"all":void 0;return jt().createElement(UT,{handleTabKey:v,shouldEnterInnerZone:function(e){return e.key===(g?"ArrowLeft":"ArrowRight")},direction:"vertical",ref:n},jt().createElement(SA,(0,e.__assign)({},f,{items:qR(r).slice(),onRenderCell:function(e){return GR(e,i,l,void 0,void 0!==(null===e||void 0===e?void 0:e.props.showDivider)?null===e||void 0===e?void 0:e.props.showDivider:u)},onShouldVirtualize:function(){return s},role:m})))})),tN=function(e,t,n){return{root:{boxShadow:n?Qp.depth8:void 0,borderRadius:t?"0 0 4px 4px":"0px",padding:"8px 16px",backgroundColor:e.palette.neutralMed}}},nN=function(t){var n=t.label,r=t.links,o=t.borderRadius,i=void 0===o||o,a=t.shadow,s=void 0===a||a,l=dg();return jt().createElement(Tg,{verticalAlign:"center",styles:tN(l,i,s),doNotRenderFalsyValues:!0},jt().createElement(Tg,{wrap:!0,horizontal:!0,style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},n?jt().createElement(Tg,{horizontal:!0,styles:{root:{margin:"0 16px 0 0"}},doNotRenderFalsyValues:!0},jt().createElement(Ib,{variant:"bodySecondaryText"},n)):null,jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:"0 16"},wrap:1!==r.length,doNotRenderFalsyValues:!0},r.map((function(t,n){return jt().createElement(Ig,{key:n},jt().createElement(oN,(0,e.__assign)({},t)))})))))},rN=function(t){var n=t.leftLinks,r=t.rightLink,o=t.shouldRightLinkRightAligned,i=void 0!==o&&o,a=t.borderRadius,s=void 0===a||a,l=t.shadow,c=void 0===l||l,u=dg(),d=ny(),p=n.length,h=i?8:6,m=12-h,f=jt().createElement(vb,{totalSlots:12},jt().createElement(gb,{slots:h},1===p?jt().createElement(oN,(0,e.__assign)({},n[0])):jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},n.map((function(t,n){return jt().createElement(Ig,{key:n},jt().createElement(oN,(0,e.__assign)({},t)))})))),jt().createElement(gb,{slots:m},i?jt().createElement(Tg,{horizontalAlign:"end",doNotRenderFalsyValues:!0},jt().createElement(oN,(0,e.__assign)({},r))):jt().createElement(oN,(0,e.__assign)({},r)))),g=jt().createElement(Tg,{horizontal:!1,tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},jt().createElement(Ig,null,1===p?jt().createElement(oN,(0,e.__assign)({},n[0])):jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},n.map((function(t,n){return jt().createElement(Ig,{key:n},jt().createElement(oN,(0,e.__assign)({},t)))})))),jt().createElement(Ig,null,jt().createElement(oN,(0,e.__assign)({},r))));return jt().createElement(Tg,{verticalAlign:"center",styles:tN(u,s,c),doNotRenderFalsyValues:!0},jt().createElement(Tg,{style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},function(){switch(d){case"xxxl":case"xxl":case"xl":case"l":return f;case"m":case"s":return g}}()))},oN=function(t){return"href"in t?jt().createElement(nx,(0,e.__assign)({},t)):jt().createElement(rx,(0,e.__assign)({},t))},iN=function(t){return"twocolumn"===t.type?jt().createElement(rN,(0,e.__assign)({},t)):jt().createElement(nN,(0,e.__assign)({},t))},aN=function(t){var n=t.minHeight,r=void 0===n?"44px":n,o=(0,e.__rest)(t,["minHeight"]),i=dg();return jt().createElement(Tg,{verticalAlign:"center",style:{backgroundColor:i.palette.neutralHigh,minHeight:r,padding:"0 16px"},doNotRenderFalsyValues:!0},jt().createElement(Cb,null,jt().createElement(rx,(0,e.__assign)({},o))))},sN=function(e,t,n,r){return{root:{boxShadow:e?Qp.depth4:void 0,borderRadius:n?t:void 0,overflow:n?"hidden":void 0,height:r}}},lN=(0,Gt.forwardRef)((function(t,n){var r,o,i,a,s=t.listType,l=t.label,c=t.header,u=t.footer,d=t.placeholder,p=t.children,h=t.shadow,m=t.roundedCorners,f=t.borderRadius,g=void 0===f?"8px":f,v=t.operationData,y=t.showDefaultHeaderDivider,b=void 0===y||y,C=(0,e.__rest)(t,["listType","label","header","footer","placeholder","children","shadow","roundedCorners","borderRadius","operationData","showDefaultHeaderDivider"]),S=(0,Gt.useState)(null!==(r=C.defaultExpanded)&&void 0!==r&&r),x=S[0],_=S[1],E=null===l||void 0===l?void 0:l.text,k=qR(p);if(C.isAlwaysExpanded){i=0;C.isAlwaysExpanded;var w=(0,e.__rest)(C,["isAlwaysExpanded"]);o=w}else{if((i=C.initialListLength||5)>0&&k.length>i){E="".concat(E," (").concat(k.length,")");var I=x?C.showLessButtonProps:C.showMoreButtonProps;a=(0,e.__assign)((0,e.__assign)({},I),{onClick:function(){return _(!x)}})}k=x?k:k.slice(0,i);C.isAlwaysExpanded,C.initialListLength,C.showMoreButtonProps,C.showLessButtonProps,w=(0,e.__rest)(C,["isAlwaysExpanded","initialListLength","showMoreButtonProps","showLessButtonProps"]);o=w}if(k.length>0&&"DetailsList"!==s){var P=k[k.length-1];k[k.length-1]=jt().createElement(P.type,(0,e.__assign)((0,e.__assign)({},P.props),{showDivider:!1}))}"DetailsList"===s&&(k=k.map((function(t){return jt().createElement(t.type,(0,e.__assign)((0,e.__assign)({},t.props),{cellRole:"gridcell",listType:"DetailsList"}))}))),Fy("ListWrapper",o);var T="DetailsList"===s?C.customHeight:void 0,D=function(t){return jt().createElement(Tg,{styles:sN(h,g,m,T),doNotRenderFalsyValues:!0},l?jt().createElement(xb,{id:l.id},E):null,t?jt().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1}},jt().createElement(dy,{styles:{itemProgress:{padding:"0px"}}})):null,c?GR(jt().createElement(jT,{showDivider:b,removeRole:!0,"data-is-focusable":!1},jt().createElement(bb,{padding:kw},t?jt().cloneElement(c,{menuDisabled:t,showDivider:b}):c)),C.listItemBackgroundColor,void 0,void 0,b):null,d&&0===k.length?d:function(t){var r=(0,e.__assign)((0,e.__assign)({"aria-labelledby":null===l||void 0===l?void 0:l.id},o),{disabled:t,children:k}),i=(0,e.__assign)((0,e.__assign)({"aria-labelledby":null===l||void 0===l?void 0:l.id},o),{disabled:t,children:k,headerColumns:C.headerColumns,ariaLabelForListHeader:C.ariaLabelForListHeader,checkButtonAriaLabel:C.checkButtonAriaLabel,onHeaderChange:C.onHeaderChange,announcedSortMessage:C.announcedSortMessage});return jt().createElement(jt().Fragment,null,function(){switch(s){case"List":return jt().createElement(eN,(0,e.__assign)({},r,{ref:n}));case"DetailsList":return jt().createElement(yN,(0,e.__assign)({},i));default:return jt().createElement(ZR,(0,e.__assign)({showDivider:b},r))}}(),a?jt().createElement(aN,(0,e.__assign)({},a)):null)}(t),u?jt().createElement(iN,(0,e.__assign)({},u)):null)};return v?jt().createElement(Xs,{operationData:v.progressViewOperationData,failedView:D(),finishedView:D(),updatingView:D(!0)}):D()})),cN=function(e,t){return function(){return e!==t.length?"DetailsList must have the same number of columns in the headers and rows":void 0}},uN=function(e){return pR.includes(e.type)},dN="8px 0 8px 2px",pN={cellLeftPadding:0,cellRightPadding:0,cellExtraRightPadding:0},hN=function(t,n,r){var o,i;return n&&(i={flexFlow:"column wrap-reverse",justifyContent:"center"}),{root:{width:r?"fit-content !important":void 0,"[role=button]":(o={},o[Iu]={":hover":{outline:"1px solid Highlight"},":active:hover":{outline:"1px solid Highlight"}},o)},cellTooltip:{position:"relative",height:"100%",width:"100%"},cellTitle:(0,e.__assign)({whiteSpace:"normal",alignItems:"center",height:"100%",width:"100%",paddingRight:"2px",paddingLeft:0===t?"12px":"8px"},i)}},mN={root:{width:"100% !important"}},fN=function(e){return{list:{backgroundColor:e.semanticColors.buttonBackground}}},gN={root:{alignItems:"center",marginRight:"8px"}},vN=function(e){return{root:{height:e,position:"relative",overflow:"unset"}}},yN=function(t){var n,r,o,i,a=t.headerColumns,s=t.ariaLabelForListHeader,l=t.checkButtonAriaLabel,c=t.children,u=t.announcedSortMessage,d=t.onHeaderChange,p=t.customHeight,h=(0,e.__rest)(t,["headerColumns","ariaLabelForListHeader","checkButtonAriaLabel","children","announcedSortMessage","onHeaderChange","customHeight"]),m=dg(),f=Di(),g=(0,Gt.useContext)(Ti).twoUITelemetryIds.areaBiId,v=qR(c).slice();Dg("DetailsList",[(i=v,function(){return i.length<1?"DetailsList cannot have less than ".concat(1," rows"):void 0}),cN(null!==(r=null===(n=v[0].props.columns)||void 0===n?void 0:n.length)&&void 0!==r?r:2,a),(o=a,function(){return function(e){var t=!1,n=!0;return e.forEach((function(e){"detailsHeader"===e.headerType&&("sortedAscending"!==e.sortStatus&&"sortedDescending"!==e.sortStatus||(t?n=!1:t=!0))})),n}(o)?void 0:"Only one column header can be sorted ascending or descending"})]);for(var y=!1,b=a.length,C=0;!y&&C<b;){var S=a[C];switch(S.sortStatus){case"sortedAscending":case"sortedDescending":var x=S.sortFunction(v,C,"sortedDescending"===S.sortStatus),_=x[0];x[1];v=(0,e.__spreadArray)([],_,!0),y=!0}C++}C++;var E=(0,Gt.useState)(),k=E[0],w=E[1],I=(0,Gt.useState)(u),P=I[0],T=I[1],D=function(){w(void 0)};function A(t,n){var r=n.data.detailsHeaderColumn,o=[];switch(r.sortStatus){case"notSorted":case"sortedDescending":case"sortedAscending":r.sortOptionsMenu.forEach((function(t){var r,i;o.push((0,e.__assign)((0,e.__assign)({},t),{checked:t.checked(null!==(r=n.isSorted)&&void 0!==r&&r,null!==(i=n.isSortedDescending)&&void 0!==i&&i),role:"menuitemradio",onClick:function(){return function(t,n,r){var o={clickId:"".concat(r),pageArea:g};f.reportClick(o);var i=t.data.detailsHeaderArray,a=i.findIndex((function(e){return e.key===t.key}));if(a>=0&&t.data){var s=t.data.detailsHeaderColumn;switch(s.sortStatus){case"notSorted":case"sortedDescending":case"sortedAscending":var l=s.sortFunction(t.data.detailsListItems,a,n),c=l[0],u=l[1];if(c){T("".concat(s.name," ").concat(u));var p=i.map((function(t,r){return r===a?(0,e.__assign)((0,e.__assign)({},t),{sortStatus:n?"sortedDescending":"sortedAscending"}):(0,e.__assign)((0,e.__assign)({},t),{sortStatus:"notSortable"===t.sortStatus?t.sortStatus:"notSorted"})}));d&&d(p)}}}}(n,t.isSortedDescending,t["data-bi-id"])}}))}))}return{items:null!==o&&void 0!==o?o:[],target:t.currentTarget,directionalHint:_v,gapSpace:10,onDismiss:D,styles:fN(m)}}var R,N,M=function(e,t){var n={clickId:"".concat(t.data.detailsHeaderColumn["data-bi-id"]),pageArea:g};f.reportClick(n),t.columnActionsMode!==mT.disabled&&w(A(e,t))},F=function(e,t){e&&t&&e.columnActionsMode!==mT.disabled&&w(A(t,e))},B=function(e){var t,n=null===e||void 0===e?void 0:e.column.data.detailsHeaderColumn;return"listItemHeader"===(null===n||void 0===n?void 0:n.headerType)?uN(n.listItemColumn)&&"notSortable"!==n.sortStatus?jt().createElement(jt().Fragment,null):n.listItemColumn:null!==(t=!(null===e||void 0===e?void 0:e.column.isMultiline))&&void 0!==t&&t?jt().createElement(tx,{type:"text",lines:1,variant:"headerText",stopPropagation:!1},null===e||void 0===e?void 0:e.column.name):jt().createElement(Ib,{children:null===e||void 0===e?void 0:e.column.name,variant:"headerText",nowrap:!1,block:!0})},O=function(e,t,n){var r;return"listItemHeader"===e.headerType&&uN(e.listItemColumn)?"notSortable"===e.sortStatus?jt().createElement(nD,{column:t,columnIndex:n,styles:mN}):jt().createElement(VT,null,jt().createElement(Tg,{horizontal:!0,styles:gN,doNotRenderFalsyValues:!0},e.listItemColumn,jt().createElement(aD,{column:t,columnIndex:n,cellStyleProps:pN,styles:hN(n,!1,!0)}))):jt().createElement(aD,{column:t,columnIndex:n,cellStyleProps:pN,styles:hN(n,null!==(r=t.isIconOnly)&&void 0!==r&&r)})},L=(N=v,(R=a).map((function(t){var n,r="sortedAscending"===t.sortStatus||"sortedDescending"===t.sortStatus,o={key:t.key,minWidth:t.minWidth?parseInt(t.minWidth,10):parseInt("300px",10),name:t.name,ariaLabel:t.ariaLabel,onRenderHeader:B,columnActionsMode:"notSortable"===t.sortStatus?mT.disabled:r?void 0:mT.hasDropdown,isSorted:r,isSortedDescending:"sortedDescending"===t.sortStatus,onColumnClick:M,onColumnContextMenu:F,data:{detailsHeaderColumn:t,detailsListItems:N,detailsHeaderArray:R},isResizable:!0};if("listItemHeader"===t.headerType)return o;var i=null!==(n=t.textTruncates)&&void 0!==n&&n;return(0,e.__assign)((0,e.__assign)({},o),{iconName:t.iconName,isIconOnly:t.isIconOnly,isMultiline:!i,onRenderHeader:t.isIconOnly?void 0:B})}))),H=[P?jt().createElement(tI,{message:P}):void 0,jt().createElement(zA,{items:v,columns:L,onItemContextMenu:function(e,t,n){var r={target:null===n||void 0===n?void 0:n.target,items:[{key:"text",name:"selected"}],onDismiss:function(){w(void 0)}};return t&&t>-1&&w(r),!1},ariaLabelForListHeader:s,checkButtonAriaLabel:l,listProps:(0,e.__assign)({items:v,onRenderCell:function(e){return GR(e)}},h),layoutMode:vT.fixedColumns,onRenderDetailsHeader:function(t){if(null===t||void 0===t?void 0:t.columns[0].data){var n=null===t||void 0===t?void 0:t.columns[0].data.detailsListItems;if(n[0].props.leftColumn){var r={"aria-label":null===t||void 0===t?void 0:t.ariaLabel,leftColumn:t?O(null===t||void 0===t?void 0:t.columns[0].data.detailsHeaderColumn,null===t||void 0===t?void 0:t.columns[0],0):jt().createElement(jt().Fragment,null),rightColumn:t?O(null===t||void 0===t?void 0:t.columns[1].data.detailsHeaderColumn,null===t||void 0===t?void 0:t.columns[1],1):jt().createElement(jt().Fragment,null),onClickProps:void 0,listItemRole:"row",customListItemPadding:dN};return p?jt().createElement(cD,{stickyPosition:XT.Header},jt().createElement(xR,(0,e.__assign)({},r))):jt().createElement(xR,(0,e.__assign)({},r))}var o={"aria-label":null===t||void 0===t?void 0:t.ariaLabel,variant:n[0].props.variant,columns:t?t.columns.map((function(e,n){return O(null===t||void 0===t?void 0:t.columns[n].data.detailsHeaderColumn,e,n)})):[],onClickProps:void 0,listItemRole:"row",horizontalStack:!1,verticalAlign:"stretch",customListItemPadding:dN};return p?jt().createElement(cD,{stickyPosition:XT.Header},jt().createElement(SR,(0,e.__assign)({},o))):jt().createElement(SR,(0,e.__assign)({},o))}return jt().createElement(jt().Fragment,null)},styles:{headerWrapper:{"[role=row] > div":{display:"flex",flexGrow:1,"div ":{alignItems:"stretch","div > div":{height:"100%",maxWidth:"100%"}}}}},selectionMode:hD.none}),k?jt().createElement(TE,(0,e.__assign)({},k)):null];return jt().createElement(Tg,{styles:{root:{display:"flex",flexDirection:"column",flexWrap:"wrap",width:"100%",overflowX:"auto","[class=ms-Viewport]":{width:"100%"}}},doNotRenderFalsyValues:!0},p?jt().createElement(Tg,{styles:vN(p),doNotRenderFalsyValues:!0},H):jt().createElement(jt().Fragment,null,H))};function bN(e){var t=Gt.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return NS((function(){t.current=e}),[e]),av((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}var CN=function(e){var t=Gt.useRef(e);t.current=e,Gt.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])},SN={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},xN=Gt.forwardRef((function(t,n){var r,o=Gt.useRef(null),i=Gt.useRef(null),a=Gt.useRef(null),s=Sm(o,n),l=Kp(),c=null===(r=W_(!1))||void 0===r||r,u=Cm(SN,t),d=av({hasFocus:!1,focusStackId:eE("ftz-",u.id)}),p=u.children,h=u.componentRef,m=u.disabled,f=u.disableFirstFocus,g=u.forceFocusInsideTrap,v=u.focusPreviouslyFocusedInnerElement,y=u.firstFocusableSelector,b=u.firstFocusableTarget,C=u.disableRestoreFocus,S=void 0===C?u.ignoreExternalFocusing:C,x=u.isClickableOutsideFocusTrap,_=u.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:m?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},k=Gt.useCallback((function(e){e!==i.current&&e!==a.current&&rC(e)}),[]),w=bN((function(){if(o.current){var e=d.previouslyFocusedElementInTrapZone;if(v&&e&&zb(o.current,e))k(e);else{var t=null;if("string"===typeof b)t=o.current.querySelector(b);else if(b)t=b(o.current);else if(y){var n="string"===typeof y?y:y();t=o.current.querySelector("."+n)}t||(t=qb(o.current,o.current.firstChild,!1,!1,!1,!0)),t&&k(t)}}})),I=function(e){if(!m&&o.current){var t,n,r,s=e===d.hasFocus?(t=o.current,n=a.current,void 0===(r=!1)&&(r=!0),jb(t,n,r,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),qb(e,t,r,!1,!1,n,!1,!0)}(o.current,i.current,!0,!1);s&&(s===i.current||s===a.current?w():s.focus())}},P=bN((function(e){if(xN.focusStack=xN.focusStack.filter((function(e){return d.focusStackId!==e})),l){var t=l.activeElement;S||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!zb(o.current,t)&&t!==l.body||k(e)}})),T=bN((function(e){if(!m&&d.focusStackId===xN.focusStack.slice(-1)[0]){var t=e.target;t&&!zb(o.current,t)&&(l&&l.activeElement===l.body?setTimeout((function(){l&&l.activeElement===l.body&&(w(),d.hasFocus=!0)}),0):(w(),d.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return Gt.useEffect((function(){var e=[];return g&&e.push(oC(window,"focus",T,!0)),x||e.push(oC(window,"click",T,!0)),function(){e.forEach((function(e){return e()}))}}),[g,x]),Gt.useEffect((function(){if(!m&&(c||g)&&o.current){xN.focusStack.push(d.focusStackId);var e=u.elementToFocusOnDismiss||l.activeElement;return f||zb(o.current,e)||w(),function(){return P(e)}}}),[g,m]),Gt.useEffect((function(){if(!m&&_)return YC(o.current)}),[m,_,o]),CN((function(){delete d.previouslyFocusedElementInTrapZone})),function(e,t,n){Gt.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(h,d.previouslyFocusedElementInTrapZone,w),Gt.createElement("div",(0,e.__assign)({"aria-labelledby":u.ariaLabelledBy},Qh(u,Xh),{ref:s,onFocusCapture:function(e){var t;null===(t=u.onFocusCapture)||void 0===t||t.call(u,e),e.target===i.current?I(!0):e.target===a.current&&I(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==i.current&&e.target!==a.current&&(d.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=u.onBlurCapture)||void 0===t||t.call(u,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=l.activeElement),zb(o.current,n)||(d.hasFocus=!1)}}),Gt.createElement("div",(0,e.__assign)({},E,{ref:i})),p,Gt.createElement("div",(0,e.__assign)({},E,{ref:a})))}));xN.displayName="FocusTrapZone",xN.focusStack=[];var _N=lu,EN={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},kN=zg(),wN=function(t){function n(e){var n=t.call(this,e)||this;Mb(n);var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&function(){var e=nc();e&&e.body&&!iC&&(e.body.classList.add(aC),e.body.addEventListener("touchmove",uC,{passive:!1,capture:!1})),iC++}()},n.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(iC>0){var e=nc();e&&e.body&&1===iC&&(e.body.classList.remove(aC),e.body.removeEventListener("touchmove",uC)),iC--}}()},n.prototype.render=function(){var t=this.props,n=t.isDarkThemed,r=t.className,o=t.theme,i=t.styles,a=Qh(this.props,Xh),s=kN(i,{theme:o,className:r,isDark:n});return Gt.createElement("div",(0,e.__assign)({},a,{className:s.root}))},n}(Gt.Component),IN={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},PN=Ng(wN,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=Ju(IN,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Iu]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),TN=Ku((function(e,t){return{root:yc(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),DN={start:"touchstart",move:"touchmove",stop:"touchend"},AN={start:"mousedown",move:"mousemove",stop:"mouseup"},RN=function(t){function n(e){var n=t.call(this,e)||this;return n._currentEventType=AN,n._events=[],n._onMouseDown=function(e){var t=Gt.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=AN,n._onDragStart(e)},n._onMouseUp=function(e){var t=Gt.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=AN,n._onDragStop(e)},n._onTouchStart=function(e){var t=Gt.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=DN,n._onDragStart(e)},n._onTouchEnd=function(e){var t=Gt.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=DN,n._onDragStop(e)},n._onDragStart=function(e){if("number"===typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t}),n._events=[oC(document.body,n._currentEventType.move,n._onDrag,!0),oC(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return(0,e.__extends)(n,t),n.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},n.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},n.prototype.render=function(){var t=Gt.Children.only(this.props.children),n=t.props,r=this.props.position,o=this.state,i=o.position,a=o.isDragging,s=i.x,l=i.y;return r&&!a&&(s=r.x,l=r.y),Gt.cloneElement(t,{style:(0,e.__assign)((0,e.__assign)({},n.style),{transform:"translate(".concat(s,"px, ").concat(l,"px)")}),className:TN(n.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},n.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},n.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},n.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},n.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},n.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},n.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},n.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},n}(Gt.Component);function NN(e){var t=Gt.useState(e),n=t[0],r=t[1];return[n,{setTrue:av((function(){return function(){r(!0)}})),setFalse:av((function(){return function(){r(!1)}})),toggle:av((function(){return function(){r((function(e){return!e}))}}))}]}var MN={x:0,y:0},FN={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},BN=zg(),ON=Gt.forwardRef((function(t,n){var r,o,i,a,s,l=Cm(FN,t),c=l.allowTouchBodyScroll,u=l.className,d=l.children,p=l.containerClassName,h=l.scrollableContentClassName,m=l.elementToFocusOnDismiss,f=l.firstFocusableSelector,g=l.focusTrapZoneProps,v=l.forceFocusInsideTrap,y=l.disableRestoreFocus,b=void 0===y?l.ignoreExternalFocusing:y,C=l.isBlocking,S=l.isAlert,x=l.isClickableOutsideFocusTrap,_=l.isDarkOverlay,E=l.onDismiss,k=l.layerProps,w=l.overlay,I=l.isOpen,P=l.titleAriaId,T=l.styles,D=l.subtitleAriaId,A=l.theme,R=l.topOffsetFixed,N=l.responsiveMode,M=l.onLayerDidMount,F=l.isModeless,B=l.dragOptions,O=l.onDismissed,L=l.enableAriaHiddenSiblings,H=l.popupProps,V=Gt.useRef(null),z=Gt.useRef(null),U=Sm(z,null===g||void 0===g?void 0:g.componentRef),W=Gt.useRef(null),G=Sm(V,n),j=lE(G),q=eE("ModalFocusTrapZone",null===g||void 0===g?void 0:g.id),K=qp(),Y=sv(),X=Y.setTimeout,Q=Y.clearTimeout,Z=Gt.useState(I),J=Z[0],$=Z[1],ee=Gt.useState(I),te=ee[0],ne=ee[1],re=Gt.useState(MN),oe=re[0],ie=re[1],ae=Gt.useState(),se=ae[0],le=ae[1],ce=NN(!1),ue=ce[0],de=ce[1],pe=de.toggle,he=de.setFalse,me=av((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:c,scrollableContent:null,lastSetCoordinates:MN,events:new kx({})}})),fe=(B||{}).keepInBounds,ge=null!==S&&void 0!==S?S:C&&!F,ve=void 0===k?"":k.className,ye=BN(T,{theme:A,className:u,containerClassName:p,scrollableContentClassName:h,isOpen:I,isVisible:te,hasBeenOpened:me.hasBeenOpened,modalRectangleTop:se,topOffsetFixed:R,isModeless:F,layerClassName:ve,windowInnerHeight:null===K||void 0===K?void 0:K.innerHeight,isDefaultDragHandle:B&&!B.dragHandleSelector}),be=(0,e.__assign)((0,e.__assign)({eventBubblingEnabled:!1},k),{onLayerDidMount:k&&k.onLayerDidMount?k.onLayerDidMount:M,insertFirst:(null===k||void 0===k?void 0:k.insertFirst)||F,className:ye.layer}),Ce=Gt.useCallback((function(e){e?me.allowTouchBodyScroll?cC(e,me.events):lC(e,me.events):me.events.off(me.scrollableContent),me.scrollableContent=e}),[me]),Se=function(){var e=W.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(R&&le(t.top),fe&&(me.minPosition={x:-t.left,y:-t.top},me.maxPosition={x:t.left,y:t.top}))},xe=Gt.useCallback((function(e,t){var n=me.minPosition,r=me.maxPosition;return fe&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[fe,me]),_e=function(){var e;me.lastSetCoordinates=MN,he(),me.isInKeyboardMoveMode=!1,$(!1),ie(MN),null===(e=me.disposeOnKeyUp)||void 0===e||e.call(me),null===O||void 0===O||O()},Ee=Gt.useCallback((function(){he(),me.isInKeyboardMoveMode=!1}),[me,he]),ke=Gt.useCallback((function(e,t){ie((function(e){return{x:xe("x",e.x+t.delta.x),y:xe("y",e.y+t.delta.y)}}))}),[xe]),we=Gt.useCallback((function(){z.current&&z.current.focus()}),[]);Gt.useEffect((function(){Q(me.onModalCloseTimer),I&&(requestAnimationFrame((function(){return X(Se,0)})),$(!0),B&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===bp&&zb(me.scrollableContent,e.target)&&(pe(),e.preventDefault(),e.stopPropagation())};me.disposeOnKeyUp||(me.events.on(K,"keyup",e,!0),me.disposeOnKeyUp=function(){me.events.off(K,"keyup",e,!0),me.disposeOnKeyUp=void 0})}(),me.hasBeenOpened=!0,ne(!0)),!I&&J&&(me.onModalCloseTimer=X(_e,1e3*parseFloat(_N)),ne(!1))}),[J,I]),CN((function(){me.events.dispose()})),function(e,t){Gt.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(l,z);var Ie=Gt.createElement(xN,(0,e.__assign)({},g,{id:q,ref:W,componentRef:U,className:Gp(ye.main,null===g||void 0===g?void 0:g.className),elementToFocusOnDismiss:null!==(r=null===g||void 0===g?void 0:g.elementToFocusOnDismiss)&&void 0!==r?r:m,isClickableOutsideFocusTrap:null!==(o=null===g||void 0===g?void 0:g.isClickableOutsideFocusTrap)&&void 0!==o?o:F||x||!C,disableRestoreFocus:null!==(i=null===g||void 0===g?void 0:g.disableRestoreFocus)&&void 0!==i?i:b,forceFocusInsideTrap:(null!==(a=null===g||void 0===g?void 0:g.forceFocusInsideTrap)&&void 0!==a?a:v)&&!F,firstFocusableSelector:(null===g||void 0===g?void 0:g.firstFocusableSelector)||f,focusPreviouslyFocusedInnerElement:null===(s=null===g||void 0===g?void 0:g.focusPreviouslyFocusedInnerElement)||void 0===s||s,onBlur:me.isInKeyboardMoveMode?function(e){var t,n;null===(t=null===g||void 0===g?void 0:g.onBlur)||void 0===t||t.call(g,e),me.lastSetCoordinates=MN,me.isInKeyboardMoveMode=!1,null===(n=me.disposeOnKeyDown)||void 0===n||n.call(me)}:void 0}),B&&me.isInKeyboardMoveMode&&Gt.createElement("div",{className:ye.keyboardMoveIconContainer},B.keyboardMoveIconProps?Gt.createElement(Xx,(0,e.__assign)({},B.keyboardMoveIconProps)):Gt.createElement(Xx,{iconName:"move",className:ye.keyboardMoveIcon})),Gt.createElement("div",{ref:Ce,className:ye.scrollableContent,"data-is-scrollable":!0},B&&ue&&Gt.createElement(B.menu,{items:[{key:"move",text:B.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===bp)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===yp;if(ue&&t&&he(),!me.isInKeyboardMoveMode||e.keyCode!==yp&&e.keyCode!==gp||(me.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),me.isInKeyboardMoveMode){var n=!0,r=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case yp:ie(me.lastSetCoordinates);case gp:me.lastSetCoordinates=MN;break;case kp:ie((function(e){return{x:e.x,y:xe("y",e.y-r)}}));break;case Ip:ie((function(e){return{x:e.x,y:xe("y",e.y+r)}}));break;case Ep:ie((function(e){return{x:xe("x",e.x-r),y:e.y}}));break;case wp:ie((function(e){return{x:xe("x",e.x+r),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};me.lastSetCoordinates=oe,he(),me.isInKeyboardMoveMode=!0,me.events.on(K,"keydown",e,!0),me.disposeOnKeyDown=function(){me.events.off(K,"keydown",e,!0),me.disposeOnKeyDown=void 0}}},{key:"close",text:B.closeMenuItemText,onClick:_e}],onDismiss:he,alignTargetEdge:!0,coverTarget:!0,directionalHint:bv,directionalHintFixed:!0,shouldFocusOnMount:!0,target:me.scrollableContent}),d));return J&&j>=(N||tE.small)&&Gt.createElement(LS,(0,e.__assign)({ref:G},be),Gt.createElement(eS,(0,e.__assign)({role:ge?"alertdialog":"dialog",ariaLabelledBy:P,ariaDescribedBy:D,onDismiss:E,shouldRestoreFocus:!b,enableAriaHiddenSiblings:L,"aria-modal":!F},H),Gt.createElement("div",{className:ye.root,role:F?void 0:"document"},!F&&Gt.createElement(PN,(0,e.__assign)({"aria-hidden":!0,isDarkThemed:_,onClick:C?void 0:E,allowTouchBodyScroll:c},w)),B?Gt.createElement(RN,{handleSelector:B.dragHandleSelector||"#".concat(q),preventDragSelector:"button",onStart:Ee,onDragChange:ke,onStop:we,position:oe},Ie):Ie)))||null}));ON.displayName="Modal";var LN=Ng(ON,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,u=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,h=e.isDefaultDragHandle,m=e.windowInnerHeight,f=c.palette,g=c.effects,v=c.fonts,y=Ju(EN,c);return{root:[y.root,v.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(_N)},u&&"number"===typeof l&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[y.main,{boxShadow:g.elevation64,borderRadius:g.roundedCorner2,backgroundColor:f.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?Ru.Layer:void 0},d&&{pointerEvents:"auto"},u&&"number"===typeof l&&s&&{top:l},h&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:m},t)},o],layer:d&&[p,y.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:v.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});LN.displayName="Modal";var HN,VN,zN=zg(),UN=function(t){function n(e){var n=t.call(this,e)||this;return Mb(n),n}return(0,e.__extends)(n,t),n.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=zN(n,{theme:r,className:t}),Gt.createElement("div",{className:this._classNames.actions},Gt.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},n.prototype._renderChildrenAsActions=function(){var e=this;return Gt.Children.map(this.props.children,(function(t){return t?Gt.createElement("span",{className:e._classNames.action},t):null}))},n}(Gt.Component),WN={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},GN=Ng(UN,(function(e){var t=e.className,n=e.theme,r=Ju(WN,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}}),void 0,{scope:"DialogFooter"});GN.displayName="DialogFooter";var jN={width:"100%",maxWidth:"100%",minWidth:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",borderRadius:"0px"},qN={main:(HN={},HN[qv]=(0,e.__assign)({},jN),HN[jv]=(0,e.__assign)({},jN),HN),scrollableContent:(VN={},VN[qv]={minHeight:"100%"},VN[jv]={minHeight:"100%"},VN)},KN=function(e){if("smallAndMedium"===e.fullScreenViewports)return qN},YN={padding:"24px",smallScreenPadding:"16px",removeBodyBottomPadding:!1},XN={headerLeftRightPadding:"24px",withHeaderHorizontalLine:!1},QN={isStickyFooterWithText:!1,hasFooterBackground:!1,hasFooterHorizontalLine:!1},ZN=function(e){return yc({backgroundColor:e.palette.neutralHigh})},JN=function(e,t){var n,r;return void 0===t&&(t=XN),yc([null===(r=e.fonts)||void 0===r?void 0:r.xLarge,{color:e.semanticColors.bodyText,fontWeight:Cu.semibold,padding:t.withHeaderHorizontalLine?"16px ".concat(t.headerLeftRightPadding," 16px"):"16px ".concat(t.headerLeftRightPadding," 0"),borderBottom:t.withHeaderHorizontalLine?"1px solid ".concat(e.palette.neutralLighterAlt):void 0,selectors:(n={},n[jv]={padding:"16px"},n)}])},$N=function(e,t){return void 0===t&&(t=!1),{root:{color:e.palette.neutralPrimary,marginLeft:t?"-8px":"auto",marginRight:t?"auto":"-8px"},rootHovered:{color:e.palette.neutralDark}}},eM={itemProgress:{padding:0}},tM="dialogBody",nM=function(e,t){var n,r,o;if(!e)return{root:{height:"100%"}};var i=t?"auto":"60vh";return{root:(n={},n[e.forceStickyOnSmallScreens?Yv:Xv]={maxHeight:null!==(r=e.bodyMaxHeight)&&void 0!==r?r:i,minHeight:null!==(o=e.bodyMinHeight)&&void 0!==o?o:"auto",height:"100%",overflowY:"auto",outline:"none"},n)}},rM=function(e){var t;return Wd({main:(t={},t[e.forceStickyOnSmallScreens?Yv:Xv]={display:"flex",flexDirection:"column",overflowY:"hidden"},t)})},oM=function(e,t,n,r,o,i){var a,s=t?"".concat(t.height).concat(t.unit):void 0,l=n?parseInt(n,10):0;return Wd({main:(a={backgroundColor:e.palette.neutralHigh,borderRadius:o,maxWidth:n||"480px",minWidth:n||"auto",height:s,top:0},a[Kv]={maxWidth:n?Ov.l>l?n:"96%":"480px",minWidth:n?Ov.l>l?n:"96%":"auto"},a[qv]={margin:"16px",maxWidth:n&&Ov.m>l?n:"96%",minWidth:n?Ov.m>l?n:"96%":"auto",minHeight:t?"92%":void 0},a[jv]={margin:"8px",maxWidth:"96%",minWidth:"96%",minHeight:t?"96%":void 0},a),scrollableContent:{display:"flex",flexDirection:"column",maxHeight:"100%",height:"100%",minWidth:"288px",position:"relative"},root:void 0,layer:void 0,keyboardMoveIconContainer:void 0,keyboardMoveIcon:void 0},r,i?KN(i):void 0)},iM=function(t){var n,r,o=t.isFooterDisabled,i=t.richTextProps,a=t.textAlignment,s=void 0===a?"left":a,l=t.removeMarginTop,c=t.hasFullWidthButtons,u=(t.hasFooterBackground,(0,e.__rest)(t,["isFooterDisabled","richTextProps","textAlignment","removeMarginTop","hasFullWidthButtons","hasFooterBackground"]));if("secondary"===u.dialogType)r=[u.buttonLeft?jt().createElement(dk,(0,e.__assign)({},u.buttonLeft,{disabled:o||u.buttonLeft.disabled,key:1})):null,jt().createElement(dk,(0,e.__assign)({},u.buttonRight,{disabled:o||u.buttonRight.disabled,key:0}))];else{var d=o||u.buttonPrimary.disabled,p=o||(null===(n=u.buttonSecondary)||void 0===n?void 0:n.disabled);r="flow"===u.dialogType?[jt().createElement(dk,(0,e.__assign)({},u.buttonSecondary,{disabled:p,key:0})),jt().createElement(dk,(0,e.__assign)({},u.buttonPrimary,{disabled:d,type:"primary",key:1}))]:[jt().createElement(dk,(0,e.__assign)({},u.buttonPrimary,{disabled:d,type:"primary",key:0})),u.buttonSecondary&&jt().createElement(dk,(0,e.__assign)({},u.buttonSecondary,{disabled:p,key:1}))]}var h=c?"0px":void 0,m=c?"0px":void 0,f=l?"0px":void 0,g=c?"flex":void 0,v=c?"column":void 0;return jt().createElement(bb,{textAlignment:s,padding:i&&"12px 0 0 0",childrenGap:12},i?jt().createElement(ox,(0,e.__assign)({},i)):null,jt().createElement(GN,{styles:{actions:{marginTop:f,marginLeft:h,display:g,flexDirection:v},actionsRight:{marginRight:m,display:"flex",flexDirection:v,justifyContent:"flex-end"},action:{marginLeft:h,marginRight:m,display:g,flexDirection:v}}},r))},aM=function(t){var n=t.operationData,r=t.footerProps,o=function(e,t){var n;return void 0===t&&(t=QN),Wd({footer:{padding:"0 24px 24px 24px",borderTop:t.isStickyFooterWithText||t.hasFooterHorizontalLine?"1px solid ".concat(e.palette.neutralLighterAlt):"none",backgroundColor:t.isStickyFooterWithText||t.hasFooterBackground?e.palette.neutralMed:"transparent",selectors:(n={},n[jv]={padding:"0 16px 16px 16px"},n)}})}(dg(),{isStickyFooterWithText:!!(null===r||void 0===r?void 0:r.richTextProps),hasFooterBackground:null===r||void 0===r?void 0:r.hasFooterBackground,hasFooterHorizontalLine:null===r||void 0===r?void 0:r.hasFooterHorizontalLine}).footer,i=function(t){return jt().createElement(jt().Fragment,null,t?jt().createElement(Tg,{className:o,doNotRenderFalsyValues:!0},jt().createElement(iM,(0,e.__assign)({},t))):null)},a=i(r),s=r?(0,e.__assign)({isFooterDisabled:!0},r):void 0;if(n){var l=i(n.progressDialogProps?n.progressDialogProps.dialogFooterProps:s),c=function(e){return i(e.dialogFooterProps)};return jt().createElement(Xs,{operationData:n.progressViewOperationData,inertView:a,firstLoadView:l,updatingView:l,updateFailedView:c(n.errorDialogProps),finishedView:n.successDialogProps?c(n.successDialogProps):a,failedView:c(n.errorDialogProps)})}return a},sM="SearchBox",lM={root:{height:"auto"},icon:{fontSize:"12px"}},cM={iconName:"Clear"},uM={ariaLabel:"Clear text"},dM=zg(),pM=Gt.forwardRef((function(t,n){var r=t.ariaLabel,o=t.className,i=t.defaultValue,a=void 0===i?"":i,s=t.disabled,l=t.underlined,c=t.styles,u=t.labelText,d=t.placeholder,p=void 0===d?u:d,h=t.theme,m=t.clearButtonProps,f=void 0===m?uM:m,g=t.disableAnimation,v=void 0!==g&&g,y=t.showIcon,b=void 0!==y&&y,C=t.onClear,S=t.onBlur,x=t.onEscape,_=t.onSearch,E=t.onKeyDown,k=t.iconProps,w=t.role,I=t.onChange,P=t.onChanged,T=Gt.useState(!1),D=T[0],A=T[1],R=Gt.useRef(),N=ow(t.value,a,(function(e,t){e&&e.timeStamp===R.current||(R.current=null===e||void 0===e?void 0:e.timeStamp,null===I||void 0===I||I(e,t),null===P||void 0===P||P(t))})),M=N[0],F=N[1],B=String(M),O=Gt.useRef(null),L=Gt.useRef(null),H=Sm(O,n),V=eE(sM,t.id),z=f.onClick,U=dM(c,{theme:h,className:o,underlined:l,hasFocus:D,disabled:s,hasInput:B.length>0,disableAnimation:v,showIcon:b}),W=Qh(t,Bh,["className","placeholder","onFocus","onBlur","value","role"]),G=Gt.useCallback((function(e){var t;null===C||void 0===C||C(e),e.defaultPrevented||(F(""),null===(t=L.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[C,F]),j=Gt.useCallback((function(e){null===z||void 0===z||z(e),e.defaultPrevented||G(e)}),[z,G]),q=Gt.useCallback((function(e){A(!1),null===S||void 0===S||S(e)}),[S]),K=function(e){F(e.target.value,e)};return function(e,t,n){Gt.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.blur()},hasFocus:function(){return n}}}),[t,n])}(t.componentRef,L,D),Gt.createElement("div",{role:w,ref:H,className:U.root,onFocusCapture:function(e){var n;A(!0),null===(n=t.onFocus)||void 0===n||n.call(t,e)}},Gt.createElement("div",{className:U.iconContainer,onClick:function(){L.current&&(L.current.focus(),L.current.selectionStart=L.current.selectionEnd=0)},"aria-hidden":!0},Gt.createElement(Xx,(0,e.__assign)({iconName:"Search"},k,{className:U.icon}))),Gt.createElement("input",(0,e.__assign)({},W,{id:V,className:U.field,placeholder:p,onChange:K,onInput:K,onBlur:q,onKeyDown:function(e){switch(e.which){case yp:null===x||void 0===x||x(e),B&&!e.defaultPrevented&&G(e);break;case gp:_&&(_(B),e.preventDefault(),e.stopPropagation());break;default:null===E||void 0===E||E(e),e.defaultPrevented&&e.stopPropagation()}},value:B,disabled:s,role:"searchbox","aria-label":r,ref:L})),B.length>0&&Gt.createElement("div",{className:U.clearButton},Gt.createElement(qE,(0,e.__assign)({onBlur:q,styles:lM,iconProps:cM},f,{onClick:j}))))}));pM.displayName=sM;var hM={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};var mM,fM=Ng(pM,(function(e){var t,n,r,o,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,u=e.className,d=e.hasInput,p=e.disableAnimation,h=e.showIcon,m=a.palette,f=a.fonts,g=a.semanticColors,v=a.effects,y=Ju(hM,a),b={color:g.inputPlaceholderText,opacity:1},C=m.neutralSecondary,S=m.neutralPrimary,x=m.neutralLighter,_=m.neutralLighter,E=m.neutralLighter;return{root:[y.root,f.medium,Td,{color:g.inputText,backgroundColor:g.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:v.roundedCorner2,border:"1px solid ".concat(g.inputBorder),height:32,selectors:(t={},t[Iu]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(n={},n[Iu]={borderColor:"Highlight"},n)},t[":hover .".concat(y.iconContainer)]={color:g.inputIconHovered},t)},!c&&d&&{selectors:(r={},r[":hover .".concat(y.iconContainer)]={width:4},r[":hover .".concat(y.icon)]={opacity:0,pointerEvents:"none"},r)},c&&["is-active",{position:"relative"},Hu(g.inputFocusBorderAlt,s?0:v.roundedCorner2,s?"borderBottom":"border")],h&&[{selectors:(o={},o[":hover .".concat(y.iconContainer)]={width:32},o[":hover .".concat(y.icon)]={opacity:1},o)}],l&&["is-disabled",{borderColor:x,backgroundColor:E,pointerEvents:"none",cursor:"default",selectors:(i={},i[Iu]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",u],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:g.inputIcon,cursor:"text"},c&&{width:4},l&&{color:g.inputIconDisabled},!p&&{transition:"width ".concat(su)},h&&c&&{width:32}],icon:[y.icon,{opacity:1},c&&{opacity:0,pointerEvents:"none"},!p&&{transition:"opacity ".concat(su," 0s")},h&&c&&{opacity:1}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:_},"&:hover .ms-Button-icon":{color:S},".ms-Button":{borderRadius:Dp(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:C}}}],field:[y.field,Td,Ad(b),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:g.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"}),gM=function(t){var n=t["aria-label"],r=(0,e.__rest)(t,["aria-label"]);ll("SearchBox",r.id);var o=function(e){return{root:{backgroundColor:By(e,"neutralHigh")}}}(dg());return Fy("SearchBox",r),jt().createElement(fM,(0,e.__assign)({ariaLabel:n,styles:r.disabled?void 0:o},r))},vM=function(t){var n=t.title,r=t.titleAriaId,o=t.searchBoxProps,i=t.subtitle,a=t.closeButton,s=t.backButton,l=t.headerLeftRightPadding,c=t.headingTag,u=void 0===c?"h1":c,d=t.operationData,p=t.withHeaderHorizontalLine,h=dg(),m=JN(h,{headerLeftRightPadding:l||"24px",withHeaderHorizontalLine:p}),f=o?6:i?8:0,g=function(t){var n=jt().createElement(jt().Fragment,null);return t||a?(t&&(n="string"===typeof t?jt().createElement(tx,{type:"heading",tag:u,variant:"paneHeader",id:r,lines:2},t):"src"in t?jt().createElement(zk,(0,e.__assign)({},t,{id:r,height:24})):jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:"8px"},verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(zk,(0,e.__assign)({},t.image,{id:r,height:24})),jt().createElement(tx,{type:"heading",tag:u,variant:"paneHeader",lines:2},t.text))),jt().createElement(Tg,{className:m,tokens:{childrenGap:f},doNotRenderFalsyValues:!0},jt().createElement(Tg,{horizontal:!0,horizontalAlign:"space-between",styles:{root:{minHeight:"32px"}},doNotRenderFalsyValues:!0},s?jt().createElement(Tg,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},jt().createElement(qE,(0,e.__assign)({styles:$N(h,!0),iconProps:{iconName:"Back"}},s,{ariaLabel:s["aria-label"]})),n):n,a?jt().createElement("div",{style:{width:"24px",flexShrink:0}}):null),jt().createElement(Tg,{tokens:{childrenGap:16},doNotRenderFalsyValues:!0},o?jt().createElement(gM,(0,e.__assign)({},o)):null,i?jt().createElement(ox,(0,e.__assign)({},i)):null))):n},v=g(n);if(d){var y=jt().createElement(jt().Fragment,null,jt().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1},"aria-hidden":!0},jt().createElement(dy,{styles:eM})),d.progressDialogTitle?g(d.progressDialogTitle):v),b=g(d.errorDialogTitle);return jt().createElement(Xs,{operationData:d.progressViewOperationData,inertView:v,firstLoadView:y,updatingView:y,updateFailedView:b,finishedView:jt().createElement(jt().Fragment,null,d.successDialogTitle?g(d.successDialogTitle):v),failedView:b})}return v},yM=function(t){var n=t.closeButton,r=t.onCloseButtonClicked,o=t.headerLeftRightPadding,i=void 0===o?"24px":o,a=dg(),s=JN(a,{headerLeftRightPadding:i,withHeaderHorizontalLine:!1});return n?jt().createElement(Tg,{className:s,styles:{root:{position:"absolute",top:0,right:0}},doNotRenderFalsyValues:!0},jt().createElement(qE,(0,e.__assign)({styles:$N(a),iconProps:{iconName:"Cancel"},onClick:function(e){r&&e&&r(e)}},n,{ariaLabel:n["aria-label"]}))):null},bM=function(e){var t=e.subText,n=e.operationData,r=function(){var e;return yc({marginBottom:"24px",selectors:(e={},e[jv]={marginBottom:"16px"},e)})}(),o=function(e){return e?jt().createElement(Tg,{className:r,doNotRenderFalsyValues:!0},jt().createElement(Ib,{variant:"bodyPrimaryText"},e)):jt().createElement(jt().Fragment,null)},i=o(t),a=(null===n||void 0===n?void 0:n.progressSubText)?o(n.progressSubText):i;if(n){var s=o(n.errorSubText);return jt().createElement(Xs,{operationData:n.progressViewOperationData,inertView:i,firstLoadView:i,updatingView:a,updateFailedView:s,finishedView:n.successSubText?o(n.successSubText):i,failedView:s})}return i},CM=function(t){t.isBlocking;var n,r,o,i,a,s=t.showOverlay,l=void 0===s||s,c=t.headerLeftRightPadding,u=t.headingTag,d=t.withHeaderHorizontalLine,p=t.dialogStylesTemp,h=t.bodyStyleTemp,m=t.topOffsetFixed,f=void 0!==m&&m,g=t.minBodyHeight,v=t.staticBodyWidth,y=t.isOpen,b=void 0!==y&&y,C=t.isModeless,S=void 0!==C&&C,x=t.onDismiss,_=t.onDismissed,E=t.title,k=t.searchBoxProps,w=t.subtitle,I=t.subText,P=t.contentId,T=t.closeButton,D=t.backButton,A=t.dialogFooterProps,R=t.operationData,N=t.stickyHeaderFooter,M=t.removeBodyBottomPadding,F=t.borderRadius,B=void 0===F?"8px":F,O=t.hostId,L=t.fullScreenMode,H=t.children,V=(0,e.__rest)(t,["isBlocking","showOverlay","headerLeftRightPadding","headingTag","withHeaderHorizontalLine","dialogStylesTemp","bodyStyleTemp","topOffsetFixed","minBodyHeight","staticBodyWidth","isOpen","isModeless","onDismiss","onDismissed","title","searchBoxProps","subtitle","subText","contentId","closeButton","backButton","dialogFooterProps","operationData","stickyHeaderFooter","removeBodyBottomPadding","borderRadius","hostId","fullScreenMode","children"]);ll("Dialog",V.id),Fy("Dialog",V);var z=(0,Gt.useRef)(document.activeElement);(0,Gt.useEffect)((function(){return null===N||void 0===N||N.bodyMinHeight,function(){z.current&&z.current.focus()}}),[null===N||void 0===N?void 0:N.bodyMinHeight]);var U=eE("twoui"),W=dg(),G=function(e){var t;return void 0===e&&(e=YN),yc({padding:e.padding,paddingBottom:e.removeBodyBottomPadding?0:void 0,selectors:(t={},t[jv]={padding:e.smallScreenPadding,paddingBottom:e.removeBodyBottomPadding?0:void 0},t)})}({padding:h?h.padding:YN.padding,smallScreenPadding:h?h.smallScreenPadding:YN.smallScreenPadding,removeBodyBottomPadding:M}),j={isBlocking:!1,styles:oM(W,g,v,p,B,L),topOffsetFixed:f,isOpen:b,onDismiss:x,onDismissed:_,isModeless:S,overlay:{styles:{root:{opacity:l?void 0:0}},onClick:void 0},isClickableOutsideFocusTrap:!1,titleAriaId:U,containerClassName:N?rM(N).main:ZN(W),layerProps:{eventBubblingEnabled:!0,hostId:O},allowTouchBodyScroll:!0,firstFocusableSelector:(null===N||void 0===N?void 0:N.firstFocusOnContent)?tM:void 0},q=function(e){x&&e&&x(e)};return jt().createElement(LN,(0,e.__assign)({},j),jt().createElement(sI,{announcedComponent:nI},jt().createElement(vM,{title:E,titleAriaId:U,searchBoxProps:k,subtitle:w,closeButton:T,backButton:D,headerLeftRightPadding:c,headingTag:u,withHeaderHorizontalLine:d,operationData:R?{progressViewOperationData:R.progressViewOperationData,errorDialogTitle:null===(n=R.errorDialogProps)||void 0===n?void 0:n.title,successDialogTitle:null===(r=R.successDialogProps)||void 0===r?void 0:r.title,progressDialogTitle:null===(o=R.progressDialogProps)||void 0===o?void 0:o.title}:void 0,onCloseButtonClicked:q}),jt().createElement(Tg,{id:P,className:(null===N||void 0===N?void 0:N.firstFocusOnContent)?"".concat(G," ").concat(tM):G,styles:nM(N,g),tabIndex:(null===N||void 0===N?void 0:N.firstFocusOnContent)?-1:void 0,doNotRenderFalsyValues:!0},jt().createElement(bM,{subText:I,operationData:R?{progressViewOperationData:R.progressViewOperationData,errorSubText:R.errorDialogProps.subText,successSubText:null===(i=R.successDialogProps)||void 0===i?void 0:i.subText,progressSubText:null===(a=R.progressDialogProps)||void 0===a?void 0:a.subText}:void 0}),H),jt().createElement(aM,{operationData:R,footerProps:A}),jt().createElement(yM,{closeButton:T,onCloseButtonClicked:q,headerLeftRightPadding:c})))},SM=jt().createContext({openDialog:function(e,t){return Sn()},closeDialog:function(e){},switchToDialog:function(e,t){return Sn()}}),xM=function(t,n){switch(n.type){case"closeDialog":return!n.id&&t.length>0?t.slice(1):t.filter((function(e){return e.id!==n.id}));case"openDialog":return(0,e.__spreadArray)([{id:n.id,controlledDialog:n.dialog}],t.filter((function(e){return e.id!==n.id})),!0);default:return t}},_M=function(e){var t=e.children,n=(0,Gt.useReducer)(xM,[]),r=n[0],o=n[1],i=(0,Gt.useMemo)((function(){var e=function(e,t){var n=t;return n||(n=Sn()),o({type:"openDialog",dialog:e,id:n}),n},t=function(e){o({type:"closeDialog",id:e})};return{openDialog:e,closeDialog:t,switchToDialog:function(n,r){return t(),e(n,r)}}}),[o]),a=r.map((function(e){return jt().createElement("div",{key:e.id},e.controlledDialog)}));return jt().createElement(SM.Provider,{value:i},t,a)},EM=function(){return(0,Gt.useContext)(SM)},kM=function(e){var t=e.src,n=e.alt;return jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(zk,{src:t,alt:n,imageType:"altTextImage"})))},wM=function(e){var t=e.backgroundColor,n=void 0===t?"neutralHigh":t,r=e.anchor,o=void 0===r?"right":r,i=e.numberOfTitleLines,a=void 0===i?2:i,s=e.borderRadius,l=void 0===s?"4px":s,c=e.shadow,u=void 0!==c&&c,d=e.showDivider,p=void 0!==d&&d,h=dg(),m=ny(),f=!("s"===m||"m"===m),g="right"!==o&&f?"space-between":"end";return jt().createElement(Tg,{styles:iy(h,l,u,p),doNotRenderFalsyValues:!0},jt().createElement(vb,{totalSlots:12,backgroundColor:n},jt().createElement(gb,{slots:6},jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center"},jt().createElement(Cb,{padding:"22px 14px 22px 22px",key:"1"},jt().createElement(nw,{height:24,width:24})),jt().createElement(bb,{horizontalAlign:"start"},jt().createElement(Cb,{padding:"4px",key:"2"},jt().createElement(nw,{height:12,width:153})),2===a?jt().createElement(Cb,{padding:"4px",key:"3"},jt().createElement(nw,{height:8,width:153})):null))),jt().createElement(gb,{slots:6},jt().createElement(bb,{horizontal:!0,height:49,verticalAlign:"center",horizontalAlign:g},f?jt().createElement(Cb,{padding:"21px",key:"1"},jt().createElement(nw,{height:8,width:127})):null,jt().createElement(Cb,{padding:"3px 19px 3px 3px",key:"2"},jt().createElement(nw,{height:12,width:12}))))))};!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(mM||(mM={}));var IM,PM=GE,TM=function(){function t(){this._size=0}return t.prototype.updateOptions=function(t){for(var n=[],r=[],o=0,i=0;i<t.length;i++){var a=t[i],s=a.itemType,l=a.hidden;s===mM.Divider||s===mM.Header?(n.push(i),r.push(i)):l?r.push(i):o++}this._size=o,this._displayOnlyOptionsCache=n,this._notSelectableOptionsCache=r,this._cachedOptions=(0,e.__spreadArray)([],t,!0)},Object.defineProperty(t.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),t.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},t}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(IM||(IM={}));var DM,AM=zg();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(DM||(DM={}));var RM,NM,MM,FM,BM,OM=function(t){function n(n){var r=t.call(this,n)||this;r._panel=Gt.createRef(),r._animationCallback=null,r._hasCustomNavigation=!(!r.props.onRenderNavigation&&!r.props.onRenderNavigationContent),r.dismiss=function(e){r.props.onDismiss&&r.isActive&&r.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&r.close()},r._allowScrollOnPanel=function(e){e?r._allowTouchBodyScroll?cC(e,r._events):lC(e,r._events):r._events.off(r._scrollableContent),r._scrollableContent=e},r._onRenderNavigation=function(e){if(!r.props.onRenderNavigationContent&&!r.props.onRenderNavigation&&!r.props.hasCloseButton)return null;var t=r.props.onRenderNavigationContent,n=void 0===t?r._onRenderNavigationContent:t;return Gt.createElement("div",{className:r._classNames.navigation},n(e,r._onRenderNavigationContent))},r._onRenderNavigationContent=function(e){var t,n=e.closeButtonAriaLabel,o=e.hasCloseButton,i=e.onRenderHeader,a=void 0===i?r._onRenderHeader:i;if(o){var s=null===(t=r._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return Gt.createElement(Gt.Fragment,null,!r._hasCustomNavigation&&a(r.props,r._onRenderHeader,r._headerTextId),Gt.createElement(qE,{styles:s,className:r._classNames.closeButton,onClick:r._onPanelClick,ariaLabel:n,title:n,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},r._onRenderHeader=function(t,n,o){var i=t.headerText,a=t.headerTextProps,s=void 0===a?{}:a;return i?Gt.createElement("div",{className:r._classNames.header},Gt.createElement("div",(0,e.__assign)({id:o,role:"heading","aria-level":1},s,{className:Gp(r._classNames.headerText,s.className)}),i)):null},r._onRenderBody=function(e){return Gt.createElement("div",{className:r._classNames.content},e.children)},r._onRenderFooter=function(e){var t=r.props.onRenderFooterContent,n=void 0===t?null:t;return n?Gt.createElement("div",{className:r._classNames.footer},Gt.createElement("div",{className:r._classNames.footerInner},n())):null},r._animateTo=function(e){e===DM.open&&r.props.onOpen&&r.props.onOpen(),r._animationCallback=r._async.setTimeout((function(){r.setState({visibility:e}),r._onTransitionComplete(e)}),200)},r._clearExistingAnimationTimer=function(){null!==r._animationCallback&&r._async.clearTimeout(r._animationCallback)},r._onPanelClick=function(e){r.dismiss(e)},r._onTransitionComplete=function(e){r._updateFooterPosition(),e===DM.open&&r.props.onOpened&&r.props.onOpened(),e===DM.closed&&r.props.onDismissed&&r.props.onDismissed()};var o=r.props.allowTouchBodyScroll,i=void 0!==o&&o;return r._allowTouchBodyScroll=i,Mb(r),r.state={isFooterSticky:!1,visibility:DM.closed,id:bh("Panel")},r}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==DM.closed&&t.visibility!==DM.animatingClosed?e.isOpen||t.visibility!==DM.open&&t.visibility!==DM.animatingOpen?null:{visibility:DM.animatingClosed}:{visibility:DM.animatingOpen}},n.prototype.componentDidMount=function(){this._async=new Vb(this),this._events=new kx(this),this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:DM.animatingOpen})},n.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===DM.animatingOpen?this._animateTo(DM.open):this.state.visibility===DM.animatingClosed&&this._animateTo(DM.closed)),n&&!r?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.render=function(){var t=this.props,n=t.className,r=void 0===n?"":n,o=t.elementToFocusOnDismiss,i=t.firstFocusableSelector,a=t.focusTrapZoneProps,s=t.forceFocusInsideTrap,l=t.hasCloseButton,c=t.headerText,u=t.headerClassName,d=void 0===u?"":u,p=t.ignoreExternalFocusing,h=t.isBlocking,m=t.isFooterAtBottom,f=t.isLightDismiss,g=t.isHiddenOnDismiss,v=t.layerProps,y=t.overlayProps,b=t.popupProps,C=t.type,S=t.styles,x=t.theme,_=t.customWidth,E=t.onLightDismissClick,k=void 0===E?this._onPanelClick:E,w=t.onRenderNavigation,I=void 0===w?this._onRenderNavigation:w,P=t.onRenderHeader,T=void 0===P?this._onRenderHeader:P,D=t.onRenderBody,A=void 0===D?this._onRenderBody:D,R=t.onRenderFooter,N=void 0===R?this._onRenderFooter:R,M=this.state,F=M.isFooterSticky,B=M.visibility,O=M.id,L=C===IM.smallFixedNear||C===IM.customNear,H=Dp(x)?L:!L,V=C===IM.custom||C===IM.customNear?{width:_}:{},z=Qh(this.props,Xh),U=this.isActive,W=B===DM.animatingClosed||B===DM.animatingOpen;if(this._headerTextId=c&&O+"-headerText",!U&&!W&&!g)return null;this._classNames=AM(S,{theme:x,className:r,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:l,headerClassName:d,isAnimating:W,isFooterSticky:F,isFooterAtBottom:m,isOnRightSide:H,isOpen:U,isHiddenOnDismiss:g,type:C,hasCustomNavigation:this._hasCustomNavigation});var G,j=this._classNames,q=this._allowTouchBodyScroll;return h&&U&&(G=Gt.createElement(PN,(0,e.__assign)({className:j.overlay,isDarkThemed:!1,onClick:f?k:void 0,allowTouchBodyScroll:q},y))),Gt.createElement(LS,(0,e.__assign)({},v),Gt.createElement(eS,(0,e.__assign)({role:"dialog","aria-modal":h?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:j.hiddenPanel,enableAriaHiddenSiblings:!!U},b),Gt.createElement("div",(0,e.__assign)({"aria-hidden":!U&&W},z,{ref:this._panel,className:j.root}),G,Gt.createElement(xN,(0,e.__assign)({ignoreExternalFocusing:p,forceFocusInsideTrap:!(!h||g&&!U)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:j.main,style:V,elementToFocusOnDismiss:o}),Gt.createElement("div",{className:j.contentInner},Gt.createElement("div",{ref:this._allowScrollOnPanel,className:j.scrollableContent,"data-is-scrollable":!0},Gt.createElement("div",{className:j.commands,"data-is-visible":!0},I(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!l)&&T(this.props,this._onRenderHeader,this._headerTextId),A(this.props,this._onRenderBody),N(this.props,this._onRenderFooter)))))))},n.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:DM.animatingOpen}))},n.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:DM.animatingClosed})},Object.defineProperty(n.prototype,"isActive",{get:function(){return this.state.visibility===DM.open||this.state.visibility===DM.animatingOpen},enumerable:!1,configurable:!0}),n.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},n.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},n.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(zb(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},n.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:IM.smallFixedFar},n}(Gt.Component),LM={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},HM="100%",VM="auto",zM=272,UM=340,WM=592,GM=644,jM=940,qM="auto",KM=0,YM=48,XM=428,QM=176,ZM=((RM={})["@media (min-width: ".concat(Tu,"px)")]={width:UM},RM),JM=((NM={})["@media (min-width: ".concat(640,"px)")]={width:WM},NM["@media (min-width: ".concat(1024,"px)")]={width:GM},NM),$M=((MM={})["@media (min-width: ".concat(768,"px)")]={left:YM,width:VM},MM["@media (min-width: ".concat(Du,"px)")]={left:XM},MM),eF=((FM={})["@media (min-width: ".concat(Du,"px)")]={left:qM,width:jM},FM),tF=((BM={})["@media (min-width: ".concat(Du,"px)")]={left:QM},BM),nF=function(t){var n;switch(t){case IM.smallFixedFar:n=(0,e.__assign)({},ZM);break;case IM.medium:n=(0,e.__assign)((0,e.__assign)({},ZM),JM);break;case IM.large:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},ZM),JM),$M);break;case IM.largeFixed:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},ZM),JM),$M),eF);break;case IM.extraLarge:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},ZM),JM),$M),tF)}return n},rF={paddingLeft:"24px",paddingRight:"24px"},oF=Ng(OM,(function(t){var n,r,o,i,a=t.className,s=t.focusTrapZoneClassName,l=t.hasCloseButton,c=t.headerClassName,u=t.isAnimating,d=t.isFooterSticky,p=t.isFooterAtBottom,h=t.isOnRightSide,m=t.isOpen,f=t.isHiddenOnDismiss,g=t.hasCustomNavigation,v=t.theme,y=t.type,b=void 0===y?IM.smallFixedFar:y,C=v.effects,S=v.fonts,x=v.semanticColors,_=Ju(LM,v),E=b===IM.custom||b===IM.customNear;return{root:[_.root,v.fonts.medium,m&&_.isOpen,l&&_.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},E&&h&&_.custom,E&&!h&&_.customNear,a],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&u&&xu.fadeIn100,!m&&u&&xu.fadeOut100],hiddenPanel:[!m&&!u&&f&&{visibility:"hidden"}],main:[_.main,{backgroundColor:x.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:qM,right:KM,width:HM,selectors:(0,e.__assign)((n={},n[Iu]={borderLeft:"3px solid ".concat(x.variantBorder),borderRight:"3px solid ".concat(x.variantBorder)},n),nF(b))},b===IM.smallFluid&&{left:KM},b===IM.smallFixedNear&&{left:KM,right:qM,width:zM},b===IM.customNear&&{right:"auto",left:0},E&&{maxWidth:"100vw"},m&&u&&!h&&xu.slideRightIn40,m&&u&&h&&xu.slideLeftIn40,!m&&u&&!h&&xu.slideLeftOut40,!m&&u&&h&&xu.slideRightOut40,s],commands:[_.commands,{backgroundColor:x.bodyBackground,paddingTop:18,selectors:(r={},r["@media (min-height: ".concat(Tu,"px)")]={position:"sticky",top:0,zIndex:1},r)},g&&{paddingTop:"inherit"}],navigation:[_.navigation,{display:"flex",justifyContent:"flex-end"},g&&{height:"44px"}],contentInner:[_.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[_.header,rF,{alignSelf:"flex-start"},l&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[_.headerText,S.xLarge,{color:x.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},c],scrollableContent:[_.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[_.content,rF,{paddingBottom:20},p&&{selectors:(o={},o["@media (min-height: ".concat(Tu,"px)")]={flexGrow:1},o)}],footer:[_.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(cu," ").concat(au),selectors:(i={},i["@media (min-height: ".concat(Tu,"px)")]={position:"sticky",bottom:0},i)},d&&{backgroundColor:x.bodyBackground,borderTopColor:x.variantBorder}],footerInner:[_.footerInner,rF,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[_.closeButton,{marginRight:14,color:v.palette.neutralSecondary,fontSize:Su.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:v.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"});function iF(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=e[o[r]];i&&n.push(i)}return n}var aF=zg(),sF={options:[]};var lF=Gt.forwardRef((function(t,n){var r=Cm(sF,t),o=Gt.useRef(null),i=Sm(n,o),a=lE(o,r.responsiveMode),s=function(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,o=e.defaultSelectedKey,i=e.selectedKey,a=e.options,s=e.multiSelect,l=W_(a),c=Gt.useState([]),u=c[0],d=c[1],p=a!==l,h=W_(t=s?p&&void 0!==n?n:r:p&&void 0!==o?o:i);return Gt.useEffect((function(){var e=function(){return a.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},n=function(e){return Tx(a,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&l||t===h&&!p||d(function(){if(void 0===t)return s?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var r=[],o=0,i=t;o<i.length;o++){var a,l=i[o];-1!==(a=n(l))&&r.push(a)}return r}())}),[p,s,l,h,a,t]),[u,d]}(r),l=s[0],c=s[1];return Gt.createElement(hF,(0,e.__assign)({},r,{responsiveMode:a,hoisted:{rootRef:i,selectedIndices:l,setSelectedIndices:c}}))}));lF.displayName="DropdownBase";var cF,uF,dF,pF,hF=function(t){function n(n){var r=t.call(this,n)||this;r._host=Gt.createRef(),r._focusZone=Gt.createRef(),r._dropDown=Gt.createRef(),r._scrollIdleDelay=250,r._sizePosCache=new TM,r._requestAnimationFrame=function(e){var t;return function(n){t||(t=new Set,Nb(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var r=requestAnimationFrame((function(){t.delete(r),n()}));t.add(r)}}(r),r.dismissMenu=function(){r.state.isOpen&&r.setState({isOpen:!1})},r._onChange=function(t,n,o,i,a){var s=r.props,l=s.onChange,c=s.onChanged;if(l||c){var u=a?(0,e.__assign)((0,e.__assign)({},n[o]),{selected:!i}):n[o];l&&l((0,e.__assign)((0,e.__assign)({},t),{target:r._dropDown.current}),u,o),c&&c(u,o)}},r._getPlaceholder=function(){return r.props.placeholder||r.props.placeHolder},r._getTitle=function(e,t){var n=r.props.multiSelectDelimiter,o=void 0===n?", ":n;return e.map((function(e){return e.text})).join(o)},r._onRenderTitle=function(e){return Gt.createElement(Gt.Fragment,null,r._getTitle(e))},r._onRenderPlaceholder=function(e){return r._getPlaceholder()?Gt.createElement(Gt.Fragment,null,r._getPlaceholder()):null},r._onRenderContainer=function(t){var n=t.calloutProps,o=t.panelProps,i=r.props,a=i.responsiveMode,s=i.dropdownWidth,l=a<=tE.medium,c={firstFocusableTarget:"#".concat(r._listId,"1")},u=r._classNames.subComponentStyles?r._classNames.subComponentStyles.panel:void 0,d=void 0,p=void 0;return"auto"===s?p=r._dropDown.current?r._dropDown.current.clientWidth:0:d=s||(r._dropDown.current?r._dropDown.current.clientWidth:0),l?Gt.createElement(oF,(0,e.__assign)({closeButtonAriaLabel:"Close",focusTrapZoneProps:c,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:r._onDismiss,styles:u},o),r._renderFocusableList(t)):Gt.createElement(HS,(0,e.__assign)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:_v,calloutWidth:d,calloutMinWidth:p},n,{className:r._classNames.callout,target:r._dropDown.current,onDismiss:r._onDismiss,onScroll:r._onScroll,onPositioned:r._onPositioned}),r._renderFocusableList(t))},r._onRenderCaretDown=function(e){return Gt.createElement(Xx,{className:r._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},r._onRenderList=function(t){var n=t.onRenderItem,o=void 0===n?r._onRenderItem:n,i={items:[]},a=[],s=function(){var t=i.id?[Gt.createElement("div",{role:"group",key:i.id,"aria-labelledby":i.id},i.items)]:i.items;a=(0,e.__spreadArray)((0,e.__spreadArray)([],a,!0),t,!0),i={items:[]}};return t.options.forEach((function(t,n){!function(t,n){switch(t.itemType){case mM.Header:i.items.length>0&&s();var a=r._id+t.key;i.items.push(o((0,e.__assign)((0,e.__assign)({id:a},t),{index:n}),r._onRenderItem)),i.id=a;break;case mM.Divider:n>0&&i.items.push(o((0,e.__assign)((0,e.__assign)({},t),{index:n}),r._onRenderItem)),i.items.length>0&&s();break;default:i.items.push(o((0,e.__assign)((0,e.__assign)({},t),{index:n}),r._onRenderItem))}}(t,n)})),i.items.length>0&&s(),Gt.createElement(Gt.Fragment,null,a)},r._onRenderItem=function(e){switch(e.itemType){case mM.Divider:return r._renderSeparator(e);case mM.Header:return r._renderHeader(e);default:return r._renderOption(e)}},r._renderOption=function(t){var n,o=r.props,i=o.onRenderOption,a=void 0===i?r._onRenderOption:i,s=o.hoisted.selectedIndices,l=void 0===s?[]:s,c=!(void 0===t.index||!l)&&l.indexOf(t.index)>-1,u=t.hidden?r._classNames.dropdownItemHidden:c&&!0===t.disabled?r._classNames.dropdownItemSelectedAndDisabled:c?r._classNames.dropdownItemSelected:!0===t.disabled?r._classNames.dropdownItemDisabled:r._classNames.dropdownItem,d=t.title,p=r._listId+t.index,h=null!==(n=t.id)&&void 0!==n?n:p+"-label",m=r._classNames.subComponentStyles?r._classNames.subComponentStyles.multiSelectItem:void 0;return r.props.multiSelect?Gt.createElement(JP,{id:p,key:t.key,disabled:t.disabled,onChange:r._onItemClick(t),inputProps:(0,e.__assign)({"aria-selected":c,onMouseEnter:r._onItemMouseEnter.bind(r,t),onMouseLeave:r._onMouseItemLeave.bind(r,t),onMouseMove:r._onItemMouseMove.bind(r,t),role:"option"},{"data-index":t.index,"data-is-focusable":!(t.disabled||t.hidden)}),label:t.text,title:d,onRenderLabel:r._onRenderItemLabel.bind(r,(0,e.__assign)((0,e.__assign)({},t),{id:h})),className:Gp(u,"is-multi-select"),checked:c,styles:m,ariaPositionInSet:t.hidden?void 0:r._sizePosCache.positionInSet(t.index),ariaSetSize:t.hidden?void 0:r._sizePosCache.optionSetSize,ariaLabel:t.ariaLabel,ariaLabelledBy:t.ariaLabel?void 0:h}):Gt.createElement(PM,{id:p,key:t.key,"data-index":t.index,"data-is-focusable":!t.disabled,disabled:t.disabled,className:u,onClick:r._onItemClick(t),onMouseEnter:r._onItemMouseEnter.bind(r,t),onMouseLeave:r._onMouseItemLeave.bind(r,t),onMouseMove:r._onItemMouseMove.bind(r,t),role:"option","aria-selected":c?"true":"false",ariaLabel:t.ariaLabel,title:d,"aria-posinset":r._sizePosCache.positionInSet(t.index),"aria-setsize":r._sizePosCache.optionSetSize},a(t,r._onRenderOption))},r._onRenderOption=function(e){return Gt.createElement("span",{className:r._classNames.dropdownOptionText},e.text)},r._onRenderMultiselectOption=function(e){return Gt.createElement("span",{id:e.id,"aria-hidden":"true",className:r._classNames.dropdownOptionText},e.text)},r._onRenderItemLabel=function(e){var t=r.props.onRenderOption;return(void 0===t?r._onRenderMultiselectOption:t)(e,r._onRenderMultiselectOption)},r._onPositioned=function(e){r._focusZone.current&&r._requestAnimationFrame((function(){var e=r.props.hoisted.selectedIndices;if(r._focusZone.current)if(!r._hasBeenPositioned&&e&&e[0]&&!r.props.options[e[0]].disabled){var t=nc().getElementById("".concat(r._id,"-list").concat(e[0]));t&&r._focusZone.current.focusElement(t),r._hasBeenPositioned=!0}else r._focusZone.current.focus()})),r.state.calloutRenderEdge&&r.state.calloutRenderEdge===e.targetEdge||r.setState({calloutRenderEdge:e.targetEdge})},r._onItemClick=function(e){return function(t){e.disabled||(r.setSelectedIndex(t,e.index),r.props.multiSelect||r.setState({isOpen:!1}))}},r._onScroll=function(){r._isScrollIdle||void 0===r._scrollIdleTimeoutId?r._isScrollIdle=!1:(clearTimeout(r._scrollIdleTimeoutId),r._scrollIdleTimeoutId=void 0),r._scrollIdleTimeoutId=window.setTimeout((function(){r._isScrollIdle=!0}),r._scrollIdleDelay)},r._onMouseItemLeave=function(e,t){if(!r._shouldIgnoreMouseEvent()&&r._host.current)if(r._host.current.setActive)try{r._host.current.setActive()}catch(eDe){}else r._host.current.focus()},r._onDismiss=function(){r.setState({isOpen:!1})},r._onDropdownBlur=function(e){r._isDisabled()||r.state.isOpen||(r.setState({hasFocus:!1}),r.props.onBlur&&r.props.onBlur(e))},r._onDropdownKeyDown=function(e){if(!r._isDisabled()&&(r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e),!r.props.onKeyDown||(r.props.onKeyDown(e),!e.defaultPrevented))){var t,n=r.props.hoisted.selectedIndices.length?r.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=r.state.isOpen;switch(e.which){case gp:r.setState({isOpen:!i});break;case yp:if(!i)return;r.setState({isOpen:!1});break;case kp:if(o){if(i){r.setState({isOpen:!1});break}return}r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,-1,n-1,n));break;case Ip:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,1,n+1,n));break;case _p:r.props.multiSelect||(t=r._moveIndex(e,1,0,n));break;case xp:r.props.multiSelect||(t=r._moveIndex(e,-1,r.props.options.length-1,n));break;case bp:break;default:return}t!==n&&(e.stopPropagation(),e.preventDefault())}},r._onDropdownKeyUp=function(e){if(!r._isDisabled()){var t=r._shouldHandleKeyUp(e),n=r.state.isOpen;r.props.onKeyUp&&(r.props.onKeyUp(e),e.defaultPrevented)||(e.which===bp?(r.setState({isOpen:!n}),e.stopPropagation(),e.preventDefault()):t&&n&&r.setState({isOpen:!1}))}},r._onZoneKeyDown=function(e){var t,n,o;r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e);var i=e.altKey||e.metaKey;switch(e.which){case kp:i?r.setState({isOpen:!1}):r._host.current&&(o=Wb(r._host.current,r._host.current.lastChild,!0));break;case _p:case xp:case Cp:case Sp:break;case Ip:!i&&r._host.current&&(o=Ub(r._host.current,r._host.current.firstChild,!0));break;case yp:r.setState({isOpen:!1});break;case fp:r.setState({isOpen:!1});var a=nc();a&&(e.shiftKey?null===(t=jb(a.body,r._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(n=qb(a.body,r._dropDown.current,!1,!1,!0,!0))||void 0===n||n.focus());break;default:return}o&&o.focus(),e.stopPropagation(),e.preventDefault()},r._onZoneKeyUp=function(e){r._shouldHandleKeyUp(e)&&r.state.isOpen&&(r.setState({isOpen:!1}),e.preventDefault())},r._onDropdownClick=function(e){if(!r.props.onClick||(r.props.onClick(e),!e.defaultPrevented)){var t=r.state.isOpen;r._isDisabled()||r._shouldOpenOnFocus()||r.setState({isOpen:!t}),r._isFocusedByClick=!1}},r._onDropdownMouseDown=function(){r._isFocusedByClick=!0},r._onFocus=function(e){if(!r._isDisabled()){r.props.onFocus&&r.props.onFocus(e);var t={hasFocus:!0};r._shouldOpenOnFocus()&&(t.isOpen=!0),r.setState(t)}},r._isDisabled=function(){var e=r.props.disabled,t=r.props.isDisabled;return void 0===e&&(e=t),e},r._onRenderLabel=function(e){var t=e.label,n=e.required,o=e.disabled,i=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return t?Gt.createElement(ub,{className:r._classNames.label,id:r._labelId,required:n,styles:i,disabled:o},t):null},Mb(r);n.multiSelect,n.selectedKey,n.selectedKeys,n.defaultSelectedKey,n.defaultSelectedKeys;var o=n.options;return r._id=n.id||bh("Dropdown"),r._labelId=r._id+"-label",r._listId=r._id+"-list",r._optionId=r._id+"-option",r._isScrollIdle=!0,r._hasBeenPositioned=!1,r._sizePosCache.updateOptions(o),r.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},r}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"selectedOptions",{get:function(){var e=this.props;return iF(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),n.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},n.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},n.prototype.render=function(){var t=this._id,n=this.props,r=n.className,o=n.label,i=n.options,a=n.ariaLabel,s=n.required,l=n.errorMessage,c=n.styles,u=n.theme,d=n.panelProps,p=n.calloutProps,h=n.onRenderTitle,m=void 0===h?this._getTitle:h,f=n.onRenderContainer,g=void 0===f?this._onRenderContainer:f,v=n.onRenderCaretDown,y=void 0===v?this._onRenderCaretDown:v,b=n.onRenderLabel,C=void 0===b?this._onRenderLabel:b,S=n.onRenderItem,x=void 0===S?this._onRenderItem:S,_=n.hoisted.selectedIndices,E=this.state,k=E.isOpen,w=E.calloutRenderEdge,I=E.hasFocus,P=n.onRenderPlaceholder||n.onRenderPlaceHolder||this._getPlaceholder;i!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(i);var T=iF(i,_),D=Qh(n,Xh),A=this._isDisabled(),R=t+"-errorMessage";this._classNames=aF(c,{theme:u,className:r,hasError:!!(l&&l.length>0),hasLabel:!!o,isOpen:k,required:s,disabled:A,isRenderingPlaceholder:!T.length,panelClassName:d?d.className:void 0,calloutClassName:p?p.className:void 0,calloutRenderEdge:w});var N=!!l&&l.length>0;return Gt.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":k?this._listId:void 0},C(this.props,this._onRenderLabel),Gt.createElement("div",(0,e.__assign)({"data-is-focusable":!A,"data-ktp-target":!0,ref:this._dropDown,id:t,tabIndex:A?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":k?"true":"false","aria-label":a,"aria-labelledby":o&&!a?Ox(this._labelId,this._optionId):void 0,"aria-describedby":N?this._id+"-errorMessage":void 0,"aria-required":s,"aria-disabled":A,"aria-controls":k?this._listId:void 0},D,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),Gt.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":I?"polite":void 0,"aria-atomic":!!I||void 0,"aria-invalid":N},T.length?m(T,this._onRenderTitle):P(n,this._onRenderPlaceholder)),Gt.createElement("span",{className:this._classNames.caretDownWrapper},y(n,this._onRenderCaretDown))),k&&g((0,e.__assign)((0,e.__assign)({},n),{onDismiss:this._onDismiss,onRenderItem:x}),this._onRenderContainer),N&&Gt.createElement("div",{role:"alert",id:R,className:this._classNames.errorMessage},l))},n.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},n.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!!c&&c.indexOf(t)>-1,d=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===o&&void 0===i){if(a||s||t!==c[0]){if(a)if(d=c?this._copyArray(c):[],u){var p=d.indexOf(t);p>-1&&d.splice(p,1)}else d.push(t);else d=[t];e.persist(),this.props.hoisted.setSelectedIndices(d),this._onChange(e,r,t,u,a)}}else this._onChange(e,r,t,u,a)},n.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},n.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var i=0;o[n].itemType===mM.Header||o[n].itemType===mM.Divider||o[n].disabled;){if(i>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},n.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,o=e.ariaLabel,i=e.multiSelect;return Gt.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},Gt.createElement(g_,{ref:this._focusZone,direction:e_.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":o,"aria-labelledby":r&&!o?this._labelId:void 0,"aria-multiselectable":i},n(e,this._onRenderList)))},n.prototype._renderSeparator=function(e){var t=e.index,n=e.key,r=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?Gt.createElement("div",{role:"presentation",key:n,className:r}):null},n.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,o=e.id,i=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return Gt.createElement("div",{id:o,key:r,className:i},n(e,this._onRenderOption))},n.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},n.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},n.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},n.prototype._isAltOrMeta=function(e){return e.which===vp||"Meta"===e.key},n.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(v_()||y_())},n.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},n.defaultProps={options:[]},n}(Gt.Component),mF={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},fF=((cF={})["".concat(Iu,", ").concat(Pu.replace("@media ",""))]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),cF),gF={selectors:(0,e.__assign)((uF={},uF[Iu]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},uF[".ms-Checkbox-checkbox"]=(dF={},dF[Iu]={borderColor:"HighlightText"},dF),uF),fF)},vF={selectors:(pF={},pF[Iu]={borderColor:"Highlight"},pF)},yF=Au(0,Tu),bF=Ng(lF,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h,m=t.theme,f=t.hasError,g=t.hasLabel,v=t.className,y=t.isOpen,b=t.disabled,C=t.required,S=t.isRenderingPlaceholder,x=t.panelClassName,_=t.calloutClassName,E=t.calloutRenderEdge;if(!m)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var k=Ju(mF,m),w=m.palette,I=m.semanticColors,P=m.effects,T=m.fonts,D={color:I.menuItemTextHovered},A={color:I.menuItemText},R={borderColor:I.errorText},N=[k.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],M=[k.dropdownItemHeader,(0,e.__assign)((0,e.__assign)({},T.medium),{fontWeight:Cu.semibold,color:I.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(n={},n[Iu]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)})],F=I.menuItemBackgroundPressed,B=function(e){var t,n;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:I.menuItemTextHovered,backgroundColor:e?F:I.menuItemBackgroundHovered},gF],"&.is-multi-select:hover":[{backgroundColor:e?F:"transparent"},gF],"&:active:hover":[{color:I.menuItemTextHovered,backgroundColor:e?I.menuItemBackgroundHovered:I.menuItemBackgroundPressed},gF]},t[".".concat(Nu," &:focus:after")]=(n={left:0,top:0,bottom:0,right:0},n[Iu]={inset:"2px"},n),t[Iu]={border:"none"},t)}},O=(0,e.__spreadArray)((0,e.__spreadArray)([],N,!0),[{backgroundColor:F,color:I.menuItemTextHovered},B(!0),gF],!1),L=(0,e.__spreadArray)((0,e.__spreadArray)([],N,!0),[{color:I.disabledText,cursor:"default",selectors:(r={},r[Iu]={color:"GrayText",border:"none"},r)}],!1),H=E===$b.bottom?"".concat(P.roundedCorner2," ").concat(P.roundedCorner2," 0 0"):"0 0 ".concat(P.roundedCorner2," ").concat(P.roundedCorner2),V=E===$b.bottom?"0 0 ".concat(P.roundedCorner2," ").concat(P.roundedCorner2):"".concat(P.roundedCorner2," ").concat(P.roundedCorner2," 0 0");return{root:[k.root,v],label:k.label,dropdown:[k.dropdown,Td,T.medium,{color:I.menuItemText,borderColor:I.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(o={},o["&:hover ."+k.title]=[!b&&D,{borderColor:y?w.neutralSecondary:w.neutralPrimary},vF],o["&:focus ."+k.title]=[!b&&D,{selectors:(i={},i[Iu]={color:"Highlight"},i)}],o["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:b?"none":"2px solid ".concat(w.themePrimary),borderRadius:"2px",selectors:(a={},a[Iu]={color:"Highlight"},a)}],o["&:active ."+k.title]=[!b&&D,{borderColor:w.themePrimary},vF],o["&:hover ."+k.caretDown]=!b&&A,o["&:focus ."+k.caretDown]=[!b&&A,{selectors:(s={},s[Iu]={color:"Highlight"},s)}],o["&:active ."+k.caretDown]=!b&&A,o["&:hover ."+k.titleIsPlaceHolder]=!b&&A,o["&:focus ."+k.titleIsPlaceHolder]=!b&&A,o["&:active ."+k.titleIsPlaceHolder]=!b&&A,o["&:hover ."+k.titleHasError]=R,o["&:active ."+k.titleHasError]=R,o)},y&&"is-open",b&&"is-disabled",C&&"is-required",C&&!g&&{selectors:(l={":before":{content:"'*'",color:I.errorText,position:"absolute",top:-5,right:-10}},l[Iu]={selectors:{":after":{right:-14}}},l)}],title:[k.title,Td,{backgroundColor:I.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:I.inputBorder,borderRadius:y?H:P.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},S&&[k.titleIsPlaceHolder,{color:I.inputPlaceholderText}],f&&[k.titleHasError,R],b&&{backgroundColor:I.disabledBackground,border:"none",color:I.disabledText,cursor:"default",selectors:(c={},c[Iu]=(0,e.__assign)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}],caretDownWrapper:[k.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!b&&{cursor:"pointer"}],caretDown:[k.caretDown,{color:w.neutralSecondary,fontSize:T.small.fontSize,pointerEvents:"none"},b&&{color:I.disabledText,selectors:(u={},u[Iu]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)}],errorMessage:(0,e.__assign)((0,e.__assign)({color:I.errorText},m.fonts.small),{paddingTop:5}),callout:[k.callout,{boxShadow:P.elevation8,borderRadius:V,selectors:(d={},d[".ms-Callout-main"]={borderRadius:V},d)},_],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[k.dropdownItems,{display:"block"}],dropdownItem:(0,e.__spreadArray)((0,e.__spreadArray)([],N,!0),[B()],!1),dropdownItemSelected:O,dropdownItemDisabled:L,dropdownItemSelectedAndDisabled:[O,L,{backgroundColor:"transparent"}],dropdownItemHidden:(0,e.__spreadArray)((0,e.__spreadArray)([],N,!0),[{display:"none"}],!1),dropdownDivider:[k.dropdownDivider,{height:1,backgroundColor:I.bodyDivider}],dropdownDividerHidden:[k.dropdownDivider,{display:"none"}],dropdownOptionText:[k.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:M,dropdownItemHeaderHidden:(0,e.__spreadArray)((0,e.__spreadArray)([],M,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(p={},p[".".concat(Nu," &:focus + label::before")]={outlineOffset:"0px"},p)}},panel:{root:[x],main:{selectors:(h={},h[yF]={width:272},h)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});bF.displayName="Dropdown";var CF,SF,xF={height:45},_F=function(e){var t=e.width,n=void 0===t?145:t;return jt().createElement(Tg,{style:xF,verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(nw,{width:n,height:16}))},EF=function(){return jt().createElement(Tg,{verticalFill:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(sb,{size:qy.medium}))},kF=function(t){var n,r=t["aria-label"],o=t["data-bi-prefix"],i=t.value,a=t.pageArea,s=t.placeholder,l=t.options,c=t.onChange,u=t.label,d=t.width,p=t.calloutWidth,h=t.calloutPosition,m=void 0===h?"bottom-center":h,f=t.alignTitle,g=t.maxHeight,v=t.descriptions,y=void 0!==v&&v,b=t.disabled,C=void 0!==b&&b,S=t.multiSelect,x=void 0!==S&&S,_=t.dropdownStyle,E=void 0===_?"default":_,k=t.title,w=t.componentRef,I=t.calloutPreventDismissOnScroll,P=void 0!==I&&I,T=t.required,D=t.disableResponsiveMode,A=void 0!==D&&D,R=(0,e.__rest)(t,["aria-label","data-bi-prefix","value","pageArea","placeholder","options","onChange","label","width","calloutWidth","calloutPosition","alignTitle","maxHeight","descriptions","disabled","multiSelect","dropdownStyle","title","componentRef","calloutPreventDismissOnScroll","required","disableResponsiveMode"]),N=Di();ll("Dropdown",R.id),Fy("Dropdown",R);var M,F=dg(),B=(0,Gt.useRef)(null),O="borderless"===E?F.semanticColors.bodyBackground:F.palette.neutralHigh,L={title:{backgroundColor:C?F.palette.neutralLighterAlt:O,borderColor:"borderless"===E?"transparent":void 0,textAlign:f},dropdownItem:{backgroundColor:F.palette.neutralHigh,height:"auto"},dropdownItemSelected:{height:"auto"},dropdownItemDisabled:{backgroundColor:F.palette.neutralHigh,height:"auto"},dropdownOptionText:{overflow:"visible",whiteSpace:"normal"},dropdownItemSelectedAndDisabled:(n={},n[Qv]={backgroundColor:"transparent",border:"1px solid highlight"},n.height="auto",n)};d&&(L.dropdown={width:d}),y&&(L.dropdownItem={backgroundColor:F.palette.neutralHigh,selectors:{".ms-Button-flexContainer":{width:"100%"}},height:"auto"},L.dropdownItemSelected={selectors:{".ms-Button-flexContainer":{width:"100%"},height:"auto"}},M=function(e){return jt().createElement("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"}},jt().createElement("span",null,e.text),e.description?jt().createElement("span",null,e.description):jt().createElement(jt().Fragment,null))});var H={};x?H.selectedKeys=Array.isArray(i)?i.slice():null===i?i:[i]:H.selectedKey=Array.isArray(i)?i.slice():i;var V=l.map((function(t,n){return"divider"===t.itemType?{key:"divider_".concat(n),text:"",itemType:mM.Divider}:(0,e.__assign)((0,e.__assign)({},t),{itemType:mM.Normal})})),z={calloutMaxHeight:g,directionalHint:Nv[m],preventDismissOnEvent:P?function(e){return"scroll"===e.type}:void 0},U=(0,e.__assign)({placeholder:s,options:V,onChange:function(e,t,n){if(t){var r={clickId:"".concat(o,"-").concat(t.id),pageArea:a};N.reportClick(r),c(e,{key:t.key.toString(),text:t.text,ariaLabel:t.ariaLabel,id:t.id},t.selected,n)}else c(e,void 0,void 0,n)},disabled:C,required:T,label:u,dropdownWidth:p,ariaLabel:r,calloutProps:z,styles:L,onRenderOption:M,multiSelect:x,componentRef:w},H);if(void 0!==k&&(U.onRenderTitle=function(){return jt().createElement(jt().Fragment,null,k)}),A&&(U.responsiveMode=tE.unknown),R.operationData){var W=R.operationData,G=(0,e.__rest)(R,["operationData"]);U=(0,e.__assign)((0,e.__assign)({},U),G);var j=void 0;j="callout"===W.errorProps.errorType?jt().createElement(jt().Fragment,null,jt().createElement("div",{ref:B,style:{width:d}},jt().createElement(bF,(0,e.__assign)({},U))),jt().createElement(XE,{calloutPosition:"bottom-center",targetOrTriggerButton:B,errorMessageAriaLabel:W.errorProps.errorCallout.errorMessageAriaLabel,errorMessage:W.errorProps.errorCallout.errorMessage})):jt().createElement(bF,(0,e.__assign)({},U,{errorMessage:W.errorProps.errorMessage}));var q=(0,e.__assign)((0,e.__assign)({},L),{title:{backgroundColor:F.palette.neutralHigh,border:"1px solid ".concat(F.palette.neutralQuaternary),textAlign:f}});return jt().createElement(dv,{operationData:W.progressViewOperationData,firstLoadView:jt().createElement(_F,null),updatingView:jt().createElement(bF,(0,e.__assign)({},U,{disabled:!0,onRenderCaretDown:EF,styles:q})),finishedView:jt().createElement(bF,(0,e.__assign)({},U)),updateFailedView:j,failedView:void 0})}return U=(0,e.__assign)((0,e.__assign)({},U),R),jt().createElement(bF,(0,e.__assign)({},U))};!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(CF||(CF={}));var wF,IF,PF,TF,DF=((SF={})[CF.info]="Info",SF[CF.warning]="Info",SF[CF.error]="ErrorBadge",SF[CF.blocked]="Blocked2",SF[CF.severeWarning]="Warning",SF[CF.success]="Completed",SF),AF=zg(),RF=function(e){switch(e){case CF.blocked:case CF.error:case CF.severeWarning:return"assertive"}return"polite"},NF=function(e){switch(e){case CF.blocked:case CF.error:case CF.severeWarning:return"alert"}return"status"},MF=Gt.forwardRef((function(t,n){var r=NN(!1),o=r[0],i=r[1].toggle,a=eE("MessageBar"),s=t.actions,l=t.className,c=t.children,u=t.overflowButtonAriaLabel,d=t.dismissIconProps,p=t.styles,h=t.theme,m=t.messageBarType,f=void 0===m?CF.info:m,g=t.onDismiss,v=void 0===g?void 0:g,y=t.isMultiline,b=void 0===y||y,C=t.truncated,S=t.dismissButtonAriaLabel,x=t.messageBarIconProps,_=t.role,E=t.delayedRender,k=void 0===E||E,w=t.expandButtonProps,I=Qh(t,Ph,["className","role"]),P=AF(p,{theme:h,messageBarType:f||CF.info,onDismiss:void 0!==v,actions:void 0!==s,truncated:C,isMultiline:b,expandSingleLine:o,className:l}),T={iconName:o?"DoubleChevronUp":"DoubleChevronDown"},D=s||v?{"aria-describedby":a,role:"region"}:{},A=s?Gt.createElement("div",{className:P.actions},s):null,R=v?Gt.createElement(qE,{disabled:!1,className:P.dismissal,onClick:v,iconProps:d||{iconName:"Clear"},title:S,ariaLabel:S}):null;return Gt.createElement("div",(0,e.__assign)({ref:n,className:P.root},D),Gt.createElement("div",{className:P.content},Gt.createElement("div",{className:P.iconContainer,"aria-hidden":!0},x?Gt.createElement(Xx,(0,e.__assign)({},x,{className:Gp(P.icon,x.className)})):Gt.createElement(Xx,{iconName:DF[f],className:P.icon})),Gt.createElement("div",{className:P.text,id:a,role:_||NF(f),"aria-live":RF(f)},Gt.createElement("span",(0,e.__assign)({className:P.innerText},I),k?Gt.createElement(qg,null,Gt.createElement("span",null,c)):Gt.createElement("span",null,c))),!b&&!A&&C&&Gt.createElement("div",{className:P.expandSingleLine},Gt.createElement(qE,(0,e.__assign)({disabled:!1,className:P.expand,onClick:i,iconProps:T,ariaLabel:u,"aria-expanded":o},w))),!b&&A,!b&&R&&Gt.createElement("div",{className:P.dismissSingleLine},R),b&&R),b&&A)}));MF.displayName="MessageBar";var FF={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},BF=((wF={})[CF.error]="errorBackground",wF[CF.blocked]="errorBackground",wF[CF.success]="successBackground",wF[CF.warning]="warningBackground",wF[CF.severeWarning]="severeWarningBackground",wF[CF.info]="infoBackground",wF),OF=((IF={})[CF.error]="errorIcon",IF[CF.blocked]="errorIcon",IF[CF.success]="successIcon",IF[CF.warning]="warningIcon",IF[CF.severeWarning]="severeWarningIcon",IF[CF.info]="infoIcon",IF),LF=((PF={})[CF.error]="#ff0000",PF[CF.blocked]="#ff0000",PF[CF.success]="#bad80a",PF[CF.warning]="#fff100",PF[CF.severeWarning]="#ff0000",PF[CF.info]="WindowText",PF),HF=((TF={})[CF.error]="#e81123",TF[CF.blocked]="#e81123",TF[CF.success]="#107c10",TF[CF.warning]="#966400",TF[CF.severeWarning]="#d83b01",TF[CF.info]="WindowText",TF),VF=Ng(MF,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h=t.theme,m=t.className,f=t.onDismiss,g=t.truncated,v=t.isMultiline,y=t.expandSingleLine,b=t.messageBarType,C=void 0===b?CF.info:b,S=h.semanticColors,x=h.fonts,_=Au(0,479),E=Ju(FF,h),k={fontSize:Su.xSmall,height:10,lineHeight:"10px",color:S.messageText,selectors:(n={},n[Iu]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),n)},w=[Ou(h,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":k,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[E.root,x.medium,C===CF.error&&E.error,C===CF.blocked&&E.blocked,C===CF.severeWarning&&E.severeWarning,C===CF.success&&E.success,C===CF.warning&&E.warning,v?E.multiline:E.singleline,!v&&f&&E.dismissalSingleLine,!v&&g&&E.expandingSingleLine,{background:S[BF[C]],boxSizing:"border-box",color:S.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(r={".ms-Link":{color:S.messageLink,selectors:{":hover":{color:S.messageLinkHovered}}}},r[Iu]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:"transparent",border:"1px solid ".concat(LF[C]),color:"WindowText"}),r[Pu]={border:"1px solid ".concat(HF[C])},r)},v&&{flexDirection:"column"},m],content:[E.content,(o={display:"flex",width:"100%",lineHeight:"normal"},o[_]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},o)],iconContainer:[E.iconContainer,(i={fontSize:Su.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},i[_]={gridArea:"icon"},i)],icon:{color:S[OF[C]],selectors:(a={},a[Iu]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),a)},text:[E.text,(0,e.__assign)((0,e.__assign)({minWidth:0,display:"flex",flexGrow:1,margin:8},x.small),(s={},s[_]={gridArea:"text"},s.selectors=(l={},l[Iu]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l),s)),!f&&{marginRight:12}],innerText:[E.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},g&&{overflow:"visible",whiteSpace:"pre-wrap"},!v&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!v&&!g&&{selectors:(c={},c[_]={overflow:"visible",whiteSpace:"pre-wrap"},c)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[E.dismissSingleLine,(u={},u[_]={gridArea:"close"},u)],expandSingleLine:E.expandSingleLine,dismissal:[E.dismissal,w],expand:[E.expand,w],actions:[v?E.actions:E.actionsSingleline,(d={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"},d[_]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":(p={marginLeft:8},p[_]={marginBottom:0},p)},d),v&&{marginBottom:8},f&&!v&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),zF={info:CF.info,secondary:CF.info,warning:CF.warning,"severe-warning":CF.severeWarning,error:CF.error,blocked:CF.blocked,success:CF.success},UF=function(t,n,r,o,i){var a,s={content:{padding:"8px 0"},actions:{alignItems:"center",marginRight:"24px",lineHeight:"16px"},innerText:{whiteSpace:"normal",overflow:"visible",width:"100%"},iconContainer:{alignItems:"center",marginLeft:n?"0px":"16px"},root:(a={".ms-Link":{color:t.semanticColors.messageLink},".ms-Link > span":{color:t.semanticColors.messageLink}},a[Iu]={".ms-Link":{color:"linktext"},".ms-Link > span":{color:"linktext"}},a)};if(r&&(s.actions={alignItems:"flex-end",marginBottom:"8px",marginRight:"24px"},s.innerText=yc(s.innerText,{lineHeight:"normal"}),s.icon={lineHeight:"16px",paddingTop:"3px"}),n&&(s.icon={display:"none"},s.text={marginLeft:"0px"}),"info"===o&&(s.root=(0,e.__assign)((0,e.__assign)({},s.root),{background:t.palette.neutralHigh})),i){var l=void 0;switch(i){case"floating":l={borderRadius:"8px",boxShadow:pb.rest};break;case"embedded-dialog":l={borderRadius:"4px",border:"1px solid ".concat(t.palette.neutralLighterAlt)}}l&&(s.root=(0,e.__assign)((0,e.__assign)({},s.root),l))}return s},WF=function(e){return null===e||void 0===e?void 0:e["aria-label"]},GF=function(t){var n=t.messageContent,r=t.messageHeader,o=t.messageBarType,i=void 0===o?"info":o,a=t.actionProps,s=t.dismissButtonProps,l=t.hideIcon,c=t.iconProps,u=t.messageBarVariant,d=void 0===u?"default":u,p=t.isMultiline,h=t.messageContentId,m=(0,e.__rest)(t,["messageContent","messageHeader","messageBarType","actionProps","dismissButtonProps","hideIcon","iconProps","messageBarVariant","isMultiline","messageContentId"]),f=Di(),g=(0,Gt.useRef)(null);ll("MessageBar",m.id),Fy("MessageBar",m),(0,Gt.useEffect)((function(){var e=g.current;if(e){var t=e.querySelector(".ms-MessageBar-content");t&&h&&t.setAttribute("aria-labelledby",h)}}),[h]);var v,y,b,C=dg();if(a)if("noHrefLink"===a.actionType){a.actionType;var S=(0,e.__rest)(a,["actionType"]);v=jt().createElement(rx,(0,e.__assign)({},S))}else if("button"===a.actionType){a.actionType,S=(0,e.__rest)(a,["actionType"]);v=jt().createElement(dk,(0,e.__assign)({type:"primaryAlt"},S))}else{a.actionType,S=(0,e.__rest)(a,["actionType"]);v=jt().createElement(nx,(0,e.__assign)({},S))}return y="string"===typeof n?jt().createElement(Ib,null,n):jt().createElement(ox,(0,e.__assign)({},n)),b=function(e,t,n){var r;return"warning"===e&&(r={iconName:"Info",styles:{root:{color:t.palette.neutralSecondary}}}),n&&(r={iconName:n.iconName,styles:{root:{color:n.color?t.palette[n.color]||t.semanticColors[n.color]:t.palette.neutralPrimary}}}),r}(i,C,c),jt().createElement(VF,(0,e.__assign)({ref:g,messageBarType:zF[i],onDismiss:s?function(){if(s){var e={clickId:"".concat(s["data-bi-id"]),pageArea:"".concat(s.pageArea)};f.reportClick(e),s.onDismiss()}}:void 0,dismissButtonAriaLabel:WF(s),isMultiline:null!==p&&void 0!==p&&p,actions:v,styles:UF(C,l,r,i,d),messageBarIconProps:b},m),jt().createElement(bb,{childrenGap:6,id:h},jt().createElement(Ib,{variant:"subjectTitle",block:!0},r),y))},jF=function(){return jt().createElement(GF,{actionProps:{"aria-label":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435",children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435","data-bi-id":"emergency-banner-link",href:"https://blogs.microsoft.com/on-the-issues/2022/03/04/microsoft-suspends-russia-sales-ukraine-conflict?icid=mscom_marcom_TS1_Sales_update"},messageBarType:"info",messageContent:"\u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0438 \u0443\u0441\u043b\u0443\u0433 \u0432 \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u0420\u043e\u0441\u0441\u0438\u0438."})},qF=function(t){var n=t.errorMessage,r=t.description,o=t.imageSrc,i=t.correlationVector,a=t.align,s=void 0===a?"auto":a,l=t.buttonProps,c=(0,e.__rest)(t,["errorMessage","description","imageSrc","correlationVector","align","buttonProps"]);return ll("ErrorIllustration",c.id),Fy("ErrorIllustration",c),jt().createElement(bb,(0,e.__assign)({},c),jt().createElement(Cb,{align:s},jt().createElement(zk,{imageType:"ariaHiddenImage",src:o})),jt().createElement(Cb,{align:s},jt().createElement(jk,{image:{iconName:"Error",imageType:"icon"},size:"sm"},n)),jt().createElement(Cb,{align:s},jt().createElement(bb,{margin:"0 26px",childrenGap:"26px"},r?jt().createElement(Cb,{align:s},jt().createElement(Ib,{variant:"bodySecondaryText"},r)):null,jt().createElement(Cb,{align:s},jt().createElement(Ib,null,"TraceID: ",i)),l?jt().createElement(Cb,{align:s},jt().createElement(dk,(0,e.__assign)({},l))):null)))},KF=function(){var e;return{root:(e={borderRadius:"8px",overflow:"hidden",boxShadow:Qp.depth4},e[Iu]={border:"1px solid WindowText"},e)}};function YF(e){return function(){for(var t=dg(),n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r],a=e[i];n[i]="function"===typeof a?a(t):a}return Wd(n)}}function XF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yc.apply(void 0,e)}var QF,ZF,JF,$F,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB="4px",pB="--comparison-card-col",hB=YF({root:function(e){return{display:"flex",flexDirection:"column",backgroundColor:e.palette.neutralHigh,borderRadius:dB,boxShadow:pb.hover}},badge:function(e){return{display:"flex",padding:"5px 24px",borderTopLeftRadius:dB,borderTopRightRadius:dB,backgroundColor:e.palette.highlighter}},header:{margin:"10px 24px"},featureList:{listStyle:"none",margin:"0 24px",marginBottom:"auto",padding:0,columns:"var(".concat(pB,", auto)")," > *":{breakInside:"avoid"}},actions:{display:"flex",flexDirection:"column",padding:"16px 24px 24px 24px"," > *:not(:last-child)":{marginBottom:"12px"}}}),mB=YF({badgeCenter:{textAlign:"center",justifyContent:"center"},headerCenter:{textAlign:"center"},headerNoBadge:{marginTop:"40px"},actionsCenter:{textAlign:"center"}}),fB={GreenGradient:"https://amcassets.blob.core.windows.net/twouistorybook/compassassets/GreenBar.svg",PurpleGradient:"https://amcassets.blob.core.windows.net/twouistorybook/compassassets/PurpleBar.svg"},gB=function(t){var n=t.id,r=t.badge,o=t.title,i=t.subtitle,a=t.description,s=t.actions,l=t.features,c=t.variants,u=(0,e.__rest)(t,["id","badge","title","subtitle","description","actions","features","variants"]),d=null!==r&&void 0!==r&&!1!==r,p="center"===(null===c||void 0===c?void 0:c.alignment),h=hB(),m=mB(),f=XF(h.badge,p&&m.badgeCenter),g=XF(h.header,p&&m.headerCenter,!d&&m.headerNoBadge),v=XF(h.actions,p&&m.actionsCenter);return"image"===u.kind?jt().createElement("div",(0,e.__assign)({id:n,className:h.root},(0,e.__assign)((0,e.__assign)({},u),{kind:void 0}),{style:{width:u.width}}),u.topImage?jt().createElement("div",{style:{borderRadius:"8px 8px 0 0",width:u.width}},u.topImage):null,d?jt().createElement("div",{className:f},r):null,o||i?jt().createElement("div",{className:g,style:{marginTop:"32px"}},o,i):null,s?jt().createElement("div",{className:v,style:{padding:"14px 24px 4px 24px"}},null===s||void 0===s?void 0:s.map((function(e,t){return jt().createElement("div",{key:t},e)}))):null,a?jt().createElement("div",{style:{textAlign:"center"}},a):null,jt().createElement("ul",{className:h.featureList,style:{marginTop:"20px"}},l.map((function(e,t){return e.child?jt().createElement("li",{"aria-labelledby":e["aria-labelledby"],key:t},e.child):null})))):jt().createElement("div",(0,e.__assign)({id:n,className:h.root},(0,e.__assign)((0,e.__assign)({},u),{kind:void 0})),d?jt().createElement("div",{className:f},r):null,o||i||a?jt().createElement("div",{className:g},o,i,a):null,jt().createElement("ul",{className:h.featureList},l.map((function(e,t){return e.child?jt().createElement("li",{"aria-labelledby":e["aria-labelledby"],key:t},e.child):null}))),s?jt().createElement("div",{className:v},null===s||void 0===s?void 0:s.map((function(e,t){return jt().createElement("div",{key:t},e)}))):null)},vB=function(t){var n,r,o=t.id,i=t.badge,a=t.subtitle,s=t.description,l=t.actions,c=t.features,u=t.variants,d=(0,e.__rest)(t,["id","badge","subtitle","description","actions","features","variants"]);ll("ComparisonFeature",o);for(var p=0,h=c;p<h.length;p++){var m=h[p];hv(m.child,[jk],"ComparisonFeature")}Dg("ComparisonFeature",[(n=d.title,r=d.titleImage,function(){return n&&r?"only one field can be truthy":void 0})]),Fy("ComparisonFeature",d);var f;return jt().createElement(gB,(0,e.__assign)({id:o,badge:i?jt().createElement(tx,null,i):null,subtitle:d.titleImage&&a?jt().createElement(bb,{margin:"12px 0 0 0"},jt().createElement(tx,(0,e.__assign)({},a,{variant:"bodyMediumSecondaryRegular",block:!0,lines:2}))):a?jt().createElement(tx,(0,e.__assign)({},a,{variant:"bodyMediumSecondaryRegular",block:!0,lines:2})):null,description:s?jt().createElement(bb,{padding:(null===d||void 0===d?void 0:d.titleImage)?"4px 0 0 0":"8px 0 0 0"},jt().createElement(Cb,null,jt().createElement(tx,(0,e.__assign)({},s,{variant:"bodySecondaryText",block:!0,lines:2})))):null,features:c,actions:l?(0,e.__spreadArray)((0,e.__spreadArray)([],l.cta?(f=l.cta,(null===d||void 0===d?void 0:d.titleImage)?[jt().createElement(dk,(0,e.__assign)({},f,{styles:{root:{width:"100%"}}}))]:[jt().createElement(dk,(0,e.__assign)({},f))]):[],!0),l.alt?[jt().createElement(rx,(0,e.__assign)({},l.alt))]:[],!0):void 0,variants:u},(0,e.__assign)((0,e.__assign)({},d),{topImage:d.titleImage?(null===d||void 0===d?void 0:d.titleImage)?jt().createElement(zk,(0,e.__assign)({},d.titleImage,{width:d.width,src:fB[d.topImage],imageType:"ariaHiddenImage"})):null:void 0,kind:d.titleImage?"image":"text"}),{title:d.titleImage?jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(zk,(0,e.__assign)({},d.titleImage,{imageType:"ariaHiddenImage",height:"66px",width:"118px"}))):jt().createElement(tx,(0,e.__assign)({},d.title,{variant:"paneTitle",block:!0,lines:2}))}))},yB=YF({root:(QF={display:"flex",flexDirection:"column",gap:"16px",listStyle:"none",padding:0,margin:0},QF[pB]="auto",QF["> *"]={flex:1},QF),groupItem:{display:"flex","> *":{flex:1}}}),bB={flexDirection:"row",flexWrap:"wrap","> *":{flexBasis:"49%"}},CB={"> *":{flexBasis:"0"}},SB={"> :first-child":(ZF={flexBasis:"100%"},ZF[pB]=2,ZF)},xB={"> :first-child":(JF={flexBasis:"0"},JF[pB]="auto",JF)},_B=YF({rootL:($F={},$F[zv]={flexDirection:"row"},$F),rootXl:(eB={},eB[Uv]={flexDirection:"row"},eB)}),EB=YF({rootL:(tB={},tB[zv]=(0,e.__assign)({},bB),tB[Uv]=(0,e.__assign)({},CB),tB),rootXl:(nB={},nB[Uv]=(0,e.__assign)({},bB),nB[Wv]=(0,e.__assign)({},CB),nB)}),kB=YF({rootL:(rB={},rB[zv]=(0,e.__assign)((0,e.__assign)({},bB),SB),rB[Uv]=(0,e.__assign)((0,e.__assign)({},CB),xB),rB),rootXl:(oB={},oB[Uv]=(0,e.__assign)((0,e.__assign)({},bB),SB),oB[Wv]=(0,e.__assign)((0,e.__assign)({},CB),xB),oB)}),wB=function(t){var n=t.children,r=t.variants,o=t.itemWidth,i=(0,e.__rest)(t,["children","variants","itemWidth"]);Fy("ComparisonFeatureGroup",i);var a=yB(),s=_B(),l=EB(),c=kB(),u="l"===(null===r||void 0===r?void 0:r.horizontalLayoutBreakpoint)?"rootL":"rootXl",d=jt().Children.count(n),p=d%2===0,h=XF(a.root,d<=3?s[u]:void 0,d>3&&p?l[u]:void 0,d>3&&!p?c[u]:void 0);return jt().createElement("ul",(0,e.__assign)({className:h},i,{style:"fitContent"===o?{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"}:{}}),jt().Children.map(n,(function(e,t){return jt().createElement("li",{className:a.groupItem,key:t,style:"fitContent"===o?{maxWidth:"fit-content"}:{}},e)})))},IB={height:57},PB=function(e){var t=e.width,n=void 0===t?"40px":t;return jt().createElement(Tg,{style:IB,verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(nw,{width:n,height:12}))},TB=function(t){var n,r=t.actionProps,o=(0,e.__rest)(t,["actionProps"]);switch(r.kind){case"button":r.kind;var i=(0,e.__rest)(r,["kind"]);n=jt().createElement(dk,(0,e.__assign)({},i));break;case"actionButton":r.kind;var a=(0,e.__rest)(r,["kind"]);n=jt().createElement(JE,(0,e.__assign)({},a));break;case"hyperlink":r.kind;var s=(0,e.__rest)(r,["kind"]);n=jt().createElement(nx,(0,e.__assign)({},s));break;case"noHrefLink":r.kind;var l=(0,e.__rest)(r,["kind"]);n=jt().createElement(rx,(0,e.__assign)({},l));break;case"toggle":r.kind;var c=(0,e.__rest)(r,["kind"]);n=jt().createElement(vw,(0,e.__assign)({},c));break;case"toggleShimmer":r.kind;var u=(0,e.__rest)(r,["kind"]);n=jt().createElement(PB,(0,e.__assign)({},u))}return"actionButton"===r.kind&&r.buttonTheme?jt().createElement(wb,(0,e.__assign)({},o),jt().createElement(cg,{variant:r.buttonTheme,noRootElement:!0},n)):jt().createElement(wb,(0,e.__assign)({},o),n)},DB=function(){var e=ny(),t=ry(e);return jt().createElement(bb,null,jt().createElement(bb,{padding:t?"20px 0px":"0px 0px 20px"},jt().createElement(nw,{width:"30%",height:25})),jt().createElement(bb,{childrenGap:10},jt().createElement(nw,{width:"80%",height:15}),jt().createElement(nw,{width:"70%",height:15})))},AB=function(t){var n=t.tag,r=t.variant,o=t.text,i=t.headerColorOverride,a=t.weightOverride,s={tag:null!==n&&void 0!==n?n:"h5",variant:null!==r&&void 0!==r?r:"statusHeader",children:o};return jt().createElement(nb,(0,e.__assign)({},s,{colorOverride:i,weightOverride:a}))},RB=function(t){var n,r,o=t.featureHeading,i=t.bodyText,a=t.bodyTextVariant,s=void 0===a?"bodyPrimaryText":a,l=t.ctaProps,c=t.operationData;if(o&&(n=jt().createElement(AB,(0,e.__assign)({},o))),"string"===typeof i)r=jt().createElement(Ib,{variant:s},i);else if(Array.isArray(i)){var u=i.map((function(t,n){return"string"===typeof t?jt().createElement(Ib,{key:n,variant:s},t):jt().createElement(ox,(0,e.__assign)({key:n},t))}));r=jt().createElement(bb,{childrenGap:2},u)}else i&&(r=jt().createElement(ox,(0,e.__assign)({},i)));var d="0 0 12px",p=ny(),h=ry(p),m=jt().createElement(bb,{grow:!0},n?jt().createElement(Cb,{margin:d},n):null,jt().createElement(Cb,{margin:d},r),jt().createElement(bb,{horizontal:!h,childrenGap:12,verticalAlign:"baseline"},l?l.map((function(t,n){return jt().createElement(TB,(0,e.__assign)({key:n},t))})):null));return c?jt().createElement(dv,{operationData:c,firstLoadView:jt().createElement(DB,null),finishedView:m,failedView:void 0}):m},NB=function(e){var t,n;return e?{root:(t={padding:"0px 5px 5px",maxWidth:"276px",minWidth:"184px",boxSizing:"border-box",flex:"1 1 50%"},t[Iu]={":focus-within":{outline:"2px auto highlight"}},t)}:{root:(n={padding:"0px 5px 5px",boxSizing:"border-box",flex:"1 1 50%"},n[Iu]={":focus-within":{outline:"2px auto highlight"}},n)}},MB=function(t){var n,r=t.featureHeading,o=t.mediaPropsList,i=t.operationData,a=ny(),s=ry(a);r&&(n=jt().createElement(AB,(0,e.__assign)({},r)));var l=null===o||void 0===o?void 0:o.map((function(e){return jt().createElement(Ig,{styles:NB(s)},jt().createElement(jk,{image:e.image,size:e.size,linkProps:e.linkProps},e.children))})),c=jt().createElement(Tg,{doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:{root:{padding:"0px 0px 12px 0px"}},doNotRenderFalsyValues:!0},n),jt().createElement(Tg,{horizontal:!0,wrap:!0,doNotRenderFalsyValues:!0},l));return i?jt().createElement(dv,{operationData:i,firstLoadView:jt().createElement(DB,null),finishedView:c,failedView:void 0}):c},FB=__webpack_require__(54791),BB=__webpack_require__.n(FB),OB=function(e){this.startX=e.startX,this.startY=e.startY,this.endX=e.endX,this.endY=e.endY,this.totalX=this.endX-this.startX,this.totalY=this.endY-this.startY,this.startMultiplierX=e.startMultiplierX||1,this.endMultiplierX=e.endMultiplierX||1,this.startMultiplierY=e.startMultiplierY||1,this.endMultiplierY=e.endMultiplierY||1};function LB(){return LB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LB.apply(this,arguments)}!function(e){e.speed="speed",e.translateX="translateX",e.translateY="translateY",e.rotate="rotate",e.rotateX="rotateX",e.rotateY="rotateY",e.rotateZ="rotateZ",e.scale="scale",e.scaleX="scaleX",e.scaleY="scaleY",e.scaleZ="scaleZ",e.opacity="opacity"}(iB||(iB={})),function(e){e.px="px",e["%"]="%",e.vh="vh",e.vw="vw"}(aB||(aB={})),function(e){e.deg="deg",e.turn="turn",e.rad="rad"}(sB||(sB={})),function(e){e[""]=""}(lB||(lB={})),function(e){e.vertical="vertical",e.horizontal="horizontal"}(cB||(cB={})),function(e){e.ease="ease",e.easeIn="easeIn",e.easeOut="easeOut",e.easeInOut="easeInOut",e.easeInQuad="easeInQuad",e.easeInCubic="easeInCubic",e.easeInQuart="easeInQuart",e.easeInQuint="easeInQuint",e.easeInSine="easeInSine",e.easeInExpo="easeInExpo",e.easeInCirc="easeInCirc",e.easeOutQuad="easeOutQuad",e.easeOutCubic="easeOutCubic",e.easeOutQuart="easeOutQuart",e.easeOutQuint="easeOutQuint",e.easeOutSine="easeOutSine",e.easeOutExpo="easeOutExpo",e.easeOutCirc="easeOutCirc",e.easeInOutQuad="easeInOutQuad",e.easeInOutCubic="easeInOutCubic",e.easeInOutQuart="easeInOutQuart",e.easeInOutQuint="easeInOutQuint",e.easeInOutSine="easeInOutSine",e.easeInOutExpo="easeInOutExpo",e.easeInOutCirc="easeInOutCirc",e.easeInBack="easeInBack",e.easeOutBack="easeOutBack",e.easeInOutBack="easeInOutBack"}(uB||(uB={}));var HB=0;var VB=function(){function e(e){var t=e.el.getBoundingClientRect();if(e.view.scrollContainer){var n=e.view.scrollContainer.getBoundingClientRect();t=LB({},t,{top:t.top-n.top,right:t.right-n.left,bottom:t.bottom-n.top,left:t.left-n.left})}this.height=e.el.offsetHeight,this.width=e.el.offsetWidth,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,e.rootMargin&&this._setRectWithRootMargin(e.rootMargin)}return e.prototype._setRectWithRootMargin=function(e){var t=e.top+e.bottom,n=e.left+e.right;this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left,this.height+=t,this.width+=n},e}(),zB=[lB[""],aB.px,aB["%"],aB.vh,aB.vw,sB.deg,sB.turn,sB.rad];function UB(e,t){void 0===t&&(t=aB["%"]);var n={value:0,unit:t};if("undefined"===typeof e)return n;if(!("number"===typeof e||"string"===typeof e))throw new Error("Invalid value provided. Must provide a value as a string or number");if(e=String(e),n.value=parseFloat(e),n.unit=e.match(/[\d.\-+]*\s*(.*)/)[1]||t,!zB.includes(n.unit))throw new Error("Invalid unit provided.");return n}var WB={ease:[.25,.1,.25,1],easeIn:[.42,0,1,1],easeOut:[0,0,.58,1],easeInOut:[.42,0,.58,1],easeInQuad:[.55,.085,.68,.53],easeInCubic:[.55,.055,.675,.19],easeInQuart:[.895,.03,.685,.22],easeInQuint:[.755,.05,.855,.06],easeInSine:[.47,0,.745,.715],easeInExpo:[.95,.05,.795,.035],easeInCirc:[.6,.04,.98,.335],easeOutQuad:[.25,.46,.45,.94],easeOutCubic:[.215,.61,.355,1],easeOutQuart:[.165,.84,.44,1],easeOutQuint:[.23,1,.32,1],easeOutSine:[.39,.575,.565,1],easeOutExpo:[.19,1,.22,1],easeOutCirc:[.075,.82,.165,1],easeInOutQuad:[.455,.03,.515,.955],easeInOutCubic:[.645,.045,.355,1],easeInOutQuart:[.77,0,.175,1],easeInOutQuint:[.86,0,.07,1],easeInOutSine:[.445,.05,.55,.95],easeInOutExpo:[1,0,0,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function GB(e){if(Array.isArray(e))return BB()(e[0],e[1],e[2],e[3]);if("string"===typeof e&&"undefined"!==typeof WB[e]){var t=WB[e];return BB()(t[0],t[1],t[2],t[3])}}var jB=Object.values(iB),qB={speed:"px",translateX:"%",translateY:"%",rotate:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",scale:"",scaleX:"",scaleY:"",scaleZ:"",opacity:""};function KB(e,t){var n={};return jB.forEach((function(r){var o=qB[r];if("number"===typeof(null==e?void 0:e[r])){var i=null==e?void 0:e[r],a=-10*(i||0)+"px",s=UB(10*(i||0)+"px"),l=UB(a),c={start:s.value,end:l.value,unit:s.unit};t===cB.vertical&&(n.translateY=c),t===cB.horizontal&&(n.translateX=c)}if(Array.isArray(null==e?void 0:e[r])){var u=null==e?void 0:e[r];if("undefined"!==typeof u[0]&&"undefined"!==typeof u[1]){var d=UB(null==u?void 0:u[0],o),p=UB(null==u?void 0:u[1],o),h=GB(null==u?void 0:u[2]);if(n[r]={start:d.value,end:p.value,unit:d.unit,easing:h},d.unit!==p.unit)throw new Error("Must provide matching units for the min and max offset values of each axis.")}}})),n}function YB(e,t,n,r){var o=(n-e)/t;return r&&(o=r(o)),o}function XB(e,t){return{value:function(e,t,n,r,o){return(n-t)*(e-r)/(o-r)+t}("function"===typeof e.easing?e.easing(t):t,(null==e?void 0:e.start)||0,(null==e?void 0:e.end)||0,0,1),unit:null==e?void 0:e.unit}}var QB=Object.values(iB).filter((function(e){return"opacity"!==e}));function ZB(e,t,n){if(n){var r=function(e,t){var n=QB.reduce((function(n,r){var o=e[r]&&XB(e[r],t);return"undefined"===typeof o||"undefined"===typeof o.value||"undefined"===typeof o.unit?n:n+(r+"("+o.value+o.unit+")")}),"");return n}(e,t),o=function(e,t){var n=e.opacity&&XB(e.opacity,t);if("undefined"===typeof n||"undefined"===typeof n.value||"undefined"===typeof n.unit)return"";return""+n.value}(e,t);n.style.transform=r,n.style.opacity=o}}function JB(e){var t=e.el;t&&(t.style.transform="",t.style.opacity="")}function $B(e,t,n){var r=t>e,o=n+(Math.abs(e)+Math.abs(t))*(r?-1:1);return Math.max(n/o,1)}function eO(e,t){var n=e.start,r=e.end,o=e.unit;if("%"===o){var i=t/100;n*=i,r*=i}if("vw"===o){var a=n/100,s=r/100;n=window.innerWidth*a,r=window.innerWidth*s}if("vh"===o){var l=n/100,c=r/100;n=window.innerHeight*l,r=window.innerHeight*c}return{start:n,end:r}}var tO={start:0,end:0,unit:""};var nO=function(e,t,n){return Math.min(Math.max(e,t),n)},rO=function(){function e(e){this.el=e.el,this.props=e.props,this.scrollAxis=e.scrollAxis,this.id=++HB,this.effects=KB(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(e.props.easing),function(e,t){var n="transform"+(Object.keys(t).includes("opacity")?",opacity":"");e.style.willChange=n}(e.el,this.effects)}var t=e.prototype;return t.updateProps=function(e){return this.props=LB({},this.props,e),this.effects=KB(e,this.scrollAxis),this._setElementEasing(e.easing),this},t.setCachedAttributes=function(e,t){JB(this),this.rect=new VB({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:e});var n,r,o,i=(n=this.props,r=this.effects,o=this.scrollAxis,!(n.rootMargin||n.targetElement||n.shouldDisableScalingTranslations)&&!!(r.translateX&&o===cB.horizontal||r.translateY&&o===cB.vertical));return"number"===typeof this.props.startScroll&&"number"===typeof this.props.endScroll?(this.limits=new OB({startX:this.props.startScroll,startY:this.props.startScroll,endX:this.props.endScroll,endY:this.props.endScroll}),this._setElementStyles(),this):(i?(this.limits=function(e,t,n,r,o,i){var a=n.translateX||tO,s=n.translateY||tO,l=eO(a,e.width),c=l.start,u=l.end,d=eO(s,e.height),p=d.start,h=d.end,m=e.top-t.height,f=e.left-t.width,g=e.bottom,v=e.right,y=1,b=1;o===cB.vertical&&(b=y=$B(p,h,t.height+e.height));var C=1,S=1;if(o===cB.horizontal&&(S=C=$B(c,u,t.width+e.width)),p<0&&(m+=p*y),h>0&&(g+=h*b),c<0&&(f+=c*C),u>0&&(v+=u*S),f+=r.x,v+=r.x,m+=r.y,g+=r.y,i){var x=r.y+e.top<t.height,_=r.x+e.left<t.width,E=r.y+e.bottom>t.scrollHeight-t.height,k=r.x+e.right>t.scrollWidth-t.height;x&&E&&(y=1,b=1,m=0,g=t.scrollHeight-t.height),_&&k&&(C=1,S=1,f=0,v=t.scrollWidth-t.width),!x&&E&&(m=e.top-t.height+r.y,y=$B(p,h,(g=t.scrollHeight-t.height)-m),b=1,p<0&&(m+=p*y)),!_&&k&&(f=e.left-t.width+r.x,C=$B(c,u,(v=t.scrollWidth-t.width)-f),S=1,c<0&&(f+=c*C)),x&&!E&&(m=0,y=1,b=$B(p,h,(g=e.bottom+r.y)-m),h>0&&(g+=h*b)),_&&!k&&(f=0,C=1,S=$B(c,u,(v=e.right+r.x)-f),u>0&&(v+=u*S))}return new OB({startX:f,startY:m,endX:v,endY:g,startMultiplierX:C,endMultiplierX:S,startMultiplierY:y,endMultiplierY:b})}(this.rect,e,this.effects,t,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=function(e,t){var n=LB({},e);return n.translateX&&(n.translateX=LB({},e.translateX,{start:n.translateX.start*t.startMultiplierX,end:n.translateX.end*t.endMultiplierX})),n.translateY&&(n.translateY=LB({},e.translateY,{start:n.translateY.start*t.startMultiplierY,end:n.translateY.end*t.endMultiplierY})),n}(this.effects,this.limits)):this.limits=function(e,t,n,r){var o=e.top-t.height,i=e.left-t.width,a=e.bottom,s=e.right;return i+=n.x,s+=n.x,o+=n.y,a+=n.y,r&&(n.y+e.top<t.height&&(o=0),n.x+e.left<t.width&&(i=0),a>t.scrollHeight-t.height&&(a=t.scrollHeight-t.height),s>t.scrollWidth-t.width&&(s=t.scrollWidth-t.width)),new OB({startX:i,startY:o,endX:s,endY:a})}(this.rect,e,t,this.props.shouldAlwaysCompleteAnimation),this._setElementStyles(),this)},t._updateElementIsInView=function(e){var t=null===this.isInView;e!==this.isInView&&(e?this.props.onEnter&&this.props.onEnter(this):t||(this._setFinalProgress(),this._setElementStyles(),this.props.onExit&&this.props.onExit(this))),this.isInView=e},t._setFinalProgress=function(){var e=nO(Math.round(this.progress),0,1);this._updateElementProgress(e)},t._setElementStyles=function(){this.props.disabled||ZB(this.scaledEffects||this.effects,this.progress,this.el)},t._updateElementProgress=function(e){this.progress=e,this.props.onProgressChange&&this.props.onProgressChange(this.progress),this.props.onChange&&this.props.onChange(this)},t._setElementEasing=function(e){this.easing=GB(e)},t.updatePosition=function(e){if(!this.limits)return this;var t=this.scrollAxis===cB.vertical,n=null===this.isInView,r=t?this.limits.startY:this.limits.startX,o=t?this.limits.endY:this.limits.endX,i=t?this.limits.totalY:this.limits.totalX,a=t?e.y:e.x,s=function(e,t,n){return n>=e&&n<=t}(r,o,a);if(this._updateElementIsInView(s),s){var l=YB(r,i,a,this.easing);this._updateElementProgress(l),this._setElementStyles()}else n&&(this.progress=nO(Math.round(YB(r,i,a,this.easing)),0,1),this._setElementStyles());return this},e}(),oO=function(){function e(e){this.scrollContainer=e.scrollContainer,this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth}var t=e.prototype;return t.hasChanged=function(e){return e.width!==this.width||e.height!==this.height||e.scrollWidth!==this.scrollWidth||e.scrollHeight!==this.scrollHeight},t.setSize=function(e){return this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth,this},e}(),iO=function(){function e(e,t){this.x=e,this.y=t,this.dx=0,this.dy=0}return e.prototype.setScroll=function(e,t){return this.dx=e-this.x,this.dy=t-this.y,this.x=e,this.y=t,this},e}();var aO=function(){function e(e){var t=e.scrollAxis,n=void 0===t?cB.vertical:t,r=e.scrollContainer;this.scrollAxis=n,this.elements=[],this._hasScrollContainer=!!r,this.viewEl=null!=r?r:window;var o=this._getScrollPosition(),i=o[0],a=o[1];this.scroll=new iO(i,a),this.view=new oO({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?r:void 0}),this._ticking=!1,this._supportsPassive=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(eDe){}return e}(),this._bindAllMethods(),this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize()}e.init=function(t){if(!("undefined"!==typeof window))throw new Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new e(t)};var t=e.prototype;return t._bindAllMethods=function(){var e=this;["_addListeners","_removeListeners","_getScrollPosition","_handleScroll","_handleUpdateCache","_updateAllElements","_updateElementPosition","_setViewSize","_addResizeObserver","_checkIfViewHasChanged","_getViewParams","getElements","createElement","removeElementById","resetElementStyles","updateElementPropsById","update","updateScrollContainer","destroy"].forEach((function(t){e[t]=e[t].bind(e)}))},t._addListeners=function(e){e.addEventListener("scroll",this._handleScroll,!!this._supportsPassive&&{passive:!0}),window.addEventListener("resize",this._handleUpdateCache,!1),window.addEventListener("blur",this._handleUpdateCache,!1),window.addEventListener("focus",this._handleUpdateCache,!1),window.addEventListener("load",this._handleUpdateCache,!1)},t._removeListeners=function(e){var t;e.removeEventListener("scroll",this._handleScroll,!1),window.removeEventListener("resize",this._handleUpdateCache,!1),window.removeEventListener("blur",this._handleUpdateCache,!1),window.removeEventListener("focus",this._handleUpdateCache,!1),window.removeEventListener("load",this._handleUpdateCache,!1),null==(t=this._resizeObserver)||t.disconnect()},t._addResizeObserver=function(){var e=this;try{var t=this._hasScrollContainer?this.viewEl:document.documentElement;this._resizeObserver=new ResizeObserver((function(){return e.update()})),this._resizeObserver.observe(t)}catch(eDe){console.warn("Failed to create the resize observer in the ParallaxContoller")}},t._getScrollPosition=function(){return[this._hasScrollContainer?this.viewEl.scrollLeft:window.pageXOffset,this._hasScrollContainer?this.viewEl.scrollTop:window.pageYOffset]},t._handleScroll=function(){var e=this._getScrollPosition(),t=e[0],n=e[1];this.scroll.setScroll(t,n),!this._ticking&&this.elements.length>0&&(this._ticking=!0,window.requestAnimationFrame(this._updateAllElements))},t._handleUpdateCache=function(){this._setViewSize(),this._updateAllElements({updateCache:!0})},t._updateAllElements=function(e){var t=this,n=(void 0===e?{}:e).updateCache;this.elements&&this.elements.forEach((function(e){n&&e.setCachedAttributes(t.view,t.scroll),t._updateElementPosition(e)})),this._ticking=!1},t._updateElementPosition=function(e){e.props.disabled||e.updatePosition(this.scroll)},t._getViewParams=function(){if(this._hasScrollContainer){var e=this.viewEl.offsetWidth,t=this.viewEl.offsetHeight,n=this.viewEl.scrollHeight,r=this.viewEl.scrollWidth;return this.view.setSize({width:e,height:t,scrollHeight:n,scrollWidth:r})}var o=document.documentElement;return{width:window.innerWidth||o.clientWidth,height:window.innerHeight||o.clientHeight,scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth}},t._setViewSize=function(){return this.view.setSize(this._getViewParams())},t._checkIfViewHasChanged=function(){return this.view.hasChanged(this._getViewParams())},t.getElements=function(){return this.elements},t.createElement=function(e){var t=new rO(LB({},e,{scrollAxis:this.scrollAxis}));return t.setCachedAttributes(this.view,this.scroll),this.elements=this.elements?[].concat(this.elements,[t]):[t],this._updateElementPosition(t),this._checkIfViewHasChanged()&&this.update(),t},t.removeElementById=function(e){this.elements&&(this.elements=this.elements.filter((function(t){return t.id!==e})))},t.updateElementPropsById=function(e,t){this.elements&&(this.elements=this.elements.map((function(n){return n.id===e?n.updateProps(t):n}))),this.update()},t.resetElementStyles=function(e){JB(e)},t.update=function(){var e=this._getScrollPosition(),t=e[0],n=e[1];this.scroll.setScroll(t,n),this._setViewSize(),this._updateAllElements({updateCache:!0})},t.updateScrollContainer=function(e){this._removeListeners(this.viewEl),this.viewEl=e,this._hasScrollContainer=!!e,this.view=new oO({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:e}),this._setViewSize(),this._addListeners(this.viewEl),this._updateAllElements({updateCache:!0})},t.destroy=function(){this._removeListeners(this.viewEl),this.elements&&this.elements.forEach((function(e){return JB(e)})),this.elements=void 0},e}();function sO(){return sO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sO.apply(this,arguments)}function lO(e,t){return lO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lO(e,t)}function cO(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var uO=["disabled","easing","endScroll","onChange","onEnter","onExit","onProgressChange","opacity","rootMargin","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","shouldAlwaysCompleteAnimation","shouldDisableScalingTranslations","speed","startScroll","targetElement","translateX","translateY"];function dO(e){var t,n=e.disabled,r=e.easing,o=e.endScroll,i=e.onChange,a=e.onEnter,s=e.onExit,l=e.onProgressChange,c=e.opacity,u=e.rootMargin,d=e.rotate,p=e.rotateX,h=e.rotateY,m=e.rotateZ,f=e.scale,g=e.scaleX,v=e.scaleY,y=e.scaleZ,b=e.shouldAlwaysCompleteAnimation,C=e.shouldDisableScalingTranslations,S=e.speed,x=e.startScroll,_=e.targetElement,E=e.translateX,k=e.translateY,w=cO(e,uO),I=(t={disabled:n,easing:r,endScroll:o,onChange:i,onEnter:a,onExit:s,onProgressChange:l,opacity:c,rootMargin:u,rotate:d,rotateX:p,rotateY:h,rotateZ:m,scale:f,scaleX:g,scaleY:v,scaleZ:y,shouldAlwaysCompleteAnimation:b,shouldDisableScalingTranslations:C,speed:S,startScroll:x,targetElement:_,translateX:E,translateY:k},Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:{}})),t);return{parallaxProps:I,rest:w}}var pO=jt().createContext(null);function hO(e){var t=function(){var e=(0,Gt.useContext)(pO);if("undefined"===typeof window)return null;if(!e)throw new Error("Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvider>");return e}(),n=(0,Gt.useRef)(null),r=dO(e).parallaxProps;!function(e){(0,Gt.useEffect)((function(){if("undefined"!==typeof window&&!e&&!(e instanceof aO))throw new Error("Must wrap your application's <Parallax /> components in a <ParallaxProvider />.")}),[e])}(t);var o=(0,Gt.useState)(),i=o[0],a=o[1];return(0,Gt.useEffect)((function(){var e;if(!(n.current instanceof HTMLElement))throw new Error("You must assign the ref returned by the useParallax() hook to an HTML Element.");var o={el:n.current,props:r};return e=null==t?void 0:t.createElement(o),a(e),function(){e&&(null==t||t.removeElementById(e.id))}}),[]),(0,Gt.useEffect)((function(){i&&(e.disabled?(null==t||t.resetElementStyles(i),null==t||t.updateElementPropsById(i.id,r)):null==t||t.updateElementPropsById(i.id,r))}),[e.disabled,e.easing,e.endScroll,e.onChange,e.onEnter,e.onExit,e.onProgressChange,e.opacity,e.rootMargin,e.rotate,e.rotateX,e.rotateY,e.rotateZ,e.scale,e.scaleX,e.scaleY,e.scaleZ,e.shouldAlwaysCompleteAnimation,e.shouldDisableScalingTranslations,e.speed,e.startScroll,e.targetElement,e.translateX,e.translateY]),{ref:n,controller:t,element:i}}var mO={height:0};var fO=["children","disabled","style","expanded","image","testId"],gO={position:"absolute",top:0,left:0,right:0,bottom:0},vO=function(e){var t,n=dO(e),r=n.parallaxProps,o=n.rest,i=o.style,a=o.expanded,s=void 0===a||a,l=o.testId,c=cO(o,fO),u=(t=e).image?{backgroundImage:"url("+t.image+")",backgroundPosition:"center",backgroundSize:"cover"}:{},d=s?function(e){if(Array.isArray(e.translateY)){var t=UB(e.translateY[0]),n=UB(e.translateY[1]);if("px"===t.unit&&"px"===n.unit)return{top:-1*Math.abs(n.value)+"px",bottom:-1*Math.abs(t.value)+"px"};if("%"===t.unit&&"%"===n.unit){var r,o=(null==(r=e.targetElement)?void 0:r.getBoundingClientRect())||mO;return{top:-1*Math.abs(.01*o.height*n.value)+"px",bottom:-1*Math.abs(.01*o.height*t.value)+"px"}}}if(e.speed){var i=e.speed||0;return{top:10*Math.abs(i)*-1+"px",bottom:10*Math.abs(i)*-1+"px"}}return{}}(e):{},p=hO(sO({targetElement:e.targetElement,shouldDisableScalingTranslations:!0},r));return jt().createElement("div",Object.assign({"data-testid":l,ref:p.ref,style:sO({},u,gO,d,i)},c),o.children)},yO=["disabled","style","layers"],bO={position:"relative",overflow:"hidden",width:"100%"},CO=function(e){var t=(0,Gt.useState)(null),n=t[0],r=t[1],o=(0,Gt.useRef)(null);(0,Gt.useEffect)((function(){r(o.current)}),[]);var i=e.style,a=e.layers,s=void 0===a?[]:a,l=cO(e,yO);return jt().createElement("div",Object.assign({ref:o,style:sO({},bO,i)},l),n&&s&&s.length>0?s.map((function(e,t){return jt().createElement(vO,Object.assign({},e,{targetElement:n,key:"layer-"+t,testId:"layer-"+t}))})):null,n?jt().Children.map(e.children,(function(e){var t=e;return t.type===vO?jt().cloneElement(t,{targetElement:n}):e})):null)};(function(e){var t,n;function r(t){var n,r;return(n=e.call(this,t)||this).controller=(r={scrollAxis:t.scrollAxis,scrollContainer:t.scrollContainer},"undefined"===typeof window?null:aO.init(r)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,lO(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.scrollContainer!==this.props.scrollContainer&&this.controller.updateScrollContainer(this.props.scrollContainer)},o.componentWillUnmount=function(){this.controller=this.controller.destroy()},o.render=function(){var e=this.props.children;return jt().createElement(pO.Provider,{value:this.controller},e)},r}(Gt.Component)).defaultProps={scrollAxis:cB.vertical};var SO=function(t){var n=t.aspectRatio,r=t.height,o=(0,e.__rest)(t,["aspectRatio","height"]);return jt().createElement(CO,(0,e.__assign)({style:{aspectRatio:n,height:r}},o))},xO={extraSmall:48,small:168,medium:224,large:300,extraLarge:400},_O=function(e){return"card"===e||"alertCard"===e},EO=function(t,n,r,o,i){var a,s={backgroundColor:t.palette.neutralHigh,borderRadius:i,boxShadow:o?pb.rest:void 0,minHeight:xO[r],overflow:"hidden",selectors:(a={},a[Iu]={outline:"1px solid transparent"},a)};return"card"===n?{root:s}:"alertCard"===n?{root:(0,e.__assign)((0,e.__assign)({},s),{backgroundColor:t.palette.redLight})}:{root:{minHeight:xO[r]}}},kO=function(e,t,n){void 0===t&&(t="0px"),void 0===n&&(n="0px");var r="0px"===t?"0px":"16px";return e?"".concat(r," ").concat(n," ").concat(r," ").concat(t):"".concat(r," ").concat(r," ").concat(r," ").concat(n)},wO=function(e,t,n,r,o){if(!n)return r?t?_O(e)?"16px":"16px 0":kO(!!o,r):_O(e)?t?"16px 32px":o?"16px 0 16px 32px":"16px 32px 16px 0":"16px 0"},IO=function(e,t,n,r,o){return n||o?t?_O(e)?"0 16px 16px":"0 0 16px":kO(!r,n,o):_O(e)?t?"0 32px 16px":r?"16px 32px 16px 0":"16px 0 16px 32px":"16px 0"},PO=function(t){var n=t.backgroundType,r=void 0===n?"card":n,o=t.layoutType,i=t.isImageBlockLeft,a=t.isImageBlockBottom,s=t.insidePaddingVariant,l=t.height,c=void 0===l?"medium":l,u=t.paddingVariant,d=t.showShadow,p=void 0===d||d,h=t.borderRadius,m=void 0===h?"8px":h,f=t.isImageFullBleed,g=void 0!==f&&f,v=t.imageSlot,y=t.contentSlot,b=t.isVerticalLayout,C=void 0===b?["s","m"]:b,S=(0,e.__rest)(t,["backgroundType","layoutType","isImageBlockLeft","isImageBlockBottom","insidePaddingVariant","height","paddingVariant","showShadow","borderRadius","isImageFullBleed","imageSlot","contentSlot","isVerticalLayout"]);Fy("FeatureLayout",S);var x,_=ny(),E=dg(),k=C.includes(_);if(k)x=jt().createElement(bb,{reversed:a},jt().createElement(Cb,{padding:wO(r,k,g,u)},v),jt().createElement(Cb,{padding:IO(r,k,u)},y));else{var w="2/3"===o?7:6,I="2/3"===o?1:0,P=12-w-I;x=jt().createElement(vb,{totalSlots:12,verticalAlign:"center",reversed:i},jt().createElement(gb,{slots:w},jt().createElement(bb,{padding:IO(r,k,u,i,s)},y)),I?jt().createElement(gb,{slots:I},jt().createElement(jt().Fragment,null)):null,jt().createElement(gb,{slots:P},jt().createElement(bb,{padding:wO(r,k,g,u,i)},v)))}return jt().createElement(Tg,(0,e.__assign)({styles:EO(E,r,c,p,m)},S,{doNotRenderFalsyValues:!0}),x)},TO=function(e){var t=e.height,n=void 0===t?"medium":t;return jt().createElement(Tg,{doNotRenderFalsyValues:!0},jt().createElement(nw,{height:DO(n)}))},DO=function(e){return xO[e]},AO=function(t){var n,r=t.imageProps,o=t.height,i=void 0===o?"medium":o,a=t.operationData,s=t.imageFit,l=t.imageGradientType;return n="parallax"===r.imageType?jt().createElement(bb,{borderRadius:r.borderRadius,overflow:"hidden",width:"100%",height:"100%"},jt().createElement(SO,{height:DO(i),layers:r.imageLayers.map((function(t){return(0,e.__assign)((0,e.__assign)({},t),{children:jt().createElement(zk,{src:t.imageSrc,imageType:"ariaHiddenImage",imageFit:"cover",width:"100%",height:"100%"})})}))})):jt().createElement(zk,(0,e.__assign)({},r,{height:DO(i),imageFit:s,imageGradientType:l})),a?jt().createElement(dv,{operationData:a,firstLoadView:jt().createElement(TO,{height:i}),finishedView:n}):n},RO=function(t){return jt().createElement(PO,(0,e.__assign)({},t,{imageSlot:jt().createElement(TO,{height:t.height}),contentSlot:jt().createElement(DB,null)}))},NO=function(t){var n=t.featureHeading,r=t.imageProps,o=t.insidePaddingVariant,i=(t.children,t.backgroundType),a=t.layoutType,s=void 0===a?"1/2":a,l=t.paddingVariant,c=t.showShadow,u=t.borderRadius,d=t.isImageBlockLeft,p=t.isImageBlockBottom,h=t.isImageFullBleed,m=t.isImageGradient,f=t.isVerticalLayout,g=void 0===f?["s","m"]:f,v=t.height,y=void 0===v?"medium":v,b=(0,e.__rest)(t,["featureHeading","imageProps","insidePaddingVariant","children","backgroundType","layoutType","paddingVariant","showShadow","borderRadius","isImageBlockLeft","isImageBlockBottom","isImageFullBleed","isImageGradient","isVerticalLayout","height"]);ll("Feature",b.id),Fy("Feature",b),(0,Gt.useEffect)((function(){var e;"mediaList"===b.kind&&Dg("Feature",[(e=b.mediaPropsList.length,function(){return e>6?"Too many media items provided to Feature. ".concat(e," were provided but the max allowed is ").concat(6,"."):void 0})])}),["mediaList"===b.kind?b.mediaPropsList:void 0]);var C,S,x=ny(),_=g.includes(x);m&&(C=_?"toBottom":"toLeft"),S="mediaList"===b.kind?jt().createElement(MB,{featureHeading:n,mediaPropsList:b.mediaPropsList,operationData:b.operationData}):"noBodyContent"===b.kind?jt().createElement(RB,{featureHeading:n,ctaProps:b.ctaProps,operationData:b.operationData}):jt().createElement(RB,{featureHeading:n,bodyTextVariant:b.bodyTextVariant,bodyText:b.bodyText,ctaProps:b.ctaProps,operationData:b.operationData});var E=jt().createElement(RO,{backgroundType:"card",height:"medium",layoutType:"2/3"}),k=jt().createElement(PO,{backgroundType:i,layoutType:s,isImageBlockLeft:d,isImageBlockBottom:p,isImageFullBleed:h,insidePaddingVariant:o,height:y,paddingVariant:l,showShadow:c,borderRadius:u,isVerticalLayout:g,imageSlot:jt().createElement(AO,{imageProps:r,height:y,imageFit:h?"cover":"center-contain",imageGradientType:C,operationData:b.operationData}),contentSlot:S,id:b.id});return b.operationData?jt().createElement(dv,{operationData:b.operationData,inertView:E,firstLoadView:E,updatingView:E,finishedView:k,failedView:void 0}):k},MO=function(e){var t=e.url;ll("IrisBeacon");var n=yn(t);return n?jt().createElement(zk,{imageType:"ariaHiddenImage",src:n}):null},FO=function(t){var n=t.impressionBeaconUrl,r=t.clickBeaconUrl,o=t.ctaProps,i=(0,e.__rest)(t,["impressionBeaconUrl","clickBeaconUrl","ctaProps"]);ll("IrisFeature",i.id);var a=(0,Gt.useState)(!1),s=a[0],l=a[1],c=(0,Gt.useState)(!1),u=c[0],d=c[1],p=[];if(o){if(o.length>0){var h=o[0].actionProps;p.push({actionProps:(0,e.__assign)((0,e.__assign)({},h),{onClick:function(e){(null===h||void 0===h?void 0:h.onClick)&&h.onClick(e),l(!0)}})})}if(o.length>1){var m=o[1].actionProps;p.push({actionProps:(0,e.__assign)((0,e.__assign)({},m),{onClick:function(e){(null===m||void 0===m?void 0:m.onClick)&&m.onClick(e),d(!0)}})})}}return jt().createElement(jt().Fragment,null,jt().createElement(NO,(0,e.__assign)({ctaProps:p},i)),function(e){return e?jt().createElement(MO,{url:e}):jt().createElement(jt().Fragment,null)}(n),s?BO(r,"click1"):null,u?BO(r,"click2"):null)};function BO(e,t){var n=jt().createElement(jt().Fragment,null);if(e){var r=e.replace(/{ACTION}/g,t);n=jt().createElement(MO,{url:r})}return n}var OO=YF({badge:{flex:"1",margin:"-5px -24px"},title:{display:"flex",marginTop:"5px",marginBottom:"12px","> *":{flex:"0 0 70%"}},titleCenter:{justifyContent:"center"},subtitle:{display:"flex","> *":{flex:"0 0 40%"}},subtitleCenter:{justifyContent:"center"},mediaShimmer:{display:"flex",flexDirection:"row",alignItems:"center",gap:"22px",padding:"16px 0"," :nth-child(2)":{flex:"1 1 auto"}},actions:{display:"flex","> *":{flex:"0 0 150px"}},actionsCenter:{justifyContent:"center"}}),LO=function(){var e=OO();return jt().createElement("div",{className:e.mediaShimmer},jt().createElement(nw,{width:"12px",height:12}),jt().createElement(nw,{height:8}))},HO=function(t){var n=t.badge,r=t.actions,o=t.numberOfChildren,i=void 0===o?4:o,a=t.variants,s=t.kind,l=void 0===s?"text":s,c=(0,e.__rest)(t,["badge","actions","numberOfChildren","variants","kind"]);Fy("ComparisonFeatureShimmer",c);var u=OO(),d="center"===(null===a||void 0===a?void 0:a.alignment),p=XF(u.title,d&&u.titleCenter),h=XF(u.subtitle,d&&u.subtitleCenter),m=XF(u.actions,d&&u.actionsCenter),f=[];f="object"===typeof r?(0,e.__spreadArray)((0,e.__spreadArray)([],r.cta?[jt().createElement(dk,(0,e.__assign)({},r.cta,{disabled:!0}))]:[],!0),r.alt?[jt().createElement(rx,(0,e.__assign)({},r.alt,{disabled:!0}))]:[],!0):r?[jt().createElement("div",{className:m},jt().createElement(nw,{height:32})),jt().createElement("div",{className:m},jt().createElement(nw,{height:12}))]:[jt().createElement("div",{className:m},jt().createElement(nw,{height:32}))];var g=Array.from({length:i}).map((function(e,t){return{child:jt().createElement(LO,{key:t})}}));return jt().createElement(gB,(0,e.__assign)({},c,{badge:n?jt().createElement("div",{className:u.badge},jt().createElement(nw,{height:30,width:"100%"})):null,title:jt().createElement("div",{className:p},jt().createElement(nw,{height:12})),subtitle:jt().createElement("div",{className:h},jt().createElement(nw,{height:12})),features:g,actions:f,variants:a,kind:l}))},VO=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);if("ThreeThreeThreeThree"===n)return jt().createElement(zO,(0,e.__assign)({},r))},zO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.fourthSegment,i=e.backgroundColor;switch(ny()){case"xxxl":case"xxl":case"xl":return jt().createElement(vb,{totalSlots:12,padding:"16px",backgroundColor:i},jt().createElement(gb,{slots:3},t),jt().createElement(gb,{slots:3},n),jt().createElement(gb,{slots:3},r),jt().createElement(gb,{slots:3},o));case"l":return jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:i},jt().createElement(vb,{totalSlots:12},jt().createElement(gb,{slots:6},t),jt().createElement(gb,{slots:6},n)),jt().createElement(vb,{totalSlots:12},jt().createElement(gb,{slots:6},r),jt().createElement(gb,{slots:6},o)));case"m":case"s":return jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:i},t,n,r,o)}},UO=function(e){var t=e.segment,n=e.backgroundColor;return jt().createElement(bb,{horizontal:!1,padding:"16px",backgroundColor:n},t)},WO=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"FourFourFour":return jt().createElement(GO,(0,e.__assign)({},r));case"SixThreeThree":return jt().createElement(jO,(0,e.__assign)({},r))}},GO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.backgroundColor;switch(ny()){case"xxxl":case"xxl":case"xl":return jt().createElement(vb,{totalSlots:12,padding:"16px",backgroundColor:o},jt().createElement(gb,{slots:4},t),jt().createElement(gb,{slots:4},n),jt().createElement(gb,{slots:4},r));case"l":case"m":case"s":return jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r)}},jO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.backgroundColor;switch(ny()){case"xxxl":case"xxl":case"xl":return jt().createElement(vb,{totalSlots:12,padding:"16px",backgroundColor:o},jt().createElement(gb,{slots:6},t),jt().createElement(gb,{slots:3},n),jt().createElement(gb,{slots:3},r));case"l":return jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,jt().createElement(vb,{totalSlots:12},jt().createElement(gb,{slots:6},n),jt().createElement(gb,{slots:6},r)));case"m":case"s":return jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r)}},qO=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"SixSix":return jt().createElement(KO,(0,e.__assign)({},r));case"OneThree":return jt().createElement(YO,(0,e.__assign)({},r));case"OneTwo":return jt().createElement(XO,(0,e.__assign)({},r));case"OneOne":return jt().createElement(QO,(0,e.__assign)({},r))}},KO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=ny(),s=jt().createElement(vb,{totalSlots:12,padding:"16px",backgroundColor:r},jt().createElement(gb,{slots:6},t),jt().createElement(gb,{slots:6},n)),l=jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(a){case"xxxl":case"xxl":case"xl":return s;case"l":return i?s:l;case"m":case"s":return l}},YO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=ny(),s=jt().createElement(vb,{totalSlots:4,padding:"16px",backgroundColor:r},jt().createElement(gb,{slots:1},t),jt().createElement(gb,{slots:3},n)),l=jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(a){case"xxxl":case"xxl":case"xl":return s;case"l":return i?s:l;case"m":case"s":return l}},XO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=ny(),s=jt().createElement(vb,{totalSlots:3,padding:"16px",backgroundColor:r},jt().createElement(gb,{slots:1},t),jt().createElement(gb,{slots:2},n)),l=jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(a){case"xxxl":case"xxl":case"xl":return s;case"l":return i?s:l;case"m":case"s":return l}},QO=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=ny(),s=jt().createElement(vb,{totalSlots:2,padding:"2px",backgroundColor:r},jt().createElement(gb,{slots:1},t),jt().createElement(gb,{slots:1},n)),l=jt().createElement(bb,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(a){case"xxxl":case"xxl":case"xl":return s;case"l":return i?s:l;case"m":case"s":return l}},ZO=function(e){return{root:{width:"50%",display:"flex",flexDirection:"column",flex:1,minHeight:e}}},JO=function(e){return{root:{height:e,minHeight:e,display:"flex",flexDirection:"column",flexGrow:1}}},$O=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.childrenGap,i=void 0===o?"12px 16px":o,a=e.minHeight;switch(ny()){case"xxxl":case"xxl":case"xl":return jt().createElement(bb,{horizontal:!0,childrenGap:i,backgroundColor:r},jt().createElement(Tg,{styles:ZO(a),doNotRenderFalsyValues:!0},t),jt().createElement(Tg,{styles:ZO(a),doNotRenderFalsyValues:!0},n));case"l":case"m":case"s":return jt().createElement(bb,{horizontal:!1,childrenGap:i,backgroundColor:r},jt().createElement(Tg,{styles:JO(a),doNotRenderFalsyValues:!0},t),jt().createElement(Tg,{styles:{root:{display:"flex",flexDirection:"column",flex:1}},doNotRenderFalsyValues:!0},n))}},eL=[NO,RO,FO,GF,UO,qO,WO,VO];var tL=[$R,GF,function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);if("SixSix"===n)return jt().createElement($O,(0,e.__assign)({},r))}];var nL,rL=function(e,t){return{root:{borderBottom:t?"1px solid ".concat(e.palette.neutralLighter):"0px"}}},oL=function(e){var t=e.highlightArea,n=e.detailsArea,r=dg();return(0,Gt.useEffect)((function(){if(t)if(Array.isArray(t))for(var e=0;e<t.length;e++)hv(t[e],eL,"ExpandedFeatureGroupContent");else hv(t,eL,"ExpandedFeatureGroupContent")}),[t]),(0,Gt.useEffect)((function(){if(n)if(Array.isArray(n))for(var e=0;e<n.length;e++)hv(n[e],tL,"ExpandedFeatureGroupContent");else hv(n,tL,"ExpandedFeatureGroupContent")}),[n]),jt().createElement(Tg,{doNotRenderFalsyValues:!0},t?jt().createElement(Tg,{styles:rL(r,!!n),doNotRenderFalsyValues:!0},t):null,n?jt().createElement(Tg,{doNotRenderFalsyValues:!0},n):null)},iL=function(t){var n=t.drawerAreaProps,r=t.highlightArea,o=t.detailsArea;ll("ExpandedFeatureGroup");var i,a=jt().createElement(Tg,{styles:(i=!!n,{root:{marginTop:i?"1px":"0px"}}),doNotRenderFalsyValues:!0},jt().createElement(oL,{highlightArea:r,detailsArea:o}));return jt().createElement(Tg,{styles:KF(),doNotRenderFalsyValues:!0},n?jt().createElement(_R,(0,e.__assign)({borderRadius:"0px"},n),a):a)};!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(nL||(nL={}));var aL,sL,lL=Ku((function(t,n,r){var o=LE(t),i=zd(o,r);return(0,e.__assign)((0,e.__assign)({},i),{root:[o.root,n,t.fonts.medium,r&&r.root]})})),cL=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.styles,o=(0,e.__rest)(t,["className","styles"]),i=lL(this.props.theme,n,r);return Gt.createElement(FE,(0,e.__assign)({},o,{variantClassName:"ms-Button--facepile",styles:i,onRenderDescription:Ix}))},n=(0,e.__decorate)([Px("FacepileButton",["theme","styles"],!0)],n)}(Gt.Component),uL=zg(),dL=function(t){function n(n){var r=t.call(this,n)||this;return r._classNames=uL(r.props.styles,{theme:r.props.theme,className:r.props.className}),r._getPersonaControl=function(t){var n=r.props,o=n.getPersonaProps,i=n.personaSize;return Gt.createElement(TP,(0,e.__assign)({imageInitials:t.imageInitials,imageUrl:t.imageUrl,initialsColor:t.initialsColor,allowPhoneInitials:t.allowPhoneInitials,text:t.personaName,size:i},o?o(t):null,{styles:{details:{flex:"1 0 auto"}}}))},r._getPersonaCoinControl=function(t){var n=r.props,o=n.getPersonaProps,i=n.personaSize;return Gt.createElement(EP,(0,e.__assign)({imageInitials:t.imageInitials,imageUrl:t.imageUrl,initialsColor:t.initialsColor,allowPhoneInitials:t.allowPhoneInitials,text:t.personaName,size:i},o?o(t):null))},Mb(r),r._ariaDescriptionId=bh(),r}return(0,e.__extends)(n,t),n.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,o=t.personas,i=t.overflowPersonas,a=t.showAddButton,s=t.ariaLabel,l=t.showTooltip,c=void 0===l||l,u=this._classNames,d="number"===typeof r?Math.min(o.length,r):o.length;n&&!e&&(e=n);var p=i&&i.length>0,h=p?o:o.slice(0,d),m=(p?i:o.slice(d))||[];return Gt.createElement("div",{className:u.root},this.onRenderAriaDescription(),Gt.createElement("div",{className:u.itemContainer},a?this._getAddNewElement():null,Gt.createElement("ul",{className:u.members,"aria-label":s},this._onRenderVisiblePersonas(h,0===m.length&&1===o.length,c)),e?this._getOverflowElement(m):null))},n.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&Gt.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},n.prototype._onRenderVisiblePersonas=function(e,t,n){var r=this,o=this.props,i=o.onRenderPersona,a=void 0===i?this._getPersonaControl:i,s=o.onRenderPersonaCoin,l=void 0===s?this._getPersonaCoinControl:s,c=o.onRenderPersonaWrapper;return e.map((function(e,o){var i=t?a(e,r._getPersonaControl):l(e,r._getPersonaCoinControl),s=e.onClick?function(){return r._getElementWithOnClickEvent(i,e,n,o)}:function(){return r._getElementWithoutOnClickEvent(i,e,n,o)};return Gt.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(o),className:r._classNames.member},c?c(e,s):s())}))},n.prototype._getElementWithOnClickEvent=function(t,n,r,o){var i=n.keytipProps;return Gt.createElement(cL,(0,e.__assign)({},Qh(n,Fh),this._getElementProps(n,r,o),{keytipProps:i,onClick:this._onPersonaClick.bind(this,n)}),t)},n.prototype._getElementWithoutOnClickEvent=function(t,n,r,o){return Gt.createElement("div",(0,e.__assign)({},Qh(n,Fh),this._getElementProps(n,r,o)),t)},n.prototype._getElementProps=function(e,t,n){var r=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:r.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},n.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case nL.descriptive:return this._getDescriptiveOverflowElement(e);case nL.downArrow:return this._getIconElement("ChevronDown");case nL.more:return this._getIconElement("More");default:return null}},n.prototype._getDescriptiveOverflowElement=function(t){var n=this.props.personaSize;if(!t||t.length<1)return null;var r=t.map((function(e){return e.personaName})).join(", "),o=(0,e.__assign)({title:r},this.props.overflowButtonProps),i=Math.max(t.length,0),a=this._classNames;return Gt.createElement(cL,(0,e.__assign)({},o,{ariaDescription:o.title,className:a.descriptiveOverflowButton}),Gt.createElement(EP,{size:n,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:xI.transparent}))},n.prototype._getIconElement=function(t){var n=this.props,r=n.overflowButtonProps,o=n.personaSize,i=this._classNames;return Gt.createElement(cL,(0,e.__assign)({},r,{className:i.overflowButton}),Gt.createElement(EP,{size:o,onRenderInitials:this._renderInitials(t,!0),initialsColor:xI.transparent}))},n.prototype._getAddNewElement=function(){var t=this.props,n=t.addButtonProps,r=t.personaSize,o=this._classNames;return Gt.createElement(cL,(0,e.__assign)({},n,{className:o.addButton}),Gt.createElement(EP,{size:r,onRenderInitials:this._renderInitials("AddFriend")}))},n.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},n.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},n.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},n.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return Gt.createElement(Xx,{iconName:e,className:t?n.overflowInitialsIcon:""})}},n.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return Gt.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},n.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:CI.size32},n}(Gt.Component),pL={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},hL=Ng(dL,(function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,i=void 0===o?2:o,a=r.palette,s=r.fonts,l=Ju(pL,r),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,r.fonts.medium,{width:"auto"},n],addButton:[l.addButton,Ou(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,Ou(r,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(i,"px")}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(i,"px")}],overflowButton:[l.overflowButton,Ou(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[Iu]={color:"WindowText"},t)}],screenReaderOnly:Vu}}),void 0,{scope:"Facepile"}),mL=function(t){var n=t.personas,r=t.maxDisplayablePersonas,o=void 0===r?5:r,i=t.personaSize,a=t.overflowButton,s=void 0===a?"descriptive":a,l=t.overflowButtonProps,c=(0,e.__rest)(t,["personas","maxDisplayablePersonas","personaSize","overflowButton","overflowButtonProps"]);ll("Facepile",c.id);var u=(0,e.__assign)((0,e.__assign)({},c),{personas:n.slice(0),maxDisplayablePersonas:o,personaSize:RP(i),overflowButtonType:nL[s],overflowButtonProps:l,onRenderPersonaCoin:function(e){return jt().createElement(NP,{hideText:!0,imageUrl:null===e||void 0===e?void 0:e.imageUrl,size:i,text:null===e||void 0===e?void 0:e.personaName})}});return jt().createElement(hL,(0,e.__assign)({},u))},fL="100vh",gL={root:{width:"100%",minHeight:fL}},vL={root:{overflowX:"hidden",width:"100vw",minHeight:fL}},yL=function(e){return{root:{position:"fixed",minHeight:"44px",zIndex:Tn.twoUINavBar,width:"100%",backgroundColor:e.semanticColors.bodyBackground}}},bL={root:{flex:2,boxSizing:"border-box",width:"100%",selectors:(aL={"#uhf-footer > div":{paddingLeft:0,paddingRight:0}},aL[jv]={padding:"0 16px 10px",width:"100%"},aL[Vv]={padding:"0 16px 10px",width:"100%"},aL[zv]={padding:"0 48px 10px",width:"100%"},aL[Uv]={padding:"0 54px 10px",width:"100%"},aL[Wv]={padding:"0 0 10px",margin:"0 auto",maxWidth:"968px",width:"100%"},aL[Gv]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},aL)}},CL=function(e){var t=e.messageBarContainer,n=e.leftNavContainer,r=e.children,o=e.id;ll("WithNavBarPageLayout",o);var i=ny(),a=Un(),s=dg(),l=(0,Gt.useRef)(null);return(0,Gt.useLayoutEffect)((function(){if(l.current&&l.current.parentNode){var e=document.getElementById("uhf-footer");if(e){var t=e.parentElement;return l.current.parentNode.appendChild(e),function(){t.appendChild(e)}}}}),[]),jt().createElement(Tg,{horizontal:!0,styles:gL,doNotRenderFalsyValues:!0},"s"!==i&&"s"!==a?n:null,jt().createElement(Tg,{styles:vL,doNotRenderFalsyValues:!0},jt().createElement("main",{role:"main",id:o,tabIndex:-1,style:{outline:"none"}},"s"===i||"s"===a?jt().createElement(Tg,{styles:yL(s),doNotRenderFalsyValues:!0},n):null,jt().createElement(Tg,{doNotRenderFalsyValues:!0},t),jt().createElement(Tg,{verticalAlign:"start",styles:bL,doNotRenderFalsyValues:!0},jt().createElement("div",{style:{minHeight:fL,padding:"0px 0px 4px 0px"}},r),jt().createElement("div",{ref:l})))))},SL="100vh",xL={root:{width:"100%",minHeight:SL}},_L={root:{overflowX:"hidden",width:"100vw",minHeight:SL}},EL={root:{boxSizing:"border-box",width:"100%",selectors:(sL={},sL[jv]={padding:"0 16px 10px",width:"100%"},sL[Vv]={padding:"0 32px 10px",width:"100%"},sL[zv]={padding:"0 48px 10px",width:"100%"},sL[Uv]={padding:"0 54px 10px",width:"100%"},sL[Wv]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},sL[Gv]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},sL)}},kL=function(e){var t=e.messageBarContainer,n=e.children,r=e.id;return ll("WithoutNavBarPageLayout",r),jt().createElement(Tg,{horizontal:!0,styles:xL,doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:_L},jt().createElement("main",{role:"main",id:r,tabIndex:-1,style:{outline:"none"}},jt().createElement(Tg,{doNotRenderFalsyValues:!0},t),jt().createElement(Tg,{verticalAlign:"start",styles:EL,doNotRenderFalsyValues:!0},n))))},wL=function(t){var n=t.messageBarContainer,r=t.children,o=t.id,i=(0,e.__rest)(t,["messageBarContainer","children","id"]);switch(i.layoutType){case"withoutNavBar":return jt().createElement(kL,{layoutType:i.layoutType,messageBarContainer:n,id:o},r);case"withNavBar":return jt().createElement(CL,{layoutType:i.layoutType,messageBarContainer:n,leftNavContainer:i.leftNavContainer,id:o},r)}},IL=function(e){var t=e.variant,n=void 0===t?"AMC":t,r=e.content,o=e.cv,i=e.id;return ll("FatalError",i),jt().createElement(HP,{variant:n},jt().createElement(wL,{layoutType:"withoutNavBar",id:i},jt().createElement(bb,{margin:"64px 0 48px 0"},jt().createElement(Cb,{align:"center",textAlignment:"center",padding:"37px 0 3px 0"},jt().createElement(nb,{tag:"h2",variant:"pageBanner"},r.title)),jt().createElement(Cb,{align:"center",textAlignment:"center",padding:"4px 0 8px 0"},jt().createElement(Ib,{variant:"statusHeader"},r.summary))),jt().createElement(bb,{padding:"24px 0 0 0"},jt().createElement(Cb,{align:"center"},jt().createElement(Ib,null,"TraceId: ",o)))))},PL="6.12vw",TL=("-".concat(PL),(0,Gt.forwardRef)((function(t,n){var r=t.mode,o=t.operationData,i=t.challengeSource,a=t.noAudioSupportMessage,s=t.playAudioButtonProps,l=t.switchToVisualWhenAudioFailedButtonProps,c=t.cannotLoadChallengeMessage,u=t.onNewChallengeRequested,d=t.reloaded,p=(0,Gt.useRef)(null),h=function(){var e=xi().operationEntities,t=Ei;e&&(t=e.operationDispatchContext);var n=(0,Gt.useContext)(t);if(!n)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return n}(),m=jt().useState(!1),f=m[0],g=m[1];(0,Gt.useImperativeHandle)(n,(function(){return{playAudioChallenge:v}}));var v=function(){var e,t,n;"audio"===r&&((null===(e=p.current)||void 0===e?void 0:e.paused)?(null===(t=p.current)||void 0===t||t.play(),g(!0)):(null===(n=p.current)||void 0===n||n.pause(),g(!1)))},y=jt().createElement(GE,(0,e.__assign)({},s,{onClick:v,"data-testid":"playbutton"}),jt().createElement(Hy,{iconName:f?"Pause":"Play",size:"72px"})),b=d?jt().createElement(UT,{shouldFocusOnMount:!0},y):[y],C=jt().createElement(jt().Fragment,null,"audio"===r?jt().createElement(jt().Fragment,null,jt().createElement("audio",{ref:p,src:i,onError:function(){h({name:o.operationName,status:"update-failed",error:{name:"HipChallenge audio error",message:"Audio failed to loaded"}})},onEnded:function(){g(!1)}},jt().createElement(Ib,null,a),jt().createElement(JE,(0,e.__assign)({},l,{onClick:function(e){u("visual")}}))),b):null,"visual"===r?jt().createElement(jt().Fragment,null,jt().createElement(zk,{imageType:"ariaHiddenImage",src:i})):null),S=jt().createElement(Ib,{colorOverride:"error"},c),x="audio"===r?jt().createElement(nw,{height:96,width:102}):jt().createElement(nw,{height:96,width:216});return jt().createElement(bb,{height:96,verticalAlign:"center"},jt().createElement(dv,{operationData:{componentName:"".concat(o.componentName,".challengeBase"),operationName:o.operationName,defaultState:"inert"},firstLoadView:x,updatingView:x,updateFailedView:S,failedView:S,finishedView:C}))}))),DL=function(t){var n=t.mode,r=t.refreshChallengeButtonProps,o=t.switchToAudioButtonProps,i=t.switchToVisualButtonProps,a=t.bottomMargin,s=void 0===a?16:a,l=t.reloaded,c=t.onNewChallengeRequested,u=jt().createElement(JE,(0,e.__assign)({iconName:"Volume"},o,{onClick:function(e){c("audio")}})),d=l?jt().createElement(UT,{shouldFocusOnMount:!0},u):[u];return jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"center",margin:"0px 0px ".concat(s,"px 0px")},jt().createElement(JE,(0,e.__assign)({iconName:"Refresh"},r,{onClick:function(e){c(n)}})),"visual"===n?d:jt().createElement(JE,(0,e.__assign)({iconName:"Photo2"},i,{onClick:function(e){c("visual")}})))},AL=function(e){var t=e.mode,n=e.alignment,r=e.controlsBottomMargin,o=void 0===r?16:r,i=jt().createElement(bb,null,jt().createElement(bb,{margin:"24px 0px ".concat(o,"px 0px"),horizontal:!0,childrenGap:17},jt().createElement(nw,{height:12,width:48}),jt().createElement(nw,{height:12,width:48}))),a=jt().createElement(bb,{margin:"8px 0px 8px 0px"},jt().createElement(nw,{height:12,width:176})),s=jt().createElement(bb,{margin:"0px 0px 8px 0px"},jt().createElement(nw,{height:96,width:216})),l=jt().createElement(bb,{margin:"0px 0px 8px 0px"},jt().createElement(nw,{height:96,width:102})),c=jt().createElement(nw,{height:25,width:432}),u=jt().createElement(bb,{margin:"0px 0px 18px 0px"},jt().createElement(nw,{height:8,width:113}));return"audio"===t?jt().createElement(bb,{horizontalAlign:n},a,l,i,u,c):jt().createElement(bb,{horizontalAlign:n},a,s,i,c)};var RL,NL=zg(),ML="TextField",FL=function(t){function n(e){var n=t.call(this,e)||this;n._textElement=Gt.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?Gt.createElement(ub,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?Gt.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState((function(e){return{isRevealingPassword:!e.isRevealingPassword}}))},n._onInputChange=function(e){var t,r,o=e.target.value,i=BL(n.props,n.state)||"";void 0!==o&&o!==n._lastChangeValue&&o!==i?(n._lastChangeValue=o,null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})):n._lastChangeValue=void 0},Mb(n),n._async=new Vb(n),n._fallbackId=bh(ML),n._descriptionId=bh("TextFieldDescription"),n._labelId=bh("TextFieldLabel"),n._prefixId=bh("TextFieldPrefix"),n._suffixId=bh("TextFieldSuffix"),n._warnControlledUsage();var r=e.defaultValue,o=void 0===r?"":r;return"number"===typeof o&&(o=String(o)),n.state={uncontrolledValue:n._isControlled?void 0:o,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return BL(this.props,this.state)},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},n.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,i=void 0===o?[null,null]:o,a=i[0],s=i[1];!!e.multiline!==!!r.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==r.value&&(this._lastChangeValue=void 0);var l=BL(e,t),c=this.value;l!==c&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),OL(r)&&this._delayedValidate(c))},n.prototype.render=function(){var t=this.props,n=t.borderless,r=t.className,o=t.disabled,i=t.invalid,a=t.iconProps,s=t.inputClassName,l=t.label,c=t.multiline,u=t.required,d=t.underlined,p=t.prefix,h=t.resizable,m=t.suffix,f=t.theme,g=t.styles,v=t.autoAdjustHeight,y=t.canRevealPassword,b=t.revealPasswordAriaLabel,C=t.type,S=t.onRenderPrefix,x=void 0===S?this._onRenderPrefix:S,_=t.onRenderSuffix,E=void 0===_?this._onRenderSuffix:_,k=t.onRenderLabel,w=void 0===k?this._onRenderLabel:k,I=t.onRenderDescription,P=void 0===I?this._onRenderDescription:I,T=this.state,D=T.isFocused,A=T.isRevealingPassword,R=this._errorMessage,N="boolean"===typeof i?i:!!R,M=!!y&&"password"===C&&function(){if("boolean"!==typeof RL){var e=ic();if(null===e||void 0===e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");RL=!(function(){var e,t=ic();return!!(null===(e=null===t||void 0===t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}()||t)}else RL=!0}return RL}(),F=this._classNames=NL(g,{theme:f,className:r,disabled:o,focused:D,required:u,multiline:c,hasLabel:!!l,hasErrorMessage:N,borderless:n,resizable:h,hasIcon:!!a,underlined:d,inputClassName:s,autoAdjustHeight:v,hasRevealButton:M});return Gt.createElement("div",{ref:this.props.elementRef,className:F.root},Gt.createElement("div",{className:F.wrapper},w(this.props,this._onRenderLabel),Gt.createElement("div",{className:F.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&Gt.createElement("div",{className:F.prefix,id:this._prefixId},x(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),a&&Gt.createElement(Xx,(0,e.__assign)({className:F.icon},a)),M&&Gt.createElement("button",{"aria-label":b,className:F.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!A,type:"button"},Gt.createElement("span",{className:F.revealSpan},Gt.createElement(Xx,{className:F.revealIcon,iconName:A?"Hide":"RedEye"}))),(void 0!==m||this.props.onRenderSuffix)&&Gt.createElement("div",{className:F.suffix,id:this._suffixId},E(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&Gt.createElement("span",{id:this._descriptionId},P(this.props,this._onRenderDescription),R&&Gt.createElement("div",{role:"alert"},Gt.createElement(qg,null,this._renderErrorMessage()))))},n.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},n.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},n.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},n.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},n.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(n.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),n.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},n.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,Rd("Warning: 'value' prop on '".concat(ML,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(n.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isControlled",{get:function(){return void 0!==(e=this.props)[t="value"]&&null!==e[t];var e,t},enumerable:!1,configurable:!0}),n.prototype._onRenderPrefix=function(e){var t=e.prefix;return Gt.createElement("span",{style:{paddingBottom:"1px"}},t)},n.prototype._onRenderSuffix=function(e){var t=e.suffix;return Gt.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(n.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),n.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"===typeof e?Gt.createElement("p",{className:this._classNames.errorMessage},Gt.createElement("span",{"data-automation-id":"error-message"},e)):Gt.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(n.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),n.prototype._renderTextArea=function(){var t=this.props.invalid,n=void 0===t?!!this._errorMessage:t,r=Qh(this.props,Oh,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return Gt.createElement("textarea",(0,e.__assign)({id:this._id},r,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":n,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},n.prototype._renderInput=function(){var t=this.props,n=t.ariaLabel,r=t.invalid,o=void 0===r?!!this._errorMessage:r,i=t.onRenderPrefix,a=t.onRenderSuffix,s=t.prefix,l=t.suffix,c=t.type,u=void 0===c?"text":c,d=[];t.label&&d.push(this._labelId),(void 0!==s||i)&&d.push(this._prefixId),(void 0!==l||a)&&d.push(this._suffixId);var p=(0,e.__assign)((0,e.__assign)({type:this.state.isRevealingPassword?"text":u,id:this._id},Qh(this.props,Bh,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(d.length>0?d.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":n,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":o,onFocus:this._onFocus,onBlur:this._onBlur}),h=function(t){return Gt.createElement("input",(0,e.__assign)({},t))};return(this.props.onRenderInput||h)(p,h)},n.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!OL(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!==typeof r&&"then"in r){var o=++this._lastValidation;r.then((function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},n.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},n.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},n.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},n}(Gt.Component);function BL(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"===typeof r?String(r):r}function OL(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var LL={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function HL(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,i=o.palette,a=o.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(e={},e[Iu]={height:31},e)}]}}}var VL=Ng(FL,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h,m=t.theme,f=t.className,g=t.disabled,v=t.focused,y=t.required,b=t.multiline,C=t.hasLabel,S=t.borderless,x=t.underlined,_=t.hasIcon,E=t.resizable,k=t.hasErrorMessage,w=t.inputClassName,I=t.autoAdjustHeight,P=t.hasRevealButton,T=m.semanticColors,D=m.effects,A=m.fonts,R=Ju(LL,m),N={background:T.disabledBackground,color:g?T.disabledText:T.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(n={},n[Iu]={background:"Window",color:g?"GrayText":"WindowText"},n)},M=[{color:T.inputPlaceholderText,opacity:1,selectors:(r={},r[Iu]={color:"GrayText"},r)}],F={color:T.disabledText,selectors:(o={},o[Iu]={color:"GrayText"},o)};return{root:[R.root,A.medium,y&&R.required,g&&R.disabled,v&&R.active,b&&R.multiline,S&&R.borderless,x&&R.underlined,Td,{position:"relative"},f],wrapper:[R.wrapper,x&&[{display:"flex",borderBottom:"1px solid ".concat(k?T.errorText:T.inputBorder),width:"100%"},g&&{borderBottomColor:T.disabledBackground,selectors:(i={},i[Iu]=(0,e.__assign)({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},!g&&{selectors:{":hover":{borderBottomColor:k?T.errorText:T.inputBorderHovered,selectors:(a={},a[Iu]=(0,e.__assign)({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},v&&[{position:"relative"},Hu(k?T.errorText:T.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[R.fieldGroup,Td,{border:"1px solid ".concat(T.inputBorder),borderRadius:D.roundedCorner2,background:T.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},b&&{minHeight:"60px",height:"auto",display:"flex"},!v&&!g&&{selectors:{":hover":{borderColor:T.inputBorderHovered,selectors:(s={},s[Iu]=(0,e.__assign)({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},v&&!x&&Hu(k?T.errorText:T.inputFocusBorderAlt,D.roundedCorner2),g&&{borderColor:T.disabledBackground,selectors:(l={},l[Iu]=(0,e.__assign)({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l),cursor:"default"},S&&{border:"none"},S&&v&&{border:"none",selectors:{":after":{border:"none"}}},x&&{flex:"1 1 0px",border:"none",textAlign:"left"},x&&g&&{backgroundColor:"transparent"},k&&!x&&{borderColor:T.errorText,selectors:{"&:hover":{borderColor:T.errorText}}},!C&&y&&{selectors:(c={":before":{content:"'*'",color:T.errorText,position:"absolute",top:-5,right:-10}},c[Iu]={selectors:{":before":{color:"WindowText",right:-14}}},c)}],field:[A.medium,R.field,Td,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:T.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[Iu]={background:"Window",color:g?"GrayText":"WindowText"},u)},Ad(M),b&&!E&&[R.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&I&&{overflow:"hidden"},_&&!P&&{paddingRight:24},b&&_&&{paddingRight:40},g&&[{backgroundColor:T.disabledBackground,color:T.disabledText,borderColor:T.disabledBackground},Ad(F)],x&&{textAlign:"left"},v&&!S&&{selectors:(d={},d[Iu]={paddingLeft:11,paddingRight:11},d)},v&&b&&!S&&{selectors:(p={},p[Iu]={paddingTop:4},p)},w],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Su.medium,lineHeight:18},g&&{color:T.disabledText}],description:[R.description,{color:T.bodySubtext,fontSize:A.xSmall.fontSize}],errorMessage:[R.errorMessage,xu.slideDownIn20,A.small,{color:T.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[R.prefix,N],suffix:[R.suffix,N],revealButton:[R.revealButton,"ms-Button","ms-Button--icon",Ou(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:T.link,selectors:{":hover":{outline:0,color:T.primaryButtonBackgroundHovered,backgroundColor:T.buttonBackgroundHovered,selectors:(h={},h[Iu]={borderColor:"Highlight",color:"Highlight"},h)},":focus":{outline:0}}},_&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Su.medium,lineHeight:18},subComponentStyles:{label:HL(t)}}}),void 0,{scope:"TextField"}),zL=function(e,t,n){var r={background:e.palette.transparent};return t||(r.backgroundColor=e.palette.neutralHigh),{fieldGroup:r,suffix:{background:t?e.palette.neutralLighter:e.palette.transparent,padding:0},wrapper:n&&{display:"block"},subComponentStyles:{label:GL(n)}}},UL=function(t,n,r){var o=zL(t,n,r);return(0,e.__assign)((0,e.__assign)({},o),{prefix:{display:"none"}})},WL=function(t,n,r){var o=zL(t,n,r);return(0,e.__assign)((0,e.__assign)({},o),{field:{padding:"0 8px 0 0"},prefix:{background:n?t.palette.neutralLighter:t.palette.transparent,padding:"0px 8px"}})},GL=function(e){return{root:e&&{padding:"0px",height:"100%"}}},jL=function(t){var n,r=t["aria-label"],o=t.underlined,i=t.imageSrc,a=(0,e.__rest)(t,["aria-label","underlined","imageSrc"]),s=dg(),l=!!i,c=(0,Gt.useState)(Mx.notLoaded),u=c[0],d=c[1];ll("TextInput",a.id),Fy("TextInput",a),n=l&&u!==Mx.error?WL(s,a.disabled||!1,o):UL(s,a.disabled||!1,o);var p=function(e){e===Mx.loaded?d(Mx.loaded):e===Mx.notLoaded?d(Mx.notLoaded):d(Mx.error)},h={};u===Mx.notLoaded&&(h={root:{display:"none"}});return l?jt().createElement(VL,(0,e.__assign)({},a,{underlined:o,ariaLabel:r,styles:n,onRenderPrefix:function(){return jt().createElement(jt().Fragment,null,u===Mx.notLoaded?jt().createElement(sb,{size:qy.small}):null,jt().createElement(Ux,{styles:h,shouldFadeIn:!0,src:i,height:"16px",width:"16px",role:"presentation",onLoadingStateChange:p}))}})):jt().createElement(VL,(0,e.__assign)({},a,{underlined:o,ariaLabel:r,styles:n}))},qL=function(t){var n=t.mode,r=t.userSolution,o=t.audioPlaceholder,i=t.visualPlaceholder,a=t.playAudioInstruction,s=t.onSolutionChanged,l=t.onPlayAudio,c=(0,e.__rest)(t,["mode","userSolution","audioPlaceholder","visualPlaceholder","playAudioInstruction","onSolutionChanged","onPlayAudio"]),u=eE(),d="audio"===n?o:i;return jt().createElement(jt().Fragment,null,"audio"===n?jt().createElement(bb,{margin:"0px 0px 16px 0px"},jt().createElement(Ib,{id:u},a)):null,jt().createElement(jL,(0,e.__assign)({},c,{"aria-describedby":u,value:r,placeholder:d,onChange:function(e,t){(null===t||void 0===t?void 0:t.endsWith("1"))&&"audio"===n?l():s(null!==t&&void 0!==t?t:"")}})))},KL=function(t){var n=t.variant,r=t.mode,o=t.challengeSource,i=t.userSolution,a=t.operationData,s=t.titleProps,l=t.challengeProps,c=t.controlsProps,u=t.solutionInputProps,d=t.visualCaptchaLoadedMessage,p=t.audioCaptchaLoadedMessage,h=t.onNewChallengeRequested,m=t.onSolutionChanged,f=(0,Gt.useState)(!1),g=f[0],v=f[1];ll("HipChallenge");var y=(0,Gt.useRef)(null),b=s?jt().createElement(Ib,(0,e.__assign)({},s,{weightOverride:"semi-bold"})):null,C=function(e){v(!0),h(e)},S="visual"===r?d:p,x=jt().createElement(TL,(0,e.__assign)({},l,{mode:r,ref:y,challengeSource:o,operationData:a,onNewChallengeRequested:C,visualCaptchaLoadedMessage:d,audioCaptchaLoadedMessage:p,reloaded:g})),_=jt().createElement(DL,(0,e.__assign)({},c,{mode:r,reloaded:g,onNewChallengeRequested:C})),E=(0,e.__assign)((0,e.__assign)({},u),{mode:r,userSolution:i,onSolutionChanged:m,onPlayAudio:function(){var e;null===(e=null===y||void 0===y?void 0:y.current)||void 0===e||e.playAudioChallenge()}}),k=jt().createElement(qL,(0,e.__assign)({},E)),w=jt().createElement(qL,(0,e.__assign)({},E,{id:"".concat(E.id,"-disabled"),"data-bi-id":"".concat(E["data-bi-id"],"-disabled"),disabled:!0})),I=jt().createElement(dv,{operationData:{componentName:"".concat(a.componentName,".challengeSolution"),operationName:a.operationName,defaultState:"inert"},inertView:w,firstLoadView:w,updatingView:w,updateFailedView:w,failedView:w,finishedView:k}),P=jt().createElement(AL,{mode:r,controlsBottomMargin:c.bottomMargin,alignment:n.alignment}),T="top"===n.titleLocation?jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontalAlign:n.alignment},jt().createElement(bb,{margin:"8px 0px 8px 0px"},b),x,_),I):jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontalAlign:n.alignment},x,_,jt().createElement(bb,{margin:"0 0 16px 0"},b)),I),D=jt().createElement(jt().Fragment,null,S&&g?jt().createElement(nI,{message:S,ariaLive:"polite"}):jt().createElement(jt().Fragment,null),T);return jt().createElement(dv,{operationData:{componentName:a.componentName,operationName:a.operationName,defaultState:"inert"},inertView:P,firstLoadView:T,updatingView:T,updateFailedView:T,failedView:T,finishedView:D})},YL=function(e,t){void 0===t&&(t=.5);var n=(0,Gt.useState)(!1),r=n[0],o=n[1];return(0,Gt.useEffect)((function(){if(e.current){var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(o(!0),n.unobserve(e.target))}))}),{threshold:t});return n.observe(e.current),function(){e.current&&n.unobserve(e.current)}}}),[e]),r},XL=function(t){return jt().createElement(bb,(0,e.__assign)({},Uw(!0)),jt().createElement(Jw,(0,e.__assign)({},Ww,t)))},QL=function(t){var n=t.iconName,r=t.size;return jt().createElement(bb,(0,e.__assign)({},Uw(!1)),jt().createElement(bb,(0,e.__assign)({},Ww,{horizontalAlign:"center",verticalAlign:"center"}),jt().createElement(Hy,{size:r,iconName:n})))},ZL=function(t){var n=t.isSmallerImg,r=void 0!==n&&n,o=(0,e.__rest)(t,["isSmallerImg"]);return jt().createElement(bb,(0,e.__assign)({},Uw(r)),jt().createElement(zk,(0,e.__assign)({},Ww,o,{imageFit:"center-contain"})))},JL=function(t){switch(t.graphicType){case"image":t.graphicType;var n=(0,e.__rest)(t,["graphicType"]);return jt().createElement(ZL,(0,e.__assign)({},n));case"animation":t.graphicType;var r=(0,e.__rest)(t,["graphicType"]);return jt().createElement(XL,(0,e.__assign)({},r));case"icon":t.graphicType;var o=(0,e.__rest)(t,["graphicType"]);return jt().createElement(QL,(0,e.__assign)({},o))}},$L=function(t){var n=t.headerProps,r=t.detailsProps,o=t.graphicProps,i=t.impressionBeaconUrl,a=t.clickBeaconUrl,s=t.ctaProps,l=t.impressionWhenVisible,c=void 0!==l&&l,u=(0,e.__rest)(t,["headerProps","detailsProps","graphicProps","impressionBeaconUrl","clickBeaconUrl","ctaProps","impressionWhenVisible"]);ll("IrisCard",u.id);var d=jt().useRef(null),p=function(e,t,n,r,o){void 0===o&&(o=.5);var i=jt().useRef(null),a=YL(r||i,o),s=!r||a,l=(0,Gt.useState)(!1),c=l[0],u=l[1];return[s?jt().createElement(MO,{url:e}):jt().createElement(jt().Fragment,null),c?jt().createElement(MO,{url:t.replace(/{ACTION}/g,"click")}):jt().createElement(jt().Fragment,null),function(e){n&&n(e),u(!0)}]}(i,a,s.onClick,c?d:void 0),h=p[0],m=p[1],f=p[2];Fy("IrisCard",u);var g=(0,e.__assign)((0,e.__assign)({},s),{onClick:f});return jt().createElement(jt().Fragment,null,jt().createElement("div",{ref:d},jt().createElement(qw,(0,e.__assign)({action:g,height:"large"},u),n?jt().createElement(Vw,(0,e.__assign)({},n)):null,jt().createElement(JL,(0,e.__assign)({},o)),jt().createElement(Bw,(0,e.__assign)({},r)),jt().createElement(Nw,(0,e.__assign)({},g)))),h,m)},eH=(__webpack_require__(40475),(0,Gt.createContext)({}));function tH(e,t,n,r){var o=null!==r&&void 0!==r?r:{},i=o.context,a=o.theme,s="";if(!e){var l,c;s=null!==(l=null===i||void 0===i||null===(c=i.onThrowOnUndefinedColor)||void 0===c?void 0:c.call(i,{desiredColor:e,desiredColorName:t,callingComponentName:n,theme:a}))&&void 0!==l?l:"";var u="M365Theme error: It looks like the app tried to reference a theme color that didn't exist.\n\n    Double check you're consuming a M365Theme (a super set of Fabric ITheme) and that it has assigned the extension slot.\n\n    There's also a chance you've loaded multiple themes into the context. Run __packages__ in your web console and if you see multiple instances of OUIFR or Fluent, that might be the case.\n    Undefined extension slot: ".concat(t,"\n\n    Calling component: ").concat(n,"\n\n    'For more information, please visit https://uifabric.visualstudio.com/iss/_git/m365-admin/?path=%2Fdocs%2FnextGenThemeSystem.md&version=GBmaster';");if(null===i||void 0===i||!i.disableThrowOnUndefinedColor)throw new Error(u)}return null!==e&&void 0!==e?e:s}function nH(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var r={},o={},i=0,a=t;i<a.length;i++){var s=a[i];if(s)for(var l in s)if(s.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var u in c)c.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(c[u]):o[u]=[c[u]]);continue}var d=r[l],p=s[l];r[l]=void 0===d?p:(0,e.__spreadArray)((0,e.__spreadArray)([],Array.isArray(d)?d:[d]),Array.isArray(p)?p:[p])}}if(Object.keys(o).length>0){r.subComponentStyles={};var h=r.subComponentStyles,m=function(e){if(o.hasOwnProperty(e)){var t=o[e];h[e]=function(e){return nH.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var u in o)m(u)}return r}function rH(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&r.push("function"===typeof a?a(e):a)}return 1===r.length?r[0]:r.length?nH.apply(void 0,r):{}}function oH(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var iH=void 0;try{iH=window}catch(eDe){}function aH(e){if(oH()&&"undefined"!==typeof iH){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:iH}}var sH=0,lH=function(){function e(){}return e.getValue=function(e,t){var n=cH();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=cH(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=uH();t||(t=e.__id__=String(sH++)),n[t]=e},e.removeChangeListener=function(e){delete uH()[e.__id__]},e}();function cH(){var e,t=aH()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function uH(){return cH().__callbacks__}var dH={settings:{},scopedSettings:{},inCustomizerContext:!1},pH=lH.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),hH=[],mH=function(){function t(){}return t.reset=function(){pH.settings={},pH.scopedSettings={}},t.applySettings=function(n){pH.settings=(0,e.__assign)((0,e.__assign)({},pH.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){pH.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},pH.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=dH);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&pH.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||pH.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(Il){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){hH.push(e)},t.unobserve=function(e){hH=hH.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||hH.forEach((function(e){return e()}))},t}(),fH=Gt.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function gH(e,t){var n=function(){var e=Gt.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=Gt.useContext(fH).customizations,o=r.inCustomizerContext;return Gt.useEffect((function(){return o||mH.observe(n),function(){o||mH.unobserve(n)}}),[o]),mH.getSettings(e,t,r)}var vH=["theme","styles"];function yH(t,n,r,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,l=void 0===s?vH:s,c=Gt.forwardRef((function(o,i){var s=Gt.useRef(),c=gH(l,a),u=c.styles,d=(c.dir,(0,e.__rest)(c,["styles","dir"])),p=r?r(o):void 0,h=s.current&&s.current.__cachedInputs__||[],m=o.styles;if(!s.current||u!==h[1]||m!==h[2]){var f=function(e){return rH(e,n,u,m)};f.__cachedInputs__=[n,u,m],f.__noStyleOverride__=!u&&!m,s.current=f}return Gt.createElement(t,(0,e.__assign)({ref:i},d,p,o,{styles:s.current}))}));c.displayName="Styled"+(t.displayName||t.name);var u=i?Gt.memo(c):c;return c.displayName&&(u.displayName=c.displayName),u}function bH(e,t){if(null==e)return{};var n,r,o=Po(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SH(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wr(e,t)}function xH(e){return xH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xH(e)}function _H(e){return _H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_H(e)}function EH(e,t){if(t&&("object"===_H(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CH(e)}function kH(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(eDe){return!1}}();return function(){var n,r=xH(e);if(t){var o=xH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EH(this,n)}}var wH,IH=0,PH=1,TH=2,DH="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),AH={};try{AH=window||{}}catch(Il){}var RH,NH=function(){function t(t,n){var r,o,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?IH:PH,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(r=null===n||void 0===n?void 0:n.classNameToArgs)&&void 0!==r?r:this._classNameToArgs,this._counter=null!==(o=null===n||void 0===n?void 0:n.counter)&&void 0!==o?o:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===n||void 0===n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null===n||void 0===n?void 0:n.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===n||void 0===n?void 0:n.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(wH=AH.__stylesheet__)||wH._lastStyleElement&&wH._lastStyleElement.ownerDocument!==document){var e=(null===AH||void 0===AH?void 0:AH.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);wH=n,AH.__stylesheet__=n}return wH},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,e.__assign)((0,e.__assign)({},this._config),t)},t.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},t.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},t.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},t.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},t.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},t.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},t.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==IH?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case PH:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(eDe){}break;case TH:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},t.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),DH||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},t.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},t}();function MH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=NH.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"===typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=o.argsFromClassName(s);l?i(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"===typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function FH(e){RH!==e&&(RH=e)}function BH(){return void 0===RH&&(RH="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),RH}function OH(){return{rtl:BH()}}RH=BH();var LH,HH={};function VH(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=HH[n]=HH[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var zH={"user-select":1};function UH(e,t){var n=function(){var e;if(!LH){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,r=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();LH=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return LH}(),r=e[t];if(zH[r]){var o=e[t+1];zH[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var WH,GH=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function jH(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=GH.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var qH="left",KH="right",YH=((WH={}).left=KH,WH.right=qH,WH),XH={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function QH(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(qH)>=0)t[n]=r.replace(qH,KH);else if(r.indexOf(KH)>=0)t[n]=r.replace(KH,qH);else if(String(o).indexOf(qH)>=0)t[n+1]=o.replace(qH,KH);else if(String(o).indexOf(KH)>=0)t[n+1]=o.replace(KH,qH);else if(YH[r])t[n]=YH[r];else if(XH[o])t[n+1]=XH[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function ZH(e){var t=e&&e["&"];return t?t.displayName:void 0}var JH=/\:global\((.+?)\)/g;function $H(e,t){return e.indexOf(":global(")>=0?e.replace(JH,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function eV(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?tV([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!JH.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return tV([r],t,$H(n,e))})):tV([r],t,$H(n,e))}function tV(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=NH.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"===typeof s){var l=r.argsFromClassName(s);l&&tV(l,t,n)}else if(Array.isArray(s))tV(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&eV(n,t,p,d[p])}else"object"===typeof u?null!==u&&eV(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?nV(o,c,u):o[c]=u)}}return t}function nV(e,t,n){var r="string"===typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function rV(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function oV(e,t){return t<=0?"":1===t?e:e+oV(e,t-1)}function iV(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&"displayName"!==r&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)VH(n,o),jH(n,o),QH(e,n,o),UH(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function aV(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=tV(t),o=rV(e,r);if(o){var i=NH.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(ZH(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,iV(e,r[u]))}a.rulesToInsert=s}return a}}function sV(e,t){void 0===t&&(t=1);var n=NH.getInstance(),r=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s],u=(c=c.replace(/&/g,oV("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function lV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cV(e,OH())}function cV(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=nH.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=MH(r[i]),s=a.classes,l=a.objects;if(null===l||void 0===l?void 0:l.length)(d=aV(t||{},{displayName:i},l))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var c=0,u=o;c<u.length;c++){var d;(d=u[c])&&sV(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}function uV(e){if(oH()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var dV,pV="isRTL";function hV(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===dV){var t=function(e){var t=null;try{var n=aH();t=n?n.sessionStorage.getItem(e):null}catch(eDe){}return t}(pV);null!==t&&function(e,t){void 0===t&&(t=!1);var n=uV();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=aH())||void 0===n||n.sessionStorage.setItem(e,t)}catch(eDe){}}(pV,e?"1":"0");FH(dV=e)}(dV="1"===t);var n=uV();void 0===dV&&n&&FH(dV="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!dV}var mV=0,fV=NH.getInstance();fV&&fV.onReset&&fV.onReset((function(){return mV++}));function gV(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=mV;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var l=t,c=a.theme,u=c&&void 0!==c.rtl?c.rtl:hV(),d=e.disableCaching;if(o!==mV&&(o=mV,t=new Map,n=0),e.disableCaching||(l=yV(t,i),l=yV(l,a)),!d&&l.__retval__||(l.__retval__=void 0===i?{}:cV(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=aH();(null===(s=null===p||void 0===p?void 0:p.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return l.__retval__}}function vV(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function yV(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=vV(e,r[n])}else e=vV(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=vV(e,t[o]));return e}var bV=aH()||{};void 0===bV.__currentId__&&(bV.__currentId__=0);var CV=!1;function SV(e){if(!CV){var t=NH.getInstance();t&&t.onReset&&t.onReset(xV),CV=!0}return(void 0===e?"id__":e)+bV.__currentId__++}function xV(e){void 0===e&&(e=0),bV.__currentId__=e}var _V,EV=1,kV=2;function wV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(_V||(_V={}));var IV=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"===typeof o?o(t):o&&(o.current=t)}}},PV=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&wV(t.refs,e)||(t.resolver=IV(t)),t.refs=e,t.resolver}};function TV(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function DV(e,t){return e&&e!==document.body?t(e)?e:DV(TV(e),t):null}function AV(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=TV(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function RV(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=MV(t);if(o&&l&&(i||!OV(t)&&!LV(t))){var c=RV(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&BV(c,!0)||!s)return c;var u=RV(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var p=RV(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&BV(t,s))return t;var h=RV(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:RV(e,t.parentElement,!0,!1,!1,i,a,s))}function NV(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?FV:MV)(t);if(n&&c&&BV(t,s))return t;if(!o&&c&&(i||!OV(t)&&!LV(t))){var u=NV(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}if(t===e)return null;var d=NV(e,t.nextElementSibling,!0,!0,!1,i,a,s,l);return d||(r?null:NV(e,t.parentElement,!1,!1,!0,i,a,s,l))}function MV(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!==t&&void 0!==t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function FV(e){return!!e&&MV(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function BV(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function OV(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function LV(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function HV(e,t){return"true"!==function(e,t){var n=DV(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var VV=void 0;function zV(e){if(e){if(VV)return void(VV=e);VV=e;var t=aH(e);t&&t.requestAnimationFrame((function(){VV&&VV.focus(),VV=void 0}))}}var UV=9,WV=13,GV=18,jV=27,qV=32,KV=33,YV=34,XV=35,QV=36,ZV=37,JV=38,$V=39,ez=40;function tz(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function nz(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=tz(e,e[n],t[n]))}(e,{componentDidMount:rz,componentDidUpdate:oz,componentWillUnmount:iz})}function rz(){az(this.props.componentRef,this)}function oz(e){e.componentRef!==this.props.componentRef&&(az(e.componentRef,null),az(this.props.componentRef,this))}function iz(){az(this.props.componentRef,null)}function az(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var sz,lz=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},cz=lz(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),uz=lz(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),dz=lz(uz,cz),pz=(lz(dz,["form"]),lz(dz,["height","loop","muted","preload","src","width"])),hz=(lz(pz,["poster"]),lz(dz,["start"]),lz(dz,["value"]),lz(dz,["download","href","hrefLang","media","rel","target","type"])),mz=lz(dz,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),fz=(lz(mz,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),lz(mz,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),lz(mz,["form","multiple","required"]),lz(dz,["selected","value"]),lz(dz,["cellPadding","cellSpacing"]),lz(dz,["rowSpan","scope"]),lz(dz,["colSpan","headers","rowSpan","scope"]),lz(dz,["span"]),lz(dz,["span"]),lz(dz,["acceptCharset","action","encType","encType","method","noValidate","target"]),lz(dz,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),lz(dz,["alt","crossOrigin","height","src","srcSet","useMap","width"])),gz=dz;function vz(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}function yz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"===typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"===typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}function bz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cz(e,OH())}function Cz(t,n){var r=MH(t instanceof Array?t:[t]),o=r.classes,i=r.objects;return i.length&&o.push(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=aV.apply(void 0,(0,e.__spreadArray)([t],n));return o?(sV(o,t.specificityMultiplier),o.className):""}(n||{},i)),o.join(" ")}bz({overflow:"hidden !important"});var Sz="data-is-scrollable";function xz(e){for(var t=e,n=uV(e);t&&t!==n.body;){if("true"===t.getAttribute(Sz))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(Sz)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=aH(e)),t}var _z="data-portal-element";function Ez(e,t){var n=DV(e,(function(e){return t===e||e.hasAttribute(_z)}));return null!==n&&n.hasAttribute(_z)}function kz(e){var t=Hm.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",rf(Am(),e[r]),"}");var o=n.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+o+"}",!0),t.cacheClassName(a,o,[],["keyframes",o]),a}var wz="cubic-bezier(.1,.9,.2,1)",Iz="cubic-bezier(.1,.25,.75,.9)",Pz="0.167s",Tz="0.267s",Dz="0.367s",Az="0.467s",Rz=kz({from:{opacity:0},to:{opacity:1}}),Nz=kz({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Mz=pU(-10),Fz=pU(-20),Bz=pU(-40),Oz=pU(-400),Lz=pU(10),Hz=pU(20),Vz=pU(40),zz=pU(400),Uz=hU(10),Wz=hU(20),Gz=hU(-10),jz=hU(-20),qz=mU(10),Kz=mU(20),Yz=mU(40),Xz=mU(400),Qz=mU(-10),Zz=mU(-20),Jz=mU(-40),$z=mU(-400),eU=fU(-10),tU=fU(-20),nU=fU(10),rU=fU(20),oU=kz({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),iU=kz({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),aU=kz({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),sU=kz({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),lU=kz({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),cU=kz({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),uU=wz;function dU(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function pU(e){return kz({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function hU(e){return kz({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function mU(e){return kz({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function fU(e){return kz({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var gU=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=bz(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:dU(Rz+","+Mz,Dz,wz),slideRightIn20:dU(Rz+","+Fz,Dz,wz),slideRightIn40:dU(Rz+","+Bz,Dz,wz),slideRightIn400:dU(Rz+","+Oz,Dz,wz),slideLeftIn10:dU(Rz+","+Lz,Dz,wz),slideLeftIn20:dU(Rz+","+Hz,Dz,wz),slideLeftIn40:dU(Rz+","+Vz,Dz,wz),slideLeftIn400:dU(Rz+","+zz,Dz,wz),slideUpIn10:dU(Rz+","+Uz,Dz,wz),slideUpIn20:dU(Rz+","+Wz,Dz,wz),slideDownIn10:dU(Rz+","+Gz,Dz,wz),slideDownIn20:dU(Rz+","+jz,Dz,wz),slideRightOut10:dU(Nz+","+qz,Dz,wz),slideRightOut20:dU(Nz+","+Kz,Dz,wz),slideRightOut40:dU(Nz+","+Yz,Dz,wz),slideRightOut400:dU(Nz+","+Xz,Dz,wz),slideLeftOut10:dU(Nz+","+Qz,Dz,wz),slideLeftOut20:dU(Nz+","+Zz,Dz,wz),slideLeftOut40:dU(Nz+","+Jz,Dz,wz),slideLeftOut400:dU(Nz+","+$z,Dz,wz),slideUpOut10:dU(Nz+","+eU,Dz,wz),slideUpOut20:dU(Nz+","+tU,Dz,wz),slideDownOut10:dU(Nz+","+nU,Dz,wz),slideDownOut20:dU(Nz+","+rU,Dz,wz),scaleUpIn100:dU(Rz+","+oU,Dz,wz),scaleDownIn100:dU(Rz+","+aU,Dz,wz),scaleUpOut103:dU(Nz+","+sU,Pz,Iz),scaleDownOut98:dU(Nz+","+iU,Pz,Iz),fadeIn100:dU(Rz,Pz,Iz),fadeIn200:dU(Rz,Tz,Iz),fadeIn400:dU(Rz,Dz,Iz),fadeIn500:dU(Rz,Az,Iz),fadeOut100:dU(Nz,Pz,Iz),fadeOut200:dU(Nz,Tz,Iz),fadeOut400:dU(Nz,Dz,Iz),fadeOut500:dU(Nz,Az,Iz),rotate90deg:dU(lU,"0.1s",Iz),rotateN90deg:dU(cU,"0.1s",Iz)}),vU="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";function yU(e,t){return"@media only screen"+("number"===typeof e?" and (min-width: "+e+"px)":"")+("number"===typeof t?" and (max-width: "+t+"px)":"")}var bU,CU="ms-Fabric--isFocusVisible",SU="ms-Fabric--isFocusHidden";function xU(e,t){e&&(e.classList.add(t?CU:SU),e.classList.remove(t?SU:CU))}function _U(e,t,n){var r;n?n.forEach((function(t){return xU(t.current,e)})):xU(null===(r=aH(t))||void 0===r?void 0:r.document.body,e)}function EU(e,t,n,r,o,i,a,s){return kU(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function kU(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,p=t.borderColor,h=void 0===p?e.palette.white:p,m=t.outlineColor,f=void 0===m?e.palette.neutralSecondary:m,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:a+1,top:a+1,bottom:a+1,right:a+1,border:l+"px solid "+h,outline:l+"px solid "+f,zIndex:bU.FocusStyle,borderRadius:o,selectors:(r={},r[vU]=d,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(bU||(bU={}));var wU={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},IU=!1,PU=0,TU={empty:!0},DU={},AU="undefined"===typeof WeakMap?null:WeakMap;function RU(){PU++}function NU(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!AU)return e;if(!IU){var r=NH.getInstance();r&&r.onReset&&NH.getInstance().onReset(RU),IU=!0}var o,i=0,a=PU;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==PU||t>0&&i>t)&&(o=BU(),i=0,a=PU),l=o;for(var c=0;c<r.length;c++){var u=FU(r[c]);l.map.has(u)||l.map.set(u,BU()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function MU(e){if(!AU)return e;var t=new AU;return function(n){if(!n||"function"!==typeof n&&"object"!==typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function FU(e){return e?"object"===typeof e||"function"===typeof e?e:(DU[e]||(DU[e]={val:e}),DU[e]):TU}function BU(){return{map:AU?new AU:null}}var OU=NU((function(e,t){var n=NH.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function LU(e,t,n){return OU(e,void 0!==n?n:t.disableGlobalClassNames)}var HU=Sf({}),VU=[],zU="theme";function UU(){var t,n,r,o=aH();(null===(n=null===o||void 0===o?void 0:o.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var r;void 0===n&&(n=!1);HU=Sf(t,n),pd((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},HU.palette),HU.semanticColors),HU.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),t[c]=u}return t}(HU))),mH.applySettings(((r={}).theme=HU,r)),VU.forEach((function(e){try{e(HU)}catch(eDe){}}))}(o.FabricConfig.legacyTheme):mH.getSettings([zU]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(HU=Sf(o.FabricConfig.theme)),mH.applySettings(((t={}).theme=HU,t)))}UU();var WU=lH.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),GU=NH.getInstance();GU&&GU.onReset&&GU.onReset((function(){for(var e in WU)WU.hasOwnProperty(e)&&WU[e].subset&&(WU[e].subset.className=void 0)}));var jU=function(e){return e.toLowerCase()};function qU(e){var t,n=void 0,r=WU.__options;if(e=e?jU(e):"",e=WU.__remapped[e]||e)if(n=WU[e]){var o=n.subset;o&&o.fontFace&&(o.isRegistered||(!function(e){var t=NH.getInstance(),n=iV(OH(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}(o.fontFace),o.isRegistered=!0),o.className||(o.className=bz(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!r.disableWarnings&&r.warnOnMissingIcons&&(t='The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.',console&&console.warn&&console.warn(t));return n}var KU={},YU=void 0;try{YU=window}catch(eDe){}function XU(e,t){if("undefined"!==typeof YU){var n=YU.__packages__=YU.__packages__||{};if(!n[e]||!KU[e])KU[e]=t,(n[e]=n[e]||[]).push(t)}}XU("@fluentui/set-version","6.0.0"),XU("@fluentui/style-utilities","8.7.12"),UU();var QU,ZU="data-is-focusable",JU="data-focuszone-id",$U="tabindex",eW="data-no-vertical-wrap",tW="data-no-horizontal-wrap",nW=999999999,rW=-999999999;function oW(e,t){var n;"function"===typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null===t||void 0===t?void 0:t.ctrlKey,metaKey:null===t||void 0===t?void 0:t.metaKey,shiftKey:null===t||void 0===t?void 0:t.shiftKey,altKey:null===t||void 0===t?void 0:t.altKey,bubbles:null===t||void 0===t?void 0:t.bubbles,cancelable:null===t||void 0===t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var iW={},aW=new Set,sW=["text","number","password","email","tel","url","search","textarea"],lW=!1,cW=function(t){function n(e){var r,o,i,a,s=t.call(this,e)||this;s._root=Gt.createRef(),s._mergedRef=PV(),s._onFocus=function(e){if(!s._portalContainsElement(e.target)){var t,n=s.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,l=n.onFocus,c=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=s._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var p=e.target;p&&p!==s._root.current;){if(BV(p)&&s._isImmediateDescendantOfZone(p)){t=p;break}p=TV(p,lW)}if(c&&e.target===s._root.current){var h=u&&"function"===typeof u&&s._root.current&&u(s._root.current);h&&BV(h)?(t=h,h.focus()):(s.focus(!0),s._activeElement&&(t=null))}var m=!s._activeElement;t&&t!==s._activeElement&&((d||m)&&s._setFocusAlignment(t,!0,!0),s._activeElement=t,m&&s._updateTabIndexes()),r&&r(s._activeElement,e),(i||o)&&e.stopPropagation(),l?l(e):a&&a()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(e){if(!s._portalContainsElement(e.target)&&!s.props.disabled){for(var t=e.target,n=[];t&&t!==s._root.current;)n.push(t),t=TV(t,lW);for(;n.length&&((t=n.pop())&&BV(t)&&s._setActiveElement(t,!0),!OV(t)););}},s._onKeyDown=function(e,t){if(!s._portalContainsElement(e.target)){var n=s.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!o&&(s.props.onKeyDown&&s.props.onKeyDown(e),!e.isDefaultPrevented()&&(s._getDocument().activeElement!==s._root.current||!s._isInnerZone))){if((l&&l(e)||i&&i(e))&&s._isImmediateDescendantOfZone(e.target)){var c=s._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!LV(e.target))return;if(!s.focusElement(NV(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case qV:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(e.target,e))break;return;case ZV:if(r!==_V.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusLeft(t)))break;return;case $V:if(r!==_V.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusRight(t)))break;return;case JV:if(r!==_V.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusUp()))break;return;case ez:if(r!==_V.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusDown()))break;return;case YV:if(!a&&s._moveFocusPaging(!0))break;return;case KV:if(!a&&s._moveFocusPaging(!1))break;return;case UV:if(s.props.allowTabKey||s.props.handleTabKey===EV||s.props.handleTabKey===kV&&s._isElementInput(e.target)){var u=!1;if(s._processingTabKey=!0,r!==_V.vertical&&s._shouldWrapFocus(s._activeElement,tW))u=(hV(t)?!e.shiftKey:e.shiftKey)?s._moveFocusLeft(t):s._moveFocusRight(t);else u=e.shiftKey?s._moveFocusUp():s._moveFocusDown();if(s._processingTabKey=!1,u)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case QV:if(s._isContentEditableElement(e.target)||s._isElementInput(e.target)&&!s._shouldInputLoseFocus(e.target,!1))return!1;var d=s._root.current&&s._root.current.firstChild;if(s._root.current&&d&&s.focusElement(NV(s._root.current,d,!0)))break;return;case XV:if(s._isContentEditableElement(e.target)||s._isElementInput(e.target)&&!s._shouldInputLoseFocus(e.target,!0))return!1;var p=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(RV(s._root.current,p,!0,!0,!0)))break;return;case WV:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(e,t,n){var r=s._focusAlignment.left||s._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),l=Math.floor(t.top);return e&&o>i||!e&&a<l?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):s._shouldWrapFocus(s._activeElement,eW)?nW:rW},nz(s),s._id=SV("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=null===(o=null!==(r=e.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===o||o;return s._shouldRaiseClicksOnEnter=null!==(i=e.shouldRaiseClicksOnEnter)&&void 0!==i?i:l,s._shouldRaiseClicksOnSpace=null!==(a=e.shouldRaiseClicksOnSpace)&&void 0!==a?a:l,s}return(0,e.__extends)(n,t),n.getOuterZones=function(){return aW.size},n._onKeyDownCapture=function(e){e.which===UV&&aW.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(iW[this._id]=this,e){for(var t=TV(e,lW);t&&t!==this._getDocument().body&&1===t.nodeType;){if(OV(t)){this._isInnerZone=!0;break}t=TV(t,lW)}this._isInnerZone||(aW.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!AV(this._root.current,this._activeElement,lW)||this._defaultFocusElement&&!AV(this._root.current,this._defaultFocusElement,lW))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return BV(n)&&MV(n)?n:NV(e,n,!0)||RV(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete iW[this._id],this._isInnerZone||(aW.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,r=n.as,o=n.elementType,i=n.rootProps,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=vz(this.props,dz),u=r||o||"div";this._evaluateFocusBeforeRender();var d,p=(void 0===d&&(d=!1),!0===d&&(HU=Sf({},d)),HU);return Gt.createElement(u,(0,e.__assign)({"aria-labelledby":s,"aria-describedby":a},c,i,{className:yz((QU||(QU=bz({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),QU),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(ZU)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=iW[n.getAttribute(JU)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&AV(this._root.current,this._activeElement)&&BV(this._activeElement)&&(!t||FV(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(NV(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},n.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(RV(this._root.current,e,!0,!0,!0))}return!1},n.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},n.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=AV(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=TV(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},n.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(OV(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(ZU)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return oW(n,t),!0;n=TV(n,lW)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(OV(e))return iW[e.getAttribute(JU)];for(var t=e.firstElementChild;t;){if(OV(t))return iW[t.getAttribute(JU)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},n.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===_V.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?NV(this._root.current,o):RV(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(NV(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(RV(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,eW)?nW:rW:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,eW)?nW:rW:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,tW);return!!this._moveFocus(hV(e),(function(r,o){var i=-1;return(hV(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==_V.vertical?i=r.right-o.right:n||(i=rW),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,tW);return!!this._moveFocus(!hV(e),(function(r,o){var i=-1;return(hV(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==_V.vertical?i=o.left-r.left:n||(i=rW),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=xz(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?NV(this._root.current,n):RV(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(c.bottom),h=Math.floor(u.bottom),m=Math.floor(c.top),f=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>p+l||!e&&h<m-l)break;f>-1&&(e&&d>a?(a=d,o=f,i=n):!e&&h<s?(s=h,o=f,i=n):(-1===o||f<=o)&&(o=f,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(NV(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(RV(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===_V.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},n.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},n.prototype._getOwnerZone=function(e){for(var t=TV(e,lW);t&&t!==this._root.current&&t!==this._getDocument().body;){if(OV(t))return t;t=TV(t,lW)}return t},n.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!AV(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!BV(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];OV(r)?"true"===r.getAttribute(ZU)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute($U)&&r.setAttribute($U,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute($U)&&r.setAttribute($U,"0"))):(r.getAttribute&&"false"===r.getAttribute(ZU)&&r.setAttribute($U,"-1"),BV(r)?this.props.disabled?r.setAttribute($U,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute($U)&&r.setAttribute($U,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute($U)&&r.setAttribute($U,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},n.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&sW.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},n.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||HV(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Ez(e,this._root.current)},n.prototype._getDocument=function(){return uV(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:_V.bidirectional,shouldRaiseClicks:!0},n}(Gt.Component);__webpack_require__(40475);var uW,dW=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=aH(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=aH(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(eDe){n._logError(eDe)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var d=function t(n){var d=Date.now(),p=d-c,h=s?a-p:a;return p>=a&&(!n||s)?(c=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(t,h)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var m=function(e){h&&(r.clearTimeout(h),h=null),p=e},f=function(t){m(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(l&&n-d>=s&&(o=!0),d=n);var a=n-d,m=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:m=Math.min(m,u-g)),a>=s||v||o?f(n):null!==h&&t||!c||(h=r.setTimeout(e,m)),i},v=function(){return!!h},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return y.cancel=function(){v()&&m(Date.now())},y.flush=function(){return v()&&f(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=aH(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(eDe){n._logError(eDe)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=aH(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function pW(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function hW(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return mW.apply(this,[null,e].concat(t))}function mW(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(uW||(uW={}));var fW,gW,vW=0,yW=1,bW=2,CW=3,SW=4,xW=5,_W=6,EW=7,kW=8,wW=9,IW=10,PW=11,TW=12,DW=13;function AW(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function RW(t,n){for(var r=(0,e.__assign)({},n),o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];void 0===r[a]&&(r[a]=t[a])}return r}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(fW||(fW={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(gW||(gW={}));var NW,MW=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function FW(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var BW=((NW={})[vW]=FW(fW.top,fW.left),NW[yW]=FW(fW.top),NW[bW]=FW(fW.top,fW.right),NW[CW]=FW(fW.top,void 0,!0),NW[SW]=FW(fW.bottom,fW.left),NW[xW]=FW(fW.bottom),NW[_W]=FW(fW.bottom,fW.right),NW[EW]=FW(fW.bottom,void 0,!0),NW[kW]=FW(fW.left,fW.top),NW[wW]=FW(fW.left),NW[IW]=FW(fW.left,fW.bottom),NW[PW]=FW(fW.right,fW.top),NW[TW]=FW(fW.right),NW[DW]=FW(fW.right,fW.bottom),NW);function OW(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function LW(e,t){var n=[];return e.top<t.top&&n.push(fW.top),e.bottom>t.bottom&&n.push(fW.bottom),e.left<t.left&&n.push(fW.left),e.right>t.right&&n.push(fW.right),n}function HW(e,t){return e[fW[t]]}function VW(e,t,n){return e[fW[t]]=n,e}function zW(e,t){var n=$W(t);return(HW(e,n.positiveEdge)+HW(e,n.negativeEdge))/2}function UW(e,t){return e>0?t:-1*t}function WW(e,t){return UW(e,HW(t,e))}function GW(e,t,n){return UW(n,HW(e,n)-HW(t,n))}function jW(e,t,n,r){void 0===r&&(r=!0);var o=HW(e,t)-n,i=VW(e,t,n);return r&&(i=VW(e,-1*t,HW(e,-1*t)-o)),i}function qW(e,t,n,r){return void 0===r&&(r=0),jW(e,n,HW(t,n)+UW(n,r))}function KW(e,t,n){return WW(n,e)>WW(n,t)}function YW(e,t){for(var n=0,r=0,o=LW(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(GW(e,t,i),2)}return n}function XW(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,n,r,o){void 0===o&&(o=0);var i=[fW.left,fW.right,fW.bottom,fW.top];hV()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,p=0;p<4;p++){if(KW(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var h=YW(s,n);(!a||h<a)&&(a=h,u=l,d=c),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(c=l,l=i.slice(-1)[0]),s=JW(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=JW(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=LW(c.elementRectangle,n),d=i?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:JW(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(c,t,o,a);if(OW(p.elementRectangle,n))return p;c=QW(LW(p.elementRectangle,n),c,n,d)}else c=QW(u,c,n,d);else c=QW(u,c,n,d);return c}function QW(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;if(r&&r===-1*a)s=jW(t.elementRectangle,a,HW(n,a),!1),t.forcedInBounds=!0;else KW(s=qW(t.elementRectangle,n,a),n,-1*a)||(s=jW(s,-1*a,HW(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function ZW(e,t,n){var r=$W(t).positiveEdge;return jW(e,r,n-(zW(e,t)-HW(e,r)))}function JW(e,t,n,r,o){void 0===r&&(r=0);var i=new MW(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?qW(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=UW(-1*n,r);return jW(e,-1*n,HW(t,n)+o)}(i,t,s,r),a)?i=qW(i,t,a):i=ZW(i,l,zW(t,s));return i}function $W(e){return e===fW.top||e===fW.bottom?{positiveEdge:fW.left,negativeEdge:fW.right}:{positiveEdge:fW.top,negativeEdge:fW.bottom}}function eG(e,t,n){return n&&Math.abs(GW(e,n,t))>Math.abs(GW(e,n,-1*t))?-1*t:t}function tG(e,t,n,r,o,i,a,s){var l,c={},u=lG(t),d=i?n:-1*n,p=o||$W(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&HW(e,t)===HW(n,t)}(e,(l=p,-1*l),r)||(p=eG(e,p,r)),c[fW[d]]=GW(e,u,d),c[fW[p]]=GW(e,u,p),s&&(c[fW[-1*d]]=GW(e,u,-1*d),c[fW[-1*p]]=GW(e,u,-1*p)),c}function nG(e){return Math.sqrt(e*e*2)}function rG(t,n,r){if(void 0===t&&(t=EW),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,e.__assign)({},BW[t]);return hV()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?BW[n]:o):o}function oG(e,t,n){var r=zW(t,e),o=zW(n,e),i=$W(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function iG(e,t,n,r,o,i,a){var s=JW(e,t,r,o,a);return OW(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:XW(s,t,n,r,o,i,a)}function aG(t,n,r){var o=-1*t.targetEdge,i=new MW(0,t.elementRectangle.width,0,t.elementRectangle.height),a={},s=eG(t.elementRectangle,t.alignmentEdge?t.alignmentEdge:$W(o).positiveEdge,r),l=GW(t.elementRectangle,t.targetRectangle,o)>Math.abs(HW(n,o));return a[fW[o]]=HW(n,o),a[fW[s]]=GW(n,i,s),{elementPosition:(0,e.__assign)({},a),closestEdge:oG(t.targetEdge,n,i),targetEdge:o,hideBeak:!l}}function sG(e,t){var n=t.targetRectangle,r=$W(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=zW(n,t.targetEdge),s=new MW(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new MW(0,e,0,e);return KW(l=ZW(l=jW(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-WW(o,t.elementRectangle)),s,o)?KW(l,s,i)||(l=qW(l,s,i)):l=qW(l,s,o),l}function lG(e){var t=e.getBoundingClientRect();return new MW(t.left,t.right,t.top,t.bottom)}function cG(e){return new MW(e.left,e.right,e.top,e.bottom)}function uG(t,n,r,o){var i=t.gapSpace?t.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new MW(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=lG(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new MW(i,s,a,l)}if(!OW(n,e))for(var c=0,u=LW(n,e);c<u.length;c++){var d=u[c];n[fW[d]]=e[fW[d]]}}else n=new MW(0,0,0,0);return n}(r,t.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=oG(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(rG(t.directionalHint,t.directionalHintForRTL,o),a,r,t.coverTarget,t.alignTargetEdge),l=iG(lG(n),a,r,s,i,t.directionalHintFixed,t.coverTarget);return(0,e.__assign)((0,e.__assign)({},l),{targetRectangle:a})}function dG(e,t,n,r,o){return{elementPosition:tG(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function pG(t,n,r,o,i){var a=t.isBeakVisible&&t.beakWidth||0,s=nG(a)/2+(t.gapSpace?t.gapSpace:0),l=t;l.gapSpace=s;var c=t.bounds?cG(t.bounds):new MW(0,window.innerWidth-function(){if(void 0===sz){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),sz=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return sz}(),0,window.innerHeight),u=uG(l,r,c,o),d=aG(u,sG(a,u),c);return(0,e.__assign)((0,e.__assign)({},dG(u,n,c,t.coverTarget,i)),{beakPosition:d})}function hG(e,t,n,r){return function(e,t,n,r){return pG(e,t,n,r,!0)}(e,t,n,r)}var mG=["TEMPLATE","STYLE","SCRIPT"];function fG(e){var t=uV(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null===a||void 0===a?void 0:a.toLowerCase())&&-1===mG.indexOf(i.tagName)&&n.push([i,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}function gG(){var e=Gt.useRef();return e.current||(e.current=new dW),Gt.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function vG(e,t,n,r){var o=Gt.useRef(n);o.current=n,Gt.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return AW(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function yG(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Gt.useCallback((function(e){r.current=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];"function"===typeof i?i(e):i&&(i.current=e)}}),(0,e.__spreadArray)([],t));return r}var bG=Gt.createContext({window:"object"===typeof window?window:void 0}),CG=function(){return Gt.useContext(bG).window},SG=function(){var e;return null===(e=Gt.useContext(bG).window)||void 0===e?void 0:e.document};function xG(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==aH()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function _G(e,t){var n=e.onRestoreFocus,r=void 0===n?xG:n,o=Gt.useRef(),i=Gt.useRef(!1);Gt.useEffect((function(){return o.current=uV().activeElement,function(e){var t=uV(e),n=t&&t.activeElement;return!(!n||!AV(e,n))}(t.current)&&(i.current=!0),function(){var e;null===r||void 0===r||r({originalElement:o.current,containsFocus:i.current,documentContainsFocus:(null===(e=uV())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),vG(t,"focus",Gt.useCallback((function(){i.current=!0}),[]),!0),vG(t,"blur",Gt.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}var EG,kG=Gt.forwardRef((function(t,n){var r=RW({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=Gt.useRef(),i=yG(o,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;Gt.useEffect((function(){if(n&&t.current)return fG(t.current)}),[t,n])}(r,o),_G(r,o);var a=r.role,s=r.className,l=r.ariaLabel,c=r.ariaLabelledBy,u=r.ariaDescribedBy,d=r.style,p=r.children,h=r.onDismiss,m=function(e,t){var n=gG(),r=Gt.useState(!1),o=r[0],i=r[1];return Gt.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}o!==r&&i(r)}})),function(){return n.dispose()}})),o}(r,o),f=Gt.useCallback((function(e){if(e.which===jV)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return vG(CG(),"keydown",f),Gt.createElement("div",(0,e.__assign)({ref:i},vz(r,gz),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:f,style:(0,e.__assign)({overflowY:m?"scroll":void 0,outline:"none"},d)}),p)}));function wG(e){var t=Gt.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function IG(e,t){var n=Gt.useRef(),r=Gt.useRef(null),o=CG();if(!e||e!==n.current||"string"===typeof e){var i=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var a=uV(i);r.current=a?a.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,o]}kG.displayName="Popup";var PG=((EG={})[fW.top]=gU.slideUpIn10,EG[fW.bottom]=gU.slideDownIn10,EG[fW.left]=gU.slideLeftIn10,EG[fW.right]=gU.slideRightIn10,EG),TG=0,DG=0,AG={opacity:0,filter:"opacity(0)",pointerEvents:"none"},RG=["role","aria-roledescription"],NG={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:EW},MG=gV({disableCaching:!0});function FG(t,n,r,o,i){var a=Gt.useState(),s=a[0],l=a[1],c=Gt.useRef(0),u=Gt.useRef(),d=gG(),p=t.hidden,h=t.target,m=t.finalHeight,f=t.calloutMaxHeight,g=t.onPositioned,v=t.directionalHint;return Gt.useEffect((function(){if(!p){var a=d.requestAnimationFrame((function(){var a,d,p,v;if(n.current&&r){var y=(0,e.__assign)((0,e.__assign)({},t),{target:o.current,bounds:i()}),b=r.cloneNode(!0);b.style.maxHeight=f?""+f:"",b.style.visibility="hidden",null===(a=r.parentElement)||void 0===a||a.appendChild(b);var C=u.current===h?s:void 0,S=m?hG(y,n.current,b,C):function(e,t,n,r){return pG(e,t,n,r)}(y,n.current,b,C);null===(d=r.parentElement)||void 0===d||d.removeChild(b),!s&&S||s&&S&&(v=S,!HG((p=s).elementPosition,v.elementPosition)||!HG(p.beakPosition.elementPosition,v.beakPosition.elementPosition))&&c.current<5?(c.current++,l(S)):c.current>0&&(c.current=0,null===g||void 0===g||g(s))}}),r);return u.current=h,function(){d.cancelAnimationFrame(a),u.current=void 0}}l(void 0),c.current=0}),[p,v,d,r,f,n,o,m,i,g,s,t,h]),s}function BG(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=gG(),a=!!t;Gt.useEffect((function(){if(!r&&o&&a&&n){var e=i.requestAnimationFrame((function(){return function(e,t){var n=NV(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(zV(n),!0)}(n)}),n);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}var OG=Gt.memo(Gt.forwardRef((function(t,n){var r=RW(NG,t),o=r.styles,i=r.style,a=r.ariaLabel,s=r.ariaDescribedBy,l=r.ariaLabelledBy,c=r.className,u=r.isBeakVisible,d=r.children,p=r.beakWidth,h=r.calloutWidth,m=r.calloutMaxWidth,f=r.calloutMinWidth,g=r.doNotLayer,v=r.finalHeight,y=r.hideOverflow,b=void 0===y?!!v:y,C=r.backgroundColor,S=r.calloutMaxHeight,x=r.onScroll,_=r.shouldRestoreFocus,E=void 0===_||_,k=r.target,w=r.hidden,I=r.onLayerMounted,P=r.popupProps,T=Gt.useRef(null),D=Gt.useState(null),A=D[0],R=D[1],N=Gt.useCallback((function(e){R(e)}),[]),M=yG(T,n),F=IG(r.target,{current:A}),B=F[0],O=F[1],L=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?NG.minPagePadding:o,a=e.target,s=Gt.useState(!1),l=s[0],c=s[1],u=Gt.useRef(),d=Gt.useCallback((function(){if(!u.current||l){var e="function"===typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+i,left:e.left+i,right:e.right-i,bottom:e.bottom-i,width:e.width-2*i,height:e.height-2*i}),u.current=e,l&&c(!1)}return u.current}),[r,i,a,t,n,l]),p=gG();return vG(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),d}(r,B,O),H=FG(r,T,A,B,L),V=function(e,t,n){var r,o=e.calloutMaxHeight,i=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,l=e.hidden,c=Gt.useState(),u=c[0],d=c[1],p=null!==(r=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==r?r:{},h=p.top,m=p.bottom;return Gt.useEffect((function(){var e,n=null!==(e=t())&&void 0!==e?e:{},r=n.top,i=n.bottom;o||l?d(o||void 0):"number"===typeof h&&i?d(i-h):"number"===typeof m&&"number"===typeof r&&i&&d(i-r-m)}),[m,o,i,a,s,t,l,n,h]),u}(r,L,H),z=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,u=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,h=Gt.useRef(!1),m=gG(),f=wG([function(){h.current=!0},function(){h.current=!1}]),g=!!t;return Gt.useEffect((function(){var e=function(e){g&&!s&&v(e)},t=function(e){l||p&&p(e)||null===a||void 0===a||a(e)},f=function(e){c||v(e)},v=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,s=n.current&&!AV(n.current,i);if(s&&h.current)h.current=!1;else if(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||u||i!==r.current&&!AV(r.current,i))){if(p&&p(e))return;null===a||void 0===a||a(e)}},y=function(e){d&&((!p||p(e))&&(p||c)||(null===o||void 0===o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null===a||void 0===a||a(e))},b=new Promise((function(n){m.setTimeout((function(){if(!i&&o){var r=[AW(o,"scroll",e,!0),AW(o,"resize",t,!0),AW(o.document.documentElement,"focus",f,!0),AW(o.document.documentElement,"click",f,!0),AW(o,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[i,m,n,r,o,a,d,u,c,l,s,g,p]),f}(r,H,T,B,O),U=z[0],W=z[1],G=(null===H||void 0===H?void 0:H.elementPosition.top)&&(null===H||void 0===H?void 0:H.elementPosition.bottom),j=(0,e.__assign)((0,e.__assign)({},null===H||void 0===H?void 0:H.elementPosition),{maxHeight:V});if(G&&(j.bottom=void 0),BG(r,H,A),Gt.useEffect((function(){w||null===I||void 0===I||I()}),[w]),!O)return null;var q=b,K=u&&!!k,Y=MG(o,{theme:r.theme,className:c,overflowYHidden:q,calloutWidth:h,positions:H,beakWidth:p,backgroundColor:C,calloutMaxWidth:m,calloutMinWidth:f,doNotLayer:g}),X=(0,e.__assign)((0,e.__assign)({maxHeight:S||"100%"},i),q&&{overflowY:"hidden"}),Q=r.hidden?{visibility:"hidden"}:void 0;return Gt.createElement("div",{ref:M,className:Y.container,style:Q},Gt.createElement("div",(0,e.__assign)({},vz(r,gz,RG),{className:yz(Y.root,H&&H.targetEdge&&PG[H.targetEdge]),style:H?(0,e.__assign)({},j):AG,tabIndex:-1,ref:N}),K&&Gt.createElement("div",{className:Y.beak,style:LG(H)}),K&&Gt.createElement("div",{className:Y.beakCurtain}),Gt.createElement(kG,(0,e.__assign)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:Y.calloutMain,onDismiss:r.onDismiss,onMouseDown:U,onMouseUp:W,onRestoreFocus:r.onRestoreFocus,onScroll:x,shouldRestoreFocus:E,style:X},P),d)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pW(e,t)}));function LG(t){var n,r,o=(0,e.__assign)((0,e.__assign)({},null===(n=null===t||void 0===t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null===t||void 0===t?void 0:t.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=DG,o.top=TG),o}function HG(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function VG(e){return{height:e,width:e}}OG.displayName="CalloutContentBase";var zG,UG={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},WG=yH(OG,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=LU(UG,n),p=n.semanticColors,h=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?bU.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[vU]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},VG(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),GG=Gt.createContext((function(){return function(){}}));GG.Provider;var jG=((zG={})[JV]=1,zG[ez]=1,zG[ZV]=1,zG[$V]=1,zG[QV]=1,zG[XV]=1,zG[UV]=1,zG[KV]=1,zG[YV]=1,zG);function qG(e){return!!jG[e]}var KG=new WeakMap,YG=new WeakMap;function XG(e,t){var n,r=KG.get(e);return n=r?r+t:1,KG.set(e,n),n}var QG=Gt.createContext(void 0);function ZG(e){var t=Gt.useContext(QG);Gt.useEffect((function(){var n,r,o=aH(null===e||void 0===e?void 0:e.current);if(o&&!0!==(null===(n=o.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var i,a,s,l,c=o;if(null===(r=null===t||void 0===t?void 0:t.providerRef)||void 0===r?void 0:r.current){c=t.providerRef.current;var u=function(e){var t=YG.get(e);return t||(t={onMouseDown:function(t){return $G(t,e.registeredProviders)},onPointerDown:function(t){return ej(t,e.registeredProviders)},onKeyDown:function(t){return tj(t,e.registeredProviders)},onKeyUp:function(t){return nj(t,e.registeredProviders)}},YG.set(e,t),t)}(t);i=u.onMouseDown,a=u.onPointerDown,s=u.onKeyDown,l=u.onKeyUp}else i=$G,a=ej,s=tj,l=nj;var d=XG(c,1);return d<=1&&(c.addEventListener("mousedown",i,!0),c.addEventListener("pointerdown",a,!0),c.addEventListener("keydown",s,!0),c.addEventListener("keyup",l,!0)),function(){var e;o&&!0!==(null===(e=o.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(d=XG(c,-1))&&(c.removeEventListener("mousedown",i,!0),c.removeEventListener("pointerdown",a,!0),c.removeEventListener("keydown",s,!0),c.removeEventListener("keyup",l,!0))}}}),[t,e])}var JG=function(e){return ZG(e.rootRef),null};function $G(e,t){_U(!1,e.target,t)}function ej(e,t){"mouse"!==e.pointerType&&_U(!1,e.target,t)}function tj(e,t){qG(e.which)&&_U(!0,e.target,t)}function nj(e,t){qG(e.which)&&_U(!0,e.target,t)}var rj=function(e){var t=e.providerRef,n=e.layerRoot,r=Gt.useState([])[0],o=Gt.useContext(QG),i=void 0!==o&&!n,a=Gt.useMemo((function(){return i?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null===o||void 0===o||o.registerProvider(e)},unregisterProvider:function(e){null===o||void 0===o||o.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,o,i]);return Gt.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?Gt.createElement(QG.Provider,{value:a},e.children):Gt.createElement(Gt.Fragment,null,e.children)};function oj(t,n){void 0===t&&(t={});var r=aj(n)?n:function(t){return function(n){return t?(0,e.__assign)((0,e.__assign)({},n),t):n}}(n);return r(t)}function ij(t,n){return void 0===t&&(t={}),(aj(n)?n:function(t){void 0===t&&(t={});return function(n){var r=(0,e.__assign)({},n);for(var o in t)t.hasOwnProperty(o)&&(r[o]=(0,e.__assign)((0,e.__assign)({},n[o]),t[o]));return r}}(n))(t)}function aj(e){return"function"===typeof e}var sj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){mH.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){mH.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,t=this.props.contextTransform;return Gt.createElement(fH.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:oj(r.settings,e.settings),scopedSettings:ij(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),Gt.createElement(fH.Provider,{value:r},e.props.children)}))},n}(Gt.Component),lj=gV(),cj=NU((function(t,n){return Sf((0,e.__assign)((0,e.__assign)({},t),{rtl:n}))})),uj=Gt.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.applyTheme,a=t.applyThemeToBody,s=t.styles,l=lj(s,{theme:o,applyTheme:i,className:r}),c=Gt.useRef(null);return function(e,t,n){var r=t.bodyThemed;Gt.useEffect((function(){if(e){var t=uV(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,l,c),Gt.createElement(Gt.Fragment,null,function(t,n,r,o){var i=n.root,a=t.as,s=void 0===a?"div":a,l=t.dir,c=t.theme,u=vz(t,gz,["dir"]),d=function(e){var t=e.theme,n=e.dir,r=hV(t)?"rtl":"ltr",o=hV()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(t),p=d.rootDir,h=d.needsTheme,m=Gt.createElement(rj,{providerRef:r},Gt.createElement(s,(0,e.__assign)({dir:p},u,{className:i,ref:yG(r,o)})));h&&(m=Gt.createElement(sj,{settings:{theme:cj(c,"rtl"===l)}},m));return m}(t,l,c,n))}));uj.displayName="FabricBase";var dj={fontFamily:"inherit"},pj={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},hj=yH(uj,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[LU(pj,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":dj,"& input":dj,"& textarea":dj}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});var mj={},fj={},gj="fluent-default-layer-host",vj="#fluent-default-layer-host";var yj,bj=oH()?Gt.useLayoutEffect:Gt.useEffect,Cj=gV(),Sj=Gt.forwardRef((function(t,n){var r=Gt.useContext(GG),o=Gt.useRef(null),i=yG(o,n),a=Gt.useRef(),s=Gt.useRef(null),l=Gt.useState(!1),c=l[0],u=l[1],d=t.eventBubblingEnabled,p=t.styles,h=t.theme,m=t.className,f=t.children,g=t.hostId,v=t.onLayerDidMount,y=void 0===v?function(){}:v,b=t.onLayerMounted,C=void 0===b?function(){}:b,S=t.onLayerWillUnmount,x=t.insertFirst,_=Cj(p,{theme:h,className:m,isNotHost:!g}),E=function(e){var t,n;if(g){var r=function(e){var t=fj[e];return t&&t[0]||void 0}(g);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(g))&&void 0!==n?n:null}var o=vj,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",gj),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},k=function(){null===S||void 0===S||S();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},w=function(){var e,t=uV(o.current);if(t){var n=E(t);if(n){k();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=_.root,r.setAttribute(_z,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,o.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),a.current=r,u(!0)}}};return bj((function(){w(),g&&function(e,t){mj[e]||(mj[e]=[]),mj[e].push(t);var n=fj[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(g,w);var e=a.current?r(a.current):void 0;return function(){e&&e(),k(),g&&function(e,t){var n=mj[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete mj[e])}var o=fj[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(g,w)}}),[g]),Gt.useEffect((function(){a.current&&c&&(null===C||void 0===C||C(),null===y||void 0===y||y(),u(!1))}),[c,C,y]),Gt.createElement("span",{className:"ms-layer",ref:i},a.current&&nn.createPortal(Gt.createElement(rj,{layerRoot:!0,providerRef:s},Gt.createElement(hj,(0,e.__assign)({},!d&&function(){yj||(yj={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return yj[e]=xj})));return yj}(),{className:_.content,ref:s}),f)),a.current))}));Sj.displayName="LayerBase";var xj=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var _j={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ej=yH(Sj,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=LU(_j,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:bU.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),kj=Gt.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,i=(0,e.__rest)(t,["layerProps","doNotLayer"]),a=Gt.createElement(WG,(0,e.__assign)({},i,{doNotLayer:o,ref:n}));return o?a:Gt.createElement(Ej,(0,e.__assign)({},r),a)}));kj.displayName="Callout";var wj,Ij=gV(),Pj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"===typeof t.content?Gt.createElement("p",{className:e._classNames.subText},t.content):Gt.createElement("div",{className:e._classNames.subText},t.content)},e}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.calloutProps,o=t.directionalHint,i=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,u=void 0===c?this._onRenderContent:c,d=t.targetElement,p=t.theme;return this._classNames=Ij(a,{theme:p,className:n||r&&r.className,beakWidth:r&&r.beakWidth,gapSpace:r&&r.gapSpace,maxWidth:l}),Gt.createElement(kj,(0,e.__assign)({target:d,directionalHint:o,directionalHintForRTL:i},r,vz(this.props,gz,["id"]),{className:this._classNames.root}),Gt.createElement("div",{className:this._classNames.content,id:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},u(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:yW,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(Gt.Component),Tj=yH(Pj,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,gU.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(wj||(wj={}));var Dj,Aj,Rj,Nj,Mj=gV(),Fj=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=Gt.createRef(),r._defaultTooltipId=SV("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case uW.Parent:return r._tooltipHost.current.parentElement;case uW.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._hideTooltip()},r._onTooltipMouseEnter=function(e){var t,o=r.props,i=o.overflowMode,a=o.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&(!function(e){return e.clientWidth<e.scrollWidth}(t=s)&&!function(e){return e.clientHeight<e.scrollHeight}(t)))return}if(!e.target||!Ez(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==wj.zero){var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===jV||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case wj.medium:return 300;case wj.long:return 500;default:return 0}},nz(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new dW(r),r}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,r=t.children,o=t.content,i=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,u=void 0===c||c,d=t.tooltipProps,p=t.styles,h=t.theme;this._classNames=Mj(p,{theme:h,className:s});var m=this.state.isTooltipVisible,f=l||this._defaultTooltipId,g=(null===d||void 0===d?void 0:d.onRenderContent)?d.onRenderContent():o,v=m&&!!g,y=u&&m&&g?f:void 0;return Gt.createElement("div",(0,e.__assign)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":y}),r,v&&Gt.createElement(Tj,(0,e.__assign)({id:f+"--tooltip",content:o,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:hW({},n,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},vz(this.props,gz,["id"]),d)),Gt.createElement("div",{hidden:!0,id:f,style:wU},g))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:wj.medium},n}(Gt.Component),Bj={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Oj=yH(Fj,(function(e){var t=e.className,n=e.theme;return{root:[LU(Bj,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"});!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(Dj||(Dj={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(Aj||(Aj={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(Rj||(Rj={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(Nj||(Nj={}));var Lj=gV(),Hj=/\.svg$/i;var Vj=Gt.forwardRef((function(t,n){var r=Gt.useRef(),o=Gt.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,i=e.src,a=Gt.useState(Nj.notLoaded),s=a[0],l=a[1];bj((function(){l(Nj.notLoaded)}),[i]),Gt.useEffect((function(){s===Nj.notLoaded&&t.current&&(i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&Hj.test(i))&&l(Nj.loaded)})),Gt.useEffect((function(){null===n||void 0===n||n(s)}),[s]);var c=Gt.useCallback((function(e){null===r||void 0===r||r(e),i&&l(Nj.loaded)}),[i,r]),u=Gt.useCallback((function(e){null===o||void 0===o||o(e),l(Nj.error)}),[o]);return[s,c,u]}(t,o),a=i[0],s=i[1],l=i[2],c=vz(t,fz,["width","height"]),u=t.src,d=t.alt,p=t.width,h=t.height,m=t.shouldFadeIn,f=void 0===m||m,g=t.shouldStartVisible,v=t.className,y=t.imageFit,b=t.role,C=t.maximizeFrame,S=t.styles,x=t.theme,_=t.loading,E=function(e,t,n,r){var o=Gt.useRef(t),i=Gt.useRef();(void 0===i||o.current===Nj.notLoaded&&t===Nj.loaded)&&(i.current=function(e,t,n,r){var o=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===Nj.loaded&&(o===Aj.cover||o===Aj.contain||o===Aj.centerContain||o===Aj.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==Aj.centerContain&&o!==Aj.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return Rj.landscape}return Rj.portrait}(e,t,n,r));return o.current=t,i.current}(t,a,o,r),k=Lj(S,{theme:x,className:v,width:p,height:h,maximizeFrame:C,shouldFadeIn:f,shouldStartVisible:g,isLoaded:a===Nj.loaded||a===Nj.notLoaded&&t.shouldStartVisible,isLandscape:E===Rj.landscape,isCenter:y===Aj.center,isCenterContain:y===Aj.centerContain,isCenterCover:y===Aj.centerCover,isContain:y===Aj.contain,isCover:y===Aj.cover,isNone:y===Aj.none,isError:a===Nj.error,isNotImageFit:void 0===y});return Gt.createElement("div",{className:k.root,style:{width:p,height:h},ref:r},Gt.createElement("img",(0,e.__assign)({},c,{onLoad:s,onError:l,key:"fabricImage"+t.src||"",className:k.image,ref:yG(o,n),src:u,alt:d,role:b,loading:_})))}));Vj.displayName="ImageBase";var zj={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Uj=yH(Vj,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,f=e.isError,g=e.isNotImageFit,v=e.theme,y=LU(zj,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=aH(),S=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,x=u&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&gU.fadeIn400,(c||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[y.imageCenter,b],u&&[y.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&x,!S&&b],d&&[y.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&x,!S&&b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],m&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",f&&"is-error"]}}),void 0,{scope:"Image"},!0);Uj.displayName="Image";var Wj=lV({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),Gj="ms-Icon",jj=NU((function(e){var t=qU(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null}),void 0,!0),qj=function(t){var n=t.iconName,r=t.className,o=t.style,i=void 0===o?{}:o,a=jj(n)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,u=a.mergeImageProps,d=vz(t,dz),p=t["aria-label"]||t.title,h=t["aria-label"]||t["aria-labelledby"]||t.title?{role:u?void 0:"img"}:{"aria-hidden":!0},m=l;return u&&"object"===typeof l&&"object"===typeof l.props&&p&&(m=Gt.cloneElement(l,{alt:p})),Gt.createElement("i",(0,e.__assign)({"data-icon-name":n},h,d,u?{title:void 0,"aria-label":void 0}:{},{className:yz(Gj,Wj.root,s,!n&&Wj.placeholder,r),style:(0,e.__assign)({fontFamily:c},i)}),m)},Kj=(NU((function(e,t,n){return qj({iconName:e,className:t,"aria-label":n})})),gV({cacheSize:100})),Yj=function(t){function n(e){var n=t.call(this,e)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===Nj.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.children,r=t.className,o=t.styles,i=t.iconName,a=t.imageErrorAs,s=t.theme,l="string"===typeof i&&0===i.length,c=!!this.props.imageProps||this.props.iconType===Dj.image||this.props.iconType===Dj.Image,u=jj(i)||{},d=u.iconClassName,p=u.children,h=u.mergeImageProps,m=Kj(o,{theme:s,className:r,iconClassName:d,isImage:c,isPlaceholder:l}),f=c?"span":"i",g=vz(this.props,dz,["aria-label"]),v=this.state.imageLoadError,y=(0,e.__assign)((0,e.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=v&&a||Uj,C=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||C||this.props.title,x=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"])?{role:c||h?void 0:"img","aria-label":c||h?void 0:S}:{"aria-hidden":!0},_=p;return h&&p&&"object"===typeof p&&S&&(_=Gt.cloneElement(p,{alt:S})),Gt.createElement(f,(0,e.__assign)({"data-icon-name":i},x,g,h?{title:void 0,"aria-label":void 0}:{},{className:m.root}),c?Gt.createElement(b,(0,e.__assign)({},y)):n||_)},n}(Gt.Component),Xj=yH(Yj,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&Wj.placeholder,Wj.root,o&&Wj.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);Xj.displayName="Icon";var Qj=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var i;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,o||!1,!0),hW(a,r),i=t.dispatchEvent(a)}else if("undefined"!==typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],p=0;!1!==i&&p<d.length;p++){var h=d[p];h.objectCallback&&(i=h.objectCallback.call(h.parent,r))}t=o?t.parent:null}return i},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!==typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof r||r===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(t){function n(e,r){var o=t.call(this,e,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)Zj(e,t,n[r])}(o,n.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}(0,e.__extends)(n,t),n.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},n.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},n.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(n.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_async",{get:function(){return this.__async||(this.__async=new dW(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_events",{get:function(){return this.__events||(this.__events=new Qj(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),n.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},n.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},n.prototype._warnDeprecations=function(e){this.className,this.props},n.prototype._warnMutuallyExclusive=function(e){this.className,this.props},n.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},n.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(Gt.Component);function Zj(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function Jj(){return null}function $j(t,n,r){return function(o){var i,a=(i=function(i){function a(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,e.__extends)(a,i),a.prototype.componentDidMount=function(){mH.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){mH.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return Gt.createElement(fH.Consumer,null,(function(a){var s=mH.getSettings(n,t,a.customizations),l=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles((0,e.__assign)((0,e.__assign)({},s),l))),r&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==l.styles){var c=nH(s.styles,l.styles);i._styleCache.default=s.styles,i._styleCache.component=l.styles,i._styleCache.merged=c}return Gt.createElement(o,(0,e.__assign)({},s,l,{styles:i._styleCache.merged}))}return Gt.createElement(o,(0,e.__assign)({},s,l))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(Gt.Component),i.displayName="Customized"+t,i);return function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(o,a)}}function eq(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return e})).join(" ").trim();return""===n?void 0:n}var tq=function(t){var n=t.className,r=t.imageProps,o=vz(t,dz,["aria-label","aria-labelledby","title","aria-describedby"]),i=r.alt||t["aria-label"],a=i||t["aria-labelledby"]||t.title||r["aria-label"]||r["aria-labelledby"]||r.title,s={"aria-labelledby":t["aria-labelledby"],"aria-describedby":t["aria-describedby"],title:t.title},l=a?{}:{"aria-hidden":!0};return Gt.createElement("div",(0,e.__assign)({},l,o,{className:yz(Gj,Wj.root,Wj.image,n)}),Gt.createElement(Uj,(0,e.__assign)({},s,r,{alt:a?i:""})))};var nq,rq,oq=MU((function(e){return MU((function(t){var n=MU((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function iq(e){var t;if("undefined"===typeof rq||e){var n=aH(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;rq=!!r&&-1!==r.indexOf("Macintosh")}return!!rq}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(nq||(nq={}));var aq=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function sq(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function lq(e){return!(!e.subMenuProps&&!e.items)}function cq(e){return!(!e.isDisabled&&!e.disabled)}function uq(e){return null!==sq(e)?"menuitemcheckbox":"menuitem"}var dq,pq=function(t){var n=t.item,r=t.classNames,o=n.iconProps;return Gt.createElement(Xj,(0,e.__assign)({},o,{className:r.icon}))},hq=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,pq):pq(e):null},mq=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=sq(n);if(t){return Gt.createElement(Xj,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},fq=function(e){var t=e.item,n=e.classNames;return t.text||t.name?Gt.createElement("span",{className:n.label},t.text||t.name):null},gq=function(e){var t=e.item,n=e.classNames;return t.secondaryText?Gt.createElement("span",{className:n.secondaryText},t.secondaryText):null},vq=function(t){var n=t.item,r=t.classNames,o=t.theme;return lq(n)?Gt.createElement(Xj,(0,e.__assign)({iconName:hV(o)?"ChevronLeft":"ChevronRight"},n.submenuIconProps,{className:r.subMenuIcon})):null},yq=function(t){function n(e){var n=t.call(this,e)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();lq(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;lq(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},nz(n),n}return(0,e.__extends)(n,t),n.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return Gt.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:mq,renderItemIcon:hq,renderItemName:fq,renderSecondaryText:gq,renderSubMenuIcon:vq}))},n.prototype._renderLayout=function(e,t){return Gt.createElement(Gt.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},n}(Gt.Component),bq=NU((function(e){return lV({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Cq=36,Sq=yU(0,639),xq=NU((function(t){var n,r,o,i,a,s=t.semanticColors,l=t.fonts,c=t.palette,u=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,h=s.bodyDivider;return nH({item:[l.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[EU(t),l.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Cq,lineHeight:Cq,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(n={},n[vU]={color:"GrayText",opacity:1},n)},rootHovered:{backgroundColor:u,color:d,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootFocused:{backgroundColor:c.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(o={},o[vU]={color:"inherit"},o)},r[vU]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap"},secondaryText:{color:t.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Cq,fontSize:nf.medium,width:nf.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[Sq]={fontSize:nf.large,width:nf.large},i)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:Cq,lineHeight:Cq,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:nf.small,selectors:(a={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},a[Sq]={fontSize:nf.medium},a)},splitButtonFlexContainer:[EU(t),{display:"flex",height:Cq,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),_q="28px",Eq=yU(0,639),kq=NU((function(e){var t;return lV(bq(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Eq]={right:32},t)},divider:{height:16,width:1}})})),wq={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},Iq=NU((function(e,t,n,r,o,i,a,s,l,c,u,d){var p,h,m,f,g=xq(e),v=LU(wq,e);return lV({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,p[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},r&&["is-checked",g.rootChecked],(t||u)&&["is-disabled",g.rootDisabled],!(t||u)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+v.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,h[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:_q},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(m={":hover":g.rootHovered,":active":g.rootPressed},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},m)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(f={},f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,f)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,wU,{visibility:"hidden"}]})})),Pq=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return Iq(t,n,r,o,i,a,s,l,c,u,d,p)},Tq=yH(yq,Pq,void 0,{scope:"ContextualMenuItem"}),Dq=function(t){function n(e){var n=t.call(this,e)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},nz(n),n}return(0,e.__extends)(n,t),n.prototype.shouldComponentUpdate=function(e){return!pW(e,this.props)},n}(Gt.Component);function Aq(e){var t=(0,Gt.useRef)();return(0,Gt.useEffect)((function(){t.current=e})),t.current}!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(dq||(dq={}));var Rq=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(e){this.delayUpdatingKeytipChange=e},t.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?dq.PERSISTED_KEYTIP_ADDED:dq.KEYTIP_ADDED;Qj.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Qj.raise(this,dq.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?dq.PERSISTED_KEYTIP_REMOVED:dq.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Qj.raise(this,r,{keytip:e,uniqueID:t})},t.prototype.enterKeytipMode=function(){Qj.raise(this,dq.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Qj.raise(this,dq.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,e.__spreadArray)([],t.keySequences);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,e.__assign)((0,e.__assign)({},t),{overflowSetSequence:r.overflowSetSequence})}return t},t.prototype.menuExecute=function(e,t){Qj.raise(this,dq.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=SV()),{keytip:(0,e.__assign)({},t),uniqueID:n}},t._instance=new t,t}();function Nq(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function Mq(t){var n=Gt.useRef(),r=t.keytipProps?(0,e.__assign)({disabled:t.disabled},t.keytipProps):void 0,o=wG(Rq.getInstance()),i=Aq(t);bj((function(){n.current&&r&&((null===i||void 0===i?void 0:i.keytipProps)!==t.keytipProps||(null===i||void 0===i?void 0:i.disabled)!==t.disabled)&&o.update(r,n.current)})),bj((function(){return r&&(n.current=o.register(r)),function(){r&&o.unregister(r,n.current)}}),[]);var a={ariaDescribedBy:void 0,keytipId:void 0};return r&&(a=function(t,n,r){var o=t.addParentOverflow(n),i=eq(r,function(e){var t=" ktp-layer-id";return e.length?t+" "+Nq(e):t}(o.keySequences)),a=(0,e.__spreadArray)([],o.keySequences);o.overflowSetSequence&&(a=function(t,n){var r=n.length,o=(0,e.__spreadArray)([],n).pop();return function(e,t,n){var r=e.slice();return r.splice(t,0,n),r}((0,e.__spreadArray)([],t),r-1,o)}(a,o.overflowSetSequence));var s=Nq(a);return{ariaDescribedBy:i,keytipId:s}}(o,r,t.ariaDescribedBy)),a}var Fq=function(t){var n,r=t.children,o=Mq((0,e.__rest)(t,["children"])),i=o.keytipId,a=o.ariaDescribedBy;return r(((n={})["data-ktp-target"]=i,n["data-ktp-execute-target"]=i,n["aria-describedby"]=a,n))},Bq=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._anchor=Gt.createRef(),n._getMemoizedMenuButtonKeytipProps=NU((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClick;o&&o(r,e)},n._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?Tq:u,p=n.expandedMenuItemKey,h=n.onItemClick,m=n.openSubMenu,f=n.dismissSubMenu,g=n.dismissMenu,v=r.rel;r.target&&"_blank"===r.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=lq(r),b=vz(r,hz),C=cq(r),S=r.itemProps,x=r.ariaDescription,_=r.keytipProps;_&&y&&(_=this._getMemoizedMenuButtonKeytipProps(_)),x&&(this._ariaDescriptionId=SV());var E=eq(r.ariaDescribedBy,x?this._ariaDescriptionId:void 0,b["aria-describedby"]),k={"aria-describedby":E};return Gt.createElement("div",null,Gt.createElement(Fq,{keytipProps:r.keytipProps,ariaDescribedBy:E,disabled:C},(function(n){return Gt.createElement("a",(0,e.__assign)({},k,b,n,{ref:t._anchor,href:r.href,target:r.target,rel:v,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":cq(r),style:r.style,onClick:t._onItemClick,onMouseEnter:t._onItemMouseEnter,onMouseLeave:t._onItemMouseLeave,onMouseMove:t._onItemMouseMove,onKeyDown:y?t._onItemKeyDown:void 0}),Gt.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:l&&h?h:void 0,hasIcons:c,openSubMenu:m,dismissSubMenu:f,dismissMenu:g,getSubmenuTarget:t._getSubmenuTarget},S)),t._renderAriaDescription(x,o.screenReaderText))})))},n}(Dq),Oq=gV(),Lq=Gt.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=Oq(n,{theme:r,getClassNames:o,className:i});return Gt.createElement("span",{className:a.wrapper,ref:t},Gt.createElement("span",{className:a.divider}))}));Lq.displayName="VerticalDividerBase";var Hq=yH(Lq,(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Vq=function(t){function n(n){var r=t.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=NU((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),r._onItemKeyDown=function(e){var t=r.props,n=t.item,o=t.onItemKeyDown;e.which===WV?(r._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(n,e)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:r._ariaDescriptionId,className:t},e):null},r._onItemMouseEnterPrimary=function(t){var n=r.props,o=n.item,i=n.onItemMouseEnter;i&&i((0,e.__assign)((0,e.__assign)({},o),{subMenuProps:void 0,items:void 0}),t,r._splitButton)},r._onItemMouseEnterIcon=function(e){var t=r.props,n=t.item,o=t.onItemMouseEnter;o&&o(n,e,r._splitButton)},r._onItemMouseMovePrimary=function(t){var n=r.props,o=n.item,i=n.onItemMouseMove;i&&i((0,e.__assign)((0,e.__assign)({},o),{subMenuProps:void 0,items:void 0}),t,r._splitButton)},r._onItemMouseMoveIcon=function(e){var t=r.props,n=t.item,o=t.onItemMouseMove;o&&o(n,e,r._splitButton)},r._onIconItemClick=function(e){var t=r.props,n=t.item,o=t.onItemClickBase;o&&o(n,e,r._splitButton?r._splitButton:e.currentTarget)},r._executeItemClick=function(e){var t=r.props,n=t.item,o=t.executeItemClick,i=t.onItemClick;if(!n.disabled&&!n.isDisabled)return r._processingTouch&&i?i(n,e):void(o&&o(n,e))},r._onTouchStart=function(e){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(e)},r._onPointerDown=function(e){"touch"===e.pointerType&&(r._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},r._async=new dW(r),r._events=new Qj(r),r}return(0,e.__extends)(n,t),n.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.render=function(){var t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,u=n.onItemMouseLeave,d=n.expandedMenuItemKey,p=lq(r),h=r.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var m=r.ariaDescription;return m&&(this._ariaDescriptionId=SV()),Gt.createElement(Fq,{keytipProps:h,disabled:cq(r)},(function(n){return Gt.createElement("div",{"data-ktp-target":n["data-ktp-target"],ref:function(e){return t._splitButton=e},role:uq(r),"aria-label":r.ariaLabel,className:o.splitContainer,"aria-disabled":cq(r),"aria-expanded":p?r.key===d:void 0,"aria-haspopup":!0,"aria-describedby":eq(r.ariaDescribedBy,m?t._ariaDescriptionId:void 0,n["aria-describedby"]),"aria-checked":r.isChecked||r.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:u?u.bind(t,(0,e.__assign)((0,e.__assign)({},r),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":r["aria-roledescription"]},t._renderSplitPrimaryButton(r,o,i,l,c),t._renderSplitDivider(r),t._renderSplitIconButton(r,o,i,n),t._renderAriaDescription(m,o.screenReaderText))}))},n.prototype._renderSplitPrimaryButton=function(t,n,r,o,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?Tq:s,c=a.onItemClick,u={key:t.key,disabled:cq(t)||t.primaryDisabled,name:t.name,text:t.text||t.name,secondaryText:t.secondaryText,className:n.splitPrimary,canCheck:t.canCheck,isChecked:t.isChecked,checked:t.checked,iconProps:t.iconProps,onRenderIcon:t.onRenderIcon,data:t.data,"data-is-focusable":!1},d=t.itemProps;return Gt.createElement("button",(0,e.__assign)({},vz(u,mz)),Gt.createElement(l,(0,e.__assign)({"data-is-focusable":!1,item:u,classNames:n,index:r,onCheckmarkClick:o&&c?c:void 0,hasIcons:i},d)))},n.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||kq;return Gt.createElement(Hq,{getClassNames:t})},n.prototype._renderSplitIconButton=function(t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?Tq:a,l=i.onItemMouseLeave,c=i.onItemMouseDown,u=i.openSubMenu,d=i.dismissSubMenu,p=i.dismissMenu,h={onClick:this._onIconItemClick,disabled:cq(t),className:n.splitMenu,subMenuProps:t.subMenuProps,submenuIconProps:t.submenuIconProps,split:!0,key:t.key},m=(0,e.__assign)((0,e.__assign)({},vz(h,mz)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,t):void 0,onMouseDown:function(e){return c?c(t,e):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),f=t.itemProps;return Gt.createElement("button",(0,e.__assign)({},m),Gt.createElement(s,(0,e.__assign)({componentRef:t.componentRef,item:h,classNames:n,index:r,hasIcons:!1,openSubMenu:u,dismissSubMenu:d,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},f)))},n.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},n}(Dq),zq=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._btn=Gt.createRef(),n._getMemoizedMenuButtonKeytipProps=NU((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._renderAriaDescription=function(e,t){return e?Gt.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?Tq:u,p=n.expandedMenuItemKey,h=n.onItemMouseDown,m=n.onItemClick,f=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=sq(r),b=null!==y,C=uq(r),S=lq(r),x=r.itemProps,_=r.ariaLabel,E=r.ariaDescription,k=vz(r,mz);delete k.disabled;var w=r.role||C;E&&(this._ariaDescriptionId=SV());var I=eq(r.ariaDescribedBy,E?this._ariaDescriptionId:void 0,k["aria-describedby"]),P={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return h?h(r,e):void 0},onMouseMove:this._onItemMouseMove,href:r.href,title:r.title,"aria-label":_,"aria-describedby":I,"aria-haspopup":S||void 0,"aria-expanded":S?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":cq(r),"aria-checked":"menuitemcheckbox"!==w&&"menuitemradio"!==w||!b?void 0:!!y,"aria-selected":"menuitem"===w&&b?!!y:void 0,role:w,style:r.style},T=r.keytipProps;return T&&S&&(T=this._getMemoizedMenuButtonKeytipProps(T)),Gt.createElement(Fq,{keytipProps:T,ariaDescribedBy:I,disabled:cq(r)},(function(n){return Gt.createElement("button",(0,e.__assign)({ref:t._btn},k,P,n),Gt.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:l&&m?m:void 0,hasIcons:c,openSubMenu:f,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:t._getSubmenuTarget},x)),t._renderAriaDescription(E,o.screenReaderText))}))},n}(Dq);function Uq(e,t){var n=Gt.useRef(t);return n.current||(n.current=SV(e)),n.current}var Wq;!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Wq||(Wq={}));var Gq,jq,qq=[479,639,1023,1365,1919,99999999];function Kq(){var e;return null!==(e=null!==Gq&&void 0!==Gq?Gq:jq)&&void 0!==e?e:Wq.large}function Yq(e){try{return e.document.documentElement.clientWidth}catch(eDe){return e.innerWidth}}function Xq(e){var t=Wq.small;if(e){try{for(;Yq(e)>qq[t];)t++}catch(eDe){t=Kq()}jq=t}else{if(void 0===Gq)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=Gq}return t}var Qq=Gt.createContext({}),Zq=gV(),Jq=gV(),$q={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:EW,beakWidth:16};function eK(t,n){var r=null===n||void 0===n?void 0:n.target,o=t.subMenuProps?t.subMenuProps.items:t.items;if(o){for(var i=[],a=0,s=o;a<s.length;a++){var l=s[a];if(l.preferMenuTargetAsEventTarget){var c=l.onClick,u=(0,e.__rest)(l,["onClick"]);i.push((0,e.__assign)((0,e.__assign)({},u),{onClick:uK(c,r)}))}else i.push(l)}return i}}var tK="ContextualMenu",nK=NU((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return rH.apply(void 0,(0,e.__spreadArray)([n,Pq],t))}}));function rK(e,t){var n=e.hidden,r=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,l=Gt.useState(),c=l[0],u=l[1],d=Gt.useState(),p=d[0],h=d[1],m=Gt.useState(),f=m[0],g=m[1],v=Uq(tK,a),y=Gt.useCallback((function(){g(void 0),u(void 0),h(void 0)}),[]),b=Gt.useCallback((function(e,t,n){var r=e.key;c!==r&&(t.focus(),g(n),u(r),h(t))}),[c]);Gt.useEffect((function(){n&&y()}),[n,y]);var C=function(e,t){var n=Gt.useRef(!1);return Gt.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,y);return[c,b,function(){var e=cK(c,r),t=null;if(e&&(t={items:eK(e,{target:s}),target:p,onDismiss:C,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:f,directionalHint:hV(o)?kW:PW,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&hW(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=uK(n,s)}return t},C]}function oK(e,t,n,r){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=void 0===a?{}:a,l=s.checkForNoWrap,c=s.direction,u=void 0===c?_V.vertical:c,d=Gt.useRef(),p=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},h=function(e){return e.which===jV||function(e){var t=hV(o)?$V:ZV;return!(e.which!==t||!i)&&!(u!==_V.vertical&&(!l||HV(e.target,"data-no-horizontal-wrap")))}(e)||e.which===JV&&(e.altKey||e.metaKey)},m=function(e){d.current=aK(e);var t=e.which===jV&&(iq()||aq());return p(e,h,t)},f=function(e){var t=d.current&&aK(e);return d.current=!1,!!t&&!(aq()||iq())};return[m,function(e){return p(e,f,!0)},function(e){if(!m(e)&&n.current){var t,r,o=!(!e.altKey&&!e.metaKey),i=e.which===JV,a=e.which===ez;if(!o&&(i||a)){var s=i?(t=n.current,r=n.current.lastChild,RV(t,r,!0,!1,!0,!0)):function(e,t,n){return NV(e,t,!0,!1,!1,n)}(n.current,n.current.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=hV(o)?ZV:$V;e.disabled||t.which!==n&&t.which!==WV&&(t.which!==ez||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var iK=Gt.memo(Gt.forwardRef((function(t,n){var r,o=RW($q,t),i=(o.ref,(0,e.__rest)(o,["ref"])),a=Gt.useRef(null),s=gG(),l=Uq(tK,i.id),c=function(e,t){var n;return null===(n=i.onDismiss)||void 0===n?void 0:n.call(i,e,t)},u=IG(i.target,a),d=u[0],p=u[1],h=function(t,n){var r=t.hidden,o=t.onRestoreFocus,i=Gt.useRef([]),a=Gt.useCallback((function(e){var t,n;o?o(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(n=null===(t=i.current[0])||void 0===t?void 0:t.focus)||void 0===n||n.call(t))}),[o]);return bj((function(){var t;if(r)i.current.length>0&&(a({originalElement:i.current[0],containsFocus:!0,documentContainsFocus:(null===(t=uV())||void 0===t?void 0:t.hasFocus())||!1}),i.current=[]);else{var o=null===n||void 0===n?void 0:n.document.activeElement,s=i.current.indexOf(o);i.current=s>-1?i.current.slice(s+1):(0,e.__spreadArray)([o],i.current)}}),[r,null===n||void 0===n?void 0:n.document.activeElement,a]),[a]}(i,p)[0],m=rK(i,c),f=m[0],g=m[1],v=m[2],y=m[3],b=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=Gt.useRef(!t),o=Gt.useRef(!1);Gt.useEffect((function(){r.current=!t,o.current=!n&&!t&&o.current}),[t,n]);var i=Gt.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,o,i]}(i),C=b[0],S=b[1],x=b[2],_=function(e){var t=Gt.useRef(!0),n=Gt.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout((function(){t.current=!0}),250)},t]}(s),E=_[0],k=_[1],w=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,o=Gt.useRef(void 0),i=function(){void 0!==o.current&&(t.clearTimeout(o.current),o.current=void 0)};return[i,function(e){o.current=t.setTimeout((function(){e(),i()}),r)},o]}(i,s),I=w[0],P=w[1],T=w[2],D=function(e,t){var n=Gt.useState(Kq()),r=n[0],o=n[1],i=Gt.useCallback((function(){var t=Xq(aH(e.current));r!==t&&o(t)}),[e,r]);return vG(CG(),"resize",i),Gt.useEffect((function(){void 0===t&&i()}),[t]),null!==t&&void 0!==t?t:r}(a,i.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,i=e.onMenuOpened,a=Aq(r),s=Gt.useRef(i),l=Gt.useRef(o),c=Gt.useRef(e);s.current=i,l.current=o,c.current=e,Gt.useEffect((function(){var e,t;r&&!1===a?null===(e=l.current)||void 0===e||e.call(l,c.current):r||!1===a||null===(t=s.current)||void 0===t||t.call(s,c.current)}),[r,a]),Gt.useEffect((function(){return function(){var e;return null===(e=l.current)||void 0===e?void 0:e.call(l,c.current)}}),[])}(i);var A=oK(i,c,a,g),R=A[0],N=A[1],M=A[2],F=A[3],B=function(e,t,n,r,o,i,a,s,l,c,u,d,p){var h=e.target,m=function(){return!t.current||!i.current},f=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(c(),void 0===a&&r.focus(),lq(e)?(t.stopPropagation(),l((function(){r.focus(),u(e,r,!0)}))):l((function(){d(t),r.focus()})))},g=function(t,n,r){var o=eK(t,{target:h});if(c(),lq(t)||o&&o.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType;u(t,r,i)}}else v(t,n);n.stopPropagation(),n.preventDefault()},v=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&dK(n,h);var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),!r&&n.defaultPrevented||p(n,!0)}};return[function(e,t,n){o.current&&(i.current=!0),m()||f(e,t,n)},function(e,a,s){var l=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===r||void 0===r?void 0:r.document.activeElement)&&f(e,a,s))},function(e,t){var n;if(!m()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(eDe){}else null===(n=s.current)||void 0===n||n.focus()},function(e,t){g(e,t,t.currentTarget)},function(e,t){v(e,t),t.stopPropagation()},v,g]}(i,k,T,p,C,S,f,a,P,I,g,y,c),O=B[0],L=B[1],H=B[2],V=B[3],z=B[4],U=B[5],W=B[6],G=function(e,t,n){var r=0,o=e.items,i=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return Gt.createElement("ul",{className:t.list,onKeyDown:R,onKeyUp:N,role:"presentation"},o.map((function(e,n){var o=j(e,n,r,i,a,s,t);if(e.itemType!==nq.Divider&&e.itemType!==nq.Header){var l=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=l}return o})))},j=function(e,t,n,r,o,a,s){var l,c,u=[],d=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,m=h?h.styles:void 0,g=e.itemType===nq.Divider?e.className:void 0,v=e.submenuIconProps?e.submenuIconProps.className:"";if(p)c=p(i.theme,cq(e),f===e.key,!!sq(e),!!e.href,"None"!==d.iconName,e.className,g,d.className,v,e.primaryDisabled);else{var y={theme:i.theme,disabled:cq(e),expanded:f===e.key,checked:!!sq(e),isAnchorLink:!!e.href,knownIcon:"None"!==d.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:d.className,subMenuClassName:v,primaryDisabled:e.primaryDisabled};c=Jq(nK(null===(l=s.subComponentStyles)||void 0===l?void 0:l.menuItem,m),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=nq.Divider),e.itemType){case nq.Divider:u.push(Y(t,c));break;case nq.Header:u.push(Y(t,c));var b=Q(e,c,s,t,o,a);u.push(K(b,e.key||t,c,e.title));break;case nq.Section:u.push(q(e,c,s,t,o,a));break;default:var C=function(){return X(e,c,t,n,r,o,a)},S=i.onRenderContextualMenuItem?i.onRenderContextualMenuItem(e,C):C();u.push(K(S,e.key||t,c,e.title))}return Gt.createElement(Gt.Fragment,{key:e.key},u)},q=function(t,n,r,o,i,a){var s=t.sectionProps;if(s){var c,u;if(s.title){var d=void 0,p="";if("string"===typeof s.title){var h=l+s.title.replace(/\s/g,"");d={key:"section-"+s.title+"-title",itemType:nq.Header,text:s.title,id:h},p=h}else{var m=s.title.id||l+s.title.key.replace(/\s/g,"");d=(0,e.__assign)((0,e.__assign)({},s.title),{id:m}),p=m}d&&(u={role:"group","aria-labelledby":p},c=Q(d,n,r,o,i,a))}return s.items&&s.items.length>0?Gt.createElement("li",{role:"presentation",key:s.key||t.key||"section-"+o},Gt.createElement("div",(0,e.__assign)({},u),Gt.createElement("ul",{className:r.list,role:"presentation"},s.topDivider&&Y(o,n,!0,!0),c&&K(c,t.key||o,n,t.title),s.items.map((function(e,t){return j(e,t,t,s.items.length,i,a,r)})),s.bottomDivider&&Y(o,n,!1,!0)))):void 0}},K=function(e,t,n,r){return Gt.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Y=function(e,t,n,r){return r||e>0?Gt.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},X=function(t,n,r,o,a,s,l){if(t.onRender)return t.onRender((0,e.__assign)({"aria-posinset":o+1,"aria-setsize":a},t),c);var u={item:t,classNames:n,index:r,focusableElementIndex:o,totalItemCount:a,hasCheckmarks:s,hasIcons:l,contextualMenuItemAs:i.contextualMenuItemAs,onItemMouseEnter:O,onItemMouseLeave:H,onItemMouseMove:L,onItemMouseDown:sK,executeItemClick:U,onItemKeyDown:F,expandedMenuItemKey:f,openSubMenu:g,dismissSubMenu:y,dismissMenu:c};return t.href?Gt.createElement(Bq,(0,e.__assign)({},u,{onItemClick:z})):t.split&&lq(t)?Gt.createElement(Vq,(0,e.__assign)({},u,{onItemClick:V,onItemClickBase:W,onTap:I})):Gt.createElement(zq,(0,e.__assign)({},u,{onItemClick:V,onItemClickBase:W}))},Q=function(t,n,r,o,a,s){var l=i.contextualMenuItemAs,c=void 0===l?Tq:l,u=t.itemProps,d=t.id,p=u&&vz(u,gz);return Gt.createElement("div",(0,e.__assign)({id:d,className:r.header},p,{style:t.style}),Gt.createElement(c,(0,e.__assign)({item:t,classNames:n,index:o,onCheckmarkClick:a?V:void 0,hasIcons:s},u)))},Z=i.isBeakVisible,J=i.items,$=i.labelElementId,ee=i.id,te=i.className,ne=i.beakWidth,re=i.directionalHint,oe=i.directionalHintForRTL,ie=i.alignTargetEdge,ae=i.gapSpace,se=i.coverTarget,le=i.ariaLabel,ce=i.doNotLayer,ue=i.target,de=i.bounds,pe=i.useTargetWidth,he=i.useTargetAsMinWidth,me=i.directionalHintFixed,fe=i.shouldFocusOnMount,ge=i.shouldFocusOnContainer,ve=i.title,ye=i.styles,be=i.theme,Ce=i.calloutProps,Se=i.onRenderSubMenu,xe=void 0===Se?lK:Se,_e=i.onRenderMenuList,Ee=void 0===_e?function(e,t){return G(e,Ie)}:_e,ke=i.focusZoneProps,we=i.getMenuClassNames,Ie=we?we(be,te):Zq(ye,{theme:be,className:te}),Pe=function e(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.iconProps)return!0;if(o.itemType===nq.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(J);var Te,De=(0,e.__assign)((0,e.__assign)({direction:_V.vertical,handleTabKey:EV,isCircularNavigation:!0},ke),{className:yz(Ie.root,null===(r=i.focusZoneProps)||void 0===r?void 0:r.className)}),Ae=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(J),Re=f&&!0!==i.hidden?v():null;Z=void 0===Z?D<=Wq.medium:Z;var Ne=d.current;if((pe||he)&&Ne&&Ne.offsetWidth){var Me=Ne.getBoundingClientRect().width-2;pe?Te={width:Me}:he&&(Te={minWidth:Me})}if(J&&J.length>0){for(var Fe=0,Be=0,Oe=J;Be<Oe.length;Be++){var Le=Oe[Be];if(Le.itemType!==nq.Divider&&Le.itemType!==nq.Header){var He=Le.customOnRenderListLength?Le.customOnRenderListLength:1;Fe+=He}}var Ve=Ie.subComponentStyles?Ie.subComponentStyles.callout:void 0;return Gt.createElement(Qq.Consumer,null,(function(t){return Gt.createElement(kj,(0,e.__assign)({styles:Ve,onRestoreFocus:h},Ce,{target:ue||t.target,isBeakVisible:Z,beakWidth:ne,directionalHint:re,directionalHintForRTL:oe,gapSpace:ae,coverTarget:se,doNotLayer:ce,className:yz("ms-ContextualMenu-Callout",Ce&&Ce.className),setInitialFocus:fe,onDismiss:i.onDismiss||t.onDismiss,onScroll:E,bounds:de,directionalHintFixed:me,alignTargetEdge:ie,hidden:i.hidden||t.hidden,ref:n}),Gt.createElement("div",{style:Te,ref:a,id:ee,className:Ie.container,tabIndex:ge?0:-1,onKeyDown:M,onKeyUp:N,onFocusCapture:x,"aria-label":le,"aria-labelledby":$,role:"menu"},ve&&Gt.createElement("div",{className:Ie.title}," ",ve," "),J&&J.length?function(t,n){var r=i.focusZoneAs,o=void 0===r?cW:r;return Gt.createElement(o,(0,e.__assign)({},n),t)}(Ee({ariaLabel:le,items:J,totalItemCount:Fe,hasCheckmarks:Ae,hasIcons:Pe,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return j(e,n,r,o,i,a,t)}(e,Ie)},labelElementId:$},(function(e,t){return G(e,Ie)})),De):null,Re&&xe(Re,lK)),Gt.createElement(JG,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pW(e,t)}));function aK(e){return e.which===GV||"Meta"===e.key}function sK(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function lK(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function cK(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===nq.Section&&o.sectionProps){var i=cK(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function uK(e,t){return e?function(n,r){return dK(n,t),e(n,r)}:e}function dK(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}iK.displayName="ContextualMenuBase";var pK={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function hK(t){return Gt.createElement(mK,(0,e.__assign)({},t))}var mK=yH(iK,(function(e){var t=e.className,n=e.theme,r=LU(pK,n),o=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:tf.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Cq,lineHeight:Cq,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}}),(function(e){return{onRenderSubMenu:e.onRenderSubMenu?(t=e.onRenderSubMenu,n=hK,oq(t)(n)):hK};var t,n}),{scope:"ContextualMenu"}),fK=mK;fK.displayName="ContextualMenu";var gK={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},vK=NU((function(e,t,n,r,o,i,a,s,l,c,u){var d,p,h=LU(gK,e||{}),m=c&&!u;return lV({root:[h.msButton,t.root,r,l&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover ."+h.msButtonIcon]=t.iconExpandedHovered,d[":hover ."+h.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[gK.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!m&&!l&&{selectors:(p={":hover":t.rootHovered},p[":hover ."+h.msButtonLabel]=t.labelHovered,p[":hover ."+h.msButtonIcon]=t.iconHovered,p[":hover ."+h.msButtonDescription]=t.descriptionHovered,p[":hover ."+h.msButtonMenuIcon]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active ."+h.msButtonIcon]=t.iconPressed,p[":active ."+h.msButtonDescription]=t.descriptionPressed,p[":active ."+h.msButtonMenuIcon]=t.menuIconPressed,p)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!m&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),yK=NU((function(e,t,n,r,o){return{root:bz(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:bz(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:bz(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:bz(e.splitButtonFlexContainer),divider:bz(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}));var bK=MU((function(t){var n=t;return MU((function(r){if(t===r)throw new Error("Attempted to compose a component with itself.");var o=r,i=MU((function(t){return function(n){return Gt.createElement(o,(0,e.__assign)({},n,{defaultRender:t}))}}));return function(t){var r=t.defaultRender;return Gt.createElement(n,(0,e.__assign)({},t,{defaultRender:r?i(r):o}))}}))}));var CK=function(t){function n(n){var r=t.call(this,n)||this;return r._buttonElement=Gt.createRef(),r._splitButtonContainer=Gt.createRef(),r._mergedRef=PV(),r._renderedVisibleMenu=!1,r._getMemoizedMenuButtonKeytipProps=NU((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),r._onRenderIcon=function(t,n){var o=r.props.iconProps;if(o&&(void 0!==o.iconName||o.imageProps)){var i=o.className,a=o.imageProps,s=(0,e.__rest)(o,["className","imageProps"]);if(o.styles)return Gt.createElement(Xj,(0,e.__assign)({className:yz(r._classNames.icon,i),imageProps:a},s));if(o.iconName)return Gt.createElement(qj,(0,e.__assign)({className:yz(r._classNames.icon,i)},s));if(a)return Gt.createElement(tq,(0,e.__assign)({className:yz(r._classNames.icon,i),imageProps:a},s))}return null},r._onRenderTextContents=function(){var e=r.props,t=e.text,n=e.children,o=e.secondaryText,i=void 0===o?r.props.description:o,a=e.onRenderText,s=void 0===a?r._onRenderText:a,l=e.onRenderDescription,c=void 0===l?r._onRenderDescription:l;return t||"string"===typeof n||i?Gt.createElement("span",{className:r._classNames.textContainer},s(r.props,r._onRenderText),c(r.props,r._onRenderDescription)):[s(r.props,r._onRenderText),c(r.props,r._onRenderDescription)]},r._onRenderText=function(){var e=r.props.text,t=r.props.children;return void 0===e&&"string"===typeof t&&(e=t),r._hasText()?Gt.createElement("span",{key:r._labelId,className:r._classNames.label,id:r._labelId},e):null},r._onRenderChildren=function(){var e=r.props.children;return"string"===typeof e?null:e},r._onRenderDescription=function(e){var t=e.secondaryText,n=void 0===t?r.props.description:t;return n?Gt.createElement("span",{key:r._descriptionId,className:r._classNames.description,id:r._descriptionId},n):null},r._onRenderAriaDescription=function(){var e=r.props.ariaDescription;return e?Gt.createElement("span",{className:r._classNames.screenReaderText,id:r._ariaDescriptionId},e):null},r._onRenderMenuIcon=function(t){var n=r.props.menuIconProps;return Gt.createElement(qj,(0,e.__assign)({iconName:"ChevronDown"},n,{className:r._classNames.menuIcon}))},r._onRenderMenu=function(t){var n,o,i=r.props.menuAs?(n=r.props.menuAs,o=fK,bK(n)(o)):fK;return Gt.createElement(i,(0,e.__assign)({},t))},r._onDismissMenu=function(e){var t=r.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||r._dismissMenu()},r._dismissMenu=function(){r._menuShouldFocusOnMount=void 0,r._menuShouldFocusOnContainer=void 0,r.setState({menuHidden:!0})},r._openMenu=function(e,t){void 0===t&&(t=!0),r.props.menuProps&&(r._menuShouldFocusOnContainer=e,r._menuShouldFocusOnMount=t,r._renderedVisibleMenu=!0,r.setState({menuHidden:!1}))},r._onToggleMenu=function(e){var t=!0;r.props.menuProps&&!1===r.props.menuProps.shouldFocusOnMount&&(t=!1),r.state.menuHidden?r._openMenu(e,t):r._dismissMenu()},r._onSplitContainerFocusCapture=function(e){var t=r._splitButtonContainer.current;!t||e.target&&Ez(e.target,t)||t.focus()},r._onSplitButtonPrimaryClick=function(e){r.state.menuHidden||r._dismissMenu(),!r._processingTouch&&r.props.onClick?r.props.onClick(e):r._processingTouch&&r._onMenuClick(e)},r._onKeyDown=function(e){!r.props.disabled||e.which!==WV&&e.which!==qV?r.props.disabled||(r.props.menuProps?r._onMenuKeyDown(e):void 0!==r.props.onKeyDown&&r.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},r._onKeyUp=function(e){r.props.disabled||void 0===r.props.onKeyUp||r.props.onKeyUp(e)},r._onKeyPress=function(e){r.props.disabled||void 0===r.props.onKeyPress||r.props.onKeyPress(e)},r._onMouseUp=function(e){r.props.disabled||void 0===r.props.onMouseUp||r.props.onMouseUp(e)},r._onMouseDown=function(e){r.props.disabled||void 0===r.props.onMouseDown||r.props.onMouseDown(e)},r._onClick=function(e){r.props.disabled||(r.props.menuProps?r._onMenuClick(e):void 0!==r.props.onClick&&r.props.onClick(e))},r._onSplitButtonContainerKeyDown=function(e){e.which===WV||e.which===qV?r._buttonElement.current&&(r._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):r._onMenuKeyDown(e)},r._onMenuKeyDown=function(e){if(!r.props.disabled){r.props.onKeyDown&&r.props.onKeyDown(e);var t=e.which===JV,n=e.which===ez;if(!e.defaultPrevented&&r._isValidMenuOpenKey(e)){var o=r.props.onMenuClick;o&&o(e,r.props),r._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==WV&&e.which!==qV||_U(!0,e.target),!e.altKey&&!e.metaKey&&(t||n))if(!r.state.menuHidden&&r.props.menuProps)(void 0!==r._menuShouldFocusOnMount?r._menuShouldFocusOnMount:r.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),r._menuShouldFocusOnMount=!0,r.forceUpdate())}},r._onTouchStart=function(){r._isSplitButton&&r._splitButtonContainer.current&&!("onpointerdown"in r._splitButtonContainer.current)&&r._handleTouchAndPointerEvent()},r._onMenuClick=function(e){var t=r.props,n=t.onMenuClick,o=t.menuProps;n&&n(e,r.props);var i="boolean"===typeof(null===o||void 0===o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(r._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},nz(r),r._async=new dW(r),r._events=new Qj(r),r.props.split,r._labelId=SV(),r._descriptionId=SV(),r._ariaDescriptionId=SV(),r.state={menuHidden:!0},r}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,d=t.href,p=t.iconProps,h=t.menuIconProps,m=t.styles,f=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,C=t.role,S=this.state.menuHidden,x=a||l;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,x,f,!S,!!this.props.menuProps,this.props.split,!!s):vK(v,m,i,g,p&&p.className,h&&h.className,x,!!this.props.menuProps,f,!S,this.props.split);var _=this,E=_._ariaDescriptionId,k=_._labelId,w=_._descriptionId,I=!x&&!!d,P=I?"a":"button",T=vz(hW(I?{}:{type:"button"},this.props.rootProps,this.props),I?hz:mz,["disabled"]),D=r||T["aria-label"],A=void 0;n?A=E:u&&this.props.onRenderDescription!==Jj?A=w:T["aria-describedby"]&&(A=T["aria-describedby"]);var R=void 0;T["aria-labelledby"]?R=T["aria-labelledby"]:A&&!D&&(R=this._hasText()?k:void 0);var N=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),M="menuitemcheckbox"===C||"checkbox"===C,F=M||!0===y?!!f:void 0,B=hW(T,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:x&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":D,"aria-labelledby":R,"aria-describedby":A,"aria-disabled":x,"data-is-focusable":N})[M?"aria-checked":"aria-pressed"]=F,e));if(o&&(B["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(P,B);if(this.props.menuProps){var O=this.props.menuProps.id,L=void 0===O?this._labelId+"-menu":O;hW(B,{"aria-expanded":!S,"aria-controls":S?null:L,"aria-haspopup":!0})}return this._onRenderContent(P,B)},n.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},n.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(_U(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(_U(!0),this._buttonElement.current.focus())},n.prototype.dismissMenu=function(){this._dismissMenu()},n.prototype.openMenu=function(e,t){this._openMenu(e,t)},n.prototype._onRenderContent=function(t,n){var r=this,o=this.props,i=t,a=o.menuIconProps,s=o.menuProps,l=o.onRenderIcon,c=void 0===l?this._onRenderIcon:l,u=o.onRenderAriaDescription,d=void 0===u?this._onRenderAriaDescription:u,p=o.onRenderChildren,h=void 0===p?this._onRenderChildren:p,m=o.onRenderMenu,f=void 0===m?this._onRenderMenu:m,g=o.onRenderMenuIcon,v=void 0===g?this._onRenderMenuIcon:g,y=o.disabled,b=o.keytipProps;b&&s&&(b=this._getMemoizedMenuButtonKeytipProps(b));var C=function(t){return Gt.createElement(i,(0,e.__assign)({},n,t),Gt.createElement("span",{className:r._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(o,r._onRenderIcon),r._onRenderTextContents(),d(o,r._onRenderAriaDescription),h(o,r._onRenderChildren),!r._isSplitButton&&(s||a||r.props.onRenderMenuIcon)&&v(r.props,r._onRenderMenuIcon),s&&!s.doNotLayer&&r._shouldRenderMenu()&&f(r._getMenuProps(s),r._onRenderMenu)))},S=b?Gt.createElement(Fq,{keytipProps:this._isSplitButton?void 0:b,ariaDescribedBy:n["aria-describedby"],disabled:y},(function(e){return C(e)})):C();return s&&s.doNotLayer?Gt.createElement(Gt.Fragment,null,S,this._shouldRenderMenu()&&f(this._getMenuProps(s),this._onRenderMenu)):Gt.createElement(Gt.Fragment,null,S,Gt.createElement(JG,null))},n.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},n.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},n.prototype._getMenuProps=function(t){var n=this.props.persistMenu,r=this.state.menuHidden;return t.ariaLabel||t.labelElementId||!this._hasText()||(t=(0,e.__assign)((0,e.__assign)({},t),{labelElementId:this._labelId})),(0,e.__assign)((0,e.__assign)({id:this._labelId+"-menu",directionalHint:SW},t),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:n?r:void 0,className:yz("ms-BaseButton-menuhost",t.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},n.prototype._onRenderSplitButtonContent=function(t,n){var r=this,o=this.props,i=o.styles,a=void 0===i?{}:i,s=o.disabled,l=o.allowDisabledFocus,c=o.checked,u=o.getSplitButtonClassNames,d=o.primaryDisabled,p=o.menuProps,h=o.toggle,m=o.role,f=o.primaryActionButtonProps,g=this.props.keytipProps,v=this.state.menuHidden,y=u?u(!!s,!v,!!c,!!l):a&&yK(a,!!s,!v,!!c,!!d);hW(n,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var b=vz(n,[],["disabled"]);f&&hW(n,f);var C=function(o){return Gt.createElement("div",(0,e.__assign)({},b,{"data-ktp-target":o?o["data-ktp-target"]:void 0,role:m||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":h?!!c:void 0,"aria-describedby":eq(n["aria-describedby"],o?o["aria-describedby"]:void 0),className:y&&y.splitButtonContainer,onKeyDown:r._onSplitButtonContainerKeyDown,onTouchStart:r._onTouchStart,ref:r._splitButtonContainer,"data-is-focusable":!0,onClick:s||d?void 0:r._onSplitButtonPrimaryClick,tabIndex:!s&&!d||l?0:void 0,"aria-roledescription":n["aria-roledescription"],onFocusCapture:r._onSplitContainerFocusCapture}),Gt.createElement("span",{style:{display:"flex",width:"100%"}},r._onRenderContent(t,n),r._onRenderSplitButtonMenuButton(y,o),r._onRenderSplitButtonDivider(y)))};return g?Gt.createElement(Fq,{keytipProps:g,disabled:s},(function(e){return C(e)})):C()},n.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return Gt.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},n.prototype._onRenderSplitButtonMenuButton=function(t,r){var o=this.props,i=o.allowDisabledFocus,a=o.checked,s=o.disabled,l=o.splitButtonMenuProps,c=o.splitButtonAriaLabel,u=o.primaryDisabled,d=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var h=(0,e.__assign)((0,e.__assign)({},l),{styles:t,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:(0,e.__assign)((0,e.__assign)({},p),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return Gt.createElement(n,(0,e.__assign)({},h,{"data-ktp-execute-target":r?r["data-ktp-execute-target"]:r,onMouseDown:this._onMouseDown,tabIndex:u&&!i?0:-1}))},n.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},n.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()}),500)},n.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===ez&&(e.altKey||e.metaKey))},n.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},n}(Gt.Component),SK={outline:0},xK=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},_K=NU((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[EU(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+a,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:o.roundedCorner2,selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[EU(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":SK,":focus":SK}}],iconDisabled:{color:l,selectors:(t={},t[vU]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[vU]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:xK(i.mediumPlus.fontSize),menuIcon:xK(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:wU}})),EK=NU((function(t,n){var r,o,i,a,s,l,c,u,d,p,h,m,f,g=t.effects,v=t.palette,y=t.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8};return nH({splitButtonContainer:[EU(t,{highContrastStyle:b,inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(r={},r[vU]=(0,e.__assign)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(o={},o[vU]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[vU]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(a={},a[vU]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[vU]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(l={},l[vU]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(c={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid "+v.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},c[vU]={".ms-Button-menuIcon":{color:"WindowText"}},c),splitButtonDivider:(0,e.__assign)((0,e.__assign)({},C),{selectors:(u={},u[vU]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:(0,e.__assign)((0,e.__assign)({},C),{selectors:(d={},d[vU]={backgroundColor:"GrayText"},d)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[vU]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(m={},m[vU]={color:"GrayText"},m)}},p[vU]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},p)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(f={},f[vU]=(0,e.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f)},splitButtonMenuFocused:(0,e.__assign)({},EU(t,{highContrastStyle:b,inset:2}))},n)}));var kK=NU((function(t,n,r){var o=_K(t),i=EK(t);return nH(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:tf.semibold}},r?function(t){var n,r,o,i,a,s,l,c,u,d=t.palette,p=t.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid "+p.primaryButtonBackground,color:p.primaryButtonText,selectors:(n={},n[vU]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n[".ms-Fabric--isFocusVisible &:focus"]={selectors:{":after":{border:"none",outlineColor:d.white}}},n)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid "+p.primaryButtonBackgroundHovered,color:p.primaryButtonTextHovered,selectors:(r={},r[vU]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid "+p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed,selectors:(o={},o[vU]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{color:p.primaryButtonTextDisabled,backgroundColor:p.primaryButtonBackgroundDisabled,selectors:(i={},i[vU]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(a={},a[vU]={border:"none"},a)},splitButtonDivider:(0,e.__assign)((0,e.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:d.white,selectors:(s={},s[vU]={backgroundColor:"Window"},s)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(l={},l[vU]={backgroundColor:"WindowText"},l[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(c={},c[vU]={color:"Highlight"},c)},l)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(u={},u[vU]={color:"GrayText"},u)}}}(t):function(t){var n,r,o,i,a,s=t.semanticColors,l=t.palette,c=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,p=s.buttonBackgroundDisabled,h=s.buttonText,m=s.buttonTextHovered,f=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:c,color:h},rootHovered:{backgroundColor:d,color:m,selectors:(n={},n[vU]={borderColor:"Highlight",color:"Highlight"},n)},rootPressed:{backgroundColor:u,color:g},rootExpanded:{backgroundColor:u,color:g},rootChecked:{backgroundColor:u,color:g},rootCheckedHovered:{backgroundColor:u,color:v},rootDisabled:{color:f,backgroundColor:p,selectors:(r={},r[vU]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(o={},o[vU]={border:"none"},o)},splitButtonMenuButton:{color:l.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:l.neutralLight,selectors:(i={},i[vU]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:s.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:s.buttonBackgroundDisabled}}},splitButtonDivider:(0,e.__assign)((0,e.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:l.neutralTertiaryAlt,selectors:(a={},a[vU]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:t.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}(t),i,n)})),wK=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.primary,r=void 0!==n&&n,o=t.styles,i=t.theme;return Gt.createElement(CK,(0,e.__assign)({},this.props,{variantClassName:r?"ms-Button--primary":"ms-Button--default",styles:kK(i,o,r),onRenderDescription:Jj}))},n=(0,e.__decorate)([$j("DefaultButton",["theme","styles"],!0)],n)}(Gt.Component),IK=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){return Gt.createElement(wK,(0,e.__assign)({},this.props,{primary:!0,onRenderDescription:Jj}))},n=(0,e.__decorate)([$j("PrimaryButton",["theme","styles"],!0)],n)}(Gt.Component),PK=NU((function(e,t){var n,r=_K(e),o=EK(e),i=e.palette;return nH(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[vU]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)})),TK=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme;return Gt.createElement(CK,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:PK(r,n),onRenderText:Jj,onRenderDescription:Jj}))},n=(0,e.__decorate)([$j("IconButton",["theme","styles"],!0)],n)}(Gt.Component),DK=e.__assign;function AK(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t;return i.isSlot?0===(r=Gt.Children.toArray(r)).length?i(n):i((0,e.__assign)((0,e.__assign)({},n),{children:r})):Gt.createElement.apply(Gt,(0,e.__spreadArray)([t,n],r))}function RK(t,n){void 0===n&&(n={});var r=n.defaultProp,o=void 0===r?"children":r;return function(n,r,i,a,s){if(Gt.isValidElement(r))return r;var l=function(e,t){var n,r;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((n={})[e]=t,r=n):r=t;return r}(o,r),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),DK(o,l)}return o.className=Cz([e,i],{rtl:hV(t)}),o}(a,s,n,l);if(i){if(i.component){var u=i.component;return Gt.createElement(u,(0,e.__assign)({},c))}if(i.render)return i.render(c,t)}return Gt.createElement(t,(0,e.__assign)({},c))}}var NK=NU((function(e){return RK(e)}));function MK(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(o.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return FK(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function FK(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):NK(e)(t,n,r,o,i)}function BK(t,n){void 0===n&&(n={});var r=n.factoryOptions,o=(void 0===r?{}:r).defaultProp,i=function(r){var o=function(e,t,n){var r=["theme","styles","tokens"];return mH.getSettings(n||r,e,t.customizations)}(n.displayName,Gt.useContext(fH),n.fields),i=n.state;i&&(r=(0,e.__assign)((0,e.__assign)({},r),i(r)));var a=r.theme||o.theme,s=OK(r,a,n.tokens,o.tokens,r.tokens),l=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return nH.apply(void 0,r.map((function(r){return"function"===typeof r?r(e,t,n):r})))}(r,a,s,n.styles,o.styles,r.styles),c=(0,e.__assign)((0,e.__assign)({},r),{styles:l,tokens:s,_defaultStyles:l,theme:a});return t(c)};return i.displayName=n.displayName||t.name,o&&(i.create=RK(i,{defaultProp:o})),DK(i,n.statics),i}function OK(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];for(var i={},a=0,s=r;a<s.length;a++){var l=s[a];l&&(l="function"===typeof l?l(t,n):l,Array.isArray(l)&&(l=OK.apply(void 0,(0,e.__spreadArray)([t,n],l))),DK(i,l))}return i}var LK=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},HK=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},VK=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?LK(e,t):n.reduce((function(e,n){return LK(e,t)+" "+LK(n,t)}))},zK={start:"flex-start",end:"flex-end"},UK={root:"ms-Stack",inner:"ms-Stack-inner"},WK={root:"ms-StackItem"},GK={start:"flex-start",end:"flex-end"},jK=BK((function(t){var n=t.children,r=vz(t,dz);return null==n?null:AK(MK(t,{root:"div"}).root,(0,e.__assign)({},r),n)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=e.basis,d=void 0===u?"auto":u,p=LU(WK,t);return{root:[t.fonts.medium,p.root,{flexBasis:d,margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(i||!r&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:GK[a]||a},l&&{order:l},c]}}});var qK=BK((function(t){var n=t.as,r=void 0===n?"div":n,o=t.disableShrink,i=t.wrap,a=(0,e.__rest)(t,["as","disableShrink","wrap"]),s=Gt.Children.toArray(t.children);1===s.length&&Gt.isValidElement(s[0])&&s[0].type===Gt.Fragment&&(s=s[0].props.children),s=Gt.Children.map(s,(function(t,n){if(!t)return null;if((i=t)&&"object"===typeof i&&i.type&&i.type.displayName===jK.displayName){var r={shrink:!o};return Gt.cloneElement(t,(0,e.__assign)((0,e.__assign)({},r),t.props))}var i;return t}));var l=vz(a,dz),c=MK(t,{root:r,inner:"div"});return AK(c.root,(0,e.__assign)({},l),i?AK(c.inner,null,s):s)}),{displayName:"Stack",styles:function(t,n,r){var o,i,a,s,l,c,u,d=t.verticalFill,p=t.horizontal,h=t.reversed,m=t.grow,f=t.wrap,g=t.horizontalAlign,v=t.verticalAlign,y=t.disableShrink,b=t.className,C=LU(UK,n),S=r&&r.childrenGap?r.childrenGap:t.gap,x=r&&r.maxHeight?r.maxHeight:t.maxHeight,_=r&&r.maxWidth?r.maxWidth:t.maxWidth,E=r&&r.padding?r.padding:t.padding,k=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"===typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:HK(LK(n[0],t)),columnGap:HK(LK(n[1],t))};var r=HK(LK(e,t));return{rowGap:r,columnGap:r}}(S,n),w=k.rowGap,I=k.columnGap,P=""+-.5*I.value+I.unit,T=""+-.5*w.value+w.unit,D={textOverflow:"ellipsis"},A={"> *:not(.ms-StackItem)":{flexShrink:y?0:1}};return f?{root:[C.root,{flexWrap:"wrap",maxWidth:_,maxHeight:x,width:"auto",overflow:"visible",height:"100%"},g&&(o={},o[p?"justifyContent":"alignItems"]=zK[g]||g,o),v&&(i={},i[p?"alignItems":"justifyContent"]=zK[v]||v,i),b,{display:"flex"},p&&{height:d?"100%":"auto"}],inner:[C.inner,{display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:T,marginBottom:T,overflow:"visible",boxSizing:"border-box",padding:VK(E,n),width:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",maxWidth:"100vw",selectors:(0,e.__assign)({"> *":(0,e.__assign)({margin:""+.5*w.value+w.unit+" "+.5*I.value+I.unit},D)},A)},g&&(a={},a[p?"justifyContent":"alignItems"]=zK[g]||g,a),v&&(s={},s[p?"alignItems":"justifyContent"]=zK[v]||v,s),p&&{flexDirection:h?"row-reverse":"row",height:0===w.value?"100%":"calc(100% + "+w.value+w.unit+")",selectors:{"> *":{maxWidth:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}},!p&&{flexDirection:h?"column-reverse":"column",height:"calc(100% + "+w.value+w.unit+")",selectors:{"> *":{maxHeight:0===w.value?"100%":"calc(100% - "+w.value+w.unit+")"}}}]}:{root:[C.root,{display:"flex",flexDirection:p?h?"row-reverse":"row":h?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:_,maxHeight:x,padding:VK(E,n),boxSizing:"border-box",selectors:(0,e.__assign)((l={"> *":D},l[h?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+I.value+I.unit},!p&&{marginTop:""+w.value+w.unit}],l),A)},m&&{flexGrow:!0===m?1:m},g&&(c={},c[p?"justifyContent":"alignItems"]=zK[g]||g,c),v&&(u={},u[p?"alignItems":"justifyContent"]=zK[v]||v,u),b]}},statics:{Item:jK}});function KK(e){var t=Gt.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return bj((function(){t.current=e}),[e]),wG((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}var YK={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},XK=Gt.forwardRef((function(t,n){var r,o=Gt.useRef(null),i=Gt.useRef(null),a=Gt.useRef(null),s=yG(o,n),l=SG(),c=null===(r=Aq(!1))||void 0===r||r,u=RW(YK,t),d=wG({hasFocus:!1,focusStackId:Uq("ftz-",u.id)}),p=u.children,h=u.componentRef,m=u.disabled,f=u.disableFirstFocus,g=u.forceFocusInsideTrap,v=u.focusPreviouslyFocusedInnerElement,y=u.firstFocusableSelector,b=u.firstFocusableTarget,C=u.disableRestoreFocus,S=void 0===C?u.ignoreExternalFocusing:C,x=u.isClickableOutsideFocusTrap,_=u.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:m?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},k=Gt.useCallback((function(e){e!==i.current&&e!==a.current&&zV(e)}),[]),w=KK((function(){if(o.current){var e=d.previouslyFocusedElementInTrapZone;if(v&&e&&AV(o.current,e))k(e);else{var t=null;if("string"===typeof b)t=o.current.querySelector(b);else if(b)t=b(o.current);else if(y){var n="string"===typeof y?y:y();t=o.current.querySelector("."+n)}t||(t=NV(o.current,o.current.firstChild,!1,!1,!1,!0)),t&&k(t)}}})),I=function(e){if(!m&&o.current){var t,n,r,s=e===d.hasFocus?(t=o.current,n=a.current,void 0===(r=!1)&&(r=!0),RV(t,n,r,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),NV(e,t,r,!1,!1,n,!1,!0)}(o.current,i.current,!0,!1);s&&(s===i.current||s===a.current?w():s.focus())}},P=KK((function(e){if(XK.focusStack=XK.focusStack.filter((function(e){return d.focusStackId!==e})),l){var t=l.activeElement;S||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!AV(o.current,t)&&t!==l.body||k(e)}})),T=KK((function(e){if(!m&&d.focusStackId===XK.focusStack.slice(-1)[0]){var t=e.target;t&&!AV(o.current,t)&&(l&&l.activeElement===l.body?setTimeout((function(){l&&l.activeElement===l.body&&(w(),d.hasFocus=!0)}),0):(w(),d.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return Gt.useEffect((function(){var e=[];return g&&e.push(AW(window,"focus",T,!0)),x||e.push(AW(window,"click",T,!0)),function(){e.forEach((function(e){return e()}))}}),[g,x]),Gt.useEffect((function(){if(!m&&(c||g)&&o.current){XK.focusStack.push(d.focusStackId);var e=u.elementToFocusOnDismiss||l.activeElement;return f||AV(o.current,e)||w(),function(){return P(e)}}}),[g,m]),Gt.useEffect((function(){if(!m&&_)return fG(o.current)}),[m,_,o]),function(e){var t=Gt.useRef(e);t.current=e,Gt.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])}((function(){delete d.previouslyFocusedElementInTrapZone})),function(e,t,n){Gt.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(h,d.previouslyFocusedElementInTrapZone,w),Gt.createElement("div",(0,e.__assign)({"aria-labelledby":u.ariaLabelledBy},vz(u,gz),{ref:s,onFocusCapture:function(e){var t;null===(t=u.onFocusCapture)||void 0===t||t.call(u,e),e.target===i.current?I(!0):e.target===a.current&&I(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==i.current&&e.target!==a.current&&(d.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=u.onBlurCapture)||void 0===t||t.call(u,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=l.activeElement),AV(o.current,n)||(d.hasFocus=!1)}}),Gt.createElement("div",(0,e.__assign)({},E,{ref:i})),p,Gt.createElement("div",(0,e.__assign)({},E,{ref:a})))}));XK.displayName="FocusTrapZone",XK.focusStack=[];var QK=gV(),ZK=Gt.forwardRef((function(t,n){var r,o,i,a,s,l,c,u=Gt.useRef(null),d=SG(),p=yG(u,n),h=Uq("teaching-bubble-content-"),m=Uq("teaching-bubble-title-"),f=null!==(r=t.ariaDescribedBy)&&void 0!==r?r:h,g=null!==(o=t.ariaLabelledBy)&&void 0!==o?o:m,v=t.illustrationImage,y=t.primaryButtonProps,b=t.secondaryButtonProps,C=t.headline,S=t.hasCondensedHeadline,x=t.hasCloseButton,_=void 0===x?t.hasCloseIcon:x,E=t.onDismiss,k=t.closeButtonAriaLabel,w=t.hasSmallHeadline,I=t.isWide,P=t.styles,T=t.theme,D=t.footerContent,A=t.focusTrapZoneProps,R=QK(P,{theme:T,hasCondensedHeadline:S,hasSmallHeadline:w,hasCloseButton:_,hasHeadline:!!C,isWide:I,primaryButtonClassName:y?y.className:void 0,secondaryButtonClassName:b?b.className:void 0});if(vG(d,"keydown",Gt.useCallback((function(e){E&&e.which===jV&&E(e)}),[E])),v&&v.src&&(i=Gt.createElement("div",{className:R.imageContent},Gt.createElement(Uj,(0,e.__assign)({},v)))),C){var N="string"===typeof C?"p":"div";a=Gt.createElement("div",{className:R.header},Gt.createElement(N,{role:"heading","aria-level":3,className:R.headline,id:g},C))}if(t.children){var M="string"===typeof t.children?"p":"div";s=Gt.createElement("div",{className:R.body},Gt.createElement(M,{className:R.subText,id:f},t.children))}return(y||b||D)&&(l=Gt.createElement(qK,{className:R.footer,horizontal:!0,horizontalAlign:D?"space-between":"end"},Gt.createElement(qK.Item,{align:"center"},Gt.createElement("span",null,D)),Gt.createElement(qK.Item,null,y&&Gt.createElement(IK,(0,e.__assign)({},y,{className:R.primaryButton})),b&&Gt.createElement(wK,(0,e.__assign)({},b,{className:R.secondaryButton}))))),_&&(c=Gt.createElement(TK,{className:R.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:k,onClick:E})),function(e,t){Gt.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(t.componentRef,u),Gt.createElement("div",{className:R.content,ref:p,role:"dialog",tabIndex:-1,"aria-labelledby":g,"aria-describedby":f,"data-is-focusable":!0},i,Gt.createElement(XK,(0,e.__assign)({isClickableOutsideFocusTrap:!0},A),Gt.createElement("div",{className:R.bodyContent},a,s,l,c)))})),JK={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},$K=NU((function(){return function(e){var t=NH.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",iV(OH(),e[r]),"}");var o=n.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+o+"}",!0),t.cacheClassName(a,o,[],["keyframes",o]),a}({"0%":{opacity:0,animationTimingFunction:uU,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),eY=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:""+$K(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},tY=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},nY=function(t){var n,r,o,i=t.hasCondensedHeadline,a=t.hasSmallHeadline,s=t.hasCloseButton,l=t.hasHeadline,c=t.isWide,u=t.primaryButtonClassName,d=t.secondaryButtonClassName,p=t.theme,h=t.calloutProps,m=void 0===h?{className:void 0,theme:p}:h,f=!i&&!a,g=p.palette,v=p.semanticColors,y=p.fonts,b=LU(JK,p),C=EU(p,{outlineColor:"transparent",borderColor:"transparent"});return{root:[b.root,y.medium,m.className],body:[b.body,s&&!l&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[b.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[b.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:g.white,fontSize:y.small.fontSize,selectors:{":hover":{background:g.themeDarkAlt,color:g.white},":active":{background:g.themeDark,color:g.white},":focus":{border:"1px solid "+v.variantBorder}}}],content:(0,e.__spreadArray)((0,e.__spreadArray)([b.content],eY(c)),[c&&{display:"flex"}]),footer:[b.footer,{display:"flex",flex:"auto",alignItems:"center",color:g.white,selectors:(n={},n["."+b.button+":not(:first-child)"]={marginLeft:10},n)}],header:(0,e.__spreadArray)((0,e.__spreadArray)([b.header],tY(b,i,a)),[s&&{marginRight:24},(i||a)&&[y.medium,{fontWeight:tf.semibold}]]),headline:[b.headline,{margin:0,color:g.white,fontWeight:tf.semibold,overflowWrap:"break-word"},f&&[{fontSize:y.xLarge.fontSize}]],imageContent:[b.header,b.image,c&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[b.primaryButton,u,C,{backgroundColor:g.white,borderColor:g.white,color:g.themePrimary,whiteSpace:"nowrap",selectors:(r={},r["."+b.buttonLabel]=y.medium,r[":hover"]={backgroundColor:g.themeLighter,borderColor:g.themeLighter,color:g.themeDark},r[":focus"]={backgroundColor:g.themeLighter,border:"1px solid "+g.black,color:g.themeDark,outline:"1px solid "+g.white,outlineOffset:"-2px"},r[":active"]={backgroundColor:g.white,borderColor:g.white,color:g.themePrimary},r)}],secondaryButton:[b.secondaryButton,d,C,{backgroundColor:g.themePrimary,borderColor:g.white,whiteSpace:"nowrap",selectors:(o={},o["."+b.buttonLabel]=[y.medium,{color:g.white}],o[":hover"]={backgroundColor:g.themeDarkAlt,borderColor:g.white},o[":focus"]={backgroundColor:g.themeDark,border:"1px solid "+g.black,outline:"1px solid "+g.white,outlineOffset:"-2px"},o[":active"]={backgroundColor:g.themePrimary,borderColor:g.white},o)}],subText:[b.subText,{margin:0,fontSize:y.medium.fontSize,color:g.white,fontWeight:tf.regular}],subComponentStyles:{callout:{root:(0,e.__spreadArray)((0,e.__spreadArray)([],eY(c,m)),[y.medium]),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},rY=yH(ZK,nY,void 0,{scope:"TeachingBubbleContent"}),oY={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:TW},iY=gV(),aY=Gt.forwardRef((function(t,n){var r=Gt.useRef(null),o=yG(r,n),i=t.calloutProps,a=t.targetElement,s=t.onDismiss,l=t.hasCloseButton,c=void 0===l?t.hasCloseIcon:l,u=t.isWide,d=t.styles,p=t.theme,h=t.target,m=Gt.useMemo((function(){return(0,e.__assign)((0,e.__assign)((0,e.__assign)({},oY),i),{theme:p})}),[i,p]),f=iY(d,{theme:p,isWide:u,calloutProps:m,hasCloseButton:c}),g=f.subComponentStyles?f.subComponentStyles.callout:void 0;return function(e,t){Gt.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(t.componentRef,r),Gt.createElement(kj,(0,e.__assign)({target:h||a,onDismiss:s},m,{className:f.root,styles:g,hideOverflow:!0}),Gt.createElement("div",{ref:o},Gt.createElement(rY,(0,e.__assign)({},t))))}));aY.displayName="TeachingBubble";var sY=yH(aY,nY,void 0,{scope:"TeachingBubble"}),lY=["calloutProps"],cY=function(e){SH(n,e);var t=kH(n);function n(){return fa(this,n),t.apply(this,arguments)}return va(n,[{key:"render",value:function(){var e=this.props,t=e.calloutProps,n=bH(e,lY);return Gt.createElement(sY,km(km({hasCondensedHeadline:!0,hasSmallHeadline:!0,hasCloseIcon:!0,isWide:!1},n),{},{calloutProps:km({beakWidth:12,directionalHint:SW,directionalHintFixed:!0},t)}))}}]),n}(Gt.Component),uY=yH(cY,(function(e){return{content:{animation:"none"},subComponentStyles:{callout:{root:{animation:"none",width:"284px",maxWidth:"284px"}}},footer:{selectors:{"& *":{flex:"1 1 auto"},"& .ms-Button:not(:first-child)":{marginLeft:"16px"}}},closeButton:{top:"4px",right:"4px"},bodyContent:{paddingTop:"18px"}}}),void 0,{scope:"NavTeachingBubble"}),dY=["className","title","disabled"],pY=gV(),hY=yH(Oj,{root:{display:"flex"}},void 0,{scope:"FlexTooltipHost"}),mY=function(e){SH(n,e);var t=kH(n);function n(e){var r;return fa(this,n),_m(CH(r=t.call(this,e)),"_linkTipId",SV("linkTip")),_m(CH(r),"_onClick",(function(e){r.props.onClick&&r.props.onClick(e,r.props.item)})),_m(CH(r),"_setLinkRef",(function(e){r.state.linkRef!==e&&r.setState({linkRef:e})})),r.state={linkRef:null},r}return va(n,[{key:"render",value:function(){var e=function(e){var t=e.name,n=e.hasNestedMenu,r=e.isNested,o=e.isNavCollapsed,i=e.primaryIconName,a=e.isCollapsibleSection,s=e.onRenderSecondaryContent,l=void 0;return n&&(l="ChevronDownMed"),Gt.createElement(Gt.Fragment,null,Gt.createElement("div",{className:_.iconContainer,role:"presentation"},i&&!(o&&a)&&Gt.createElement(Xj,{iconName:i,className:_.icon})),t&&Gt.createElement("div",{className:_.text},t),s&&Gt.createElement("div",{className:_.secondaryContent},s(e)),(!o||a||r)&&Gt.createElement(Xj,{iconName:l,className:_.secondaryIcon,role:"presentation"}))},t=this.props,n=t.name,r=t.hasNestedMenu,o=t.isNested,i=t.isNavCollapsed,a=t.isExpanded,s=t.isSelected,l=t.hasSelectedNestedLink,c=t.styles,u=t.primaryIconName,d=t.href,p=t.forceAnchor,h=t.theme,m=t.showTeachingBubble,f=t.teachingBubbleProps,g=t.isParentExpanded,v=t.preserveIconSpace,y=t.tooltipProps,b=t.ariaLabel,C=t.isCollapsibleSection,S=t.onRenderNavContent,x=void 0===S?e:S,_=pY(c,{theme:h,isNavCollapsed:!!i,hasNestedMenu:!!r,isExpanded:!!a,isSelected:!!s,hasSelectedNestedLink:!!l,isNested:!!o,hasIcon:!!u,preserveIconSpace:!!v,isCollapsibleSection:!!C,colorThrowContext:this.context}),E=vz(this.props,d?hz:mz),k=E.className,w=E.title,I=E.disabled,P=bH(E,dY),T=x(this.props,e);p&&!d&&console.warn("If you force true without href prop the link will not work with keyboard");var D=bz(_.root,k),A=d||p?Gt.createElement("a",km(km({"aria-label":b},P),{},{onClick:this._onClick,className:D,ref:this._setLinkRef}),T):Gt.createElement("button",km(km({"aria-label":b},P),{},{onClick:this._onClick,className:D,ref:this._setLinkRef}),T),R=m&&(!o||!i&&o&&g);return Gt.createElement(Gt.Fragment,null,I||void 0===w&&!i&&!y?A:Gt.createElement(hY,km({id:this._linkTipId,content:null!==w&&void 0!==w?w:i&&!o&&n,directionalHint:TW},y),A),R&&Gt.createElement(uY,km({target:this.state.linkRef},f)))}}]),n}(Gt.Component);function fY(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}function gY(e){if(fY()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}_m(mY,"contextType",eH);var vY,yY=void 0;try{yY=window}catch(eDe){}function bY(e){if(fY()&&"undefined"!==typeof yY){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:yY}}function CY(e){vY!==e&&(vY=e)}function SY(){return void 0===vY&&(vY="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),vY}vY=SY();var xY,_Y="isRTL";function EY(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===xY){var t=function(e){var t=null;try{var n=bY();t=n?n.sessionStorage.getItem(e):null}catch(eDe){}return t}(_Y);null!==t&&function(e,t){void 0===t&&(t=!1);var n=gY();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=bY())||void 0===n||n.sessionStorage.setItem(e,t)}catch(eDe){}}(_Y,e?"1":"0");CY(xY=e)}(xY="1"===t);var n=gY();void 0===xY&&n&&CY(xY="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!xY}var kY=function(){return EY()?"@noflip":""},wY=!1,IY=0,PY={empty:!0},TY={},DY="undefined"===typeof WeakMap?null:WeakMap;function AY(){IY++}function RY(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!DY)return e;if(!wY){var r=xl.getInstance();r&&r.onReset&&xl.getInstance().onReset(AY),wY=!0}var o,i=0,a=IY;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==IY||t>0&&i>t)&&(o=MY(),i=0,a=IY),l=o;for(var c=0;c<r.length;c++){var u=NY(r[c]);l.map.has(u)||l.map.set(u,MY()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function NY(e){return e?"object"===typeof e||"function"===typeof e?e:(TY[e]||(TY[e]={val:e}),TY[e]):PY}function MY(){return{map:DY?new DY:null}}var FY,BY,OY=0,LY=0,HY=[];var VY,zY,UY=RY((function(e){var t,n;if("undefined"!==typeof window)if(null!==(t=FY)&&void 0!==t&&t.parentElement&&null!==(n=FY)&&void 0!==n&&n.sheet)void 0!==BY&&FY.sheet.deleteRule(BY),BY=FY.sheet.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"));else{var r,o,i,a,s,l,c;FY&&document.getElementsByTagName("head")[0].removeChild(FY);var u=null!==(r=null===(o=window.FabricConfig)||void 0===o||null===(i=o.mergeStyles)||void 0===i||null===(a=i.cspSettings)||void 0===a?void 0:a.nonce)&&void 0!==r?r:null===(s=xl.getInstance()._config)||void 0===s||null===(l=s.cspSettings)||void 0===l?void 0:l.nonce;FY=document.createElement("style"),u&&FY.setAttribute("nonce",u),document.getElementsByTagName("head")[0].appendChild(FY),BY=null===(c=FY.sheet)||void 0===c?void 0:c.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"))}}),1),WY=function e(){void 0!==VY&&cancelAnimationFrame(VY);var t=1;"undefined"!==typeof window&&(VY=requestAnimationFrame((function(){zY&&(zY.onchange=null),(zY=matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"))).onchange=e,VY=void 0})),t=window.devicePixelRatio),UY(function(e){if(0!==OY&&LY===e||"undefined"===typeof window)return OY;LY=e;var t=document.createElement("div");t.setAttribute("class",yc({width:100,height:100,overflow:"scroll",position:"absolute",top:-999,display:"block !important"}));var n=document.createElement("div");return n.setAttribute("class",yc({width:100,height:200})),t.appendChild(n),document.body.appendChild(t),OY=t.offsetWidth-t.clientWidth,document.body.removeChild(t),HY.forEach((function(e){e(OY)})),OY}(t))};WY();WY();var GY=ef.medium,jY=40,qY=function(e){return{display:"block",position:"relative",height:16,textAlign:"center","::after":{content:'" "',width:"calc(100% - 32px)",position:"absolute",height:"1px",top:10,insetInlineStart:"16px",backgroundColor:e.palette.neutralTertiaryAlt}}},KY=ef.icon,YY="NavLink",XY=yH(mY,(function(e){var t=e.isNavCollapsed,n=e.isExpanded,r=e.hasNestedMenu,o=e.isSelected,i=e.hasSelectedNestedLink,a=e.isNested,s=e.theme,l=e.hasIcon,c=e.preserveIconSpace,u=e.isCollapsibleSection,d=e.colorThrowContext,p=!t&&a?"34px":"4px";return{root:[s.fonts.medium,EU(s),{minHeight:a?32:jY,color:s.semanticColors.buttonText,textDecoration:"none",display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",cursor:"pointer",position:"relative",width:"100%",background:"transparent",border:"none",padding:0,textAlign:"inherit",":hover":{backgroundColor:tH(s.semanticColors.navItemBackgroundHovered,"navItemBackgroundHovered",YY,{context:d,theme:s})},":active":{backgroundColor:tH(s.semanticColors.navItemBackgroundPressed,"navItemBackgroundPressed",YY,{context:d,theme:s})}}],iconContainer:[{display:"flex",flex:"0 0 ".concat(t&&u?12:l||a||c?48:16,"px"),alignItems:"center",justifyContent:"center","::before":[_m({content:'" "',position:"absolute",left:p,width:"4px",height:"24px",backgroundColor:s.palette.themePrimary,opacity:0,transition:"opacity 300ms"},vU,{backgroundColor:"Highlight"}),a&&{height:"18px",top:"7px"},!(u&&n)&&(!t&&!n&&i||!t&&!r&&o||t&&o)&&{opacity:1}],'*[dir="rtl"] &::before':{right:"".concat(p," ").concat(kY())}},t&&a&&{flex:"0 0 12px"}],icon:{fontSize:KY,color:s.palette.neutralPrimary},secondaryContent:{flex:"0 0 auto"},secondaryIcon:[{flex:"0 0 ".concat(r?"48px":"16px"),fontSize:s.fonts.small.fontSize,color:s.palette.neutralPrimary,transition:"transform 200ms",textAlign:"center"},n&&{transform:"rotate(-180deg)"}],text:[{flex:"1 1 auto",textOverflow:"ellipsis",overflowX:"hidden",whiteSpace:"nowrap",color:s.palette.neutralPrimary,pointerEvents:"none"}]}}),void 0,{scope:"NavLink"},!0),QY=24,ZY=gV(),JY=0,$Y=function(e){SH(n,e);var t=kH(n);function n(e){var r;return fa(this,n),_m(CH(r=t.call(this,e)),"navLinkGroupRef",void 0),_m(CH(r),"navRootRef",void 0),_m(CH(r),"instanceNumber",void 0),_m(CH(r),"uniqueId",void 0),_m(CH(r),"_onLinkClicked",(function(e,t){r.setState(km(km({},r.props.isNavCollapsed&&{isKeyboardExpanded:!r.state.isKeyboardExpanded}),void 0===r.props.isExpanded&&{isExpanded:!r.state.isExpanded}),(function(){r.props.onCollapse&&r.props.onCollapse()})),r.props.isNavCollapsed&&r._offsetUpdated(),r.props.onExpanded&&r.props.onExpanded(!r.state.isExpanded),r.props.link.onClick&&r.props.link.onClick(e,t)})),_m(CH(r),"_keyboardFocusSubNav",(function(e){e&&e.focus(!0)})),_m(CH(r),"_escapeSubNavFocus",(function(e){e.which===jV&&(r.setState({isKeyboardExpanded:!1}),r.props.focusZoneRef.current&&r.props.focusZoneRef.current.focus())})),_m(CH(r),"_nestedNavBlur",(function(e){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),e.currentTarget.contains(t)||r.setState({isKeyboardExpanded:!1})})),_m(CH(r),"_offsetUpdated",(function(e){if(r.navRootRef.current&&r.navLinkGroupRef.current&&r.props.navRef.current){var t=r.navRootRef.current.offsetTop-r.props.navRef.current.scrollTop;r.navLinkGroupRef.current.style.top="".concat(t,"px")}})),_m(CH(r),"_isNestedLinkSelected",(function(e){return e&&!!e.links&&e.links.some((function(e){return!!e&&!!e.isSelected}))})),r.state={isExpanded:!!(void 0!==e.isExpanded?e.isExpanded:e.defaultIsExpanded),isKeyboardExpanded:!1},r.navLinkGroupRef=Gt.createRef(),r.navRootRef=Gt.createRef(),r.instanceNumber=JY++,r.uniqueId=e.isGroupSectionHeader?SV("Group_"):SV("L1Content_"),r}return va(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.link,o=n.isNavCollapsed,i=n.styles,a=n.theme,s=n.itemTotal,l=n.itemStartIndex,c=n.isCollapsibleSection,u=n.isGroupSectionHeader,d=this.state.isKeyboardExpanded,p=void 0===this.props.isExpanded?this.state.isExpanded:this.props.isExpanded,h=null===(e=r.links)||void 0===e?void 0:e.some((function(e){return e.isSelected||t._isNestedLinkSelected(e)})),m=c&&!u,f=ZY(i,{isExpanded:p,isNavCollapsed:o,isKeyboardExpanded:!!d,theme:a,isCollapsibleSection:m}),g=o&&d&&!m?cW:"ul",v="".concat(this.uniqueId,"menu_id").concat(this.instanceNumber),y="".concat(this.uniqueId,"_id").concat(this.instanceNumber);return Gt.createElement("div",km({className:f.root,role:"presentation"},o&&r.links&&{onMouseEnter:this._offsetUpdated,ref:this.navRootRef}),Gt.createElement(XY,km(km(km({item:r,role:"menuitem",primaryIconName:r.icon},r),{},{isNavCollapsed:o,onClick:this._onLinkClicked,"aria-controls":v,"aria-expanded":p},o&&!m&&r.links&&{"aria-haspopup":!0,"aria-expanded":d}),{},{isSelected:h,hasSelectedNestedLink:h,hasNestedMenu:!0,isCollapsibleSection:m,isExpanded:p,id:y,"aria-setsize":s,"aria-posinset":l},!p&&h&&{"aria-current":"page"})),r.links&&Gt.createElement("div",km({className:f.nestedNav,role:"presentation"},o&&{ref:this.navLinkGroupRef,"data-is-focusable":!1}),o&&!m&&Gt.createElement(XY,{isNavCollapsed:o,name:r.name,"data-is-focusable":!1,"aria-hidden":!0,primaryIconName:r.icon,disabled:!0,styles:{root:f.nestedNavHeaderItem,text:f.nestedNavHeaderItemText,icon:f.nestedNavHeaderItemIcon},onRenderSecondaryContent:r.onRenderSecondaryContent}),Gt.createElement("div",{className:f.nestedNavLinksWrapper,role:"presentation"},Gt.createElement(g,km({className:f.nestedNavLinks,"aria-labelledby":y,role:"menu",id:v},d&&o&&{componentRef:this._keyboardFocusSubNav,onKeyDown:this._escapeSubNavFocus,isCircularNavigation:!m,as:"ul",onBlur:this._nestedNavBlur}),r.links.map((function(e,n){var i=t._isNestedLinkSelected(e);return Gt.createElement("li",{role:"presentation",key:e.key},e.links?Gt.createElement(eX,km(km({},e),{},{styles:e.navLinkGroupStyles,isNavCollapsed:o,link:e,hasNestedMenu:!0,hasSelectedNestedLink:i,onCollapse:t.props.onCollapse,navRef:t.props.navRef,focusZoneRef:t.props.focusZoneRef,itemStartIndex:n+1,itemTotal:r.links.length,isCollapsibleSection:c})):Gt.createElement(XY,km(km(km({item:e,"aria-setsize":r.links.length,"aria-posinset":n+1,role:"menuitem",primaryIconName:e.icon},e),{},{isNavCollapsed:o},e.isSelected&&{"aria-current":"page"}),{},{hasNestedMenu:!1,hasSelectedNestedLink:!1,isNested:!u,isParentExpanded:p,isCollapsibleSection:c,styles:km({iconContainer:[f.nestedNavLinkIconContainer]},e.styles)})))}))))))}}]),n}(Gt.Component),eX=yH($Y,(function(e){var t=e.isNavCollapsed,n=e.isExpanded,r=e.isKeyboardExpanded,o=e.theme,i=e.isCollapsibleSection;return{root:[t&&!i&&{selectors:{"& *:hover + [class|=nestedNav]":{display:"flex"}}}],nestedNav:[t&&!i&&{width:"".concat(278,"px"),position:"absolute",flexDirection:"column",alignItems:"flex-end",display:r?"flex":"none",pointerEvents:"none",selectors:{":hover":{display:"flex"}}}],nestedNavHeaderItem:{zIndex:1,backgroundColor:o.palette.neutralTertiaryAlt,cursor:"default",selectors:{":hover":{backgroundColor:"inheret"},":active":{backgroundColor:"inheret"},":focus":{backgroundColor:"inheret"}}},nestedNavHeaderItemText:{margin:"0px 12px"},nestedNavLinksWrapper:[!t&&n&&[gU.fadeIn400,gU.slideDownIn20],(!t&&!n||i&&!n)&&{display:"none"},t&&!i&&{overflow:"hidden",padding:"".concat(64,"px ").concat(QY,"px ").concat(QY,"px 0px"),margin:"-".concat(64,"px -").concat(QY,"px -").concat(QY,"px 0px"),selectors:{'*[dir="rtl"] &':{paddingTop:"".concat(64,"px"),paddingRight:"0px ".concat(kY()),paddingBottom:"".concat(QY,"px"),paddingLeft:"".concat(QY,"px  ").concat(kY()),marginTop:"-".concat(64,"px"),marginRight:"0px  ".concat(kY()),marginBottom:"-".concat(QY,"px"),marginLeft:"-".concat(QY,"px  ").concat(kY())}}}],nestedNavLinks:[{padding:0,listStyle:"none"},t&&!i&&{width:"".concat(230,"px"),marginTop:"-".concat(jY,"px"),paddingTop:"".concat(jY,"px"),backgroundColor:o.palette.neutralLighter,boxShadow:"0 1.2px 3.6px rgba(0, 0, 0, 0.09), 0 6.4px 14.4px rgba(0, 0, 0, 0.11)"},t&&[gU.slideRightIn10,{selectors:{'[dir="rtl"] &':[gU.slideLeftIn10]}}]],nestedNavLinkIconContainer:[t&&i&&n&&{flex:"0 0 24px"}]}}),void 0,{scope:"NavLinkGroup"}),tX=gV(),nX=function(e){SH(n,e);var t=kH(n);function n(e){var r;return fa(this,n),_m(CH(r=t.call(this,e)),"_groupId",void 0),_m(CH(r),"_setLinkRef",(function(e){r.state.linkRef!==e&&r.setState({linkRef:e})})),r.state={linkRef:null},r}return va(n,[{key:"componentDidMount",value:function(){this._groupId="GroupId__".concat(SV())}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.groupIndex,o=n.onRenderGroupTitle,i=n.links,a=n.isNavCollapsed,s=n.onCollapse,l=n.navRef,c=n.focusZoneRef,u=n.styles,d=n.theme,p=n.showHeaderTeachingBubble,h=n.headerTeachingBubbleProps,m=n.itemStartIndex,f=n.itemTotal,g=this.props.collapsibleGroupTitleProps,v=tX(u,{isNavCollapsed:!!a,isCollapsible:!!g,theme:d}),y=function(e){return null===e||void 0===e||!e.groupName||e.isNavCollapsed&&!e.collapsibleGroupTitleProps?null:Gt.createElement("span",{className:v.navGroupTitle,role:"presentation",id:t._groupId},e.groupName)},b=null!==(e=null===o||void 0===o?void 0:o(this.props,y))&&void 0!==e?e:y(this.props);return Gt.createElement(Gt.Fragment,null,0!==r&&Gt.createElement("li",{role:"presentation",className:v.navGroupDivider}),Gt.createElement("div",{role:"group","aria-labelledby":this._groupId},g?Gt.createElement(eX,{link:km(km({name:b,icon:null===g||void 0===g?void 0:g.icon,links:i},null===g||void 0===g?void 0:g.collapsibleGroupTitleAttributes),{},{tooltipProps:km({content:this.props.groupName},null===g||void 0===g?void 0:g.tooltipProps),key:"id_".concat(r),showTeachingBubble:p,teachingBubbleProps:h}),isNavCollapsed:a,isExpanded:null===g||void 0===g?void 0:g.isExpanded,defaultIsExpanded:null===g||void 0===g?void 0:g.defaultExpanded,navRef:l,focusZoneRef:c,itemStartIndex:m,itemTotal:f,isCollapsibleSection:!0,isGroupSectionHeader:!0,styles:u}):Gt.createElement(Gt.Fragment,null,b&&Gt.createElement(Gt.Fragment,null,Gt.createElement("li",km(km({role:"presentation"},this.props.groupTitleAttributes),{},{ref:this._setLinkRef}),b),p&&Gt.createElement(uY,km({target:this.state.linkRef},h))),i.map((function(e,n){var r=t._isNestedLinkSelected(e),o=m+n;return Gt.createElement("li",{className:v.navItem,role:"presentation",key:e.key},e.links?Gt.createElement(eX,km(km({},e),{},{styles:e.navLinkGroupStyles,isNavCollapsed:a,link:e,hasNestedMenu:!0,hasSelectedNestedLink:r,onCollapse:s,navRef:l,focusZoneRef:c,itemStartIndex:o,itemTotal:f})):Gt.createElement(XY,km(km(km({item:e,primaryIconName:e.icon,role:"menuitem"},e),{},{isNavCollapsed:a},e.isSelected&&{"aria-current":"page"}),{},{hasNestedMenu:!1,isNested:!1,"aria-posinset":o,"aria-setsize":f})))})))))}},{key:"_isNestedLinkSelected",value:function(e){return e&&!!e.links&&e.links.some((function(e){return!!e&&!!e.isSelected}))}}]),n}(Gt.Component),rX=yH(nX,(function(e){var t=e.theme,n=e.isCollapsible,r=e.isNavCollapsed;return{navGroupDivider:qY(t),navGroupTitle:[{lineHeight:jY,color:t.palette.neutralPrimary,fontWeight:tf.semibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex"},!r&&{selectors:{"::before":{content:'""',width:n?"0px":"16px",flex:"0 0 auto"}}}],navItem:{margin:"0px",padding:"0px"}}}),void 0,{scope:"NavGroup"}),oX=["navItemTotal","editNavIndex"],iX=gV(),aX=function(e){SH(n,e);var t=kH(n);function n(e){var r;return fa(this,n),_m(CH(r=t.call(this,e)),"_menuRef",void 0),_m(CH(r),"_containerRef",void 0),_m(CH(r),"_focusRef",void 0),_m(CH(r),"_observer",void 0),_m(CH(r),"_createObserver",(function(){r._observer=new IntersectionObserver(r._setScrollLayout,{root:r._containerRef.current,threshold:.995}),r._menuRef.current&&r._observer.observe(r._menuRef.current)})),_m(CH(r),"_setScrollLayout",(function(e){var t=e[0].intersectionRatio<.995;t!==r.state.shouldScroll&&r.setState({shouldScroll:t})})),_m(CH(r),"_onNavCollapseClicked",(function(e){var t,n;r.props.onNavCollapsed&&r.props.onNavCollapsed(!r.state.isNavCollapsed),null===(t=r.props.collapseNavLinkProps)||void 0===t||null===(n=t.onClick)||void 0===n||n.call(t,e),void 0===r.props.isNavCollapsed&&r.setState({isNavCollapsed:!r.state.isNavCollapsed})})),r.props,r.state={isNavCollapsed:!!(void 0!==e.isNavCollapsed?e.isNavCollapsed:e.defaultIsNavCollapsed),shouldScroll:!1},r._menuRef=(0,Gt.createRef)(),r._containerRef=(0,Gt.createRef)(),r._focusRef=(0,Gt.createRef)(),r._onNavCollapseClicked=r._onNavCollapseClicked.bind(CH(r)),r._setScrollLayout=r._setScrollLayout.bind(CH(r)),r}return va(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.groups,r=t.enableCustomization,o=t.showMore,i=t.styles,a=t.showMoreLinkProps,s=t.editLinkProps,l=t.collapseNavLinkProps,c=t.theme,u=t.hideCollapseLink,d=this.state.shouldScroll,p=SV("nav-");n.some((function(e){return e.links.some((function(e){var t;return null===(t=e.links)||void 0===t?void 0:t.some((function(e){var t;return null!==(t=e.links)&&void 0!==t&&t}))}))}))&&console.warn("It looks like you have more than 2 levels of nested INavLinks. Consider restructuring your Nav as the M365 Nav will only render up to 2 levels of nested INavLinks");var h=void 0===this.props.isNavCollapsed?this.state.isNavCollapsed:this.props.isNavCollapsed,m=iX(i,{isNavCollapsed:h,shouldScroll:d,theme:c,zoomLevel:0,colorThrowContext:this.context}),f=function(e,t,n){var r=0;return e.forEach((function(e){r+=e.collapsibleGroupTitleProps?1:e.links.length})),{navItemTotal:r+=t&&n?2:t?1:0,editNavIndex:t?r-(n?1:0):void 0,navGroupStartIndex:1}}(n,r,o),g=f.navItemTotal,v=f.editNavIndex,y=bH(f,oX).navGroupStartIndex;return Gt.createElement("div",{className:m.root,role:"presentation"},Gt.createElement("nav",{role:"navigation",className:m.navWrapper},!u&&Gt.createElement(XY,km(km({primaryIconName:"GlobalNavButton"},l),{},{onClick:this._onNavCollapseClicked,"aria-controls":p,"aria-expanded":!h,styles:m.subComponentStyles.collapseNavButtonStyles})),Gt.createElement("div",{id:p,className:m.navContainer,ref:this._containerRef},Gt.createElement("div",{ref:this._menuRef,role:"presentation"},Gt.createElement(cW,{isCircularNavigation:!0,direction:_V.vertical,as:"ul",role:"menubar","aria-orientation":"vertical",className:m.navGroup,componentRef:this._focusRef},n.map((function(t,n,r){return y=function(e,t,n){return e+(t>0?n[t-1].collapsibleGroupTitleProps?1:n[t-1].links.length:0)}(y,n,r),Gt.createElement(rX,km(km({},t),{},{groupIndex:n,groupName:t.name,isNavCollapsed:h,navRef:e._containerRef,focusZoneRef:e._focusRef,itemStartIndex:y,itemTotal:g,key:t.key}))})),r&&Gt.createElement(Gt.Fragment,null,Gt.createElement("li",{role:"presentation",className:m.navGroupDivider}),Gt.createElement("li",{role:"presentation"},Gt.createElement(XY,km(km({primaryIconName:"Edit",role:"menuitem"},s),{},{"aria-setsize":g,"aria-posinset":v}))),o&&Gt.createElement("li",{role:"presentation"},Gt.createElement(XY,km(km({primaryIconName:"More",role:"menuitem"},a),{},{"aria-setsize":g,"aria-posinset":g})))))))))}},{key:"componentDidMount",value:function(){this._createObserver()}},{key:"componentWillUnmount",value:function(){this._menuRef.current&&this._observer.unobserve(this._menuRef.current)}}]),n}(Gt.Component);_m(aX,"contextType",eH);var sX=yH(aX,(function(e){var t=e.isNavCollapsed,n=e.shouldScroll,r=e.theme,o=e.colorThrowContext;return{root:{position:"relative",zIndex:bU.Nav,flex:"0 0 auto"},navWrapper:[{overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},n&&{":hover":{overflow:"unset"}}],navContainer:[{width:"calc(".concat(280,"px + var(--scrollbar-width))"),backgroundColor:tH(r.semanticColors.navBackground,"navBackground","Nav",{context:o,theme:r}),color:r.semanticColors.buttonText,transitionProperty:"width",transitionDuration:".2s",userSelect:"none",fontSize:GY,overflowY:"scroll",overflowX:"hidden",marginInlineEnd:"calc(var(--scrollbar-width) * -1)",height:"100%",maxHeight:"100%"},t&&{width:"calc(var(--scrollbar-width) + ".concat(48,"px)")}],navGroup:{margin:0,padding:0,listStyle:"none"},navGroupDivider:qY(r),subComponentStyles:{collapseNavButtonStyles:{root:{backgroundColor:tH(r.semanticColors.navBackground,"navBackground","Nav",{context:o,theme:r})}}}}}),void 0,{scope:"M365LeftNav"}),lX=function(e,t){return{position:"fixed",height:kX(t)&&e?"auto":"calc(100% - ".concat(48,"px)"),zIndex:Tn.twoUINavBar}},cX=function(e){return{root:{paddingRight:wX(e)?"".concat(48,"px"):"".concat(233,"px")}}},uX=function(e){return{root:{zIndex:Tn.twoUILeftNavBypassBlocksButton,fontWeight:600,backgroundColor:e.palette.neutralPrimary,borderColor:e.palette.neutralPrimary,left:"8px",top:"0",padding:"12px",position:"absolute",transform:"translateY(-200%)",verticalAlign:"center",display:"inline-block",whiteSpace:"nowrap",selectors:{":focus":{transform:"translateX(0%)",background:e.palette.neutralPrimary,borderColor:e.palette.neutralPrimary,selectors:{":hover":{transform:"translateX(0%)",background:e.palette.neutralSecondary,borderColor:e.palette.neutralSecondary},":active":{transform:"translateX(0%)",background:e.palette.neutralDark,borderColor:e.palette.neutralDark}}}}}}},dX=function(e){var t=e.text,n=e["aria-label"],r=e["data-bi-id"],o=e.targetId,i=dg();return jt().createElement(UE,{styles:uX(i),ariaLabel:n,"data-bi-id":r,onClick:function(){var e=document.getElementById(o);null===e||void 0===e||e.focus(),null===e||void 0===e||e.scrollIntoView()}},t)},pX=function(e){return{root:{margin:wX(e)?"12px 10px 12px 10px":"24px 10px 24px 10px",height:wX(e)?"28px":"48px"}}},hX=function(t,n,r){var o;void 0===r&&(r=!1);var i=((o={outline:r?"":"2px solid ".concat(n.palette.themePrimary)})[Iu]={outline:r?"":"2px solid highlight"},o);return{root:{width:wX(t)?"28px":"48px",borderRadius:"50%",":focus":i,":hover":i,":active":(0,e.__assign)((0,e.__assign)({},i),{outline:r?"":"2px solid ".concat(n.palette.themeDark)})}}},mX={root:{":hover":{textDecoration:"none"},":active":{textDecoration:"none"},":active:hover":{textDecoration:"none"}}},fX=function(e){return{root:{marginRight:e?void 0:"8px"}}},gX=function(t,n,r){var o,i;void 0===r&&(r=!1);var a=n?t.palette.neutralPrimary:t.palette.neutralSecondary,s=((o={color:r?a:t.palette.themePrimary})[Iu]={color:r?"buttontext":"highlight"},o);return{root:{width:"fit-content",":hover":{textDecoration:"none"},":active":{textDecoration:"none"},":active:hover":{textDecoration:"none"},"h1, h2, span":(i={color:a},i[Iu]={color:"buttontext"},i[":focus"]=s,i[":hover"]=s,i[":active"]=(0,e.__assign)((0,e.__assign)({},s),{color:r?a:t.palette.themeDark}),i)}}},vX=function(e){var t=e.size,n=e.personaInfo,r=e.primaryText,o=e.viewport,i=e.theme,a=e.disableInteraction,s=e.operationData;return jt().createElement(MP,{size:t,styles:hX(o,i,a),imageUrl:n.imageUrl,text:"initials"===n.fallback?r:void 0,operationData:s,hideText:!0})},yX=function(e){var t;return"heading"===e.kind?jt().createElement(tx,{stopPropagation:!1,type:"heading",tag:null!==(t=e.headingTag)&&void 0!==t?t:"h1",variant:"headerText"},e.text):jt().createElement(tx,{stopPropagation:!1,variant:"headerText"},e.text)},bX=function(e){var t=e.text;return jt().createElement(tx,{stopPropagation:!1,variant:"metadataText"},t)},CX=function(t){var n=t.isNavCollapsed,r=t.persona,o=t.primaryInfo,i=t.secondaryInfo,a=dg(),s=Un(),l="48";return wX(s)&&(l="28"),jt().createElement(Tg,{horizontal:!0,styles:pX(s),doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:fX(n),doNotRenderFalsyValues:!0},r.itemInteractiveProps?jt().createElement(Xy,{styles:mX,"aria-label":r.itemInteractiveProps["aria-label"],"data-bi-id":r.itemInteractiveProps["data-bi-id"],onClick:"withOnClick"===r.itemInteractiveProps.itemInteraction.interactionType?r.itemInteractiveProps.itemInteraction.onClick:void 0,href:"withHref"===r.itemInteractiveProps.itemInteraction.interactionType?r.itemInteractiveProps.itemInteraction.href:void 0,target:"withHref"===r.itemInteractiveProps.itemInteraction.interactionType?r.itemInteractiveProps.itemInteraction.target:void 0},jt().createElement(vX,{size:l,viewport:s,theme:a,personaInfo:r,primaryText:o.text,disableInteraction:!1,operationData:r.operationData})):jt().createElement(Tg,{styles:mX,doNotRenderFalsyValues:!0},jt().createElement(vX,{size:l,viewport:s,theme:a,personaInfo:r,primaryText:o.text,disableInteraction:!0,operationData:r.operationData}))),n?void 0:jt().createElement(Tg,{verticalAlign:"center",doNotRenderFalsyValues:!0},o.itemInteractiveProps?jt().createElement(Xy,{styles:gX(a,!0),"aria-label":o.itemInteractiveProps["aria-label"],"data-bi-id":o.itemInteractiveProps["data-bi-id"],onClick:"withOnClick"===o.itemInteractiveProps.itemInteraction.interactionType?o.itemInteractiveProps.itemInteraction.onClick:void 0,href:"withHref"===o.itemInteractiveProps.itemInteraction.interactionType?o.itemInteractiveProps.itemInteraction.href:void 0,target:"withHref"===o.itemInteractiveProps.itemInteraction.interactionType?o.itemInteractiveProps.itemInteraction.target:void 0},jt().createElement(yX,(0,e.__assign)({},o))):jt().createElement(Tg,{styles:gX(a,!0,!0),doNotRenderFalsyValues:!0},jt().createElement(yX,(0,e.__assign)({},o))),i.itemInteractiveProps?jt().createElement(Xy,{styles:gX(a,!1),"aria-label":i.itemInteractiveProps["aria-label"],"data-bi-id":i.itemInteractiveProps["data-bi-id"],onClick:"withOnClick"===i.itemInteractiveProps.itemInteraction.interactionType?i.itemInteractiveProps.itemInteraction.onClick:void 0,href:"withHref"===i.itemInteractiveProps.itemInteraction.interactionType?i.itemInteractiveProps.itemInteraction.href:void 0,target:"withHref"===i.itemInteractiveProps.itemInteraction.interactionType?i.itemInteractiveProps.itemInteraction.target:void 0},jt().createElement(bX,(0,e.__assign)({},i))):jt().createElement(Tg,{styles:gX(a,!1,!0),doNotRenderFalsyValues:!0},jt().createElement(bX,(0,e.__assign)({},i)))))},SX=function(e){var t=e.isNavCollapsed,n=Un(),r=48;return wX(n)&&(r=28),jt().createElement(Tg,{horizontal:!0,styles:pX(n),doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:fX(t),doNotRenderFalsyValues:!0},jt().createElement(jI,{height:r})),t?void 0:jt().createElement(Tg,{verticalAlign:"center",tokens:{childrenGap:16},doNotRenderFalsyValues:!0},jt().createElement(nw,{width:171,height:8}),IX(n)?jt().createElement(nw,{width:150,height:8}):null))},xX=function(e){return{calloutMain:{background:e.palette.neutralHigh},beakCurtain:{background:e.palette.neutralHigh},beak:{background:e.palette.neutralHigh}}},_X=function(e,t,n,r,o){var i,a,s,l,c,u=e.hasSelectedNestedLink&&!e.isExpanded||!e.hasSelectedNestedLink&&e.isSelected;return{iconContainer:{"::before":(i={opacity:u?1:0,backgroundColor:"#005FB8",width:"3px",height:"16px",left:"0px",top:void 0,borderRadius:"999px"},i[Iu]={backgroundColor:"highlighttext"},i),flex:e.isNested?"0 0 16px":void 0},icon:{color:u?t.palette.themeDarkAlt:t.palette.neutralSecondary,display:"flex",fontFamily:null!==o&&void 0!==o?o:void 0},root:(a={marginBottom:r?void 0:"6px",marginRight:n?void 0:"8px",borderRadius:"4px",minHeight:"40px",width:e.isNavCollapsed?void 0:e.isNested?"188px":"220px",boxShadow:u?pb.rest:void 0,backgroundColor:u?t.palette.neutralHigh:t.palette.white},a[Iu]={border:"1px solid windowtext",backgroundColor:u?"highlight":void 0,span:{color:u?"highlighttext":"buttontext",backgroundColor:u?"highlight":"canvas",padding:u?.5:void 0},i:{color:u?"highlighttext":"buttontext",backgroundColor:u?"highlight":"canvas",forcedColorAdjust:"preserve-parent-color"}},a[":focus"]={":focus::after":(s={borderRadius:"3px",boxShadow:"0 0 0 1px ".concat(t.palette.neutralSecondary),outline:"none",border:"none"},s[Iu]={outline:"2px solid buttontext",border:"1px solid buttontext"},s)},a[":hover"]=(l={backgroundColor:t.palette.neutralLighter},l[Iu]={backgroundColor:"highlight",span:{color:"highlighttext",backgroundColor:"highlight",padding:.5},i:{color:"highlighttext",backgroundColor:"highlight",forcedColorAdjust:"preserve-parent-color"}},l),a[":active"]=(c={backgroundColor:t.palette.neutralLight,span:{color:t.palette.neutralSecondary,padding:.5}},c[Iu]={span:{color:"highlighttext",backgroundColor:"highlight"},i:{color:"highlighttext",backgroundColor:"highlight"}},c),a)}},EX=function(e){var t=e.isSelected,n=e.text,r=e.onTruncated;return jt().createElement(tx,{weightOverride:t?"semi-bold":void 0,onTruncated:r},n)},kX=function(e){return"s"===e},wX=function(e){return["s","m"].includes(e)},IX=function(e){return"l"===e},PX=function(t){var n=t.bypassBlocksButton,r=t.expandCollapseNavButton,o=t.navHeader,i=t.navLinkGroups,a=t.selectedNavLink,s=dg(),l=Un(),c=(0,Gt.useRef)(l),u=(0,Gt.useState)(wX(l)),d=u[0],p=u[1];In((function(){zy(["Subscriptions","Apps"])})),(0,Gt.useEffect)((function(){IX(l)&&p(!1),IX(c.current)&&wX(l)&&p(!0),c.current=l}),[l]);var h=jt().useRef(null);(0,Gt.useEffect)((function(){if(!IX(l)&&!d){var e=function(e){e.target instanceof Node&&h.current&&!h.current.contains(e.target)&&p(!0)},t=function(e){e.target instanceof Node&&h.current&&!h.current.contains(e.target)&&p(!0)},n=function(e){var t=function(e){return e.code||e.keyCode}(e);(t===yp||"string"===typeof t&&"escape"===t.toLowerCase())&&p(!0)};return window.addEventListener("click",e),window.addEventListener("keydown",n),window.addEventListener("focusin",t),function(){window.removeEventListener("click",e),window.removeEventListener("keydown",n),window.removeEventListener("focusin",t)}}}),[l,d,h]);var m=(0,Gt.useState)([]),f=m[0],g=m[1],v=function(e,t){var n=f.find((function(n){return n.groupIndex===e&&n.subIndex===t}));return!!n&&n.isTruncated},y=[];i.forEach((function(t,n){var r={key:t.key,name:t.title,links:DX(t.navLinks,a,d,s,n,v,(function(t,n){!function(t,n){!1===v(t,n)&&g((0,e.__spreadArray)((0,e.__spreadArray)([],f,!0),[{groupIndex:t,subIndex:n,isTruncated:!0}],!1))}(t,n)})),styles:{navGroupTitle:{fontSize:s.fonts.small.fontSize}}};y.push(0!==n?r:(0,e.__assign)((0,e.__assign)({},r),{onRenderGroupTitle:function(e){return TX(o,e)}}))}));return jt().createElement(xm,{theme:(0,e.__assign)((0,e.__assign)({},tg),{components:(0,e.__assign)((0,e.__assign)({},tg.components),{NavLink:{styles:function(e,t){return _X(e,s,d,t===i.length-1,Ly)}}})})},jt().createElement(eH.Provider,{value:{onThrowOnUndefinedColor:function(e){return tg.semanticColors[e.desiredColorName]},disableThrowOnUndefinedColor:!0}},jt().createElement(Tg,{doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:cX(l),doNotRenderFalsyValues:!0}),jt().createElement("div",{ref:h,style:lX(d,l)},n?jt().createElement(dX,(0,e.__assign)({},n)):null,jt().createElement(sX,{styles:function(e){return function(e,t,n,r){var o=e.isNavCollapsed?48:233;return{root:{boxShadow:e.isNavCollapsed||IX(n)?void 0:pb.hover,height:"100%"},navContainer:{maxWidth:o+17,paddingRight:e.isNavCollapsed?"3px":void 0,transitionDuration:"0s"},navGroup:{display:e.isNavCollapsed&&kX(n)?"none":void 0},navWrapper:{paddingLeft:IX(n)?"10px":void 0,paddingTop:wX(n)?"4px":"24px"},subComponentStyles:{collapseNavButtonStyles:{root:{backgroundColor:t.palette.white,borderBottom:r?void 0:"1px solid ".concat(t.palette.neutralLighter),":hover":{backgroundColor:t.palette.neutralLighter},":active":{backgroundColor:t.palette.neutralLight,borderBottom:"1px solid ".concat(t.palette.neutralLight)}},icon:{color:t.palette.neutralPrimary,":hover":{color:t.palette.neutralDark},":active":{color:t.palette.neutralDark}}}}}}(e,s,l,r.removeNavButtonBorder||!1)},groups:y,hideCollapseLink:IX(l),collapseNavLinkProps:r,isNavCollapsed:d,onNavCollapsed:function(){p(!d)}})))))},TX=function(t,n){switch(t.headerType){case"profileHeader":return jt().createElement(CX,(0,e.__assign)({},t,{isNavCollapsed:!!(null===n||void 0===n?void 0:n.isNavCollapsed)}));case"profileHeaderShimmer":return jt().createElement(SX,(0,e.__assign)({},t,{isNavCollapsed:!!(null===n||void 0===n?void 0:n.isNavCollapsed)}))}},DX=function(t,n,r,o,i,a,s){return t.map((function(l,c){if("directlink"===l.linkType)return function(t,n,r,o,i,a,s,l){var c,u=n.mainKey===t.itemKey&&!n.subKey;return{key:t.itemKey,name:r?null:jt().createElement(EX,(0,e.__assign)({},t,{isSelected:u,onTruncated:s})),"aria-label":t["aria-label"],"data-bi-id":t["data-bi-id"],isSelected:u,onClick:"withOnClick"===t.linkInteraction.interactionType?t.linkInteraction.onClick:void 0,href:"withHref"===t.linkInteraction.interactionType?t.linkInteraction.href:void 0,target:"withHref"===t.linkInteraction.interactionType?t.linkInteraction.target:void 0,styles:function(e){return _X(e,o,r,i,a)},icon:t.icon,tooltipProps:{calloutProps:{styles:xX(o)},content:r||l?t.text:void 0},links:null===(c=t.subLinks)||void 0===c?void 0:c.map((function(e){return{name:e.text,key:e.itemKey,isSelected:n.mainKey===t.itemKey&&n.subKey===e.itemKey,onClick:"withOnClick"===e.linkInteraction.interactionType?e.linkInteraction.onClick:void 0,href:"withHref"===e.linkInteraction.interactionType?e.linkInteraction.href:void 0,target:"withHref"===e.linkInteraction.interactionType?e.linkInteraction.target:void 0,styles:{iconContainer:{"::before":{top:"auto"}}}}})),navLinkGroupStyles:{nestedNavLinks:{" > li":{display:"flex",justifyContent:"flex-end"}}}}}(l,n,r,o,c===t.length-1,Ly,(function(){s(i,c)}),a(i,c))}))},AX=function(e,t,n){return{root:{backgroundColor:e.palette.transparent,boxShadow:n?Qp.depth4:void 0,borderRadius:t,overflow:"hidden"}}},RX=function(e){return function(){return"xs"!==e&&"sm"!==e?"Do not support container size: ".concat(e):void 0}},NX=function(t){var n,r,o,i,a=t.containerSize,s=t.displayTitle,l=t.titleAriaLabel,c=void 0===l?"":l,u=t.productLinkData,d=t.displayImage,p=t.displayImageAlt,h=t.tooltipText,m=t.displayImageColor,f=t.children,g=(0,e.__rest)(t,["containerSize","displayTitle","titleAriaLabel","productLinkData","displayImage","displayImageAlt","tooltipText","displayImageColor","children"]),v=dg();switch((0,Gt.useEffect)((function(){Dg("SimpleOrderItem",[RX(a)])}),[a]),a){case"sm":n="semi-bold",r="subjectTitle",o="72px",i="72px";break;case"xs":r="bodyPrimaryText",o="56px",i="56px"}var y={"aria-label":c||s,href:(null===u||void 0===u?void 0:u.productLink)||"","data-bi-id":(null===u||void 0===u?void 0:u.dataBIId)||"",target:"_blank",disabled:!u},b=u?jt().createElement(nx,(0,e.__assign)({},y,{textVariant:r}),s):s,C="lowContrastTransparent"===m?v.palette.themeSecondary:v.palette.neutralMed;return jt().createElement(bb,{horizontal:!0,id:g.id,lang:g.lang},jt().createElement(Cb,{align:"start",shrink:0,margin:"0px 16px 0px 0px"},jt().createElement(Tg,{style:{backgroundColor:C},doNotRenderFalsyValues:!0},jt().createElement(Xy,(0,e.__assign)({tabIndex:-1},y),jt().createElement(zk,{src:d,alt:p,imageType:"altTextImage",width:i,height:o,borderRadius:"4px",imageFit:"contain"})))),jt().createElement(Cb,{shrink:!0,margin:h?"0px 7px 0px 0px":void 0},jt().createElement(bb,null,jt().createElement(Cb,{align:"start"},jt().createElement(Ib,{variant:r,weightOverride:n},b)),f?jt().createElement(Cb,{grow:!0},f):null)),h?jt().createElement(Cb,{shrink:!0,margin:"2px 0px 0px 0px"},jt().createElement(XS,{tooltipText:h,tooltipPosition:"right-bottom"},jt().createElement(Hy,{size:"12px",color:"themePrimary",iconName:"Info"}))):null)},MX=function(t){var n=t.priceDetails,r=t.localStatus,o=t.quantity,i=(t.isGiftOrder,t.orderAttributes),a=t.priceInfoToolTipText,s=(0,e.__rest)(t,["priceDetails","localStatus","quantity","isGiftOrder","orderAttributes","priceInfoToolTipText"]),l=hx();return jt().createElement(NX,(0,e.__assign)({},s),jt().createElement(bb,{childrenGap:"2px"},r?jt().createElement(Cb,{height:"20px"},jt().createElement(Ib,{variant:"bodySecondaryText"},r)):null,o?jt().createElement(bb,{height:"20px",horizontal:!0,childrenGap:"5px",verticalAlign:"center"},o?jt().createElement(Cb,{align:"center"},jt().createElement(Ib,{variant:"bodySecondaryText"},o)):null):null,jt().createElement(bb,{height:"20px",horizontal:!0,childrenGap:"5px",verticalAlign:"center",wrap:!0},n?jt().createElement(bb,{horizontal:!0},jt().createElement(Cb,{align:"center",height:"20px",margin:a?"0px 7px 0px 0px":void 0},jt().createElement(Ib,{variant:"bodySecondaryText"},n)),a?jt().createElement(Cb,{align:"center",shrink:!0,margin:"2px 0px 0px 0px"},jt().createElement(XS,{tooltipText:a,tooltipPosition:l?"left-bottom":"right-bottom"},jt().createElement(Hy,{size:"12px",color:"themePrimary",iconName:"Info"}))):null):null,null===i||void 0===i?void 0:i.filter((function(e){return e})).map((function(e,t){return jt().createElement(Cb,{align:"center",key:t},jt().createElement(Ib,{variant:"bodySecondaryText"},"| ",e))})))))},FX=function(t){var n=(0,e.__rest)(t,[]);switch(ll("OrderItem",n.id),Fy("OrderItem",n),n.orderItemType){case"SimpleOrderItem":return jt().createElement(NX,(0,e.__assign)({},n));case"DetailedOrderItem":return jt().createElement(MX,(0,e.__assign)({},n))}return null},BX={hollowGrayCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/3e329228-4c45-4f6e-99fc-dd9c3f3cec57.svg?n=hollow-gray-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},hollowBlueCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/a0867592-4a0f-49f5-b3a6-364516db9868.svg?n=hollow-blue-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},solidGrayCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/c1d8a1e2-3e0e-402f-8691-33aef4056296.svg?n=solid-gray-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},solidBlueCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/9435b62b-dfde-47f8-9c0d-02f0731d3fc2.svg?n=solid-blue-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},deliveryTruck:{src:"https://assets.account.microsoft.com/shared/compassassets/b4ec9d7e-6f4c-48fd-928f-df05b810dabe.svg?n=truck.svg",rtlSrc:"https://assets.account.microsoft.com/shared/compassassets/6314240b-3ae9-4d2e-bf2f-825af312d5dd.svg?n=truck-rtl.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 4px",topOffset:1},blueCheckMark:{src:"https://assets.account.microsoft.com/shared/compassassets/be21deff-0774-4d01-a697-2b8fd2b100ab.svg?n=blue-check-mark.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 5px",topOffset:0},grayErrorCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/c0272210-d100-4b54-be4c-7d9d05cb6d6e.svg?n=error-circle-gray.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 5.5px",topOffset:3},yellowErrorCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/56b95e93-a1c9-46d7-b496-ab6c4431631f.svg?n=error-circle-yellow.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 6px",topOffset:2}},OX=function(e){return{borderTop:"2px dashed ".concat(e.palette.neutralQuaternary),display:"block",width:"100%",margin:"11px 0px"}},LX=function(t){return(0,e.__assign)((0,e.__assign)({},OX(t)),{borderTop:"2px solid ".concat(t.palette.neutralQuaternary)})},HX=function(t){return(0,e.__assign)((0,e.__assign)({},OX(t)),{borderTop:"2px solid ".concat(t.palette.themePrimary)})},VX=function(t,n,r){void 0===r&&(r="dashed");var o,i=hx()?{borderRight:"2px ".concat(r," ").concat(n),margin:"0px 13px 0px 0px"}:{borderLeft:"2px ".concat(r," ").concat(n),margin:"0px 0px 0px 13px"};return t&&"dashed"===r&&(o=t-1.5),(0,e.__assign)((0,e.__assign)({},i),{display:"block",height:"100%",minHeight:o||(void 0!==t?t:"46px"),marginTop:o&&o>0?"1.5px":"0px"})},zX=function(e,t){return VX(t,"".concat(e.palette.neutralQuaternary),"solid")},UX=function(e,t){return VX(t,"".concat(e.palette.themePrimary),"solid")},WX=function(t){var n;return jt().createElement(bb,null,jt().createElement(Cb,null,"text"===t.statusLabel.kind?jt().createElement(Ib,(0,e.__assign)({},t.statusLabel)):jt().createElement(ox,(0,e.__assign)({},t.statusLabel))),null===(n=t.subStatusLabels)||void 0===n?void 0:n.map((function(t,n){return jt().createElement(Cb,{key:n},"text"===t.kind?jt().createElement(Ib,(0,e.__assign)({},t)):jt().createElement(ox,(0,e.__assign)({},t)))})))},GX=function(e){return hx()&&BX[e].rtlSrc?BX[e].rtlSrc:BX[e].src},jX=function(e,t,n){return function(){return e.length<2&&("horizontal"!==t||!n)?"StatusTracker cannot have less than ".concat(2," statuses"):void 0}},qX=function(e,t,n,r){return function(){return n>=e.length&&("horizontal"!==t||!r)?"StatusTracker cannot have its current step more than the total number of statuses":void 0}},KX=function(t){var n=t.lineStyle,r=void 0===n?"dashed":n,o=t.currentStep,i=void 0===o?0:o,a=t.labelBottom,s=void 0!==a&&a,l=t.statuses,c=void 0===l?[]:l,u=dg(),d=c[i];return jt().createElement(bb,null,s?null:jt().createElement(Cb,null,WX(d.labels)),jt().createElement(Cb,{padding:"0px 0px 12px 0px"},jt().createElement("ol",{style:{display:"flex"},"aria-label":d.ariaLabel,tabIndex:-1},c.map((function(t,n){return n!==c.length-1?jt().createElement(jt().Fragment,{key:n},jt().createElement("li",{"aria-hidden":!0,style:{margin:BX[t.imageName].horizontalMargin,display:"inline-block",verticalAlign:"top"},key:"image-".concat(n)},jt().createElement(zk,{src:GX(t.imageName),imageType:"ariaHiddenImage",imageFit:"none"})),jt().createElement("li",{"aria-hidden":!0,style:(0,e.__assign)((0,e.__assign)({},(o=c.length,{width:"calc(100% / ".concat(o-1,")"),minWidth:"46px"})),{display:"inline-block",verticalAlign:"top"}),key:"line-".concat(n)},n<i?jt().createElement("span",{className:"line",style:HX(u)}):null,n>=i&&"dashed"===r?jt().createElement("span",{className:"line",style:OX(u)}):null,n>=i&&"solid"===r?jt().createElement("span",{className:"line",style:LX(u)}):null)):jt().createElement("li",{"aria-hidden":!0,style:{margin:BX[t.imageName].horizontalMargin,display:"inline-block",verticalAlign:"top"},key:"image-".concat(n)},jt().createElement(zk,{src:GX(t.imageName),imageType:"ariaHiddenImage",imageFit:"none"}));var o})))),s?jt().createElement(Cb,null,WX(d.labels)):null)},YX=function(t){var n=t.lineStyle,r=void 0===n?"dashed":n,o=t.currentStep,i=void 0===o?0:o,a=t.infoMessage,s=t.statuses,l=void 0===s?[]:s,c=dg(),u={},d=function(e){return jt().createElement(Ig,{style:{margin:BX[e.imageName].verticalMargin}},jt().createElement(zk,{src:GX(e.imageName),imageType:"ariaHiddenImage",imageFit:"none"}))},p=function(e,t,n){return void 0===t&&(t=!1),jt().createElement(Ig,{verticalFill:t},function(e,t,n,r,o){return t<n?jt().createElement("span",{className:"line",style:UX(e,o)}):"dashed"===r?jt().createElement("span",{className:"line",style:VX(o,e.palette.neutralQuaternary,r)}):jt().createElement("span",{className:"line",style:zX(e,o)})}(c,e,i,r,n))};return jt().createElement(Tg,{doNotRenderFalsyValues:!0},jt().createElement(Ig,{style:{margin:"0px 0px 0px 5px"}},a?jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},jt().createElement(Ig,{style:{margin:"0px 5px 0px 2px"}},a.icon?jt().createElement(Tg,{doNotRenderFalsyValues:!0},jt().createElement(Hy,(0,e.__assign)({},a.icon))):null),jt().createElement(Ig,{style:{padding:"0px 8px 20px"}},"text"===a.message.kind?jt().createElement(Ib,(0,e.__assign)({},a.message)):jt().createElement(ox,(0,e.__assign)({},a.message)))):null),jt().createElement(Ig,null,jt().createElement("ol",null,l.map((function(t,n){return u=t.ariaLabel?{role:"img","aria-label":t.ariaLabel}:{},0===n?jt().createElement("li",{style:{display:"block"},key:n},jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},jt().createElement(Ig,(0,e.__assign)({},u,{style:{margin:"".concat(BX[t.imageName].topOffset,"px 0px 0px 0px")}}),jt().createElement(Tg,{style:{height:"100%"},doNotRenderFalsyValues:!0},d(t),p(n,!0))),jt().createElement(Ig,{style:{padding:"0px 8px 20px"}},WX(t.labels)))):n!==l.length-1?jt().createElement("li",{"aria-hidden":n>i,style:{display:"block"},key:n},jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},jt().createElement(Ig,(0,e.__assign)({},u),jt().createElement(Tg,{style:{height:"100%"},doNotRenderFalsyValues:!0},p(n-1,!1,BX[t.imageName].topOffset),d(t),p(n,!0))),jt().createElement(Ig,{style:{padding:"0px 8px 20px"}},WX(t.labels)))):jt().createElement("li",{"aria-hidden":n>i,style:{display:"block"},key:n},jt().createElement(Tg,{horizontal:!0,doNotRenderFalsyValues:!0},jt().createElement(Ig,(0,e.__assign)({},u),jt().createElement(Tg,{doNotRenderFalsyValues:!0},p(n-1,!1,BX[t.imageName].topOffset),d(t))),jt().createElement(Ig,{style:{padding:"0px 8px"}},WX(t.labels))))})))))},XX=function(e){var t=e.variant,n=e.lineStyle,r=void 0===n?"dashed":n,o=e.currentStep,i=void 0===o?0:o,a=e.nonStepLabels,s=e.labelBottom,l=void 0!==s&&s,c=e.infoMessage,u=e.statuses,d=void 0===u?[]:u;return ll("StatusTrackerV2"),(0,Gt.useEffect)((function(){var e=[jX(d,t,a),qX(d,t,i,a)];Dg("StatusTrackerV2",e)}),[d,t,a,i]),"horizontal"===t?a?jt().createElement(bb,null,WX(a)):jt().createElement(KX,{lineStyle:r,currentStep:i,labelBottom:l,statuses:d}):jt().createElement(YX,{lineStyle:r,currentStep:i,infoMessage:c,statuses:d})};var QX={s:2,m:3,l:4,xl:5},ZX={s:2,m:2,l:3,xl:5},JX=function(e){return function(){return e.length<1?"MediaGroup cannot have less than ".concat(1," items"):void 0}},$X=function(e){return function(){return e.length>10?"MediaGroup cannot have more than ".concat(10," items"):void 0}},eQ=function(e,t,n){var r="minimalNoShadow"===n,o="24px";return t?o="16px 0px 24px 0px":r&&(o="0"),{root:{outline:"1px solid transparent",backgroundColor:n.includes("minimal")?e.palette.transparent:e.palette.neutralHigh,borderRadius:t?"0px":"8px",boxShadow:r?Qp.depth0:Qp.depth4,overflow:"hidden",transitionDuration:db,cursor:"auto",padding:o}}},tQ=function(e,t,n){var r,o,i,a,s,l;return{root:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:t?"auto":"152px",maxWidth:200,width:t?"auto":"100%",border:t?"none":"1px solid transparent",margin:t?"8px 0px 0px 0px":void 0,borderRadius:"8px",selectors:(r={":focus":(o={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed},o[Iu]={border:"1px solid Highlight",span:{color:"Highlight"}},o),":hover":(i={textDecoration:"none",borderBottom:t?"none":void 0,backgroundColor:n?e.palette.transparent:e.palette.neutralMed,boxShadow:n?void 0:"".concat(pb.hover)},i[Iu]={span:{color:"Highlight"}},i),":hover:focus":(a={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed,boxShadow:"".concat(pb.hover)},a[Iu]={border:"1px solid Highlight",span:{color:"Highlight"}},a),":active:focus":(s={textDecoration:"none",border:"1px solid transparent",boxShadow:"".concat(pb.rest),backgroundColor:e.palette.neutralLighterAlt},s[Iu]={border:"1px solid Highlight",span:{color:"Highlight",outline:"1px solid Highlight"}},s),".ms-Fabric--isFocusVisible &:focus":(l={boxShadow:"none",outline:"none"},l[Iu]={boxShadow:"none",outline:"none"},l)},r[Iu]={border:"1px solid Window"},r)}}},nQ=function(t){var n=t.mediaImage,r=t.mediaText,o=t.ctaUrl,i=t.onClickProps,a=t.mediaVariant,s=void 0===a?"default":a,l=t["data-bi-id"],c=t["aria-label"],u=t.target,d=void 0===u?"_blank":u,p=(0,e.__rest)(t,["mediaImage","mediaText","ctaUrl","onClickProps","mediaVariant","data-bi-id","aria-label","target"]);Fy("MediaGroupProduct",p);var h=dg(),m=ny(),f="icon"===n.imageType?"xxl":"lg",g="imageCard"===n.imageType,v=["minimalShadow","minimalNoShadow"].includes(s);return v?jt().createElement(Tg,{styles:tQ(h,!0,v)},jt().createElement(jk,{size:"image"===n.imageType?"xxxl":"xl",borderRadius:"4px",image:n,horizontal:!1,padding:"image"===n.imageType?"0":"8px"})):jt().createElement(Xy,(0,e.__assign)({href:o,onClick:null===i||void 0===i?void 0:i.onClick,styles:tQ(h,g,v),"data-bi-id":l,"aria-label":c,target:d},p),jt().createElement(jk,{size:g?function(){switch(m){case"l":return"lg";case"m":return"md";case"s":return"sm";default:return f}}():f,borderRadius:g?"8px":void 0,image:n,horizontal:!1},r?jt().createElement(Ib,null,r):null))},rQ=function(t){var n=t.products,r=t.padding,o=void 0===r?"16px":r,i=t.variant,a=void 0===i?"default":i,s=(0,e.__rest)(t,["products","padding","variant"]);ll("MediaGroup",s.id),(0,Gt.useEffect)((function(){var e=[JX(n),$X(n)];Dg("MediaGroup",e)}),[n]),Fy("MediaGroup",s);var l=n.some((function(e){return"imageCard"===e.mediaImage.imageType})),c=["minimalShadow","minimalNoShadow"].includes(a),u=ny(),d=dg(),p=function(e,t,n){return["xxl","xxxl"].includes(e)?t:n?ZX[e]:QX[e]}(u,n.length,l),h=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}(n,p);return jt().createElement(Tg,(0,e.__assign)({styles:eQ(d,l,a),tokens:{childrenGap:24},verticalAlign:"center",horizontalAlign:l||c?"center":void 0},s,{doNotRenderFalsyValues:!0}),jt().createElement(UT,null,h.map((function(t,n){return l||c?jt().createElement(Tg,{tokens:{childrenGap:o},horizontal:!0,key:n,doNotRenderFalsyValues:!0},t.map((function(t,n){return jt().createElement(Ig,{key:n},jt().createElement(Tg,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"start"}},doNotRenderFalsyValues:!0},jt().createElement(nQ,(0,e.__assign)({mediaVariant:a},t))))}))):jt().createElement(vb,{key:n,totalSlots:p},t.map((function(t,n){return jt().createElement(gb,{key:n,slots:1},jt().createElement(Tg,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"center"}},doNotRenderFalsyValues:!0},jt().createElement(nQ,(0,e.__assign)({},t))))})))}))))};function oQ(e,t){void 0===t&&(t=null);var n=Gt.useRef({ref:function(){var e=function(e){n.ref.current!==e&&(n.cleanup&&(n.cleanup(),n.cleanup=void 0),n.ref.current=e,null!==e&&(n.cleanup=n.callback(e)))};return e.current=t,e}(),callback:e}).current;return n.callback=e,n.ref}var iQ=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=Gt.useRef(),i=Gt.useRef(),a=oQ((function(e){var t=function(e,t){if("undefined"!==typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach((function(e){return n.observe(e)})):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=ic(Array.isArray(e)?e[0]:e);if(!o)return function(){};var i=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(i),o.removeEventListener("resize",r,!1)}}(e,(function(t){i.current=t?t[0].contentRect.width:e.clientWidth,o.current&&o.current()}));return function(){t(),i.current=void 0}})),s=oQ((function(e){return a(e.parentElement),function(){return a(null)}}));return NS((function(){var e=a.current,l=s.current;if(e&&l){for(var c=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==l&&c.push(d)}var p=[],h=0;o.current=function(){var e=i.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===p[t]){var o=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===r&&(h=p[t+1]-o),t===c.length-2&&(h+=l.offsetWidth),p[t]=o+h}if(e>p[t])return void f(t+1)}f(0)}};var m=c.length,f=function(e){m!==e&&(m=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},g=void 0;if(void 0!==i.current){var v=ic(e);if(v){var y=v.requestAnimationFrame(o.current);g=function(){return v.cancelAnimationFrame(y)}}}return function(){g&&g(),f(c.length),o.current=void 0}}})),{menuButtonRef:s}},aQ=function(t){function n(e){var n=t.call(this,e)||this;return Mb(n),n}return(0,e.__extends)(n,t),n.prototype.render=function(){return Gt.createElement("div",(0,e.__assign)({},Qh(this.props,Xh)),this.props.children)},n}(Gt.Component),sQ=zg(),lQ=function(t,n){var r={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return Gt.Children.forEach(Gt.Children.toArray(t.children),(function(o,i){if(cQ(o)){var a=o.props,s=a.linkText,l=(0,e.__rest)(a,["linkText"]),c=o.props.itemKey||i.toString();r.links.push((0,e.__assign)((0,e.__assign)({headerText:s},l),{itemKey:c})),r.keyToIndexMapping[c]=i,r.keyToTabIdMapping[c]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)}(t,n,c,i)}else o&&Rd("The children of a Pivot component must be of type PivotItem to be rendered.")})),r},cQ=function(e){var t;return Gt.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===aQ.name},uQ=Gt.forwardRef((function(t,n){var r,o=Gt.useRef(null),i=Gt.useRef(null),a=eE("Pivot"),s=ow(t.selectedKey,t.defaultSelectedKey),l=s[0],c=s[1],u=t.componentRef,d=t.theme,p=t.linkSize,h=t.linkFormat,m=t.overflowBehavior,f=t.overflowAriaLabel,g=t.focusZoneProps,v=t.overflowButtonAs,y={"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"]},b=Qh(t,Xh,["aria-label","aria-labelledby"]),C=lQ(t,a);Gt.useImperativeHandle(u,(function(){return{focus:function(){var e;null===(e=o.current)||void 0===e||e.focus()}}}));var S=function(e){if(!e)return null;var t=e.itemCount,n=e.itemIcon,o=e.headerText;return Gt.createElement("span",{className:r.linkContent},void 0!==n&&Gt.createElement("span",{className:r.icon},Gt.createElement(Xx,{iconName:n})),void 0!==o&&Gt.createElement("span",{className:r.text}," ",e.headerText),void 0!==t&&Gt.createElement("span",{className:r.count}," (",t,")"))},x=function(t,n,o,i){var a,s=n.itemKey,l=n.headerButtonProps,c=n.onRenderItemLink,u=t.keyToTabIdMapping[s],d=o===s;a=c?c(n,S):S(n);var p=n.headerText||"";p+=n.itemCount?" ("+n.itemCount+")":"",p+=n.itemIcon?" xx":"";var h=n.role&&"tab"!==n.role?{role:n.role}:{role:"tab","aria-selected":d};return Gt.createElement(PM,(0,e.__assign)({},l,h,{id:u,key:s,className:Gp(i,d&&r.linkIsSelected),onClick:function(e){return _(s,e)},onKeyDown:function(e){return E(s,e)},"aria-label":n.ariaLabel,name:n.headerText,keytipProps:n.keytipProps,"data-content":p}),a)},_=function(e,t){t.preventDefault(),k(e,t)},E=function(e,t){t.which===gp&&(t.preventDefault(),k(e))},k=function(e,n){var r;if(c(e),C=lQ(t,a),t.onLinkClick&&C.keyToIndexMapping[e]>=0){var o=C.keyToIndexMapping[e],s=Gt.Children.toArray(t.children)[o];cQ(s)&&t.onLinkClick(s,n)}null===(r=i.current)||void 0===r||r.dismissMenu()};r=sQ(t.styles,{theme:d,linkSize:p,linkFormat:h});var w=function(){return null===(e=l)||void 0!==e&&void 0!==C.keyToIndexMapping[e]?l:C.links.length?C.links[0].itemKey:void 0;var e}(),I=w?C.keyToIndexMapping[w]:0,P=C.links.map((function(e){return x(C,e,w,r.link)})),T=Gt.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:kv}}),[]),D=iQ({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)})),T.items=C.links.slice(e).filter((function(e){return e.itemKey!==w})).map((function(t,n){return t.role="menuitem",{key:t.itemKey||"".concat(e+n),onRender:function(){return x(C,t,w,r.linkInMenu)}}}))},rtl:Dp(d),pinnedIndex:I}).menuButtonRef,A=v||PM;return Gt.createElement("div",(0,e.__assign)({ref:n},b),Gt.createElement(g_,(0,e.__assign)({componentRef:o,role:"tablist"},y,{direction:e_.horizontal},g,{className:Gp(r.root,null===g||void 0===g?void 0:g.className)}),P,"menu"===m&&Gt.createElement(A,{className:Gp(r.link,r.overflowMenuButton),elementRef:D,componentRef:i,menuProps:T,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:f,role:"tab"})),w&&C.links.map((function(e){return(!0===e.alwaysRender||w===e.itemKey)&&function(e,n){if(t.headersOnly||!e)return null;var o=C.keyToIndexMapping[e],i=C.keyToTabIdMapping[e];return Gt.createElement("div",{role:"tabpanel",hidden:!n,key:e,"aria-hidden":!n,"aria-labelledby":i,className:r.itemContainer},Gt.Children.toArray(t.children)[o])}(e.itemKey,w===e.itemKey)})))}));uQ.displayName="Pivot";var dQ,pQ={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},hQ=function(t,n,r){var o,i,a;void 0===r&&(r=!1);var s=t.linkSize,l=t.linkFormat,c=t.theme,u=c.semanticColors,d=c.fonts,p="large"===s,h="tabs"===l;return[d.medium,{color:u.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:u.buttonBackgroundHovered,color:u.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:u.buttonBackgroundPressed,color:u.buttonTextHovered},":focus":{outline:"none"}}},!r&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:(o={},o[".".concat(Nu," &:focus")]={outline:"1px solid ".concat(u.focusBorder)},o[".".concat(Nu," &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},o[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(lu," ").concat(au,",\n                        right ").concat(lu," ").concat(au)},o[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Cu.bold,height:1,overflow:"hidden",visibility:"hidden"},o)},p&&{fontSize:d.large.fontSize},h&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:u.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(i={":focus":{outlineOffset:"-2px"}},i[".".concat(Nu," &:focus::before")]={height:"auto",background:"transparent",transition:"none"},i["&:hover, &:focus"]={color:u.buttonTextCheckedHovered},i["&:active, &:hover"]={color:u.primaryButtonText,backgroundColor:u.primaryButtonBackground},i["&.".concat(n.linkIsSelected)]={backgroundColor:u.primaryButtonBackground,color:u.primaryButtonText,fontWeight:Cu.regular,selectors:(a={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:u.primaryButtonBackgroundHovered,color:u.primaryButtonText},":active":{backgroundColor:u.primaryButtonBackgroundPressed,color:u.primaryButtonText}},a[Iu]=(0,e.__assign)({fontWeight:Cu.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},i[".".concat(Nu," &.").concat(n.linkIsSelected,":focus")]={outlineColor:u.primaryButtonText},i)}]]]},mQ=Ng(uQ,(function(t){var n,r,o,i,a=t.className,s=t.linkSize,l=t.linkFormat,c=t.theme,u=c.semanticColors,d=c.fonts,p=Ju(pQ,c),h="large"===s,m="tabs"===l;return{root:[p.root,d.medium,Td,{position:"relative",color:u.link,whiteSpace:"nowrap"},h&&p.rootIsLarge,m&&p.rootIsTabs,a],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:(0,e.__spreadArray)((0,e.__spreadArray)([p.link],hQ(t,p),!0),[(n={},n["&[data-is-overflowing='true']"]={display:"none"},n)],!1),overflowMenuButton:[p.overflowMenuButton,(r={visibility:"hidden",position:"absolute",right:0},r[".".concat(p.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},r)],linkInMenu:(0,e.__spreadArray)((0,e.__spreadArray)([p.linkInMenu],hQ(t,p,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[p.link,p.linkIsSelected,{fontWeight:Cu.semibold,selectors:(o={":before":{backgroundColor:u.inputBackgroundChecked,selectors:(i={},i[Iu]={backgroundColor:"Highlight"},i)},":hover::before":{left:0,right:0}},o[Iu]={color:"Highlight"},o)}],linkContent:[p.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[p.text,{display:"inline-block",verticalAlign:"top"}],count:[p.count,{display:"inline-block",verticalAlign:"top"}],icon:p.icon}}),void 0,{scope:"Pivot"}),fQ={display:"inline-flex",verticalAlign:"bottom"},gQ={display:"inline-flex"},vQ=function(e){return function(){return jt().isValidElement(e)&&e.type===CQ?void 0:"Tabs only accepts children of type TabItem"}},yQ="data-bi-props",bQ=function(t){var n=t.selectedKey,r=t.children,o=t.onChange,i=t.variant,a=void 0===i?"default":i,s=t.separator,l=void 0!==s&&s,c=(0,e.__rest)(t,["selectedKey","children","onChange","variant","separator"]);ll("Tabs",c.id),Fy("Tabs",c);var u=qo(),d=dg(),p=jt().Children.map(r,(function(e){if(e)return Dg("Tabs",[vQ(e)]),CQ(e.props,e.props.itemKey===n)})),h=function(t,n,r){var o=n?{borderBottomWidth:"1px",borderBottomStyle:"solid",borderColor:t.palette.neutralLight}:void 0;return{root:"centeredWithBackground"===r?(0,e.__assign)((0,e.__assign)({},o),{zIndex:Tn.twoUITab,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",background:t.palette.neutralHigh,textAlign:"center",paddingTop:"16px"}):(0,e.__assign)((0,e.__assign)({},o),{zIndex:Tn.twoUITab})}}(d,l,a);return jt().createElement(mQ,(0,e.__assign)({selectedKey:n,onLinkClick:function(e,t){var n,r=null===(n=null===e||void 0===e?void 0:e.props)||void 0===n?void 0:n.headerButtonProps[yQ];o&&o(r,t),r.url&&u.push(r.url)},styles:h,overflowBehavior:"menu",theme:d},c),p)},CQ=function(t,n){var r,o=t.text,i=t.icon,a=t.textColorVariant,s=void 0===a?"default":a,l=t.staticWidth,c=t["aria-label"],u=t.itemKey,d=t.children,p=(0,e.__rest)(t,["text","icon","textColorVariant","staticWidth","aria-label","itemKey","children"]);Fy("TabItem",p);var h=dg(),m=i||"default"!==s||l;return jt().createElement(aQ,{headerText:o,ariaLabel:c,itemKey:u,headerButtonProps:(0,e.__assign)((0,e.__assign)({},p),(r={},r[yQ]=t,r)),onRenderItemLink:m?function(t,r){if(!t||!r)return null;var o={display:"block",width:l||"auto"};if(n&&"primary"===s)o=(0,e.__assign)((0,e.__assign)({},o),{color:h.palette.themePrimary});return jt().createElement(Tg,{horizontal:!0,tokens:{childrenGap:8},style:(0,e.__assign)({},o),doNotRenderFalsyValues:!0},i?jt().createElement("div",{style:fQ},jt().createElement(Hy,{iconName:i})," "):void 0,jt().createElement("div",{style:gQ},r((0,e.__assign)({},t))))}:void 0},d)},SQ=[UO,qO,WO,VO,_R,wM,$R,function(t){var n,r=t.drawerHeaderTitleText,o=t.bundleItems,i=t.overflowLabel,a=(0,e.__rest)(t,["drawerHeaderTitleText","bundleItems","overflowLabel"]);ll("BundleItem",a.id);var s=o.map((function(e){return e.displayImage})),l=(0,Gt.useState)(null!==(n=a.defaultExpanded)&&void 0!==n&&n),c=l[0],u=l[1],d=[{column:jt().createElement(Zk,{hideHeaderMedia:c,mediaImageList:s,mediaLabel:r,overflowLabel:i}),slots:12}],p=jt().createElement(bw,{totalSlots:12,columns:d,showAltBackgroundColor:!0,chevronPosition:"end"});return jt().createElement(bb,{width:"100%",backgroundColor:"neutralMed"},jt().createElement(_R,(0,e.__assign)({drawerContentPadding:"0px 10px",drawerHeader:p,borderRadius:"0px"},a,{onClickToClose:function(e){var t;null===(t=null===a||void 0===a?void 0:a.onClickToClose)||void 0===t||t.call(a,e),u(!1)},onClickToOpen:function(e){var t;null===(t=null===a||void 0===a?void 0:a.onClickToOpen)||void 0===t||t.call(a,e),u(!0)}}),o?jt().createElement(bb,null,o.map((function(t,n){return jt().createElement(Cb,{padding:"12px 0px",key:n},jt().createElement(FX,(0,e.__assign)({containerSize:"xs",orderItemType:"DetailedOrderItem"},t)))}))):null))},function(t){var n,r=t.drawerHeaderTitleText,o=t.detailedBundleItems,i=t.overflowLabel,a=(0,e.__rest)(t,["drawerHeaderTitleText","detailedBundleItems","overflowLabel"]),s=ny(),l=["s","m"].includes(s),c=o.map((function(e){return e.orderItemProps.displayImage})),u=(0,Gt.useState)(null!==(n=a.defaultExpanded)&&void 0!==n&&n),d=u[0],p=u[1],h=[{column:jt().createElement(Zk,{hideHeaderMedia:d,mediaImageList:c,mediaLabel:r,overflowLabel:i}),slots:12}],m=jt().createElement(bw,{totalSlots:12,columns:h,showAltBackgroundColor:!0,chevronPosition:"end"});if(0===o.length)return jt().createElement(jt().Fragment,null);return jt().createElement(_R,(0,e.__assign)({drawerHeader:m,borderRadius:"0px",onClickToOpen:function(){p(!0)},onClickToClose:function(){p(!1)}},a),jt().createElement(bb,{backgroundColor:"transparent"},function(t,n,r){return t.map((function(t,o){return jt().createElement(bb,{key:o,margin:n(o),backgroundColor:"transparent"},jt().createElement(WO,{backgroundColor:"neutralMed",firstSegment:jt().createElement(FX,(0,e.__assign)({},t.orderItemProps)),secondSegment:t.statusTrackerProps?jt().createElement(XX,(0,e.__assign)({},t.statusTrackerProps)):null,thirdSegment:r(t),variant:"SixThreeThree"}))}))}(o,(function(e){return 0===e?"1px 0px":e===o.length-1?"0px":"0px 0px 1px 0px"}),(function(t){var n=jt().createElement(bb,{horizontalAlign:l?"start":"end",padding:l?"10px 0px 0px 0px":"0px"},jt().createElement(bb,{width:l?"auto":"205px",childrenGap:"8px",horizontal:l},t.callToActionButtonPropsArray&&(null===t||void 0===t?void 0:t.callToActionButtonPropsArray.map((function(t,n){return jt().createElement(dk,(0,e.__assign)({key:n},t))}))))),r=jt().createElement(bb,{horizontalAlign:l?"start":"end",padding:l?"10px 0px 0px 0px":"0px"},n,t.showSpinner?jt().createElement(bb,{margin:"20px 77px",horizontalAlign:"center"},jt().createElement(uw,{"aria-label":"",label:void 0,labelPosition:"left",spinnerSize:2})):null);return jt().createElement(jt().Fragment,null,r)}))))},nw,LT,function(e){for(var t=e.height,n=e.maxShimmerWidth,r=void 0===n?150:n,o=e.textAlignment,i=void 0===o?"left":o,a=e.showLabelShimmer,s=e.numberOfShimmerButtons,l=void 0===s?4:s,c=e.isSingleColumn,u="center"===i?"center":"right"===i?"end":void 0,d=.4*r,p=.9*r,h=ny(),m=dg(),f=ry(h),g=function(e){return jt().createElement(Tg,{key:e,styles:wT(m,f,!1,!1,c),doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:MT(m,f,t,i,!1,!1),doNotRenderFalsyValues:!0},jt().createElement(Tg,{styles:{root:{width:"100%",overflow:"hidden"}},tokens:{childrenGap:10},horizontalAlign:u,doNotRenderFalsyValues:!0},jt().createElement(bb,{padding:xT},jt().createElement(nw,{width:d,height:14})),jt().createElement(nw,{width:r,height:8}),jt().createElement(nw,{width:p,height:8}))))},v=[],y=0;y<l;y++)v.push(g(y));return jt().createElement(bb,{childrenGap:4},a?jt().createElement(nw,{width:160,height:12}):null,jt().createElement(Tg,{styles:{root:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"}},doNotRenderFalsyValues:!0},v))},GF,rQ,bQ],xQ=[JE],_Q=function(t){var n=t.headerProps,r=t.headerActionElement,o=t.features,i=t.borderRadius,a=void 0===i?"8px":i,s=t.hasBoxShadow,l=void 0===s||s,c=t.role,u=t.headerId;ll("MediaContainer"),(0,Gt.useEffect)((function(){if(o)for(var e=0;e<o.length;e++)hv(o[e].featureNode,SQ,"MediaContainer")}),[o]);var d=dg(),p=ny(),h=ry(p),m="10px 16px 3px 16px";r&&(hv(r,xQ,"MediaContainer"),m="3px 16px 3px 16px");return jt().createElement(Tg,{styles:AX(d,a,l),role:c,"aria-labelledby":u,doNotRenderFalsyValues:!0},n?jt().createElement(bb,{padding:m,backgroundColor:"neutralHigh",horizontal:!h,verticalAlign:"center",horizontalAlign:"space-between"},jt().createElement(ox,(0,e.__assign)({},n)),h?jt().createElement(Tg,{styles:{root:{marginLeft:"-8px",display:"block"}},doNotRenderFalsyValues:!0},r):r):null,o&&o.map((function(e,t){return jt().createElement(bb,{padding:e.padding,margin:e.margin,backgroundColor:e.backgroundColor,key:t},e.featureNode)})))},EQ=jt().createContext(void 0),kQ=function(e,t){switch(t.type){case"closeNotificationBar":return e.filter((function(e){return e.id!==t.id}));case"openNotificationBar":return 0===e.length?[{id:t.id,notificationBar:t.notificationBar}]:[{id:t.id,notificationBar:t.notificationBar},e[0]];default:return e}},wQ=function(e){var t=e.children,n=(0,Gt.useReducer)(kQ,[]),r=n[0],o=n[1],i=r.map((function(e){return jt().createElement(TQ,{id:e.id,key:e.id},e.notificationBar)}));return jt().createElement(EQ.Provider,{value:{showNotificationBar:function(e){var t=Sn();o({type:"openNotificationBar",notificationBar:e,id:t})},removeNotificationBar:function(e){o({type:"closeNotificationBar",id:e})}}},t,jt().createElement(NQ,null,i))},IQ=function(){return(0,Gt.useContext)(EQ)},PQ=jt().createContext(""),TQ=function(e){var t=e.children,n=e.id;return jt().createElement(PQ.Provider,{value:n},t)},DQ=function(){return{pointerEvents:"none",position:"fixed",width:"100%",bottom:0,left:0,zIndex:Tn.twoUINotificationBar,padding:"0 0 10px 0"}},AQ=function(e,t,n,r){var o,i="neutralHigh";"error"===t?i="severeWarning":n&&(i="themeLighterAlt");var a=By(e,i),s="400px",l="800px";return"s"===r?(s="min(400px, calc(100vw - 32px))",l="calc(100vw - 32px)"):"m"===r?l="calc(100vw - 64px)":"l"===r&&(l="min(800px, calc(100vw - 96px))"),{root:(o={minHeight:48,maxHeight:92,minWidth:s,maxWidth:l,padding:"0 16px 0 16px",boxShadow:pb.controls,backgroundColor:a,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",pointerEvents:"auto"},o[Iu]={outline:"1px solid highlight"},o)}},RQ=(0,Gt.forwardRef)((function(t,n){var r=t.iconName,o=t.message,i=t.ariaMessage,a=t.notificationAction,s=t.closeButton,l=t.showTime,c=void 0===l?1e4:l,u=t.notificationBarType,d=void 0===u?"info":u,p=t.isThemeStyle,h=void 0!==p&&p,m=(0,Gt.useContext)(PQ);ll("NotificationBar");var f=IQ(),g=eE(),v=dg(),y=ny(),b=(0,Gt.useRef)(null),C=null===n,S=(0,Gt.useState)((function(){return C?"visible":"hidden"})),x=S[0],_=S[1],E=(0,Gt.useRef)(0);wn((function(){return clearTimeout(b.current)})),(0,Gt.useEffect)((function(){C&&I()}),[]);var k=function(){clearTimeout(b.current)},w=function(){if("visible"===x){var e=c-(Date.now()-E.current);b.current=setTimeout((function(){T()}),Math.max(e,1e3))}},I=function(){clearTimeout(b.current),E.current=Date.now(),b.current=setTimeout((function(){T()}),c),_("visible")},P=function e(){var t=document.getElementById(g);null===t||void 0===t||t.removeEventListener("webkitAnimationEnd",e),null===t||void 0===t||t.removeEventListener("animationend",e),_((function(e){return"slideOut"===e?"hidden":e})),null===f||void 0===f||f.removeNotificationBar(m)},T=function(){clearTimeout(b.current);var e=document.getElementById(g);null===e||void 0===e||e.addEventListener("webkitAnimationEnd",P),null===e||void 0===e||e.addEventListener("animationend",P),_("slideOut")};(0,Gt.useImperativeHandle)(n,(function(){return{showNotificationBar:I,hideNotificationBar:T}}));var D="error"===d?"errorIcon":"successIcon",A="error"===d?"errorBlockIcon":"bodyPrimaryText",R="error"===d?"default":"primary",N="error"===d?"errorIcon":"black";return"hidden"===x?jt().createElement(jt().Fragment,null):jt().createElement(Tg,{id:g,styles:{root:["visible"===x?du.slideUpIn20:du.slideDownOut20,C?void 0:DQ()]},horizontalAlign:"center",verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(Tg,{onMouseEnter:k,onMouseLeave:w,onFocus:k,onBlur:w,tokens:{childrenGap:8},styles:AQ(v,d,h,y),horizontal:!0,doNotRenderFalsyValues:!0},r?jt().createElement(Tg.Item,{align:"auto"},jt().createElement(Hy,{iconName:r,size:"16px",color:D})):null,jt().createElement(Tg.Item,{align:"auto",grow:!0,styles:{root:{margin:"12px 0px 12px 0px"}}},jt().createElement(tx,{variant:A,lines:3},o)),a?jt().createElement(Tg.Item,{align:"auto",disableShrink:!0},jt().createElement(dk,(0,e.__assign)({},a,{type:R}))):null,jt().createElement(Tg.Item,{align:"auto",styles:{root:{marginLeft:"auto",marginRight:"-8px"}}},jt().createElement(pk,(0,e.__assign)({iconName:"Cancel",iconColor:N},s,{onClick:T})))),jt().createElement(nI,{message:i,ariaLive:"assertive"}))})),NQ=function(e){var t=e.children;return jt().createElement(Tg,{styles:{root:[DQ()]},tokens:{childrenGap:8},doNotRenderFalsyValues:!0},t)};!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(dQ||(dQ={}));dQ.valid,dQ.warning,dQ.invalid;var MQ=function(e){switch(e){case"256":case"200":case"160":case"120":case"100":case"72":case"56":return 16;case"48":case"40":return 12;case"32":case"28":case"24":return 8}},FQ=function(e){switch(e){case"256":case"200":case"160":case"120":case"100":case"72":case"56":case"48":return 10;case"40":return 8;case"32":case"28":case"24":return 4}},BQ=function(e){var t=e.size,n=e.primaryText,r=void 0!==n&&n,o=e.secondaryText,i=void 0!==o&&o,a=e.tertiaryText,s=void 0!==a&&a,l=t,c=r||i||s;return jt().createElement(bb,{verticalAlign:"center",horizontal:!0},jt().createElement(bb,{verticalAlign:"center",width:"".concat(l,"px")},jt().createElement(jI,{height:+l})),c?jt().createElement(bb,{verticalAlign:"center",padding:"0px 0px 0px ".concat(MQ(t),"px")},r?jt().createElement(bb,null,jt().createElement(nw,{height:16,width:143})):null,i?jt().createElement(bb,{padding:"".concat(FQ(t),"px 0px 0px 0px")},jt().createElement(nw,{height:8,width:119})):null,s?jt().createElement(bb,{padding:"".concat(FQ(t),"px 0px 0px 0px")},jt().createElement(nw,{height:8,width:138})):null):null)},OQ=__webpack_require__(16038),LQ="object"==typeof global&&global&&global.Object===Object&&global,HQ="object"==typeof self&&self&&self.Object===Object&&self,VQ=LQ||HQ||Function("return this")(),zQ=VQ.Symbol,UQ=Object.prototype,WQ=UQ.hasOwnProperty,GQ=UQ.toString,jQ=zQ?zQ.toStringTag:void 0;var qQ=function(e){var t=WQ.call(e,jQ),n=e[jQ];try{e[jQ]=void 0;var r=!0}catch(eDe){}var o=GQ.call(e);return r&&(t?e[jQ]=n:delete e[jQ]),o},KQ=Object.prototype.toString;var YQ=function(e){return KQ.call(e)},XQ=zQ?zQ.toStringTag:void 0;var QQ=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":XQ&&XQ in Object(e)?qQ(e):YQ(e)};var ZQ=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var JQ=function(e){if(!ZQ(e))return!1;var t=QQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},$Q=VQ["__core-js_shared__"],eZ=function(){var e=/[^.]+$/.exec($Q&&$Q.keys&&$Q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var tZ=function(e){return!!eZ&&eZ in e},nZ=Function.prototype.toString;var rZ=function(e){if(null!=e){try{return nZ.call(e)}catch(eDe){}try{return e+""}catch(eDe){}}return""},oZ=/^\[object .+?Constructor\]$/,iZ=Function.prototype,aZ=Object.prototype,sZ=iZ.toString,lZ=aZ.hasOwnProperty,cZ=RegExp("^"+sZ.call(lZ).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var uZ=function(e){return!(!ZQ(e)||tZ(e))&&(JQ(e)?cZ:oZ).test(rZ(e))};var dZ=function(e,t){return null==e?void 0:e[t]};var pZ=function(e,t){var n=dZ(e,t);return uZ(n)?n:void 0},hZ=function(){try{var e=pZ(Object,"defineProperty");return e({},"",{}),e}catch(eDe){}}();var mZ=function(e,t,n){"__proto__"==t&&hZ?hZ(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var fZ=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}},gZ=fZ();var vZ=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var yZ=function(e){return null!=e&&"object"==typeof e};var bZ=function(e){return yZ(e)&&"[object Arguments]"==QQ(e)},CZ=Object.prototype,SZ=CZ.hasOwnProperty,xZ=CZ.propertyIsEnumerable,_Z=bZ(function(){return arguments}())?bZ:function(e){return yZ(e)&&SZ.call(e,"callee")&&!xZ.call(e,"callee")},EZ=_Z,kZ=Array.isArray;var wZ=function(){return!1},IZ="object"==typeof exports&&exports&&!exports.nodeType&&exports,PZ=IZ&&"object"==typeof module&&module&&!module.nodeType&&module,TZ=PZ&&PZ.exports===IZ?VQ.Buffer:void 0,DZ=(TZ?TZ.isBuffer:void 0)||wZ,AZ=/^(?:0|[1-9]\d*)$/;var RZ=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&AZ.test(e))&&e>-1&&e%1==0&&e<t};var NZ=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},MZ={};MZ["[object Float32Array]"]=MZ["[object Float64Array]"]=MZ["[object Int8Array]"]=MZ["[object Int16Array]"]=MZ["[object Int32Array]"]=MZ["[object Uint8Array]"]=MZ["[object Uint8ClampedArray]"]=MZ["[object Uint16Array]"]=MZ["[object Uint32Array]"]=!0,MZ["[object Arguments]"]=MZ["[object Array]"]=MZ["[object ArrayBuffer]"]=MZ["[object Boolean]"]=MZ["[object DataView]"]=MZ["[object Date]"]=MZ["[object Error]"]=MZ["[object Function]"]=MZ["[object Map]"]=MZ["[object Number]"]=MZ["[object Object]"]=MZ["[object RegExp]"]=MZ["[object Set]"]=MZ["[object String]"]=MZ["[object WeakMap]"]=!1;var FZ=function(e){return yZ(e)&&NZ(e.length)&&!!MZ[QQ(e)]};var BZ=function(e){return function(t){return e(t)}},OZ="object"==typeof exports&&exports&&!exports.nodeType&&exports,LZ=OZ&&"object"==typeof module&&module&&!module.nodeType&&module,HZ=LZ&&LZ.exports===OZ&&LQ.process,VZ=function(){try{var e=LZ&&LZ.require&&LZ.require("util").types;return e||HZ&&HZ.binding&&HZ.binding("util")}catch(eDe){}}(),zZ=VZ&&VZ.isTypedArray,UZ=zZ?BZ(zZ):FZ,WZ=Object.prototype.hasOwnProperty;var GZ=function(e,t){var n=kZ(e),r=!n&&EZ(e),o=!n&&!r&&DZ(e),i=!n&&!r&&!o&&UZ(e),a=n||r||o||i,s=a?vZ(e.length,String):[],l=s.length;for(var c in e)!t&&!WZ.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||RZ(c,l))||s.push(c);return s},jZ=Object.prototype;var qZ=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||jZ)};var KZ=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),YZ=Object.prototype.hasOwnProperty;var XZ=function(e){if(!qZ(e))return KZ(e);var t=[];for(var n in Object(e))YZ.call(e,n)&&"constructor"!=n&&t.push(n);return t};var QZ=function(e){return null!=e&&NZ(e.length)&&!JQ(e)};var ZZ=function(e){return QZ(e)?GZ(e):XZ(e)};var JZ=function(e,t){return e&&gZ(e,t,ZZ)};var $Z=function(){this.__data__=[],this.size=0};var eJ=function(e,t){return e===t||e!==e&&t!==t};var tJ=function(e,t){for(var n=e.length;n--;)if(eJ(e[n][0],t))return n;return-1},nJ=Array.prototype.splice;var rJ=function(e){var t=this.__data__,n=tJ(t,e);return!(n<0)&&(n==t.length-1?t.pop():nJ.call(t,n,1),--this.size,!0)};var oJ=function(e){var t=this.__data__,n=tJ(t,e);return n<0?void 0:t[n][1]};var iJ=function(e){return tJ(this.__data__,e)>-1};var aJ=function(e,t){var n=this.__data__,r=tJ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function sJ(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sJ.prototype.clear=$Z,sJ.prototype.delete=rJ,sJ.prototype.get=oJ,sJ.prototype.has=iJ,sJ.prototype.set=aJ;var lJ=sJ;var cJ=function(){this.__data__=new lJ,this.size=0};var uJ=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var dJ=function(e){return this.__data__.get(e)};var pJ=function(e){return this.__data__.has(e)},hJ=pZ(VQ,"Map"),mJ=pZ(Object,"create");var fJ=function(){this.__data__=mJ?mJ(null):{},this.size=0};var gJ=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vJ=Object.prototype.hasOwnProperty;var yJ=function(e){var t=this.__data__;if(mJ){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return vJ.call(t,e)?t[e]:void 0},bJ=Object.prototype.hasOwnProperty;var CJ=function(e){var t=this.__data__;return mJ?void 0!==t[e]:bJ.call(t,e)};var SJ=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mJ&&void 0===t?"__lodash_hash_undefined__":t,this};function xJ(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xJ.prototype.clear=fJ,xJ.prototype.delete=gJ,xJ.prototype.get=yJ,xJ.prototype.has=CJ,xJ.prototype.set=SJ;var _J=xJ;var EJ=function(){this.size=0,this.__data__={hash:new _J,map:new(hJ||lJ),string:new _J}};var kJ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var wJ=function(e,t){var n=e.__data__;return kJ(t)?n["string"==typeof t?"string":"hash"]:n.map};var IJ=function(e){var t=wJ(this,e).delete(e);return this.size-=t?1:0,t};var PJ=function(e){return wJ(this,e).get(e)};var TJ=function(e){return wJ(this,e).has(e)};var DJ=function(e,t){var n=wJ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function AJ(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}AJ.prototype.clear=EJ,AJ.prototype.delete=IJ,AJ.prototype.get=PJ,AJ.prototype.has=TJ,AJ.prototype.set=DJ;var RJ=AJ;var NJ=function(e,t){var n=this.__data__;if(n instanceof lJ){var r=n.__data__;if(!hJ||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new RJ(r)}return n.set(e,t),this.size=n.size,this};function MJ(e){var t=this.__data__=new lJ(e);this.size=t.size}MJ.prototype.clear=cJ,MJ.prototype.delete=uJ,MJ.prototype.get=dJ,MJ.prototype.has=pJ,MJ.prototype.set=NJ;var FJ=MJ;var BJ=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var OJ=function(e){return this.__data__.has(e)};function LJ(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new RJ;++t<n;)this.add(e[t])}LJ.prototype.add=LJ.prototype.push=BJ,LJ.prototype.has=OJ;var HJ=LJ;var VJ=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var zJ=function(e,t){return e.has(t)};var UJ=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new HJ:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],f=t[d];if(r)var g=a?r(f,m,d,t,e,i):r(m,f,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!VJ(t,(function(e,t){if(!zJ(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)}))){p=!1;break}}else if(m!==f&&!o(m,f,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},WJ=VQ.Uint8Array;var GJ=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var jJ=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},qJ=zQ?zQ.prototype:void 0,KJ=qJ?qJ.valueOf:void 0;var YJ=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new WJ(e),new WJ(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eJ(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=GJ;case"[object Set]":var l=1&r;if(s||(s=jJ),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=UJ(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(KJ)return KJ.call(e)==KJ.call(t)}return!1};var XJ=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var QJ=function(e,t,n){var r=t(e);return kZ(e)?r:XJ(r,n(e))};var ZJ=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var JJ=function(){return[]},$J=Object.prototype.propertyIsEnumerable,e$=Object.getOwnPropertySymbols,t$=e$?function(e){return null==e?[]:(e=Object(e),ZJ(e$(e),(function(t){return $J.call(e,t)})))}:JJ;var n$=function(e){return QJ(e,ZZ,t$)},r$=Object.prototype.hasOwnProperty;var o$=function(e,t,n,r,o,i){var a=1&n,s=n$(e),l=s.length;if(l!=n$(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:r$.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<l;){var f=e[u=s[c]],g=t[u];if(r)var v=a?r(g,f,u,t,e,i):r(f,g,u,e,t,i);if(!(void 0===v?f===g||o(f,g,n,r,i):v)){h=!1;break}m||(m="constructor"==u)}if(h&&!m){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},i$=pZ(VQ,"DataView"),a$=pZ(VQ,"Promise"),s$=pZ(VQ,"Set"),l$=pZ(VQ,"WeakMap"),c$="[object Map]",u$="[object Promise]",d$="[object Set]",p$="[object WeakMap]",h$="[object DataView]",m$=rZ(i$),f$=rZ(hJ),g$=rZ(a$),v$=rZ(s$),y$=rZ(l$),b$=QQ;(i$&&b$(new i$(new ArrayBuffer(1)))!=h$||hJ&&b$(new hJ)!=c$||a$&&b$(a$.resolve())!=u$||s$&&b$(new s$)!=d$||l$&&b$(new l$)!=p$)&&(b$=function(e){var t=QQ(e),n="[object Object]"==t?e.constructor:void 0,r=n?rZ(n):"";if(r)switch(r){case m$:return h$;case f$:return c$;case g$:return u$;case v$:return d$;case y$:return p$}return t});var C$=b$,S$="[object Arguments]",x$="[object Array]",_$="[object Object]",E$=Object.prototype.hasOwnProperty;var k$=function(e,t,n,r,o,i){var a=kZ(e),s=kZ(t),l=a?x$:C$(e),c=s?x$:C$(t),u=(l=l==S$?_$:l)==_$,d=(c=c==S$?_$:c)==_$,p=l==c;if(p&&DZ(e)){if(!DZ(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new FJ),a||UZ(e)?UJ(e,t,n,r,o,i):YJ(e,t,l,n,r,o,i);if(!(1&n)){var h=u&&E$.call(e,"__wrapped__"),m=d&&E$.call(t,"__wrapped__");if(h||m){var f=h?e.value():e,g=m?t.value():t;return i||(i=new FJ),o(f,g,n,r,i)}}return!!p&&(i||(i=new FJ),o$(e,t,n,r,o,i))};var w$=function e(t,n,r,o,i){return t===n||(null==t||null==n||!yZ(t)&&!yZ(n)?t!==t&&n!==n:k$(t,n,r,o,e,i))};var I$=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new FJ;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?w$(u,c,3,r,d):p))return!1}}return!0};var P$=function(e){return e===e&&!ZQ(e)};var T$=function(e){for(var t=ZZ(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,P$(o)]}return t};var D$=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var A$=function(e){var t=T$(e);return 1==t.length&&t[0][2]?D$(t[0][0],t[0][1]):function(n){return n===e||I$(n,e,t)}};var R$=function(e){return"symbol"==typeof e||yZ(e)&&"[object Symbol]"==QQ(e)},N$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M$=/^\w*$/;var F$=function(e,t){if(kZ(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!R$(e))||(M$.test(e)||!N$.test(e)||null!=t&&e in Object(t))};function B$(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(B$.Cache||RJ),n}B$.Cache=RJ;var O$=B$;var L$=function(e){var t=O$(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},H$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V$=/\\(\\)?/g,z$=L$((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(H$,(function(e,n,r,o){t.push(r?o.replace(V$,"$1"):n||e)})),t})),U$=z$;var W$=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},G$=zQ?zQ.prototype:void 0,j$=G$?G$.toString:void 0;var q$=function e(t){if("string"==typeof t)return t;if(kZ(t))return W$(t,e)+"";if(R$(t))return j$?j$.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var K$=function(e){return null==e?"":q$(e)};var Y$=function(e,t){return kZ(e)?e:F$(e,t)?[e]:U$(K$(e))};var X$=function(e){if("string"==typeof e||R$(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Q$=function(e,t){for(var n=0,r=(t=Y$(t,e)).length;null!=e&&n<r;)e=e[X$(t[n++])];return n&&n==r?e:void 0};var Z$=function(e,t,n){var r=null==e?void 0:Q$(e,t);return void 0===r?n:r};var J$=function(e,t){return null!=e&&t in Object(e)};var $$=function(e,t,n){for(var r=-1,o=(t=Y$(t,e)).length,i=!1;++r<o;){var a=X$(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&NZ(o)&&RZ(a,o)&&(kZ(e)||EZ(e))};var e0=function(e,t){return null!=e&&$$(e,t,J$)};var t0=function(e,t){return F$(e)&&P$(t)?D$(X$(e),t):function(n){var r=Z$(n,e);return void 0===r&&r===t?e0(n,e):w$(t,r,3)}};var n0=function(e){return e};var r0=function(e){return function(t){return null==t?void 0:t[e]}};var o0=function(e){return function(t){return Q$(t,e)}};var i0=function(e){return F$(e)?r0(X$(e)):o0(e)};var a0=function(e){return"function"==typeof e?e:null==e?n0:"object"==typeof e?kZ(e)?t0(e[0],e[1]):A$(e):i0(e)};var s0=function(e,t){var n={};return t=a0(t,3),JZ(e,(function(e,r,o){mZ(n,r,t(e,r,o))})),n};var l0=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r};var c0=function(e,t){return function(n,r){if(null==n)return n;if(!QZ(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},u0=c0(JZ);var d0=function(e,t,n,r){return u0(e,(function(e,o,i){t(r,e,n(e),i)})),r};var p0=function(e,t){return function(n,r){var o=kZ(n)?l0:d0,i=t?t():{};return o(n,e,a0(r,2),i)}},h0=Object.prototype.hasOwnProperty,m0=p0((function(e,t,n){h0.call(e,n)?e[n].push(t):mZ(e,n,[t])})),f0=m0;function g0(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var v0="function"===typeof Symbol&&Symbol.observable||"@@observable",y0=function(){return Math.random().toString(36).substring(7).split("").join(".")},b0={INIT:"@@redux/INIT"+y0(),REPLACE:"@@redux/REPLACE"+y0(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+y0()}};function C0(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function S0(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(g0(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(g0(1));return n(S0)(e,t)}if("function"!==typeof e)throw new Error(g0(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(g0(3));return i}function d(e){if("function"!==typeof e)throw new Error(g0(4));if(l)throw new Error(g0(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(g0(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!C0(e))throw new Error(g0(7));if("undefined"===typeof e.type)throw new Error(g0(8));if(l)throw new Error(g0(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!==typeof e)throw new Error(g0(10));o=e,p({type:b0.REPLACE})}function m(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(g0(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[v0]=function(){return this},e}return p({type:b0.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:h})[v0]=m,r}function x0(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:b0.INIT}))throw new Error(g0(12));if("undefined"===typeof n(void 0,{type:b0.PROBE_UNKNOWN_ACTION()}))throw new Error(g0(13))}))}(n)}catch(eDe){i=eDe}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(g0(14))}o[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}var _0=__webpack_require__(35556),E0=__webpack_require__.n(_0),k0=function(e){return"function"===typeof e},w0=function(e){return e},I0=function(e){return null===e};var P0={};function T0(e,t){!function(e,t){P0[e]=t}(e,t.getLogProperties||null);var n=function(e,t,n){void 0===t&&(t=w0),E0()(k0(t)||I0(t),"Expected payloadCreator to be a function, undefined or null");var r=I0(t)||t===w0?w0:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},o=k0(n),i=e.toString(),a=function(){var t=r.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),o&&(i.meta=n.apply(void 0,arguments)),i};return a.toString=function(){return i},a}(e,(function(e){return e}),(function(){return{featureName:t.featureName,exportOptions:t.exportOptions||null}}));return n}var D0="selectors",A0="stores",R0=T0("LOAD_STATE",{featureName:"NoLogging"});var N0={exportCss:function(){}};function M0(e,t){console.error("Exception in ".concat(e)),console.error(t)}function F0(e){if(!e||!e.handleException)return{handleException:M0};var t=!1;return{handleException:function(n,r){if(t)M0(n,r);else{t=!0;try{e.handleException(n,r)}finally{t=!1}}}}}var B0=F0(void 0),O0=1;function L0(e){return e._Name||e.name||"Unknown"}var H0=function(){function e(e){this.singletonsByIndex={},this._exceptionHandler=B0,this._cssExtractor=N0,this.reduxStore=e&&e.reduxStore}return Object.defineProperty(e.prototype,"exceptionHandler",{get:function(){return this._exceptionHandler},set:function(e){this._exceptionHandler=F0(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssExtractor",{get:function(){return this._cssExtractor},set:function(e){this._cssExtractor=e},enumerable:!1,configurable:!0}),e.prototype.addSingleton=function(e){if(this.findSingleton(e.constructor))throw new Error("Singleton ".concat(L0(e.constructor)," already exists."));var t,n=("number"!==typeof(t=e.constructor)._singleton_index&&(t._singleton_index=O0,O0+=1),t._singleton_index);if(void 0!==this.singletonsByIndex[n])throw new Error("Singleton with index ".concat(n," already exists."));this.singletonsByIndex[n]=e},e.prototype.getSingleton=function(e){var t=this.findSingleton(e);if(void 0===t)throw new Error("Singleton ".concat(L0(e)," not found."));return t},e.prototype.findSingleton=function(e){if("number"===typeof e._singleton_index){var t=this.singletonsByIndex[e._singleton_index];return t&&t.constructor===e?t:void 0}},e}(),V0={appContext:jr.instanceOf(H0).isRequired},z0=jt().createContext(null);var U0=function(e){e()},W0=function(){return U0};var G0={notify:function(){},get:function(){return[]}};function j0(e,t){var n,r=G0;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=W0(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=G0)},getListeners:function(){return r}};return a}var q0="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?Gt.useLayoutEffect:Gt.useEffect;var K0=function(e){var t=e.store,n=e.context,r=e.children,o=(0,Gt.useMemo)((function(){var e=j0(t);return{store:t,subscription:e}}),[t]),i=(0,Gt.useMemo)((function(){return t.getState()}),[t]);q0((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var a=n||z0;return jt().createElement(a.Provider,{value:o},r)},Y0=__webpack_require__(9479),X0=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Q0=["reactReduxForwardedRef"],Z0=[],J0=[null,null];function $0(e,t){var n=e[1];return[t.payload,n+1]}function e1(e,t,n){q0((function(){return e.apply(void 0,t)}),n)}function t1(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function n1(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(eDe){n=eDe,d=eDe}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var r1=function(){return[null,0]};function o1(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=void 0===i?"connectAdvanced":i,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,h=(n.withRef,n.forwardRef),m=void 0!==h&&h,f=n.context,g=void 0===f?z0:f,v=Po(n,X0),y=g;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=Kr({},v,{getDisplayName:o,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var c=s?Gt.useMemo:function(e){return e()};function d(n){var r=(0,Gt.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Po(n,Q0);return[n.context,e,t]}),[n]),o=r[0],a=r[1],s=r[2],l=(0,Gt.useMemo)((function(){return o&&o.Consumer&&(0,Y0.isContextConsumer)(jt().createElement(o.Consumer,null))?o:y}),[o,y]),d=(0,Gt.useContext)(l),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var h=p?n.store:d.store,m=(0,Gt.useMemo)((function(){return function(t){return e(t.dispatch,i)}(h)}),[h]),f=(0,Gt.useMemo)((function(){if(!u)return J0;var e=j0(h,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,d]),g=f[0],v=f[1],b=(0,Gt.useMemo)((function(){return p?d:Kr({},d,{subscription:g})}),[p,d,g]),C=(0,Gt.useReducer)($0,Z0,r1),S=C[0][0],x=C[1];if(S&&S.error)throw S.error;var _=(0,Gt.useRef)(),E=(0,Gt.useRef)(s),k=(0,Gt.useRef)(),w=(0,Gt.useRef)(!1),I=c((function(){return k.current&&s===E.current?k.current:m(h.getState(),s)}),[h,S,s]);e1(t1,[E,_,w,s,I,k,v]),e1(n1,[u,h,g,m,E,_,w,k,v,x],[h,g,m]);var P=(0,Gt.useMemo)((function(){return jt().createElement(t,Kr({},I,{ref:a}))}),[a,t,I]);return(0,Gt.useMemo)((function(){return u?jt().createElement(l.Provider,{value:b},P):P}),[l,P,b])}var h=s?jt().memo(d):d;if(h.WrappedComponent=t,h.displayName=d.displayName=r,m){var f=jt().forwardRef((function(e,t){return jt().createElement(h,Kr({},e,{reactReduxForwardedRef:t}))}));return f.displayName=r,f.WrappedComponent=t,Do()(f,t)}return Do()(h,t)}}function i1(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function a1(e,t){if(i1(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!i1(e[n[o]],t[n[o]]))return!1;return!0}function s1(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function l1(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function c1(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=l1(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=l1(o),o=r(t,n)),o},r}}var u1=[function(e){return"function"===typeof e?c1(e):void 0},function(e){return e?void 0:s1((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?s1((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var d1=[function(e){return"function"===typeof e?c1(e):void 0},function(e){return e?void 0:s1((function(){return{}}))}];function p1(e,t,n){return Kr({},n,e,t)}var h1=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return p1}}],m1=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function f1(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function g1(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,h=!1;function m(o,h){var m=!d(h,a),f=!u(o,i);return i=o,a=h,m&&f?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):f?function(){var t=e(i,a),r=!p(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return h?m(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),h=!0,c)}}function v1(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Po(t,m1),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?g1:f1)(a,s,l,e,i)}var y1=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function b1(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function C1(e,t){return e===t}function S1(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?o1:n,o=t.mapStateToPropsFactories,i=void 0===o?d1:o,a=t.mapDispatchToPropsFactories,s=void 0===a?u1:a,l=t.mergePropsFactories,c=void 0===l?h1:l,u=t.selectorFactory,d=void 0===u?v1:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,p=a.areStatesEqual,h=void 0===p?C1:p,m=a.areOwnPropsEqual,f=void 0===m?a1:m,g=a.areStatePropsEqual,v=void 0===g?a1:g,y=a.areMergedPropsEqual,b=void 0===y?a1:y,C=Po(a,y1),S=b1(e,i,"mapStateToProps"),x=b1(t,s,"mapDispatchToProps"),_=b1(n,c,"mergeProps");return r(d,Kr({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:x,initMergeProps:_,pure:u,areStatesEqual:h,areOwnPropsEqual:f,areStatePropsEqual:v,areMergedPropsEqual:b},C))}}var x1=S1();var _1;_1=nn.unstable_batchedUpdates,U0=_1;var E1=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.getChildContext=function(){return{appContext:this.props.context}},n.prototype.componentDidCatch=function(e,t){this.props.context.exceptionHandler.handleException("App.componentDidCatch:".concat(t.componentStack),e)},n.prototype.render=function(){return this.props.context.reduxStore?Gt.createElement(K0,{store:this.props.context.reduxStore},this.props.children):Gt.createElement(Gt.Fragment,null,this.props.children)},n.childContextTypes=(0,e.__assign)({},V0),n}(Gt.Component);function k1(e,t){try{return t?e.toDataURL():e.toDataURL("image/jpeg")}catch(n){return console.error(n),""}}var w1={1:[1,0,0,1,0,0],2:[-1,0,0,1,0,0],3:[-1,0,0,-1,0,0],4:[1,0,0,-1,0,0],5:[0,1,1,0,0,0],6:[0,1,-1,0,0,0],7:[0,-1,-1,0,0,0],8:[0,-1,1,0,0,0]},I1=256,P1="white",T1="rgba(0, 120, 215, 0.5)",D1=function(e){return e*Math.PI/180};function A1(e,t,n,r,o,i){e.save(),e.translate(t/2,t/2),e.transform.apply(e,w1[r]),e.rotate(D1(n)),e.translate(-t/2,-t/2),i(e,o),e.restore()}function R1(e,t,n,r){var o=D1(r),i=w1[n],a=i[0],s=i[2];return{x:(t=(e=(e-=128)*a+(t-=128)*i[1])*s+t*i[3])*Math.sin(o)+e*Math.cos(o)+128,y:t*Math.cos(o)-e*Math.sin(o)+128}}function N1(e,t,n){return Math.min(n,Math.max(e,t))}var M1="photoPickerFirstFocusableSelector",F1="PhotoPicker";function B1(e,t){return void 0===t&&(t=null),T0("".concat(F1).concat(e,"Action"),{featureName:F1,exportOptions:t?{exportType:"UserInteraction",exportName:t}:void 0})}var O1=B1("UploadedPhotoTooSmall"),L1=B1("CancelButtonClicked","PhotoPickerCancelButtonClicked"),H1=B1("CloseButtonClicked","PhotoPickerCloseButtonClickedAction"),V1=B1("DoneButtonClicked","PhotoPickerDoneButtonClickedAction"),z1=B1("UploadNewPhotoButtonClicked","PhotoPickerUploadNewPhotoButtonClickedAction"),U1=B1("ImageEditPaneDismissed","PhotoPickerImageEditPaneDismissed"),W1=B1("ImageUpdated"),G1=B1("LoadedCurrentImage"),j1=B1("LoadedEmptyImage"),q1=B1("LoadedNewImage"),K1=B1("SomethingWentWrong"),Y1=B1("UploadStarted","PhotoPickerApplyButtonClicked"),X1=B1("UploadProgress"),Q1=B1("UploadSucceeded"),Z1=B1("WarningDismissed"),J1=B1("Keyboard"),$1=B1("ImageRotate"),e2=B1("Zoom"),t2=B1("ImageLoaded"),n2=B1("DragStarted"),r2=B1("DragProgress"),o2=B1("ResetEditCanvas"),i2=B1("EmptyImageRendered"),a2=B1("SetImageUpdated"),s2=B1("PhotoListImageSelected"),l2=B1("NewImageUploaded"),c2=B1("PhotoListLoadPhotos");var u2=__webpack_require__(62813),d2=__webpack_require__(18287),p2="ReduxStateJanitorStartedAction";T0(p2,{featureName:"NoLogging"});function h2(){var t={},n={};return{handlePayload:function(e,r){var o=e.toString();if(t[o]||n[o])throw new Error("Already handling an action type named ".concat(o));return t[o]=r,this},handleAction:function(e,r){var o=e.toString();if(t[o]||n[o])throw new Error("Already handling an action type named ".concat(o));return n[o]=r,this},done:function(r,o){var i=(0,e.__assign)({},t),a=(0,e.__assign)({},n);return function(e,t){if(void 0===e&&(e=r),t.type===p2)return o?o(e):r;var n=i[t.type];if(n)e=n(e,t.payload);else{var s=a[t.type];s&&(e=s(e,t))}return e}}}}var m2=__webpack_require__(77465),f2=__webpack_require__(68038);function g2(t,n,r,o){if(!n.length)return t;var i=(0,e.__assign)({},t),a=!1;return n.forEach((function(e,t){var n=o(e,t),s=r(e,t,n);i[s]!==n&&(i[s]=n,a=!0)})),a?i:t}var v2={create:function(e){var t={};if(void 0===e||null===e)return t;if(e instanceof Array)for(var n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}else Object.keys(e).forEach((function(n){t[n]=e[n]}));return t},map:function(e,t){if(!e)return e;var n={},r=!1;return Object.keys(e).forEach((function(o){var i=e[o],a=t(o,i,e);n[o]=a,r=r||a!==i})),r?n:e},filter:function(e,t){if(!e)return e;var n={},r=!1;return Object.keys(e).forEach((function(o){var i=e[o];t(o,i,e)?n[o]=i:r=!0})),r?n:e},get:function(e,t){if(e)return e[t]},insert:function(t,n,r){if(t&&t[n]===r)return t;var o=(0,e.__assign)({},t);return o[n]=r,o},insertArray:function(e,t,n){return g2(e,t,n,(function(e){return e}))},insertArrayWith:g2,remove:function(t,n){if(!t)return t;if(!(n in t))return t;var r=(0,e.__assign)({},t);return delete r[n],r},replace:function(t,n,r){var o=t?(0,e.__assign)({},t):{};return o[n]=r(o[n]),o},replaceMany:function(t,n,r){if(n.length){var o=(0,e.__assign)({},t);return n.forEach((function(e){o[e]=r(o[e],e)})),o}return t},keys:function(e){return e?Object.keys(e):[]},values:function(e){var t=[];return e&&Object.keys(e).forEach((function(n){var r=e[n];t.push(r)})),t},entries:function(e){var t=[];return e&&Object.keys(e).forEach((function(n){var r=e[n];t.push([n,r])})),t}};var y2=function(){return y2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y2.apply(this,arguments)},b2=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},C2={xpos:0,ypos:0,absoluteScale:1,relativeScale:0,stepSize:.1,imageRotationAngle:0,orientation:1,maximumScale:1,naturalMin:0,naturalWidth:0,naturalHeight:0,moving:!1,lastMouseX:0,lastMouseY:0,zoomInDisabled:!0,zoomOutDisabled:!0,image:void 0,initialRender:!0,imageUpdated:!0},S2={photoPicker:{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,show:!1,isUpdated:!1,uploadStart:0,uploadDuration:0,isUploadedPhotoTooSmall:!1},editCanvas:y2(y2({},C2),{originalCanvasState:C2}),photoList:{selectedIndex:0,imageUrls:[]}},x2=x0({photoPicker:h2().handleAction(L1,E2).handleAction(H1,E2).handleAction(V1,E2).handleAction(U1,E2).handleAction(Z1,(function(e){return(0,d2.ok)(e,{status:"READY",warning:void 0})})).handleAction(G1,(function(e,t){var n=t.payload.dataUrl;return(0,d2.ok)(e,{dataUrl:e.dataUrl||n,currentImageDataUrl:e.currentImageDataUrl||n,isUpdated:!!t.payload.isSuggestedPhoto||!!t.payload.isPhotoListPresent})})).handleAction(q1,(function(e,t){return(0,d2.ok)(e,{dataUrl:t.payload.dataUrl,status:"READY",warning:void 0,isUpdated:t.payload.dataUrl!==e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:t.payload.fileName})})).handleAction(j1,(function(e,t){return(0,d2.ok)(e,{dataUrl:"",status:"READY",warning:void 0,isUpdated:!!e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:void 0})})).handleAction(Y1,(function(e,t){return(0,d2.ok)(e,{status:"IN_PROGRESS",warning:void 0,uploadStart:t.payload.now,uploadDuration:0})})).handleAction(X1,(function(e,t){return"IN_PROGRESS"===e.status?(0,d2.ok)(e,{uploadDuration:t.payload.now-e.uploadStart}):e})).handleAction(Q1,(function(e,t){return(0,d2.ok)(e,{currentImageDataUrl:t.payload.dataUrl,status:"SUCCESS",warning:void 0})})).handleAction(K1,(function(e,t){return(0,d2.ok)(e,{status:"SOMETHING_WENT_WRONG",warning:t.payload.warning})})).handleAction(W1,(function(e){return(0,d2.ok)(e,{isUpdated:!0})})).handleAction(O1,(function(e,t){return(0,d2.ok)(e,t.payload)})).done(S2.photoPicker),editCanvas:h2().handleAction(o2,k2).handleAction(J1,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(e2,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(t2,(function(e,t){return(0,d2.ok)(e,y2(y2({},t.payload),{originalCanvasState:e.originalCanvasState.initialRender?(0,d2.ok)(e.originalCanvasState,t.payload):e.originalCanvasState}))})).handleAction(n2,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(r2,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(a2,(function(e){return(0,d2.ok)(e,{imageUpdated:!0})})).handleAction(i2,(function(e){return(0,d2.ok)(e,{initialRender:!1})})).handleAction(L1,k2).handleAction(H1,k2).handleAction(V1,k2).handleAction(U1,k2).handleAction($1,(function(e,t){return(0,d2.ok)(e,t.payload)})).done(S2.editCanvas),photoList:h2().handleAction(s2,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(j1,(function(e){return(0,d2.ok)(e,{selectedIndex:-1})})).handleAction(l2,(function(e,t){return(0,d2.ok)(e,{selectedIndex:t.payload.selectedIndex,imageUrls:b2([t.payload.newImageUrl],e.imageUrls,!0)})})).handleAction(c2,(function(e,t){return(0,d2.ok)(e,t.payload)})).handleAction(L1,w2).handleAction(H1,w2).handleAction(V1,w2).handleAction(U1,w2).done(S2.photoList)}),_2=function(e,t,n){var r=t(void 0,{type:void 0}),o=function(e,t){var n=e.name;return(0,f2.P1)((function(t){return v2.get(t.stores,n)||e.initialState}),(function(e){return(0,m2.M)(t(e))}))}({name:e,initialState:r},n);return{name:e,initialState:r,reducer:t,getSelectors:o}}("PhotoPickerStore",x2,(function(e){return{getPhotoPickerState:function(){return e.photoPicker},getEditCanvasState:function(){return e.editCanvas},getPhotoListState:function(){return e.photoList}}}));function E2(e){return(0,d2.ok)(e,{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,isUpdated:!1,fileName:void 0})}function k2(e){return(0,d2.ok)(e,S2.editCanvas)}function w2(e){return(0,d2.ok)(e,S2.photoList)}var I2=["absoluteScale","imageRotationAngle","xpos","ypos"],P2=Ku((function(){return Wd({closeButton:{float:"right",marginTop:-20,marginRight:-20},removeButton:{marginLeft:"auto"}})})),T2=function(e){var t=e.onClick,n=e.dataLogName,r=e.ariaLabel,o=e.title,i=P2();switch(e.buttonType){case"Primary":return Gt.createElement(UE,{disabled:e.disabled,onClick:t,"data-log-name":n,ariaLabel:r,title:o,componentRef:e.buttonRef},e.buttonLabel);case"Action":return Gt.createElement(GE,{className:i.removeButton,iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,disabled:e.disabled,title:o},e.buttonLabel);case"Icon":return Gt.createElement(KS,{content:o,styles:{root:i.closeButton}},Gt.createElement(qE,{iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,ariaLabel:r}));case"Default":return Gt.createElement(zE,{onClick:t,"data-log-name":n,ariaLabel:r,title:o},e.buttonLabel);default:return e}},D2=__webpack_require__(8141),A2=(0,D2.N)((function(t){var n=t,r=(0,e.__assign)({},n.palette);return r.neutralPrimarySurface||(r.neutralPrimarySurface=r.white),r.neutralSecondarySurface||(r.neutralSecondarySurface=r.white),r.neutralTertiarySurface||(r.neutralTertiarySurface=r.neutralLighter),r.neutralHover||(r.neutralHover=r.neutralLight),(0,e.__assign)((0,e.__assign)({},n),{palette:r})}));function R2(){var e=Gt.useContext(Yp),t=N2(e.customizations),n=Gt.useState(t),r=n[0],o=n[1];return Gt.useEffect((function(){var t=N2(e.customizations);o(t)}),[e.customizations]),Gt.useEffect((function(){var t=function(){var t=N2(e.customizations);o(t)};return ad.observe(t),function(){return ad.unobserve(t)}}),[e.customizations]),A2(r)}function N2(e){return ad.getSettings(["theme"],"WithTheme",e).theme}var M2=Ku((function(e,t){return Wd({root:yc({margin:"7px 0",color:e.palette.neutralPrimary},null===t||void 0===t?void 0:t.root),text:yc(e.fonts.medium,null===t||void 0===t?void 0:t.text)})})),F2=function(e){var t=M2(R2(),e.styles),n="UNKNOWN"===e.warning,r="IMAGE_TOO_SMALL_ERROR"===e.warning,o=n||r?CF.error:CF.warning,i=n?void 0:e.onDismiss;return Gt.createElement(VF,{className:t.root,messageBarType:o,onDismiss:i,isMultiline:!0,"aria-live":"polite",styles:t,dismissButtonAriaLabel:e.dismissButtonAriaLabel},e.warningText)},B2=Ku((function(e,t){var n=e.palette;return Wd({modal:yc({width:512,maxWidth:512,margin:0,selectors:{"#lpc-photo-picker .ms-Button-icon":{display:"inline-block",minWidth:16,padding:"0px 4px",backgroundColor:"transparent"},"#lpc-photo-picker .ms-Slider-slideBox:focus":{outline:"transparent"},"#lpc-photo-picker .ms-Button--icon &hover":{color:n.themePrimary},"#lpc-photo-picker .ms-Button--icon &active":{color:n.themeDarker},"#lpc-photo-picker .ms-Button--primary &:not([disabled])":{backgroundColor:n.themePrimary},"#lpc-photo-picker .ms-Button--primary &:hover":{backgroundColor:n.themeDarkAlt},"#lpc-photo-picker .ms-Button--primary &:active":{backgroundColor:n.themeDark},"#lpc-photo-picker .ms-Button--default .ms-Button-label":{color:n.neutralDark},"#lpc-photo-picker .ms-Button--default &:hover":{backgroundColor:n.neutralLight},"#lpc-photo-picker .ms-Button--default &:active":{backgroundColor:n.neutralTertiaryAlt}}},null===t||void 0===t?void 0:t.modal),picker:yc(e.fonts.medium,{padding:32,overflow:"hidden"},null===t||void 0===t?void 0:t.root),header:yc(e.fonts.xLarge,{display:"flex",alignContent:"space-between",color:n.neutralPrimary,fontWeight:300,marginBottom:7,flexGrow:1},null===t||void 0===t?void 0:t.header),endActions:{marginTop:e.spacing.l1,alignItems:"center",display:"flex",selectors:{button:{marginRight:12,minWidth:62,padding:"0px 4px",fontSize:e.fonts.medium.fontSize,borderRadius:4}}},editCanvasAndPhotoListContainer:{display:"flex",padding:"0px 8px"}})})),O2=function(e){var t=e.hideTitleText,n=e.isComponentInline,r=e.titleText,o=e.closeIcon,i=e.infoBar,a=e.uploadPhoto,s=e.editCanvas,l=e.applyButton,c=e.cancelButton,u=e.removeButton,d=e.onDismiss,p=e.focusTrapRef,h=e.hideEndActions,m=e.imageEditorDescription,f=e.customUploadButton,g=e.photoList,v=e.styles,y=B2(R2(),v),b=Gt.createElement(Gt.Fragment,null,!n&&o,!t&&Gt.createElement("div",{className:y.header,id:"dialogTitle",role:"heading","aria-level":1},r),i,a,Gt.createElement("div",{className:y.editCanvasAndPhotoListContainer},s,g),m,!h&&Gt.createElement("div",{className:y.endActions},l,c,u),f);return Gt.createElement(Gt.Fragment,null,n?Gt.createElement("div",{id:"lpc-photo-picker",className:y.picker},b):Gt.createElement(LN,{className:"lpc_nested_popup",containerClassName:y.modal,isOpen:!0,onDismiss:d,titleAriaId:"dialogTitle"},Gt.createElement(xN,{id:"lpc-photo-picker",className:y.picker,componentRef:p,firstFocusableSelector:M1},b)))},L2=Ku((function(e,t){return Wd({fileInput:{display:"none"},button:yc({color:e.palette.themePrimary,padding:0,margin:"0 0 12px -4px"},null===t||void 0===t?void 0:t.button)})})),H2=function(e){var t=L2(R2(),e.styles),n=Gt.useRef(null);return Gt.createElement(Gt.Fragment,null,Gt.createElement("input",{role:"button",className:t.fileInput,type:"file",ref:n,onClick:function(e){return e.currentTarget.value=""},onChange:function(t){return t.currentTarget.files&&e.onFileSelected(t.currentTarget.files[0],e.isPhotoListPresent)},"data-log-name":"PhotoPickerFileInput",accept:"image/*"}),Gt.createElement(GE,{componentRef:e.buttonRef,className:"".concat(t.button," ").concat(M1),iconProps:{iconName:"Add"},onClick:function(){var t;null===(t=n.current)||void 0===t||t.click(),e.onUploadNewPhoto()}},e.uploadText))},V2=__webpack_require__(81856);function z2(e){var t=new DataView(function(e){for(var t=e.replace(/^data\:([^\;]+)\;base64,/i,""),n=atob(t),r=n.length,o=new ArrayBuffer(r),i=new Uint8Array(o),a=0;a<r;a++)i[a]=n.charCodeAt(a);return o}(e));if(65496!==t.getUint16(0,!1))return 1;for(var n,r=t.byteLength,o=2;o<r;){var i=t.getUint16(o,!1);if(o+=2,65505===i){if(1165519206!==t.getUint32(o+=2,!1))break;var a=18761===t.getUint16(o+=6,!1);o+=t.getUint32(o+4,a);var s=t.getUint16(o,a);o+=2;for(var l=0;l<s;l++)if(274===t.getUint16(o+12*l,a))return(n=t.getUint16(o+12*l+8,a))<1||n>8?1:n}else{if(65280!==(65280&i))break;o+=t.getUint16(o,!1)}}return 1}var U2=zg(),W2=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},G2=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},j2=function(t,n){var r=t.step,o=void 0===r?1:r,i=t.className,a=t.disabled,s=void 0!==a&&a,l=t.label,c=t.max,u=void 0===c?10:c,d=t.min,p=void 0===d?0:d,h=t.showValue,m=void 0===h||h,f=t.buttonProps,g=void 0===f?{}:f,v=t.vertical,y=void 0!==v&&v,b=t.snapToStep,C=t.valueFormat,S=t.styles,x=t.theme,_=t.originFromZero,E=t["aria-labelledby"],k=t.ariaLabel,w=void 0===k?t["aria-label"]:k,I=t.ranged,P=t.onChange,T=t.onChanged,D=Gt.useRef([]),A=sv(),R=A.setTimeout,N=A.clearTimeout,M=Gt.useRef(null),F=ow(t.value,t.defaultValue,(function(e,t){return null===P||void 0===P?void 0:P(t,I?[W.latestLowerValue,t]:void 0,e)})),B=F[0],O=F[1],L=ow(t.lowerValue,t.defaultLowerValue,(function(e,t){return null===P||void 0===P?void 0:P(W.latestValue,[t,W.latestValue],e)})),H=L[0],V=L[1],z=Math.max(p,Math.min(u,B||0)),U=Math.max(p,Math.min(z,H||0)),W=av({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:z,latestLowerValue:U});W.latestValue=z,W.latestLowerValue=U;var G=eE("Slider",t.id||(null===g||void 0===g?void 0:g.id)),j=U2(S,{className:i,disabled:s,vertical:y,showTransitions:!b&&!W.isBetweenSteps,showValue:m,ranged:I,theme:x}),q=(u-p)/o,K=function(){N(W.onKeyDownTimer),W.onKeyDownTimer=-1},Y=function(e){K(),T&&(W.onKeyDownTimer=R((function(){T(e,W.latestValue,I?[W.latestLowerValue,W.latestValue]:void 0)}),1e3))},X=function(e){var n=t.ariaValueText;if(void 0!==e)return n?n(e):e.toString()},Q=function(e,t,n){t=Math.min(u,Math.max(p,t)),n=void 0!==n?Math.min(u,Math.max(p,n)):void 0;var r=0;if(isFinite(o))for(;Math.round(o*Math.pow(10,r))/Math.pow(10,r)!==o;)r++;var i=parseFloat(t.toFixed(r));W.isBetweenSteps=void 0!==n&&n!==i,I?W.isAdjustingLowerValue&&(_?i<=0:i<=W.latestValue)?V(i,e):!W.isAdjustingLowerValue&&(_?i>=0:i>=W.latestLowerValue)&&O(i,e):O(i,e)},Z=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},J=function(e){var n,r=M.current.getBoundingClientRect(),o=(t.vertical?r.height:r.width)/q;if(t.vertical){var i=Z(e,t.vertical);n=(r.bottom-i)/o}else{var a=Z(e,t.vertical);n=(Dp(t.theme)?r.right-a:a-r.left)/o}return n},$=function(e,t){var n=J(e),r=p+o*n,i=p+o*Math.round(n);Q(e,i,r),t||(e.preventDefault(),e.stopPropagation())},ee=function(e){if(I){var t=J(e),n=p+o*t;W.isAdjustingLowerValue=n<=W.latestLowerValue||n-W.latestLowerValue<=W.latestValue-n}"mousedown"===e.type?D.current.push(oC(window,"mousemove",$,!0),oC(window,"mouseup",te,!0)):"touchstart"===e.type&&D.current.push(oC(window,"touchmove",$,!0),oC(window,"touchend",te,!0)),$(e,!0)},te=function(e){W.isBetweenSteps=void 0,null===T||void 0===T||T(e,W.latestValue,I?[W.latestLowerValue,W.latestValue]:void 0),ne()},ne=Gt.useCallback((function(){D.current.forEach((function(e){return e()})),D.current=[]}),[]);Gt.useEffect((function(){return ne}),[ne]);var re=Gt.useRef(null),oe=Gt.useRef(null),ie=Gt.useRef(null);!function(e,t,n,r){Gt.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return r},focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}}),[r,t,n])}(t,ie,z,I?[U,z]:void 0);var ae=W2(y?"bottom":Dp(t.theme)?"right":"left"),se=W2(y?"height":"width"),le=_?0:p,ce=G2(z,p,u),ue=G2(U,p,u),de=G2(le,p,u),pe=I?ce-ue:Math.abs(de-ce),he=Math.min(100-ce,100-de),me=I?ue:Math.min(ce,de),fe={className:j.root,ref:n},ge={className:j.titleLabel,children:l,disabled:s,htmlFor:w?void 0:G},ve=m?{className:j.valueLabel,children:C?C(z):z,disabled:s,htmlFor:s?G:void 0}:void 0,ye=I&&m?{className:j.valueLabel,children:C?C(U):U,disabled:s}:void 0,be=_?{className:j.zeroTick,style:ae(de)}:void 0,Ce={className:Gp(j.lineContainer,j.activeSection),style:se(pe)},Se={className:Gp(j.lineContainer,j.inactiveSection),style:se(he)},xe={className:Gp(j.lineContainer,j.inactiveSection),style:se(me)},_e=(0,e.__assign)({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),Ee=(0,e.__assign)((0,e.__assign)((0,e.__assign)({id:G,className:Gp(j.slideBox,g.className),ref:ie},!s&&{onMouseDown:ee,onTouchStart:ee,onKeyDown:function(e){var n=W.isAdjustingLowerValue?W.latestLowerValue:W.latestValue,r=0;switch(e.which){case Ap(Ep,t.theme):case Ip:r=-o,K(),Y(e);break;case Ap(wp,t.theme):case kp:r=o,K(),Y(e);break;case _p:n=p,K(),Y(e);break;case xp:n=u,K(),Y(e);break;default:return}Q(e,n+r),e.preventDefault(),e.stopPropagation()}}),g&&Qh(g,Xh,["id","className"])),!I&&(0,e.__assign)((0,e.__assign)({},_e),{"aria-valuemin":p,"aria-valuemax":u,"aria-valuenow":z,"aria-valuetext":X(z),"aria-label":w||l,"aria-labelledby":E})),ke=s?{}:{onFocus:function(e){W.isAdjustingLowerValue=e.target===re.current}},we=(0,e.__assign)({ref:oe,className:j.thumb,style:ae(ce)},I&&(0,e.__assign)((0,e.__assign)((0,e.__assign)({},_e),ke),{id:"max-".concat(G),"aria-valuemin":U,"aria-valuemax":u,"aria-valuenow":z,"aria-valuetext":X(z),"aria-label":"max ".concat(w||l)})),Ie=I?(0,e.__assign)((0,e.__assign)((0,e.__assign)({ref:re,className:j.thumb,style:ae(ue)},_e),ke),{id:"min-".concat(G),"aria-valuemin":p,"aria-valuemax":z,"aria-valuenow":U,"aria-valuetext":X(U),"aria-label":"min ".concat(w||l)}):void 0;return{root:fe,label:ge,sliderBox:Ee,container:{className:j.container},valueLabel:ve,lowerValueLabel:ye,thumb:we,lowerValueThumb:Ie,zeroTick:be,activeTrack:Ce,topInactiveTrack:Se,bottomInactiveTrack:xe,sliderLine:{ref:M,className:j.line}}},q2=Gt.forwardRef((function(t,n){var r=j2(t,n);return Gt.createElement("div",(0,e.__assign)({},r.root),r&&Gt.createElement(ub,(0,e.__assign)({},r.label)),Gt.createElement("div",(0,e.__assign)({},r.container),t.ranged&&(t.vertical?r.valueLabel&&Gt.createElement(ub,(0,e.__assign)({},r.valueLabel)):r.lowerValueLabel&&Gt.createElement(ub,(0,e.__assign)({},r.lowerValueLabel))),Gt.createElement("div",(0,e.__assign)({},r.sliderBox),Gt.createElement("div",(0,e.__assign)({},r.sliderLine),t.ranged&&Gt.createElement("span",(0,e.__assign)({},r.lowerValueThumb)),Gt.createElement("span",(0,e.__assign)({},r.thumb)),r.zeroTick&&Gt.createElement("span",(0,e.__assign)({},r.zeroTick)),Gt.createElement("span",(0,e.__assign)({},r.bottomInactiveTrack)),Gt.createElement("span",(0,e.__assign)({},r.activeTrack)),Gt.createElement("span",(0,e.__assign)({},r.topInactiveTrack)))),t.ranged&&t.vertical?r.lowerValueLabel&&Gt.createElement(ub,(0,e.__assign)({},r.lowerValueLabel)):r.valueLabel&&Gt.createElement(ub,(0,e.__assign)({},r.valueLabel))),Gt.createElement(dm,null))}));q2.displayName="SliderBase";var K2={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},Y2=Ng(q2,(function(t){var n,r,o,i,a,s,l,c,u,d,p,h,m,f=t.className,g=t.titleLabelClassName,v=t.theme,y=t.vertical,b=t.disabled,C=t.showTransitions,S=t.showValue,x=t.ranged,_=v.semanticColors,E=v.palette,k=Ju(K2,v),w=_.inputBackgroundCheckedHovered,I=_.inputBackgroundChecked,P=E.neutralSecondaryAlt,T=E.neutralPrimary,D=E.neutralSecondaryAlt,A=_.disabledText,R=_.disabledBackground,N=_.inputBackground,M=_.smallInputBorder,F=_.disabledBorder,B=!b&&{backgroundColor:w,selectors:(n={},n[Iu]={backgroundColor:"Highlight"},n)},O=!b&&{backgroundColor:P,selectors:(r={},r[Iu]={borderColor:"Highlight"},r)},L=!b&&{backgroundColor:I,selectors:(o={},o[Iu]={backgroundColor:"Highlight"},o)},H=!b&&{border:"2px solid ".concat(w),selectors:(i={},i[Iu]={borderColor:"Highlight"},i)},V=!t.disabled&&{backgroundColor:_.inputPlaceholderBackgroundChecked,selectors:(a={},a[Iu]={backgroundColor:"Highlight"},a)};return{root:(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([k.root,v.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[b?void 0:k.enabled],!1),[b?k.disabled:void 0],!1),[y?void 0:k.row],!1),[y?k.column:void 0],!1),[f],!1),titleLabel:[{padding:0},g],container:[k.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:(0,e.__spreadArray)((0,e.__spreadArray)([k.slideBox,!x&&Ou(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(s={},s[":active .".concat(k.activeSection)]=B,s[":hover .".concat(k.activeSection)]=L,s[":active .".concat(k.inactiveSection)]=O,s[":hover .".concat(k.inactiveSection)]=O,s[":active .".concat(k.thumb)]=H,s[":hover .".concat(k.thumb)]=H,s[":active .".concat(k.zeroTick)]=V,s[":hover .".concat(k.zeroTick)]=V,s[Iu]={forcedColorAdjust:"none"},s)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?k.showValue:void 0],!1),[C?k.showTransitions:void 0],!1),thumb:[k.thumb,x&&Ou(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:M,borderRadius:10,boxSizing:"border-box",background:N,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Dp(v)?"translateX(50%)":"translateX(-50%)"},C&&{transition:"left ".concat(cu," ").concat(iu)},b&&{borderColor:F,selectors:(l={},l[Iu]={borderColor:"GrayText"},l)}],line:[k.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[k.activeSection,{background:T,selectors:(c={},c[Iu]={backgroundColor:"WindowText"},c)},C&&{transition:"width ".concat(cu," ").concat(iu)},b&&{background:A,selectors:(u={},u[Iu]={backgroundColor:"GrayText",borderColor:"GrayText"},u)}],inactiveSection:[k.inactiveSection,{background:D,selectors:(d={},d[Iu]={border:"1px solid WindowText"},d)},C&&{transition:"width ".concat(cu," ").concat(iu)},b&&{background:R,selectors:(p={},p[Iu]={borderColor:"GrayText"},p)}],zeroTick:[k.zeroTick,{position:"absolute",background:_.disabledBorder,selectors:(h={},h[Iu]={backgroundColor:"WindowText"},h)},t.disabled&&{background:_.disabledBackground,selectors:(m={},m[Iu]={backgroundColor:"GrayText"},m)},t.vertical?{width:"16px",height:"1px",transform:Dp(v)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[k.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"});function X2(e){return function(e){if(Array.isArray(e))return Va(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||za(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Q2=Gt.createContext(void 0),Z2={},J2=(Q2.Provider,"undefined"===typeof window?__webpack_require__.g:window),$2="@griffel/";function e3(e,t){return J2[Symbol.for($2+e)]||(J2[Symbol.for($2+e)]=t),J2[Symbol.for($2+e)]}var t3=e3("DEFINITION_LOOKUP_TABLE",{}),n3="data-make-styles-bucket",r3="___",o3=r3.length+7;var i3=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function a3(e){var t=e.length;if(7===t)return e;for(var n=t;n<7;n++)e+="0";return e}function s3(e,t){return r3+a3(i3(e+t))}function l3(e,t){var n="";for(var r in e){var o=e[r];if(o){var i=Array.isArray(o);n+="rtl"===t?(i?o[1]:o)+" ":(i?o[0]:o)+" "}}return n.slice(0,-1)}function c3(e,t){var n={};for(var r in e){var o=l3(e[r],t);if(""!==o){var i=s3(o,t),a=i+" "+o;t3[i]=[e[r],t],n[r]=a}else n[r]=""}return n}function u3(e){return Array.isArray(e)?e:[e]}function d3(e,t,n){var r=[];if(n["data-make-styles-bucket"]=t,e)for(var o in n)e.setAttribute(o,n[o]);return{elementAttributes:n,insertRule:function(t){return(null===e||void 0===e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):r.push(t)},element:e,bucketName:t,cssRules:function(){return(null===e||void 0===e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map((function(e){return e.cssText})):r}}}var p3=["r","d","l","v","w","f","i","h","a","k","t","m","c"].reduce((function(e,t,n){return e[t]=n,e}),{});function h3(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="m"===e,a=i?e+o.m:e;if(!r.stylesheets[a]){var s=t&&t.createElement("style"),l=d3(s,e,km(km({},r.styleElementAttributes),i&&{media:o.m}));r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,m3(t,n,e,r,o))}return r.stylesheets[a]}function m3(e,t,n,r,o){var i=p3[n],a=function(e){return i-p3[e.getAttribute(n3)]},s=e.head.querySelectorAll("[".concat(n3,"]"));if("m"===n&&o){var l=e.head.querySelectorAll("[".concat(n3,'="').concat(n,'"]'));l.length&&(s=l,a=function(e){return r.compareMediaQueries(o.m,e.media)})}for(var c=s.length,u=c-1;u>=0;){var d=s.item(u);if(a(d)>0)return d.nextSibling;u--}return c>0?s.item(0):t?t.nextSibling:null}var f3=0,g3=function(e,t){return e<t?-1:e>t?1:0};function v3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof document?void 0:document,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.unstable_filterCSSRule,r=t.insertionPoint,o=t.styleElementAttributes,i=t.compareMediaQueries,a=void 0===i?g3:i,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:a,id:"d".concat(f3++),insertCSSRules:function(t){for(var o in t)for(var i=t[o],a=0,l=i.length;a<l;a++){var c=Ua(u3(i[a]),2),u=c[0],d=c[1],p=h3(o,e,r||null,s,d);if(!s.insertionCache[u]){s.insertionCache[u]=o;try{n?n(u)&&p.insertRule(u):p.insertRule(u)}catch(eDe){0}}}}};return s}":(".concat(["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),")");var y3=Gt.createContext(v3());var b3=Gt.createContext("ltr");var C3={};var S3=["title","primaryFill"],x3=function(e,t){var n=function(e,t){var n={},r=null,o=null;return function(i){var a=i.dir,s=i.renderer,l="ltr"===a,c=l?s.id:s.id+"r";return l?null===r&&(r=c3(e,a)):null===o&&(o=c3(e,a)),void 0===n[c]&&(s.insertCSSRules(t),n[c]=!0),l?r:o}}(e,t);return function(){var e=Gt.useContext(b3),t=Gt.useContext(y3);return n({dir:e,renderer:t})}}({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),_3=function(e,t){var n=e.title,r=e.primaryFill,o=void 0===r?"currentColor":r,i=km(km({},bH(e,S3)),{},{title:void 0,fill:o}),a=x3(),s=Gt.useContext(Q2)?Gt.useContext(Q2):Z2;return i.className=function(){for(var e=arguments,t=null,n="",r="",o=new Array(arguments.length),i=function(t){var i=e[t];if("string"===typeof i&&""!==i){var a=i.indexOf(r3);if(-1===a)n+=i+" ";else{var s=i.substr(a,o3);a>0&&(n+=i.slice(0,a)),r+=s,o[t]=s}}},a=0;a<arguments.length;a++)i(a);if(""===r)return n.slice(0,-1);var s=C3[r];if(void 0!==s)return n+s;for(var l=[],c=0;c<arguments.length;c++){var u=o[c];if(u){var d=t3[u];d&&(l.push(d[0]),t=d[1])}}var p=Object.assign.apply(Object,[{}].concat(l)),h=l3(p,t),m=s3(h,t,o);return h=m+" "+h,C3[r]=h,t3[m]=[p,t],n+h}(a.root,(null===t||void 0===t?void 0:t.flipInRtl)&&"rtl"===(null===s||void 0===s?void 0:s.textDirection)&&a.rtl,i.className),n&&(i["aria-label"]=n),i["aria-label"]||i["aria-labelledby"]?i.role="img":i["aria-hidden"]=!0,i},E3=function(e,t,n,r){var o="1em"===t?"20":t,i=Gt.forwardRef((function(e,i){var a=km(km({},_3(e,{flipInRtl:null===r||void 0===r?void 0:r.flipInRtl})),{},{ref:i,width:t,height:t,viewBox:"0 0 ".concat(o," ").concat(o),xmlns:"http://www.w3.org/2000/svg"});return Gt.createElement.apply(Gt,["svg",a].concat(X2(n.map((function(e){return Gt.createElement("path",{d:e,fill:a.fill})})))))}));return i.displayName=e,i},k3=E3("RotateLeft20Filled","20",["M12.39 12a.53.53 0 0 1-.54-.52c0-.29.24-.52.54-.52h.35c1.77 0 3.2-1.08 3.2-2.42 0-1.3-1.35-2.36-3.04-2.42H7.82L9.04 7.3c.2.2.2.53 0 .73a.54.54 0 0 1-.7.05l-.06-.05-2.12-2.08a.51.51 0 0 1 0-.73l2.12-2.08.06-.05c.21-.15.5-.13.7.05.2.2.2.53 0 .74L7.82 5.08h4.92C15.1 5.08 17 6.63 17 8.54S15.1 12 12.74 12h-.35Zm-9-3c-.21 0-.39.17-.39.38v6.87c0 .41.36.75.8.75h12.8a.4.4 0 0 0 .35-.19.37.37 0 0 0-.15-.51L3.6 9.05A.41.41 0 0 0 3.4 9Z"]),w3=E3("RotateLeft20Regular","20",["M12.39 12a.53.53 0 0 1-.54-.52c0-.29.24-.52.54-.52h.35c1.77 0 3.2-1.08 3.2-2.42 0-1.3-1.35-2.36-3.04-2.42H7.82L9.04 7.3c.2.2.2.53 0 .73a.54.54 0 0 1-.7.05l-.06-.05-2.12-2.08a.51.51 0 0 1 0-.73l2.12-2.08.06-.05c.21-.15.5-.13.7.05.2.2.2.53 0 .74L7.82 5.08h4.92C15.1 5.08 17 6.63 17 8.54S15.1 12 12.74 12h-.35ZM4 10.41V16h10.18L4 10.41ZM3.8 17a.77.77 0 0 1-.8-.75V9.38c0-.21.18-.38.4-.38.07 0 .14.02.2.05l13.2 7.25c.2.1.26.33.15.51a.4.4 0 0 1-.35.19H3.8Z"]),I3=E3("RotateRight20Regular","20",["M7.61 12c.3 0 .54-.23.54-.52a.53.53 0 0 0-.54-.52h-.35c-1.77 0-3.2-1.08-3.2-2.42 0-1.3 1.35-2.36 3.04-2.42h5.08L10.96 7.3c-.2.2-.2.53 0 .73.2.18.49.2.7.05l.06-.05 2.12-2.08c.21-.2.21-.53 0-.73l-2.12-2.08-.06-.05a.54.54 0 0 0-.7.05c-.2.2-.2.53 0 .74l1.22 1.19H7.26C4.9 5.08 3 6.63 3 8.54S4.9 12 7.26 12h.35ZM16 10.41V16H5.82L16 10.41Zm.2 6.59c.44 0 .8-.34.8-.75V9.38c0-.21-.18-.38-.4-.38a.41.41 0 0 0-.2.05L3.2 16.3a.37.37 0 0 0-.15.51c.07.12.2.19.35.19h12.8Z"]),P3=(0,D2.N)((function(e,t){return Wd({sliderContainer:{flexGrow:1,marginTop:2,marginBottom:24,selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},sliderButton:{selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},editControls:{paddingTop:10,display:"flex",flexDirection:"row",width:"100%",height:32},root:yc({selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},null===t||void 0===t?void 0:t.root),slideBox:yc({padding:"0 10px"},null===t||void 0===t?void 0:t.slideBox),thumb:yc({border:"2px solid ".concat(e.palette.themePrimary)},null===t||void 0===t?void 0:t.thumb),activeThumb:yc({backgroundColor:e.palette.themePrimary},null===t||void 0===t?void 0:t.activeThumb),inactiveThumb:yc({backgroundColor:e.palette.themeLight},null===t||void 0===t?void 0:t.inactiveThumb),announcement:{position:"absolute",width:1,height:1,margin:-1,overflowX:"hidden",overflowY:"hidden"}})})),T3=function(e){return"".concat(Math.round(e),"\xb0")},D3=function(e){return"".concat(Math.round(e))},A3=function(e){var t,n,r=R2(),o=P3(r,e.styles),i=e.onImageRotate,a=e.setBaseAngleForStraightening,s=Gt.useCallback((function(t){var n=t-e.imageRotationAngle+e.baseAngleForStraightening;i(n)}),[i,e.baseAngleForStraightening,e.imageRotationAngle]),l=Gt.useCallback((function(){i(90),a(e.baseAngleForStraightening+90)}),[i,a,e.baseAngleForStraightening]),c=Gt.useCallback((function(){e.onImageRotate(-90),e.setBaseAngleForStraightening(e.baseAngleForStraightening-90)}),[e]),u=null!==(n=null===(t=e.imagePositionInformationString)||void 0===t?void 0:t.call(e,{p0:T3(e.imageRotationAngle)}))&&void 0!==n?n:T3(e.imageRotationAngle);return Gt.createElement("div",{className:o.editControls},Gt.createElement(qE,{className:o.sliderButton,title:e.counterClockwiseString,ariaLabel:e.counterClockwiseString,onClick:c,onRenderIcon:R3,disabled:e.isPhotoUploading}),Gt.createElement(KS,{content:u,styles:{root:o.sliderContainer}},Gt.createElement(Y2,{styles:{root:o.root,slideBox:o.slideBox,thumb:o.thumb,activeSection:o.activeThumb,inactiveSection:o.inactiveThumb},min:-45,max:45,step:1,value:e.imageRotationAngle-e.baseAngleForStraightening,showValue:!1,disabled:e.isPhotoUploading,originFromZero:!0,onChange:s,ariaValueText:D3,"aria-label":e.rotateString})),Gt.createElement(qE,{className:o.sliderButton,disabled:e.isPhotoUploading,title:e.clockwiseString,ariaLabel:e.clockwiseString,onClick:l,onRenderIcon:N3}),Gt.createElement("div",{"aria-live":"assertive",role:"status",className:o.announcement},T3(e.imageRotationAngle)))};function R3(){return Gt.createElement("span",null,Gt.createElement(w3,null))}function N3(){return Gt.createElement("span",null,Gt.createElement(I3,null))}var M3=function(e){return"".concat(e,"%")},F3=function(e,t){return Math.round(100*(e*(t-1)+1))},B3=function(e){var t,n,r=Gt.useState(!1),o=r[0],i=r[1],a=Gt.useRef(0),s=e.zoom,l=Gt.useCallback((function(t,n,r){var o,i;!e.image||e.maximumScale<1||isNaN(t)?null===r||void 0===r||r.stopPropagation():s((o=t,i=e.maximumScale,Math.round((o/100-1)/(i-1)*100)/100-e.relativeScale),.5*e.canvasSize,.5*e.canvasSize)}),[e.image,e.maximumScale,e.relativeScale,s,e.canvasSize]),c=Gt.useCallback((function(t){s(t,e.canvasSize/2,e.canvasSize/2),i(!0),a.current&&clearTimeout(a.current),a.current=window.setTimeout((function(){return i(!1)}),3e3)}),[s,a,e.canvasSize]);Gt.useEffect((function(){return function(){return clearTimeout(a.current)}}),[a]);var u=R2(),d=P3(u,e.styles),p=N1(2*e.stepSize,.1,.2),h=F3(0,e.maximumScale),m=F3(1,e.maximumScale),f=F3(e.relativeScale,e.maximumScale),g=F3(N1(e.stepSize,.05,.1),e.maximumScale)-F3(0,e.maximumScale),v=e.maximumScale<=1?e.zoomAtMaxString:null!==(n=null===(t=e.imageScaleInformationString)||void 0===t?void 0:t.call(e,{p0:M3(f)}))&&void 0!==n?n:M3(f);return Gt.createElement("div",{className:d.editControls},Gt.createElement(qE,{className:d.sliderButton,iconProps:{iconName:"CalculatorSubtract"},title:e.zoomOutString,ariaLabel:e.zoomOutString,onClick:function(){return c(-p)},disabled:e.isPhotoUploading||e.zoomOutDisabled}),Gt.createElement(KS,{content:v,styles:{root:d.sliderContainer}},Gt.createElement(Y2,{styles:{root:d.root,slideBox:d.slideBox,thumb:d.thumb,activeSection:d.activeThumb,inactiveSection:d.inactiveThumb},ariaValueText:M3,ariaLabel:e.zoomString,min:h,max:m,disabled:e.isPhotoUploading||e.maximumScale<=1,step:g,value:f,showValue:!1,onChange:l})),Gt.createElement(qE,{className:d.sliderButton,iconProps:{iconName:"CalculatorAddition"},title:e.zoomInString,ariaLabel:e.zoomInString,onClick:function(){return c(p)},disabled:e.isPhotoUploading||e.zoomInDisabled}),o&&Gt.createElement("div",{"aria-live":"assertive",role:"status",className:d.announcement},M3(F3(e.relativeScale,e.maximumScale))))},O3=E3("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),L3=Ku((function(e,t){var n=e.palette;return Wd({editPivot:{height:46},link:yc({lineHeight:10,width:46,height:46,padding:0,marginRight:0,color:n.neutralSecondary},null===t||void 0===t?void 0:t.link),linkSelected:yc({color:n.neutralDark,fontWeight:600},null===t||void 0===t?void 0:t.linkSelected),button:yc({flex:"0 1 100%",height:44},null===t||void 0===t?void 0:t.button),buttonText:yc({fontSize:10,marginTop:5},null===t||void 0===t?void 0:t.buttonText)})})),H3=function(e){var t=R2(),n=L3(t,e.styles),r=e.setSelectedKey,o=Gt.useCallback((function(e){var t;(null===(t=null===e||void 0===e?void 0:e.props)||void 0===t?void 0:t.itemKey)&&r(e.props.itemKey)}),[r]),i=Gt.useCallback((function(t){if(!(null===t||void 0===t?void 0:t.itemKey))return null;var r=t.itemKey,o="Rotate"===r?[Gt.createElement(k3,{key:r}),e.rotateString]:[Gt.createElement(O3,{key:r}),e.zoomString],i=o[0],a=o[1];return Gt.createElement("span",{className:n.button},i,Gt.createElement("div",{className:n.buttonText},a))}),[e.rotateString,e.zoomString,n.button,n.buttonText]);return Gt.createElement(mQ,{styles:{root:n.editPivot,link:n.link,linkIsSelected:n.linkSelected},"aria-label":e.pivotString,selectedKey:e.selectedKey,onLinkClick:o,headersOnly:!0,"aria-disabled":e.isPhotoUploading},Gt.createElement(aQ,{itemKey:"Zoom",onRenderItemLink:i}),Gt.createElement(aQ,{itemKey:"Rotate",onRenderItemLink:i}))},V3=function(){return V3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V3.apply(this,arguments)},z3=Ku((function(e,t,n,r){return Wd({editControlsPlaceholderSpace:{height:32},editCanvas:yc({backgroundColor:e.palette.neutralLight,cursor:t?"move":"inherit"},null===n||void 0===n?void 0:n.root),isDropActive:{outline:"1px solid purple"},invisible:V3({clip:"rect(1px, 1px, 1px, 1px)"},{height:1,overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:1}),canvasContainer:{margin:r?"0 0 0 auto":"0 auto",display:"flex",alignItems:"center",flexDirection:"column",width:256,position:"relative"},textboy:yc({color:e.palette.white,position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",top:0,left:0,width:256,height:256},null===n||void 0===n?void 0:n.textboy),initials:yc({fontSize:128,lineHeight:128},null===n||void 0===n?void 0:n.initials)})})),U3=function(e){e.stopPropagation(),e.preventDefault()},W3=function(e){return"targetTouches"in e?[e.targetTouches[0].clientX,e.targetTouches[0].clientY]:[e.clientX,e.clientY]};var G3=x1((function(e){return _2.getSelectors(e).getEditCanvasState()}),(function(e){return{onReset:function(){return e(o2())},onKeyboardEvent:function(t){return e(J1({xpos:t.xpos,ypos:t.ypos}))},onZoomEvent:function(t){return e(e2({absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,zoomOutDisabled:t.zoomOutDisabled,zoomInDisabled:t.zoomInDisabled,xpos:t.xpos,ypos:t.ypos}))},onImageLoaded:function(t){return e(t2({naturalMin:t.naturalMin,naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,stepSize:t.stepSize,maximumScale:t.maximumScale,orientation:t.orientation,imageRotationAngle:t.imageRotationAngle,image:t.image,zoomInDisabled:t.zoomInDisabled,initialRender:t.initialRender,xpos:t.xpos,ypos:t.ypos,absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,imageUpdated:t.imageUpdated}))},onDragStart:function(t){return e(n2({moving:t.moving,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onDragProgress:function(t){return e(r2({moving:t.moving,xpos:t.xpos,ypos:t.ypos,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onEmptyImageRendered:function(){return e(i2())},onRotateEvent:function(t){return e($1({imageRotationAngle:t.imageRotationAngle}))}}}))((function(e){var t,n=Gt.useRef(!1),r=Gt.useRef(null),o=Gt.useRef(null),i=tP(e.personDisplayName,Dp()),a=!e.image||e.maximumScale<=1||e.progress>0,s=e.image,l=e.progress>0&&e.progress<1,c=!a||e.naturalHeight!==e.naturalWidth,u=R2(),d=z3(u,c,e.styles.canvas,e.isPhotoListPresent),p=Gt.useState(!1),h=p[0],m=p[1],f=Gt.useState(0),g=f[0],v=f[1],y=Gt.useState(),b=y[0],C=y[1],S=Gt.useCallback((function(e){return v(e%360)}),[]),x=e.onRefocus,_=e.onZoomEvent,E=e.onError,k=e.onDragProgress,w=e.onReset,I=e.onDragStart,P=e.onCanvasUpdated,T=e.onEmptyImageRendered,D=e.onFileSelected,A=e.onImageLoaded,R=e.onKeyboardEvent,N=e.onRotateEvent,M=e.isUploadedPhotoTooSmall,F=Gt.useCallback((function(t,n){return"Fit"===e.imageScaling&&n<I1?(I1-n)/2:t>0?0:t+n<I1?I1-n:t}),[e.imageScaling]),B=Gt.useCallback((function(t,n,r,o){var i=t+(n-t)*o/e.absoluteScale,a=o*r/e.maximumScale;return F(i,a)}),[F,e.absoluteScale,e.maximumScale]),O=Gt.useCallback((function(t,n,r){if(!(!e.image||e.maximumScale<1||isNaN(t)||"Rotate"===b)){var o=Math.min(1,Math.max(0,e.relativeScale+t));if(o!==e.relativeScale){var i=Math.exp(o*Math.log(e.maximumScale)),a=i<=1,s=i>=e.maximumScale,l=B(n,e.xpos,e.naturalWidth,i),c=B(r,e.ypos,e.naturalHeight,i);_({absoluteScale:i,relativeScale:o,zoomOutDisabled:a,zoomInDisabled:s,xpos:l,ypos:c})}}}),[e.image,e.maximumScale,e.relativeScale,e.xpos,e.naturalWidth,e.ypos,e.naturalHeight,B,_,b]),L=Gt.useCallback((function(t){var n=(e.imageRotationAngle+t)%360;N({imageRotationAngle:n})}),[e.imageRotationAngle,N]),H=Gt.useCallback((function(t){var n,r,o,i,a,s,l,c;if(e.image&&!(e.maximumScale<1)){var u="",d=e.xpos.toFixed(1),p=e.ypos.toFixed(1);switch(t.key){case"+":return O(e.stepSize,128,128);case"-":return O(-1*e.stepSize,128,128);case"ArrowLeft":u=null===(r=(n=e.strings).leftArrowKeyAriaLabel)||void 0===r?void 0:r.call(n,{p0:d,p1:p});break;case"ArrowRight":u=null===(i=(o=e.strings).rightArrowKeyAriaLabel)||void 0===i?void 0:i.call(o,{p0:d,p1:p});break;case"ArrowUp":u=null===(s=(a=e.strings).upArrowKeyAriaLabel)||void 0===s?void 0:s.call(a,{p0:d,p1:p});break;case"ArrowDown":u=null===(c=(l=e.strings).downArrowKeyAriaLabel)||void 0===c?void 0:c.call(l,{p0:d,p1:p})}t.currentTarget.setAttribute("aria-label","".concat(u));var h=R1((t.which===Ep?1:t.which===wp&&-1)||0,(t.which===kp?1:t.which===Ip&&-1)||0,e.orientation,e.imageRotationAngle),m=h.x,f=h.y,g=m*e.naturalWidth/100,v=f*e.naturalHeight/100,y=F(e.xpos+g,e.naturalWidth*e.absoluteScale/e.maximumScale),b=F(e.ypos+v,e.naturalHeight*e.absoluteScale/e.maximumScale);R({xpos:y,ypos:b})}}),[e.stepSize,e.orientation,e.image,e.naturalWidth,e.naturalHeight,e.xpos,e.ypos,e.absoluteScale,e.maximumScale,R,e.imageRotationAngle,O,F,e.strings]),V=Gt.useCallback((function(t){var o,i,a,s=1;"Fit"===e.imageScaling?(s=1.2,i=Math.max(t.naturalWidth,t.naturalHeight),a=i*s/I1):(i=Math.min(t.naturalWidth,t.naturalHeight),a=i/I1);var l=function(e){return-.5*(e/a-I1)},c=Math.min(1,Math.max(.01,I1/(2*Math.max(t.naturalWidth,t.naturalHeight))));S(0),!e.initialRender&&a<1&&(t.naturalHeight<48||t.naturalWidth<48?setTimeout((function(){return E("IMAGE_TOO_SMALL_ERROR")}),0):setTimeout((function(){return E("IMAGE_TOO_SMALL_WARNING")}),0)),M(t.naturalHeight<48||t.naturalWidth<48),n.current||A({naturalMin:i,naturalWidth:t.naturalWidth*s,naturalHeight:t.naturalHeight*s,stepSize:c,maximumScale:a,orientation:z2(t.src),imageRotationAngle:0,image:t,zoomInDisabled:!1,initialRender:!1,xpos:l(t.naturalWidth*s),ypos:l(t.naturalHeight*s),absoluteScale:1,relativeScale:0,imageUpdated:!1}),!e.initialRender&&(null===(o=r.current)||void 0===o||o.focus())}),[e.initialRender,E,M,A,n,r,e.imageScaling,S]),z=Gt.useCallback((function(t){if(t){var n=new Image;n.onload=function(){return V(n)},n.src=t,n.alt=e.fileName||""}else w(),""===t&&T()}),[w,V,T,e.fileName]),U=Gt.useCallback((function(t){if(e.image){U3(t);var n=t.deltaY>0?-1:1,r=R1(t.nativeEvent.offsetX,t.nativeEvent.offsetY,e.orientation,e.imageRotationAngle),o=r.x,i=r.y;O(N1(e.stepSize,.05,.1)*n,o,i)}}),[e.image,e.orientation,e.stepSize,O,e.imageRotationAngle]),W=Gt.useCallback((function(t){var n=W3(t),r=R1(n[0],n[1],e.orientation,e.imageRotationAngle),o=r.x,i=r.y;e.image&&(U3(t),I({moving:!0,lastMouseX:o,lastMouseY:i}))}),[e.image,I,e.orientation,e.imageRotationAngle]),G=Gt.useCallback((function(t){if(U3(t),e.image)if(["mousemove","touchmove"].includes(t.type)&&e.moving){var n=W3(t),r=R1(n[0],n[1],e.orientation,e.imageRotationAngle),o=r.x,i=r.y,a=F(e.xpos+(o-e.lastMouseX),e.naturalWidth*e.absoluteScale/e.maximumScale),s=F(e.ypos+(i-e.lastMouseY),e.naturalHeight*e.absoluteScale/e.maximumScale);k({moving:!0,xpos:a,ypos:s,lastMouseX:o,lastMouseY:i})}else k({moving:!1,xpos:e.xpos,ypos:e.ypos,lastMouseX:e.lastMouseX,lastMouseY:e.lastMouseY})}),[e.orientation,e.image,e.moving,e.xpos,e.ypos,e.lastMouseX,e.lastMouseY,e.naturalWidth,e.naturalHeight,e.absoluteScale,e.maximumScale,F,k,e.imageRotationAngle]),j=Gt.useCallback((function(e){U3(e),m(!0)}),[m]),q=Gt.useCallback((function(e){U3(e),m(!1)}),[m]),K=Gt.useCallback((function(t){q(t),t.dataTransfer&&D(t.dataTransfer.files[0],e.isPhotoListPresent)}),[q,D,e.isPhotoListPresent]),Y=Gt.useCallback((function(){var t=r.current;if(t&&o.current){var n=t.getContext("2d");if(n){var i=window.getComputedStyle(t);n.fillStyle=i.backgroundColor||"#ffffff",n.fillRect(0,0,1,1);var a=n.getImageData(0,0,1,1).data,s="rgba(".concat(a[0],", ").concat(a[1],", ").concat(a[2],", 0.6)"),l="rgba(".concat(a[0],", ").concat(a[1],", ").concat(a[2],", 1)"),c=gP({text:e.personDisplayName});""===e.dataUrl?(n.fillStyle=c,o.current.style.display="flex"):(n.fillStyle=e.customBackgroundColor||P1,o.current.style.display="none"),n.fillRect(0,0,I1,I1),e.image&&A1(n,I1,e.imageRotationAngle,e.orientation,e.image,(function(t,n){return t.drawImage(n,e.xpos,e.ypos,e.naturalWidth*e.absoluteScale/e.maximumScale,e.naturalHeight*e.absoluteScale/e.maximumScale)})),null===P||void 0===P||P(t),"Circle"===e.imageCropShape&&(n.save(),n.beginPath(),n.rect(0,0,I1,I1),n.arc(128,128,125,0,2*Math.PI,!0),n.clip(),n.fillStyle=s,n.fillRect(0,0,I1,I1),n.restore(),n.save(),n.beginPath(),n.arc(128,128,126,0,2*Math.PI,!0),n.lineWidth=2,n.strokeStyle=l,n.stroke(),n.restore(),n.save(),n.beginPath(),n.lineWidth=4,n.fillStyle=T1,n.strokeStyle=T1,n.arc(128,128,125,-Math.PI/2,2*e.progress*Math.PI-Math.PI/2,!1),1===e.progress&&n.fill(),n.stroke(),n.restore())}else E("UNSUPPORTED_BROWSER")}}),[e.personDisplayName,e.dataUrl,e.image,e.imageRotationAngle,e.orientation,e.xpos,e.ypos,e.naturalWidth,e.naturalHeight,e.absoluteScale,e.maximumScale,e.progress,E,e.customBackgroundColor,P,e.imageCropShape,o]);Gt.useEffect((function(){return Y(),function(){n.current=!0}}),[]),Gt.useEffect((function(){Y()})),Gt.useEffect((function(){1===e.progress&&x()}),[e.progress,x]),Gt.useEffect((function(){e.dataUrl&&C(a?"Rotate":"Zoom")}),[e.dataUrl,a]),Gt.useEffect((function(){e.dataUrl?e.imageUpdated&&z(e.dataUrl):e.image&&(w(),T())}),[e.dataUrl,e.imageUpdated,e.image,w,T,a,z]);var X=Gt.useMemo((function(){var t,n;return e.image?1===e.progress?e.strings.success:e.fileName?null===(n=(t=e.strings).photoSelected)||void 0===n?void 0:n.call(t,{p0:e.fileName}):e.strings.dropZoneImageAriaLabel:e.strings.dropZoneEmptyAriaLabel}),[e.image,e.progress,e.fileName,e.strings]),Q=Gt.useRef((0,V2.Z)());return Gt.createElement("div",{className:d.canvasContainer},Gt.createElement("div",{"aria-live":"polite"},Gt.createElement("canvas",{className:Gp(d.editCanvas,(t={},t[d.isDropActive]=h,t)),role:"img",tabIndex:s?0:-1,ref:r,width:I1,height:I1,onKeyDown:H,"aria-label":X,onDragEnter:j,onDrop:K,onDragLeave:q,onDragOver:U3,onMouseDown:W,onMouseMove:G,onMouseUp:G,onMouseLeave:G,onWheel:U,onTouchStart:W,onTouchMove:G,onTouchEnd:G,"aria-describedby":Q.current}),e.image&&e.fileName&&Gt.createElement("img",{alt:e.fileName,id:Q.current,"aria-hidden":!0,hidden:!0}),Gt.createElement("div",{className:d.textboy,ref:o,onDragEnter:j,onDragLeave:q,onDragOver:U3,onDrop:K},Gt.createElement("div",{className:d.initials},i),Gt.createElement("div",null,e.strings.dropZone))),Gt.createElement("div",{role:"region","aria-live":"assertive","aria-atomic":!0},1===e.progress?Gt.createElement("div",{className:d.textboy},Gt.createElement("span",{className:d.invisible},e.strings.success),Gt.createElement(Xx,{className:d.initials,iconName:"CheckMark"})):null),s?Gt.createElement(Gt.Fragment,null,"Zoom"!==b&&e.enableImageRotation?Gt.createElement(A3,{styles:e.styles.slider,isPhotoUploading:l,clockwiseString:e.strings.clockwise,counterClockwiseString:e.strings.counterClockwise,rotateString:e.strings.rotate,baseAngleForStraightening:g,imagePositionInformationString:e.strings.imagePositionInformationString,setBaseAngleForStraightening:S,onImageRotate:L,imageRotationAngle:e.imageRotationAngle,panEnabled:c}):Gt.createElement(B3,{styles:e.styles.slider,zoomOutString:e.strings.zoomOut,zoomInString:e.strings.zoomIn,zoomString:e.strings.zoom,zoomAtMaxString:e.strings.zoomAtMax||"",imageScaleInformationString:e.strings.imageScaleInformationString,isPhotoUploading:l,canvasSize:I1,image:e.image,maximumScale:e.maximumScale,stepSize:e.stepSize,zoomOutDisabled:e.zoomOutDisabled,relativeScale:e.relativeScale,zoomInDisabled:e.zoomInDisabled,panEnabled:c,zoom:O}),e.enableImageRotation&&Gt.createElement(H3,{styles:e.styles.pivot,zoomAtMaxString:e.strings.zoomAtMax,isPhotoUploading:l,maximumScale:e.maximumScale,selectedKey:b,setSelectedKey:C,rotateString:e.strings.rotate,zoomString:e.strings.zoom,pivotString:e.strings.pivot})):Gt.createElement("div",{className:d.editControlsPlaceholderSpace,"aria-live":"polite"}))}));var j3=void 0;try{j3=window}catch(eDe){}var q3,K3=0,Y3=1,X3=2,Q3="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),Z3={};try{Z3=window||{}}catch(Il){}var J3=function(){function t(t,n){var r,o,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?K3:Y3,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(r=null===n||void 0===n?void 0:n.classNameToArgs)&&void 0!==r?r:this._classNameToArgs,this._counter=null!==(o=null===n||void 0===n?void 0:n.counter)&&void 0!==o?o:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===n||void 0===n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null===n||void 0===n?void 0:n.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===n||void 0===n?void 0:n.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(q3=Z3.__stylesheet__)||q3._lastStyleElement&&q3._lastStyleElement.ownerDocument!==document){var e=(null===Z3||void 0===Z3?void 0:Z3.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);q3=n,Z3.__stylesheet__=n}return q3},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,e.__assign)((0,e.__assign)({},this._config),t)},t.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},t.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},t.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},t.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},t.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},t.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},t.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==K3?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case Y3:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(eDe){}break;case X3:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},t.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),Q3||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},t.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},t}(),$3=function(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof j3){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:j3}}()||{};void 0===$3.__currentId__&&($3.__currentId__=0);var e4=!1;function t4(e){void 0===e&&(e=0),$3.__currentId__=e}function n4(e,t){var n=Gt.useRef(t);return n.current||(n.current=function(e){if(!e4){var t=J3.getInstance();t&&t.onReset&&t.onReset(t4),e4=!0}return(void 0===e?"id__":e)+$3.__currentId__++}(e)),n.current}var r4=__webpack_require__(66759);var o4={};var i4,a4,s4=(a4={},(i4="@1js/create-shared-react-context")in o4||(o4[i4]=a4),{get:function(){return o4[i4]},set:function(e){return o4[i4]=e}});var l4=function(e,t){var n=s4.get();return n[t]||(n[t]=Gt.createContext(e))}({lookupString:function(e){return function(){return e}}},"LocalizationComponentsStringProvider");l4.Provider;function c4(e,t){return function(e,t,n){return(0,r4.me)()?t(n):e.lookupString(t.key)(n)}(Gt.useContext(l4),e,t)}var u4=(0,r4.li)("accessibility-utils-ui.accessibility-utils.positionInSet");function d4(e){var t=e.posInSet,n=e.setSize,r=e.onRenderDescribedElement,o=function(e,t){return c4(u4,{pos:e.toString(),size:t.toString()})}(t,n),i=n4();return Gt.createElement(Gt.Fragment,null,Gt.createElement("div",{id:i,hidden:!0},o),r(i))}var p4=__webpack_require__(61148),h4=__webpack_require__(13019),m4=function(){return{}};function f4(t,n){return p4.V.apply(void 0,(0,e.__spreadArray)([function(e){var r=t[e];return(Array.isArray(r)?r:[r]).concat(n[e])}],(0,h4.keys)(t),!1))}var g4={};var v4=function(e){return function(e){return Ku((function(t,n){return void 0===n&&(n=m4),Wd(f4(e(t),n(t)))}))}((function(t){return Wd({listItem:yc({height:56,width:56,marginBottom:10,border:"none",boxSizing:"border-box",display:"flex",padding:0,background:"transparent",cursor:"pointer",selectors:{"&:focus":{outline:"2px solid ".concat(t.palette.themePrimary)},"&:hover":{opacity:.9,border:"1px solid ".concat(t.palette.neutralLighter)}}},null===e||void 0===e?void 0:e.listItem),lastListItem:{marginBottom:0},listItemSelected:yc({outline:"2px solid ".concat(t.palette.themePrimary),opacity:.9},null===e||void 0===e?void 0:e.listItemSelected),listItemWithBackground:{background:t.palette.neutralLighter},photoListItemImage:{height:"100%",width:"100%"},emptyListIcon:yc({margin:"auto",fontSize:"24px",color:t.palette.neutralSecondaryAlt},null===e||void 0===e?void 0:e.emptyListIcon)})}))},y4=function(e){var t,n=R2(),r=v4(e.styles)(n);return Gt.createElement("button",{className:Gp(r.listItem,(t={},t[r.listItemSelected]=e.index===e.selectedIndex,t[r.listItemWithBackground]=e.isEmptyPhoto,t[r.lastListItem]=e.isLastPhoto,t)),onClick:function(){var t;e.onClickHandler({selectedIndex:e.index,imageUrl:e.imageUrl||"",fileName:"".concat(e.photoListImageAriaLabel||""," ").concat(e.index+1).trim()}),e.isEmptyPhoto&&(null===(t=e.onPhotoRemoved)||void 0===t||t.call(e))},"aria-describedby":e.ariaDescribedBy},e.isEmptyPhoto?Gt.createElement(qx,{"aria-label":e.photoListEmptyImageAriaLabel,iconName:"Contact",className:r.emptyListIcon}):Gt.createElement(Ux,{src:e.imageUrl,className:r.photoListItemImage,alt:e.photoListImageAriaLabel,imageFit:Rx.cover}))},b4=function(e){return function(e){return Ku((function(t){return void 0===t&&(t=g4),Wd(f4(e,t))}))}(Wd({root:yc({height:256,width:56,padding:"0px 25px 0px 12px",overflowY:"auto",margin:0,listStyle:"none"},null===e||void 0===e?void 0:e.root)}))()},C4=function(e){var t=b4(e.styles),n=e.imageUrls,r=e.showEmptyPhoto?n.length:n.length-1;return Gt.createElement("ul",{className:t.root,"aria-label":e.strings.photoListAriaLabel},n.map((function(t,n){return Gt.createElement(d4,{posInSet:n+1,setSize:r+1,key:n,onRenderDescribedElement:function(o){return Gt.createElement("li",{key:n},Gt.createElement(y4,{key:n,styles:e.styles,imageUrl:t,index:n,selectedIndex:e.selectedIndex,isLastPhoto:n===r,isEmptyPhoto:!1,photoListImageAriaLabel:e.strings.photoListImageAriaLabel,onClickHandler:e.onPhotoListImageSelected,ariaDescribedBy:o}))}})})),!!e.showEmptyPhoto&&Gt.createElement(d4,{posInSet:r+1,setSize:r+1,onRenderDescribedElement:function(t){return Gt.createElement("li",null,Gt.createElement(y4,{index:n.length,selectedIndex:e.selectedIndex,isLastPhoto:!0,isEmptyPhoto:!0,styles:e.styles,photoListEmptyImageAriaLabel:e.strings.photoListEmptyImageAriaLabel,onClickHandler:e.onPhotoListImageSelected,onPhotoRemoved:e.onPhotoRemoved,ariaDescribedBy:t}))}}))},S4=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x4=function(){return x4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x4.apply(this,arguments)},_4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S4(t,e),t.prototype.componentDidMount=function(){this.props.photoListLoadPhotos(this.props.photoListSelectedIndex||0,this.props.photoListImageUrls)},t.prototype.render=function(){return Gt.createElement(C4,x4({},this.props))},t}(Gt.Component);var E4=x1((function(e){return _2.getSelectors(e).getPhotoListState()}),(function(e){return{photoListLoadPhotos:function(t,n){e(c2({selectedIndex:t,imageUrls:n}))},onPhotoListImageSelected:function(t){!function(e,t,n,r){if(!t)return e(j1({isPhotoListPresent:!0})),void e(s2({selectedIndex:n}));if(t.startsWith("data:image/"))return e(q1({dataUrl:t,isPhotoListPresent:!0,fileName:r})),e(a2()),void e(s2({selectedIndex:n}));var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas");t.width=o.naturalWidth,o.alt=r||"",t.height=o.naturalHeight;var i=t.getContext("2d");i&&(i.drawImage(o,0,0),e(q1({dataUrl:k1(t,!1),isPhotoListPresent:!0,fileName:r})),e(a2()),e(s2({selectedIndex:n})))},o.src=t}(e,t.imageUrl,t.selectedIndex,t.fileName)}}}))(_4),k4=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w4=function(){return w4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w4.apply(this,arguments)},I4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P4=function(e){function t(t){return 1/(1+Math.exp(-e*t))-.5}var n=.5/t(1);return function(e){return e<=0?0:e>1?1:n*t(2*e-1)+.5}}(5),T4=function(e){function t(t){var n=e.call(this,t)||this;return n.focusTrap=null,n.primaryButton=null,n.uploadFileButton=null,n.onCanvasUpdated=function(e){var t,r;n.props.isCanvasDirty&&n.props.onImageChanged?n.props.onImageChanged(n.props.latestImageStats):null===(r=(t=n.props).onCanvasUpdated)||void 0===r||r.call(t,e,n.props.isCanvasDirty)},n.handleOnRemoveButtonClicked=function(){n.props.loadedEmptyImage(Array.isArray(n.props.personImageUrl)),n.uploadFileButton&&n.uploadFileButton.focus()},n.handleOnSaveButtonClicked=function(){if("SUCCESS"===n.props.status)return n.props.onDone(),n.props.onDismiss();n.props.startUpload()},n.handleUploadAnimation=function(){"IN_PROGRESS"===n.props.status&&n.props.onUploadProgress(Date.now())},n.handleOnCancelButtonClicked=function(){n.props.onCancel(),n.props.onDismiss()},n.handleOnCloseButtonClicked=function(){n.props.onClose(),n.props.onDismiss()},n.getFocusTrapRef=n.getFocusTrapRef.bind(n),n.getButtonRef=n.getButtonRef.bind(n),n.getUploadButtonRef=n.getUploadButtonRef.bind(n),n}return k4(t,e),t.prototype.getFocusTrapRef=function(){var e=this,t=function(t){return e.focusTrap=t};return t.current=null,t},t.prototype.getButtonRef=function(){var e=this,t=function(t){return e.primaryButton=t};return t.current=null,t},t.prototype.getUploadButtonRef=function(){var e=this,t=function(t){return e.uploadFileButton=t};return t.current=null,t},t.prototype.render=function(){var e,t,n=this,r=this.getWarningText(this.props.warning);return Gt.createElement(O2,{styles:this.props.styles.picker,onDismiss:this.props.onDismiss,focusTrapRef:this.getFocusTrapRef(),hideTitleText:!!this.props.hideUploadHeader,isComponentInline:!!this.props.isComponentInline,titleText:this.props.strings.uploadHeader,imageEditorDescription:this.props.strings.imageEditorDescription,hideEndActions:this.props.hideButtons,closeIcon:Gt.createElement(T2,{buttonType:"Icon",iconName:"Cancel",onClick:this.handleOnCloseButtonClicked,dataLogName:"PhotoPickerClose",title:this.props.strings.closeIconTitle,ariaLabel:this.props.strings.closeIconAriaLabel}),infoBar:r?Gt.createElement(F2,{styles:this.props.styles.infoBar,warning:this.props.warning,warningText:r,onDismiss:this.props.onDismissInfoBar,dismissButtonAriaLabel:this.props.strings.infoBarDismissButtonAriaLabel}):null,uploadPhoto:this.props.hideUploadPhotoButton&&this.props.renderCustomUploadButton?null:Gt.createElement(H2,{styles:this.props.styles.uploadPhoto,buttonRef:this.getUploadButtonRef(),onFileSelected:this.props.onFileSelected,onUploadNewPhoto:this.props.onUploadNewPhoto,uploadText:this.props.strings.upload,isPhotoListPresent:Array.isArray(this.props.personImageUrl)}),editCanvas:Gt.createElement(G3,{dataUrl:this.props.dataUrl,enableImageRotation:this.props.enableImageRotation,fileName:this.props.fileName,personDisplayName:this.props.personDisplayName,progress:this.props.progress,warning:r,strings:this.props.strings,onError:this.props.onError,isUploadedPhotoTooSmall:function(e){return n.props.onUploadedPhotoTooSmall(e)},styles:this.props.styles,onFileSelected:this.props.onFileSelected,onRefocus:function(){return n.onFocusChange()},onUpdate:this.props.onImageUpdated,imageCropShape:this.props.imageCropShape||"Circle",imageScaling:this.props.imageScaling||"Fill",onCanvasUpdated:this.onCanvasUpdated,isComponentInline:!!this.props.isComponentInline,customBackgroundColor:this.props.customBackgroundColor,isPhotoListPresent:Array.isArray(this.props.personImageUrl)}),photoList:Array.isArray(this.props.personImageUrl)?Gt.createElement(E4,{styles:this.props.styles.list,photoListImageUrls:this.props.personImageUrl,photoListSelectedIndex:this.props.photoListSelectedIndex,showEmptyPhoto:!!this.props.showPhotoListEmptyPhoto,strings:this.props.strings,onPhotoRemoved:function(){var e;null===(e=n.uploadFileButton)||void 0===e||e.focus()}}):null,applyButton:Gt.createElement(T2,{buttonType:"Primary",buttonLabel:this.getSaveButtonText(this.props.status),dataLogName:"PhotoPickerOkay",onClick:this.handleOnSaveButtonClicked,disabled:this.getIsPrimaryButtonDisabled(),buttonRef:this.getButtonRef()}),cancelButton:this.props.progress>0?null:Gt.createElement(T2,{buttonType:"Default",buttonLabel:this.props.strings.cancel,dataLogName:"PhotoPickerCancel",onClick:this.handleOnCancelButtonClicked}),removeButton:this.props.isImageRemovable?Gt.createElement(T2,{buttonType:"Action",buttonLabel:this.props.strings.remove,iconName:"Delete",dataLogName:"PhotoPickerDelete",disabled:this.getIsRemoveButtonDisabled(),onClick:this.handleOnRemoveButtonClicked}):null,customUploadButton:null===(t=(e=this.props).renderCustomUploadButton)||void 0===t?void 0:t.call(e,{onFileSelected:this.props.onFileSelected,onUploadNewPhoto:this.props.onUploadNewPhoto})})},t.prototype.componentDidMount=function(){var e=this;this.props.loadCurrentImage(),requestAnimationFrame((function(){return e.focusTrap&&e.focusTrap.focus()}))},t.prototype.componentWillUnmount=function(){this.props.onImageEditPaneDismissed()},t.prototype.componentDidUpdate=function(e){"IN_PROGRESS"===this.props.status&&requestAnimationFrame(this.handleUploadAnimation),"IN_PROGRESS"===e.status&&"SUCCESS"===this.props.status&&this.primaryButton&&this.primaryButton.focus()},t.prototype.onFocusChange=function(){"SUCCESS"===this.props.status?this.primaryButton&&this.primaryButton.focus():this.focusTrap&&this.focusTrap.focus()},t.prototype.getSaveButtonText=function(e){switch(e){case"IN_PROGRESS":return this.props.strings.inProgress;case"SUCCESS":return this.props.strings.close;case"READY":case"SOMETHING_WENT_WRONG":return this.props.strings.apply;default:return(0,u2.k)(e)}},t.prototype.getWarningText=function(e){switch(e){case"IMAGE_TOO_SMALL_WARNING":return this.props.strings.imageTooSmall;case"IMAGE_TOO_SMALL_ERROR":return this.props.strings.imageTooSmallError;case"NOT_AN_IMAGE":return this.props.strings.notAnImage;case"UNKNOWN":return this.props.strings.somethingWentWrong;case"UNSUPPORTED_BROWSER":return this.props.strings.unsupportedBrowser;default:return""}},t.prototype.getIsPrimaryButtonDisabled=function(){return!this.props.isCanvasDirty||"IN_PROGRESS"===this.props.status||this.props.isUploadedPhotoTooSmall},t.prototype.getIsRemoveButtonDisabled=function(){return!this.props.dataUrl||"IN_PROGRESS"===this.props.status},t}(Gt.Component);var D4={absoluteScale:0,imageRotationAngle:0,xpos:0,ypos:0},A4=function(e){return I2.reduce((function(t,n){var r;return w4(w4({},t),((r={})[n]=Number(e[n]),r))}),D4)},R4=function(e,t){return I2.some((function(n){return t[n].toFixed(4)!==e[n].toFixed(4)}))},N4=function(e,t){switch(e){case"IN_PROGRESS":return.999999*P4(t/2e3);case"SUCCESS":return 1;case"READY":case"SOMETHING_WENT_WRONG":return 0;default:(0,u2.k)(e)}};var M4=x1((function(e){var t=_2.getSelectors(e).getPhotoPickerState(),n=_2.getSelectors(e).getEditCanvasState(),r=n.originalCanvasState,o=I4(n,["originalCanvasState"]),i=A4(o),a=A4(r);return{dataUrl:t.dataUrl,initialImage:t.currentImageDataUrl,warning:t.warning,status:t.status,isCanvasDirty:t.isUpdated||R4(a,i),isUploadedPhotoTooSmall:t.isUploadedPhotoTooSmall,progress:N4(t.status,t.uploadDuration),latestImageStats:i,fileName:t.fileName}}),(function(e){return{onUploadedPhotoTooSmall:function(t){return e(O1({isUploadedPhotoTooSmall:t}))},onDismissInfoBar:function(){return e(Z1())},onError:function(t){return e(K1({warning:t}))},onUploadNewPhoto:function(){return e(z1())},onFileSelected:function(t,n){return function(e,t,n){var r=new FileReader,o=function(){return e(K1({warning:"NOT_AN_IMAGE"}))};r.onerror=o,r.onloadend=function(){var i=document.createElement("img");i.onerror=o,i.onload=function(){i.alt=t.name,e(q1({dataUrl:i.src,fileName:t.name})),e(a2()),n&&e(l2({selectedIndex:0,newImageUrl:i.src}))},i.src=String(r.result)},r.readAsDataURL(t)}(e,t,n)},onCancel:function(){return e(L1())},onClose:function(){return e(H1())},onDone:function(){return e(V1())},onImageEditPaneDismissed:function(){return e(U1())},onImageUpdated:function(){return e(W1())},onUploadProgress:function(t){return e(X1({now:t}))}}}))(T4),F4=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B4=function(){return B4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B4.apply(this,arguments)},O4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.loadCurrentImage=function(){var e=new Image;e.crossOrigin="Anonymous",e.onload=function(){return t.imageLoaded(e)},e.onerror=function(){return t.imageLoadFailed()},e.src=Array.isArray(t.props.personImageUrl)?t.props.personImageUrl[t.props.photoListSelectedIndex||0]||"":t.props.personImageUrl},t.imageLoaded=function(e){var n=document.createElement("canvas");n.width=e.naturalWidth,n.height=e.naturalHeight;var r=n.getContext("2d");r?(r.drawImage(e,0,0),t.props.onLoadedCurrentImage(k1(n,t.props.isComponentInline),!!t.props.isSuggestedPhoto,Array.isArray(t.props.personImageUrl))):t.props.onError("UNSUPPORTED_BROWSER")},t.imageLoadFailed=function(){t.props.onLoadedEmptyImage(Array.isArray(t.props.personImageUrl))},t.startUpload=function(){var e=t.getImageDataUrlFromCanvas();t.props.onStartUpload(Date.now(),e,t.props.selectedIndex,t.props.imageUrls,t.props.onUpload,t.props.getPhotoListDataOnUpload)},t.getImageDataUrlFromCanvas=function(e){if(!t.props.image)return"";e||(e=648);var n=document.createElement("canvas"),r=t.props.naturalMin/t.props.absoluteScale;n.width=r,n.height=r;var o=n.getContext("2d");if(!o)return t.props.onError("UNSUPPORTED_BROWSER"),"";o.fillStyle=t.props.customBackgroundColor||P1,o.fillRect(0,0,n.width,n.height),t.props.image&&A1(o,n.width,t.props.imageRotationAngle,t.props.orientation,t.props.image,(function(e,r){return o.drawImage(r,t.props.xpos*n.width/I1,t.props.ypos*n.height/I1,t.props.naturalWidth,t.props.naturalHeight)}));for(var i=1;n.width*i/4>=e;)i/=2,o.drawImage(n,0,0,n.width*i,n.height*i);var a=document.createElement("canvas"),s=Math.min(t.props.naturalMin/t.props.absoluteScale,e);a.width=s,a.height=s;var l=a.getContext("2d");return l?(l.drawImage(n,0,0,n.width*i,n.width*i,0,0,s,s),k1(a,t.props.isComponentInline)):(t.props.onError("UNSUPPORTED_BROWSER"),"")},t.stopEventDefaults=function(e){e.stopPropagation(),e.preventDefault()},t}return F4(t,e),t.prototype.render=function(){return Gt.createElement(M4,B4({loadCurrentImage:this.loadCurrentImage,startUpload:this.startUpload,loadedEmptyImage:this.props.onLoadedEmptyImage,styles:this.props.styles||{}},this.props))},t}(Gt.Component);var L4=x1((function(e){return B4(B4({},_2.getSelectors(e).getEditCanvasState()),_2.getSelectors(e).getPhotoListState())}),(function(e){return{onError:function(t){return e(K1({warning:t}))},onLoadedCurrentImage:function(t,n,r){return e(G1({dataUrl:t,isSuggestedPhoto:n,isPhotoListPresent:r}))},onLoadedEmptyImage:function(t){return e(j1({isPhotoListPresent:t}))},onStartUpload:function(t,n,r,o,i,a){return function(e,t,n,r,o,i,a){e(Y1({now:t})),i(n,(function(){e(Q1({dataUrl:n})),null===a||void 0===a||a(r===o.length?-1:r,o)}),(function(){return e(K1({warning:"UNKNOWN"}))}))}(e,t,n,r,o,i,a)}}}))(O4);var H4=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V4=function(){return V4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V4.apply(this,arguments)},z4=null,U4=!1,W4=0,G4=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return H4(n,t),n.prototype.UNSAFE_componentWillMount=function(){if(W4>=1)throw new Error("Can only mount one StandalonePhotoPicker at a time.");if(W4+=1,U4||(U4=!0,My(void 0,{disableWarnings:!0})),null===z4){var t=S0(function(t,n){var r,o;if(n&&n.stores)throw new Error("The '".concat(A0,"' key of the state tree is reserved for functional stores."));if(n&&n.selectors)throw new Error("The '".concat(D0,"' key of the state tree is reserved for debug output from selectors."));var i=s0(f0(t,(function(e){return e.name})),(function(e){return e[0].reducer})),a=x0((0,OQ.z)(i,(function(e){return e}))),s=x0((0,e.__assign)(((r={}).stores=a,r),n||{})),l=((o={}).stores={},o);return function(e,t){return t.type===R0.toString()?t.payload:s(e||l,t)}}([_2]));z4=new H0({reduxStore:t})}},n.prototype.componentWillUnmount=function(){W4-=1},n.prototype.render=function(){return z4?Gt.createElement(E1,{context:z4},Gt.createElement(L4,V4({},this.props))):null},n}(Gt.Component),j4=((0,Gt.forwardRef)((function(t,n){var r,o=t.operationData,i=t.personDisplayName,a=t.personImageUrl,s=t.onPictureSelected,l=t.onCanvasUpdated,c=t.getPhotoPickerStrings,u=t.photoSelectedString,d=t.arrowKeyMovementStrings,p=(0,Gt.useRef)((function(e,t){})),h=(0,Gt.useRef)(null);function m(e,t,n){return e.replace("{0}",t).replace("{1}",n)}var f=(0,e.__assign)((0,e.__assign)({},c),{photoSelected:function(e){return null===u||void 0===u?void 0:u.replace("{0}",e.p0)},leftArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return m(d.leftArrowKeyAriaLabel,t,n)},rightArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return m(d.rightArrowKeyAriaLabel,t,n)},upArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return m(d.upArrowKeyAriaLabel,t,n)},downArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return m(d.downArrowKeyAriaLabel,t,n)},dropZoneImageAriaLabel:null===(r=c.dropZoneImageAriaLabel)||void 0===r?void 0:r.replace("{0}",i)});(0,Gt.useImperativeHandle)(n,(function(){return{startUploadNewPhoto:function(){var e;null===(e=h.current)||void 0===e||e.click()}}}));var g=function(){},v=jt().createElement(jI,{height:256}),y=jt().createElement(jt().Fragment,null,jt().createElement("input",{role:"button",style:{display:"none"},type:"file",ref:h,onClick:function(e){return e.currentTarget.value=""},onChange:function(e){e.currentTarget.files&&(p.current(e.currentTarget.files[0],!1),null===s||void 0===s||s())},accept:"image/*"}),jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(G4,{enableImageRotation:!0,personDisplayName:i,personImageUrl:a,strings:f,onUpload:g,onDismiss:g,isImageRemovable:!1,isComponentInline:!0,imageCropShape:"Circle",imageScaling:"Fill",onCanvasUpdated:function(e,t){null===l||void 0===l||l(e,t)},hideButtons:!0,hideUploadHeader:!0,hideUploadPhotoButton:!0,styles:{pivot:{linkSelected:{padding:"0px",lineHeight:"10px"}}},renderCustomUploadButton:function(e){return p.current=e.onFileSelected,jt().createElement(jt().Fragment,null)}})));return jt().createElement(bb,{verticalAlign:"center",horizontalAlign:"center",height:264,width:264,margin:"0 0 54px 0"},jt().createElement(dv,{operationData:o,firstLoadView:v,updatingView:v,finishedView:y,failedView:y}))})),zg()),q4=Gt.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.className,i=e.vertical,a=e.alignContent,s=e.children,l=j4(n,{theme:r,className:o,alignContent:a,vertical:i});return Gt.createElement("div",{className:l.root,ref:t},Gt.createElement("div",{className:l.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s))})),K4=Ng(q4,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,l="center"===o,c="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(l||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[Iu]={backgroundColor:"WindowText"},t)}},!i&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[Iu]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},i&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});K4.displayName="Separator";var Y4=function(t){var n,r=t.content,o=t.alignContent,i=t.vertical,a=(0,e.__rest)(t,["content","alignContent","vertical"]);return ll("Separator"),Fy("Separator",a),r&&(n=jt().createElement(Ib,{variant:"metadataText"},r)),jt().createElement(K4,(0,e.__assign)({alignContent:o,vertical:i},a),n)},X4=function(t){var n=t.headerProps,r=t.detailsProps,o=t.graphicProps,i=t.ctaProps,a=(0,e.__rest)(t,["headerProps","detailsProps","graphicProps","ctaProps"]);return ll("SimpleCard",a.id),Fy("SimpleCard",a),jt().createElement(qw,(0,e.__assign)({action:i,height:"large"},a),n?jt().createElement(Vw,(0,e.__assign)({},n)):null,jt().createElement(JL,(0,e.__assign)({},o)),jt().createElement(Bw,(0,e.__assign)({},r)),jt().createElement(Nw,(0,e.__assign)({},i)))},Q4=function(){var e=dg();return jt().createElement(Tg,{horizontalAlign:"start",verticalAlign:"center",styles:{root:{height:Rw(e).root.height,padding:"0 0 0 16px",borderRadius:"8px"}},doNotRenderFalsyValues:!0},jt().createElement(nw,{height:12,width:94}))},Z4=function(){return jt().createElement(Tg,(0,e.__assign)({},Mw,{doNotRenderFalsyValues:!0}),jt().createElement(nw,{height:16,width:"66%"}),jt().createElement(nw,{height:12,width:"75%"}),jt().createElement(nw,{height:12,width:"60%"}))},J4=function(){var e=dg(),t=Hw(e,!1),n=t.styles,r=t.tokens,o={root:{height:n.root.height,borderBottom:n.root.borderBottom}};return jt().createElement(Tg,{styles:o,tokens:r,doNotRenderFalsyValues:!0},jt().createElement(nw,{height:14,width:135}))},$4=function(e){var t=e.hasHeader;return jt().createElement(bb,{padding:16},jt().createElement(nw,{height:t?200:240}))},e6=function(e){var t=e.hasHeader,n=void 0!==t&&t;return jt().createElement(qw,{height:"large","data-bi-id":"","aria-label":""},n?jt().createElement(J4,null):null,jt().createElement($4,{hasHeader:n}),jt().createElement(Z4,null),jt().createElement(Q4,null))},t6=function(){return jt().createElement(Tg,{verticalFill:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},jt().createElement(sb,{size:qy.medium}))},n6=function(e){var t={root:{width:"30px",height:"30px"}};return e&&(t.rootDisabled={backgroundColor:"inherit"}),t},r6=function(t){var n=t.submitButtonProps,r=t.iconName,o=void 0===r?"Add":r,i=t.imageSrc,a=t.disableIcon,s=void 0!==a&&a,l=(0,e.__rest)(t,["submitButtonProps","iconName","imageSrc","disableIcon"]),c=dg();ll("TextAction",l.id),Fy("TextAction",l);var u,d=!!i,p=(0,Gt.useState)(Mx.notLoaded),h=p[0],m=p[1];u=d&&h!==Mx.error?WL(c,l.disabled||!1):UL(c,l.disabled||!1);var f={};h===Mx.notLoaded&&(f={root:{display:"none"}});var g=function(e){e===Mx.loaded?m(Mx.loaded):e===Mx.notLoaded?m(Mx.notLoaded):m(Mx.error)},v=function(){return jt().createElement(jt().Fragment,null,h===Mx.notLoaded?jt().createElement(sb,{size:qy.small}):null,jt().createElement(Ux,{styles:f,shouldFadeIn:!0,src:i,height:"16px",width:"16px",role:"presentation",onLoadingStateChange:g}))},y=s?"neutralQuaternary":"neutralSecondary",b=(0,e.__assign)({styles:u,onKeyPress:function(e){"Enter"===e.key&&n.onSubmitButtonClick(e)},onRenderSuffix:function(){return jt().createElement(qE,{onClick:n.onSubmitButtonClick,ariaLabel:n["aria-label"],onRenderIcon:function(){return jt().createElement(Hy,{size:"16px",color:y,iconName:o})},"data-bi-id":n["data-bi-id"],styles:n6(s),disabled:s})}},l);if(l.operationData){var C=l.operationData;return jt().createElement(Xs,{operationData:C.progressViewOperationData,updatingView:d?jt().createElement(VL,(0,e.__assign)({},b,{disabled:!0,onRenderSuffix:t6,onRenderPrefix:t6})):jt().createElement(VL,(0,e.__assign)({},b,{disabled:!0,onRenderSuffix:t6})),finishedView:d?jt().createElement(VL,(0,e.__assign)({},b,{onRenderPrefix:v})):jt().createElement(VL,(0,e.__assign)({},b)),updateFailedView:d?jt().createElement(VL,(0,e.__assign)({},b,{onRenderPrefix:v,errorMessage:C.errorMessage})):jt().createElement(VL,(0,e.__assign)({},b,{errorMessage:C.errorMessage}))})}return d?jt().createElement(VL,(0,e.__assign)({},b,{onRenderPrefix:v})):jt().createElement(VL,(0,e.__assign)({},b))};(0,Gt.createContext)({});var o6=[],i6=[],a6=!1;function s6(e,t,n){if(!e)throw new Error("CookieManager.getCookie - name argument should not be false-y");if(d6(),t&&!c6(n))return"";for(var r=e.toLowerCase(),o=0,i=document.cookie.split(";");o<i.length;o++){var a=i[o].split("=");if(decodeURIComponent(a[0].trim().toLowerCase())===r)return a.shift(),decodeURIComponent(a.join("="))}return""}function l6(t){if(!t)throw new Error("CookieManager.setCookie - cookie argument should not be false-y");if(d6(),t.requiresConsent&&!c6(t.category))return o6=(0,e.__spreadArray)((0,e.__spreadArray)([],o6,!0),[t],!1),!1;var n="";if(t.expiresOn){if(t.expiresOn.getTime()-Date.now()>63072e6)throw new Error("CookieManager.setCookie - cookies must expire within two years");var r=t.expiresOn.toUTCString();n=";expires=".concat(r)}var o="";t.domain&&("."!==t.domain[0]&&(t.domain=".".concat(t.domain)),o=";domain=".concat(t.domain)),t.path||(t.path="/");var i="";t.isSecure&&(i=";secure");var a=encodeURIComponent(t.name),s=encodeURIComponent(t.value),l="".concat(a,"=").concat(s).concat(n).concat(o,";path=").concat(t.path).concat(i);return document.cookie=l,t.requiresConsent&&(i6=(0,e.__spreadArray)((0,e.__spreadArray)([],i6,!0),[t],!1)),!0}function c6(e){return!window.siteConsent||window.siteConsent.getConsentFor(null!==e&&void 0!==e?e:WcpConsent.consentCategories.Required)}function u6(t){var n=[],r=[];o6.forEach((function(e){e.category===WcpConsent.consentCategories.Analytics&&t.Analytics||e.category===WcpConsent.consentCategories.Advertising&&t.Advertising||e.category===WcpConsent.consentCategories.SocialMedia&&t.SocialMedia?n.push(e):r.push(e)})),o6=(0,e.__spreadArray)([],r,!0);var o=[],i=[];i6.forEach((function(e){e.category===WcpConsent.consentCategories.Analytics&&!t.Analytics||e.category===WcpConsent.consentCategories.Advertising&&!t.Advertising||e.category===WcpConsent.consentCategories.SocialMedia&&!t.SocialMedia?o.push(e):i.push(e)})),i6=(0,e.__spreadArray)([],i,!0),n.forEach((function(e){return l6(e)})),o.forEach((function(e){!function(e,t){if(!e)throw new Error("CookieManager.expireCookie - name argument should not e false-y");var n=new Date;n.setDate(n.getDate()-1),l6({name:e,value:"",requiresConsent:!1,expiresOn:n,domain:t})}(e.name)})),o6=(0,e.__spreadArray)((0,e.__spreadArray)([],o6,!0),o,!0),window.clarity&&t.Analytics&&window.clarity("consent")}function d6(){!a6&&window.siteConsent&&(window.siteConsent.onConsentChanged(u6),a6=!0)}var p6=__webpack_require__(66547),h6=__webpack_require__(47337),m6=__webpack_require__(93174),f6="amcweb",g6=function(){return jt().createElement(bb,{horizontal:!1,childrenGap:16},jt().createElement(nw,{width:292,height:8}),jt().createElement(nw,{width:65,height:8}),jt().createElement(nw,{width:336,height:8}),jt().createElement(nw,{width:307,height:8}),jt().createElement(nw,{width:298,height:8}),jt().createElement(nw,{width:180,height:12}))},v6="/auth/acquire-onbehalf-of-token",y6="GLOBAL.OAUTH.GETTOKENS",b6={},C6=function(t,n){return void 0===t&&(t="MSComServiceMBISSL"),void 0===n&&(n=!1),(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r;return(0,e.__generator)(this,(function(o){return r=S6(t),n&&el(b6,r),[2,tl(b6,r,(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps(v6,{operation:y6},{params:{scopes:t}})];case 1:return[2,e.sent().data]}}))}))}))]}))}))},S6=function(e){return"token_".concat(e)},x6=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),[4,C6(t)];case 1:return n=e.sent(),(r=_6(n))?E6(r.expiration)?[3,3]:[4,C6(t,!0)]:(i=S6(t),el(b6,i),[2,Promise.reject({message:k6(n)})]);case 2:if(n=e.sent(),!(r=_6(n)))return[2,Promise.reject({message:"No access token after reload"})];e.label=3;case 3:return[2,Promise.resolve(r)];case 4:return o=e.sent(),[2,Promise.reject(o)];case 5:return[2]}var i}))}))},_6=function(e){if(e&&e.length>0){var t=e[0].token,n=e[0].tokenExpiry;if(e[0].isSuccess&&t&&t.length>0&&n)return{token:t,expiration:n,scope:e[0].tokenName,type:"bearer"}}},E6=function(e){return new Date(e).valueOf()>(new Date).valueOf()},k6=function(e){return e&&e.length>0&&!e[0].isSuccess&&e[0].errorMessage?e[0].errorMessage:"No access token"},w6=function(e){return e||"error code undefined"};function I6(e){switch(e){case"AccountNotFound":case"AuthenticationFailure":case"InvalidCreditCardType":case"InvalidPaymentMethodFamilyOrType":case"InvalidCvv":case"InvalidRequestData":case"PaymentInstrumentAddAlready":case"InvalidPaymentInstrumentType":case"ValidationFailed":case"ExceedRetryMaximum":case"ExpiredCard":case"riskRejected":case"DeclinedByKlarna":case"MOAccountBarred":case"MOAccountNotEnabled":case"login_required":case"AuthTimedOut":case"networkError":case"interaction_required":case"invalid_grant":case"invalid_or_missing_json_web_token_cookie":case"ValidatePIOnAttachFailed":case"RejectedByProvider":return{isQoSImpactedError:!1,isUserError:!0,isRefreshNeeded:!1,isTryAgainNeeded:!1};case"BannedPaymentInstrument":case"InvalidOperationException":case"RedirectGenericError":return{isQoSImpactedError:!1,isUserError:!0,isRefreshNeeded:!1,isTryAgainNeeded:!0};case"InternalError":return{isQoSImpactedError:!0,isUserError:!1,isRefreshNeeded:!1,isTryAgainNeeded:!0};default:return{isQoSImpactedError:!0,isUserError:!1,isRefreshNeeded:!1,isTryAgainNeeded:!1}}}var P6=function(t,n){var r,o;switch(n){case"AccountNotFound":r=t.accountNotFoundTitle,o=t.accountNotFoundText;break;case"InvalidCreditCardType":r=t.invalidCreditCardTypeTitle,o=t.invalidCreditCardTypeText;break;case"InvalidPaymentMethodFamilyOrType":r=t.invalidPaymentMethodFamilyOrTypeTitle,o=t.invalidPaymentMethodFamilyOrTypeText;break;case"PaymentInstrumentAddAlready":r=t.paymentInstrumentAddAlreadyTitle,o=t.paymentInstrumentAddAlreadyText;break;case"InvalidPaymentInstrumentType":r=t.invalidPaymentInstrumentTypeTitle,o=t.invalidPaymentInstrumentTypeText;break;case"ValidationFailed":r=t.validationFailedTitle,o=t.validationFailedText;break;case"ExceedRetryMaximum":r=t.exceededRetryMaximumTitle,o=t.exceededRetryMaximumText;break;case"DeclinedByKlarna":r=t.declinedByKlarnaTitle,o=t.declinedByKlarnaText;break;case"RedirectGenericError":r=t.redirectGenericErrorTitle,o=t.redirectGenericErrorText;break;case"BannedPaymentInstrument":r=t.bannedPaymentInstrumentErrorTitle,o=t.bannedPaymentInstrumentErrorText;break;default:r=t.addEditPaymentOptionErrorTitle,o=t.addEditPaymentOptionErrorText}return(0,e.__assign)((0,e.__assign)({},I6(n)),{errorTitle:r,errorMessage:o,errorCode:n})},T6=function(e,t){if(!e||!t||e!==t){Cr({step:"PiChallengePiidMismatch",error:"piidMismatchError",data:{errorDetails:"Piid is different from PIDL response. "+"PIDL response piid is ".concat(t,". Selected piid is ").concat(e)}})}};var D6="amcweb",A6="PIDL error not detected",R6="stored_value",N6="selectedPiid",M6="backupPiid",F6="csvPiid",B6="paymentName",O6="backupPaymentName",L6="csvPaymentName",H6="isSoldToAddressIdRequired",V6="paymentType",z6="challengeStatus",U6="isAddPiFailed",W6="true",G6="isAddPiSuccess",j6="true",q6="modelId",K6="skuid",Y6="productid",X6="availabilityid",Q6="isBackup",Z6="true",J6="id",$6="NoBackupPISelected",e5=["credit_card","direct_debit","mobile_billing_non_sim","ewallet.alipay_billing_agreement","ewallet.paypal","ewallet.inicis","ewallet.qiwi_billing_agreement","invoice_credit.klarna","finance_leasing.dell_preferred_account","ewallet.venmo","ewallet.googlepay"],t5=["credit_card","mobile_billing_non_sim","ewallet.alipay_billing_agreement","ewallet.paypal","ewallet.venmo"];function n5(){var e,t=ln("px."),n=encodeURIComponent("AMC Team");return zs("SvcPSD2XboxTest")?e="px-service-psd2-e2e-emulator":zs("SvcValPITest")?e="px.pims.validate.failed":zs("SvcExpiredPiTest")?e="px.payerauth.psd2.challenge.success,px.pims.3ds":zs("SvcIndia2FATest")?e="px-service-billdesk-provider,px-service-psd2-e2e-emulator":zs("RoleEngineer")&&t.length>0&&(e=t.join(",")),e?{"x-ms-test":'{scenarios: "'.concat(e,'", contact: "').concat(n,'"}')}:zs("SvcGooglePayTest")?{"x-ms-test":'{scenarios: "real,px-use-google-apple-pay-test-env", contact: "AMC Team"}',"x-ms-flight":"vnext,EnableThreeDSOne,pidl-enable-payment-agent-challenge"}:{"x-ms-flight":"EnableThreeDSOne,pidl-enable-payment-agent-challenge"}}function r5(e){void 0===e&&(e="AMC Team");var t,n=ln("px."),r=encodeURIComponent(e);return zs("SvcValAddrTest")?t="px.account.v3.address.interactionrequired":zs("SvcValMultplAddrTest")?t="px.account.v3.address.multiplesuggestedaddresses":zs("SvcValAddrNonUSTest")?t="px.account.v3.address.ca":zs("RoleEngineer")&&n.length>0&&(t=n.join(",")),t?{"x-ms-test":'{scenarios: "'.concat(t,'", contact: "').concat(r,'"}')}:void 0}function o5(e,t){void 0===t&&(t="AMC Team");var n=encodeURIComponent(t);if(zs("SvcExpiredPiTest")){switch(e){case"Select":return{"x-ms-test":'{scenarios: "'.concat("px.pims.listpi.expiredcc.success",'", contact: "').concat(n,'"}')};case"Add":case"Edit":return{"x-ms-test":'{scenarios: "'.concat("px.pims.cc.add.success",'", contact: "').concat(n,'"}')}}}if(zs("SvcVenmoTest",!1))return{"x-ms-test":'{Scenarios:"PspTestScenarioViaPPS", contact: "'.concat(n,'"}')};var r={"x-ms-flight":"vnext,pidl-enable-payment-agent-challenge"};return zs("BillUpiIndia")&&(r["x-ms-flight"]=r["x-ms-flight"].concat(",IndiaUPIEnable,PXUsePartnerSettingsService")),r}function i5(e,t){var n,r,o=e;o.error.innererror?o.error.innererror.innererror?(n=o.error.innererror.innererror.code,r=o.error.innererror.innererror.message):(n=o.error.innererror.code,r=o.error.innererror.message):(n=o.error.code,r=o.error.message);var i=I6(n).isUserError;return{name:t,errorCode:n,message:r,stack:JSON.stringify(e),isUserError:i}}function a5(e,t){return{userId:"me",authToken:'MSADELEGATE1.0="'.concat(e,'"'),additionalHeaders:t}}function s5(e){return{contextData:{cvInitValue:Dr(),scenarioId:e,partnerName:D6}}}var l5="mock",c5="Succeeded",u5=["ValidVisa"];function d5(e){switch(e){case"AmcPayNow":case"AmcPayNowBackup":return"paynow";case"AmcProfileAddress":return"profileaddress";case"AmcChangePi":case"AmcChangeBackupPi":case"AmcManageAddressVerification":case"AmcBillingChangePi":case"AmcRenew":case"AmcRenewViaPartner":case"AmcSwitchPlan":case"AmcCancel":return"changepi";default:return"amc"}}function p5(t,n,r,o,i){var a=[];if(t.forEach((function(e){-1===r.toLowerCase().indexOf("amcpaynow")?a.push(e):"mobile_billing_non_sim"===e?"mobile_billing_non_sim"===i&&a.push(e):"ewallet.alipay_billing_agreement"===e?"ewallet.alipay_billing_agreement"===i&&a.push(e):a.push(e)})),"AmcChangePi"===r&&"select"===o&&a.push("ewallet.stored_value"),zs("BillUpiIndia")&&a.push("real_time_payments.upi"),"select"===o&&zs("SvcApplePay")&&a.push("ewallet.applepay"),n&&0!==n.length){var s=[];return n.forEach((function(e){var t=e.split(".")[0];(a.indexOf(e)>-1||a.indexOf(t)>-1)&&s.push(e)})),0===s.length&&Cr({step:"AllowedPaymentMethodIsEmpty",error:"No allowed payment methods from intersection of Service and AMC. piInclusionTags: ".concat(n)}),s}return(0,e.__spreadArray)([],a,!0)}var h5={main:{width:"480px"}},m5={unit:"%",height:85},f5={height:"91vh"},g5={height:"78vh"},v5=function(){return zs("PidlSuccess")||zs("PidlFail")||zs("PidlTimeout")||zs("PidlCancel")},y5=function(t,n,r){var o,i,a,s,l=(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],n?[(o={},o.skuid=n,o)]:[],!0),r?[(i={},i.modelId=r,i)]:[],!0),[(a={},a[t]="true",a),(s={},s.isAddPiFailed=W6,s)],!1);return pn(window.location.href,l)};function b5(t){Er((0,e.__assign)((0,e.__assign)({},t),{fromStep:"AddPiLeave",step:"AddPiResume"}))}var C5=function(t,n,r,o,i){return void 0===i&&(i=!1),(0,e.__awaiter)(void 0,void 0,void 0,(function(){var a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S,x,_,E,k,w,I;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),S5(t,"OboAuthStart",i),[4,x6("pidl")];case 1:return a=e.sent(),S5(t,"OboAuthSuccess",i),[2,Promise.resolve(a)];case 2:return s=e.sent(),c=(null===(f=(l=s).response)||void 0===f?void 0:f.data.error)||"OboAuthErrorUnknown",u=!1,d=(null===(y=null===(v=null===(g=l.response)||void 0===g?void 0:g.data)||void 0===v?void 0:v.data)||void 0===y?void 0:y.message)||(null===l||void 0===l?void 0:l.message)||"UnknownAuthMessage",p=null===(S=null===(C=null===(b=l.response)||void 0===b?void 0:b.data)||void 0===C?void 0:C.data)||void 0===S?void 0:S.signInLink,h=null===(x=l.response)||void 0===x?void 0:x.status,null===(k=null===(E=null===(_=l.response)||void 0===_?void 0:_.data)||void 0===E?void 0:E.data)||void 0===k||delete k.signInLink,"networkError"!==(c=x5(d,c))&&401!==h||(u=!0),m=function(e,t,n){return{name:"DelegateAuthError",errorCode:e,challengeStatus:"Unknown",message:t,isUserError:n}}(c,d,u),401===h?(r({name:t,status:"finished"}),o?o(m):S5(t,"AuthFail",i,c,null!==(w=l.response)&&void 0!==w?w:l,u),p&&(window.location.href=p)):(r({name:t,status:"failed",error:l}),n(m),S5(t,"OboAuthFailStart",i,c,null!==(I=l.response)&&void 0!==I?I:l,u)),[2,Promise.reject(s)];case 3:return[2]}}))}))},S5=function(e,t,n,r,o,i){void 0===n&&(n=!1),void 0===i&&(i=!1),n||Cr(r&&o?{step:"".concat(e,"AuthFail"),error:r,data:{errorDetails:o,isUserError:i}}:o?{step:"".concat(e,"AuthFail"),data:{errorDetails:o,isUserError:i}}:{step:"".concat(e).concat(t)})},x5=function(e,t){var n=t;return e.includes("Network Error")||e.includes("Request aborted")?n="networkError":e.includes("timeout of 30000ms exceeded")&&(n="30sAuthTimeout"),n},_5=function(t){var n=t.onSuccessCallback,r=t.onFailureCallback,o=t.onPIDLEventCallback,i=t.onLoginRequiredEventCallback,a=t.onGoHome,s=t.onReady,l=t.authenticationToken,c=t.data,u="getAccessTokenOrAddResource",d="add-resource",p=mi(),h=p5(t5,c.allowedPaymentMethods,c.scenario,"add",c.currPiType),m=(0,Gt.useState)({}),f=m[0],g=m[1],v=(0,Gt.useState)(!1),y=v[0],b=v[1],C=(0,Gt.useState)(!1),S=C[0],x=C[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return p({name:u,status:"updating"}),l?(Cr({step:"AddResourceSetAuthenticationTokenFromParam"}),g(l),[3,4]):[3,1];case 1:return e.trys.push([1,3,,4]),[4,C5(u,r,p,i)];case 2:return t=e.sent(),g(t),[3,4];case 3:return n=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:d,message:n.toString()}),[3,4];case 4:return p({name:u,status:"first-load"}),b(!0),[2]}}))}))}));var _={containerId:"pidl-container",busyBlockShowHideHandler:function(e){if(e)p({name:u,status:"updating"}),x(!1);else{try{Cr({step:"AddResourceView"})}catch(t){}p({name:u,status:"finished"}),x(!0),s()}},showSubmitBlock:!1},E={userId:"me",authToken:'MSADELEGATE1.0="'.concat(f.token,'"'),additionalHeaders:o5("Add")},k={callbacks:{success:function(e){var t,r,o,i,a,s,l,c,u=e,d=null===(r=null===(t=u.response)||void 0===t?void 0:t.details)||void 0===r?void 0:r.defaultDisplayName,p=null===(a=null===(i=null===(o=u.response)||void 0===o?void 0:o.details)||void 0===i?void 0:i.paymentMethod)||void 0===a?void 0:a.paymentMethodType,h=null===(c=null===(l=null===(s=u.instance)||void 0===s?void 0:s.paymentMethod)||void 0===l?void 0:l.properties)||void 0===c?void 0:c.soldToAddressRequired;d||Cr({step:"AddResourceMissingPaymentName",error:"No payment default display name returned from PIDL."}),Cr({step:"AddResourceSuccess",data:{paymentType:p}}),n(u.id,d,h,p)},failure:function(e){Cr({step:"AddResourceFail",data:{errorDetails:e}}),x(!1);var t=i5(e,"AddResourceFail");p({name:u,status:"failed",error:t}),r(t)},gohome:a},urls:{success:c.redirectSuccessUrl,failure:c.redirectFailureUrl}},w=function(e,t){var n;if(e===h6.pidl.internal.constants.eventNames.navigate&&t.piRedirection&&(window.open(t.url,"_self"),kr({step:"AddPiLeave"})),e===h6.pidl.internal.constants.eventNames.pidlDownloading&&p({name:u,status:"updating"}),e===h6.pidl.internal.constants.eventNames.pageRefreshed&&(Cr({step:"AddResourceView"}),p({name:u,status:"finished"}),s()),e===h6.pidl.internal.constants.eventNames.pageRefreshed||e===h6.pidl.internal.constants.eventNames.selectionChanged){var r=null===(n=c.ref.current)||void 0===n?void 0:n.getNextButtonProps();"moveNext"===(null===r||void 0===r?void 0:r.type)?o&&(o(!1),Cr({step:"AddResourceForNextAction"})):o&&(o(!0),Cr({step:"AddResourceForNonNextAction"}))}e===h6.pidl.internal.constants.eventNames.selectionChanged&&"paymentMethod"===t.displayId&&Cr({step:"AddResourceSelectionChanged",data:{piDetails:t.propertyValue}})},I={parameters:{partner:f6,market:c.market,language:c.language,allowedPaymentMethods:h,currency:c.transactionCurrency,billableAccountId:c.billableAccountId,filters:{exclusionTags:c.exclusionTags,chargeThreshold:c.transactionAmount},scenario:d5(c.scenario),completePrerequisites:!0},resourceType:"PaymentInstrument"},P=function(){var e=s6("GRNID",!1);return""===e?void 0:{riskData:{greenId:e}}},T=jt().useMemo((function(){return f.token?jt().createElement(m6.hB,{ref:c.ref,displayOptions:_,userContext:E,env:c.env,returnOptions:k,pidlDocInfo:I,elementFactory:new p6.CG,onEvent:w,telemetryOptions:s5(c.scenario),options:P()}):jt().createElement(jt().Fragment,null)}),[f]);return jt().createElement(jt().Fragment,null,jt().createElement(dv,{operationData:{componentName:d,operationName:u},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:jt().createElement(g6,null),finishedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(g6,null)}),y?jt().createElement("div",{style:{display:S?"":"none"}},T):jt().createElement(jt().Fragment,null))},E5=function(t){var n=t.onSuccessCallback,r=t.onFailureCallback,o=t.onGoHome,i=t.onReady,a=t.onLoginRequiredEventCallback,s=t.authenticationToken,l=t.data,c="getAccessTokenOrEditResource",u="edit-resource",d=mi(),p=(0,Gt.useState)({}),h=p[0],m=p[1],f=(0,Gt.useState)(!1),g=f[0],v=f[1],y=(0,Gt.useState)(!1),b=y[0],C=y[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return d({name:c,status:"updating"}),s?(Cr({step:"EditResourceSetAuthenticationTokenFromParam"}),m(s),[3,4]):[3,1];case 1:return e.trys.push([1,3,,4]),[4,C5(c,r,d,a)];case 2:return t=e.sent(),m(t),[3,4];case 3:return n=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:u,message:n.toString()}),[3,4];case 4:return d({name:c,status:"first-load"}),v(!0),[2]}}))}))}));var S={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e?(d({name:c,status:"updating"}),C(!1)):(Cr({step:"EditResourceView"}),d({name:c,status:"finished"}),C(!0),i())},showSubmitBlock:!1},x={userId:"me",authToken:'MSADELEGATE1.0="'.concat(h.token,'"'),additionalHeaders:o5("Edit")},_={callbacks:{success:function(e){var t,r,o,i,a,s=e,l=null===(r=null===(t=s.response)||void 0===t?void 0:t.details)||void 0===r?void 0:r.defaultDisplayName,c=null===(a=null===(i=null===(o=s.instance)||void 0===o?void 0:o.paymentMethod)||void 0===i?void 0:i.properties)||void 0===a?void 0:a.soldToAddressRequired;l||Cr({step:"EditResourceMissingPaymentName",error:"No payment default display name returned from PIDL."}),Cr({step:"EditResourceSuccess"}),n(s.id,l,c)},failure:function(e){Cr({step:"EditResourceFail",data:{errorDetails:e}});var t=i5(e,"EditResourceFail");d({name:c,status:"failed",error:t}),r(t)},gohome:o}},E={parameters:{partner:f6,market:l.market,language:l.language,allowedPaymentMethods:l.allowedPaymentMethods,currency:l.transactionCurrency,billableAccountId:l.billableAccountId,filters:{exclusionTags:l.exclusionTags,chargeThreshold:l.transactionAmount},family:l.piFamily,type:l.piType,scenario:d5(l.scenario)},resourceType:"PaymentInstrument"},k={resourceType:"PaymentInstrument",parameters:{},id:l.piid},w=jt().useMemo((function(){return h.token?jt().createElement(m6.S1,{ref:l.ref,displayOptions:S,userContext:x,env:l.env,returnOptions:_,pidlDocInfo:E,elementFactory:new p6.CG,resourceInfo:k,telemetryOptions:s5(l.scenario)}):jt().createElement(jt().Fragment,null)}),[h]);return jt().createElement(jt().Fragment,null,jt().createElement(dv,{operationData:{componentName:u,operationName:c},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:jt().createElement(g6,null),finishedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(g6,null)}),g?jt().createElement("div",{style:{display:b?"":"none"}},w):jt().createElement(jt().Fragment,null))},k5=__webpack_require__(17710),w5=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),(0,k5._T)(),[4,k5.qO.init(D6,s5())];case 1:return e.sent(),[4,k5.qO.setup(D6,k5.Uz.SingleDomain)];case 2:return e.sent(),[3,4];case 3:return n=e.sent(),Br({name:"Ms.Webi.MeePortal.PaymentAgentInitErrorEvent",componentName:t,message:n.toString()}),[3,4];case 4:return[2]}}))}))},I5=function(){var e=ny(),t=ry(e)?327:415;return jt().createElement(jt().Fragment,null,jt().createElement(bb,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,childrenGap:16,padding:"12px 11px 11px 49px"},jt().createElement(Cb,null,jt().createElement(nw,{width:40,height:42})),jt().createElement(Cb,{padding:"16px 0 28px 0"},jt().createElement(nw,{width:211,height:8}))),jt().createElement(bb,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,margin:"5px 0 0 0",childrenGap:16,padding:"12px 11px 11px 49px"},jt().createElement(Cb,null,jt().createElement(nw,{width:40,height:42})),jt().createElement(Cb,{padding:"16px 0 28px 0"},jt().createElement(nw,{width:162,height:8}))),jt().createElement(bb,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,margin:"5px 0 5px 0",childrenGap:16,padding:"12px 11px 11px 49px"},jt().createElement(Cb,null,jt().createElement(nw,{width:40,height:42})),jt().createElement(Cb,{padding:"16px 0 28px 0"},jt().createElement(nw,{width:211,height:8}))),jt().createElement(bb,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,childrenGap:16,padding:"12px 11px 11px 49px"},jt().createElement(Cb,{padding:"16px 0 28px 0"},jt().createElement(nw,{width:223,height:8}))))},P5=function(t){var n=t.onSuccessCallback,r=t.onFailureCallback,o=t.onAddPiClickedCallback,i=t.onUpdatePiClickedCallback,a=t.onReady,s=t.onPIDLEventCallback,l=t.onLoginRequiredEventCallback,c=t.authenticationToken,u=t.data,d="getAccessTokenOrSelectPaymentResource",p="pi-selector",h=mi(),m=p5(e5,u.allowedPaymentMethods,u.scenario,"select",u.currPiType),f=(0,Gt.useState)({}),g=f[0],v=f[1],y=(0,Gt.useState)(!1),b=y[0],C=y[1],S=(0,Gt.useState)(!1),x=S[0],_=S[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return h({name:d,status:"updating"}),c?(Cr({step:"SetAuthenticationTokenFromParam"}),v(c),[3,4]):[3,1];case 1:return e.trys.push([1,3,,4]),t=C5(d,r,h,l),n=w5(p),[4,Promise.all([t,n])];case 2:return o=e.sent()[0],v(o),[3,4];case 3:return i=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:p,message:i.toString()}),[3,4];case 4:return h({name:d,status:"first-load"}),C(!0),[2]}}))}))}));var E=function(e,t){t===$6||e||Cr({step:"PiSelectorMissingPaymentName",error:"No payment default display name returned from PIDL."})},k={containerId:"pidl-container",busyBlockShowHideHandler:function(e){if(e)h({name:d,status:"updating"}),_(!1);else{try{Cr({step:"PiSelectorView"})}catch(t){}h({name:d,status:"finished"}),_(!0),a()}},showSubmitBlock:!1},w={userId:"me",authToken:'MSADELEGATE1.0="'.concat(g.token,'"'),additionalHeaders:o5("Select")},I={callbacks:{success:function(e){var t,r,a,s,l,c,u,d,p,h,m,f,g,v=e,y=v.id,b=null===(r=null===(t=v.resourceActionContext)||void 0===t?void 0:t.pidlDocInfo)||void 0===r?void 0:r.parameters.family,C=null===(s=null===(a=v.resourceActionContext)||void 0===a?void 0:a.pidlDocInfo)||void 0===s?void 0:s.parameters.type,S=null===(c=null===(l=v.instance)||void 0===l?void 0:l.details)||void 0===c?void 0:c.defaultDisplayName,x=null===(p=null===(d=null===(u=v.instance)||void 0===u?void 0:u.paymentMethod)||void 0===d?void 0:d.properties)||void 0===p?void 0:p.soldToAddressRequired;if(v.resourceActionContext&&v.resourceActionContext.action){var _=v.resourceActionContext.action;if("addPaymentInstrument"===_){var k=null!==(h=v.partnerHints&&v.partnerHints.triggeredBy)&&void 0!==h?h:"empty";Cr({step:"AddResource-".concat(k)}),o(k)}else if("editPaymentInstrument"===_){k=null!==(m=v.partnerHints&&v.partnerHints.triggeredBy)&&void 0!==m?m:"submitGroup";Cr({step:"UpdateResource-".concat(k)}),i(y,b,C,k)}else E(S,y),Cr({step:"PiSelected"}),n(y,S,x,C)}else{var w=null===(g=null===(f=v.instance)||void 0===f?void 0:f.paymentMethod)||void 0===g?void 0:g.paymentMethodType;E(S,y),Cr({step:"PiSelected"}),n(y,S,x,w)}},failure:function(e){Cr({step:"PiSelectedFail",data:{errorDetails:e}});var t=i5(e,"SelectPiFail");h({name:d,status:"failed",error:t}),r(t)}}},P={parameters:{partner:f6,market:u.market,language:u.language,allowedPaymentMethods:m,currency:u.transactionCurrency,billableAccountId:u.billableAccountId,filters:{exclusionTags:u.exclusionTags,chargeThreshold:u.transactionAmount,splitPaymentSupported:u.splitPaymentSupported,isBackupPiOptional:u.isBackupPiOptional,id:u.piid},scenario:d5(u.scenario)},resourceType:"PaymentInstrument"},T=function(e){var t,n,r,o;if("selectionChanged"===e){var i=null===(n=null===(t=u.ref)||void 0===t?void 0:t.current)||void 0===n?void 0:n.getSelectedResource(),a=null===i||void 0===i?void 0:i.instance;i?i.resourceActionContext&&"editPaymentInstrument"===i.resourceActionContext.action?s&&(Cr({step:"PiSelectorExpiredPiSelected",data:{paymentFamily:null===(r=null===a||void 0===a?void 0:a.paymentMethod)||void 0===r?void 0:r.paymentMethodFamily,paymentType:null===(o=null===a||void 0===a?void 0:a.paymentMethod)||void 0===o?void 0:o.paymentMethodType}}),s(!0,i.id)):i.id===$6?s&&(Cr({step:"PiSelectorNoBackupPiSelected"}),s(!1,i.id)):s&&(Cr({step:"PiSelectorNonExpiredPiSelected",data:{paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType}}),s(!1,i.id)):Cr({step:"PiSelectorChangePIFailed",error:"resourceNotDefined",data:{isUserError:!0}})}},D=jt().useMemo((function(){return g.token?jt().createElement(jt().Fragment,null,jt().createElement(m6.aT,{displayOptions:k,userContext:w,env:u.env,returnOptions:I,pidlDocInfo:P,elementFactory:new p6.CG,telemetryOptions:s5(u.scenario),ref:u.ref,onEvent:T})):jt().createElement(jt().Fragment,null)}),[g]);return jt().createElement(jt().Fragment,null,jt().createElement(dv,{operationData:{componentName:p,operationName:d},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:jt().createElement(I5,null),finishedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(I5,null)}),b?jt().createElement("div",{style:{display:x?"":"none"}},D):jt().createElement(jt().Fragment,null))},T5=(0,Gt.forwardRef)((function(t,n){var r=t.market,o=t.language,i=t.paymentId,a=t.billingId,s=t.environment,l=t.transactionAmount,c=t.transactionCurrency,u=t.allowedPaymentMethods,d=t.exclusionTags,p=t.splitPaymentSupported,h=t.isBackupPiOptional,m=t.scenario,f=t.initialState,g=t.currPiType,v=t.returnUrl,y=t.redirectFailureUrl,b=t.onReadyCallback,C=t.onStateChangeCallback,S=t.onSuccessCallback,x=t.onFailureCallback,_=t.onSelectorEventCallback,E=t.onAddResourceEventCallback,k=t.onLoginRequiredEventCallback,w=t.selectPaymentInstrumentRef,I=t.addResourceRef,P=t.editResourceRef,T=t.authenticationToken,D=null!==f&&void 0!==f?f:"Select",A=(0,Gt.useState)(D),R=A[0],N=A[1],M=(0,Gt.useState)(""),F=M[0],B=M[1],O=(0,Gt.useState)(""),L=O[0],H=O[1],V=(0,Gt.useState)(""),z=V[0],U=V[1],W=(0,Gt.useState)(""),G=W[0],j=W[1],q=(0,Gt.useState)(""),K=q[0],Y=q[1],X=(0,Gt.useState)(""),Q=X[0],Z=X[1],J=(0,Gt.useState)(!1),$=J[0],ee=J[1],te=function(){N("Select"),C("Select")},ne=function(){N("SelectBackup"),C("SelectBackup")};(0,Gt.useImperativeHandle)(n,(function(){return{goToPickerState:te,goToPickerBackupState:ne}}));var re=function(){N("Select")},oe=function(){N("SelectBackup")},ie=function(e,t){Cr({step:"".concat(e,"-").concat(t)}),N(e),C&&C(e,t)},ae=function(e,t,n,r,o){B(e),H(t),U(n),Cr({step:"".concat(r,"-").concat(o)}),N(r),C&&C(r,o)},se=function(e,t,n,r){S(G,K,$,e,t,r,Q)},le={onSuccessCallback:function(e,t,n,r){if(r===R6){j(e),Y(t),ee(n),Z(R6);var o="SelectBackup";Cr({step:o}),N(o),C&&C(o)}else S(e,t,n)},onFailureCallback:x,onAddPiClickedCallback:function(e){ie("Add",e)},onUpdatePiClickedCallback:function(e,t,n,r){ae(e,t,n,"Edit",r)},onReady:b,onPIDLEventCallback:_,onLoginRequiredEventCallback:k,data:{market:r,language:o,piid:i,billableAccountId:a,env:s,transactionAmount:l,transactionCurrency:c,allowedPaymentMethods:u,exclusionTags:d,splitPaymentSupported:p,isBackupPiOptional:h,currPiType:g,scenario:m,returnUrl:v,ref:w},authenticationToken:T},ce={onSuccessCallback:function(e,t,n,r){S(G,K,$,e,t,r,Q)},onFailureCallback:x,onAddPiClickedCallback:function(e){ie("AddBackup",e)},onUpdatePiClickedCallback:function(e,t,n,r){ae(e,t,n,"EditBackup",r)},onReady:b,onPIDLEventCallback:_,onLoginRequiredEventCallback:k,data:{market:r,language:o,piid:i,billableAccountId:a,env:s,transactionAmount:l,transactionCurrency:c,allowedPaymentMethods:u,exclusionTags:d,splitPaymentSupported:!0,isBackupPiOptional:!1,scenario:m,returnUrl:v,ref:w},authenticationToken:T},ue="Select"===R?jt().createElement(P5,(0,e.__assign)({},le)):jt().createElement(jt().Fragment,null),de="SelectBackup"===R?jt().createElement(P5,(0,e.__assign)({},ce)):jt().createElement(jt().Fragment,null),pe={market:r,language:o,env:s,billableAccountId:a,transactionAmount:l,transactionCurrency:c,allowedPaymentMethods:u,exclusionTags:d,currPiType:g,scenario:m,returnUrl:v,redirectSuccessUrl:v,redirectFailureUrl:y,ref:I},he={onSuccessCallback:S,onFailureCallback:x,onPIDLEventCallback:E,onGoHome:re,onReady:b,onLoginRequiredEventCallback:k,data:pe,authenticationToken:T},me="Add"===R?jt().createElement(_5,(0,e.__assign)({},he)):jt().createElement(jt().Fragment,null),fe={onSuccessCallback:se,onFailureCallback:x,onPIDLEventCallback:E,onGoHome:oe,onReady:b,onLoginRequiredEventCallback:k,data:pe,authenticationToken:T},ge="AddBackup"===R?jt().createElement(_5,(0,e.__assign)({},fe)):jt().createElement(jt().Fragment,null),ve={market:r,language:o,env:s,piid:F,piFamily:L,piType:z,transactionAmount:l,transactionCurrency:c,allowedPaymentMethods:u,exclusionTags:d,scenario:m,returnUrl:v,ref:P},ye={onSuccessCallback:S,onFailureCallback:x,onGoHome:re,onReady:b,onLoginRequiredEventCallback:k,data:ve,authenticationToken:T},be="Edit"===R?jt().createElement(E5,(0,e.__assign)({},ye)):jt().createElement(jt().Fragment,null),Ce={onSuccessCallback:se,onFailureCallback:x,onGoHome:oe,onReady:b,onLoginRequiredEventCallback:k,data:ve,authenticationToken:T},Se="EditBackup"===R?jt().createElement(E5,(0,e.__assign)({},Ce)):jt().createElement(jt().Fragment,null);return jt().createElement(jt().Fragment,null,ue,de,me,ge,be,Se)})),D5=function(t){var n=t.error,r=t.onClose,o=t.operationData,i=t.strings,a="".concat(o.componentName,"-error-dialog"),s=P6(i,n.errorCode),l=s.errorTitle,c=s.errorMessage,u=s.buttonText,d=void 0===u?i.close:u,p="string"===typeof c?jt().createElement(Ib,null,c):jt().createElement(ox,(0,e.__assign)({},c));return jt().createElement(CM,{isOpen:!0,onDismiss:r,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:l,closeButton:{"data-bi-id":"".concat(a,"-close"),"aria-label":i.close},dialogFooterProps:{buttonPrimary:{onClick:r,text:d,"aria-label":d,"data-bi-id":"".concat(a,"-primary-btn")}},minBodyHeight:m5,dialogStylesTemp:h5},jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(zk,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:i.failureImageSrc}),p))},A5="PiPickerDialogError",R5=function(e){return"AddBackup"===e||"EditBackup"===e||"SelectBackup"===e};function N5(t){return"object"===typeof t?jt().createElement(ox,(0,e.__assign)({},t)):jt().createElement(jt().Fragment,null,t)}var M5=function(t){var n=t.piPickerParams,r=t.initialPrimaryPi,o=t.initialBackupPi,i=t.strings,a=t.operationData,s=t.dialogParams,l=t.onSuccess,c=t.onCancel,u=t.onFailure,d=a.componentName,p=a.operationName,h=mi(),m=EM(),f=(0,Gt.useState)({piPickerState:"Select",triggeredBy:void 0,addPiSubState:"Save"}),g=f[0],v=f[1],y=(0,Gt.useState)(r),b=y[0],C=y[1],S=(0,Gt.useState)(o),x=S[0],_=S[1],E={piPickerRef:(0,Gt.useRef)(null),selectRef:(0,Gt.useRef)(null),addRef:(0,Gt.useRef)(null),editRef:(0,Gt.useRef)(null)},k="Select"===g.piPickerState&&(null===b||void 0===b?void 0:b.isExpired)||"SelectBackup"===g.piPickerState&&(null===x||void 0===x?void 0:x.isExpired)||"Edit"===g.piPickerState||"EditBackup"===g.piPickerState,w=function(){Cr({step:"CancelPiPickerDialog"}),c()},I=function(t){m.switchToDialog(jt().createElement(D5,{error:t,strings:(0,e.__assign)((0,e.__assign)({},i.addEditPiError),{close:i.close,failureImageSrc:i.failureImageSrc}),operationData:a,onClose:function(){u(t)}}))},P=(0,e.__assign)((0,e.__assign)({isBackupPiOptional:!1},n),{paymentId:R5(g.piPickerState)?null===x||void 0===x?void 0:x.id:null===b||void 0===b?void 0:b.id,onReadyCallback:function(){h({name:p,status:"finished"})},onStateChangeCallback:function(t,n){h({name:p,status:v5()?"finished":"updating"}),v((function(r){return(0,e.__assign)((0,e.__assign)({},r),{piPickerState:t,triggeredBy:n})}))},onSelectorEventCallback:function(e,t){h({name:p,status:"finished"}),R5(g.piPickerState)?_({id:t,isExpired:e}):C({id:t,isExpired:e})},onAddResourceEventCallback:function(t){h({name:p,status:"finished"}),v((function(n){var r=t?"Save":"Next";return r!==n.addPiSubState?(0,e.__assign)((0,e.__assign)({},n),{addPiSubState:r}):n}))},onSuccessCallback:function(e,t,n,r,o,i,a){if(h({name:p,status:"finished"}),"EditBackup"===g.piPickerState&&"submitGroup"!==g.triggeredBy)_({id:r,isExpired:!1}),E.piPickerRef.current.goToPickerBackupState();else if("Edit"===g.piPickerState&&"submitGroup"!==g.triggeredBy)C({id:e,isExpired:!1}),E.piPickerRef.current.goToPickerState();else{if(e===$6||r===$6)throw Cr({step:"removeBackupPi"}),new Error("Unexpectedly rendered RemoveBackupPi in PiPickerDialog");Cr({step:"OnSuccessSelect"}),l(e,t,n,r,o,i,a)}},onFailureCallback:function(e){var t=I6(e.errorCode).isUserError;h(t?{name:p,status:"finished"}:{name:p,status:"failed",error:{name:"ChangePaymentError",message:e.message}}),Cr({step:A5,data:{error:w6(e.errorCode),isUserError:t,errorDetails:e}}),I(e)},onLoginRequiredEventCallback:function(e){h({name:p,status:"finished"}),Cr({step:A5,data:{error:w6(e.errorCode),isUserError:e.isUserError,errorDetails:e}}),u(e)},selectPaymentInstrumentRef:E.selectRef,addResourceRef:E.addRef,editResourceRef:E.editRef,authenticationToken:t.authenticationToken});return Qt((function(){h({name:p,status:v5()?"finished":"updating"})})),(0,Gt.useEffect)((function(){var e=document.getElementById(d);e&&e.hasAttribute("tabindex")&&e.removeAttribute("tabindex")})),jt().createElement(CM,(0,e.__assign)({isOpen:!0,onDismiss:(null===s||void 0===s?void 0:s.onDismiss)?function(){Cr({step:"DismissPiPickerDialog"}),(null===s||void 0===s?void 0:s.onDismiss)&&s.onDismiss()}:w,contentId:d,staticBodyWidth:null===s||void 0===s?void 0:s.staticBodyWidth,closeButton:{"data-bi-id":"".concat(d,"-close"),"aria-label":i.close},title:R5(g.piPickerState)?i.addBackupPi:i.selectPaymentTitle,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},minBodyHeight:m5,dialogStylesTemp:h5,operationData:{progressViewOperationData:{operationName:p,componentName:d},errorDialogProps:{title:i.tryAgainTitle,subText:i.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:w,text:i.close,"aria-label":i.close,"data-bi-id":"".concat(d,"-close-window")}}}}},function(t,n,r,o,i,a,s,l,c){var u=r.addRef,d=r.selectRef,p=r.editRef,h=!!c,m=n.saveChanges;if(h)switch(t.piPickerState){case"Add":case"AddBackup":m=n.add;break;case"Select":case"SelectBackup":m=n.next;break;case"Edit":case"EditBackup":m=n.update}var f={"data-bi-id":"".concat(o,"-back"),"aria-label":n.back,onClick:l},g={"data-bi-id":"".concat(o,"-cancel"),"aria-label":h?n.back:n.cancel,onClick:a},v={text:m,"aria-label":m,"data-bi-id":"".concat(o,"-save-changes"),onClick:function(){if(v5())i("mockPrimaryPiid","Mock Primary PI",!0,"mockBackupPiid","Mock Backup Payment","Mock Payment Type");else switch(t.piPickerState){case"Add":u.current.moveNextPage(),Cr({step:"SaveChangesFromAdd"});break;case"AddBackup":u.current.moveNextPage(),Cr({step:"SaveChangesFromAddBackup"});break;case"Select":d.current.moveNextPage(),Cr({step:"SaveChangesFromSelect"});break;case"SelectBackup":d.current.moveNextPage(),Cr({step:"SaveChangesFromSelectBackup"});break;case"Edit":p.current.moveNextPage(),Cr({step:"SaveChangesFromEditSubmit"});break;case"EditBackup":p.current.moveNextPage(),Cr({step:"SaveChangesFromEditSubmitBackup"});break;default:Cr({step:"SaveChangesUnsupportedState",data:t.piPickerState}),s({errorCode:"PiPickerDialgoError",name:"PiPickerDialgoError",message:"Unsupported state: ".concat(t.piPickerState)})}}},y=(0,e.__assign)({text:n.cancel},g),b=(0,e.__assign)({text:n.back},f),C={text:n.next,"aria-label":n.next,"data-bi-id":"".concat(o,"-next"),onClick:function(){u.current.moveNextPage(),Cr({step:"NextFromAdd"})}},S={text:m,"aria-label":n.saveChanges,"data-bi-id":"".concat(o,"-edit-save-changes"),onClick:function(){p.current.moveNextPage(),Cr({step:"SaveFromEdit"})}};switch(t.piPickerState){case"Add":case"AddBackup":return"Next"===t.addPiSubState?h?{dialogFooterProps:{dialogType:"default",buttonPrimary:C},backButton:f}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:C,buttonSecondary:b}}:"emptyResourceList"===t.triggeredBy?h?{dialogFooterProps:{dialogType:"default",buttonPrimary:v,richTextProps:n.footerText},backButton:g}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:v,buttonSecondary:y,richTextProps:n.footerText}}:h?{dialogFooterProps:{dialogType:"default",buttonPrimary:v,richTextProps:n.footerText},backButton:f}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:v,buttonSecondary:b,richTextProps:n.footerText}};case"Edit":case"EditBackup":return"submitGroup"===t.triggeredBy?h?{dialogFooterProps:{dialogType:"default",buttonPrimary:v,richTextProps:n.footerText},backButton:f}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:v,buttonSecondary:b,richTextProps:n.footerText}}:h?{dialogFooterProps:{dialogType:"default",buttonPrimary:S},backButton:f}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:S,buttonSecondary:b}};case"SelectBackup":return h?{dialogFooterProps:{dialogType:"default",buttonPrimary:v,richTextProps:n.footerText},backButton:f}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:v,buttonSecondary:b,richTextProps:n.footerText}};default:return h?{dialogFooterProps:{dialogType:"default",buttonPrimary:v,richTextProps:n.footerText},backButton:g}:{dialogFooterProps:{buttonPrimary:v,buttonSecondary:y,richTextProps:n.footerText}}}}(g,i,E,d,l,w,I,(function(){"AddBackup"===g.piPickerState||"EditBackup"===g.piPickerState?(E.piPickerRef.current.goToPickerBackupState(),Cr({step:"GoBackFromBackup"})):(E.piPickerRef.current.goToPickerState(),Cr({step:"GoBackFromPrimary"}))}),null===s||void 0===s?void 0:s.showBackButton)),jt().createElement(bb,{childrenGap:15},i.selectPaymentHelperText?jt().createElement(bb,{id:"pipicker-helper-text"},jt().createElement(Ib,{variant:"headerText",id:"".concat(d,"-helper-text")},N5(i.selectPaymentHelperText))):jt().createElement(jt().Fragment,null),jt().createElement(bb,{id:"change-payment-with-text"},function(e,t,n){switch(t){case"SelectBackup":return jt().createElement(Ib,{variant:"headerText",id:"".concat(n,"-backup-message")},N5(e.selectBackupPiSubText));case"Add":case"AddBackup":return jt().createElement(Ib,{variant:"headerText",id:"".concat(n,"-message-add")},N5(e.addPiSubText));case"Edit":case"EditBackup":return jt().createElement(Ib,{variant:"headerText",id:"".concat(n,"-update-text-submit")},N5(e.updatePiSubText));default:return jt().createElement(Ib,{variant:"headerText",id:"".concat(n,"-message")},N5(e.selectPaymentSubText))}}(i,g.piPickerState,d)),R5(g.piPickerState)?jt().createElement(GF,{messageBarType:"warning",messageContent:i.selectBackupPiAlertMessage}):jt().createElement(jt().Fragment,null),k?jt().createElement(GF,{messageBarType:"severe-warning",messageContent:i.expiredPiAlertMessage}):jt().createElement(jt().Fragment,null),jt().createElement(bb,{id:"pi-picker"},jt().createElement("div",{"aria-labelledby":"change-payment-with-text",tabIndex:-1},v5()?jt().createElement(jt().Fragment,null):jt().createElement(T5,(0,e.__assign)({ref:E.piPickerRef},P))))))},F5=function(e){var t=e.spinnerAriaLabel,n=e.spinnerMessage;return jt().createElement(bb,{height:"100%",width:"100%",verticalAlign:"center",horizontalAlign:"center",childrenGap:38},jt().createElement(uw,{"aria-label":t,spinnerSize:2}),n?jt().createElement(bb,{textAlignment:"center"},jt().createElement(Ib,{variant:"paneHeader"},n)):jt().createElement(jt().Fragment,null))},B5="Invalid Date",O5=function(t){var n=t.env,r=t.onSuccessCallback,o=t.onFailureCallback,i=t.spinnerAriaLabel,a=t.data,s=t.failedText,l=t.firstLoadView,c=void 0===l?"Spinner":l,u=t.failedViewOverride,d="payment-display-handler",p="getAccessTokenOrHandlePiDisplay",h=mi(),m=(0,Gt.useState)({}),f=m[0],g=m[1],v=(0,Gt.useState)(!1),y=v[0],b=v[1],C=jt().createRef();Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return h({name:p,status:"updating"}),v5()||u5.includes(a.piid)?(r({id:"mock",name:"Mock **1234",status:"Active"}),[3,5]):[3,1];case 1:return e.trys.push([1,3,,4]),[4,C5(p,o,h,void 0,!0)];case 2:return t=e.sent(),g(t),[3,4];case 3:return n=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:d,message:n.toString()}),[3,4];case 4:h({name:p,status:"finished"}),e.label=5;case 5:return[2]}}))}))}));var S=jt().createElement(F5,{spinnerAriaLabel:i}),x=jt().createElement(bb,{width:"100%",horizontal:!0,childrenGap:14,verticalAlign:"center",height:40},jt().createElement(Cb,null,jt().createElement(nw,{width:40,height:40})),jt().createElement(Cb,null,jt().createElement(nw,{height:12,width:120}))),_="Shimmer"===c?x:S,E={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e||(b(!0),h({name:p,status:"finished"}))}},k={userId:"me",authToken:'MSADELEGATE1.0="'.concat(f.token,'"'),additionalHeaders:o5("Display")},w={parameters:{partner:f6,market:a.market,language:a.language,currency:a.transactionCurrency,billableAccountId:a.billableAccountId,filters:{id:a.piid},completePrerequisites:!0},resourceType:"PaymentInstrument"},I={callbacks:{failure:function(e){var t=i5(e,"PiDisplayFailed");h({name:p,status:"failed",error:t}),o(t)}}},P=function(e){var t,n,o,i,s,l,c,u,d;if(e===h6.pidl.internal.constants.eventNames.pageRendered){var p=null===(t=null===C||void 0===C?void 0:C.current)||void 0===t?void 0:t.getSelectedResource(),h=null===p||void 0===p?void 0:p.instance,m=void 0,f=void 0,g=null===(n=null===h||void 0===h?void 0:h.details)||void 0===n?void 0:n.currency,v=null===(o=null===h||void 0===h?void 0:h.details)||void 0===o?void 0:o.balance;if(v&&g&&(f=new Intl.NumberFormat(a.language,{style:"currency",currency:g}).format(v)),(null===(i=null===h||void 0===h?void 0:h.details)||void 0===i?void 0:i.expiryYear)&&(null===(s=null===h||void 0===h?void 0:h.details)||void 0===s?void 0:s.expiryMonth)&&(m=new Date(Number(h.details.expiryYear),Number(h.details.expiryMonth),0).toLocaleDateString(a.language,{year:"numeric",month:"2-digit"})),h){var y={id:h.id,name:h.details.defaultDisplayName,accountId:null===h||void 0===h?void 0:h.accountId,paymentMethodType:null===(l=null===h||void 0===h?void 0:h.paymentMethod)||void 0===l?void 0:l.paymentMethodType,expirationDate:m,daysUntilExpired:null===(c=null===h||void 0===h?void 0:h.details)||void 0===c?void 0:c.daysUntilExpired,csvBalanceAmount:v,csvBalanceFormatted:f,status:h.status,isSoldToAddressRequired:null===(d=null===(u=null===h||void 0===h?void 0:h.paymentMethod)||void 0===u?void 0:u.properties)||void 0===d?void 0:d.soldToAddressRequired};r(y)}}},T=jt().useMemo((function(){return f.token?jt().createElement(jt().Fragment,null,y?jt().createElement(jt().Fragment,null):_,jt().createElement(h6.SelectSingleResource,{displayOptions:E,elementFactory:new p6.CG,userContext:k,env:n,returnOptions:I,ref:C,pidlDocInfo:w,onEvent:P})):_}),[f,y]),D=null!==u&&void 0!==u?u:jt().createElement(Ib,{variant:"headerText"},s);return jt().createElement(vi,{operationData:{componentName:d,operationName:p},firstLoadView:_,finishedView:T,failedView:D})},L5=function(e){var t=e.isMobile?"86vh":"75vh";return jt().createElement(bb,{childrenGap:0},jt().createElement("div",{style:{height:t,maxHeight:"810px"}},jt().createElement(bb,{horizontal:!1,childrenGap:16},jt().createElement(bb,{horizontal:!1,childrenGap:37},jt().createElement(nw,{width:174,height:12}),jt().createElement(nw,{width:315,height:8})),jt().createElement(bb,{horizontal:!1,childrenGap:32},jt().createElement(nw,{width:84,height:8}),jt().createElement(nw,{width:101,height:12})),jt().createElement(nw,{width:170,height:8}),jt().createElement(nw,{width:159,height:8}),jt().createElement(nw,{width:41,height:8}),jt().createElement(bb,{horizontal:!1,childrenGap:31},jt().createElement(nw,{width:54,height:8}),jt().createElement(nw,{width:101,height:12})),jt().createElement(nw,{width:170,height:8}),jt().createElement(nw,{width:159,height:8}),jt().createElement(nw,{width:41,height:8}))),jt().createElement(dk,{text:"","data-bi-id":"",type:"primary","aria-label":"",onClick:function(){},disabled:!0}))},H5=function(t){var n=t.market,r=t.addressId,o=t.language,i=t.env,a=t.onSuccessCallback,s=t.onFailureCallback,l=t.onReady,c=t.mobileDivStyle,u=t.nonMobileDivStyle,d=t.scenario,p=t.spinnerAriaLabel,h=t.authenticationToken,m="address-verification",f="validateAddressOrGetAccessToken",g=ny(),v=ry(g),y=mi(),b=(0,Gt.useState)({}),C=b[0],S=b[1],x=(0,Gt.useState)(!1),_=x[0],E=x[1],k=(0,Gt.useState)(!1),w=k[0],I=k[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return zs("SvcValAddrFail")?(s({name:"ValAddrFail",errorCode:"ValAddrFail",message:"ValAddrFail"}),[3,7]):[3,1];case 1:return zs("PidlSuccess")?(a({id:"mock id"}),[3,7]):[3,2];case 2:return y({name:f,status:"updating"}),h?(Cr({step:"AddressVerificationSetAuthenticationTokenFromParam"}),S(h),[3,6]):[3,3];case 3:return e.trys.push([3,5,,6]),[4,C5(f,s,y)];case 4:return t=e.sent(),S(t),[3,6];case 5:return n=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:m,message:n.toString()}),[3,6];case 6:y({name:f,status:"finished"}),e.label=7;case 7:return[2]}}))}))}));var P,T=v?c:u,D=_&&T?T:{};return P=C.token?w?jt().createElement(F5,{spinnerAriaLabel:p}):jt().createElement("div",{style:D},_?jt().createElement(jt().Fragment,null):jt().createElement(L5,(0,e.__assign)({},{isMobile:v})),jt().createElement(m6.HH,{language:o,partner:f6,country:n,env:i,addressId:r,userContext:a5(C.token,r5()),addressType:"px_v3",returnOptions:{callbacks:{success:function(e){I(!0),e&&e.id?(Cr({step:"AddressVerificationSucceeded"}),a(e)):(y({name:f,status:"failed",error:{name:"NoAddressId",message:"No addressId returned"}}),s({name:"NoAddressId",errorCode:"NoAddressId",message:"No addressId returned"}))},failure:function(e){I(!0);var t=i5(e,"ValidateAddressFail");y({name:f,status:"failed",error:t}),s(t)}}},elementFactory:new p6.CG,busyBlockShowHideHandler:function(e){e||(l&&l(),E(!0),y({name:f,status:"finished"}))},parameters:{scenario:d5(d)},telemetryOptions:s5()})):jt().createElement(L5,(0,e.__assign)({},{isMobile:v})),jt().createElement(vi,{operationData:{componentName:m,operationName:f},firstLoadView:P,finishedView:P})};function V5(e,t){return dn(window.location.href,e,t?"true":"false")}function z5(e,t){var n=!1===t?fn(e,!0):gn(e,!0);return n?"true"===n:void 0}function U5(){var e,t=null!==(e=gn("errorCode",!0))&&void 0!==e?e:"UnknownError";gn("errorMessage",!0);return A6,{name:"HandlePaymentChallengeFailure.India2FA",message:"PIDL error not detected",errorCode:t,challengeStatus:gn(z6,!0)}}function W5(t){Er((0,e.__assign)((0,e.__assign)({},t),{fromStep:"India2FARedirectLeave",step:"India2FARedirectResume"}))}function G5(t){var n,r,o,i,a,s,l,c,u,d,p,h=V5(t.india2FASuccessParam,!0),m=(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],t.productId?[(n={},n.productid=t.productId,n)]:[],!0),t.productId?[(r={},r.modelId=t.productId,r)]:[],!0),t.skuId?[(o={},o.skuid=t.skuId,o)]:[],!0),t.piid?[(i={},i.selectedPiid=t.piid,i)]:[],!0),t.paymentName?[(a={},a.paymentName=t.paymentName,a)]:[],!0),t.paymentType?[(s={},s.paymentType=t.paymentType,s)]:[],!0),t.isSoldToAddressIdRequired?[(l={},l.isSoldToAddressIdRequired=t.isSoldToAddressIdRequired.toString(),l)]:[],!0),t.launchDialogParamName?[(c={},c[t.launchDialogParamName]="true",c)]:[],!0),t.isBackup?[(u={},u.isBackup=t.isBackup.toString(),u)]:[],!0),t.csvPiid?[(d={},d.csvPiid=t.csvPiid,d)]:[],!0),t.csvPaymentName?[(p={},p.csvPaymentName=t.csvPaymentName,p)]:[],!0);return pn(h,m)}function j5(t,n,r){var o,i,a=V5(t,!1),s=(0,e.__spreadArray)((0,e.__spreadArray)([],r?[(o={},o.modelId=r,o)]:[],!0),n?[(i={},i[n]="true",i)]:[],!0);return pn(a,s)}function q5(){var e,t,n,r,o,i,a,s,l,c,u,d=null!==(e=gn("piid",!0))&&void 0!==e?e:"unknownPiid",p=null!==(t=gn("sessionId",!0))&&void 0!==t?t:void 0,h=null!==(n=gn(z6,!0))&&void 0!==n?n:void 0;return{piid:d,selectedPiid:null!==(r=gn(N6,!0))&&void 0!==r?r:void 0,paymentName:null!==(o=gn(B6,!0))&&void 0!==o?o:void 0,paymentType:null!==(i=gn(V6,!0))&&void 0!==i?i:void 0,backupPiid:null!==(a=gn(M6,!0))&&void 0!==a?a:void 0,backupPaymentName:null!==(s=gn(O6,!0))&&void 0!==s?s:void 0,sessionId:p,challengeStatus:h,isSoldToAddressIdRequired:"true"===gn(H6,!0),skuId:null!==(l=gn(K6,!0))&&void 0!==l?l:void 0,productId:null!==(c=gn(Y6,!0))&&void 0!==c?c:void 0,modelId:null!==(u=gn(q6,!0))&&void 0!==u?u:void 0}}function K5(){var e,t,n=q5(),r="true"===gn(Q6,!0),o=null!==(e=gn(F6,!0))&&void 0!==e?e:void 0,i=null!==(t=gn(L6,!0))&&void 0!==t?t:void 0;return{pi:{id:n.piid,isSoldToAddressRequired:n.isSoldToAddressIdRequired,paymentMethodType:n.paymentType,displayName:n.paymentName},skuId:n.skuId,productId:n.productId,modelId:n.modelId,challengeStatus:n.challengeStatus,sessionId:n.sessionId,selectedPiid:n.selectedPiid,isSoldToAddressIdRequired:n.isSoldToAddressIdRequired,isBackup:r,csvPiid:o,csvPaymentName:i}}var Y5,X5=function(t){var n=t.env,r=t.piChallengeData,o=t.onSuccessCallback,i=t.onFailureCallback,a=t.onCancelCallback,s=t.onReady,l=t.redirectSuccessUrl,c=t.redirectFailureUrl,u=t.spinnerAriaLabel,d=t.spinnerMessage,p=t.authenticationToken,h="payment-challenge-handler",m="getAccessTokenOrHandlePiChallenge",f=mi(),g=ny(),v=ry(g),y=(0,Gt.useState)({}),b=y[0],C=y[1],S=(0,Gt.useState)(!0),x=S[0],_=S[1];Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,s;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return f({name:m,status:"first-load"}),zs("PidlSuccess")?(o(c5,l5),[3,10]):[3,1];case 1:return zs("PidlFailPIValError")?(f({name:m,status:"failed"}),i({name:"ValidatePIOnAttachFailed",errorCode:"ValidatePIOnAttachFailed",message:"Your bank could not authorize this payment method. Contact them for more info.",challengeStatus:"Failed",isUserError:!0}),[3,10]):[3,2];case 2:return zs("PidlFail")?(f({name:m,status:"failed"}),i({name:"PidlFailed",errorCode:"PidlFailed",message:"Mock PidlFailed",challengeStatus:"Failed"}),[3,10]):[3,3];case 3:return zs("PidlTimeout")?(f({name:m,status:"failed"}),i({name:"PidlTimedOut",errorCode:"PidlTimedOut",message:"Mock PidlTimedOut",challengeStatus:"TimedOut"}),[3,10]):[3,4];case 4:return zs("PidlCancel")?(a(),[3,10]):[3,5];case 5:return p?(Cr({step:"PiChallengeSetAuthenticationTokenFromParam"}),C(p),[3,9]):[3,6];case 6:return e.trys.push([6,8,,9]),t=C5(m,i,f),n=w5(h),[4,Promise.all([t,n])];case 7:return r=e.sent()[0],C(r),[3,9];case 8:return s=e.sent(),Br({name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:h,message:s.toString()}),[3,9];case 9:f({name:m,status:"finished"}),e.label=10;case 10:return[2]}}))}))}));var E={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e?(_(!0),f({name:m,status:"updating"})):(_(!1),f({name:m,status:"finished"}))}},k={callbacks:{success:function(e){var t=e,n=t.challengeStatus,a=t.id;(T6(r.piid,t.piid),"Succeeded"===n||"NotApplicable"===n||"ByPassed"===n)?(Cr({step:"HandlePaymentChallengeSuccess.Challenge".concat(n)}),o(n,a)):(Cr({step:"HandlePaymentChallengeFail.Challenge".concat(n)}),i({name:"PiChallengeStatusError",errorCode:"PiChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:n}))},failure:function(e){var t=function(e,t){var n,r=e,o="UnknownError",i=A6,a="Unknown",s=!1,l=JSON.stringify(e),c="invalidSetup",u="paymentMethodFailure",d="failedToOpenWindow",p="RejectedByProvider";if(null===(n=null===r||void 0===r?void 0:r.error)||void 0===n?void 0:n.innererror){switch(r.error.innererror.InnerError&&(r.error.innererror.InnerError.ErrorCode&&(o=r.error.innererror.InnerError.ErrorCode),r.error.innererror.InnerError.UserDisplayMessage&&(i=r.error.innererror.InnerError.UserDisplayMessage),a=r.error.innererror.InnerError.Message),o){case"ValidatePIOnAttachFailed":case p:s=!0}"UnknownError"===o&&-1!==l.indexOf(p)&&(o=p,i="Rejected by provider",a="Failed",s=!0)}return"UnknownError"===o&&-1!==l.indexOf(c)?(o=c,i="GPay/APay Invalid Setup",a="Failed"):"UnknownError"===o&&-1!==l.indexOf(u)?(o=u,i="GPay/APay Payment MethodFailure",a="Failed"):"UnknownError"===o&&-1!==l.indexOf(d)&&(o=d,i="GPay/APay failed to open new window due to pop up blocker",a="Failed",s=!0),{name:t,errorCode:o,message:i,challengeStatus:a,stack:l,isUserError:s}}(e,"HandlePaymentChallengeFail");Cr({step:"HandlePaymentChallengeFail",error:t.errorCode,data:{errorDetails:e,isUserError:t.isUserError}}),f({name:m,status:"failed",error:t}),i(t)},gohome:function(){Cr({step:"HandlePaymentChallengeCancel"}),a()}},urls:{success:l,failure:c}},w=function(e,t){e===h6.pidl.internal.constants.eventNames.navigate&&t.piRedirection&&(kr({step:"India2FARedirectLeave"}),window.open(t.url,"_self")),e===h6.pidl.internal.constants.eventNames.pidlDownloaded&&s&&s(),e===h6.pidl.internal.constants.eventNames.pageRefreshed&&Ir()&&Cr({step:"RenderPiChallengeHandler"})},I=function(){var t=r.country,n="SvcIndia2FATest";return zs(n)&&(t="IN",Ir()&&Cr({step:n})),(0,e.__assign)((0,e.__assign)({partner:f6,challengeWindowSize:r.windowSize?r.windowSize:"03"},r),{country:t,recurringPaymentDetails:void 0})},P=jt().createElement(F5,{spinnerAriaLabel:u,spinnerMessage:d}),T=jt().useMemo((function(){return b.token?jt().createElement(jt().Fragment,null,jt().createElement("div",{style:{display:x?"block":"none",height:"100%",width:"100%"}},P),jt().createElement("div",{style:{display:x?"none":"block",padding:v?"0px":"0 0 0 15px"}},jt().createElement(h6.HandlePaymentChallenge,{displayOptions:E,elementFactory:new p6.CG,userContext:a5(b.token,n5()),env:n,onEvent:w,paymentSessionOrData:I(),returnOptions:k,telemetryOptions:s5()}))):jt().createElement(jt().Fragment,null)}),[b,x,v]);return jt().createElement(vi,{operationData:{componentName:h,operationName:m},firstLoadView:P,updatingView:T,finishedView:T,failedView:P})},Q5=function(t){var n=t.piChallengeProps,r=t.dialogTitle,o=t.closeAriaLabel,i=t.dialogComponentName,a=t.dialogOperationName,s=t.minBodyHeight,l=t.staticBodyWidth,c=mi();Qt((function(){c({name:a,status:"updating"}),Cr({step:"ChallengeStart"})}));var u={progressViewOperationData:{operationName:a,componentName:i},errorDialogProps:{},progressDialogProps:{}},d={isOpen:!0,onDismiss:function(){c({name:a,status:"finished"}),Cr({step:"CancelPiChallengeDialog"}),n.onCancelCallback()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:r,closeButton:{"data-bi-id":"".concat(i,"-close"),"aria-label":o},dialogStylesTemp:h5,operationData:u,minBodyHeight:null!==s&&void 0!==s?s:m5,staticBodyWidth:l},p=jt().createElement(X5,(0,e.__assign)({},n,{onReady:function(){c({name:a,status:"finished"})}}));return jt().createElement(CM,(0,e.__assign)({},d),jt().createElement(vi,{operationData:{componentName:i,operationName:a},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:p,failedView:jt().createElement(jt().Fragment,null),finishedView:p}))},Z5=function(t){var n,r=mi(),o=EM();Qt((function(){r({name:t.dialogOperationName,status:"updating"}),Cr({step:"AddressVerificationStart"})}));var i={isOpen:!0,onDismiss:function(){o.closeDialog()},operationData:{progressViewOperationData:{operationName:t.dialogOperationName,componentName:t.dialogComponentName},errorDialogProps:{},progressDialogProps:{}},dialogStylesTemp:{main:{width:"480px"}},minBodyHeight:null!==(n=t.minBodyHeight)&&void 0!==n?n:m5},a=jt().createElement(H5,(0,e.__assign)({},(0,e.__assign)((0,e.__assign)({},t.addressVerificationProps),{onReady:function(){r({name:t.dialogOperationName,status:"finished"}),t.addressVerificationProps.onReady&&t.addressVerificationProps.onReady()}})));return jt().createElement(CM,(0,e.__assign)({},i),jt().createElement(vi,{operationData:{componentName:t.dialogComponentName,operationName:t.dialogOperationName},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:a,failedView:jt().createElement(jt().Fragment,null),finishedView:a}))};function J5(e){var t=e,n=[];return{setValue:function(e){t!==e&&(t=e,rn().unstable_batchedUpdates((function(){n.forEach((function(t){return t(e)}))})))},useValue:function(){var e=function(e){var t=(0,Gt.useState)(e)[1];return(0,Gt.useCallback)((function(e){t(e)}),[])}(t);return Qt((function(){n=n.concat(e)})),Xt((function(){n=n.filter((function(t){return t!==e}))})),t}}}var $5=function(){return Y5.useValue()},e8=function(e){Y5.setValue(e)},t8=["VerifyExperienceAuthError","FailedToRenderThreeDsChallenge","UserLoginAbsenceError","InternalServerError"],n8=function(e,t,n,r,o,i,a,s){var l,c=!1,u=!1;switch(e.challengeStatus){case"Failed":e.errorCode&&t8.indexOf(e.errorCode)>=0?(l=n,u=!0):e.errorCode&&"invalidSetup"===e.errorCode?(l=i,u=!0):e.errorCode&&"paymentMethodFailure"===e.errorCode?(l=a,u=!0):e.errorCode&&"failedToOpenWindow"===e.errorCode?(l=s,u=!1,c=!0):(l=e.message&&e.message!==A6?e.message:r,c=!0);break;case"TimedOut":l=o,c=!0;break;default:l=n,u=!0}return{errorTitle:t,errorMessage:l,errorCode:e.errorCode?e.errorCode:"ChallengeError",isUserError:c,isQoSImpactedError:u,isRefreshNeeded:!1}},r8=function(e,t){return n8(t,e.genericErrorTitle,e.genericErrorMessage,e.bankAuthFailMessage,e.bankAuthTimeoutMessage,e.invalidSetupMessage,e.paymentMethodFailureMessage,e.failedToOpenNewWindowMessage)},o8=function(e){return{buttonText:e.smdErrorCta,buttonUrlReplacementString:"/billing/addresses",errorTitle:e.smdErrorTitle,errorMessage:e.smdErrorBody,errorCode:"soldToAddressId not found",isUserError:!0,isQoSImpactedError:!1,isRefreshNeeded:!1}},i8=function(e,t,n,r,o,i,a,s){var l;switch(e.toLowerCase()){case"day":l=t>1?sn(r,t):n;break;case"month":l=t>1?sn(i,t):o;break;case"year":l=t>1?sn(s,t):a;break;default:throw new Error("Cycle unit not supported")}return l};function a8(e,t){if(zs("SMDFailed"))return{addressIdToSend:"127.0.0.1",isFailed:!0};if(zs("SMDPass"))return{addressIdToSend:"127.0.0.1",isFailed:!1};if("recurrence"!==e.type||!t)return{soldToAddressId:void 0,isFailed:!1};var n,r;if(Cr({step:"SoldToAddressStart"}),(null===e||void 0===e?void 0:e.allPossibleAddressIds)&&e.market)for(var o=Object.entries(e.allPossibleAddressIds),i=0;i<o.length;i++){var a=o[i][0],s=o[i][1];if(e.market.toUpperCase()===s.toUpperCase()){if(e.soldToAddressId===a){n=a;break}r||(r=a)}}return n||r?(Cr({step:"SoldToAddressSucceeded"}),{addressIdToSend:null!==n&&void 0!==n?n:r,isFailed:!1}):(Cr({step:"SoldToAddressFailed"}),{addressIdToSend:null!==n&&void 0!==n?n:r,isFailed:!0})}function s8(e){var t=new URLSearchParams(window.location.search),n=window.location.href.split("#")[0],r=window.location.href.split("#")[1];return t.toString()?r?"".concat(n,"&").concat(e,"=true#").concat(r):"".concat(n,"&").concat(e,"=true"):r?"".concat(n,"?").concat(e,"=true#").concat(r):"".concat(n,"?").concat(e,"=true")}function l8(){var e,t,n=fn("fref"),r=fn("ref"),o=fn("ocid");return null!==(t=null!==(e=null!==o&&void 0!==o?o:r)&&void 0!==e?e:n)&&void 0!==t?t:"deeplink"}var c8=function(e,t){var n;return"EPAY"===(null===(n=e.biType)||void 0===n?void 0:n.toUpperCase())?t.ePayDisplayName.replace("{lastFour}",e.name):e.name},u8=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","CH"],d8=["CA"],p8=["BR","IN"],h8=["CA"],m8=["US"],f8=function(e){return p8.includes((null===e||void 0===e?void 0:e.toUpperCase())||"")},g8=function(e){return h8.includes((null===e||void 0===e?void 0:e.toUpperCase())||"")},v8=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BQ","BR","BS","BT","BW","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CO","CR","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GT","GU","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RW","SA","SB","SC","SE","SG","SH","SI","SK","SL","SM","SN","SO","SR","ST","SV","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","US","UY","UZ","VA","VC","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],y8={sharingActionNotAllowed:"sharingActionNotAllowed",invitationDoesNotExist:"invitationDoesNotExist",sharingSlotsExhausted:"sharingSlotsExhausted",sharingInvitationLimitExceeded:"sharingInvitationLimitExceeded",userAlreadyGuestInSubscription:"userAlreadyGuestInSubscription",userErrorCantShareAlreadyOnSubscription:"userErrorCantShareAlreadyOnSubscription",userErrorTrialShareLimit:"userErrorTrialShareLimit",userThrottled:"userThrottled",userAlreadyHasSubscription:"userAlreadyHasSubscription",userIsNotSharedWithSubscription:"userIsNotSharedWithSubscription",subscriptionReachedMaxUsers:"subscriptionReachedMaxUsers",userErrorAccountClosed:"userErrorAccountClosed",concurrentWritesConflict:"concurrentWritesConflict",xboxUserErrorCountryMismatch:"xboxUserErrorCountryMismatch",xboxUserErrorGuestNotInFlight:"xboxUserErrorGuestNotInFlight",xboxUserErrorAdminShareThrottled:"xboxUserErrorAdminShareThrottled",xboxUserErrorGuestShareThrottled:"xboxUserErrorGuestShareThrottled",xboxUserErrorCantShareNoSpace:"xboxUserErrorCantShareNoSpace",xboxUserErrorSubscriptionNotActive:"xboxUserErrorSubscriptionNotActive",xboxUserErrorAdminHasNoValidSubscription:"xboxUserErrorAdminHasNoValidSubscription",xboxUserErrorSharingOtherSubscription:"xboxUserErrorSharingOtherSubscription",xboxUserErrorExistingInvitationNotFound:"xboxUserErrorExistingInvitationNotFound",xboxUserErrorInvitationAlreadyAccepted:"xboxUserErrorInvitationAlreadyAccepted",xboxUserErrorAlreadyInvited:"xboxUserErrorAlreadyInvited",userErrorAlreadyInvited:"userErrorAlreadyInvited",xboxUserErrorInvitationExpired:"xboxUserErrorInvitationExpired",networkError:"networkError",forbidden:"forbidden",partnerForbiddenFailure:"partnerForbiddenFailure",partnerErrorNotFound:"partnerErrorNotFound",entityChangeConflict:"notAllowed.EntityChangeConflict",memberAlreadyInGroup:"itemAlreadyExists.MemberAlreadyInGroup",memberNotInGroup:"itemNotFound.MemberNotInGroup",sourceUserNotInGroup:"NotAllowed.SourceUserNotInGroup",userAccountNotExist:"NotAllowed.UserAccountDoesNotExist",alreadyHasManageability:"quotaLimitReached.AlreadyHasManageability",inviteLimitExceeded:"quotaLimitReached.InviteLimitExceeded",joinLimitExceeded:"quotaLimitReached.JoinLimitExceeded",groupMemberSizeExceedLimit:"QuotaLimitReached.GroupMemberSizeExceedLimit",nonAdminNotAllow:"notAllowed.NonAdminMemberNotAllowedToAddMember",pendingMemberNotInFamily:"family.PendingMemberNotInFamily",actionThrottledForFamily:"family.ActionThrottledForFamily",actionThrottledForUser:"family.ActionThrottledForUser",familySizeExceedLimit:"family.FamilySizeExceedLimit"},b8=[y8.alreadyHasManageability,y8.concurrentWritesConflict,y8.entityChangeConflict,y8.forbidden,y8.groupMemberSizeExceedLimit,y8.invitationDoesNotExist,y8.inviteLimitExceeded,y8.joinLimitExceeded,y8.memberAlreadyInGroup,y8.memberNotInGroup,y8.networkError,y8.nonAdminNotAllow,y8.sharingActionNotAllowed,y8.sharingSlotsExhausted,y8.subscriptionReachedMaxUsers,y8.userAccountNotExist,y8.userAlreadyGuestInSubscription,y8.userAlreadyHasSubscription,y8.userErrorAccountClosed,y8.userErrorAlreadyInvited,y8.userErrorCantShareAlreadyOnSubscription,y8.userErrorTrialShareLimit,y8.userIsNotSharedWithSubscription,y8.userThrottled,y8.xboxUserErrorAdminShareThrottled,y8.xboxUserErrorCantShareNoSpace,y8.xboxUserErrorCountryMismatch,y8.xboxUserErrorGuestNotInFlight,y8.xboxUserErrorGuestShareThrottled,y8.xboxUserErrorInvitationExpired,y8.xboxUserErrorSubscriptionNotActive,"licenseNotFound","previousRequestInProgress","orderLocked","badRequest","insufficientFunds","invalidPaymentInstrument","processorDeclined","transactionNotAllowed","expiredPaymentInstrument","amountLimitExceeded","authCaptureInProgress","riskRejected","partnerForbiddenProcessorDeclined","partnerForbiddenInsufficientFunds","unauthorized","maxStackingDurationExceeded","invalid_grant"],C8=9e4,S8=["networkError","30sTimeout","60sTimeout","90sTimeout"],x8=["insufficientFunds","invalidPaymentInstrument","processorDeclined","transactionNotAllowed","expiredPaymentInstrument","riskRejected","partnerForbiddenProcessorDeclined","partnerForbiddenInsufficientFunds"],_8=["ERR_CANCELED","ERR_NETWORK","ECONNABORTED"],E8={},k8="/services/api/",w8="MeePortal",I8="178",P8="179",T8='"1"',D8='"2"',A8="os-sku",R8="os-mode";function N8(t,n,r,o,i){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return t&&el(E8,n),[4,tl(E8,n,(function(){return B8(r,o,i)}))];case 1:return[2,e.sent()]}}))}))}function M8(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,tl(E8,t,(function(){return Promise.resolve()}))];case 1:return[2,e.sent()]}}))}))}function F8(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return el(E8,t),[4,tl(E8,t,(function(){return Promise.resolve(n)}))];case 1:return e.sent(),[2]}}))}))}function B8(e,t,n,r){return z8((function(e,t,n,r){return Ps(e,t,n,r)}),e,t,n,r)}function O8(e,t,n,r){return V8(Ts,e,t,n,r)}function L8(e,t,n,r,o){return V8(Ds,e,t,n,r,o)}function H8(e,t,n){return z8((function(e,t,n){return Rs(e,t,n)}),e,t,n)}function V8(t,n,r,o,i,a){var s,l,c,u,d,p;return(0,e.__awaiter)(this,void 0,void 0,(function(){var h,m,f,g;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:h=k8+r,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t(h,{partnerName:w8,operation:n},o,W8(i||{}),a)];case 2:return[2,e.sent().data];case 3:return m=e.sent(),g=null===(c=null===(l=null===(s=(f=m).response)||void 0===s?void 0:s.data)||void 0===l?void 0:l.data)||void 0===c?void 0:c.signInLink,401===(null===(u=f.response)||void 0===u?void 0:u.status)&&g&&(window.location.href=g),(null===(p=null===(d=f.response)||void 0===d?void 0:d.data)||void 0===p?void 0:p.error)||(f.response=f.response||{},f.response.data=f.response.data||{},f.response.data.error=U8(f)),[2,Promise.reject(m)];case 4:return[2]}}))}))}function z8(t,n,r,o,i){var a,s,l,c,u,d;return(0,e.__awaiter)(this,void 0,void 0,(function(){var p,h,m,f;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:p=k8+r,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t(p,{partnerName:w8,operation:n},W8(o||{}),i)];case 2:return[2,e.sent().data];case 3:return h=e.sent(),f=null===(l=null===(s=null===(a=(m=h).response)||void 0===a?void 0:a.data)||void 0===s?void 0:s.data)||void 0===l?void 0:l.signInLink,401===(null===(c=m.response)||void 0===c?void 0:c.status)&&(f?window.location.href=f:window.location.reload()),(null===(d=null===(u=m.response)||void 0===u?void 0:u.data)||void 0===d?void 0:d.error)||(m.response=m.response||{},m.response.data=m.response.data||{},m.response.data.error=U8(m)),[2,Promise.reject(h)];case 4:return[2]}}))}))}function U8(e){var t,n,r,o="";switch(null!==(r=null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.message)&&void 0!==r?r:e.message){case"timeout of 90000ms exceeded":o="90sTimeout";break;case"timeout of 60000ms exceeded":o="60sTimeout";break;case"timeout of 30000ms exceeded":o="30sTimeout";break;case"Network Error":o="networkError"}return o}function W8(e){var t;return e.headers=e.headers||{},e.headers["X-TzOffset"]=-(new Date).getTimezoneOffset(),e.headers["X-IsCloudOS"]=function(){try{if(window.external&&"getHostEnvironmentValue"in window.external){var e=window.external,n=[I8,P8],r=[T8,D8];try{var o=e.getHostEnvironmentValue(A8);if(o&&n.some((function(e){return-1!==o.indexOf(e)})))return!0}catch(t){return!1}try{var i=e.getHostEnvironmentValue(R8);if(i&&r.some((function(e){return-1!==i.indexOf(e)})))return!0}catch(VN){return!1}}}catch(MM){return!1}return!1}(),e.timeout=null!==(t=e.timeout)&&void 0!==t?t:6e4,e}function G8(){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.SERVICESALERTS","services-alerts")];case 1:return[2,e.sent()]}}))}))}var j8=function(e){var t,n=null!==(t=e.errorCode)&&void 0!==t?t:"";return _8.indexOf(n)>=0?(e.isSuccess=!0,m):h},q8=function(e){return"PCGamePass"===e?{overrideRequestQosData:j8}:{}};function K8(t){var n;return(0,e.__awaiter)(this,void 0,void 0,(function(){var r;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return r=q8(null!==(n=t.brandId)&&void 0!==n?n:""),[4,B8("GLOBAL.SERVICES.GETCANCELREFUNDDATA","cancelrefunddata",{params:{serviceId:t.serviceId,serviceType:t.serviceType,cancelType:t.cancelType,fref:t.fref,conversionPathTypes:t.conversionPathTypes}},r)];case 1:return[2,e.sent()]}}))}))}function Y8(t,n){var r;return(0,e.__awaiter)(this,void 0,void 0,(function(){var o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return o=q8(t.brandId),[4,L8("GLOBAL.SERVICES.CANCELSERVICE","cancelservice",{serviceId:t.id,serviceType:t.type,refundAmount:n.refundData.amount,riskToken:null!==(r=n.riskToken)&&void 0!==r?r:"",isDunning:n.isCancelInDunning,locale:t.locale,market:t.market},{timeout:C8},o)];case 1:return[2,e.sent()]}}))}))}var X8=0,Q8=1,Z8=2,J8=3,$8=4,e9=5,t9=6,n9=7,r9=8,o9=2,i9=3,a9=4;function s9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.CREATERECURRENCE","create-recurrence",{productId:t.productId,skuId:t.skuId,availabilityId:t.availabilityId,paymentInstrumentId:t.paymentInstrumentId,backupPaymentInstrumentId:t.backupPaymentInstrumentId,market:t.market,locale:t.locale,soldToAddressId:t.soldToAddressId,paymentSessionId:t.paymentSessionId,challengeCompletedStatus:t.challengeCompletedStatus})];case 1:return[2,e.sent()]}}))}))}function l9(t){var n,r,o,i;return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.DOWNGRADEPLAN","downgrade-plan",{serviceId:t.service.id,serviceType:t.service.type,productId:t.productId,skuId:t.skuId,paymentInstrumentId:null!==(n=t.paymentInstrumentId)&&void 0!==n?n:null===(r=t.service.payment)||void 0===r?void 0:r.id,availabilityId:t.availabilityId,paymentSessionId:t.paymentSessionId,challengeCompletedStatus:t.challengeCompletedStatus,locale:t.service.locale,backupPaymentInstrumentId:null!==(o=t.backupPaymentInstrumentId)&&void 0!==o?o:null===(i=t.service.backupPayment)||void 0===i?void 0:i.id,soldToAddressId:t.soldToAddressId})];case 1:return[2,e.sent()]}}))}))}function c9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GETDOWNGRADEPATHS","downgrade-paths",{params:{serviceId:t.id,serviceType:t.type,isReact:!0,isXboxFamily:t.isXboxFamily,market:t.market,skuType:t.skuType,locale:t.locale,downgradeFlow:t.downgradeFlow}})];case 1:return[2,e.sent()]}}))}))}function u9(t,n,r){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GETALLDOWNGRADEPATHS","all-downgrade-paths",{params:{serviceId:t.id,locale:t.locale,market:t.market,recurrencePolicies:n,isAcquisition:r}})];case 1:return[2,e.sent()]}}))}))}var d9=1;function p9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.INSTALL","install-post",void 0,{params:{licenseId:t.service.licenseId,language:t.language,channel:t.channel,platform:t.platform,clientVersion:t.version},timeout:C8})];case 1:return[2,e.sent()]}}))}))}function h9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.DEACTIVATEINSTALL","deactivate-install",{machineKey:t})];case 1:return[2,e.sent()]}}))}))}var m9={},f9={};function g9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,N8(!1,"getOrder-".concat(t),"GLOBAL.SERVICES.GETSUBSCRIPTIONORDERS","orders",{params:{serviceId:t,serviceType:n,includeCmsData:!1}})];case 1:return[2,e.sent()]}}))}))}function v9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.PAYNOW","pay-now",{serviceId:t.serviceId,paymentInstrumentId:t.paymentId,backupPaymentInstrumentId:t.backupPaymentId,serviceType:t.serviceType,paymentSessionId:t.sessionId,challengeCompletedStatus:t.challengeCompletedStatus,soldToAddressId:t.soldToAddressId,subscriptionPaymentId:t.subscriptionPaymentId},{timeout:C8})];case 1:return[2,e.sent()]}}))}))}var y9=3;function b9(){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.PROFILEINFO","profile-info")];case 1:return[2,e.sent()]}}))}))}function C9(t){return void 0===t&&(t=!0),(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,N8(t,"xbox-personalized","GLOBAL.SERVICES.PERSONALIZEDXBOXDETAILS","get-personalized-xbox-details")];case 1:return[2,e.sent()]}}))}))}function S9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.CANCELINVITE","xbox/cancel-invite",{inviteId:t})];case 1:return[2,e.sent()]}}))}))}function x9(e){return O8("GLOBAL.SERVICES.XBOX.RESENDEMAILINVITE","xbox/resend-email-invite",void 0,{params:{inviteId:e}})}function _9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.XBOX.SENDEMAILINVITE","xbox/send-email-invite",{email:t,recurrenceId:n})];case 1:return[2,e.sent()]}}))}))}function E9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.DELETESHARINGUSER","xbox/delete-sharing-user",{recurrenceId:t.recurrenceId,sharingUserPuid:t.userPuid,adminUserPuidStr:t.adminPuid})];case 1:return[2,e.sent()]}}))}))}function k9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.DELETESELFSHARINGUSER","xbox/delete-self-sharing-user",{recurrenceId:t.recurrenceId,adminPuid:t.adminPuid})];case 1:return[2,e.sent()]}}))}))}function w9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.SHAREWITHFAMILYMEMBERS","xbox/share-with-family-members",{recurrenceId:n,sharingUserPuids:t})];case 1:return[2,e.sent()]}}))}))}function I9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.SHAREWITHFAMILYMEMBER","xbox/share-with-family-member",{recurrenceId:n,sharingUserPuid:t})];case 1:return[2,e.sent()]}}))}))}function P9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.XBOX.CREATEINVITELINK","xbox/invite-link",{recurrenceId:t})];case 1:return[2,e.sent()]}}))}))}function T9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.CANCELINVITE","cancel-invite",{inviteId:t})];case 1:return[2,e.sent()]}}))}))}function D9(e){return O8("GLOBAL.SERVICES.RESENDEMAILINVITE","resend-email-invite",void 0,{params:{inviteId:e}})}function A9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.SENDEMAILINVITE","send-email-invite",{email:t,licenseId:n})];case 1:return[2,e.sent()]}}))}))}function R9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.DELETESHARINGUSER","delete-sharing-user",{licenseId:t.licenseId,sharingUserPuid:t.userPuid})];case 1:return[2,e.sent()]}}))}))}function N9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.DELETESELFSHARINGUSER","delete-self-sharing-user",{licenseId:t.licenseId,adminPuid:t.adminPuid})];case 1:return[2,e.sent()]}}))}))}function M9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.SHAREWITHFAMILYMEMBERS","share-with-family-members",{licenseId:n,sharingUserPuids:t})];case 1:return[2,e.sent()]}}))}))}function F9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.SHAREWITHFAMILYMEMBER","share-with-family-member",{licenseId:n,sharingUserPuid:t})];case 1:return[2,e.sent()]}}))}))}function B9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.CREATEINVITELINK","invite-link",{licenseId:t})];case 1:return[2,e.sent()]}}))}))}function O9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.CREATEFAMILYSHAREINVITELINK","create-family-share-invite-link",{licenseId:t})];case 1:return[2,e.sent()]}}))}))}function L9(){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,H8("GLOBAL.SERVICES.DELETEFAMILYSHAREINVITELINK","delete-family-share-invite-link")];case 1:return[2,e.sent()]}}))}))}function H9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.SENDFAMILYSHAREEMAILINVITES","send-family-share-email-invites",{licenseId:t,beneficiaryUserEmailIds:n})];case 1:return[2,e.sent()]}}))}))}function V9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.RESENDFAMILYSHAREEMAILINVITE","resend-family-share-email-invite",{licenseId:t,inviteId:n})];case 1:return[2,e.sent()]}}))}))}function z9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,H8("GLOBAL.SERVICES.CANCELFAMILYSHAREEMAILINVITE","cancel-family-share-email-invite",{data:{inviteId:t}})];case 1:return[2,e.sent()]}}))}))}var U9="svcfwi",W9="getSubscriptions";function G9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return n={forceReload:!!(null===t||void 0===t?void 0:t.forceReload),excludeLegacySubscriptions:!!(null===t||void 0===t?void 0:t.excludeLegacySubscriptions),includeCmsData:!!(null===t||void 0===t?void 0:t.includeCmsData)},r=!1,(o=window.sessionStorage.getItem(U9))&&(r="1"===o),[4,N8(!!n.forceReload,W9,"GLOBAL.SERVICES.GETSUBSCRIPTIONS","subscriptions",{params:{excludeWindowsStoreInstallOptions:r,excludeLegacySubscriptions:n.excludeLegacySubscriptions,isReact:!0,includeCmsData:!1}})];case 1:return(i=e.sent()).active.forEach((function(e){e.allPossibleAddressIds=i.allPossibleAddressIds})),[2,i]}}))}))}function j9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n,r,o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return n=!1,(r=window.sessionStorage.getItem(U9))&&(n="1"===r),[4,N8(!!(null===t||void 0===t?void 0:t.forceReload),W9,"GLOBAL.SERVICES.GETSUBSCRIPTIONSANDALERTS","subscriptions-and-alerts",{params:{excludeWindowsStoreInstallOptions:n,excludeLegacySubscriptions:!!(null===t||void 0===t?void 0:t.excludeLegacySubscriptions)}})];case 1:return(o=e.sent()).active.forEach((function(e){e.allPossibleAddressIds=o.allPossibleAddressIds})),o.canceled.forEach((function(e){e.allPossibleAddressIds=o.allPossibleAddressIds})),[2,o]}}))}))}function q9(){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.SUMMARY","summary")];case 1:return[2,e.sent()]}}))}))}function K9(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,G9({forceReload:(n={modelId:t.modelId,forceReload:!!t.forceReload}).forceReload})];case 1:return[2,Y9(e.sent(),n.modelId)]}}))}))}function Y9(e,t,n){var r,o=e.active.concat(e.commercial).concat(e.canceled);return n&&(r=o.find((function(e){return e.id.toUpperCase()===n.toUpperCase()}))),t&&(r=o.find((function(e){var n,r;return(null===(n=e.modelId)||void 0===n?void 0:n.toUpperCase())===t.toUpperCase()||(null===(r=e.productId)||void 0===r?void 0:r.toUpperCase())===t.toUpperCase()}))),r||null}function X9(t,n){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GETPRODUCTPURCHASEPATHS","product-purchase-paths",{params:{recurrenceId:t,market:n}})];case 1:return[2,e.sent()]}}))}))}var Q9=function(e){var t,n;return e.billingState===t7.InDunning?!!e.endDate&&!!(null===(t=e.pastDueBalance)||void 0===t?void 0:t.total):!!e.renewalRecurrence.amountFormatted&&!!(null===(n=e.renewalRecurrence.nextRenewalCharge)||void 0===n?void 0:n.chargeDate)},Z9=function(e){return!(!e.isDowngradePending||"XboxGamePassUltimate"!==e.brandId)&&Q9(e)},J9=function(e){return!(!e.isDowngradePending||!e.isM365FullSku)&&Q9(e)},$9=0,e7=2,t7={Unknown:0,ActiveAutoRenewOn:1,ActiveAutoRenewOff:2,ExpiredPrimaryPI:3,ExpiringPrimaryPI:4,LowCsvWithoutBackup:5,LowCsvExpiredBackup:6,LowCsvExpiringBackup:7,InDunning:8,PartnerBilled:9,FreeRenewal:10,Expired:11,LowCsvSupportBackup:12},n7=1,r7=2,o7=3;function i7(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,a;return(0,e.__generator)(this,(function(s){switch(s.label){case 0:return t.forceReload?[3,3]:[4,M8(W9)];case 1:return(i=s.sent())&&(n=Y9(i,void 0,t.serviceId))?[2,n]:[4,a7(t.serviceId,t.serviceType,t.serviceContext)];case 2:return(r=s.sent()).service.allPossibleAddressIds=r.allPossibleAddressIds,el(E8,W9),[2,r.service];case 3:return[4,a7(t.serviceId,t.serviceType,t.serviceContext)];case 4:return(o=s.sent()).service.allPossibleAddressIds=o.allPossibleAddressIds,[4,M8(W9)];case 5:return(i=s.sent())?(a=(0,e.__assign)((0,e.__assign)({},i),{active:i.active.filter((function(e){return e.id!==o.service.id})),commercial:i.commercial.filter((function(e){return e.id!==o.service.id})),canceled:i.canceled.filter((function(e){return e.id!==o.service.id})),allPossibleAddressIds:o.allPossibleAddressIds}),o.service.status===r7?a.canceled.push(o.service):a.active.push(o.service),[4,F8(W9,a)]):[3,7];case 6:s.sent(),s.label=7;case 7:return[2,o.service]}}))}))}function a7(t,n,r){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GETSUBSCRIPTIONBYID","subscription",{params:{serviceId:t,serviceType:n,serviceContext:r}})];case 1:return[2,e.sent()]}}))}))}function s7(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.DISABLEAUTORENEW","disableautorenew",{serviceId:t.serviceId,serviceType:t.serviceType,paymentInstrumentId:t.paymentInstrumentId,backupPaymentInstrumentId:t.backupPaymentInstrumentId,locale:t.locale})];case 1:return[2,e.sent()]}}))}))}function l7(t){var n,r;return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.SWITCHRENEWALPLAN","switch-renewal-plan",{serviceId:t.service.id,serviceType:t.service.type,skuId:t.skuId,paymentInstrumentId:null!==(n=t.paymentInstrumentId)&&void 0!==n?n:null===(r=t.service.payment)||void 0===r?void 0:r.id,availabilityId:t.availabilityId,paymentSessionId:t.paymentSessionId,challengeCompletedStatus:t.challengeCompletedStatus,conversionPathTypes:t.conversionPathTypes,soldToAddressId:t.soldToAddressId,backupPaymentInstrumentId:t.backupPaymentInstrumentId,locale:t.service.locale,isTrial:t.service.isTrial})];case 1:return[2,e.sent()]}}))}))}function c7(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,N8(!1,"upgrade-v2-prorate-".concat(t.id),"GLOBAL.SERVICES.GETUPGRADEPATHSV2WITHPRORATE","upgrade-paths-v2-prorate",{params:{serviceId:t.id,serviceType:t.type,skuType:t.skuType,locale:t.locale,brandId:t.brandId}})];case 1:return[2,e.sent()]}}))}))}function u7(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,N8(!1,"upgrade-v2-".concat(t.id),"GLOBAL.SERVICES.GETUPGRADEPATHSV2","upgrade-paths-v2",{params:{serviceId:t.id,serviceType:t.type,skuType:t.skuType,locale:t.locale,brandId:t.brandId}})];case 1:return[2,e.sent()]}}))}))}function d7(t){var n,r;return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.UPGRADESERVICE","upgrade-service",{serviceId:t.service.id,serviceType:t.service.type,productId:t.productId,skuId:t.skuId,availabilityId:t.availabilityId,paymentInstrumentId:null!==(n=t.paymentInstrumentId)&&void 0!==n?n:null===(r=t.service.payment)||void 0===r?void 0:r.id,paymentSessionId:t.paymentSessionId,challengeCompletedStatus:t.challengeCompletedStatus,soldToAddressId:t.soldToAddressId,locale:t.service.locale,backupPaymentInstrumentId:t.backupPaymentInstrumentId})];case 1:return[2,e.sent()]}}))}))}var p7=0,h7=1,m7=1,f7=2,g7=3,v7=4,y7=5,b7="hour",C7="day",S7="week",x7="month",_7="year",E7=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o;return(0,e.__generator)(this,(function(i){return n=t.parameters,r=t.service,o=t.onAddressVerificationFlowCompletion,n.id&&n.id!==r.soldToAddressId?function(t,n){var r,o;return(0,e.__awaiter)(this,void 0,void 0,(function(){var i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return i=!1,[4,L8("GLOBAL.SERVICES.UPDATEADDRESSID","update-address-id",{serviceId:t.id,serviceType:t.type,addressId:n,paymentInstrumentId:null!==(o=null===(r=t.payment)||void 0===r?void 0:r.id)&&void 0!==o?o:"unknown"}).then((function(){i=!0})).catch((function(e){a=e,i=!1}))];case 1:return e.sent(),[2,K9({modelId:t.modelId,forceReload:!0}).then((function(e){return{didSucceed:i,service:e,error:a}})).catch((function(e){return{didSucceed:!1,service:null,error:a=e}}))]}}))}))}(r,n.id).then((function(e){var t=e.service,n=e.didSucceed;t&&n?(Cr({step:"AddressVerificationUpdateRecurrenceSucceeded"}),o({updatedService:t})):(Cr({step:"AddressVerificationUpdateRecurrenceFailed"}),o({error:{name:"UpdateRecurrenceFailed",errorCode:"UpdateRecurrenceFailed",message:e.error?JSON.stringify(e.error):"Either sub was not found, or update failed"}}))})).catch((function(e){Cr({step:"AddressVerificationUpdateRecurrenceFailed",data:{errorDetails:e}}),o({error:e})})):n.id?(Cr({step:"AddressVerificationNoChange"}),o({})):o({}),[2]}))}))},k7={};function w7(t,n,r){var o;return(0,e.__awaiter)(this,void 0,void 0,(function(){var i,a,s=this;return(0,e.__generator)(this,(function(l){switch(l.label){case 0:return i="getSurvey-".concat(t,"-").concat(n),[4,tl(k7,i,(function(){return(0,e.__awaiter)(s,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return[2,Ps("/survey/api/surveyDefinition",{partnerName:"MeePortal",operation:"Survey.GetSurveyDefinition"},{params:{surveyItemId:t}}).then((function(e){var t,n=null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.content;return r&&n&&r(n),e}))]}))}))}))];case 1:return a=l.sent(),[2,null===(o=a.data)||void 0===o?void 0:o.content]}}))}))}var I7=function(e,t,n){window.OfficeBrowserFeedback.initOptions={appId:2293,stylesUrl:"/node_modules/@ms-ofb/officebrowserfeedback/styles/officebrowserfeedback.css",intlUrl:"/node_modules/@ms-ofb/officebrowserfeedback/intl/",environment:0,locale:e,primaryColour:t.palette.themePrimary,secondaryColour:t.palette.neutralSecondary,userEmail:n}},P7=function(){var t=dg();return(0,Gt.useCallback)((function(n,r,o,i){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var a,s;return(0,e.__generator)(this,(function(l){switch(l.label){case 0:return a=[],[4,w7(n,r,i)];case 1:return(s=l.sent())&&(o&&(s=(0,e.__assign)((0,e.__assign)({},s),{AdditionalDataRequested:["EmailAddress"]})),a.push(s)),window.OfficeBrowserFeedback&&a.length>0&&(I7(r,t,o),window.OfficeBrowserFeedback.floodgate.initOptions={autoDismiss:3,campaignDefinitions:a},window.OfficeBrowserFeedback.floodgate.initialize().then((function(){return window.OfficeBrowserFeedback.floodgate.start()})).then((function(){return window.OfficeBrowserFeedback.floodgate.getEngine().getActivityListener().logActivity("NpsClick")}))),[2]}}))}))}),[t])},T7={},D7=function(t,n,r){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var o;return(0,e.__generator)(this,(function(i){return o="getInterceptCoreDefinition-".concat(t,"-").concat(n,"-").concat(r),[2,tl(T7,o,(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return"/survey/api/intercept-core-definition",[4,Ps("/survey/api/intercept-core-definition",{partnerName:"MeePortal",operation:"Survey.GetCustomSurveyDefinition"},{params:{interceptCmsArea:t,interceptCmsItemId:n}})];case 1:return r=e.sent(),[2,null===(o=r.data)||void 0===o?void 0:o.content]}}))}))}))]}))}))},A7=function(){var t=dg();return(0,Gt.useCallback)((function(n,r,o){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var i,a,s;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return function(e){return e.startsWith("en-")}(o)?(i=[],[4,D7(n,r,o)]):[3,4];case 1:return(a=e.sent())&&(s=R7(a),i.push(s)),window.OfficeBrowserFeedback&&i.length>0?(I7(o,t),window.OfficeBrowserFeedback.floodgate.initOptions={autoDismiss:3,campaignDefinitions:i},[4,window.OfficeBrowserFeedback.floodgate.initialize()]):[3,4];case 2:return e.sent(),[4,window.OfficeBrowserFeedback.floodgate.start()];case 3:e.sent(),window.OfficeBrowserFeedback.floodgate.getEngine().getActivityListener().logActivity("InterceptClick"),e.label=4;case 4:return[2]}}))}))}),[t])},R7=function(e){return{CampaignId:e.CampaignId,StartTimeUtc:e.StartTimeUtc,EndTimeUtc:e.EndTimeUtc,GovernedChannelType:1,Scope:{Type:0},NominationScheme:{Type:0,PercentageNumerator:100,PercentageDenominator:100,NominationPeriod:{Type:0,IntervalSeconds:120},CooldownPeriod:{Type:0,IntervalSeconds:240},FallbackSurveyDurationSeconds:120},SurveyTemplate:{Type:5,ActivationEvent:{Type:1,Sequence:[{Type:0,Activity:"InterceptClick",Count:1,IsAggregate:!0}]},Content:{Intercept:{Title:e.Title,Question:e.Question,Url:e.Url}}}}},N7="svc-csat-survey",M7="svc-survey-paynow",F7=5368709120,B7="AmcServicesLanding",O7="taxesnotincluded",L7="vatincluded",H7={EAAccess:"EAAccess",Fortnite:"Fortnite",Marathon:"Marathon",PCGamePass:"PCGamePass",TeamsStandalone:"TeamsStandalone",XboxGamePass:"XboxGamePass",XboxGamePassUltimate:"XboxGamePassUltimate",XboxLive:"XboxLive",Office:"Office",OneDrive:"OneDrive",OfficeSMB:"OfficeSMB",CoPilot:"CoPilot"},V7="CFQ7TTC0K5BF",z7="CFQ7TTC0K5DM",U7="CFQ7TTC0KTXS",W7="CFQ7TTC0KHS0",G7="SvcTaxBreakdown",j7="SvcTaxBreakdownPayNow",q7="SvcTaxBreakdownImmediate",K7="immediate",Y7=function(e){var t=e.service,n=e.celaStrings,r=e.cycleLength,o=e.cycleUnit,i=e.nextChargeDate,a=e.price,s=e.taxType,l=e.isImmediateConversion?n.recurringBillingFutureCharge:sn(n.recurringBillingTitle,{startDate:i||t.productRenewal.startDateShortString}),c=sn(n.recurringBillingSecondText,{amount:a||t.productRenewal.amountFormatted,tax:J7(t,n,r,o,s)});return sn("{0} {1}",{0:l,1:c})},X7=function(e,t,n,r,o){return Q7(e,n,t.taxDetails,o,r,t.totalTax,t.fullPrice)},Q7=function(e,t,n,r,o,i,a){var s,l=i,c=r&&""!==r?r:L7,u=o;return g8(e)?(l=n&&n.length>0?n.map((function(e){return"".concat(e.impositionName," ").concat(e.taxAmount)})).join(" "):i,c="MultipleTaxes"):(s=e,m8.includes((null===s||void 0===s?void 0:s.toUpperCase())||"")?(l=i,c=O7):c.toLowerCase()===O7&&(u=a,c=L7)),sn(Kt(t,c),{price:u,taxAmount:l})},Z7=function(e){var t=e.service,n=e.celaStrings,r=e.cycleLength,o=e.cycleUnit,i=e.nextChargeDate,a=e.price,s=e.taxType,l=e.priceDetails,c=e.isImmediateConversion,u=e.flowType,d=c?n.recurringBillingFutureCharge:sn(n.recurringBillingTitle,{startDate:i||t.productRenewal.startDateShortString}),p=u&&u===K7?n.taxBreakdownImmediate:n.taxBreakdown,h=X7(t.market,l,p,a||"",s||""),m=i8(o||t.productRenewal.cycleUnit,r||t.productRenewal.cycleLength,n.day,n.days,n.month,n.months,n.year,n.years),f=sn(n.everyText,{price:h,cycle:m});return sn("{0} {1}",{0:d,1:f})},J7=function(e,t,n,r,o,i,a){var s,l,c,u,d=i8(r||e.productRenewal.cycleUnit,n||e.productRenewal.cycleLength,t.day,t.days,t.month,t.months,t.year,t.years);return(null===o||void 0===o?void 0:o.toLowerCase())===L7||(null===(l=null===(s=e.productRenewal)||void 0===s?void 0:s.taxType)||void 0===l?void 0:l.toLowerCase())===L7?sn(i?a?t.plusApplicableVAT:t.includesVATTitle:t.includesVAT,{interval:d}):(null===o||void 0===o?void 0:o.toLowerCase())===O7||(null===(u=null===(c=e.productRenewal)||void 0===c?void 0:c.taxType)||void 0===u?void 0:u.toLowerCase())===O7?sn(i?a?t.plusApplicableTaxes:t.plusTaxesTitle:t.plusTaxes,{interval:d}):sn(i?t.includesTaxesTitle:t.includesTaxes,{interval:d})},$7=function(e,t,n,r){var o,i,a,s;return(null===n||void 0===n?void 0:n.toLowerCase())===L7||(null===(i=null===(o=e.productRenewal)||void 0===o?void 0:o.taxType)||void 0===i?void 0:i.toLowerCase())===L7?sn(t.recurringBillingSecondText,{amount:r||e.productRenewal.amountFormatted,tax:t.includingVAT}):(null===n||void 0===n?void 0:n.toLowerCase())===O7||(null===(s=null===(a=e.productRenewal)||void 0===a?void 0:a.taxType)||void 0===s?void 0:s.toLowerCase())===O7?sn(t.recurringBillingSecondText,{amount:r||e.productRenewal.amountFormatted,tax:t.plusApplicableTaxes}):r||e.productRenewal.amountFormatted},eee=function(e){var t;e.conversionDetailsUrl||Cr({step:"MissingConversionUrl",error:"conversion url not returned from catalog",data:{props:e}});var n=null!==(t=e.conversionDetailsUrl)&&void 0!==t?t:e.celaStrings.conversionDetailsLink,r={0:jt().createElement(jt().Fragment,null,e.upgradeFromSku),1:jt().createElement(jt().Fragment,null,e.upgradeToSku),2:jt().createElement(nx,{href:n,"data-bi-id":"upgrade-prorate-see-details-here","aria-label":e.celaStrings.seeDetailsHere,target:"_blank"},e.celaStrings.seeDetailsHere)};return jt().createElement(jt().Fragment,null,jt().createElement(bb,null,jt().createElement(ox,{textWithTokens:e.celaStrings.recurringBillingUpgradeProrateText,tokensAndValues:r})))};function tee(){var e=P7();return function(t,n){e(t,n||"en-US")}}var nee=function(t){var n=ree(t);return jt().createElement(ox,(0,e.__assign)({},n))},ree=function(e){var t,n,r,o=e.service,i=e.dataBiIdPrefix,a=e.celaStrings,s="".concat(i,".recurringBillingDisclaimer"),l=Kt(a.learnAboutCancellationLinkList,o.market,"default",",");return{textWithTokens:"IL"===(null===(t=o.market)||void 0===t?void 0:t.toUpperCase())?a.priceChangeNotifyIsrael:u8.includes(null===(n=o.market)||void 0===n?void 0:n.toUpperCase())||"GB"===(null===(r=o.market)||void 0===r?void 0:r.toUpperCase())?a.priceChangeNotifyEFTA:a.priceChangeNotify,tokensAndValues:{0:jt().createElement(nx,{href:a.microsoftAccountLink,textVariant:"bodyThemeText","aria-label":a.microsoftAccountText,"data-bi-id":"".concat(s,".msa"),target:"_blank"},a.microsoftAccountText),1:jt().createElement(nx,{href:a.learnMoreLink,textVariant:"bodyThemeText","aria-label":a.learnMoreText,"data-bi-id":"".concat(s,".learnMore"),target:"_blank"},a.learnMoreText),2:jt().createElement(nx,{href:a.servicesAgreementLink,textVariant:"bodyThemeText","aria-label":a.servicesAgreementText,"data-bi-id":"".concat(s,".servicesAgreement"),target:"_blank"},a.servicesAgreementText),3:jt().createElement(nx,{href:a.storeTermsLink,textVariant:"bodyThemeText","aria-label":a.storeTermsText,"data-bi-id":"".concat(s,".storeTerms"),target:"_blank"},a.storeTermsText),4:jt().createElement(nx,{href:l,textVariant:"bodyThemeText","aria-label":a.learnAboutCancellationText,"data-bi-id":"".concat(s,".servicesAgreement"),target:"_blank"},a.learnAboutCancellationText)}}},oee=function(e){var t,n=e.service,r=e.celaStrings;return n.isVatTextApplicable&&(t={textWithTokens:r.vatCelaText,tokensAndValues:{}}),t},iee=function(e){var t=e.src;return jt().createElement(zk,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:t})},aee="openPayNow",see="true",lee="isPayNowIndia2FASuccess",cee=function(){return $5().service.changePaymentFlow===y9},uee=function(){return cee()?"AmcPayNowBackup":"AmcPayNow"},dee=function(){var e=cee(),t=$5().service;return!e||!!t&&t.payNow.totalAmount>t.csvAmount};function pee(e){var t=ln("services");return zs("RoleEngineer")&&t.length>0?"mock":e}function hee(e){var t=new URLSearchParams(window.location.search),n=window.location.href.split("#")[0];return t.toString()?"".concat(n,"&").concat(aee,"=").concat(see,"&").concat(q6,"=").concat(e):"".concat(n,"?").concat(aee,"=").concat(see,"&").concat(q6,"=").concat(e)}function mee(e,t,n){var r=hee(e);return"".concat(r,"&").concat(t,"=").concat(n)}function fee(e){var t=hee(e);return dn(t,lee,"true")}function gee(t,n,r,o,i){var a,s,l,c,u=fee(t),d=(0,e.__spreadArray)((0,e.__spreadArray)([(a={},a.selectedPiid=n,a),(s={},s.paymentName=r,s)],void 0!==o?[(l={},l.isSoldToAddressIdRequired=o.toString(),l)]:[],!0),i?[(c={},c.paymentType=i,c)]:[],!0);return pn(u,d)}function vee(e){var t=hee(e);return dn(t,lee,"false")}var yee="PaynowCustomerIntercept",bee="PaynowCustomerInterceptCms",Cee="pay-now-customer-intercept",See=function(t){var n=EM(),r="pay-now-failure-dialog",o=$5();if(vn(o,"PayNow provider not found"),!o)throw new Error("PayNow provider not found");var i=uee(),a=o.payNowCmsContent,s=o.service;if(!a)throw new Error("PayNow content not found");vn(s,"PayNow content not found");var l,c=t.errorTitle?t.errorTitle:null===a||void 0===a?void 0:a.errorTitle;l=t.errorMessage?"string"===typeof t.errorMessage?jt().createElement(Ib,null,t.errorMessage):jt().createElement(ox,(0,e.__assign)({},t.errorMessage)):jt().createElement(Ib,null,a.errorBody);var u=function(){n.closeDialog(),t.isRefreshNeeded&&window.location.reload()},d=function(){br({area:o.area,scenario:i,step:"PayNow.Index",data:o.service.bi}),Cr({step:"TryAgain"}),n.switchToDialog(jt().createElement(Pte,null))},p=function(){var n,o,i=null!==(n=t.buttonText)&&void 0!==n?n:a.closeWindow;if(t.isTryAgainNeeded){var s={buttonPrimary:{onClick:d,text:a.tryAgainButton,"aria-label":a.tryAgainButton,"data-bi-id":"".concat(r,"-try-again")}};o=t.buttonUrlReplacementString?(0,e.__assign)((0,e.__assign)({},s),{buttonSecondary:{onClick:function(){t.buttonUrlReplacementString&&window.location.replace(t.buttonUrlReplacementString)},text:i,"aria-label":i,"data-bi-id":"".concat(r,"-error-href")}}):(0,e.__assign)((0,e.__assign)({},s),{buttonSecondary:{onClick:u,text:i,"aria-label":i,"data-bi-id":"".concat(r,"-error-close")}})}else o=t.buttonUrlReplacementString?{buttonPrimary:{onClick:function(){t.buttonUrlReplacementString&&window.location.replace(t.buttonUrlReplacementString)},text:i,"aria-label":i,"data-bi-id":"".concat(r,"-error-href")}}:{buttonPrimary:{onClick:u,text:i,"aria-label":i,"data-bi-id":"".concat(r,"-error-close")}};return o}(),h={isOpen:!0,onDismiss:u,title:c,stickyHeaderFooter:{hasStickyHeaderFooters:!0},closeButton:{"data-bi-id":"".concat(r,"-close"),"aria-label":a.close},dialogFooterProps:p};return jt().createElement(CM,(0,e.__assign)({},h),jt().createElement(UT,null,jt().createElement(bb,{horizontalAlign:"center",textAlignment:"center",childrenGap:24,padding:"50px 0 150px 0","data-is-focusable":!0},jt().createElement(iee,{src:a.failureIcon}),l)))},xee=["amountLimitExceeded","AuthenticationFailure","authCaptureInProgress","badRequest","bILLING_E_PAYMENT_PROVIDER_DECLINE","expiredPaymentInstrument","ExpiredCard","insufficientFunds","invalidCvv","invalidExpiryDate","invalidPaymentInstrument","invalidPaymentInstrumentId","invalidParameter","orderLocked","partnerForbiddenInsufficientFunds","partnerForbiddenProcessorDeclined","payNowPastDueBalanceNetworkError","networkError","previousRequestInProgress","processorDeclined","riskRejected","RejectedByProvider","transactionNotAllowed","unauthorized"],_ee=function(e,t,n){return n8(n,e.tryAgainTitle,e.genericErrorMessage,e.bankCouldNotAuthenticateMessage.replace("{amount}",t),e.timedOutAuthenticationMessage.replace("{amount}",t),e.invalidSetupMessage,e.paymentMethodFailureMessage,e.failedToOpenNewWindowMessage)},Eee=function(t){var n=EM(),r="pay-now-final-dialog",o=$5();vn(o,"PayNow provider");var i=o.payNowCmsContent,a=o.service;if(vn(a,"PayNow service"),!i)throw new Error("PayNow content not found");var s,l,c=cee(),u=jt().createElement(Ib,{weightOverride:"bold"},a.name);if(t.paymentName){var d=jt().createElement(Ib,null,t.paymentName);s=c&&!t.isNoBackupSelected?i.paymentSuccessfulMessageBackup:i.paymentSuccessfulMessage,l={0:u,1:d}}else s=c?i.paymentSuccessfulMessageBackupNoPiName:i.paymentSuccessfulMessageNoPiName,l={0:u};var p=a.payNow,h={0:jt().createElement(Ib,{weightOverride:"bold"},p.total)},m=function(){n.closeDialog()},f={isOpen:!0,onDismiss:m,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:i.paymentSuccessful,closeButton:{"data-bi-id":"".concat(r,"-close"),"aria-label":i.close},dialogFooterProps:{buttonPrimary:{onClick:m,text:i.closeWindow,"aria-label":i.closeWindow,"data-bi-id":"".concat(r,"-success-close")}},minBodyHeight:m5};return jt().createElement(CM,(0,e.__assign)({},f),jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24,"data-is-focusable":!0},jt().createElement(iee,{src:i.successIcon}),jt().createElement(ox,{textWithTokens:i.youPaid,tokensAndValues:h}),jt().createElement(ox,{textWithTokens:s,tokensAndValues:l})))},kee=function(t){var n=t.piid,r=t.paymentName,o=t.paymentSessionId,i=t.challengeStatus,a=t.paymentType,s="pay-now-past-due-balance",l="pay-now-past-due-balance-operation",c=mi(),u=EM(),d=$5();vn(d,"PayNow provider not found");var p=d.payNowCmsContent;if(!p)throw new Error("PayNow content not found");var h=cee(),m=dee(),f=p.loadingMessage,g=jt().createElement(F5,{spinnerAriaLabel:f}),v=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,s,f,g,v,y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N,M,F;return(0,e.__generator)(this,(function(B){switch(B.label){case 0:if(t=h?null===(w=d.service.payment)||void 0===w?void 0:w.id:pee(n),s=(null===(I=d.service.payment)||void 0===I?void 0:I.id)===n,f=h&&!s?pee(n):void 0,g=a8(d.service,null!==(P=d.isSoldToAddressIdRequired)&&void 0!==P&&P),v=g.addressIdToSend,g.isFailed)return _r({error:(y=o8(p.smdError)).errorCode,data:{challengeStatus:i||"NotApplicable",isUserError:y.isUserError}}),u.switchToDialog(jt().createElement(See,(0,e.__assign)({},y))),[2];C=null!==r&&void 0!==r?r:"",(b=n===$6)&&(f=void 0,C=p.microsoftAccountBalance),Cr({step:"PayNow.Final",data:{initialPaymentid:null===(T=d.service.payment)||void 0===T?void 0:T.id,finalPaymentId:t,initialBackupPaymentId:null===(D=d.service.backupPayment)||void 0===D?void 0:D.id,backupPaymentId:f,soldToAddressId:v,isNoBackupPiSelected:b,pitypecurr:a,hasBalance:m}}),B.label=1;case 1:return B.trys.push([1,3,,4]),[4,v9({serviceId:d.service.id,serviceType:d.service.type,paymentId:t,backupPaymentId:f,sessionId:o,challengeCompletedStatus:i,soldToAddressId:v,subscriptionPaymentId:null===(A=d.service.payment)||void 0===A?void 0:A.id})];case 2:return B.sent(),d.succeededCallback&&d.succeededCallback(),c({name:l,status:"finished"}),_r({data:d.service.bi}),u.switchToDialog(jt().createElement(Eee,{paymentName:C,isNoBackupSelected:b})),[3,4];case 3:return S=B.sent(),"payPastDueBalancesNoErrorCode",_="ECONNABORTED"===(null===(x=S)||void 0===x?void 0:x.code),E=(null===(N=null===(R=x.response)||void 0===R?void 0:R.data)||void 0===N?void 0:N.error)||"payPastDueBalancesNoErrorCode",k=function(e,t,n,r){var o,i,a,s=!1,l=!1,c=!1;switch(t){case"forbidden":o=e.cannotPayWithPiTitle.replace("{payment}",r),i=e.cannotPayWithPiMessage.replace("{payment}",r).replace("{amount}",n);break;case"previousRequestInProgress":case"payNowPastDueBalanceNetworkError":o=e.previousRequestInProgressTitle,i=e.previousRequestInProgressMessage,c=!0;break;case"authCaptureInProgress":o=e.previousRequestInProgressTitle,i=e.authCaptureInProgressMessage;break;case"processorDeclined":case"partnerForbiddenProcessorDeclined":case"bILLING_E_PAYMENT_PROVIDER_DECLINE":case"insufficientFunds":case"partnerForbiddenInsufficientFunds":case"invalidPaymentInstrument":case"invalidPaymentInstrumentId":case"invalidCvv":case"invalidExpiryDate":case"amountLimitExceeded":case"riskRejected":case"RejectedByProvider":case"ExpiredCard":o=e.cannotPayWithPiTitle.replace("{payment}",r),i=e.processorDeclinedMessage.replace("{amount}",n);break;case"transactionNotAllowed":o=e.cannotPayWithPiTitle.replace("{payment}",r),i=e.transactionNotAllowedMessage.replace("{payment}",r).replace("{amount}",n);break;case"orderLocked":o=e.contactCustomerSupportTitle,i={textWithTokens:e.orderLockedMessage,tokensAndValues:{amount:jt().createElement(Ib,null,n),support:jt().createElement(nx,{href:e.customerSupportLink,textVariant:"bodyThemeText","aria-label":e.contactCustomerSupportTitle,"data-bi-id":"paynow-error-support",target:"_blank"},e.customerSupportText)}};break;case"expiredPaymentInstrument":o=e.cannotPayWithPiTitle.replace("{payment}",r),i=e.expiredPaymentInstrumentMessage.replace("{payment}",r).replace("{amount}",n);break;case"badRequest":o=e.processingPaymentErrorTitle,i=e.processingPaymentErrorMessage.replace("{amount}",n),l=!0;break;case"invalidParameter":o=e.cannotPayWithPiTitle.replace("{payment}",r),i={textWithTokens:e.contactSupportToRenew,tokensAndValues:{0:jt().createElement(nx,{href:e.customerSupportLink,textVariant:"bodyThemeText","aria-label":e.contactCustomerSupportText,"data-bi-id":"paynow-invalid-error-support",target:"_blank"},e.contactCustomerSupportText)}};break;case"unauthorized":o=e.refreshAndTryAgain,i=e.refreshMessage,a=e.refreshCta,l=!0;break;default:o=e.processingPaymentErrorTitle,i=e.processingPaymentErrorMessage.replace("{amount}",n),s=!0}return{errorTitle:o,errorMessage:i,errorCode:t,isUserError:xee.indexOf(t)>=0,isQoSImpactedError:s,isRefreshNeeded:l,isTryAgainNeeded:c,buttonText:a}}(p,E,d.service.payNow.total,C),k.isQoSImpactedError?c({name:l,status:"failed",error:x}):c({name:l,status:"finished"}),_r({error:w6(k.errorCode),data:{challengeStatus:i,isUserError:!!_||k.isUserError,errorDetails:S,isNoBackupPiSelected:b,initialPaymentid:null===(M=d.service.payment)||void 0===M?void 0:M.id,finalPaymentId:t,initialBackupPaymentId:null===(F=d.service.backupPayment)||void 0===F?void 0:F.id,backupPaymentId:f,soldToAddressId:v,hasBalance:m}}),u.switchToDialog(jt().createElement(See,(0,e.__assign)({},k))),[3,4];case 4:return[2]}}))}))},y={progressViewOperationData:{operationName:l,componentName:s},errorDialogProps:{},progressDialogProps:{}},b={isOpen:!0,onDismiss:function(){u.closeDialog()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:p.payYourBalance,closeButton:{"data-bi-id":"".concat(s,"-close"),"aria-label":p.close},dialogStylesTemp:h5,operationData:y,minBodyHeight:m5};return Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return c({name:l,status:"first-load"}),[4,v()];case 1:return e.sent(),[2]}}))}))})),jt().createElement(CM,(0,e.__assign)({},b),jt().createElement(vi,{operationData:{componentName:s,operationName:l},firstLoadView:g,finishedView:g,failedView:g}))},wee=function(){var t=EM(),n=mi(),r=$5(),o="pay-now-pi-challenge-operation",i=uee();vn(r,"PayNow provider not found");var a=r.payNowCmsContent;if(!a)throw new Error("PayNow content not found");return{piChallengeProps:{env:r.pidlEnvironment,piChallengeData:{amount:r.service.payNow.totalAmount,currency:r.service.payNow.currency,language:r.service.locale,country:r.service.market,challengeScenario:"RecurringTransaction",isLegacy:"subscription"===r.service.type,isMOTO:!1,hasPreOrder:!1,windowSize:"02",frequency:r.service.productRenewal.cycleLength,frequencyUnit:r.service.productRenewal.cycleUnit,piid:"mock"},onSuccessCallback:function(n,r){t.switchToDialog(jt().createElement(kee,(0,e.__assign)({},{challengeStatus:n,piid:"mock",paymentSessionId:r,paymentName:"mock pi"})))},onFailureCallback:function(i){var s=i.challengeStatus,l=_ee(a,r.service.payNow.total,i);l.isQoSImpactedError?n({name:o,status:"failed",error:i}):n({name:o,status:"finished"}),_r({error:w6(l.errorCode),data:{challengeStatus:s,isUserError:l.isUserError,errorDetails:i}}),t.switchToDialog(jt().createElement(See,(0,e.__assign)({},l)))},onCancelCallback:function(){xr(),br({area:r.area,scenario:i,step:"PayNow.Index",data:r.service.bi}),Cr({step:"TryAgainAfterChallengeCancel"}),t.switchToDialog(jt().createElement(Pte,null))},returnUrl:hee(r.service.modelId),redirectSuccessUrl:fee(r.service.modelId),redirectFailureUrl:vee(r.service.modelId),spinnerAriaLabel:a.loadingMessage},dialogTitle:"",dialogComponentName:"pay-now-pi-challenge",dialogOperationName:o,closeAriaLabel:a.close}};var Iee="profile",Pee="".concat(Iee,".engaged"),Tee="".concat(Iee,".unengaged"),Dee=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o,i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:switch(n=function(e){var t=s6("mock-scenarios",!1).split(",").filter((function(t){return-1!==t.indexOf(e)}));return t.length>0?t[0]:""}(Iee),n){case Pee:return[2,{pictureStatus:"hasPicture",url:"https://account.microsoft.com/Resources/Images/testProfilePicture.png"}];case Tee:return[2,{pictureStatus:"noProfilePicture",url:""}]}e.label=1;case 1:return e.trys.push([1,3,,4]),t.userId&&"0"!==t.userId?[4,Ps("https://graph.microsoft.com/v1.0/users/PUID:".concat(t.userId.padStart(16,"0"),"@").concat("84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa","/photo/$value"),{operation:"GLOBAL.MSGRAPH.GET.USER.PROFILEIMAGE"},{responseType:"blob",headers:{Authorization:"Bearer ".concat(t.accessToken)}})]:[2,{pictureStatus:"noUserId",url:""}];case 2:return r=e.sent(),[2,{pictureStatus:"hasPicture",url:URL.createObjectURL(r.data)}];case 3:if(o=e.sent(),(i=o).isAxiosError&&404===(null===(a=i.response)||void 0===a?void 0:a.status))return[2,{pictureStatus:"noProfilePicture",url:""}];throw i;case 4:return[2]}}))}))},Aee=function(t){var n=t.operationName,r=t.userIds,o=mi(),i=(0,Gt.useState)({}),a=i[0],s=i[1],l=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,i,a,l,c,u,d,p,h,m,f,g,v,y,b;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),o({name:n,status:"first-load"}),[4,x6("MSGraphUserReadAll")];case 1:for(t=e.sent(),i=[],a={},l=function(e){i.push(Dee({accessToken:t.token,userId:e}).then((function(t){a[e]=t})))},c=0,u=r;c<u.length;c++)d=u[c],l(d);return[4,Promise.all(i)];case 2:return e.sent(),s(a),o({name:n,status:"finished"}),[3,4];case 3:return p=e.sent(),h=p,f=null===(y=null===(v=null===(g=(m=p).response)||void 0===g?void 0:g.data)||void 0===v?void 0:v.data)||void 0===y?void 0:y.signInLink,401===(null===(b=m.response)||void 0===b?void 0:b.status)?(o({name:n,status:"finished"}),f&&(window.location.href=f)):o({name:n,status:"update-failed",error:h}),[3,4];case 4:return[2]}}))}))};return(0,Gt.useEffect)((function(){l()}),[r]),{profilePictureData:a,reloadImages:l}},Ree=function(e){var t,n=e.index,r=e.user,o=e.isStackedBenefit,i="paynow-benefits-profile-".concat(n),a=parseInt(r.puid,10).toString(16),s=(0,Gt.useState)([a])[0],l=Aee({operationName:i,userIds:s}).profilePictureData;return jt().createElement(NP,{operationData:{componentName:"paynow-benefits-persona",operationName:i},imageUrl:null===(t=l[s[0]])||void 0===t?void 0:t.url,size:o?"32":"48",hideText:!0,text:r.name})},Nee=function(e,t,n){var r,o,i,a=e.installDetails;if(a&&(null===(r=a.installsUsed)||void 0===r?void 0:r.length)){o=n?t.deviceBenefitShort:t.deviceBenefitLong;var s=bn(t.deviceUsage,{currentUsed:e.installDetails.installsUsed.length,maxUsed:e.installDetails.maximumInstallations});i={deviceUsage:jt().createElement(Ib,{weightOverride:"semi-bold"},s)}}else o=n?t.deviceBenefitDisengagedShort:t.deviceBenefitDisengagedLong,i={deviceLimit:jt().createElement(Ib,{weightOverride:"semi-bold"},t.deviceLimit)};return{benefitString:jt().createElement(ox,{textWithTokens:o,tokensAndValues:i}),imageUrl:t.deviceLogo.src,kind:"image"}},Mee=function(e,t){var n=t?e.premiumBenefitShort:e.premiumBenefitLong;return{benefitString:jt().createElement(Ib,null,n),imageUrl:e.officeLogo.src,kind:"image"}},Fee=function(e,t){var n=t?e.emailBenefitShort:e.emailBenefitLong,r={emailLimit:jt().createElement(Ib,{weightOverride:"semi-bold"},e.emailLimit)};return{benefitString:jt().createElement(ox,{textWithTokens:n,tokensAndValues:r}),imageUrl:e.emailLogo.src,kind:"image"}},Bee=function(e,t,n){if(e.sharingDetails&&(e.sharingDetails.familyUsers.length>0||e.sharingDetails.guestUsers.length>0)){var r=e.sharingDetails.familyUsers.concat(e.sharingDetails.guestUsers),o=r.map((function(e,t){return jt().createElement(Ree,{index:t,user:e,isStackedBenefit:n})}));if(r.length>1){var i=n?t.sharingBenefitMultipleShort:t.sharingBenefitMultipleLong,a=bn(t.sharingUsage,{firstName:r[0].firstName,shareCount:r.length-1}),s={sharingUsage:jt().createElement(Ib,{weightOverride:"semi-bold"},a)};return{benefitString:jt().createElement(ox,{textWithTokens:i,tokensAndValues:s}),personas:o,kind:"persona"}}i=n?t.sharingBenefitSingleShort:t.sharingBenefitSingleLong,s={firstName:jt().createElement(Ib,{weightOverride:"semi-bold"},r[0].firstName)};return{benefitString:jt().createElement(ox,{textWithTokens:i,tokensAndValues:s}),personas:o,kind:"persona"}}i=n?t.sharingBenefitDisengagedShort:t.sharingBenefitDisengagedLong,s={sharingLimit:jt().createElement(Ib,{weightOverride:"semi-bold"},t.sharingLimit)};return{benefitString:jt().createElement(ox,{textWithTokens:i,tokensAndValues:s}),imageUrl:t.sharingDisengagedLogo.src,kind:"image"}},Oee="/home/api",Lee={},Hee=["400","403","404"],Vee=function(e){return Hee.includes(e.httpStatusCode)?(e.isSuccess=!0,m):h},zee=function(t){return void 0===t&&(t=!1),(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(n){return[2,tl(Lee,"getUnifiedStorageQuotaInfo",(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("".concat(Oee).concat("/usq","/usq-details"),{operation:"".concat("GLOBAL.HOME.UNIFIEDSTORAGEQUOTA",".GETUNIFIEDSTORAGEQUOTAINFO")},{},{overrideRequestQosData:Vee})];case 1:return[2,e.sent().data]}}))}))}),{reload:t}).catch((function(e){var t,n,r,o=e,i=null===(n=null===(t=o.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.signInLink;return 401===(null===(r=o.response)||void 0===r?void 0:r.status)&&(i?window.location.href=i:window.location.reload()),Promise.reject(e)}))]}))}))},Uee=function(t){var n=(0,Gt.useState)({}),r=n[0],o=n[1],i=(0,Gt.useState)("InitState"),a=i[0],s=i[1],l=mi();return(0,Gt.useEffect)((function(){(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,i,a,c;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t&&l({name:t,status:"first-load"}),[4,zee()];case 1:return n=e.sent(),o(n),s("HaveResult"),t&&l({name:t,status:"finished"}),[3,3];case 2:return r=e.sent(),(a=null===(c=(i=r).response)||void 0===c?void 0:c.status)&&Hee.includes(a.toString())?(s("NoResult"),t&&l({name:t,status:"finished"})):(s("Failed"),t&&l({name:t,status:"failed",error:i})),[3,3];case 3:return[2]}}))}))}),[]),{usq:r,usqState:a}};function Wee(e){return(e/Math.pow(1024,3)).toFixed(2)}function Gee(e,t,n){var r=Math.log(e)/Math.log(1024),o=r>=4?n:t,i=r>=4?4:3;return(e/Math.pow(1024,i)).toFixed(2).concat(" ",o)}var jee=function(e){var t=e.benefitsCms,n="pay-now-one-drive-list-item-usq",r=Uee(n),o=jt().createElement(nw,{width:189,height:14}),i=function(){var e={quotaLimit:jt().createElement(Ib,{weightOverride:"semi-bold"},t.oneDriveLimit)};return jt().createElement(ox,{textWithTokens:t.oneDriveBenefitDisengaged,tokensAndValues:e})};return jt().createElement(dv,{operationData:{componentName:"pay-now-one-drive-list-item",operationName:n},firstLoadView:o,updatingView:o,failedView:i(),finishedView:function(){if("HaveResult"===r.usqState){if(r.usq&&r.usq.used>F7){var e={oneDriveUsage:jt().createElement(Ib,{weightOverride:"bold"},Gee(r.usq.used,t.gigabyteString,t.terabyteString))};return jt().createElement(ox,{textWithTokens:t.oneDriveBenefit,tokensAndValues:e})}i()}return i()}()})},qee=function(){var e,t,n=$5(),r=n.service,o=null===(t=null===(e=n.payNowCmsContent)||void 0===e?void 0:e.m365Benefits)||void 0===t?void 0:t.personalizedBenefits;if(!o)return Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"BenefitsSection",message:"Unable to load CMS for M365 personalized benefits"}),jt().createElement(jt().Fragment,null);var i=Nee(r,o),a=Mee(o),s=Fee(o),l=Bee(r,o),c=r.isHomeSKU?[l,i,a]:[i,a,s];return jt().createElement(bb,{horizontal:!1,horizontalAlign:"center",height:"100%",overflow:"auto"},jt().createElement(bb,{width:"75%",height:"100%",padding:"10px 0px"},jt().createElement(Cb,{padding:"0px 0px 20px"},jt().createElement(jk,{horizontal:!1,image:{imageType:"image",src:o.oneDriveLogo.src},size:"lg",padding:"0px"},jt().createElement(jee,{benefitsCms:o}))),c.map((function(e){return"image"===e.kind?jt().createElement(Cb,{padding:"0px 0px 20px"},jt().createElement(jk,{horizontal:!1,image:{imageType:"image",src:e.imageUrl},size:"lg",padding:"0px"},e.benefitString)):jt().createElement(bb,{padding:"0px 0px 20px"},jt().createElement(bb,{horizontal:!0,horizontalAlign:"center",padding:"0px 0px 8px"},e.personas.map((function(e){return jt().createElement(Cb,{align:"center",padding:"0px 4px"},e)}))),jt().createElement(bb,{textAlignment:"center"},e.benefitString))}))))},Kee=function(e){var t,n=e.gameInfo,r=e.mediaText,o=e.mediaTextHighlight,i=e.isMobile,a=void 0!==i&&i,s=jt().createElement(bb,{textAlignment:a?"left":"center"},jt().createElement(ox,{textWithTokens:r,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},o)}})),l=null===(t=null===n||void 0===n?void 0:n.filter((function(e){return e.imageUrl})))||void 0===t?void 0:t.splice(0,3);return(null===l||void 0===l?void 0:l.length)>0?jt().createElement(bb,{padding:a?"8px 0 0 0":"0 0 24px 0"},a?s:jt().createElement(jt().Fragment,null),jt().createElement(bb,{horizontalAlign:a?"start":"center",padding:a?"0 0 8px 0":"16px 0"},jt().createElement(rQ,{padding:"8px","aria-label":"",products:l.map((function(e){var t=e.imageUrl.includes("?")?"".concat(e.imageUrl,"&w=96"):"".concat(e.imageUrl,"?w=96");return{"aria-label":e.title,"data-bi-id":e.id,mediaImage:{imageType:"image",src:t}}})),variant:"minimalNoShadow"})),a?jt().createElement(jt().Fragment,null):s):jt().createElement(jt().Fragment,null)},Yee=function(e){var t,n=e.gameInfo,r=null===(t=$5().payNowCmsContent)||void 0===t?void 0:t.xboxGamePassBenefits;return r?jt().createElement(bb,{padding:"20px 20px 0px",backgroundColor:"neutralMed",boxShadow:!0,borderRadius:"4px"},jt().createElement(Cb,{padding:"0px 0px 12px"},jt().createElement(nb,{tag:"h2",variant:"headerText"},r.title)),n?jt().createElement(bb,{padding:"0px 0px 20px"},jt().createElement(Kee,{gameInfo:n.games,mediaText:n.mediaText,mediaTextHighlight:n.highlightText,isMobile:!0})):jt().createElement(jt().Fragment,null)):(Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsSection",message:"Unable to load CMS for Xbox benefits"}),jt().createElement(jt().Fragment,null))};function Xee(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GAMEINFO","get-game-info",{params:{surfaceNames:t.surfaces,gameCategory:t.gameCategory,minimumGamesPerSurface:4}})];case 1:return[2,e.sent()]}}))}))}function Qee(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GAMEINFOV1","get-game-info-v1",{params:{surfaceNames:t.surfaces,gamingPlatforms:t.gamingPlatforms,picksForYouCategory:t.pfuCategory,minimumGamesPerSurface:1}})];case 1:return[2,e.sent()]}}))}))}function Zee(t,n,r){return void 0===r&&(r=!1),(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,N8(r,n,"GLOBAL.SERVICES.GAMEINFOV1DUNNING","get-game-info-v1",{params:{surfaceNames:t.surfaces,gamingPlatforms:t.gamingPlatforms,picksForYouCategory:t.pfuCategory,subscriptionNames:t.subscriptionNames,minimumGamesPerSurface:1}})];case 1:return[2,e.sent()]}}))}))}function Jee(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,B8("GLOBAL.SERVICES.GETPERSONALIZEDPRICE","get-personalized-price",{params:{productIds:t.productIds,locale:t.locale,market:t.market}})];case 1:return[2,e.sent()]}}))}))}var $ee,ete="MostPopular",tte={PC:"services.iris.pcgames",Console:"services.iris.consolegames",Cloud:"services.iris.cloudgames"},nte={MostPopular:"services.iris.mostpopulargames",RecentlyAdded:"services.iris.recentlyaddedgames",ComingSoon:"services.iris.comingsoongames",PicksForYou:"services.iris.picksforyougames"},rte={MostPopular:"services.iris.dunningmostpopulargames",RecentlyAdded:"services.iris.dunningrecentlyaddedgames",ComingSoon:"services.iris.dunningcomingsoongames",PicksForYou:"services.iris.dunningpicksforyougames",AllGames:"services.iris.dunningallgames"},ote="Console",ite="PC",ate="RecentlyPlayed",ste="PicksForYou",lte="MostPopular",cte="ComingSoon",ute="RecentlyAdded",dte="AllGames",pte=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o,i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Promise.allSettled([Zee(hte(t),t),C9(!1)])];case 1:return n=e.sent(),r=n[0],o=n[1],[2,{GameInfo:"fulfilled"===r.status?r.value:null,Friends:"fulfilled"===o.status?null===(i=o.value)||void 0===i?void 0:i.friendsDetails:null,RecentlyPlayed:"fulfilled"===o.status?null===(a=o.value)||void 0===a?void 0:a.recentlyPlayedGames:null}]}}))}))},hte=function(e){var t="",n="",r="",o=[rte.MostPopular,rte.ComingSoon,rte.PicksForYou,rte.RecentlyAdded].join(",");switch(e){case H7.XboxGamePassUltimate:n=ite,t=[ite,ote].join(","),r="GamePassUltimate";break;case H7.PCGamePass:n=ite,t=ite,r="PCGamePass";break;case H7.XboxLive:n=ote,t=ote,r="Gold";break;case H7.XboxGamePass:n=ote,t=ote,r="GamePass"}return{gamingPlatforms:t,pfuCategory:n,surfaces:o,subscriptionNames:r,minimumGamesPerSurface:3}},mte=jt().createElement(bb,{padding:"32px 0"},jt().createElement(nw,{height:96,width:300}),jt().createElement(bb,{padding:"8px"}),jt().createElement(nw,{height:16,width:300})),fte=jt().createElement(bb,{horizontalAlign:"center",padding:"16px 0"},jt().createElement(bb,{horizontal:!0,padding:"16px 0"},jt().createElement(jI,{height:40}),jt().createElement(jI,{height:40}),jt().createElement(jI,{height:40})),jt().createElement(nw,{height:16,width:300})),gte=jt().createElement(bb,{horizontalAlign:"center",padding:"16px 0"},jt().createElement(bb,{horizontal:!0,padding:"16px 0"},jt().createElement(nw,{height:48,width:144})),jt().createElement(nw,{height:16,width:300})),vte=function(e,t){var n=jt().createElement(jt().Fragment,null);switch(e){case H7.XboxGamePassUltimate:n=jt().createElement(jt().Fragment,null,mte,fte,gte);break;case H7.XboxLive:n=jt().createElement(jt().Fragment,null,mte,mte,fte);break;case H7.PCGamePass:case H7.XboxGamePass:n=jt().createElement(jt().Fragment,null,mte,mte,mte)}return jt().createElement(bb,{horizontal:!1,horizontalAlign:"center",height:"100%",overflow:"auto"},t?mte:n)},yte=function(e,t){var n,r=null===(n=null===t||void 0===t?void 0:t.surfaceInfoByNameV1[e])||void 0===n?void 0:n.gameIds;return null===r||void 0===r?void 0:r.map((function(e){var n=t.gameInfoById[e];return{id:n.productId,title:n.title,imageUrl:n.imageBoxArtUrl}}))},bte=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,h,m,f,g,v=[],y=function(e,t){var n=function(e,t){var n,r;switch(e){case"MostPopular":n=t.mostPopular,r=t.mostPopularBold;break;case"ComingSoon":n=t.placeholder,r=t.comingSoonBold;break;case"RecentlyPlayed":n=t.recentlyPlayed,r="";break;case"RecentlyAdded":n=t.recentlyAdded,r=t.recentlyAddedBold;break;case"PicksForYou":n=t.topPicks,r=t.topPicksBold;break;case"AllGames":n=t.allGames,r=t.allGamesBold;break;default:n="",r=""}return[n,r]}(t,r);return{games:e,mediaText:n[0],highlightText:n[1],category:t}},b=y(function(e){var t=Object.keys(e);return null===t||void 0===t?void 0:t.map((function(t){var n=e[t];return{id:n.productId,title:n.title,imageUrl:n.imageBoxArtUrl}}))}(t),ate),C=y(yte(lte,e),ste),S=y(yte(cte,e),ute),x=y(yte(ste,e),lte),_=y(yte(ute,e),cte),E=y(yte(dte,e),dte);switch(n){case H7.XboxGamePassUltimate:(null===(o=b.games)||void 0===o?void 0:o.length)>0&&v.push(b),(null===(i=x.games)||void 0===i?void 0:i.length)>0&&v.push(x),(null===(a=C.games)||void 0===a?void 0:a.length)>0&&v.push(C),(null===(s=S.games)||void 0===s?void 0:s.length)>0&&v.push(S);break;case H7.PCGamePass:(null===(l=x.games)||void 0===l?void 0:l.length)>0&&v.push(x),(null===(c=C.games)||void 0===c?void 0:c.length)>0&&v.push(C),(null===(u=_.games)||void 0===u?void 0:u.length)>0&&v.push(_),(null===(d=S.games)||void 0===d?void 0:d.length)>0&&v.push(S);break;case H7.XboxGamePass:(null===(p=C.games)||void 0===p?void 0:p.length)>0&&v.push(C),(null===(h=_.games)||void 0===h?void 0:h.length)>0&&v.push(_),(null===(m=S.games)||void 0===m?void 0:m.length)>0&&v.push(S);break;case H7.XboxLive:(null===(f=C.games)||void 0===f?void 0:f.length)>0&&v.push(C),(null===(g=E.games)||void 0===g?void 0:g.length)>0&&v.push(E)}return v},Cte=function(e){var t=e.friends,n=e.cmsContent,r=e.brandId,o=t.length||0,i="";r===H7.XboxGamePassUltimate?i=n.multiplayerXgpu:r===H7.XboxLive&&(i=n.multiplayerCore);var a=t.map((function(e){return{ariaLabel:e.gamertag,imageUrl:e.displayPicRaw,personaName:e.gamertag,tabIndex:-1}}));return jt().createElement(bb,{horizontalAlign:"center",padding:"16px 0"},jt().createElement(bb,{"aria-hidden":"true",padding:"16px 0"},jt().createElement(mL,{personas:a,personaSize:"40",maxDisplayablePersonas:2,showTooltip:!1,overflowButton:"descriptive",overflowButtonProps:{tabIndex:-1}})),jt().createElement(bb,null,jt().createElement(ox,{textWithTokens:i,tokensAndValues:{0:jt().createElement(ox,{weightOverride:"bold",textWithTokens:n.noOfFriends,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},o)}})}})))},Ste=function(e){var t=e.cmsContent,n=e.region,r=e.brandId,o=function(e,t,n){var r=[];return n===H7.XboxGamePassUltimate?(r=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"PC1",iconColor:"messageWebSuccess"},mediaText:""},{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"XboxOneConsole",iconColor:"messageWebSuccess"},mediaText:""}],e.cloudSupportedCountries.split(",").includes(t)&&r.push({"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"Cloud",iconColor:"messageWebSuccess"},mediaText:""})):n===H7.XboxLive&&(r=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"MultiplayerJoinChallenge",iconColor:"messageWebSuccess"},mediaText:""}]),r}(t,n,r),i=function(e,t,n){var r=e.cloudSupportedCountries.split(",").includes(t),o="",i="";return n===H7.XboxGamePassUltimate&&r?(o=e.benefitText,i=e.benefitPlatformsCloud):n!==H7.XboxGamePassUltimate||r?n===H7.XboxLive&&(o=e.multiplayerCoreNoFriends,i=e.multiplayerCoreNoFriendsBold):(o=e.benefitText,i=e.benefitPlatforms),[o,i]}(t,n,r),a=i[0],s=i[1];return jt().createElement(bb,{horizontalAlign:"center",padding:"16px 0"},jt().createElement(rQ,{padding:"8px","aria-label":"",products:o,variant:"minimalNoShadow"}),jt().createElement(bb,{textAlignment:"center"},jt().createElement(ox,{textWithTokens:a,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},s)}})))},xte=function(e){var t,n,r,o,i,a=e.gamesInfo,s=e.friends,l=e.brandId,c=$5(),u=c.service.market,d=null===(t=c.payNowCmsContent)||void 0===t?void 0:t.xboxGamePassBenefits,p=null!==(n=s&&s.length>0)&&void 0!==n&&n,h=[H7.XboxGamePassUltimate,H7.XboxLive].includes(l)&&p,m=l===H7.XboxGamePassUltimate||l===H7.XboxLive&&!p,f=(0,Gt.useState)(0),g=f[0],v=f[1];return Qt((function(){d?function(){var e=1;switch(l){case H7.XboxLive:e=2;break;case H7.PCGamePass:case H7.XboxGamePass:e=3}l!==H7.XboxGamePassUltimate||p||e++,v(e)}():Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsVerticalSection",message:"Unable to load CMS for Xbox benefits"})})),a&&d?jt().createElement(bb,{horizontal:!1,horizontalAlign:"center",height:"100%",overflow:"auto"},g>=1&&(null===(r=a[0])||void 0===r?void 0:r.games)&&jt().createElement(Kee,{key:a[0].category,gameInfo:a[0].games,mediaText:a[0].mediaText,mediaTextHighlight:a[0].highlightText}),g>=2&&(null===(o=a[1])||void 0===o?void 0:o.games)&&jt().createElement(Kee,{key:a[1].category,gameInfo:a[1].games,mediaText:a[1].mediaText,mediaTextHighlight:a[1].highlightText}),g>=3&&(null===(i=a[2])||void 0===i?void 0:i.games)&&jt().createElement(Kee,{key:a[2].category,gameInfo:a[2].games,mediaText:a[2].mediaText,mediaTextHighlight:a[2].highlightText}),h&&s?jt().createElement(bb,{padding:"0 0 24px 0"},jt().createElement(Cte,{friends:s,cmsContent:d,brandId:l})):null,m?jt().createElement(bb,{padding:"0 0 24px 0"},jt().createElement(Ste,{cmsContent:d,region:u,brandId:l})):null):jt().createElement(jt().Fragment,null)},_te="XboxBenefitsDunning",Ete=function(t){var n,r=t.isMobile,o=mi(),i=$5(),a=i.service.brandId,s=null===(n=i.payNowCmsContent)||void 0===n?void 0:n.xboxGamePassBenefits,l=(0,Gt.useState)(),c=l[0],u=l[1],d=(0,Gt.useState)(),p=d[0],h=d[1];return Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(!s)return Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsVerticalSection",message:"Unable to load CMS for Xbox benefits"}),[2];o({name:_te,status:"first-load"}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,pte(a)];case 2:return t=e.sent(),n=bte(t.GameInfo,t.RecentlyPlayed,a,s),u(n),h(t.Friends),r=function(e,t){var n={};return null===e||void 0===e||e.forEach((function(e){n[e.category]=e.games.length})),n.FriendsCount=null===t||void 0===t?void 0:t.length,n}(n,t.Friends),o({name:_te,status:"finished",customData:{gameStats:r}}),[3,4];case 3:return i=e.sent(),o({name:_te,status:"failed",error:i}),[3,4];case 4:return[2]}}))}))})),jt().createElement(dv,{operationData:{operationName:_te,componentName:"xbox-benefits-dunning"},firstLoadView:vte(a,r),finishedView:r?jt().createElement(Yee,{gameInfo:null===c||void 0===c?void 0:c[0]}):jt().createElement(xte,{brandId:a,gamesInfo:c,friends:p}),failedView:jt().createElement(jt().Fragment,null)})},kte=function(t){var n=EM(),r=$5(),o=r.service,i=tee(),a="pay-now-save-flow-dialog",s=A7(),l=mi(),c=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(xr(),n.closeDialog(),!zs(yee))return[3,5];e.label=1;case 1:return e.trys.push([1,3,,4]),l({name:Cee,status:"first-load"}),[4,s(r.area,bee,r.language)];case 2:return e.sent(),l({name:Cee,status:"finished"}),[3,4];case 3:return t=e.sent(),l({name:Cee,status:"failed",error:t}),[3,4];case 4:return[3,6];case 5:i(M7,r.language),e.label=6;case 6:return[2]}}))}))},u={isOpen:!0,onDismiss:c,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:t.saveStrings.cancelTitle,dialogStylesTemp:h5,closeButton:{"data-bi-id":"".concat(a,"-close"),"aria-label":r.payNowCmsContent.close},dialogFooterProps:{buttonPrimary:{onClick:function(){Cr({step:"PaynowPiPickerFromKeepBenefits"}),n.switchToDialog(jt().createElement(Pte,null))},text:t.saveStrings.keepBenefits,"aria-label":t.saveStrings.keepBenefits,"data-bi-id":"".concat(a,"-keep-benefits")},buttonSecondary:{onClick:c,text:t.saveStrings.cancel,"aria-label":t.saveStrings.cancel,"data-bi-id":"".concat(a,"-cancel")}},minBodyHeight:m5};return jt().createElement(CM,(0,e.__assign)({},u),jt().createElement(bb,{childrenGap:24},jt().createElement(GF,{messageContent:t.saveStrings.loseBenefits,messageBarType:"warning"}),o.isM365BrandId?jt().createElement(qee,null):o.isXboxBrandId?jt().createElement(Ete,{isMobile:!1}):jt().createElement(jt().Fragment,null)))},wte=function(){var e,t,n,r=$5(),o=r.service,i=null===(e=r.payNowCmsContent)||void 0===e?void 0:e.m365Benefits,a=null===(n=null===(t=r.payNowCmsContent)||void 0===t?void 0:t.m365Benefits)||void 0===n?void 0:n.personalizedBenefits;if(!i||!a)return Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"BenefitsSection",message:"Unable to load CMS for M365 personalized benefits"}),jt().createElement(jt().Fragment,null);var s=Nee(o,a,!0),l=Mee(a,!0),c=Fee(a,!0),u=Bee(o,a,!0),d=o.isHomeSKU?[u,s,l]:[s,l,c],p=d.map((function(e,t){return jt().createElement("li",{key:t},e.benefitString)})),h=jt().createElement(bb,{horizontal:!0,childrenGap:"14px",padding:"15px 0px"},jt().createElement(Cb,{align:"start"},jt().createElement(zk,{imageType:"ariaHiddenImage",width:"32px",height:"32px",src:a.oneDriveLogo.src})),d.map((function(e){return"image"===e.kind?jt().createElement(Cb,{align:"start"},jt().createElement(zk,{imageType:"ariaHiddenImage",width:"32px",height:"32px",src:e.imageUrl})):jt().createElement(Cb,{align:"start"},e.personas[0])})));return jt().createElement(bb,{padding:"20px 20px 0px",backgroundColor:"neutralMed",boxShadow:!0,borderRadius:"4px"},jt().createElement(Cb,{padding:"0px 0px 15px"},jt().createElement(nb,{tag:"h2",variant:"headerText"},i.titlev2)),jt().createElement(bb,{padding:"0px 0px 0px 20px"},jt().createElement("ul",null,jt().createElement("li",null,jt().createElement(jee,{benefitsCms:a})),p)),h)},Ite=function(){var e=$5(),t=e.service,n=t.payNow,r=e.payNowCmsContent,o=dee(),i=cee();if(!r)throw new Error("Paynow content not found");var a=ny(),s=ry(a),l=sn(r.taxFormat,n.tax),c=i?n.totalRemainingOnBackup:n.total,u=sn(r.accountBalance,t.csvAmountFormatted),d=sn(r.csvFormat,o?t.csvAmountFormatted:n.total),p=function(e){return"subscription"!==t.type&&g8(t.market)&&zs(j7)?function(e){return e.map((function(e,t){return jt().createElement(vb,{totalSlots:8,padding:"0 0 0 24px"},jt().createElement(gb,{textAlignment:"left",slots:5,key:t},jt().createElement(Ib,null,e.impositionName)),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3},jt().createElement(Ib,null,sn(r.taxFormat,e.taxAmount))))}))}(e):jt().createElement(vb,{totalSlots:8,padding:"0 0 0 24px"},jt().createElement(gb,{textAlignment:"left",slots:5},jt().createElement(Ib,null,r.tax)),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3},jt().createElement(Ib,null,l)))},h=n.items.map((function(e,t){return jt().createElement(jt().Fragment,null,jt().createElement(vb,{totalSlots:8,key:t},jt().createElement(gb,{textAlignment:"left",slots:5,height:"20"},jt().createElement(jk,{horizontal:!0,image:{imageType:"imageFavicon",src:e.brandLogo},size:"xs"},jt().createElement(Ib,null,e.name))),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3,height:"20"},jt().createElement(Ib,null,e.amount))),p(e.taxDetails))})),m=jt().createElement(jt().Fragment,null,jt().createElement(vb,{totalSlots:8,padding:"0 0 0 24px"},jt().createElement(gb,{textAlignment:"left",slots:5,height:"0"},jt().createElement(Ib,{variant:"headerErrorText"},r.totalBalance)),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3,height:"0"},jt().createElement(Ib,{variant:"headerErrorText"},n.total))),jt().createElement(vb,{totalSlots:8,padding:"12px 0 0 0",margin:"0 0 -15px 0"},jt().createElement(gb,{textAlignment:"left",slots:5},jt().createElement(jk,{horizontal:!0,image:{imageType:"imageFavicon",src:r.microsoftIcon},size:"xs"},jt().createElement(Ib,{id:"backup-pi-name"},u))),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3},jt().createElement(Ib,{id:"csv-formatted-text"},d)))),f=jt().createElement(Cb,{slots:24,textAlignment:"left"},jt().createElement(vb,{totalSlots:8,padding:"0 0 0 24px"},jt().createElement(gb,{textAlignment:"left",slots:5,height:"0"},o?jt().createElement(Ib,{id:"has-balance",colorOverride:"error",weightOverride:"bold"},r.totalDue):jt().createElement(jt().Fragment,null),o?jt().createElement(jt().Fragment,null):jt().createElement(Ib,{id:"no-balance",weightOverride:"bold"},r.totalDue)),jt().createElement(gb,{textAlignment:"right",align:"center",slots:3,height:"0"},o?jt().createElement(Ib,{colorOverride:"error",weightOverride:"bold"},c):jt().createElement(jt().Fragment,null),o?jt().createElement(jt().Fragment,null):jt().createElement(Ib,{weightOverride:"bold"},c))));return jt().createElement(bb,null,s?jt().createElement(jt().Fragment,null):jt().createElement(jt().Fragment,null,jt().createElement(bb,{padding:"0 42px 0 24px"},h),jt().createElement(Y4,null),i?jt().createElement(bb,{padding:"0 42px 0 24px"},m):jt().createElement(jt().Fragment,null),i?jt().createElement(bb,null,jt().createElement(Y4,null)):jt().createElement(jt().Fragment,null),jt().createElement(bb,{padding:"0 42px 0 24px"},f)),s?jt().createElement(jt().Fragment,null,h,jt().createElement(Y4,null),i?jt().createElement(bb,null,m):jt().createElement(jt().Fragment,null),i?jt().createElement(bb,null,jt().createElement(Y4,null)):jt().createElement(jt().Fragment,null),f):jt().createElement(jt().Fragment,null))},Pte=function(t){var n,r,o,i,a=$5(),s=mi(),l=EM(),c=tee(),u="pay-now-pi-picker",d="pay-now-pi-picker-operation",p=null!==(n=t.state)&&void 0!==n?n:"Select",h=(0,Gt.useState)(p),m=h[0],f=h[1],g=null!==(r=t.triggeredBy)&&void 0!==r?r:"empty",v=(0,Gt.useState)(g),y=v[0],b=v[1],C=(0,Gt.useState)(!1),S=C[0],x=C[1],_=(0,Gt.useRef)(null),E=(0,Gt.useRef)(null),k=(0,Gt.useRef)(null),w=(0,Gt.useRef)(null),I=a.payNowCmsContent,P=a.service,T=null===P||void 0===P?void 0:P.payNow,D=null===P||void 0===P?void 0:P.productRenewal,A=ny(),R=["xl","xxl","xxxl"].includes(A),N=A7(),M=(null===P||void 0===P?void 0:P.isXboxBrandId)&&(null===P||void 0===P?void 0:P.brandId)===H7.XboxGamePassUltimate&&zs("PayNowDunningXGPU"),F=(null===P||void 0===P?void 0:P.isXboxBrandId)&&(null===P||void 0===P?void 0:P.brandId)===H7.PCGamePass&&zs("PayNowDunningXPC"),B=(null===P||void 0===P?void 0:P.isXboxBrandId)&&(null===P||void 0===P?void 0:P.brandId)===H7.XboxGamePass&&zs("PayNowDunningXConsole"),O=(null===P||void 0===P?void 0:P.isXboxBrandId)&&(null===P||void 0===P?void 0:P.brandId)===H7.XboxLive&&zs("PayNowDunningXCore"),L=M||F||B||O,H=(null===P||void 0===P?void 0:P.isM365FullSku)||L;if(vn(T,"PayNow data"),vn(D,"PayNow product renewal info"),!I)throw new Error("PayNow content not found");var V=I.celaSection,z=I.addEditPiError;vn(V,"PayNow cela string"),vn(z,"PayNow add edit pi string");var U=(0,Gt.useState)(),W=U[0],G=U[1],j=null!==(o=a.defaultSelectedPiId)&&void 0!==o?o:null===(i=P.payment)||void 0===i?void 0:i.id,q=(0,Gt.useState)(j),K=q[0],Y=q[1],X=dee(),Q=function(){var e=$5().service,t=dee();return null===(null===e||void 0===e?void 0:e.backupPayment)&&!t}(),Z=cee(),J=wee(),$={0:jt().createElement(Ib,{weightOverride:"bold"},T.total)},ee=i8(D.cycleUnit,D.cycleLength,I.day,I.days,I.month,I.months,I.year,I.years),te=sn(Kt(I.billingMessageList,D.taxType),[T.total,zs(j7,!1)?sn(Q7(P.market,I.taxBreakdown,T.items.map((function(e){return e.taxDetails})).flat(),D.taxType,T.totalBeforeTax,T.tax,T.total),{price:T.totalBeforeTax,taxAmount:T.tax}):D.amountFormatted,ee]),ne=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(r){switch(r.label){case 0:return H?(t={saveStrings:I.saveSection},l.switchToDialog(jt().createElement(kte,(0,e.__assign)({},t))),[3,7]):[3,1];case 1:if(xr(),l.closeDialog(),!zs(yee))return[3,6];r.label=2;case 2:return r.trys.push([2,4,,5]),s({name:Cee,status:"first-load"}),[4,N(a.area,bee,a.language)];case 3:return r.sent(),s({name:Cee,status:"finished"}),[3,5];case 4:return n=r.sent(),s({name:Cee,status:"failed",error:n}),[3,5];case 5:return[3,7];case 6:c(M7,a.language),r.label=7;case 7:return[2]}}))}))},re=function(){return zs("PidlSuccess")||zs("PidlFail")||zs("PidlTimeout")||zs("PidlCancel")},oe=function(){var e;null===(e=_.current)||void 0===e||e.goToPickerState(),f("Select")},ie={title:I.errorTitle,subText:I.errorBody,dialogFooterProps:{buttonPrimary:{onClick:function(){l.closeDialog()},text:I.closeWindow,"aria-label":I.closeWindow,"data-bi-id":"".concat(u,"-close-window")}}},ae={progressViewOperationData:{operationName:d,componentName:u},errorDialogProps:ie},se={onClick:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(n){if(re())return l.switchToDialog(jt().createElement(Q5,(0,e.__assign)({},J))),[2];switch(m){case"Add":k.current.moveNextPage(),Cr({step:"PayNowFromAdd"});break;case"Select":E.current.moveNextPage(),Cr({step:"PayNowFromSelect"});break;case"Edit":w.current.moveNextPage(),Cr({step:"PayNowFromEditSubmit"});break;default:throw _r({error:t="Unsupported state: ".concat(m)}),new Error(t)}return[2]}))}))},text:I.payNow,"aria-label":sn(I.payNowAria,{amount:T.total}),"data-bi-id":"".concat(u,"-pay-now")},le={onClick:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(e){return null===(t=k.current)||void 0===t||t.moveNextPage(),Cr({step:"NextFromAdd"}),[2]}))}))},text:I.next,"aria-label":I.next,"data-bi-id":"".concat(u,"-next")},ce={onClick:oe,text:I.back,"aria-label":I.back,"data-bi-id":"".concat(u,"-back")};Qt((function(){G(function(e){var t=ree(e),n=oee(e);return n?{textWithTokens:"".concat(null===t||void 0===t?void 0:t.textWithTokens,"\n").concat(n.textWithTokens),tokensAndValues:t.tokensAndValues}:t}({service:P,dataBiIdPrefix:"PayNow",celaStrings:V}))}));var ue={buttonPrimary:se,buttonSecondary:{onClick:ne,text:I.cancel,"aria-label":I.cancel,"data-bi-id":"".concat(u,"-cancel")},richTextProps:W},de={dialogType:"flow",buttonPrimary:le,buttonSecondary:ce,richTextProps:W},pe={dialogType:"flow",buttonPrimary:se,buttonSecondary:ce,richTextProps:W},he={dialogType:"flow",buttonPrimary:{onClick:function(){w.current.moveNextPage(),Cr({step:"SaveFromEdit"})},text:I.saveChanges,"aria-label":I.saveChanges,"data-bi-id":"".concat(u,"-save-changes")},buttonSecondary:ce,richTextProps:W},me=(0,Gt.useState)(ue),fe=me[0],ge=me[1];(0,Gt.useEffect)((function(){switch(s({name:d,status:re()?"finished":"updating"}),m){case"Add":x(!1),ge("emptyResourceList"===y?ue:pe);break;case"Edit":"submitGroup"===y&&x(!0),ge("submitGroup"===y?pe:he);break;default:x(!1),ge(ue)}}),[m]),(0,Gt.useEffect)((function(){var e=document.getElementById("pay-now-picker-dialog");e&&e.hasAttribute("tabindex")&&e.removeAttribute("tabindex")}));var ve={isOpen:!0,onDismiss:ne,title:R&&H?{src:L?I.xboxLogoTitle.src:I.logoTitle.src,imageType:"ariaHiddenImage","aria-label":I.payYourBalance}:I.payYourBalance,closeButton:{"data-bi-id":"".concat(u,"-close"),"aria-label":I.close},dialogFooterProps:fe,operationData:ae,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},dialogStylesTemp:h5,contentId:"pay-now-picker-dialog",minBodyHeight:m5,staticBodyWidth:R&&H?"968px":void 0},ye=uee(),be=P.excludedPaymentTags?P.excludedPaymentTags.split(","):void 0,Ce="subscription"===P.type?P.includedPaymentInstrumentTagsForLegacySubsForPIDL:P.includedPaymentTags,Se=Ce?Ce.split(","):void 0,xe=a.service.payment?a.service.payment.biType:void 0,_e={market:P.market,language:P.locale,paymentId:K,billingId:P.billingId,environment:a.pidlEnvironment,transactionAmount:T.totalAmount,transactionCurrency:T.currency,scenario:ye,splitPaymentSupported:Z,isBackupPiOptional:Q,exclusionTags:be,currPiType:xe,allowedPaymentMethods:Se,returnUrl:mee(P.modelId,G6,j6),redirectFailureUrl:mee(P.modelId,U6,W6),onSuccessCallback:function(t,n,r,o){if(Cr({step:"OnSuccess".concat(m)}),e8((0,e.__assign)((0,e.__assign)({},a),{isSoldToAddressIdRequired:r})),s({name:d,status:"finished"}),"Edit"===m&&"submitGroup"!==y)Y(t),oe();else if(t===$6)Cr({step:$6}),l.switchToDialog(jt().createElement(kee,(0,e.__assign)({},{piid:t})));else{var i=(0,e.__assign)((0,e.__assign)({},J),{dialogTitle:a.psd2Resource.title.replace("{piName}",n),piChallengeProps:(0,e.__assign)((0,e.__assign)({},J.piChallengeProps),{piChallengeData:(0,e.__assign)((0,e.__assign)({},J.piChallengeProps.piChallengeData),{piid:t}),onSuccessCallback:function(r,i){l.switchToDialog(jt().createElement(kee,(0,e.__assign)({},{piid:t,paymentName:n,paymentSessionId:i,challengeStatus:r,paymentType:o})))},redirectSuccessUrl:gee(P.modelId,t,n,r,o)})});l.switchToDialog(jt().createElement(Q5,(0,e.__assign)({},i)))}},onFailureCallback:function(t){var n=P6(z,t.errorCode);n.isUserError?s({name:d,status:"finished"}):s({name:d,status:"failed",error:{name:"PaynowpickerError",message:t.message}}),_r({error:w6(n.errorCode),data:{isUserError:n.isUserError,errorDetails:t}}),l.switchToDialog(jt().createElement(See,(0,e.__assign)({},n)))},onSelectorEventCallback:function(e,t){x(e),Y(t),s({name:d,status:"finished"})},onAddResourceEventCallback:function(e){"Add"===m&&ge(e?pe:de),s({name:d,status:"finished"})},onReadyCallback:function(){s({name:d,status:"finished"})},onStateChangeCallback:function(e,t){t&&b(t),f(e)},onLoginRequiredEventCallback:function(e){s({name:d,status:"finished"}),_r({error:w6(e.errorCode),data:{isUserError:e.isUserError,errorDetails:e}})},selectPaymentInstrumentRef:E,addResourceRef:k,editResourceRef:w},Ee=Z?jt().createElement(GF,{messageBarType:"warning",messageContent:X?I.chooseBackupPaymentBalance:I.chooseBackupPaymentMessage}):"",ke=X?jt().createElement(ox,{textWithTokens:I.payWith,tokensAndValues:$}):jt().createElement(Ib,{variant:"headerText",id:"pay-now-billing-message"},I.chooseBackupPayment),we="Add"!==m?jt().createElement(GF,{messageBarType:"severe-warning",messageContent:I.updateGenericAlertMessage}):"",Ie=jt().createElement(bb,{childrenGap:40},"Select"===m?jt().createElement(Ite,null):jt().createElement(jt().Fragment,null),"Add"===m?jt().createElement(Ite,null):jt().createElement(jt().Fragment,null),jt().createElement(bb,{childrenGap:15},"Edit"===m?jt().createElement(Ib,{variant:"headerText",id:"update-text-submit"},I.updateCard):jt().createElement(jt().Fragment,null),"Select"===m?jt().createElement(Ib,{variant:"headerText",id:"pay-now-billing-message"},te):jt().createElement(jt().Fragment,null),"Add"===m?jt().createElement(Ib,{variant:"headerText",id:"pay-now-billing-message-add"},te):jt().createElement(jt().Fragment,null),"Select"===m?Ee:jt().createElement(jt().Fragment,null),!0===S?we:jt().createElement(jt().Fragment,null),jt().createElement(bb,{id:"pi-picker"},jt().createElement("div",{id:"pay-now-with-text"},"Select"===m?ke:jt().createElement(jt().Fragment,null)),jt().createElement("div",{"aria-labelledby":"pay-now-with-text",tabIndex:-1},re()?jt().createElement(jt().Fragment,null):jt().createElement(T5,(0,e.__assign)({ref:_},_e)))))),Pe=jt().createElement(bb,{childrenGap:16},P.isM365BrandId?jt().createElement(wte,null):L&&P.isXboxBrandId?jt().createElement(Ete,{isMobile:!0}):jt().createElement(jt().Fragment,null),Ie),Te=jt().createElement(vb,{totalSlots:2,horizontalAlign:"space-between",height:"100%"},jt().createElement(gb,{slots:1},jt().createElement(bb,{boxShadow:!0,borderRadius:"4px",padding:20,height:"100%",childrenGap:20},jt().createElement(nb,{tag:"h2",variant:"paneHeader"},P.isM365BrandId?I.m365Benefits.titlev2:L&&P.isXboxBrandId?I.xboxGamePassBenefits.title:""),P.isM365BrandId?jt().createElement(qee,null):L&&P.isXboxBrandId?jt().createElement(Ete,{isMobile:!1}):jt().createElement(jt().Fragment,null))),jt().createElement(gb,{slots:1},jt().createElement(bb,{boxShadow:!0,borderRadius:"4px",padding:20,height:"100%",childrenGap:20},jt().createElement(nb,{tag:"h2",variant:"paneHeader"},I.payYourBalance),jt().createElement(bb,{height:"100%",overflow:"auto"},Ie)))),De=jt().useMemo((function(){return H?R?Te:Pe:Ie}),[m,S,R]);return jt().createElement(CM,(0,e.__assign)({},ve),jt().createElement(vi,{operationData:{componentName:u,operationName:d},updatingView:De,firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:De}))},Tte=function(t){var n,r,o,i,a,s="pay-now",l="pay-now-operation",c=EM();a=t,Qt((function(){Y5=J5(a)}));var u=$5(),d=function(t){var n=mi(),r=EM(),o=$5(),i=o.payNowCmsContent;if(!i)throw new Error("PayNow content not found");var a="address-verification-ready",s=function(e){Cr({step:"AddressVerificationFailed",error:e.message,data:{errorDetails:e}}),n({name:a,status:"failed",error:e}),r.switchToDialog(jt().createElement(Pte,null))},l=function(e){t&&t(e),(null===e||void 0===e?void 0:e.error)?s(e.error):r.switchToDialog(jt().createElement(Pte,null))};return{addressVerificationProps:{addressId:o.service.soldToAddressId,market:o.service.market,language:o.service.locale,env:o.pidlEnvironment,onSuccessCallback:function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return E7({parameters:t,service:o.service,onAddressVerificationFlowCompletion:l}),[2]}))}))},onFailureCallback:s,returnUrl:hee(o.service.modelId),mobileDivStyle:f5,nonMobileDivStyle:g5,scenario:uee(),spinnerAriaLabel:i.loadingMessage},dialogComponentName:"pay-now-address-verification",dialogOperationName:a}}((function(t){t.updatedService&&e8((0,e.__assign)((0,e.__assign)({},u),{service:t.updatedService}))})),p=uee(),h=function(t,n){if(!u.payNowCmsContent)throw new Error("PayNow content not found");var r=_ee(u.payNowCmsContent,u.service.payNow.total,t);_r({error:w6(r.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:r.isUserError,errorDetails:t,piid:n}}),c.switchToDialog(jt().createElement(See,(0,e.__assign)({},r)))};Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s;return(0,e.__generator)(this,(function(l){if(void 0!==t.isPayNowIndia2FASuccess?W5({area:t.area,scenario:p,data:t.service.bi}):t.isAddPiFailed||t.isAddPiSuccess?b5({area:t.area,scenario:p,data:t.service.bi}):br({area:t.area,scenario:p,step:"PayNow.Index",data:(0,e.__assign)((0,e.__assign)({},t.service.bi),{flow:t.triggerBIId})}),!t.service)throw new Error("Service details not found");if(t.isAddPiFailed){if(Cr({step:"OnFailureAddPiRedirect"}),!(n=null===(s=t.payNowCmsContent)||void 0===s?void 0:s.addEditPiError))throw new Error("PayNow content not found");r=P6(n,"RedirectGenericError"),_r({error:w6(r.errorCode),data:{isUserError:r.isUserError}}),c.switchToDialog(jt().createElement(See,(0,e.__assign)({},r)))}else void 0!==t.isPayNowIndia2FASuccess?t.isPayNowIndia2FASuccess?(o=q5(),e8((0,e.__assign)((0,e.__assign)({},u),{isSoldToAddressIdRequired:o.isSoldToAddressIdRequired})),T6(o.selectedPiid,o.piid),"Succeeded"===o.challengeStatus||"NotApplicable"===o.challengeStatus?(Cr({step:"India2FARedirectSuccess.Challenge".concat(o.challengeStatus)}),c.switchToDialog(jt().createElement(kee,{piid:o.piid,paymentName:o.paymentName,paymentSessionId:o.sessionId,challengeStatus:o.challengeStatus,paymentType:o.paymentType}))):(i={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:o.challengeStatus},Cr({step:"India2FAChallengeStatusError.Challenge".concat(o.challengeStatus)}),h(i,o.piid))):(a=U5(),Cr({step:"India2FARedirectFailed"}),h(a)):t.service.isValidateAddressNeeded?(Cr({step:"AddressVerification"}),c.switchToDialog(jt().createElement(Z5,(0,e.__assign)({},d)))):(Cr({step:"PiPickerStart"}),c.switchToDialog(jt().createElement(Pte,null)));return[2]}))}))}));var m=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return c.closeDialog(),[2]}))}))},f={isOpen:!0,onDismiss:m,operationData:{progressViewOperationData:{operationName:l,componentName:s},errorDialogProps:{title:null===(n=t.payNowCmsContent)||void 0===n?void 0:n.errorTitle,subText:null===(r=t.payNowCmsContent)||void 0===r?void 0:r.errorBody,dialogFooterProps:{buttonPrimary:{onClick:m,text:null===(o=t.payNowCmsContent)||void 0===o?void 0:o.closeWindow,"aria-label":null===(i=t.payNowCmsContent)||void 0===i?void 0:i.closeWindow,"data-bi-id":"".concat(s,"-close-window")}}}},minBodyHeight:m5};return jt().createElement(CM,(0,e.__assign)({},f),jt().createElement(dv,{operationData:{componentName:s,operationName:l},updatingView:jt().createElement(jt().Fragment,null),firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},Dte=function(t,n,r,o,i,a,s,l,c,u){vn(t,"Service details not found in onClickPayNow");var d={service:t,payNowCmsContent:n.payNow,psd2Resource:n.common.psd2Resource,pidlEnvironment:r.pidlEnvironment,area:r.area,language:r.language,primaryId:r.userEmail,defaultSelectedPiId:s,isAddPiFailed:l,isAddPiSuccess:c,isPayNowIndia2FASuccess:u,succeededCallback:a?function(){return a(t)}:void 0,triggerBIId:o};return function(){return i.openDialog(jt().createElement(Tte,(0,e.__assign)({},d)))}},Ate=function(e,t,n,r,o){var i;if(e){var a=null!==(i=fn(J6,!0))&&void 0!==i?i:void 0,s=mn(U6,W6),l=mn(G6,j6),c=z5(lee);if(mn(aee,see)&&e.billingState===t7.InDunning){wr()===B7&&_r();var u=l8();Dte(e,t,n,u,r,o,a,s,l,c)(),hn(aee),hn(q6),hn(U6),hn(G6),hn(J6)}}},Rte=function(){return $ee.useValue()},Nte=function(e){$ee.setValue(e)},Mte=function(t){var n,r=Rte();vn(r,"change payment provider");var o=r.changePaymentContent;vn(o,"change payment strings");var i,a=EM(),s=tee(),l="change-payment-error-dialog",c=t.errorTitle?t.errorTitle:o.changePaymentGenericErrorTitle,u=r.browserLanguage;i=t.errorMessage?"string"===typeof t.errorMessage?jt().createElement(Ib,null,t.errorMessage):jt().createElement(ox,(0,e.__assign)({},t.errorMessage)):jt().createElement(Ib,null,o.changePaymentGenericErrorBody);var d,p=function(){a.closeDialog(),t.isRefreshNeeded&&window.location.reload(),s(N7,u)},h=null!==(n=t.buttonText)&&void 0!==n?n:o.close;d=t.buttonUrlReplacementString?{buttonPrimary:{onClick:function(){t.buttonUrlReplacementString&&window.location.replace(t.buttonUrlReplacementString)},text:h,"aria-label":h,"data-bi-id":"".concat(l,"-error-href")}}:{buttonPrimary:{onClick:p,text:h,"aria-label":h,"data-bi-id":"".concat(l,"-error-close")}};var m={isOpen:!0,onDismiss:p,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:c,closeButton:{"data-bi-id":"".concat(l,"-close"),"aria-label":o.close},dialogFooterProps:d,minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,(0,e.__assign)({},m),jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(iee,{src:o.failureIcon}),i))},Fte=function(t){var n=t.newPiName,r=t.newBackupPiName,o=Rte();vn(o,"change payment provider");var i=o.changePaymentContent;vn(i,"change payment strings");var a,s,l,c,u,d=EM(),p=tee(),h="change-payment-success-dialog",m=o.browserLanguage,f=zs("SvcPiChangeIndia"),g=function(){d.closeDialog(),p(N7,m)},v=o.isBackupPaymentRemove;a=i.changePaymentSuccessBody,s={0:jt().createElement(Ib,{weightOverride:"bold"},o.service.name),1:jt().createElement(Ib,null,n)},r&&(l=i.changePaymentBackupSuccessBody,c={0:jt().createElement(Ib,null," ",r," ")}),v&&(u=i.changePaymentBackupRemovedBody);var y={isOpen:!0,onDismiss:g,title:i.changePaymentSuccessHeader,closeButton:{"data-bi-id":"".concat(h,"-close"),"aria-label":i.close},dialogFooterProps:{buttonPrimary:{onClick:g,text:i.close,"aria-label":i.close,"data-bi-id":"".concat(h,"-close")}},minBodyHeight:m5,staticBodyWidth:"480px"};return jt().createElement(CM,(0,e.__assign)({},y),jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(iee,{src:i.successIcon}),v?jt().createElement(jt().Fragment,null):jt().createElement(ox,{textWithTokens:a,tokensAndValues:s}),!v&&"IN"===o.service.market&&f?jt().createElement(Ib,{weightOverride:"bold",variant:"cautionYellowText"},i.changePaymentSuccessBodyIndia):jt().createElement(jt().Fragment,null),!v&&l&&c?jt().createElement(ox,{textWithTokens:l,tokensAndValues:c}):jt().createElement(jt().Fragment,null),v&&u?jt().createElement(Ib,null,u):jt().createElement(jt().Fragment,null)))},Bte=function(t){var n=EM(),r=Rte();vn(r,"change payment provider");var o="change-payment-update-pi-dialog",i="update-payment-instrument",a=r.service,s=mi(),l=r.changePaymentContent;vn(l,"change payment strings");var c=function(o,c,u,d){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var p,h,m,f,g,v;return(0,e.__generator)(this,(function(y){return(h=a8(r.service,null!==(f=r.isSoldToAddressIdRequired)&&void 0!==f&&f)).isFailed?(_r({error:(m=o8(l.smdError)).errorCode,data:{challengeStatus:c,isUserError:m.isUserError}}),n.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},m))),[2]):(p=h.addressIdToSend,Cr({step:"ChangePi.Final"}),function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.UPDATEPAYMENTINSTRUMENT","update-pi",{subscriptionId:t.serviceId,serviceType:t.serviceType,paymentInstrumentId:t.paymentId,backupPaymentInstrumentId:t.backupPaymentId,paymentSessionId:t.sessionId,challengeCompletedStatus:t.challengeCompletedStatus,soldToAddressId:t.soldToAddressId,isPIDeclined:t.isPIDeclined,subscriptionPIID:t.subscriptionPIID})];case 1:return[2,e.sent()]}}))}))}({serviceId:a.id,serviceType:a.type,paymentId:u,backupPaymentId:d,sessionId:o,challengeCompletedStatus:c,soldToAddressId:p,isPIDeclined:null===(g=a.payment)||void 0===g?void 0:g.isDeclined,subscriptionPIID:null===(v=a.payment)||void 0===v?void 0:v.id}).then((function(){r.onPiUpdate&&r.onPiUpdate(a),s({name:i,status:"finished"}),n.switchToDialog(jt().createElement(Fte,(0,e.__assign)({},{newPiName:t.paymentName,newBackupPiName:t.backupPaymentName}))),_r({data:a.bi})})).catch((function(t){var r,o=t,a=(null===(r=o.response)||void 0===r?void 0:r.data.error)||"ChangePaymentUpdatePiNoErrorCode",c=w6(a),u={errorCode:c,isUserError:!0,isQoSImpactedError:!1,isRefreshNeeded:!0};switch(c){case"unauthorized":s({name:i,status:"finished"}),_r({error:c,data:{isUserError:!0}}),u=(0,e.__assign)((0,e.__assign)({},u),{errorTitle:l.refreshAndTryAgain,errorMessage:l.refreshMessage,buttonText:l.refreshCta,isRefreshNeeded:!0});break;case"previousRequestInProgress":_r({error:c,data:{isUserError:!0}}),u=(0,e.__assign)((0,e.__assign)({},u),{errorTitle:l.previousRequestInProgressTitle,errorMessage:l.previousRequestInProgressMessage});break;case"processorDeclined":case"partnerForbiddenProcessorDeclined":case"bILLING_E_PAYMENT_PROVIDER_DECLINE":case"insufficientFunds":case"partnerForbiddenInsufficientFunds":case"invalidPaymentInstrument":case"invalidPaymentInstrumentId":case"amountLimitExceeded":case"transactionNotAllowed":case"orderLocked":case"expiredPaymentInstrument":case"badRequest":case"invalidParameter":case"networkError":s({name:i,status:"finished"}),_r({error:c,data:{isUserError:!0}});break;default:u=(0,e.__assign)((0,e.__assign)({},u),{isUserError:!1,isQoSImpactedError:!0}),s({name:i,status:"failed",error:o}),_r({error:c})}n.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},u)))})),[2])}))}))};Qt((function(){var e,n;s({name:i,status:"updating"}),c(null!==(e=t.paymentSessionId)&&void 0!==e?e:"",null!==(n=t.challengeStatus)&&void 0!==n?n:"Unknown",t.piid,t.backupPiid)}));var u={isOpen:!0,operationData:{progressViewOperationData:{operationName:i,componentName:o},errorDialogProps:{},progressDialogProps:{}},minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,(0,e.__assign)({},u),jt().createElement(vi,{operationData:{componentName:o,operationName:i},updatingView:jt().createElement(F5,{spinnerAriaLabel:l.loadingMessage}),firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},Ote=function(){var t=EM(),n="change-backup-payment-remove-confirm-dialog",r=Rte(),o=r.changePaymentContent;vn(o,"change payment strings");var i=r.service,a=function(){xr(),t.closeDialog()},s={progressViewOperationData:{operationName:"backup-payment-remove",componentName:n},errorDialogProps:{title:o.tryAgainTitle,subText:o.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:function(){t.closeDialog()},text:o.close,"aria-label":o.close,"data-bi-id":"".concat(n,"-close-window")}}}},l={isOpen:!0,onDismiss:a,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:o.removeBackupPiTitle,closeButton:{"data-bi-id":"".concat(n,"-close"),"aria-label":o.close},dialogFooterProps:{dialogType:"flow",buttonSecondary:{onClick:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,o,a;return(0,e.__generator)(this,(function(s){return Cr({step:"ChangeBackupPaymentRemoveConfirm"}),!0,Nte((0,e.__assign)((0,e.__assign)({},r),{isBackupPaymentRemove:true})),n={piid:null===(o=i.payment)||void 0===o?void 0:o.id,paymentName:null===(a=i.payment)||void 0===a?void 0:a.name,backupPiid:void 0,backupPaymentName:void 0},t.switchToDialog(jt().createElement(Bte,(0,e.__assign)({},n))),[2]}))}))},text:o.remove,"aria-label":o.remove,"data-bi-id":"".concat(n,"-remove")},buttonPrimary:{onClick:a,text:o.cancel,"aria-label":o.cancel,"data-bi-id":"".concat(n,"-cancel")}},operationData:s,minBodyHeight:m5};return jt().createElement(CM,(0,e.__assign)({},l),jt().createElement(UT,null,jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24,"data-is-focusable":!0},jt().createElement(Ib,null,sn(o.removeBackupPiBody,i.name)))))},Lte="openChangePayment",Hte="openChangeBackupPayment",Vte="true",zte="isChangePiIndia2FASuccess",Ute=function(){return!!Rte().isChangePaymentBackup},Wte=function(){var e=Rte().service,t=e.billingState,n=Ute(),r=e.backupPayment&&e.backupPayment.id&&e.backupPayment.name,o=e.payment&&e.payment.supportsBackupPayment&&!r;if(n){if(o)return"AmcAddBackupPi";switch(t){case t7.LowCsvExpiredBackup:return"AmcFixExpiredBackupPi";case t7.LowCsvExpiringBackup:return"AmcFixExpiringBackupPi";case t7.LowCsvWithoutBackup:return"AmcAddBackupPi";default:return"AmcChangeBackupPi"}}switch(t){case t7.ExpiredPrimaryPI:return"AmcFixExpiredPi";case t7.ExpiringPrimaryPI:return"AmcFixExpiringPi";default:return"AmcChangePi"}},Gte=function(e,t){var n=new URL(e),r=Ute(),o=!1,i="";return!r&&n.search.indexOf(Lte)<0?(i=Lte,o=!0):r&&n.search.indexOf(Hte)<0&&(i=Hte,o=!0),o&&(n.search?n.search=sn("{0}&{1}={2}",{0:n.search,1:i,2:Vte}):n.search=sn("{0}={1}",{0:i,1:Vte})),n.search.indexOf(q6)<0&&(n.search?n.search=sn("{0}&{1}=".concat(t),{0:n.search,1:q6}):n.search="".concat(q6,"=").concat(t)),n.toString()};function jte(e,t,n,r){var o=Gte(e,t),i=new URL(o);return i.search?i.search=sn("{0}&{1}={2}",{0:i.search,1:n,2:r}):i.search="".concat(n,"=").concat(r),i.toString()}function qte(e,t){var n=Gte(e,t);return dn(n,zte,"true")}function Kte(t,n,r,o,i,a){var s,l,c,u,d,p=(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([(s={},s.selectedPiid=n,s),(l={},l.paymentName=r,l)],void 0!==o?[(c={},c.isSoldToAddressIdRequired=o.toString(),c)]:[],!0),i?[(u={},u.backupPiid=i,u)]:[],!0),a?[(d={},d.backupPaymentName=a,d)]:[],!0);return pn(t,p)}function Yte(e,t){var n=Gte(e,t);return dn(n,zte,"false")}var Xte=function(){var t=EM(),n=mi(),r=Rte(),o=r.service,i="change-pi-challenge-operation",a=Wte();vn(r,"change payment provider");var s=r.psd2Resource;vn(s,"psd2 resource");var l=r.changePaymentContent;return vn(l,"change payment cms content"),{piChallengeProps:{env:r.pidlEnvironment,piChallengeData:{amount:"IN"===o.market||zs("SvcIndia2FATest")?o.productRenewal.price:0,currency:o.productRenewal.currency,language:o.locale,country:o.market,challengeScenario:"RecurringTransaction",isLegacy:"subscription"===o.type,isMOTO:!1,hasPreOrder:!1,windowSize:"02",frequency:o.productRenewal.cycleLength,frequencyUnit:o.productRenewal.cycleUnit,piid:"mock pi"},onSuccessCallback:function(n,r){var o={piid:"mock pi",paymentName:"mock paymentName",backupPiid:"mock backupPiid",backupPaymentName:"mock backupPaymentName",challengeStatus:n,paymentSessionId:r};t.switchToDialog(jt().createElement(Bte,(0,e.__assign)({},o)))},onFailureCallback:function(r){var o=r.challengeStatus,a=r8(s,r);a.isQoSImpactedError?n({name:i,status:"failed",error:r}):n({name:i,status:"finished"}),_r({error:w6(a.errorCode),data:{challengeStatus:o,isUserError:a.isUserError,errorDetails:r}}),t.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},a)))},onCancelCallback:function(){xr(),br({area:r.area,scenario:a,step:"ChangePi.Index",data:r.service.bi}),Cr({step:"TryAgainAfterChallengeCancel"}),t.switchToDialog(jt().createElement(Qte,null))},returnUrl:Gte(window.location.href,o.modelId),redirectSuccessUrl:qte(window.location.href,o.modelId),redirectFailureUrl:Yte(window.location.href,o.modelId),spinnerAriaLabel:s.loadingMessage},dialogTitle:"",dialogComponentName:"change-pi-challenge",dialogOperationName:i,closeAriaLabel:l.close}},Qte=function(t){var n,r,o,i,a=EM(),s="change-payment-pi-picker-dialog",l="pi-picker",c=mi(),u=Rte(),d=u.changePaymentContent;vn(d,"change payment strings");var p=u.service,h=null===p||void 0===p?void 0:p.productRenewal;vn(h,"product renewal");var m=Wte(),f=p.excludedPaymentTags?p.excludedPaymentTags.split(","):void 0,g=u.browserLanguage,v="subscription"===p.type?p.includedPaymentInstrumentTagsForLegacySubsForPIDL:p.includedPaymentTags,y=v?v.split(","):void 0,b=(0,Gt.useRef)(null),C=(0,Gt.useRef)(null),S=(0,Gt.useRef)(null),x=(0,Gt.useRef)(null),_=null!==(n=t.state)&&void 0!==n?n:"Select",E=(0,Gt.useState)(_),k=E[0],w=E[1],I=null!==(r=t.triggeredBy)&&void 0!==r?r:"empty",P=(0,Gt.useState)(I),T=P[0],D=P[1],A=(0,Gt.useState)(!1),R=A[0],N=A[1],M=null!==(o=u.defaultSelectedPiId)&&void 0!==o?o:null===(i=p.payment)||void 0===i?void 0:i.id,F=(0,Gt.useState)(M),B=F[0],O=F[1],L=Xte(),H=tee(),V={title:d.tryAgainTitle,subText:d.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:function(){a.closeDialog()},text:d.close,"aria-label":d.close,"data-bi-id":"".concat(s,"-close-window")}}},z=function(){xr(),a.closeDialog(),H(N7,g)},U={onClick:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(n){if(v5())return a.switchToDialog(jt().createElement(Q5,(0,e.__assign)({},L))),[2];switch(k){case"Add":S.current.moveNextPage(),Cr({step:"SaveChangesFromAdd"});break;case"AddBackup":S.current.moveNextPage(),Cr({step:"SaveChangesFromAddBackup"});break;case"Select":C.current.moveNextPage(),Cr({step:"SaveChangesFromSelect"});break;case"SelectBackup":C.current.moveNextPage(),Cr({step:"SaveChangesFromSelectBackup"});break;case"Edit":x.current.moveNextPage(),Cr({step:"SaveChangesFromEditSubmit"});break;case"EditBackup":x.current.moveNextPage(),Cr({step:"SaveChangesFromEditSubmitBackup"});break;default:throw _r({error:t="Unsupported state: ".concat(k)}),new Error(t)}return[2]}))}))},text:d.saveChanges,"aria-label":d.saveChanges,"data-bi-id":"".concat(s,"-save-changes")},W={onClick:function(){x.current.moveNextPage(),Cr({step:"SaveFromEdit"})},text:d.saveChanges,"aria-label":d.saveChanges,"data-bi-id":"".concat(s,"-edit-save-changes")},G={onClick:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,e.__generator)(this,(function(e){return null===(t=S.current)||void 0===t||t.moveNextPage(),Cr({step:"NextFromAdd"}),[2]}))}))},text:d.next,"aria-label":d.next,"data-bi-id":"".concat(s,"-next")},j=function(){var e,t;"AddBackup"===k||"EditBackup"===k?(null===(e=b.current)||void 0===e||e.goToPickerBackupState(),w("SelectBackup")):(null===(t=b.current)||void 0===t||t.goToPickerState(),w("Select"))},q={onClick:j,text:d.back,"aria-label":d.back,"data-bi-id":"".concat(s,"-back")},K={buttonPrimary:U,buttonSecondary:{onClick:z,text:d.cancel,"aria-label":d.cancel,"data-bi-id":"".concat(s,"-cancel")}},Y={dialogType:"flow",buttonPrimary:W,buttonSecondary:q},X={dialogType:"flow",buttonPrimary:G,buttonSecondary:q},Q={dialogType:"flow",buttonPrimary:U,buttonSecondary:q};(0,Gt.useEffect)((function(){switch(c({name:l,status:v5()?"finished":"updating"}),k){case"Add":case"AddBackup":N(!1),$("emptyResourceList"===T?K:Q);break;case"Edit":case"EditBackup":"submitGroup"===T&&N(!0),$("submitGroup"===T?Q:Y);break;case"SelectBackup":N(!1),$(Q);break;default:N(!1),$(K)}}),[k]);var Z=(0,Gt.useState)(K),J=Z[0],$=Z[1],ee={progressViewOperationData:{operationName:l,componentName:s},errorDialogProps:V},te={isOpen:!0,onDismiss:z,contentId:s,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:u.isChangePaymentBackup?d.changeBackupPaymentTitle:"SelectBackup"===k||"AddBackup"===k||"EditBackup"===k?d.addBackupPi:d.changePaymentTitle,closeButton:{"data-bi-id":"".concat(s,"-close"),"aria-label":d.close},dialogFooterProps:J,operationData:ee,minBodyHeight:m5,dialogStylesTemp:h5},ne="Add"!==k?jt().createElement(GF,{messageBarType:"severe-warning",messageContent:d.expiredPiAlertMessage}):"",re=jt().createElement(GF,{messageBarType:"warning",messageContent:d.changeBackupPiAlertMessage}),oe={market:p.market,language:p.locale,paymentId:B,billingId:p.billingId,environment:u.pidlEnvironment,transactionAmount:h.price,transactionCurrency:h.currency,scenario:m,splitPaymentSupported:u.isChangePaymentBackup,isBackupPiOptional:u.isChangePaymentBackup,exclusionTags:f,allowedPaymentMethods:y,returnUrl:jte(window.location.href,p.modelId,G6,j6),redirectFailureUrl:jte(window.location.href,p.modelId,U6,W6),onSuccessCallback:function(t,n,r,o,i){var s,d;if(Nte((0,e.__assign)((0,e.__assign)({},u),{isSoldToAddressIdRequired:r})),c({name:l,status:"finished"}),"Edit"!==k&&"EditBackup"!==k||"submitGroup"===T)if(t===$6)Cr({step:"removeBackupPi",data:{isBackupPiRemove:!0}}),a.switchToDialog(jt().createElement(Ote,null));else if(Cr({step:"OnSuccessSelect"}),t===(null===(s=p.payment)||void 0===s?void 0:s.id)&&o===(null===(d=p.backupPayment)||void 0===d?void 0:d.id))a.switchToDialog(jt().createElement(Fte,(0,e.__assign)({},{newPiName:n,newBackupPiName:i}))),p.billingState!==t7.ActiveAutoRenewOn&&u.onPiUpdate&&u.onPiUpdate(p);else{var h=(0,e.__assign)((0,e.__assign)({},L),{dialogTitle:o?u.psd2Resource.title.replace("{piName}",i):u.psd2Resource.title.replace("{piName}",n),piChallengeProps:(0,e.__assign)((0,e.__assign)({},L.piChallengeProps),{piChallengeData:(0,e.__assign)((0,e.__assign)({},L.piChallengeProps.piChallengeData),{piid:o||t}),onSuccessCallback:function(r,s){var l,c;if(u.isChangePaymentBackup){var d={piid:null===(l=p.payment)||void 0===l?void 0:l.id,paymentName:null===(c=p.payment)||void 0===c?void 0:c.name,backupPiid:t,backupPaymentName:n,challengeStatus:r,paymentSessionId:n};a.switchToDialog(jt().createElement(Bte,(0,e.__assign)({},d)))}else a.switchToDialog(jt().createElement(Bte,(0,e.__assign)({},{piid:t,paymentName:n,paymentSessionId:s,challengeStatus:r,backupPiid:o,backupPaymentName:i})))},redirectSuccessUrl:Kte(L.piChallengeProps.redirectSuccessUrl,t,n,r,o,i)})});a.switchToDialog(jt().createElement(Q5,(0,e.__assign)({},h)))}else O(t),j()},onFailureCallback:function(t){var n=P6(d.addEditPiError,t.errorCode);n.isUserError?c({name:l,status:"finished"}):c({name:l,status:"failed",error:{name:"ChangePaymentError",message:t.message}}),_r({error:w6(n.errorCode),data:{isUserError:n.isUserError,errorDetails:t}}),a.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},n)))},onSelectorEventCallback:function(e,t){N(e),O(t),c({name:l,status:"finished"})},onAddResourceEventCallback:function(e){"Add"!==k&&"AddBackup"!==k||$(e?Q:X),c({name:l,status:"finished"})},onReadyCallback:function(){c({name:l,status:"finished"})},onStateChangeCallback:function(e,t){t&&D(t),w(e)},onLoginRequiredEventCallback:function(e){c({name:l,status:"finished"}),_r({error:w6(e.errorCode),data:{isUserError:e.isUserError,errorDetails:e}})},selectPaymentInstrumentRef:C,addResourceRef:S,editResourceRef:x};(0,Gt.useEffect)((function(){var e=document.getElementById(s);e&&e.hasAttribute("tabindex")&&e.removeAttribute("tabindex")}));var ie=jt().useMemo((function(){return jt().createElement(bb,{childrenGap:15},jt().createElement(bb,{id:"change-payment-with-text"},"Select"===k?jt().createElement(Ib,{variant:"headerText",id:"change-payment-message"},sn(d.changePaymentSubText,p.name)):jt().createElement(jt().Fragment,null),"SelectBackup"===k?jt().createElement(Ib,{variant:"headerText",id:"change-payment-backup-message"},d.choosePi):jt().createElement(jt().Fragment,null),"Add"===k||"AddBackup"===k?jt().createElement(Ib,{variant:"headerText",id:"change-payment-message-add"},d.addPi):jt().createElement(jt().Fragment,null),"Edit"===k||"EditBackup"===k?jt().createElement(Ib,{variant:"headerText",id:"update-text-submit"},d.updatePi):jt().createElement(jt().Fragment,null),"AddBackup"===k||"EditBackup"===k||"SelectBackup"===k?re:jt().createElement(jt().Fragment,null),!0===R?ne:jt().createElement(jt().Fragment,null)),jt().createElement(bb,{id:"pi-picker"},jt().createElement("div",{"aria-labelledby":"change-payment-with-text",tabIndex:-1},v5()?jt().createElement(jt().Fragment,null):jt().createElement(T5,(0,e.__assign)({ref:b},oe)))))}),[k,R]);return c({name:l,status:v5()?"finished":"updating"}),jt().createElement(CM,(0,e.__assign)({},te),jt().createElement(dv,{operationData:{componentName:s,operationName:l},updatingView:ie,firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:ie}))},Zte=function(t){var n,r="change-payment-dialog",o="change-payment-operation",i=EM();n=t,Qt((function(){$ee=J5(n)}));var a=Rte(),s=Wte(),l=t.changePaymentContent;vn(l,"change payment strings");var c=function(t,n){if(!a.psd2Resource)throw new Error("PayNow content not found");var r=r8(a.psd2Resource,t);_r({error:w6(r.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:r.isUserError,errorDetails:t,piid:n}}),i.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},r)))};Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,o,u;return(0,e.__generator)(this,(function(d){return void 0!==t.isChangePiIndia2FASuccess?W5({area:t.area,scenario:s,data:t.service.bi}):t.isAddPiSuccess||t.isAddPiFailed?b5({area:t.area,scenario:s,data:t.service.bi}):br({area:t.area,scenario:s,step:"ChangePi.Index",data:t.service.bi}),t.service?t.isAddPiFailed?(Cr({step:"OnFailureAddPiRedirect"}),n=P6(l.addEditPiError,"RedirectGenericError"),_r({error:w6(n.errorCode),data:{isUserError:n.isUserError}}),i.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},n)))):void 0!==t.isChangePiIndia2FASuccess?t.isChangePiIndia2FASuccess?(r=q5(),Nte((0,e.__assign)((0,e.__assign)({},a),{isSoldToAddressIdRequired:r.isSoldToAddressIdRequired})),T6(r.selectedPiid,r.piid),"Succeeded"===r.challengeStatus||"NotApplicable"===r.challengeStatus?(Cr({step:"India2FARedirectSuccess.Challenge".concat(r.challengeStatus)}),i.switchToDialog(jt().createElement(Bte,{piid:r.piid,paymentName:r.paymentName,paymentSessionId:r.sessionId,challengeStatus:r.challengeStatus,backupPiid:r.backupPiid,backupPaymentName:r.backupPaymentName}))):(o={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:r.challengeStatus},Cr({step:"India2FAChallengeStatusError.Challenge".concat(r.challengeStatus)}),c(o,r.piid))):(u=U5(),Cr({step:"India2FARedirectFailed"}),c(u)):(Cr({step:"PiPickerStart"}),i.switchToDialog(jt().createElement(Qte,null))):(_r({error:w6("NoServiceDetails"),data:{isUserError:!1}}),i.switchToDialog(jt().createElement(Mte,(0,e.__assign)({},{errorCode:"NoServiceDetails",isUserError:!1,isQoSImpactedError:!0,isRefreshNeeded:!0})))),[2]}))}))}));var u=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return i.closeDialog(),[2]}))}))},d={isOpen:!0,onDismiss:u,operationData:{progressViewOperationData:{operationName:o,componentName:r},errorDialogProps:{title:l.tryAgainTitle,subText:l.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:u,text:l.close,"aria-label":l.close,"data-bi-id":"".concat(r,"-close-window")}}}},minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,(0,e.__assign)({},d),jt().createElement(dv,{operationData:{componentName:r,operationName:o},updatingView:jt().createElement(jt().Fragment,null),firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},Jte=function(t){var n=t.service,r=t.areaConfig,o=t.cmsContent,i=t.dialogController,a=t.isChangePaymentBackup,s=t.paymentId,l=t.isAddPiFailed,c=t.isAddPiSuccess,u=t.isChangePiIndia2FASuccess,d=t.onServiceUpdate;if(!n)throw new Error("Service details not found");var p={service:n,area:r.area,browserLanguage:r.browserLanguage,isChangePaymentBackup:a,pidlEnvironment:r.pidlEnvironment,psd2Resource:o.common.psd2Resource,changePaymentContent:o.changePayment,defaultSelectedPiId:s,isAddPiFailed:l,isAddPiSuccess:c,isChangePiIndia2FASuccess:u,onPiUpdate:d};return function(){return i.openDialog(jt().createElement(Zte,(0,e.__assign)({},p)))}},$te=function(e,t,n,r,o){var i;if(e){var a=mn("fref","value-banner-changepi"),s=e.billingState===t7.ActiveAutoRenewOn||e.billingState===t7.ExpiredPrimaryPI||e.billingState===t7.ExpiringPrimaryPI||e.billingState===t7.LowCsvExpiredBackup||e.billingState===t7.LowCsvExpiringBackup||e.billingState===t7.LowCsvSupportBackup||e.billingState===t7.LowCsvWithoutBackup,l=null!==(i=fn(J6,!0))&&void 0!==i?i:void 0,c=mn(U6,W6),u=mn(G6,j6),d=z5(zte);if(mn(Lte,Vte)&&s)wr()===B7&&_r(),Jte({service:e,areaConfig:t,cmsContent:n,dialogController:r,isChangePaymentBackup:!1,isFixHowYouPay:a,paymentId:l,isAddPiFailed:c,isAddPiSuccess:u,isChangePiIndia2FASuccess:d,onServiceUpdate:o})(),hn(Lte),hn(q6),hn(U6),hn(G6),hn(J6);else if(mn(Hte,Vte)&&s){wr()===B7&&_r(),Jte({service:e,areaConfig:t,cmsContent:n,dialogController:r,isChangePaymentBackup:!0,isFixHowYouPay:a,paymentId:l,isAddPiFailed:c,isChangePiIndia2FASuccess:d,onServiceUpdate:o})(),hn(Hte),hn(q6),hn(U6),hn(J6)}}},ene=function(e){var t,n=e.showUserConsentText,r=e.dataBiIdPrefix,o=e.onConsentChange,i=e.celaStrings,a=(0,Gt.useState)(!1),s=a[0],l=a[1];return n&&(t=jt().createElement($P,{"data-bi-id":"".concat(r,".userConsentBox"),"aria-label":i.recurringBillingConsent,onChange:function(e,t){l(t||!s),o&&o()},checked:s,label:i.recurringBillingConsent})),null!==t&&void 0!==t?t:jt().createElement(jt().Fragment,null)};function tne(e){return{listPrice:e,MSRP:e,isPIRequired:0,recurrencePrice:e,currencyCode:"USD",taxType:"TaxesNotIncluded",totalTax:(.1*e).toFixed(2),totalTaxInDecimal:.1,fullPrice:(e+.1*e).toFixed(2),fullPriceInDecimal:e+.1*e,taxDetails:[]}}(9.99*.05).toFixed(2),(9.99*.1).toFixed(2),t7.ActiveAutoRenewOn,t7.ActiveAutoRenewOn,t7.Unknown;var nne,rne={productName:"mock-product-2",availabilityId:"A",currencyCode:"USD",current:!1,cycle:1,nextChargeDate:"10/26/2021 15:14:43",upgradeProrateNextChargeDate:"",conversionDetailsUrl:"conversionDetailsUrl",price:"$9.99",priceDetails:tne(9.99),taxType:"TaxesNotIncluded",priceInDecimal:9.99,productId:"mock-id-2",selected:!1,skuId:"Monthly",cycleLength:1,cycleUnit:"month",relativeSavingsPercent:0,paymentInstrumentExclusionFilters:[],paymentInstrumentInclusionFilters:[],showUserConsentText:!1},one=(tne(99.99),tne(99.99),tne(9.99),tne(6.99),tne(6.99),function(e){return{href:e.url,target:ine(e.target),"aria-label":e.ariaLabel,"data-bi-id":e.id,children:e.text}}),ine=function(e){return"_self"===e||"_blank"===e?e:void 0},ane=function(e,t,n){var r=e.model;if(!r)throw new Error("getIrisCardProps: Please provide a campaign model.");var o,i=r.ad;return{impressionBeaconUrl:r.prm._imp,clickBeaconUrl:r.tracking.baseUri,headerProps:i.CardTitle?{text:i.CardTitle}:void 0,graphicProps:{graphicType:"image",src:i.Image,alt:i.ImageAltText},detailsProps:{heading:i.Title,text:i.Subtitle},ctaProps:{text:i.Cta,href:(o=i.CtaUrl,0===o.length||"#"===o||qt.test(o.toLowerCase())?o:"https://".concat(o)),"aria-label":i.CtaAriaText,"data-bi-id":t,iconName:n||void 0}}},sne=function(t,n,r){var o,i,a,s=t.model,l=r||{},c=l.primaryCtaAction,u=l.backgroundType,d=void 0===u?"card":u,p=l.layoutType,h=void 0===p?"2/3":p,m=l.primaryButtonProps,f=l.headingProps;if(!s)throw new Error("getIrisFeatureProps: Please provide a campaign model.");var g=s.ad,v=[];if((g.primaryCtaText||g.primaryCTAText)&&g.primaryCtaUrl&&g.primaryCtaAriaLabel){var y=function(){window.open(g.primaryCtaUrl,"_blank")};"actionButton"===(null===m||void 0===m?void 0:m.kind)?v.push({actionProps:(0,e.__assign)((0,e.__assign)({},m),{"aria-label":g.primaryCtaAriaLabel,"data-bi-id":"".concat(n,".button"),kind:"actionButton",text:null!==(o=g.primaryCtaText)&&void 0!==o?o:g.primaryCTAText,type:"primary",onClick:null!==c&&void 0!==c?c:y})}):"noHrefLink"===(null===m||void 0===m?void 0:m.kind)?v.push({actionProps:(0,e.__assign)((0,e.__assign)({},m),{"aria-label":g.primaryCtaAriaLabel,"data-bi-id":"".concat(n,".link"),kind:"noHrefLink",children:null!==(i=g.primaryCtaText)&&void 0!==i?i:g.primaryCTAText,type:"primary",onClick:null!==c&&void 0!==c?c:y})}):v.push({actionProps:(0,e.__assign)((0,e.__assign)({},m),{"aria-label":g.primaryCtaAriaLabel,"data-bi-id":"".concat(n,".button"),kind:"button",text:null!==(a=g.primaryCtaText)&&void 0!==a?a:g.primaryCTAText,type:"primary",onClick:null!==c&&void 0!==c?c:y})})}return g.secondaryCtaText&&g.secondaryCtaUrl&&g.secondaryCtaAriaLabel&&v.push({actionProps:{"aria-label":g.secondaryCtaAriaLabel,"data-bi-id":"".concat(n,".noHrefLink"),kind:"noHrefLink",children:g.secondaryCtaText,onClick:function(){window.open(g.secondaryCtaUrl,"_blank")}}}),{impressionBeaconUrl:s.prm._imp,clickBeaconUrl:s.tracking.baseUri,featureHeading:{tag:null===f||void 0===f?void 0:f.tag,variant:null===f||void 0===f?void 0:f.variant,headerColorOverride:null===f||void 0===f?void 0:f.headerColorOverride,weightOverride:null===f||void 0===f?void 0:f.weightOverride,text:g.headerText},bodyText:g.bodyText,ctaProps:v,imageProps:{src:g.image,alt:g.imageAltText},backgroundType:d,layoutType:h,isImageBlockLeft:g.isImageFirst}},lne=function(e){var t=e.cms,n="one-drive-benefit-usq",r=Uee(n);vn(t,"onedrive benefits CMS data not found");var o=jt().createElement(jt().Fragment,null),i=jt().createElement(jt().Fragment,null),a=jt().createElement(jt().Fragment,null),s=jt().createElement(bb,{childrenGap:12,padding:"32px 16px"},jt().createElement(nw,{width:48,height:12}),jt().createElement(nw,{width:153,height:12}),jt().createElement(nw,{width:153,height:8}),jt().createElement(nw,{width:100,height:8})),l=function(){return hne({graphic:pne(t.logo),title:cne(t.titleDisengaged),subTitle:une(t.subTitleDisengaged),hyperLink:dne(t.link)})};return jt().createElement(dv,{operationData:{componentName:"one-drive-benefit",operationName:n},firstLoadView:s,updatingView:s,failedView:l(),finishedView:function(){var e=r.usqState,n=r.usq;return"HaveResult"===e&&n&&n.used>F7?function(e){var n=e.used/e.total,r="".concat(Math.round(100*n),"%"),s=sn(t.quotaUsed,[Gee(e.used,t.gigabyteString,t.terabyteString),Gee(e.total,t.gigabyteString,t.terabyteString),r]);return o=jt().createElement(bb,{padding:"0px 5px 5px 0px"},jt().createElement(lx,{ariaValueText:s,barColor:"blue",barType:"thick",percentComplete:n,size:"wide",label:{textWithTokens:"{content}",tokensAndValues:{content:jt().createElement(bb,{padding:"0 0 4px 0"},jt().createElement(Ib,{variant:"bodySecondaryText"},s))}}})),i=cne(sn(t.titleEngaged,Gee(e.used,t.gigabyteString,t.terabyteString))),a=une(t.subTitleEngaged),a=jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:t.subTitleEngaged,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},sn("{0} {1}",[5,t.gigabyteString]))}}),hne({graphic:o,title:i,subTitle:a,hyperLink:dne(t.link)})}(n):l()}()})},cne=function(e){return jt().createElement(nb,{variant:"paneTitle",tag:"h2"},e)},une=function(e){return jt().createElement(Ib,{variant:"bodySecondaryText"},e)},dne=function(e){return jt().createElement(nx,{href:e.url,"aria-label":e.ariaLabel,"data-bi-id":e.id,target:ine(e.target)},e.text)},pne=function(e){return jt().createElement(zk,{height:40,alt:e.alt,imageType:"altTextImage",src:e.src})},hne=function(e){return jt().createElement(bb,{childrenGap:8,padding:"16px 0px 16px 16px"},jt().createElement(Cb,{padding:"0 0 8px 0"},e.graphic),jt().createElement(Cb,null,jt().createElement(bb,null,jt().createElement(Cb,null,e.title),jt().createElement(Cb,null,e.subTitle))),jt().createElement(Cb,null,e.hyperLink))},mne=function(e,t){var n,r;vn(t,"Family benefits CMS data not found");var o=jt().createElement(jt().Fragment,null),i=jt().createElement(jt().Fragment,null),a=jt().createElement(jt().Fragment,null),s=jt().createElement(jt().Fragment,null);if(e&&((null===(n=e.familyUsers)||void 0===n?void 0:n.length)||(null===(r=e.guestUsers)||void 0===r?void 0:r.length))){var l=e.familyUsers.concat(e.guestUsers),c=function(e){var t=[];return e.forEach((function(e){var n,r="m365-benefits-profile-".concat(e.inviteId),o=parseInt(e.puid,10).toString(16),i=Aee({operationName:r,userIds:[o]}).profilePictureData;t.push({personaName:e.name,imageUrl:null===(n=i[o])||void 0===n?void 0:n.url,ariaLabel:e.name})})),t}(l);l.length>0&&(o=jt().createElement(mL,{maxDisplayablePersonas:2,overflowButtonProps:{onClick:function(){window.location.href=t.linkEngaged.url}},overflowButton:"descriptive",personaSize:"40",personas:c}),i=cne(sn(t.titleEngaged,l.length)),s=dne(t.linkEngaged),a=1!==l.length?jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:t.subTitleEngagedWithMany,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},sn(t.subTitleEngagedWithManyBold,[l[0].firstName,l.length-1]))}}):jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:t.subTitleEngagedWithOne,tokensAndValues:{0:jt().createElement(Ib,{weightOverride:"bold"},l[0].firstName)}}))}else o=pne(t.familyLogo),i=cne(t.titleDisengaged),a=une(t.subTitleDisengaged),s=dne(t.linkDisengaged);return hne({graphic:o,title:i,subTitle:a,hyperLink:s})},fne=function(){return(0,Gt.useContext)(gne)},gne=jt().createContext({updateSessionId:function(e){}}),vne=function(e){var t=e.children,n=e.iframeId,r=e.urlFormat;return jt().createElement(gne.Provider,{value:{updateSessionId:function(e){var t=document.getElementById(n);t&&t.src&&(t.src=r.replace("{0}",e))}}},t)},yne=function(t){var n=t.componentName,r=t.title,o=t.confirmationTitle,i=t.immediatePaymentMessage,a=t.confirmationMessage,s=t.buttonUrlReplacementString,l=t.buttonText,c=t.isError,u=t.commonCmsContent,d=t.staticBodyWidth,p=t.onCloseAction,h=t.onPrimaryButtonClickAction,m=EM(),f=function(){p?p():s?window.location.replace(s):m.closeDialog()},g=function(t,n){return n&&"string"===typeof t?jt().createElement(nb,{variant:"paneHeader",tag:"h2"},t):"string"===typeof t?jt().createElement(Ib,null,t):jt().createElement(ox,(0,e.__assign)({},t))},v={isOpen:!0,onDismiss:f,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:r,closeButton:{"data-bi-id":"".concat(n,"-").concat(c?"error":"success","-close"),"aria-label":u.closeButton},dialogFooterProps:{hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonPrimary:{onClick:null!==h&&void 0!==h?h:f,text:l,"aria-label":l,"data-bi-id":"".concat(n,"-").concat(c?"error":"success","-href")}},minBodyHeight:m5,staticBodyWidth:d};return jt().createElement(CM,(0,e.__assign)({},v),jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(zk,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:c?u.failureIcon:u.successIcon}),g(o,!0),jt().createElement(Ib,null,i),g(a)))},bne=0,Cne=1,Sne=2,xne=3,_ne=4,Ene=5,kne=6,wne=7;function Ine(e,t,n){if(!e)return Sne;if(void 0!==e.daysUntilExpired&&e.daysUntilExpired<=0)return xne;if(e.paymentMethodType===R6)if(e.csvBalanceAmount&&n&&e.csvBalanceAmount<n){if(!t)return kne;if(void 0!==t.daysUntilExpired&&t.daysUntilExpired<=0)return wne}else{if(!t)return _ne;if(void 0!==t.daysUntilExpired&&t.daysUntilExpired<=0)return Ene}return Cne}function Pne(e){var t,n=e.primaryPI;if((null===(t=e.primaryPI)||void 0===t?void 0:t.paymentMethodType)===R6&&e.backupPI&&(n=e.backupPI),void 0===n)throw new Error("selectedPaymentInstrument not found");return n}var Tne=function(){return nne.useValue()},Dne=function(e){nne.setValue(e)},Ane="560px",Rne={scenarioName:"AmcExpiredRenewalDime",stepName:{launch:"DimeLaunch"}},Nne=function(e){var t,n,r=e.service,o=e.selectedRenewPath,i=e.primaryCTAText,a=e.celaDisclaimerContent,s=e.commonCELAResource,l=e.onConsentChange,c=e.flowType,u=r.market,d=r.brandId===H7.CoPilot,p=null!==(t=Kt(a.storeTermsCopilotList,u,"default",","))&&void 0!==t?t:"",h=sn(d?p:a.storeTerms,i),m=a.storeTermsLinkText,f=a.storeTermsLink,g=a.termsOfUseLinkText,v=a.termsOfUseLink,y=gx(null===o||void 0===o?void 0:o.nextChargeDate),b=zs(G7,!1)||zs(q7,!1)?Z7({service:r,dataBiIdPrefix:"recurring-billing-text",celaStrings:s,cycleLength:o.cycleLength,cycleUnit:o.cycleUnit,taxType:o.taxType,price:o.futurePrice?o.futurePrice:o.price,nextChargeDate:y,isImmediateConversion:o.isImmediateConversion,priceDetails:o.futurePriceDetails?o.futurePriceDetails:o.priceDetails,flowType:c}):Y7({service:r,dataBiIdPrefix:"recurring-billing-text",celaStrings:s,cycleLength:o.cycleLength,cycleUnit:o.cycleUnit,taxType:o.taxType,price:o.futurePrice?o.futurePrice:o.price,nextChargeDate:y,isImmediateConversion:o.isImmediateConversion}),C=Kt(a.learnMoreList,u,"default",","),S=Kt(a.learnMoreLinkList,u,"default",","),x=ene({showUserConsentText:!0,dataBiIdPrefix:"user-consent-checkbox",celaStrings:s,onConsentChange:l}),_=null!==(n=Kt(d?a.refundTextCopilotList:a.refundTextList,u,"default",","))&&void 0!==n?n:"",E=i8(o.cycleUnit,o.cycleLength,s.day,s.days,s.month,s.months,s.year,s.years);_&&(_=sn(_,E));var k=Kt(d?a.stopChargesCopilotList:a.stopChargesListUpdated,u,"default",","),w=Kt(d?a.priceNotifyCopilotList:a.priceNotifyListUpdated,u,"default",","),I=a.learnAboutCancellationText,P=Kt(a.learnAboutCancellationLinkList,u,"default",",");return{textWithTokens:d?o.showUserConsentText?"".concat(h," ").concat(b," ").concat(w," ").concat(k," ").concat(_," {lineBreak}{lineBreak} {userConsent}"):"".concat(h," ").concat(b," ").concat(w," ").concat(k," ").concat(_):o.showUserConsentText?"".concat(h," ").concat(b," ").concat(w," ").concat(k," ").concat(_," {learnAboutCancellation} {lineBreak}{lineBreak} {userConsent}"):"".concat(h," ").concat(b," ").concat(w," ").concat(k," ").concat(_," {learnAboutCancellation}"),tokensAndValues:{storeTerms:jt().createElement(nx,{href:f,textVariant:"bodyThemeText","aria-label":m,"data-bi-id":"store-terms-link",target:"_blank",underline:!0},m),termsOfUse:jt().createElement(nx,{href:v,textVariant:"bodyThemeText","aria-label":g,"data-bi-id":"store-terms-link",target:"_blank",underline:!0},g),learnMore:jt().createElement(nx,{href:S,textVariant:"bodyThemeText","aria-label":C,"data-bi-id":"learn-more-link",target:"_blank",underline:!0},C),lineBreak:jt().createElement("br",null),userConsent:x,learnAboutCancellation:jt().createElement(nx,{"aria-label":I,"data-bi-id":"turn-on-rb-confirm-learn-more-cancellation",href:P,textVariant:"bodyThemeText",target:"_blank"},I)}}},Mne=KR((function(e){var t=e.pageArea,n=e.addPiText,r=e.isBackup,o=e.serviceRenewProvider,i=e.dialogController,a=r?"backup":"primary";return jt().createElement(SR,{key:"add-".concat(a,"-pi-list"),"aria-label":n,onClickProps:{"aria-label":n,"data-bi-id":"add-".concat(a,"-pi-cta"),onClick:function(){ire(r,i,o)},pageArea:t},columns:[jt().createElement(VT,{children:[jt().createElement(bb,{margin:"16px 0",horizontal:!0,key:"add-pi-cta"},jt().createElement(Cb,{padding:"0 0 0 16px"},jt().createElement(Hy,{iconName:"Add"})),jt().createElement(Cb,{padding:"0 0 0 24px"},jt().createElement(Ib,{variant:"headerText"},n)))]})],variant:"Twelve"})})),Fne=KR((function(t){var n,r,o=t.ctaText,i=t.pageArea,a=t.isPiReady,s=t.piDisplayProp,l=t.isBackup,c=t.serviceRenewProvider,u=t.dialogController,d=t.piInfo,p=t.isPiDisplayFailed,h=function(){ire(l,u,c)},m=l?"backup":"primary";return jt().createElement(SR,{key:"".concat(m,"-pi-list"),onClickProps:{"aria-label":o,"data-bi-id":"".concat(m,"-pi-change"),onClick:h,pageArea:i},columns:[(n=a,r=s,jt().createElement(VT,{children:[jt().createElement(bb,{margin:n?"4px 0 0 0":"16px 0",key:"pi-display-column"},jt().createElement(O5,(0,e.__assign)({},r)))]})),function(e,t,n){return e||t?n?jt().createElement(nR,{textElements:[{children:n,variant:"bodySecondaryText"}]}):jt().createElement(UA,null):jt().createElement(tR,{shimmerLineProps:[{width:"100%"}]})}(a,p,d),function(e){return e?jt().createElement(Tw,{actionButtonProps:[{"aria-label":o,"data-bi-id":"change-pi-cta",onClick:h,text:o}],contentType:"none",columnAlign:"end",key:"change-cta-column"}):jt().createElement(UA,null)}(a)],variant:"SixThreeThree"})})),Bne=function(){var t,n,r,o=Tne(),i=EM(),a=o.service,s=o.commonResource;vn(a,"Service not found in RenewDialog");var l=null===(t=o.primaryPI)||void 0===t?void 0:t.id,c=null===(n=o.backupPI)||void 0===n?void 0:n.id,u=(null===(r=o.primaryPI)||void 0===r?void 0:r.paymentMethodType)===R6,d=(0,Gt.useState)(!l),p=d[0],h=d[1],m=(0,Gt.useState)(!c),f=m[0],g=m[1],v=(0,Gt.useState)(!1),y=v[0],b=v[1],C=(0,Gt.useState)(!1),S=C[0],x=C[1];In((function(){l||Dne((0,e.__assign)((0,e.__assign)({},o),{piState:Sne}))}));var _,E,k=jt().createElement(bb,{horizontal:!0,key:"choose-pi-cta"},jt().createElement(Cb,{padding:"0 0 0 16px"},jt().createElement(Hy,{iconName:"Add"})),jt().createElement(Cb,{padding:"0 0 0 24px"},jt().createElement(Ib,{variant:"headerText"},s.piList.chooseAWayToPay))),w={env:o.renewAreaConfig.pidlEnvironment,onFailureCallback:function(e){Cr({step:"switchRenewal.pi.display.error",error:w6(e.errorCode),data:{errorDetails:e}})},returnUrl:"mock",spinnerAriaLabel:s.psd2Resource.loadingMessage,failedText:s.piList.chooseAWayToPay,firstLoadView:"Shimmer",failedViewOverride:k},I={market:a.market,language:o.renewAreaConfig.language,env:o.renewAreaConfig.pidlEnvironment,returnUrl:"mock"},P=function(e){var t=e&&o.piState!==kne?o.commonResource.piList.addABackupWayToPay:o.commonResource.piList.addAWayToPay;return jt().createElement(Mne,{pageArea:o.renewAreaConfig.area,addPiText:t,isBackup:e,serviceRenewProvider:o,dialogController:i})};_=l?function(){var t,n,r,a=(0,e.__assign)((0,e.__assign)({},w),{onSuccessCallback:function(t){var n,r;h(!0),r=t.paymentMethodType===R6&&t.csvBalanceFormatted?(0,e.__assign)((0,e.__assign)({},o.primaryPI),{displayName:t.name,csvBalanceFormatted:t.csvBalanceFormatted,csvBalanceAmount:t.csvBalanceAmount}):t.expirationDate&&t.expirationDate!==B5?(0,e.__assign)((0,e.__assign)({},o.primaryPI),{displayName:t.name,daysUntilExpired:t.daysUntilExpired,expirationDate:s.piList.expDate.replace("{date}",t.expirationDate)}):(0,e.__assign)((0,e.__assign)({},o.primaryPI),{displayName:t.name,isSoldToAddressRequired:t.isSoldToAddressRequired}),Dne((0,e.__assign)((0,e.__assign)({},o),{primaryPI:r,piState:f?Ine(r,o.backupPI,null===(n=o.selectedRenewPath)||void 0===n?void 0:n.priceInDecimal):o.piState}))},onFailureCallback:function(){b(!0)},data:(0,e.__assign)((0,e.__assign)({},I),{piid:l})}),c=null!==(n=null===(t=o.primaryPI)||void 0===t?void 0:t.expirationDate)&&void 0!==n?n:null===(r=o.primaryPI)||void 0===r?void 0:r.csvBalanceFormatted;return jt().createElement(Fne,{pageArea:o.renewAreaConfig.area,ctaText:o.commonResource.piList.change,isPiReady:p,piDisplayProp:a,isBackup:!1,piInfo:c,serviceRenewProvider:o,dialogController:i,isPiDisplayFailed:y})}():P(!1),E=c?function(){var t,n=(0,e.__assign)((0,e.__assign)({},w),{onSuccessCallback:function(t){var n;g(!0),t.expirationDate&&t.expirationDate!==B5&&(n=s.piList.expDate.replace("{date}",t.expirationDate));var r=(0,e.__assign)((0,e.__assign)({},o.backupPI),{displayName:t.name,daysUntilExpired:t.daysUntilExpired,expirationDate:n,isSoldToAddressRequired:t.isSoldToAddressRequired});Dne((0,e.__assign)((0,e.__assign)({},o),{backupPI:r,piState:p?Ine(o.primaryPI,r):o.piState}))},onFailureCallback:function(){x(!0)},data:(0,e.__assign)((0,e.__assign)({},I),{piid:c})});return jt().createElement(Fne,{pageArea:o.renewAreaConfig.area,ctaText:o.commonResource.piList.change,isPiReady:f,piDisplayProp:n,isBackup:!0,piInfo:null===(t=o.backupPI)||void 0===t?void 0:t.expirationDate,serviceRenewProvider:o,dialogController:i,isPiDisplayFailed:S})}():P(!0);var T=jt().createElement(bb,{textAlignment:"left",margin:"0 0 0 -16px"},jt().createElement(nb,{tag:"h2",variant:"headerText"},s.piList.paidWith)),D=u&&(c||p)?jt().createElement($R,{isAlwaysExpanded:!0,header:T},_,E):jt().createElement($R,{isAlwaysExpanded:!0,header:T},_);return jt().createElement(bb,{width:"100%",textAlignment:"center"},D)},One=function(e,t,n,r,o,i,a,s,l,c,u,d,p,h,m,f,g){var v=mi(),y=EM(),b=n.psd2Resource,C="".concat(r,"-operation"),S=o;"IN"!==t.market&&!zs("SvcIndia2FATest")||0!==o||(S=t.productRenewal.price);var x=r===Qne?"560px":"480px",_={env:e.pidlEnvironment,piChallengeData:{amount:S,currency:null!==i&&void 0!==i?i:t.productRenewal.currency,language:t.locale,country:t.market,challengeScenario:"RecurringTransaction",isLegacy:"subscription"===t.type,isMOTO:!1,hasPreOrder:!1,windowSize:"02",piid:a,frequency:l,frequencyUnit:c},onSuccessCallback:function(e,t){p(e,t)},onFailureCallback:function(e){var t=r8(b,e);t.isQoSImpactedError?v({name:C,status:"failed",error:e}):v({name:C,status:"finished"}),h(t,e),y.switchToDialog(jt().createElement(yne,{componentName:"".concat(r,"-error-dialog"),confirmationTitle:t.errorTitle||b.genericErrorTitle,confirmationMessage:t.errorMessage||b.genericErrorMessage,buttonText:t.buttonText||b.closeButton,buttonUrlReplacementString:t.buttonUrlReplacementString,isError:!0,commonCmsContent:n,staticBodyWidth:x}))},onCancelCallback:function(){m?m():Cr({step:"".concat(r,".cancel")}),y.closeDialog()},redirectSuccessUrl:u,redirectFailureUrl:d,returnUrl:window.location.href,spinnerAriaLabel:b.loadingMessage,spinnerMessage:f?b.spinnerMessage.replace("{piName}",s):void 0};return{dialogTitle:null!==g&&void 0!==g?g:b.title.replace("{piName}",s),closeAriaLabel:b.closeButton,dialogComponentName:r,dialogOperationName:C,staticBodyWidth:x,piChallengeProps:_}},Lne="isRenewIndia2FASuccess";var Hne={scenarioName:{renew:"AmcRenew",renewToken:"AmcTokenRenew",renewViaPartner:"AmcRenewViaPartner",switchPlan:"AmcSwitchPlan",none:"AmcNonRenew"},stepName:{landing:"Index",switchPlanStepScenario:"amcswitchplan.stepscenario",selectPlan:"switchRenewal.planSelector",selectPlanOnBack:"switchRenewal.planSelector.back",selectPlanOnNext:"switchRenewal.planSelector.next",renewSummary:"switchRenewal.renewSummary",renewSummaryOnBack:"switchRenewal.renewSummary.back",renewSummaryOnBuy:"switchRenewal.renewSummary.buy",updatePi:"switchRenewal.updatePI",final:"Final",addPiRedirectFailed:"renew.onFailureAddPiRedirect",switchPlanStepScenarioSuccess:"amcswitchplan.stepscenario.success",renewCurrentPlan:"renewCurrentPlan.Final",switchCurrentPlan:"switchCurrentPlan.Final",renewAddPiRedirect:"switchRenewal.AddPi.Redirect",renewIndia2FARedirect:"Renew.India2FA.Redirect"}},Vne="launchRenewDialog",zne="isPrimaryPiPicker",Une="isBackupPiPicker",Wne=function(e,t,n){var r,o,i,a=function(e){return s8(e?Une:zne)}(e),s=[(r={},r.skuid=t,r),(o={},o.modelId=n,o),(i={},i.launchRenewDialog="true",i)];return pn(a,s)},Gne=function(t){var n,r,o,i,a,s=t.service,l=t.dialogController,c=t.renewAreaConfig,u=t.turnOnRBCmsContent,d=t.commonResource,p=t.changePaymentCmsContent,h=t.renewPathContent,m=t.isScenarioStep,f=t.succeededCallback;if(s){var g,v=fn(U6,!0)||fn(zne,!0)||fn(Une,!0);v&&(g="true"===v);var y=null!==(n=gn(K6,!0))&&void 0!==n?n:null===(o=null===(r=null===s||void 0===s?void 0:s.renewPaths)||void 0===r?void 0:r.paths)||void 0===o?void 0:o.find((function(e){return e.current}));if(hn(q6),mn(Vne,Z6)&&s.canEnableAutoRenew&&s.renewFlow!==y7){wr()===B7&&_r();var b={service:s,selectedRenewPath:null===(a=null===(i=null===s||void 0===s?void 0:s.renewPaths)||void 0===i?void 0:i.paths)||void 0===a?void 0:a.find((function(e){return e.skuId===y})),isAddPiRedirect:g,renewAreaConfig:c,turnOnRBCmsContent:u,commonResource:d,changePaymentCmsContent:p,renewPathContent:h,isScenarioStep:m,triggerBIId:l8(),succeededCallback:f};l.openDialog(jt().createElement(rre,(0,e.__assign)({},b))),hn(Vne)}}};function jne(e){return e.renewFlow!==y7}var qne=function(e,t,n){return t&&n&&!(t in["unknown","none"])&&bn(e["".concat(t,"-").concat(1===n?"singular":"plural")],n)||""},Kne="renew-smd-threatmetrix-api-dialog",Yne="renew-smd-threatmetrix-api-operation",Xne=function(t){var n=t.challengeStatus,r=t.paymentSessionId,o=t.isSoldToAddressRequired,i=Tne(),a=mi(),s=EM(),l=fne(),c=i.turnOnRBCmsContent.smdThreatMetrixAPICallDialog,u=i.turnOnRBCmsContent.successConfirmationDialog,d=i.turnOnRBCmsContent.errorConfirmationDialog,p=i.commonResource,h=i.service,m=i.selectedRenewPath,f=i.isScenarioStep;vn(h,"Service in RenewSMDThreatMetrixAPICallDialog"),vn(m,"renewPath in RenewSMDThreatMetrixAPICallDialog");var g=jt().createElement(F5,{spinnerAriaLabel:null===c||void 0===c?void 0:c.loadingMessage}),v={progressViewOperationData:{operationName:Yne,componentName:Kne},errorDialogProps:{},progressDialogProps:{}},y={isOpen:!0,onDismiss:function(){s.closeDialog()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:null===c||void 0===c?void 0:c.title.replace("{product}",h.name),closeButton:{"data-bi-id":"".concat(Kne,"-close"),"aria-label":null===p||void 0===p?void 0:p.closeButton},staticBodyWidth:Ane,dialogStylesTemp:h5,operationData:v,minBodyHeight:m5};return Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,g,v,y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N,M,F,B,O,L,H,V,z;return(0,e.__generator)(this,(function(U){switch(U.label){case 0:if(a({name:Yne,status:"updating"}),l.updateSessionId(r),(t=a8(h,null!==o&&void 0!==o&&o)).isFailed)return g=o8(null===c||void 0===c?void 0:c.smdError),f?Cr({step:"renew.error.smd",error:g.errorCode,data:{challengeStatus:n,isUserError:g.isUserError}}):_r({error:g.errorCode,data:{challengeStatus:n,isUserError:g.isUserError}}),s.switchToDialog(jt().createElement(yne,{componentName:"".concat(Kne,"-smd-error-dialog"),confirmationTitle:g.errorTitle,confirmationMessage:g.errorMessage,buttonText:g.buttonText||(null===c||void 0===c?void 0:c.smdError.smdErrorCta),buttonUrlReplacementString:g.buttonUrlReplacementString,isError:!0,commonCmsContent:p,staticBodyWidth:Ane})),[2];(v={})["awa-mee_custom6"]=null===(R=null===m||void 0===m?void 0:m.cycle)||void 0===R?void 0:R.toString(),v["awa-mee_custom13"]=null===m||void 0===m?void 0:m.skuId,v.hasPromotionalCycle=!!(null===m||void 0===m?void 0:m.promotionalCycleLength),v.piTypeUsed=null===(N=i.primaryPI)||void 0===N?void 0:N.paymentMethodType,v.isImmediateConversion=null===m||void 0===m?void 0:m.isImmediateConversion,U.label=1;case 1:return U.trys.push([1,6,,7]),Cr({step:Hne.stepName.final}),y=t.addressIdToSend,b=i.primaryPI.paymentMethodType!==R6||null===(M=i.backupPI)||void 0===M?void 0:M.id,(null===m||void 0===m?void 0:m.cycle)!==h.cycleDurationInMonths?Cr({step:Hne.stepName.switchCurrentPlan}):Cr({step:Hne.stepName.renewCurrentPlan}),C=void 0,S=void 0,x=void 0,_=void 0,E=(0,e.__assign)((0,e.__assign)({},one(u.toServiceLandingLink)),{underline:!0}),k=i8(m.cycleUnit,m.cycleLength,p.celaSection.day,p.celaSection.days,p.celaSection.month,p.celaSection.months,p.celaSection.year,p.celaSection.years),(null===m||void 0===m?void 0:m.isImmediateConversion)?[4,s9({productId:m.productId,skuId:m.skuId,availabilityId:m.availabilityId,paymentInstrumentId:i.primaryPI.id,backupPaymentInstrumentId:b,soldToAddressId:t.addressIdToSend,market:h.market,locale:h.locale,paymentSessionId:r,challengeCompletedStatus:n})]:[3,3];case 2:return U.sent(),C=zs(q7,!1)?bn(u.immediatePaymentMessageTaxBreakdown,X7(h.market,m.priceDetails,i.commonResource.celaSection.taxBreakdownImmediate,m.price,m.taxType)):bn(u.immediatePaymentMessage,m.price),x=Kt(u.immediatePaymentMessage2,h.market),w=zs(q7,!1)&&m.futurePriceDetails&&m.futurePrice?X7(h.market,m.futurePriceDetails,i.commonResource.celaSection.taxBreakdown,m.futurePrice,m.futurePriceDetails.taxType):$7(i.service,i.commonResource.celaSection,m.taxType,m.futurePrice),_={priceInfo:w,cardName:null!==(B=null===(F=i.primaryPI)||void 0===F?void 0:F.displayName)&&void 0!==B?B:"",cycleFormat:k,accountLink:jt().createElement(nx,(0,e.__assign)({},E))},[3,5];case 3:return[4,l7({service:h,skuId:null===m||void 0===m?void 0:m.skuId,availabilityId:null===m||void 0===m?void 0:m.availabilityId,paymentSessionId:r,challengeCompletedStatus:n,soldToAddressId:y,paymentInstrumentId:i.primaryPI.id,backupPaymentInstrumentId:b})];case 4:U.sent(),x=Kt(u.confirmationMessage,h.market),_={priceInfo:zs(G7,!1)?X7(h.market,m.priceDetails,i.commonResource.celaSection.taxBreakdown,m.futurePrice?m.futurePrice:m.price,m.taxType):$7(i.service,i.commonResource.celaSection,m.taxType,m.price),cardName:null!==(L=null===(O=i.primaryPI)||void 0===O?void 0:O.displayName)&&void 0!==L?L:"",cycleFormat:k,chargeDate:m.nextChargeDate?gx(m.nextChargeDate):"",accountLink:jt().createElement(nx,(0,e.__assign)({},E))},U.label=5;case 5:return S={textWithTokens:x,tokensAndValues:_},i.succeededCallback&&i.succeededCallback(),f?(Cr({step:Hne.stepName.switchPlanStepScenarioSuccess}),xr()):_r({data:v}),a({name:Yne,status:"finished"}),I=Kt(u.confirmationTitle,h.market),P=bn(I,[h.name,k]),s.switchToDialog(jt().createElement(yne,{componentName:"".concat(Kne,"-confirm-dialog"),title:u.title,confirmationTitle:P,immediatePaymentMessage:C,confirmationMessage:S,buttonText:p.doneButton,isError:!1,commonCmsContent:p,buttonUrlReplacementString:f?"/services/".concat(h.modelId,"/details"):void 0,staticBodyWidth:Ane})),[3,7];case 6:return T=U.sent(),A=null!==(z=null===(V=null===(H=(D=T).response)||void 0===H?void 0:H.data)||void 0===V?void 0:V.error)&&void 0!==z?z:"switchRenewalPlanNoErrorCode",v.errorDetails=D,b8.indexOf(A)>=0?(v.isUserError=!0,f?Cr({step:"Renew.Error",error:A,data:v}):_r({error:A,data:v}),a({name:Yne,status:"finished"})):(v.isUserError=!1,f?Cr({step:"Renew.Error",error:A,data:v}):_r({error:A,data:v}),a({name:Yne,status:"failed",error:D})),s.switchToDialog(jt().createElement(yne,{componentName:"".concat(Kne,"-error-dialog"),confirmationTitle:d.errorTitle,confirmationMessage:d.errorMessage,buttonText:p.closeButton,isError:!0,commonCmsContent:p,staticBodyWidth:Ane,title:d.errorDialogTitle})),[3,7];case 7:return[2]}}))}))})),jt().createElement(CM,(0,e.__assign)({},y),jt().createElement(vi,{operationData:{componentName:Kne,operationName:Yne},firstLoadView:g,finishedView:g}))},Qne="renew-pi-challenge",Zne=function(){var t,n,r,o=Tne(),i=EM(),a=o.selectedRenewPath;vn(a,"RenewPath in RenewPIChallenge");var s=Pne(o),l=(null===(t=null===o||void 0===o?void 0:o.primaryPI)||void 0===t?void 0:t.paymentMethodType)===R6,c=G5({india2FASuccessParam:Lne,productId:a.productId,skuId:a.skuId,piid:s.id,paymentName:s.displayName,paymentType:s.paymentMethodType,isSoldToAddressIdRequired:s.isSoldToAddressRequired,launchDialogParamName:Vne,isBackup:l,csvPiid:l?null===(n=null===o||void 0===o?void 0:o.primaryPI)||void 0===n?void 0:n.id:void 0,csvPaymentName:l?null===(r=null===o||void 0===o?void 0:o.primaryPI)||void 0===r?void 0:r.displayName:void 0}),u=j5(Lne,Vne,a.productId),d=One(o.renewAreaConfig,o.service,o.commonResource,Qne,"IN"===o.service.market||zs("SvcIndia2FATest")||a.isImmediateConversion?a.priceInDecimal:0,a.currencyCode,s.id,s.displayName,a.cycleLength,a.cycleUnit,c,u,(function(e,t){i.switchToDialog(jt().createElement(Xne,{challengeStatus:e,isSoldToAddressRequired:s.isSoldToAddressRequired,paymentSessionId:t}))}),(function(e,t){_r({error:w6(e.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:e.isUserError,errorDetails:t}})}));return jt().createElement(Q5,(0,e.__assign)({},d))},Jne=function(){var e,t=Tne(),n=t.turnOnRBCmsContent.renewSummaryDialog,r=null===(e=t.primaryPI)||void 0===e?void 0:e.displayName;switch(t.piState){case xne:return jt().createElement(GF,{isMultiline:!0,messageBarType:"severe-warning",messageContent:bn(n.expiredPrimaryMessage,{paymentName:r})});case _ne:return jt().createElement(GF,{isMultiline:!0,messageBarType:"warning",messageContent:n.noBackupMessage});case Ene:return jt().createElement(GF,{isMultiline:!0,messageBarType:"severe-warning",messageContent:n.expiredBackupMessage});case kne:case wne:return jt().createElement(GF,{isMultiline:!0,messageBarType:"warning",messageContent:n.lowBalanceMessage});default:return null}},$ne=function(){var t,n=Tne(),r=n.selectedRenewPath,o=n.commonResource;vn(r,"Renewal Billing Message");var i={service:n.service,dataBiIdPrefix:"RenewSummary",celaStrings:o.celaSection},a=(0,e.__assign)((0,e.__assign)({},i),{price:r.price,taxType:r.taxType,cycleUnit:r.cycleUnit,cycleLength:r.cycleLength,futurePrice:r.futurePrice,futureTaxDetails:null===(t=r.futurePriceDetails)||void 0===t?void 0:t.taxDetails,nextChargeDate:gx(r.nextChargeDate),isImmediateConversion:r.isImmediateConversion}),s=function(e){var t=e.service,n=e.celaStrings,r=e.cycleLength,o=e.cycleUnit,i=e.nextChargeDate,a=e.price,s=e.futurePrice,l=e.taxType,c=e.isImmediateConversion,u=c?sn(n.renewBillingChargesToday,{price:a,futurePrice:s}):sn(n.renewBillingNoChargeToday,{recurrenceDate:i||t.productRenewal.startDateShortString}),d=c?null:sn(n.recurringBillingSecondText,{amount:a||t.productRenewal.amountFormatted,tax:J7(t,n,r,o,l)});return sn("{0} {1}",{0:u,1:d})}(a);return jt().createElement(Ib,{variant:"bodySecondaryText"},zs(G7)||zs(q7)?function(e){var t=e.service,n=e.celaStrings,r=e.cycleLength,o=e.cycleUnit,i=e.nextChargeDate,a=e.price,s=e.futurePrice,l=e.futurePriceDetails,c=e.taxType,u=e.isImmediateConversion,d=e.priceDetails,p=u?n.taxBreakdownImmediate:n.taxBreakdown,h=X7(t.market,d,p,a||"",c||""),m=l?X7(t.market,l,n.taxBreakdown,s||"",l.taxType):"",f=u?sn(n.renewBillingChargesTodayTaxBreakdown,{price:h,futurePrice:m}):sn(n.renewBillingNoChargeToday,{recurrenceDate:i||t.productRenewal.startDateShortString}),g=i8(o||t.productRenewal.cycleUnit,r||t.productRenewal.cycleLength,n.day,n.days,n.month,n.months,n.year,n.years),v=u?null:sn(n.everyText,{price:h,cycle:g});return sn("{0} {1}",{0:f,1:v})}((0,e.__assign)((0,e.__assign)({},a),{priceDetails:r.priceDetails,futurePriceDetails:r.futurePriceDetails})):s)},ere=function(){var t=Tne(),n=t.selectedRenewPath,r=t.turnOnRBCmsContent.renewSummaryDialog,o=EM();vn(n,"Renew Summary");var i=!!n.promotionalCycleLength&&1===n.promotionalCycleLength,a={service:t.service,celaStrings:t.commonResource.celaSection,dataBiIdPrefix:"renew-summary",price:n.price,futurePrice:n.futurePrice,isImmediateConversion:n.isImmediateConversion,taxType:n.taxType,cycleUnit:n.cycleUnit,cycleLength:n.cycleLength},s=t.allRenewPaths&&t.allRenewPaths.length>1&&!t.service.isTrial&&!t.isDirectRenew,l=bn(r.switchToYearly,n.savingsAmount);return jt().createElement(bb,{childrenGap:16,horizontalAlign:"center",horizontal:!1},jt().createElement(zk,{height:"72px",width:"72px",src:t.service.brandLogo,imageType:"ariaHiddenImage"}),n.isImmediateConversion?jt().createElement(cI,{text:l}):jt().createElement(jt().Fragment,null),jt().createElement(bb,{childrenGap:8,horizontalAlign:"center",horizontal:!1},jt().createElement(tx,{variant:"pageHeader",type:"heading",tag:"h2"},t.service.name),jt().createElement(bb,{textAlignment:"center"},jt().createElement(Ib,{variant:"paneHeader"},zs(G7,!1)||zs(q7,!1)?function(e,t){var n=e.service,r=e.celaStrings,o=e.cycleLength,i=e.cycleUnit,a=e.price,s=e.priceDetails,l=e.taxType;if(e.isImmediateConversion)return X7(n.market,s,r.taxBreakdownImmediate,a||"",l||"");var c=X7(n.market,s,r.taxBreakdown,a||"",l||""),u=i8(i||n.productRenewal.cycleUnit,o||n.productRenewal.cycleLength,r.day,r.days,r.month,r.months,r.year,r.years);return t?sn(r.recurringBillingSecondTextWithOfferAndTax,{priceinfo:c,interval:u}):sn(r.everyText,{price:c,cycle:u})}((0,e.__assign)((0,e.__assign)({},a),{priceDetails:n.priceDetails}),i):function(e,t){var n,r=e.service,o=e.celaStrings,i=e.cycleLength,a=e.cycleUnit,s=e.price,l=e.taxType,c=e.isImmediateConversion;return sn(t?o.recurringBillingSecondTextWithOffer:o.recurringBillingSecondText,{amount:s||(null===(n=r.productRenewal)||void 0===n?void 0:n.amountFormatted),tax:J7(r,o,i,a,l,!0,c)})}(a,i)))),s?jt().createElement(rx,{onClick:function(){o.switchToDialog(jt().createElement(nre,null))},"data-bi-id":"renew-summary-switch-plan-link","aria-label":r.switchPlanButtonAriaText},r.switchPlanButtonText):jt().createElement(jt().Fragment,null))},tre=function(){var t=EM(),n=Tne(),r=n.commonResource,o=n.turnOnRBCmsContent.renewSummaryFooter,i=n.turnOnRBCmsContent.renewSummaryDialog,a=(0,Gt.useState)(!1),s=a[0],l=a[1],c=n.service,u=n.isScenarioStep;Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return Cr({step:Hne.stepName.renewSummary}),[2]}))}))}));var d=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return u?Cr({step:"renew.cancel"}):xr(),t.closeDialog(),[2]}))}))},p=Kt(o.primaryCTAList,c.market,"default",","),h={onClick:function(){Cr({step:Hne.stepName.renewSummaryOnBuy}),t.switchToDialog(jt().createElement(Zne,null))},text:p,"aria-label":p,"data-bi-id":"renew-summary-buynow",disabled:function(){var e;return!(!(null===(e=n.selectedRenewPath)||void 0===e?void 0:e.showUserConsentText)||s)||n.piState!==Cne&&n.piState!==_ne}()},m={onClick:d,text:o.cancel,"aria-label":o.cancel,"data-bi-id":"renew-summary-cancel"},f={service:n.service,selectedRenewPath:n.selectedRenewPath,primaryCTAText:p,celaDisclaimerContent:o.celaDisclaimer,commonCELAResource:n.commonResource.celaSection,onConsentChange:function(){l(!s)}},g={buttonPrimary:h,buttonSecondary:m,richTextProps:Nne(f)},v={isOpen:!0,onDismiss:d,backButton:c.renewFlow!==g7&&c.renewFlow!==v7||n.isDirectRenew?void 0:{"aria-label":r.backButton,"data-bi-id":"renew-summary-back",onClick:function(){Cr({step:Hne.stepName.renewSummaryOnBack}),t.switchToDialog(jt().createElement(nre,null))}},closeButton:{"data-bi-id":"renew-summary-dialog-close","aria-label":r.closeButton},staticBodyWidth:Ane,minBodyHeight:m5,dialogFooterProps:g,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:c.renewFlow===g7?i.switchPlanDialogTitle:Kt(i.renewDialogTitle,c.market,"default",",")};return jt().createElement(CM,(0,e.__assign)({},v),jt().createElement(bb,{childrenGap:24},jt().createElement(ere,null),jt().createElement($ne,null),jt().createElement(Jne,null),jt().createElement(Bne,null)))},nre=function(){var t,n,r=Tne(),o=EM(),i=r.turnOnRBCmsContent,a=r.commonResource,s=r.renewPathResource,l=r.service,c=r.allRenewPaths,u=r.isScenarioStep,d=null===c||void 0===c?void 0:c.find((function(e){return e.current}));vn(l,"Renew plan selector dialog"),vn(r.allRenewPaths,"Renew plan selector dialog"),Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return Cr({step:Hne.stepName.selectPlan}),[2]}))}))}));var p=null!==(n=null===(t=r.selectedRenewPath)||void 0===t?void 0:t.skuId)&&void 0!==n?n:r.allRenewPaths[0].skuId,h=(0,Gt.useState)(p),m=h[0],f=h[1],g={isOpen:!0,onDismiss:function(){u?Cr({step:"renew.cancel"}):xr(),o.closeDialog()},title:{image:{src:l.brandLogo,alt:bn(i.planSelectorDialog.planSelectorDialogName,l.name)},text:l.name},backButton:l.renewFlow===g7||l.renewFlow===v7?void 0:{"aria-label":a.backButton,"data-bi-id":"renew-plan-selector-back",onClick:function(){Cr({step:Hne.stepName.selectPlanOnBack}),o.switchToDialog(jt().createElement(tre,null))}},closeButton:{"data-bi-id":"renew-plan-selector-close","aria-label":a.closeButton},dialogFooterProps:{hasFooterBackground:!0,buttonPrimary:{text:a.nextButton,"aria-label":a.nextButton,"data-bi-id":"renew-plan-selector-next",onClick:function(){var t,n=null===(t=r.allRenewPaths)||void 0===t?void 0:t.find((function(e){return e.skuId===m}));Dne((0,e.__assign)((0,e.__assign)({},r),{selectedRenewPath:n})),Cr({step:Hne.stepName.selectPlanOnNext}),o.switchToDialog(jt().createElement(tre,null))},disabled:l.renewFlow===g7&&m===(null===d||void 0===d?void 0:d.skuId)}},staticBodyWidth:Ane,minBodyHeight:m5,stickyHeaderFooter:{hasStickyHeaderFooters:!0}},v=jt().createElement(LT,{optionType:"selectButton",isSingleColumn:!0,options:function(){var e=[];return null===c||void 0===c||c.forEach((function(t){var n=t.relativeSavingsPercent>0,r=bn(s.planSave,t.relativeSavingsPercent),o=qne(s.planTitles,t.cycleUnit,t.cycleLength),a=qne(s.planSubTitles,t.promotionalCycleUnit,t.promotionalCycleLength),l=t.current?"".concat(i.planSelectorDialog.currentPlan," | ").concat(o):o,c=n?"".concat(l," ").concat(t.price," ").concat(r):"".concat(l," ").concat(t.price);if(a&&(c="".concat(c," ").concat(a)),t.isImmediateConversion){var u=bn(i.planSelectorDialog.savingsAriaLabel,{0:t.price,1:t.futurePrice}),d=bn(i.planSelectorDialog.immediateConversationAriaLabel,{0:o,1:t.savingsAmount,2:t.relativeSavingsPercent});c="".concat(d," ").concat(u),e.push({"data-bi-id":"renew-dialog-".concat(t.productId,"-").concat(t.skuId),"aria-label":c,key:t.skuId,text:o,subTextWithMedia:n?{lineItemType:"media",height:"18px",size:"sm",image:{imageType:"icon",iconName:"TagSolid",iconColor:"themePrimary"},text:bn(i.planSelectorDialog.savings,{0:t.savingsAmount,1:t.relativeSavingsPercent})}:void 0,lines:a?[{text:a}]:void 0,topRightText:{lineItemType:"richText",textWithTokens:"{0} {1}",ariaLabelOverride:u,tokensAndValues:{0:jt().createElement(Ib,{variant:"headerText",weightOverride:"bold"},t.price),1:jt().createElement("div",{style:{display:"inline",textDecoration:"line-through"}},jt().createElement(Ib,{variant:"bodySecondaryText",weightOverride:"semi-bold"},t.futurePrice))}}})}else e.push({"data-bi-id":"renew-dialog-".concat(t.productId,"-").concat(t.skuId),"aria-label":c,key:t.skuId,text:l,subTextWithMedia:n?{lineItemType:"media",height:"18px",size:"sm",image:{imageType:"icon",iconName:"Completed",iconColor:"themePrimary"},text:r}:void 0,lines:a?[{text:a}]:void 0,topRightText:{text:t.price,isBold:!0}})})),e}(),selectedKey:m,height:115,onChange:function(e){f(e.key)},label:i.planSelectorDialog.chooseAPlan});return jt().createElement(CM,(0,e.__assign)({},g),v)},rre=function(t){!function(e){var t,n,r,o,i,a,s=e.service;vn(s,"Service object");var l=(null===s||void 0===s?void 0:s.payment)&&!(null===(t=null===s||void 0===s?void 0:s.payment)||void 0===t?void 0:t.isDeclined)?{id:s.payment.id,isSoldToAddressRequired:s.payment.isSoldToAddressRequired,country:s.payment.country,paymentMethodType:s.payment.biType}:void 0,c=(null===s||void 0===s?void 0:s.backupPayment)&&!(null===(n=null===s||void 0===s?void 0:s.backupPayment)||void 0===n?void 0:n.isDeclined)?{id:s.backupPayment.id,isSoldToAddressRequired:s.backupPayment.isSoldToAddressRequired,country:s.backupPayment.country,paymentMethodType:s.backupPayment.biType}:void 0,u={service:s,selectedRenewPath:null!==(r=e.selectedRenewPath)&&void 0!==r?r:null===(i=null===(o=s.renewPaths)||void 0===o?void 0:o.paths)||void 0===i?void 0:i.find((function(e){return!0===e.current})),allRenewPaths:null===(a=s.renewPaths)||void 0===a?void 0:a.paths,primaryPI:l,backupPI:c,piState:bne,turnOnRBCmsContent:e.turnOnRBCmsContent,commonResource:e.commonResource,renewPathResource:e.renewPathContent,renewAreaConfig:e.renewAreaConfig,changePaymentCmsContent:e.changePaymentCmsContent,succeededCallback:e.succeededCallback,isScenarioStep:e.isScenarioStep,isDirectRenew:void 0!==e.selectedSkuId};Qt((function(){nne=J5(u)}))}(t);var n=EM(),r=Tne(),o=t.service,i=t.renewAreaConfig,a=t.commonResource,s=a.psd2Resource,l=t.changePaymentCmsContent;vn(o,"Service in RenewDialog");var c=function(e){var r=r8(s,e);Cr({step:"renew.india2fa.failure",error:w6(r.errorCode),data:{challengeStatus:e.challengeStatus,isUserError:r.isUserError,errorDetails:e}}),n.switchToDialog(jt().createElement(yne,{isError:!0,componentName:"RenewDialog-error-dialog",confirmationTitle:r.errorTitle||s.genericErrorTitle,confirmationMessage:r.errorMessage||s.genericErrorMessage,buttonText:s.closeButton,commonCmsContent:t.commonResource}))};Qt((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var s,u,d,p,h,m,f,g,v;return(0,e.__generator)(this,(function(y){if((s=o.bi).flow=t.triggerBIId,u=function(e){switch(e.renewFlow){case m7:case f7:return Hne.scenarioName.renew;case v7:return Hne.scenarioName.renewToken;case y7:return Hne.scenarioName.renewViaPartner;case g7:return Hne.scenarioName.switchPlan;default:return Hne.scenarioName.none}}(o),d=z5(Lne),t.selectedSkuId&&(p=null===(g=r.allRenewPaths)||void 0===g?void 0:g.find((function(e){return e.skuId===t.selectedSkuId})),Dne((0,e.__assign)((0,e.__assign)({},r),{selectedRenewPath:p}))),(null===(v=r.allRenewPaths)||void 0===v?void 0:v.find((function(e){return!0===e.isImmediateConversion})))&&(s["awa-mee_custom14"]="m365SwitchPaidOffer30"),void 0!==d?t.isScenarioStep?Cr({step:Hne.stepName.renewIndia2FARedirect}):W5({area:i.area,scenario:u,data:t.service.bi}):t.isAddPiRedirect?t.isScenarioStep?Cr({step:Hne.stepName.renewAddPiRedirect}):b5({area:i.area,scenario:u,data:t.service.bi}):t.isScenarioStep||br({area:i.area,scenario:u,step:Hne.stepName.landing,data:s}),u===Hne.scenarioName.none)return _r({data:{errorDetails:"invalid turn on RB nor switch plan"}}),n.closeDialog(),[2];if(!t.service)throw new Error("Service details not found");if(void 0!==t.isAddPiRedirect)are(r,a,l,n);else if(void 0!==d)d?((h=K5()).isBackup?Dne((0,e.__assign)((0,e.__assign)({},r),{primaryPI:{id:h.csvPiid,displayName:h.csvPaymentName,paymentMethodType:R6},backupPI:h.pi})):Dne((0,e.__assign)((0,e.__assign)({},r),{primaryPI:h.pi})),"Succeeded"===h.challengeStatus||"NotApplicable"===h.challengeStatus?(Cr({step:"India2FARedirectSuccess.Challenge".concat(h.challengeStatus)}),T6(h.selectedPiid,h.pi.id),n.switchToDialog(jt().createElement(Xne,{challengeStatus:h.challengeStatus,paymentSessionId:h.sessionId||"",isSoldToAddressRequired:h.isSoldToAddressIdRequired}))):(m={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:h.challengeStatus},Cr({step:"India2FAChallengeStatusError.Challenge".concat(h.challengeStatus)}),c(m))):(f=U5(),Cr({step:"India2FARedirectFailed"}),c(f));else if(t.selectedSkuId)n.switchToDialog(jt().createElement(tre,null));else switch(Cr({step:"RenewDialogStart"}),o.renewFlow){case m7:case f7:n.switchToDialog(jt().createElement(tre,null));break;case g7:case v7:t.isScenarioStep&&Cr({step:Hne.stepName.switchPlanStepScenario,data:s}),n.switchToDialog(jt().createElement(nre,null));break;default:throw new Error("neither turn on RB nor switch plan")}return[2]}))}))}));var u={isOpen:!0,onDismiss:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return n.closeDialog(),[2]}))}))},closeButton:{"data-bi-id":"renew-dialog-close","aria-label":t.commonResource.closeButton},staticBodyWidth:Ane,minBodyHeight:m5};return jt().createElement(CM,(0,e.__assign)({},u))},ore=function(t){var n=t.service,r=t.turnOnRBCmsContent,o=t.commonResource,i=t.changePaymentCmsContent,a=t.renewPathContent,s=t.renewAreaConfig,l=t.dialogController,c=t.triggerBIId,u=t.onServiceUpdate,d=t.selectedRenewPath,p=t.isScenarioStep,h=t.selectedSkuId;vn(n,"Service details not found in onClickRenew");var m={service:n,renewAreaConfig:{pidlEnvironment:s.pidlEnvironment,area:s.area,language:s.language},turnOnRBCmsContent:r,commonResource:o,changePaymentCmsContent:i,renewPathContent:a,triggerBIId:c,succeededCallback:u?function(){return u(n)}:void 0,selectedRenewPath:d,isScenarioStep:p,selectedSkuId:h};l.openDialog(jt().createElement(rre,(0,e.__assign)({},m)))},ire=function(t,n,r,o){var i,a,s=r.changePaymentCmsContent,l=r.selectedRenewPath,c=r.renewAreaConfig,u=r.service;vn(u,"Open PiPickerDialog");var d="subscription"===u.type?u.includedPaymentInstrumentTagsForLegacySubsForPIDL?u.includedPaymentInstrumentTagsForLegacySubsForPIDL.split(","):void 0:null!==(i=null===l||void 0===l?void 0:l.paymentInstrumentInclusionFilters)&&void 0!==i?i:void 0,p={market:u.market,language:u.locale,billingId:u.billingId,environment:c.pidlEnvironment,transactionAmount:l.priceInDecimal,transactionCurrency:l.currencyCode,scenario:"AmcChangePi",splitPaymentSupported:t,exclusionTags:null!==(a=null===l||void 0===l?void 0:l.paymentInstrumentExclusionFilters)&&void 0!==a?a:void 0,allowedPaymentMethods:d,returnUrl:Wne(t,l.skuId,l.productId),redirectFailureUrl:y5(Vne,l.skuId,l.productId)},h=o?{id:o}:void 0,m=jt().createElement(M5,{piPickerParams:p,initialPrimaryPi:null!==h&&void 0!==h?h:r.primaryPI?{id:r.primaryPI.id,isExpired:void 0!==r.primaryPI.daysUntilExpired?r.primaryPI.daysUntilExpired<=0:void 0}:void 0,initialBackupPi:null!==h&&void 0!==h?h:r.backupPI?{id:r.backupPI.id,isExpired:void 0!==r.backupPI.daysUntilExpired?r.backupPI.daysUntilExpired<=0:void 0}:void 0,onCancel:function(){return n.switchToDialog(jt().createElement(tre,null))},onSuccess:function(o,i,a,s,l,c,u){var d={id:o,displayName:i,isSoldToAddressRequired:a,paymentMethodType:u};if(t)Dne((0,e.__assign)((0,e.__assign)({},r),{backupPI:d}));else if(s){var p={id:s,displayName:l,isSoldToAddressRequired:a,paymentMethodType:c};Dne((0,e.__assign)((0,e.__assign)({},r),{primaryPI:d,backupPI:p}))}else Dne((0,e.__assign)((0,e.__assign)({},r),{primaryPI:d}));n.switchToDialog(jt().createElement(tre,null))},onFailure:function(){Cr({step:"backToSummaryOnFailure"}),n.switchToDialog(jt().createElement(tre,null))},operationData:{componentName:"renew-dialog-pi-picker",operationName:"renew-dialog-pi-picker"},strings:(0,e.__assign)((0,e.__assign)({},s),{failureImageSrc:s.failureIcon,selectBackupPiAlertMessage:s.changeBackupPiAlertMessage,selectPaymentTitle:t?s.renewAddBackupTitle:s.changePaymentTitle,updatePiSubText:s.renewUpdatePiSubtitle,addPiSubText:s.renewAddPiSubtitle,selectPaymentSubText:s.renewChangePiSubtitle,selectBackupPiSubText:s.renewAddBackupSubtitle}),dialogParams:{staticBodyWidth:"560px",showBackButton:!0,onDismiss:function(){xr(),n.closeDialog()}}});n.switchToDialog(m)},are=function(t,n,r,o){var i;if(t.service){var a=null!==(i=gn(J6,!0))&&void 0!==i?i:void 0;if(mn(U6,W6)){var s=P6(r.addEditPiError,"RedirectGenericError");t.isScenarioStep?Cr({step:Hne.stepName.addPiRedirectFailed}):_r({step:Hne.stepName.addPiRedirectFailed,error:w6(s.errorCode),data:{isUserError:s.isUserError}}),o.switchToDialog(jt().createElement(yne,{isError:!0,componentName:"RenewDialog-error-dialog",confirmationTitle:s.errorTitle,confirmationMessage:s.errorMessage,buttonText:r.close,commonCmsContent:n})),hn(U6)}else mn(zne,"true")?(Dne((0,e.__assign)((0,e.__assign)({},t),{primaryPI:{id:a}})),o.switchToDialog(jt().createElement(tre,null)),hn(zne)):mn(Une,"true")&&(Dne((0,e.__assign)((0,e.__assign)({},t),{backupPI:{id:a}})),o.switchToDialog(jt().createElement(tre,null)),hn(Une))}},sre=jt().createContext({setSdk:function(){},config:{partnerId:"",language:"",market:void 0,sessionId:void 0,correlationVector:void 0,authHint:void 0,isLaunchPad:void 0,customTelemetrySink:void 0,userInfo:void 0},setError:function(){}}),lre=function(e){var t,n=e.config,r=e.dimeScript,o=e.children;try{t=new Dime(n)}catch(VN){}var i=(0,Gt.useState)(t),a=i[0],s=i[1],l=(0,Gt.useState)(void 0),c={sdk:a,error:l[0],config:n,dimeScript:r,setSdk:s,setError:l[1]};return jt().createElement(sre.Provider,{value:c},o)},cre=function(t,n,r){if(ln("dime.").length>0){var o=(0,e.__assign)((0,e.__assign)({},t),{experience:"demo"});return n.launch(o,r)}return n.launch(t,r)},ure=function(){var e=(0,Gt.useContext)(sre);return[function(t){if(!e.sdk)try{var n=new Dime(e.config);return e.setSdk(n),n.preload(t)}catch(r){return e.setError(r),e.dimeScript&&function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src=e,document.body.appendChild(t)}(e.dimeScript),Promise.reject(e.error)}return e.sdk.preload(t)},function(t,n){if(!e.sdk)try{var r=new Dime(e.config);return e.setSdk(r),cre(t,r,n)}catch(o){return e.setError(o),Promise.reject(o)}return cre(t,e.sdk,n)}]},dre=function(e){return pre(e,"amc")},pre=function(e,t){var n,r=e.userEmail||hre(e.signInName||"");e.userPuid&&e.userPuid.isValid&&(n={puid:e.userPuid.valueAsHex});return{partnerId:t,market:e.userMarket,correlationVector:Dr(),language:e.language,authHint:r,userInfo:n}},hre=function(e){return e.replace(/\s|\+|\-/g,"")},mre="loss-aversion-state",fre="loss-aversion-timestamp",gre="SvcLossAversion",vre=function(t){var n=t.launchDime,r=t.area,o=t.fallbackUrl,i=t.fallbackTarget,a=t.clickId,s=t.experience,l=t.campaignId,c=t.targetUri,u=t.flow,d=t.times,p=t.scenarioName,h=t.isCopilot,m=void 0!==h&&h;return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,h,f,g;return(0,e.__generator)(this,(function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),c&&a&&ri({clickId:a,pageArea:r,targetUri:c}),m||!zs(gre,!1)&&!zs("SvcLossAversionFlowTest",!1)||function(){if(localStorage)try{localStorage.setItem(mre,"visited-dime"),localStorage.setItem(fre,Date.now().toString())}catch(e){zr("home.dime",JSON.stringify(e))}}(),t=(0,e.__assign)((0,e.__assign)({},u&&{flow:u}),d&&{times:d}),br((0,e.__assign)({area:r,scenario:null!==p&&void 0!==p?p:"dime",step:"dimeLaunch"},Object.keys(t).length>0&&{data:t})),[4,n({experience:s,campaignId:l},(function(){_r(),!m&&zs(gre,!1)&&localStorage&&(localStorage.removeItem(mre),localStorage.removeItem(fre))}))];case 1:return"Success"===(h=v.sent()).status&&window.location.reload(),"Closed"===h.status&&xr(),[3,3];case 2:return f=v.sent(),_r({error:(g=f).name||"Unknown dime error",data:{message:g.message||"",errorDetails:JSON.stringify(f)}}),o&&window.open(o,i),[3,3];case 3:return[2]}}))}))},yre=function(e,t,n){return e({experiences:t}).catch((function(e){zr(n,e.toString())}))},bre=function(t){var n=ure(),r=n[0],o=n[1],i=Rne;return[function(t,n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:o=Cre(t),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r({experiences:[o]})];case 2:return e.sent(),[3,4];case 3:return i=e.sent(),zr("services.".concat(n),JSON.stringify(i)),[3,4];case 4:return[2]}}))}))},function(n,r,a,s,l){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var c,u,d,p,h;return(0,e.__generator)(this,(function(m){switch(m.label){case 0:(c=(0,e.__assign)({},null===n||void 0===n?void 0:n.bi)).flow=l,br({area:t,scenario:i.scenarioName,step:i.stepName.launch,data:c}),u=Cre(n),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,o({experience:u,campaignId:a},(function(){_r()}))];case 2:if("success"===m.sent().status.toLowerCase())s?window.location.href="/services/".concat(null===n||void 0===n?void 0:n.modelId,"/details#billing"):window.location.reload();else xr();return[3,4];case 3:return d=m.sent(),"referenceerror"===(h=(null===(p=d)||void 0===p?void 0:p.name)||"UnknownDimeError").toLowerCase()&&(h="DimeUndefined"),_r({error:h,data:{message:(null===p||void 0===p?void 0:p.message)||"",errorDetails:JSON.stringify(d)}}),r&&window.open(r,"_blank"),[3,4];case 4:return[2]}}))}))}]},Cre=function(e){return(null===e||void 0===e?void 0:e.isM365BasicSku)?"buycardodyearly":(null===e||void 0===e?void 0:e.isHomeSKU)?"renewfamily":"renewpersonal"},Sre=function(e,t){return Sre=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])},Sre(e,t)};function xre(e,t){function n(){this.constructor=e}Sre(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _re=function(){return _re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_re.apply(this,arguments)};function Ere(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(eDe){i(eDe)}}function s(e){try{l(r.throw(e))}catch(eDe){i(eDe)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function kre(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(eDe){i=[6,eDe],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function wre(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var Ire,Pre,Tre,Dre,Are,Rre={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Nre=[Rre.OPENID_SCOPE,Rre.PROFILE_SCOPE,Rre.OFFLINE_ACCESS_SCOPE],Mre=wre(Nre,[Rre.EMAIL_SCOPE]);!function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"}(Ire||(Ire={})),function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(Pre||(Pre={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(Tre||(Tre={})),function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"}(Dre||(Dre={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(Are||(Are={}));var Fre,Bre={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};!function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"}(Fre||(Fre={}));var Ore,Lre,Hre,Vre,zre,Ure,Wre={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(Ore||(Ore={})),function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(Lre||(Lre={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(Hre||(Hre={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(Vre||(Vre={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(zre||(zre={})),function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"}(Ure||(Ure={}));var Gre,jre="appmetadata",qre="1",Kre="authority-metadata",Yre=86400;!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(Gre||(Gre={}));var Xre,Qre={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};!function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"}(Xre||(Xre={}));var Zre,Jre,$re,eoe,toe,noe,roe=60,ooe=3600,ioe="throttling",aoe="retry-after, h429",soe="invalid_grant",loe="client_mismatch";!function(e){e.username="username",e.password="password"}(Zre||(Zre={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(Jre||(Jre={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}($re||($re={})),function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"}(eoe||(eoe={})),function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4"}(toe||(toe={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(noe||(noe={}));var coe,uoe,doe,poe,hoe,moe,foe,goe,voe,yoe="invalid_grant",boe=483,Coe=600,Soe="msal",xoe=30,_oe="msal.js.browser",Eoe="53ee284d-920a-4b59-9d30-a60315b26836",koe="ppnbnpeolgkicgegkbkbjmhlideopiji",woe="MATS";!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(coe||(coe={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(uoe||(uoe={})),function(e){e.GET="GET",e.POST="POST"}(doe||(doe={})),function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"}(poe||(poe={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(hoe||(hoe={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(moe||(moe={})),function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"}(foe||(foe={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(goe||(goe={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(voe||(voe={}));var Ioe,Poe={scopes:Nre},Toe="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(Ioe||(Ioe={}));var Doe,Aoe="msal.db";!function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"}(Doe||(Doe={}));var Roe=function(e,t){return Roe=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])},Roe(e,t)};function Noe(e,t){function n(){this.constructor=e}Roe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Moe,Foe=function(){return Foe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Foe.apply(this,arguments)};function Boe(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(eDe){i(eDe)}}function s(e){try{l(r.throw(e))}catch(eDe){i(eDe)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Ooe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(eDe){i=[6,eDe],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Loe(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Hoe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Loe(arguments[t]));return e}!function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd"}(Moe||(Moe={}));var Voe=function(e,t){return Voe=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])},Voe(e,t)};function zoe(e,t){function n(){this.constructor=e}Voe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Uoe,Woe,Goe=function(){return Goe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Goe.apply(this,arguments)};function joe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function qoe(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(eDe){i(eDe)}}function s(e){try{l(r.throw(e))}catch(eDe){i(eDe)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Koe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(eDe){i=[6,eDe],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Yoe(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Xoe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yoe(arguments[t]));return e}!function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake"}(Uoe||(Uoe={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(Woe||(Woe={}));var Qoe,Zoe=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),Joe={code:"unexpected_error",desc:"Unexpected error in authentication."},$oe={code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."},eie=function(e){function t(n,r,o){var i=this,a=r?n+": "+r:n;return i=e.call(this,a)||this,Object.setPrototypeOf(i,t.prototype),i.errorCode=n||Rre.EMPTY_STRING,i.errorMessage=r||Rre.EMPTY_STRING,i.subError=o||Rre.EMPTY_STRING,i.name="AuthError",i}return xre(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(Joe.code,Joe.desc+": "+e)},t.createPostRequestFailed=function(e){return new t($oe.code,$oe.desc+": "+e)},t}(Error),tie=["interaction_required","consent_required","login_required"],nie=["message_only","additional_action","basic_action","user_password_expired","consent_required"],rie={code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},oie={code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."},iie=function(e){function t(n,r,o,i,a,s,l){var c=e.call(this,n,r,o)||this;return Object.setPrototypeOf(c,t.prototype),c.timestamp=i||Rre.EMPTY_STRING,c.traceId=a||Rre.EMPTY_STRING,c.correlationId=s||Rre.EMPTY_STRING,c.claims=l||Rre.EMPTY_STRING,c.name="InteractionRequiredAuthError",c}return xre(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&tie.indexOf(e)>-1,o=!!n&&nie.indexOf(n)>-1,i=!!t&&tie.some((function(e){return t.indexOf(e)>-1}));return r||i||o},t.createNoTokensFoundError=function(){return new t(rie.code,rie.desc)},t.createNativeAccountUnavailableError=function(){return new t(oie.code,oie.desc)},t}(eie),aie={code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},sie={code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},lie={code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},cie={code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},uie={code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},die={code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},pie={code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hie={code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},mie={code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},fie={code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},gie={code:"state_not_found",desc:"State not found"},vie={code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},yie={code:"nonce_not_found",desc:"nonce not found"},bie={code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},Cie={code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},Sie={code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},xie={code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},_ie={code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},Eie={code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},kie={code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},wie={code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},Iie={code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},Pie={code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},Tie={code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},Die={code:"device_code_expired",desc:"Device code is expired."},Aie={code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},Rie={code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},Nie={code:"invalid_cache_record",desc:"Cache record object was null or undefined."},Mie={code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},Fie={code:"no_account_found",desc:"No account found in cache for given key."},Bie={code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},Oie={code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},Lie={code:"invalid_cache_type",desc:"Invalid cache type"},Hie={code:"unexpected_account_type",desc:"Unexpected account type."},Vie={code:"unexpected_credential_type",desc:"Unexpected credential type."},zie={code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},Uie={code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},Wie={code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},Gie={code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},jie={code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},qie={code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},Kie={code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},Yie={code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},Xie={code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},Qie={code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},Zie={code:"user_canceled",desc:"User canceled the flow."},Jie=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return xre(t,e),t.createClientInfoDecodingError=function(e){return new t(aie.code,aie.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(sie.code,""+sie.desc)},t.createTokenParsingError=function(e){return new t(lie.code,lie.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(cie.code,cie.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(uie.code,uie.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(die.code,die.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(pie.code,pie.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(hie.code,hie.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(mie.code,mie.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(fie.code,fie.desc)},t.createStateNotFoundError=function(e){return new t(gie.code,gie.desc+":  "+e)},t.createNonceMismatchError=function(){return new t(vie.code,vie.desc)},t.createAuthTimeNotFoundError=function(){return new t(bie.code,bie.desc)},t.createMaxAgeTranspiredError=function(){return new t(Cie.code,Cie.desc)},t.createNonceNotFoundError=function(e){return new t(yie.code,yie.desc+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(Sie.code,Sie.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(xie.code,xie.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(_ie.code,_ie.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(Eie.code,Eie.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(kie.code,kie.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(wie.code,wie.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(Iie.code,Iie.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(Pie.code,""+Pie.desc)},t.createDeviceCodeCancelledError=function(){return new t(Tie.code,""+Tie.desc)},t.createDeviceCodeExpiredError=function(){return new t(Die.code,""+Die.desc)},t.createDeviceCodeUnknownError=function(){return new t(Aie.code,""+Aie.desc)},t.createNoAccountInSilentRequestError=function(){return new t(Rie.code,""+Rie.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(Nie.code,Nie.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(Mie.code,Mie.desc)},t.createNoAccountFoundError=function(){return new t(Fie.code,Fie.desc)},t.createCachePluginError=function(){return new t(Bie.code,""+Bie.desc)},t.createNoCryptoObjectError=function(e){return new t(Oie.code,""+Oie.desc+e)},t.createInvalidCacheTypeError=function(){return new t(Lie.code,""+Lie.desc)},t.createUnexpectedAccountTypeError=function(){return new t(Hie.code,""+Hie.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(Vie.code,""+Vie.desc)},t.createInvalidAssertionError=function(){return new t(zie.code,""+zie.desc)},t.createInvalidCredentialError=function(){return new t(Uie.code,""+Uie.desc)},t.createRefreshRequiredError=function(){return new t(Wie.code,Wie.desc)},t.createUserTimeoutReachedError=function(){return new t(Gie.code,Gie.desc)},t.createTokenClaimsRequiredError=function(){return new t(jie.code,jie.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(qie.code,qie.desc)},t.createBindingKeyNotRemovedError=function(){return new t(Kie.code,Kie.desc)},t.createLogoutNotSupportedError=function(){return new t(Yie.code,Yie.desc)},t.createKeyIdMissingError=function(){return new t(Xie.code,Xie.desc)},t.createNoNetworkConnectivityError=function(){return new t(Qie.code,Qie.desc)},t.createUserCanceledError=function(){return new t(Zie.code,Zie.desc)},t}(eie),$ie=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw Jie.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw Jie.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:n[1],JWSPayload:n[2],JWSSig:n[3]}},e.isEmpty=function(e){return"undefined"===typeof e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return 0===Object.keys(n).length}catch(eDe){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=e.split("&"),r=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return n.forEach((function(e){if(e.trim()){var n=e.split(/=(.+)/g,2),o=n[0],i=n[1];o&&i&&(t[r(o)]=r(i))}})),t},e.trimArrayEntries=function(e){return e.map((function(e){return e.trim()}))},e.removeEmptyStringsFromArray=function(t){return t.filter((function(t){return!e.isEmpty(t)}))},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(eDe){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}(),eae={code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},tae={code:"crypto_nonexistent",desc:"The crypto object or function is not available."},nae={code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},rae={code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},oae={code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},iae={code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},aae={code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},sae={code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},lae={code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},cae={code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},uae={code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},dae={code:"empty_window_error",desc:"window.open returned null or undefined window object."},pae={code:"user_cancelled",desc:"User cancelled the flow."},hae={code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},mae={code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},fae={code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},gae={code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},vae={code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},yae={code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},bae={code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},Cae={code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},Sae={code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},xae={code:"no_token_request_cache_error",desc:"No token request found in cache."},_ae={code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},Eae={code:"no_cached_authority_error",desc:"No cached authority found."},kae={code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},wae={code:"invalid_cache_type",desc:"Invalid cache type"},Iae={code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},Pae={code:"database_not_open",desc:"Database is not open!"},Tae={code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},Dae={code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},Aae={code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},Rae={code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},Nae={code:"unable_to_load_token",desc:"Error loading token to cache."},Mae={code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},Fae={code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},Bae={code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},Oae={code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},Lae={code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},Hae={code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},Vae={code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},zae={code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},Uae={code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},Wae={code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},Gae={code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."},jae=function(e){function t(n,r){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return zoe(t,e),t.createPkceNotGeneratedError=function(e){return new t(eae.code,eae.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(tae.code,tae.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(nae.code,nae.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(rae.code,rae.desc)},t.createEmptyHashError=function(e){return new t(oae.code,oae.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(iae.code,iae.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(aae.code,aae.desc)},t.createUnableToParseStateError=function(){return new t(sae.code,sae.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(lae.code,lae.desc)},t.createInteractionInProgressError=function(){return new t(cae.code,cae.desc)},t.createPopupWindowError=function(e){var n=uae.desc;return n=$ie.isEmpty(e)?n:n+" Details: "+e,new t(uae.code,n)},t.createEmptyWindowCreatedError=function(){return new t(dae.code,dae.desc)},t.createUserCancelledError=function(){return new t(pae.code,pae.desc)},t.createMonitorPopupTimeoutError=function(){return new t(hae.code,hae.desc)},t.createMonitorIframeTimeoutError=function(){return new t(mae.code,mae.desc)},t.createRedirectInIframeError=function(e){return new t(fae.code,fae.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(gae.code,gae.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(vae.code,vae.desc)},t.createIframeClosedPrematurelyError=function(){return new t(yae.code,yae.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(bae.code,bae.desc)},t.createNoAccountError=function(){return new t(Cae.code,Cae.desc)},t.createSilentPromptValueError=function(e){return new t(Sae.code,Sae.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(_ae.code,_ae.desc)},t.createNoTokenRequestCacheError=function(){return new t(xae.code,xae.desc)},t.createAuthRequestNotSetError=function(){return new t(kae.code,kae.desc)},t.createNoCachedAuthorityError=function(){return new t(Eae.code,Eae.desc)},t.createInvalidCacheTypeError=function(){return new t(wae.code,""+wae.desc)},t.createNonBrowserEnvironmentError=function(){return new t(Iae.code,Iae.desc)},t.createDatabaseNotOpenError=function(){return new t(Pae.code,Pae.desc)},t.createNoNetworkConnectivityError=function(){return new t(Tae.code,Tae.desc)},t.createPostRequestFailedError=function(e,n){return new t(Dae.code,Dae.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(Aae.code,Aae.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Rae.code,Rae.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Nae.code,Nae.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Mae.code,Mae.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Fae.code,Fae.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Bae.code,Bae.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(Oae.code,Oae.desc)},t.createDatabaseUnavailableError=function(){return new t(Lae.code,Lae.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Hae.code,Hae.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Vae.code,Vae.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(zae.code,zae.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Uae.code,Uae.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Wae.code,Wae.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Gae.code,Gae.desc)},t}(eie);!function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(Qoe||(Qoe={}));var qae,Kae,Yae,Xae,Qae={code:"ContentError"},Zae={code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},Jae={code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"},$ae=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="NativeAuthError",i.ext=o,i}return zoe(t,e),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Qoe.PERSISTENT_ERROR&&this.ext.status!==Qoe.DISABLED)||this.errorCode===Qae.code},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case Qoe.ACCOUNT_UNAVAILABLE:return iie.createNativeAccountUnavailableError();case Qoe.USER_INTERACTION_REQUIRED:return new iie(e,n);case Qoe.USER_CANCEL:return jae.createUserCancelledError();case Qoe.NO_NETWORK:return jae.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t(Zae.code,Zae.desc)},t.createTokensNotFoundInCacheError=function(){return new t(Jae.code,Jae.desc)},t}(eie),ese=function(){function e(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(Uoe.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return qoe(this,void 0,void 0,(function(){var t,n=this;return Koe(this,(function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Eoe,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise((function(e,r){n.resolvers.set(t.responseId,{resolve:e,reject:r})}))]}))}))},e.createProvider=function(t,n,r){return qoe(this,void 0,void 0,(function(){var o,i;return Koe(this,(function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,(o=new e(t,n,r,koe)).sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),[4,(i=new e(t,n,r)).sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}}))}))},e.prototype.sendHandshakeRequest=function(){return qoe(this,void 0,void 0,(function(){var e,t=this;return Koe(this,(function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Eoe,extensionId:this.extensionId,responseId:this.responseId++,body:{method:coe.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(e){t.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise((function(n,r){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),t.timeoutId=window.setTimeout((function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),r(jae.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)}),t.handshakeTimeoutMs)}))]}))}))},e.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(t.channel&&t.channel===Eoe&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===coe.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(jae.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var o=t.body.method;if(o===coe.Response){if(!n)return;var i=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(i)),"Success"!==i.status)n.reject($ae.createError(i.code,i.description,i.ext));else{if(!i.result)throw eie.createUnexpectedError("Event does not contain result.");i.result.code&&i.result.description?n.reject($ae.createError(i.result.code,i.result.description,i.result.ext)):n.resolve(i.result)}this.resolvers.delete(t.responseId)}else if(o===coe.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+a.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(a):r&&r.reject(a)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(e,t,n,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case Xre.BEARER:case Xre.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}(),tse="@azure/msal-browser",nse="2.37.0",rse={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},ose={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},ise={code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},ase={code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},sse={code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},lse={code:"empty_url_error",desc:"URL was empty or null."},cse={code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},use={code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},dse={code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},pse={code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},hse={code:"token_request_empty",desc:"Token request was empty and not found in cache."},mse={code:"logout_request_empty",desc:"The logout request was null or undefined."},fse={code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},gse={code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},vse={code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},yse={code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},bse={code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},Cse={code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},Sse={code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},xse={code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},_se={code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},Ese={code:"invalid_authentication_header",desc:"Invalid authentication header provided"},kse=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return xre(t,e),t.createRedirectUriEmptyError=function(){return new t(rse.code,rse.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(ose.code,ose.desc)},t.createClaimsRequestParsingError=function(e){return new t(ise.code,ise.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(ase.code,ase.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(sse.code,sse.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(lse.code,lse.desc)},t.createEmptyScopesArrayError=function(){return new t(cse.code,""+cse.desc)},t.createClientIdSingleScopeError=function(e){return new t(use.code,use.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(dse.code,dse.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(pse.code,pse.desc)},t.createEmptyLogoutRequestError=function(){return new t(mse.code,mse.desc)},t.createEmptyTokenRequestError=function(){return new t(hse.code,hse.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(fse.code,fse.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(gse.code,gse.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(vse.code,vse.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(yse.code,yse.desc)},t.createUntrustedAuthorityError=function(){return new t(bse.code,bse.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(Cse.code,Cse.desc)},t.createMissingSshJwkError=function(){return new t(Sse.code,Sse.desc)},t.createMissingSshKidError=function(){return new t(xse.code,xse.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(_se.code,_se.desc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(Ese.code,Ese.desc+". Invalid header: "+e+". Details: "+n)},t}(Jie),wse=function(){function e(t){if(this._urlString=t,$ie.isEmpty(this._urlString))throw kse.createUrlEmptyError();$ie.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return $ie.endsWith(t,"?")?t=t.slice(0,-1):$ie.endsWith(t,"?/")&&(t=t.slice(0,-2)),$ie.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(eDe){throw kse.createUrlParseError(eDe)}if(!e.HostNameAndPort||!e.PathSegments)throw kse.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw kse.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return $ie.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return!t||0===r.length||r[0]!==Tre.COMMON&&r[0]!==Tre.ORGANIZATIONS||(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw kse.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=n.AbsolutePath.split("/");return r=r.filter((function(e){return e&&e.length>0})),n.PathSegments=r,!$ie.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw kse.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===Rre.FORWARD_SLASH){var r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):Rre.EMPTY_STRING},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):Rre.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if($ie.isEmpty(t))return{};var n=e.parseHash(t),r=$ie.queryStringToObject($ie.isEmpty(n)?t:n);if(!r)throw Jie.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if($ie.isEmpty(t))return{};var n=e.parseQueryString(t),r=$ie.queryStringToObject($ie.isEmpty(n)?t:n);if(!r)throw Jie.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if($ie.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),Ise=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r,o;return Koe(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(e,{method:doe.GET,headers:this.getFetchHeaders(t)})];case 1:return n=i.sent(),[3,3];case 2:throw r=i.sent(),window.navigator.onLine?jae.createGetRequestFailedError(r,e):jae.createNoNetworkConnectivityError();case 3:return i.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=i.sent(),o.status=n.status,o)];case 5:throw i.sent(),jae.createFailedToParseNetworkResponseError(e);case 6:return[2]}}))}))},e.prototype.sendPostRequestAsync=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r,o,i;return Koe(this,(function(a){switch(a.label){case 0:n=t&&t.body||Rre.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:doe.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?jae.createPostRequestFailedError(o,e):jae.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),i={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(i.body=a.sent(),i.status=r.status,i)];case 6:throw a.sent(),jae.createFailedToParseNetworkResponseError(e);case 7:return[2]}}))}))},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var n=e.headers;return Object.keys(n).forEach((function(e){t.append(e,n[e])})),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t},e}(),Pse=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,this.sendRequestAsync(e,doe.GET,t)]}))}))},e.prototype.sendPostRequestAsync=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,this.sendRequestAsync(e,doe.POST,t)]}))}))},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise((function(o,i){var a=new XMLHttpRequest;if(a.open(t,e,!0),r.setXhrHeaders(a,n),a.onload=function(){(a.status<200||a.status>=300)&&(t===doe.POST?i(jae.createPostRequestFailedError("Failed with status "+a.status,e)):i(jae.createGetRequestFailedError("Failed with status "+a.status,e)));try{var n=JSON.parse(a.responseText),s={headers:r.getHeaderDict(a),body:n,status:a.status};o(s)}catch(eDe){i(jae.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===doe.POST?i(jae.createPostRequestFailedError("Failed with status "+a.status,e)):i(jae.createGetRequestFailedError("Failed with status "+a.status,e)):i(jae.createNoNetworkConnectivityError())},t===doe.POST&&n&&n.body)a.send(n.body);else{if(t!==doe.GET)throw jae.createHttpMethodNotImplementedError(t);a.send()}}))},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])}))}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};return t.forEach((function(e){var t=e.split(": "),r=t.shift(),o=t.join(": ");r&&o&&(n[r]=o)})),n},e}(),Tse=function(){function e(){}return e.clearHash=function(e){e.location.hash=Rre.EMPTY_STRING,"function"===typeof e.history.replaceState&&e.history.replaceState(null,Rre.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):Rre.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!==typeof window&&!!window.opener&&window.opener!==window&&"string"===typeof window.name&&0===window.name.indexOf(Soe+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new wse(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Ise:new Pse},e.blockReloadInHiddenIframes=function(){if(wse.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw jae.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===goe.Redirect&&r&&!n)throw jae.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw jae.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw jae.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw jae.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");return t>0||n>0||r>0},e}(),Dse=function(e){function t(n,r,o){var i=e.call(this,n,r,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,t.prototype),i}return xre(t,e),t}(eie);!function(e){e.HANDSHAKE_REQUEST="BrokerHandshakeRequest",e.HANDSHAKE_RESPONSE="BrokerHandshakeResponse",e.AUTH_REQUEST="BrokerAuthRequest",e.REDIRECT_RESPONSE="BrokerRedirectResponse",e.HANDLE_REDIRECT_REQUEST="BrokerHandleRedirectRequest",e.AUTH_RESULT="BrokerAuthResult"}(qae||(qae={})),function(e){e.BROKER_RESPONSE="broker.response"}(Kae||(Kae={})),function(e){e.BROKER_CLIENT_ID="brk_client_id",e.BROKER_REDIRECT_URI="brk_redirect_uri"}(Yae||(Yae={})),function(e){e.BROKER_AUTH_ERROR_NAME="BrokerAuthError",e.INTERACTION_REQ_ERROR_NAME="InteractionRequiredAuthError",e.SERVER_ERROR_NAME="ServerError",e.CLIENT_AUTH_ERR_NAME="ClientAuthError",e.CLIENT_CONFIG_ERROR_NAME="ClientConfigurationError",e.BROWSER_AUTH_ERROR_NAME="BrowserAuthError",e.BROWSER_CONFIG_ERROR_NAME="BrowserConfigurationError",e.AUTH_ERROR_NAME="AuthError"}(Xae||(Xae={}));var Ase,Rse="plain",Nse="S256",Mse=function(){function e(e){this.messageType=e}return e.validateMessage=function(e){if(!e.data||!e.data.messageType)return null;switch(e.data.messageType){case qae.HANDSHAKE_REQUEST:case qae.HANDSHAKE_RESPONSE:case qae.HANDLE_REDIRECT_REQUEST:case qae.AUTH_REQUEST:case qae.AUTH_RESULT:case qae.REDIRECT_RESPONSE:return e;default:return null}},e}(),Fse=function(e){function t(t,n){var r=e.call(this,qae.HANDSHAKE_REQUEST)||this;return r.embeddedClientId=t,r.version=n,r}return Noe(t,e),t.validate=function(e){return e.data&&e.data.messageType===qae.HANDSHAKE_REQUEST&&e.data.embeddedClientId&&e.data.version?new t(e.data.embeddedClientId,e.data.version):null},t}(Mse),Bse={code:"no_tokens_to_cache",desc:"The broker did not have any tokens for the client to cache."},Ose={code:"no_embedded_app",desc:"The embedded application object was not created. Please ensure you have configured your application correctly for an embedded application: https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/broker-v2/lib/msal-browser/docs/broker.md#brokered-application-configuration"},Lse={code:"broker_response_invalid",desc:"The broker response did not have the expected values."},Hse={code:"broker_request_incomplete",desc:"The brokered request did not have the expected values."},Vse={code:"broker_popup_will_redirect",desc:"The request for a brokered popup requires a redirect by the broker. If your app does not perform the redirect, please check the broker's logs."},zse={code:"broker_timeout",desc:"Message broker timed out."},Use={code:"broker_handshake_timeout",desc:"Broker handshake response timed out."},Wse={code:"invalid_broker_message",desc:"messageType for broker message is invalid"},Gse={code:"untrusted_broker_error",desc:"The given broker origin is not trusted."},jse={code:"no_trusted_brokers_provided",desc:"No trusted brokers provided."},qse={code:"brokering_disabled",desc:"Brokering is not enabled for the client application. Please check logs to see if handshake was performed."},Kse=function(e){function t(n,r){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name=Xae.BROKER_AUTH_ERROR_NAME,o}return Noe(t,e),t.createNoTokensToCacheError=function(){return new t(Bse.code,""+Bse.desc)},t.createNoEmbeddedAppError=function(){return new t(Ose.code,Ose.desc)},t.createBrokerResponseInvalidError=function(){return new t(Lse.code,""+Lse.desc)},t.createBrokerRequestIncompleteError=function(){return new t(Hse.code,""+Hse.desc)},t.createBrokerPopupRequestRedirectingError=function(){return new t(Vse.code,Vse.desc)},t.createNoTrustedBrokersProvidedError=function(){return new jae(jse.code,jse.desc)},t.createBrokeringDisabledError=function(e){return new jae(qse.code,qse.desc+" Inner Error: "+e)},t.createMessageBrokerTimeoutError=function(){return new jae(zse.code,zse.desc)},t.createMessageBrokerHandshakeTimeoutError=function(){return new jae(Use.code,Use.desc)},t.createInvalidBrokerMessageError=function(){return new jae(Wse.code,Wse.desc)},t.createUntrustedBrokerError=function(){return new jae(Gse.code,Gse.desc)},t}(jae),Yse=function(e){function t(t,n){var r=e.call(this,qae.HANDSHAKE_RESPONSE)||this;return r.version=t,r.brokerOrigin=n,r}return Noe(t,e),t.validate=function(e,n){var r=Mse.validateMessage(e);if(n&&r&&r.data.messageType===qae.HANDSHAKE_RESPONSE&&r.data.version){if(n.filter((function(t){return $ie.matchPattern(t,e.origin)})).length<=0)throw Kse.createUntrustedBrokerError();return new t(r.data.version,r.origin)}return null},t}(Mse),Xse=function(e){function t(t,n,r,o){var i=e.call(this,qae.AUTH_REQUEST)||this;return i.embeddedClientId=t,i._embeddedAppOrigin=o,i.interactionType=n,i.request=r,i}return Noe(t,e),Object.defineProperty(t.prototype,"embeddedAppOrigin",{get:function(){return this._embeddedAppOrigin},enumerable:!1,configurable:!0}),t.validate=function(e){return e.data&&e.data.messageType===qae.AUTH_REQUEST&&e.data.embeddedClientId&&e.data.interactionType&&e.data.request?new t(e.data.embeddedClientId,e.data.interactionType,e.data.request,e.origin):null},t}(Mse),Qse=function(e){function t(){return e.call(this,qae.REDIRECT_RESPONSE)||this}return Noe(t,e),t.validate=function(e){return e.data&&e.data.messageType===qae.REDIRECT_RESPONSE?new t:null},t}(Mse),Zse=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case zre.ID_TOKEN:return Ure.ID_TOKEN;case zre.ACCESS_TOKEN:case zre.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Ure.ACCESS_TOKEN;case zre.REFRESH_TOKEN:return Ure.REFRESH_TOKEN;default:throw Jie.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,r,o,i,a,s,l){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,o,a),this.generateTargetForCacheKey(i),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(s)].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){return[e,e===zre.REFRESH_TOKEN&&r||t,n||Rre.EMPTY_STRING].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||Rre.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||Rre.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Xre.BEARER.toLowerCase()?e.toLowerCase():Rre.EMPTY_STRING},e}(),Jse=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0;return e.nowSeconds()+n>r},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))},e}(),$se=function(){function e(t,n){if($ie.isEmpty(t))throw Jie.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=$ie.decodeAuthToken(e);try{var r=n.JWSPayload,o=t.base64Decode(r);return JSON.parse(o)}catch(i){throw Jie.createTokenParsingError(i)}},e.checkMaxAge=function(e,t){if(0===t||Date.now()-3e5>e+t)throw Jie.createMaxAgeTranspiredError()},e}(),ele=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xre(t,e),t.createAccessTokenEntity=function(e,n,r,o,i,a,s,l,c,u,d,p,h,m,f){var g,v,y=new t;y.homeAccountId=e,y.credentialType=zre.ACCESS_TOKEN,y.secret=r;var b=Jse.nowSeconds();if(y.cachedAt=b.toString(),y.expiresOn=s.toString(),y.extendedExpiresOn=l.toString(),u&&(y.refreshOn=u.toString()),y.environment=n,y.clientId=o,y.realm=i,y.target=a,y.userAssertionHash=p,y.tokenType=$ie.isEmpty(d)?Xre.BEARER:d,m&&(y.requestedClaims=m,y.requestedClaimsHash=f),(null===(g=y.tokenType)||void 0===g?void 0:g.toLowerCase())!==Xre.BEARER.toLowerCase())switch(y.credentialType=zre.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case Xre.POP:var C=$se.extractTokenClaims(r,c);if(!(null===(v=null===C||void 0===C?void 0:C.cnf)||void 0===v?void 0:v.kid))throw Jie.createTokenClaimsRequiredError();y.keyId=C.cnf.kid;break;case Xre.SSH:y.keyId=h}return y},t.isAccessTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===zre.ACCESS_TOKEN||e.credentialType===zre.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(Zse),tle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xre(t,e),t.createIdTokenEntity=function(e,n,r,o,i){var a=new t;return a.credentialType=zre.ID_TOKEN,a.homeAccountId=e,a.environment=n,a.clientId=o,a.secret=r,a.realm=i,a},t.isIdTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zre.ID_TOKEN)},t}(Zse);function nle(e,t){if($ie.isEmpty(e))throw Jie.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(eDe){throw Jie.createClientInfoDecodingError(eDe.message)}}function rle(e){if($ie.isEmpty(e))throw Jie.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Vre.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?Rre.EMPTY_STRING:t[1]}}!function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"}(Ase||(Ase={}));var ole,ile=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case Hre.ADFS_ACCOUNT_TYPE:return Ure.ADFS;case Hre.MSAV1_ACCOUNT_TYPE:return Ure.MSA;case Hre.MSSTS_ACCOUNT_TYPE:return Ure.MSSTS;case Hre.GENERIC_ACCOUNT_TYPE:return Ure.GENERIC;default:throw Jie.createUnexpectedAccountTypeError()}},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||Rre.EMPTY_STRING,e.tenantId||Rre.EMPTY_STRING].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,o,i,a,s,l){var c,u,d,p,h,m,f=new e;f.authorityType=Hre.MSSTS_ACCOUNT_TYPE,f.clientInfo=t,f.homeAccountId=n,f.nativeAccountId=l;var g=s||o&&o.getPreferredCache();if(!g)throw Jie.createInvalidCacheEnvironmentError();if(f.environment=g,f.realm=(null===(c=null===r||void 0===r?void 0:r.claims)||void 0===c?void 0:c.tid)||Rre.EMPTY_STRING,r){f.idTokenClaims=r.claims,f.localAccountId=(null===(u=null===r||void 0===r?void 0:r.claims)||void 0===u?void 0:u.oid)||(null===(d=null===r||void 0===r?void 0:r.claims)||void 0===d?void 0:d.sub)||Rre.EMPTY_STRING;var v=null===(p=null===r||void 0===r?void 0:r.claims)||void 0===p?void 0:p.preferred_username,y=(null===(h=null===r||void 0===r?void 0:r.claims)||void 0===h?void 0:h.emails)?r.claims.emails[0]:null;f.username=v||y||Rre.EMPTY_STRING,f.name=null===(m=null===r||void 0===r?void 0:r.claims)||void 0===m?void 0:m.name}return f.cloudGraphHostName=i,f.msGraphHost=a,f},e.createGenericAccount=function(t,n,r,o,i,a){var s,l,c,u,d=new e;d.authorityType=r&&r.authorityType===Ase.Adfs?Hre.ADFS_ACCOUNT_TYPE:Hre.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=Rre.EMPTY_STRING;var p=a||r&&r.getPreferredCache();if(!p)throw Jie.createInvalidCacheEnvironmentError();return n&&(d.localAccountId=(null===(s=null===n||void 0===n?void 0:n.claims)||void 0===s?void 0:s.oid)||(null===(l=null===n||void 0===n?void 0:n.claims)||void 0===l?void 0:l.sub)||Rre.EMPTY_STRING,d.username=(null===(c=null===n||void 0===n?void 0:n.claims)||void 0===c?void 0:c.upn)||Rre.EMPTY_STRING,d.name=(null===(u=null===n||void 0===n?void 0:n.claims)||void 0===u?void 0:u.name)||Rre.EMPTY_STRING,d.idTokenClaims=null===n||void 0===n?void 0:n.claims),d.environment=p,d.cloudGraphHostName=o,d.msGraphHost=i,d},e.generateHomeAccountId=function(e,t,n,r,o){var i,a=(null===(i=null===o||void 0===o?void 0:o.claims)||void 0===i?void 0:i.sub)?o.claims.sub:Rre.EMPTY_STRING;if(t===Ase.Adfs||t===Ase.Dsts)return a;if(e)try{var s=nle(e,r);if(!$ie.isEmpty(s.uid)&&!$ie.isEmpty(s.utid))return""+s.uid+Vre.CLIENT_INFO_SEPARATOR+s.utid}catch(eDe){}return n.verbose("No client info in response"),a},e.isAccountEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"))},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var o=e.idTokenClaims||{},i=t.idTokenClaims||{};r=o.iat===i.iat&&o.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},e}(),ale=function(){function e(e){var t=this,n=e?$ie.trimArrayEntries(wre(e)):[],r=n?$ie.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach((function(e){return t.scopes.add(e)}))}return e.fromString=function(t){return new e((t||Rre.EMPTY_STRING).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(Rre.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw kse.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!$ie.isEmpty(t)&&n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every((function(e){return t.containsScope(e)})))},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return Mre.forEach((function(n){e.containsScope(n)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){$ie.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach((function(e){return t.appendScope(e)}))}catch(eDe){throw Jie.createAppendScopeSetError(eDe)}},e.prototype.removeScope=function(e){if($ie.isEmpty(e))throw Jie.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;Mre.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw Jie.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach((function(e){return t.add(e.toLowerCase())})),this.scopes.forEach((function(e){return t.add(e.toLowerCase())})),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw Jie.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size<r+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach((function(t){return e.push(t)})),e},e.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):Rre.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}(),sle="@azure/msal-common",lle="13.0.0",cle=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(sle,lle)}return e.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce((function(t,n){var r=e.getAccount(n);return r?(t.push(r),t):t}),[]);return n.length<1?[]:n.map((function(t){return e.getAccountInfoFromEntity(t)}))},e.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},e.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new $se(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return Ere(this,void 0,void 0,(function(){return kre(this,(function(t){switch(t.label){case 0:if(!e)throw Jie.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}}))}))},e.prototype.saveAccessToken=function(e){return Ere(this,void 0,void 0,(function(){var t,n,r,o,i=this;return kre(this,(function(a){switch(a.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),r=ale.fromString(e.target),o=[],n.accessToken.forEach((function(e){if(i.accessTokenKeyMatchesFilter(e,t,!1)){var n=i.getAccessTokenCredential(e);if(n&&i.credentialMatchesFilter(n,t))ale.fromString(n.target).intersectingScopeSets(r)&&o.push(i.removeAccessToken(e))}})),[4,Promise.all(o)];case 1:return a.sent(),this.setAccessTokenCredential(e),[2]}}))}))},e.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),r=[];return n.forEach((function(n){if(t.isAccountKey(n,e.homeAccountId,e.realm)){var o=t.getAccount(n);o&&(e.homeAccountId&&!t.matchHomeAccountId(o,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(o,e.localAccountId)||e.username&&!t.matchUsername(o,e.username)||e.environment&&!t.matchEnvironment(o,e.environment)||e.realm&&!t.matchRealm(o,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(o,e.nativeAccountId)||r.push(o))}})),r},e.prototype.isAccountKey=function(e,t,n){return!(e.split(Vre.CACHE_KEY_SEPARATOR).length<3)&&(!(t&&!e.toLowerCase().includes(t.toLowerCase()))&&!(n&&!e.toLowerCase().includes(n.toLowerCase())))},e.prototype.isCredentialKey=function(e){if(e.split(Vre.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(zre.ID_TOKEN.toLowerCase())&&-1===t.indexOf(zre.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(zre.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(zre.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(zre.REFRESH_TOKEN.toLowerCase())>-1){var n=""+zre.REFRESH_TOKEN+Vre.CACHE_KEY_SEPARATOR+this.clientId+Vre.CACHE_KEY_SEPARATOR,r=""+zre.REFRESH_TOKEN+Vre.CACHE_KEY_SEPARATOR+qre+Vre.CACHE_KEY_SEPARATOR;if(-1===t.indexOf(n.toLowerCase())&&-1===t.indexOf(r.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0},e.prototype.credentialMatchesFilter=function(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"===typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;if(e.credentialType===zre.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===Xre.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0},e.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,r=this.getKeys(),o={};return r.forEach((function(r){if(n.isAppMetadata(r)){var i=n.getAppMetadata(r);i&&(e&&!n.matchEnvironment(i,e)||t&&!n.matchClientId(i,t)||(o[r]=i))}})),o},e.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),r=null;return n.forEach((function(n){if(t.isAuthorityMetadata(n)&&-1!==n.indexOf(t.clientId)){var o=t.getAuthorityMetadata(n);o&&-1!==o.aliases.indexOf(e)&&(r=o)}})),r},e.prototype.removeAllAccounts=function(){return Ere(this,void 0,void 0,(function(){var e,t,n=this;return kre(this,(function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach((function(e){t.push(n.removeAccount(e))})),[4,Promise.all(t)];case 1:return r.sent(),[2]}}))}))},e.prototype.removeAccount=function(e){return Ere(this,void 0,void 0,(function(){var t;return kre(this,(function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw Jie.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}}))}))},e.prototype.removeAccountContext=function(e){return Ere(this,void 0,void 0,(function(){var t,n,r,o=this;return kre(this,(function(i){switch(i.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),r=[],t.idToken.forEach((function(e){0===e.indexOf(n)&&o.removeIdToken(e)})),t.accessToken.forEach((function(e){0===e.indexOf(n)&&r.push(o.removeAccessToken(e))})),t.refreshToken.forEach((function(e){0===e.indexOf(n)&&o.removeRefreshToken(e)})),[4,Promise.all(r)];case 1:return i.sent(),[2]}}))}))},e.prototype.removeAccessToken=function(e){return Ere(this,void 0,void 0,(function(){var t,n;return kre(this,(function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==zre.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Xre.POP)return[3,4];if(!(n=t.keyId))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return r.sent(),[3,4];case 3:throw r.sent(),Jie.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}}))}))},e.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach((function(t){e.isAppMetadata(t)&&e.removeItem(t)})),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),o=this.readAccountFromCache(e),i=this.getIdToken(e,r),a=this.getAccessToken(e,t,r),s=this.getRefreshToken(e,!1,r),l=this.readAppMetadataFromCache(n);return o&&i&&(o.idTokenClaims=new $se(i.secret,this.cryptoImpl).claims),{account:o,idToken:i,accessToken:a,refreshToken:s,appMetadata:l}},e.prototype.readAccountFromCache=function(e){var t=ile.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zre.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},r=this.getIdTokensByFilter(n,t),o=r.length;if(o<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(o>1)throw Jie.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),r[0]},e.prototype.getIdTokensByFilter=function(e,t){var n=this,r=t&&t.idToken||this.getTokenKeys().idToken,o=[];return r.forEach((function(t){if(n.idTokenKeyMatchesFilter(t,_re({clientId:n.clientId},e))){var r=n.getIdTokenCredential(t);r&&n.credentialMatchesFilter(r,e)&&o.push(r)}})),o},e.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.removeIdToken=function(e){this.removeItem(e)},e.prototype.removeRefreshToken=function(e){this.removeItem(e)},e.prototype.getAccessToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var o=ale.createSearchScopes(t.scopes),i=t.authenticationScheme||Xre.BEARER,a=i&&i.toLowerCase()!==Xre.BEARER.toLowerCase()?zre.ACCESS_TOKEN_WITH_AUTH_SCHEME:zre.ACCESS_TOKEN,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:e.tenantId,target:o,tokenType:i,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},l=n&&n.accessToken||this.getTokenKeys().accessToken,c=[];l.forEach((function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&c.push(t)}}));var u=c.length;if(u<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(u>1)throw Jie.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),c[0]},e.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target)for(var o=t.target.asArray(),i=0;i<o.length;i++){if(n&&!r.includes(o[i].toLowerCase()))return!1;if(!n&&r.includes(o[i].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),r=[];return n.accessToken.forEach((function(n){if(t.accessTokenKeyMatchesFilter(n,e,!0)){var o=t.getAccessTokenCredential(n);o&&t.credentialMatchesFilter(o,e)&&r.push(o)}})),r},e.prototype.getRefreshToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o=t?qre:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zre.REFRESH_TOKEN,clientId:this.clientId,familyId:o},a=n&&n.refreshToken||this.getTokenKeys().refreshToken,s=[];return a.forEach((function(e){if(r.refreshTokenKeyMatchesFilter(e,i)){var t=r.getRefreshTokenCredential(e);t&&r.credentialMatchesFilter(t,i)&&s.push(t)}})),s.length<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),s[0])},e.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.familyId||-1!==n.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase())))},e.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),r=Object.keys(n).map((function(e){return n[e]})),o=r.length;if(o<1)return null;if(o>1)throw Jie.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==qre)},e.prototype.matchHomeAccountId=function(e,t){return!("string"!==typeof e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchLocalAccountId=function(e,t){return!("string"!==typeof e.localAccountId||t!==e.localAccountId)},e.prototype.matchUsername=function(e,t){return!("string"!==typeof e.username||t.toLowerCase()!==e.username.toLowerCase())},e.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},e.prototype.matchTarget=function(e,t){return!(e.credentialType!==zre.ACCESS_TOKEN&&e.credentialType!==zre.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&ale.fromString(e.target).containsScopeSet(t)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(jre)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(Kre)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return Kre+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),ule=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xre(t,e),t.prototype.setAccount=function(){throw eie.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw eie.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw eie.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw eie.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw eie.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw eie.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw eie.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw eie.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw eie.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw eie.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw eie.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw eie.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw eie.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw eie.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw eie.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getAccountKeys=function(){throw eie.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getTokenKeys=function(){throw eie.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Storage interface - clear() has not been implemented for the cacheStorage interface.",eie.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")}))}))},t.prototype.updateCredentialCacheKey=function(){throw eie.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(cle),dle={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},ple={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},hle={code:"storage_not_supported",desc:"Given storage configuration option was not supported."},mle={code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},fle={code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},gle={code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},vle={code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."},yle=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return zoe(t,e),t.createRedirectUriEmptyError=function(){return new t(dle.code,dle.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(ple.code,ple.desc)},t.createStorageNotSupportedError=function(e){return new t(hle.code,hle.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(mle.code,mle.desc)},t.createStubPcaInstanceCalledError=function(){return new t(fle.code,fle.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(gle.code,gle.desc)},t.createEntropyNotProvided=function(){return new t(vle.code,vle.desc)},t}(eie),ble=function(e){function t(t,n,r){var o=e.call(this,qae.AUTH_RESULT)||this;return o.interactionType=t,o.result=n,o.errorPayload=o.generateErrorPayload(r),o}return Noe(t,e),t.prototype.generateErrorPayload=function(e){return e?Foe({},e):void 0},t.validate=function(e){return e.data&&e.data.messageType===qae.AUTH_RESULT&&e.data.interactionType&&(e.data.result||e.data.errorPayload)?new t(e.data.interactionType,e.data.result,e.data.errorPayload):null},t.detectError=function(e){switch(e.name){case Xae.INTERACTION_REQ_ERROR_NAME:return new iie(e.errorCode,e.errorMessage,e.subError);case Xae.SERVER_ERROR_NAME:return new Dse(e.errorCode,e.errorMessage,e.subError);case Xae.CLIENT_AUTH_ERR_NAME:return new Jie(e.errorCode,e.errorMessage);case Xae.CLIENT_CONFIG_ERROR_NAME:return new kse(e.errorCode,e.errorMessage);case Xae.BROWSER_AUTH_ERROR_NAME:return new jae(e.errorCode,e.errorMessage);case Xae.BROWSER_CONFIG_ERROR_NAME:return new yle(e.errorCode,e.errorMessage);case Xae.BROKER_AUTH_ERROR_NAME:return new Kse(e.errorCode,e.errorMessage);case Xae.AUTH_ERROR_NAME:return new eie(e.errorCode,e.errorMessage,e.subError);default:return eie.createUnexpectedError("Unknown error: "+JSON.stringify(e))}},t.processBrokerResponseMessage=function(e,n){var r=t.validate(e);return t.processBrokerResponse(r,n)},t.processBrokerResponse=function(e,n){if(!e)return null;if(e.errorPayload)throw t.detectError(e.errorPayload);if(!e.result||!e.result.tokensToCache)throw Kse.createBrokerResponseInvalidError();var r=new ele,o=new tle,i=new ile,a=e.result.tokensToCache,s={accessToken:cle.toObject(a.accessToken,r),idToken:cle.toObject(a.idToken,o),account:cle.toObject(a.account,i),refreshToken:null,appMetadata:null};return n.saveCacheRecord(s),delete e.result.tokensToCache,Foe({},e.result)},t}(Mse),Cle=function(e){function t(t,n){var r=e.call(this,qae.HANDLE_REDIRECT_REQUEST)||this;return r.embeddedClientId=t,r.version=n,r}return Noe(t,e),t.validate=function(e){return e.data&&e.data.messageType===qae.HANDLE_REDIRECT_REQUEST&&e.data.embeddedClientId&&e.data.version?new t(e.data.embeddedClientId,e.data.version):null},t}(Mse),Sle={code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},xle={code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."},_le=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,t.prototype),o}return xre(t,e),t.createMissingKidError=function(){return new t(Sle.code,Sle.desc)},t.createMissingAlgError=function(){return new t(xle.code,xle.desc)},t}(eie),Ele=function(){function e(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw _le.createMissingKidError();if(!t.alg)throw _le.createMissingAlgError();var n=new e({typ:t.typ||noe.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),kle=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),wle=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,kle.decimalToHex(e[0])+kle.decimalToHex(e[1])+kle.decimalToHex(e[2])+kle.decimalToHex(e[3])+"-"+kle.decimalToHex(e[4])+kle.decimalToHex(e[5])+"-"+kle.decimalToHex(e[6])+kle.decimalToHex(e[7])+"-"+kle.decimalToHex(e[8])+kle.decimalToHex(e[9])+"-"+kle.decimalToHex(e[10])+kle.decimalToHex(e[11])+kle.decimalToHex(e[12])+kle.decimalToHex(e[13])+kle.decimalToHex(e[14])+kle.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,o=Rre.EMPTY_STRING,i=0;i<36;i++)"-"!==t[i]&&"4"!==t[i]&&(r=16*Math.random()|0),"x"===t[i]?o+=n[r]:"y"===t[i]?(r&=3,o+=n[r|=8]):o+=t[i];return o}},e.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e}(),Ile=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,o=0;o<r;o++)n+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var i=new Uint8Array(n),a=0,s=0;a<n;s++)(t=e.charCodeAt(s))<128?i[a++]=t:t<2048?(i[a++]=192+(t>>>6),i[a++]=128+(63&t)):t<65536?(i[a++]=224+(t>>>12),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<2097152?(i[a++]=240+(t>>>18),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<67108864?(i[a++]=248+(t>>>24),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):(i[a++]=252+(t>>>30),i[a++]=128+(t>>>24&63),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t));return i},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t},e.utf8ArrToString=function(e){for(var t=Rre.EMPTY_STRING,n=void 0,r=e.length,o=0;o<r;o++)n=e[o],t+=String.fromCharCode(n>251&&n<254&&o+5<r?1073741824*(n-252)+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>247&&n<252&&o+4<r?(n-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>239&&n<248&&o+3<r?(n-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>223&&n<240&&o+2<r?(n-224<<12)+(e[++o]-128<<6)+e[++o]-128:n>191&&n<224&&o+1<r?(n-192<<6)+e[++o]-128:n);return t},e.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),Ple=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,Rre.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,Rre.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=Ile.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=Rre.EMPTY_STRING,r=void 0,o=e.length,i=0,a=0;a<o;a++)r=a%3,i|=e[a]<<(16>>>r&24),2!==r&&e.length-a!==1||(n+=String.fromCharCode(this.uint6ToB64(i>>>18&63),this.uint6ToB64(i>>>12&63),this.uint6ToB64(i>>>6&63),this.uint6ToB64(63&i)),i=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),Tle=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return Ile.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,Rre.EMPTY_STRING),r=n.length,o=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,i=new Uint8Array(o),a=void 0,s=void 0,l=0,c=0,u=0;u<r;u++)if(s=3&u,l|=this.b64ToUint6(n.charCodeAt(u))<<18-6*s,3===s||r-u===1){for(a=0;a<3&&c<o;a++,c++)i[c]=l>>>(16>>>a&24)&255;l=0}return i},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),Dle=function(){function e(e){this.base64Encode=new Ple,this.cryptoObj=e}return e.prototype.generateCodes=function(){return qoe(this,void 0,void 0,(function(){var e,t;return Koe(this,(function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}}))}))},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(32);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(eDe){throw jae.createPkceNotGeneratedError(eDe)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return qoe(this,void 0,void 0,(function(){var t,n;return Koe(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),jae.createPkceNotGeneratedError(n);case 3:return[2]}}))}))},e}(),Ale=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){return[2,window.crypto.subtle.exportKey(Toe,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(o){return[2,window.crypto.subtle.importKey(Toe,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,window.crypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,window.crypto.subtle.digest(e,t)]}))}))},e}(),Rle=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Xoe(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){return[2,window.msrCrypto.subtle.exportKey(Toe,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(o){return[2,window.msrCrypto.subtle.importKey(Toe,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,window.msrCrypto.subtle.digest(e,t)]}))}))},e}(),Nle=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,new Promise((function(r,o){var i=window.msCrypto.subtle.generateKey(e,t,n);i.addEventListener("complete",(function(e){r(e.target.result)})),i.addEventListener("error",(function(e){o(e)}))}))]}))}))},e.prototype.exportKey=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){return[2,new Promise((function(t,n){var r=window.msCrypto.subtle.exportKey(Toe,e);r.addEventListener("complete",(function(e){var r=e.target.result,o=Ile.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,Rre.EMPTY_STRING).replace(/\n/g,Rre.EMPTY_STRING).replace(/\t/g,Rre.EMPTY_STRING).split(" ").join(Rre.EMPTY_STRING).replace("\0",Rre.EMPTY_STRING);try{t(JSON.parse(o))}catch(e){n(e)}})),r.addEventListener("error",(function(e){n(e)}))}))]}))}))},e.prototype.importKey=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){var o,i;return Koe(this,(function(a){return o=Ile.getSortedObjectString(e),i=Ile.stringToArrayBuffer(o),[2,new Promise((function(e,o){var a=window.msCrypto.subtle.importKey(Toe,i,t,n,r);a.addEventListener("complete",(function(t){e(t.target.result)})),a.addEventListener("error",(function(e){o(e)}))}))]}))}))},e.prototype.sign=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,new Promise((function(r,o){var i=window.msCrypto.subtle.sign(e,t,n);i.addEventListener("complete",(function(e){r(e.target.result)})),i.addEventListener("error",(function(e){o(e)}))}))]}))}))},e.prototype.digest=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,new Promise((function(n,r){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",(function(e){n(e.target.result)})),o.addEventListener("error",(function(e){r(e)}))}))]}))}))},e}(),Mle="SHA-256",Fle=new Uint8Array([1,0,1]),Ble=function(){function e(e,t){var n,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Ale;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Nle;else{if(!this.hasMsrCrypto()||!(null===(n=this.cryptoOptions)||void 0===n?void 0:n.useMsrCrypto))throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),jae.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Rle}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(null===(r=this.cryptoOptions)||void 0===r?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),yle.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:Mle,modulusLength:2048,publicExponent:Fle}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){return t=Ile.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Mle},t)]}))}))},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){return[2,this.subtleCrypto.exportKey(e)]}))}))},e.prototype.importJwk=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]}))}))},e.prototype.sign=function(e,t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]}))}))},e}(),Ole=function(){function e(){this.dbName=Aoe,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return e.prototype.open=function(){return qoe(this,void 0,void 0,(function(){var e=this;return Koe(this,(function(t){return[2,new Promise((function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",(function(t){t.target.result.createObjectStore(e.tableName)})),r.addEventListener("success",(function(n){var r=n;e.db=r.target.result,e.dbOpen=!0,t()})),r.addEventListener("error",(function(){return n(jae.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.getItem=function(e){return qoe(this,void 0,void 0,(function(){var t=this;return Koe(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(jae.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);o.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(r.target.result)})),o.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.setItem=function(e,t){return qoe(this,void 0,void 0,(function(){var n=this;return Koe(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,o){if(!n.db)return o(jae.createDatabaseNotOpenError());var i=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);i.addEventListener("success",(function(){n.closeConnection(),r()})),i.addEventListener("error",(function(e){n.closeConnection(),o(e)}))}))]}}))}))},e.prototype.removeItem=function(e){return qoe(this,void 0,void 0,(function(){var t=this;return Koe(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(jae.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);o.addEventListener("success",(function(){t.closeConnection(),n()})),o.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.getKeys=function(){return qoe(this,void 0,void 0,(function(){var e=this;return Koe(this,(function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise((function(t,n){if(!e.db)return n(jae.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();r.addEventListener("success",(function(n){var r=n;e.closeConnection(),t(r.target.result)})),r.addEventListener("error",(function(t){e.closeConnection(),n(t)}))}))]}}))}))},e.prototype.containsKey=function(e){return qoe(this,void 0,void 0,(function(){var t=this;return Koe(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(jae.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);o.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(1===r.target.result)})),o.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.deleteDatabase=function(){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise((function(e,t){var n=window.indexedDB.deleteDatabase(Aoe);n.addEventListener("success",(function(){return e(!0)})),n.addEventListener("blocked",(function(){return e(!0)})),n.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),Lle=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach((function(t,n){e.push(n)})),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),Hle=function(){function e(e,t){this.inMemoryCache=new Lle,this.indexedDBCache=new Ole,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof jae&&e.errorCode===Lae.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return qoe(this,void 0,void 0,(function(){var t,n;return Koe(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.setItem=function(e,t){return qoe(this,void 0,void 0,(function(){var n;return Koe(this,(function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}}))}))},e.prototype.removeItem=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}}))}))},e.prototype.getKeys=function(){return qoe(this,void 0,void 0,(function(){var e,t;return Koe(this,(function(n){switch(n.label){case 0:if(0!==(e=this.inMemoryCache.getKeys()).length)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}}))}))},e.prototype.containsKey=function(e){return qoe(this,void 0,void 0,(function(){var t,n;return Koe(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return qoe(this,void 0,void 0,(function(){var e,t;return Koe(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return(e=n.sent())&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}}))}))},e}();!function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"}(ole||(ole={}));var Vle,zle=function(){function e(e){this.logger=e,this.asymmetricKeys=new Hle(this.logger,ole.asymmetricKeys),this.symmetricKeys=new Hle(this.logger,ole.symmetricKeys)}return e.prototype.clear=function(){return qoe(this,void 0,void 0,(function(){var e;return Koe(this,(function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return(e=t.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}}))}))},e}(),Ule=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new Ble(this.logger,n),this.b64Encode=new Ple,this.b64Decode=new Tle,this.guidGenerator=new wle(this.browserCrypto),this.pkceGenerator=new Dle(this.browserCrypto),this.cache=new zle(this.logger),this.performanceClient=t}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){var n;return qoe(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return Koe(this,(function(d){switch(d.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Uoe.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=Ile.getSortedObjectString(a),[4,this.hashString(s)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),r&&r.endMeasurement({success:!0}),[2,l]}}))}))},e.prototype.removeTokenBindingKey=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}}))}))},e.prototype.clearKeystore=function(){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}}))}))},e.prototype.signJwt=function(e,t,n){var r;return qoe(this,void 0,void 0,(function(){var o,i,a,s,l,c,u,d,p,h,m,f,g;return Koe(this,(function(v){switch(v.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Uoe.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(i=v.sent()))throw jae.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=v.sent(),s=Ile.getSortedObjectString(a),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),c=Ele.getShrHeaderString({kid:l,alg:a.alg}),u=this.b64Encode.urlEncode(c),e.cnf={jwk:JSON.parse(s)},d=this.b64Encode.urlEncode(JSON.stringify(e)),p=u+"."+d,h=Ile.stringToArrayBuffer(p),[4,this.browserCrypto.sign(i.privateKey,h)];case 3:return m=v.sent(),f=this.b64Encode.urlEncodeArr(new Uint8Array(m)),g=p+"."+f,o&&o.endMeasurement({success:!0}),[2,g]}}))}))},e.prototype.hashString=function(e){return qoe(this,void 0,void 0,(function(){var t,n;return Koe(this,(function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}}))}))},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}();!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"}(Vle||(Vle={}));var Wle,Gle=function(){function e(t,n,r){this.level=Vle.Info;var o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||function(){},this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level="number"===typeof o.logLevel?o.logLevel:Vle.Info,this.correlationId=o.correlationId||Rre.EMPTY_STRING,this.packageName=n||Rre.EMPTY_STRING,this.packageVersion=r||Rre.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Vle.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=(new Date).toUTCString(),r=($ie.isEmpty(t.correlationId)?$ie.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+Vle[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,r,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:Vle.Error,containsPii:!1,correlationId:t||Rre.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Vle.Error,containsPii:!0,correlationId:t||Rre.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Vle.Warning,containsPii:!1,correlationId:t||Rre.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Vle.Warning,containsPii:!0,correlationId:t||Rre.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:Vle.Info,containsPii:!1,correlationId:t||Rre.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Vle.Info,containsPii:!0,correlationId:t||Rre.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Vle.Verbose,containsPii:!1,correlationId:t||Rre.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Vle.Verbose,containsPii:!0,correlationId:t||Rre.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Vle.Trace,containsPii:!1,correlationId:t||Rre.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Vle.Trace,containsPii:!0,correlationId:t||Rre.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),jle=function(){function e(e,t,n,r,o,i){this.authority=t,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=i,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(e,t){return{}},e.prototype.startPerformanceMeasuremeant=function(e,t){return{}},e.prototype.getIntFields=function(){return Zoe},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},e.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},e.prototype.addQueueMeasurement=function(e,t,n,r){if(t){if(0===n)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);var o={eventName:e,queueTime:n,manuallyCompleted:r},i=this.queueMeasurements.get(t);if(i)i.push(o),this.queueMeasurements.set(t,i);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var a=[o];this.queueMeasurements.set(t,a)}this.preQueueTimeByCorrelationId.delete(t)}else this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement")},e.prototype.startMeasurement=function(e,t){var n,r,o=this,i=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",i),this.logger.trace("PerformanceClient: Performance measurement started for "+e,i);var a=this.startPerformanceMeasuremeant(e,i);a.startMeasurement();var s={eventId:this.generateId(),status:Woe.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:i,appName:null===(n=this.applicationTelemetry)||void 0===n?void 0:n.appName,appVersion:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appVersion};return this.cacheEventByCorrelationId(s),{endMeasurement:function(e){return o.endMeasurement(_re(_re({},s),e),a)},discardMeasurement:function(){return o.discardMeasurements(s.correlationId)},addStaticFields:function(e){return o.addStaticFields(e,s.correlationId)},increment:function(e){return o.increment(e,s.correlationId)},measurement:a,event:s}},e.prototype.endMeasurement=function(e,t){var n,r,o=this,i=this.eventsByCorrelationId.get(e.correlationId);if(!i)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var a=e.eventId===i.eventId,s={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};a?(s=this.getQueueInfo(e.correlationId),this.discardCache(i.correlationId)):null===(n=i.incompleteSubMeasurements)||void 0===n||n.delete(e.eventId),null===t||void 0===t||t.endMeasurement();var l=null===t||void 0===t?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",i.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!a)return i[e.name+"DurationMs"]=Math.floor(l),_re({},i);var c=_re(_re({},i),e),u=0;return null===(r=c.incompleteSubMeasurements)||void 0===r||r.forEach((function(t){o.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,c.correlationId),u++})),c.incompleteSubMeasurements=void 0,c=_re(_re({},c),{durationMs:Math.round(l),queuedTimeMs:s.totalQueueTime,queuedCount:s.totalQueueCount,queuedManuallyCompletedCount:s.manuallyCompletedCount,status:Woe.Completed,incompleteSubsCount:u}),this.truncateIntegralFields(c,this.getIntFields()),this.emitEvents([c],e.correlationId),c},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,_re(_re({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var r in e)n.hasOwnProperty(r)||(n[r]=0),n[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,_re({},e)))},e.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,r=0,o=0;return null===t||void 0===t||t.forEach((function(e){n+=e.queueTime,r++,o+=e.manuallyCompleted?1:0})),{totalQueueTime:n,totalQueueCount:r,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},e.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},e.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},e.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},e.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach((function(r,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),r.apply(null,[e])}))},e.prototype.truncateIntegralFields=function(e,t){t.forEach((function(t){t in e&&"number"===typeof e[t]&&(e[t]=Math.floor(e[t]))}))},e}(),qle=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),Kle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xre(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new qle},t.prototype.startPerformanceMeasurement=function(){return new qle},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(jle),Yle={createNewGuid:function(){throw eie.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw eie.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw eie.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - generatePkceCodes() has not been implemented",eie.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")}))}))},getPublicKeyThumbprint:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - getPublicKeyThumbprint() has not been implemented",eie.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")}))}))},removeTokenBindingKey:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - removeTokenBindingKey() has not been implemented",eie.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")}))}))},clearKeystore:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - clearKeystore() has not been implemented",eie.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")}))}))},signJwt:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - signJwt() has not been implemented",eie.createUnexpectedError("Crypto interface - signJwt() has not been implemented")}))}))},hashString:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Crypto interface - hashString() has not been implemented",eie.createUnexpectedError("Crypto interface - hashString() has not been implemented")}))}))}},Xle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xre(t,e),t.createRefreshTokenEntity=function(e,n,r,o,i,a){var s=new t;return s.clientId=o,s.credentialType=zre.REFRESH_TOKEN,s.environment=n,s.homeAccountId=e,s.secret=r,s.userAssertionHash=a,i&&(s.familyId=i),s},t.isRefreshTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zre.REFRESH_TOKEN)},t}(Zse),Qle=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[jre,e,t].join(Vre.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var o=new e;return o.clientId=t,o.environment=n,r&&(o.familyId=r),o},e.isAppMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(jre)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}(),Zle=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(Qre.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),Jle=function(){function e(){this.expiresAt=Jse.nowSeconds()+Yre}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=Jse.nowSeconds()+Yre},e.prototype.isExpired=function(){return this.expiresAt<=Jse.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(Kre)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"))},e}(),$le=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(ioe));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),ece=function(){function e(){}return e.setRequestState=function(t,n,r){var o=e.generateLibraryState(t,r);return $ie.isEmpty(n)?o:""+o+Rre.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw Jie.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw Jie.createNoCryptoObjectError("parseRequestState");if($ie.isEmpty(t))throw Jie.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(Rre.RESOURCE_DELIM),r=n[0],o=n.length>1?n.slice(1).join(Rre.RESOURCE_DELIM):Rre.EMPTY_STRING,i=e.base64Decode(r),a=JSON.parse(i);return{userRequestState:$ie.isEmpty(o)?Rre.EMPTY_STRING:o,libraryState:a}}catch(eDe){throw Jie.createInvalidStateError(t,eDe)}},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(Wle||(Wle={}));var tce,nce,rce=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==uoe.LocalStorage&&e!==uoe.SessionStorage)throw yle.createStorageNotSupportedError(e);if(!!!window[e])throw yle.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}(),oce=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if($ie.isEmpty(t))return null;try{return ece.parseRequestState(e,t).libraryState.meta}catch(eDe){throw Jie.createInvalidStateError(t,eDe)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new wse(e);return wse.getDeserializedHash(t.getHash())},e}(),ice=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.COOKIE_LIFE_MULTIPLIER=864e5,i.cacheConfig=n,i.logger=o,i.internalStorage=new Lle,i.browserStorage=i.setupBrowserStorage(i.cacheConfig.cacheLocation),i.temporaryCacheStorage=i.setupTemporaryCacheStorage(i.cacheConfig.temporaryCacheLocation,i.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(i.migrateCacheEntries(),i.createKeyMaps()),i}return zoe(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case uoe.LocalStorage:case uoe.SessionStorage:try{return new rce(e)}catch(eDe){this.logger.verbose(eDe);break}}return this.cacheConfig.cacheLocation=uoe.MemoryStorage,new Lle},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case uoe.LocalStorage:case uoe.SessionStorage:try{return new rce(e||uoe.SessionStorage)}catch(eDe){return this.logger.verbose(eDe),this.internalStorage}case uoe.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=Rre.CACHE_PREFIX+"."+Pre.ID_TOKEN,n=Rre.CACHE_PREFIX+"."+Pre.CLIENT_INFO,r=Rre.CACHE_PREFIX+"."+Pre.ERROR,o=Rre.CACHE_PREFIX+"."+Pre.ERROR_DESC,i=[this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r),this.browserStorage.getItem(o)];[Pre.ID_TOKEN,Pre.CLIENT_INFO,Pre.ERROR,Pre.ERROR_DESC].forEach((function(t,n){return e.migrateCacheEntry(t,i[n])}))},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var t=this.getItem(hoe.ACCOUNT_KEYS),n=this.getItem(hoe.TOKEN_KEYS+"."+this.clientId);t&&n?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach((function(t){var n;if(e.isCredentialKey(t)&&(n=e.getItem(t))){var r=e.validateAndParseJson(n);if(r&&r.hasOwnProperty("credentialType"))switch(r.credentialType){case zre.ID_TOKEN:if(tle.isIdTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+t+" found, saving key to token key map");var o=cle.toObject(new tle,r),i=e.updateCredentialCacheKey(t,o);return void e.addTokenKey(i,zre.ID_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+t);break;case zre.ACCESS_TOKEN:case zre.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(ele.isAccessTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+t+" found, saving key to token key map");var a=cle.toObject(new ele,r);i=e.updateCredentialCacheKey(t,a);return void e.addTokenKey(i,zre.ACCESS_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+t);break;case zre.REFRESH_TOKEN:if(Xle.isRefreshTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+t+" found, saving key to token key map");var s=cle.toObject(new Xle,r);i=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(i,zre.REFRESH_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+t)}}if(e.isAccountKey(t)&&(n=e.getItem(t))){var l=e.validateAndParseJson(n);l&&ile.isAccountEntity(l)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+t+" found, saving key to account key map"),e.addAccountKeyToMap(t))}}))},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"===typeof t?t:null}catch(n){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;var n=this.validateAndParseJson(t);return n&&ile.isAccountEntity(n)?cle.toObject(new ile,n):(this.removeAccountKeyFromMap(e),null)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(hoe.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.setItem(hoe.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.setItem(hoe.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return e.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]}))}))},t.prototype.removeIdToken=function(t){e.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,zre.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,zre.ACCESS_TOKEN),[2]}))}))},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,zre.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(hoe.TOKEN_KEYS+"."+this.clientId);if(e){var t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");var n=this.getTokenKeys();switch(t){case zre.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case zre.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case zre.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+t),Jie.createUnexpectedCredentialTypeError()}this.setItem(hoe.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.removeTokenKey=function(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");var n=this.getTokenKeys();switch(t){case zre.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case zre.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var o=n.accessToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case zre.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var i=n.refreshToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+t),Jie.createUnexpectedCredentialTypeError()}this.setItem(hoe.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&tle.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),cle.toObject(new tle,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.ID_TOKEN),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,zre.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&ele.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),cle.toObject(new ele,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.ACCESS_TOKEN),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,zre.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Xle.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),cle.toObject(new Xle,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,zre.REFRESH_TOKEN),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,zre.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Qle.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),cle.toObject(new Qle,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Zle.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),cle.toObject(new Zle,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Jle.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),cle.toObject(new Jle,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter((function(t){return e.isAuthorityMetadata(t)}))},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(moe.WRAPPER_SKU,e),this.internalStorage.setItem(moe.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(moe.WRAPPER_SKU)||Rre.EMPTY_STRING,this.internalStorage.getItem(moe.WRAPPER_VER)||Rre.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(Pre.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(Pre.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var o=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(o),o):null}var i=this.validateAndParseJson(t);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:i.homeAccountId,localAccountId:i.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(Pre.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(Pre.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");var r={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId};this.browserStorage.setItem(t,JSON.stringify(r)),this.browserStorage.setItem(n,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(n)},t.prototype.getAccountInfoByFilter=function(e){var t=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+t.length+" accounts found"),t.filter((function(t){return(!e.username||e.username.toLowerCase()===t.username.toLowerCase())&&((!e.homeAccountId||e.homeAccountId===t.homeAccountId)&&((!e.localAccountId||e.localAccountId===t.localAccountId)&&((!e.tenantId||e.tenantId===t.tenantId)&&(!e.environment||e.environment===t.environment))))}))},t.prototype.getAccountInfoByHints=function(e,t){var n=this.getAllAccounts().filter((function(n){if(t){var r=n.idTokenClaims&&n.idTokenClaims.sid;return t===r}return!!e&&e===n.username}));if(1===n.length)return n[0];if(n.length>1)throw Jie.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&$le.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),cle.toObject(new $le,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===uoe.LocalStorage){var i=this.browserStorage.getItem(n);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return Xoe(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return qoe(this,void 0,void 0,(function(){var e=this;return Koe(this,(function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach((function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(Rre.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)})),this.internalStorage.clear(),[2]}}))}))},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";");this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return Rre.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=Rre.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach((function(n){for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t)){var r=n.split("=")[0];e.clearItemCookie(r)}}))},t.prototype.clearItemCookie=function(e){this.setItemCookie(e,Rre.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(e){var t=new Date;return new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){return this.validateAndParseJson(e)?JSON.stringify(e):$ie.startsWith(e,Rre.CACHE_PREFIX)||$ie.startsWith(e,Pre.ADAL_ID_TOKEN)?e:Rre.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=ece.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(poe.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=ece.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(poe.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=ece.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(poe.REQUEST_STATE+"."+t)},t.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;var r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)},t.prototype.updateCacheEntries=function(e,t,n,r,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var i=this.generateStateKey(e);this.setTemporaryCache(i,e,!1);var a=this.generateNonceKey(e);this.setTemporaryCache(a,t,!1);var s=this.generateAuthorityKey(e);if(this.setTemporaryCache(s,n,!1),o){var l={credential:o.homeAccountId,type:Wle.HOME_ACCOUNT_ID};this.setTemporaryCache(poe.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(!$ie.isEmpty(r)){l={credential:r,type:Wle.UPN};this.setTemporaryCache(poe.CCS_CREDENTIAL,JSON.stringify(l),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),$ie.isEmpty(e)||this.getKeys().forEach((function(n){-1!==n.indexOf(e)&&t.removeItem(n)})),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(poe.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(poe.ORIGIN_URI)),this.removeItem(this.generateCacheKey(poe.URL_HASH)),this.removeItem(this.generateCacheKey(poe.CORRELATION_ID)),this.removeItem(this.generateCacheKey(poe.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(poe.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||Rre.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach((function(n){if(-1!==n.indexOf(poe.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=oce.extractBrowserRequestState(t.cryptoImpl,r);o&&o.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+r),t.resetRequestCache(r))}}})),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(poe.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(poe.REQUEST_PARAMS,!0);if(!n)throw jae.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw jae.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(poe.REQUEST_PARAMS)),$ie.isEmpty(r.authority)){var o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw jae.createNoCachedAuthorityError();r.authority=i}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(poe.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},t.prototype.getInteractionInProgress=function(){var e=Rre.CACHE_PREFIX+"."+poe.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=Rre.CACHE_PREFIX+"."+poe.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw jae.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(Pre.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Pre.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(Pre.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(Pre.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new $se(n,this.cryptoImpl);if(r.claims&&r.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),r.claims.preferred_username;if(r.claims&&r.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(e,t){var n=t.generateCredentialKey();if(e!==n){var r=this.getItem(e);if(r)return this.removeItem(e),this.setItem(n,r),this.logger.verbose("Updated an outdated "+t.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+t.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(poe.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(poe.REDIRECT_CONTEXT,e,!0)},t}(cle);!function(e){e.AAD="AAD",e.OIDC="OIDC"}(tce||(tce={})),function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"}(nce||(nce={}));var ace={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},sce={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Vle.Info,correlationId:Rre.EMPTY_STRING},lce={sendGetRequestAsync:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Network interface - sendGetRequestAsync() has not been implemented",eie.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")}))}))},sendPostRequestAsync:function(){return Ere(this,void 0,void 0,(function(){return kre(this,(function(e){throw"Network interface - sendPostRequestAsync() has not been implemented",eie.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")}))}))}},cce={sku:Rre.SKU,version:lle,cpu:Rre.EMPTY_STRING,os:Rre.EMPTY_STRING},uce={clientSecret:Rre.EMPTY_STRING,clientAssertion:void 0},dce={azureCloudInstance:nce.None,tenant:""+Rre.DEFAULT_COMMON_TENANT},pce={application:{appName:"",appVersion:""}};var hce={sendGetRequestAsync:function(){return Promise.reject(eie.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(eie.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},mce=function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise((function(e){setTimeout((function(){e(!0)}),t.timeout)}))},e}(),fce=6e3;var gce,vce=function(){function e(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(e){if("undefined"!==typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},e.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},e.prototype.enableAccountStorageEvents=function(){"undefined"!==typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){"undefined"!==typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(e,t,n,r){var o=this;if("undefined"!==typeof window){var i={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach((function(t,n){o.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[i])}))}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!==typeof n||!ile.isAccountEntity(n))return;var r=cle.toObject(new ile,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Moe.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Moe.ACCOUNT_REMOVED,void 0,r))}catch(e){return}},e}(),yce=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return ioe+"."+JSON.stringify(e)},e.preProcess=function(t,n){var r,o=e.generateThrottlingStorageKey(n),i=t.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now())return void t.removeItem(o);throw new Dse((null===(r=i.errorCodes)||void 0===r?void 0:r.join(" "))||Rre.EMPTY_STRING,i.errorMessage,i.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var o={throttleTime:e.calculateThrottleTime(parseInt(r.headers[Ire.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),o)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&(e.headers.hasOwnProperty(Ire.RETRY_AFTER)&&(e.status<200||e.status>=300))},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||roe),n+ooe))},e.removeThrottle=function(e,t,n,r){var o={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},i=this.generateThrottlingStorageKey(o);e.removeItem(i)},e}(),bce=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return Ere(this,void 0,void 0,(function(){var r,o;return kre(this,(function(i){switch(i.label){case 0:yce.preProcess(this.cacheManager,e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=i.sent(),[3,4];case 3:throw(o=i.sent())instanceof eie?o:Jie.createNetworkError(t,o);case 4:return yce.postProcess(this.cacheManager,e,r),[2,r]}}))}))},e}(),Cce=function(){function e(){}return e.validateRedirectUri=function(e){if($ie.isEmpty(e))throw kse.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in Bre)t.push(Bre[n]);if(t.indexOf(e)<0)throw kse.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(eDe){throw kse.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if($ie.isEmpty(e)||$ie.isEmpty(t))throw kse.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([Wre.PLAIN,Wre.S256].indexOf(e)<0)throw kse.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach((function(t,n){e[n]&&delete e[n]})),Object.fromEntries(Object.entries(e).filter((function(e){return""!==e[1]})))):{}},e}(),Sce=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Dre.RESPONSE_TYPE,encodeURIComponent(Rre.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Dre.RESPONSE_TYPE,encodeURIComponent(Rre.TOKEN_RESPONSE_TYPE+" "+Rre.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(Dre.RESPONSE_MODE,encodeURIComponent(e||Ore.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(Dre.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?wre(e||[],Nre):e||[],r=new ale(n);this.parameters.set(Dre.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(Dre.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){Cce.validateRedirectUri(e),this.parameters.set(Dre.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){Cce.validateRedirectUri(e),this.parameters.set(Dre.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(Dre.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(Fre.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(Fre.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(Ire.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(Ire.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(Fre.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);Cce.validateClaims(n),this.parameters.set(Dre.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(Dre.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(Dre.X_CLIENT_SKU,e.sku),this.parameters.set(Dre.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Dre.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Dre.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(Dre.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(Dre.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){Cce.validatePrompt(e),this.parameters.set(""+Dre.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){$ie.isEmpty(e)||this.parameters.set(Dre.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(Dre.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(Cce.validateCodeChallengeParams(e,t),!e||!t)throw kse.createInvalidCodeChallengeParamsError();this.parameters.set(Dre.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Dre.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(Dre.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(Dre.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(Dre.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(Dre.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(Dre.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){$ie.isEmpty(e)||this.parameters.set(Dre.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){$ie.isEmpty(e)||this.parameters.set(Dre.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(Dre.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(Dre.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(Dre.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=Cce.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach((function(n){t.parameters.set(n,e[n])}))},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(eDe){throw kse.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(Are.ACCESS_TOKEN)||(n[Are.ACCESS_TOKEN]={}),n[Are.ACCESS_TOKEN][Are.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(Zre.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(Zre.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){$ie.isEmpty(e)||(this.parameters.set(Dre.TOKEN_TYPE,Xre.POP),this.parameters.set(Dre.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){$ie.isEmpty(e)||(this.parameters.set(Dre.TOKEN_TYPE,Xre.SSH),this.parameters.set(Dre.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(Dre.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Dre.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Dre.X_MS_LIB_CAPABILITY,aoe)},e.prototype.addLogoutHint=function(e){this.parameters.set(Dre.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach((function(t,n){e.push(n+"="+t)})),e.join("&")},e}(),xce=function(){function e(e,t){this.config=function(e){var t,n=e.authOptions,r=e.systemOptions,o=e.loggerOptions,i=e.storageInterface,a=e.networkInterface,s=e.cryptoInterface,l=e.clientCredentials,c=e.libraryInfo,u=e.telemetry,d=e.serverTelemetryManager,p=e.persistencePlugin,h=e.serializableCache,m=_re(_re({},sce),o);return{authOptions:(t=n,_re({clientCapabilities:[],azureCloudOptions:dce,skipAuthorityMetadataCache:!1},t)),systemOptions:_re(_re({},ace),r),loggerOptions:m,storageInterface:i||new ule(n.clientId,Yle,new Gle(m)),networkInterface:a||lce,cryptoInterface:s||Yle,clientCredentials:l||uce,libraryInfo:_re(_re({},cce),c),telemetry:_re(_re({},pce),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:h||null}}(e),this.logger=new Gle(this.config.loggerOptions,sle,lle),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new bce(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[Ire.CONTENT_TYPE]=Rre.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Wle.HOME_ACCOUNT_ID:try{var n=rle(e.credential);t[Ire.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}break;case Wle.UPN:t[Ire.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return Ere(this,void 0,void 0,(function(){var o;return kre(this,(function(i){switch(i.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return o=i.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}}))}))},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw Jie.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new Sce;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),_ce=function(e,t,n,r,o){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=o||null};!function(e){e.SW="sw",e.UHW="uhw"}(gce||(gce={}));var Ece=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return Ere(this,void 0,void 0,(function(){var r,o,i;return kre(this,(function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=a.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(r)),i={kid:r.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(i.reqCnfHash=a.sent(),i)]}}))}))},e.prototype.generateKid=function(e){var t;return Ere(this,void 0,void 0,(function(){return kre(this,(function(n){switch(n.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:gce.SW}]}}))}))},e.prototype.signPopToken=function(e,t,n){return Ere(this,void 0,void 0,(function(){return kre(this,(function(r){return[2,this.signPayload(e,t,n)]}))}))},e.prototype.signPayload=function(e,t,n,r){return Ere(this,void 0,void 0,(function(){var o,i,a,s,l,c;return kre(this,(function(u){switch(u.label){case 0:return o=n.resourceRequestMethod,i=n.resourceRequestUri,a=n.shrClaims,s=n.shrNonce,l=i?new wse(i):void 0,c=null===l||void 0===l?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(_re({at:e,ts:Jse.nowSeconds(),m:null===o||void 0===o?void 0:o.toUpperCase(),u:null===c||void 0===c?void 0:c.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null===c||void 0===c?void 0:c.AbsolutePath,q:(null===c||void 0===c?void 0:c.QueryString)?[[],c.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,u.sent()]}}))}))},e}(),kce=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),wce=function(){function e(e,t,n,r,o,i,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=o,this.persistencePlugin=i,this.performanceClient=a}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?Jie.createStateNotFoundError("Cached State"):Jie.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Jie.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(iie.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new iie(e.error||Rre.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||Rre.EMPTY_STRING,e.trace_id||Rre.EMPTY_STRING,e.correlation_id||Rre.EMPTY_STRING,e.claims||Rre.EMPTY_STRING);throw new Dse(e.error||Rre.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&nle(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(iie.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new iie(e.error,e.error_description,e.suberror,e.timestamp||Rre.EMPTY_STRING,e.trace_id||Rre.EMPTY_STRING,e.correlation_id||Rre.EMPTY_STRING,e.claims||Rre.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Dse(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,i,a,s,l,c){var u;return Ere(this,void 0,void 0,(function(){var d,p,h,m,f,g;return kre(this,(function(v){switch(v.label){case 0:if(null===(u=this.performanceClient)||void 0===u||u.addQueueMeasurement(Uoe.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new $se(t.id_token||Rre.EMPTY_STRING,this.cryptoObj),i&&!$ie.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw Jie.createNonceMismatchError();if(o.maxAge||0===o.maxAge){if(!(p=d.claims.auth_time))throw Jie.createAuthTimeNotFoundError();$se.checkMaxAge(p,o.maxAge)}}this.homeAccountIdentifier=ile.generateHomeAccountId(t.client_info||Rre.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(h=ece.parseRequestState(this.cryptoObj,i.state)),t.key_id=t.key_id||o.sshKid||void 0,m=this.generateCacheRecord(t,n,r,o,d,a,i),v.label=1;case 1:return v.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),f=new kce(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(f)]):[3,3];case 2:v.sent(),v.label=3;case 3:return!s||l||!m.account||(g=m.account.generateAccountKey(),this.cacheStorage.getAccount(g))?[4,this.cacheStorage.saveCacheRecord(m)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,o,d,h,void 0,c)]);case 4:return v.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&f?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(f)]):[3,7];case 6:v.sent(),v.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,o,d,h,t,c)]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,o,i,a){var s,l,c=t.getPreferredCache();if($ie.isEmpty(c))throw Jie.createInvalidCacheEnvironmentError();!$ie.isEmpty(e.id_token)&&o&&(s=tle.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||Rre.EMPTY_STRING,this.clientId,o.claims.tid||Rre.EMPTY_STRING),l=this.generateAccountEntity(e,o,t,a));var u=null;if(!$ie.isEmpty(e.access_token)){var d=e.scope?ale.fromString(e.scope):new ale(r.scopes||[]),p=("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,h=("string"===typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,f=n+p,g=f+h,v=m&&m>0?n+m:void 0;u=ele.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||Rre.EMPTY_STRING,this.clientId,o?o.claims.tid||Rre.EMPTY_STRING:t.tenant,d.printScopes(),f,g,this.cryptoObj,v,e.token_type,i,e.key_id,r.claims,r.requestedClaimsHash)}var y=null;$ie.isEmpty(e.refresh_token)||(y=Xle.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||Rre.EMPTY_STRING,this.clientId,e.foci,i));var b=null;return $ie.isEmpty(e.foci)||(b=Qle.createAppMetadataEntity(this.clientId,c,e.foci)),new _ce(l,s,u,y,b)},e.prototype.generateAccountEntity=function(e,t,n,r){var o=n.authorityType,i=r?r.cloud_graph_host_name:Rre.EMPTY_STRING,a=r?r.msgraph_host:Rre.EMPTY_STRING;if(o===Ase.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),ile.createGenericAccount(this.homeAccountIdentifier,t,n,i,a);if($ie.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Jie.createClientInfoEmptyError();return e.client_info?ile.createAccount(e.client_info,this.homeAccountIdentifier,t,n,i,a):ile.createGenericAccount(this.homeAccountIdentifier,t,n,i,a)},e.generateAuthenticationResult=function(e,t,n,r,o,i,a,s,l){var c,u,d;return Ere(this,void 0,void 0,(function(){var p,h,m,f,g,v,y,b,C,S,x;return kre(this,(function(_){switch(_.label){case 0:if(p=Rre.EMPTY_STRING,h=[],m=null,g=Rre.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Xre.POP)return[3,2];if(v=new Ece(e),y=n.accessToken,b=y.secret,!(C=y.keyId))throw Jie.createKeyIdMissingError();return[4,v.signPopToken(b,C,o)];case 1:return p=_.sent(),[3,3];case 2:p=n.accessToken.secret,_.label=3;case 3:h=ale.fromString(n.accessToken.target).asArray(),m=new Date(1e3*Number(n.accessToken.expiresOn)),f=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),_.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===qre?qre:Rre.EMPTY_STRING),S=(null===i||void 0===i?void 0:i.claims.oid)||(null===i||void 0===i?void 0:i.claims.sub)||Rre.EMPTY_STRING,x=(null===i||void 0===i?void 0:i.claims.tid)||Rre.EMPTY_STRING,(null===s||void 0===s?void 0:s.spa_accountid)&&n.account&&(n.account.nativeAccountId=null===s||void 0===s?void 0:s.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:S,tenantId:x,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:i?i.rawToken:Rre.EMPTY_STRING,idTokenClaims:i?i.claims:{},accessToken:p,fromCache:r,expiresOn:m,correlationId:o.correlationId,requestId:l||Rre.EMPTY_STRING,extExpiresOn:f,familyId:g,tokenType:(null===(c=n.accessToken)||void 0===c?void 0:c.tokenType)||Rre.EMPTY_STRING,state:a?a.userRequestState:Rre.EMPTY_STRING,cloudGraphHostName:(null===(u=n.account)||void 0===u?void 0:u.cloudGraphHostName)||Rre.EMPTY_STRING,msGraphHost:(null===(d=n.account)||void 0===d?void 0:d.msGraphHost)||Rre.EMPTY_STRING,code:null===s||void 0===s?void 0:s.spa_code,fromNativeBroker:!1}]}}))}))},e}(),Ice=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return xre(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return Ere(this,void 0,void 0,(function(){var r;return kre(this,(function(o){switch(o.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=o.sent(),[2,wse.appendQueryString(this.authority.authorizationEndpoint,r)]}}))}))},t.prototype.acquireToken=function(e,t){var n,r,o,i,a,s;return Ere(this,void 0,void 0,(function(){var l,c,u,d,p,h,m=this;return kre(this,(function(f){switch(f.label){case 0:if(!e||!e.code)throw Jie.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.AuthClientAcquireToken,e.correlationId),l=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),c=Jse.nowSeconds(),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return u=f.sent(),d=null===(i=u.headers)||void 0===i?void 0:i[Ire.X_MS_REQUEST_ID],(p=null===(a=u.headers)||void 0===a?void 0:a[Ire.X_MS_HTTP_VERSION])&&(null===l||void 0===l||l.addStaticFields({httpVerAuthority:p})),(h=new wce(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(u.body),null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(Uoe.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(u.body,this.authority,c,e,t,void 0,void 0,void 0,d).then((function(e){return null===l||void 0===l||l.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching token in ACC",e.correlationId),null===l||void 0===l||l.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.handleFragmentResponse=function(e,t){var n=new wce(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new wse(e),o=wse.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw Jie.createNoAuthCodeInServerResponseError();return _re(_re({},o),{code:o.code})},t.prototype.getLogoutUri=function(e){if(!e)throw kse.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return wse.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return Ere(this,void 0,void 0,(function(){var o,i,a,s,l,c,u;return kre(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Uoe.AuthClientCreateTokenRequestBody,t.correlationId),o=this.createTokenQueryParameters(t),i=wse.appendQueryString(e.tokenEndpoint,o),[4,this.createTokenRequestBody(t)];case 1:if(a=d.sent(),s=void 0,t.clientInfo)try{l=nle(t.clientInfo,this.cryptoUtils),s={credential:""+l.uid+Vre.CLIENT_INFO_SEPARATOR+l.utid,type:Wle.HOME_ACCOUNT_ID}}catch(eDe){this.logger.verbose("Could not parse client info for CCS Header: "+eDe)}return c=this.createTokenRequestHeaders(s||t.ccsCredential),u={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(i,a,c,u)]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n;return Ere(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return kre(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.AuthClientCreateTokenRequestBody,e.correlationId),(r=new Sce).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):Cce.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,r.addClientAssertion(o.assertion),r.addClientAssertionType(o.assertionType)),r.addGrantType(Lre.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==Xre.POP?[3,2]:(i=new Ece(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.PopTokenGenerateCnf,e.correlationId),[4,i.generateCnf(e)]);case 1:return a=d.sent(),r.addPopToken(a.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Xre.SSH){if(!e.sshJwk)throw kse.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}d.label=3;case 3:if(s=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(s),(!$ie.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),l=void 0,e.clientInfo)try{c=nle(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+Vre.CLIENT_INFO_SEPARATOR+c.utid,type:Wle.HOME_ACCOUNT_ID}}catch(eDe){this.logger.verbose("Could not parse client info for CCS Header: "+eDe)}else l=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case Wle.HOME_ACCOUNT_ID:try{c=rle(l.credential),r.addCcsOid(c)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}break;case Wle.UPN:r.addCcsUpn(l.credential)}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[Dre.RETURN_SPA_CODE]||r.addExtraQueryParameters(((u={})[Dre.RETURN_SPA_CODE]="1",u)),[2,r.createQueryString()]}}))}))},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return Ere(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return kre(this,(function(c){switch(c.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.AuthClientCreateQueryString,e.correlationId),(n=new Sce).addClientId(this.config.authOptions.clientId),r=wre(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(r),n.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(o),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==Bre.SELECT_ACCOUNT)if(e.sid&&e.prompt===Bre.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(a);try{s=rle(e.account.homeAccountId),n.addCcsOid(s)}catch(eDe){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===Bre.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(i);try{s=rle(e.account.homeAccountId),n.addCcsOid(s)}catch(eDe){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{s=rle(e.account.homeAccountId),n.addCcsOid(s)}catch(eDe){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!$ie.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(n.addNativeBroker(),e.authenticationScheme!==Xre.POP?[3,2]:[4,new Ece(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:l=c.sent(),n.addPopToken(l.reqCnfHash),c.label=2;case 2:return[2,n.createQueryString()]}}))}))},t.prototype.createLogoutUrlQueryString=function(e){var t=new Sce;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.login_hint)||null},t}(xce);function Pce(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}var Tce={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},Dce={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}};var Ace=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var r,o,i,a;return Ere(this,void 0,void 0,(function(){var s,l,c,u,d;return kre(this,(function(p){switch(p.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(Uoe.RegionDiscoveryDetectRegion,this.correlationId),s=t)return[3,8];l=e.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(Rre.IMDS_VERSION,l)];case 2:return(c=p.sent()).status===Jre.httpSuccess&&(s=c.body,n.region_source=$re.IMDS),c.status!==Jre.httpBadRequest?[3,5]:(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(Uoe.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return(u=p.sent())?(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(Uoe.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(n.region_source=$re.FAILED_AUTO_DETECTION,[2,null]);case 4:(d=p.sent()).status===Jre.httpSuccess&&(s=d.body,n.region_source=$re.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),n.region_source=$re.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=$re.ENVIRONMENT_VARIABLE,p.label=9;case 9:return s||(n.region_source=$re.FAILED_AUTO_DETECTION),[2,s||null]}}))}))},e.prototype.getRegionFromIMDS=function(e,t){var n;return Ere(this,void 0,void 0,(function(){return kre(this,(function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(Rre.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,Rre.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(e){var t;return Ere(this,void 0,void 0,(function(){var n;return kre(this,(function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(Rre.IMDS_ENDPOINT+"?format=json",e)];case 2:return(n=r.sent()).status===Jre.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),Rce=function(){function e(e,t,n,r,o,i,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=i,this.correlationId=a,this.regionDiscovery=new Ace(t,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(Rre.CIAM_AUTH_URL))return Ase.Ciam;var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case Rre.ADFS:return Ase.Adfs;case Rre.DSTS:return Ase.Dsts}return Ase.Default},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new wse(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Jie.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=e,n=new wse(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((function(e,r){var o=n[r];e!==o&&(t=t.replace("/"+o+"/","/"+e+"/"))})),t},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Ase.Adfs||this.authorityType===Ase.Dsts||this.protocolMode===tce.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var e,t,n;return Ere(this,void 0,void 0,(function(){var r,o,i,a;return kre(this,(function(s){switch(s.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(Uoe.AuthorityResolveEndpointsAsync,this.correlationId),(r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(r=new Jle).updateCanonicalAuthority(this.canonicalAuthority),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(Uoe.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return o=s.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return i=s.sent(),o!==Gre.CACHE&&i!==Gre.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),a=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(a,r),this.metadata=r,[2]}}))}))},e.prototype.updateEndpointMetadata=function(e){var t,n,r,o,i,a;return Ere(this,void 0,void 0,(function(){var s,l;return kre(this,(function(c){switch(c.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.AuthorityUpdateEndpointMetadata,this.correlationId),(s=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(s,!1),[2,Gre.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Gre.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(s=c.sent())?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(s)]):[3,3]:[3,4];case 2:s=c.sent(),c.label=3;case 3:return e.updateEndpointMetadata(s,!0),[2,Gre.NETWORK];case 4:return!(l=this.getEndpointMetadataFromHardcodedValues())||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)?(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(Uoe.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,6];case 5:l=c.sent(),c.label=6;case 6:return e.updateEndpointMetadata(l,!1),[2,Gre.HARDCODED_VALUES];case 7:throw Jie.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},e.prototype.isAuthoritySameType=function(e){return new wse(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(eDe){throw kse.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return Ere(this,void 0,void 0,(function(){var t,n;return kre(this,(function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(Uoe.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,Pce((n=r.sent()).body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Tce?Tce[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,o,i,a,s,l;return Ere(this,void 0,void 0,(function(){var c,u;return kre(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Uoe.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:return c=d.sent(),u=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===Rre.AZURE_REGION_AUTO_DISCOVER_FLAG?c:null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion,(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===Rre.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=c?eoe.AUTO_DETECTION_REQUESTED_SUCCESSFUL:eoe.AUTO_DETECTION_REQUESTED_FAILED:this.regionDiscoveryMetadata.region_outcome=c?(null===(l=this.authorityOptions.azureRegionConfiguration)||void 0===l?void 0:l.azureRegion)===c?eoe.CONFIGURED_MATCHES_DETECTED:eoe.CONFIGURED_NOT_DETECTED:eoe.CONFIGURED_NO_AUTO_DETECTION,u?(this.regionDiscoveryMetadata.region_used=u,[2,e.replaceWithRegionalInformation(t,u)]):[2,t]}}))}))},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return Ere(this,void 0,void 0,(function(){var r,o,i;return kre(this,(function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||Rre.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||Rre.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||Rre.NOT_APPLICABLE)),(r=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,Gre.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found metadata in the cache."),[2,Gre.CACHE]):(o&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=a.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,Gre.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),(i=this.getCloudDiscoveryMetadataFromHarcodedValues())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(i,!1),[2,Gre.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),kse.createUntrustedAuthorityError()}}))}))},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Ase.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(eDe){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),kse.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return Ere(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,c;return kre(this,(function(u){switch(u.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+Rre.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(i=u.sent(),a=void 0,s=void 0,function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(i.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),(a=i.body).error===Rre.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=e.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return(l=u.sent())instanceof eie?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+l.errorCode+"\nError Description: "+l.errorMessage):(c=l,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+c.name+"\nError Description: "+c.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}}))}))},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Dce?Dce[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter((function(t){return wse.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort})).length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==nce.None){var r=t.tenant?t.tenant:Rre.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+r+"/"}return n||e},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.aliases.indexOf(t)>-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Jie.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return Rre.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new wse(e);r.validateAsUri();var o=r.getUrlComponents(),i=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=t+"."+Rre.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=wse.constructAuthorityUriFromObject(_re(_re({},r.getUrlComponents()),{HostNameAndPort:i})).urlString;return n?a+"?"+n:a},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,Rre.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(Rre.FORWARD_SLASH)?e:""+e+Rre.FORWARD_SLASH,n=new wse(e).getUrlComponents();0===n.PathSegments.length&&n.HostNameAndPort.endsWith(Rre.CIAM_AUTH_URL)&&(t=""+t+n.HostNameAndPort.split(".")[0]+Rre.AAD_TENANT_DOMAIN_SUFFIX);return t},e}(),Nce=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,o,i,a,s){return Ere(this,void 0,void 0,(function(){var l,c,u;return kre(this,(function(d){switch(d.label){case 0:null===a||void 0===a||a.addQueueMeasurement(Uoe.AuthorityFactoryCreateDiscoveredInstance,s),l=Rce.transformCIAMAuthority(t),c=e.createInstance(l,n,r,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),null===a||void 0===a||a.setPreQueueTime(Uoe.AuthorityResolveEndpointsAsync,s),[4,c.resolveEndpointsAsync()];case 2:return d.sent(),[2,c];case 3:throw u=d.sent(),Jie.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}}))}))},e.createInstance=function(e,t,n,r,o,i,a){if($ie.isEmpty(e))throw kse.createUrlEmptyError();return new Rce(e,t,n,r,o,i,a)},e}(),Mce=function(){function e(e,t){this.cacheOutcome=toe.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||Rre.EMPTY_STRING,this.wrapperVer=e.wrapperVer||Rre.EMPTY_STRING,this.telemetryCacheKey=Qre.CACHE_KEY+Vre.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Qre.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Qre.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join(Qre.VALUE_SEPARATOR);return[Qre.SCHEMA_VERSION,n,t].join(Qre.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(Qre.VALUE_SEPARATOR),o=t.errors.slice(0,n).join(Qre.VALUE_SEPARATOR),i=t.errors.length,a=[i,n<i?Qre.OVERFLOW_TRUE:Qre.OVERFLOW_FALSE].join(Qre.VALUE_SEPARATOR);return[Qre.SCHEMA_VERSION,t.cacheHits,r,o,a].join(Qre.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Qre.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),$ie.isEmpty(e.subError)?$ie.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Qre.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new Zle;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t);if(n===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new Zle;r.failedRequests=t.failedRequests.slice(2*n),r.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,o=e.errors.length;for(t=0;t<o;t++){var i=e.failedRequests[2*t]||Rre.EMPTY_STRING,a=e.failedRequests[2*t+1]||Rre.EMPTY_STRING,s=e.errors[t]||Rre.EMPTY_STRING;if(!((r+=i.toString().length+a.toString().length+s.length+3)<Qre.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||Rre.EMPTY_STRING),e.push(this.regionSource||Rre.EMPTY_STRING),e.push(this.regionOutcome||Rre.EMPTY_STRING),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}(),Fce=function(){function e(e,t,n,r,o,i,a,s,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=i,this.nativeMessageHandler=s,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=r.clone(_oe,nse,this.correlationId),this.performanceClient=a}return e.prototype.clearCacheOnLogout=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){switch(t.label){case 0:if(!e)return[3,5];ile.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(ile.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}}))}))},e.prototype.initializeBaseRequest=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o;return Koe(this,(function(i){switch(i.label){case 0:if(this.performanceClient.addQueueMeasurement(Uoe.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,n=Xoe(e&&e.scopes||[]),(r=Goe(Goe({},e),{correlationId:this.correlationId,authority:t,scopes:n})).authenticationScheme){if(r.authenticationScheme===Xre.SSH){if(!e.sshJwk)throw kse.createMissingSshJwkError();if(!e.sshKid)throw kse.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+r.authenticationScheme+'" as configured in Auth request')}else r.authenticationScheme=Xre.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return!e.claims||$ie.isEmpty(e.claims)?[3,2]:(o=r,[4,this.browserCrypto.hashString(e.claims)]);case 1:o.requestedClaimsHash=i.sent(),i.label=2;case 2:return[2,r]}}))}))},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Tse.getCurrentUri();return wse.getAbsoluteUrl(t,Tse.getCurrentUri())},e.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Mce(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Nce.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:case 3:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Nce.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)]}}))}))},e}(),Bce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zoe(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return qoe(this,void 0,void 0,(function(){var t,n;return Koe(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=Goe(Goe({},e),{redirectUri:e.redirectUri,code:Rre.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=Rre.S256_CODE_CHALLENGE_METHOD,[2,n]}}))}))},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",null===e||void 0===e?void 0:e.correlationId);var t=Goe({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=wse.getAbsoluteUrl(e.postLogoutRedirectUri,Tse.getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=wse.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Tse.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=wse.getAbsoluteUrl(Tse.getCurrentUri(),Tse.getCurrentUri())),t},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r;return Koe(this,(function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Ice(r,this.performanceClient)]}}))}))},t.prototype.getClientConfiguration=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r,o;return Koe(this,(function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return r=i.sent(),o=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:r,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:o.loggerCallback,piiLoggingEnabled:o.piiLoggingEnabled,logLevel:o.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:_oe,version:nse,cpu:Rre.EMPTY_STRING,os:Rre.EMPTY_STRING},telemetry:this.config.telemetry}]}}))}))},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw jae.createHashDoesNotContainStateError();var r=oce.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw jae.createUnableToParseStateError();if(r.interactionType!==t)throw jae.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return qoe(this,void 0,void 0,(function(){var r,o,i,a;return Koe(this,(function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Uoe.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),o={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=e||this.config.auth.authority,a=Rce.generateAuthority(i,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Uoe.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Nce.createDiscoveredInstance(a,this.config.system.networkClient,this.browserStorage,o,this.logger,this.performanceClient,this.correlationId).then((function(e){return r.endMeasurement({success:!0}),e})).catch((function(e){throw r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))];case 1:return[2,s.sent()]}}))}))},t.prototype.initializeAuthorizationRequest=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return Koe(this,(function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r={interactionType:t},o=ece.setRequestState(this.browserCrypto,e&&e.state||Rre.EMPTY_STRING,r),this.performanceClient.setPreQueueTime(Uoe.InitializeBaseRequest,this.correlationId),a=[{}],[4,this.initializeBaseRequest(e)];case 1:return i=Goe.apply(void 0,[Goe.apply(void 0,a.concat([c.sent()])),{redirectUri:n,state:o,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:Ore.FRAGMENT}]),(s=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+s.homeAccountId,this.correlationId),i.account=s),$ie.isEmpty(i.loginHint)&&!s&&(l=this.browserStorage.getLegacyLoginHint())&&(i.loginHint=l),[2,i]}}))}))},t}(Fce),Oce=function(e){function t(t,n){return e.call(this,t,n)||this}return xre(t,e),t.prototype.acquireToken=function(e){var t,n,r,o,i,a,s;return Ere(this,void 0,void 0,(function(){var l,c,u,d,p,h,m=this;return kre(this,(function(f){switch(f.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.RefreshTokenClientAcquireToken,e.correlationId),l=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Uoe.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),c=Jse.nowSeconds(),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Uoe.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return u=f.sent(),d=null===(o=u.headers)||void 0===o?void 0:o[Ire.X_MS_HTTP_VERSION],null===l||void 0===l||l.addStaticFields({refreshTokenSize:(null===(i=u.body.refresh_token)||void 0===i?void 0:i.length)||0}),d&&(null===l||void 0===l||l.addStaticFields({httpVerToken:d})),p=null===(a=u.headers)||void 0===a?void 0:a[Ire.X_MS_REQUEST_ID],(h=new wce(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(u.body),null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(Uoe.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(u.body,this.authority,c,e,void 0,void 0,!0,e.forceCache,p).then((function(e){return null===l||void 0===l||l.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching refresh token",e.correlationId),null===l||void 0===l||l.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,o;return Ere(this,void 0,void 0,(function(){var i,a;return kre(this,(function(s){if(!e)throw kse.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Jie.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Uoe.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(eDe){if(i=eDe instanceof iie&&eDe.errorCode===rie.code,a=eDe instanceof Dse&&eDe.errorCode===soe&&eDe.subError===loe,i||a)return null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Uoe.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw eDe}return null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]}))}))},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,o;return Ere(this,void 0,void 0,(function(){var i,a,s;return kre(this,(function(l){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Uoe.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),!(a=this.cacheManager.getRefreshToken(e.account,t)))throw null===i||void 0===i||i.discardMeasurement(),iie.createNoTokensFoundError();return null===i||void 0===i||i.endMeasurement({success:!0}),s=_re(_re({},e),{refreshToken:a.secret,authenticationScheme:e.authenticationScheme||Xre.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Wle.HOME_ACCOUNT_ID}}),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(s)]}))}))},t.prototype.executeTokenRequest=function(e,t){var n,r,o;return Ere(this,void 0,void 0,(function(){var i,a,s,l,c,u;return kre(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Uoe.RefreshTokenClientExecuteTokenRequest,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Uoe.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Uoe.RefreshTokenClientCreateTokenRequestBody,e.correlationId),a=this.createTokenQueryParameters(e),s=wse.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(e)];case 1:return l=d.sent(),c=this.createTokenRequestHeaders(e.ccsCredential),u={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostToTokenEndpoint(s,l,c,u).then((function(e){return null===i||void 0===i||i.endMeasurement({success:!0}),e})).catch((function(e){throw null===i||void 0===i||i.endMeasurement({success:!1}),e}))]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n,r;return Ere(this,void 0,void 0,(function(){var o,i,a,s,l,c,u;return kre(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Uoe.RefreshTokenClientCreateTokenRequestBody,e.correlationId),o=e.correlationId,i=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Uoe.BaseClientCreateTokenRequestHeaders,o),(a=new Sce).addClientId(this.config.authOptions.clientId),a.addScopes(e.scopes),a.addGrantType(Lre.REFRESH_TOKEN_GRANT),a.addClientInfo(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addThrottling(),this.serverTelemetryManager&&a.addServerTelemetry(this.serverTelemetryManager),a.addCorrelationId(o),a.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&a.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,a.addClientAssertion(s.assertion),a.addClientAssertionType(s.assertionType)),e.authenticationScheme!==Xre.POP?[3,2]:(l=new Ece(this.cryptoUtils,this.performanceClient),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Uoe.PopTokenGenerateCnf,e.correlationId),[4,l.generateCnf(e)]);case 1:return c=d.sent(),a.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Xre.SSH){if(!e.sshJwk)throw null===i||void 0===i||i.endMeasurement({success:!1}),kse.createMissingSshJwkError();a.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!$ie.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Wle.HOME_ACCOUNT_ID:try{u=rle(e.ccsCredential.credential),a.addCcsOid(u)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}break;case Wle.UPN:a.addCcsUpn(e.ccsCredential.credential)}return null===i||void 0===i||i.endMeasurement({success:!0}),[2,a.createQueryString()]}}))}))},t}(xce),Lce=function(e){function t(t,n){return e.call(this,t,n)||this}return xre(t,e),t.prototype.acquireToken=function(e){return Ere(this,void 0,void 0,(function(){var t;return kre(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,n.sent()];case 2:if((t=n.sent())instanceof Jie&&t.errorCode===Wie.code)return[2,new Oce(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},t.prototype.acquireCachedToken=function(e){var t,n,r,o;return Ere(this,void 0,void 0,(function(){var i,a;return kre(this,(function(s){switch(s.label){case 0:if(!e)throw kse.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(toe.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Jie.createRefreshRequiredError();if(!e.account)throw Jie.createNoAccountInSilentRequestError();if(i=e.authority||this.authority.getPreferredCache(),!(a=this.cacheManager.readCacheRecord(e.account,e,i)).accessToken)throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(toe.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Jie.createRefreshRequiredError();if(Jse.wasClockTurnedBack(a.accessToken.cachedAt)||Jse.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(toe.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Jie.createRefreshRequiredError();if(a.accessToken.refreshOn&&Jse.isTokenExpired(a.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(toe.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Jie.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(a,e)];case 1:return[2,s.sent()]}}))}))},t.prototype.generateResultFromCacheRecord=function(e,t){return Ere(this,void 0,void 0,(function(){var n,r;return kre(this,(function(o){switch(o.label){case 0:if(e.idToken&&(n=new $se(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(!(r=null===n||void 0===n?void 0:n.claims.auth_time))throw Jie.createAuthTimeNotFoundError();$se.checkMaxAge(r,t.maxAge)}return[4,wce.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,o.sent()]}}))}))},t}(xce),Hce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i;return Koe(this,(function(a){switch(a.label){case 0:return t=this.performanceClient.startMeasurement(Uoe.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(foe.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:r=a.sent(),this.logger.verbose("Silent auth client created"),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,r.acquireCachedToken(e)];case 3:return o=a.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw(i=a.sent())instanceof jae&&i.errorCode===Mae.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),t.endMeasurement({errorCode:i instanceof eie&&i.errorCode||void 0,subErrorCode:i instanceof eie&&i.subError||void 0,success:!1}),i;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(jae.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r;return Koe(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Lce(r,this.performanceClient)]}}))}))},t.prototype.initializeSilentRequest=function(e,t){return qoe(this,void 0,void 0,(function(){var n;return Koe(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Uoe.InitializeBaseRequest,this.correlationId),n=[Goe({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,Goe.apply(void 0,[Goe.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}}))}))},t}(Bce),Vce=function(e){function t(t,n,r,o,i,a,s,l,c,u,d,p){var h=e.call(this,t,n,r,o,i,a,l,c,p)||this;return h.apiId=s,h.accountId=u,h.nativeMessageHandler=c,h.nativeStorageManager=d,h.silentCacheClient=new Hce(t,h.nativeStorageManager,r,o,i,a,l,c,p),h}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return Koe(this,(function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(Uoe.NativeInteractionClientAcquireToken,e.correlationId),n=Jse.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=l.sent(),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return o=l.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return l.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return i={method:coe.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(i)];case 6:return a=l.sent(),s=this.validateNativeResponse(a),[2,this.handleNativeResponse(s,r,n).then((function(e){return t.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e}))]}}))}))},t.prototype.createSilentCacheRequest=function(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:ale.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r;return Koe(this,(function(o){switch(o.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Jie.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw Jie.createNoAccountFoundError();o.label=1;case 1:return o.trys.push([1,3,,4]),r=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(r)];case 2:return[2,o.sent()];case 3:throw o.sent();case 4:return[2]}}))}))},t.prototype.acquireTokenRedirect=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Koe(this,(function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=s.sent(),n={method:coe.GetToken,request:t},s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return r=s.sent(),this.validateNativeResponse(r),[3,5];case 4:if((o=s.sent())instanceof $ae&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(poe.NATIVE_REQUEST,JSON.stringify(t),!0),i={apiId:foe.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(a,i)];case 6:return s.sent(),[2]}}))}))},t.prototype.handleRedirectPromise=function(){return qoe(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,s;return Koe(this,(function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=joe(e,["prompt"]),t&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(poe.NATIVE_REQUEST)),r={method:coe.GetToken,request:n},o=Jse.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return i=l.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,n,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=l.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}}))}))},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r,o,i,a,s,l;return Koe(this,(function(c){switch(c.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw $ae.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=c.sent(),o=r.getPreferredCache(),i=this.createIdTokenObj(e),a=this.createHomeAccountIdentifier(e,i),s=this.createAccountEntity(e,a,i,o),[4,this.generateAuthenticationResult(e,t,i,s,r.canonicalAuthority,n)];case 2:return l=c.sent(),this.cacheAccount(s),this.cacheNativeTokens(e,t,a,i,l.accessToken,l.tenantId,n),[2,l]}}))}))},t.prototype.createIdTokenObj=function(e){return new $se(e.id_token||Rre.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return ile.generateHomeAccountId(e.client_info||Rre.EMPTY_STRING,Ase.Default,this.logger,this.browserCrypto,t)},t.prototype.createAccountEntity=function(e,t,n,r){return ile.createAccount(e.client_info,t,n,void 0,void 0,void 0,r,e.account.id)},t.prototype.generateScopes=function(e,t){return e.scope?ale.fromString(e.scope):ale.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r;return Koe(this,(function(o){switch(o.label){case 0:if(t.tokenType!==Xre.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new Ece(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw Jie.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,r)];case 1:return[2,o.sent()];case 2:return[2,e.access_token]}}))}))},t.prototype.generateAuthenticationResult=function(e,t,n,r,o,i){return qoe(this,void 0,void 0,(function(){var a,s,l,c,u,d,p;return Koe(this,(function(h){switch(h.label){case 0:return a=this.addTelemetryFromNativeResponse(e),s=e.scope?ale.fromString(e.scope):ale.fromString(t.scope),l=e.account.properties||{},c=l.UID||n.claims.oid||n.claims.sub||Rre.EMPTY_STRING,u=l.TenantId||n.claims.tid||Rre.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return d=h.sent(),p=t.tokenType===Xre.POP?Xre.POP:Xre.BEARER,[2,{authority:o,uniqueId:c,tenantId:u,scopes:s.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:d,fromCache:!!a&&this.isResponseFromCache(a),expiresOn:new Date(1e3*Number(i+e.expires_in)),tokenType:p,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}]}}))}))},t.prototype.cacheAccount=function(e){var t=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch((function(e){t.logger.error("Error occurred while removing account context from browser storage. "+e)}))},t.prototype.cacheNativeTokens=function(e,t,n,r,o,i,a){var s=tle.createIdTokenEntity(n,t.authority,e.id_token||Rre.EMPTY_STRING,t.clientId,r.claims.tid||Rre.EMPTY_STRING);this.nativeStorageManager.setIdTokenCredential(s);var l=a+(t.tokenType===Xre.POP?Rre.SHR_NONCE_VALIDITY:("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),c=this.generateScopes(e,t),u=ele.createAccessTokenEntity(n,t.authority,o,t.clientId,i,c.printScopes(),l,0,this.browserCrypto);this.nativeStorageManager.setAccessTokenCredential(u)},t.prototype.addTelemetryFromNativeResponse=function(e){var t=this.getMATSFromResponse(e);return t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw $ae.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(eDe){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return"undefined"===typeof e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u=this;return Koe(this,(function(d){switch(d.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,(n=new wse(t)).validateAsUri(),r=e.scopes,o=joe(e,["scopes"]),(i=new ale(r||[])).appendScopes(Nre),a=function(){switch(u.apiId){case foe.ssoSilent:case foe.acquireTokenSilent_silentFlow:return u.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Bre.NONE}if(e.prompt)switch(e.prompt){case Bre.NONE:case Bre.CONSENT:case Bre.LOGIN:return u.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw u.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),jae.createNativePromptParameterNotSupportedError()}else u.logger.trace("initializeNativeRequest: prompt was not provided")},s=Goe(Goe({},o),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:i.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Goe(Goe(Goe({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:woe}),extendedExpiryToken:!1}),e.authenticationScheme!==Xre.POP?[3,2]:(l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new Ece(this.browserCrypto).generateCnf(l)]);case 1:c=d.sent(),s.reqCnf=c.reqCnfHash,s.keyId=c.kid,d.label=2;case 2:return[2,s]}}))}))},t}(Fce),zce=function(){function e(e,t,n,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){var o,i,a;return Koe(this,(function(s){if(this.performanceClient.addQueueMeasurement(Uoe.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),$ie.isEmpty(e))throw jae.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw Jie.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(eDe){throw eDe instanceof Dse&&eDe.subError===pae.code?jae.createUserCancelledError():eDe}return this.performanceClient.setPreQueueTime(Uoe.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(a,t,n,r)]}))}))},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,o){return void 0===o&&(o=!0),qoe(this,void 0,void 0,(function(){var i,a,s,l,c,u;return Koe(this,(function(d){switch(d.label){case 0:if(this.performanceClient.addQueueMeasurement(Uoe.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),i=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(i)))throw Jie.createStateNotFoundError("Cached State");return s=this.browserStorage.generateNonceKey(a),l=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Uoe.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)]):[3,2];case 1:d.sent(),d.label=2;case 2:return o&&(e.nonce=l||void 0),e.state=a,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),this.performanceClient.setPreQueueTime(Uoe.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return u=d.sent(),this.browserStorage.cleanRequestByState(t),[2,u]}}))}))},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r,o;return Koe(this,(function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,Nce.createDiscoveredInstance(r,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=i.sent(),this.authModule.updateAuthority(o),[2]}}))}))},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(poe.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(eDe){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Uce=function(e){function t(t,n,r,o,i,a,s,l,c,u){var d=e.call(this,t,n,r,o,i,a,s,c,u)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=l,d}return zoe(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||Nre,e.authority||this.config.auth.authority),n=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var r=this.openSizedPopup("about:blank",t,n);return this.acquireTokenPopupAsync(e,t,n,r)}catch(eDe){return Promise.reject(eDe)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,o=e&&e.mainWindowRedirectUri,i=(null===e||void 0===e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,i,r,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var a=this.openSizedPopup("about:blank",n,i);return this.logoutPopupAsync(t,n,i,r,a,o)}catch(eDe){return Promise.reject(eDe)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){var o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C=this;return Koe(this,(function(S){switch(S.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(foe.acquireTokenPopup),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,goe.Popup)];case 1:i=S.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||Rre.EMPTY_STRING,i.account||null),S.label=2;case 2:return S.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return a=S.sent(),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 4:return s=S.sent(),this.logger.verbose("Auth code client created"),l=ese.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),c=void 0,l&&(c=this.performanceClient.startMeasurement(Uoe.FetchAccountIdWithNativeBroker,e.correlationId)),[4,s.getAuthCodeUrl(Goe(Goe({},i),{nativeBroker:l}))];case 5:return u=S.sent(),d=new zce(s,this.browserStorage,a,this.logger,this.performanceClient),p={popup:r,popupName:t,popupWindowAttributes:n},h=this.initiateAuthRequest(u,p),this.eventHandler.emitEvent(Moe.POPUP_OPENED,goe.Popup,{popupWindow:h},null),[4,this.monitorPopupForHash(h)];case 6:if(m=S.sent(),f=wse.getDeserializedHash(m),g=this.validateAndExtractStateFromHash(f,goe.Popup,i.correlationId),yce.removeThrottle(this.browserStorage,this.config.auth.clientId,a),f.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),c&&c.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw jae.createNativeConnectionNotEstablishedError();return v=new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,f.accountId,this.nativeStorage,i.correlationId),y=ece.parseRequestState(this.browserCrypto,g).userRequestState,[2,v.acquireToken(Goe(Goe({},i),{state:y,prompt:void 0})).finally((function(){C.browserStorage.cleanRequestByState(g)}))]}return[4,d.handleCodeResponseFromHash(m,g,s.authority,this.networkClient)];case 7:return[2,S.sent()];case 8:throw b=S.sent(),r&&r.close(),b instanceof eie&&b.setCorrelationId(this.correlationId),o.cacheFailedRequest(b),this.browserStorage.cleanRequestByState(i.state),b;case 9:return[2]}}))}))},t.prototype.logoutPopupAsync=function(e,t,n,r,o,i){return qoe(this,void 0,void 0,(function(){var a,s,l,c,u,d,p;return Koe(this,(function(h){switch(h.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Moe.LOGOUT_START,goe.Popup,e),a=this.initializeServerTelemetryManager(foe.logoutPopup),h.label=1;case 1:return h.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return h.sent(),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(a,r)];case 3:return s=h.sent(),this.logger.verbose("Auth code client created"),l=s.getLogoutUri(e),this.eventHandler.emitEvent(Moe.LOGOUT_SUCCESS,goe.Popup,e),c=this.openPopup(l,{popupName:t,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(Moe.POPUP_OPENED,goe.Popup,{popupWindow:c},null),[4,this.waitForLogoutPopup(c)];case 4:return h.sent(),i?(u={apiId:foe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=wse.getAbsoluteUrl(i,Tse.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+d),this.navigationClient.navigateInternal(d,u)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=h.sent(),o&&o.close(),p instanceof eie&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Moe.LOGOUT_FAILURE,goe.Popup,null,p),this.eventHandler.emitEvent(Moe.LOGOUT_END,goe.Popup),a.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(Moe.LOGOUT_END,goe.Popup),[2]}}))}))},t.prototype.initiateAuthRequest=function(e,t){if($ie.isEmpty(e))throw this.logger.error("Navigate url is empty"),jae.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise((function(n,r){var o=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,i=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var a=setInterval((function(){if(e.closed)return t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(a),void r(jae.createUserCancelledError());var s=Rre.EMPTY_STRING,l=Rre.EMPTY_STRING;try{s=e.location.href,l=e.location.hash}catch(eDe){}$ie.isEmpty(s)||"about:blank"===s||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),i++,l?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(a),t.cleanPopup(e),wse.hashContainsKnownProperties(l)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(l)):(t.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),t.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+l),r(jae.createHashDoesNotContainKnownPropertiesError()))):i>o&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(jae.createMonitorPopupTimeoutError())))}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.waitForLogoutPopup=function(e){var t=this;return new Promise((function(n){t.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var r=setInterval((function(){e.closed&&(t.logger.error("PopupHandler.waitForLogoutPopup - window closed"),t.cleanPopup(),clearInterval(r),n());var o=Rre.EMPTY_STRING;try{o=e.location.href}catch(eDe){}$ie.isEmpty(o)||"about:blank"===o||(t.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(r),t.cleanPopup(e),n())}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.openPopup=function(e,t){try{var n=void 0;if(t.popup?(n=t.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):"undefined"===typeof t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw jae.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(eDe){throw this.logger.error("error opening popup "+eDe.message),this.browserStorage.setInteractionInProgress(!1),jae.createPopupWindowError(eDe.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,o,i,a,s=window.screenLeft?window.screenLeft:window.screenX,l=window.screenTop?window.screenTop:window.screenY,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,d=null===(r=n.popupSize)||void 0===r?void 0:r.width,p=null===(o=n.popupSize)||void 0===o?void 0:o.height,h=null===(i=n.popupPosition)||void 0===i?void 0:i.top,m=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!d||d<0||d>c)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),d=boe),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=Coe),(!h||h<0||h>u)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),h=Math.max(0,u/2-Coe/2+l)),(!m||m<0||m>c)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),m=Math.max(0,c/2-boe/2+s)),window.open(e,t,"width="+d+", height="+p+", top="+h+", left="+m+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(goe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,t){return Soe+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return Soe+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(Bce),Wce=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.browserCrypto=i,s}return zoe(t,e),t.prototype.initiateAuthRequest=function(e,t){return qoe(this,void 0,void 0,(function(){var n;return Koe(this,(function(r){switch(r.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),$ie.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(poe.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(poe.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:foe.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!==typeof t.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===t.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:case 5:return r.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,t.navigationClient.navigateExternal(e,n)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),jae.createEmptyNavigationUriError();case 8:return[2]}}))}))},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return qoe(this,void 0,void 0,(function(){var o,i,a,s,l,c,u;return Koe(this,(function(d){switch(d.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),$ie.isEmpty(e))throw jae.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw Jie.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(eDe){throw eDe instanceof Dse&&eDe.subError===pae.code?jae.createUserCancelledError():eDe}return s=this.browserStorage.generateNonceKey(i),l=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:d.sent(),d.label=2;case 2:return a.nonce=l||void 0,a.state=i,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return u=d.sent(),this.browserStorage.cleanRequestByState(t),[2,u]}}))}))},t}(zce),Gce=function(e){function t(t,n,r,o,i,a,s,l,c,u){var d=e.call(this,t,n,r,o,i,a,s,c,u)||this;return d.nativeStorage=l,d}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u=this;return Koe(this,(function(d){switch(d.label){case 0:return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,goe.Redirect)];case 1:t=d.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||Rre.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(foe.acquireTokenRedirect),r=function(e){e.persisted&&(u.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),u.browserStorage.cleanRequestByState(t.state))},d.label=2;case 2:return d.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return o=d.sent(),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return i=d.sent(),this.logger.verbose("Auth code client created"),a=new Wce(i,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,i.getAuthCodeUrl(Goe(Goe({},t),{nativeBroker:ese.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return s=d.sent(),l=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+l),window.addEventListener("pageshow",r),[4,a.initiateAuthRequest(s,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,d.sent()];case 7:throw(c=d.sent())instanceof eie&&c.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(t.state),c;case 8:return[2]}}))}))},t.prototype.handleRedirectPromise=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p;return Koe(this,(function(h){switch(h.label){case 0:t=this.initializeServerTelemetryManager(foe.handleRedirectPromise),h.label=1;case 1:if(h.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(n=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(goe.Redirect),[2,null];r=void 0;try{o=wse.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(o,goe.Redirect),this.logger.verbose("State extracted from hash")}catch(eDe){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+eDe),this.browserStorage.cleanRequestByInteractionType(goe.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(poe.ORIGIN_URI,!0)||Rre.EMPTY_STRING,a=wse.removeHashFromUrl(i),s=wse.removeHashFromUrl(window.location.href),a===s&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return l=h.sent(),i.indexOf("#")>-1&&Tse.replaceHash(i),[2,l];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)]);case 4:return Tse.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(poe.URL_HASH,n,!0),c={apiId:foe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},u=!0,i&&"null"!==i?[3,6]:(d=Tse.getHomepage(),this.browserStorage.setTemporaryCache(poe.ORIGIN_URI,d,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(d,c)]));case 5:return u=h.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,c)];case 7:u=h.sent(),h.label=8;case 8:if(!u)return[2,this.handleHash(n,r,t)];h.label=9;case 9:return[2,null];case 10:throw(p=h.sent())instanceof eie&&p.setCorrelationId(this.correlationId),t.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(goe.Redirect),p;case 11:return[2]}}))}))},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),wse.hashContainsKnownProperties(e))return Tse.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(poe.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(poe.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),t},t.prototype.handleHash=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r,o,i,a,s,l,c=this;return Koe(this,(function(u){switch(u.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(o=wse.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw jae.createNativeConnectionNotEstablishedError();return i=new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,r.correlationId),a=ece.parseRequestState(this.browserCrypto,t).userRequestState,[2,i.acquireToken(Goe(Goe({},r),{state:a,prompt:void 0})).finally((function(){c.browserStorage.cleanRequestByState(t)}))]}if(!(s=this.browserStorage.getCachedAuthority(t)))throw jae.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,s)];case 1:return l=u.sent(),this.logger.verbose("Auth code client created"),yce.removeThrottle(this.browserStorage,this.config.auth.clientId,r),[4,new Wce(l,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,l.authority,this.networkClient)];case 2:return[2,u.sent()]}}))}))},t.prototype.logout=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Koe(this,(function(s){switch(s.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(foe.logout),s.label=1;case 1:return s.trys.push([1,10,,11]),this.eventHandler.emitEvent(Moe.LOGOUT_START,goe.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return s.sent(),r={apiId:foe.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return o=s.sent(),this.logger.verbose("Auth code client created"),i=o.getLogoutUri(t),this.eventHandler.emitEvent(Moe.LOGOUT_SUCCESS,goe.Redirect,t),e&&"function"===typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(i)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(i,r)]):[3,7];case 4:return s.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),s.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(i,r)];case 8:return s.sent(),[2];case 9:return[3,11];case 10:throw(a=s.sent())instanceof eie&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.eventHandler.emitEvent(Moe.LOGOUT_FAILURE,goe.Redirect,null,a),this.eventHandler.emitEvent(Moe.LOGOUT_END,goe.Redirect),a;case 11:return this.eventHandler.emitEvent(Moe.LOGOUT_END,goe.Redirect),[2]}}))}))},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return wse.getAbsoluteUrl(t,Tse.getCurrentUri())},t}(Bce),jce=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.navigateFrameWait=i.navigateFrameWait,s.pollIntervalMilliseconds=i.pollIntervalMilliseconds,s}return zoe(t,e),t.prototype.initiateAuthRequest=function(e){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(Uoe.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),$ie.isEmpty(e))throw this.logger.info("Navigate url is empty"),jae.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Uoe.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,this.loadFrameSync(e)]}}))}))},t.prototype.monitorIframeForHash=function(e,t){var n=this;return this.performanceClient.addQueueMeasurement(Uoe.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise((function(r,o){t<fce&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default ("+"6000ms). This may result in timeouts.");var i=window.performance.now()+t,a=setInterval((function(){if(window.performance.now()>i)return n.removeHiddenIframe(e),clearInterval(a),void o(jae.createMonitorIframeTimeoutError());var t=Rre.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:Rre.EMPTY_STRING}catch(eDe){}if(!$ie.isEmpty(t)){var l=s?s.location.hash:Rre.EMPTY_STRING;return wse.hashContainsKnownProperties(l)?(n.removeHiddenIframe(e),clearInterval(a),void r(l)):void 0}}),n.pollIntervalMilliseconds)}))},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(Uoe.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise((function(n,r){var o=t.createHiddenIframe();setTimeout((function(){o?(o.src=e,n(o)):r("Unable to load iframe")}),t.navigateFrameWait)}))},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(zce),qce=function(e){function t(t,n,r,o,i,a,s,l,c,u,d){var p=e.call(this,t,n,r,o,i,a,l,u,d)||this;return p.apiId=s,p.nativeStorage=c,p}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i;return Koe(this,(function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(Uoe.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(Uoe.SilentIframeClientAcquireToken,e.correlationId),$ie.isEmpty(e.loginHint)&&$ie.isEmpty(e.sid)&&(!e.account||$ie.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Bre.NONE&&e.prompt!==Bre.NO_SESSION)throw t.endMeasurement({success:!1}),jae.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(Goe(Goe({},e),{prompt:e.prompt||Bre.NONE}),goe.Silent)];case 1:n=a.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||Rre.EMPTY_STRING,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),a.label=2;case 2:return a.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return o=a.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Uoe.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(o,n).then((function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e}))];case 4:return[2,a.sent()];case 5:throw(i=a.sent())instanceof eie&&i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:i instanceof eie&&i.errorCode||void 0,subErrorCode:i instanceof eie&&i.subError||void 0,success:!1}),i;case 6:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(jae.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return qoe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,c,u,d=this;return Koe(this,(function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=p.sent(),this.performanceClient.setPreQueueTime(Uoe.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(Goe(Goe({},t),{nativeBroker:ese.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=p.sent(),o=new jce(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Uoe.SilentHandlerInitiateAuthRequest,t.correlationId),[4,o.initiateAuthRequest(r)];case 3:return i=p.sent(),this.performanceClient.setPreQueueTime(Uoe.SilentHandlerMonitorIframeForHash,t.correlationId),[4,o.monitorIframeForHash(i,this.config.system.iframeHashTimeout)];case 4:if(a=p.sent(),s=wse.getDeserializedHash(a),l=this.validateAndExtractStateFromHash(s,goe.Silent,n.correlationId),s.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw jae.createNativeConnectionNotEstablishedError();return c=new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,this.correlationId),u=ece.parseRequestState(this.browserCrypto,l).userRequestState,[2,c.acquireToken(Goe(Goe({},t),{state:u,prompt:t.prompt||Bre.NONE})).finally((function(){d.browserStorage.cleanRequestByState(l)}))]}return this.performanceClient.setPreQueueTime(Uoe.HandleCodeResponseFromHash,t.correlationId),[2,o.handleCodeResponseFromHash(a,l,e.authority,this.networkClient)]}}))}))},t}(Bce),Kce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return Koe(this,(function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(Uoe.InitializeBaseRequest,e.correlationId),n=[Goe({},e)],[4,this.initializeBaseRequest(e)];case 1:return t=Goe.apply(void 0,n.concat([s.sent()])),r=this.performanceClient.startMeasurement(Uoe.SilentRefreshClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(foe.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,t.authority,t.azureCloudOptions)];case 2:return i=s.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(Uoe.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,i.acquireTokenByRefreshToken(t).then((function(e){return r.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e})).catch((function(e){throw e instanceof eie&&e.setCorrelationId(a.correlationId),o.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))]}}))}))},t.prototype.logout=function(){return Promise.reject(jae.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return qoe(this,void 0,void 0,(function(){var r;return Koe(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Oce(r,this.performanceClient)]}}))}))},t}(Bce),Yce=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!==typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw jae.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,o,i=new $se(t.id_token,this.cryptoObj);if(e.account){var a=this.loadAccount(i,e.account.environment,void 0,void 0,e.account.homeAccountId);r=new _ce(a,this.loadIdToken(i,a.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,a.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,a.homeAccountId,e.account.environment))}else{if(!e.authority)throw jae.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=Rce.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(o=new Rce(s,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");a=this.loadAccount(i,o.hostnameAndPort,n.clientInfo,o.authorityType);r=new _ce(a,this.loadIdToken(i,a.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,a.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,o.hostnameAndPort))}else{if(!t.client_info)throw jae.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response");a=this.loadAccount(i,o.hostnameAndPort,t.client_info,o.authorityType);r=new _ce(a,this.loadIdToken(i,a.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,a.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,o.hostnameAndPort))}}return this.generateAuthenticationResult(e,i,r,o)},e.prototype.loadAccount=function(e,t,n,r,o){var i;if(o?i=o:void 0!==r&&n&&(i=ile.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!i)throw jae.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?ile.createAccount(n,i,e,void 0,void 0,void 0,t):ile.createGenericAccount(i,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw jae.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var o=tle.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw jae.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(e,t,n,r,o,i){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw jae.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!i.extendedExpiresOn)throw jae.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new ale(e.scopes).printScopes(),s=i.expiresOn||t.expires_in+(new Date).getTime()/1e3,l=i.extendedExpiresOn,c=ele.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,o,a,s,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(c),c;throw jae.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(e,t,n,r){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=Xle.createRefreshTokenEntity(n,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw jae.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var o,i,a,s,l=Rre.EMPTY_STRING,c=[],u=null;(null===n||void 0===n?void 0:n.accessToken)&&(l=n.accessToken.secret,c=ale.fromString(n.accessToken.target).asArray(),u=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var d=(null===t||void 0===t?void 0:t.claims.oid)||(null===t||void 0===t?void 0:t.claims.sub)||Rre.EMPTY_STRING,p=(null===t||void 0===t?void 0:t.claims.tid)||Rre.EMPTY_STRING;return{authority:r?r.canonicalAuthority:Rre.EMPTY_STRING,uniqueId:d,tenantId:p,scopes:c,account:(null===n||void 0===n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:Rre.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:l,fromCache:!0,expiresOn:u,correlationId:e.correlationId||Rre.EMPTY_STRING,requestId:Rre.EMPTY_STRING,extExpiresOn:s,familyId:Rre.EMPTY_STRING,tokenType:(null===(o=null===n||void 0===n?void 0:n.accessToken)||void 0===o?void 0:o.tokenType)||Rre.EMPTY_STRING,state:Rre.EMPTY_STRING,cloudGraphHostName:(null===(i=null===n||void 0===n?void 0:n.account)||void 0===i?void 0:i.cloudGraphHostName)||Rre.EMPTY_STRING,msGraphHost:(null===(a=null===n||void 0===n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||Rre.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),Xce=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return zoe(t,e),t}(Ice),Qce=function(e){function t(t,n,r,o,i,a,s,l,c,u){var d=e.call(this,t,n,r,o,i,a,l,c,u)||this;return d.apiId=s,d}return zoe(t,e),t.prototype.acquireToken=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Koe(this,(function(s){switch(s.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw jae.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,goe.Silent)];case 1:t=s.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||Rre.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),s.label=2;case 2:return s.trys.push([2,4,,5]),r=Goe(Goe({},t),{code:e.code}),this.performanceClient.setPreQueueTime(Uoe.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return o=s.sent(),i=new Xce(o),this.logger.verbose("Auth code client created"),[2,new jce(i,this.browserStorage,r,this.logger,this.config.system,this.performanceClient).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,i.authority,this.networkClient,!1)];case 4:throw(a=s.sent())instanceof eie&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(t.state),a;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(jae.createSilentLogoutUnsupportedError())},t}(Bce),Zce=function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},e.makeStartMark=function(e,t){return"msal.start."+e+"."+t},e.makeEndMark=function(e,t){return"msal.end."+e+"."+t},e.supportsBrowserPerformance=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.performance&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure&&"function"===typeof window.performance.clearMarks&&"function"===typeof window.performance.clearMeasures&&"function"===typeof window.performance.getEntriesByName},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEach((function(n){var r=e.makeMeasureName(n.name,t);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))}))}catch(eDe){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(eDe){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(eDe){}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch(eDe){}return null},e}(),Jce=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return l.browserCrypto=new Ble(l.logger,s),l.guidGenerator=new wle(l.browserCrypto),l}return zoe(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new Zce(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var t=this.eventsByCorrelationId.get(e.event.correlationId),n=t&&t.eventId===e.event.eventId,r=[];n&&(null===t||void 0===t?void 0:t.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach((function(e){r.push(Goe({},e))})),r.length>0&&Zce.flushMeasurements(e.event.correlationId,r)},t.prototype.supportsBrowserPerformanceNow=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.performance&&"function"===typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var r=this,o=this.getPageVisibility(),i=e.prototype.startMeasurement.call(this,t,n);return Goe(Goe({},i),{endMeasurement:function(e){var t=i.endMeasurement(Goe({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},e));return r.deleteIncompleteSubMeasurements(i),t},discardMeasurement:function(){i.discardMeasurement(),r.deleteIncompleteSubMeasurements(i),i.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(this.supportsBrowserPerformanceNow())if(t){var n=this.preQueueTimeByCorrelationId.get(t);n&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+n.name+" found",t),this.addQueueMeasurement(n.name,t,void 0,!0)),this.preQueueTimeByCorrelationId.set(t,{name:e,time:window.performance.now()})}else this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e)},t.prototype.addQueueMeasurement=function(t,n,r,o){if(this.supportsBrowserPerformanceNow())if(n){var i=e.prototype.getPreQueueTime.call(this,t,n);if(i){var a=window.performance.now(),s=r||e.prototype.calculateQueuedTime.call(this,i,a);return e.prototype.addQueueMeasurement.call(this,t,n,s,o)}}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},t}(jle),$ce=function(){function e(e){this.isBrowserEnvironment="undefined"!==typeof window,this.config=function(e,t){var n=e.auth,r=e.cache,o=e.system,i=e.telemetry,a={clientId:Rre.EMPTY_STRING,authority:""+Rre.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:Rre.EMPTY_STRING,authorityMetadata:Rre.EMPTY_STRING,redirectUri:Rre.EMPTY_STRING,postLogoutRedirectUri:Rre.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:tce.AAD,azureCloudOptions:{azureCloudInstance:nce.None,tenant:Rre.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:uoe.SessionStorage,temporaryCacheLocation:uoe.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==uoe.LocalStorage)},l={loggerCallback:function(){},logLevel:Vle.Info,piiLoggingEnabled:!1},c=Goe(Goe({},ace),{loggerOptions:l,networkClient:t?Tse.getBrowserNetworkClient():hce,navigationClient:new mce,loadFrameTimeout:0,windowHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||6e4,iframeHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||fce,navigateFrameWait:t&&Tse.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===o||void 0===o?void 0:o.nativeBrokerHandshakeTimeout)||2e3,pollIntervalMilliseconds:xoe,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=Goe(Goe({},o),{loggerOptions:(null===o||void 0===o?void 0:o.loggerOptions)||l}),d={application:{appName:Rre.EMPTY_STRING,appVersion:Rre.EMPTY_STRING}};return{auth:Goe(Goe({},a),n),cache:Goe(Goe({},s),r),system:Goe(Goe({},c),u),telemetry:Goe(Goe({},d),i)}}(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Gle(this.config.system.loggerOptions,tse,nse),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Jce(this.config.auth.clientId,this.config.auth.authority,this.logger,tse,nse,this.config.telemetry.application,this.config.system.cryptoOptions):new Kle(this.config.auth.clientId,this.config.auth.authority,this.logger,tse,nse,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Ule(this.logger,this.performanceClient,this.config.system.cryptoOptions):Yle,this.eventHandler=new vce(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new ice(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(e,t){var n={cacheLocation:uoe.MemoryStorage,temporaryCacheLocation:uoe.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};return new ice(e,n,Yle,t)}(this.config.auth.clientId,this.logger);var t={cacheLocation:uoe.MemoryStorage,temporaryCacheLocation:uoe.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};this.nativeInternalStorage=new ice(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new Yce(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return qoe(this,void 0,void 0,(function(){var e,t,n,r;return Koe(this,(function(o){switch(o.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(Uoe.InitializeClientApplication),this.eventHandler.emitEvent(Moe.INITIALIZE_START),!e)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),n=this,[4,ese.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=o.sent(),[3,4];case 3:return r=o.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(Moe.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}}))}))},e.prototype.handleRedirectPromise=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c=this;return Koe(this,(function(u){return this.logger.verbose("handleRedirectPromise called"),Tse.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||Rre.EMPTY_STRING,"undefined"===typeof(r=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_START,goe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),i=void 0,o&&ese.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),i=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),s=this.browserStorage.getTemporaryCache(poe.CORRELATION_ID,!0)||Rre.EMPTY_STRING,l=this.createRedirectClient(s),i=l.handleRedirectPromise(e)),r=i.then((function(e){e&&(t.length<c.getAllAccounts().length?(c.eventHandler.emitEvent(Moe.LOGIN_SUCCESS,goe.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, login success")):(c.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, acquire token success")));return c.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_END,goe.Redirect),e})).catch((function(e){throw t.length>0?c.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Redirect,null,e):c.eventHandler.emitEvent(Moe.LOGIN_FAILURE,goe.Redirect,null,e),c.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_END,goe.Redirect),e})),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])}))}))},e.prototype.acquireTokenRedirect=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return Koe(this,(function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(goe.Redirect),(n=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_START,goe.Redirect,e):this.eventHandler.emitEvent(Moe.LOGIN_START,goe.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=o.acquireTokenRedirect(e).catch((function(t){if(t instanceof $ae&&t.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(e.correlationId).acquireToken(e);if(t instanceof iie)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(e.correlationId).acquireToken(e);throw a.browserStorage.setInteractionInProgress(!1),t}))):(i=this.createRedirectClient(e.correlationId),r=i.acquireToken(e)),[2,r.catch((function(e){throw n?a.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Redirect,null,e):a.eventHandler.emitEvent(Moe.LOGIN_FAILURE,goe.Redirect,null,e),e}))]}))}))},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(Uoe.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(goe.Popup)}catch(eDe){return Promise.reject(eDe)}var o,i=this.getAllAccounts();(i.length>0?this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_START,goe.Popup,e):this.eventHandler.emitEvent(Moe.LOGIN_START,goe.Popup,e),this.canUseNative(e))?o=this.acquireTokenNative(e,foe.acquireTokenPopup).then((function(e){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(n){if(n instanceof $ae&&n.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(n instanceof iie)return t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),t.createPopupClient(e.correlationId).acquireToken(e);throw t.browserStorage.setInteractionInProgress(!1),n})):o=this.createPopupClient(e.correlationId).acquireToken(e);return o.then((function(e){return i.length<t.getAllAccounts().length?t.eventHandler.emitEvent(Moe.LOGIN_SUCCESS,goe.Popup,e):t.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Popup,e),r.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){return i.length>0?t.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Popup,null,e):t.eventHandler.emitEvent(Moe.LOGIN_FAILURE,goe.Popup,null,e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),Promise.reject(e)}))},e.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(e){var t;return qoe(this,void 0,void 0,(function(){var n,r,o,i,a=this;return Koe(this,(function(s){return n=this.getRequestCorrelationId(e),r=Goe(Goe({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(goe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Uoe.SsoSilent,n),null===(t=this.ssoSilentMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(Moe.SSO_SILENT_START,goe.Silent,r),this.canUseNative(r)?o=this.acquireTokenNative(r,foe.ssoSilent).catch((function(e){if(e instanceof $ae&&e.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(r.correlationId).acquireToken(r);throw e})):(i=this.createSilentIframeClient(r.correlationId),o=i.acquireToken(r)),[2,o.then((function(e){var t,n;return a.eventHandler.emitEvent(Moe.SSO_SILENT_SUCCESS,goe.Silent,e),null===(t=a.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=a.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw a.eventHandler.emitEvent(Moe.SSO_SILENT_FAILURE,goe.Silent,null,e),null===(t=a.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",a.trackPageVisibilityWithMeasurement)}))]}))}))},e.prototype.acquireTokenByCode=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i=this;return Koe(this,(function(a){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(goe.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_BY_CODE_START,goe.Silent,e),n=this.performanceClient.startMeasurement(Uoe.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw jae.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return r=e.code,(o=this.hybridAuthCodeResponses.get(r))?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync(Goe(Goe({},e),{correlationId:t})).then((function(e){return i.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_BY_CODE_SUCCESS,goe.Silent,e),i.hybridAuthCodeResponses.delete(r),n.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){throw i.hybridAuthCodeResponses.delete(r),i.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_BY_CODE_FAILURE,goe.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,foe.acquireTokenByCode,e.nativeAccountId).catch((function(e){throw e instanceof $ae&&e.isFatal()&&(i.nativeExtensionProvider=void 0),e}))];throw jae.createUnableToAcquireTokenFromNativePlatformError()}throw jae.createAuthCodeOrNativeAccountIdRequiredError()}catch(eDe){throw this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_BY_CODE_FAILURE,goe.Silent,null,eDe),n.endMeasurement({errorCode:eDe instanceof eie&&eDe.errorCode||void 0,subErrorCode:eDe instanceof eie&&eDe.subError||void 0,success:!1}),eDe}return[2]}))}))},e.prototype.acquireTokenByCodeAsync=function(e){var t;return qoe(this,void 0,void 0,(function(){var n=this;return Koe(this,(function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Uoe.AcquireTokenByCodeAsync,e.correlationId),null===(t=this.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),[4,this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then((function(e){var t;return null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)}))];case 1:return[2,r.sent()]}}))}))},e.prototype.acquireTokenFromCache=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){switch(this.performanceClient.addQueueMeasurement(Uoe.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Doe.Default:case Doe.AccessToken:case Doe.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw Jie.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenByRefreshToken=function(e,t){return qoe(this,void 0,void 0,(function(){var n;return Koe(this,(function(r){switch(this.performanceClient.addQueueMeasurement(Uoe.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Doe.Default:case Doe.AccessTokenAndRefreshToken:case Doe.RefreshToken:case Doe.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(Uoe.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw Jie.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenBySilentIframe=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){return this.performanceClient.addQueueMeasurement(Uoe.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(Uoe.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]}))}))},e.prototype.logout=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(Goe({correlationId:t},e))]}))}))},e.prototype.logoutRedirect=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(goe.Redirect),[2,this.createRedirectClient(t).logout(e)]}))}))},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(goe.Popup),this.createPopupClient(t).logout(e)}catch(eDe){return Promise.reject(eDe)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(void 0===t&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Tse.blockNonBrowserEnvironment(this.isBrowserEnvironment),Tse.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Tse.blockReloadInHiddenIframes(),Tse.blockAcquireTokenInPopups(),Tse.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===goe.Redirect&&this.config.cache.cacheLocation===uoe.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw yle.createInMemoryRedirectUnavailableError();e!==goe.Redirect&&e!==goe.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Tse.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return qoe(this,void 0,void 0,(function(){return Koe(this,(function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw jae.createNativeConnectionNotEstablishedError();return[2,new Vce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)]}))}))},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!ese.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Bre.NONE:case Bre.CONSENT:case Bre.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1)},e.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},e.prototype.createPopupClient=function(e){return new Uce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createRedirectClient=function(e){return new Gce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentIframeClient=function(e){return new qce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new Hce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new Kce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new Qce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},e.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(e){return(null===e||void 0===e?void 0:e.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():Rre.EMPTY_STRING},e}(),eue=function(e){function t(t){var n=e.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return zoe(t,e),t.prototype.loginRedirect=function(e){return qoe(this,void 0,void 0,(function(){var t;return Koe(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(Goe({correlationId:t},e||Poe))]}))}))},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(Goe({correlationId:t},e||Poe))},t.prototype.acquireTokenSilent=function(e){return qoe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l=this;return Koe(this,(function(c){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(Uoe.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(goe.Silent),this.logger.verbose("acquireTokenSilent called",t),!(r=e.account||this.getActiveAccount()))throw jae.createNoAccountError();return o={clientId:this.config.auth.clientId,authority:e.authority||Rre.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},i=JSON.stringify(o),"undefined"===typeof(a=this.activeSilentTokenRequests.get(i))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(Uoe.AcquireTokenSilentAsync,t),s=this.acquireTokenSilentAsync(Goe(Goe({},e),{correlationId:t}),r).then((function(t){return l.activeSilentTokenRequests.delete(i),n.addStaticFields({accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),n.endMeasurement({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:t.requestId}),t})).catch((function(e){throw l.activeSilentTokenRequests.delete(i),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.activeSilentTokenRequests.set(i,s),[2,s]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,a])}))}))},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,t){var n;return qoe(this,void 0,void 0,(function(){var r,o,i,a,s,l=this;return Koe(this,(function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Uoe.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_START,goe.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Uoe.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),ese.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=Goe(Goe({},e),{account:t}),r=this.acquireTokenNative(o,foe.acquireTokenSilent_silentFlow).catch((function(t){return qoe(l,void 0,void 0,(function(){return Koe(this,(function(n){if(t instanceof $ae&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw t}))}))})),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),i=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(Uoe.InitializeSilentRequest,e.correlationId),[4,i.initializeSilentRequest(e,t)];case 2:a=c.sent(),s=Goe(Goe({},e),{cacheLookupPolicy:e.cacheLookupPolicy||Doe.Default}),this.performanceClient.setPreQueueTime(Uoe.AcquireTokenFromCache,a.correlationId),r=this.acquireTokenFromCache(i,a,s).catch((function(t){if(s.cacheLookupPolicy===Doe.AccessToken)throw t;return Tse.blockReloadInHiddenIframes(),l.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_NETWORK_START,goe.Silent,a),l.performanceClient.setPreQueueTime(Uoe.AcquireTokenByRefreshToken,a.correlationId),l.acquireTokenByRefreshToken(a,s).catch((function(t){var n=t instanceof Dse,r=t instanceof iie,o=t.errorCode===yoe;if((!n||!o||r||s.cacheLookupPolicy===Doe.AccessTokenAndRefreshToken||s.cacheLookupPolicy===Doe.RefreshToken)&&s.cacheLookupPolicy!==Doe.Skip)throw t;return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),l.performanceClient.setPreQueueTime(Uoe.AcquireTokenBySilentIframe,a.correlationId),l.acquireTokenBySilentIframe(a)}))})),c.label=3;case 3:return[2,r.then((function(e){var t;return l.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Silent,e),null===(t=l.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw l.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Silent,null,e),null===(t=l.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",l.trackPageVisibility)}))]}}))}))},t}($ce),tue="",nue="channels",rue="createPerfMgr",oue="extensionConfig",iue="eventsSent",aue="eventsDiscarded",sue="eventsSendRequest",lue="perfEvent",cue="errorToConsole",uue="warnToConsole",due="constructor",pue=ge.RJ,hue=ge.Pw.freeze,mue=(ge.Pw.seal,ge.Pw.keys),fue=String[ge.hB],gue=fue.trim,vue=fue.endsWith,yue=fue.startsWith,bue=Date[ge.hB].toISOString,Cue=Array.isArray,Sue=ge.V4.toString,xue=ge.CY.toString,_ue=xue.call(ge.Pw),Eue=/-([a-z])/g,kue=/([^\w\d_$])/g,wue=/^(\d+[\w\d_$])/,Iue=Object.getPrototypeOf;function Pue(e,t){return typeof e===t}function Tue(e){return void 0===e||typeof e===ge.jA}function Due(e){return null===e||Tue(e)}function Aue(e){return!Due(e)}function Rue(e,t){return!(!e||!ge.CY.call(e,t))}function Nue(e){return!(!e||typeof e!==ge.fK)}function Mue(e){return!(!e||typeof e!==ge.cb)}function Fue(e){var t=e;return t&&Wue(t)&&(t=(t=(t=t.replace(Eue,(function(e,t){return t.toUpperCase()}))).replace(kue,"_")).replace(wue,(function(e,t){return"_"+t}))),t}function Bue(e,t){if(e)for(var n in e)ge.CY.call(e,n)&&t.call(e,n,e[n])}function Oue(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=vue?e.endsWith(t):function(e,t){var n=!1,r=t?t.length:0,o=e?e.length:0;if(r&&o&&o>=r&&!(n=e===t)){for(var i=o-1,a=r-1;a>=0;a--){if(e[i]!=t[a])return!1;i--}n=!0}return n}(e,t)),n}function Lue(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=yue?e.startsWith(t):function(e,t){var n=!1,r=t?t.length:0;if(e&&r&&e.length>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}(e,t)),n}function Hue(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Vue(e){return!(!e||"[object Date]"!==Sue.call(e))}var zue=Cue||function(e){return!(!e||"[object Array]"!==Sue.call(e))};function Uue(e){return!(!e||"[object Error]"!==Sue.call(e))}function Wue(e){return"string"===typeof e}function Gue(e){return"number"===typeof e}function jue(e){return"boolean"===typeof e}function que(e){var t=!1;if(e&&"object"===typeof e){var n=Iue?Iue(e):function(e){if(e){if(Iue)return Iue(e);var t=e.__proto__||e[ge.hB]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&ge.CY.call(n,due)&&(n=n.constructor),t=typeof n===ge.cb&&xue.call(n)===_ue):t=!0}return t}function Kue(e){if(e)return bue?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function Yue(e,t,n){var r=e.length;try{for(var o=0;o<r&&(!(o in e)||-1!==t.call(n||e,e[o],o,e));o++);}catch(eDe){}}function Xue(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e.length,o=n||0;try{for(var i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;i++)if(i in e&&e[i]===t)return i}catch(eDe){}}return-1}function Que(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var o=e.length,i=n||e;r=new Array(o);try{for(var a=0;a<o;a++)a in e&&(r[a]=t.call(i,e[a],e))}catch(eDe){}}return r}function Zue(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var o=e.length,i=0;if(arguments.length>=3)r=arguments[2];else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=t(r,e[i],i,e)),i++}return r}function Jue(e){return e&&(e=gue&&e.trim?e.trim():e.replace?e.replace(/^\s+|(?=\s)\s+$/g,tue):e),e}var $ue=!{toString:null}.propertyIsEnumerable("toString"),ede=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function tde(e){var t=typeof e;if(t===ge.cb||t===ge.fK&&null!==e||(0,fe.ZU)("objKeys called on non-object"),!$ue&&mue)return mue(e);var n=[];for(var r in e)e&&ge.CY.call(e,r)&&n.push(r);if($ue)for(var o=ede.length,i=0;i<o;i++)e&&ge.CY.call(e,ede[i])&&n.push(ede[i]);return n}function nde(e,t,n,r){if(pue)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),pue(e,t,o),!0}catch(eDe){}return!1}function rde(e){return e}function ode(e){return hue&&Bue(e,(function(e,t){(zue(t)||Nue(t))&&hue(t)})),ide(e)}var ide=hue||rde;function ade(){var e=Date;return e.now?e.now():(new e).getTime()}function sde(e){return Uue(e)?e.name:tue}function lde(e,t,n,r,o){var i=n;return e&&((i=e[t])===n||o&&!o(i)||r&&!r(n)||(i=n,e[t]=i)),i}function cde(e,t,n){var r;return e?!(r=e[t])&&Due(r)&&(r=Tue(n)?{}:n,e[t]=r):r=Tue(n)?{}:n,r}function ude(e,t){return Due(e)?t:e}function dde(e){return!!e}function pde(e){throw new Error(e)}function hde(e,t){var n=null,r=null;return Mue(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function mde(e,t,n,r,o){e&&t&&n&&(!1!==o||Tue(e[t]))&&(e[t]=hde(n,r))}function fde(e,t,n,r){return e&&t&&Nue(e)&&zue(n)&&Yue(n,(function(n){Wue(n)&&mde(e,n,t,n,r)})),e}function gde(e){return e&&ge.rl&&(e=(0,ge.Pw)((0,ge.rl)({},e))),e}function vde(e,t,n,r,o,i){var a=arguments,s=a[0]||{},l=a.length,c=!1,u=1;for(l>0&&jue(s)&&(c=s,s=a[u]||{},u++),Nue(s)||(s={});u<l;u++){var d=a[u],p=zue(d),h=Nue(d);for(var m in d){var f=p&&m in d||h&&ge.CY.call(d,m);if(f){var g=d[m],v=void 0;if(c&&g&&((v=zue(g))||que(g))){var y=s[m];v?zue(y)||(y=[]):que(y)||(y={}),g=vde(c,y,g)}void 0!==g&&(s[m]=g)}}}return s}var yde=null,bde=function(){function e(t,n,r){var o,i=this,a=!1;(i.start=ade(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},Mue(n))&&(a=nde(i,"payload",(function(){return!o&&Mue(n)&&(o=n(),n=null),o})));i.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?i[t]:(i.ctx||{})[t]:null},i.setCtx=function(t,n){if(t)if(t===e.ParentContextKey)i[t]||(i.isChildEvt=function(){return!0}),i[t]=n;else if(t===e.ChildrenContextKey)i[t]=n;else{(i.ctx=i.ctx||{})[t]=n}},i.complete=function(){var t=0,r=i.getCtx(e.ChildrenContextKey);if(zue(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=ade()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&Mue(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Cde=function(){function e(t){this.ctx={},(0,D.Z)(e,this,(function(e){e.create=function(e,t,n){return new bde(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&Mue(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),Sde="CoreUtils.doPerf";function xde(e,t,n,r,o){if(e){var i=e;if(i.getPerfMgr&&(i=i.getPerfMgr()),i){var a=void 0,s=i.getCtx(Sde);try{if(a=i.create(t(),r,o)){if(s&&a.setCtx&&(a.setCtx(bde.ParentContextKey,s),s.getCtx&&s.setCtx)){var l=s.getCtx(bde.ChildrenContextKey);l||(l=[],s.setCtx(bde.ChildrenContextKey,l)),l.push(a)}return i.setCtx(Sde,a),n(a)}}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&i.fire(a),i.setCtx(Sde,s)}}}return n()}var _de="window",Ede="JSON",kde="msie",wde="trident/",Ide="XMLHttpRequest",Pde=null,Tde=null,Dde=!1,Ade=null,Rde=null;function Nde(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[ge.hB];r&&(n=t in r)}}catch(eDe){}if(!n)try{n=!Tue((new e)[t])}catch(eDe){}}return n}function Mde(e){var t=(0,fe.Rd)();return t&&t[e]?t[e]:e===_de&&Fde()?window:null}function Fde(){return Boolean(typeof window===ge.fK&&window)}function Bde(){return Fde()?window:Mde(_de)}function Ode(){return Boolean(typeof document===ge.fK&&document)}function Lde(){return Ode()?document:Mde("document")}function Hde(){return Boolean(typeof navigator===ge.fK&&navigator)}function Vde(){return Hde()?navigator:Mde("navigator")}function zde(e){if(e&&Dde){var t=Mde("__mockLocation");if(t)return t}return typeof location===ge.fK&&location?location:Mde("location")}function Ude(){return Mde("performance")}function Wde(){return Boolean(typeof JSON===ge.fK&&JSON||null!==Mde(Ede))}function Gde(){return Wde()?JSON||Mde(Ede):null}function jde(){var e=Vde();return!(!e||!e.product)&&"ReactNative"===e.product}function qde(){var e=Vde();if(e&&(e.userAgent!==Tde||null===Pde)){var t=((Tde=e.userAgent)||tue).toLowerCase();Pde=Hue(t,kde)||Hue(t,wde)}return Pde}function Kde(e){var t=Object[ge.hB].toString.call(e),n=tue;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Wde()&&(n=Gde().stringify(e)),t+n}function Yde(){return null===Rde&&(Rde=Hde()&&Boolean(Vde().sendBeacon)),Rde}function Xde(e){var t=!1;try{t=!!Mde("fetch");var n=Mde("Request");t&&e&&n&&(t=Nde(n,"keepalive"))}catch(eDe){}return t}function Qde(){return null===Ade&&(Ade=typeof XDomainRequest!==ge.jA)&&Zde()&&(Ade=Ade&&!Nde(Mde(Ide),"withCredentials")),Ade}function Zde(){var e=!1;try{e=!!Mde(Ide)}catch(eDe){}return e}var Jde,$de=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],epe=null;function tpe(e,t){return function(){var n=arguments,r=npe(t);if(r){var o=r.listener;o&&o[e]&&o[e].apply(o,n)}}}function npe(e){var t=epe;return t||!0===e.disableDbgExt||(t=epe||function(){var e=Mde("Microsoft");return e&&(epe=e.ApplicationInsights),epe}()),t?t.ChromeDbgExt:null}function rpe(e){if(!Jde){Jde={};for(var t=0;t<$de.length;t++)Jde[$de[t]]=tpe($de[t],e)}return Jde}function ope(e){return e?'"'+e.replace(/\"/g,tue)+'"':tue}function ipe(e,t){var n=typeof console!==ge.jA?console:Mde("console");if(n){var r="log";n[e]&&(r=e),Mue(n[r])&&n[r](t)}}var ape=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?"AI: ":"AI (Internal): ")+e;var i=tue;Wde()&&(i=Gde().stringify(r));var a=(t?" message:"+ope(t):tue)+(r?" props:"+ope(i):tue);o.message+=a}return e.dataType="MessageData",e}();function spe(e,t){return(e||{}).logger||new lpe(t)}var lpe=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,i,a=0,s={};(0,D.Z)(e,this,(function(e){function l(t,n){if(!(a>=o)){var i=!0,l="AITR_"+n.messageId;if(s[l]?i=!1:s[l]=!0,i&&(t<=r&&(e.queue.push(n),a++,c(1===t?"error":"warn",n)),a===o)){var u="Internal events throttle limit per PageView reached for this app.",d=new ape(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function c(e,n){var r=npe(t||{});r&&r.diagLog&&r.diagLog(e,n)}!function(e){n=ude(e.loggingLevelConsole,0),r=ude(e.loggingLevelTelemetry,1),o=ude(e.maxMessageLimit,25),i=ude(e.enableDebug,ude(e.enableDebugExceptions,!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return o},e.enableDebugExceptions=function(){return i},e.throwInternal=function(t,r,o,a,u){void 0===u&&(u=!1);var d=new ape(r,o,u,a);if(i)throw Kde(d);var p=1===t?cue:uue;if(Tue(d.message))c("throw"+(1===t?"Critical":"Warning"),d);else{if(u){var h=+d.messageId;!s[h]&&n>=t&&(e[p](d.message),s[h]=!0)}else n>=t&&e[p](d.message);l(t,d)}},e.warnToConsole=function(e){ipe("warn",e),c("warning",e)},e.errorToConsole=function(e){ipe("error",e),c("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e.logInternalMessage=l}))}return e.__ieDyn=1,e}();function cpe(e){return e||new lpe}function upe(e,t,n,r,o,i){void 0===i&&(i=!1),cpe(e).throwInternal(t,n,r,o,i)}function dpe(e,t){cpe(e).warnToConsole(t)}var ppe=4294967296,hpe=4294967295,mpe=!1,fpe=123456789,gpe=987654321;function vpe(e){e<0&&(e>>>=0),fpe=123456789+e&hpe,gpe=987654321-e&hpe,mpe=!0}function ype(){try{var e=2147483647&ade();vpe((Math.random()*ppe^e)+e)}catch(eDe){}}function bpe(e){return e>0?Math.floor(Cpe()/hpe*(e+1))>>>0:0}function Cpe(e){var t=0,n=Mde("crypto")||Mde("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&hpe),0===t&&qde()&&(mpe||ype(),t=xpe()&hpe),0===t&&(t=Math.floor(ppe*Math.random()|0)),e||(t>>>=0),t}function Spe(e){e?vpe(e):ype()}function xpe(e){var t=((gpe=36969*(65535&gpe)+(gpe>>16)&hpe)<<16)+(65535&(fpe=18e3*(65535&fpe)+(fpe>>16)&hpe))>>>0&hpe|0;return e||(t>>>=0),t}function _pe(e){void 0===e&&(e=22);for(var t=Cpe()>>>0,n=0,r=tue;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Cpe()<<2&4294967295|3&t)>>>0,n=0);return r}var Epe=ge.RJ,kpe="2.8.12",wpe="."+_pe(6),Ipe=0;function Ppe(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Tpe(e,t){var n=t[e.id];if(!n){n={};try{Ppe(t)&&(function(e,t,n){if(Epe)try{return Epe(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(eDe){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(eDe){}}return n}function Dpe(e,t){return void 0===t&&(t=!1),Fue(e+Ipe+++(t?".2.8.12":tue)+wpe)}function Ape(e){var t={id:Dpe("_aiData-"+(e||tue)+"."+kpe),accept:function(e){return Ppe(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[Fue(n)]:(o&&((i=Tpe(t,e))[Fue(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(eDe){}}};return t}var Rpe="00000000000000000000000000000000",Npe="0000000000000000";function Mpe(e,t,n){return!(!e||e.length!==t||e===n)&&!!e.match(/^[\da-f]*$/)}function Fpe(e){return Mpe(e,32,Rpe)}function Bpe(e){return Mpe(e,16,Npe)}var Ope=Ape("plugin");function Lpe(e){return Ope.get(e,"state",{},!0)}function Hpe(e,t){for(var n,r=[],o=null,i=e.getNext();i;){var a=i.getPlugin();if(a){o&&Mue(o.setNextPlugin)&&Mue(a.processTelemetry)&&o.setNextPlugin(a);(Mue(a.isInitialized)?a.isInitialized():(n=Lpe(a)).isInitialized)||r.push(a),o=a,i=i.getNext()}}Yue(r,(function(r){var o=e.core();r.initialize(e.getCfg(),o,t,e.getNext()),n=Lpe(r),r.core||n.core||(n.core=o),n.isInitialized=!0,delete n.teardown}))}function Vpe(e){return e.sort((function(e,t){var n=0;if(t){var r=Mue(t.processTelemetry);Mue(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1)}else n=e?1:-1;return n}))}var zpe="TelemetryPluginChain",Upe=0;function Wpe(e,t,n,r){var o=null,i=[];null!==r&&(o=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return Kpe([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=o;if(o=e?e.getNext():null,!e){var t=i;t&&t.length>0&&(Yue(t,(function(e){try{e.func.call(e.self,e.args)}catch(eDe){upe(n.logger,2,73,"Unexpected Exception during onComplete - "+Kde(eDe))}})),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return spe(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=s(e,null);i&&!Due(i[n])?o=i[n]:t&&!Due(t[n])&&(o=t[n]);return Due(o)?r:o},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){var t;for(;t=a._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&i.push({func:e,self:Tue(t)?a.ctx:t,args:n})}}};function s(e,n,r){var o;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var i=t.extensionConfig;i&&e&&(o=i[e])}if(o){if(Nue(n)&&0!==r){var a=vde(!0,n,o);t&&2===r&&Bue(n,(function(e){if(Due(a[e])){var n=t[e];Due(n)||(a[e]=n)}})),o=a}}else o=n;return o}return a}function Gpe(e,t,n,r){var o=Wpe(e,t,n,r),i=o.ctx;return i.processNext=function(e){var t=o._next();return t&&t.processTelemetry(e,i),!t},i.createNew=function(e,r){return void 0===e&&(e=null),zue(e)&&(e=Kpe(e,t,n,r)),Gpe(e||i.getNext(),t,n,r)},i}function jpe(e,t,n){var r=t.config||{},o=Wpe(e,r,t,n),i=o.ctx;return i.processNext=function(e){var t=o._next();return t&&t.unload(i,e),!t},i.createNew=function(e,n){return void 0===e&&(e=null),zue(e)&&(e=Kpe(e,r,t,n)),jpe(e||i.getNext(),t,n)},i}function qpe(e,t,n){var r=t.config||{},o=Wpe(e,r,t,n).ctx;return o.processNext=function(e){return o.iterate((function(t){Mue(t.update)&&t.update(o,e)}))},o.createNew=function(e,n){return void 0===e&&(e=null),zue(e)&&(e=Kpe(e,r,t,n)),qpe(e||o.getNext(),t,n)},o}function Kpe(e,t,n,r){var o=null,i=!r;if(zue(e)&&e.length>0){var a=null;Yue(e,(function(e){if(i||r!==e||(i=!0),i&&e&&Mue(e.processTelemetry)){var s=function(e,t,n){var r,o=null,i=Mue(e.processTelemetry),a=Mue(e.setNextPlugin);r=e?e.identifier+"-"+e.priority+"-"+Upe++:"Unknown-0-"+Upe++;var s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:d,update:p,_id:r,_setNext:function(e){o=e}};function l(){var r;return e&&Mue(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=Gpe(s,t,n)),r}function c(t,n,i,a,s){var l=!1,c=e?e.identifier:zpe,u=t._hasRun;return u||(u=t._hasRun={}),t.setNext(o),e&&xde(t.core(),(function(){return c+":"+i}),(function(){u[r]=!0;try{var e=o?o._id:tue;e&&(u[e]=!1),l=n(t)}catch(s){var a=!o||u[o._id];a&&(l=!0),o&&a||upe(t.diagLog(),1,73,"Plugin ["+c+"] failed during "+i+" - "+Kde(s)+", run flags: "+Kde(u))}}),a,s),l}function u(t,n){function r(n){if(!e||!i)return!1;var r=Lpe(e);return!r.teardown&&!r.disabled&&(a&&e.setNextPlugin(o),e.processTelemetry(t,n),!0)}c(n=n||l(),r,"processTelemetry",(function(){return{item:t}}),!t.sync)||n.processNext(t)}function d(t,n){function r(){var r=!1;if(e){var o=Lpe(e),i=e.core||o.core;!e||i&&i!==t.core()||o.teardown||(o.core=null,o.teardown=!0,o.isInitialized=!1,e.teardown&&!0===e.teardown(t,n)&&(r=!0))}return r}c(t,r,"unload",(function(){}),n.isAsync)||t.processNext(n)}function p(t,n){function r(){var r=!1;if(e){var o=Lpe(e),i=e.core||o.core;!e||i&&i!==t.core()||o.teardown||e.update&&!0===e.update(t,n)&&(r=!0)}return r}c(t,r,"update",(function(){}),!1)||t.processNext(n)}return ide(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}}))}return r&&!o?Kpe([r],t,n):o}var Ype=500;function Xpe(e,t,n){t&&zue(t)&&t.length>0&&(Yue(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Ype&&pde("Channel has invalid priority - "+e.identifier)})),e.push({queue:ide(t),chain:Kpe(t,n.config,n)}))}var Qpe="toGMTString",Zpe="toUTCString",Jpe="expires",$pe=null,ehe=null,the=null,nhe=Lde(),rhe={},ohe={};function ihe(e,t){var n=che._ckMgr||ohe._ckMgr;return n||(n=che._ckMgr=che(e,t),ohe._ckMgr=n),n}function ahe(e){return!e||e.isEnabled()}function she(e,t){return!!(t&&e&&zue(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function lhe(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r._ckMgr?r._ckMgr:che(t)}return n||(n=ihe(t,(e||{}).logger)),n}function che(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(lde(t,"domain",e.cookieDomain,Aue,Due),lde(t,"path",e.cookiePath||"/",null,Due),Due(t.enabled)){var n=void 0;Tue(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),Tue(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||ohe),o=r.path||"/",i=r.domain,a=!1!==r.enabled,s=((n={isEnabled:function(){var e=a&&uhe(t),n=ohe._ckMgr;return e&&n&&s!==n&&(e=ahe(n)),e}}).setEnabled=function(e){a=!1!==e},n.set=function(e,t,n,a,l){var c=!1;if(ahe(s)&&!function(e,t){return!!(t&&e&&zue(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||she(e,t)}(r,e)){var u={},d=Jue(t||tue),p=d.indexOf(";");if(-1!==p&&(d=Jue(t.substring(0,p)),u=dhe(t.substring(p+1))),lde(u,"domain",a||i,dde,Tue),!Due(n)){var h=qde();if(Tue(u.expires)){var m=ade()+1e3*n;if(m>0){var f=new Date;f.setTime(m),lde(u,Jpe,phe(f,h?Qpe:Zpe)||phe(f,h?Qpe:Zpe)||tue,dde)}}h||lde(u,"max-age",tue+n,null,Tue)}var g=zde();g&&"https:"===g.protocol&&(lde(u,"secure",null,null,Tue),null===ehe&&(ehe=!ghe((Vde()||{}).userAgent)),ehe&&lde(u,"SameSite","None",null,Tue)),lde(u,"path",l||o,null,Tue),(r.setCookie||fhe)(e,hhe(d,u)),c=!0}return c},n.get=function(e){var t=tue;return ahe(s)&&!she(r,e)&&(t=(r.getCookie||mhe)(e)),t},n.del=function(e,t){var n=!1;return ahe(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var o,i=!1;if(uhe(t)){var a=((o={}).path=n||"/",o.expires="Thu, 01 Jan 1970 00:00:01 GMT",o);qde()||(a["max-age"]="0"),(r.delCookie||fhe)(e,hhe(tue,a)),i=!0}return i},n);return s._ckMgr=s,s}function uhe(e){if(null===$pe){$pe=!1;try{$pe=void 0!==(nhe||{}).cookie}catch(eDe){upe(e,2,68,"Cannot access document.cookie - "+sde(eDe),{exception:Kde(eDe)})}}return $pe}function dhe(e){var t={};e&&e.length&&Yue(Jue(e).split(";"),(function(e){if(e=Jue(e||tue)){var n=e.indexOf("=");-1===n?t[e]=null:t[Jue(e.substring(0,n))]=Jue(e.substring(n+1))}}));return t}function phe(e,t){return Mue(e[t])?e[t]():null}function hhe(e,t){var n=e||tue;return Bue(t,(function(e,t){n+="; "+e+(Due(t)?tue:"="+t)})),n}function mhe(e){var t=tue;if(nhe){var n=nhe.cookie||tue;the!==n&&(rhe=dhe(n),the=n),t=Jue(rhe[e]||tue)}return t}function fhe(e,t){nhe&&(nhe.cookie=e+"="+t)}function ghe(e){return!!Wue(e)&&(!(!Hue(e,"CPU iPhone OS 12")&&!Hue(e,"iPad; CPU OS 12"))||(!!(Hue(e,"Macintosh; Intel Mac OS X 10_14")&&Hue(e,"Version/")&&Hue(e,"Safari"))||(!(!Hue(e,"Macintosh; Intel Mac OS X 10_14")||!Oue(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!Hue(e,"Chrome/5")&&!Hue(e,"Chrome/6"))||(!(!Hue(e,"UnrealEngine")||Hue(e,"Chrome"))||!(!Hue(e,"UCBrowser/12")&&!Hue(e,"UCBrowser/11")))))))}function vhe(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Yue(e,(function(e){try{e(t,n)}catch(eDe){upe(t.diagLog(),2,73,"Unexpected error calling unload handler - "+Kde(eDe))}})),e=[]}}}var yhe=function(){function e(){var t,n,r,o,i,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var o=n||Gpe(null,{},a.core);t=r&&r.getPlugin?o.createNew(null,r.getPlugin):o.createNew(null,r)}return t}function l(e,t,o){e&&lde(e,oue,[],null,Due),!o&&t&&(o=t.getProcessTelContext().getNext());var i=r;r&&r.getPlugin&&(i=r.getPlugin()),a.core=t,n=Gpe(o,e,t,i)}function c(){t=!1,a.core=null,n=null,r=null,i=[],o=vhe()}c(),(0,D.Z)(e,a,(function(e){e.initialize=function(e,n,r,o){l(e,n,o),t=!0},e.teardown=function(t,n){var a,s=e.core;if(s&&(!t||s===t.core())){var l,u=!1,d=t||jpe(null,s,r&&r.getPlugin?r.getPlugin():r),p=n||((a={reason:0}).isAsync=!1,a);return e._doTeardown&&!0===e._doTeardown(d,p,h)?l=!0:h(),l}function h(){if(!u){u=!0,o.run(d,n);var e=i;i=[],Yue(e,(function(e){e.rm()})),!0===l&&d.processNext(p),c()}}},e.update=function(t,n){var o=e.core;if(o&&(!t||o===t.core())){var i,a=!1,s=t||qpe(null,o,r&&r.getPlugin?r.getPlugin():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,u)?i=!0:u(),i}function u(){a||(a=!0,l(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(zue(e)?i=i.concat(e):i.push(e))},mde(e,"_addUnloadCb",(function(){return o}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a.isInitialized=function(){return t},a.setInitialized=function(e){t=e},a.setNextPlugin=function(e){r=e},a.processNext=function(e,t){t?t.processNext(e):r&&Mue(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),bhe=function(e){function t(){var n,r,o=e.call(this)||this;function i(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,i(),(0,D.Z)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Yue(r,(function(e,n){if(e.id===t.id)return r.splice(n,1),-1}))}}},e.processTelemetry=function(t,n){for(var o=!1,i=r.length,a=0;a<i;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[t])){o=!0;break}}catch(eDe){upe(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+sde(eDe),{exception:Kde(eDe)},!0)}}o||e.processNext(t,n)},e._doTeardown=function(){i()}})),o}return(0,T.ne)(t,e),t.__ieDyn=1,t}(yhe),Che="Plugins must provide initialize method",She="SDK is still unloading...",xhe={loggingLevelConsole:1};function _he(e,t){return new Cde(t)}function Ehe(e,t){var n=!1;return Yue(t,(function(t){if(t===e)return n=!0,-1})),n}var khe=function(){function e(){var t,n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S=0;(0,D.Z)(e,this,(function(e){function x(){n=!1,t=vde(!0,{},xhe),e.config=t,e.logger=new lpe(t),e._extensions=[],f=new bhe,r=[],o=null,i=null,a=null,s=null,l=null,u=null,c=[],d=null,p=null,h=null,m=!1,g=null,v=Dpe("AIBaseCore",!0),y=vhe(),C=null}function _(){return Gpe(w(),t,e)}function E(n){var r=function(e,t,n){var r,o=[],i={};return Yue(n,(function(n){(Due(n)||Due(n.initialize))&&pde(Che);var r=n.priority,a=n.identifier;n&&r&&(Due(i[r])?i[r]=a:dpe(e,"Two extensions have same priority #"+r+" - "+i[r]+", "+a)),(!r||r<t)&&o.push(n)})),(r={all:n}).core=o,r}(e.logger,Ype,c);u=r.core,l=null;var o=r.all;if(h=ide(function(e,t,n){var r=[];if(e&&Yue(e,(function(e){return Xpe(r,e,n)})),t){var o=[];Yue(t,(function(e){e.priority>Ype&&o.push(e)})),Xpe(r,o,n)}return r}(p,o,e)),d){var i=Xue(o,d);-1!==i&&o.splice(i,1),-1!==(i=Xue(u,d))&&u.splice(i,1),d._setQueue(h)}else d=function(e,t){function n(){return Gpe(null,t.config,t,null)}function r(e,t,n,r){var o=e?e.length+1:1;function i(){0===--o&&(r&&r(),r=null)}o>0&&Yue(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=t.createNew(r);a.onComplete(i),n(a)}else o--})),i()}var o=!1,i={identifier:"ChannelControllerPlugin",priority:Ype,initialize:function(t,n,r,i){o=!0,Yue(e,(function(e){e&&e.queue.length>0&&Hpe(Gpe(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),(function(e){e.processNext(t)}),(function(){o.processNext(t)}))},update:function(t,n){var o=n||{reason:0};return r(e,t,(function(e){e.processNext(o)}),(function(){t.processNext(o)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var i=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e.processNext(i)}),(function(){t.processNext(i),o=!1})),!0},getChannel:function(t){var n=null;return e&&e.length>0&&Yue(e,(function(e){if(e&&e.queue.length>0&&(Yue(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return-1})),n},flush:function(t,o,i,a){var s=1,l=!1,c=null;function u(){s--,l&&0===s&&(c&&(clearTimeout(c),c=null),o&&o(l),o=null)}return a=a||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e.flush){s++;var n=!1;e.flush(t,(function(){n=!0,u()}),i)||n||(t&&null==c?c=setTimeout((function(){c=null,u()}),a):u())}}))}),(function(){l=!0,u()})),!0},_setQueue:function(t){e=t}};return i}(h,e);o.push(d),u.push(d),e._extensions=Vpe(o),d.initialize(t,e,o),Hpe(_(),o),e._extensions=ide(Vpe(u||[])).slice(),n&&function(t){var n=qpe(w(),e);e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t)}(n)}function k(t){var n,r=null,o=null;return Yue(e._extensions,(function(e){if(e.identifier===t&&e!==d&&e!==f)return o=e,-1})),!o&&d&&(o=d.getChannel(t)),o&&((n={plugin:o}).setEnabled=function(e){Lpe(o).disabled=!e},n.isEnabled=function(){var e=Lpe(o);return!e.teardown&&!e.disabled},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[o],i=((n={reason:1}).isAsync=e,n);I(r,i,(function(e){e&&E({reason:32,removed:r}),t&&t(e)}))},r=n),r}function w(){if(!l){var n=(u||[]).slice();-1===Xue(n,f)&&n.push(f),l=Kpe(Vpe(n),t,e)}return l}function I(n,r,o){if(n&&n.length>0){var i=jpe(Kpe(n,t,e),e);i.onComplete((function(){var e=!1,t=[];Yue(c,(function(r,o){Ehe(r,n)?e=!0:t.push(r)})),c=t;var r=[];p&&(Yue(p,(function(t,o){var i=[];Yue(t,(function(t){Ehe(t,n)?e=!0:i.push(t)})),r.push(i)})),p=r),o&&o(e)})),i.processNext(r)}else o(!1)}function P(){var n=e.logger?e.logger.queue:[];n&&(Yue(n,(function(n){var r,o=((r={}).name=g||"InternalMessageId: "+n.messageId,r.iKey=ude(t.instrumentationKey),r.time=Kue(new Date),r.baseType=ape.dataType,r.baseData={message:n.message},r);e.track(o)})),n.length=0)}function D(e,t,n,r){return d?d.flush(e,t,n||6,r):(t&&t(!1),!0)}function A(t){var n=e.logger;n?upe(n,2,73,t):pde(t)}x(),e.isInitialized=function(){return n},e.initialize=function(r,i,s,l){m&&pde(She),e.isInitialized()&&pde("Core should not be initialized more than once"),t=r||{},e.config=t,Due(r.instrumentationKey)&&pde("Please provide instrumentation key"),o=l,e._notificationManager=l,function(){var e=ude(t.disableDbgExt);!0===e&&b&&(o.removeNotificationListener(b),b=null);o&&!b&&!0!==e&&(b=rpe(t),o.addNotificationListener(b))}(),function(){var e=ude(t.enablePerfMgr);!e&&a&&(a=null);e&&cde(t,rue,_he)}(),cde(t,oue,{}).NotificationManager=o,s&&(e.logger=s);var u=cde(t,"extensions",[]);(c=[]).push.apply(c,(0,T.$h)((0,T.$h)([],i,!1),u,!1)),p=cde(t,nue,[]),E(null),h&&0!==h.length||pde("No channels available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&Yue(h,(function(t){e.push(t.queue)})),ide(e)},e.track=function(n){n.iKey=n.iKey||t.instrumentationKey,n.time=n.time||Kue(new Date),n.ver=n.ver||"4.0",!m&&e.isInitialized()?_().processNext(n):r.push(n)},e.getProcessTelContext=_,e.getNotifyMgr=function(){return o||(o=function(){var e;return(0,fe.pu)(((e={}).addNotificationListener=function(e){},e.removeNotificationListener=function(e){},e.eventsSent=function(e){},e.eventsDiscarded=function(e,t){},e.eventsSendRequest=function(e,t){},e))}(),e._notificationManager=o),o},e.addNotificationListener=function(e){o&&o.addNotificationListener(e)},e.removeNotificationListener=function(e){o&&o.removeNotificationListener(e)},e.getCookieMgr=function(){return s||(s=che(t,e.logger)),s},e.setCookieMgr=function(e){s=e},e.getPerfMgr=function(){if(!i&&!a&&ude(t.enablePerfMgr)){var n=ude(t.createPerfMgr);Mue(n)&&(a=n(e,e.getNotifyMgr()))}return i||a||yde},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return r.length},e.releaseQueue=function(){if(n&&r.length>0){var e=r;r=[],Yue(e,(function(e){_().processNext(e)}))}},e.pollInternalLogs=function(e){g=e||null;var n=ude(t.diagnosticLogInterval);return n&&n>0||(n=1e4),S&&clearInterval(S),S=setInterval((function(){P()}),n)},e.stopPollingInternalLogs=function(){S&&(clearInterval(S),S=0,P())},fde(e,(function(){return f}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||pde("SDK is not initialized"),m&&pde(She);var a=((i={reason:50}).isAsync=t,i.flushComplete=!1,i),s=jpe(w(),e);function l(t){a.flushComplete=t,m=!0,y.run(s,a),e.stopPollingInternalLogs(),s.processNext(a)}s.onComplete((function(){x(),r&&r(a)}),e),D(t,l,6,o)||l(!1)},e.getPlugin=k,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void A(Che);var o=k(e.identifier);if(o&&!t)return r&&r(!1),void A("Plugin ["+e.identifier+"] is already loaded!");var i={reason:16};function a(t){c.push(e),i.added=[e],E(i),r&&r(!0)}if(o){var s=[o.plugin];I(s,{reason:2,isAsync:!!n},(function(e){e?(i.removed=s,i.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return v},e.flush=D,e.getTraceCtx=function(e){return C||(C=function(e){var t={};return{getName:function(){return t.name},setName:function(n){e&&e.setName(n),t.name=n},getTraceId:function(){return t.traceId},setTraceId:function(n){e&&e.setTraceId(n),Fpe(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){e&&e.setSpanId(n),Bpe(n)&&(t.spanId=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}()),C},e.setTraceCtx=function(e){C=e||null},mde(e,"addUnloadCb",(function(){return y}),"add")}))}return e.__ieDyn=1,e}();function whe(e,t,n,r){Yue(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(eDe){}}))}var Ihe=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,D.Z)(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=Xue(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Xue(e.listeners,t)},e.eventsSent=function(t){whe(e.listeners,iue,!0,(function(e){e.eventsSent(t)}))},e.eventsDiscarded=function(t,n){whe(e.listeners,aue,!0,(function(e){e.eventsDiscarded(t,n)}))},e.eventsSendRequest=function(t,n){whe(e.listeners,sue,n,(function(e){e.eventsSendRequest(t,n)}))},e.perfEvent=function(t){t&&(!n&&t.isChildEvt()||whe(e.listeners,lue,!1,(function(e){t.isAsync?setTimeout((function(){return e.perfEvent(t)}),0):e.perfEvent(t)})))}}))}return e.__ieDyn=1,e}(),Phe=function(e){function t(){var n=e.call(this)||this;return(0,D.Z)(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,o){t.initialize(e,n,r||new lpe(e),o||new Ihe(e))},e.track=function(r){xde(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),pde("Invalid telemetry item")),function(e){Due(e.name)&&(n(e),pde("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,T.ne)(t,e),t.__ieDyn=1,t}(khe),The="",Dhe="events",Ahe="visibilitychange",Rhe="pagehide",Nhe="pageshow",Mhe="unload",Fhe="beforeunload",Bhe=Dpe("aiEvtPageHide"),Ohe=Dpe("aiEvtPageShow"),Lhe=/\.[\.]+/g,Hhe=/[\.]+$/,Vhe=1,zhe=Ape("events"),Uhe=/^([^.]*)(?:\.(.+)|)/;function Whe(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,tue):e}function Ghe(e,t){var n;if(t){var r=tue;zue(t)?(r=tue,Yue(t,(function(e){(e=Whe(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Whe(t),r&&("."!==r[0]&&(r="."+r),e=(e||tue)+r)}var o=Uhe.exec(e||tue)||[];return(n={}).type=o[1],n.ns=(o[2]||tue).replace(Lhe,".").replace(Hhe,tue).split(".").sort().join("."),n}function jhe(e,t,n){void 0===n&&(n=!0);var r=zhe.get(e,Dhe,{},n),o=r[t];return o||(o=r[t]=[]),o}function qhe(e,t,n,r){e&&t&&t.type&&(e.removeEventListener?e.removeEventListener(t.type,n,r):e.detachEvent&&e.detachEvent("on"+t.type,n))}function Khe(e,t,n,r){for(var o=t.length;o--;){var i=t[o];i&&(n.ns&&n.ns!==i.evtName.ns||r&&!r(i)||(qhe(e,i.evtName,i.handler,i.capture),t.splice(o,1)))}}function Yhe(e,t){return t?Ghe("xx",zue(t)?[e].concat(t):[e,t]).ns.split("."):e}function Xhe(e,t,n,r,o){var i;void 0===o&&(o=!1);var a=!1;if(e)try{var s=Ghe(t,r);if(a=function(e,t,n,r){var o=!1;return e&&t&&t.type&&n&&(e.addEventListener?(e.addEventListener(t.type,n,r),o=!0):e.attachEvent&&(e.attachEvent("on"+t.type,n),o=!0)),o}(e,s,n,o),a&&zhe.accept(e)){var l=((i={guid:Vhe++,evtName:s}).handler=n,i.capture=o,i);jhe(e,s.type).push(l)}}catch(eDe){}return a}function Qhe(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=Ghe(t,r),a=!1;!function(e,t,n){if(t.type)Khe(e,jhe(e,t.type),t,n);else{var r=zhe.get(e,Dhe,{});Bue(r,(function(r,o){Khe(e,o,t,n)})),0===tde(r).length&&zhe.kill(e,Dhe)}}(e,i,(function(e){return!((!i.ns||n)&&e.handler!==n)&&(a=!0,!0)})),a||qhe(e,i,n,o)}catch(eDe){}}function Zhe(e,t,n){var r=!1,o=Bde();o&&(r=Xhe(o,e,t,n),r=Xhe(o.body,e,t,n)||r);var i=Lde();return i&&(r=Xhe(i,e,t,n)||r),r}function Jhe(e,t,n,r){var o=!1;return t&&e&&e.length>0&&Yue(e,(function(e){e&&(n&&-1!==Xue(n,e)||(o=Zhe(e,t,r)||o))})),o}function $he(e,t,n){e&&zue(e)&&Yue(e,(function(e){e&&function(e,t,n){var r=Bde();r&&(Qhe(r,e,t,n),Qhe(r.body,e,t,n));var o=Lde();o&&Qhe(o,e,t,n)}(e,t,n)}))}function eme(e,t,n){return function(e,t,n,r){var o=!1;return t&&e&&zue(e)&&!(o=Jhe(e,t,n,r))&&n&&n.length>0&&(o=Jhe(e,t,null,r)),o}([Fhe,Mhe,Rhe],e,t,n)}function tme(e,t,n){var r=Yhe(Bhe,n),o=Jhe([Rhe],e,t,r);return t&&-1!==Xue(t,Ahe)||(o=Jhe([Ahe],(function(t){var n=Lde();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=tme(e,null,n)),o}function nme(e,t,n){var r=Yhe(Ohe,n),o=Jhe([Nhe],e,t,r);return!(o=Jhe([Ahe],(function(t){var n=Lde();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=nme(e,null,n)),o}var rme,ome=null;function ime(){var e=sme();return e.substring(0,8)+"-"+e.substring(8,12)+"-"+e.substring(12,16)+"-"+e.substring(16,20)+"-"+e.substring(20)}function ame(){var e=Ude();return e&&e.now?e.now():ade()}function sme(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=tue,r=0;r<4;r++)n+=t[15&(e=Cpe())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&Cpe())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var lme,cme={_canUseCookies:void 0,isTypeof:Pue,isUndefined:Tue,isNullOrUndefined:Due,hasOwnProperty:Rue,isFunction:Mue,isObject:Nue,isDate:Vue,isArray:zue,isError:Uue,isString:Wue,isNumber:Gue,isBoolean:jue,toISOString:Kue,arrForEach:Yue,arrIndexOf:Xue,arrMap:Que,arrReduce:Zue,strTrim:Jue,objCreate:fe.pu,objKeys:tde,objDefineAccessors:nde,addEventHandler:Zhe,dateNow:ade,isIE:qde,disableCookies:function(){ume().setEnabled(!1)},newGuid:ime,perfNow:ame,newId:_pe,randomValue:bpe,random32:Cpe,mwcRandomSeed:Spe,mwcRandom32:xpe,generateW3CId:sme};function ume(e,t){var n=ihe(e,t),r=cme._canUseCookies;return null===ome&&(ome=[],rme=r,nde(cme,"_canUseCookies",(function(){return rme}),(function(e){rme=e,Yue(ome,(function(t){t.setEnabled(e)}))}))),-1===Xue(ome,n)&&ome.push(n),jue(r)&&n.setEnabled(r),jue(rme)&&n.setEnabled(rme),n}var dme="1DS-Web-JS-3.2.10",pme="withCredentials",hme=((lme={})[0]=0,lme[2]=6,lme[1]=1,lme[3]=7,lme[4098]=6,lme[4097]=1,lme[4099]=7,lme);Boolean(Lde()),Boolean(Bde());function mme(e){return!(e===The||Due(e))}function fme(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return The}function gme(e){return!!(e&&Gue(e)&&e>=1&&e<=4)}function vme(e,t,n){if(!t&&!mme(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||zue(t))t={value:t};else if("object"!==r||ge.CY.call(t,"value")){if(Due(t.value)||t.value===The||!Wue(t.value)&&!Gue(t.value)&&!jue(t.value)&&!zue(t.value))return null}else t={value:n?JSON.stringify(t):t};if(zue(t.value)&&!Eme(t.value))return null;if(!Due(t.kind)){if(zue(t.value)||!_me(t.kind))return null;t.value=t.value.toString()}return t}function yme(e,t,n){var r=-1;if(!Tue(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){if(e>=0&&e<=9)return!0;return!1}(n))-1===r&&(r=0),r|=n;else{var o=hme[wme(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function bme(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||The}function Cme(e){void 0===e&&(e="D");var t=ime();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,The)),t}function Sme(e,t,n,r,o){var i={},a=!1,s=0,l=arguments.length,c=Object[ge.hB],u=arguments;for("[object Boolean]"===c.toString.call(u[0])&&(a=u[0],s++);s<l;s++){Bue(e=u[s],(function(e,t){a&&t&&Nue(t)?zue(t)?(i[e]=i[e]||[],Yue(t,(function(t,n){t&&Nue(t)?i[e][n]=Sme(!0,i[e][n],t):i[e][n]=t}))):i[e]=Sme(!0,i[e],t):i[e]=t}))}return i}var xme=ame;function _me(e){return 0===e||e>0&&e<=13||32===e}function Eme(e){return e.length>0}function kme(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=xme()}function wme(e){var t=0;if(null!==e&&void 0!==e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===ge.fK&&(t=4,zue(e)?(t=4096,e.length>0&&(t|=wme(e[0]))):ge.CY.call(e,"value")&&(t=8192|wme(e.value)))}return t}ge.jA,ge.fK,ge.jA,fe.pu;var Ime=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,D.Z)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new lpe({loggingLevelConsole:1})),e.initialize=function(n,r,o,i){xde(e,(function(){return"AppInsightsCore.initialize"}),(function(){var a=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=n.propertyStorageOverride;!s||s.getProperty&&s.setProperty||pde("Invalid property storage override passed."),n.channels&&Yue(n.channels,(function(e){e&&Yue(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}}))}))}e.getWParam=function(){return"undefined"!==typeof document||n.enableWParam?0:-1},r&&Yue(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}})),e.pluginVersionString=a.join(";"),e.pluginVersionStringArr=a;try{t.initialize(n,r,o,i),e.pollInternalLogs("InternalLog")}catch(eDe){var l=e.logger,c=Kde(eDe);-1!==c.indexOf("channels")&&(c+="\n - Channels must be provided through config.channels only!"),upe(l,1,514,"SDK Initialization Failed - no telemetry will be sent: "+c)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){xde(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=xme(),gme(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=dme;var i=r.baseData=r.baseData||{};i.properties=i.properties||{};var a=i.properties;a.version=a.version||e.pluginVersionString||The}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,T.ne)(t,e),t.__ieDyn=1,t}(Phe),Pme=Ime;function Tme(e){var t={};return Bue(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),ode(t)}var Dme,Ame="locale",Rme="ver",Nme="name",Mme=Tme({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),Fme=Tme({id:[0,"id"],ver:[1,Rme],appName:[2,Nme],locale:[3,Ame],expId:[4,"expId"],env:[5,"env"]}),Bme=Tme({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),Ome=Tme({locale:[0,Ame],localId:[1,"localId"],id:[2,"id"]}),Lme=Tme({osName:[0,Nme],ver:[1,Rme]}),Hme=Tme({ver:[0,Rme],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),Vme=Tme({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),zme=Tme({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),Ume=Tme({tz:[0,"tz"]}),Wme=Tme({sessionId:[0,"sesId"]}),Gme=Tme({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),jme=Tme({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),qme=Tme({traceId:[0,"traceID"],traceName:[1,Nme],parentId:[2,"parentID"]}),Kme=Tme({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function Yme(){return void 0===Dme&&(Dme=!!Qme(0)),Dme}function Xme(){return Yme()?Qme(0):null}function Qme(e){var t,n,r=null;try{var o=(0,fe.Rd)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&Mue(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function Zme(){return this.getId()}function Jme(e){this.setId(e)}var $me=function(){function e(){(0,D.Z)(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return Wue(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void nde(e.prototype,"id",Zme,Jme),e}(),efe="ai_session",tfe=function(){function e(t,n){var r,o,i=spe(t),a=lhe(t);(0,D.Z)(e,this,(function(t){var s,l={sessionRenewalMs:(s=n).sessionRenewalMs&&function(){return s.sessionRenewalMs},sessionExpirationMs:s.sessionExpirationMs&&function(){return s.sessionExpirationMs},cookieDomain:s.cookieDomain&&function(){return s.cookieDomain},namePrefix:s.namePrefix&&function(){return s.namePrefix},sessionAsGuid:function(){return s.sessionAsGuid},idLength:function(){return s.idLength?s.idLength:22}};function c(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var a=+r[2];n.renewalDate=+new Date(a),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(eDe){upe(i,1,510,"Error parsing ai_session cookie, session will be reset: "+eDe)}0===n.renewalDate&&upe(i,2,517,"AI session renewal date is 0, session will be reset.")}function u(){var e=t.automaticSession,n=(new Date).getTime(),r=t.config.sessionAsGuid();!Tue(r)&&r?jue(r)?e.setId(Cme()):e.setId(Cme(r)):e.setId(_pe(l&&l.idLength?l.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,d(e.getId(),e.acquisitionDate,e.renewalDate),Yme()||upe(i,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function d(e,n,i){var s=n+t.config.sessionExpirationMs(),l=i+t.config.sessionRenewalMs(),c=new Date,u=[e,n,i];s<l?c.setTime(s):c.setTime(l);var d=t.config.cookieDomain?t.config.cookieDomain():null;a.set(o(),u.join("|")+";expires="+c.toUTCString(),null,d),r=(new Date).getTime()}Mue(n.sessionExpirationMs)||(l.sessionExpirationMs=function(){return e.acquisitionSpan}),Mue(n.sessionRenewalMs)||(l.sessionRenewalMs=function(){return e.renewalSpan}),t.config=l,o=function(){return t.config.namePrefix&&t.config.namePrefix()?efe+t.config.namePrefix():efe},t.automaticSession=new $me,t.update=function(){t.automaticSession.getId()||function(){var e=a.get(o());if(e&&Mue(e.split))c(e);else{var n=function(e,t){var n=Xme();if(null!==n)try{return n.getItem(t)}catch(eDe){Dme=!1,upe(e,1,503,"Browser failed read of local storage. "+eDe)}return null}(i,o());n&&c(n)}t.automaticSession.getId()||u()}();var n=t.automaticSession,s=t.config,l=(new Date).getTime(),p=l-n.acquisitionDate>s.sessionExpirationMs(),h=l-n.renewalDate>s.sessionRenewalMs();if(p||h)u();else{(!r||l-r>e.cookieUpdateInterval)&&(n.renewalDate=l,d(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e,n,r,a=t.automaticSession;e=a.getId(),n=a.acquisitionDate,r=a.renewalDate,function(e,t,n){var r=Xme();if(null!==r)try{r.setItem(t,n)}catch(eDe){Dme=!1,upe(e,1,504,"Browser failed write to local storage. "+eDe)}}(i,o(),[e,n,r].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),nfe=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function rfe(e,t){void 0===t&&(t=nfe);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)ofe(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function ofe(e,t){if(void 0===t&&(t=nfe),!e||e.length<4)return!1;for(var n=!1,r=e.substring(0,3).toString().toUpperCase(),o=0;o<t.length;o++)if(t[o]+":"===r&&e.length<=256){n=!0;break}return n}function ife(){return this.getExpId()}var afe=function(){function e(t,n){var r=null,o=nfe.slice(0),i="Treatments",a=lhe(n),s=t;(0,D.Z)(e,this,(function(e){if(Ode()){var n=Lde().documentElement;n&&(e.locale=n.lang)}function l(e){e!==r&&(r=rfe(e,o))}e.env=t.env?t.env:function(e){var t,n={},r=Lde();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var i=t[o];if(i.name)if(0===i.name.toLowerCase().indexOf(e)){var a=i.name.replace(e,"");n[a]=i.content}}}return n}("awa-").env,e.getExpId=function(){return s.expId?(l(s.expId),r):(l(bme(a,i)),r)}}))}return e.validateAppExpId=rfe,e._staticInit=void nde(e.prototype,"expId",ife),e}(),sfe=function(){},lfe=function(){};function cfe(){return this.getMsfpc()}function ufe(){return this.getAnid()}var dfe=function(){function e(t,n){var r=lhe(n);(0,D.Z)(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return bme(r,"MSFPC")},e.getAnid=function(){return bme(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;nde(t,"msfpc",cfe),nde(t,"anid",ufe)}(),e}(),pfe=function(){var e=(new Date).getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())},hfe={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IOS:/(ipad|iphone|ipod)(?=.*like mac os x)/i,LINUX:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ANDROID:/android/i,CROS:/CrOS/i},mfe={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},ffe="Unknown",gfe=[{r:hfe.WINPHONE,os:"Windows Phone"},{r:hfe.WINRT,os:"Windows RT"},{r:hfe.WIN,os:"Windows"},{r:hfe.IOS,os:"iOS"},{r:hfe.ANDROID,os:"Android"},{r:hfe.LINUX,os:"Linux"},{r:hfe.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:hfe.OSX,os:"Mac OS X"}];function vfe(e,t){return"Windows"===t?yfe(e,"Windows NT"):"Android"===t?yfe(e,t):"Mac OS X"===t?function(e){var t=e.match(new RegExp("Mac OS X ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var r=bfe(n);return r?n.split(r)[0]:n}}return ffe}(e):"iOS"===t?function(e){var t=e.match(new RegExp("OS ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var r=bfe(n);return r?n.split(r)[0]:n}}return ffe}(e):ffe}function yfe(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?mfe[n[1]]?mfe[n[1]]:n[1]:ffe}function bfe(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Cfe=function(e){if(e.populateOperatingSystemInfo){var t=this,n=Vde()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<gfe.length;t++){var n=gfe[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return ffe}(r.toLowerCase());t.name=i,t.ver=vfe(r,i)}t.name&&t.name!==ffe||!Wue(o.platform)||(t.name=o.platform)}},Sfe="MicrosoftApplicationsTelemetryDeviceId";var xfe=function(){function e(t,n){var r=0;(0,D.Z)(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=Cpe(!1).toString();var i=lhe(n,t);if(i.isEnabled()||o){var a=function(e,t,n){return t?t.getProperty(n)||"":bme(e,n)}(i,o,Sfe);a||(a=ime()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,Sfe,a),e.installId=a}else i.purge(Sfe);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),_fe=function(e,t,n,r){var o=this;if(o.traceId=t||sme(),e.enableDistributedTracing&&!n&&(n=sme().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=zde();i&&i.pathname&&(o.name=i.pathname)}};function Efe(){return this.getLocalId()}function kfe(e){this.setLocalId(e)}var wfe=function(){function e(t,n,r){var o,i=n,a=lhe(r,t);(0,D.Z)(e,this,(function(n){if(a&&a.isEnabled()&&(p(),i.enableApplicationInsightsUser)){var r=bme(a,e.userCookieName);if(r){var s=r.split(e.cookieSeparator);s.length>0&&(n.id=s[0])}if(!n.id){n.id=_pe(t&&!Tue(t.idLength)?t.idLength:22);var l=Kue(new Date);n.accountAcquisitionDate=l;var c=[n.id,l],u=i.cookieDomain?i.cookieDomain:void 0;a.set(e.userCookieName,c.join(e.cookieSeparator),31536e3,u)}}if("undefined"!==typeof navigator){var d=navigator;n.locale=d.userLanguage||d.language}function p(){if(!i.hashIdentifiers&&!i.dropIdentifiers){var e=bme(a,"MUID");e&&(o="t:"+e)}return o}n.getLocalId=function(){return o||p()},n.setLocalId=function(e){o=e}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void nde(e.prototype,"localId",Efe,kfe),e}(),Ife=function(e){var t=this;t.popSample=100,t.eventFlags=0,e.hashIdentifiers&&(t.eventFlags=1048576|t.eventFlags),e.dropIdentifiers&&(t.eventFlags=2097152|t.eventFlags)},Pfe="([\\d,.]+)",Tfe="Unknown",Dfe="Edg/",Afe=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Dfe,b:"Edge"},{ua:"Electron",b:"Electron"},{ua:"Chrome",b:"Chrome"},{ua:"Trident",b:"MSIE"},{ua:"MSIE ",b:"MSIE"},{ua:"Firefox",b:"Firefox"},{ua:"Safari",b:"Safari"},{ua:"SkypeShell",b:"SkypeShell"}],Rfe=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Nfe(e,t){return t.indexOf(e)>-1}function Mfe(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function Ffe(e,t){return"MSIE"===t?function(e){var t=e.match(new RegExp("MSIE ([\\d,.]+)"));if(t)return t[1];var n=e.match(new RegExp("rv:([\\d,.]+)"));if(n)return n[1]}(e):function(e,t){"Safari"===e?e="Version":"Edge"===e&&Nfe(Dfe,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+Pfe));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return Tfe}(t,e)}function Bfe(){return this.getUserConsent()}var Ofe=function(){function e(t,n){var r=lhe(n),o=t||{};(0,D.Z)(e,this,(function(e){var t=zde();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(o.populateBrowserInfo){var i=o.userAgent,a=(o.userAgentData||{}).brands,s=Vde();s&&(i=i||s.userAgent||"",a=a||(s.userAgentData||{}).brands),function(t,n){if(zue(n))try{for(var r=0;r<Rfe.length;r++){var o=Mfe(Rfe[r].br,n);if(o)return e.browser=Rfe[r].b,void(e.browserVer=o)}}catch(eDe){}if(t){var i=function(e){if(e)for(var t=0;t<Afe.length;t++)if(Nfe(Afe[t].ua,e))return Afe[t].b;return Tfe}(t);e.browser=i,e.browserVer=Ffe(t,i)}}(i,a);var l=function(){var e={h:0,w:0},t=Bde();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=l.w+"X"+l.h}e.getUserConsent=function(){return o.userConsented||!!bme(r,o.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){try{var e=o.callback;if(e&&e.userConsentDetails){var t=e.userConsentDetails();if(t)return JSON.stringify({Required:t.Required||!1,Analytics:t.Analytics||!1,SocialMedia:t.SocialMedia||!1,Advertising:t.Advertising||!1})}}catch(eDe){}return null},nde(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void nde(e.prototype,"userConsent",Bfe),e}();function Lfe(e,t,n,r,o){var i=t.ext[Mme[e]];return i&&Bue(r,(function(e,t){if(Wue(t)||Gue(t)||jue(t)){var r=i[n[e]];!o&&(r||Wue(r)||Gue(r)||jue(r))&&(t=r),i[n[e]]=t}})),i}var Hfe=function(){function e(t,n,r){(0,D.Z)(e,this,(function(e){e.app=new afe(n,r),e.cloud=new sfe,e.user=new wfe(t,n,r),e.os=new Cfe(n),e.web=new Ofe(n,r);var o=new xfe(t,r),i=new dfe(n,r),a=new Ife(n);e.loc=new pfe,e.device=new lfe;var s=new tfe(r,n);e.session=new $me;var l=function(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),Fpe(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),Bpe(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new _fe(n),d()),c=!(n||{}).eventContainExtFields;function u(){var t=e.session;if(t&&Wue(t.customId))return t.customId;s.update();var n=s.automaticSession;if(n){var r=n.getId();r&&Wue(r)&&(t.automaticId=r)}return t.automaticId}function d(){var e=l;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||l),e}e.getTraceCtx=function(){return l},e.getSessionId=u,e.applyApplicationContext=function(t){var n,r=e.app;Lfe(4,t,Fme,((n={})[0]=r.id,n[1]=r.ver,n[2]=r.name,n[3]=r.locale,n[4]=r.getExpId(),n[5]=r.env,n),c)},e.applyUserContext=function(t){var n,r=e.user;Lfe(0,t,Ome,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),c)},e.applyWebContext=function(t){var n,r=e.web;Lfe(3,t,Bme,((n={})[0]=r.domain,n[1]=r.browser,n[2]=r.browserVer,n[3]=r.screenRes,n[5]=r.getUserConsentDetails(),n[4]=r.getUserConsent(),n),c)},e.applyOsContext=function(t){var n,r=e.os;Lfe(5,t,Lme,((n={})[0]=r.name,n[1]=r.ver,n),c)},e.applySdkContext=function(e){var t;Lfe(6,e,Hme,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),c)},e.applyIntWebContext=function(e){var t;Lfe(7,e,Vme,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),c)},e.applyUtcContext=function(e){var t,n=((t={})[0]=a.popSample,t);a.eventFlags>0&&(n[1]=a.eventFlags),Lfe(8,e,zme,n,c)},e.applyLocContext=function(t){var n;Lfe(9,t,Ume,((n={})[0]=e.loc.tz,n),c)},e.applySessionContext=function(e){var t;Lfe(4,e,Wme,((t={})[0]=u(),t),c)},e.applyDeviceContext=function(t){var n,r=e.device;Lfe(1,t,Gme,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),c)},e.applyCloudContext=function(t){var n,r=e.cloud;Lfe(10,t,jme,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),c)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=d();r&&Lfe(2,e,qme,((t={})[0]=r.getTraceId(),t[1]=r.getName(),t[2]=r.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,n=d();if(n){var r=((t={})[0]=n.getTraceId(),t[1]=n.getSpanId(),t),o=n.getTraceFlags();Due(o)||(r[2]=o),Lfe(11,e,Kme,r,!1)}}}))}return e.__ieDyn=1,e}();var Vfe=[Mme[4],Mme[0],Mme[3],Mme[5],Mme[6],Mme[7],Mme[8],Mme[9],Mme[1],Mme[2],Mme[11],Mme[10]],zfe=function(e){function t(){var n,r,o,i=e.call(this)||this;return i.identifier="SystemPropertiesCollector",i.priority=3,i.version="3.2.10",(0,D.Z)(t,i,(function(e,t){function i(){n=null,r={}}i(),e.initialize=function(r,i,a){t.initialize(r,i,a),o=e._getTelCtx().getExtCfg(e.identifier),n=new Hfe(r,o,i),i&&i.setTraceCtx&&i.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,i){kme(t,e.identifier),i=e._getTelCtx(i);var a,s,l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},Yue(Vfe,(function(e){l[e]=l[e]||{}})),n&&(n.applyApplicationContext(t),n.applyUserContext(t),n.applyWebContext(t),n.applyOsContext(t),n.applySdkContext(t),n.applyIntWebContext(t),n.applyUtcContext(t),n.applyLocContext(t),n.applySessionContext(t),n.applyDeviceContext(t),o.enableApplicationInsightsTrace&&n.applyAITraceContext(t),o.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),Yue(tde(l),(function(e){0===tde(l[e]).length&&delete l[e]})),a=r,s=t.data,a&&Bue(a,(function(e,t){s[e]||(s[e]=t)})),e.processNext(t,i)},e.getPropertiesContext=function(){return n},e.setProperty=function(e,t){r[e]=t},e._doTeardown=function(e,t){var r=(e||{}).core();if(r&&r.getTraceCtx&&n){var o=r.getTraceCtx(!1);o&&o===n.getTraceCtx()&&r.setTraceCtx(null)}i()}})),i}return(0,T.ne)(t,e),t.__ieDyn=1,t}(yhe),Ufe=zfe,Wfe=function(e){var t={};return Bue(e,(function(e,n){t[e]=n,t[n]=e})),ode(t)}({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),Gfe="REAL_TIME",jfe="",qfe="POST",Kfe="drop",Yfe="send",Xfe="requeue",Qfe="rspFail",Zfe="application/x-json-stream",Jfe="cache-control",$fe="content-type",ege="kill-duration",tge="time-delta-millis",nge="client-version",rge="client-id",oge="time-delta-to-apply-millis",ige="upload-time",age="apikey",sge="AuthMsaDeviceTicket",lge="AuthXToken";function cge(e){var t=(e.ext||{}).intweb;return t&&mme(t.msfpc)?t.msfpc:null}function uge(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=cge(e[n]);return t}var dge=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=uge(r);o.iKey=function(){return t},o.Msfpc=function(){return i||jfe},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=cge(e)),!0)},o.split=function(n,o){var a;if(n<r.length){var s=r.length-n;Due(o)||(s=o<s?o:s),a=r.splice(n,s),i=uge(r)}return new e(t,a)}}return e.create=function(t,n){return new e(t,n)},e}(),pge=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",i=!1;(0,D.Z)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,i||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){i||(e?(o=e,n=!0,i=!0):n=!1,t=!0)}}))}return e.__ieDyn=1,e}(),hge=function(){function e(){var t={};(0,D.Z)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&Yue(e,(function(e){t.push(Jue(e))})),t}(e.split(","));if("this-request-only"===n)return r;for(var o=1e3*parseInt(n,10),i=0;i<r.length;++i)t[r[i]]=ade()+o}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=Jue(e);return void 0!==n[r]&&n[r]>ade()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),mge=hge;function fge(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var gge,vge=2e6,yge=Math.min(vge,65e3),bge=/\./,Cge=function(){function e(t,n,r,o){var i="data",a="baseData",s=!!o,l=n,c={};(0,D.Z)(e,this,(function(e){function n(e,t,o,i,a,u,d){Bue(e,(function(e,p){var h=null;if(p||mme(p)){var m=o,f=e,g=a,v=t;if(s&&!i&&bge.test(e)){var y=e.split("."),b=y.length;if(b>1){g&&(g=g.slice());for(var C=0;C<b-1;C++){var S=y[C];v=v[S]=v[S]||{},m+="."+S,g&&g.push(S)}f=y[b-1]}}var x=i&&function(e,t){var n=c[e];return void 0===n&&(e.length>=7&&(n=Lue(e,"ext.metadata")||Lue(e,"ext.web")),c[e]=n),n}(m);if(h=!x&&l&&l.handleField(m,f)?l.value(m,f,p,r):vme(f,p,r)){var _=h.value;if(v[f]=_,u&&u(g,f,h),d&&"object"===typeof _&&!zue(_)){var E=g;E&&(E=E.slice()).push(f),n(p,_,m+"."+f,i,E,u,d)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:jfe,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:i,sendReason:o}},e.appendPayload=function(n,r,o){var i=n&&r&&!n.overflow;return i&&xde(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,l=[],c=[],u=n.isBeacon,d=u?65e3:3984588,p=u?yge:vge,h=0,m=0;h<t.length;){var f=t[h];if(f){if(a>=o){n.overflow=r.split(h);break}var g=e.getEventBlob(f);if(g&&g.length<=p){var v=g.length;if(i.length+v>d){n.overflow=r.split(h);break}i&&(i+="\n"),i+=g,++m>20&&(i.substr(0,1),m=0),s=!0,a++}else g?l.push(f):c.push(f),t.splice(h,1),h--}h++}if(l&&l.length>0&&n.sizeExceed.push(dge.create(r.iKey(),l)),c&&c.length>0&&n.failedEvts.push(dge.create(r.iKey(),c)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var y=r.iKey();-1===Xue(n.apiKeys,y)&&n.apiKeys.push(y)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}})),i},e.getEventBlob=function(e){try{return xde(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+fme(e.iKey);var r={},o=e.ext;o&&(t.ext=r,Bue(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var s=t.data={};s.baseType=e.baseType;var l=s.baseData={};return n(e.baseData,l,a,!1,[a],(function(e,t,n){Sge(r,e,t,n)}),true),n(e.data,s,i,!1,[],(function(e,t,n){Sge(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(eDe){return null}}}))}return e.__ieDyn=1,e}();function Sge(e,t,n,r){if(r&&e){var o=yme(r.value,r.kind,r.propertyType);if(o>-1){var i=e.metadata;i||(i=e.metadata={f:{}});var a=i.f;if(a||(a=i.f={}),t)for(var s=0;s<t.length;s++){var l=t[s];a[l]||(a[l]={f:{}});var c=a[l].f;c||(c=a[l].f={}),a=c}a=a[n]={},zue(r.value)?a.a={t:o}:a.t=o}}}var xge="&NoResponseBody=true",_ge=((gge={})[1]=Xfe,gge[100]=Xfe,gge[200]="sent",gge[8004]=Kfe,gge[8003]=Kfe,gge),Ege={},kge={};function wge(e,t,n){Ege[e]=t,!1!==n&&(kge[t]=e)}function Ige(e){try{return e.responseText}catch(eDe){}return jfe}function Pge(e,t){var n=!1;if(e&&t){var r=tde(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&Rue(t,a)&&a.toLowerCase()===o){n=!0;break}}}return n}function Tge(e,t,n,r){t&&n&&n.length>0&&(r&&Ege[t]?(e.hdrs[Ege[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function Dge(e,t){return t&&(Gue(t)?e=[t].concat(e):zue(t)&&(e=t.concat(e))),e}wge(sge,sge,!1),wge(nge,nge),wge(rge,"Client-Id"),wge(age,age),wge(oge,oge),wge(ige,ige),wge(lge,lge);var Age=function(){function e(t,n,r,o,i){this._responseHandlers=[];var a,s,l,c,u,d,p,h,m,f,g="?cors=true&"+$fe.toLowerCase()+"="+Zfe,v=new mge,y=!1,b=new pge,C=!1,S=0,x=!0,_=[],E={},k=[],w=null,I=!1,P=!1,T=!1;(0,D.Z)(e,this,(function(e){var D=!0;function A(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?Qde()?r=R:Zde()&&(r=M):2===n&&Xde(t)&&(!t||t&&!h)?r=N:C&&3===n&&Yde()&&(r=B),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function R(e,t,n){var r=new XDomainRequest;r.open(qfe,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Ige(r);F(t,200,{},e),Y(e)},r.onerror=function(){F(t,400,{})},r.ontimeout=function(){F(t,500,{})},r.onprogress=function(){},n?r.send(e.data):i.set((function(){r.send(e.data)}),0)}function N(e,t,n){var r,o=e.urlString,a=!1,s=!1,l=((r={body:e.data,method:qfe}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(l.keepalive=!0,2===e._sendReason&&(a=!0,f&&(o+=xge))),D&&(l.credentials="include"),e.headers&&tde(e.headers).length>0&&(l.headers=e.headers),fetch(o,l).then((function(e){var n={},r=jfe,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),s||(s=!0,F(t,e.status,n,r),Y(r))})).catch((function(e){s||(s=!0,F(t,0,{}))})),a&&!s&&(s=!0,F(t,200,{})),!s&&e.timeout>0&&i.set((function(){s||(s=!0,F(t,500,{}))}),e.timeout)}function M(e,t,n){var r=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=Jue(r))}return e}function i(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(Wue(e)){Yue(Jue(e).split(/[\r\n]+/),(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=Jue(e.substring(0,n)).toLowerCase(),o=Jue(e.substring(n+1));t[r]=o}else t[Jue(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,tge),t=o(t,e,ege),t=o(t,e,"kill-duration-seconds")),t}function a(e,n){F(t,e.status,i(e),n)}n&&e.disableXhrSync&&(n=!1);var s=function(e,t,n,r,o,i){function a(e,t,n){try{e[t]=n}catch(eDe){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,pme,n),s.open(e,t,!o),n&&a(s,pme,n),!o&&i&&a(s,"timeout",i),s}(qfe,r,D,!0,n,e.timeout);Bue(e.headers,(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=Ige(s);a(s,e),Y(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function F(e,t,n,r){try{e(t,n,r)}catch(eDe){upe(s,2,518,Kde(eDe))}}function B(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(f?xge:jfe);try{var a=Vde();if(!a.sendBeacon(i,e.data))if(o){var l=[];Yue(o.batches,(function(e){if(l&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!a.sendBeacon(i,w.getEventBlob(t[n]))){l.push(e.split(n));break}}else l.push(e.split(0))})),X(l,8003,o.sendType,!0)}else r=0}catch(c){dpe(s,"Failed to send telemetry using sendBeacon API. Ex:"+Kde(c)),r=0}finally{F(t,r,{},jfe)}}function O(e){return 2===e||3===e}function L(e){return P&&O(e)&&(e=2),e}function H(){return!y&&S<n}function V(){var e=k;return k=[],e}function z(e,t,n){var r=!1;return e&&e.length>0&&!y&&l[t]&&w&&(r=0!==t||H()&&(n>0||b.allowRequestSending())),r}function U(e){var t={};return e&&Yue(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function W(e,n,r,o,i){if(e&&0!==e.length)if(y)X(e,1,o);else{o=L(o);try{var a=e,u=0!==o;xde(c,(function(){return"HttpManager:_sendBatches"}),(function(a){a&&(e=e.slice(0));for(var s=[],c=null,d=xme(),p=l[o]||(u?l[1]:l[0]),h=p&&p._transport,f=m&&(P||O(o)||3===h||p._isSync&&2===h);z(e,o,n);){var g=e.shift();g&&g.count()>0&&(v.isTenantKilled(g.iKey())?s.push(g):(c=c||w.createPayload(n,r,u,f,i,o),w.appendPayload(c,g,t)?null!==c.overflow&&(e=[c.overflow].concat(e),c.overflow=null,q(c,d,xme(),i),d=xme(),c=null):(q(c,d,xme(),i),d=xme(),e=[g].concat(e),c=null)))}c&&q(c,d,xme(),i),e.length>0&&(k=e.concat(k)),X(s,8004,o)}),(function(){return{batches:U(a),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:i,useSendBeacon:O(o),sendType:o}}),!u)}catch(d){upe(s,2,48,"Unexpected Exception sending batch: "+Kde(d))}}}function G(e,t){var n={url:g,hdrs:{},useHdrs:!1};t?(n.hdrs=Sme(n.hdrs,E),n.useHdrs=tde(n.hdrs).length>0):Bue(E,(function(e,t){kge[e]?Tge(n,kge[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),Tge(n,rge,"NO_AUTH",t),Tge(n,nge,dme,t);var r=jfe;Yue(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),Tge(n,age,r,t),Tge(n,ige,ade().toString(),t);var o=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return jfe}(e);if(mme(o)&&(n.url+="&ext.intweb.msfpc="+o),b.shouldAddClockSkewHeaders()&&Tge(n,oge,b.getClockSkewHeaderValue(),t),c.getWParam){var i=c.getWParam();i>=0&&(n.url+="&w="+i)}for(var a=0;a<_.length;a++)n.url+="&"+_[a].name+"="+_[a].value;return n}function j(e,t,n){e[t]=e[t]||{},e[t][a.identifier]=n}function q(t,n,o,i){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var u=!!e.sendHook,m=l[t.sendType];!O(t.sendType)&&t.isBeacon&&2===t.sendReason&&(m=l[2]||l[3]||m);var f=T;(t.isBeacon||3===m._transport)&&(f=!1);var g=G(t,f);f=f||g.useHdrs;var y=xme();xde(c,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var l=0;l<t.batches.length;l++)for(var C=t.batches[l].events(),_=0;_<C.length;_++){var E=C[_];if(I){var k=E.timings=E.timings||{};j(k,"sendEventStart",y),j(k,"serializationStart",n),j(k,"serializationCompleted",o)}E.sendAttempt>0?E.sendAttempt++:E.sendAttempt=1}X(t.batches,1e3+(i||0),t.sendType,!0);var w={data:t.payloadBlob,urlString:g.url,headers:g.hdrs,_thePayload:t,_sendReason:i,timeout:d,disableXhrSync:p,disableFetchKeepAlive:h};f&&(Pge(w.headers,Jfe)||(w.headers["cache-control"]="no-cache, no-store"),Pge(w.headers,$fe)||(w.headers["content-type"]=Zfe));var T=null;m&&(T=function(n){b.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var s=9e3,l=null,c=!1,u=!1;try{var d=!0;if(typeof t!==ge.jA){if(n){b.setClockSkew(n["time-delta-millis"]);var p=n["kill-duration"]||n["kill-duration-seconds"];Yue(v.setKillSwitchTenants(n["kill-tokens"],p),(function(e){Yue(o.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);o.numEvents-=n.count(),l.push(n)}}))}))}if(200==t||204==t)return void(s=200);((m=t)>=300&&m<500&&408!=m&&429!=m||501==m||505==m||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<r?(c=!0,K((function(){0===o.sendType&&S--,W(o.batches,h+1,o.isTeardown,P?2:o.sendType,5)}),P,fge(h))):(u=!0,P&&(s=8001)))}}finally{c||(b.setClockSkew(),function(t,n,r,o){try{o&&a._backOffTransmission(),200===n&&(o||t.isSync||a._clearBackOff(),function(e){if(I){var t=xme();Yue(e,(function(e){e&&e.count()>0&&function(e,t){I&&Yue(e,(function(e){j(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),X(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(S--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,s,i,u)),X(l,8004,o.sendType)}var m}(n,o,t,i)},l=t.isTeardown||t.isSync;try{m.sendPOST(n,o,l),e.sendListener&&e.sendListener(w,n,l,t.isBeacon)}catch(c){dpe(s,"Unexpected exception sending payload. Ex:"+Kde(c)),F(o,0,{})}}),xde(c,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(T)if(0===t.sendType&&S++,u&&!t.isBeacon&&3!==m._transport){var n={data:w.data,urlString:w.urlString,headers:Sme({},w.headers),timeout:w.timeout,disableXhrSync:w.disableXhrSync,disableFetchKeepAlive:w.disableFetchKeepAlive},r=!1;xde(c,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,x||e._thePayload||(e._thePayload=e._thePayload||w._thePayload,e._sendReason=e._sendReason||w._sendReason),T(e)}),t.isSync||t.isTeardown)}catch(o){r||T(w)}}))}else T(w)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:i}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&X(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&X(t.failedEvts,8002,t.sendType)}function K(e,t,n){t?e():i.set(e,n)}function Y(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(eDe){upe(s,1,519,"Response handler failed: "+eDe)}if(t){var o=JSON.parse(t);mme(o.webResult)&&mme(o.webResult.msfpc)&&u.set("MSFPC",o.webResult.msfpc,31536e3)}}catch(i){}}function X(e,t,n,r){if(e&&e.length>0&&o){var i=o[function(e){var t=_ge[e];mme(t)||(t="oth",e>=9e3&&e<=9999?t=Qfe:e>=8e3&&e<=8999?t=Kfe:e>=1e3&&e<=1999&&(t=Yfe));return t}(t)];if(i){var a=0!==n;xde(c,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){K((function(){try{i.call(o,e,t,a,n)}catch(eDe){upe(s,1,74,"send request notification failed: "+eDe)}}),r||a,0)}),(function(){return{batches:U(e),reason:t,isSync:a,sendSync:r,sendType:n}}),!a)}}}e.initialize=function(e,t,n,r,o){var i;o||(o={}),g=e+g,T=!!Tue(o.avoidOptions)||!o.avoidOptions,c=t,u=t.getCookieMgr(),I=!c.config.disableEventTimings;var v=!!c.config.enableCompoundKey;s=(a=n).diagLog();var y=o.valueSanitizer,b=o.stringifyObjects;Tue(o.enableCompoundKey)||(v=!!o.enableCompoundKey),d=o.xhrTimeout,p=!!o.disableXhrSync,h=!!o.disableFetchKeepAlive,f=!1!==o.addNoResponse,C=!jde(),w=new Cge(c,y,b,v),Due(o.useSendBeacon)||(C=!!o.useSendBeacon);var S=r,_=o.alwaysUseXhrOverride?r:null,E=o.alwaysUseXhrOverride?r:null,k=[3,2];if(!r){x=!1;var P=zde();P&&P.protocol&&"file:"===P.protocol.toLowerCase()&&(D=!1);var R=[];jde()?(R=[2,1],k=[2,1,3]):R=[1,2,3],(r=A(R=Dge(R,o.transports),!1))||dpe(s,"No available transport to send events"),S=A(R,!0)}_||(_=A(k=Dge(k,o.unloadTransports),!0)),m=!x&&(C&&Yde()||!h&&Xde(!0)),(i={})[0]=r,i[1]=S||A([1,2,3],!0),i[2]=_||S||A([1],!0),i[3]=E||A([2,3],!0)||S||A([1],!0),l=i},e._getDbgPlgTargets=function(){return[l[0],v,w,l]},e.addQueryStringParameter=function(e,t){for(var n=0;n<_.length;n++)if(_[n].name===e)return void(_[n].value=t);_.push({name:e,value:t})},e.addHeader=function(e,t){E[e]=t},e.canSendRequest=function(){return H()&&b.allowRequestSending()},e.sendQueuedRequests=function(e,t){Tue(e)&&(e=0),P&&(e=L(e),t=2),z(k,e,0)&&W(V(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!y&&0===S&&0===k.length},e.setUnloading=function(e){P=e},e.addBatch=function(e){if(e&&e.count()>0){if(v.isTenantKilled(e.iKey()))return!1;k.push(e)}return!0},e.teardown=function(){k.length>0&&W(V(),0,!0,2,2)},e.pause=function(){y=!0},e.resume=function(){y=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(Due(t)&&(t=1),P&&(t=L(t),n=2),W([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Rge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Nge(e){clearTimeout(e)}function Mge(e,t){return{set:e||Rge,clear:t||Nge}}var Fge="eventsDiscarded",Bge=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.10";var o,i,a,s,l,c,u,d=!1,p=[],h=null,m=!1,f=0,g=500,v=0,y=1e4,b={},C=Gfe,S=null,x=null,_=0,E=0,k={},w=-1,I=!0,P=!1,T=6,A=2;return(0,D.Z)(t,r,(function(e,t){function r(e){"beforeunload"!==(e||Bde().event).type&&(P=!0,i.setUnloading(P)),H(2,2)}function D(e){P=!1,i.setUnloading(P)}function R(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,I&&(e.ext=gde(e.ext),e.baseData&&(e.baseData=gde(e.baseData)),e.data&&(e.data=gde(e.data))),e.sync)if(_||m)e.latency=3,e.sync=!1;else if(i)return I&&(e=gde(e)),void i.sendSynchronousBatch(dge.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=v,o=y;4===n&&(r=f,o=g);var a=!1;if(r<o)a=!U(e,t);else{var s=1,l=20;4===n&&(s=4,l=1),a=!0,function(e,t,n,r){for(;n<=t;){var o=V(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?f-=a:v-=a,Z(Fge,[i],Wfe.QueueFull),!0}n++}return W(),!1}(e.iKey,e.latency,s,l)&&(a=!U(e,t))}a&&Q(Fge,[e],Wfe.QueueFull)}function N(e,t,n){var r=G(e,t,n);return i.sendQueuedRequests(t,n),r}function M(){return v>0}function F(){if(w>=0&&G(w,0,l)&&i.sendQueuedRequests(0,l),f>0&&!x&&!m){var e=b[C][2];e>=0&&(x=O((function(){x=null,N(4,0,1),F()}),e))}var t=b[C][1];!S&&!h&&t>=0&&!m&&(M()?S=O((function(){S=null,N(0===E?3:1,0,1),E++,E%=2,F()}),t):E=0)}function B(){n=null,d=!1,p=[],h=null,m=!1,f=0,g=500,v=0,y=1e4,b={},C=Gfe,S=null,x=null,_=0,E=0,o=null,k={},a=void 0,s=0,w=-1,l=null,I=!0,P=!1,T=6,A=2,c=null,u=Mge(),i=new Age(500,2,1,{requeue:Y,send:J,sent:$,drop:ee,rspFail:te,oth:ne},u),K(),k[4]={batches:[],iKeyMap:{}},k[3]={batches:[],iKeyMap:{}},k[2]={batches:[],iKeyMap:{}},k[1]={batches:[],iKeyMap:{}},re()}function O(e,t){0===t&&_&&(t=1);var n=1e3;return _&&(n=fge(_-1)),u.set(e,t*n)}function L(){return null!==S&&(u.clear(S),S=null,E=0,!0)}function H(e,t){L(),h&&(u.clear(h),h=null),m||N(1,e,t)}function V(e,t,n){var r=k[t];r||(r=k[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=dge.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function z(t,n){i.canSendRequest()&&!_&&(a>0&&v>a&&(n=!0),n&&null==h&&e.flush(t,null,20))}function U(e,t){I&&(e=gde(e));var n=e.latency,r=V(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(v++,t&&0===e.sendAttempt&&z(!e.sync,s>0&&r.count()>=s)):f++,!0)}function W(){for(var e=0,t=0,n=function(n){var r=k[n];r&&r.batches&&Yue(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);v=t,f=e}function G(t,n,r){var o=!1,a=0===n;return!a||i.canSendRequest()?xde(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=k[n];r&&r.batches&&r.batches.length>0&&(Yue(r.batches,(function(t){i.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?f-=t.count():v-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&Q(Fge,e,Wfe.KillSwitch),o&&w>=t&&(w=-1,l=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(w=w>=0?Math.min(w,t):t,l=Math.max(l,r)),o}function j(e,t){N(1,0,t),W(),q((function(){e&&e(),p.length>0?h=O((function(){h=null,j(p.shift(),t)}),0):(h=null,F())}))}function q(e){i.isCompletelyIdle()?e():h=O((function(){h=null,q(e)}),.25)}function K(){(b={}).REAL_TIME=[2,1,0],b.NEAR_REAL_TIME=[6,3,0],b.BEST_EFFORT=[18,9,0]}function Y(t,n){var r=[],o=T;P&&(o=A),Yue(t,(function(t){t&&t.count()>0&&Yue(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(kme(t,e.identifier),R(t,!1)):r.push(t))}))})),r.length>0&&Q(Fge,r,Wfe.NonRetryableStatus),P&&H(2,2)}function X(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(eDe){upe(e.diagLog(),1,74,t+" notification failed: "+eDe)}}function Q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&X(e,[t].concat(n))}function Z(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&Yue(t,(function(t){t&&t.count()>0&&X(e,[t.events()].concat(n))}))}function J(e,t,n){e&&e.length>0&&X("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function $(e,t){Z("eventsSent",e,t),F()}function ee(e,t){Z(Fge,e,t>=8e3&&t<=8999?t-8e3:Wfe.Unknown)}function te(e){Z(Fge,e,Wfe.NonRetryableStatus),F()}function ne(e,t){Z(Fge,e,Wfe.Unknown),F()}function re(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,y/6)}B(),e._getDbgPlgTargets=function(){return[i]},e.initialize=function(s,l,d){xde(l,(function(){return"PostChannel:initialize"}),(function(){var p=l;t.initialize(s,l,d);try{l.addUnloadCb;c=Yhe(Dpe(e.identifier),l.evtNamespace&&l.evtNamespace());var h=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),u=Mge(n.setTimeoutOverride,n.clearTimeoutOverride),I=!n.disableOptimizeObj&&!!Mde("chrome"),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(p),n.eventsLimitInMem>0&&(y=n.eventsLimitInMem),n.immediateEventLimit>0&&(g=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),Gue(n.maxEventRetryAttempts)&&(T=n.maxEventRetryAttempts),Gue(n.maxUnloadEventRetryAttempts)&&(A=n.maxUnloadEventRetryAttempts),re(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),mme(s.anonCookieName)&&i.addQueryStringParameter("anoncknm",s.anonCookieName),i.sendHook=n.payloadPreprocessor,i.sendListener=n.payloadListener;var m=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=l.getNotifyMgr(),i.initialize(m,e.core,e,o,n);var f=s.disablePageUnloadEvents||[];eme(r,f,c),tme(r,f,c),nme(D,s.disablePageShowEvents,c)}catch(eDe){throw e.setInitialized(!1),eDe}}),(function(){return{coreConfig:s,core:l,extensions:d}}))},e.processTelemetry=function(t,r){kme(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),i=!!n.disableTelemetry;o&&(i=i||!!o.disableTelemetry);var a=t;i||d||(n.overrideInstrumentationKey&&(a.iKey=n.overrideInstrumentationKey),o&&o.overrideInstrumentationKey&&(a.iKey=o.overrideInstrumentationKey),R(a,!0),P?H(2,2):F()),e.processNext(a,r)},e._doTeardown=function(e,t){H(2,2),d=!0,i.teardown(),$he([Fhe,Mhe,Rhe],null,c),function(e,t){var n=Yhe(Bhe,t);$he([Rhe],e,n),$he([Ahe],null,n)}(null,c),function(e,t){var n=Yhe(Ohe,t);$he([Nhe],e,n),$he([Ahe],null,n)}(null,c),B()},e.setEventQueueLimits=function(e,t){y=e>0?e:1e4,a=t>0?t:0,re();var n=v>e;if(!n&&s>0)for(var r=1;!n&&r<=3;r++){var o=k[r];o&&o.batches&&Yue(o.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}z(!0,n)},e.pause=function(){L(),m=!0,i.pause()},e.resume=function(){m=!1,i.resume(),F()},e.addResponseHandler=function(e){i._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){L(),K(),C=Gfe,F(),Bue(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=Math.ceil(o)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),b[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!m)if(n=n||1,e)null==h?(L(),G(1,0,n),h=O((function(){h=null,j(t,n)}),0)):p.push(t);else{var r=L();N(1,1,n),null!==t&&void 0!==t&&t(),r&&F()}},e.setMsaAuthTicket=function(e){i.addHeader(sge,e)},e.hasEvents=M,e._setTransmitProfile=function(e){C!==e&&void 0!==b[e]&&(L(),C=e,F())},e._backOffTransmission=function(){_<4&&(_++,L(),F())},e._clearBackOff=function(){_&&(_=0,L(),F())},nde(e,"_setTimeoutOverride",(function(){return u.set}),(function(e){u=Mge(e,u.clear)})),nde(e,"_clearTimeoutOverride",(function(){return u.clear}),(function(e){u=Mge(u.set,e)}))})),r}return(0,T.ne)(t,e),t.__ieDyn=1,t}(yhe),Oge=Bge,Lge=function(e){function t(){var n,r,o=e.call(this)||this;return(0,D.Z)(t,o,(function(e,t){e.initialize=function(e,i){var a=o;xde(o,(function(){return"ApplicationInsights:initialize"}),(function(){n=new Oge;var o=[r=new Ufe];i&&(o=o.concat(i)),e||pde("You must provide a config object!");var s=e.channels;if(s&&s.length>0){for(var l=!1,c=0;c<s[0].length;c++)if(s[0][c].identifier===n.identifier){l=!0;break}l||s[0].push(n)}else e.channels=[[n]];var u=e.extensionConfig=e.extensionConfig||[];u[n.identifier]=u[n.identifier]||e&&e.channelConfiguration||{},u[r.identifier]=u[r.identifier]||e&&e.propertyConfiguration||{};try{t.initialize(e,o)}catch(d){upe(a.logger,1,514,"Failed to initialize SDK."+Kde(d))}}),(function(){return{config:e,extensions:i}}))},e.getPropertyManager=function(){return r},e.getPostChannel=function(){return n}})),o}return(0,T.ne)(t,e),t.__ieDyn=1,t}(Pme),Hge=Lge,Vge=function(){function e(t,n){this.logger=t,this.isSampled=!(null===n||void 0===n?void 0:n.disabled)&&this.calculateSampling(null===n||void 0===n?void 0:n.samplingPercentage),this.logger.verbose("PerformanceTelemetryReporter: Sampled for 1p telemetry: "+this.isSampled.toString()),this.eventsToEmit=(null===n||void 0===n?void 0:n.eventsToEmit)||[Uoe.AcquireTokenSilent,Uoe.SsoSilent,Uoe.AcquireTokenByCode],this.logger.verbose("PerformanceTelemetryReporter: Events to be tracked include : "+this.eventsToEmit),this.logger.verbose("PerformanceTelemetryReporter: Events passed in the PerformanceTelemetryConfiguration are: "+(null===n||void 0===n?void 0:n.eventsToEmit));var r={instrumentationKey:e.instrumentationKey,extensions:[]};this.appInsights=new Hge,this.appInsights.initialize(r,[]),this.logger.verbose("PerformanceTelemetryReporter: Initialized")}return e.prototype.calculateSampling=function(t){return 0===t?(this.logger.verbose(" PerformanceTelemetryReporter: No sampling rate configured."),!1):(this.logger.verbose("PerformanceTelemetryReporter: Configured sampling rate = "+t+" "),this.logger.verbose("PerformanceTelemetryReporter: DEFAULT sampling rate = "+e.DEFAULT_SAMPLING_RATE),Math.random()<=(t||e.DEFAULT_SAMPLING_RATE))},e.prototype.sendCustomEvent=function(e){var t=Foe(Foe({},e),{appName:void 0}),n={name:e.name,data:t};this.logger.verbose("PerformanceTelemetryReporter: Sending "+n.name+" for tracking"),this.appInsights.track(n)},e.prototype.canSendEvent=function(t){var n,r=!this.eventsToEmit||(null===(n=this.eventsToEmit)||void 0===n?void 0:n.indexOf(t.name))>-1,o=e.DEFAULT_ALLOWED_CLOUDS.some((function(e){return 0===t.authority.indexOf(e.toString())}));return this.isSampled&&r&&o},e.prototype.getPerformanceTelemetryCallback=function(){var e=this;this.logger.trace("PerformanceTelemetryReporter: Attaching callback to send custom metrics.");return this.logger.verbose(" PerformanceTelemetryReporter: Returning callback as telemetry emitted."),function(t){t.forEach((function(t){e.canSendEvent(t)?(e.logger.verbose("PerformanceTelemetryReporter: Emitting telemetry for "+t.name,t.correlationId),e.sendCustomEvent(t)):e.logger.verbose("PerformanceTelemetryReporter: Skipping telemetry for "+t.name,t.correlationId)}))}},e.DEFAULT_SAMPLING_RATE=.1,e.DEFAULT_ALLOWED_CLOUDS=[nce.AzurePublic,nce.AzurePpe],e.instrumentationKey="d634483c08244c1ca09af2b2d952c92e-ab2bba03-2ba3-49d8-a82c-ef6da750d8ab-7725",e}(),zge=function(e){function t(t,n){var r=e.call(this,t)||this,o=new Vge(r.getLogger(),null===n||void 0===n?void 0:n.performanceTelemetryConfiguration);return r.addPerformanceCallback(o.getPerformanceTelemetryCallback()),r}return Noe(t,e),t}(eue);function Uge(e){var t=e.brokerOptions,n={preferredInteractionType:null,brokerRedirectParams:{},actAsBroker:!1,allowBrokering:!1,trustedBrokerDomains:[],brokerHandshakeTimeout:(null===t||void 0===t?void 0:t.brokerHandshakeTimeout)||2e3,brokerMessageTimeout:(null===t||void 0===t?void 0:t.brokerMessageTimeout)||6e3,brokerInteractionTimeout:(null===t||void 0===t?void 0:t.brokerInteractionTimeout)||3e5};return{brokerOptions:Foe(Foe({},n),t)}}var Wge,Gge=function(){function e(){}return e.validateRedirectUri=function(e){if($ie.isEmpty(e))throw kse.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in Bre)t.push(Bre[n]);if(t.indexOf(e)<0)throw kse.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(eDe){throw kse.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if($ie.isEmpty(e)||$ie.isEmpty(t))throw kse.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([Rse,Nse].indexOf(e)<0)throw kse.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach((function(t,n){e[n]&&delete e[n]})),e):{}},e}(),jge=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Dre.RESPONSE_TYPE,encodeURIComponent(Rre.CODE_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(Dre.RESPONSE_MODE,encodeURIComponent(e||Ore.QUERY))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?Hoe(e||[],Nre):e||[],r=new ale(n);this.parameters.set(Dre.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(Dre.CLIENT_ID,encodeURIComponent(e))},e.prototype.addBrokerClientId=function(e){this.parameters.set(Yae.BROKER_CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e,t){if(Gge.validateRedirectUri(e),t){var n=this.buildRedirectUri(e,t);this.parameters.set(Dre.REDIRECT_URI,encodeURIComponent(n))}else this.parameters.set(Dre.REDIRECT_URI,encodeURIComponent(e))},e.prototype.buildRedirectUri=function(e,t){return"brk-"+t+"://"+new wse(e).getUrlComponents().HostNameAndPort},e.prototype.addBrokerRedirectUri=function(e){this.parameters.set(Yae.BROKER_REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){Gge.validateRedirectUri(e),this.parameters.set(Dre.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(Dre.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(Fre.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(Fre.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(Ire.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(Ire.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(Fre.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);Gge.validateClaims(n),this.parameters.set(Dre.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(Dre.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(Dre.X_CLIENT_SKU,e.sku),this.parameters.set(Dre.X_CLIENT_VER,e.version),this.parameters.set(Dre.X_CLIENT_OS,e.os),this.parameters.set(Dre.X_CLIENT_CPU,e.cpu)},e.prototype.addPrompt=function(e){Gge.validatePrompt(e),this.parameters.set(""+Dre.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){$ie.isEmpty(e)||this.parameters.set(Dre.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(Dre.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(Gge.validateCodeChallengeParams(e,t),!e||!t)throw kse.createInvalidCodeChallengeParamsError();this.parameters.set(Dre.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Dre.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(Dre.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(Dre.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(Dre.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(Dre.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(Dre.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){this.parameters.set(Dre.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){this.parameters.set(Dre.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(Dre.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(Dre.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(Dre.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(Dre.CLIENT_INFO,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this;Gge.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach((function(n){t.parameters.set(n,e[n])}))},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(eDe){throw kse.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(Are.ACCESS_TOKEN)||(n[Are.ACCESS_TOKEN]={}),n[Are.ACCESS_TOKEN][Are.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(Zre.username,e)},e.prototype.addPassword=function(e){this.parameters.set(Zre.password,e)},e.prototype.addPopToken=function(e){$ie.isEmpty(e)||(this.parameters.set(Dre.TOKEN_TYPE,Xre.POP),this.parameters.set(Dre.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){$ie.isEmpty(e)||(this.parameters.set(Dre.TOKEN_TYPE,Xre.SSH),this.parameters.set(Dre.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(Dre.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Dre.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Dre.X_MS_LIB_CAPABILITY,aoe)},e.prototype.addLogoutHint=function(e){this.parameters.set(Dre.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach((function(t,n){e.push(n+"="+t)})),e.join("&")},e}(),qge=function(e,t,n,r,o){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=o||null},Kge=function(){function e(e,t,n,r,o,i){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=o,this.persistencePlugin=i,this.homeAccountIdentifier=""}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?Jie.createStateNotFoundError("Cached State"):Jie.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Jie.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(iie.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new iie(e.error||Rre.EMPTY_STRING,e.error_description,e.suberror);throw new Dse(e.error||Rre.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&nle(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(iie.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new iie(e.error,e.error_description,e.suberror);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Dse(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,i,a,s){return Boe(this,void 0,void 0,(function(){var l,c,u,d,p;return Ooe(this,(function(h){switch(h.label){case 0:if(t.id_token&&(l=new $se(t.id_token||Rre.EMPTY_STRING,this.cryptoObj),i&&!$ie.isEmpty(i.nonce)&&l.claims.nonce!==i.nonce))throw Jie.createNonceMismatchError();this.homeAccountIdentifier=ile.generateHomeAccountId(t.client_info||Rre.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,l),i&&i.state&&(c=ece.parseRequestState(this.cryptoObj,i.state)),t.key_id=t.key_id||o.sshKid||void 0,u=this.generateCacheRecord(t,n,r,o,l,a,i),h.label=1;case 1:return h.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),d=new kce(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(d)]):[3,3];case 2:h.sent(),h.label=3;case 3:return!s||!u.account||(p=u.account.generateAccountKey(),this.cacheStorage.getAccount(p))?[4,this.cacheStorage.saveCacheRecord(u)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,u,!1,o,l,c)]);case 4:return h.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&d?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(d)]):[3,7];case 6:h.sent(),h.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,u,!1,o,l,c,t.spa_code)]}}))}))},e.prototype.handleBrokeredServerTokenResponse=function(t,n,r,o,i,a,s){return Boe(this,void 0,void 0,(function(){var l,c,u,d,p;return Ooe(this,(function(h){switch(h.label){case 0:if(t.id_token&&(l=new $se(t.id_token||Rre.EMPTY_STRING,this.cryptoObj),a&&!$ie.isEmpty(a.nonce)&&l.claims.nonce!==a.nonce))throw Jie.createNonceMismatchError();return this.homeAccountIdentifier=ile.generateHomeAccountId(t.client_info||Rre.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,l),a&&a.state&&(c=ece.parseRequestState(this.cryptoObj,a.state)),(u=this.generateCacheRecord(t,n,r,o,l,s,a,o.embeddedAppClientId)).refreshToken&&this.cacheStorage.setRefreshTokenCredential(u.refreshToken),u.account&&this.cacheStorage.setAccount(u.account),u.refreshToken=null,[4,e.generateAuthenticationResult(this.cryptoObj,n,u,!1,o,l,c)];case 1:return d=h.sent(),p=this.generateResponseThumbprint(n,o.scopes,o.embeddedAppClientId,i),[2,Foe(Foe({},d),{tokensToCache:u,responseThumbprint:p})]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,o,i,a,s){var l,c,u=t.getPreferredCache();if($ie.isEmpty(u))throw Jie.createInvalidCacheEnvironmentError();!$ie.isEmpty(e.id_token)&&o&&(l=tle.createIdTokenEntity(this.homeAccountIdentifier,u,e.id_token||Rre.EMPTY_STRING,s||this.clientId,o.claims.tid||Rre.EMPTY_STRING),c=this.generateAccountEntity(e,o,t,i,a));var d=null;if(!$ie.isEmpty(e.access_token)){var p=e.scope?ale.fromString(e.scope):new ale(r.scopes||[]),h=("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,m=("string"===typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,f=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=n+h,v=g+m,y=f&&f>0?n+f:void 0;d=ele.createAccessTokenEntity(this.homeAccountIdentifier,u,e.access_token||Rre.EMPTY_STRING,s||this.clientId,o?o.claims.tid||Rre.EMPTY_STRING:t.tenant,p.printScopes(),g,v,this.cryptoObj,y,e.token_type,i,e.key_id,r.claims,r.requestedClaimsHash)}var b=null;$ie.isEmpty(e.refresh_token)||(b=Xle.createRefreshTokenEntity(this.homeAccountIdentifier,u,e.refresh_token||Rre.EMPTY_STRING,this.clientId,e.foci,i));var C=null;return $ie.isEmpty(e.foci)||(C=Qle.createAppMetadataEntity(s||this.clientId,u,e.foci)),new qge(c,l,d,b,C)},e.prototype.generateAccountEntity=function(e,t,n,r,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:"",s=o?o.msgraph_host:"";if(i===Ase.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),ile.createGenericAccount(this.homeAccountIdentifier,t,n,r,a,s);if($ie.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Jie.createClientInfoEmptyError();return e.client_info?ile.createAccount(e.client_info,this.homeAccountIdentifier,t,n,r,a,s):ile.createGenericAccount(this.homeAccountIdentifier,t,n,r,a,s)},e.generateAuthenticationResult=function(e,t,n,r,o,i,a,s){var l,c,u;return Boe(this,void 0,void 0,(function(){var d,p,h,m,f,g,v,y,b,C,S;return Ooe(this,(function(x){switch(x.label){case 0:if(d="",p=[],h=null,f=Rre.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Xre.POP||!n.accessToken.keyId)return[3,2];if(g=new Ece(e),v=n.accessToken,y=v.secret,!(b=v.keyId))throw Jie.createKeyIdMissingError();return[4,g.signPopToken(y,b,o)];case 1:return d=x.sent(),[3,3];case 2:d=n.accessToken.secret,x.label=3;case 3:p=ale.fromString(n.accessToken.target).asArray(),h=new Date(1e3*Number(n.accessToken.expiresOn)),m=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),x.label=4;case 4:return n.appMetadata&&(f=n.appMetadata.familyId===qre?qre:Rre.EMPTY_STRING),C=(null===i||void 0===i?void 0:i.claims.oid)||(null===i||void 0===i?void 0:i.claims.sub)||Rre.EMPTY_STRING,S=(null===i||void 0===i?void 0:i.claims.tid)||Rre.EMPTY_STRING,[2,{authority:t.canonicalAuthority,uniqueId:C,tenantId:S,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:i?i.rawToken:Rre.EMPTY_STRING,idTokenClaims:i?i.claims:{},accessToken:d,fromCache:r,expiresOn:h,correlationId:o.correlationId,extExpiresOn:m,familyId:f,tokenType:(null===(l=n.accessToken)||void 0===l?void 0:l.tokenType)||Rre.EMPTY_STRING,state:a?a.userRequestState:Rre.EMPTY_STRING,cloudGraphHostName:(null===(c=n.account)||void 0===c?void 0:c.cloudGraphHostName)||Rre.EMPTY_STRING,msGraphHost:(null===(u=n.account)||void 0===u?void 0:u.msGraphHost)||Rre.EMPTY_STRING,code:s}]}}))}))},e.prototype.generateResponseThumbprint=function(e,t,n,r){var o={authority:e.canonicalAuthority,clientId:n,scopes:t};return r+"."+this.cryptoObj.base64Encode(JSON.stringify(o))},e}(),Yge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.getAuthCodeUrl=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){return t=this.createBrokerAuthCodeUrlQueryString(e),[2,wse.appendQueryString(this.authority.authorizationEndpoint,t)]}))}))},t.prototype.acquireToken=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o;return Ooe(this,(function(i){switch(i.label){case 0:if(this.logger.verbose("in acquireToken call"),!e||$ie.isEmpty(e.code))throw Jie.createTokenRequestCannotBeMadeError();return n=Jse.nowSeconds(),[4,this.executeBrokerTokenRequest(this.authority,e)];case 1:return r=i.sent(),(o=new Kge(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),e.embeddedAppClientId?[3,3]:[4,o.handleServerTokenResponse(r.body,this.authority,n,e,t)];case 2:case 4:return[2,i.sent()];case 3:return[4,o.handleBrokeredServerTokenResponse(r.body,this.authority,n,e,e.redirectUri,t)]}}))}))},t.prototype.executeBrokerTokenRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return Ooe(this,(function(c){switch(c.label){case 0:return n={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[4,this.createBrokerTokenRequestBody(t)];case 1:if(r=c.sent(),o=this.createBrokerTokenQueryParameters(t),i=void 0,t.clientInfo)try{a=nle(t.clientInfo,this.cryptoUtils),i={credential:a.uid+"."+a.utid,type:Wle.HOME_ACCOUNT_ID}}catch(eDe){this.logger.verbose("Could not parse client info for CCS Header: "+eDe)}return s=this.createTokenRequestHeaders(i||t.ccsCredential),l=$ie.isEmpty(o)?e.tokenEndpoint:e.tokenEndpoint+"?"+o,[2,this.executePostToTokenEndpoint(l,r,s,n)]}}))}))},t.prototype.createBrokerAuthCodeUrlQueryString=function(e){var t=new jge;t.addClientId(e.embeddedAppClientId);var n=Hoe(e.scopes||[],e.extraScopesToConsent||[]);t.addScopes(n),t.addRedirectUri(e.redirectUri,this.config.authOptions.clientId);var r=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(r),t.addResponseMode(e.responseMode),t.addResponseTypeCode(),t.addLibraryInfo(this.config.libraryInfo),t.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&t.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&t.addPrompt(e.prompt),e.domainHint&&t.addDomainHint(e.domainHint),e.prompt!==Bre.SELECT_ACCOUNT)if(e.sid&&e.prompt===Bre.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),t.addSid(e.sid);else if(e.account){var o=this.extractSidFromAccount(e.account);if(o&&e.prompt===Bre.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),t.addSid(o);try{var i=rle(e.account.homeAccountId);t.addCcsOid(i)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),t.addLoginHint(e.account.username);try{i=rle(e.account.homeAccountId);t.addCcsOid(i)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&t.addNonce(e.nonce),e.state&&t.addState(e.state),(!$ie.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.addBrokerClientId(this.config.authOptions.clientId),t.addBrokerRedirectUri(e.brokerRedirectUri),t.createQueryString()},t.prototype.createBrokerTokenQueryParameters=function(e){var t=new jge;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},t.prototype.createBrokerTokenRequestBody=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Ooe(this,(function(s){switch(s.label){case 0:return(t=new jge).addClientId(e.embeddedAppClientId),t.addRedirectUri(e.redirectUri,this.config.authOptions.clientId),t.addScopes(e.scopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),t.addGrantType("authorization_code"),t.addClientInfo(),e.authenticationScheme===Xre.POP&&e.resourceRequestMethod&&e.resourceRequestUri?[4,new Ece(this.cryptoUtils).generateCnf(e)]:[3,2];case 1:return n=s.sent(),t.addPopToken(n.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Xre.SSH){if(!e.sshJwk)throw kse.createMissingSshJwkError();t.addSshJwk(e.sshJwk)}s.label=3;case 3:if(r=e.correlationId||this.config.cryptoInterface.createNewGuid(),t.addCorrelationId(r),(!$ie.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),o=void 0,e.clientInfo)try{i=nle(e.clientInfo,this.cryptoUtils),o={credential:i.uid+"."+i.utid,type:Wle.HOME_ACCOUNT_ID}}catch(eDe){this.logger.verbose("Could not parse client info for CCS Header: "+eDe)}else o=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&o)switch(o.type){case Wle.HOME_ACCOUNT_ID:try{i=rle(o.credential),t.addCcsOid(i)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}break;case Wle.UPN:t.addCcsUpn(o.credential)}return e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[Dre.RETURN_SPA_CODE]||t.addExtraQueryParameters(((a={})[Dre.RETURN_SPA_CODE]="1",a)),t.addBrokerClientId(this.config.authOptions.clientId),t.addBrokerRedirectUri(e.brokerRedirectUri),[2,t.createQueryString()]}}))}))},t.prototype.extractSidFromAccount=function(e){return e.idTokenClaims&&e.idTokenClaims.sid||null},t}(Ice),Xge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.acquireToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l;return Ooe(this,(function(c){switch(c.label){case 0:return[4,this.initializeBrokeredRequest(e,goe.Redirect)];case 1:t=c.sent(),this.browserStorage.setRedirectRequestContext(t.embeddedAppClientId),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null),n=this.initializeServerTelemetryManager(foe.acquireTokenRedirect),c.label=2;case 2:return c.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return r=c.sent(),[4,this.createAuthCodeClient(n,t.authority)];case 4:return o=c.sent(),this.logger.verbose("Auth code client created"),i=new Wce(o,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient),[4,o.getAuthCodeUrl(t)];case 5:return a=c.sent(),s=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+s),[4,i.initiateAuthRequest(a,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:s,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,c.sent()];case 7:throw(l=c.sent())instanceof eie&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(t.state),l;case 8:return[2]}}))}))},t.prototype.createAuthCodeClient=function(e,t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new Yge(n)]}}))}))},t.prototype.initializeBrokeredRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,c,u;return Ooe(this,(function(d){switch(d.label){case 0:return this.logger.verbose("initializeBrokeredRequest called"),n=Rre.EMPTY_STRING,e.state&&(r=ece.parseRequestState(this.browserCrypto,e.state),n=r&&r.userRequestState||""),o=e.authority||this.config.auth.authority,i=new ale(e.scopes||[]),a={interactionType:t,brokeredClientId:e.embeddedAppClientId,brokeredReqAuthority:o,brokeredReqScopes:i.printScopes()},s=ece.setRequestState(this.browserCrypto,n,a),(l=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account"),this.logger.verbosePii("Setting validated request account: "+l)),c=e.nonce||this.browserCrypto.createNewGuid(),this.browserStorage.setInteractionInProgress(!0),u=[{}],[4,this.initializeBaseRequest(e)];case 1:return[2,Foe.apply(void 0,[Foe.apply(void 0,u.concat([d.sent()])),{account:l||void 0,state:s,nonce:c,responseMode:Ore.FRAGMENT,authority:o,correlationId:this.correlationId,scopes:Hoe(e&&e.scopes||[]),redirectUri:this.getRedirectUri(e.redirectUri),brokerRedirectUri:e.brokerRedirectUri,embeddedAppClientId:e.embeddedAppClientId}])]}}))}))},t}(Gce),Qge=function(){function e(){}return e.setRequestState=function(t,n,r,o){var i=e.generateLibraryState(t,r,o);return $ie.isEmpty(n)?i:""+i+Rre.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t,n){if(!e)throw Jie.createNoCryptoObjectError("generateLibraryState");var r={id:n||e.createNewGuid()};t&&(r.meta=t);var o=JSON.stringify(r);return e.base64Encode(o)},e.parseRequestState=function(e,t){if(!e)throw Jie.createNoCryptoObjectError("parseRequestState");if($ie.isEmpty(t))throw Jie.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(Rre.RESOURCE_DELIM),r=n[0],o=n.length>1?n.slice(1).join(Rre.RESOURCE_DELIM):"",i=e.base64Decode(r),a=JSON.parse(i);return{userRequestState:$ie.isEmpty(o)?"":o,libraryState:a}}catch(eDe){throw Jie.createInvalidStateError(t,eDe.message)}},e}(),Zge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.acquireToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i;return Ooe(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.initializeBrokeredRequest(e,goe.Popup)];case 1:return t=a.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null),n=this.generatePopupName(t.scopes,t.authority),r=e.popupWindowAttributes||{},this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),[2,this.acquireTokenPopupAsync(t,n,r)]):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),o=this.openSizedPopup("about:blank",n,r),[2,this.acquireTokenPopupAsync(t,n,r,o)]);case 2:return i=a.sent(),[2,Promise.reject(i)];case 3:return[2]}}))}))},t.prototype.createAuthCodeClient=function(e,t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new Yge(n)]}}))}))},t.prototype.initializeBrokeredRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,c,u,d;return Ooe(this,(function(p){switch(p.label){case 0:return this.logger.verbose("initializeBrokeredRequest called"),n=Rre.EMPTY_STRING,r=Rre.EMPTY_STRING,e.state&&(o=Qge.parseRequestState(this.browserCrypto,e.state),n=o&&o.userRequestState||Rre.EMPTY_STRING,r=o&&o.libraryState.id||Rre.EMPTY_STRING),i=e.authority||this.config.auth.authority,a=new ale(e.scopes||[]),s={interactionType:t,brokeredClientId:e.embeddedAppClientId,brokeredReqAuthority:i,brokeredReqScopes:a.printScopes()},l=Qge.setRequestState(this.browserCrypto,n,s,r),(c=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account"),this.logger.verbosePii("Setting validated request account: "+c)),u=e.nonce||this.browserCrypto.createNewGuid(),this.browserStorage.setInteractionInProgress(!0),d=[{}],[4,this.initializeBaseRequest(e)];case 1:return[2,Foe.apply(void 0,[Foe.apply(void 0,d.concat([p.sent()])),{account:c||void 0,state:l,nonce:u,responseMode:Ore.FRAGMENT,authority:i,correlationId:this.correlationId,scopes:Hoe(e&&e.scopes||[]),redirectUri:this.getRedirectUri(e.redirectUri),brokerRedirectUri:e.brokerRedirectUri,embeddedAppClientId:e.embeddedAppClientId}])]}}))}))},t}(Uce),Jge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.acquireToken=function(t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),$ie.isEmpty(t.loginHint)&&$ie.isEmpty(t.sid)&&(!t.account||$ie.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==Bre.NONE)throw jae.createSilentPromptValueError(t.prompt);return[4,this.initializeBrokeredRequest(Foe(Foe({},t),{prompt:Bre.NONE}),goe.Silent)];case 1:return n=r.sent(),[2,e.prototype.acquireToken.call(this,n)]}}))}))},t.prototype.createAuthCodeClient=function(e,t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new Yge(n)]}}))}))},t.prototype.initializeBrokeredRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l,c,u;return Ooe(this,(function(d){switch(d.label){case 0:return this.logger.verbose("initializeBrokeredRequest called"),n=Rre.EMPTY_STRING,e.state&&(r=ece.parseRequestState(this.browserCrypto,e.state),n=r&&r.userRequestState||""),o=e.authority||this.config.auth.authority,i=new ale(e.scopes||[]),a={interactionType:t,brokeredClientId:e.embeddedAppClientId,brokeredReqAuthority:o,brokeredReqScopes:i.printScopes()},s=ece.setRequestState(this.browserCrypto,n,a),(l=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account"),this.logger.verbosePii("Setting validated request account: "+l)),c=e.nonce||this.browserCrypto.createNewGuid(),u=[{}],[4,this.initializeBaseRequest(e)];case 1:return[2,Foe.apply(void 0,[Foe.apply(void 0,u.concat([d.sent()])),{account:l||void 0,state:s,nonce:c,responseMode:Ore.FRAGMENT,authority:o,correlationId:this.correlationId,scopes:Hoe(e&&e.scopes||[]),redirectUri:this.getRedirectUri(e.redirectUri)}])]}}))}))},t}(qce),$ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.acquireToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:return t=Jse.nowSeconds(),[4,this.executeBrokerTokenRequest(e,this.authority)];case 1:return n=o.sent(),(r=new Kge(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(n.body),e.embeddedAppClientId?[2,r.handleBrokeredServerTokenResponse(n.body,this.authority,t,e,e.embeddedAppRedirectUri)]:[2,r.handleServerTokenResponse(n.body,this.authority,t,e,void 0,void 0,!0)]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n;return Ooe(this,(function(r){if(!e)throw kse.createEmptyTokenRequestError();if(!e.account)throw Jie.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return[2,this.acquireBrokerTokenWithCachedRefreshToken(e,!0)]}catch(eDe){if(t=eDe instanceof iie&&eDe.errorCode===rie.code,n=eDe instanceof Dse&&eDe.errorCode===soe&&eDe.subError===loe,t||n)return[2,this.acquireBrokerTokenWithCachedRefreshToken(e,!1)];throw eDe}return[2,this.acquireBrokerTokenWithCachedRefreshToken(e,!1)]}))}))},t.prototype.executeBrokerTokenRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a;return Ooe(this,(function(s){switch(s.label){case 0:return[4,this.createBrokerTokenRequestBody(e)];case 1:return n=s.sent(),r=this.createBrokerTokenQueryParameters(e),o=this.createTokenRequestHeaders(e.ccsCredential),i={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},a=wse.appendQueryString(t.tokenEndpoint,r),[2,this.executePostToTokenEndpoint(a,n,o,i)]}}))}))},t.prototype.acquireBrokerTokenWithCachedRefreshToken=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r;return Ooe(this,(function(o){if(!(n=this.cacheManager.getRefreshToken(e.account,t)))throw iie.createNoTokensFoundError();return r=Foe(Foe({},e),{refreshToken:n.secret}),[2,this.acquireToken(r)]}))}))},t.prototype.createBrokerTokenQueryParameters=function(e){var t=new jge;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},t.prototype.createBrokerTokenRequestBody=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o;return Ooe(this,(function(i){switch(i.label){case 0:return(t=new jge).addClientId(e.embeddedAppClientId),t.addScopes(e.scopes),t.addGrantType("refresh_token"),t.addClientInfo(),t.addLibraryInfo(this.config.libraryInfo),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager),n=e.correlationId||this.config.cryptoInterface.createNewGuid(),t.addCorrelationId(n),t.addRefreshToken(e.refreshToken),e.authenticationScheme!==Xre.POP?[3,2]:[4,new Ece(this.cryptoUtils).generateCnf(e)];case 1:return r=i.sent(),t.addPopToken(r.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Xre.SSH){if(!e.sshJwk)throw kse.createMissingSshJwkError();t.addSshJwk(e.sshJwk)}i.label=3;case 3:if((!$ie.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Wle.HOME_ACCOUNT_ID:try{o=rle(e.ccsCredential.credential),t.addCcsOid(o)}catch(eDe){this.logger.verbose("Could not parse home account ID for CCS Header: "+eDe)}break;case Wle.UPN:t.addCcsUpn(e.ccsCredential.credential)}return t.addBrokerClientId(this.config.authOptions.clientId),t.addRedirectUri(e.embeddedAppRedirectUri,this.config.authOptions.clientId),[2,t.createQueryString()]}}))}))},t}(Oce),eve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.acquireToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o=this;return Ooe(this,(function(i){switch(i.label){case 0:return t=Foe(Foe({},e),this.initializeBaseRequest(e)),n=this.initializeServerTelemetryManager(foe.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(n,t.authority)];case 1:return r=i.sent(),this.logger.verbose("Refresh token client created"),[2,r.acquireTokenByRefreshToken(t).catch((function(e){throw e instanceof eie&&e.setCorrelationId(o.correlationId),n.cacheFailedRequest(e),e}))]}}))}))},t.prototype.createRefreshTokenClient=function(e,t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(e,t)];case 1:return n=r.sent(),[2,new $ge(n)]}}))}))},t}(Kce),tve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Noe(t,e),t.prototype.generateBrokerResponseKey=function(e){return Kae.BROKER_RESPONSE+"."+e},t.prototype.getBrokerResponseByOrigin=function(e){var t=this.getMemoryKeys(),n=Kae.BROKER_RESPONSE+"."+e,r=t.filter((function(e){return e.indexOf(n)>=0}));return r.length<=0?null:(r.length>1&&this.logger.error("Too many responses found for the origin, sending back the first one found. You may need to call login/acquireTokenPopup/Silent() again."),this.getBrokerResponse(r[0]))},t.prototype.getBrokerResponseByThumbprint=function(e,t){var n=t+"."+this.cryptoImpl.base64Encode(JSON.stringify(e)),r=Kae.BROKER_RESPONSE+"."+n;return this.getBrokerResponse(r)},t.prototype.getBrokerResponse=function(e){var t=this.getMemoryCache(e);return t?(this.removeMemoryItem(e),t):null},t.prototype.removeMemoryItem=function(e){return this.internalStorage.removeItem(e),!0},t.prototype.getMemoryCache=function(e){var t=this.generateCacheKey(e),n=this.internalStorage.getItem(t);return n||null},t.prototype.setMemoryCache=function(e,t){var n=this.generateCacheKey(e);this.internalStorage.setItem(n,t)},t.prototype.getMemoryKeys=function(){return this.internalStorage.getKeys()},t}(ice),nve=function(e){function t(t,n,r,o,i,a,s,l,c,u,d,p){var h=e.call(this,t,n,r,o,i,a,s,l,c,u,d,p)||this;return h.embeddedAppClientId="",h.embeddedAppOrigin="",h}return Noe(t,e),t.prototype.acquireToken=function(t){return Boe(this,void 0,void 0,(function(){var n;return Ooe(this,(function(r){switch(r.label){case 0:return this.logger.verbose("Getting tokens from brokered native flow."),n=t,this.embeddedAppClientId=n.embeddedAppClientId,this.embeddedAppOrigin=n.embeddedAppRedirectUri,[4,e.prototype.acquireToken.call(this,n)];case 1:return[2,r.sent()]}}))}))},t.prototype.handleNativeResponse=function(t,n,r){var o;return Boe(this,void 0,void 0,(function(){var i,a,s,l,c,u,d,p;return Ooe(this,(function(h){switch(h.label){case 0:return this.logger.trace("BrokerNativeInteractionClient - handleNativeResponse called"),a="",s=this.createIdTokenObj(t),l=this.createHomeAccountIdentifier(t,s),c=null===(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId}))||void 0===o?void 0:o.homeAccountId,u=new Kge(this.config.auth.clientId,this.browserStorage,this.browserCrypto,this.logger,null,null),[4,this.getDiscoveredAuthority(n.authority)];case 1:return d=h.sent(),l!==c||t.account.id===n.accountId?[3,3]:(this.logger.verbose("Getting tokens from brokered native flow."),[4,this.handleEmbeddedNativeResponse(t,n,l,s,r)]);case 2:return i=h.sent(),a=u.generateResponseThumbprint(d,ale.fromString(t.scope).asArray(),this.embeddedAppClientId||n.embeddedAppClientId,this.embeddedAppOrigin||n.embeddedAppRedirectUri),[3,5];case 3:return[4,e.prototype.handleNativeResponse.call(this,t,n,r)];case 4:i=h.sent(),h.label=5;case 5:return p=u.generateCacheRecord(t,d,r,this.convertNativeRequestToBaseAuthRequest(n),s,void 0,void 0,this.embeddedAppClientId||n.embeddedAppClientId),[2,Foe(Foe({},i),{tokensToCache:p,responseThumbprint:a})]}}))}))},t.prototype.handleEmbeddedNativeResponse=function(e,t,n,r,o){return Boe(this,void 0,void 0,(function(){var i,a,s;return Ooe(this,(function(l){switch(l.label){case 0:return[4,this.getDiscoveredAuthority(t.authority)];case 1:return i=l.sent(),a=i.getPreferredCache(),s=this.createAccountEntity(e,n,r,a),[4,this.generateAuthenticationResult(e,t,r,s,i.canonicalAuthority,o)];case 2:return[2,l.sent()]}}))}))},t.prototype.convertNativeRequestToBaseAuthRequest=function(e){var t=e.scope,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["scope"]),r=ale.fromString(t);return Foe(Foe({},n),{scopes:r.asArray()})},t}(Vce);!function(e){e.ExperimentalPublicClientApplicationInitializeBrokering="experimentalPublicClientApplicationInitializeBrokering",e.BrokerClientApplicationHandleBrokerHandshake="brokerClientApplicationHandleBrokerHandshake",e.BrokerClientApplicationBrokeredSSOSilentRequest="brokerClientApplicationBrokeredSSOSilentRequest",e.BrokerClientApplicationBrokeredSilentRequest="brokerClientApplicationBrokeredSilentRequest",e.EmbeddedClientApplicationSendSSOSilentRequest="embeddedClientApplicationSendSSOSilentRequest",e.EmbeddedClientApplicationSendPopupRequest="embeddedClientApplicationSendPopupRequest",e.EmbeddedClientApplicationSendRedirectRequest="embeddedClientApplicationSendRedirectRequest",e.EmbeddedClientApplicationHandleRedirectRequest="embeddedClientApplicationHandleRedirectRequest",e.EmbeddedClientApplicationSendSilentRefreshRequest="embeddedClientApplicationSendSilentRefreshRequest"}(Wge||(Wge={}));var rve=new Set(["brokerInteractionTimeoutMs","brokerMessageTimeoutMs","brokerHandshakeTimeoutMs","brokerIframeTimeoutMs"]);function ove(e,t,n){return e.startMeasurement(t,n)}function ive(e,t){e&&e.addStaticFields(function(e){var t,n;try{for(var r=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(e)),o=r.next();!o.done;o=r.next()){var i=o.value;rve.has(i)&&"number"===typeof e[i]&&(e[i]=Math.floor(e[i]))}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}(t))}var ave,sve,lve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.brokerStorage=new tve(r.config.auth.clientId,r.config.cache,r.browserCrypto,r.logger),r.currentBrokerRedirectResponse=void 0,r.hybridAuthPromise=void 0,r.experimentalConfig=Uge(n),r}return Noe(t,e),t.prototype.handleRedirectPromise=function(e){return Boe(this,void 0,void 0,(function(){var t,n;return Ooe(this,(function(r){switch(r.label){case 0:return t=this.handleBrokerRedirect(e),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(poe.REDIRECT_CONTEXT)),this.currentBrokerRedirectResponse=this.waitForBrokeredResponse(t),[4,this.currentBrokerRedirectResponse];case 1:return n=r.sent(),this.currentBrokerRedirectResponse=void 0,[2,n&&!n.tokensToCache?n:null]}}))}))},t.prototype.getRequestContext=function(){return this.brokerStorage.getRedirectRequestContext()},t.prototype.handleBrokerRedirect=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c=this;return Ooe(this,(function(u){return this.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_START,goe.Redirect),this.logger.verbose("handleBrokerRedirect called"),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||Rre.EMPTY_STRING,"undefined"===typeof(r=this.redirectResponse.get(n))?(this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),i=void 0,o&&ese.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new nve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.ssoSilent,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(o),this.nativeInternalStorage,o.correlationId),i=a.handleRedirectPromise()):(s=this.browserStorage.getTemporaryCache(poe.CORRELATION_ID,!0)||"",l=new Xge(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,s),i=l.handleRedirectPromise(e)),r=i.then((function(e){e&&(t.length<c.getAllAccounts().length?(c.eventHandler.emitEvent(Moe.LOGIN_SUCCESS,goe.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, login success")):(c.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, acquire token success")));return c.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_END,goe.Redirect),e})).catch((function(e){throw t.length>0?c.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Redirect,null,e):c.eventHandler.emitEvent(Moe.LOGIN_FAILURE,goe.Redirect,null,e),c.eventHandler.emitEvent(Moe.HANDLE_REDIRECT_END,goe.Redirect),e})),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])}))}))},t.prototype.waitForBrokeredResponse=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){switch(n.label){case 0:return[4,e];case 1:if(t=n.sent()){if(!t.tokensToCache)return[2,t];this.brokerStorage.setMemoryCache(this.brokerStorage.generateBrokerResponseKey(t.responseThumbprint),JSON.stringify(t)),this.setActiveAccount(t.account)}return[2,null]}}))}))},t.prototype.listenForBrokerMessage=function(e){return Boe(this,void 0,void 0,(function(){return Ooe(this,(function(t){return this.logger.verbose("listening for child broker messages."),window.addEventListener("message",this.handleBrokerMessage.bind(this)),e&&e.codeRequest&&(this.hybridAuthPromise=this.acquireTokenByCode(e.codeRequest)),[2,this.hybridAuthPromise]}))}))},t.prototype.handleBrokerMessage=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){switch(n.label){case 0:if(!(t=Mse.validateMessage(e)))return[3,8];switch(t.data.messageType){case qae.HANDSHAKE_REQUEST:return[3,1];case qae.HANDLE_REDIRECT_REQUEST:return[3,3];case qae.AUTH_REQUEST:return[3,5]}return[3,7];case 1:return this.logger.verbose("Broker handshake request received"),[4,this.handleBrokerHandshake(t)];case 2:case 4:case 6:return[2,n.sent()];case 3:return this.logger.verbose("Broker handle redirect request received"),[4,this.handleBrokerRedirectResponse(t)];case 5:return this.logger.verbose("Broker auth request received"),[4,this.handleBrokerAuthRequest(t)];case 7:case 8:return[2]}}))}))},t.prototype.handleBrokerHandshake=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o;return Ooe(this,(function(i){switch(i.label){case 0:if(t=ove(this.performanceClient,Wge.BrokerClientApplicationHandleBrokerHandshake),n=Fse.validate(e),this.logger.verbose("Broker handshake validated: "+JSON.stringify(n)),r=new Yse(nse,""),!this.hybridAuthPromise)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.hybridAuthPromise];case 2:return i.sent(),[3,4];case 3:return o=i.sent(),this.logger.error("Broker could obtain tokens use authorization code initializer: "+o),[3,4];case 4:return e.source.postMessage(r,e.origin),t.endMeasurement({success:!0}),this.logger.verbose("Sending handshake response to "+e.origin),[2]}}))}))},t.prototype.handleBrokerRedirectResponse=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i;return Ooe(this,(function(a){switch(a.label){case 0:return Cle.validate(e)?(t=e.ports[0],this.currentBrokerRedirectResponse?[4,this.currentBrokerRedirectResponse]:[3,2]):[3,3];case 1:a.sent(),a.label=2;case 2:if(n=this.brokerStorage.getBrokerResponseByOrigin(this.getEmbeddedAppRedirectUri(e.origin)))return r=JSON.parse(n),o=e.ports[0],i=new ble(goe.Redirect,r),this.logger.verbosePii("Sending auth response"),o.postMessage(i),o.close(),[2];i=new ble(goe.Redirect,null),t.postMessage(i),t.close(),a.label=3;case 3:return[2]}}))}))},t.prototype.handleBrokerAuthRequest=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l;return Ooe(this,(function(c){switch(c.label){case 0:if(!(t=Xse.validate(e)))return[3,3];if(!t.request.authority||!t.request.scopes)throw Kse.createBrokerRequestIncompleteError();return ove(this.performanceClient,Uoe.AcquireTokenByBroker,t.request.correlationId),this.logger.verbose("Broker auth request validated: "+t),this.currentBrokerRedirectResponse?[4,this.currentBrokerRedirectResponse]:[3,2];case 1:c.sent(),c.label=2;case 2:if(n={authority:t.request.authority,clientId:t.embeddedClientId,scopes:t.request.scopes},r=this.brokerStorage.getBrokerResponseByThumbprint(n,this.getEmbeddedAppRedirectUri(t.embeddedAppOrigin)))return o=JSON.parse(r),i=e.ports[0],a=new ble(goe.Redirect,o),this.logger.verbosePii("Sending auth response"),i.postMessage(a),i.close(),[2];switch(s=t.request.account||this.getActiveAccount(),t.interactionType){case goe.Silent:return s?[2,this.brokeredSilentRequest(t,e.ports[0],s)]:[2,this.brokeredSsoSilentRequest(t,e.ports[0])];case goe.Redirect:case goe.Popup:default:return l=this.getInteractionType(t.interactionType),[2,this.interactiveBrokerRequest(l,t,e)]}c.label=3;case 3:return[2]}}))}))},t.prototype.getInteractionType=function(e){var t=this.experimentalConfig.brokerOptions.preferredInteractionType;return t||e},t.prototype.interactiveBrokerRequest=function(e,t,n){return Boe(this,void 0,void 0,(function(){return Ooe(this,(function(r){switch(e){case goe.Redirect:return[2,this.brokeredRedirectRequest(t,n.ports[0])];case goe.Popup:return[2,this.brokeredPopupRequest(t,n.ports[0])];case goe.Silent:return this.logger.error("Invalid code path. interactiveBrokerRequest() should only be called for interactive requests."),[2];case goe.None:return this.logger.error("Broker is blocking interactive requests. Please attempt a silent request or sign into the broker first."),[2];default:return this.logger.error("Invalid code path. interactiveBrokerRequest() should only be called for interactive requests."),[2]}}))}))},t.prototype.brokeredRedirectRequest=function(e,t){var n,r;return Boe(this,void 0,void 0,(function(){var o,i,a,s,l,c,u;return Ooe(this,(function(d){switch(d.label){case 0:this.logger.verbose("Brokered redirect request initiated."),d.label=1;case 1:return d.trys.push([1,5,,6]),o=new Qse,t.postMessage(o),t.close(),this.logger.verbose("Sending redirect response: "+o),i=e.request,a=new Xge(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,i.correlationId),i.redirectUri=e.embeddedAppOrigin,i.embeddedAppClientId=e.embeddedClientId,i.brokerRedirectUri=a.getRedirectUri(),i.redirectStartPage=null===(n=this.experimentalConfig.brokerOptions.brokerRedirectParams)||void 0===n?void 0:n.redirectStartPage,i.onRedirectNavigate=null===(r=this.experimentalConfig.brokerOptions.brokerRedirectParams)||void 0===r?void 0:r.onRedirectNavigate,s=i.account||this.getActiveAccount(),this.canUseNative(i,null===s||void 0===s?void 0:s.nativeAccountId)?(this.logger.verbose("Native flow available for broker."),i.embeddedAppRedirectUri=this.getEmbeddedAppRedirectUri(e.embeddedAppOrigin),(l=e.request).extraQueryParameters=Foe(Foe({},l.extraQueryParameters),{child_client_id:i.embeddedAppClientId,child_redirect_uri:i.embeddedAppRedirectUri}),l.redirectUri=Tse.getCurrentUri(),this.browserStorage.setRedirectRequestContext(i.embeddedAppClientId),this.browserStorage.setInteractionInProgress(!0),[4,this.acquireTokenByNative(l,foe.acquireTokenRedirect)]):[3,3];case 2:return d.sent(),[3,4];case 3:return[2,a.acquireToken(i)];case 4:return[3,6];case 5:return c=d.sent(),u=new ble(goe.Redirect,null,c),this.logger.verbose("Found auth error in redirect: "+c),t.postMessage(u),t.close(),[3,6];case 6:return[2]}}))}))},t.prototype.brokeredPopupRequest=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s,l;return Ooe(this,(function(c){switch(c.label){case 0:this.logger.verbose("Brokered popup request initiated."),c.label=1;case 1:return c.trys.push([1,6,,7]),n=e.request,r=new Zge(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,n.correlationId),n.redirectUri=e.embeddedAppOrigin,n.embeddedAppClientId=e.embeddedClientId,n.brokerRedirectUri=r.getRedirectUri(),o=void 0,i=n.account||this.getActiveAccount(),this.canUseNative(n,null===i||void 0===i?void 0:i.nativeAccountId)?(this.logger.verbose("Native flow available for broker."),n.embeddedAppRedirectUri=this.getEmbeddedAppRedirectUri(e.embeddedAppOrigin),(a=e.request).extraQueryParameters=Foe(Foe({},a.extraQueryParameters),{child_client_id:n.embeddedAppClientId,child_redirect_uri:n.embeddedAppRedirectUri}),a.redirectUri=Tse.getCurrentUri(),[4,this.acquireTokenByNative(a,foe.acquireTokenPopup)]):[3,3];case 2:return o=c.sent(),[3,5];case 3:return[4,r.acquireToken(n)];case 4:o=c.sent(),c.label=5;case 5:return l=new ble(goe.Popup,o),this.logger.verbosePii("Sending auth response"),t.postMessage(l),t.close(),[3,7];case 6:return s=c.sent(),l=new ble(goe.Popup,null,s),this.logger.verbose("Found auth error in popup: "+s),t.postMessage(l),t.close(),[3,7];case 7:return[2]}}))}))},t.prototype.brokeredSsoSilentRequest=function(e,t){var n,r,o,i;return Boe(this,void 0,void 0,(function(){var a,s,l,c,u,d,p,h;return Ooe(this,(function(m){switch(m.label){case 0:a=ove(this.performanceClient,Wge.BrokerClientApplicationBrokeredSSOSilentRequest,e.request.correlationId),this.logger.verbose("Brokered SSO Silent request initiated."),m.label=1;case 1:return m.trys.push([1,6,,7]),s=e.request,l=new Jge(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,s.correlationId),s.redirectUri=e.embeddedAppOrigin,s.embeddedAppClientId=e.embeddedClientId,s.brokerRedirectUri=l.getRedirectUri(),c=void 0,u=s.account||this.getActiveAccount(),this.canUseNative(s,null===u||void 0===u?void 0:u.nativeAccountId)?(this.logger.verbose("Native flow available for broker."),s.embeddedAppRedirectUri=this.getEmbeddedAppRedirectUri(e.embeddedAppOrigin),(d=e.request).extraQueryParameters=Foe(Foe({},d.extraQueryParameters),{child_client_id:s.embeddedAppClientId,child_redirect_uri:s.embeddedAppRedirectUri}),d.redirectUri=Tse.getCurrentUri(),[4,this.acquireTokenByNative(d,foe.ssoSilent)]):[3,3];case 2:return c=m.sent(),[3,5];case 3:return[4,l.acquireToken(s)];case 4:c=m.sent(),m.label=5;case 5:return h=new ble(goe.Silent,c),this.logger.verbosePii("Sending auth response"),t.postMessage(h),t.close(),a.endMeasurement({success:!0,fromCache:null===(n=h.result)||void 0===n?void 0:n.fromCache,accessTokenSize:null===(r=h.result)||void 0===r?void 0:r.accessToken.length,idTokenSize:null===(o=h.result)||void 0===o?void 0:o.idToken.length,requestId:null===(i=h.result)||void 0===i?void 0:i.requestId}),[3,7];case 6:return p=m.sent(),h=new ble(goe.Silent,null,p),this.logger.verbose("Found auth error in ssoSilent: "+p),t.postMessage(h),t.close(),a.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),[3,7];case 7:return[2]}}))}))},t.prototype.brokeredSilentRequest=function(e,t,n){return Boe(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return Ooe(this,(function(d){switch(d.label){case 0:r=ove(this.performanceClient,Wge.BrokerClientApplicationBrokeredSilentRequest,e.request.correlationId),this.logger.verbose("Brokered Silent request initiated."),d.label=1;case 1:return d.trys.push([1,6,,7]),(o=e.request).embeddedAppClientId=e.embeddedClientId,o.embeddedAppRedirectUri=e.embeddedAppOrigin,o.account||(o.account=n),i=void 0,this.canUseNative(o)?(this.logger.verbose("Native flow available for broker."),o.embeddedAppRedirectUri=this.getEmbeddedAppRedirectUri(e.embeddedAppOrigin),(a=e.request).extraQueryParameters=Foe(Foe({},a.extraQueryParameters),{child_client_id:o.embeddedAppClientId,child_redirect_uri:o.embeddedAppRedirectUri}),a.redirectUri=Tse.getCurrentUri(),[4,this.acquireTokenByNative(a,foe.acquireTokenSilent_silentFlow)]):[3,3];case 2:return i=d.sent(),[3,5];case 3:return[4,this.acquireTokenByRefreshToken(o)];case 4:i=d.sent(),d.label=5;case 5:return(u=new ble(goe.Silent,i)).result&&u.result.tokensToCache?(this.logger.verbosePii("Sending auth response: "+JSON.stringify(u)),t.postMessage(u),t.close(),r.endMeasurement({success:!0,fromCache:u.result.fromCache,accessTokenSize:u.result.accessToken.length,idTokenSize:u.result.idToken.length,isNativeBroker:u.result.fromNativeBroker,requestId:u.result.requestId})):(s=Kse.createNoTokensToCacheError(),l=new ble(goe.Silent,null,s),this.logger.verbose(""+s),t.postMessage(l),t.close(),r.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1})),[3,7];case 6:return c=d.sent(),u=new ble(goe.Silent,null,c),this.logger.verbose("Found auth error in silent: "+c),t.postMessage(u),t.close(),r.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),[3,7];case 7:return[2]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){return Boe(this,void 0,void 0,(function(){var t,n=this;return Ooe(this,(function(r){return this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_NETWORK_START,goe.Silent,e),Tse.blockReloadInHiddenIframes(),[2,(t=new eve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e.correlationId)).acquireToken(e).catch((function(r){var o=r instanceof Dse,i=r instanceof iie,a=r.errorCode===yoe;if(o&&a&&!i)return n.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",e.correlationId),new Jge(n.config,n.browserStorage,n.browserCrypto,n.logger,n.eventHandler,n.navigationClient,foe.acquireTokenSilent_authCode,n.performanceClient,n.nativeInternalStorage,n.nativeExtensionProvider).acquireToken(Foe(Foe({},e),{brokerRedirectUri:t.getRedirectUri()}));throw r}))]}))}))},t.prototype.acquireTokenByNative=function(e,t,n){return Boe(this,void 0,void 0,(function(){var r,o=this;return Ooe(this,(function(i){if(this.logger.trace("Brokered acquireTokenNative called"),!this.nativeExtensionProvider)throw jae.createNativeConnectionNotEstablishedError();return r=new nve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.ssoSilent,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),t===foe.acquireTokenRedirect?[2,r.acquireTokenRedirect(e)]:[2,r.acquireToken(e).catch((function(e){throw e instanceof $ae&&e.isFatal()&&(o.nativeExtensionProvider=void 0),e}))]}))}))},t.prototype.getEmbeddedAppRedirectUri=function(e){return(new jge).buildRedirectUri(e,this.config.auth.clientId)},t}(zge);!function(e){e.Interaction="brokerInteractionTimeoutMs",e.Message="brokerMessageTimeoutMs",e.Iframe="brokerIframeTimeoutMs"}(ave||(ave={})),function(e){e.Interaction="brokerInteractionTimedOut",e.Message="brokerMessageTimedOut",e.Iframe="brokerIframeTimedOut"}(sve||(sve={}));var cve=function(){function e(e,t,n,r,o){this.brokerOpts=t,this.clientId=e,this.logger=n,this.browserStorage=r,this.brokerConnectionEstablished=!1,this.version=nse,this.brokerOrigin=Rre.EMPTY_STRING,this.performanceClient=o}return Object.defineProperty(e.prototype,"trustedBrokersProvided",{get:function(){return!!this.brokerOpts.trustedBrokerDomains&&this.brokerOpts.trustedBrokerDomains.length>=1},enumerable:!1,configurable:!0}),e.prototype.initiateHandshake=function(e){return Boe(this,void 0,void 0,(function(){var t,n;return Ooe(this,(function(r){switch(r.label){case 0:if(!this.trustedBrokersProvided)throw Kse.createNoTrustedBrokersProvidedError();r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.sendHandshakeRequest(e)];case 2:return t=r.sent(),this.brokerOrigin=t.brokerOrigin,this.brokerConnectionEstablished=!0,[3,4];case 3:return n=r.sent(),this.logger.error(n.message),this.brokerConnectionEstablished=!1,[3,4];case 4:return[2]}}))}))},e.prototype.preflightBrokerRequest=function(){return Boe(this,void 0,void 0,(function(){var e;return Ooe(this,(function(t){switch(t.label){case 0:if(this.brokerConnectionEstablished)return[3,4];this.logger.verbose("Attempting handshake..."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.initiateHandshake(this.performanceEvent)];case 2:return t.sent(),[3,4];case 3:throw e=t.sent(),this.logger.error("Handshake rejected"),Kse.createBrokeringDisabledError(e.message);case 4:return[2]}}))}))},e.prototype.sendSsoSilentRequest=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:this.performanceEvent=ove(this.performanceClient,Wge.EmbeddedClientApplicationSendSSOSilentRequest,e.correlationId),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.preflightBrokerRequest()];case 2:return o.sent(),[4,this.sendRequest(e,goe.Silent,{type:ave.Iframe,error:sve.Iframe,value:fce})];case 3:if(t=o.sent(),!(n=ble.processBrokerResponseMessage(t,this.browserStorage)))throw this.performanceEvent.endMeasurement({success:!1}),this.logger.errorPii("Broker response is empty in brokered ssoSilent request: "+JSON.stringify(n)),Kse.createBrokerResponseInvalidError();return this.performanceEvent.endMeasurement({success:!0,fromCache:n.fromCache,accessTokenSize:n.accessToken.length,idTokenSize:n.idToken.length,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),[2,n];case 4:throw r=o.sent(),this.performanceEvent.endMeasurement({success:!1}),r;case 5:return[2]}}))}))},e.prototype.sendPopupRequest=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:this.performanceEvent=ove(this.performanceClient,Wge.EmbeddedClientApplicationSendPopupRequest,e.correlationId),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.preflightBrokerRequest()];case 2:return o.sent(),[4,this.sendRequest(e,goe.Popup,{type:ave.Interaction,error:sve.Interaction,value:this.brokerOpts.brokerInteractionTimeout})];case 3:if(t=o.sent(),!(n=ble.processBrokerResponseMessage(t,this.browserStorage))){if(this.performanceEvent.endMeasurement({success:!1}),!Qse.validate(t))throw this.logger.errorPii("Broker response is empty in brokered popup request: "+JSON.stringify(n)),Kse.createBrokerResponseInvalidError();throw this.logger.verbose("popupRequest requires a redirect by the broker, this app will now redirect."),Kse.createBrokerPopupRequestRedirectingError()}return this.performanceEvent.endMeasurement({success:!0,fromCache:n.fromCache,accessTokenSize:n.accessToken.length,idTokenSize:n.idToken.length,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),[2,n];case 4:throw r=o.sent(),this.performanceEvent.endMeasurement({success:!1}),r;case 5:return[2]}}))}))},e.prototype.sendRedirectRequest=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:this.performanceEvent=ove(this.performanceClient,Wge.EmbeddedClientApplicationSendRedirectRequest,e.correlationId),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.preflightBrokerRequest()];case 2:return o.sent(),[4,this.sendRequest(e,goe.Redirect,{type:ave.Interaction,error:sve.Interaction,value:this.brokerOpts.brokerInteractionTimeout})];case 3:if(t=o.sent(),!(n=Qse.validate(t)))throw this.logger.errorPii("Broker response is not a redirect: "+JSON.stringify(n)),Kse.createBrokerResponseInvalidError();return this.logger.verbose("Broker redirecting: "+n),this.performanceEvent.endMeasurement({success:!0}),[3,5];case 4:throw r=o.sent(),this.performanceEvent.endMeasurement({success:!1}),r;case 5:return[2]}}))}))},e.prototype.sendHandleRedirectRequest=function(){return Boe(this,void 0,void 0,(function(){var e,t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:this.performanceEvent=ove(this.performanceClient,Wge.EmbeddedClientApplicationHandleRedirectRequest),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.preflightBrokerRequest()];case 2:return o.sent(),e=new Cle(this.clientId,this.version),[4,this.messageBroker(e,{type:ave.Message,error:sve.Message,value:this.brokerOpts.brokerMessageTimeout})];case 3:return t=o.sent(),n=ble.processBrokerResponseMessage(t,this.browserStorage),this.performanceEvent.endMeasurement({success:!0,fromCache:null===n||void 0===n?void 0:n.fromCache,accessTokenSize:null===n||void 0===n?void 0:n.accessToken.length,idTokenSize:null===n||void 0===n?void 0:n.idToken.length,isNativeBroker:null===n||void 0===n?void 0:n.fromNativeBroker}),[2,n];case 4:throw r=o.sent(),this.performanceEvent.endMeasurement({success:!1}),r;case 5:return[2]}}))}))},e.prototype.sendSilentRefreshRequest=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r;return Ooe(this,(function(o){switch(o.label){case 0:this.performanceEvent=ove(this.performanceClient,Wge.EmbeddedClientApplicationSendSilentRefreshRequest,e.correlationId),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.preflightBrokerRequest()];case 2:return o.sent(),[4,this.sendRequest(e,goe.Silent,{type:ave.Message,error:sve.Message,value:this.brokerOpts.brokerMessageTimeout})];case 3:if(t=o.sent(),!(n=ble.processBrokerResponseMessage(t,this.browserStorage)))throw this.logger.errorPii("Broker response is empty in brokered silent refresh request: "+JSON.stringify(n)),Kse.createBrokerResponseInvalidError();return this.performanceEvent.endMeasurement({success:!0,fromCache:n.fromCache,accessTokenSize:n.accessToken.length,idTokenSize:n.idToken.length,isNativeBroker:n.fromNativeBroker}),[2,n];case 4:throw r=o.sent(),this.performanceEvent.endMeasurement({success:!1}),r;case 5:return[2]}}))}))},e.prototype.sendRequest=function(e,t,n){return Boe(this,void 0,void 0,(function(){var r;return Ooe(this,(function(o){return r=new Xse(this.clientId,t,e,Rre.EMPTY_STRING),[2,this.messageBroker(r,n)]}))}))},e.prototype.sendHandshakeRequest=function(e){return Boe(this,void 0,void 0,(function(){var t=this;return Ooe(this,(function(n){return[2,new Promise((function(n,r){var o,i=setTimeout((function(){t.logger.warning("Broker handshake timed out"),window.removeEventListener("message",a),ive(e,{brokerHandshakeTimedOut:!0}),r(Kse.createMessageBrokerHandshakeTimeoutError())}),t.brokerOpts.brokerHandshakeTimeout);ive(e,{brokerHandshakeTimeoutMs:t.brokerOpts.brokerHandshakeTimeout});var a=function e(o){try{var a=Yse.validate(o,t.brokerOpts.trustedBrokerDomains);a?(clearTimeout(i),t.logger.verbose("Received handshake response: "+JSON.stringify(a)),window.removeEventListener("message",e),n(a)):(t.logger.warning("Message is not handshake response"),t.logger.verbosePii(""+JSON.stringify(o.data)))}catch(eDe){window.removeEventListener("message",e),r(eDe)}};window.addEventListener("message",a);var s=new Fse(t.clientId,t.version);t.logger.verbose("Sending handshake request: "+s),null===(o=window.top)||void 0===o||o.postMessage(s,"*")}))]}))}))},e.prototype.messageBroker=function(e,t){return void 0===t&&(t={type:ave.Message,error:sve.Message,value:this.brokerOpts.brokerMessageTimeout}),Boe(this,void 0,void 0,(function(){var n=this;return Ooe(this,(function(r){return[2,new Promise((function(r,o){var i,a=setTimeout((function(){var e={};e[t.error.toString()]=!0,ive(n.performanceEvent,e),o(Kse.createMessageBrokerTimeoutError())}),t.value),s={};s[t.type.toString()]=t.value,ive(n.performanceEvent,s);var l=n.messageChannel||new MessageChannel;l.port1.onmessage=function(e){n.logger.verbose("in messageBroker<T> w/ origin: "+e),clearTimeout(a),l.port1.close(),r(e)},null===(i=window.top)||void 0===i||i.postMessage(e,n.brokerOrigin,[l.port2])}))]}))}))},e.prototype.setMessageChannel=function(e){this.messageChannel=e},e}(),uve=function(e){function t(t,n,r,o,i,a,s,l,c,u,d,p){var h=e.call(this,t,n,r,o,i,a,l,c,u)||this;return h.experimentalConfig=s,h.embeddedApp=d,h.broker=p,h}return Noe(t,e),t.prototype.acquireToken=function(){throw new Error("Method not implemented.")},t.prototype.acquireTokenPopup=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){switch(n.label){case 0:if(!this.embeddedApp)throw Kse.createNoEmbeddedAppError();return[4,this.initializeAuthorizationRequest(e,goe.Popup)];case 1:return t=n.sent(),[2,this.embeddedApp.sendPopupRequest(t)]}}))}))},t.prototype.ssoSilent=function(e){return Boe(this,void 0,void 0,(function(){var t,n;return Ooe(this,(function(r){switch(r.label){case 0:if(!this.embeddedApp)throw Kse.createNoEmbeddedAppError();return[4,this.initializeAuthorizationRequest(Foe(Foe({},e),{prompt:Bre.NONE}),goe.Silent)];case 1:t=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.embeddedApp.sendSsoSilentRequest(t)];case 3:return[2,r.sent()];case 4:throw(n=r.sent())instanceof eie&&n.setCorrelationId(this.correlationId),this.browserStorage.cleanRequestByState(t.state),n;case 5:return[2]}}))}))},t.prototype.acquireTokenByBrokerRefresh=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){switch(n.label){case 0:if(!this.embeddedApp)throw Kse.createNoEmbeddedAppError();return[4,this.embeddedApp.sendSilentRefreshRequest(e)];case 1:return t=n.sent(),this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Silent,t),[2,t]}}))}))},t.prototype.logout=function(){throw new Error("Method not implemented.")},t}(Bce),dve=function(e){function t(t,n,r){var o=e.call(this,t,r)||this;return o.experimentalConfig=Uge(n),o}return Noe(t,e),t.prototype.initializeBrokering=function(e){return Boe(this,void 0,void 0,(function(){var t;return Ooe(this,(function(n){switch(n.label){case 0:return this.isBrowserEnvironment?(t=ove(this.performanceClient,Wge.ExperimentalPublicClientApplicationInitializeBrokering),!this.experimentalConfig.brokerOptions.actAsBroker||Tse.isInIframe()?[3,3]:(this.experimentalConfig.brokerOptions.allowBrokering&&this.logger.verbose("Running in top frame and both actAsBroker, allowBrokering flags set to true. actAsBroker takes precedence."),this.broker=new lve(this.config,this.experimentalConfig),this.logger.verbose("Acting as Broker"),this.logger.verbose("Initialize the extension for the new broker instance"),[4,this.broker.initialize()])):[2];case 1:return n.sent(),[4,this.broker.listenForBrokerMessage(e)];case 2:return n.sent(),t.endMeasurement({success:!0}),[3,5];case 3:return this.experimentalConfig.brokerOptions.allowBrokering?(this.embeddedApp=new cve(this.config.auth.clientId,this.experimentalConfig.brokerOptions,this.logger,this.browserStorage,this.performanceClient),this.logger.verbose("Acting as child"),[4,this.embeddedApp.initiateHandshake(t)]):[3,5];case 4:n.sent(),t.endMeasurement({success:this.embeddedApp.brokerConnectionEstablished}),n.label=5;case 5:return[2]}}))}))},t.prototype.handleRedirectPromise=function(t){var n;return Boe(this,void 0,void 0,(function(){var r,o;return Ooe(this,(function(i){switch(i.label){case 0:return r=null===(n=this.broker)||void 0===n?void 0:n.getRequestContext(),this.embeddedApp&&this.embeddedApp.brokerConnectionEstablished?[4,this.embeddedApp.sendHandleRedirectRequest()]:[3,2];case 1:return o=i.sent(),this.browserStorage.setInteractionInProgress(!1),[2,o];case 2:return this.broker&&r&&r!==this.config.auth.clientId?[2,this.broker.handleRedirectPromise(t)]:[2,e.prototype.handleRedirectPromise.call(this,t)];case 3:return[2]}}))}))},t.prototype.acquireTokenRedirect=function(t){var n;return Boe(this,void 0,void 0,(function(){return Ooe(this,(function(r){if(null===(n=this.embeddedApp)||void 0===n?void 0:n.brokerConnectionEstablished)throw jae.createRedirectInIframeError(Tse.isInIframe());return[2,e.prototype.acquireTokenRedirect.call(this,t)]}))}))},t.prototype.acquireTokenPopup=function(e){var t,n=this,r=ove(this.performanceClient,Uoe.AcquireTokenPopup,e.correlationId);try{var o=!!(null===(t=this.embeddedApp)||void 0===t?void 0:t.brokerConnectionEstablished);if(this.preflightBrowserEnvironmentCheck(goe.Popup,!o),this.logger.verbose("experimental acquireTokenPopup called",e.correlationId),o)return new uve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.experimentalConfig,this.performanceClient,this.nativeExtensionProvider,e.correlationId,this.embeddedApp,this.broker).acquireTokenPopup(e).then((function(e){return ive(r,{accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){return r.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError}),Promise.reject(e)}));var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_START,goe.Popup,e):this.eventHandler.emitEvent(Moe.LOGIN_START,goe.Popup,e);var a=void 0;if(this.canUseNative(e))this.logger.verbose("Native popup flow activated"),a=this.acquireTokenNative(e,foe.acquireTokenPopup).then((function(e){return n.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length,requestId:e.requestId}),e})).catch((function(t){if(t instanceof $ae&&t.isFatal())return n.logger.verbose("Native Auth Error"),n.nativeExtensionProvider=void 0,n.createPopupClient(e.correlationId).acquireToken(e);if(t instanceof iie)return n.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),n.createPopupClient(e.correlationId).acquireToken(e);throw n.browserStorage.setInteractionInProgress(!1),t}));else a=new Uce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e.correlationId).acquireToken(e);return a.then((function(e){return i.length<n.getAllAccounts().length?n.eventHandler.emitEvent(Moe.LOGIN_SUCCESS,goe.Popup,e):n.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Popup,e),ive(r,{accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){return i.length>0?n.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Popup,null,e):n.eventHandler.emitEvent(Moe.LOGIN_FAILURE,goe.Popup,null,e),r.endMeasurement({success:!1}),Promise.reject(e)}))}catch(eDe){return r.endMeasurement({success:!1}),Promise.reject(eDe)}},t.prototype.ssoSilent=function(e){return Boe(this,void 0,void 0,(function(){var t,n,r,o=this;return Ooe(this,(function(i){this.preflightBrowserEnvironmentCheck(goe.Silent),t=ove(this.performanceClient,Uoe.SsoSilent,e.correlationId),this.logger.verbose("ssoSilent called",e.correlationId),this.eventHandler.emitEvent(Moe.SSO_SILENT_START,goe.Silent,e);try{return this.embeddedApp&&this.embeddedApp.brokerConnectionEstablished?[2,new uve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.experimentalConfig,this.performanceClient,this.nativeExtensionProvider,e.correlationId,this.embeddedApp,this.broker).ssoSilent(e).then((function(e){return t.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError}),e}))]:(n=void 0,this.canUseNative(e)?(this.logger.verbose("Native sso silent flow activated"),n=this.acquireTokenNative(e,foe.ssoSilent).catch((function(t){if(t instanceof $ae&&t.isFatal())return o.logger.verbose("Native Auth Error"),o.nativeExtensionProvider=void 0,o.createSilentIframeClient(e.correlationId).acquireToken(e);throw t}))):(r=new qce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,foe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e.correlationId),n=r.acquireToken(e)),[2,n.then((function(e){return o.eventHandler.emitEvent(Moe.SSO_SILENT_SUCCESS,goe.Silent,e),t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),t.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e})).catch((function(e){throw e}))])}catch(eDe){throw this.eventHandler.emitEvent(Moe.SSO_SILENT_FAILURE,goe.Silent,null,eDe),t.endMeasurement({success:!1,errorCode:eDe.errorCode,subErrorCode:eDe.subError}),eDe}return[2]}))}))},t.prototype.acquireTokenSilentAsync=function(e,t){return Boe(this,void 0,void 0,(function(){var n,r,o,i,a,s=this;return Ooe(this,(function(l){switch(l.label){case 0:return this.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_START,goe.Silent,e),n=ove(this.performanceClient,Uoe.AcquireTokenSilentAsync,e.correlationId),this.canUseNative(e)?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=Foe(Foe({},e),{account:t}),r=this.acquireTokenNative(o,foe.acquireTokenSilent_silentFlow).catch((function(t){return Boe(s,void 0,void 0,(function(){return Ooe(this,(function(n){if(t instanceof $ae&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw t}))}))})),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(i=new Hce(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient)).initializeSilentRequest(e,t)];case 2:a=l.sent(),r=i.acquireToken(a).catch((function(){return Boe(s,void 0,void 0,(function(){return Ooe(this,(function(t){return this.embeddedApp&&this.embeddedApp.brokerConnectionEstablished?[2,new uve(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.experimentalConfig,this.performanceClient,this.nativeExtensionProvider,e.correlationId,this.embeddedApp,this.broker).acquireTokenByBrokerRefresh(a)]:[2,this.acquireTokenByRefreshToken(a,e)]}))}))})),l.label=3;case 3:return[2,r.then((function(e){return s.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_SUCCESS,goe.Silent,e),n.endMeasurement({success:!0,fromCache:e.fromCache,accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){throw s.eventHandler.emitEvent(Moe.ACQUIRE_TOKEN_FAILURE,goe.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))]}}))}))},t.prototype.setActiveAccount=function(t){this.broker&&this.broker.setActiveAccount(t),e.prototype.setActiveAccount.call(this,t)},t}(zge),pve=function(e){var t,n,r=null!==(t=e.userAgent)&&void 0!==t?t:window.navigator.userAgent,o=r.indexOf("Trident/")>0||r.indexOf("Edge/")>0||r.indexOf("MSIE ")>0,i=!!e.navigateToLoginRequestUrl,a=null!==(n=e.cacheLocation)&&void 0!==n?n:"sessionStorage";return{auth:{clientId:e.msalConfig.clientId,authority:e.msalConfig.authority,redirectUri:e.redirectUri,navigateToLoginRequestUrl:i,cloudDiscoveryMetadata:e.msalConfig.amcCloudDiscoveryMetadata,authorityMetadata:e.msalConfig.amcAuthorityMetadata},cache:{cacheLocation:a,storeAuthStateInCookie:o}}},hve=function(e){return"https://".concat(e.amcRedirectDomain,"/auth/complete-client-signin-oauth")},mve=__webpack_require__(77162),fve=__webpack_require__.n(mve),gve={initialize:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(yle.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw yle.createStubPcaInstanceCalledError()},getLogger:function(){throw yle.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw yle.createStubPcaInstanceCalledError()}},vve=function(){function e(){}return e.getInteractionStatusFromEvent=function(e,t){switch(e.eventType){case Moe.LOGIN_START:return voe.Login;case Moe.SSO_SILENT_START:return voe.SsoSilent;case Moe.ACQUIRE_TOKEN_START:if(e.interactionType===goe.Redirect||e.interactionType===goe.Popup)return voe.AcquireToken;break;case Moe.HANDLE_REDIRECT_START:return voe.HandleRedirect;case Moe.LOGOUT_START:return voe.Logout;case Moe.SSO_SILENT_SUCCESS:case Moe.SSO_SILENT_FAILURE:if(t&&t!==voe.SsoSilent)break;return voe.None;case Moe.LOGOUT_END:if(t&&t!==voe.Logout)break;return voe.None;case Moe.HANDLE_REDIRECT_END:if(t&&t!==voe.HandleRedirect)break;return voe.None;case Moe.LOGIN_SUCCESS:case Moe.LOGIN_FAILURE:case Moe.ACQUIRE_TOKEN_SUCCESS:case Moe.ACQUIRE_TOKEN_FAILURE:if(e.interactionType===goe.Redirect||e.interactionType===goe.Popup){if(t&&t!==voe.Login&&t!==voe.AcquireToken)break;return voe.None}}return null},e}(),yve={instance:gve,inProgress:voe.None,accounts:[],logger:new Gle({})},bve=(0,Gt.createContext)(yve);bve.Consumer;function Cve(e,t){if(e.length!==t.length)return!1;var n=X2(t);return e.every((function(e){var t=n.shift();return!(!e||!t)&&(e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username)}))}function Sve(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter((function(e){return(!t.username||t.username.toLowerCase()===e.username.toLowerCase())&&((!t.homeAccountId||t.homeAccountId.toLowerCase()===e.homeAccountId.toLowerCase())&&(!t.localAccountId||t.localAccountId.toLowerCase()===e.localAccountId.toLowerCase()))}))[0]||null}var xve,_ve="1.5.4";!function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"}(xve||(xve={}));var Eve=function(e,t){var n=t.type,r=t.payload,o=e.inProgress;switch(n){case xve.UNBLOCK_INPROGRESS:e.inProgress===voe.Startup&&(o=voe.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case xve.EVENT:var i=r.message,a=vve.getInteractionStatusFromEvent(i,e.inProgress);a&&(r.logger.info("MsalProvider - ".concat(i.eventType," results in setting inProgress from ").concat(e.inProgress," to ").concat(a)),o=a);break;default:throw new Error("Unknown action type: ".concat(n))}var s=r.instance.getAllAccounts();return o===e.inProgress||Cve(s,e.accounts)?o!==e.inProgress?km(km({},e),{},{inProgress:o}):Cve(s,e.accounts)?e:km(km({},e),{},{accounts:s}):km(km({},e),{},{inProgress:o,accounts:s})};function kve(e){var t=e.instance,n=e.children;(0,Gt.useEffect)((function(){t.initializeWrapperLibrary(Ioe.React,_ve)}),[t]);var r=(0,Gt.useMemo)((function(){return t.getLogger().clone("@azure/msal-react",_ve)}),[t]),o=Ua((0,Gt.useReducer)(Eve,void 0,(function(){return{inProgress:voe.Startup,accounts:t.getAllAccounts()}})),2),i=o[0],a=o[1];(0,Gt.useEffect)((function(){var e=t.addEventCallback((function(e){a({payload:{instance:t,logger:r,message:e},type:xve.EVENT})}));return r.verbose("MsalProvider - Registered event callback with id: ".concat(e)),t.initialize().then((function(){t.handleRedirectPromise().catch((function(){})).finally((function(){a({payload:{instance:t,logger:r},type:xve.UNBLOCK_INPROGRESS})}))})),function(){e&&(r.verbose("MsalProvider - Removing event callback ".concat(e)),t.removeEventCallback(e))}}),[t,r]);var s={instance:t,inProgress:i.inProgress,accounts:i.accounts,logger:r};return jt().createElement(bve.Provider,{value:s},n)}var wve=function(){return(0,Gt.useContext)(bve)};function Ive(e,t){return t&&(t.homeAccountId||t.localAccountId||t.username)?Sve(e.getAllAccounts(),t):e.getActiveAccount()}function Pve(e){var t=wve(),n=t.instance,r=t.inProgress,o=t.logger,i=Ua((0,Gt.useState)((function(){return Ive(n,e)})),2),a=i[0],s=i[1];return(0,Gt.useEffect)((function(){s((function(t){var r=Ive(n,e);return ile.accountInfoIsEqual(t,r,!0)?t:(o.info("useAccount - Updating account"),r)}))}),[r,e,n,o]),a}var Tve,Dve=(0,Gt.createContext)({signInName:""}),Ave=function(e){var t=e.instance,n=e.msalAuthConfig,r=e.children;return jt().createElement(kve,{instance:t},jt().createElement(Dve.Provider,{value:n},jt().createElement(Nve,null,r)))},Rve=function(){var e,t=wve().accounts,n=(0,Gt.useContext)(Dve).signInName;e=Pve(t.find((function(e){return e.username===n})));var r=Pve(t[0]);return e||n||(e=r),e},Nve=function(e){var t=e.children,n=wve().instance,r=Rve();return(0,Gt.useEffect)((function(){n.setActiveAccount(r)}),[n,r]),jt().createElement(jt().Fragment,null,t)};!function(e){e.Popup="popup",e.Redirect="redirect",e.None="none"}(Tve||(Tve={}));var Mve,Fve,Bve=function(){return Mve.useValue()},Ove={},Lve=jt().createContext({initialPersonalInfo:void 0,initialProfilePhoto:void 0}),Hve="GetPersonalInfoOperationName",Vve="GetProfilePhotoOperationName",zve="account-leftnav",Uve=function(e){return"".concat(zve,".").concat(e)},Wve=function(t){var n=t.strings,r=t.selectedNavLink,o=t.getNavigationIconName,i=t.userIds,a=t.mainContentAnchor,s=(0,Gt.useContext)(Lve),l=s.initialPersonalInfo,c=s.initialProfilePhoto,u=Uve(Hve),d=Uve(Vve),p=(0,Gt.useState)(""),h=p[0],m=p[1],f=(0,Gt.useState)(""),g=f[0],v=f[1],y=(0,Gt.useState)(""),b=y[0],C=y[1];(0,Gt.useEffect)((function(){var e;void 0!==l&&(m(l.fullName),v(l.signInName)),void 0!==c&&C(null===(e=c[i[0]])||void 0===e?void 0:e.url)}),[l,c]);var S={"aria-label":n.ariaNavButton,"data-bi-id":Uve("expand-collapse-nav-button"),removeNavButtonBorder:!0},x={imageUrl:b,fallback:"initials",operationData:{componentName:"leftNav.profile-column.persona",operationName:d},itemInteractiveProps:{"aria-label":n.ariaAddProfilePicture,"data-bi-id":"leftnav.profile-image-link",itemInteraction:{interactionType:"withHref",href:n.editPictureLink.url}}},_=h?{kind:"text",text:h,itemInteractiveProps:{"aria-label":sn(n.ariaEditProfile,{fullName:h}),"data-bi-id":"leftnav.profile-name-link",itemInteraction:{interactionType:"withHref",href:n.profilePageLink.url}}}:{kind:"text",text:n.addYourName,itemInteractiveProps:{"aria-label":n.editProfile,"data-bi-id":"leftnav.profile-name-link",itemInteraction:{interactionType:"withHref",href:n.editNameLink.url}}},E={text:g,itemInteractiveProps:{"aria-label":sn(n.ariaViewInbox,{email:g}),"data-bi-id":"leftnav.profile-email-link",itemInteraction:{interactionType:"withHref",href:n.viewInboxLink.url,target:"_blank"}}},k=Object.entries(n.menu).map((function(e){var t=e[0],n=e[1];return{linkType:"directlink",itemKey:t,icon:o(t),text:n.text,"aria-label":n.text,"data-bi-id":n.id,linkInteraction:{interactionType:"withHref",href:"".concat(n.url).concat(a||"")}}})),w={navLinks:k,key:"leftnav-group"},I={expandCollapseNavButton:S,navHeader:{headerType:"profileHeader",persona:x,primaryInfo:_,secondaryInfo:E},navLinkGroups:[w],selectedNavLink:{mainKey:r}},P={expandCollapseNavButton:S,navHeader:{headerType:"profileHeaderShimmer"},navLinkGroups:[w],selectedNavLink:{mainKey:r}};return jt().createElement(vi,{operationData:{componentName:zve,operationName:u},firstLoadView:jt().createElement(PX,(0,e.__assign)({},P)),updatingView:jt().createElement(PX,(0,e.__assign)({},P)),finishedView:jt().createElement(PX,(0,e.__assign)({},I)),failedView:jt().createElement(PX,(0,e.__assign)({},I))})},Gve=function(t){var n=t.strings,r=t.userIds,o=t.selectedNavLink,i=t.getPersonalInfo,a=t.getProfilePhoto,s=t.getNavigationIconName,l=t.mainContentAnchor,c=mi(),u=a({operationName:Uve(Vve),userIds:r}).profilePictureData,d=(0,Gt.useState)(void 0),p=d[0],h=d[1];return Qt((function(){(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),c({name:Uve(Hve),status:"first-load"}),[4,i()];case 1:return t=e.sent(),h(t),c({name:Uve(Hve),status:"finished"}),[3,3];case 2:return n=e.sent(),r=n,c({name:Uve(Hve),status:"failed",error:r}),[3,3];case 3:return[2]}}))}))})),jt().createElement(Lve.Provider,{value:{initialPersonalInfo:p,initialProfilePhoto:u}},jt().createElement(Wve,{strings:n,selectedNavLink:o,userIds:r,getNavigationIconName:s,mainContentAnchor:l}))},jve=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(t){return[2,tl(Ove,"getPersonalInfo",(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("".concat(Oee).concat("/profile","/personal-info"),{operation:"".concat("GLOBAL.HOME.PROFILE",".GETPERSONALINFO")})];case 1:return[2,e.sent().data]}}))}))}))]}))}))];case 1:return[2,t.sent()]}}))}))},qve=function(e){switch(e){case"addressBook":return"POI";case"devices":return"TVMonitor";case"home":return"Home";case"orderHistory":return"ShoppingCart";case"paymentOptions":return"PaymentCard";case"privacy":return"Lock";case"profile":return"Contact";case"security":return"Shield";default:return"Subscriptions"}},Kve=function(e){var t=e.strings,n=e.userIds,r=e.selectedNavLink;return jt().createElement(Gve,{strings:t,userIds:n,selectedNavLink:r,getPersonalInfo:jve,getProfilePhoto:Aee,getNavigationIconName:qve,mainContentAnchor:"#main-content-landing-react"})},Yve=function(t){var n=t.isSignedIn,r=t.pageLayoutProps,o=t.amcAccountLeftNavProps;return n?jt().createElement(wL,(0,e.__assign)({},r,{layoutType:"withNavBar",leftNavContainer:jt().createElement(Kve,(0,e.__assign)({},o))})):jt().createElement(wL,(0,e.__assign)({},r,{layoutType:"withoutNavBar"}))},Xve=function(){return Fve.useValue()};function Qve(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Zve(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Qve(i,r,o,a,s,"next",e)}function s(e){Qve(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Jve(t,n,r,o){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.FINDGUESTSUBSCRIPTION","find-guest-subscription",{email:t,orderId:n,hipSolution:r,hipContext:o.challenge.context})];case 1:return[2,e.sent()]}}))}))}function $ve(t,n){return void 0===n&&(n=""),(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,L8("GLOBAL.SERVICES.CANCELGUESTSUBSCRIPTION","cancel-guest-subscription",{SerializedData:t,cancellationChangeReason:n})];case 1:return[2,e.sent()]}}))}))}var eye,tye="/api/hip/challenge",nye=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return"audio"!==t?[3,2]:[4,Ps("".concat(tye,"/audio"),{operation:"GLOBAL.HIP.GETCHALLENGE.AUDIO"})];case 1:case 3:return[2,e.sent().data];case 2:return[4,Ps("".concat(tye,"/visual"),{operation:"GLOBAL.HIP.GETCHALLENGE.VISUAL"})]}}))}))},rye=function(t){var n=(0,Gt.useState)("visual"),r=n[0],o=n[1],i=(0,Gt.useState)({challengeSource:"",context:{}}),a=i[0],s=i[1],l=mi(),c=function(n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,6]),l({name:t.operationName,status:"first-load"}),t.getHipChallenge?[4,t.getHipChallenge(n)]:[3,2];case 1:return i=e.sent(),[3,4];case 2:return[4,nye(n)];case 3:i=e.sent(),e.label=4;case 4:return r=i,o(n),s(r),l({name:t.operationName,status:"finished"}),[3,6];case 5:return a=e.sent(),l({name:t.operationName,status:"update-failed",error:a}),[3,6];case 6:return[2]}}))}))};return(0,Gt.useEffect)((function(){c(r)}),[]),{mode:r,challenge:a,getNewChallenge:c}},oye=function(){var e=Xve().content.guestCancel.strings;return jt().createElement(bb,{margin:"54px 0px 0px 0px"},jt().createElement(bb,{childrenGap:37},jt().createElement(nb,{tag:"h1",variant:"pageHeader"},e.tryAgain),jt().createElement(Cb,{align:"center"},jt().createElement(zk,{imageFit:"contain",height:"192px",width:"324px",imageType:"ariaHiddenImage",src:e.errorImage.src})),jt().createElement(bb,null,jt().createElement(Cb,{align:"center"},jt().createElement(Ib,{weightOverride:"semi-bold",variant:"bodyPrimaryText"},e.tryAgainText)),jt().createElement(Cb,{align:"center"},jt().createElement(Ib,{variant:"bodySecondaryText"},e.tryAgainSubText)),jt().createElement(Cb,{align:"center"},jt().createElement(Ib,{variant:"bodySecondaryText"},e.tryAgainSubtextPartTwo," "))),jt().createElement(Cb,{align:"center"},jt().createElement(dk,{onClick:function(){window.location.reload()},text:e.refresh,type:"default","data-bi-id":"refresh","aria-label":e.refresh}))))},iye=function(){var e=Xve().content.guestCancel.strings;return jt().createElement(bb,{maxWidth:872,childrenGap:13},jt().createElement(Cb,null,jt().createElement(nb,{tag:"h1",variant:"pageHeader"},e.title)),jt().createElement(Ib,{variant:"bodySecondaryText"},e.bodySecondaryText,jt().createElement(nx,{"aria-label":e.headerSignInMessageLink.text,"data-bi-id":"header-signin-message-link",href:e.headerSignInMessageLink.url,textVariant:"bodyThemeText"},e.headerSignInMessageLink.text)),jt().createElement(Ib,{variant:"bodySecondaryText"},e.bodySecondaryTwoText),jt().createElement(Ib,{variant:"headerErrorText"},e.indicatesText))},aye="guest-cancel.hip-challenge",sye=function(e){var t=e.operationName,n=e.hipSolution,r=e.captchaInputId,o=e.hipChallenge,i=e.hipController,a=e.setHipSolution,s=e.errorMessage,l=Ua((0,Gt.useState)(""),2),c=l[0],u=l[1],d={operationData:{componentName:"GuestCancelComponent",operationName:t},variant:{alignment:"start",titleLocation:"top"},titleProps:{children:jt().createElement(ox,{textWithTokens:o.title,tokensAndValues:{0:jt().createElement(Ib,{variant:"errorBlockIcon"},o.asterisk)}})},mode:i.mode,challengeSource:i.challenge.challengeSource,userSolution:n,challengeProps:{noAudioSupportMessage:o.noAudioSupportMessage,cannotLoadChallengeMessage:o.cannotLoadChallengeMessage,switchToVisualWhenAudioFailedButtonProps:{"aria-label":o.switchToVisualWhenAudioFailedButtonAriaLabel,"data-bi-id":"".concat(aye,".audio-failed.switch-to-visual"),text:o.switchToVisualWhenAudioFailedButtonText},playAudioButtonProps:{"aria-label":o.playAudioButtonAriaLabel,"data-bi-id":"".concat(aye,".play-audio")}},controlsProps:{refreshChallengeButtonProps:{"aria-label":o.controls.refreshChallengeButtonAriaLabel,"data-bi-id":"".concat(aye,".refresh-challenge"),text:o.controls.refreshChallengeButtonText},switchToAudioButtonProps:{"aria-label":o.controls.switchToAudioButtonAriaLabel,"data-bi-id":"".concat(aye,".switch-to-audio"),text:o.controls.switchToAudioButtonText},switchToVisualButtonProps:{"aria-label":o.controls.switchToVisualButtonAriaLabel,"data-bi-id":"".concat(aye,".switch-to-visual"),text:o.controls.switchToVisualButtonText}},visualCaptchaLoadedMessage:o.visualCaptchaReloadMessage,audioCaptchaLoadedMessage:o.audioCaptchaReloadMessage,solutionInputProps:{playAudioInstruction:o.audioCaptchaInputAriaLabel,audioPlaceholder:o.audioPlaceholder,visualPlaceholder:o.visualPlaceholder,"aria-label":c,"data-bi-id":"".concat(aye,".solution-input"),id:r,errorMessage:s},onNewChallengeRequested:function(e){u("audio"===e?o.audioCaptchaInputAriaLabel:o.captchaInputAriaLabel),a(""),i.getNewChallenge(e)},onSolutionChanged:a};return jt().createElement(KL,d)},lye="landing",cye="service.detail",uye="service.cancel",dye="service.renew",pye="service.upgrade",hye="service.detail.notfound",mye="service.guest.cancel",fye="year",gye="month",vye={KeepPlan:"XboxSave.UpgradeOptions.KeepPlan",UpgradePlan:"XboxSave.UpgradeOptions.UpgradePlan"},yye="AMC_XboxSaveFlow_GPU",bye="AMC_XboxSaveFlow_PCGP",Cye="ordinary-cancellation",Sye="extraordinary-cancellation",xye=12,_ye=function(e){var t,n=e.cancelResponse,r=e.orderId,o=e.subscriptionName,i=e.isExtraOrdinaryCancellation,a=e.typeOfCancellation,s=e.cancellationReason,l=void 0===s?"":s,c=Xve().content.guestCancel.strings,u=sn(c.cancelSuccessTitle,{subscription:o}),d="";if(!n)return jt().createElement(jt().Fragment,null);n.cancellationType===o9?d=n.isCancelInDunning?sn(c.refundNotEligible,{date:gx(n.endDate),subscribe:"{subscribe}"}):sn(c.cancelSuccessMessage,{date:gx(new Date),amount:null===(t=n.data)||void 0===t?void 0:t.amountFormatted,subscribe:"{subscribe}"}):d=sn(c.refundNotEligible,{date:gx(n.endDate),subscribe:"{subscribe}"});return jt().createElement(bb,{childrenGap:20},jt().createElement(nb,{tag:"h1",variant:"pageHeader"},u),jt().createElement(bb,{margin:"20px 0px 20px 0px"},jt().createElement(zk,{imageFit:"contain",height:"192px",width:"324px",imageType:"ariaHiddenImage",src:c.cancelSuccessImage.src})),jt().createElement(bb,{maxWidth:643,childrenGap:20},jt().createElement(ox,{textWithTokens:d,tokensAndValues:{subscribe:jt().createElement(nx,{target:"_blank",href:n.purchaseLink,"data-bi-id":"customer-support","aria-label":"purchase-link"},c.subscribe)}}),jt().createElement(Ib,null,c.successOrderNumber,"\xa0",jt().createElement(Ib,{weightOverride:"semi-bold"},r)),jt().createElement(Ib,null,c.cancellationReason,"\xa0",jt().createElement(Ib,{weightOverride:"semi-bold"},a)),i&&""!==l?jt().createElement(jt().Fragment,null,jt().createElement(Ib,null,c.extraordinaryReason,"\xa0",jt().createElement(Ib,{weightOverride:"semi-bold"},l))):null,jt().createElement(Ib,null,c.printMessage)),jt().createElement(Cb,{width:286,margin:"42px 0px 0px 0px"},jt().createElement(dk,{onClick:function(){return window.open(c.headerSignInMessageLink.url,"_self")},text:c.successSignIn,type:"primaryAlt","data-bi-id":"sign-in","aria-label":c.successSignIn})))},Eye="cancel-guest-subscription-operation",kye=function(e){var t=e.guestOrder,n=e.setShowInertView,r=e.orderId,o=Xve().content,i=Bve().area,a=o.guestCancel.strings,s=mi(),l=Ua((0,Gt.useState)(null),2),c=l[0],u=l[1],d=Ua((0,Gt.useState)(!1),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)(Cye),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)(""),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)(""),2),S=C[0],x=C[1],_=ny(),E=["s","m"].includes(_),k=(0,Gt.useRef)(null),w=f===Sye,I=w?a.extraordinaryCancellation:a.ordinaryCancellation;(0,Gt.useEffect)((function(){k&&k.current&&k.current.focus()}),[]);var P=function(){var e=Zve(fve().mark((function e(){var r,o,i,l,c,d,p,m,g,v;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(f){e.next=5;break}return x(a.dropDownStrings.errorMessage),e.abrupt("return");case 5:return e.prev=5,s({name:Eye,status:"updating"}),h(!0),r=w?a.extraordinaryCancellationGerman:a.ordinaryCancellationGerman,e.next=11,$ve(t.serializedData,r);case 11:o=e.sent,Cr({step:"guestCancel.cancelGuestSubscriptionSuccess",data:{brandId:t.brandId}}),n(!1),u(o),s({name:Eye,status:"finished"}),_r({data:{brandId:t.brandId}}),e.next=26;break;case 19:e.prev=19,e.t0=e.catch(5),g=e.t0,v=null!==(i=null===(l=g.response)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.errorCode)&&void 0!==i?i:"UnknownCancelGuestSubscriptionErrorCode",n(!1),s({name:Eye,status:"failed",error:{message:null!==(d=null===(p=g.response)||void 0===p||null===(m=p.data)||void 0===m?void 0:m.message)&&void 0!==d?d:"cancelGuestNoMessageDetected",name:v,stack:JSON.stringify(g)}}),_r({error:v,data:{brandId:t.brandId,error:g}});case 26:h(!1);case 27:case"end":return e.stop()}}),e,null,[[5,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(e){return{ariaLabel:e.ariaLabel,description:e.description,id:e.id,key:e.key,text:e.text}},D=jt().createElement(jt().Fragment,null,jt().createElement(bb,{childrenGap:"32px"},jt().createElement(Cb,{width:"604px"},jt().createElement(kF,{"aria-label":a.dropDownStrings.ariaLabel,"data-bi-prefix":"guest-cancel-cancellation-reason",dropdownStyle:"default",label:a.dropDownStrings.label,onChange:function(e,t){t&&(S&&x(""),g(null===t||void 0===t?void 0:t.key))},options:[T(a.dropDownStrings.options.ordinaryCancellationOption),T(a.dropDownStrings.options.extraordinaryCancellationOption)],errorMessage:S,pageArea:i,value:f,required:!0})),w?jt().createElement(Cb,{width:"604px"},jt().createElement(jL,{"aria-label":a.extraordinaryReasonInputTitle,"data-bi-id":"extraordinary-reason",label:a.extraordinaryReasonInputTitle,onChange:function(e,t){b(t)},placeholder:a.extraordinaryReasonInputPlaceholder,value:y})):null),jt().createElement(bb,{childrenGap:15},jt().createElement("div",{ref:k,tabIndex:0},jt().createElement(Cb,null,jt().createElement(nb,{tag:"h2",variant:"pageHeader"},a.yourSubscription)),jt().createElement(Ib,{variant:"bodySecondaryText"},a.cancelSubsciptionSubtext)),jt().createElement(_Q,{features:function(){var e=[];if(!t)return e;var n={image:{imageType:"image",src:t.logoUrl},size:"md"},r="",o=jt().createElement(jt().Fragment,null),i=jt().createElement(jt().Fragment,null);if(t.status===n7){var s,l;if(null!==t.nextCharge)r=sn(a.orderDetails,{nextCharge:gx(null===(s=t.nextCharge)||void 0===s?void 0:s.date),amount:null===(l=t.nextCharge)||void 0===l?void 0:l.amount});else if(null!==t.lastCharge){var c;r=sn(a.orderDetailsLastCharge,{date:gx(null===(c=t.lastCharge)||void 0===c?void 0:c.date)})}i=jt().createElement(bb,{horizontalAlign:E?"start":"end",padding:E?"10px 0px 0px 0px":"0px"},jt().createElement(bb,{width:E?"auto":"205px",childrenGap:"10px",horizontal:E},jt().createElement(dk,{disabled:p,type:"default",onClick:P,text:a.cancelSubButton,"data-bi-id":"guest-cancel-submit","aria-label":a.cancelSubButton})))}if(t.status===r7){var u;if(null!==t.lastCharge)r=sn(a.orderDetailsOnExpire,{date:gx(null===(u=t.lastCharge)||void 0===u?void 0:u.date)});o=jt().createElement(bb,{verticalAlign:"end"},jt().createElement(Ib,{variant:"bodyPrimaryText",weightOverride:"semi-bold"},a.expiredSubscription))}var d=[{children:r,variant:"metadataText"}],h=jt().createElement(iR,{listItemMediaProps:n,subtitles:d,title:t.name,titleTextVariant:"headerText"});return e.push({featureNode:jt().createElement(WO,{variant:"SixThreeThree",backgroundColor:"neutralHigh",firstSegment:h,secondSegment:o,thirdSegment:i}),backgroundColor:"transparent",margin:"0px 0px 1px 0px"}),e.push({featureNode:jt().createElement($R,{footer:{label:a.related,links:[{"aria-label":a.signInMessage,children:a.signInMessage,"data-bi-id":"header-signin-message-link",href:a.headerSignInMessageLink.url}]},isAlwaysExpanded:!0})}),e}()})));return jt().createElement(vi,{operationData:{componentName:"cancel-guest-subscription-component",operationName:Eye},inertView:D,updatingView:D,finishedView:jt().createElement(_ye,{cancelResponse:c,orderId:r,subscriptionName:null===t||void 0===t?void 0:t.name,isExtraOrdinaryCancellation:w,typeOfCancellation:I,cancellationReason:y}),failedView:jt().createElement(oye,null)})},wye=function(e){var t=e.noSubscriptionSubMessage,n=e.noSubscriptionMessage,r=(0,Gt.useRef)(null),o=Xve().content.guestCancel.strings;return(0,Gt.useEffect)((function(){r&&r.current&&r.current.focus()}),[]),jt().createElement(bb,{maxWidth:500,childrenGap:32},jt().createElement("div",{ref:r,tabIndex:0},jt().createElement(nb,{tag:"h2",variant:"statusHeader"},o.subscriptionNotFound)),jt().createElement(bb,{padding:"30px 0px 0px 0px"},jt().createElement(zk,{imageFit:"contain",height:"212px",width:"212px",imageType:"ariaHiddenImage","aria-label":o.noSubscriptionFoundImage.title,src:o.noSubscriptionFoundImage.src})),jt().createElement(bb,null,jt().createElement(Ib,{variant:"bodyPrimaryText",weightOverride:"semi-bold"},n),jt().createElement(Ib,{variant:"bodySecondaryText"},t,jt().createElement(nx,{"aria-label":o.headerSignInMessageLink.text,"data-bi-id":"header-signin-message-link",href:o.headerSignInMessageLink.url,textVariant:"bodyThemeText"},o.headerSignInMessageLink.text))))},Iye="invalidInput",Pye="unknownUser",Tye="recurrenceError",Dye="hipValidationFailed",Aye="nonGermanSubscription",Rye="userNotFound",Nye="recurrenceNotFound",Mye=[Iye,Pye,Tye,Dye,Aye,Rye,Nye,"forbidden"],Fye="captcha-user-solution",Bye="guestCancel.challengeOperationName",Oye="find-guest-subscription-operation",Lye=/^[\w-]*$/,Hye=function(){var e=Bve().area,t=Xve().content,n=ny(),r=["s","m"].includes(n),o=mi(),i=rye({operationName:Bye}),a=Ua((0,Gt.useState)(""),2),s=a[0],l=a[1],c=Ua((0,Gt.useState)(""),2),u=c[0],d=c[1],p=Ua((0,Gt.useState)(""),2),h=p[0],m=p[1],f=Ua((0,Gt.useState)(""),2),g=f[0],v=f[1],y=t.guestCancel,b=y.strings,C=y.hipChallenge,S=Ua((0,Gt.useState)(b.noSubscriptionFoundMessage),2),x=S[0],_=S[1],E=Ua((0,Gt.useState)(b.noSubscriptionFoundSubtext),2),k=E[0],w=E[1],I=Ua((0,Gt.useState)(""),2),P=I[0],T=I[1],D=Ua((0,Gt.useState)(""),2),A=D[0],R=D[1],N=Ua((0,Gt.useState)(null),2),M=N[0],F=N[1],B=Ua((0,Gt.useState)(!0),2),O=B[0],L=B[1],H=Ua((0,Gt.useState)(!1),2),V=H[0],z=H[1],U=function(e){T(e)},W=(0,Gt.useRef)(null);(0,Gt.useEffect)((function(){W&&W.current&&W.current.focus()}),[]);var G=function(){var t=Zve(fve().mark((function t(n){var r,a,l,c,d,p,f,y,S,x,E,k,I,T,D,N,M;return fve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),h&&m(""),g&&v(""),A&&R(""),F(null),z(!1),_(b.noSubscriptionFoundMessage),w(b.noSubscriptionFoundSubtext),r=!un(s),a=!Lye.test(u),l=""===P,s?r&&m(b.emailError):m(b.emailRequired),u?a&&v(b.orderNumberError):v(b.orderRequired),l&&(null===(c=document.getElementById(Fye))||void 0===c||c.focus(),R(b.captchaRequired)),!s||r?null===(d=document.getElementById("guest-cancel-email"))||void 0===d||d.focus():u&&!a||null===(p=document.getElementById("guest-cancel-order"))||void 0===p||p.focus(),s&&u&&!r&&!a&&!l){t.next=17;break}return t.abrupt("return");case 17:return t.prev=17,br({area:e,scenario:"guestCancelSubscription",step:"guestCancel"}),t.next=21,Jve(s,u,P,i);case 21:f=t.sent,F(f),U(""),i.getNewChallenge(i.mode),Cr({step:"guestCancel.findGuestSubscriptionSuccess"}),o({name:Oye,status:"finished"}),t.next=39;break;case 29:t.prev=29,t.t0=t.catch(17),T=t.t0,D=null!==(y=null!==(S=null===(x=T.response)||void 0===x||null===(E=x.data)||void 0===E?void 0:E.errorCode)&&void 0!==S?S:null===(k=T.response)||void 0===k||null===(I=k.data)||void 0===I?void 0:I.error)&&void 0!==y?y:"UnknownFindGuestSubscriptionErrorCode",N=Mye.includes(D),D===Dye?(R("visual"===(null===i||void 0===i?void 0:i.mode)?C.invalidCodeMessage:C.invalidAudioCaptchaResponse),Cr({step:"guestCancel.HipValidationFailed"})):D===Aye&&(_(b.signInToCancelMessage),w(b.noSubscriptionGermanyMessage)),N?(M=[Aye,Tye,Pye,Iye,Rye,Nye].includes(D),z(M),o({name:Oye,status:"finished"})):o({name:Oye,status:"failed",error:T}),U(""),i.getNewChallenge(i.mode),_r({step:"guestCancel.Error",error:D,data:{isUserError:N,errorMessage:T}});case 39:case"end":return t.stop()}}),t,null,[[17,29]])})));return function(e){return t.apply(this,arguments)}}(),j=jt().createElement(bb,null,jt().createElement(iye,null),jt().createElement(bb,{maxWidth:546,childrenGap:32},jt().createElement(bb,{id:"guest-cancel-form",margin:"8px 0px 0px 0px"},jt().createElement(bb,{childrenGap:32,horizontal:!r},jt().createElement(Cb,{width:286,margin:"42px 0px 0px 0px"},jt().createElement(jL,{"aria-label":b.emailAddress,"data-bi-id":"guest-cancel-email",label:b.emailAddress,onChange:function(e,t){l(null===t||void 0===t?void 0:t.trim())},required:!0,value:s,errorMessage:h,id:"guest-cancel-email"})),jt().createElement(Cb,{width:286,margin:"42px 0px 0px 0px"},jt().createElement(jL,{"aria-label":b.orderNumber,"data-bi-id":"guest-cancel-order",label:b.orderNumber,onChange:function(e,t){d(null===t||void 0===t?void 0:t.trim())},required:!0,value:u,errorMessage:g,id:"guest-cancel-order"}))),jt().createElement(bb,{childrenGap:32},jt().createElement(Cb,{width:286,margin:"42px 0px 0px 0px"},jt().createElement(sye,{operationName:Bye,hipSolution:P,captchaInputId:Fye,hipChallenge:C,hipController:i,setHipSolution:U,errorMessage:A})),jt().createElement(Cb,{width:286,margin:"42px 0px 0px 0px"},jt().createElement(dk,{onClick:G,text:b.findSubButton,type:"primary","data-bi-id":"guest-cancel-submit","aria-label":b.findSubButton})))))),q=jt().createElement(bb,{childrenGap:28},O?j:jt().createElement(jt().Fragment,null),O?jt().createElement(Y4,{alignContent:"start"}):jt().createElement(jt().Fragment,null),null!==M?jt().createElement(kye,{guestOrder:M,setShowInertView:L,orderId:u}):V?jt().createElement(wye,{noSubscriptionMessage:x,noSubscriptionSubMessage:k}):jt().createElement(jt().Fragment,null));return jt().createElement(bb,{margin:"54px 0px 0px 0px"},jt().createElement(vi,{operationData:{componentName:"guest-cancel-component",operationName:Oye},inertView:j,finishedView:q,failedView:jt().createElement(oye,null)}))};function Vye(e){return"RU-RU"===e.toUpperCase()}var zye=function(){return eye.useValue()},Uye=function(e){eye.setValue(e)},Wye={scenarioName:{renew:"AmcRenew",renewToken:"AmcTokenRenew",renewViaPartner:"AmcRenewViaPartner",switchPlan:"AmcSwitchPlan",none:"AmcNonRenew"},stepName:{landing:"Index",final:"Final"}},Gye={scenarioName:"AmcUpgradeSku",stepName:{landing:"UpgradeSku.Index",final:"UpgradeSku.Final"}},jye={scenarioName:B7},qye="awa-mee_custom1",Kye="awa-mee_custom2",Yye="awa-mee_custom6",Xye="awa-mee_custom14",Qye="awa-cancelFlowBiParam",Zye=function(e){return(null===e||void 0===e?void 0:e.toLowerCase())===fye?xye:(null===e||void 0===e?void 0:e.toLowerCase())===gye?1:0},Jye=function(e){var t=qo();return e?function(){t.push("/?forceReload=true")}:function(){t.push("/")}},$ye=function(e,t,n,r){var o,i=qo(),a="/".concat(e,"/details"),s=null!==t&&void 0!==t?t:"#billing";return o=n?"?forceReload=true":window.location.search?window.location.search:"",function(){r?window.location.href="/services".concat(a).concat(o).concat(s):i.push("".concat(a).concat(o).concat(s))}},ebe=function(){window.location.reload()},tbe=function(){try{(function(){var e;return null!==(e=document.getElementById(an.p))&&void 0!==e?e:window})().scrollTo(0,0)}catch(e){}},nbe=function(){var e=Xve().genericErrorResource;return jt().createElement(bb,{padding:"100px 0px 0px 0px",childrenGap:20},jt().createElement(Cb,{align:"center"},jt().createElement(qF,{align:"center",correlationVector:Dr(),errorMessage:e.subtitle,imageSrc:e.image})),jt().createElement(Cb,{align:"center"},jt().createElement(dk,{text:e.ctaText,"aria-label":e.ctaText,"data-bi-id":"generic-error-try-again",onClick:ebe,type:"primary"})))},rbe=44,obe="480px",ibe="SvcM365SaveBenefitsT2",abe="SvcM365SaveBenefitsT1",sbe="svc-csat-survey",lbe="svc-amc-onboarding-complete",cbe="svc-amc-onboarding-abort",ube="SvcSenerchia",dbe="svcdefenderbenefit",pbe=function(e,t){return{imageHeight:{s:140,m:194,l:224,xl:224,xxl:224,xxxl:224}[e],dialogBodyPadding:["s"].includes(e)?"16px 16px ".concat(t,"px"):"16px 24px ".concat(t,"px")}},hbe=function(e){var t,n,r,o=e.isOnboardingCompleted,i=EM(),a=Bve().language,s=tee(),l=Xve(),c=l.content.manage,u=l.content.common,d=l.content.sharing.familyShareV2.familyGroupInfoDialog.backCta,p=ny(),h=zye();vn(h,"Service in M365 onboarding DefenderBenefitDialog");var m=function(){i.closeDialog(),s(o?lbe:cbe,a)},f={onClick:function(){o?i.switchToDialog(jt().createElement(Hbe,null)):i.switchToDialog(jt().createElement(mbe,null))},text:d,"aria-label":d,"data-bi-id":"m365-onboarding-defender-benefit-dialog-back",type:"default"},g={onClick:function(){i.switchToDialog(jt().createElement(Hbe,null))},text:u.nextButton,"aria-label":c.nextAriaLabel,"data-bi-id":"m365-onboarding-defender-benefit-dialog-next",type:"primary",id:"m365-onboarding-defender-benefit-dialog-next"},v={onClick:m,text:u.doneButton,"aria-label":u.doneButton,"data-bi-id":"m365-onboarding-defender-benefit-dialog-done",type:"primary",id:"m365-onboarding-defender-benefit-dialog-done"},y={isOpen:!0,onDismiss:m,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:{src:c.m365OnboardingDialogTitle.src,imageType:"altTextImage",alt:c.defender},closeButton:{"data-bi-id":"m365-onboarding-defender-benefit-dialog-close","aria-label":u.closeButton},dialogFooterProps:{dialogType:"secondary",hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonLeft:f,buttonRight:o?v:g},bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:obe,minBodyHeight:{unit:"vh",height:80}},b=jt().createElement(jk,{size:"md",image:{imageType:"icon",iconName:"DefenderApp",iconColor:"black"},linkProps:{href:c.defenderSetupLink,"data-bi-id":"m365-onboarding-defender-setup-link","aria-label":c.defenderSetupText,target:"_blank"}},c.defenderSetupText),C=jt().createElement(bb,null,jt().createElement(jk,{size:"md",image:{imageType:"icon",iconName:"Download",iconColor:"black"}},jt().createElement(Ib,{variant:"bodyPrimaryText"},c.defenderMobileAppText)),jt().createElement(jk,{"data-bi-id":"defender-qr-code",size:"xxxl",image:{imageType:"image",src:c.defenderQRCodeImage.src},padding:"0px 0px 6px 0px"},jt().createElement(Ib,{variant:"bodySecondaryText"},c.defenderQRCodeText)));return jt().createElement(CM,y,jt().createElement(bb,null,jt().createElement(zk,{id:"defender-dialog-image",imageFit:"cover",imageType:"ariaHiddenImage",src:"us"===(null===(t=h.market)||void 0===t?void 0:t.toLowerCase())?c.defenderDialogUSImage.src:c.defenderDialogImage.src,height:pbe(p,rbe).imageHeight}),jt().createElement(bb,{childrenGap:10,padding:pbe(p,rbe).dialogBodyPadding},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},c.defender),jt().createElement(Ib,{variant:"bodyPrimaryText"},Kt(c.defenderDialogSubtitleList,h.market)),jt().createElement(bb,{childrenGap:10,padding:"22px 0px 0px 0px"},"us"===(null===(n=h.market)||void 0===n?void 0:n.toLowerCase())?b:C,"us"===(null===(r=h.market)||void 0===r?void 0:r.toLowerCase())?C:b,jt().createElement(jk,{size:"md",image:{imageType:"icon",iconName:"WindowsLogo",iconColor:"black"},linkProps:{href:c.defenderInstallLink,"data-bi-id":"m365-onboarding-defender-install-link","aria-label":c.defenderInstallText,target:"_blank"}},c.defenderInstallText)))))},mbe=function(e){var t=e.isOnboardingCompleted,n=EM(),r=Bve().language,o=tee(),i=Xve(),a=i.content.manage,s=i.content.common,l=i.content.sharing.familyShareV2.familyGroupInfoDialog.backCta,c=ny(),u=navigator.userAgent.match(/Win/i),d=zye();vn(d,"Service in M365 onboarding ODUsageDialog");var p=function(){n.closeDialog(),o(t?lbe:cbe,r)},h={onClick:function(){t?n.switchToDialog(jt().createElement(Hbe,null)):d.isHomeSKU?n.switchToDialog(jt().createElement(Lbe,{isM365Onboarding:!0})):n.switchToDialog(jt().createElement(Gbe,{isM365Onboarding:!0}))},text:l,"aria-label":l,"data-bi-id":"od-usage-dialog-back",type:"default"},m={onClick:function(){zs("svcdefenderbenefitAA"),zs(dbe)?n.switchToDialog(jt().createElement(hbe,{isOnboardingCompleted:t})):n.switchToDialog(jt().createElement(Hbe,null))},text:s.nextButton,"aria-label":a.nextAriaLabel,"data-bi-id":"od-usage-dialog-next",type:"primary",id:"od-usage-dialog-next"},f={onClick:p,text:s.doneButton,"aria-label":s.doneButton,"data-bi-id":"od-usage-dialog-done",type:"primary",id:"od-usage-dialog-done"},g={isOpen:!0,onDismiss:p,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:{src:a.m365OnboardingDialogTitle.src,imageType:"altTextImage",alt:a.oneDriveTitle},closeButton:{"data-bi-id":"od-usagedialog-close","aria-label":s.closeButton},dialogFooterProps:{dialogType:"secondary",hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonLeft:h,buttonRight:t?f:m},bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:obe,minBodyHeight:{unit:"vh",height:80}};return jt().createElement(CM,g,jt().createElement(bb,null,jt().createElement(zk,{id:"od-usage-dialog-image",imageFit:"cover",imageType:"ariaHiddenImage",src:a.oneDriveImage.src,height:pbe(c,rbe).imageHeight}),jt().createElement(bb,{childrenGap:10,padding:pbe(c,rbe).dialogBodyPadding},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},a.oneDriveTitle),jt().createElement(Ib,{variant:"bodyPrimaryText"},a.oneDriveText),jt().createElement(bb,{childrenGap:10,padding:"22px 0px 0px 0px"},d.isMacOS?jt().createElement(jk,{borderRadius:"50%",size:"md",image:{imageType:"icon",iconName:"CellPhone",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(nx,{href:a.getOneDriveMacLink,"data-bi-id":"get-onedrive-mac","aria-label":a.getOneDriveMacLinkText,target:"_blank"},a.getOneDriveMacLinkText))):jt().createElement(jt().Fragment,null),jt().createElement(jk,{borderRadius:"50%",size:"md",image:{imageType:"icon",iconName:"OneDriveLogo",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(nx,{href:a.getOneDriveMobileAppLink,"data-bi-id":"get-onedrive-mobile-app","aria-label":a.getOneDriveMobileAppLinkText,target:"_blank"},a.getOneDriveMobileAppLinkText),jt().createElement(Ib,{variant:"metadataText"},a.getOneDriveMobileAppText))),u?jt().createElement(jk,{borderRadius:"50%",size:"md",image:{imageType:"icon",iconName:"FileExplorer",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(nx,{href:a.oneDriveWindowsBackupLink,"data-bi-id":"onedrive-windows-backup","aria-label":a.oneDriveWindowsBackupLinkText,target:"_blank"},a.oneDriveWindowsBackupLinkText),jt().createElement(Ib,{variant:"metadataText"},a.oneDriveWindowsBackupText))):jt().createElement(jt().Fragment,null)))))},fbe=jt().createContext({onServiceUpdate:function(){return new Promise((function(e,t){e()}))},hideMessageBar:function(){},alert:{},dispatch:function(e){return new Promise((function(t,n){t(e)}))},isServiceUpdating:!1}),gbe=function(){return(0,Gt.useContext)(fbe)},vbe=function(e){var t=e.defaultSelectedItems,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=zye(),i=EM(),a=Xve().content,s=a.sharing,l=s.familyShareV2.shareViaEmailDialog,c=tee(),u=Bve(),d=u.language,p=u.area,h=u.userEmail;vn(o,"Service in ShareViaEmailDialog");var m=Ua((0,Gt.useState)(null!==t&&void 0!==t?t:[]),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)([]),2),y=v[0],b=v[1],C=o.sharingDetails.availableSlots>1?sn(l.textboxTitle,{num:o.sharingDetails.availableSlots}):sn(l.textboxTitleSingular,{num:o.sharingDetails.availableSlots}),S=function(){var e=Zve(fve().mark((function e(){var t,a;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.map((function(e){return e.secondaryText})),!((a=Dbe(t,o,l,h)).length>0)){e.next=5;break}return b(a),e.abrupt("return");case 5:i.switchToDialog(jt().createElement(Sbe,{inviteePersonas:f,isM365Onboarding:n,isOnboardingCompleted:r}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){xr(),i.closeDialog(),c(n?cbe:r?lbe:sbe,d)},_=jt().createElement(bb,{horizontal:!1,horizontalAlign:"start",width:"100%",childrenGap:8},jt().createElement(Ib,{variant:"metadataText"},C),jt().createElement("form",{onSubmit:function(e){e.preventDefault(),S()},style:{width:"100%"}},jt().createElement(jL,{"aria-label":l.textboxPlaceholder,"data-bi-id":"email-text-input",onChange:function(e,t){var n=null===t||void 0===t?void 0:t.trim();g(n?[{text:n,secondaryText:n}]:[]),b([])},placeholder:l.textboxPlaceholder,value:f&&0!==f.length?f[0].secondaryText:""})),y.length>0&&y.map((function(e){return jt().createElement(Ib,{variant:"errorBlockIcon"},e)}))),E={onClick:S,text:s.share,"aria-label":l.inviteFooterButton,"data-bi-id":n?"m365-onboarding-send-invite":"send-invite",disabled:!f||0===f.length||y.length>0},k={onClick:x,text:l.cancelFooterButton,"aria-label":l.cancelFooterButton,"data-bi-id":"send-invite-cancel"},w={onClick:function(){xr(),i.switchToDialog(jt().createElement(mbe,null))},text:a.common.skip,"aria-label":a.common.skipAriaLabel,"data-bi-id":"send-invite-skip"};return Qt((function(){br({area:p,scenario:"AmcSendInvite",step:"SendInvite.Index",data:o.bi})})),jt().createElement(CM,Object.assign({},xbe("send-invite-close",x,n),{dialogFooterProps:{removeMarginTop:!0,buttonPrimary:E,buttonSecondary:n?w:k}}),jt().createElement(_be,{sectionTitle:l.sectionTitleV2,sectionBody:sn(l.sectionBodyV2,{productName:o.name}),sectionGap:20,bottomPadding:32},_))},ybe=function(e){var t=e.inviteePersonas,n=e.failedInvites,r=e.isM365Onboarding,o=e.isOnboardingCompleted,i=zye(),a=EM(),s=Xve().content.sharing.familyShareV2.emailSentDialog,l=tee(),c=Bve().language,u=Xve().content,d=u.common,p=u.sharing;vn(i,"Service in EmailSentDialog");var h=t.filter((function(e){var t;return!(null!==(t=Object.keys(n))&&void 0!==t&&t.includes(e.secondaryText))})),m=t.filter((function(e){var t;return null===(t=Object.keys(n))||void 0===t?void 0:t.includes(e.secondaryText)})),f=function(){a.closeDialog(),l(r?cbe:o?lbe:sbe,c)},g={onClick:function(){r?a.switchToDialog(jt().createElement(mbe,null)):f()},text:r?s.nextFooterButton:s.doneFooterButton,"aria-label":r?s.nextFooterButton:s.doneFooterButton,"data-bi-id":r?"m365-onboarding-send-invite-success-done":"send-invite-success-done"},v={onClick:function(){a.switchToDialog(jt().createElement(vbe,{isM365Onboarding:r,isOnboardingCompleted:o,defaultSelectedItems:m}))},text:s.tryAgainFooterButton,"aria-label":s.tryAgainFooterButton,"data-bi-id":"send-invite-try-again"};return jt().createElement(CM,Object.assign({},xbe("invite-sent-close",f,r),{dialogFooterProps:{removeMarginTop:!0,buttonPrimary:g,buttonSecondary:m&&m.length>0?v:void 0}}),jt().createElement(_be,{sectionTitle:(null===t||void 0===t?void 0:t.length)<=1?s.sectionTitleSingularV2:s.sectionTitleV2,sectionBody:s.sectionBodyV2,bottomPadding:20,sectionGap:20},jt().createElement(bb,{childrenGap:25},(null===h||void 0===h?void 0:h.length)>0?jt().createElement(bb,{horizontal:!1,verticalAlign:"start",childrenGap:20},h.map((function(e){return jt().createElement(NP,{size:"24",imageUrl:e.imageUrl,text:e.text})}))):jt().createElement(jt().Fragment,null),(null===m||void 0===m?void 0:m.length)>0?jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,{variant:"bodySecondaryText"},m.length<=1?s.failSectionTitleSingular:s.failSectionTitle),jt().createElement(bb,{horizontal:!1,verticalAlign:"start",childrenGap:20},m.map((function(e){return jt().createElement(bb,{horizontal:!0,verticalAlign:"center"},jt().createElement(NP,{size:"24",imageUrl:e.imageUrl,text:e.text}),jt().createElement(fk,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.calloutButtonAriaLabel,"data-bi-id":"send-invite-error-callout",iconName:"Info",iconColor:"errorIcon"}},kbe(n[e.secondaryText],d,p).errorMessage))})))):jt().createElement(jt().Fragment,null))))},bbe="inviteLimitReached",Cbe="sendInviteNoErrorCode",Sbe=function(e){var t=e.inviteePersonas,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=zye(),i=EM(),a=gbe(),s=mi(),l=aI(),c=Xve().content,u=c.common,d=c.sharing,p=d.familyShareV2.inviteLoadingDialog,h="send-invite";vn(o,"Service in InviteLoadingDialog");var m=function(e,t){var n=kbe(e,u,d);n.isUserError?(l({type:"push",announcement:{message:n.errorMessage}}),s({name:h,status:"finished"}),_r({error:e,data:{isUserError:!0}})):(s({name:h,status:"failed"}),_r(km({error:e},!!t&&{data:{errorDetails:t}}))),n.shouldUpdateService&&a.onServiceUpdate(),i.switchToDialog(jt().createElement(wbe,{showEmailImage:!0,errorTitle:n.errorTitle,errorMessage:n.errorMessage,closeButtonBiId:n.isUserError?"send-invite-expected-fail-close":"send-invite-error-close"}))},f=function(e){a.onServiceUpdate(),s({name:h,status:"finished"});var l={},c=Object.values(e);if(0===c.length)l.numSuccessInvites=t.length,_r({data:km(km({},o.bi),l)});else{l.numSuccessInvites=t.length-c.length;var p=c.map((function(e){return kbe(e,u,d).isUserError})).some((function(e){return!e}));_r({error:"sharingPartialSuccess",data:km(km(km({},o.bi),l),{},{isUserError:!p,errorCodes:c})})}i.switchToDialog(jt().createElement(ybe,{inviteePersonas:t,failedInvites:e,isM365Onboarding:n,isOnboardingCompleted:r}))},g=function(){var e=Zve(fve().mark((function e(){var n,r,i,a,c,u,p;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s({name:h,status:"updating"}),!o.sharingDetails.isInviteLimitReached){e.next=5;break}m(bbe),e.next=19;break;case 5:return e.prev=5,l({type:"push",announcement:{message:d.sendInviteInProgress}}),r=t.map((function(e){return e.secondaryText})),e.next=10,H9(o.licenseId,r);case 10:i=e.sent,f(null!==(n=i.failedInvites)&&void 0!==n?n:{}),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(5),u=e.t0,p=(null===(a=u.response)||void 0===a||null===(c=a.data)||void 0===c?void 0:c.error)||Cbe,m(p,u);case 19:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=t.length>1?p.loadingTextPlural:p.loadingText;return jt().createElement(Ebe,{loadingLabel:e,loadingAriaLabel:e})};return Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:case"end":return e.stop()}}),e)})))),jt().createElement(CM,xbe(void 0,void 0,n),jt().createElement(vi,{operationData:{componentName:"familyShareV1-inviteLoadingDialog",operationName:h,defaultState:"inert"},inertView:v(),updatingView:v(),failedView:v(),finishedView:v()}))},xbe=function(e,t,n,r){var o=EM(),i=ny(),a=["s","m"].includes(i),s=Xve().content,l=s.sharing.familyShareV2,c=s.common,u=l.familyGroupInfoDialog.backCta,d={onClick:function(){r?o.switchToDialog(jt().createElement(Hbe,null)):o.switchToDialog(jt().createElement(Gbe,{isM365Onboarding:!0}))},text:u,"aria-label":u,"data-bi-id":"sharing-dialog-back",type:"default"},p={onClick:function(){o.switchToDialog(jt().createElement(mbe,null))},text:c.nextButton,"aria-label":c.nextButton,"data-bi-id":"sharing-dialog-next",type:"primary",id:"sharing-dialog-next"};return{isOpen:!0,onDismiss:t,title:{src:l.dialogTitle.src,imageType:"altTextImage",alt:l.dialogTitle.alt},closeButton:e?{"data-bi-id":e,"aria-label":c.closeButton,id:e}:void 0,stickyHeaderFooter:n||a?{hasStickyHeaderFooters:!0,firstFocusOnContent:!0}:void 0,dialogFooterProps:n?{dialogType:"secondary",buttonLeft:r?void 0:d,buttonRight:r?d:p,hasFooterBackground:!0,hasFooterHorizontalLine:!0}:void 0,bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:"480px",minBodyHeight:n?{unit:"vh",height:80}:void 0}},_be=function(e){var t=e.sectionTitle,n=e.sectionBody,r=e.sectionGap,o=void 0===r?0:r,i=e.bottomPadding,a=e.children,s=Xve().content.sharing.familyShareV1,l=ny(),c="string"===typeof n?jt().createElement(Ib,{variant:"bodySecondaryText"},n):jt().createElement(ox,{textWithTokens:n.textWithTokens,tokensAndValues:n.tokensAndValues});return jt().createElement(jt().Fragment,null,jt().createElement(zk,{id:"dialogImage",imageFit:"cover",imageType:"altTextImage",src:s.introImage.src,alt:s.introImage.alt,height:pbe(l,i).imageHeight}),jt().createElement(bb,{horizontal:!1,horizontalAlign:"start",padding:pbe(l,i).dialogBodyPadding,childrenGap:o},jt().createElement(bb,{horizontal:!1,childrenGap:8},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},t),c),a))},Ebe=function(e){var t=e.loadingLabel,n=e.loadingAriaLabel,r=ny();return jt().createElement(bb,{width:"100vw",maxWidth:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center",padding:"164px 0 ".concat({s:192,m:232,l:244,xl:244,xxl:244,xxxl:244}[r],"px")},jt().createElement(uw,{spinnerSize:3,"aria-label":n,label:t,labelPosition:"bottom"}))},kbe=function(e,t,n){var r=t.tryAgainLater,o=n.sendInviteFailText,i=!0,a=!1;switch(e){case y8.partnerForbiddenFailure:r=n.sharingForbiddenErrorTitle,o=n.sharingForbiddenErrorSubtitle;break;case bbe:r=n.inviteLimitReachTitle,o=n.inviteLimitReachSubtitle;break;case y8.invitationDoesNotExist:a=!0;break;case y8.userErrorTrialShareLimit:r=n.trialShareLimitTitle,o=n.trialShareLimitSubtitle;break;case y8.userErrorAccountClosed:r=n.userErrorAccountClosedTitle,o=n.userErrorAccountClosedSubtitle;break;case y8.actionThrottledForUser:case y8.actionThrottledForFamily:r=n.inviteThrottledErrorTitle,o=n.inviteThrottledErrorSubtitle;break;case y8.familySizeExceedLimit:r=n.fullFamilyErrorTitle,o=n.fullFamilyErrorSubtitle;break;default:i=Object.values(y8).includes(e)||b8.includes(e)}return{isUserError:i,errorTitle:r,errorMessage:o,shouldUpdateService:a}},wbe=function(e){var t=e.errorTitle,n=e.errorMessage,r=e.closeButtonBiId,o=e.showEmailImage,i=Xve().content,a=i.common,s=i.sharing,l=EM(),c=function(){l.closeDialog()},u={onClick:c,text:a.closeButton,"aria-label":a.closeButton,"data-bi-id":r},d={isOpen:!0,onDismiss:c,title:t,subText:n,closeButton:u,dialogFooterProps:{buttonPrimary:u}};return jt().createElement(CM,d,o?jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(Cb,{padding:"0px 6px"},jt().createElement(zk,{alt:s.emailSendFail.alt,imageType:"altTextImage",src:s.emailSendFail.src}))):jt().createElement(jt().Fragment,null))},Ibe=function(e,t){var n,r,o,i=new Set(null===(n=t.sharingDetails)||void 0===n||null===(r=n.familyUsers)||void 0===r?void 0:r.concat(null===(o=t.sharingDetails)||void 0===o?void 0:o.guestUsers).filter(Zt));return Array.from(i).some((function(t){return t.inviteId===e}))},Pbe=function(e,t){var n,r,o,i=new Set(null===(n=t.sharingDetails)||void 0===n||null===(r=n.familyShareEmailInvites)||void 0===r?void 0:r.concat(null===(o=t.sharingDetails)||void 0===o?void 0:o.emailInvites).filter(Zt));return Array.from(i).some((function(t){return t.name===e}))},Tbe=function(e,t,n,r){return 0===e.length?null:1===e.length?bn(t,{emailId:e[0],subName:r.name}):bn(n,{num:e.length,subName:r.name})},Dbe=function(e,t,n,r){for(var o=[],i=[],a=[],s=[],l=[],c=0;c<e.length;c++)e.indexOf(e[c])!==c?l.push(e[c]):un(e[c])?Pbe(e[c],t)?s.push(e[c]):Ibe(e[c],t)?a.push(e[c]):r===e[c]&&i.push(e[c]):o.push(e[c]);var u=[];e.length>t.sharingDetails.availableSlots&&(t.sharingDetails.availableSlots<=1?u.push(bn(n.tooManyEmailMessage,{num:t.sharingDetails.availableSlots})):u.push(bn(n.tooManyEmailMessagePlural,{num:t.sharingDetails.availableSlots})));var d=Tbe(o,n.invalidEmailMessage,n.invalidEmailMessagePlural,t);d&&u.push(d);var p=Tbe(i,n.selfInviteMessage,n.selfInviteMessagePlural,t);p&&u.push(p);var h=Tbe(a,n.alreadySharedMessage,n.alreadySharedMessagePlural,t);h&&u.push(h);var m=Tbe(s,n.alreadyInvitedMessage,n.alreadyInvitedMessagePlural,t);m&&u.push(m);var f=Tbe(l,n.repeatEmailMessage,n.repeatEmailMessagePlural,t);return f&&u.push(f),u},Abe=function(){var e=Xve().content,t=e.common,n=e.sharing.familyShareV2.familyGroupInfoDialog,r=EM(),o=zye(),i="family-groupinfo-back-button",a=function(){r.closeDialog()},s={onClick:a,text:t.closeButton,"aria-label":t.closeButton,"data-bi-id":"familygroupinfo-close-button"},l={onClick:function(){r.switchToDialog(jt().createElement(Lbe,null))},text:n.backCta,"aria-label":n.backCta,"data-bi-id":"familygroupinfo-back-button",id:i};(0,Gt.useEffect)((function(){setTimeout((function(){var e;null===(e=document.getElementById(i))||void 0===e||e.focus()}),100)}),[]);var c={isOpen:!0,onDismiss:a,title:{src:e.sharing.familyShareV2.dialogTitle.src,imageType:"altTextImage",alt:e.sharing.familyShareV2.dialogTitle.alt},closeButton:s,dialogFooterProps:{buttonPrimary:l}};return jt().createElement(CM,c,jt().createElement(bb,{padding:"0px 0px 20px 0px",childrenGap:8},jt().createElement(nb,{tag:"h1",children:n.sectionTitle}),jt().createElement(Ib,null,sn(n.familyGroupTextV2,{productName:null===o||void 0===o?void 0:o.name}))),Object.values(n.subSectionsV2).map((function(e){return jt().createElement(bb,{key:e.title,padding:"0px 0px 20px 0px"},e.title?jt().createElement(nb,{tag:"h2",variant:"headerText"},e.title):jt().createElement(jt().Fragment,null),jt().createElement(Ib,null,e.bodyText))})))},Rbe=function(e){var t=e.userInviteLink,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=zye(),i=tee(),a=Bve().language,s=EM(),l=ny(),c=Xve().content.sharing.familyShareV2.shareViaLinkDialog,u=Xve().content.sharing.familyShareV2.shareViaEmailDialog,d=Xve().content,p="invite-link",h=Ua((0,Gt.useState)(!1),2),m=h[0],f=h[1];vn(o,"Service in ShareViaLinkDialog");var g=function(){s.closeDialog(),_r({data:o.bi}),i(n?cbe:r?lbe:sbe,a)},v=function(){var e=Zve(fve().mark((function e(){var t,n,r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementById(p),n=t.value,t.select(),r=!1,e.prev=4,e.next=7,navigator.clipboard.writeText(n);case 7:r=!0,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),r=!1;case 13:r&&(f(!0),Cr({step:"GetInviteLink.LinkCopied"}));case 14:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}(),y=jt().createElement(dk,{text:"s"===l?c.copyCtaMobile:c.copyCta,onClick:v,"aria-label":c.copyCta,"data-bi-id":n?"m365-onboarding-invite-link-button-copy":"get-invite-link-button-copy"}),b=o.sharingDetails.availableSlots>1?sn(u.textboxTitle,{num:o.sharingDetails.availableSlots}):sn(u.textboxTitleSingular,{num:o.sharingDetails.availableSlots}),C=jt().createElement(bb,{horizontal:!1,horizontalAlign:"start",width:"100%",childrenGap:8},jt().createElement(Ib,{variant:"metadataText"},b),jt().createElement(bb,{horizontal:!0,verticalAlign:"center",width:"100%",childrenGap:10},jt().createElement(Cb,{grow:1},jt().createElement(jL,{id:p,"data-bi-id":"invite-link","aria-label":c.inviteLinkAria,value:t,"aria-readonly":!0,onChange:function(){}})),jt().createElement(Cb,null,y)),m?jt().createElement(ox,{variant:"bodySuccessText",textWithTokens:c.linkCopyStatus,tokensAndValues:{0:jt().createElement(Hy,{color:"successIcon",iconName:"CheckMark",size:"12px"})}}):jt().createElement(jt().Fragment,null)),S={onClick:g,text:c.doneFooterButton,"aria-label":c.doneFooterButton,"data-bi-id":"share-via-invite-done"},x={onClick:function(){s.switchToDialog(jt().createElement(mbe,null)),_r({data:o.bi})},text:d.common.nextButton,"aria-label":d.manage.nextAriaLabel,"data-bi-id":"share-via-invite-next"};return jt().createElement(CM,Object.assign({},xbe("get-invite-link-close",g,n),{dialogFooterProps:{removeMarginTop:!0,buttonPrimary:n?x:S}}),jt().createElement(_be,{sectionTitle:c.sectionTitleV2,sectionBody:sn(c.sectionBodyV2,{productName:o.name}),sectionGap:16,bottomPadding:40},C,m?jt().createElement(nI,{message:c.linkCopyStatus,ariaLive:"assertive"}):jt().createElement(jt().Fragment,null)))},Nbe="inviteLimitReached",Mbe="failureAction",Fbe="inviteLinkEmpty",Bbe="getInviteNoErrorCode",Obe=function(e){var t=e.isM365Onboarding,n=e.isOnboardingCompleted,r=zye(),o=EM(),i=gbe(),a=aI(),s=Bve(),l=mi(),c=Xve().content,u=c.common,d=c.sharing,p=d.familyShareV2.shareLoadingDialog,h="get-invite-link";vn(r,"Service in ShareLoadingDialog");var m=function(e){o.switchToDialog(jt().createElement(Rbe,{userInviteLink:e,isM365Onboarding:t,isOnboardingCompleted:n}))},f=function(e,t){a({type:"push",announcement:{message:t}}),_r({error:e,data:{isUserError:!0}}),l({name:h,status:"finished"})},g=function(e,t){var n=u.tryAgainLater,i=sn(d.inviteLinkFailText,{productId:r.name});e===Nbe?(n=d.inviteLimitReachTitle,i=d.inviteLimitReachSubtitle,f(e,i)):e===y8.userErrorTrialShareLimit?(n=d.trialShareLimitTitle,i=d.trialShareLimitSubtitle,f(e,i)):e===y8.partnerForbiddenFailure?(n=d.sharingForbiddenErrorTitle,i=d.sharingForbiddenErrorSubtitle,f(e,i)):Object.values(y8).includes(e)||b8.includes(e)?f(e,i):(_r(km({error:e},!!t&&{data:{errorDetails:t}})),l({name:h,status:"failed"})),function(e,t){var n={errorTitle:e,errorMessage:t,closeButtonBiId:"get-invite-error-close",showEmailImage:!1};o.switchToDialog(jt().createElement(wbe,n))}(n,i)},v=function(){var e=Zve(fve().mark((function e(){var t,n,o,s,c,u;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l({name:h,status:"updating"}),t="",n="",!r.sharingDetails.isInviteLimitReached){e.next=7;break}n=Nbe,e.next=19;break;case 7:return e.prev=7,a({type:"push",announcement:{message:p.loadingText}}),e.next=11,O9(r.licenseId);case 11:(s=e.sent)?s.isInviteLimitExceeded?n=Nbe:s.link?t=s.link:n=Fbe:n=Mbe,e.next=19;break;case 15:e.prev=15,e.t0=e.catch(7),o=e.t0,n=(null===(c=o.response)||void 0===c||null===(u=c.data)||void 0===u?void 0:u.error)||Bbe;case 19:!n&&t?(l({name:h,status:"finished"}),i.onServiceUpdate(),m(t)):g(n,o);case 20:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(){return e.apply(this,arguments)}}(),y=jt().createElement(Ebe,{loadingLabel:p.loadingText,loadingAriaLabel:p.loadingText});return Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return br({area:s.area,scenario:"AmcInviteLink",step:"GetInviteLink.Index",data:r.bi}),e.next=3,v();case 3:case"end":return e.stop()}}),e)})))),jt().createElement(CM,Object.assign({},xbe(),{minBodyHeight:t?{unit:"vh",height:80}:void 0}),jt().createElement(vi,{operationData:{componentName:"familyShareV2-shareLoadingDialog",operationName:h,defaultState:"inert"},inertView:y,updatingView:y,failedView:y,finishedView:y}))},Lbe=function(e){var t=e.isM365Onboarding,n=e.isOnboardingCompleted,r=zye(),o=EM(),i=Bve().language,a=Xve().content,s=tee(),l=a.sharing.familyShareV2;vn(r,"Service in ShareIntroDialog");var c=function(e,n,r,o){return jt().createElement(jk,{padding:"0px",size:"md",image:{imageType:"icon",iconName:e,iconColor:"black"},horizontal:!!t,borderRadius:"50%",linkProps:{kind:"onClick","data-bi-id":n,"aria-label":r,onClick:o}},r)},u=l.familyGroupInfoDialog.sectionTitle,d=jt().createElement(rx,{onClick:function(){o.switchToDialog(jt().createElement(Abe,null))},"aria-label":u,"data-bi-id":"familygroupinfo-link"},u),p={textWithTokens:"{text} {cta}",tokensAndValues:{text:sn(l.introDialog.sectionBodyV2,{productName:r.name}),cta:d}},h=l.introDialog.createLinkCtaV2,m=jt().createElement(bb,{horizontal:!t,childrenGap:10},c("Link",t?"m365-onboarding-invite-by-link":"share-with-family-invite-by-link",h,(function(){o.switchToDialog(jt().createElement(Obe,{isM365Onboarding:t,isOnboardingCompleted:n}))})),c("Mail",t?"m365-onboarding-invite-by-email":"share-with-family-invite-by-email",l.introDialog.emailInviteCta,(function(){o.switchToDialog(jt().createElement(vbe,{isM365Onboarding:t,isOnboardingCompleted:n}))})));return jt().createElement(CM,xbe("share-with-family-close",(function(){o.closeDialog(),s(t?cbe:n?lbe:sbe,i)}),t,n),jt().createElement(_be,{sectionTitle:l.introDialog.sectionTitleV2,sectionBody:p,sectionGap:32,bottomPadding:44},m))},Hbe=function(){var e=EM(),t=tee(),n=Bve().language,r=Xve(),o=r.content.manage,i=r.content.common,a=ny(),s=zye();vn(s,"Service in M365 confirmation dialog");var l=null!==s.installDetails&&s.installDetails.canUseInstallOptions,c=null!==s.sharingDetails,u=function(){e.closeDialog(),t(lbe,n)},d={isOpen:!0,onDismiss:u,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:{src:o.m365OnboardingDialogTitle.src,imageType:"altTextImage",alt:o.m365OnboardingDialogTitle.alt},closeButton:{"data-bi-id":"m365-confirmation-close","aria-label":i.closeButton},dialogFooterProps:{hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonPrimary:{onClick:u,text:i.doneButton,"aria-label":i.doneButton,"data-bi-id":"m365-confirmation-done"}},bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:obe,minBodyHeight:{unit:"vh",height:80}};return jt().createElement(CM,d,jt().createElement(bb,null,jt().createElement(zk,{id:"m365-confirmation-dialog-image",imageFit:"cover",imageType:"ariaHiddenImage",src:o.m365OnboardingConfirmationImage.src,height:pbe(a,44).imageHeight}),jt().createElement(bb,{childrenGap:10,padding:pbe(a,44).dialogBodyPadding},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},o.m365OnboardingConfirmationTitle),jt().createElement(Ib,{variant:"bodyPrimaryText"},o.m365OnboardingConfirmationSubText),jt().createElement(bb,{childrenGap:10,padding:"22px 0px 0px 0px"},jt().createElement(jk,{size:"md",borderRadius:"50%",image:{imageType:"icon",iconName:"WindowsLogo",iconColor:"black"}},jt().createElement(bb,null,l?jt().createElement(rx,{"data-bi-id":"m365-confirmation-install-office","aria-label":o.installOffice,onClick:function(){return e.switchToDialog(jt().createElement(Gbe,{onHideDialog:u,isOnboardingCompleted:!0,isM365Onboarding:!0}))}},o.installOffice):jt().createElement(nx,{href:o.installOfficeMobileLink,"data-bi-id":"m365-confirmation-install-office-mobile","aria-label":o.installOffice,target:"_blank"},o.installOffice),jt().createElement(Ib,{variant:"metadataText"},o.installOfficeText))),c?jt().createElement(jk,{size:"md",borderRadius:"50%",image:{imageType:"icon",iconName:"Share",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(rx,{"data-bi-id":"m365-confirmation-share-subscription","aria-label":o.shareYourSubscription,onClick:function(){e.switchToDialog(jt().createElement(Lbe,{isOnboardingCompleted:!0,isM365Onboarding:!0}))}},o.shareYourSubscription),jt().createElement(Ib,{variant:"metadataText"},o.shareYourSubscriptionText))):jt().createElement(jt().Fragment,null),jt().createElement(jk,{size:"md",borderRadius:"50%",image:{imageType:"icon",iconName:"OneDriveLogo",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(rx,{"data-bi-id":"m365-confirmation-onedrive","aria-label":o.oneDrive,onClick:function(){e.switchToDialog(jt().createElement(mbe,{isOnboardingCompleted:!0}))}},o.oneDrive),jt().createElement(Ib,{variant:"metadataText"},o.oneDriveConfirmationDialogText))),zs(dbe,!1)?jt().createElement(jk,{size:"md",borderRadius:"50%",image:{imageType:"icon",iconName:"DefenderApp",iconColor:"black"}},jt().createElement(bb,null,jt().createElement(rx,{"data-bi-id":"m365-confimation-defender","aria-label":o.defender,onClick:function(){e.switchToDialog(jt().createElement(hbe,{isOnboardingCompleted:!0}))}},o.defender),jt().createElement(Ib,{variant:"metadataText"},Kt(o.defenderConfirmationDialogTextList,s.market)))):jt().createElement(jt().Fragment,null)))))},Vbe="forceWebInstall",zbe="true",Ube=function(e){var t=e.onHideDialog,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=zye(),i=Xve(),a=i.content.install,s=i.content.common,l=tee(),c=Bve(),u=ny(),d=EM(),p=c.language,h="language-callout",m=i.content.sharing.familyShareV2.familyGroupInfoDialog.backCta;if(!o)throw new Error("Service details not found");var f=o.installDetails.installerDownloadDetails,g=mi(),v=Bve().area,y=function(e){var t=e===h?a.getMoreInfoLanguage:a.getMoreInfoVersion;return{calloutTrigger:"IconButton",calloutTriggerProps:{iconName:"Unknown","data-bi-id":e,"aria-label":t},"aria-label":t}},b=function(e){return jt().createElement(nb,{tag:"h2",variant:"headerText"},e)},C=a.installOfficeMessage,S={0:jt().createElement(nx,{href:a.getMoreInfo.url,target:"_blank","aria-label":a.getMoreInfo.ariaLabel||a.getMoreInfo.text,"data-bi-id":a.getMoreInfo.id},a.getMoreInfo.text)},x=f.languages.map((function(e){return{key:e.id,text:e.name,ariaLabel:e.name,id:e.id}})),_=Ua((0,Gt.useState)(x[0].key),2),E=_[0],k=_[1],w={"aria-label":a.chooseLanguage,options:x,"data-bi-prefix":"language-drop-down",value:E,pageArea:v,onChange:function(e,t){t&&(k(t.key),Cr({step:"update-language"}))}},I=jt().createElement(Cb,null,jt().createElement(bb,{grow:!0,horizontal:!0,verticalAlign:"center"},b(a.chooseLanguage),jt().createElement(fk,y(h),a.chooseLanguageTooltip)),jt().createElement(kF,w)),P=f.versions;if(f.offlineInstallVersion){var T={name:a.offlineInstallerTitle,channel:f.offlineInstallVersion.channel,clientVersion:f.offlineInstallVersion.clientVersion,platform:f.offlineInstallVersion.platform,isDefault:f.offlineInstallVersion.isDefault};P=P.concat(T)}var D=P.map((function(e){var t={default:a.default,channelInsider:a.channelInsider,channelInsiderFast:a.channelInsiderFast,platformCloudOS:a.platformCloudOS,platformOSX:a.platformOSDX,platformWin32:a.platformWin32,platformWin64:a.platformWin64,platformWindowsDefault:a.platformWindowsDefault},n=sn(e.name,t);return{key:e.name,text:n,ariaLabel:n,id:e.clientVersion.toString()}})),A=Ua((0,Gt.useState)(D[0].key),2),R=A[0],N=A[1],M={"aria-label":a.chooseVersion,options:D,"data-bi-prefix":"version-drop-down",value:R,pageArea:v,onChange:function(e,t){t&&(N(t.key),Cr({step:"update-version"}))}},F={0:jt().createElement(nx,{href:a.versionHelpLink.url,target:"_blank","aria-label":a.versionHelpLink.ariaLabel||a.versionHelpLink.text,"data-bi-id":a.versionHelpLink.id},a.versionHelpLink.text)},B=jt().createElement(Cb,null,jt().createElement(bb,{grow:!0,horizontal:!0,verticalAlign:"center"},b(a.chooseVersion),jt().createElement(fk,y("version-callout"),jt().createElement(ox,{textWithTokens:a.chooseVersionTooltip,tokensAndValues:F}))),jt().createElement(kF,M)),O={title:a.installErrorTitle,dialogFooterProps:{buttonPrimary:{onClick:function(){g({name:L.name,status:"finished"}),ebe()},text:a.tryAgain,"aria-label":a.tryAgain,"data-bi-id":"try-again"},buttonSecondary:{onClick:function(){t(),g({name:L.name,status:"finished"})},text:s.closeButton,"aria-label":s.closeButton,"data-bi-id":"error-close"}}},L=function(){var e=Zve(fve().mark((function e(){var i,a,s,c,u,h;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g({name:L.name,status:"updating"}),e.prev=1,i=P.find((function(e){return e.name===R})),a=f.languages.find((function(e){return e.id===E})),e.next=6,p9({service:o,language:a.id,channel:i.channel,platform:i.platform,version:i.clientVersion});case 6:s=e.sent,g({name:L.name,status:"finished"}),n&&!r?o.sharingDetails?d.switchToDialog(jt().createElement(Lbe,{isM365Onboarding:!0})):d.switchToDialog(jt().createElement(mbe,null)):(t(),l(r?lbe:sbe,p)),window.location.href=s.url,_r({data:o.bi}),e.next=18;break;case 13:e.prev=13,e.t0=e.catch(1),h=(null===(c=e.t0.response)||void 0===c||null===(u=c.data)||void 0===u?void 0:u.error)||"onInstallNoErrorCode",g({name:L.name,status:"failed",error:e.t0}),_r({error:h,data:{isUserError:b8.indexOf(h)>-1,errorDetails:e.t0}});case 18:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}(),H=function(){t(),xr(),l(n?cbe:r?lbe:sbe,p)},V="install-dialog",z=L.name,U={progressViewOperationData:{operationName:z,componentName:V},errorDialogProps:O},W={onClick:L,text:a.installButton,"aria-label":a.installButton,"data-bi-id":"m365-onboarding-btn-install",type:"primary"},G={onClick:function(){d.switchToDialog(jt().createElement(Hbe,null))},text:m,"aria-label":m,"data-bi-id":"m365-onboarding-btn-back"},j={isOpen:!0,onDismiss:H,title:{src:a.dialogTitle.src,imageType:"altTextImage",alt:a.dialogTitle.alt},closeButton:{"data-bi-id":"close","aria-label":s.cancelButton},stickyHeaderFooter:n?{hasStickyHeaderFooters:!0,firstFocusOnContent:!0}:void 0,dialogFooterProps:n?{dialogType:"secondary",hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonLeft:r?G:W,buttonRight:r?W:{onClick:function(){xr(),o.sharingDetails?d.switchToDialog(jt().createElement(Lbe,{isM365Onboarding:!0})):d.switchToDialog(jt().createElement(mbe,null))},text:s.skip,"aria-label":s.skipAriaLabel,"data-bi-id":"skip-install"}}:{buttonPrimary:{onClick:L,text:a.installButton,"aria-label":a.installButton,"data-bi-id":"btn-install"},buttonSecondary:{onClick:H,text:s.cancelButton,"aria-label":s.cancelButton,"data-bi-id":"cancel"}},bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:"480px",minBodyHeight:n?{unit:"vh",height:80}:void 0,operationData:U},q=jt().createElement(jt().Fragment,null);o.isMacOS&&(q=jt().createElement(Ib,{variant:"headerText"},a.macOSPerpetual2021Message)),Qt((function(){o&&mn(Vbe,zbe)?(Cr({step:"force-install-dialog"}),hn(Vbe),L()):Cr({step:"install-dialog"})}));var K=[],Y=a.helpLinks.officeHelp;o.installDetails.installHelpLink&&K.push({id:Y.id,text:Y.text,url:o.installDetails.installHelpLink,target:Y.target,ariaLabel:Y.ariaLabel,customAttrs:Y.customAttrs}),K.push(a.helpLinks.systemRequirements),o.isPerpetual?(o.installDetails.installHelpLink||(o.isMacOS?K.push(a.helpLinks.perpetualMacHelp):K.push(a.helpLinks.perpetualPcHelp)),K.push(a.helpLinks.perpetualHelpTraining),K.push(a.helpLinks.perpetualOfficeFaq)):(o.installDetails.installHelpLink||K.push(Y),K.push(a.helpLinks.officeHelpTraining),K.push(a.helpLinks.officeFaq));var X=jt().createElement(bb,{childrenGap:"5"},K.map((function(e,t){return jt().createElement(nx,{"aria-label":e.ariaLabel,"data-bi-id":e.id,href:e.url,target:"_blank",key:t},e.text)}))),Q=jt().createElement(bb,null,jt().createElement(zk,{id:"dialogImage",imageFit:"cover",imageType:"ariaHiddenImage",src:a.introImage.src,height:pbe(u,rbe).imageHeight}),jt().createElement(bb,{childrenGap:"10",padding:pbe(u,rbe).dialogBodyPadding},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},o.isMacOS?a.installDialogTitleMac:a.installDialogTitle),jt().createElement(ox,{textWithTokens:C,tokensAndValues:S}),jt().createElement(bb,{childrenGap:"10",padding:"22px 0px 0px 0px"},o.isMacOS?jt().createElement(Ib,{variant:"subjectTitle"},o.name):jt().createElement(jt().Fragment,null),o.isMacOS?q:jt().createElement(jt().Fragment,null),o.isMacOS?jt().createElement(jt().Fragment,null):I,o.isMacOS?jt().createElement(jt().Fragment,null):B,X))),Z=jt().createElement(bb,{padding:pbe(u,rbe).dialogBodyPadding},jt().createElement(Ib,{variant:"bodyPrimaryText"},a.installErrorMessage.replace("{productId}",o.name)));return jt().createElement(CM,j,jt().createElement(vi,{operationData:{componentName:V,operationName:z},inertView:Q,updatingView:Q,firstLoadView:Q,failedView:Z,finishedView:Q}))},Wbe=function(e){var t,n=e.showInstallDialog,r=e.onHideDialog,o=zye(),i=Xve(),a=i.content.install,s=i.content.common,l=EM(),c=tee(),u=Bve().language;if(!o)throw new Error("Service details not found");var d=o.installDetails.isInstallAllowed,p=o.installDetails.platformUnspportedMessageKey;Cr({step:"load-install-office-unsupported-dialog"});var h=function(){r?r():l.closeDialog(),xr(),c(sbe,u)},m={onClick:function(){n()},text:a.installAnyway,"aria-label":a.installAnyway,"data-bi-id":"unsupported-install-anyway"},f={onClick:h,text:s.cancelButton,"aria-label":s.cancelButton,"data-bi-id":"unsupported-cancel"},g={isOpen:!0,onDismiss:h,title:a.unsupportedPlatformTitle,subText:p?a.unsupportedPlatformMessages[p].replace("{productName}",o.name):a.unsupportedPlatformMessages.generic,closeButton:{"data-bi-id":"unsupported-install-close","aria-label":s.closeButton},dialogFooterProps:{buttonPrimary:d?m:f,buttonSecondary:d?f:void 0}};return jt().createElement(CM,g,jt().createElement(nx,{href:a.unsupportedPlatformMoreInfo.url,"aria-label":null!==(t=a.unsupportedPlatformMoreInfo.ariaLabel)&&void 0!==t?t:a.unsupportedPlatformMoreInfo.text,"data-bi-id":a.unsupportedPlatformMoreInfo.id},a.unsupportedPlatformMoreInfo.text))},Gbe=function(e){var t=e.onHideDialog,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=EM(),i=zye();if(!i)throw new Error("Service details not found");var a=Bve().area,s=!i.installDetails.platformUnspportedMessageKey,l=function(){o.closeDialog()};return Qt((function(){br({area:a,scenario:"AmcInstall",step:"install-office-flow",data:i.bi});var e=function(){o.switchToDialog(jt().createElement(Ube,{onHideDialog:null!==t&&void 0!==t?t:l,isM365Onboarding:n,isOnboardingCompleted:r}))};s?e():o.switchToDialog(jt().createElement(Wbe,{showInstallDialog:e}))})),jt().createElement(jt().Fragment,null)};function jbe(e,t,n){var r=e.active.concat(e.canceled).concat(e.commercial);return n?r.find((function(e){return e.id.toUpperCase()===n.toUpperCase()})):t?r.find((function(e){return e.modelId.toUpperCase()===t.toUpperCase()})):void 0}function qbe(e){var t=new URLSearchParams(window.location.search),n=window.location.href.split("#")[0],r=window.location.href.split("#")[1];return t.toString()?r?"".concat(n,"&").concat(e,"=true#").concat(r):"".concat(n,"&").concat(e,"=true"):r?"".concat(n,"?").concat(e,"=true#").concat(r):"".concat(n,"?").concat(e,"=true")}var Kbe="microsoft365",Ybe=function(e,t){var n=Array.from(t);if(!e||!e.length||!n.length)return n;var r=[];return e.forEach((function(e){var t=n.findIndex((function(t){return t.id===e.id}));t>-1&&(r.push(n[t]),n.splice(t,1))})),n.length&&(r=r.concat(n)),r};var Xbe="isUpgradeIndia2FASuccess",Qbe="isPrimaryPiPicker",Zbe="isBackupPiPicker",Jbe=function(e,t,n){var r=function(e){return qbe(e?Zbe:Qbe)}(e),o=[_m({},K6,t),_m({},Y6,n)];return pn(r,o)};function $be(e){return(null===e||void 0===e?void 0:e.billingState)===t7.Expired&&(null===e||void 0===e?void 0:e.isM365FullSku)}var eCe=function(e){switch(null===e||void 0===e?void 0:e.cycleUnit){case"month":default:return 1;case"year":return 12}},tCe=function(e){return e===xye?fye:gye};function nCe(e){return(null===e||void 0===e?void 0:e.billingState)===t7.Expired&&(null===e||void 0===e?void 0:e.isM365BasicSku)}var rCe,oCe=function(e){switch(e){case z7:return"M365-Family";case V7:return"M365-Personal";case U7:return"Onedrive";default:return"Unknown"}},iCe="cmm6za76j3e",aCe=KR((function(e){var t,n,r,o=e.canceledService,i=qo(),a=Xve(),s=a.content.landing.strings,l=a.content.common,c=Bve(),u={image:{imageType:"image",src:o.brandLogo},padding:"3px",size:"md"},d=jt().createElement(iR,{listItemMediaProps:u,title:o.name,titleTextVariant:"bodyPrimaryText"}),p=o.endDate?(t=o.endDate,Cx(t).toLocaleDateString(n||fx(),{year:"numeric",month:"short",day:"numeric"})):null;r=o.convertedTo?"XBOXGAMEPASSULTIMATE"===o.brandId.toUpperCase()&&o.renewalRecurrence&&o.endDate?sn(s.xboxDowngradedTo,{newSub:o.convertedTo,endDate:p}):s.upgradedTo.replace("{{newSub}}",o.convertedTo):p?s.expiredOn.replace("{{date}}",p):"".concat(s.expired);var h=jt().createElement(nR,{textElements:[{children:r,variant:"bodySecondaryText"}]}),m={},f={},g="OFFICE"===o.brandId.toUpperCase()?"".concat(Kbe,"-billing"):"".concat(o.brandId,"-billing"),v=Ua(bre(c.area),2),y=v[0],b=v[1];if(Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$be(o)&&y(o,"CanceledSubItem");case 1:case"end":return e.stop()}}),e)})))),"commercial"===o.type?m={"aria-label":s.commercialSubsCancelledCta,"data-bi-id":g,onClick:function(){window.open(s.commercialOfficeUrl,"_blank")},text:s.commercialSubsCancelledCta}:o.partnerBilling||(m={text:l.manage,"data-bi-id":g,"aria-label":s.manageCtaAriaLabel,onClick:function(){i.push("/".concat(o.modelId,"/details#billing"))}}),!o.convertedTo&&o.purchaseLink&&!o.isRUMarketUnsupported){var C=o.purchaseLink;nCe(o)&&(C=dn(C,"ocid","cmmb0c2owft")),f=$be(o)?{text:l.resubscribe,onClick:function(){b(o,o.purchaseLink,"cmmckwdmrny")},"data-bi-id":"".concat(o.brandId,"-list-expired-renew"),"aria-label":s.resubscribeCtaAriaLabel.replace("{subscriptionName}",o.name),target:"_blank"}:{text:l.resubscribe,href:C,"data-bi-id":"".concat(o.brandId,"-list-expired-renew"),"aria-label":s.resubscribeCtaAriaLabel.replace("{subscriptionName}",o.name),target:"_blank"}}var S=jt().createElement(Tw,{actionButtonProps:[m,f],contentType:"none",menuProps:{"aria-label":l.moreOptions,"data-bi-id":"more-options",menuItems:[],tooltipHostProps:{tooltipText:l.moreOptions}}});return jt().createElement(SR,{key:o.modelId,columns:[d,h,S],variant:"SixThreeThree"})})),sCe=function(e){var t=e.canceledServicesSummary,n=e.canceledServices,r=e.isDrawerOpened,o=e.setIsDrawerOpened,i=Xve();return t.length||n.length?function(){var e=n.length?n.map((function(e){return e.name})):t.map((function(e){return e.name})),a={kind:"text",children:e[0]+(e.length>1?", ".concat(e[1]):"")+(e.length>2?" ".concat(i.content.landing.strings.plusMore):""),nowrap:!1},s=[{column:jt().createElement(tw,{title:a}),slots:12}],l=jt().createElement(bw,{totalSlots:12,columns:s,chevronPosition:"end"}),c=[];if(t.length&&!n.length)for(var u=0;u<t.length;u++)c.push(jt().createElement(YT,{key:"canceled-shimmer-".concat(u)}));else c=n.map((function(e,t){return jt().createElement(aCe,{canceledService:e,key:"".concat(t)})}));return 1===c.length?jt().createElement(bb,{childrenGap:12},jt().createElement(nb,{tag:"h2",variant:"paneTitle",children:i.content.landing.strings.canceledSubsTitle}),jt().createElement($R,{isAlwaysExpanded:!0,shadow:!0},c)):jt().createElement(bb,{childrenGap:12},jt().createElement(nb,{tag:"h2",variant:"paneTitle",children:i.content.landing.strings.canceledSubsTitle}),jt().createElement(_R,{onClickToClose:function(){return o(!1)},onClickToOpen:function(){return o(!0)},drawerHeader:l,defaultExpanded:r,shadow:!0,buttonId:"canceled-sub-id",borderRadius:"8px"},jt().createElement($R,{isAlwaysExpanded:!0},c)))}():jt().createElement(jt().Fragment,null)},lCe=function(e){var t=e.commercialServicesSummary,n=e.commercialServices,r=Xve().content.landing.strings;if(!t.length&&!n.length)return jt().createElement(jt().Fragment,null);var o=function(e,t,n,o){return n===H7.OfficeSMB&&o?jt().createElement(iR,{listItemMediaProps:xSe(t),title:e}):jt().createElement(iR,{listItemMediaProps:xSe(t),title:e,subtitles:[{children:n===H7.TeamsStandalone&&o?r.teamsGuestMessage:r.commercialSubsMessage,variant:"metadataText"}]})},i=function(e,t){return jt().createElement(Tw,{actionButtonProps:[{"aria-label":r.manageCtaAriaLabel,"data-bi-id":"".concat(e,"_Commercial_Manage"),onClick:function(){window.open(e===H7.TeamsStandalone&&t?r.teamsGuestUrl:r.commercialOfficeUrl,"_blank")},text:t?r.teamsGuestCta:r.commercialSubsCta}],contentType:"none"})},a=jt().createElement(bb,{margin:"0 !important"},t.map((function(e,t){return e.brandId===H7.OfficeSMB&&e.isGuest?jt().createElement(bb,null,jt().createElement(Cb,{margin:"16px 0 0 0"},jt().createElement($R,{isAlwaysExpanded:!0,key:t,shadow:!0,roundedCorners:!0,listItemBackgroundColor:"neutralHigh"},jt().createElement(SR,{key:"commercial-subs",columns:[o(e.name,e.logo,e.brandId,e.isGuest)],variant:"Twelve"})))):jt().createElement(bb,null,jt().createElement(Cb,{margin:"16px 0 0 0"},jt().createElement($R,{isAlwaysExpanded:!0,key:t,shadow:!0,roundedCorners:!0,listItemBackgroundColor:"neutralHigh"},jt().createElement(SR,{key:"commercial-subs",columns:[o(e.name,e.logo,e.brandId,e.isGuest),i(e.brandId,e.isGuest)],variant:"SixSix"}))))}))),s=jt().createElement(bb,{margin:"0 !important"},Ybe(t,n).map((function(e,t){return e.brandId===H7.OfficeSMB&&e.isGuest?jt().createElement(bb,null,jt().createElement(Cb,{margin:"16px 0 0 0"},jt().createElement($R,{isAlwaysExpanded:!0,key:t,shadow:!0,roundedCorners:!0,listItemBackgroundColor:"neutralHigh"},jt().createElement(SR,{key:"commercial-subs",columns:[o(e.name,e.brandLogo,e.brandId,e.isGuest)],variant:"Twelve"})))):jt().createElement(bb,null,jt().createElement(Cb,{margin:"16px 0 0 0"},jt().createElement($R,{isAlwaysExpanded:!0,key:t,shadow:!0,roundedCorners:!0,listItemBackgroundColor:"neutralHigh"},jt().createElement(SR,{key:"commercial-subs",columns:[o(e.name,e.brandLogo,e.brandId,e.isGuest),i(e.brandId,e.isGuest)],variant:"SixSix"}))))})));return n.length?s:a},cCe=function(e){var t,n,r,o,i=e.valueBannerSlot,a=e.modelId,s=e.service,l=e.onServiceUpdate,c=qo(),u=EM(),d=Bve(),p=Xve().content,h=p.commonCommerce.payNow,m=p.commonCommerce.common.psd2Resource,f=p.commonCommerce,g=f.turnOnRB,v=f.common,y=f.changePayment,b=f.renewPath,C=[t7.InDunning,t7.Expired,t7.ExpiredPrimaryPI,t7.LowCsvExpiredBackup],S=Ua(bre(d.area),2),x=S[0],_=S[1],E=(null===s||void 0===s?void 0:s.billingState)===t7.ActiveAutoRenewOff||(null===s||void 0===s?void 0:s.billingState)===t7.PartnerBilled||(null===s||void 0===s?void 0:s.billingState)===t7.Expired?"Calendar":"DateTime",k=function(e,t){var n="";return e&&"#"!==e?n=e:null!==t&&void 0!==t&&t.includes("value-banner-renew")&&(n="/".concat(a,"/renew?fref=").concat(t)),n},w={id:i.id,"aria-label":"".concat(i.title," ").concat(i.subtitle),"data-bi-id":null!==(t=i.id)&&void 0!==t?t:"".concat(i.serviceId,"-banner-slot-billing"),iconName:E,infoText:i.subtitle,ctaText:i.title,badge:s&&C.indexOf(s.billingState)>-1?"Alert":void 0};if(Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$be(s)&&x(s,"ValueBanner");case 1:case"end":return e.stop()}}),e)})))),null!==(n=i.id)&&void 0!==n&&n.includes("value-banner-billing")){if(!s)throw new Error("Service details not found");return jt().createElement(GI,Object.assign({},w,{onClick:function(){i.link&&"#"!==i.link?s.billingState===t7.PartnerBilled?window.open(i.link,"_blank"):c.push(i.link):c.push("/".concat(a,"/details#billing"))}}))}if(null!==(r=i.id)&&void 0!==r&&r.includes("value-banner-paynow")){return jt().createElement(GI,Object.assign({},w,{onClick:function(){if(!s)throw new Error("Service details not found");var e={service:s,payNowCmsContent:h,psd2Resource:m,pidlEnvironment:d.pidlEnvironment,area:d.area,language:d.language,primaryId:d.userEmail,triggerBIId:w["data-bi-id"],succeededCallback:l?function(){return l(s)}:void 0};return u.openDialog(jt().createElement(Tte,e))}}))}if(null!==(o=i.id)&&void 0!==o&&o.includes("value-banner-changepi")){return jt().createElement(GI,Object.assign({},w,{onClick:function(){if(s){var e={area:d.area,service:s,browserLanguage:d.language,pidlEnvironment:d.pidlEnvironment,psd2Resource:m,changePaymentContent:y,isChangePaymentBackup:s.billingState===t7.LowCsvExpiredBackup||s.billingState===t7.LowCsvExpiringBackup,onPiUpdate:l};return u.openDialog(jt().createElement(Zte,e))}return c.push("/".concat(a,"/change-payment-method?fref=").concat(i.id))}}))}return jt().createElement(GI,Object.assign({},w,{onClick:function(){var e,t,n="".concat(d.area,".").concat(null===(e=Yn("pageid"))||void 0===e?void 0:e.content);if(null!==(t=i.id)&&void 0!==t&&t.includes("value-banner-renew")&&s&&jne(s)){var r=w["data-bi-id"],o={pidlEnvironment:d.pidlEnvironment,area:d.area,language:d.language};ore({service:s,turnOnRBCmsContent:g,commonResource:v,changePaymentCmsContent:y,renewPathContent:b,renewAreaConfig:o,dialogController:u,triggerBIId:r,onServiceUpdate:l,isScenarioStep:!1})}else if($be(s)){var a="cmm0ua8y64r";switch(n){case uye:a="cmmxjfm99xq";break;case cye:a="cmmykpczatg"}_(s,k(i.link,i.id),a)}else{var p=k(i.link,i.id);nCe(s)&&(p=dn(p,"ocid","cmm9jljhvly")),i.target&&"_blank"===i.target?window.open(p,i.target):c.push(p)}}}))},uCe=function(e){var t,n,r=e.valueBannerSlot,o=e.modelId,i=qo(),a=Bve(),s=EM(),l=null!==(t=r.icon)&&void 0!==t?t:"Installation",c={id:r.id,"aria-label":"".concat(r.title," ").concat(r.subtitle),"data-bi-id":null!==(n=r.id)&&void 0!==n?n:"value-banner-install",iconName:l,infoText:r.subtitle,ctaText:r.title,onClick:function(){var e;"".concat(null===(e=Yn("pageid"))||void 0===e?void 0:e.content)==="".concat(a.area,".").concat(cye)?s.openDialog(jt().createElement(Gbe,null)):i.push("/".concat(o,"/details?openInstall=true#install"))}};return jt().createElement(GI,c)},dCe=function(e){var t,n,r=e.valueBannerSlot,o=e.modelId,i=qo(),a=null!==(t=r.icon)&&void 0!==t?t:"Family",s={id:r.id,"aria-label":"".concat(r.title," ").concat(r.subtitle),"data-bi-id":null!==(n=r.id)&&void 0!==n?n:"value-banner-share",iconName:a,infoText:r.subtitle,ctaText:r.title,onClick:function(){i.push("/".concat(o,"/details?startSharing=true#sharing"))}};return jt().createElement(GI,s)},pCe=function(e){var t,n,r=e.valueBannerSlot,o=null!==(t=r.icon)&&void 0!==t?t:"Game",i={id:r.id,"aria-label":"".concat(r.title," ").concat(r.subtitle),"data-bi-id":null!==(n=r.id)&&void 0!==n?n:"value-banner-xbox",iconName:o,infoText:r.subtitle,ctaText:r.title,ctaUrl:r.link,target:"_blank"};return jt().createElement(GI,i)},hCe=function(e,t,n){var r=e?fCe(e.slot2,t,n):null,o=e?fCe(e.slot3,t,n):null;return r&&!o&&(o=e?fCe(e.slot4,t,n):null),r||(r=e?fCe(e.slot3,t,n):null,o=e?fCe(e.slot4,t,n):null),[r,o]},mCe=function(e){var t,n,r,o=e.bannerProps,i=null!==(t=o.icon)&&void 0!==t?t:"WindowsLogo";o.link&&(n={id:o.id,"aria-label":o.title,"data-bi-id":null!==(r=o.id)&&void 0!==r?r:"value-banner-other",iconName:i,infoText:o.subtitle,ctaText:o.title,onClick:function(){window.open(o.link,"_blank")}});return n?jt().createElement(GI,n):jt().createElement(jt().Fragment,null," ")},fCe=function(e,t,n){var r;if(!e)return null;var o=null!==(r=e.modelId)&&void 0!==r?r:e.serviceId,i=t?t.find((function(e){return e.modelId===o})):void 0;switch(e.columnType?e.columnType:"other"){case"billing":return jt().createElement(cCe,{valueBannerSlot:e,modelId:o,service:i,onServiceUpdate:n});case"install":return jt().createElement(uCe,{valueBannerSlot:e,modelId:o});case"sharing":return jt().createElement(dCe,{valueBannerSlot:e,modelId:o});case"xboxGames":return jt().createElement(pCe,{valueBannerSlot:e,modelId:o});default:return jt().createElement(mCe,{bannerProps:e})}},gCe=function(){var e=Xve();return jt().createElement(hI,null,jt().createElement(LI,{breadcrumbTitleProps:{ariaLabel:e.content.landing.strings.pageTitle,dataBiPrefix:"services",isIncludingCurrentPage:!0,items:[{id:"landing-banner-title-column",text:e.content.landing.strings.pageTitle,type:"text"}],overflowAriaLabel:e.content.landing.strings.pageTitle,overflowIndex:0,pageArea:"landing-value-banner"}}),jt().createElement(qI,null),jt().createElement(qI,null))},vCe=function(e){var t=e.receivedBanner,n=e.services,r=e.onServiceUpdate,o=t?hCe(t,n,r):void 0,i=Xve(),a=[jt().createElement(LI,{breadcrumbTitleProps:{ariaLabel:i.content.landing.strings.pageTitle,dataBiPrefix:"services",isIncludingCurrentPage:!0,items:[{id:"landing-banner-title-column",text:i.content.landing.strings.pageTitle,type:"text"}],overflowAriaLabel:i.content.landing.strings.pageTitle,overflowIndex:0,pageArea:"landing-value-banner"}})];o&&(o[0]&&(a=a.concat(o[0])),o[1]&&(a=a.concat(o[1])));var s=jt().createElement(hI,null,a);return jt().createElement(dv,{operationData:{componentName:CSe,operationName:SSe},firstLoadView:jt().createElement(gCe,null),finishedView:s})},yCe="CommonMessageBar",bCe={messageBarShown:"CommonMessageBarShown",dunningStateShown:"DunningPIStateShown",expiredPIStateShown:"ExpiredPIStateShown",expiringPIStateShown:"ExpiringPIStateShown",officeSubscription:"OfficeSubscription",xboxSubscription:"XboxSubscription",otherSubscription:"OtherSubscription"},CCe={serviceAlerts:[]},SCe=jt().createContext({pageArea:"",initialAlerts:CCe,strings:void 0,getAlerts:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return[2,CCe]}))}))},fixPiAction:function(){},payNowAction:function(){},alertsCallback:void 0}),xCe=function(){return(0,Gt.useContext)(SCe)},_Ce=function(){var e,t,n,r,o,i=xCe().strings,a=xCe().pageArea,s=xCe().initialAlerts,l=xCe(),c=l.fixPiAction,u=l.payNowAction,d=l.alertsCallback,p=function(e){if(e.serviceAlerts.length>0){var t=e.serviceAlerts[0];return"dunning"===t.messageKey||"expiredPi"===t.messageKey||"expiringPi"===t.messageKey?t:void 0}}(s);if((0,Gt.useEffect)((function(){void 0!==p&&(br({area:"".concat(a),scenario:yCe,step:bCe.messageBarShown}),"Office"===p.serviceMetadata.brandId?Cr({step:bCe.officeSubscription}):"Xbox"===p.serviceMetadata.brandId?Cr({step:bCe.xboxSubscription}):Cr({step:bCe.otherSubscription}),"dunning"===p.messageKey?Cr({step:bCe.dunningStateShown}):"expiredPi"===p.messageKey?Cr({step:bCe.expiredPIStateShown}):Cr({step:bCe.expiringPIStateShown}))}),[p]),void 0!==p){null===d||void 0===d||d();var h=i.alerts[p.messageKey];if(!h)return Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"".concat(a,"-CommonSubscriptionsAlertBar"),message:"Unable to load alert CMS for key ".concat(p.messageKey)}),jt().createElement(jt().Fragment,null);var m=function(e,t){if(!e||!t)return e;var n=e;return Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n},f=m(h.actionText,p.tokens),g=m(h.title,p.tokens),v=m(h.message,p.tokens),y=void 0;if("Office"===p.serviceMetadata.brandId&&"dunning"===p.messageKey&&"landing-view"===a){var b=m(i.alerts.dunning.messagev2||"",p.tokens);y=jt().createElement(Ib,null,b)}else y=jt().createElement(Ib,null,v);return jt().createElement(GF,{messageContent:{textWithTokens:"{header} {content}",tokensAndValues:{header:jt().createElement(Ib,{weightOverride:"bold"},g),content:y}},actionProps:(e=p.messageKey,t=p.serviceMetadata.productId,n=p.serviceMetadata.brandId,r=f,o=h.actionAriaLabel,"dunning"===e?{children:r,"aria-label":o||r,"data-bi-id":"".concat(n,"-alert-paynow"),onClick:function(){Ir()&&_r(),u(t)},actionType:"noHrefLink"}:{children:r,"aria-label":o||r,"data-bi-id":"".concat(n,"-alert-fixpi"),onClick:function(){_r(),c(t)},actionType:"noHrefLink"}),messageBarType:p.alertType})}return jt().createElement(jt().Fragment,null)},ECe="GetAlertsOperationName",kCe=function(t){var n=t.strings,r=t.pageArea,o=t.fixPiAction,i=t.payNowAction,a=t.getAlerts,s=t.alertsCallback,l=mi(),c=(0,Gt.useState)(CCe),u=c[0],d=c[1],p=function(e){return"".concat(r,".").concat("common-message-bar",".").concat(e)};return Qt((function(){(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),l({name:p(ECe),status:"first-load"}),[4,a()];case 1:return t=e.sent(),d(t),l({name:p(ECe),status:"finished"}),[3,3];case 2:return n=e.sent(),r=n,l({name:p(ECe),status:"failed",error:r}),[2];case 3:return[2]}}))}))})),jt().createElement(SCe.Provider,{value:{initialAlerts:u,strings:n,pageArea:r,fixPiAction:o,payNowAction:i,getAlerts:a,alertsCallback:s}},jt().createElement(_Ce,null))},wCe=function(t){var n=t.strings,r=t.pageArea,o=t.alertsCallback,i=t.servicesAlertsResponse,a=t.payNowActionOverride;return jt().createElement(kCe,{strings:n,pageArea:r,fixPiAction:function(e){window.location.replace("/services/".concat(e,"/details?openChangePayment=true#billing"))},payNowAction:function(e){a?a():window.location.replace("/services/".concat(e,"/details?openPayNow=true#billing"))},getAlerts:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return i?[2,i]:[3,1];case 1:return[4,G8()];case 2:return[2,e.sent()]}}))}))},alertsCallback:o})},ICe="/api/promotion-campaigns",PCe="".concat(ICe,"/campaign-data"),TCe=("".concat(ICe,"/campaign-data-jadis"),"".concat(ICe,"/campaigns-data")),DCe="".concat(ICe,"/campaign-batch-data"),ACe=[2e3,2040],RCe={},NCe=function(t){return tl(RCe,t,(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps(PCe,{operation:"GLOBAL.CAMPAIGNS.GETCAMPAIGNDATA"},{params:{surfaceName:t}})];case 1:return n=e.sent(),[2,BCe(JSON.parse(n.data),t)]}}))}))}))},MCe=function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r;return(0,e.__generator)(this,(function(o){switch(o.label){case 0:return n=Ps(TCe,{operation:"GLOBAL.CAMPAIGNS.GETCAMPAIGNSDATA"},{params:{surfacesNames:t.join(",")}}),t.forEach((function(t){tl(RCe,t,(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,n];case 1:return r=e.sent(),o=r.data,[2,BCe(o[t],t)]}}))}))}))})),[4,n];case 1:return r=o.sent(),[2,JSON.parse(r.data)]}}))}))},FCe=function(t,n){var r=null!==n&&void 0!==n?n:4;return tl(RCe,t,(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps(DCe,{operation:"GLOBAL.CAMPAIGNS.GETBATCHCAMPAIGNDATA"},{params:{surfaceName:t,batchCount:r}})];case 1:return n=e.sent(),[2,OCe(JSON.parse(n.data),t)]}}))}))}))},BCe=function(e,t){if(e&&"error"in e){var n=e.error;if(ACe.includes(n.code))return{surfaceName:t};throw Error("Iris error code ".concat(n.code,": ").concat(n.msg))}return{model:e,surfaceName:t}},OCe=function(e,t){var n,r;if("error"in e){var o=e.error;if(ACe.includes(o.code))return{surfaceName:t};throw Error("Iris batch campaign error code ".concat(o.code,": ").concat(o.msg))}return(null===(n=e.batchrsp)||void 0===n?void 0:n.items)?{models:null===(r=e.batchrsp.items)||void 0===r?void 0:r.map((function(e){return JSON.parse(e.item)})),surfaceName:t}:(e.batchrsp.errors&&e.batchrsp.errors.forEach((function(e){if(!ACe.includes(e.code))throw Error("Iris batch campaign error code ".concat(e.code,": ").concat(e.msg))})),{surfaceName:t})};!function(e){e.Unauthorized="401",e.Conflict="409",e.PreconditionFailed="412",e.TooManyRequests="429"}(rCe||(rCe={}));"".concat("/privacy/api","/test");var LCe,HCe,VCe,zCe=[rCe.Unauthorized],UCe=(LCe=zCe,function(e){var t=e.alert,n=e.pageArea,r=e.onDismiss,o=e.service,i=e.onServiceUpdate,a=Xve(),s=a.content.common,l=a.content.commonCommerce,c=l.payNow,u=l.turnOnRB,d=l.common,p=l.changePayment,h=l.renewPath,m=a.content.manage,f=Bve(),g=EM(),v=qo(),y=Ua(bre(f.area),2),b=y[0],C=y[1];if(Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$be(o)&&b(o,"ServicesMessageBar");case 1:case"end":return e.stop()}}),e)})))),!o||!t||!t.contentKey)return jt().createElement(jt().Fragment,null);var S=s.alerts[t.contentKey];if(!S)return Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"ServicesMessageBar",message:"Unable to load alert CMS for key ".concat(t.contentKey)}),jt().createElement(jt().Fragment,null);jn("awa-alertKey",t.contentKey);var x,_=function(e,t,n){var r=n;return"annualUpsell"===e&&(r=m.switchBillingPlan),{children:n,"aria-label":r,"data-bi-id":t.customAttrs["data-bi-id"],id:t.customAttrs["data-bi-id"],onClick:function(){var e;if(null!==(e=t.url)&&void 0!==e&&e.includes("/renew")&&jne(o)){var n=t.customAttrs["data-bi-id"],r={pidlEnvironment:f.pidlEnvironment,area:f.area,language:f.language};ore({service:o,turnOnRBCmsContent:u,commonResource:d,changePaymentCmsContent:p,renewPathContent:h,renewAreaConfig:r,dialogController:g,triggerBIId:n,onServiceUpdate:i,isScenarioStep:!1})}else if("_blank"===t.target)window.open(t.url,t.target);else{var a=t.url;a.startsWith(o.modelId)&&(a="/".concat(a)),v.push(a)}}}},E=function(e,t){if(!e||!t)return e;var n=e;return Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n},k=E(S.actionText,t.tokens),w=E(S.title,t.tokens),I=E(S.message,t.tokens),P=s.nonUpgradableBrandIds.includes(o.brandId),T=s.nonUpgradableMarket.includes(o.market);if("xboxDowngrade"===t.contentKey){var D=E("{{nextsubs}}",t.tokens),A=E("{{date}}",t.tokens),R={nextsubs:jt().createElement(Ib,{weightOverride:"bold"},D),date:jt().createElement(Ib,{weightOverride:"bold"},A)};x=jt().createElement(ox,{textWithTokens:I,tokensAndValues:R})}else if("downgradePastduePattern"===t.contentKey){var N=E("{{subscription}}",t.tokens),M={subscription:jt().createElement(Ib,{weightOverride:"bold"},N)};x=jt().createElement(ox,{textWithTokens:I,tokensAndValues:M})}else if(["upgradeXboxLive","upgradeXboxLiveNew","upgradeXboxGamePass","upgradePCGamePass","upgradeEAAccess"].includes(t.contentKey)){if((o.isXboxBrandId||o.brandId===H7.EAAccess)&&P&&T)return null;var F=E("{{product}}",t.tokens),B={product:jt().createElement(Ib,{weightOverride:"bold"},F)};x=jt().createElement(ox,{textWithTokens:I,tokensAndValues:B})}else if((null===o||void 0===o?void 0:o.brandId)===H7.Office&&"dunning"===t.contentKey&&"landing-view"===n){var O=E(s.alerts.dunning.messagev2||"",t.tokens);x=jt().createElement(Ib,null,O)}else x=jt().createElement(Ib,null,I);return jt().createElement(GF,{messageBarVariant:"floating",messageContent:{textWithTokens:"{header} {content}",tokensAndValues:{header:jt().createElement(Ib,{weightOverride:"bold"},w),content:x}},actionProps:t.action?function(e,n,r){var a,s="".concat(f.area,".").concat(null===(a=Yn("pageid"))||void 0===a?void 0:a.content);if("dunning"===e&&o){return{children:r,"aria-label":r,"data-bi-id":n.customAttrs["data-bi-id"],onClick:function(){var e={service:o,payNowCmsContent:c,psd2Resource:l.common.psd2Resource,pidlEnvironment:f.pidlEnvironment,area:f.area,language:f.language,primaryId:f.userEmail,triggerBIId:n.customAttrs["data-bi-id"],succeededCallback:function(){return i?i(o):void 0}};g.openDialog(jt().createElement(Tte,e))},actionType:"noHrefLink"}}if("expiredPi"!==e&&"expiringPi"!==e||!o){if($be(o)){var m="cmmtiddbguq";switch(s){case uye:m="cmm50fqj49r";break;case cye:m="cmmlyz6by8e"}return{children:r,"aria-label":r,"data-bi-id":n.customAttrs["data-bi-id"],onClick:function(){C(o,n.url,m)},actionType:"noHrefLink"}}var v;if("m365Onboarding"===e&&o)return v=o.installDetails&&o.installDetails.canUseInstallOptions?jt().createElement(Gbe,{isM365Onboarding:!0}):o.sharingDetails?jt().createElement(Lbe,{isM365Onboarding:!0}):jt().createElement(mbe,null),{children:r,"aria-label":r,"data-bi-id":n.customAttrs["data-bi-id"],onClick:function(){return g.openDialog(v)},actionType:"noHrefLink"};if(nCe(o)){var y=n.url,b="cmmau9zwdz0";switch(s){case uye:b="cmmmzuz5e87";break;case cye:b="cmmc89r4u2c"}return y=dn(y,"ocid",b),km(km({},_(e,km(km({},n),{},{url:y}),r)),{},{actionType:"noHrefLink"})}if("m365SwitchPaidOffer30"===e&&o){return{children:r,"aria-label":r,"data-bi-id":n.customAttrs["data-bi-id"],onClick:function(){var e={pidlEnvironment:f.pidlEnvironment,area:f.area,language:f.language};ore({service:o,turnOnRBCmsContent:u,commonResource:d,changePaymentCmsContent:p,renewPathContent:h,renewAreaConfig:e,dialogController:g,triggerBIId:n.customAttrs["data-bi-id"],onServiceUpdate:i,isScenarioStep:!1,selectedSkuId:E("{{skuId}}",t.tokens)})},actionType:"noHrefLink"}}return km(km({},_(e,n,r)),{},{actionType:"noHrefLink"})}return{children:r,"aria-label":r,"data-bi-id":n.customAttrs["data-bi-id"],onClick:function(){var e={service:o,area:f.area,browserLanguage:f.language,pidlEnvironment:f.pidlEnvironment,psd2Resource:l.common.psd2Resource,changePaymentContent:l.changePayment,onPiUpdate:i};g.openDialog(jt().createElement(Zte,e))},actionType:"noHrefLink"}}(t.contentKey,t.action,k):void 0,messageBarType:t.kind,dismissButtonProps:{"aria-label":s.closeButton,"data-bi-id":"alert-dismiss",onDismiss:r,pageArea:n},messageContentId:t.contentKey})}),WCe=function(e){var t=e.service,n=e.alert,r=e.servicesAlerts,o=e.onServiceUpdate,i=e.dismissAlert,a=Xve().content.commonMessageBar,s="landing-view",l=Xve(),c=l.content.commonCommerce,u=l.content.commonCommerce.payNow,d=Bve(),p=EM(),h=r&&r.serviceAlerts&&r.serviceAlerts.length>0;return jt().createElement(jt().Fragment,null,h?jt().createElement(jt().Fragment,null):n&&n.contentKey?jt().createElement(UCe,{alert:n,pageArea:s,onDismiss:function(){i()},service:t,onServiceUpdate:o}):jt().createElement(jt().Fragment,null),h?jt().createElement(wCe,{strings:a,pageArea:s,servicesAlertsResponse:r,payNowActionOverride:function(){var e={service:t,payNowCmsContent:u,psd2Resource:c.common.psd2Resource,pidlEnvironment:d.pidlEnvironment,area:d.area,language:d.language,primaryId:d.userEmail,triggerBIId:"landing-alert-paynow",succeededCallback:function(){return o?o(t):void 0}};p.openDialog(jt().createElement(Tte,e))}}):jt().createElement(jt().Fragment,null))},GCe=function(){var e=jt().createElement(bb,{horizontal:!1,childrenGap:18,padding:"25px 55px"},jt().createElement(nw,{width:120,height:8}),jt().createElement(nw,{width:206,height:18})),t=jt().createElement(qO,{backgroundColor:"neutralHigh",firstSegment:e,secondSegment:e,variant:"SixSix"}),n=jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(zR,null),jt().createElement(zR,null));return jt().createElement(bb,{childrenGap:16},jt().createElement(iL,{highlightArea:t,detailsArea:n}),jt().createElement(iL,{highlightArea:t,detailsArea:n}),jt().createElement(wM,{anchor:"right",shadow:!0}),jt().createElement(wM,{anchor:"right",shadow:!0}),jt().createElement(bb,{childrenGap:12},jt().createElement(WP,null,jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null))))},jCe=KR((function(e){var t=e.productKey,n=e.date,r=e.productName,o=e.brandId,i=e.isKeyHidden,a=e.onInstall,s=e.onCopy,l=Xve(),c=ny(),u=l.content.landing.perpetual,d=l.content.landing.strings,p=function(){var e=Zve(fve().mark((function e(t){var n;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!1,e.prev=1,e.next=4,navigator.clipboard.writeText(t);case 4:n=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),n=!1;case 10:s(n);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),h=[];i||h.push({"aria-label":d.copyCtaAriaLabel,"data-bi-id":"".concat(o,"-list-perpetual-copy"),iconName:"Copy",onClick:function(){p(t)},text:u.copyKeyCta}),h.push({"aria-label":d.installCtaAriaLabel.replace("{productName}",r),"data-bi-id":"".concat(o,"-list-perpetual-install"),iconName:"Installation",onClick:a,text:u.installCta});var m=jt().createElement(Tw,{actionButtonProps:h,contentType:"none"});switch(c){case"s":case"m":case"l":return jt().createElement(SR,{columns:[jt().createElement(nR,{textElements:[{children:i?u.activateOfficeText:t,variant:"bodyPrimaryText"},{children:sn(u.addedOnDate,{date:vx(n)}),variant:"bodyPrimaryText"}]}),m],variant:"EightFour"});default:return jt().createElement(SR,{columns:[jt().createElement(nR,{textElements:[{children:i?u.activateOfficeText:t,variant:"bodyPrimaryText"}]}),jt().createElement(nR,{textElements:[{children:sn(u.addedOnDate,{date:vx(n)}),variant:"bodyPrimaryText"}]}),m],variant:"SixThreeThree"})}})),qCe="getProductKeyAsync",KCe="getAllProductKeysAsync",YCe=function(e,t,n,r,o){return jt().createElement(SR,{key:"perpetual-end-of-life",backgroundColor:"neutralMed",columns:[jt().createElement(nR,{textElements:[{children:sn(n,{product:r}),variant:"bodyPrimaryText"}]}),jt().createElement(Tw,{actionButtonProps:[{href:t,target:"_blank","aria-label":e,"data-bi-id":"".concat(o,".learnMore"),text:e}],contentType:"none"})],variant:"EightFour"})},XCe=function(e){return jt().createElement(SR,{key:"perpetual-error",columns:[jt().createElement(nR,{textElements:[{children:e,variant:"bodyPrimaryText",colorOverride:"error"}]})],variant:"Twelve"})},QCe=function(e){var t=e.allProductKeys,n=e.onInstall,r=e.onCopy,o=e.service,i=e.isEndOfLife,a=Xve().content.landing.perpetual,s="".concat(Bve().area,".perpetual"),l=[];t&&t.items&&(t.items.forEach((function(e,t){var i=e.displayKey===JCe.Suppress;l.push(jt().createElement(jCe,{key:"group-perpetual-list-item-".concat(t),productKey:e.key,date:e.date,productName:o.name,brandId:o.brandId,isKeyHidden:i,onInstall:function(){return n(o,e.licenseId)},onCopy:r}))})),i&&l.push(YCe(a.learnMoreCta,a.learnMoreUrl,a.endOfLifeText,o.name,s))),t.failed>0&&l.push(jt().createElement(SR,{key:"group-perpetual-partial-failed",columns:[jt().createElement(nR,{textElements:[{children:sn(a.partialFailedText,{failedCount:t.failed,total:t.total}),variant:"bodyPrimaryText",colorOverride:"error"}]})],variant:"Twelve"}));var c=jt().createElement($R,{isAlwaysExpanded:!0},l),u=jt().createElement($R,{isAlwaysExpanded:!0},XCe(a.failedText)),d=jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(zR,{key:"grouped-product-key-shimmer-1"}),jt().createElement(zR,{key:"grouped-product-key-shimmer-2"}),jt().createElement(zR,{key:"grouped-product-key-shimmer-3"}));return jt().createElement(dv,{operationData:{componentName:"grouped-product-key-list",operationName:"".concat(KCe,".").concat(o.id)},firstLoadView:d,finishedView:c,failedView:u})},ZCe=function(e){var t=e.service,n=e.productKey,r=e.onInstall,o=e.onCopy,i=e.isEndOfLife,a=Xve().content.landing.perpetual,s="".concat(Bve().area,".perpetual"),l=jt().createElement($R,{isAlwaysExpanded:!0},XCe(a.failedText)),c=jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(zR,{key:"grouped-product-key-shimmer-1"}));return jt().createElement(dv,{operationData:{componentName:"single-product-key-list",operationName:"".concat(qCe,".").concat(t.id)},firstLoadView:c,finishedView:function(){if(n){var e=n.displayKey===JCe.Suppress,l=[];return l.push(jt().createElement(jCe,{key:t.id,productKey:n.key,date:t.startDate,productName:t.name,brandId:t.brandId,isKeyHidden:e,onInstall:r,onCopy:o})),i&&l.push(YCe(a.learnMoreCta,a.learnMoreUrl,a.endOfLifeText,t.name,s)),jt().createElement($R,{isAlwaysExpanded:!0},l)}return jt().createElement(jt().Fragment,null)}(),failedView:l})},JCe={Include:"include",Suppress:"suppress"},$Ce=function(t){var n=t.perpetualServicesSummary,r=t.activeServices,o=t.isDrawerOpened,i=t.setIsDrawerOpened,a=Ua((0,Gt.useState)(new Map),2),s=a[0],l=a[1],c=Ua((0,Gt.useState)(new Map),2),u=c[0],d=c[1],p=Ua((0,Gt.useState)({}),2),h=p[0],m=p[1],f=(0,Gt.useRef)(null),g=EM(),v=mi(),y=Xve(),b=y.content.landing.perpetual,C=y.content.landing.strings,S=r.filter((function(e){return null!==e&&e.isPerpetual}));if(!n.length&&!S.length)return jt().createElement(jt().Fragment,null);var x="8px 0px",_=n.length||S.length>0,E=function(e,t){var n=km({},o);n[e]=t,i(n)},k=function(e,t){var n=km(km({},e),{},{licenseId:null!==t&&void 0!==t?t:e.licenseId});Uye(n),w()},w=function(){g.openDialog(jt().createElement(Gbe,null))},I=function(e){var t;m({message:e?b.copySuccessText:b.copyFailedText,ariaMessage:e?b.copySuccessText:b.copyFailedText,notificationBarType:e?"info":"error",iconName:e?"Completed":"Error",closeButton:{"data-bi-id":"copy-key-notification-bar-close","aria-label":y.content.common.closeButton}}),null===(t=f.current)||void 0===t||t.showNotificationBar()},P=function(e){var t={kind:"text",children:e.quantity>1?sn(b.multiCopiesText,{product:e.name,number:e.quantity}):e.name,nowrap:!1},n=xSe(e.brandLogo),r={text:b.installCta,"aria-label":y.content.landing.strings.installCtaAriaLabel.replace("{productName}",e.name),"data-bi-id":"".concat(e.brandId,"-list-perpetual-install"),onClick:function(){return k(e)},iconName:"Installation"},i=e.isSinglePerpetual?sn(b.addedOnDate,{date:vx(e.startDate)}):b.groupedKeysSubtitle,a=!o[e.id]&&e.isSinglePerpetual&&e.installDetails?[{column:jt().createElement(tw,{media:n,title:t,subtitleTextProps:{children:i}}),slots:9},{column:jt().createElement(ck,{actionButton:r,actionAlignment:"flex-end","aria-label":C.moreOptionsAriaLabel,"data-bi-id":"".concat(e.modelId,"-more-action")}),slots:3}]:[{column:jt().createElement(tw,{media:n,title:t,subtitleTextProps:{children:i}}),slots:12}];return jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:a})},T=function(t){v({name:"".concat(qCe,".").concat(t.id),status:"first-load"});var n=function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n=this;return(0,e.__generator)(this,(function(r){return[2,tl(m9,t,(function(){return(0,e.__awaiter)(n,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.GETPRODUCTKEY","product-key",{licenseId:t})];case 1:return[2,e.sent()]}}))}))}))]}))}))}(t.licenseId);n.then((function(e){var n=new Map(s);n.set(t.id,e),l(n),v({name:"".concat(qCe,".").concat(t.id),status:"finished"})})).catch((function(e){v({name:"".concat(qCe,".").concat(t.id),status:"failed",error:e})}))},D=function(t){v({name:"".concat(KCe,".").concat(t.id),status:"first-load"});var n=function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n=this;return(0,e.__generator)(this,(function(r){return[2,tl(f9,t,(function(){return(0,e.__awaiter)(n,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,O8("GLOBAL.SERVICES.GETALLPRODUCTKEYS","all-product-keys",{licenseId:t})];case 1:return[2,e.sent()]}}))}))}))]}))}))}(t.licenseId);n.then((function(e){var n=new Map(u);n.set(t.id,e),d(n),v({name:"".concat(KCe,".").concat(t.id),status:"finished"})})).catch((function(e){v({name:"".concat(KCe,".").concat(t.id),status:"failed",error:e})}))};return _?function(){var e=[];return n.length&&!S.length?n.forEach((function(t,n){e.push(function(e,t){return jt().createElement(bb,{key:"partial-perpetual-".concat(t),padding:x},jt().createElement(_R,{defaultExpanded:!0,shadow:!0,drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:[{column:jt().createElement(rw,{media:xSe(e.logo),title:{kind:"text",children:e.name}}),slots:12}]})},jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(SR,{columns:[jt().createElement(tR,{shimmerLineProps:[{width:500}]})],variant:"Twelve"}))))}(t,n))})):Ybe(n,S).forEach((function(t,n){t.isSinglePerpetual?e.push(function(e,t){return jt().createElement(bb,{key:"single-perpetual-".concat(t),padding:x},jt().createElement(_R,{onClickToClose:function(){return E(e.id,!1)},onClickToOpen:function(){E(e.id,!0),T(e)},drawerHeader:P(e),defaultExpanded:o[e.id],shadow:!0,buttonId:"".concat(e.modelId,"-single-perpetual-sub-id"),borderRadius:"8px"},jt().createElement(ZCe,{key:e.id,service:e,productKey:s.get(e.id)||{},onInstall:function(){return k(e)},onCopy:I,isEndOfLife:-1!==e.name.indexOf("2010")})))}(t,n)):t.isGroupPerpetual&&e.push(function(e,t){return jt().createElement(bb,{key:"grouped-perpetuals-".concat(t),padding:x},jt().createElement(_R,{onClickToClose:function(){return E(e.id,!1)},onClickToOpen:function(){E(e.id,!0),D(e)},drawerHeader:P(e),defaultExpanded:o[e.id],shadow:!0,buttonId:"".concat(e.modelId,"-grouped-perpetual-sub-id"),borderRadius:"8px"},jt().createElement(QCe,{key:e.id,allProductKeys:u.get(e.id)||{},onInstall:k,onCopy:I,service:e,isEndOfLife:-1!==e.name.indexOf("2010")})))}(t,n))})),jt().createElement(bb,{childrenGap:12},jt().createElement(nb,{tag:"h2",variant:"paneTitle",children:b.perpetualTitle}),e,jt().createElement(RQ,Object.assign({ref:f},h)))}():jt().createElement(jt().Fragment,null)},eSe=function(e){var t,n,r,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Xve().content.landing.premium,a=e.brandId===H7.XboxGamePassUltimate;switch(e.brandId){case H7.XboxGamePassUltimate:r=i.xgpultimateUpgradeTitle;break;case H7.XboxLive:r=zs(ube,!1)?i.xboxliveUpgradeTitleNew:i.xboxliveUpgradeTitle;break;case H7.XboxGamePass:r=i.xboxgamepassUpgradeTitle;break;case H7.PCGamePass:r=i.pcgamepassUpgradeTitle;break;case H7.EAAccess:r=i.eaaccessUpgradeTitle;break;default:r=i.xboxListItemUpgrade}return jt().createElement(SR,{key:"".concat(e.modelId,"-Upgrade"),variant:"EightFour",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:a?"Family":"XboxLogo"},size:o?"md":"sm"},subtitles:[],title:r,titleTextVariant:o?"bodyPrimaryText":"bodySecondaryText"}),jt().createElement(Tw,{actionButtonProps:[{onClick:function(){var t;return window.open(null===(t=e.upgradeConfig)||void 0===t?void 0:t.url,"_blank")},"aria-label":i.upgradeToCta.replace("{{product}}",null===(t=e.upgradeConfig)||void 0===t?void 0:t.product),"data-bi-id":"".concat(e.brandId,"-list-upgrade"),text:i.upgradeToCta.replace("{{product}}",null===(n=e.upgradeConfig)||void 0===n?void 0:n.product)}],contentType:"none",columnAlign:"end"})]})},tSe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Xve().content.landing.premium,r="".concat(e.modelId,t?"-landing-ar-off-inactivity":"-billing-ar-off-inactivity");return jt().createElement(SR,{key:r,variant:"Twelve",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Info"},size:t?"md":"sm"},titleTextVariant:t?"bodyPrimaryText":"bodySecondaryText",title:n.xboxRbOffDueToInactivity})]})},nSe=function(e,t,n,r){var o=Xve(),i=o.content.landing.premium,a=o.content.landing.feedItems,s=o.content.landing.strings,l=e.brandId.charAt(0).toLowerCase()+e.brandId.slice(1),c=null;!e.isXboxBrandId&&a[l]&&(c=Object.entries(a[l]).map((function(e){var t=Ua(e,2),n=t[0],r=t[1];return jt().createElement(SR,{key:n,variant:"EightFour",columns:[jt().createElement(iR,{listItemMediaProps:{size:"md",image:{imageType:"icon",iconName:r.iconName}},title:r.message,titleTextVariant:"bodyPrimaryText"}),jt().createElement(Tw,{actionButtonProps:[{href:r.link.url,"aria-label":r.link.ariaLabel||r.link.text,"data-bi-id":r.link.id,text:r.link.text,target:"_blank"}],contentType:"none"})]})})));var u,d=c,p=e.isXboxBrandId||e.brandId===H7.EAAccess;if(t)d=function(e){var t,n,r=Xve().content.landing.feedItems,o=Xve().content.landing.premium,i=Xve().content.landing.strings,a=Bve(),s=qo(),l=null===(t=e.sharingDetails)||void 0===t?void 0:t.isGuest,c=e.isHomeSKU,u=function(){s.push("/".concat(e.modelId,"/upgrade?fref=billing-upgrade"))};n=l?o.m365ListItemInstallFamilyGuest:c?o.m365ListItemInstallFamilyAdmin:o.m365ListItemInstallPersonal;var d=jt().createElement(SR,{key:"m365Install","aria-label":n,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"image",src:o.m365ListItemInstallIcon},size:"sm"},title:n}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){return s.push("".concat(e.modelId,"/details?openInstall=true#install"))},"aria-label":n,"data-bi-id":"OFFICE"===e.brandId.toUpperCase()?"".concat(Kbe,"-list-install"):"".concat(e.brandId,"-list-install"),pageArea:a.area},variant:"EightFour"}),p=c?o.m365ListItemDetailsFamily:o.m365ListItemDetailsPersonal,h=jt().createElement(SR,{key:"m365Details","aria-label":p,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Diamond"},size:"md"},title:p}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){return s.push("".concat(e.modelId,"/details#overview"))},"aria-label":p,"data-bi-id":"OFFICE"===e.brandId.toUpperCase()?"".concat(Kbe,"-overview"):"".concat(e.brandId,"-overview"),pageArea:a.area},variant:"EightFour"});if(l)return[d,h];if(c){if(e.sharingDetails){var m,f,g=e.sharingDetails.availableSlots>1?o.m365ListItemShareFamilyAdmin.replace("{n}",null===(m=e.sharingDetails.availableSlots)||void 0===m?void 0:m.toString()):o.m365ListItemShareFamilyAdminSingular.replace("{n}",null===(f=e.sharingDetails.availableSlots)||void 0===f?void 0:f.toString());return[d,jt().createElement(SR,{key:"m365Share","aria-label":g,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"image",src:o.m365ListItemShareIcon},size:"sm"},title:g}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){return s.push("".concat(e.modelId,"/details?startSharing=true#sharing"))},"aria-label":g,"data-bi-id":"OFFICE"===e.brandId.toUpperCase()?"".concat(Kbe,"-sharing"):"".concat(e.brandId,"-sharing"),pageArea:a.area},variant:"EightFour"}),h]}return[d,h]}if(e.isM365BasicSku){var v,y,b,C=Object.entries(r.oneDrive).map((function(e){var t=Ua(e,2),n=t[0],r=t[1];return jt().createElement(SR,{key:n,variant:"EightFour",columns:[jt().createElement(iR,{listItemMediaProps:{size:"md",image:{imageType:"icon",iconName:r.iconName}},title:r.message,titleTextVariant:"bodyPrimaryText"}),jt().createElement(Tw,{actionButtonProps:[{href:r.link.url,"aria-label":r.link.ariaLabel||r.link.text,"data-bi-id":r.link.id,text:r.link.text,target:"_blank"}],contentType:"none"})]})}));return e.upgradeFlow===h7&&C.push(jt().createElement(SR,{key:"OneDriveUpgrade",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Diamond"},size:"md"},title:i.upgradeToM365.replace("{{product}}",null===(v=e.upgradeConfig)||void 0===v?void 0:v.product)}),jt().createElement(Tw,{actionButtonProps:[{onClick:u,"aria-label":o.upgradeToCta.replace("{{product}}",null===(y=e.upgradeConfig)||void 0===y?void 0:y.product),"data-bi-id":"".concat(e.brandId,"-list-upgrade"),text:o.upgradeToCta.replace("{{product}}",null===(b=e.upgradeConfig)||void 0===b?void 0:b.product)}],contentType:"none"})],variant:"EightFour"})),C}var S,x=o.upgradeToCta.replace("{{product}}",null===(S=e.upgradeConfig)||void 0===S?void 0:S.product),_=jt().createElement(SR,{key:"m365Upgrade","aria-label":o.m365ListItemUpgrade+x,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Diamond"},size:"md"},title:o.m365ListItemUpgrade}),jt().createElement(Tw,{actionButtonProps:[{onClick:u,"aria-label":x,"data-bi-id":"".concat(e.brandId,"-list-upgrade"),text:x}],contentType:"none"})],variant:"EightFour"});return e.upgradeFlow!==h7||e.isRUMarketUnsupported?[d,h]:[d,h,_]}(e);else if(p){var h,m=null!==(h=c)&&void 0!==h?h:[];d=function(e,t){var n,r,o=Xve().content.landing.premium,i=Xve().content.landing.feedItems,a=Bve(),s=[],l=e.brandId.slice(0,2).toLowerCase()+e.brandId.slice(2);if(e.isXboxFamily&&(null===(n=e.sharingDetails)||void 0===n||!n.isGuest)&&(null===(r=e.sharingDetails)||void 0===r||!r.isSuspended)){var c,u,d,p,h;if((null===(c=e.sharingDetails)||void 0===c?void 0:c.availableSlots)===(null===(u=e.sharingDetails)||void 0===u?void 0:u.totalSlots))d=o.shareFeeditemColdstart.replace("{n}",null===(p=e.sharingDetails)||void 0===p||null===(h=p.totalSlots)||void 0===h?void 0:h.toString());else if(e.sharingDetails.availableSlots>1){var m,f;d=o.shareFeeditemPlural.replace("{n}",null===(m=e.sharingDetails.totalSlots)||void 0===m?void 0:m.toString()).replace("{count}",null===(f=e.sharingDetails.availableSlots)||void 0===f?void 0:f.toString())}else{var g,v;d=o.shareFeeditemSingular.replace("{n}",null===(g=e.sharingDetails.totalSlots)||void 0===g?void 0:g.toString()).replace("{count}",null===(v=e.sharingDetails.availableSlots)||void 0===v?void 0:v.toString())}var y=jt().createElement(SR,{key:"".concat(e.modelId,"-SharingLeft"),"aria-label":d,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Family"},size:"md"},title:d}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],variant:"EightFour",onClickProps:{"aria-label":d,"data-bi-id":"xgpu-sharing-feeditem",onClick:function(){return t.push("/".concat(e.modelId,"/details?startSharing=true#sharing"))},pageArea:"billing"}});s.push(y)}if(i[l]){var b=e.brandId!==H7.XboxGamePassUltimate&&e.brandId!==H7.XboxLive||!zs(ube,!1)?i[l].feedItem1:i[l].feedItem2,C=jt().createElement(SR,{key:"".concat(e.modelId,"-Benefits"),"aria-label":b.message,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:b.iconName},size:"md"},subtitles:[],title:b.message}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],variant:"EightFour",onClickProps:{"aria-label":b.message,"data-bi-id":b.link.id,onClick:function(){return window.open(b.link.url,"_blank")},pageArea:a.area}});s.push(C)}var S=e.brandId===H7.XboxGamePassUltimate,x=S&&!e.isXboxFamily&&zs("SvcXboxFamily")&&!e.isXaa,_=Xve().content.common.nonUpgradableBrandIds.includes(e.brandId),E=Xve().content.common.nonUpgradableMarket.includes(e.market),k=(e.isXboxBrandId||e.brandId===H7.EAAccess)&&!(E&&_);if((!S||x)&&e.upgradeFlow!==p7&&!e.isRUMarketUnsupported&&k){var w=eSe(e);s.push(w)}if(S&&!e.isXboxFamily&&zs("SvcXboxFamily")&&e.isXaa){var I,P=jt().createElement(SR,{key:"".concat(e.modelId,"-Upgrade"),variant:"Twelve",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Info"},size:"md"},title:o.xboxFamilyUpgradePreventMessageXaa.replaceAll("{{product}}",null===(I=e.upgradeConfig)||void 0===I?void 0:I.product)})]});s.push(P)}if(e.isXboxBrandId&&e.isAutoRenewOffDueToInactivity){var T=tSe(e);s.push(T)}return s}(e,r).concat(m)}else if(e.isM365BasicSku&&e.upgradeFlow===h7){var f,g,v,y;null===(f=d)||void 0===f||f.push(jt().createElement(SR,{key:"OneDriveUpgrade",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Diamond"},size:"md"},title:s.upgradeToM365.replace("{{product}}",null===(g=e.upgradeConfig)||void 0===g?void 0:g.product)}),jt().createElement(Tw,{actionButtonProps:[{onClick:function(){r.push("/".concat(e.modelId,"/upgrade?fref=billing-upgrade"))},"aria-label":i.upgradeToCta.replace("{{product}}",null===(v=e.upgradeConfig)||void 0===v?void 0:v.product),"data-bi-id":"".concat(e.brandId,"-list-upgrade"),text:i.upgradeToCta.replace("{{product}}",null===(y=e.upgradeConfig)||void 0===y?void 0:y.product)}],contentType:"none"})],variant:"EightFour"}))}n||(null===(u=d)||void 0===u||u.push(jt().createElement(SR,{key:"list-billing-help",backgroundColor:"neutralMed",columns:[jt().createElement(jA,{label:i.m365ListItemFooterTitle,links:[{href:i.m365ListItemFooterUrl,"data-bi-id":"".concat(e.brandId,"-billing-help"),"aria-label":i.m365ListItemFooterCta,children:i.m365ListItemFooterCta,target:"_blank"}]})],variant:"Twelve"})));return jt().createElement($R,Object.assign({key:e.modelId},{listItemBackgroundColor:"neutralMed",isAlwaysExpanded:!0}),d)},rSe=function(e){var t=Xve().content.manage;return Kt(t.recurringBillingMessageList,e)},oSe=function(e,t,n){var r=Xve().content.manage;if(!t)return"";if(n){if(1!==t){var o;switch(e){case b7:o=r.rbEveryHourPluralLowercase;break;case C7:o=r.rbEveryDayPluralLowercase;break;case S7:o=r.rbEveryWeekPluralLowercase;break;case x7:o=r.rbEveryMonthPluralLowercase;break;case _7:o=r.rbEveryYearPluralLowercase;break;default:o=""}return o.replace("{cycleLength}",t.toString())}switch(e){case b7:return r.rbEveryHourSingularLowercase;case C7:return r.rbEveryDaySingularLowercase;case S7:return r.rbEveryWeekSingularLowercase;case x7:return r.rbEveryMonthSingularLowercase;case _7:return r.rbEveryYearSingularLowercase;default:return""}}else{if(1!==t){var i;switch(e){case b7:i=r.rbEveryHourPlural;break;case C7:i=r.rbEveryDayPlural;break;case S7:i=r.rbEveryWeekPlural;break;case x7:i=r.rbEveryMonthPlural;break;case _7:i=r.rbEveryYearPlural;break;default:i=""}return i.replace("{cycleLength}",t.toString())}switch(e){case b7:return r.rbEveryHourSingular;case C7:return r.rbEveryDaySingular;case S7:return r.rbEveryWeekSingular;case x7:return r.rbEveryMonthSingular;case _7:return r.rbEveryYearSingular;default:return""}}},iSe=function(e){var t,n,r,o=Xve(),i=o.content.landing.premium,a=e.isM365BrandId&&(null===(t=e.sharingDetails)||void 0===t?void 0:t.isGuest)||e.isXboxFamily&&(null===(n=e.sharingDetails)||void 0===n?void 0:n.isGuest),s=Z9(e);if(a){var l;if(e.sharingDetails)r=i.subtitleM365Guest.replace("{adminName}",null===(l=e.sharingDetails.admin)||void 0===l?void 0:l.name)}else{var c=e.payment?c8(e.payment,o.content.commonCommerce.common.piList):"";switch(e.billingState){case t7.InDunning:s?r=sn(i.subtitleXboxDowngradeDunning,{newSub:e.renewalRecurrence.productName?e.renewalRecurrence.productName:i.chosenSubscription}):e.pastDueBalance&&(r=(null!==e&&void 0!==e&&e.isXboxFamily?i.subtitleDunningXbox:i.subtitleDunning).replace("{totalPastDueAmount}",e.pastDueBalance.total).replace("{card}",c));break;case t7.ActiveAutoRenewOff:e.endDate&&(r=(r=Kt(i.subtitleRbOffList,e.market)).replace("{endDate}",gx(e.endDate)));break;case t7.Expired:var u;if(e.lastCharge)r=o.content.manage.lastChargeSubtitle.replace("{amount}",null===(u=e.lastCharge)||void 0===u?void 0:u.amount).replace("{lastChargeDate}",gx(e.lastCharge.date));break;case t7.PartnerBilled:e.partnerBilling&&(r=i.subtitlePartner.replace("{partnerName}",e.partnerBilling.partnerName));break;default:if(s&&e.autorenews)r=sn(i.subtitleXboxDowngradePending,{endDate:gx(e.renewalRecurrence.nextRenewalCharge.chargeDate),newSub:e.renewalRecurrence.productName?e.renewalRecurrence.productName:i.chosenSubscription});else if(J9(e)&&e.autorenews){var d;r=sn(Kt(i.subtitleRbOnList,null===(d=e.renewalRecurrence.nextRenewalCharge)||void 0===d?void 0:d.taxType),{nextChargeDate:gx(e.renewalRecurrence.nextRenewalCharge.chargeDate),recurrencePrice:e.renewalRecurrence.amountFormatted})}else e.nextCharge&&e.productRenewal&&(r=sn(Kt(i.subtitleRbOnList,e.productRenewal.taxType),{nextChargeDate:gx(e.nextCharge.date),recurrencePrice:e.productRenewal.amountFormatted}))}}return r},aSe=function(e,t,n){var r,o,i,a;if(!e)throw new Error("Service details not found");var s=Bve(),l=Ua(bre(s.area),2),c=l[0],u=l[1];Qt(Zve(fve().mark((function t(){return fve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:$be(e)&&c(e,"BillingInfoSection");case 1:case"end":return t.stop()}}),t)}))));var d=EM(),p=Xve().content,h=qo(),m=p.commonCommerce,f=p.commonCommerce,g=f.turnOnRB,v=f.common,y=f.changePayment,b=f.renewPath,C=p.manage,S=p.landing.premium,x=p.landing.strings,_=ny(),E=["s","m","l"].includes(_),k=function(e){return E?"start":e?"center":"baseline"},w={pidlEnvironment:s.pidlEnvironment,area:s.area,language:s.language,userEmail:s.userEmail},I={pidlEnvironment:s.pidlEnvironment,area:s.area,browserLanguage:s.language},P={pidlEnvironment:s.pidlEnvironment,area:s.area,language:s.language},T=Jte({service:e,areaConfig:I,cmsContent:m,dialogController:d,onServiceUpdate:n}),D=Jte({service:e,areaConfig:I,cmsContent:m,dialogController:d,isChangePaymentBackup:!0,onServiceUpdate:n}),A=e.endDate?vx(e.endDate):null,R="".concat(e.brandId,t?"-list-expires-aron":"-billing-aron"),N="/".concat(e.modelId,t?"/renew?fref=list-expires-aron":"/renew?fref=billing-aron"),M=Kt(C.turnOnRecurringBillingList,e.market),F=Kt(x.turnOnAutoRenewCtaAriaLabel,e.market).replace("{subscriptionName}",e.name),B=function(t,r){jne(e)?ore({service:e,turnOnRBCmsContent:g,commonResource:v,changePaymentCmsContent:y,renewPathContent:b,renewAreaConfig:P,dialogController:d,triggerBIId:r,onServiceUpdate:n,isScenarioStep:!1}):h.push(t)},O=jt().createElement(bb,{childrenGap:14,padding:"9px 12px"},jt().createElement(Ib,null,C.subscriptionExpiresTitle),jt().createElement(bb,{horizontal:!E,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:k()},jt().createElement(Ib,{variant:"pageHeader"},A)),e.canEnableAutoRenew?jt().createElement(Cb,{align:k()},jt().createElement(rx,{"aria-label":F,"data-bi-id":R,onClick:function(){B(N,R)}},M)):jt().createElement(jt().Fragment,null))),L="".concat(e.purchaseLink,"&fref=billing-resubscribe");nCe(e)&&(L=dn(L,"ocid","cmmh7c8d868"));var H,V=jt().createElement(nx,{"aria-label":x.resubscribeCtaAriaLabel.replace("{subscriptionName}",e.name),"data-bi-id":"".concat(e.brandId,"-billing-resubscribe"),href:L,target:"_blank"},C.resubscribeCta),z=jt().createElement(rx,{onClick:function(){u(e,e.purchaseLink,iCe)},"aria-label":x.resubscribeCtaAriaLabel.replace("{subscriptionName}",e.name),"data-bi-id":"".concat(e.brandId,"-billing-resubscribe")},C.resubscribeCta),U=jt().createElement(bb,{childrenGap:14,padding:"9px 12px"},jt().createElement(Ib,null,C.subscriptionExpiredTitle),jt().createElement(bb,{horizontal:!E,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:k()},jt().createElement(Ib,{variant:"pageHeader"},A)),e.purchaseLink&&jt().createElement(Cb,{align:k()},$be(e)?z:V))),W=null!==(r=e.lastCharge)&&void 0!==r&&r.date?vx(e.lastCharge.date):null,G=jt().createElement(bb,{childrenGap:30,padding:"9px 12px"},jt().createElement(Ib,null,C.lastChargeTitle),jt().createElement(ox,{nowrap:!1,textWithTokens:C.lastChargeInfo,tokensAndValues:{price:jt().createElement(Ib,{weightOverride:"bold"},null===(o=e.lastCharge)||void 0===o?void 0:o.amount),date:jt().createElement(Ib,null,W)}})),j=Z9(e)||J9(e),q=e.billingState===t7.InDunning,K=!q&&!j&&e.isSwitchPlanEligible&&!e.isRUMarketUnsupported;H=e.billingState===t7.PartnerBilled?S.recurringBillingTitlePartner.replace("{partnerName}",e.partnerBilling.partnerName):e.billingState===t7.InDunning&&j?sn(S.recurringBillingTitleXboxDowngradeDunning,{newSub:e.renewalRecurrence.productName?e.renewalRecurrence.productName:S.chosenSubscriptionFirstWord}):e.autorenews&&j?sn(S.recurringBillingTitleXboxDowngradePending,{newSub:e.renewalRecurrence.productName?e.renewalRecurrence.productName:S.chosenSubscription}):Kt(S.recurringBillingTitleRbOnList,e.market,"default");var Y,X,Q,Z,J,$="pageHeader",ee="",te="";t?te=oSe(null===(Y=e.productRenewal)||void 0===Y?void 0:Y.cycleUnit,null===(X=e.productRenewal)||void 0===X?void 0:X.cycleLength):($="bodySecondaryText",ee="16px 0px",te=oSe(null===(Q=e.productRenewal)||void 0===Q?void 0:Q.cycleUnit,null===(Z=e.productRenewal)||void 0===Z?void 0:Z.cycleLength,!0));if(j&&(e.autorenews||q)){var ne,re,oe=Kt(S.recurringBillingMessageXboxDowngradeList,null===(ne=e.renewalRecurrence.nextRenewalCharge)||void 0===ne?void 0:ne.taxType),ie=q?null===(re=e.pastDueBalance)||void 0===re?void 0:re.total:e.renewalRecurrence.amountFormatted,ae=vx(q?e.endDate:e.renewalRecurrence.nextRenewalCharge.chargeDate);J={textWithTokens:oe,tokensAndValues:{price:jt().createElement(Ib,{variant:$},ie),endDate:jt().createElement(Ib,{variant:"bodySecondaryText"},ae)}}}else{var se,le;J={textWithTokens:rSe(null===(se=e.productRenewal)||void 0===se?void 0:se.taxType),tokensAndValues:{price:jt().createElement(Ib,{variant:$},null===(le=e.productRenewal)||void 0===le?void 0:le.amountFormatted),duration:jt().createElement(Ib,{variant:"bodySecondaryText"},te)}}}var ce,ue,de="".concat(e.brandId,"-billing-switchplan"),pe=jt().createElement(bb,{childrenGap:14,padding:"9px 12px"},jt().createElement(Ib,{colorOverride:j&&q?"error":void 0},H),jt().createElement(bb,{horizontal:!E,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:k(),padding:ee},jt().createElement(ox,Object.assign({nowrap:!1,variant:"bodySecondaryText"},J))),!t&&K?jt().createElement(Cb,{align:k()},jt().createElement(rx,{"aria-label":C.switchBillingPlan,"data-bi-id":de,onClick:function(){B("/".concat(e.modelId,"/renew?fref=billing-switchplan"),de)}},C.switchPlanCta)):jt().createElement(jt().Fragment,null))),he=t?"landing":"billing",me=e.billingState===t7.ExpiredPrimaryPI,fe=e.billingState===t7.LowCsvSupportBackup||e.billingState===t7.LowCsvExpiringBackup,ge=e.billingState===t7.LowCsvExpiredBackup,ve=fe?C.lowBalanceUseBackup:ge?C.lowBalance:null,ye=jt().createElement(fk,{calloutTrigger:"IconButton",calloutTriggerProps:{iconName:"Info",iconColor:"errorIcon","aria-label":C.lowBalanceUseBackup,"data-bi-id":"".concat(e.brandId,"-").concat(he,"-csv-low-balance-callout")},calloutPosition:"top-auto"},ve),be=jt().createElement(fk,{calloutTrigger:"IconButton",calloutTriggerProps:{iconName:"Info",iconColor:"errorIcon","aria-label":C.paymentExpiredMessage,"data-bi-id":"".concat(e.brandId,"-").concat(he,"-payment-expired-callout")},calloutPosition:"top-auto"},C.paymentExpiredMessage),Ce={imageType:"icon",iconName:"PaymentCard"};if(q){var Se="".concat(e.brandId,t?"-list-alert-paynow":"-billing-paynow");ce=jt().createElement(bb,{horizontal:!0,childrenGap:6},jt().createElement(Hy,{color:"errorIcon",iconName:"Info"}),jt().createElement(rx,{onClick:(ue=Se,Dte(e,m,w,ue,d,n)),"aria-label":x.payNowCtaAriaLabel.replace("{subscriptionName}",e.name),"data-bi-id":Se},C.payNowCta))}else if(me){var xe="".concat(e.brandId,t?"-list-alert-fixpi":"-billing-fixpi");ce=jt().createElement(rx,{onClick:T,"aria-label":C.fixHowYouPay,"data-bi-id":xe},C.fixHowYouPay)}else{var _e="".concat(e.brandId,t?"-list-change-primary-pi":"-billing-change-primary-pi");ce=jt().createElement(rx,{onClick:T,"aria-label":x.changeCtaAriaLabel,"data-bi-id":_e},S.paymentMethodCta)}var Ee,ke=e.payment&&e.payment.id&&e.payment.name,we=jt().createElement(bb,{childrenGap:10,padding:"0 12px"},jt().createElement(bb,{horizontal:!0},jt().createElement(Cb,{padding:"9px 0"},jt().createElement(Ib,null,S.paymentMethodTitle)),jt().createElement(Cb,{padding:"3px 0"},fe||ge?ye:jt().createElement(jt().Fragment,null),me?be:jt().createElement(jt().Fragment,null))),jt().createElement(bb,{horizontal:!E,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:k(!0)},jt().createElement(jk,{size:"md",image:Ce,padding:"0px",height:"40px"},jt().createElement(Ib,{weightOverride:"semi-bold",colorOverride:me?"error":void 0},e.payment?c8(e.payment,m.common.piList):""))),jt().createElement(Cb,{align:k(!0)},ce))),Ie=e.backupPayment&&e.backupPayment.id&&e.backupPayment.name,Pe="".concat(e.brandId,t?"-list-change-backup-pi":"-billing-change-backup-pi");if(null!==(i=e.backupPayment)&&void 0!==i&&i.valid)Ee=jt().createElement(rx,{onClick:D,"aria-label":x.changeCtaAriaLabel,"data-bi-id":Pe},S.paymentMethodCta);else{var Te="".concat(e.brandId,t?"-list-alert-fix-backup-pi":"-billing-fix-backup-pi");Ee=jt().createElement(bb,{horizontal:!0,childrenGap:6},jt().createElement(Hy,{color:"errorIcon",iconName:"Info"}),jt().createElement(rx,{onClick:D,"aria-label":C.fixHowYouPay,"data-bi-id":Te},C.fixHowYouPay))}var De=jt().createElement(bb,{childrenGap:27,padding:"9px 12px"},jt().createElement(Ib,null,C.backupPaymentOption),jt().createElement(bb,{horizontal:!E,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:k(!0)},jt().createElement(jk,{size:"md",image:Ce,padding:"0px",height:"24px"},jt().createElement(Ib,{weightOverride:"semi-bold",colorOverride:null!==(a=e.backupPayment)&&void 0!==a&&a.valid?void 0:"error"},e.backupPayment?c8(e.backupPayment,m.common.piList):""))),q?jt().createElement(jt().Fragment,null):jt().createElement(Cb,{align:k(!0)},Ee))),Ae=e.payment&&e.payment.supportsBackupPayment,Re=jt().createElement(bb,{childrenGap:30,padding:"9px 12px"},jt().createElement(Cb,null,jt().createElement(Ib,null,C.backupPaymentOption)),jt().createElement(Cb,null,jt().createElement(rx,{onClick:D,"aria-label":C.addBackupPayment,"data-bi-id":Pe},C.addBackupPayment))),Ne=null,Me=null,Fe=null;return e.billingState===t7.PartnerBilled?Ne=pe:e.billingState===t7.Expired?(Ne=U,Me=e.lastCharge?G:null):e.billingState===t7.ActiveAutoRenewOff?(Ne=O,Me=e.lastCharge?G:null):(Ne=pe,ke?(Me=we,Ie&&(Fe=De),!Ae||q||Ie||(Fe=Re)):e.lastCharge&&(Me=G)),[Ne,Me,Fe]},sSe=function(e){var t=e.service,n=e.isLandingPremiumSub,r=void 0!==n&&n,o=e.onServiceUpdate;return aSe(t,r,o)[0]},lSe=function(e){var t=e.service,n=e.isLandingPremiumSub,r=void 0!==n&&n,o=e.onServiceUpdate;return aSe(t,r,o)[1]},cSe=function(e){var t=e.service,n=e.isLandingPremiumSub,r=void 0!==n&&n,o=e.onServiceUpdate;return aSe(t,r,o)[2]},uSe=function(e){var t,n,r=e.service,o=e.isDrawerOpened,i=e.setIsDrawerOpened,a=e.onServiceUpdate;if(!r)throw new Error("Service details not found");var s=qo(),l=r.isM365BrandId,c=l&&(null===(t=r.sharingDetails)||void 0===t?void 0:t.isGuest)||r.isXboxFamily&&(null===(n=r.sharingDetails)||void 0===n?void 0:n.isGuest),u=function(e,t,n,r){var o,i=Xve(),a=i.content.landing.premium,s=i.content.landing.strings,l=qo(),c=e.name,u=iSe(e),d=[{column:jt().createElement(tw,{media:xSe(e.brandLogo),title:{kind:"text",children:c,nowrap:!1},subtitleTextProps:{children:u,colorOverride:e.billingState===t7.InDunning?"error":void 0}}),slots:9},{column:jt().createElement(ck,{actionButton:{"aria-label":s.manageCtaAriaLabel,"data-bi-id":"OFFICE"===e.brandId.toUpperCase()?"".concat(Kbe,"-billing"):"".concat(e.brandId,"-billing"),text:a.recurringBillingCta,onClick:function(){e.billingState===t7.PartnerBilled?window.open(e.partnerBilling.billingAccountLink,"_blank"):e.externallyManagedLink?window.open(e.externallyManagedLink,"_blank"):l.push(t||null!==e&&void 0!==e&&e.isXboxFamily?"".concat(e.modelId,"/details#sharing"):"".concat(e.modelId,"/details#billing"))}},"aria-label":s.moreOptionsAriaLabel,"data-bi-id":"".concat(e.modelId,"-more-action"),actionAlignment:"flex-end"}),slots:3}];return{onClickToClose:function(){return r(e.id,!1)},onClickToOpen:function(){return r(e.id,!0)},defaultExpanded:null!==(o=n[e.id])&&void 0!==o?o:e.isM365BrandId||e.isXboxBrandId||e.billingState===t7.InDunning,buttonId:"".concat(e.modelId,"-sub-id"),drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:d})}}(r,c,o,i),d=c||r.partnerBilling||r.externallyManagedLink?null:function(e,t){return jt().createElement(WO,{backgroundColor:"neutralHigh",firstSegment:jt().createElement(sSe,{service:e,isLandingPremiumSub:!0,onServiceUpdate:t}),secondSegment:jt().createElement(lSe,{service:e,isLandingPremiumSub:!0,onServiceUpdate:t}),thirdSegment:jt().createElement(cSe,{service:e,isLandingPremiumSub:!0,onServiceUpdate:t}),variant:"FourFourFour"})}(r,a),p=nSe(r,l,c,s);return jt().createElement(iL,{drawerAreaProps:u,highlightArea:d,detailsArea:p})},dSe=function(e){var t,n,r=e.summary,o=e.setIsDrawerOpened;if(!r)throw new Error("Service summary details not found");var i=null===(t=r.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OFFICE"),a=null===(n=r.brandId)||void 0===n?void 0:n.toUpperCase().startsWith("XBOX"),s={onClickToClose:function(){return o(r.id,!1)},onClickToOpen:function(){return o(r.id,!0)},defaultExpanded:i||a,drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:[{column:jt().createElement(rw,{media:xSe(r.logo),title:{kind:"text",children:r.name}}),slots:12}]})},l=jt().createElement(bb,{horizontal:!1,childrenGap:18,padding:"25px 55px"},jt().createElement(nw,{width:120,height:8}),jt().createElement(nw,{width:206,height:18})),c=jt().createElement(qO,{backgroundColor:"neutralHigh",firstSegment:l,secondSegment:l,variant:"SixSix"}),u=jt().createElement($R,Object.assign({},{shadow:!0,listItemBackgroundColor:"neutralMed",isAlwaysExpanded:!0,roundedCorners:!0},{borderRadius:"0px"}),jt().createElement(zR,null),jt().createElement(zR,null));return jt().createElement(iL,{drawerAreaProps:s,highlightArea:c,detailsArea:u})},pSe=function(e){var t=e.premiumServicesSummary,n=e.premiumServices,r=e.isDrawerOpened,o=e.setIsDrawerOpened,i=e.onServiceUpdate,a=(null===t||void 0===t?void 0:t.length)&&!n;Qt((function(){if(!a){var e=km({},r),t=!1;null===n||void 0===n||n.forEach((function(n){-1===Object.keys(e).indexOf(n.id)&&(t=!0,e[n.id]=n.isM365BrandId||n.isXboxBrandId||n.billingState===t7.InDunning)})),t&&o(e)}}));var s=function(e,t){var n=km({},r);n[e]=t,o(n)},l=null===n||void 0===n?void 0:n.filter((function(e){return!e.isPerpetual&&!e.isFree}));return a?jt().createElement(bb,{childrenGap:"16px"},t.map((function(e){return jt().createElement(dSe,{key:e.id,summary:e,isDrawerOpened:r,setIsDrawerOpened:s})}))):null!==l&&void 0!==l&&l.length?jt().createElement(bb,{childrenGap:"16px"},Ybe(t,l).map((function(e){return jt().createElement(uSe,{key:e.id,service:e,isDrawerOpened:r,setIsDrawerOpened:s,onServiceUpdate:i})}))):jt().createElement(jt().Fragment,null)},hSe=function(e){var t=e.allServicesSummary,n=e.allServices,r=Xve().content.landing.upsell,o=!1,i=!1,a=!1,s=!1;if(t.length?(o=t.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OFFICE")})),i=t.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("ONEDRIVE")})),a=t.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("SKYPE")})),s=t.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OUTLOOK")}))):(o=n.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OFFICE")})),i=n.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("ONEDRIVE")})),a=n.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("SKYPE")})),s=n.some((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OUTLOOK")}))),o)return jt().createElement(jt().Fragment,null);var l=jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneHeader",children:r.freeServicesTitle}),jt().createElement(Ib,{variant:"bodyPrimaryText",children:r.freeServicesSubtitle})),c=jt().createElement(X4,{ctaProps:{text:r.officeWebCta,"data-bi-id":"OfficeOnline_Upsells_Use","aria-label":r.officeWebCta,onClick:function(){window.open(r.officeWebCtaUrl,"_blank")}},detailsProps:{heading:r.officeWebTitle,text:r.officeWebText},graphicProps:{graphicType:"image",alt:r.officeWebTitle,src:r.officeWebImage}}),u=jt().createElement(X4,{ctaProps:{text:r.onedriveCta,"data-bi-id":"OneDrive_Upsells_Use","aria-label":r.onedriveCta,onClick:function(){window.open(r.onedriveCtaUrl,"_blank")}},detailsProps:{heading:r.onedriveTitle,text:r.onedriveText},graphicProps:{graphicType:"image",alt:r.onedriveTitle,src:r.onedriveImage}}),d=jt().createElement(X4,{ctaProps:{text:r.skypeCta,"data-bi-id":"Skype_Upsells_Use","aria-label":r.skypeCta,onClick:function(){window.open(r.skypeCtaUrl,"_blank")}},detailsProps:{heading:r.skypeTitle,text:r.skypeText},graphicProps:{graphicType:"image",alt:r.skypeTitle,src:r.skypeImage}}),p=jt().createElement(X4,{ctaProps:{text:r.outlookCta,"data-bi-id":"Outlook_Upsells_Use","aria-label":r.outlookCta,onClick:function(){window.open(r.outlookCtaUrl,"_blank")}},detailsProps:{heading:r.outlookTitle,text:r.outlookText},graphicProps:{graphicType:"image",alt:r.outlookTitle,src:r.outlookImage}}),h=[c];return i||(h=h.concat(u)),a||(h=h.concat(d)),s||(h=h.concat(p)),jt().createElement(bb,{childrenGap:12},l,jt().createElement(WP,null,h))},mSe=zs("HomeIrisCMMIDs"),fSe="m365-upsell-operation",gSe=function(e){var t,n,r=e.allServicesSummary,o=e.allServices,i=Xve().content.landing.upsell,a=r.length?r.find((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OFFICE")})):o.find((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("OFFICE")})),s=Bve(),l="".concat(s.area,".landing.iris.m365upsell"),c=mi(),u="m365-upsell",d=Ua((0,Gt.useState)(),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)(),2),f=m[0],g=m[1],v=Ua(ure(),2),y=v[0],b=v[1],C="acquisitionsubsod",S="cmm22r5ck2o",x=i.m365CtaPrimaryUrlOD,_=!a&&(n=s.countryCode,!d8.includes((null===n||void 0===n?void 0:n.toUpperCase())||""))&&!f8(s.countryCode);Qt(Zve(fve().mark((function e(){var t,n,r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(yre(y,[C],u),!_){e.next=14;break}return e.prev=2,c({name:fSe,status:"updating"}),e.next=6,NCe("services.landing.m365acquisition");case 6:(t=e.sent)&&(n={linkAriaLabel:t.model.ad.listLinkAriaLabel,linkText:t.model.ad.listLinkText,linkUrl:t.model.ad.listLinkUrl},g(n),r=sne(t,l,{primaryCtaAction:function(){var e;k(null===(e=t.model)||void 0===e?void 0:e.ad.primaryCtaUrl)}}),h(O(n)?km(km({},r),{},{showShadow:!1,borderRadius:"0px"}):r),mSe&&(S="cmmahemi25b")),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),Br({name:"Ms.Webi.MeePortal.IrisCampaignErrorEvent",componentName:"services.".concat(u),message:e.t0.toString()});case 14:c({name:fSe,status:"finished"});case 15:case"end":return e.stop()}}),e,null,[[2,10]])}))));var E,k=function(){var e=Zve(fve().mark((function e(t){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:vre({launchDime:b,area:s.area,fallbackUrl:t,fallbackTarget:"_blank",clickId:"".concat(u,"-dime"),experience:C,campaignId:S,targetUri:t,scenarioName:"AmcM365Upsell"});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=jt().createElement(iL,{highlightArea:jt().createElement(RO,{backgroundType:"card",layoutType:"2/3",height:"small",isImageFullBleed:!0,showShadow:!1,borderRadius:"0px"}),detailsArea:jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(zR,null))}),I=f8(s.countryCode)?{primaryAriaLabel:i.m365CtaPrimaryAriaNoTrial,primaryText:i.m365CtaPrimaryTextNoTrial,title:i.m365TitleNoTrial,bodyText:i.m365BodyTextNoTrial}:{primaryAriaLabel:i.m365CtaPrimaryAriaPersado,primaryText:i.m365CtaPrimaryTextPersado,title:i.m365TitlePersado,bodyText:i.m365BodyTextPersado},P=I.primaryAriaLabel,T=I.primaryText,D=I.title,A=I.bodyText,R=f8(s.countryCode)?{secondaryAriaLabel:i.m365CtaSecondaryAriaNoTrial,secondaryText:i.m365CtaSecondaryTextNoTrial,secondaryUrl:i.m365CtaSecondaryUrlNoTrial,secondaryBiid:"Office_Upsells_Get"}:{secondaryAriaLabel:i.m365CtaSecondaryAriaPersado,secondaryText:i.m365CtaSecondaryTextPersado,secondaryUrl:i.m365CtaSecondaryUrlODTreatment,secondaryBiid:"Office_Upsells_Try"},N={"aria-label":P,"data-bi-id":R.secondaryBiid,kind:"button",onClick:function(){k(x)},text:T,type:"primary"},M={href:R.secondaryUrl,"data-bi-id":"Office_Upsells_Learn","aria-label":R.secondaryAriaLabel,children:R.secondaryText,kind:"hyperlink",target:"_blank"},F={featureHeading:{tag:"h2",variant:"statusHeader",text:D},backgroundType:"card",layoutType:"2/3",showShadow:!1,borderRadius:"0px",bodyText:A,isImageFullBleed:!0,imageProps:{alt:i.m365TitlePersado,src:i.m365Image},ctaProps:"ru-ru"===(null===(t=s.language)||void 0===t?void 0:t.toLowerCase())?[{actionProps:M}]:[{actionProps:N},{actionProps:M}]},B=function(e,t,n){return{"aria-label":e,columns:[jt().createElement(nR,{textElements:[{children:t,variant:"bodyPrimaryText"}]}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){window.open(n,"_blank")},pageArea:"landing","data-bi-id":"Office_Upsells_Product_Key","aria-label":e},variant:"EightFour"}},O=function(e){return!!(null!==e&&void 0!==e&&e.linkAriaLabel&&null!==e&&void 0!==e&&e.linkText&&null!==e&&void 0!==e&&e.linkUrl)};p?p&&O(f)&&(E=jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(SR,B(f.linkAriaLabel,f.linkText,f.linkUrl)))):E=jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(SR,B(i.m365RedeemText,i.m365RedeemText,i.m365RedeemUrl)));var L=jt().createElement(iL,{highlightArea:p?jt().createElement(FO,Object.assign({},p,{isImageBlockLeft:!1,isImageFullBleed:!0})):jt().createElement(NO,F),detailsArea:E});return a?jt().createElement(jt().Fragment,null):jt().createElement(dv,{operationData:{componentName:u,operationName:fSe},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:w,finishedView:L})},vSe="xbox-upsell-operation",ySe=function(e){var t,n=e.allServicesSummary,r=e.allServices,o=Xve().content.landing.upsell,i=n.length?n.find((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("XBOX")})):r.find((function(e){var t;return null===(t=e.brandId)||void 0===t?void 0:t.toUpperCase().startsWith("XBOX")})),a=Bve(),s="".concat(a.area,".landing.iris.xboxupsell"),l=mi(),c="xbox-upsell",u=Ua((0,Gt.useState)(),2),d=u[0],p=u[1];Qt(Zve(fve().mark((function e(){var t;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i||"UA"===a.countryCode){e.next=13;break}return e.prev=1,l({name:vSe,status:"updating"}),e.next=5,NCe("services.landing.xboxacquisition");case 5:(t=e.sent)&&p(sne(t,s)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),Br({name:"Ms.Webi.MeePortal.IrisCampaignErrorEvent",componentName:"services.".concat(c),message:e.t0.toString()});case 13:l({name:vSe,status:"finished"});case 14:case"end":return e.stop()}}),e,null,[[1,9]])}))));var h=jt().createElement(RO,{backgroundType:"card",layoutType:"2/3",height:"small"}),m={"aria-label":o.xboxCtaPrimaryAria,"data-bi-id":"Xbox_Upsells_Try",kind:"button",onClick:function(){window.open(o.xboxCtaPrimaryUrl,"_blank")},text:o.xboxCtaPrimary,type:"primary"},f={href:o.xboxCtaSecondaryUrl,"data-bi-id":"Xbox_Upsells_Learn","aria-label":o.xboxCtaSecondaryAria,children:o.xboxCtaSecondary,kind:"hyperlink",target:"_blank"},g=jt().createElement(NO,{featureHeading:{tag:"h2",variant:"statusHeader",text:o.xboxTitle},backgroundType:"card",layoutType:"2/3",bodyText:o.xboxBodyText,imageProps:{alt:o.xboxTitle,src:o.xboxImage},ctaProps:"ru-ru"===(null===(t=a.language)||void 0===t?void 0:t.toLowerCase())?[{actionProps:f}]:[{actionProps:m},{actionProps:f}]}),v=d?jt().createElement(FO,Object.assign({},d,{isImageBlockLeft:!1})):g;return i||"UA"===a.countryCode?jt().createElement(jt().Fragment,null):jt().createElement(dv,{operationData:{componentName:c,operationName:vSe},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:h,finishedView:v})},bSe=function(e){var t,n=e.allServicesSummary,r=e.allServices,o=Bve(),i=Xve().content.landing.upsell,a=mi(),s=Ua(ure(),2),l=s[0],c=s[1],u="copilot-upsell",d="copilot-upsell-operation",p="buycopilotpro",h=n.length?n.filter((function(e){return e.brandId===H7.CoPilot})):r.filter((function(e){return e.brandId===H7.CoPilot}));In(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:yre(l,[p],u),a({name:d,status:"finished"});case 2:case"end":return e.stop()}}),e)}))));var m={primaryAriaLabel:i.copilotCtaPrimaryAria,primaryText:i.copilotCtaPrimaryText,primaryBiid:"copilot-upsells-get",title:i.copilotTitle,bodyText:i.copilotBodyText},f=m.primaryAriaLabel,g=m.primaryText,v=m.primaryBiid,y=m.title,b=m.bodyText,C={secondaryAriaLabel:i.copilotCtaSecondaryAria,secondaryText:i.copilotCtaSecondaryText,secondaryBiid:"copilot-upsells-learn",secondaryUrl:i.copilotCtaSecondaryUrl},S={"aria-label":f,"data-bi-id":v,kind:"button",onClick:function(){vre({launchDime:c,area:o.area,fallbackUrl:i.copilotCtaPrimaryUrl,fallbackTarget:"_blank",clickId:"".concat(u,"-dime"),experience:p,campaignId:"cmmzkbsk4y0",targetUri:i.copilotCtaPrimaryUrl,flow:"services-upsell-copilot",scenarioName:"AmcCopilotDime",isCopilot:!0})},text:g,type:"primary"},x={href:C.secondaryUrl,"data-bi-id":C.secondaryBiid,"aria-label":C.secondaryAriaLabel,children:C.secondaryText,kind:"hyperlink",target:"_blank"},_=jt().createElement(NO,{featureHeading:{tag:"h2",variant:"statusHeader",text:y},backgroundType:"card",layoutType:"2/3",bodyText:b,isImageBlockLeft:!0,imageProps:{alt:y,src:i.copilotImage},ctaProps:"ru-ru"===(null===(t=o.language)||void 0===t?void 0:t.toLowerCase())?[{actionProps:x}]:[{actionProps:S},{actionProps:x}]}),E=jt().createElement(RO,{backgroundType:"card",layoutType:"2/3",height:"small"});return function(){return 0===h.length&&(e=o.countryCode,v8.includes((null===e||void 0===e?void 0:e.toUpperCase())||""));var e}()?jt().createElement(dv,{operationData:{componentName:u,operationName:d},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:E,finishedView:_}):jt().createElement(jt().Fragment,null)},CSe="landing-view",SSe="get-subscriptions",xSe=function(e){return{size:"md",image:{imageType:"image",src:e},height:"52px",padding:"0px"}},_Se=function(){var e,t,n,r,o=Bve(),i=o.summaryData,a=Xve().content,s={};null===(e=i.active)||void 0===e||e.forEach((function(e){s[e.id]="OFFICE"===e.brandId.toUpperCase()||e.brandId.toUpperCase().startsWith("XBOX")||"suspended"===e.status}));var l=Ua((0,Gt.useState)({}),2),c=l[0],u=l[1],d=Ua((0,Gt.useState)(void 0),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)(void 0),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)(void 0),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)(!0),2),S=C[0],x=C[1],_=Ua((0,Gt.useState)({}),2),E=_[0],k=_[1],w=Ua((0,Gt.useState)(s),2),I=w[0],P=w[1],T=EM(),D=ii().sendPageViewEvent,A=mi(),R="openInstall",N="true",M="forceWebInstall",F="true",B="forceReload",O=jye.scenarioName,L=!1;mn(B,"true")&&(L=!0,hn(B));var H=function(){var e=Zve(fve().mark((function e(){var t,n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S,x,_,E,k,w,I=arguments;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=I.length>0&&void 0!==I[0]&&I[0],n=[j9({forceReload:L||t}),G8()],e.next=4,Promise.all(n.map((function(e){return e.then((function(e){return{status:"fulfilled",value:e}})).catch((function(e){return{status:"rejected",reason:e}}))})));case 4:return r=e.sent,o=Ua(r,2),i=o[0],a=o[1],s="fulfilled"===i.status?i.value:null,l="rejected"===i.status?i.reason||"Subscription error not defined":null,c=null===s||void 0===s?void 0:s.alerts,u="rejected"===i.status?i.reason||"Alert error not defined":null,d="fulfilled"===a.status?a.value:null,p="rejected"===a.status?a.reason||"Alert error not defined":null,h=null!==s&&void 0!==s&&s.canceled?s.canceled.concat(s.commercial).concat(s.active):[],c&&c.alerts&&0!==c.alerts.length&&0!==(g=c.alerts.filter((function(e){return!e.detailOnly}))).length&&(m=h.find((function(e){return e.modelId===g[0].modelId})),f=g[0]),(u||p)&&Cr({step:"alert-error",error:w=null!==(v=null!==(y=null===(b=(k=u||p).response)||void 0===b||null===(C=b.data)||void 0===C?void 0:C.errorCode)&&void 0!==y?y:null===(S=k.response)||void 0===S||null===(x=S.data)||void 0===x?void 0:x.error)&&void 0!==v?v:"AlertsError",data:{errorCode:"alert-error",errorDetails:k,isUserError:b8.indexOf(w)>-1,errorMessage:(null===k||void 0===k?void 0:k.message)||(null===(_=k.response)||void 0===_||null===(E=_.data)||void 0===E?void 0:E.error)||"AlertsError"}}),e.abrupt("return",{subscriptionsAndAlerts:s,subscriptionsError:l,servicesAlertsResponse:d,alert:f,alertService:m});case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Qt(Zve(fve().mark((function e(){var t,n,r,s,l,c,d,p,m,f,v,y,C,S,x,_,E,k,w,I,P,B,L,V,W,G,j,q,K,Y,X,Q,Z,J,$,ee,te,ne,re,oe,ie,ae,se,le,ce;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ir()&&xr(),null===(t=Yn("pageid"))||void 0===t||t.remove(),Kn(),jn("pageid","".concat(o.area,".").concat(lye)),br({area:o.area,scenario:O,step:"".concat(O,".Index")}),i&&i.isOperationSuccessful?A({name:SSe,status:"first-load"}):A({name:SSe,status:"updating"}),n=!1,!(!i||!i.isOperationSuccessful||i.active&&i.active.length>0||i.canceled&&i.canceled.length>0||i.perpetual&&i.perpetual.length>0)){e.next=41;break}return e.prev=8,e.next=11,H();case 11:if(m=e.sent,d=m.subscriptionsAndAlerts,s=m.alert,c=m.subscriptionsError,l=m.alertService,p=m.servicesAlertsResponse,!c&&d){e.next=19;break}throw c;case 19:h(s),g(l),b(p||{}),Cr({step:"summary-success"}),d.active&&(f=d.active.concat(d.canceled).concat(d.commercial)[0])&&jn(f.bi),jn("awa-mee_custom12",null===(r=d.canceled)||void 0===r?void 0:r.map((function(e){return e.brandId})).join(",")),d.active&&(jn("awa-mee_custom11",d.active.concat(d.commercial).map((function(e){return e.brandId})).join(",")),(v=d.active.filter((function(e){return e.billingState===t7.InDunning})).length)>0&&jn("awa-InDunning",v.toString()),(y=d.active.filter((function(e){return e.billingState===t7.ActiveAutoRenewOff})).length)>0&&jn("awa-rbOff",y.toString()),C=d.active.concat(d.canceled).filter((function(e){return"recurrence"===e.type})).length,S=d.active.concat(d.canceled).filter((function(e){return"subscription"===e.type})).length,x=d.active.filter((function(e){return"entitlement"===e.type})).length,_=d.active.filter((function(e){return"commercial"===e.type})).length,jn("awa-totalRecurrences",C.toString()),jn("awa-totalSubscriptions",S.toString()),jn("awa-totalEntitlments",x.toString()),jn("awa-totalCommericals",_.toString())),u(d),A({name:SSe,status:"finished"}),(mn(R,N)||mn(M,F))&&(E=d.active.filter((function(e){return"OFFICE"===e.brandId.toUpperCase()})),k=d.active.filter((function(e){return"OFFICE"!==e.brandId.toUpperCase()&&0===e.brandId.toUpperCase().indexOf("OFFICE")})),w=d.active.filter((function(e){return e.isGroupPerpetual})),E.length+k.length>1||w.length>0?(hn(R),hn(M)):1===E.length?(_r(),U(E[0])):1===k.length&&(_r(),U(k[0]))),(I=fn(q6))&&(P=d.active.find((function(e){var t,n;return(null===(t=e.modelId)||void 0===t?void 0:t.toUpperCase())===I||(null===(n=e.productId)||void 0===n?void 0:n.toUpperCase())===I})),B={pidlEnvironment:o.pidlEnvironment,area:o.area,language:o.language,userEmail:o.userEmail},L={pidlEnvironment:o.pidlEnvironment,area:o.area,browserLanguage:o.language},Ate(P,a.commonCommerce,B,T,z),$te(P,L,a.commonCommerce,T,z),P&&(V=a.commonCommerce,W=V.turnOnRB,G=V.common,j=V.changePayment,q=V.renewPath,Gne({service:P,dialogController:T,renewAreaConfig:{pidlEnvironment:o.pidlEnvironment,area:o.area,language:o.language},turnOnRBCmsContent:W,commonResource:G,changePaymentCmsContent:j,renewPathContent:q,succeededCallback:z?function(){return z(P)}:void 0}))),e.next=39;break;case 33:e.prev=33,e.t0=e.catch(8),_r({step:"subscription-error",error:ee=null!==(K=null!==(Y=null===(X=e.t0.response)||void 0===X||null===(Q=X.data)||void 0===Q?void 0:Q.errorCode)&&void 0!==Y?Y:null===(Z=e.t0.response)||void 0===Z||null===(J=Z.data)||void 0===J?void 0:J.error)&&void 0!==K?K:"SubscriptionError",data:{errorCode:"subscription-error",errorDetails:e.t0,errorMessage:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||(null===($=e.t0.response)||void 0===$?void 0:$.data.error)||"SubscriptionError",isUserError:b8.indexOf(ee)>-1}}),n=!0,A({name:SSe,status:"failed",error:e.t0});case 39:e.next=42;break;case 41:A({name:SSe,status:"finished"});case 42:if(n){e.next=56;break}return wr()===O&&Cr({step:"usq-data"}),e.prev=44,e.next=47,zee();case 47:(te=e.sent)&&te.used>=0&&jn("awa-one-driveUsage",Wee(te.used)),e.next=56;break;case 51:e.prev=51,e.t1=e.catch(44),Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"error",component:CSe,message:JSON.stringify(e.t1)}),le=null!==(ne=null!==(re=null===(oe=e.t1.response)||void 0===oe||null===(ie=oe.data)||void 0===ie?void 0:ie.errorCode)&&void 0!==re?re:null===(ae=e.t1.response)||void 0===ae||null===(se=ae.data)||void 0===se?void 0:se.error)&&void 0!==ne?ne:"UsqError",wr()===O&&Cr({step:"usq-error",error:le,data:{errorCode:"usq-error",errorDetails:e.t1,errorMessage:(null===e.t1||void 0===e.t1?void 0:e.t1.message)||(null===(ce=e.t1.response)||void 0===ce?void 0:ce.data.error)||"UsqError",isUserError:b8.indexOf(le)>-1}});case 56:wr()!==O||n||_r(),D();case 58:case"end":return e.stop()}}),e,null,[[8,33],[44,51]])}))));var V=function(){var e=Zve(fve().mark((function e(t){var n;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i7({forceReload:!0,serviceId:t.id,serviceType:t.type,serviceContext:null===(n=jbe(i,void 0,t.id))||void 0===n?void 0:n.serviceContext});case 2:return e.next=4,G9();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=Zve(fve().mark((function e(t){var n,r,o,i,a,s,l;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,A({name:SSe,status:"updating"}),!zs("SvcByIdClient")){e.next=8;break}return e.next=5,V(t);case 5:n=e.sent,e.next=21;break;case 8:return e.next=10,H(!0);case 10:if(s=e.sent,n=s.subscriptionsAndAlerts,i=s.subscriptionsError,a=s.servicesAlertsResponse,r=s.alert,o=s.alertService,b(a||{}),!i){e.next=19;break}throw i||"fetchSubscriptionsError";case 19:h(r),g(o);case 21:if(n){e.next=23;break}throw new Error("Error in response");case 23:u(n),Uye(void 0),A({name:SSe,status:"finished"}),n.active&&((l=n.active.filter((function(e){return e.billingState===t7.InDunning})).length)>0?jn("awa-InDunning",l.toString()):qn("awa-InDunning")),e.next=32;break;case 29:e.prev=29,e.t0=e.catch(0),A({name:SSe,status:"failed",error:e.t0});case 32:case"end":return e.stop()}}),e,null,[[0,29]])})));return function(t){return e.apply(this,arguments)}}(),U=function(e){var t;null!==e&&void 0!==e&&null!==(t=e.installDetails)&&void 0!==t&&t.canUseInstallOptions&&(Uye(e),T.openDialog(jt().createElement(Gbe,{onHideDialog:W})))},W=function(){mn(R,N)&&hn(R),mn(M,F)&&hn(M),T.closeDialog()},G=c.canceled?c.canceled.concat(c.commercial).concat(c.active):[],j=i.isOperationSuccessful?i.canceled.concat(i.commercial).concat(i.active):[],q=i.isOperationSuccessful&&i.active.length||c.active&&c.active.length,K=i.isOperationSuccessful&&i.canceled.length||c.canceled&&c.canceled.length,Y=i.isOperationSuccessful&&i.commercial.length||c.commercial&&c.commercial.length,X=i.isOperationSuccessful&&i.perpetual.length||c.active&&c.active.length,Q=jt().createElement(bb,{childrenGap:42},Vye(o.language)?jt().createElement(jF,null):jt().createElement(jt().Fragment,null),!Vye(o.language)&&p&&f?jt().createElement(WCe,{alert:p,service:f,servicesAlerts:y,onServiceUpdate:z,dismissAlert:function(){h({})}}):jt().createElement(jt().Fragment,null),q?jt().createElement(pSe,{premiumServicesSummary:i.active,premiumServices:c.active,isDrawerOpened:I,setIsDrawerOpened:P,onServiceUpdate:z}):jt().createElement(jt().Fragment,null),Y?jt().createElement(lCe,{commercialServicesSummary:i.commercial,commercialServices:null!==(t=c.commercial)&&void 0!==t?t:[]}):jt().createElement(jt().Fragment,null),jt().createElement(gSe,{allServicesSummary:j,allServices:G}),jt().createElement(bSe,{allServicesSummary:j,allServices:G}),jt().createElement(ySe,{allServicesSummary:j,allServices:G}),X?jt().createElement($Ce,{perpetualServicesSummary:i.perpetual,activeServices:null!==(n=c.active)&&void 0!==n?n:[],isDrawerOpened:E,setIsDrawerOpened:k}):jt().createElement(jt().Fragment,null),K?jt().createElement(sCe,{canceledServicesSummary:i.canceled,canceledServices:null!==(r=c.canceled)&&void 0!==r?r:[],isDrawerOpened:S,setIsDrawerOpened:x}):jt().createElement(jt().Fragment,null),jt().createElement(hSe,{allServicesSummary:i.isOperationSuccessful?i.active.concat(i.commercial):[],allServices:c.active?c.active.concat(c.commercial):[]})),Z=jt().createElement(bb,{childrenGap:42},jt().createElement(gCe,null),Q),J=jt().createElement(bb,{childrenGap:42},jt().createElement(vCe,{receivedBanner:c.landingPageBanner,services:G,onServiceUpdate:z}),Q),$=jt().createElement(bb,{childrenGap:42},jt().createElement(gCe,null),jt().createElement(GCe,null)),ee=jt().createElement(dv,{operationData:{componentName:CSe,operationName:SSe},firstLoadView:Z,updatingView:$,finishedView:J,failedView:jt().createElement(nbe,null)});return jt().createElement(lre,{config:dre(o),dimeScript:o.dimeCdn},ee)},ESe=function(){var e=zye(),t=gbe(),n=t.hideMessageBar,r=t.onServiceUpdate,o=t.alert;vn(e,"service in DetailViewMessageBar");return jt().createElement(jt().Fragment,null,o&&o.contentKey?jt().createElement(UCe,{alert:o,pageArea:"service-detail-view",onDismiss:function(){n()},service:e,onServiceUpdate:r}):jt().createElement(jt().Fragment,null))},kSe=function(){return HCe.useValue()},wSe=function(e){HCe.setValue(e)},ISe=function(e){var t,n=e.componentName,r=e.title,o=e.errorMessage,i=e.buttonUrlReplacementString,a=e.buttonText,s=e.isRefreshNeeded,l=Xve().content.common,c=EM();t="string"===typeof o?jt().createElement(Ib,null,o):jt().createElement(ox,o);var u,d=function(){c.closeDialog(),s&&window.location.reload()};u=i?{buttonPrimary:{onClick:function(){i&&window.location.replace(i)},text:a,"aria-label":a,"data-bi-id":"".concat(n,"-error-href")}}:{buttonPrimary:{onClick:d,text:a,"aria-label":a,"data-bi-id":"".concat(n,"-error-close")}};var p={isOpen:!0,onDismiss:d,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:r,closeButton:{"data-bi-id":"".concat(n,"-close"),"aria-label":l.closeButton},dialogFooterProps:u,minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,p,jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(zk,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:l.failureIcon}),t))},PSe=function(e){var t=e.challengeStatus,n=e.paymentSessionId,r=e.isSoldToAddressRequired,o=e.isTimeoutError,i=Xve().content,a=i.common,s=i.cancel.strings.confirmationDialogContent,l=kSe(),c=l.service,u=EM();vn(c,"Service in CancelServiceErrorDialog");var d=o?a.tryAgainButton:a.getHelpButton,p=o?s.cancelServiceErrorTimeoutSubtitle:s.cancelServiceErrorGenericSubtitle,h=o?s.tryAgainDialogTitle:s.contactSupportDialogTitle;return jt().createElement(yne,{componentName:"cancel-service-error-dialog",title:h,confirmationTitle:s.cancelServiceErrorHeading,confirmationMessage:p,buttonText:d,isError:!0,commonCmsContent:i.commonCommerce.common,onCloseAction:function(){Cr({step:"switchdunning.cancelsubs.failure.closedialog",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}}),u.closeDialog()},onPrimaryButtonClickAction:function(){o?(Cr({step:"switchdunning.cancelsubs.failure.tryagain",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}}),u.switchToDialog(jt().createElement(WSe,{challengeStatus:t,paymentSessionId:n,isSoldToAddressRequired:r}))):window.open(i.cancel.strings.confirmationContent.contactSupportLink.url,i.cancel.strings.confirmationContent.contactSupportLink.target)},staticBodyWidth:"480px"})},TSe=function(){var e=Xve().content,t=e.cancel.strings.confirmationDialogContent,n=kSe().service;vn(n,"Service in PurchaseSubGenericErrorDialog");var r=$ye(n.modelId,void 0,!0);_r();var o=sn(t.dunningSwitchErrorGenericSubtitle,{currentSub:n.name});return jt().createElement(yne,{componentName:"purchase-sub-generic-error-dialog",title:t.contactSupportDialogTitle,confirmationTitle:t.dunningSwitchErrorHeading,confirmationMessage:o,buttonText:e.common.getHelpButton,isError:!0,commonCmsContent:e.commonCommerce.common,onCloseAction:function(){r()},onPrimaryButtonClickAction:function(){window.open(e.cancel.strings.confirmationContent.contactSupportLink.url,e.cancel.strings.confirmationContent.contactSupportLink.target)}})},DSe="COVID19ReliefRenewal",ASe="saveflow.offers.switchPlan",RSe="turn-off-rb",NSe=function(){var e=Xve().content.common,t=Xve().content.cancel.strings.confirmationContent,n=kSe(),r=n.service,o=n.downgradePath;vn(r,"Service in DowngradeSuccessDialog"),vn(o,"DowngradePath in DowngradeSuccessDialog");var i="downgrade-confirmation-dialog",a=$ye(r.modelId,void 0,!0),s=function(){a()},l="",c="",u="";r.isXboxBrandId?(c=("TaxesNotIncluded"===o.skuTaxType?t.xboxDowngradePlanSubtitle1:t.xboxDowngradePlanWithTaxSubtitle1).replace("{amount}",o.price).replace("{renewalDate}",gx(r.endDate)),l=t.xboxDowngradePlanTitle.replace("{subscriptionName}",o.title),u=t.xboxDowngradePlanSubtitle2.replace("{subscriptionName}",r.name)):(c=zs(G7,!1)?Z7({service:r,dataBiIdPrefix:"RenewInto",celaStrings:e.celaSection,price:o.price,taxType:o.skuTaxType,cycleUnit:o.cycleUnit,nextChargeDate:gx(r.endDate),priceDetails:o.priceDetails}):Y7({service:r,dataBiIdPrefix:"RenewInto",celaStrings:e.celaSection,price:o.price,taxType:o.skuTaxType,cycleUnit:o.cycleUnit,nextChargeDate:gx(r.endDate)}),l=t.m365DowngradePlanTitle.replace("{subscription-name}",o.title),u=t.m365DowngradePlanSubtitle2.replace("{subscription-name}",r.name));var d=jt().createElement(Cb,{padding:"14px 0px 0px 0px"},jt().createElement(dk,{text:t.backToSubscription,"aria-label":t.backToSubscriptionsAriaLabel,"data-bi-id":"".concat(i,"-back-to-subscription"),onClick:function(){return s()},type:"primary",id:"confirm-back-to-subscription-button"})),p={isOpen:!0,onDismiss:s,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:l,closeButton:{"data-bi-id":"".concat(i,"-close"),"aria-label":e.closeButton},minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,p,jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(Cb,{padding:"39px 0px 0px 0px"},jt().createElement(zk,{alt:t.cancelSuccessImage.alt,imageType:"altTextImage",src:t.cancelSuccessImage.src,imageFit:"contain"})),jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodyPrimaryText"},c,u)),d))},MSe=function(e){var t=e.challengeStatus,n=e.paymentSessionId,r=e.isSoldToAddressRequired,o=mi(),i=EM(),a=fne(),s=Xve().content.commonCommerce.common.psd2Resource,l=Xve().content.cancel.strings.confirmationContent,c=Xve().content.common,u=kSe(),d=u.service,p=u.downgradePath,h=u.cancelScenarioStartTimeStamp,m=u.downgradeDialogScenarioStartTimeStamp;vn(d,"Service in SwitchSubscriptionDialog"),vn(p,"DowngradePath in SwitchSubscriptionDialog");var f=$ye(d.modelId,void 0,!0),g="switch-subscription-dialog",v="switch-subscription-operation",y=jt().createElement(F5,{spinnerAriaLabel:s.loadingMessage});Qt(Zve(fve().mark((function e(){var f,y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N,M;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((f={}).fromProductId=d.productId,f.toProductId=p.productId,f[Yye]=Zye(p.cycleUnit).toString(),Cr({step:"saveflow.downgrade-plan.final",data:km(km({},f),{},{timeElapsedFromCancelScenarioStart:Date.now()-h,timeElapsedFromDialogScenarioStart:Date.now()-m})}),o({name:v,status:"updating"}),a.updateSessionId(n||""),!(y=a8(d,null===r||void 0===r||r)).isFailed){e.next=13;break}return Cr({step:"saveflow.downgrade-plan.failure.smd",error:(b=o8(c.smdError)).errorCode,data:{challengeStatus:t,isUserError:b.isUserError,timeElapsedFromCancelScenarioStart:Date.now()-h,timeElapsedFromDialogScenarioStart:Date.now()-m}}),i.switchToDialog(jt().createElement(ISe,{componentName:"".concat(g,"-smd-error-dialog"),title:b.errorTitle,errorMessage:b.errorMessage,buttonText:b.buttonText||c.smdError.smdErrorCta,buttonUrlReplacementString:b.buttonUrlReplacementString})),e.abrupt("return");case 13:return e.prev=13,_=(null===(C=u.primaryPI)||void 0===C?void 0:C.paymentMethodType)!==R6||null===(S=u.backupPI)||void 0===S?void 0:S.id,E={service:d,productId:p.productId,skuId:p.skuId,availabilityId:"",challengeCompletedStatus:t,paymentInstrumentId:null===(x=u.primaryPI)||void 0===x?void 0:x.id,backupPaymentInstrumentId:_,paymentSessionId:n,soldToAddressId:y.addressIdToSend},e.next=18,l9(E);case 18:Cr({step:"saveflow.downgrade-plan.success",data:{timeElapsedFromCancelScenarioStart:Date.now()-h,timeElapsedFromDialogScenarioStart:Date.now()-m}}),xr(),o({name:v,status:"finished"}),i.switchToDialog(jt().createElement(NSe,null)),e.next=34;break;case 24:e.prev=24,e.t0=e.catch(13),A=e.t0,R=null!==(k=null!==(w=null===(I=A.response)||void 0===I||null===(P=I.data)||void 0===P?void 0:P.errorCode)&&void 0!==w?w:null===(T=A.response)||void 0===T||null===(D=T.data)||void 0===D?void 0:D.error)&&void 0!==k?k:"Cannot switch subscription",(N={timeElapsedFromCancelScenarioStart:Date.now()-u.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-u.downgradeDialogScenarioStartTimeStamp}).errorDetails=A,M={textWithTokens:l.downgradeErrorGenericMessage.replace("{subscriptionName}",d.name),tokensAndValues:{supportLink:jt().createElement(nx,Object.assign({id:"save-flow-downgrade-contact-support"},one(l.contactSupportLink)))}},b8.indexOf(R)>=0?(N.isUserError=!0,o({name:v,status:"finished"})):(N.isUserError=!1,o({name:v,status:"failed",error:A})),Cr({step:"saveflow.downgrade-plan.failure.switchSubscription",error:R,data:N}),i.switchToDialog(jt().createElement(ISe,{componentName:"".concat(g,"-error-dialog"),errorMessage:M,buttonText:s.closeButton}));case 34:case"end":return e.stop()}}),e,null,[[13,24]])}))));var b={isOpen:!0,onDismiss:function(){i.closeDialog(),f()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:l.switchSubscriptionDialogTitle.replace("{product}",d.name),closeButton:{"data-bi-id":"".concat(g,"-close"),"aria-label":s.closeButton},minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,b,jt().createElement(vi,{operationData:{componentName:g,operationName:v},firstLoadView:y,finishedView:y}))},FSe=function(){var e,t,n,r,o=Bve(),i=EM(),a=Xve().content,s=Xve().content.commonCommerce.common,l=kSe(),c=l.downgradePath,u=l.service.billingState===t7.InDunning;vn(c,"Downgrade path not found in provider");var d=Pne(l),p=(null===l||void 0===l||null===(e=l.primaryPI)||void 0===e?void 0:e.paymentMethodType)===R6,h=G5({india2FASuccessParam:qSe,productId:c.productId,skuId:c.skuId,piid:d.id,paymentName:d.displayName,paymentType:d.paymentMethodType,isSoldToAddressIdRequired:d.isSoldToAddressRequired,launchDialogParamName:jSe,isBackup:p,csvPiid:p?null===l||void 0===l||null===(t=l.primaryPI)||void 0===t?void 0:t.id:void 0,csvPaymentName:p?null===l||void 0===l||null===(n=l.primaryPI)||void 0===n?void 0:n.displayName:void 0});l.pageName===cye&&(h=rxe(h,c,l.cancelScenarioStartTimeStamp));var m=One(o,l.service,s,"saveflow-switch-pi-challenge",u&&null!==(r=c.priceInDecimal)&&void 0!==r?r:0,c.currency,d.id,d.displayName,c.cycleLength,c.cycleUnit,h,j5(qSe,jSe),(function(e,t){l.pageName===cye?(Cr({step:"saveflow.dunning.purchaseSubStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(USe,{challengeStatus:e,paymentSessionId:t,isSoldToAddressRequired:d.isSoldToAddressRequired}))):u?(Cr({step:"saveflow.dunning.cancelSubStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(WSe,{challengeStatus:e,paymentSessionId:t,isSoldToAddressRequired:d.isSoldToAddressRequired}))):(Cr({step:"saveflow.downgrade-plan.switchSubscriptionStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(MSe,{challengeStatus:e,paymentSessionId:t,isSoldToAddressRequired:d.isSoldToAddressRequired})))}),(function(e,t){Cr({step:"saveflow.downgrade-plan.failure.piChallenge",error:w6(t.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:e.isUserError,errorDetails:t,safeErrorCode:w6(t.errorCode),timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}})}),(function(){Cr({step:"saveflow.downgrade-plan.cancel",data:{timeElapsedFromCancelScenarioStart:Date.now()-l.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-l.downgradeDialogScenarioStartTimeStamp}})}),u,u?a.cancel.m365.switchDunning.switchingYourSubscription:void 0);return jt().createElement(Q5,m)},BSe=function(e,t,n){var r,o;return(null===(r=e.cycleUnit)||void 0===r?void 0:r.toLowerCase())===gye?t:(null===(o=e.cycleUnit)||void 0===o?void 0:o.toLowerCase())===fye?n:(Br({name:"Ms.Webi.MeePortal.ServicesEvent",message:"unknown downgradePath.cycleUnit - ".concat(e.cycleUnit),component:"CommonDowngradePiPickerDialogStrings",eventType:"warning"}),"")},OSe=function(e,t,n,r){var o=e.m365.downgrade.termsOfSaleLinkHref,i=e.m365.downgrade.termsOfSaleLinkText,a=e.m365.downgrade.learnMoreLinkText,s=e.m365.downgrade.learnMoreCancellationLinkText,l=e.m365.downgrade.turnOnRBCancelLinkText,c=Kt(t.learnAboutCancellationLinkList,n.market,"default",",");return{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,{margin:"0px 0px 0px 0px"},jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:Kt(e.m365.downgrade.termsOfSaleList,n.market,"defaultfixed",","),tokensAndValues:{termsOfSale:jt().createElement(nx,{"aria-label":i,"data-bi-id":"downgrade-confirm-terms-of-sale",href:o,textVariant:"bodyThemeText",target:"_blank"},i),learnMore:jt().createElement(nx,{"aria-label":a,"data-bi-id":"downgrade-confirm-learn-more",href:c,textVariant:"bodyThemeText",target:"_blank"},a),cancelLink:jt().createElement(nx,{"aria-label":l,"data-bi-id":"downgrade-confirm-learn-more",href:c,textVariant:"bodyThemeText",target:"_blank"},l),learnAboutCancellation:jt().createElement(nx,{"aria-label":s,"data-bi-id":"downgrade-confirm-learn-more-cancellation",href:c,textVariant:"bodyThemeText",target:"_blank"},s),renewIntoDate:jt().createElement(Ib,{variant:"bodySecondaryText"},r.renewIntoDate),price:jt().createElement(Ib,{variant:"bodySecondaryText"},r.price),billingInterval:jt().createElement(Ib,{variant:"bodySecondaryText"},r.billingInterval)}})))}}},LSe=function(e){return{addBackupPi:e.addBackupPi,back:e.back,cancel:e.cancel,close:e.close,expiredPiAlertMessage:e.expiredPiAlertMessage,genericErrorMessage:e.genericErrorMessage,next:e.next,add:e.add,update:e.update,tryAgainTitle:e.tryAgainTitle,selectBackupPiAlertMessage:e.changeBackupPiAlertMessage,selectBackupPiSubText:e.changePaymentTitle,updatePiSubText:e.changePaymentMethodSubtitle,failureImageSrc:e.failureIcon,addEditPiError:e.addEditPiError,addPiSubText:"",selectPaymentTitle:"",saveChanges:"",selectPaymentSubText:""}},HSe=function(){var e,t=kSe(),n=t.service,r=t.downgradePath;vn(n,"Service in DowngradePaymentPiPickerDialog"),vn(r,"DowngradePath in DowngradePaymentPiPickerDialog");var o=EM(),i=Bve(),a=n.isM365BrandId?n.billingState!==t7.InDunning?function(){var e=kSe(),t=e.service,n=e.downgradePath;vn(n,"DowngradePath in M365DowngradePiPickerDialogStrings");var r,o=Xve().content.cancel,i=Xve().content.commonCommerce.changePayment,a=Xve().content.common.celaSection,s=Xve().content.commonCommerce.common,l=Xve().content.common,c=l.month,u=l.year,d=LSe(i),p=o.m365.downgrade,h=p.downgradeMessage,m=p.priceList,f=zs(G7,!1)?X7(t.market,n.priceDetails,s.celaSection.taxBreakdown,n.price,n.skuTaxType):Kt(m,n.skuTaxType).replace("{price}",n.price),g={renewIntoDate:gx(t.endDate),price:f,renewIntoService:n.title,billingInterval:BSe(n,c,u)},v={textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,null,jt().createElement(Cb,null,jt().createElement(jk,Object.assign({id:"".concat(n.brandId)},(r=n.imageUrl,{size:"lg",image:{imageType:"image",src:r},padding:"6px 0px 0px 0px"})),jt().createElement(bb,{margin:"0px 0px 8px 8px"},jt().createElement(Cb,{height:"14px"},jt().createElement(Ib,{variant:"headerText"},n.title)),jt().createElement("hr",null),jt().createElement(Cb,{height:"20px"},jt().createElement(Ib,{variant:"bodySecondaryText"},f))))),jt().createElement(Cb,null,jt().createElement(Y4,null)),jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodySecondaryText"},jt().createElement(ox,{textWithTokens:h,tokensAndValues:{renewIntoDate:jt().createElement(Ib,{weightOverride:"semi-bold"},g.renewIntoDate),price:jt().createElement(Ib,{weightOverride:"semi-bold"},g.price),renewIntoService:jt().createElement(Ib,null,g.renewIntoService),billingInterval:jt().createElement(Ib,null,g.billingInterval)}})))))}},y={textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,{padding:"10px 0 0 0"},jt().createElement(nb,{tag:"h2",variant:"headerText"},s.piList.paidWith)))}};return km(km({},d),{},{addPiSubText:sn(i.changePaymentSubText,n.title),selectPaymentTitle:o.xbox.downgradeConfirmation.downgradeConfirmPageTitle,saveChanges:o.strings.buyDowngradeButton,footerText:OSe(o,a,t,g),selectPaymentHelperText:v,selectPaymentSubText:y})}():function(){var e=kSe(),t=e.service,n=e.downgradePath;vn(n,"DowngradePath in M365switchPiPickerDialogStrings");var r,o=Xve().content.cancel,i=Xve().content.commonCommerce.common,a=Xve().content.commonCommerce.changePayment,s=Xve().content.common.celaSection,l=Xve().content.commonCommerce.turnOnRB,c=LSe(a),u=o.m365.switchDunning,d=u.dialogTitle,p=u.switchMessage,h=u.priceList,m=u.monthCycle,f=u.yearCycle,g=zs(q7,!1)?X7(t.market,n.priceDetails,i.celaSection.taxBreakdownImmediate,n.price,n.skuTaxType):Kt(h,n.skuTaxType).replace("{price}",n.price),v={textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,null,jt().createElement(Cb,null,jt().createElement(jk,Object.assign({id:"".concat(n.brandId)},(r=t.brandLogo,{size:"lg",image:{imageType:"image",src:r},padding:"6px 0px 0px 0px"})),jt().createElement(bb,{margin:"0px 0px 0px 8px"},jt().createElement(Cb,{height:"14px"},jt().createElement(Ib,{variant:"headerText"},n.title)),jt().createElement("hr",null),jt().createElement(Cb,{height:"20px"},jt().createElement(Ib,{variant:"bodySecondaryText"},g))))),jt().createElement(Cb,null,jt().createElement(Y4,null)),jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodySecondaryText"},jt().createElement(ox,{textWithTokens:p,tokensAndValues:{renewIntoService:jt().createElement(Ib,null,n.title),price:jt().createElement(Ib,null,g),billingInterval:jt().createElement(Ib,null,function(){var e,t;return(null===(e=n.cycleUnit)||void 0===e?void 0:e.toLowerCase())===gye?m:(null===(t=n.cycleUnit)||void 0===t?void 0:t.toLowerCase())===fye?f:""}())}})))))}},y={textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,{padding:"10px 0 0 0"},jt().createElement(nb,{tag:"h2",variant:"headerText"},i.piList.paidWith)))}},b=Kt(l.renewSummaryFooter.primaryCTAList,t.market,"default",","),C={service:t,selectedRenewPath:n,primaryCTAText:b,celaDisclaimerContent:l.renewSummaryFooter.celaDisclaimer,commonCELAResource:s,flowType:K7};return km(km({},c),{},{addPiSubText:sn(a.changePaymentSubText,n.title),selectPaymentTitle:d,saveChanges:b,footerText:Nne(C),selectPaymentHelperText:v,selectPaymentSubText:y})}():function(){var e=kSe(),t=e.service,n=e.downgradePath;vn(n,"DowngradePath in XgpuDowngradePiPickerDialogStrings");var r=Xve().content.commonCommerce.changePayment,o=Xve().content.cancel,i=Xve().content.common.celaSection,a=LSe(r),s=Xve().content.common,l=s.month,c=s.year,u={renewIntoDate:gx(t.endDate),price:"TaxesNotIncluded"===n.skuTaxType?o.xbox.downgradeConfirmation.priceApplicableTaxMonthly.replace("{price}",n.price):o.xbox.downgradeConfirmation.priceMonthly.replace("{price}",n.price),renewIntoService:n.title,billingInterval:BSe(n,l,c)},d={textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(jt().Fragment,null,jt().createElement(bb,null,jt().createElement(Cb,null,jt().createElement(jk,Object.assign({id:"".concat(n.brandId)},{size:"lg",image:{imageType:"icon",iconName:"XboxLogo",iconColor:"successIcon"},padding:"6px 0px 0px 0px"}),jt().createElement(bb,{margin:"0px 0px 0px 8px"},jt().createElement(Cb,{height:"14px"},jt().createElement(Ib,{variant:"headerText"},n.title)),jt().createElement("hr",null),function(){var e=o.xbox.downgradeConfirmation.downgradePriceText.replace("{price}",n.price);return jt().createElement(Cb,{height:"20px"},jt().createElement(Ib,{variant:"bodySecondaryText"},e))}())),jt().createElement("hr",null)),jt().createElement(Cb,null,jt().createElement(bb,{margin:"0px 0px 0px 8px"},jt().createElement(Ib,{variant:"bodySecondaryText"},o.xbox.downgradeConfirmation.confirmMessagePartOne.replace("{subName}",t.name),jt().createElement(Ib,{variant:"bodySecondaryText"},jt().createElement(ox,{textWithTokens:o.xbox.downgradeConfirmation.confirmMessagePartTwo,tokensAndValues:{startDate:jt().createElement(Ib,{weightOverride:"semi-bold"},u.renewIntoDate),price:jt().createElement(Ib,{weightOverride:"semi-bold"},u.price),newSub:jt().createElement(Ib,null,u.renewIntoService)}})))))))}};return km(km({},a),{},{addPiSubText:sn(r.changePaymentSubText,t.name),selectPaymentTitle:o.xbox.downgradeConfirmation.downgradeConfirmPageTitle,saveChanges:o.xbox.downgradeConfirmation.confirmButtonText,footerText:OSe(o,i,t,u),selectPaymentSubText:d})}(),s=function(e,t,n){var r,o,i,a,s,l=[(r={},r.skuid=e,r),(o={},o.modelId=t,o),(i={},i.productid=t,i),(a={},a[n]="true",a),(s={},s.isAddPiSuccess=j6,s)];return pn(window.location.href,l)}(r.skuId,r.productId,jSe);t.pageName===cye&&(s=rxe(s,r,t.cancelScenarioStartTimeStamp));var l=null===(e=t.primaryPI)||void 0===e?void 0:e.id,c=l?{id:l}:void 0,u="subscription"===n.type?n.includedPaymentInstrumentTagsForLegacySubsForPIDL:n.includedPaymentTags,d={market:n.market,language:n.locale,billingId:n.billingId,environment:i.pidlEnvironment,transactionAmount:r.priceInDecimal,transactionCurrency:r.currency,scenario:"AmcCancel",splitPaymentSupported:!1,exclusionTags:n.excludedPaymentTags?n.excludedPaymentTags.split(","):void 0,allowedPaymentMethods:u?u.split(","):void 0,returnUrl:s,redirectFailureUrl:y5(jSe)};return jt().createElement(M5,{piPickerParams:d,initialPrimaryPi:null!==c&&void 0!==c?c:n.payment?{id:n.payment.id,isExpired:!n.payment.valid}:void 0,initialBackupPi:null!==c&&void 0!==c?c:n.backupPayment?{id:n.backupPayment.id,isExpired:!n.backupPayment.valid}:void 0,onCancel:function(){Cr({step:"saveflow.downgrade-plan.cancel",data:{timeElapsedFromCancelScenarioStart:Date.now()-t.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-t.downgradeDialogScenarioStartTimeStamp}}),o.closeDialog()},onSuccess:function(e,n,r,i,a,s,l){var c={id:e,displayName:n,isSoldToAddressRequired:r,paymentMethodType:l};if(i){var u={id:i,displayName:a,isSoldToAddressRequired:r,paymentMethodType:s};wSe(km(km({},t),{},{primaryPI:c,backupPI:u}))}else wSe(km(km({},t),{},{primaryPI:c}));o.switchToDialog(jt().createElement(FSe,null))},onFailure:function(){Cr({step:"saveflow.downgrade-plan.failure.piPicker",data:{timeElapsedFromCancelScenarioStart:Date.now()-t.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-t.downgradeDialogScenarioStartTimeStamp}}),o.closeDialog()},operationData:{componentName:"downgrade-pipicker-dialog",operationName:"downgrade-pipicker-operation"},strings:a})},VSe=function(){var e,t=Xve().content,n=t.cancel.strings.confirmationDialogContent,r=kSe(),o=r.service,i=r.downgradePath,a=qo(),s=EM();vn(o,"Service in PurchaseSubPiErrorDialog"),vn(i,"DowngradePath in PurchaseSubPiErrorDialog");var l=$ye(o.modelId,void 0,!0),c=sn(n.dunningSwitchErrorPiSubtitle,{currentSub:o.name,price:i.price,card:null===(e=r.primaryPI)||void 0===e?void 0:e.displayName});return jt().createElement(yne,{componentName:"purchase-sub-pi-error-dialog",title:n.updatePaymentDialogTitle,confirmationTitle:n.dunningSwitchErrorHeading,confirmationMessage:c,buttonText:t.common.continueButton,isError:!0,commonCmsContent:t.commonCommerce.common,onCloseAction:function(){s.closeDialog(),Cr({step:"switchdunning.purchasesubs.pierror.close"}),_r(),l()},onPrimaryButtonClickAction:function(){if(r.pageName===cye)s.switchToDialog(jt().createElement(HSe,null));else{kr({step:"switchdunning.purchasesubs.pierror.continue"});var e=nxe(o.modelId,i,r.cancelScenarioStartTimeStamp);a.push(e)}}})},zSe=function(e){var t,n=e.challengeStatus,r=e.paymentSessionId,o=e.isSoldToAddressRequired,i=Xve().content,a=i.cancel.strings.confirmationDialogContent,s=kSe(),l=s.service,c=EM();vn(l,"Service in PurchaseSubTimeoutErrorDialog");var u=$ye(l.modelId,void 0,!0),d=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Cr({step:"switchdunning.purchasesubs.timeouterror.tryagain"}),c.switchToDialog(jt().createElement(USe,{challengeStatus:n,paymentSessionId:r,isSoldToAddressRequired:o,onTryAgain:!0}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=sn(a.purchaseTimeoutError,{currentSubscription:l.name,newSubscription:null===(t=s.downgradePath)||void 0===t?void 0:t.title});return jt().createElement(yne,{componentName:"purchase-sub-timeout-error-dialog",title:a.tryAgainDialogTitle,confirmationTitle:a.dunningSwitchErrorHeading,confirmationMessage:p,buttonText:i.common.tryAgainButton,isError:!0,commonCmsContent:i.commonCommerce.common,onCloseAction:function(){Cr({step:"switchdunning.purchasesubs.timeouterror.close"}),_r(),u()},onPrimaryButtonClickAction:d})},USe=function(e){var t=e.challengeStatus,n=e.paymentSessionId,r=e.isSoldToAddressRequired,o=e.onTryAgain,i=mi(),a=EM(),s=fne(),l=Xve().content.cancel.m365.switchDunning,c=kSe(),u=Xve().content.common,d=Xve().content.commonCommerce.common,p=c.service,h=c.downgradePath,m=c.cancelScenarioStartTimeStamp,f=c.downgradeDialogScenarioStartTimeStamp;vn(p,"Service in PurchaseSubDialog"),vn(h,"DowngradePath in PurchaseSubDialog");var g="purchase-sub-dialog",v="purchase-sub-operation";Qt(Zve(fve().mark((function e(){var l,d,y,b,C,x,_,E,k,w,I,P,T,D,A,R,N,M,F,B,O;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i({name:v,status:"first-load"}),!o){e.next=22;break}return e.prev=2,Cr({step:"switchdunning.purchasesubs.getservicesummary",data:{timeElapsedFromCancelScenarioStart:Date.now()-m,timeElapsedFromDialogScenarioStart:Date.now()-f}}),e.next=6,q9();case 6:if(d=e.sent,!((null===(l=d.active)||void 0===l?void 0:l.findIndex((function(e){return e.id===(null===h||void 0===h?void 0:h.productId)})))>-1)){e.next=12;break}return i({name:v,status:"finished"}),S(),e.abrupt("return");case 12:e.next=22;break;case 14:return e.prev=14,e.t0=e.catch(2),C=e.t0,x=(null===(y=C.response)||void 0===y||null===(b=y.data)||void 0===b?void 0:b.error)||"GetServiceSummaryNoErrorCode",i({name:v,status:"failed",error:C}),Cr({step:"switchdunning.purchasesubs.failure",error:x,data:{errorDetails:e.t0}}),a.switchToDialog(jt().createElement(TSe,null)),e.abrupt("return");case 22:if((_={}).fromProductId=p.productId,_.toProductId=h.productId,_[Yye]=Zye(h.cycleUnit).toString(),Cr({step:"switchdunning.purchasesubs.final",data:km(km({},_),{},{timeElapsedFromCancelScenarioStart:Date.now()-m,timeElapsedFromDialogScenarioStart:Date.now()-f})}),s.updateSessionId(n||""),!(E=a8(p,null===r||void 0===r||r)).isFailed){e.next=35;break}return Cr({step:"switchdunning.purchasesubs.failure.smd",error:(k=o8(u.smdError)).errorCode,data:{challengeStatus:t,isUserError:k.isUserError,timeElapsedFromCancelScenarioStart:Date.now()-m,timeElapsedFromDialogScenarioStart:Date.now()-f}}),a.switchToDialog(jt().createElement(ISe,{componentName:"".concat(g,"-smd-error-dialog"),title:k.errorTitle,errorMessage:k.errorMessage,buttonText:k.buttonText||u.smdError.smdErrorCta,buttonUrlReplacementString:k.buttonUrlReplacementString,isRefreshNeeded:!0})),_r(),e.abrupt("return");case 35:return e.prev=35,D=(null===(w=c.primaryPI)||void 0===w?void 0:w.paymentMethodType)!==R6||null===(I=c.backupPI)||void 0===I?void 0:I.id,A={productId:h.productId,skuId:h.skuId,availabilityId:null!==(P=h.availabilityId)&&void 0!==P?P:"",paymentInstrumentId:null===(T=c.primaryPI)||void 0===T?void 0:T.id,backupPaymentInstrumentId:D,soldToAddressId:E.addressIdToSend,market:p.market,locale:p.locale,paymentSessionId:n,challengeCompletedStatus:t},e.next=40,s9(A);case 40:i({name:v,status:"finished"}),S(),e.next=52;break;case 44:e.prev=44,e.t1=e.catch(35),F=e.t1,B=(null===(R=F.response)||void 0===R||null===(N=R.data)||void 0===N?void 0:N.error)||"PurchaseSubNoErrorCode",O=!1,S8.indexOf(B)>=0||x8.indexOf(B)>=0?(O=!0,i({name:v,status:"finished"})):i({name:v,status:"failed",error:F}),Cr({step:"switchdunning.purchasesubs.failure",error:B,data:{timeElapsedFromCancelScenarioStart:Date.now()-m,timeElapsedFromDialogScenarioStart:Date.now()-f,piType:null===(M=c.primaryPI)||void 0===M?void 0:M.paymentMethodType,isUserError:O,errorDetails:F}}),S8.indexOf(B)>=0?a.switchToDialog(jt().createElement(zSe,{challengeStatus:t,paymentSessionId:n,isSoldToAddressRequired:r})):x8.indexOf(B)>=0?a.switchToDialog(jt().createElement(VSe,null)):a.switchToDialog(jt().createElement(TSe,null));case 52:case"end":return e.stop()}}),e,null,[[2,14],[35,44]])}))));var y={isOpen:!0,title:l.switchingYourSubscription,minBodyHeight:m5,dialogStylesTemp:h5},b=l.setupYourSubscription.replace("{product}",h.title),C=jt().createElement(F5,{spinnerAriaLabel:b,spinnerMessage:b}),S=function(){var e;Cr({step:"switchdunning.purchasesubs.success",data:{timeElapsedFromCancelScenarioStart:Date.now()-m,timeElapsedFromDialogScenarioStart:Date.now()-f,piType:null===(e=c.primaryPI)||void 0===e?void 0:e.paymentMethodType}}),xr();var t=bn(l.successTitle,{product:h.title}),n=i8(h.cycleUnit,1,u.celaSection.day,u.celaSection.days,u.celaSection.month,u.celaSection.months,u.celaSection.year,u.celaSection.years),r=zs(q7,!1)?X7(p.market,h.priceDetails,d.celaSection.taxBreakdownImmediate,h.price,h.taxType):$7(p,d.celaSection,h.taxType,h.price),o=bn(l.successText,{cycleFormat:n,priceInfo:r,cardName:c.primaryPI.displayName});a.switchToDialog(jt().createElement(yne,{componentName:"".concat(g,"-confirm-dialog"),title:l.dialogSuccessTitle,confirmationTitle:t,confirmationMessage:o,buttonText:u.doneButton,isError:!1,commonCmsContent:d,buttonUrlReplacementString:"/services/".concat(h.productId,"/details"),staticBodyWidth:"480px"}))};return jt().createElement(CM,y,jt().createElement(vi,{operationData:{componentName:g,operationName:v},firstLoadView:C,failedView:C,finishedView:C}))},WSe=function(e){var t=e.challengeStatus,n=e.paymentSessionId,r=e.isSoldToAddressRequired,o=mi(),i=EM(),a=Xve().content.cancel.m365.switchDunning,s=kSe(),l=s.service,c=s.cancelScenarioStartTimeStamp,u=s.downgradeDialogScenarioStartTimeStamp,d=s.cancelRefundData;vn(l,"Service in CancelDunningSubDialog"),vn(d,"CancelRefundData in CancelDunningSubDialog");var p="cancel-dunning-sub-operation";Qt(Zve(fve().mark((function e(){var a,s,h,m,f,g,v,y,b;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o({name:p,status:"first-load"}),Cr({step:"switchdunning.cancelsubs.final",data:{timeElapsedFromCancelScenarioStart:Date.now()-c,timeElapsedFromDialogScenarioStart:Date.now()-u}}),e.prev=2,e.next=5,Y8(l,d.data);case 5:(a=e.sent).error&&0!==a.error||(m=null===(s=Yn(Qye))||void 0===s?void 0:s.content,Cr({step:"switchdunning.cancelsubs.success",data:(h={},_m(h,Qye,m),_m(h,"timeElapsedFromCancelScenarioStart",Date.now()-c),_m(h,"timeElapsedFromDialogScenarioStart",Date.now()-u),h)})),o({name:p,status:"finished"}),i.switchToDialog(jt().createElement(USe,{challengeStatus:t,paymentSessionId:n,isSoldToAddressRequired:r})),e.next=19;break;case 11:e.prev=11,e.t0=e.catch(2),v=e.t0,y=(null===(f=v.response)||void 0===f||null===(g=f.data)||void 0===g?void 0:g.error)||"CancelDunningSubNoErrorCode",b=S8.indexOf(y)>=0,o({name:p,status:"failed",error:v}),Cr({step:"switchdunning.cancelsubs.failure",error:y,data:{timeElapsedFromCancelScenarioStart:Date.now()-c,timeElapsedFromDialogScenarioStart:Date.now()-u,errorDetails:v}}),i.switchToDialog(jt().createElement(PSe,{challengeStatus:t,paymentSessionId:n,isSoldToAddressRequired:r,isTimeoutError:b}));case 19:case"end":return e.stop()}}),e,null,[[2,11]])}))));var h={isOpen:!0,title:a.switchingYourSubscription,minBodyHeight:m5,dialogStylesTemp:h5},m=a.cancelYourSubscription.replace("{product}",l.name),f=jt().createElement(F5,{spinnerAriaLabel:m,spinnerMessage:m});return jt().createElement(CM,h,jt().createElement(vi,{operationData:{componentName:"cancel-dunning-sub-dialog",operationName:p},firstLoadView:f,failedView:f,finishedView:f}))},GSe=function(e){var t,n="downgrade-payment-dialog",r="downgrade-payment-operation";t=km(km({},e),{},{downgradeDialogScenarioStartTimeStamp:Date.now()}),Qt((function(){HCe=J5(t)}));var o=kSe(),i=EM(),a=Xve().content,s=a.commonCommerce.changePayment,l=a.commonCommerce.common.psd2Resource,c=Bve(),u=function(e){var t=r8(l,e);Cr({step:"saveflow.downgrade-plan.failure.India2FA",error:w6(t.errorCode),data:{challengeStatus:e.challengeStatus,isUserError:t.isUserError,errorDetails:e,timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(ISe,{componentName:"".concat(n,"-error-dialog"),title:t.errorTitle||l.genericErrorTitle,errorMessage:t.errorMessage||l.genericErrorMessage,buttonText:l.closeButton,buttonUrlReplacementString:t.buttonUrlReplacementString}))};Qt(Zve(fve().mark((function t(){var r,a,d,p,h,m;return fve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=z5(qSe),Ir()||(void 0!==r?W5({area:c.area,scenario:"AmcCancelInDunning",data:o.service.bi}):e.isAddPiFailed||e.isAddPiSuccess?b5({area:c.area,scenario:"AmcCancelInDunning",data:o.service.bi}):Er({area:c.area,scenario:"AmcCancelInDunning",fromStep:"switchdunning.purchasesubs.pierror.continue",step:"switchdunning.purchasesubs.details",data:o.service.bi})),e.isAddPiFailed?(a=P6(s.addEditPiError,"RedirectGenericError"),Cr({step:"saveflow.downgrade-plan.failure.addPi",error:w6(a.errorCode),data:{isUserError:!0,timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(ISe,{componentName:"".concat(n,"-error-dialog"),title:a.errorTitle||s.changePaymentGenericErrorTitle,errorMessage:a.errorMessage||s.genericErrorMessage,buttonText:l.closeButton}))):void 0!==r?r?(d=K5(),T6(d.selectedPiid,d.pi.id),d.isBackup?wSe(km(km({},o),{},{primaryPI:{id:d.csvPiid,displayName:d.csvPaymentName,paymentMethodType:R6},backupPI:d.pi})):wSe(km(km({},o),{},{primaryPI:d.pi})),"Succeeded"===d.challengeStatus||"NotApplicable"===d.challengeStatus?(Cr({step:"India2FARedirectSuccess.Challenge".concat(d.challengeStatus)}),o.pageName===cye?(Cr({step:"saveflow.dunning.purchaseSubStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(USe,{paymentSessionId:d.sessionId,challengeStatus:d.challengeStatus,isSoldToAddressRequired:d.isSoldToAddressIdRequired}))):o.service.billingState===t7.InDunning?(Cr({step:"saveflow.dunning.cancelSubStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(WSe,{paymentSessionId:d.sessionId,challengeStatus:d.challengeStatus,isSoldToAddressRequired:d.isSoldToAddressIdRequired}))):(Cr({step:"saveflow.downgrade-plan.switchSubscriptionStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp}}),i.switchToDialog(jt().createElement(MSe,{paymentSessionId:d.sessionId,challengeStatus:d.challengeStatus,isSoldToAddressRequired:d.pi.isSoldToAddressRequired})))):(p={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:d.challengeStatus},Cr({step:"India2FAChallengeStatusError.Challenge".concat(d.challengeStatus)}),u(p))):(h=U5(),Cr({step:"India2FARedirectFailed"}),u(h)):(Cr({step:"saveflow.downgrade-plan.PiPickerStart",data:{timeElapsedFromCancelScenarioStart:Date.now()-o.cancelScenarioStartTimeStamp,timeElapsedFromDialogScenarioStart:Date.now()-o.downgradeDialogScenarioStartTimeStamp,piType:null===(m=o.primaryPI)||void 0===m?void 0:m.paymentMethodType}}),i.switchToDialog(jt().createElement(HSe,null)));case 3:case"end":return t.stop()}}),t)}))));var d=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Sr(),i.closeDialog();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p={title:s.tryAgainTitle,subText:s.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:d,text:s.close,"aria-label":s.close,"data-bi-id":"".concat(n,"-close-window")}}},h={isOpen:!0,onDismiss:d,operationData:{progressViewOperationData:{operationName:r,componentName:n},errorDialogProps:p},minBodyHeight:m5,dialogStylesTemp:h5};return jt().createElement(CM,h,jt().createElement(dv,{operationData:{componentName:n,operationName:r},updatingView:jt().createElement(jt().Fragment,null),firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},jSe="launchDowngradeSwitchDialog",qSe="isDowngradeSwitchIndia2FASuccess",KSe="timeStamp",YSe="nextChargeDate",XSe="cycleLength",QSe="cycleUnit",ZSe="taxType",JSe="price",$Se="title",exe=function(e){var t,n=e.service,r=e.selectedSwitchPath,o=e.dialogController,i=e.cancelScenarioStartTimeStamp,a=e.cancelRefundData,s=e.pageName;if(n){var l=null!==(t=gn(J6,!0))&&void 0!==t?t:void 0,c=mn(U6,W6),u=mn(G6,j6);if(c||mn(jSe,Z6)){var d={service:n,downgradePath:r,primaryPI:l?{id:l}:void 0,isAddPiFailed:c,isAddPiSuccess:u,cancelScenarioStartTimeStamp:i,cancelRefundData:a,pageName:s};o.openDialog(jt().createElement(GSe,d)),hn(jSe),hn(U6),hn(G6)}}},txe=function(e,t,n){var r,o,i,a=[_m({},jSe,"true"),_m({},Y6,t.productId),_m({},K6,t.skuId),_m({},X6,null!==(r=t.availabilityId)&&void 0!==r?r:""),_m({},YSe,t.nextChargeDate),_m({},XSe,null===(o=t.cycleLength)||void 0===o?void 0:o.toString()),_m({},QSe,t.cycleUnit),_m({},ZSe,t.taxType),_m({},JSe,t.price),_m({},$Se,t.title),_m({},KSe,null!==(i=n.toString())&&void 0!==i?i:"0")];return pn(e,a)},nxe=function(e,t,n){var r="/".concat(e,"/details?forceReload=true#billing");return txe(r,t,n)},rxe=function(e,t,n){return txe(e,t,n)},oxe=function(){var e=Xve().content.manage.onedriveBenefits;return jt().createElement(NO,{backgroundType:"card",featureHeading:{tag:"h2",variant:"paneHeader",text:e.benefitsTitle},bodyText:e.benefitsText,bodyTextVariant:"bodyPrimaryText",borderRadius:"8px",ctaProps:[{actionProps:{"aria-label":e.ctaText,"data-bi-id":"onedrive-benefits",kind:"button",onClick:function(){window.open(dn(e.ctaLink,"ocid","PROD_AMC_CONS_OD_Benefits"),"_blank")},text:e.ctaText,type:"primary"}}],height:"small",imageProps:{alt:e.featureImage.alt,src:e.featureImage.src},layoutType:"2/3"})},ixe=function(e,t,n){var r,o,i,a,s=jt().createElement(Ib,{variant:"headerText"},e.devicesSectionTitle),l=[];if(null!==(r=t.installDetails)&&void 0!==r&&r.canUseInstallOptions&&0===(null===(o=t.installDetails)||void 0===o?void 0:o.installsUsed.length)){var c={shadow:!1,label:e.devicesSectionColdStartTitle,links:[]};return jt().createElement($R,{id:"devices-list-coldstate",isAlwaysExpanded:!0,showDivider:!0,showDefaultHeaderDivider:!0,footer:c})}if(null!==(i=t.installDetails)&&void 0!==i&&i.showInstallations)return null===(a=t.installDetails)||void 0===a||a.installsUsed.forEach((function(t,r){l.push(jt().createElement(SR,{id:"devices-list-item".concat(r),key:r,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"image",src:e.desktopIcon},size:"md"},title:t.machineName,titleTextVariant:"headerText"}),jt().createElement(nR,{textElements:[{children:e.devicesSectionTitle,variant:"bodySecondaryText"}]}),jt().createElement(Tw,{actionButtonProps:[{"aria-label":sn(e.signoutButtonAria,{machineName:t.machineName}),"data-bi-id":"sign-out",iconName:"SignOut",onClick:function(){n(t.machineName,t.machineKey)},text:e.signoutButton}],contentType:"none"})],variant:"SixThreeThree"}))})),jt().createElement($R,{isAlwaysExpanded:!0,id:"devices-list-section",listItemBackgroundColor:"neutralMed",header:s},l)},axe=function(e,t,n){var r;if(null!==(r=t.installDetails)&&void 0!==r&&r.canUseInstallOptions){var o=e.installSectionLogoDefender;return jt().createElement(NO,{backgroundType:"card",borderRadius:"0px",showShadow:!1,layoutType:"2/3",height:"small",bodyText:e.installSectionDescription,ctaProps:[{actionProps:{"aria-label":e.installSectionCta,"data-bi-id":"link-install-office",kind:"button",onClick:function(){n()},text:e.installSectionCta,type:"primary"}}],featureHeading:{tag:"h2",variant:"statusHeader",text:e.installSectionTitle},imageProps:{alt:o.alt,src:o.src},id:"install-office-section"})}},sxe=function(e){var t=e.data,n=zye(),r=gbe(),o=Xve(),i=EM(),a=o.content.install,s=o.content.common;vn(n,"Service in DeactivateInstallDialog");var l=Bve().area,c=mi(),u=t.machineName,d=t.machineKey,p="deactivate-install",h="deactivate-install-dialog",m=aI();Qt((function(){br({area:l,scenario:"AmcDeactivateInstall",step:"DeactivateInstall.Index",data:n.bi}),c({name:p,status:"inert"})}));var f=function(){i.closeDialog()},g=function(){var e=Zve(fve().mark((function e(){var t,o,i,s;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Cr({step:"DeactivateInstall.Final"}),c({name:p,status:"updating"}),m({type:"push",announcement:{message:a.deactivatingMessage.replace("{productId}",n.name).replace("{machineName}",u)}}),e.prev=3,e.next=6,h9(d);case 6:r.onServiceUpdate(),c({name:p,status:"finished"}),_r({data:n.bi}),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(3),i=e.t0,s=(null===(t=i.response)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.error)||"deactivateInstallNoErrorCode",c({name:p,status:"failed",error:e.t0}),_r({error:s,data:{isUserError:b8.indexOf(s)>-1,errorDetails:e.t0}});case 17:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),v={title:a.installErrorTitle,subText:a.deactivateErrorMessage.replace("{productId}",n.name).replace("{machineName}",u),dialogFooterProps:{buttonPrimary:{onClick:function(){c({name:p,status:"finished"}),ebe()},text:a.tryAgain,"aria-label":a.tryAgain,"data-bi-id":"deactivate-install-try-again"},buttonSecondary:{onClick:f,text:s.closeButton,"aria-label":s.closeButton,"data-bi-id":"deactivate-install-error-close"}}},y={title:a.deactivateSuccessTitle.replace("{productId}",n.name).replace("{machineName}",u),subText:a.deactivateSuccessText,dialogFooterProps:{buttonPrimary:{onClick:f,text:s.doneButton,"aria-label":s.doneButton,"data-bi-id":"deactivate-install-success"}}},b={progressViewOperationData:{operationName:p,componentName:h},errorDialogProps:v,successDialogProps:y},C={isOpen:!0,onDismiss:f,title:a.deactivateTitle.replace("{productId}",n.name).replace("{machineName}",u),closeButton:{"data-bi-id":"close","aria-label":s.closeButton},dialogFooterProps:{buttonPrimary:{onClick:g,text:a.signoutButton,"aria-label":a.signoutButtonAria.replace("{machineName}",u),"data-bi-id":"deactivate-install"},buttonSecondary:{onClick:function(){xr(),f()},text:s.cancelButton,"aria-label":s.cancelButton,"data-bi-id":"deactivate-cancel"}},operationData:b},S=jt().createElement(Ib,null,a.deactivateConfirmMessage.replace("{productId}",n.name));return jt().createElement(CM,C,jt().createElement(dv,{operationData:{componentName:h,operationName:p},inertView:S,updatingView:S,firstLoadView:S,finishedView:jt().createElement(jt().Fragment,null)}))},lxe=function(e,t,n,r,o,i,a){var s,l=[{column:jt().createElement(tw,{media:{size:"md",image:{imageType:"image",src:n.installDrawerLogo.src}},title:{kind:"text",children:n.installDrawerTitle},subtitleTextProps:{children:n.installDrawerSubtitle}}),slots:9},{column:jt().createElement(ck,{actionAlignment:"flex-end",actionButton:{onClick:function(){o()},text:n.installSectionCta,"aria-label":n.installSectionCta,"data-bi-id":"drawer-link-install-office",type:i},"data-bi-id":"".concat(r.modelId,"-install-more-action"),"aria-label":n.moreOptionsAriaLabel}),slots:3}];if(null!==r&&void 0!==r&&null!==(s=r.installDetails)&&void 0!==s&&s.canUseInstallOptions)return{defaultExpanded:e,id:"install-office-drawer",drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:l}),onClickToOpen:function(){a("default"),t({isFirstLoad:!1,isDrawerOpened:!0})},onClickToClose:function(){a("primary"),t({isFirstLoad:!1,isDrawerOpened:!1})}}},cxe=function(e){var t,n=e.initialDrawerOpenedState,r=e.setInitialDrawerOpenedState,o=Xve().content.install,i=zye(),a=EM(),s="openInstall",l="true",c="forceWebInstall",u="true",d=function(){a.openDialog(jt().createElement(Gbe,{onHideDialog:p}))},p=function(){mn(s,l)&&hn(s),mn(c,u)&&hn(c),a.closeDialog()},h=Ua((0,Gt.useState)("primary"),2),m=h[0],f=h[1],g=(0,Gt.useRef)(null),v="#install";Qt((function(){var e;0===(null===i||void 0===i||null===(e=i.installDetails)||void 0===e?void 0:e.installsUsed.length)&&f("default")})),(0,Gt.useEffect)((function(){window.location.hash===v&&(window.location.hash="",f("default"),g.current.focus(),g.current.scrollIntoView())}),[]);var y=n.isFirstLoad?window.location.hash===v||0===(null===i||void 0===i||null===(t=i.installDetails)||void 0===t?void 0:t.installsUsed.length):n.isDrawerOpened;(n.isFirstLoad||n.isDrawerOpened!==y)&&r({isFirstLoad:!1,isDrawerOpened:y});var b,C=i?jt().createElement(iL,{drawerAreaProps:lxe(y,r,o,i,d,m,f),highlightArea:axe(o,i,d),detailsArea:ixe(o,i,(function(e,t){var n={machineName:e,machineKey:t};a.openDialog(jt().createElement(sxe,{data:n}))}))}):jt().createElement(jt().Fragment,null),S=mn(s,l)||mn(c,u);return(0,Gt.useMemo)((function(){var e;null!==i&&void 0!==i&&null!==(e=i.installDetails)&&void 0!==e&&e.canUseInstallOptions&&S&&d()}),[S,i]),jt().createElement(dv,{operationData:{componentName:"install-view",operationName:KTe},firstLoadView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement("div",{ref:g},jt().createElement(bb,{childrenGap:(b=ny(),"s"===b?24:32)},C))})},uxe=function(){return VCe.useValue()},dxe=function(t){var n,r=t.footnoteMap,o="cancel-benefits-cards",i="shareSubscriptions",a=Xve().content.cancel,s=Bve(),l=qo(),c=zye(),u=uxe(),d=!(null===u||void 0===u||null===(n=u.benefitesContent)||void 0===n||!n.ad),p=M_e().isTurnOffRB;if(!c)throw new Error("Service details not found");var h=function(t,n){var a,u="".concat(o,"-").concat(t,"-cta"),p=d||t!==i&&"installOffice"!==t?void 0:function(){l.push(n.coldLink.url)},h=function(t){var n,r=t.card,o=t.area,i=t.dataBiIdSuffix,a=t.isSmallerImg,s=void 0!==a&&a,l=t.customOnClick;n=r.coldAnimation?{graphicType:"animation",src:r.coldAnimation.src,alt:r.coldAnimation.alt,animationTrigger:"hover"}:(0,e.__assign)((0,e.__assign)({graphicType:"image"},r.coldImage),{isSmallerImg:s});var c={text:r.coldLink.text,"aria-label":r.coldLink.ariaLabel||r.coldLink.text,"data-bi-id":"".concat(o,".cards.").concat(i)};return{headerProps:r.coldTitle?{text:r.coldTitle,"aria-label":r.coldTitle}:void 0,detailsProps:{heading:r.coldHeading,text:r.coldDescription},graphicProps:n,ctaProps:l?(0,e.__assign)((0,e.__assign)({},c),{onClick:l}):(0,e.__assign)((0,e.__assign)({},c),{href:r.coldLink.url,target:ine(r.coldLink.target)}),id:"".concat(o,".cards.").concat(i)}}({card:n,area:s.area,dataBiIdSuffix:null!==(a=n.biId)&&void 0!==a?a:u,isSmallerImg:!c.isXboxBrandId,customOnClick:p});return null!==r&&void 0!==r&&r.includes(t)?km(km({},h),{},{detailsProps:km(km({},h.detailsProps),{},{text:{variant:"metadataText",textWithTokens:n.coldDescription,tokensAndValues:{superScript:jt().createElement("sup",{style:{verticalAlign:"super",fontSize:"10px"}},r.indexOf(t)+1)}}})}):h};return jt().createElement(bb,{childrenGap:"25px"},jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneTitle"},c.isXboxBrandId?p?a.xbox.rbTurnOffPageSubTitle.replace("{subName}",c.name):a.xbox.cancelPageSubTitle.replace("{subName}",c.name):function(){var e,t;return null!==u&&void 0!==u&&null!==(e=u.benefitesContent)&&void 0!==e&&null!==(t=e.ad)&&void 0!==t&&t.benefitsHeading?u.benefitesContent.ad.benefitsHeading.replace("{subscription-name}",c.name):c.isM365BasicSku?a.m365.benefitsTitleBasic:a.m365.benefitsTitle.replace("{subName}",c.name)}())),jt().createElement(WP,null,(c.isXboxBrandId?Object.entries(function(){if(c.brandId===H7.XboxLive&&zs(ube,!1)){var e="".concat(c.brandId.toLowerCase(),"New");return a.xbox.brandIdBenefitsMapping[e]}return a.xbox.brandIdBenefitsMapping[c.brandId.toLowerCase()]}()):d?function(){var e=c.isHomeSKU&&null!==c.sharingDetails,t=[];return Object.entries(a.m365.benefitsCards).forEach((function(n){var r,a,s,l,c,d,p=Ua(n,2),h=p[0],m=p[1];if(e||h!==i){var f=null===u||void 0===u||null===(r=u.benefitesContent)||void 0===r?void 0:r.ad,g=km(km({},m),{},{coldHeading:null!==(a=f["".concat(h,"Heading")])&&void 0!==a?a:m.coldHeading,coldDescription:null!==(s=f["".concat(h,"Subheading")])&&void 0!==s?s:m.coldDescription,coldLink:km(km({},m.coldLink),{},{text:null!==(l=f["".concat(h,"LinkText")])&&void 0!==l?l:m.coldLink.text,url:null!==(c=f["".concat(h,"LinkUrl")])&&void 0!==c?c:m.coldLink.url}),coldImage:km(km({},m.coldImage),{},{src:null!==(d=f["".concat(h,"Image")])&&void 0!==d?d:m.coldImage.src}),biId:"iris-".concat(o,"-").concat(h,"-cta")});t.push([h,g])}})),t}():function(){var e=c.isHomeSKU&&null!==c.sharingDetails,t=c.isM365BasicSku?a.m365.benefitsCardsBasic:a.m365.benefitsCards,n=[];return Object.entries(t).forEach((function(t){var r=Ua(t,2),o=r[0],a=r[1];if(e||o!==i){var s=km(km({},a),{},{coldImage:km(km({},a.coldImage),{},{alt:""})});n.push([o,s])}})),n}()).map((function(e,t){var n=Ua(e,2),r=n[0],o=n[1],i=h(r,o);return jt().createElement(X4,Object.assign({key:t},i,{detailsProps:i.detailsProps}))}))))},pxe="access",hxe=function(e){var t=e.footnoteMap,n=e.padding,r=Xve().content.cancel.strings.footnoteList;return jt().createElement(bb,{childrenGap:12,padding:n||"32px 0px 0px 0px"},Object.entries(t).map((function(e,t){var n=Ua(e,2),o=(n[0],n[1]),i=t+1;return jt().createElement(Ib,{variant:"bodySecondaryText",key:"footnote-".concat(t)},"".concat(i.toString(),". ").concat(r[o]))})))},mxe=function(e){var t=e.oneDriveText,n=e.superscript,r=e.gb,o=e.tb,i=e.usq,a=zye(),s={};return s=null!==a&&void 0!==a&&a.isM365BasicSku?{amount:jt().createElement(Ib,{weightOverride:"bold"},Gee(i.used,r,o))}:{usage:jt().createElement(Ib,{weightOverride:"bold"},Gee(i.used,r,o)),superscript:jt().createElement("sup",{style:{verticalAlign:"super",fontSize:"10px"}},n)},jt().createElement("li",null,jt().createElement(ox,{textWithTokens:t,tokensAndValues:s}))},fxe=function(e){var t,n,r,o,i,a,s,l,c,u,d=e.footnoteMap,p=e.usqData,h=zye(),m=Xve().content.cancel.strings.messageBarContent,f=uxe(),g=M_e().isTurnOffRB;if(!h)throw new Error("Service details not found");h.isM365BasicSku?a=m.onedriveBulletPointBasic:a=null!==(s=null===f||void 0===f||null===(l=f.benefitesContent)||void 0===l?void 0:l.ad.oneDriveMessage)&&void 0!==s?s:m.onedriveBulletPoint;(c=g?m.messageBarHeaderRB.replace("{endDate}",gx(h.endDate)):h.isM365BasicSku?m.messageBarHeaderCancelBasic:m.messageBarHeaderCancel,null!==f&&void 0!==f&&null!==(t=f.benefitesContent)&&void 0!==t&&t.ad.messageBarHeading)&&(c=null!==(u=f.benefitesContent.ad.messageBarHeading)&&void 0!==u?u:c);var v=null!==(n=null===f||void 0===f||null===(r=f.benefitesContent)||void 0===r?void 0:r.ad.sharingMessage)&&void 0!==n?n:m.sharingBulletPoint,y=null!==(o=null===f||void 0===f||null===(i=f.benefitesContent)||void 0===i?void 0:i.ad.installMessage)&&void 0!==o?o:m.devicesBulletPoint,b=gxe(a,d.indexOf(pxe)+1,m.gigabyteString,m.terabyteString,p),C=vxe(h,v,m.range),S=yxe(h,y,m.range),x=!b&&!C&&!S,_="rtl"===window.document.dir,E={0:jt().createElement("div",{style:{lineHeight:"20px"}},jt().createElement("div",{style:km(km({},_?{right:"2px"}:{left:"2px"}),{},{position:"relative"})},jt().createElement(bb,{horizontal:!0,childrenGap:12},jt().createElement(Hy,{iconName:"Info",color:"neutralSecondary"}),jt().createElement(Ib,null,c))),x?jt().createElement(jt().Fragment,null):jt().createElement(jt().Fragment,null,jt().createElement("div",{style:km(km({},_?{right:"-16px"}:{left:"-16px"}),{},{position:"relative",width:"calc(100% + 28px)"})},jt().createElement(Y4,null)),jt().createElement("ul",{style:km(km({},_?{paddingRight:"20px"}:{paddingLeft:"20px"}),{},{position:"relative"})},b,C,S)))},k=h.isM365BasicSku?"0px":"20px 0px";return b||C||S?jt().createElement(bb,{padding:k,childrenGap:"12"},jt().createElement(GF,{messageBarType:"warning",messageBarVariant:"floating",hideIcon:!0,messageContent:{textWithTokens:"{0}",tokensAndValues:E}})):jt().createElement(jt().Fragment,null)},gxe=function(e,t,n,r,o){if(o&&o.used>F7)return jt().createElement(mxe,{oneDriveText:e,superscript:t,gb:n,tb:r,usq:o})},vxe=function(e,t,n){var r,o;if(e.sharingDetails&&(null!==(r=e.sharingDetails.familyUsers)&&void 0!==r&&r.length||null!==(o=e.sharingDetails.guestUsers)&&void 0!==o&&o.length)){var i=e.sharingDetails.familyUsers;if(e.sharingDetails.guestUsers.length&&(i=i.concat(e.sharingDetails.guestUsers)),0!==i.length){var a={subscription:jt().createElement(Ib,{weightOverride:"bold"},e.name),count:jt().createElement(Ib,{weightOverride:"bold"},sn(n,{firstNumber:i.length,secondNumber:e.sharingDetails.totalSlots-1}))};return jt().createElement("li",null,jt().createElement(ox,{textWithTokens:t,tokensAndValues:a}))}}},yxe=function(e,t,n){var r,o=e.installDetails;if(o&&null!==(r=o.installsUsed)&&void 0!==r&&r.length){var i={count:jt().createElement(Ib,{weightOverride:"bold"},sn(n,{firstNumber:o.installsUsed.length,secondNumber:o.maximumInstallations}))};return jt().createElement("li",null,jt().createElement(ox,{textWithTokens:t,tokensAndValues:i}))}},bxe=0,Cxe=1,Sxe=2,xxe=3,_xe=4,Exe=5,kxe=6,wxe=7,Ixe=function(e,t){return-1!==("undefined"!==typeof e?e.split(","):[]).map((function(e){return e.toUpperCase().trim()})).indexOf(t.toUpperCase())},Pxe=["KW","GB","MK","BH","LB","LT","JO","RS","ZA","EE","IL","AE","OM","QA","LV","EG","IE","BG","SA"],Txe=function(e,t,n){return zs("SvcTalkToAgent")&&(null===e||void 0===e?void 0:e.isM365FullSku)&&!(null!==e&&void 0!==e&&e.isTrial)&&("US"===(null===e||void 0===e?void 0:e.market)&&"en-US"===t||Pxe.includes(null===e||void 0===e?void 0:e.market)&&"en-GB"===t&&zs("SvcTalkToAgentExpansion",n))},Dxe=function(e,t){return t.flow>=0&&t.flow<=7?km(km({},e),t):{flow:Exe,cancelErrorProps:{cancelFlow:X8,cancelError:{}}}},Axe="isCovidOfferIndia2FASuccess";function Rxe(e){var t=V5(Axe,!0);return e?dn(t,N6,e):t}var Nxe=function(e){var t="",n="",r="";switch(e){case H7.XboxGamePassUltimate:r=[nte.MostPopular,nte.ComingSoon,nte.RecentlyAdded,nte.PicksForYou].join(","),t=["Cloud","Console"].join(","),n="PC";break;case H7.PCGamePass:n="PC",r=[nte.MostPopular,nte.ComingSoon,nte.RecentlyAdded,nte.PicksForYou].join(","),t="PC"}return{gamingPlatforms:t,pfuCategory:n,surfaces:r}},Mxe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="undefined"!==typeof e?e.split(","):[];return-1!==n.map((function(e){return e.toUpperCase().trim()})).indexOf(t.toUpperCase())},Fxe=function(e){window.O365Shell.NFD.OpenHelp(e)};function Bxe(e){return Oxe.apply(this,arguments)}function Oxe(){return Oxe=Zve(fve().mark((function e(t){var n,r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return e.requestPromise})),e.next=3,Promise.all(n.map((function(e){return e.then((function(e){return{status:"fulfilled",value:e}})).catch((function(e){return{status:"rejected",reason:e}}))})));case 3:(r=e.sent).forEach((function(e,n){if("fulfilled"===e.status){var o=null===e||void 0===e?void 0:e.value;t[n].onSuccessCallback(o)}else if("rejected"===r[n].status){var i=null===e||void 0===e?void 0:e.reason;t[n].onFailureCallback(i)}}));case 5:case"end":return e.stop()}}),e)}))),Oxe.apply(this,arguments)}var Lxe=function(e,t){var n=!1,r=!1;if(t===H7.XboxGamePassUltimate){var o=zs("XGPUPhaseTwo",!!e),i=zs("XGPUPhaseTwoComingSoon",!!e);n=o||i}else if(t===H7.PCGamePass){var a=zs("PCGamePassPhaseTwo",!!e),s=zs("PCGamePassPhaseTwoComingSoon",!!e);r=a||s}return n||r},Hxe=function(e){var t=e.pageTitle,n=e.gameInfo,r=void 0===n?{}:n,o=e.profileInfo,i=Xve().content,a=i.common,s=i.cancel,l=s.strings.breadcrumbContent,c=s.xbox.gameInfoFeature,u=Bve(),d=zye(),p=uxe(),h=M_e().isTurnOffRB,m=ny(),f=Lxe(!1,d.brandId);if(!d)throw new Error("Service details not found");var g=Kt(l.turnOffAR,d.market),v=[{type:"route",to:"/",id:"landing",text:l.landing},{type:"route",to:"/".concat(d.modelId,"/details#overview"),id:"details",text:d.name,mediaProps:{kind:"image",src:d.brandLogo,alt:bn(a.logoAriaLabel,d.name)}},{type:"text",id:"cancel",text:h?g:l.cancel}],y=null!==t&&void 0!==t?t:d.isXboxBrandId?function(){var e="";return h?(e=s.xbox.rbTurnOffPageTitle,f?e=s.strings.cancelPageTitle.replace("{subName}",null===d||void 0===d?void 0:d.name):null!==o&&void 0!==o&&o.fullName&&(e=s.xbox.rbTurnOffPageTitleWithName,Object.keys(r).length>0&&(e=c.cancelPageTitleWithNameMostPopular,d.brandId!==H7.XboxGamePassUltimate&&d.brandId!==H7.PCGamePass||(e=c.cancelPageTitleWithGamesCategories.replace("{subName}",null===d||void 0===d?void 0:d.name))),e=e.replace("{userName}",null===o||void 0===o?void 0:o.fullName).replace("{name}",null===o||void 0===o?void 0:o.fullName))):(e=s.xbox.cancelPageTitle,f?e=s.strings.cancelPageTitle.replace("{subName}",null===d||void 0===d?void 0:d.name):null!==o&&void 0!==o&&o.fullName&&(e=s.xbox.cancelPageTitleWithName,Object.keys(r).length>0&&(e=c.cancelPageTitleWithNameMostPopular,d.brandId!==H7.XboxGamePassUltimate&&d.brandId!==H7.PCGamePass||(e=c.cancelPageTitleWithGamesCategories.replace("{subName}",null===d||void 0===d?void 0:d.name))),e=e.replace("{userName}",null===o||void 0===o?void 0:o.fullName).replace("{name}",null===o||void 0===o?void 0:o.fullName))),e}():function(){var e;return null!==p&&void 0!==p&&null!==(e=p.benefitesContent)&&void 0!==e&&e.ad.heading?p.benefitesContent.ad.heading.replace("{subscription-name}",d.name):(h?Kt(s.strings.turnOffARPageTitle,d.market):s.strings.cancelPageTitle).replace("{subName}",d.name)}();return jt().createElement(bb,{margin:"16px 0px 0px 0px"},jt().createElement(bb,{childrenGap:d.isM365BasicSku?"18":"20"},jt().createElement(hI,{expanded:!1},jt().createElement(LI,{breadcrumbTitleProps:{ariaLabel:l.ariaLabel,items:v,pageArea:u.area,overflowAriaLabel:l.overflowAriaLabel,isIncludingCurrentPage:!0,dataBiPrefix:"".concat(d.brandId,"-cancel-breadcrumb"),overflowIndex:1}})),jt().createElement(nb,{variant:function(){switch(m){case"s":return"paneTitle";case"m":case"l":return"statusHeader";case"xl":case"xxl":case"xxxl":return"pageTitle"}}(),tag:"h1"},y)))},Vxe=function(){var e=zye(),t=Xve().content.cancel.strings,n=ny(),r=["s","m"].includes(n);if(!e)throw new Error("Service details not found");var o=r?"16px":"14px 16px";return jt().createElement(bb,null,jt().createElement(bb,{horizontal:!r,boxShadow:!0,borderRadius:"8px",backgroundColor:"neutralHigh",padding:o,verticalAlign:"center",horizontalAlign:"space-between",childrenGap:r?"8px":"24px"},jt().createElement(Cb,{shrink:1},jt().createElement(Ib,null,e.brandId===H7.XboxGamePassUltimate?t.faqTitleUltimate:t.faqTitlePCGamepass)),jt().createElement(Cb,{shrink:0},jt().createElement(rx,{"aria-label":t.faqLink,"data-bi-id":"faq-".concat(e.brandId.toLowerCase()),onClick:function(){e.brandId===H7.XboxGamePassUltimate?Fxe(yye):e.brandId===H7.PCGamePass&&Fxe(bye)}},t.faqLink))))};var zxe=[2e3,2040],Uxe=function(){var e=Zve(fve().mark((function e(t){var n,r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?["services.save.turnoffar","services.save.keep","services.save.turnoffarconfirm"]:["services.save.cancel","services.save.canceloption","services.save.keep","services.save.cancelconfirm"],e.prev=1,e.next=4,MCe(n);case 4:r=e.sent,Wxe(r),e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(1),Br({name:"Ms.Webi.MeePortal.IrisCampaignErrorEvent",componentName:"services.saveflow.office",message:e.t0.toString()}),e.abrupt("return");case 13:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),Wxe=function(e){var t;if(!e)throw Error("No response from Iris");if("error"in e){var n=e.error;throw Error("Iris get campaigns error code ".concat(n.code,": ").concat(n.msg))}null!==(t=e.batchrsp)&&void 0!==t&&t.items||!e.batchrsp.errors?Gxe(e.batchrsp.items):e.batchrsp.errors&&e.batchrsp.errors.forEach((function(e){if(!zxe.includes(e.code))throw Error("Iris get campaigns error from placement ".concat(e.placement,", error code: ").concat(e.code,", error message: ").concat(e.msg))}))},Gxe=function(e){var t,n,r,o,i,a,s,l=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=za(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=c.placement;switch(u){case"88000417":case"88000418":case"88000430":case"88000431":t=JSON.parse(c.item);break;case"88000423":case"88000424":n=JSON.parse(c.item);break;case"88000421":case"88000422":r=JSON.parse(c.item);break;case"88000415":case"88000416":o=JSON.parse(c.item);break;case"88000428":case"88000429":i=JSON.parse(c.item);break;default:throw Error("Placement getting from Iris is not recognized, placement id: ".concat(u))}}}catch(d){l.e(d)}finally{l.f()}s={benefitesContent:t,cancelSelectionContent:n,keepSubContent:r,cancelConfirmationContent:o,turnoffRbConfirmationContent:i},VCe.setValue(s)},jxe=function(e){var t=null===e||void 0===e?void 0:e.prm._imp;return t?jt().createElement(zk,{imageType:"ariaHiddenImage",src:t}):jt().createElement(jt().Fragment,null)},qxe=function(e,t){var n,r=e.tracking.baseUri;if(r){var o=r.replace(/{ACTION}/g,t),i=(n=o)&&n.replace(/^http:\/\//i,"https://");return jt().createElement(zk,{imageType:"ariaHiddenImage",src:i})}return jt().createElement(jt().Fragment,null)},Kxe=function(e){var t=e.cancelRefundData,n=e.bypassBenefitsPage,r=e.onConfirm,o=e.onKeep,i=e.isTurnOffRB,a=void 0!==i&&i,s=zye();if(!s)throw new Error("Service details not found");var l=Xve().content.cancel,c=EM(),u=qo(),d=t.data.isCancelInDunning,p="",h="",m="",f="";Qt((function(){var e=function(e,t,n,r){var o=n.strings.confirmationDialogContent,i=e.data.refundData,a=e.cancelFlow,s=e.data.isCancelInDunning,l=n.strings.cancelDunningGamesList,c=Ixe(l,t.brandId),u="",d=o.cancelTitle,p=o.cancelSubscription,h=n.strings.keepSubscriptionButtonText;switch(t.category){case $9:a===J8&&s&&c?(u=sn(o.cancelNowDunningConfirm,[t.name,gx(new Date)]),h=n.strings.confirmationContent.backToSubscription):a===Z8?(t.daysRemaining>1&&(u=sn(o.cancelTimeRemainingDays,[t.daysRemaining,t.name])),u+=sn(o.turnOffArConfirm,[gx(t.endDate)]),r&&(u=sn(o.turnOffArConfirmMessage,[t.name,gx(t.endDate)]),d=Kt(o.turnOffArTitle,null===t||void 0===t?void 0:t.market),p=Kt(n.strings.arTurnOffButtonText,null===t||void 0===t?void 0:t.market),h=Kt(n.strings.arContinueButtonText,null===t||void 0===t?void 0:t.market))):s?(u=o.cancelNowConfirmLine2+o.cancelConfirmNoRestore,h=n.strings.confirmationContent.backToSubscription):(t.daysRemaining>1&&(u=sn(o.cancelTimeRemainingDays,[t.daysRemaining,t.name])),u+=o.cancelNowConfirmLine2,u="".concat(u," ").concat(sn(o.cancelConfirmPageRefund,i.amountFormatted)),u="".concat(u," ").concat(o.cancelConfirmNoRestore));break;case e7:a===Z8?(d=o.turnOffRbTitle,u=sn(o.turnOffArConfirmTrial,[t.name,gx(t.endDate)]),p=n.strings.rbTurnOffButtonText,h=n.strings.rbContinueButtonText):(t.daysRemaining>1&&(u=sn(o.cancelTimeRemainingDaysTrial,[t.daysRemaining,t.name])),u+=o.cancelNowConfirmLine2,u="".concat(u," ").concat(sn(o.cancelNowNoCharge,i.amountFormatted)),u="".concat(u," ").concat(o.cancelConfirmNoRestore))}return{confirmMessage:u,dialogTitle:d,confirmButton:p,keepButton:h}}(t,s,l,a);p=e.confirmMessage,h=e.dialogTitle,m=e.confirmButton,f=e.keepButton}));var g={closeButton:{"aria-label":"Close","data-bi-id":"close-btn"},isOpen:!0,onDismiss:function(){xr(),c.closeDialog(),n&&u.push("/".concat(s.modelId,"/details#billing"))},dialogFooterProps:{buttonPrimary:{"aria-label":m,"data-bi-id":"cancel-select-cancel",id:"cancel-select-cancel",onClick:function(){c.closeDialog(),r()},text:m},buttonSecondary:{"aria-label":f,"data-bi-id":"cancel-select-keep",onClick:function(){Cr({step:"saveflow.keep"}),c.closeDialog(),d&&function(e){return!(null!==e&&void 0!==e&&e.isM365BrandId||null!==e&&void 0!==e&&e.isXboxBrandId)}(s)?(xr(),u.push("/".concat(s.modelId,"/details#billing"))):o()},text:f,id:"cancel-select-keep"}},title:h,subText:p,removeBodyBottomPadding:!0};return jt().createElement(CM,g)},Yxe=function(e){var t=e.dialogType,n=e.refundData,r=e.bypassBenefitsPage,o=e.onCancel,i=e.onKeep,a=e.onTurnOffRecurringBilling,s="".concat(t,"-cancel-select"),l=Xve().content.cancel,c=EM(),u=qo(),d=zye();if(!d)throw new Error("Service details not found");var p,h=uxe(),m=d.isDowngradePending,f=Ua((0,Gt.useState)(RSe),2),g=f[0],v=f[1],y=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),b=y[0],C=y[1],S=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),x=S[0],_=S[1];d.isM365BrandId&&null!==h&&void 0!==h&&h.cancelSelectionContent&&(p=null===h||void 0===h?void 0:h.cancelSelectionContent);var E,k,w,I,P,T,D,A,R,N,M,F,B,O,L,H,V,z,U,W=function(){setTimeout((function(){c.closeDialog()}),100)},G=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p?(C(qxe(p,"click")),W()):c.closeDialog(),g===RSe?a():o();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){p?(_(qxe(p,"click1")),W()):c.closeDialog(),r&&(xr(),u.push("/".concat(d.modelId,"/details#billing")))},q=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Cr({step:"saveflow.keep"}),p?(_(qxe(p,"click1")),W()):c.closeDialog(),i();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){xr(),u.push("/".concat(d.modelId,"/details#billing"))},Y=l.strings.cancelSelectionDialog,X="m365"===t?l.strings.cancelSelectionChoiceGroup:l.xbox.cancelSelectionChoiceGroup,Q=l.strings.confirmationContent.backToSubscription,Z=gx(d.endDate),J=n.amountFormatted;d.isM365BrandId&&!p?(E=Y.dialogHeading.replace("{subName}",d.name),k=X.turnOffRBOptionTextBasic,w=X.turnOffRBOptionAriaLabelBasicExt,I=X.turnOffRBOptionSubTextBasic,P=X.cancelNowOptionTextBasic,T=X.cancelNowOptionAriaLabelBasicExt.replace("{amount}",J),D=X.cancelNowOptionSubTextBasic.replace("{amount}",J)):(E=null!==(A=null===(R=p)||void 0===R?void 0:R.ad.heading)&&void 0!==A?A:Y.dialogHeading.replace("{subName}",d.name),k=null!==(N=null===(M=p)||void 0===M?void 0:M.ad.radio1Heading)&&void 0!==N?N:X.turnOffRBOptionText,w=null!==(F=null===(B=p)||void 0===B?void 0:B.ad.radio1Heading)&&void 0!==F?F:X.turnOffRBOptionAriaLabel,I=X.turnOffRBOptionSubText,P=null!==(O=null===(L=p)||void 0===L?void 0:L.ad.radio2Heading)&&void 0!==O?O:X.cancelNowOptionText,T=null!==(H=null===(V=p)||void 0===V?void 0:V.ad.radio2Heading)&&void 0!==H?H:X.cancelNowOptionAriaLabel,D=null!==(z=null===(U=p)||void 0===U?void 0:U.ad.radio2Text)&&void 0!==z?z:X.cancelNowOptionSubText);var $={isOpen:!0,closeButton:{"data-bi-id":"".concat(s,"-close"),"aria-label":Y.closeButtonAriaLabel},title:E,onDismiss:j,dialogFooterProps:{buttonPrimary:{onClick:G,text:Y.confirmButtonText,"aria-label":Y.confirmButtonAriaLabel,"data-bi-id":"".concat(s,"-cancel"),id:"cancel-select-cancel"},buttonSecondary:{onClick:m?K:q,text:m?Q:Y.keepButtonText,"aria-label":Y.keepButtonAriaLabel,"data-bi-id":"".concat(s,"-keep")}}},ee={isOpen:!0,closeButton:{"data-bi-id":"".concat(s,"-close"),"aria-label":Y.closeButtonAriaLabel},title:E,onDismiss:j,dialogFooterProps:{dialogType:"secondary",buttonLeft:{onClick:m?K:q,text:m?Q:Y.keepButtonTextBasic,"aria-label":Y.keepButtonAriaLabelBasic,"data-bi-id":"".concat(s,"-keep"),type:"default"},buttonRight:{onClick:G,text:Y.confirmButtonTextBasic,"aria-label":Y.confirmButtonAriaLabelBasic,"data-bi-id":"".concat(s,"-cancel"),type:"primary",id:"cancel-select-cancel"}}},te=d.isM365BrandId?ee:$;return jt().createElement(jt().Fragment,null,jt().createElement(CM,te,jt().createElement(LT,{optionType:"selectButton",isSingleColumn:!0,label:Y.dialogLabel,selectedKey:g,onChange:function(e,t){v(e.key)},options:[{key:RSe,"aria-label":w.replaceAll("{renewalDate}",Z),"data-bi-id":"".concat(s,"-turn-off-rb-option"),text:k.replace("{renewalDate}",Z),lines:[{text:I.replace("{renewalDate}",Z)}]},{key:"cancel-now","aria-label":T,"data-bi-id":"".concat(s,"-cancel-now-option"),text:P,lines:[{text:D.replace("{refundAmount}",J)}]}],"aria-label":X.choiceGroupAriaLabel,"data-bi-id":"".concat(s,"-choice-group")})),jxe(p),b,x)},Xxe=function(e,t,n,r,o,i){var a,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=t.cancelFlow,c={},u={};if(Cr({step:"saveflow.confirm"}),null!==(a=t.data)&&void 0!==a&&a.isNonrefundableFlow)return c[Kye]="Refund",c[qye]="not cancellable online",c.isUserError=!0,void r({flow:xxe,customBiScenarioData:c,isNonRefundableFlow:!0});switch(l){case Q8:var d;c[Kye]="Refund",u[Kye]="AROffCancelWithRefund",d=e.isM365BrandId?"m365":e.isXboxBrandId?"xbox":"others",n.openDialog(jt().createElement(Yxe,{dialogType:d,bypassBenefitsPage:s,onCancel:function(){jn(Qye,"13"),r({flow:Sxe,customBiScenarioData:c})},onKeep:function(){return r({flow:kxe})},onTurnOffRecurringBilling:function(){jn(Qye,"12"),r({flow:_xe,customBiScenarioData:u})},refundData:t.data.refundData}));break;case J8:c[Kye]="Cancel",i?n.openDialog(jt().createElement(Kxe,{cancelRefundData:t,bypassBenefitsPage:s,onConfirm:function(){return r({flow:Sxe,customBiScenarioData:c})},onKeep:function(){return r({flow:kxe})}})):r({flow:Sxe,customBiScenarioData:c});break;case $8:c[Kye]="PendingCharge",i?n.openDialog(jt().createElement(Kxe,{cancelRefundData:t,bypassBenefitsPage:s,onConfirm:function(){return r({flow:Sxe,customBiScenarioData:c})},onKeep:function(){return r({flow:kxe})}})):r({flow:Sxe,customBiScenarioData:c});break;case Z8:c[Kye]="AROff",i?n.openDialog(jt().createElement(Kxe,{cancelRefundData:t,bypassBenefitsPage:s,isTurnOffRB:o,onConfirm:function(){return r({flow:_xe,customBiScenarioData:c})},onKeep:function(){return r({flow:kxe})}})):r({flow:_xe,customBiScenarioData:c});break;case t9:case e9:case n9:case r9:r({flow:Exe,cancelErrorProps:{cancelFlow:l}});break;default:_r({error:"Unable to support the cancelFlow type",data:{errorMessage:"Unable to support the cancelFlow type",cancelFlow:l}}),r({flow:xxe})}},Qxe=function(e){var t=e.horizontalAlign,n=void 0===t?"start":t,r=e.padding,o=Xve().content.cancel.strings,i=zye(),a=qo(),s=M_e(),l=s.cancelRefundData,c=s.dispatch,u=s.isTurnOffRB,d=EM(),p=uxe(),h=ny(),m=["s"].includes(h),f=(null===i||void 0===i?void 0:i.brandId)===H7.XboxGamePassUltimate&&zs("SvcFAQUltimate"),g=(null===i||void 0===i?void 0:i.brandId)===H7.PCGamePass&&zs("SvcFAQPCGamepass"),v=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),S=C[0],x=C[1];if(!i)throw new Error("Service details not found");var _=function(){if(u){var e=Kt(o.arTurnOffButtonText,null===i||void 0===i?void 0:i.market);return i.isM365BrandId||i.isM365BasicSku?o.rbTurnOffButtonTextM365:e}return i.isM365BrandId||i.isM365BasicSku?o.cancelSubscriptionButtonTextM365:o.cancelSubscriptionButtonText},E=function(){if(i.billingState===t7.InDunning||i.brandId===H7.XboxGamePassUltimate)return o.confirmationContent.backToSubscription;if(u){var e=Kt(o.arContinueButtonText,null===i||void 0===i?void 0:i.market);return i.isM365BrandId||i.isM365BasicSku?o.rbContinueButtonTextM365:e}return i.isM365BrandId||i.isM365BasicSku?o.keepSubscriptionButtonTextM365:o.keepSubscriptionButtonText},k=function(){return i.billingState===t7.InDunning?"benefit-back":"benefit-keep"},w=function(){i.billingState===t7.InDunning||i.brandId===H7.XboxGamePassUltimate?(xr(),a.push("/".concat(i.modelId,"/details?fref=save-flow-cancel"))):(Cr({step:"saveflow.keep"}),c({flow:kxe}))},I={text:_(),onClick:function(){Xxe(i,l,d,c,u,!1,!1)},"aria-label":_(),"data-bi-id":"benefit-cancel",id:"benefit-cancel",type:"primary"},P={text:E(),onClick:w,"aria-label":E(),"data-bi-id":k(),id:k(),type:"default"};if(null!==i&&void 0!==i&&i.isM365BrandId&&null!==p&&void 0!==p&&p.benefitesContent){var T,D,A,R,N=null===p||void 0===p?void 0:p.benefitesContent;I={text:null!==(T=N.ad.primaryCtaText)&&void 0!==T?T:_(),onClick:function(){b(qxe(N,"click")),setTimeout((function(){Xxe(i,l,d,c,!1,!1)}),100)},"aria-label":null!==(D=N.ad.primaryCtaText)&&void 0!==D?D:_(),"data-bi-id":"iris-benefits-primary-button",type:"primary"},P={text:null!==(A=N.ad.secondaryCtaText)&&void 0!==A?A:E(),onClick:function(){x(qxe(N,"click1")),setTimeout((function(){w()}),100)},"aria-label":null!==(R=N.ad.secondaryCtaText)&&void 0!==R?R:E(),"data-bi-id":"iris-benefits-secondary-button",type:"default"}}return jt().createElement(jt().Fragment,null,f||g?jt().createElement(Vxe,null):jt().createElement(jt().Fragment,null),jt().createElement(bb,{childrenGap:12,horizontal:!m,padding:r||"34px 0px 0px 0px",horizontalAlign:n},jt().createElement(Cb,null,jt().createElement(dk,I)),jt().createElement(Cb,null,jt().createElement(dk,P))),jxe(null===p||void 0===p?void 0:p.benefitesContent),y,S)},Zxe=function(e){var t,n,r=e.switchPaths,o=e.footnoteMap,i=Xve(),a=zye(),s=EM(),l=M_e(),c=l.cancelScenarioStartTimeStamp,u=l.cancelRefundData,d=qo();vn(a,"Service in M365ComparisonFeatures");var p=i.content.cancel.m365.comparisonFeatures,h=a.billingState===t7.InDunning,m=null!==(t=gn(Y6,!0))&&void 0!==t?t:void 0,f=null!==(n=gn(K6,!0))&&void 0!==n?n:void 0,g=r.pathsData.find((function(e){return e.productId===m&&e.skuId===f}));exe({service:a,selectedSwitchPath:g,dialogController:s,cancelScenarioStartTimeStamp:c,cancelRefundData:u});var v=function(e,t,n){var r={};return r.fromProductId=a.productId,r.toProductId=e.productId,r[Yye]=Zye(e.cycleUnit).toString(),{text:h?n?p.stayOnThisPlan:p.switchToThisPlan:p.switchPlan,"aria-label":(n?p.stayOnPlanAriaLabel:p.switchPlanAriaLabel).replace("{subscription}",e.title).replace("{price}",e.price),"data-bi-id":"".concat(t,"-switch-btn"),onClick:function(){h&&n?(Cr({step:"saveflow.dunning.switch.paynow"}),xr(),d.push("/".concat(a.modelId,"/details?fref=save-flow-cancel-dunning&openPayNow=true"))):(Cr({step:h?"saveflow.dunning.switchsku":"OfficeSave.Downgrade.DowngradePlan",data:r}),s.openDialog(jt().createElement(GSe,{service:a,downgradePath:e,cancelScenarioStartTimeStamp:c,cancelRefundData:u})))}}},y=function(e){var t,n=(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())===fye,r=n?p.annuallyBuyLink:p.monthlyBuyLink,o=n?p.annuallyBuyLinkAriaLabel:p.monthlyBuyLinkAriaLabel,i=oCe(e.productId),l={};return l.fromProductId=a.productId,l.toProductId=e.productId,l[Yye]=Zye(e.cycleUnit).toString(),{children:r.replace("{price}",e.price),"aria-label":o.replace("{price}",e.price),"data-bi-id":"".concat(i,"-buy-link"),onClick:function(){Cr({step:h?"saveflow.dunning.switchsku":"OfficeSave.Downgrade.DowngradePlan",data:l}),s.openDialog(jt().createElement(GSe,{service:a,downgradePath:e,cancelScenarioStartTimeStamp:c,cancelRefundData:u}))}}},b=o.indexOf("app")+1,C=function(e,t,n){var r,o,i=function(e){var t=Math.floor((null===e||void 0===e?void 0:e.relativeSavingsPercent)||0),n=a.cycleDurationInMonths===xye;return{priceTitle:n?p.annuallyPrice:p.monthlyPrice,saveSubtitle:n&&t&&(!e.isCurrent||h)?p.annuallySave.replace("{percentage}",t.toString()):void 0}}(t),s=i.priceTitle,l=i.saveSubtitle,c=oCe(t.productId),u=t.isCurrent;l&&(o={children:l});var d={cta:v(t,c,u),alt:n?y(n):void 0},m=u&&!h?void 0:d,f=null===(r=Object.entries(e))||void 0===r?void 0:r.map((function(e,t){var n=Ua(e,2),r=(n[0],n[1]);return{"aria-labelledby":"m365-downgrade-feature-".concat(c,"-").concat(t),child:jt().createElement(jk,{id:"m365-downgrade-feature-".concat(c,"-").concat(t),image:{iconColor:"successIcon",iconName:"CheckMark",imageType:"icon"},size:"sm"},jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:r,tokensAndValues:{superscript1:jt().createElement("sup",{style:{verticalAlign:"super",fontSize:"10px"}},b)}}))}}));return jt().createElement(vB,{badge:u?p.currentPlan:void 0,title:{children:t.title},subtitle:{children:s.replace("{price}",t.price)},description:o,actions:m,features:f,key:c})},S=r.pathsData.filter((function(e){return e.productId===z7})),x=null===S||void 0===S?void 0:S.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())===tCe(a.cycleDurationInMonths)})),_=null===S||void 0===S?void 0:S.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())!==tCe(a.cycleDurationInMonths)})),E=r.pathsData.filter((function(e){return e.productId===V7})),k=null===E||void 0===E?void 0:E.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())===tCe(a.cycleDurationInMonths)})),w=null===E||void 0===E?void 0:E.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())!==tCe(a.cycleDurationInMonths)})),I=r.pathsData.filter((function(e){return e.productId===U7})),P=null===I||void 0===I?void 0:I.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())===tCe(a.cycleDurationInMonths)})),T=null===I||void 0===I?void 0:I.find((function(e){var t;return(null===(t=e.cycleUnit)||void 0===t?void 0:t.toLowerCase())!==tCe(a.cycleDurationInMonths)})),D=[];return x&&D.push(C(p.m365FamilyFeatures,x,_)),k&&D.push(C(p.m365PersonalFeatures,k,w)),P&&D.push(C(p.oneDriveFeatures,P,T)),jt().createElement(bb,{childrenGap:24,padding:"20px 0"},jt().createElement(nb,{tag:"h2",variant:"paneTitle"},p.sectionTitle),jt().createElement(wB,null,D))},Jxe=function(){var e=zye(),t=Xve().content.commonCommerce.m365Benefits;vn(e,"Service details not found"),vn(t,"cms data not found");var n=function(e){return jt().createElement(lne,{cms:e})}(t.onedrive),r=function(e,t){var n;vn(t,"Device benefits CMS data not found");var r=jt().createElement(jt().Fragment,null),o=jt().createElement(jt().Fragment,null),i=jt().createElement(jt().Fragment,null);return r=jt().createElement(bb,{horizontal:!0},jt().createElement(Cb,{padding:"0 4px 0 0"},pne(t.laptopLogo)),jt().createElement(Cb,{padding:"0 4px 0 0"},pne(t.pcLogo)),jt().createElement(Cb,null,pne(t.phoneLogo))),e&&(null===(n=e.installsUsed)||void 0===n?void 0:n.length)?(o=cne(sn(t.titleEngaged,[e.installsUsed.length,e.maximumInstallations])),i=une(t.subTitleEngaged)):(o=cne(t.titleDisengaged),i=une(sn(t.subTitleDisengaged,5))),hne({graphic:r,title:o,subTitle:i,hyperLink:dne(t.link)})}(e.installDetails,t.devices),o=function(e,t){vn(t,"Premium app benefits CMS data not found");var n=jt().createElement(jt().Fragment,null);return n=jt().createElement(bb,{horizontal:!0},jt().createElement(Cb,{padding:"0 4px 0 0"},pne(t.wordLogo)),jt().createElement(Cb,{padding:"0 4px 0 0"},pne(t.excelLogo)),jt().createElement(Cb,null,pne(t.powerpointLogo))),hne({graphic:n,title:cne(t.title),subTitle:une(t.subTitle),hyperLink:dne(e?t.linkFamily:t.linkPersonal)})}(e.isHomeSKU,t.apps),i=e.isHomeSKU?function(){var i=mne(e.sharingDetails,t.family);return jt().createElement(VO,{backgroundColor:"neutralHigh",firstSegment:n,secondSegment:i,thirdSegment:r,fourthSegment:o,variant:"ThreeThreeThreeThree"})}():jt().createElement(WO,{backgroundColor:"neutralHigh",firstSegment:n,secondSegment:r,thirdSegment:o,variant:"FourFourFour"});return jt().createElement(bb,{childrenGap:"12"},jt().createElement(_Q,{features:[{featureNode:jt().createElement(GF,{messageBarType:"warning",messageContent:t.messageBarTitle})},{featureNode:i}]}))},$xe={unit:"vh",height:60},e_e=function(e){var t=e.dispatchCancelFlow,n=e.selectedPath,r=Xve().content,o=r.cancel.m365.covidOffer,i=r.common,a=EM(),s=zye(),l=function(e,t){var n,r,o,i,a=EM(),s=mi(),l=Bve(),c=Xve().content,u=c.cancel.m365.covidOffer,d=c.common,p=c.commonCommerce.common.psd2Resource,h=zye(),m="covid-offer-pi-challenge-operation";if(!h)throw new Error("Service details not found");return{piChallengeProps:{env:l.pidlEnvironment,piChallengeData:{amount:"IN"===h.market?h.productRenewal.price:0,currency:t,language:h.locale,country:h.market,challengeScenario:"RecurringTransaction",isLegacy:"subscription"===h.type,isMOTO:!1,hasPreOrder:!1,windowSize:"02",piid:null!==(n=null===(r=h.payment)||void 0===r?void 0:r.id)&&void 0!==n?n:"",frequency:h.productRenewal.cycleLength,frequencyUnit:h.productRenewal.cycleUnit},onSuccessCallback:function(t,n){a.closeDialog(),e({flow:wxe,covidOfferProps:{challengeCompletedStatus:t,paymentSessionId:n}})},onFailureCallback:function(t){var n=n8(t,p.genericErrorTitle,p.genericErrorMessage,p.bankAuthFailMessage,p.bankAuthTimeoutMessage,p.invalidSetupMessage,p.paymentMethodFailureMessage,p.failedToOpenNewWindowMessage);n.isQoSImpactedError?s({name:m,status:"failed",error:t}):s({name:m,status:"finished"}),a.closeDialog(),e({flow:wxe,covidOfferProps:{paymentError:t,paymentErrorType:n}})},onCancelCallback:function(){a.closeDialog()},returnUrl:qbe("authOnCovidOffer"),redirectSuccessUrl:Rxe(null===(o=h.payment)||void 0===o?void 0:o.id),redirectFailureUrl:V5(Axe,!1),spinnerAriaLabel:u.loadingMessage},dialogTitle:null!==(i=h.payment)&&void 0!==i&&i.name?p.title.replace("{piName}",c8(h.payment,c.commonCommerce.common.piList)):"",dialogComponentName:"covid-offer-pi-challenge",dialogOperationName:m,closeAriaLabel:d.closeButton,minBodyHeight:$xe}}(t,(null===n||void 0===n?void 0:n.currencyCode)||"");vn(s,"Service in covid offer dialog"),vn(n,"SelectedPath in covid offer dialog");var c=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.switchToDialog(jt().createElement(Q5,l));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u={isOpen:!0,closeButton:{"data-bi-id":"covid-offer-dialog-close","aria-label":i.closeButton},title:o.dialogTitle,onDismiss:function(){a.closeDialog()},dialogFooterProps:{buttonPrimary:{onClick:c,text:o.confirmButtonText,"aria-label":o.confirmButtonText,"data-bi-id":"save-offer-confirm"}},minBodyHeight:$xe},d={service:s,dataBiIdPrefix:"CovidOffer",celaStrings:i.celaSection},p=zs(G7)?Z7(km(km({},d),{},{price:n.price,taxType:n.taxType,cycleUnit:n.cycleUnit,cycleLength:n.cycleLength,priceDetails:n.priceDetails,nextChargeDate:gx(n.nextChargeDate)})):Y7(km(km({},d),{},{price:n.price,taxType:n.taxType,cycleUnit:n.cycleUnit,cycleLength:n.cycleLength,nextChargeDate:gx(n.nextChargeDate)})),h=ree(d);return jt().createElement(CM,u,jt().createElement(bb,{childrenGap:"20px"},jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodyPrimaryText"},o.dialogSubtitle.replace("{serviceName}",s.name))),jt().createElement(Cb,null,jt().createElement(Ib,{variant:"headerText"},p)),jt().createElement(Cb,null,jt().createElement(ox,{textWithTokens:h.textWithTokens,tokensAndValues:h.tokensAndValues}))))},t_e=function(){var e,t=Xve().content.cancel.m365.covidOffer,n=EM(),r=M_e(),o=r.dispatch,i=null===(e=r.cancelRefundData.renewPathsData)||void 0===e?void 0:e.paths[0],a={tag:"h2",variant:"statusHeader",text:t.title};return jt().createElement(NO,{backgroundType:"card",bodyText:t.subtitle,featureHeading:a,imageProps:{imageType:"ariaHiddenImage",src:t.imageSrc},layoutType:"2/3",height:"small",borderRadius:"4px",ctaProps:[{actionProps:{"aria-label":t.buttonText,"data-bi-id":"benefit-extend",kind:"button",text:t.buttonText,onClick:function(){Cr({step:"saveflow.offers"}),n.openDialog(jt().createElement(e_e,{dispatchCancelFlow:o,selectedPath:i}))}}}]})},n_e=function(){var e=Xve().content.cancel,t=qo(),n=zye();if(!n)throw new Error("Service details not found");var r=function(){Cr({step:"saveflow.dunning.paynow"}),xr(),t.push("/".concat(n.modelId,"/details?fref=save-flow-cancel-dunning&openPayNow=true"))},o={tag:"h2",variant:"statusHeader",text:null!==n&&void 0!==n&&n.isXboxBrandId?e.xbox.dunningFeature.header:e.m365.dunningFeature.header};return jt().createElement(NO,{backgroundType:"card",bodyText:null!==n&&void 0!==n&&n.isXboxBrandId?function(){var t=e.xbox.dunningFeature.bodyTextWithoutTax,r=n.pastDueBalance?n.pastDueBalance.net:"0",o=oSe(n.productRenewal.cycleUnit,n.productRenewal.cycleLength,!0);return{textWithTokens:t,tokensAndValues:{subName:jt().createElement(Ib,null,n.name),price:jt().createElement(Ib,null,r),duration:jt().createElement(Ib,null,o)}}}():function(){var t,r=Kt(e.m365.dunningFeature.bodyTextList,null===(t=n.productRenewal)||void 0===t?void 0:t.taxType),o=oSe(n.productRenewal.cycleUnit,n.productRenewal.cycleLength,!0),i=n.pastDueBalance?n.pastDueBalance.net:"0";return{textWithTokens:r,tokensAndValues:{subName:jt().createElement(Ib,null,n.name),price:jt().createElement(Ib,null,i),duration:jt().createElement(Ib,null,o)}}}(),featureHeading:o,height:"small",imageProps:null!==n&&void 0!==n&&n.isXboxBrandId?{imageType:"ariaHiddenImage",src:e.xbox.dunningFeature.imageSrc}:{imageType:"ariaHiddenImage",src:e.m365.dunningFeature.imageSrc},layoutType:"2/3",ctaProps:function(){var t="";return[{actionProps:{"aria-label":t=null!==n&&void 0!==n&&n.isXboxBrandId?e.xbox.dunningFeature.buttonText:n.isM365BasicSku?e.m365.dunningFeature.buttonTextBasic:e.m365.dunningFeature.buttonText,"data-bi-id":"benefit-paynow",kind:"button",onClick:r,text:t}}]}()})},r_e=function(e){var t,n,r=e.hasRenewPath,o=e.subName,i=e.isHomeSKU,a=e.onServiceUpdate,s=zye(),l=EM(),c=Xve().content,u=c.cancel.m365.switchPlanOfferFeature,d=Bve(),p=c.commonCommerce,h=p.turnOnRB,m=p.common,f=p.changePayment,g=p.renewPath;if(!s)throw new Error("Service details not found");In((function(){Gne({service:s,dialogController:l,renewAreaConfig:{pidlEnvironment:d.pidlEnvironment,area:d.area,language:d.language},turnOnRBCmsContent:h,commonResource:m,changePaymentCmsContent:f,renewPathContent:g,isScenarioStep:!0})}));var v=s.isM365BasicSku&&"month"===(null===(t=s.productRenewal)||void 0===t?void 0:t.cycleUnit),y="month"===(null===(n=s.productRenewal)||void 0===n?void 0:n.cycleUnit)?"year":"month",b=i8(y,s.productRenewal.cycleLength,c.common.celaSection.day,c.common.celaSection.days,c.common.celaSection.month,c.common.celaSection.months,c.common.celaSection.year,c.common.celaSection.years),C=sn(u.buttonTextBasic,{amount:r.price,cycleFormat:b}),S={tag:"h2",variant:"statusHeader",text:v?u.headerYearly:u.header},x="TaxesNotIncluded"===r.taxType?g.switchPlanOfferDescription.replace("{amount}",r.price):g.switchPlanOfferDescriptionNoTax.replace("{amount}",r.price);return jt().createElement(NO,{backgroundType:"card",bodyText:{textWithTokens:v?u.subtitleYearly:x,tokensAndValues:v?{product:jt().createElement(Ib,null,o),relativeSavingsPercent:jt().createElement(Ib,null,r.relativeSavingsPercent)}:{product:jt().createElement(Ib,null,o)}},featureHeading:S,imageProps:{imageType:"ariaHiddenImage",src:i||s.isM365BasicSku?u.imageSrcFamily:u.imageSrc},layoutType:"2/3",height:"small",ctaProps:[{actionProps:{"aria-label":C,"data-bi-id":"benefit-switch",kind:"button",text:C,onClick:function(){if(jne(s)){var e={pidlEnvironment:d.pidlEnvironment,area:d.area,language:d.language};ore({service:s,turnOnRBCmsContent:h,commonResource:m,changePaymentCmsContent:f,renewPathContent:g,renewAreaConfig:e,dialogController:l,triggerBIId:"benefit-switch",onServiceUpdate:a,selectedRenewPath:r,isScenarioStep:!0})}}}}]})},o_e=function(e){var t=e.conversionPathType,n=e.isCovidOfferAvailable,r=zye(),o=Xve().content,i=o.cancel.m365.switchPlanOfferFeature,a=o.cancel.m365.dunningFeature;if(!r)throw new Error("service is null");var s=r.renewPaths&&r.renewPaths.paths&&r.renewPaths.paths.find((function(e){var t;return r.isM365BasicSku&&"month"===(null===(t=r.productRenewal)||void 0===t?void 0:t.cycleUnit)?null!==e:null!==e&&1===e.cycle})),l=s&&t===ASe;return r.billingState===t7.InDunning||r.status===o7?r.isM365BasicSku?jt().createElement(bb,{childrenGap:"25px"},jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneTitle"},a.basicTitle)),jt().createElement(n_e,null)):jt().createElement(n_e,null):n&&!J9(r)?jt().createElement(t_e,null):l&&!J9(r)&&r.productRenewal?r.isM365BasicSku?jt().createElement(bb,{childrenGap:"25px"},jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneTitle"},i.headerBasic)),jt().createElement(r_e,{hasRenewPath:s,subName:r.name,isHomeSKU:r.isHomeSKU})):jt().createElement(r_e,{hasRenewPath:s,subName:r.name,isHomeSKU:r.isHomeSKU}):jt().createElement(jt().Fragment,null)},i_e=function(e){return{productId:e.productId,skuId:e.skuId,availabilityId:e.availabilityId,title:e.productName,price:e.price,isCurrent:e.current,currency:e.currencyCode,brandId:e.productId,skuTaxType:e.taxType,cycleUnit:e.cycleUnit,relativeSavingsPercent:e.relativeSavingsPercent,nextChargeDate:e.nextChargeDate,cycleLength:e.cycleLength,showUserConsentText:e.showUserConsentText,taxType:e.taxType}},a_e=function(){var e=Xve().content.cancel.m365.talkToAgent,t=ny(),n=["s","m"].includes(t),r=n?"16px 16px 8px 12px":"16px 8px 16px 16px";return jt().createElement(bb,{padding:"12px 0 0 0"},jt().createElement(bb,{horizontal:!n,boxShadow:!0,borderRadius:"8px",backgroundColor:"neutralHigh",padding:r,verticalAlign:"center",horizontalAlign:"space-between",childrenGap:n?"8px":"24px"},jt().createElement(Cb,{padding:n?"0 0 0 4px":"0px",shrink:1},jt().createElement(Ib,null,e.intro)),jt().createElement(Cb,{shrink:0},jt().createElement(JE,{iconName:"Headset","aria-label":e.buttonText,"data-bi-id":"request-phone-call",onClick:function(){window.open(e.url,"popUpWindow","width=400,height=600,popup=yes")||window.open(e.url,"_blank")},text:e.buttonText,textAlignment:"left"}))))},s_e=function(e){var t=e.isCovidOfferAvailable,n=e.conversionPathType,r=void 0===n?"":n,o=e.downgradePaths,i=e.upgradePaths,a=e.purchasePaths,s=e.usqData,l=mi(),c=zye(),u=M_e().isTurnOffRB,d=Bve().language,p="get-iris-template";vn(c,"Service in M365 benefits view");var h=zs(abe),m=zs(ibe),f=zs(abe,!1),g=zs(ibe,!1),v={};t&&(v[Xye]=DSe),Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l({name:p,status:"updating"}),e.next=3,Uxe(u);case 3:Cr({step:"OfficeSave.Benefits",data:v}),l({name:p,status:"finished"});case 5:case"end":return e.stop()}}),e)}))));var y=function(e,t,n,r,o){var i,a,s,l=[];null===t||void 0===t||null===(i=t.pathsData)||void 0===i||i.forEach((function(t){var n;null===(n=t.downgradePaths)||void 0===n||n.forEach((function(t){l.push(km(km({},t),{},{nextChargeDate:e,cycleLength:1,showUserConsentText:!1,taxType:t.skuTaxType}))}))})),null===n||void 0===n||null===(a=n.pathsData)||void 0===a||a.forEach((function(e){var t;null===(t=e.paths)||void 0===t||t.forEach((function(e){l.push(i_e(e))}))}));var c=null===r||void 0===r||null===(s=r.paths)||void 0===s?void 0:s.find((function(e){return!0===e.current}));if(c){var u;l.push(i_e(c));var d=null===o||void 0===o||null===(u=o.pathsData)||void 0===u?void 0:u.find((function(e){return e.productId===c.productId&&e.cycleUnit.toLowerCase()!==c.cycleUnit.toLowerCase()}));d&&l.push(km(km({},d),{},{nextChargeDate:e,showUserConsentText:!1,taxType:d.skuTaxType}))}return{pathsData:l}}(c.endDate,o,i,c.renewPaths,a),b=!J9(c)&&c.downgradeFlow===d9,C=c.billingState===t7.InDunning,S=void 0!==(null===o||void 0===o?void 0:o.pathsData)&&(null===o||void 0===o?void 0:o.pathsData.length)>0,x=void 0!==(null===i||void 0===i?void 0:i.pathsData)&&(null===i||void 0===i?void 0:i.pathsData.length)>0,_=(b||C)&&(S||x),E=[];!c.isM365BasicSku&&!h&&!m&&s&&s.used>F7&&E.push(pxe),_&&E.push("app"),m||E.push("oneDrive");var k=c.isM365BasicSku?"0px":"34px",w=c.isM365BasicSku?"10px":"32px",I=jt().createElement(bb,{childrenGap:c.isM365BasicSku?"32":"12"},jt().createElement(Hxe,null),h||m?jt().createElement(jt().Fragment,null):jt().createElement(fxe,{footnoteMap:E,usqData:s}),jt().createElement(o_e,{conversionPathType:r,isCovidOfferAvailable:t}),_?jt().createElement(Zxe,{switchPaths:y,footnoteMap:E}):jt().createElement(jt().Fragment,null),g?jt().createElement(jt().Fragment,null):jt().createElement(dxe,{footnoteMap:E}),f||g?jt().createElement(Jxe,null):jt().createElement(jt().Fragment,null),Txe(c,d,!0)?jt().createElement(a_e,null):jt().createElement(jt().Fragment,null),jt().createElement(Qxe,{padding:"".concat(k," 0px 0px 0px")}),jt().createElement(hxe,{footnoteMap:E,padding:"".concat(w," 0px 0px 0px")}));return jt().createElement(dv,{operationData:{componentName:"saveflow.office",operationName:p},firstLoadView:jt().createElement(jt().Fragment,null),updatingView:jt().createElement(jt().Fragment,null),finishedView:I})},l_e=function(){var e=Xve(),t=zye(),n=M_e(),r=n.dispatch,o=n.isTurnOffRB,i=n.personalizedPrices,a=dg();if(!t)throw new Error("Service details not found");var s=[],l={title:t.name,isCurrent:!0,brandId:t.brandId,monthlyPrice:i&&i.personalizedPrices?i.personalizedPrices[t.productId]:""};s=[{title:e.content.cancel.xbox.comparisionFeature.xboxGamePassUltimateBrandName,isCurrent:!1,brandId:H7.XboxGamePassUltimate,monthlyPrice:i&&i.personalizedPrices?i.personalizedPrices[W7]:""},l];var c={size:"sm",image:{imageType:"icon",iconName:"CheckMark",iconColor:"successIcon"},padding:"0px 0px",height:"36px"},u=function(n){var i=Kt(e.content.cancel.strings.arContinueButtonText,t.market),a=Kt(e.content.cancel.xbox.comparisionFeature.keepAutoRenewNoPriceAriaLabel,t.market),s=o?i:e.content.cancel.xbox.comparisionFeature.keepSubscription,c=o?a.replace("{currentTitle}",n.title):e.content.cancel.xbox.comparisionFeature.keepSubscriptionNoPriceAriaLabel.replace("{currentTitle}",n.title),u={};return u["awa-upgradetitle"]=n.brandId,u.exp=l.brandId,{text:s,"aria-label":c,"data-bi-id":"cancel-stay-card-btn",onClick:function(){Cr({step:vye.KeepPlan,data:u}),r({flow:kxe})}}},d=function(t){var n={};n["awa-upgradetitle"]=t.brandId,n.exp=l.brandId;var r=e.content.cancel.xbox.comparisionFeature.upgradeNowAriaLabel.replace("{upgradeTitle}",t.title);return{text:e.content.cancel.xbox.comparisionFeature.upgradeNow,"aria-label":r,"data-bi-id":"cancel-upgrade-xgpu-card-btn",onClick:function(){Cr({step:vye.UpgradePlan,data:n}),window.open(e.content.cancel.xbox.comparisionFeature.xgpuUpgradeUrl,"_blank")}}},p=function(t){var n,r=t.brandId,o=function(t){var n={};switch(t){case H7.XboxGamePassUltimate:n=zs(ube,!1)?e.content.cancel.xbox.comparisionFeature.xboxGamePassUltimateNew:e.content.cancel.xbox.comparisionFeature.xboxGamePassUltimate;break;case H7.XboxLive:n=zs(ube,!1)?e.content.cancel.xbox.comparisionFeature.xboxLiveNew:e.content.cancel.xbox.comparisionFeature.xboxLive;break;case H7.PCGamePass:n=e.content.cancel.xbox.comparisionFeature.pcGamePass;break;case H7.XboxGamePass:n=e.content.cancel.xbox.comparisionFeature.xboxGamePass;break;default:n={}}return n}(r),i=null===(n=Object.entries(o))||void 0===n?void 0:n.map((function(e,t){var n=Ua(e,2),o=n[0],i=n[1];return{"aria-labelledby":"".concat(r,"-").concat(o),child:jt().createElement(jk,Object.assign({id:"".concat(r,"-").concat(o)},c),jt().createElement(Ib,{variant:"bodySecondaryText"},i))}})),a={title:{children:t.title},actions:{cta:t.isCurrent?u(t):d(t)},features:i,variants:{alignment:"center"},badge:t.isCurrent?e.content.cancel.xbox.comparisionFeature.currentSubscription:void 0,subtitle:void 0!==t.monthlyPrice&&""!==t.monthlyPrice?{children:e.content.cancel.xbox.comparisionFeature.downgradeCardPriceText.replace("{price}",t.monthlyPrice)}:void 0};return jt().createElement(vB,a)};return jt().createElement(bb,{childrenGap:"24px"},jt().createElement(Cb,null,jt().createElement(ox,{variant:"statusHeader",textWithTokens:e.content.cancel.xbox.comparisionFeature.downgradePlanHeaderPartOne,tokensAndValues:{0:jt().createElement("sup",{style:{color:a.palette.green,fontSize:"24px",fontWeight:600}},e.content.cancel.xbox.comparisionFeature.downgradePlanHeaderPartTwo)}})),jt().createElement(Cb,null,jt().createElement(wB,{variants:{horizontalLayoutBreakpoint:"l"}},s.map((function(e){return p(e)})))))},c_e="https://www.xbox.com/play/games/{gameTitle}/{gameProductId}",u_e="https://www.xbox.com/games/store/{gameTitle}/{gameProductId}",d_e={PC:"PC",Console:"Console",Cloud:"Cloud",MostPopular:"MostPopular",ComingSoon:"ComingSoon",RecentlyAdded:"RecentlyAdded",PicksForYou:"PicksForYou",RecentlyPlayed:"RecentlyPlayed"},p_e=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,m,f,g,v,y,b,C,S,x,_,E,k,w,I,P,T,D,A,R,N=e.gameInfo,M=e.recentlyPlayedGames,F=e.defaultTab,B=Xve(),O=ny(),L=zye(),H=km(km(km(km({},N.surfaceInfoByName),N.surfaceInfoByNameV1),null===M||void 0===M?void 0:M.surfaceInfoByName),null===M||void 0===M?void 0:M.surfaceInfoByNameV1),V=Bve(),z=B.content.cancel.xbox.gameInfoFeature,U=d_e.Cloud;Object.keys(N).length&&(F&&H[F]&&H[F].gameIds.length>0?U=F:H[d_e.Cloud]&&H[d_e.Cloud].gameIds.length>0?U=d_e.Cloud:H[d_e.PC]&&H[d_e.PC].gameIds.length>0?U=d_e.PC:H[d_e.Console]&&H[d_e.Console].gameIds.length>0?U=d_e.Console:H[d_e.RecentlyPlayed]&&H[d_e.RecentlyPlayed].gameIds.length>0?U=d_e.RecentlyPlayed:H[d_e.PicksForYou]&&H[d_e.PicksForYou].gameIds.length>0?U=d_e.PicksForYou:H[d_e.MostPopular]&&H[d_e.MostPopular].gameIds.length>0?U=d_e.MostPopular:H[d_e.RecentlyAdded]&&H[d_e.RecentlyAdded].gameIds.length>0?U=d_e.RecentlyAdded:H[d_e.ComingSoon]&&H[d_e.ComingSoon].gameIds.length>0&&(U=d_e.ComingSoon));var W=Ua((0,Gt.useState)(U),2),G=W[0],j=W[1],q=Ua((0,Gt.useState)(""),2),K=q[0],Y=q[1];if(!L)throw new Error("Service details not found");var X=Lxe(!1,L.brandId),Q=function(){var e=z.gameTileViewBottomString;return L.brandId===H7.XboxGamePassUltimate&&(e=z.gameTileViewBottomStringWithCloud),jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"XboxLogo",iconColor:"neutralDark"},size:"sm"},title:e})},Z=function(){var e="",t="";return L.brandId===H7.XboxGamePassUltimate?(e=z.seeAllGamesLink.url,t=z.seeAllGamesLink.target||""):(e=z.seeAllGamesLinkPC.url,t=z.seeAllGamesLinkPC.target||""),"s"!==O&&"m"!==O?jt().createElement(zP,{buttonProps:{"aria-label":z.seeAllGamesLink.ariaLabel||"","data-bi-id":z.seeAllGamesLink.id||"",onClick:function(){return window.open(e,t)},text:z.seeAllGamesLink.text},contentType:"none"}):jt().createElement(Aw,{contentType:"none",menuProps:{menuItems:[{"aria-label":z.seeAllGamesLink.ariaLabel||"","data-bi-id":z.seeAllGamesLink.id||"",key:"",name:z.seeAllGamesLink.text,onClick:function(n){window.open(e,t)}}],"aria-label":"menu {aria-label}".replace("{aria-label}",z.seeAllGamesLink.ariaLabel||""),"data-bi-id":"menu-{id}".replace("{id}",z.seeAllGamesLink.id||""),iconName:"MoreVertical"}})};(0,Gt.useEffect)((function(){var e,t,n=H?null===(e=H[G])||void 0===e?void 0:e.impressionBeaconUrl:"";if(n&&G!==d_e.RecentlyPlayed){var r=null===(t=H[G])||void 0===t?void 0:t.gameIds,o=yn(n=n.replace("{DATETIME}",(new Date).toISOString()).replace("{LAYOUTID}",G).replace("{ITEMIDS}",null===r||void 0===r?void 0:r.slice(0,J()).join(";")));o&&fetch(o,{mode:"no-cors"})}}),[G]);(0,Gt.useEffect)((function(){K&&(!function(){var e,t,n=H?null===(e=H[G])||void 0===e?void 0:e.clickBeaconUrl:"";if(n){var r=null===(t=H[G])||void 0===t?void 0:t.gameIds,o=yn(n=n.replace("{ACTION}","click").replace("{DATETIME}",(new Date).toISOString()).replace("{LAYOUTID}",G).replace("{ITEMIDS}",K).replace("{ITEMIDX}",null===r||void 0===r?void 0:r.findIndex((function(e){return K===e})).toString()));o&&fetch(o,{mode:"no-cors"})}}(),function(){var e,t="";if(t=G===d_e.Cloud?c_e:u_e,G===d_e.MostPopular||G===d_e.RecentlyAdded||G===d_e.ComingSoon||G===d_e.PicksForYou){var n,r,o=B.content.cancel.xbox.cloudSupportedCountries;t="cloud"===(null===(n=H[G])||void 0===n||null===(r=n.gamingPlatforms)||void 0===r?void 0:r.toLowerCase())||Mxe(o,(null===V||void 0===V?void 0:V.countryCode)||(null===L||void 0===L?void 0:L.market))?c_e:u_e}var i=(null===(e=N.gameInfoById[K])||void 0===e?void 0:e.title)||"";if(i){var a=i.toLowerCase().replace(/[^0-9a-z ]/gi,"").trim();i=a.replace(/\s+/g,"-")}window.open(t.replace("{gameTitle}",i).replace("{gameProductId}",K.toLowerCase()))}(),Y(""))}),[K]);var J=function(){if(X){if("xl"===O)return 4;if("l"===O||"xxl"===O)return 5;if("s"===O||"m"===O)return 3}return"xl"===O?5:"s"===O||"m"===O?4:6},$=function(){var e,t=(null===(e=H[G])||void 0===e?void 0:e.gameIds).slice(0,J()).map((function(e){return ee(e)}));if(X&&G!==d_e.RecentlyPlayed){var n,r,o="",i="";if(L.brandId===H7.XboxGamePassUltimate)o=z.seeAllGamesLink.url,i=null!==(n=z.seeAllGamesLink.target)&&void 0!==n?n:"";else o=z.seeAllGamesLinkPC.url,i=null!==(r=z.seeAllGamesLinkPC.target)&&void 0!==r?r:"";t.push({"aria-label":z.xboxSeeAllGamesImageOverlayText,onClickProps:{kind:"onClick",onClick:function(){return window.open(o,i)},"aria-label":z.xboxSeeAllGamesImageOverlayText,"data-bi-id":"{pivot}-see-all-games-card".replace("{pivot}",G).toLowerCase()},"data-bi-id":"{pivot}-see-all-games-card".replace("{pivot}",G).toLowerCase(),mediaImage:{imageType:"imageCard",src:z.xboxSeeAllGamesImage.src,textHost:{type:"topAligned",backgroundColor:"transparent",truncatedTextProps:{children:z.xboxSeeAllGamesImageOverlayText,lines:3,type:"text",variant:"headerText",colorOverride:"white"}}}})}var a=Object.keys(H).length>1?"0px 0px 8px 8px":"8px";return X?jt().createElement(_Q,{role:"region",features:[{featureNode:jt().createElement(rQ,{padding:"8px","aria-label":"",products:t}),backgroundColor:"neutralHigh"}],borderRadius:a,hasBoxShadow:!1}):jt().createElement(_Q,{role:"region",features:[{featureNode:jt().createElement(rQ,{padding:"8px","aria-label":"",products:t}),backgroundColor:"neutralHigh"},{featureNode:jt().createElement($R,{isAlwaysExpanded:!0},jt().createElement(SR,{columns:[Q(),Z()],variant:"EightFour",backgroundColor:"neutralMed"})),backgroundColor:"neutralHigh"}],borderRadius:a,hasBoxShadow:!1})},ee=function(e){var t,n,r,o="",i="",a="",s=Object.keys(null!==(t=N.gameInfoById[e])&&void 0!==t?t:{}).length>0?N.gameInfoById[e]:null===M||void 0===M?void 0:M.gameInfoById[e];if(s&&(n=null===s||void 0===s?void 0:s.imagePosterUrl,r="w=180&h=270",o=n.includes("?")?"".concat(n,"&").concat(r):"".concat(n,"?").concat(r),i=s.title),X&&G===d_e.ComingSoon){var l,c,u,d;if(L.brandId===H7.XboxGamePassUltimate)(c=null===(u=N.gameInfoById[e])||void 0===u?void 0:u.consoleComingSoonDate)&&(a=new Date(c).toLocaleDateString(L.locale,{month:"long",day:"numeric",year:"numeric"}));else(c=null===(d=N.gameInfoById[e])||void 0===d?void 0:d.pcComingSoonDate)&&(a=new Date(c).toLocaleDateString(L.locale,{month:"long",day:"numeric",year:"numeric"}));i=z.comingSoonDateAriaLabel.replace("{date}",a).replace("{title}",null===(l=N.gameInfoById[e])||void 0===l?void 0:l.title)}return{"aria-label":i,onClickProps:{kind:"onClick",onClick:function(t){return Y(e)}},"data-bi-id":"{pivot}-pivot-card".replace("{pivot}",G).toLowerCase(),mediaImage:{imageType:"imageCard",src:o,textHost:X&&G===d_e.ComingSoon&&a?{type:"bottomAligned",backgroundColor:"neutralSecondary",truncatedTextProps:{children:a,lines:1,type:"text",variant:"metadataText",colorOverride:"white",weightOverride:"semi-bold"}}:null},mediaText:""}};return 0===Object.keys(N).length||0===Object.keys(H).length||0===Object.keys(N.gameInfoById).length?null:Object.keys(H).some((function(e){return Object.values(d_e).find((function(t){return t===e}))}))?1===Object.keys(H).length?jt().createElement(bb,{boxShadow:!0,borderRadius:"8px"},$()):jt().createElement(bb,{boxShadow:!0,borderRadius:"8px"},jt().createElement(bQ,{"aria-label":z.gameCardAriaLabel,variant:"centeredWithBackground",selectedKey:G,onChange:function(e){j(e.itemKey)}},(null===(t=H[d_e.PC])||void 0===t||null===(n=t.gameIds)||void 0===n?void 0:n.length)>0&&null!==(r=H[d_e.PC])&&void 0!==r&&null!==(o=r.gameIds)&&void 0!==o&&o.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.PC?"primary":"default",text:z.pcPivot,icon:"PC1",itemKey:d_e.PC,"aria-label":z.pcPivotAriaLabel,"data-bi-id":"pc-games-pivot",id:"pc-games-pivot",staticWidth:"128px"},$()):null,(null===(i=H[d_e.Console])||void 0===i||null===(a=i.gameIds)||void 0===a?void 0:a.length)>0&&null!==(s=H[d_e.Console])&&void 0!==s&&null!==(l=s.gameIds)&&void 0!==l&&l.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.Console?"primary":"default",text:z.consolePivot,icon:"XboxOneConsole",itemKey:d_e.Console,"aria-label":z.consolePivotAriaLabel,"data-bi-id":"console-games-pivot",id:"console-games-pivot",staticWidth:"128px"},$()):null,(null===(c=H[d_e.Cloud])||void 0===c||null===(u=c.gameIds)||void 0===u?void 0:u.length)>0&&null!==(d=H[d_e.Cloud])&&void 0!==d&&null!==(p=d.gameIds)&&void 0!==p&&p.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.Cloud?"primary":"default",text:z.cloudPivot,icon:"Cloud",itemKey:d_e.Cloud,"aria-label":z.cloudPivotAriaLabel,"data-bi-id":"cloud-games-pivot",id:"cloud-games-pivot",staticWidth:"128px"},$()):null,X&&(null===(h=H[d_e.RecentlyPlayed])||void 0===h||null===(m=h.gameIds)||void 0===m?void 0:m.length)>0&&null!==(f=H[d_e.RecentlyPlayed])&&void 0!==f&&null!==(g=f.gameIds)&&void 0!==g&&g.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.RecentlyPlayed?"primary":"default",text:z.recentlyPlayed,itemKey:d_e.RecentlyPlayed,"aria-label":z.recentlyPlayedAriaLabel,"data-bi-id":"recently-played-games-pivot",id:"recently-played-games-pivot",staticWidth:"128px"},$()):null,(null===(v=H[d_e.PicksForYou])||void 0===v||null===(y=v.gameIds)||void 0===y?void 0:y.length)>0&&null!==(b=H[d_e.PicksForYou])&&void 0!==b&&null!==(C=b.gameIds)&&void 0!==C&&C.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.PicksForYou?"primary":"default",text:z.picksForYou,itemKey:d_e.PicksForYou,"aria-label":z.picksForYouAriaLabel,"data-bi-id":"picks-for-you-games-pivot",id:"picks-for-you-games-pivot",staticWidth:"128px"},$()):null,(null===(S=H[d_e.MostPopular])||void 0===S||null===(x=S.gameIds)||void 0===x?void 0:x.length)>0&&null!==(_=H[d_e.MostPopular])&&void 0!==_&&null!==(E=_.gameIds)&&void 0!==E&&E.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.MostPopular?"primary":"default",text:z.mostPopular,itemKey:d_e.MostPopular,"aria-label":z.mostPopularAriaLabel,"data-bi-id":"most-popular-games-pivot",id:"most-popular-games-pivot",staticWidth:"128px"},$()):null,(null===(k=H[d_e.RecentlyAdded])||void 0===k||null===(w=k.gameIds)||void 0===w?void 0:w.length)>0&&null!==(I=H[d_e.RecentlyAdded])&&void 0!==I&&null!==(P=I.gameIds)&&void 0!==P&&P.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.RecentlyAdded?"primary":"default",text:z.recentlyAdded,itemKey:d_e.RecentlyAdded,"aria-label":z.recentlyAddedAriaLabel,"data-bi-id":"recently-added-games-pivot",id:"recently-added-games-pivot",staticWidth:"128px"},$()):null,(null===(T=H[d_e.ComingSoon])||void 0===T||null===(D=T.gameIds)||void 0===D?void 0:D.length)>0&&null!==(A=H[d_e.ComingSoon])&&void 0!==A&&null!==(R=A.gameIds)&&void 0!==R&&R.every((function(e){return N.gameInfoById[e]}))?jt().createElement(CQ,{textColorVariant:G===d_e.ComingSoon?"primary":"default",text:z.comingSoon,itemKey:d_e.ComingSoon,"aria-label":z.comingSoonAriaLabel,"data-bi-id":"coming-soon-games-pivot",staticWidth:"128px",id:"coming-soon-games-pivot"},$()):null)):null},h_e=function(e){var t=Ua((0,Gt.useState)(!1),2),n=t[0],r=t[1],o=Bve();return jt().createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onMouseEnter:function(){r(!0)},onMouseLeave:function(){r(!1)},onClick:function(){ri({clickId:e["data-bi-id"],pageArea:o.area}),e.handleClick()},role:"link","data-bi-id":e["data-bi-id"],"aria-label":e["aria-label"],tabIndex:0},jt().createElement(bb,{childrenGap:8,horizontal:!0,horizontalAlign:"end",verticalAlign:"center"},e.featureNode,jt().createElement(bb,null,jt().createElement(Ib,{nowrap:!0,block:!0,variant:n?"bodyThemeDarkText":"headerText",weightOverride:"semi-bold"},e.primaryText),jt().createElement(Ib,{nowrap:!0,block:!0,variant:n?"bodyThemeText":"bodySecondaryText"},e.secondaryText))))},m_e=function(e){var t,n,r,o,i,a,s,l,c,u,d,p=e.personalizedXboxDetails,h=ny(),m=Xve().content.cancel.xbox.gameInfoFeature,f=!!(p.isFriendsDetailsSucess&&null!==p&&void 0!==p&&p.friendsDetails&&(null===(t=p.friendsDetails)||void 0===t?void 0:t.length)>0),g=!!(null!==p&&void 0!==p&&null!==(n=p.userDetails)&&void 0!==n&&n.gamerScore&&Number(null===(r=p.userDetails)||void 0===r?void 0:r.gamerScore)>0),v=null!==(o=m.xboxGamerScoreAriaLabel.replace("{score}",null!==(i=null===p||void 0===p||null===(a=p.userDetails)||void 0===a?void 0:a.gamerScore)&&void 0!==i?i:""))&&void 0!==o?o:"",y=m.friendsFacepileYourSquadAriaLabel,b=m.friendsFacepileYourSquadText,C=m.friendsFacepileViewAllFriendsText,S=function(){window.open("https://account.xbox.com/profile")};return jt().createElement(bb,{horizontal:["xl","xxl","xxxl"].includes(h),verticalAlign:"center",horizontalAlign:"space-between",padding:"0px 20px 20px 0px",overflow:"hidden",childrenGap:"16px"},jt().createElement(bb,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start"},null!==p&&void 0!==p&&null!==(s=p.userDetails)&&void 0!==s&&s.gamertag?jt().createElement(jt().Fragment,null,jt().createElement(NP,{size:["s"].includes(h)?"24":"32",imageUrl:null===p||void 0===p||null===(l=p.userDetails)||void 0===l?void 0:l.displayPicRaw,hideText:!0}),jt().createElement(bb,{padding:"0px 0px 0px 8px"},jt().createElement(Ib,{variant:["s"].includes(h)?"paneTitle":"paneHeader",children:null===p||void 0===p||null===(c=p.userDetails)||void 0===c?void 0:c.gamertag}))):null),jt().createElement(bb,{horizontal:!0,width:["s","m","l"].includes(h)?"100%":"40%",horizontalAlign:"space-between",wrap:!0,reversed:!g||!f},g&&jt().createElement(h_e,{primaryText:null!==(u=null===(d=p.userDetails)||void 0===d?void 0:d.gamerScore)&&void 0!==u?u:"",handleClick:S,"aria-label":v,featureNode:jt().createElement(NP,{size:"32",hideText:!0,imageUrl:m.xboxGamerScoreImage.src}),"data-bi-id":"gamer-score-link"}),f&&jt().createElement(h_e,{primaryText:b,secondaryText:C,"aria-label":y,handleClick:S,featureNode:function(){var e=null===p||void 0===p?void 0:p.friendsDetails.map((function(e){return{ariaLabel:"",imageUrl:e.displayPicRaw,personaName:e.gamertag,tabIndex:-1}}));return 1===e.length?jt().createElement(NP,{size:"32",hideText:!0,imageUrl:e[0].imageUrl}):jt().createElement(mL,{personas:e,personaSize:"32",maxDisplayablePersonas:2,showTooltip:!1,overflowButton:"descriptive",overflowButtonProps:{onClick:S,tabIndex:-1}})}(),"data-bi-id":"gamer-friends-link"})))},f_e=function(e){var t=e.gameInfo,n=e.personalizedXboxDetails,r=zye();if(!r)throw new Error("Service details not found");return jt().createElement(bb,null,jt().createElement(m_e,{personalizedXboxDetails:n}),jt().createElement(cg,{variant:"XboxTheme"},jt().createElement(p_e,{gameInfo:t,recentlyPlayedGames:function(){var e={},t=[];return n.isRecentlyPlayedSucess&&null!==n&&void 0!==n&&n.recentlyPlayedGames&&Object.entries(null===n||void 0===n?void 0:n.recentlyPlayedGames).length>0&&Object.entries(n.recentlyPlayedGames).forEach((function(n){var r,o,i,a=Ua(n,2),s=a[0],l=a[1];e[s]={imagePosterUrl:(i=null!==(r=l.imagePosterUrl)&&void 0!==r?r:"",i.replace(/^(?:(.*:)?\/\/)?(.*)/i,(function(e,t,n){return t?e:"https://".concat(n)}))),imageBoxArtUrl:"",title:null!==(o=l.title)&&void 0!==o?o:""},t.push(l.productId)})),{gameInfoById:e,surfaceInfoByName:{},surfaceInfoByNameV1:{RecentlyPlayed:{gameIds:t,clickBeaconUrl:"",impressionBeaconUrl:"",gamingPlatforms:""}}}}(),defaultTab:function(){var e=d_e.PicksForYou;return r.brandId===H7.XboxGamePassUltimate?zs("XGPUPhaseTwo",!1)?e=d_e.RecentlyPlayed:zs("XGPUPhaseTwoComingSoon",!1)&&(e=d_e.ComingSoon):r.brandId===H7.PCGamePass&&(zs("PCGamePassPhaseTwo",!1)?e=d_e.RecentlyPlayed:zs("PCGamePassPhaseTwoComingSoon",!1)&&(e=d_e.ComingSoon)),e}()})))},g_e=function(e){var t=zye();if(!t)throw new Error("Service details not found");var n=Xve().content.common,r=n.nonUpgradableBrandIds.includes(t.brandId),o=!(n.nonUpgradableMarket.includes(t.market)&&r),i=t.billingState!==t7.InDunning&&o;return jt().createElement(bb,{childrenGap:32},jt().createElement(Hxe,{profileInfo:e.profileInfo,gameInfo:e.gameInfo}),t.brandId===H7.PCGamePass?function(){var t=!(0===Object.keys(e.gameInfo).length||0===Object.keys(e.gameInfo.surfaceInfoByName).length&&0===Object.keys(e.gameInfo.surfaceInfoByNameV1).length||0===Object.keys(e.gameInfo.gameInfoById).length),n=Object.keys(e.personalizedXboxDetails).length;return t&&n?jt().createElement(f_e,{gameInfo:e.gameInfo,personalizedXboxDetails:e.personalizedXboxDetails}):t?jt().createElement(cg,{variant:"XboxTheme"},jt().createElement(p_e,{gameInfo:e.gameInfo})):null}():null,i?jt().createElement(l_e,null):jt().createElement(jt().Fragment,null),jt().createElement(jt().Fragment,null,jt().createElement(dxe,null),t.pastDueBalance?jt().createElement(bb,{padding:"8px 0px 0px 0px"},jt().createElement(n_e,null)):null),jt().createElement(Qxe,{horizontalAlign:"center",padding:"0px 0px"}))},v_e=function(e){var t,n,r=e.downgradePaths,o=e.setSelectedDowngradePath,i=Xve(),a=zye(),s=EM(),l=M_e(),c=l.dispatch,u=l.isTurnOffRB,d=l.cancelScenarioStartTimeStamp,p=dg();if(!a)throw new Error("Service details not found");var h=a.isXboxFamily,m=null!==(t=gn(Y6,!0))&&void 0!==t?t:void 0,f=r.pathsData.find((function(e){return e.productId===m}));exe({service:a,selectedSwitchPath:f,dialogController:s,cancelScenarioStartTimeStamp:d});var g={size:"sm",image:{imageType:"icon",iconName:"CheckMark",iconColor:"successIcon"},padding:"0px 0px",height:"36px"},v=function(){return[H7.XboxGamePassUltimate,H7.PCGamePass,H7.XboxGamePass,H7.XboxLive].reduce((function(e,t,n){return e[t]=n,e}),{})},y=function(e){var t=Kt(i.content.cancel.strings.arContinueButtonText,a.market),n=Kt(i.content.cancel.xbox.comparisionFeature.keepAutoRenewAriaLabel,a.market);return{text:u?t:i.content.cancel.xbox.comparisionFeature.keepSubscription,"aria-label":u?n.replace("{currentTitle}",e.title).replace("{currentPrice}",e.price):i.content.cancel.xbox.comparisionFeature.keepSubscriptionAriaLabel.replace("{currentTitle}",e.title).replace("{currentPrice}",e.price),"data-bi-id":"".concat(e.brandId,"-stay-btn"),onClick:function(){Cr({step:"saveflow.keep"}),c({flow:kxe})}}},b=function(e){var t={};t["awa-downgradetitle"]=e.brandId;var n=i.content.cancel.xbox.comparisionFeature.switchNowAriaLabel.replace("{downgradeTitle}",e.title).replace("{downgradePrice}",e.price),r={service:a,downgradePath:e,cancelScenarioStartTimeStamp:d};return{text:i.content.cancel.xbox.comparisionFeature.switchNow,"aria-label":n,"data-bi-id":"".concat(e.brandId,"-switch-btn"),onClick:function(){Cr({step:"XboxSave.Downgrade.DowngradeOptions.DowngradePlan",data:t}),zs("SvcDowngradeAsDialog")?s.openDialog(jt().createElement(GSe,r)):o(e)}}},C=function(e){var t,n=e.brandId,r=function(e){var t={};switch(e){case H7.XboxGamePassUltimate:h?(t=i.content.cancel.xbox.comparisionFeature.xboxGamePassUltimateFamily,h=!1):t=zs(ube,!1)?i.content.cancel.xbox.comparisionFeature.xboxGamePassUltimateNew:i.content.cancel.xbox.comparisionFeature.xboxGamePassUltimate;break;case H7.XboxLive:t=zs(ube,!1)?i.content.cancel.xbox.comparisionFeature.xboxLiveNew:i.content.cancel.xbox.comparisionFeature.xboxLive;break;case H7.PCGamePass:t=i.content.cancel.xbox.comparisionFeature.pcGamePass;break;case H7.XboxGamePass:t=i.content.cancel.xbox.comparisionFeature.xboxGamePass;break;default:t={}}return t}(n),o=null===(t=Object.entries(r))||void 0===t?void 0:t.map((function(e,t){var r=Ua(e,2),o=r[0],i=r[1];return{"aria-labelledby":"".concat(n,"-").concat(o),child:jt().createElement(jk,Object.assign({id:"".concat(n,"-").concat(o)},g),jt().createElement(Ib,{variant:"bodySecondaryText"},i))}}));return jt().createElement(vB,{badge:e.isCurrent?i.content.cancel.xbox.comparisionFeature.currentSubscription:void 0,title:{children:e.title},subtitle:{children:i.content.cancel.xbox.comparisionFeature.downgradeCardPriceText.replace("{price}",e.price)},actions:{cta:e.isCurrent?y(e):b(e)},features:o,variants:{alignment:"center"}})};return jt().createElement(bb,{childrenGap:"24px"},jt().createElement(Cb,null,jt().createElement(ox,{variant:"statusHeader",textWithTokens:i.content.cancel.xbox.comparisionFeature.downgradePlanHeaderPartOne,tokensAndValues:{0:jt().createElement("sup",{style:{color:p.palette.green,fontSize:"24px",fontWeight:600}},i.content.cancel.xbox.comparisionFeature.downgradePlanHeaderPartTwo)}})),jt().createElement(Cb,null,jt().createElement(wB,{variants:{horizontalLayoutBreakpoint:"l"}},null===(n=r.pathsData)||void 0===n?void 0:n.map((function(e){return e})).sort((function(e,t){return v()[e.brandId]-v()[t.brandId]})).map((function(e){return C(e)})))))},y_e=function(e,t){var n,r,o,i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=null!==(n=null===e||void 0===e||null===(r=e.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.error)&&void 0!==n?n:t,c=(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.error)||(null===e||void 0===e?void 0:e.message);if(b8.indexOf(c)>-1){var u=km({},s);u.isUserError=!0,_r({error:l,data:km(km({},u),{},{errorDetails:e})})}else _r({error:l,data:km(km({},s),{},{errorDetails:e})})},b_e="services.getSurvey",C_e=function(e){var t=e.surveyId,n=Bve().language,r=mi(),o=P7();return(0,Gt.useEffect)((function(){var e=setTimeout(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({name:b_e,status:"first-load"}),e.next=4,o(t,n);case 4:r({name:b_e,status:"finished"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),r({name:b_e,status:"failed",error:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),1e3);return function(){return clearTimeout(e)}}),[t,n,r,o]),jt().createElement(vi,{operationData:{componentName:"survey",operationName:b_e},finishedView:jt().createElement(jt().Fragment,null)})},S_e=function(e){var t=e.pageTitle,n=e.subTitle1,r=e.isResubscribeButton,o=e.isAddAddressButton,i=e.isTryAgainButton,a=e.ctaResubscribeUrl,s=e.isContactSupportButton,l=e.isTurnOnArButton,c=e.subTitle2,u=e.isCtaLanding,d=void 0===u||u,p=e.isServiceMutated,h=void 0===p||p,m=e.surveyId,f=e.flowType,g=e.image,v=qo(),y=Xve(),b=y.content.cancel.strings.confirmationContent,C=y.content.common.smdError,S=zye(),x=gbe(),_=uxe(),E=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),k=E[0],w=E[1],I=ny(),P=["s"].includes(I),T=M_e().isTurnOffRB,D="confirm-back-to-subscription-button";vn(S,"Service in Confirmation"),(0,Gt.useLayoutEffect)((function(){tbe()}),[]);var A="/";d&&h?A="/?forceReload=true":d||(A="/".concat(null===S||void 0===S?void 0:S.modelId,"/details#billing"));var R=d||S.isM365BasicSku?b.backToSubscriptions:b.backToSubscription,N=S.isM365BasicSku&&s?"8px":"0px",M=jt().createElement(Cb,{padding:"34px 0px 0px ".concat(N)},jt().createElement(dk,{text:R,"aria-label":b.backToSubscriptionsAriaLabel,"data-bi-id":"confirm-back-to-subscription",onClick:function(){h&&x.onServiceUpdate(),v.replace(A)},type:o||i||s?"default":"primary",id:D})),F=Bve(),B=Ua(bre(F.area),2),O=B[0],L=B[1];Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f===Sxe&&S.isM365FullSku&&O(S,"CancelConfirmation");case 1:case"end":return e.stop()}}),e)})))),(0,Gt.useEffect)((function(){var e;null===(e=document.getElementById(D))||void 0===e||e.focus()}),[]);var H=jt().createElement(Cb,{padding:"34px 0px 0px 8px"},jt().createElement(dk,{text:b.reSubscribe,"aria-label":b.reSubscribeAriaLabel,"data-bi-id":"confirm-resubscribe",onClick:function(){S.isM365BasicSku?window.open(a,"_blank"):S.isM365FullSku?L(S,a,"cmm808p728i",!0):window.open(a,"_blank")},type:"default"})),V=T?"confirm-turn-on-ar-button":"cancel-confirm-turn-on-ar-button",z=jt().createElement(Cb,{padding:"34px 0px 0px 8px"},jt().createElement(dk,{text:b.turnOnAr,"aria-label":b.turnOnArAriaLabel,"data-bi-id":V,onClick:function(){S.isM365BrandId?v.push("/?launchRenewDialog=true&modelId=".concat(S.modelId,"&fref=save-flow-confirmation")):window.open(a,"_blank")},type:"default"})),U=jt().createElement(jt().Fragment,null),W=o8(C),G=W.buttonText,j=W.buttonUrlReplacementString;G&&j&&(U=jt().createElement(Cb,{padding:"34px 0px 0px 8px"},jt().createElement(dk,{text:G,"aria-label":G,"data-bi-id":"confirm-add-an-address",onClick:function(){return window.location.replace(j)},type:"primary"})));var q,K=jt().createElement(Cb,{padding:"34px 0px 0px 8px"},jt().createElement(dk,{text:b.tryAgain,"aria-label":b.tryAgain,"data-bi-id":"confirm-retry",onClick:function(){window.location.href=dn(window.location.href,"fref","covid-offer-retry")},type:"primary"})),Y=jt().createElement(Cb,{padding:"34px 0px 0px 0px"},jt().createElement(dk,{text:b.contactSupport,"aria-label":b.contactSupportAriaLabel,"data-bi-id":"save-flow-contact-support-button",onClick:function(){window.open(b.contactSupportLink.url,"_blank")},type:"primary"}));if(null!==S&&void 0!==S&&S.isM365FullSku&&_){switch(f){case _xe:q=_.turnoffRbConfirmationContent;break;case Sxe:q=_.cancelConfirmationContent;break;case kxe:q=_.keepSubContent}if(q){var X,Q,Z=qxe(q,"click"),J=null!==(X=q.ad.ctaText)&&void 0!==X?X:R,$=null!==(Q=q.ad.ctaUrl)&&void 0!==Q?Q:A;H=jt().createElement(Cb,{padding:"34px 0px 0px 8px"},jt().createElement(dk,{text:J,"aria-label":J,"data-bi-id":"iris-confirm-primary-button",onClick:function(){window.open($,"_blank"),w(Z)},type:"default"}),k)}}var ee=jt().createElement(bb,{horizontal:!P},s?Y:jt().createElement(jt().Fragment,null),M,r?H:jt().createElement(jt().Fragment,null),o?U:jt().createElement(jt().Fragment,null),i?K:jt().createElement(jt().Fragment,null),l?z:jt().createElement(jt().Fragment,null)),te=function(e){return"string"===typeof e?jt().createElement(Ib,{variant:"bodyPrimaryText"},e):jt().createElement(ox,{textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues})};return jt().createElement(bb,{maxWidth:1098},jt().createElement(Cb,null,jt().createElement(Hxe,{pageTitle:t})),null!==g&&void 0!==g&&g.src&&0!==(null===g||void 0===g?void 0:g.src.length)?jt().createElement(Cb,{padding:"39px 0px 0px 0px"},jt().createElement(zk,{alt:g.alt,imageType:"altTextImage",src:g.src})):jt().createElement(jt().Fragment,null),jt().createElement(Cb,{padding:"32px 0px 0px 0px"},te(n)),c?jt().createElement(Cb,null,te(c)):jt().createElement(jt().Fragment,null),ee,m?jt().createElement(C_e,{surveyId:m}):jt().createElement(jt().Fragment,null),jxe(q))},x_e=function(){var e=Xve().content.cancel.strings.confirmationContent;return(0,Gt.useLayoutEffect)((function(){tbe()}),[]),jt().createElement(bb,null,jt().createElement(hI,null,jt().createElement(nw,{width:"14.02%",height:12})),jt().createElement(Cb,{padding:"41px 0px 0px 0px"},jt().createElement(nw,{width:"98.64%",height:31})),jt().createElement(Cb,{padding:"39px 0px 0px 0px"},jt().createElement(nw,{width:"86.90%",height:8})),jt().createElement(Cb,{padding:"10px 0px 0px 0px"},jt().createElement(nw,{width:"73.64%",height:8})),jt().createElement(Cb,{padding:"40px 0px 0px 0px"},jt().createElement(dk,{disabled:!0,text:e.backToSubscriptions,"aria-label":"","data-bi-id":"",onClick:function(){},type:"primary"})))},__e=function(e){var t=e.customBiScenarioData,n=void 0===t?{}:t,r=e.isNonRefundableFlow,o=void 0!==r&&r,i=zye(),a=Xve().content.cancel.strings.confirmationContent;if(!i)throw new Error("Service details not found");Qt((function(){o&&_r({data:n})}));var s=!1,l=a.contactSupportTitle,c={textWithTokens:a.contactSupportSubtitle.replace("{subscriptionName}",i.name),tokensAndValues:{supportLink:jt().createElement(nx,Object.assign({id:"save-flow-contact-support"},one(a.contactSupportLink)))}};i.isM365BasicSku&&(o?(l=a.m365BasicDisableAutoRenewSuccessTitle.replace("{date}",gx(i.endDate)),c=sn(a.m365BasicCancelSuccessSubtitle1,{SKU:i.name,date:gx(i.endDate)})):(l=a.contactSupportTitleBasic,c=a.contactSupportSubtitleBasic,s=!0));var u={pageTitle:l,subTitle1:c,isResubscribeButton:!1,isCtaLanding:!1,isServiceMutated:!1,isContactSupportButton:s};return jt().createElement(S_e,u)},E_e=function(e){var t,n,r=e.downgradePath,o="downgradePlan",i=mi(),a=zye(),s=Xve().content.cancel.strings.confirmationContent;if(!a)throw new Error("Service details not found");var l={};l["awa-downgradechargedate"]=null===(t=a.renewalRecurrence)||void 0===t||null===(n=t.nextRenewalCharge)||void 0===n?void 0:n.chargeDate,l["awa-downgradetitle"]=r.brandId,Qt(Zve(fve().mark((function e(){var t,n,s,c,u;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Cr({step:"SubscriptionSave.Final"}),Cr({step:"saveflow.downgrade-plan.page.final"}),i({name:o,status:"first-load"}),e.prev=3,t={service:a,productId:r.productId,skuId:r.skuId,availabilityId:"",challengeCompletedStatus:"",paymentSessionId:""},e.next=7,l9(t);case 7:i({name:o,status:"finished"}),xr(),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(3),c=e.t0,u=(null===c||void 0===c||null===(n=c.response)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.error)||c.message||"Cannot switch subscription",i({name:o,status:"failed",error:c}),y_e(c,u,l);case 17:case"end":return e.stop()}}),e,null,[[3,11]])}))));var c="",u="",d="";a.isXboxBrandId&&(c=s.xboxDowngradePlanTitle.replace("{subscriptionName}",r.title),u=s.xboxDowngradePlanSubtitle1.replace("{amount}",r.price).replace("{renewalDate}",gx(a.endDate)),d=s.xboxDowngradePlanSubtitle2.replace("{subscriptionName}",a.name));var p={pageTitle:c,subTitle1:u,subTitle2:d,isResubscribeButton:!1,isCtaLanding:!1,image:s.cancelSuccessImage};return jt().createElement(dv,{operationData:{componentName:"switch-subscription-confirmation",operationName:o},firstLoadView:jt().createElement(x_e,null),finishedView:jt().createElement(S_e,p),failedView:jt().createElement(__e,null)})},k_e=function(e){var t,n,r=e.downgradePath,o=e.setSelectedDowngradePath,i=Xve().content.cancel,a=qo(),s=zye();if(!s)throw new Error("Service details not found");(0,Gt.useLayoutEffect)((function(){tbe()}),[]);var l=ny(),c=["s","m","l"].includes(l),u=function(e){return c?"start":e?"center":"baseline"},d={imageType:"icon",iconName:"PaymentCard"},p=s.billingState===t7.ExpiredPrimaryPI,h=!(null===(t=s.backupPayment)||void 0===t||!t.id)&&!s.backupPayment.valid,m=Xve().content,f=Ua((0,Gt.useState)(!1),2),g=f[0],v=f[1],y=function(){xr(),a.push("/".concat(s.modelId,"/details?openChangeBackupPayment=true"))},b={text:m.cancel.xbox.downgradeConfirmation.confirmButtonText,onClick:function(){Cr({step:"saveflow.downgrade-plan.confirm"}),v(!0)},"aria-label":m.cancel.xbox.downgradeConfirmation.confirmButtonText,"data-bi-id":"cancel-primary-button",type:"primary",disabled:h},C={text:m.cancel.xbox.downgradeConfirmation.cancelButtonText,onClick:function(){tbe(),Cr({step:"saveflow.downgrade-plan.cancel"}),o({})},"aria-label":m.cancel.xbox.downgradeConfirmation.cancelButtonText,"data-bi-id":"cancel-secondary-button",type:"default"};return g?jt().createElement(E_e,{downgradePath:r}):jt().createElement(bb,null,jt().createElement(Cb,null,jt().createElement(Hxe,{pageTitle:m.cancel.xbox.downgradeConfirmation.downgradeConfirmPageTitle})),jt().createElement(Cb,{margin:"28px 0px 12px 0px"},jt().createElement(jk,Object.assign({id:"".concat(r.brandId)},{size:"lg",image:{imageType:"icon",iconName:"XboxLogo",iconColor:"successIcon"},padding:"6px 0px 0px 0px"}),jt().createElement(bb,{margin:"0px 0px 0px 8px"},jt().createElement(Cb,{height:"24px"},jt().createElement(Ib,{variant:"headerText"},r.title)),function(){var e=i.xbox.downgradeConfirmation.downgradePriceText.replace("{price}",r.price);return jt().createElement(Cb,{height:"20px"},jt().createElement(Ib,{variant:"bodySecondaryText"},e))}()))),jt().createElement(Cb,null,jt().createElement("hr",null)),jt().createElement(Cb,null,jt().createElement(bb,{margin:"12px 0px 0px 0px"},jt().createElement(Ib,{variant:"bodySecondaryText"},i.xbox.downgradeConfirmation.confirmMessagePartOne.replace("{subName}",s.name),jt().createElement(Ib,{variant:"bodySecondaryText"},jt().createElement(ox,{textWithTokens:i.xbox.downgradeConfirmation.confirmMessagePartTwo,tokensAndValues:{startDate:jt().createElement(Ib,{weightOverride:"semi-bold"},gx(s.endDate)),price:jt().createElement(Ib,{weightOverride:"semi-bold"},i.xbox.downgradeConfirmation.priceApplicableTaxMonthly.replace("{price}",r.price)),newSub:jt().createElement(Ib,null,r.title)}}))))),jt().createElement(Cb,null,jt().createElement(bb,{margin:"48px 0px 0px 0px"},jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodyPrimaryText"},m.cancel.xbox.downgradeConfirmation.paymentMethodText)),jt().createElement(Cb,null,jt().createElement(bb,{horizontal:!c,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:u(!0)},jt().createElement(jk,{size:"md",image:d,padding:"0px",height:"40px"},jt().createElement(Ib,{weightOverride:"semi-bold",colorOverride:p?"error":void 0},s.payment?c8(s.payment,m.commonCommerce.common.piList):""))))))),null!==(n=s.backupPayment)&&void 0!==n&&n.id?jt().createElement(Cb,null,jt().createElement(bb,{margin:"10px 0px 0px 0px"},jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodyPrimaryText"},m.cancel.xbox.downgradeConfirmation.backupPaymentMethodText)),jt().createElement(Cb,null,jt().createElement(bb,{horizontal:!c,childrenGap:12,wrap:!0},jt().createElement(Cb,{align:u(!0)},jt().createElement(jk,{size:"md",image:d,padding:"0px",height:"40px"},jt().createElement(Ib,{weightOverride:"semi-bold",colorOverride:h?"error":void 0},s.backupPayment?c8(s.backupPayment,m.commonCommerce.common.piList):""))),h?jt().createElement(Cb,{align:u(!0)},jt().createElement(bb,{horizontal:!0,childrenGap:6},jt().createElement(Hy,{color:"errorIcon",iconName:"Info"}),jt().createElement(rx,{onClick:y,"aria-label":m.cancel.xbox.downgradeConfirmation.fixHowYouPay,"data-bi-id":"Fix-how-you-pay-id"},m.cancel.xbox.downgradeConfirmation.fixHowYouPay))):null)))):null,jt().createElement(Cb,null,jt().createElement(bb,{margin:"32px 0px 0px 0px"},jt().createElement(Ib,{variant:"bodySecondaryText"},function(){var e=i.xbox.downgradeConfirmation.confirmTermsPartOne,t=i.xbox.downgradeConfirmation.confirmTermsPartTwo,n=i.xbox.downgradeConfirmation.confirmTermsPartThree;return jt().createElement(bb,{margin:"0px 0px 0px 0px"},jt().createElement(Ib,{variant:"bodySecondaryText"},e,jt().createElement(Ib,{variant:"bodySecondaryText"},t),jt().createElement(nx,{"aria-label":i.xbox.downgradeConfirmation.learnMore.text,"data-bi-id":"downgrade-confirm-learn-more",href:i.xbox.downgradeConfirmation.learnMore.url,textVariant:"bodyThemeText"},i.xbox.downgradeConfirmation.learnMore.text)),jt().createElement(Ib,{variant:"bodySecondaryText"},n,jt().createElement(nx,{"aria-label":i.xbox.downgradeConfirmation.serviceAgreement.text,"data-bi-id":"downgrade-confirm-service-agreement",href:i.xbox.downgradeConfirmation.serviceAgreement.url,textVariant:"bodyThemeText"},i.xbox.downgradeConfirmation.serviceAgreement.text)))}()))),jt().createElement(Cb,null,jt().createElement(bb,{margin:"28px 0px 0px 0px",childrenGap:12,horizontal:!0},jt().createElement(Cb,null,jt().createElement(dk,b)),jt().createElement(Cb,null,jt().createElement(dk,C)))))},w_e=function(e){var t=e.downgradePaths,n=e.profileInfo,r=e.gameInfo,o=e.personalizedXboxDetails,i=zye();if(!i)throw new Error("Service details not found");var a=!(0===Object.keys(r).length||0===Object.keys(r.surfaceInfoByName).length&&0===Object.keys(r.surfaceInfoByNameV1).length||0===Object.keys(r.gameInfoById).length),s=!(null===t||void 0===t||!t.pathsData),l=!(null===i||void 0===i||!i.pastDueBalance),c=a||s||l,u=Ua((0,Gt.useState)({}),2),d=u[0],p=u[1];return d&&d.brandId?jt().createElement(k_e,{downgradePath:d,setSelectedDowngradePath:p}):jt().createElement(bb,{childrenGap:32},jt().createElement(Hxe,{profileInfo:n,gameInfo:r}),a&&Object.keys(o).length>0?jt().createElement(f_e,{gameInfo:r,personalizedXboxDetails:o}):a&&jt().createElement(cg,{variant:"XboxTheme"},jt().createElement(p_e,{gameInfo:r})),s?jt().createElement(v_e,{downgradePaths:t,setSelectedDowngradePath:p}):null,l?jt().createElement(n_e,null):null,c?jt().createElement(Qxe,{horizontalAlign:"start",padding:"0px 0px"}):jt().createElement(jt().Fragment,null),jt().createElement(B_e,null),c?jt().createElement(jt().Fragment,null):jt().createElement(Qxe,{horizontalAlign:"start",padding:"0px 0px"}))},I_e=function(e){var t=e.profileInfo,n=e.gameInfo,r=e.downgradePaths,o=e.upgradePaths,i=e.purchasePaths,a=e.personalizedXboxDetails,s=e.isCovidOfferAvailable,l=e.usqData,c=zye();if(!c)throw new Error("Service details not found");var u=M_e().conversionPathTypes;return Qt((function(){if(c.isXboxBrandId){var e,t,r={};if(Object.keys(n).length>0)Object.keys(null===n||void 0===n?void 0:n.surfaceInfoByName).forEach((function(e){var t;r[e]={},r[e].gamesCount=n.surfaceInfoByName[e].gameIds.length,r[e].gamingPlatforms=null!==(t=n.surfaceInfoByName[e].gamingPlatforms)&&void 0!==t?t:""})),Object.keys(null===n||void 0===n?void 0:n.surfaceInfoByNameV1).forEach((function(e){var t;r[e]={},r[e].gamesCount=n.surfaceInfoByNameV1[e].gameIds.length,r[e].gamingPlatforms=null!==(t=n.surfaceInfoByNameV1[e].gamingPlatforms)&&void 0!==t?t:""})),(null===(e=Object.keys(null!==(t=a.recentlyPlayedGames)&&void 0!==t?t:{}))||void 0===e?void 0:e.length)>0&&(r.RecentlyPlayed={gamesCount:Object.keys(null!==a&&void 0!==a?a:{}).length}),Cr({step:"XboxSave.Benefits",data:Object.keys(r).length?{gamesData:r}:null});else Cr({step:"XboxSave.Benefits"})}})),c.brandId===H7.XboxGamePassUltimate?jt().createElement(w_e,{profileInfo:t,gameInfo:n,downgradePaths:r,personalizedXboxDetails:a}):c.isXboxBrandId?jt().createElement(g_e,{profileInfo:t,gameInfo:n,personalizedXboxDetails:a}):c.isM365FullSku||c.isM365BasicSku?jt().createElement(s_e,{isCovidOfferAvailable:s,conversionPathType:u||"",downgradePaths:r,upgradePaths:o,purchasePaths:i,usqData:l}):null},P_e=function(e){var t=e.cancelFlow,n=e.cancelError,r=e.cancelErrorCode,o=e.customBiDefault,i=void 0===o?{}:o,a=zye(),s=Xve().content.cancel.strings.confirmationContent,l=Ua((0,Gt.useState)(!1),2),c=l[0],u=l[1],d={};if(!a)throw new Error("Service details not found");var p=function(e,t){var n,r,o,a,s=(null===t||void 0===t||null===(n=t.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||(null===t||void 0===t?void 0:t.message)||"Cannot cancel service";switch(d.errorDetails=(null===t||void 0===t||null===(o=t.response)||void 0===o||null===(a=o.data)||void 0===a?void 0:a.error)||"",e){case t9:d[qye]="rejected",d[Kye]="Refund",d.isUserError=!0,_r({data:d}),u(!0);break;case r9:d[qye]="mismatch",d[Kye]="Refund",d.isUserError=!0,_r({data:d});break;case e9:d[qye]="scheduled",d[Kye]="Refund",d.isUserError=!0,_r({data:d});break;case n9:d[qye]="token",d[Kye]="Refund",d.isUserError=!0,_r({data:d}),u(!0);break;default:y_e(t,s,i)}},h=function(e){var t=e.toString();switch(d.errorDetails=t,e){case i9:d[qye]="rejected",d[Kye]="Refund",d.isUserError=!0,_r({data:d}),u(!0);break;case a9:d[qye]="scheduled",d[Kye]="Refund",d.isUserError=!0,_r({data:d});break;default:_r({error:t,data:d})}};Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r?h(r):p(t,n);case 1:case"end":return e.stop()}}),e)}))));return function(){if(c){var e={pageTitle:s.xboxNoRefundTitle,subTitle1:s.xboxNoRefundSubTitle.replace("{subscriptionName}",a.name).replace("{renewalDate}",gx(a.endDate)),isResubscribeButton:!1,isCtaLanding:!1};return jt().createElement(S_e,e)}return jt().createElement(__e,null)}()},T_e=function(e){var t=e.customBiScenarioData,n=void 0===t?{}:t,r="saveFlowCancel",o=mi(),i=zye(),a=M_e(),s=a.cancelRefundData,l=a.isTurnOffRB,c=Xve().content.cancel,u=c.strings.confirmationContent,d=c.strings.cancelDunningGamesList,p=uxe(),h=Ua((0,Gt.useState)({}),2),m=h[0],f=h[1],g=Ua((0,Gt.useState)({}),2),v=g[0],y=g[1],b=Ua((0,Gt.useState)(0),2),C=b[0],S=b[1],x=Ua((0,Gt.useState)(!1),2),_=x[0],E=x[1],k=Ua((0,Gt.useState)(!1),2),w=k[0],I=k[1],P=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),T=P[0],D=P[1],A=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),R=A[0],N=A[1];if(!i)throw new Error("Service details not found");var M=i.billingState===t7.InDunning||i.status===o7;Qt(Zve(fve().mark((function e(){var t,a,c,u,d;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o({name:r,status:"first-load"}),i.isXboxBrandId?Cr({step:"XboxSave.Final"}):i.isM365BrandId?Cr({step:"OfficeSave.Final"}):Cr({step:"SubscriptionSave.Final"}),e.prev=2,e.next=5,Y8(i,s.data);case 5:return t=e.sent,f(t),t.error&&0!==t.error?S(t.error):(c=null===(a=Yn(Qye))||void 0===a?void 0:a.content,_r({data:km(km({},n),{},_m({isTurnOffRB:l},Qye,c))})),e.next=10,K9({modelId:i.modelId,forceReload:!0});case 10:(u=e.sent)?(Uye(u),o({name:r,status:"finished"})):o({name:r,status:"failed",error:{name:"getSubscriptionAsync",message:"Subscription not found"}}),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(2),d=e.t0,y({error:d,customBiScenarioData:n}),o({name:r,status:"failed",error:d});case 19:case"end":return e.stop()}}),e,null,[[2,14]])}))));return jt().createElement(dv,{operationData:{componentName:"cancel-subscription-confirmation",operationName:r},firstLoadView:jt().createElement(x_e,null),finishedView:function(){if(v&&(null!==v&&void 0!==v&&v.error||null!==v&&void 0!==v&&v.customBiScenarioData))return jt().createElement(P_e,{cancelFlow:s.cancelFlow,cancelError:v.error,customBiDefault:v.customBiScenarioData});if(C)return jt().createElement(P_e,{cancelFlow:s.cancelFlow,cancelErrorCode:C});var e="",t="",n="",r=u.xboxDefaultSubscribeLink,o="",a=!0,l={src:"",alt:"",title:""},c=Ixe(d,i.brandId);if(null!==m&&void 0!==m&&m.data||null!==m&&void 0!==m&&m.amountFormatted||M)if(M){var h;i.isDowngradePending?(e=u.xboxPendingDowngradeTitle.replace("{currentSubscription}",i.name).replace("{downgradedSubcription}",i.renewalRecurrence.productName),t=u.xboxPendingDowngradeDunningSubtitle.replace("{currentSubscription}",i.name).replace("{downgradedSubcription}",i.renewalRecurrence.productName).replace("{renewalDate}",gx(new Date))):i.isXboxBrandId||c?(e=u.xboxCancelSuccessTitle,t=sn(u.cancelInDunningSubtitle,[gx(new Date)]),l=u.goodByeImage):i.isM365BrandId?(e=u.m365CancelSuccessTitle.replace("{subscriptionName}",i.name),t={textWithTokens:u.m365CancelSuccessSubtitle1.replace("{renewalDate}",gx(new Date)),tokensAndValues:{subscribeLink:jt().createElement(nx,one(u.subscribeLink)),purchaseLink:jt().createElement(nx,one(u.purchaseLink))}}):(e=u.m365CancelSuccessTitle.replace("{subscriptionName}",i.name),t=u.otherCancelSuccessSubtitle1),r=null!==(h=i.purchaseLink)&&void 0!==h?h:u.xboxDefaultSubscribeLink,c&&(i.purchaseLink||(a=!1),r=i.purchaseLink||"")}else{var f,g=m.amountFormatted;if(i.isDowngradePending)e=u.xboxPendingDowngradeTitle.replace("{currentSubscription}",i.name).replace("{downgradedSubcription}",i.renewalRecurrence.productName),t=u.xboxPendingDowngradeCancelSubtitle.replace("{currentSubscription}",i.name).replace("{refundedAmount}",g).replace("{downgradedSubcription}",i.renewalRecurrence.productName),r=null!==(f=i.purchaseLink)&&void 0!==f?f:u.xboxDefaultSubscribeLink;else if(i.isXboxBrandId||c){var y;e=u.xboxCancelSuccessTitle,t=sn(u.xboxCancelSuccessSubtitle1,{amount:g,renewalDate:gx(new Date)}),r=null!==(y=i.purchaseLink)&&void 0!==y?y:u.xboxDefaultSubscribeLink,l=u.goodByeImage,c&&(i.purchaseLink||(a=!1),r=i.purchaseLink||"")}else if(i.isM365BrandId){var b;if(e=u.m365BasicCancelSuccessTitle,n=sn(u.m365BasicCancelSuccessSubtitle2,{SKU:i.name,amount:g,date:gx(i.endDate)}),r=i.isM365BasicSku?null!==(b=i.purchaseLink)&&void 0!==b?b:u.resubscribeLink.url:u.subscribeLink.url,o="svc-saveflow-CancellationWithRefund",null!==p&&void 0!==p&&p.cancelConfirmationContent){var S=null===p||void 0===p?void 0:p.cancelConfirmationContent;if(S.ad.subheading1){var x,k,P={"aria-label":null!==(x=S.ad.link1AriaLabel)&&void 0!==x?x:S.ad.link1Text,"data-bi-id":"iris-cancel-confirmation-link1",children:S.ad.link1Text,onClick:function(){window.open(S.ad.link1Url,"_blank"),D(qxe(S,"click1")),E(!0)}},A={"aria-label":null!==(k=S.ad.link2AriaLabel)&&void 0!==k?k:S.ad.link2Text,"data-bi-id":"iris-cancel-confirmation-link2",children:S.ad.link2Text,onClick:function(){window.open(S.ad.link2Url,"_blank"),N(qxe(S,"click2")),I(!0)}};t={textWithTokens:S.ad.subheading1.replace("{end-date}",gx(i.endDate)),tokensAndValues:{link1:jt().createElement(rx,P),link2:jt().createElement(rx,A)}}}S.ad.heading&&(e=S.ad.heading.replace("{subscription-name}",i.name)),S.ad.subheading2&&(n=S.ad.subheading2.replace("{refund-amount}",g))}}else e=u.otherCancelSuccessTitle.replace("{subscriptionName}",i.name),t=u.otherCancelSuccessSubtitle1,n=u.otherCancelSuccessSubtitle2.replace("{refundedAmount}",g),i.purchaseLink||(a=!1),r=i.purchaseLink||""}var F={pageTitle:e,subTitle1:t,subTitle2:n,isResubscribeButton:a,ctaResubscribeUrl:r,isTurnOnArButton:!1,isCtaLanding:!0,surveyId:o,flowType:Sxe,image:l};return jt().createElement(jt().Fragment,null,jt().createElement(S_e,F),_&&T,w&&R)}(),failedView:jt().createElement(P_e,{cancelFlow:s.cancelFlow,cancelError:v.error,customBiDefault:v.customBiScenarioData})})},D_e=function(e){var t=e.paymentSessionId,n=e.challengeCompletedStatus,r=e.paymentError,o=e.paymentErrorType,i="covidOffer",a=mi(),s=zye(),l=fne(),c=Xve().content,u=c.cancel.m365.covidOffer,d=c.common.celaSection,p=c.commonCommerce.common.psd2Resource,h=c.common.smdError,m=Ua((0,Gt.useState)({pageTitle:"",subTitle1:"",isResubscribeButton:!1}),2),f=m[0],g=m[1],v=M_e(),y=v.cancelRefundData,b=v.conversionPathTypes;if(!s)throw new Error("Service details not found");var C={pageTitle:u.genericErrorTitle,subTitle1:u.genericErrorMessage.replace("{serviceName}",s.name),isResubscribeButton:!1,isTryAgainButton:!0,isCtaLanding:!1},S=function(){var e=Zve(fve().mark((function e(r){var o,c,p,m,f,v,S,x,_,E,k,w,I,P,T,D,A;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,a({name:i,status:"first-load"}),l.updateSessionId(r),!(f=a8(s,null===(o=null===(c=s.payment)||void 0===c?void 0:c.isSoldToAddressRequired)||void 0===o||o)).isFailed){e.next=10;break}return v=o8(h),g({pageTitle:v.errorTitle,subTitle1:v.errorMessage,isResubscribeButton:!1,isAddAddressButton:!0,isCtaLanding:!1}),_r({error:v.errorCode,data:{challengeStatus:n,isUserError:v.isUserError}}),a({name:i,status:"finished"}),e.abrupt("return");case 10:return S=null===(p=y.renewPathsData)||void 0===p?void 0:p.paths[0],x=f.addressIdToSend,_={service:s,skuId:null!==(m=null===S||void 0===S?void 0:S.skuId)&&void 0!==m?m:"",availabilityId:null===S||void 0===S?void 0:S.availabilityId,paymentInstrumentId:s.payment.id,paymentSessionId:t,challengeCompletedStatus:n,conversionPathTypes:b,soldToAddressId:x},e.next=15,l7(_);case 15:E={service:s,dataBiIdPrefix:"CovidOffer",celaStrings:d},k=zs(G7,!1)?km(km({},E),{},{nextChargeDate:gx(S.nextChargeDate),priceDetails:S.priceDetails,price:null===S||void 0===S?void 0:S.price,taxType:null===S||void 0===S?void 0:S.taxType}):km(km({},E),{},{nextChargeDate:gx(S.nextChargeDate)}),w={pageTitle:u.confirmationTitle.replace("{serviceName}",s.name),subTitle1:zs(G7,!1)?Z7(k):Y7(k),subTitle2:ree(E),isResubscribeButton:!1,isCtaLanding:!1},g(w),xr(),a({name:i,status:"finished"}),e.next=29;break;case 23:e.prev=23,e.t0=e.catch(0),D=e.t0,A=null!==(I=null===(P=D.response)||void 0===P||null===(T=P.data)||void 0===T?void 0:T.error)&&void 0!==I?I:"SwitchRenewalPlanNoErrorCode",g(C),b8.indexOf(A)>=0?(_r({error:A,data:{isUserError:!0,errorDetails:e.t0}}),a({name:i,status:"finished"})):(_r({error:A,data:{isUserError:!1,errorDetails:e.t0}}),a({name:i,status:"failed",error:e.t0}));case 29:case"end":return e.stop()}}),e,null,[[0,23]])})));return function(t){return e.apply(this,arguments)}}();return Qt(Zve(fve().mark((function e(){var s,l;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&o){e.next=20;break}if(s=t&&n){e.next=9;break}l=A6,g({pageTitle:p.genericErrorTitle,subTitle1:p.genericErrorMessage,isResubscribeButton:!1,isTryAgainButton:!0,isCtaLanding:!1}),_r({error:l}),a({name:i,status:"failed",error:new Error(l)}),e.next=18;break;case 9:e.t0=n,e.next="Succeeded"===e.t0||"NotApplicable"===e.t0?12:15;break;case 12:return e.next=14,S(t);case 14:return e.abrupt("break",18);case 15:g(C),_r({error:n}),a({name:i,status:"failed",error:new Error(s)});case 18:e.next=23;break;case 20:g({pageTitle:o.errorTitle,subTitle1:o.errorMessage,isResubscribeButton:!1,isTryAgainButton:!0,isCtaLanding:!1}),_r({error:w6(r.errorCode),data:{challengeStatus:r.challengeStatus,isUserError:o.isUserError}}),o.isQoSImpactedError?a({name:i,status:"failed",error:r}):a({name:i,status:"finished"});case 23:case"end":return e.stop()}}),e)})))),jt().createElement(dv,{operationData:{componentName:"covid-offer-confirmation",operationName:i},firstLoadView:jt().createElement(x_e,null),finishedView:jt().createElement(S_e,f),failedView:jt().createElement(S_e,f)})},A_e=function(e){var t=e.customBiScenarioData,n=void 0===t?{}:t,r="saveFlowDisableAR",o=mi(),i=zye(),a=Xve().content.cancel,s=a.strings.confirmationContent,l=a.strings.cancelDunningGamesList,c=uxe(),u=M_e().isTurnOffRB,d=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)(jt().createElement(jt().Fragment,null)),2),f=m[0],g=m[1],v=km({},n);if(!i)throw new Error("Service details not found");Qt(Zve(fve().mark((function e(){var t,n,a,s,l,c,d,p,h,m,f,g,y;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.isXboxBrandId?Cr({step:"XboxSave.Final"}):i.isM365BrandId?Cr({step:"OfficeSave.Final"}):Cr({step:"SubscriptionSave.Final"}),o({name:r,status:"first-load"}),e.prev=2,!i.isDowngradePending){e.next=8;break}return c={service:i,productId:i.productId,skuId:i.skuId},v["awa-downgradechargedate"]=null===(s=i.renewalRecurrence)||void 0===s||null===(l=s.nextRenewalCharge)||void 0===l?void 0:l.chargeDate,e.next=8,l9(c);case 8:return d={serviceId:i.id,serviceType:i.type,paymentInstrumentId:null===(t=i.payment)||void 0===t?void 0:t.id,backupPaymentInstrumentId:null===(n=i.backupPayment)||void 0===n?void 0:n.id,locale:i.locale},e.next=11,s7(d);case 11:return p=null===(a=Yn(Qye))||void 0===a?void 0:a.content,_r({data:km(km({},v),{},_m({isTurnOffRB:u},Qye,p))}),e.next=15,K9({modelId:i.modelId,forceReload:!0});case 15:(h=e.sent)?(Uye(h),o({name:r,status:"finished"})):o({name:r,status:"failed",error:{name:"getSubscriptionAsync",message:"Subscription not found"}}),e.next=25;break;case 19:e.prev=19,e.t0=e.catch(2),g=e.t0,y=(null===g||void 0===g||null===(m=g.response)||void 0===m||null===(f=m.data)||void 0===f?void 0:f.error)||g.message||"Cannot turn off auto renewal",o({name:r,status:"failed",error:g}),y_e(g,y,v);case 25:case"end":return e.stop()}}),e,null,[[2,19]])}))));var y="",b="",C="",S=s.xboxDefaultSubscribeLink,x=!1,_="",E=!0,k=!1,w={src:"",alt:"",title:""},I=Ixe(l,i.brandId);if(i.isXboxBrandId||I){var P,T;if(i.isDowngradePending)y=s.xboxPendingDowngradeTitle.replace("{currentSubscription}",i.name).replace("{downgradedSubcription}",i.renewalRecurrence.productName),b=s.xboxPendingDowngradeDisableAutoRenewalSubtitle.replace("{currentSubscription}",i.name).replace("{renewalDate}",gx(i.endDate)).replace("{downgradedSubcription}",i.renewalRecurrence.productName),S=null!==(P=i.purchaseLink)&&void 0!==P?P:s.xboxDefaultSubscribeLink;else y=s.xboxCancelSuccessTitle,b=s.xboxDisableAutoRenewalSuccessSubtitle1.replace("{renewalDate}",gx(i.endDate)),S=null!==(T=i.purchaseLink)&&void 0!==T?T:s.xboxDefaultSubscribeLink,w=s.goodByeImage;I&&(i.purchaseLink||(E=!1),S=i.purchaseLink||"")}else if(i.isM365BrandId){var D;y=s.m365BasicDisableAutoRenewSuccessTitle.replace("{date}",gx(i.endDate)),b=sn(s.m365BasicCancelSuccessSubtitle1,{SKU:i.name,date:gx(i.endDate)}),u&&(b=sn(s.m365BasicDisableAutoRenewSuccessSubtitle,{SKU:i.name,date:gx(i.endDate)})),E=!1,k=!0,S=i.isM365BasicSku?null!==(D=i.purchaseLink)&&void 0!==D?D:s.resubscribeLink.url:s.subscribeLink.url,_="svc-saveflow-disableAR",u||(x=!0,_="svc-saveflow-disableAR-inRefundFlow");var A=u?null===c||void 0===c?void 0:c.turnoffRbConfirmationContent:null===c||void 0===c?void 0:c.cancelConfirmationContent;if(A){var R,N,M=u?null===c||void 0===c||null===(R=c.turnoffRbConfirmationContent)||void 0===R?void 0:R.ad.subheading:null===c||void 0===c||null===(N=c.cancelConfirmationContent)||void 0===N?void 0:N.ad.subheading1;if(M){var F,B,O={"aria-label":null!==(F=A.ad.link1AriaLabel)&&void 0!==F?F:A.ad.link1Text,"data-bi-id":"iris-turnoff-confirmation-link1",children:A.ad.link1Text,onClick:function(){window.open(null===A||void 0===A?void 0:A.ad.link1Url,"_blank"),h(qxe(A,"click1"))}},L={"aria-label":null!==(B=A.ad.link2AriaLabel)&&void 0!==B?B:A.ad.link2Text,"data-bi-id":"iris-turnoff-confirmation-link2",children:A.ad.link2Text,onClick:function(){window.open(null===A||void 0===A?void 0:A.ad.link2Url,"_blank"),g(qxe(A,"click2"))}};b={textWithTokens:M.replace("{end-date}",gx(i.endDate)),tokensAndValues:{link1:jt().createElement(rx,O),link2:jt().createElement(rx,L)}}}A.ad.heading&&(y=A.ad.heading.replace("{subscription-name}",i.name))}}else y=(y=Kt(s.m365DisableAutoRenewSuccessTitleList,i.market)).replace("{subscriptionName}",i.name),b=s.otherCancelSuccessSubtitle1,C=(C=Kt(s.otherDisableAutoRenewSuccessSubtitleList,i.market)).replace("{renewalDate}",gx(i.endDate)),i.purchaseLink||(E=!1),S=i.purchaseLink||"",u||(y=s.otherCancelSuccessTitle.replace("{subscriptionName}",i.name),C=s.otherDisableAutoRenewCancelSuccessSubtitle2.replace("{renewalDate}",gx(i.endDate)),x=!0);var H={pageTitle:y,subTitle1:b,subTitle2:C,isResubscribeButton:E,ctaResubscribeUrl:S,isTurnOnArButton:k,isCtaLanding:x,surveyId:_,flowType:_xe,image:w},V=jt().createElement(jt().Fragment,null,jt().createElement(S_e,H),p,f);return jt().createElement(dv,{operationData:{componentName:"disable-auto-renewal-confirmation",operationName:r},firstLoadView:jt().createElement(x_e,null),finishedView:V,failedView:jt().createElement(__e,null)})},R_e=function(){var e=zye(),t=Xve().content.cancel.strings.confirmationContent,n=uxe();if(!e)throw new Error("Service details not found");Qt(Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xr();case 1:case"end":return e.stop()}}),e)}))));var r=t.xboxKeepSubscriptionTitle,o=t.xboxKeepSubscriptionSubtitle1.replace("{subscriptionName}",e.name);if(e.isM365FullSku&&null!==n&&void 0!==n&&n.keepSubContent){var i,a,s,l=null===n||void 0===n?void 0:n.keepSubContent;r=null!==(i=l.ad.heading)&&void 0!==i?i:r,o=null!==(a=null===(s=l.ad.subheading)||void 0===s?void 0:s.replace("{subscription-name}",e.name))&&void 0!==a?a:o}var c={pageTitle:r,subTitle1:o,isResubscribeButton:!1,isCtaLanding:!1,flowType:kxe,isServiceMutated:!1,image:t.cancelSuccessImage};return jt().createElement(S_e,c)},N_e=(0,Gt.createContext)({cancelRefundData:{},conversionPathTypes:"",dispatch:function(){},isTurnOffRB:!1,personalizedPrices:{},cancelScenarioStartTimeStamp:0}),M_e=function(){return(0,Gt.useContext)(N_e)},F_e=function(e){var t,n=e.cancelRefundData,r=e.profileInfo,o=e.gameInfo,i=e.isTurnOffRB,a=e.downgradePaths,s=e.upgradePaths,l=e.purchasePaths,c=e.showConfirm,u=void 0===c||c,d=e.bypassBenefitsPage,p=void 0===d||d,h=e.conversionPathTypes,m=e.personalizedPrice,f=e.scenarioStartTimeStamp,g=e.personalizedXboxDetails,v=e.usqData,y=e.isCovidOfferAvailable,b=zye();if(!b)throw new Error("Service not found");var C=EM(),S=Xve().content.commonCommerce.common.psd2Resource,x={flow:p?bxe:Cxe},_=Ua((0,Gt.useReducer)(Dxe,x),2),E=_[0],k=_[1],w=Bve(),I=function(e){var t=n8(e,S.genericErrorTitle,S.genericErrorMessage,S.bankAuthFailMessage,S.bankAuthTimeoutMessage,S.invalidSetupMessage,S.paymentMethodFailureMessage,S.failedToOpenNewWindowMessage);k({flow:wxe,covidOfferProps:{paymentError:e,paymentErrorType:t}})};Qt((function(){h&&jn(Xye,h),jn(Qye,n.cancelFlow.toString());var e,t,r,a,s=z5(Axe),l=z5(qSe,!1),c=mn(U6,W6),u=mn(G6,j6),d=n.data&&n.data.isCancelInDunning?"AmcCancelInDunning":"AmcCancel",p={};b.brandId!==H7.XboxGamePassUltimate&&b.brandId!==H7.PCGamePass||(null!==g&&void 0!==g&&g.recentlyPlayedGames&&Object.entries(g.recentlyPlayedGames).length>0&&(p.RecentlyPlayed=Object.entries(g.recentlyPlayedGames).length),null!==o&&void 0!==o&&o.surfaceInfoByName&&Object.entries(null===o||void 0===o?void 0:o.surfaceInfoByName).forEach((function(e){var t=Ua(e,2),n=t[0],r=t[1];p[n]=r.gameIds.length})),null!==o&&void 0!==o&&o.surfaceInfoByNameV1&&Object.entries(null===o||void 0===o?void 0:o.surfaceInfoByNameV1).forEach((function(e){var t=Ua(e,2),n=t[0],r=t[1];p[n]=r.gameIds.length})),p.hasGamerTag=!(null===g||void 0===g||null===(e=g.userDetails)||void 0===e||!e.gamertag),p.hasGamerImage=!(null===g||void 0===g||null===(t=g.userDetails)||void 0===t||!t.displayPicRaw),p.hasGamerScore=!(null===g||void 0===g||null===(r=g.userDetails)||void 0===r||!r.gamerScore),p.friendsCount=null===g||void 0===g||null===(a=g.friendsDetails)||void 0===a?void 0:a.length);if(void 0!==s||void 0!==l)W5({area:w.area,scenario:d,data:km(km({},b.bi),{},_m({isTurnOffRB:i},Qye,n.cancelFlow))});else if(c||u)b5({area:w.area,scenario:d,data:km(km({},b.bi),{},_m({isTurnOffRB:i},Qye,n.cancelFlow))});else{var m;br({area:w.area,scenario:d,step:"Cancel.Index",data:km(km({},b.bi),{},(m={isTurnOffRB:i},_m(m,Qye,n.cancelFlow),_m(m,"awa-usergamesstats",b.brandId===H7.XboxGamePassUltimate||b.brandId===H7.PCGamePass?p:void 0),m))})}if(void 0!==s)if(s){var f=q5();if(T6(f.selectedPiid,f.piid),"Succeeded"===f.challengeStatus||"NotApplicable"===f.challengeStatus)Cr({step:"India2FARedirectSuccess.Challenge".concat(f.challengeStatus)}),k({flow:wxe,covidOfferProps:{challengeCompletedStatus:f.challengeStatus,paymentSessionId:f.sessionId}});else{var v={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:f.challengeStatus};Cr({step:"India2FAChallengeStatusError.Challenge".concat(f.challengeStatus)}),I(v)}}else{var y=U5();Cr({step:"India2FARedirectFailed"}),I(y)}})),(0,Gt.useEffect)((function(){p&&Xxe(b,n,C,k,i,u,!0)}),[]);var P=jt().createElement(jt().Fragment,null);switch(E.flow){case bxe:P=jt().createElement(x_e,null);break;case Cxe:P=jt().createElement(I_e,{downgradePaths:a,upgradePaths:s,purchasePaths:l,profileInfo:r,gameInfo:o,personalizedXboxDetails:g,isCovidOfferAvailable:y,usqData:v});break;case Sxe:P=jt().createElement(T_e,{customBiScenarioData:E.customBiScenarioData});break;case xxe:P=jt().createElement(__e,{isNonRefundableFlow:E.isNonRefundableFlow,customBiScenarioData:E.customBiScenarioData});break;case _xe:P=jt().createElement(A_e,{customBiScenarioData:E.customBiScenarioData});break;case Exe:P=null!==(t=E.cancelErrorProps)&&void 0!==t&&t.cancelFlow?jt().createElement(P_e,E.cancelErrorProps):jt().createElement(jt().Fragment,null);break;case kxe:P=jt().createElement(R_e,null);break;case wxe:P=jt().createElement(D_e,E.covidOfferProps)}return jt().createElement(N_e.Provider,{value:{cancelRefundData:n,conversionPathTypes:h,dispatch:k,isTurnOffRB:i,personalizedPrices:m,cancelScenarioStartTimeStamp:f}},jt().createElement(bb,null,P))},B_e=function(e){var t=e.manageView,n=Xve().content,r=n.cancel.xbox.xboxGpuBenefitCardContent,o=n.manage,i=M_e().isTurnOffRB,a=zye(),s=zs(ube,!1)?["games-coverage","new-releases","online-console-multiplayer","ea-play","member-discount","free-perks"]:["games-coverage","new-releases","xbox-live-gold","ea-play","member-discount","free-perks"],l=r.cardImage.alt,c=r.cardImage.src;if(!a)throw new Error("Service details not found");var u={tag:"h2",variant:"statusHeader",text:function(){if(t)return o.benefitTitle;if(a.isXboxFamily&&null!==a.sharingDetails){var e=a.sharingDetails.totalSlots-a.sharingDetails.availableSlots;return 1===e?r.cardHeaderShareOne.replace("{n}",e.toString()):e>1?r.cardHeaderShareOthers.replace("{n}",e.toString()):r.cardHeaderShare}return i?r.cardHeading.rbTurnOff:r.cardHeading.cancel}()};return jt().createElement(bb,{childrenGap:"25px"},jt().createElement(NO,{featureHeading:u,height:"large",isVerticalLayout:["s","m","l"],imageProps:{alt:l,src:c},isImageFullBleed:!0,isImageGradient:!0,mediaPropsList:s.map((function(e){return r.cardMediaItems[e]})).map((function(e){return{children:jt().createElement(jt().Fragment,null,jt().createElement(Ib,{variant:"headerText",block:!0},e.text),e.link.text),image:{imageType:"image",src:e.image.src,alt:e.image.alt},linkProps:{href:e.link.url,"aria-label":"".concat(e.text,", ").concat(e.link.ariaLabel),"data-bi-id":"".concat("cancel-benefits-cards","-").concat(e.link.id,"-cta"),target:"_blank"},size:"md"}})),kind:"mediaList"}))},O_e=function(){var e=zye();if(!e)throw new Error("Service details not found");var t=Xve().content,n=Ua((0,Gt.useState)([]),2),r=n[0],o=n[1],i=Ua((0,Gt.useState)(),2),a=i[0],s=i[1],l=Bve().area,c=mi(),u=dg(),d=EM(),p=tee(),h=Bve().language,m=t.common.closeButton,f=[],g="billing-history";function v(){return(v=Zve(fve().mark((function t(){var n,r,i,a;return fve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return br({area:l,scenario:"AmcBillingHistory",step:"BillingHistory.Index",data:null===e||void 0===e?void 0:e.bi}),c({name:g,status:"inert"}),t.prev=2,t.next=5,g9(e.id,e.type);case 5:n=t.sent,o(n.orders),s(n.ordersHistoryLink),c({name:g,status:"finished"}),_r(),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(2),a=(null===(r=t.t0.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"BillingHistoryErrorCode",c({name:g,status:"failed",error:t.t0}),_r({error:a,data:{isUserError:b8.indexOf(a)>-1,errorDetails:t.t0}});case 17:case"end":return t.stop()}}),t,null,[[2,12]])})))).apply(this,arguments)}Qt((function(){!function(){v.apply(this,arguments)}()}));var y=[];f.push(jt().createElement(SR,{key:"billing-history-title-key",columns:[jt().createElement(nR,{textElements:[{children:t.manage.billingHistoryDate,variant:"headerText",weightOverride:"bold"}]}),jt().createElement(nR,{textElements:[{children:t.manage.billingHistoryPayment,variant:"headerText",weightOverride:"bold"}]}),jt().createElement(WA,{contentType:"text",textElements:[{children:t.manage.billingHistoryAmount,variant:"headerText",weightOverride:"bold"}]})],backgroundColor:"neutralHigh",variant:"ThreeSixThree"})),0!==r.length&&(r.forEach((function(e,n){f.push(jt().createElement(SR,{key:"billing-history-row-".concat(n),columns:[jt().createElement(nR,{textElements:[{children:gx(e.date),variant:"bodyPrimaryText"}]}),e.hasFailed?jt().createElement(nR,{textElements:[{children:"".concat(e.paymentNames," - ").concat(t.manage.billingHistoryChargeFailed),variant:"bodyPrimaryText",colorOverride:"error"}]}):jt().createElement(nR,{textElements:[{children:e.paymentNames,variant:"bodyPrimaryText"}]}),e.hasFailed?jt().createElement(WA,{contentType:"text",textElements:[{children:e.amount,colorOverride:"error",variant:"bodyPrimaryText"}]}):jt().createElement(WA,{contentType:"text",textElements:[{children:e.amount,variant:"bodyPrimaryText"}]})],backgroundColor:"neutralHigh",variant:"ThreeSixThree"}))})),y.push(jt().createElement($R,{isAlwaysExpanded:!0,key:"billing-history-list"},f)),a&&y.push(jt().createElement(bb,{padding:"5px 16px",key:"history-link"},jt().createElement(nx,{"data-bi-id":"more-history-link","aria-label":t.manage.moreBillingHistoryText,href:a.url,key:"link-key"},t.manage.moreBillingHistoryText))));var b={main:{width:480,backgroundColor:u.palette.neutralMed}},C=0===r.length?{padding:"24px 24px",smallScreenPadding:"16px 16px"}:{padding:"24px 10px",smallScreenPadding:"16px 0"},S={title:t.manage.billingHistoryTitle,closeButton:{"data-bi-id":"close","aria-label":m},bodyStyleTemp:C},x=function(){d.closeDialog(),p(sbe,h)},_=0!==r.length?km({},S):km(km({},S),{},{subText:t.manage.noBillingHistory,dialogFooterProps:{buttonPrimary:{onClick:x,text:m,"aria-label":m,"data-bi-id":"billing-dialog-btn-close"}}}),E=km(km({},S),{},{subText:t.manage.billingHistoryError,dialogFooterProps:{buttonPrimary:{onClick:x,text:m,"aria-label":m,"data-bi-id":"billing-dialog-btn-close"}}}),k={componentName:"billing-history-dialog",operationName:g},w={progressViewOperationData:k,errorDialogProps:E,successDialogProps:_},I=km(km({},S),{},{isOpen:!0,onDismiss:x,operationData:w,dialogStylesTemp:b}),P=jt().createElement(jt().Fragment,null,[0,0,0,0,0].map((function(e,t){return jt().createElement(SR,{key:"billing-history-shimmer-".concat(t),"aria-label":"aria-label",columns:[jt().createElement(tR,{shimmerLineProps:[{width:60}]}),jt().createElement(tR,{shimmerLineProps:[{}]}),jt().createElement(tR,{shimmerLineProps:[{width:60}]})],variant:"ThreeSixThree"})})));return jt().createElement(CM,I,jt().createElement(dv,{operationData:k,inertView:P,firstLoadView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null,y),failedView:jt().createElement(jt().Fragment,null)}))},L_e=function(){var e=zye();if(!e)throw new Error("Service details not found");var t=Xve().content,n=EM(),r=qo();function o(){n.closeDialog()}var i={closeButton:{"aria-label":"Close","data-bi-id":"close-btn"},isOpen:!0,onDismiss:o,dialogFooterProps:{buttonPrimary:{"aria-label":t.common.confirmButton,"data-bi-id":"confirm-btn",onClick:function(){n.closeDialog(),r.push("/".concat(null===e||void 0===e?void 0:e.modelId,"/cancel?fref=billing-cancel"))},text:t.common.confirmButton},buttonSecondary:{"aria-label":t.common.cancelButton,"data-bi-id":"cancel-btn",onClick:o,text:t.common.cancelButton}},title:t.manage.cancelInDowngradeDialogTitle,subText:t.manage.cancelInDowngradeDialogSubtitle.replace("{{existingSubscription}}",e.name).replace("{{upcomingSubscription}}",e.renewalRecurrence.productName)};return jt().createElement(CM,i)},H_e=function(e){var t,n=e.onServiceUpdate,r=zye();if(!r)throw new Error("Service details not found");var o="downgrade-plan",i="downgrade-cancel-confirm-dialog",a=EM(),s={componentName:i,operationName:o},l=Bve().area,c=mi(),u=Xve().content,d=(0,Gt.useRef)(null!==r.renewalRecurrence?r.renewalRecurrence.productName:""),p=u.manage,h=p.downgradeCancelTitle,m=p.downgradeCancelSubtitle,f=p.downgradeCancelSuccessTitle,g=p.downgradeCancelSuccessSubtitleWithPrice,v=p.changePlanErrorSubtitle,y=h.replace("{{downgradedService}}",d.current),b=m.replace("{{existingService}}",r.name).replace("{{downgradedService}}",d.current),C=sn(f,{activeSubscription:r.name}),S=sn(g,{price:null===(t=r.productRenewal)||void 0===t?void 0:t.amountFormatted,recurrenceDate:gx(r.endDate)}),x=v.replace("{{product}}",r.name);function _(){return(_=Zve(fve().mark((function e(){var t,i,a,s,l;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Cr({step:"DowngradeCancelDialog.Continue"}),c({name:o,status:"updating"}),t={service:r,productId:null===r||void 0===r?void 0:r.productId,skuId:null===r||void 0===r?void 0:r.skuId},i={},r&&(i["awa-downgradechargedate"]=null===(a=r.renewalRecurrence)||void 0===a||null===(s=a.nextRenewalCharge)||void 0===s?void 0:s.chargeDate,i["awa-downgradetitle"]=null===(l=r.renewalRecurrence)||void 0===l?void 0:l.brandId),l9(t).then((function(){n(r),c({name:o,status:"finished"}),_r({step:"DowngradeCancelDialog.Success"})})).catch((function(e){var t,n,r=e,a=(null===r||void 0===r||null===(t=r.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||r.message||"Cannot cancel pending downgrade";c({name:o,status:"failed",error:e}),y_e(r,a,i)}));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Qt((function(){br({area:l,scenario:"AmcDowngradeCancelDialog",step:"DowngradeCancelDialog.Index",data:r.bi}),c({name:o,status:"inert"})}));var E=function(){a.closeDialog()},k={closeButton:{"aria-label":u.common.closeButton,"data-bi-id":"close-btn"},isOpen:!0,onDismiss:E},w=km(km({},k),{},{subText:S,title:C,dialogFooterProps:{buttonPrimary:{onClick:E,text:u.common.gotItButton,"aria-label":u.common.gotItButton,"data-bi-id":"downgrade-cancel-dialog-btn-close"}}}),I={progressViewOperationData:s,errorDialogProps:km(km({},k),{},{subText:x,title:u.manage.changePlanErrorTitle,dialogFooterProps:{buttonPrimary:{onClick:E,text:u.common.gotItButton,"aria-label":u.common.gotItButton,"data-bi-id":"downgrade-cancel-dialog-btn-close"}}}),successDialogProps:w},P=km(km({},k),{},{operationData:I,dialogFooterProps:{buttonPrimary:{"aria-label":u.common.confirmButton,"data-bi-id":"downgrade-cancel-confirm-btn",onClick:function(){return _.apply(this,arguments)},text:u.common.confirmButton},buttonSecondary:{"aria-label":u.common.cancelButton,"data-bi-id":"downgrade-cancel-cancel-btn",onClick:E,text:u.common.cancelButton}},title:y,subText:b});return jt().createElement(CM,P,jt().createElement(dv,{operationData:{componentName:i,operationName:o},inertView:jt().createElement(jt().Fragment,null),updatingView:jt().createElement(jt().Fragment,null),firstLoadView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},V_e=function(){var e=zye();if(!e)throw new Error("Service details not found");var t=Xve().content,n=EM(),r=qo();function o(){n.closeDialog()}var i=t.manage.dunningDowngradeCancelLabel.replace("{{existingSubscription}}",e.name).replace("{{upcomingSubscription}}",e.renewalRecurrence.productName),a={textWithTokens:"".concat(i," {benefitsLink}"),tokensAndValues:{benefitsLink:jt().createElement(nx,{href:function(){var n,r="";switch(null===(n=e.renewalRecurrence)||void 0===n?void 0:n.brandId){case H7.XboxLive:r=t.manage.xboxLiveBenefitsLink;break;case H7.XboxGamePass:r=t.manage.xboxGamePassBenefitsLink;break;case H7.PCGamePass:r=t.manage.xboxPCGamePassBenefitsLink}return r}(),target:"_blank",textVariant:"bodyThemeText","aria-label":t.manage.seeAllBenefits,"data-bi-id":"dunning-downgrade-dialog-benefits-link"},t.manage.seeAllBenefits)}},s={closeButton:{"aria-label":"Close","data-bi-id":"close-btn"},isOpen:!0,onDismiss:o,dialogFooterProps:{buttonPrimary:{"aria-label":t.common.confirmButton,"data-bi-id":"confirm-btn",onClick:function(){n.closeDialog(),r.push("/".concat(null===e||void 0===e?void 0:e.modelId,"/cancel?fref=newexp-dunning-billing-cancel"))},text:t.common.confirmButton},buttonSecondary:{"aria-label":t.common.cancelButton,"data-bi-id":"cancel-btn",onClick:o,text:t.common.cancelButton}},title:t.manage.dunningDowngradeCancelTitle};return jt().createElement(CM,s,jt().createElement(ox,a))},z_e=function(e,t,n,r,o,i){if(e){var a=[],s=e.isXboxBrandId||e.brandId===H7.EAAccess,l=e.brandId===H7.XboxGamePassUltimate,c=function(){return e.isXboxBrandId?window.open(t.upgradeForXboxUrl,"_blank"):void r.push("/".concat(e.modelId,"/upgrade?fref=billing-upgrade"))},u=jt().createElement(SR,{key:"billing-history","aria-label":t.billingHistoryTitle,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"History"},size:"sm"},title:t.billingHistoryTitle,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){o.openDialog(jt().createElement(O_e,null))},pageArea:"manage","aria-label":t.billingHistoryTitle,"data-bi-id":"".concat(e.brandId,"-billing-history")},variant:"EightFour"});a.push(u),!e.isXboxFamily&&e.redeemTokenUrl&&a.push(jt().createElement(SR,{key:"redeem-token-link","aria-label":t.redeemCode,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"QRCode"},size:"sm"},title:t.redeemCode,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){window.open(e.redeemTokenUrl,"_blank")},pageArea:"manage","aria-label":t.redeemCode,"data-bi-id":"".concat(e.brandId,"-redeem-token-link")},variant:"EightFour"}));var d=Z9(e)||J9(e);if(d&&e.billingState!==t7.InDunning){var p=sn(t.dontConvertTo,{subscription:e.renewalRecurrence.productName,date:gx(e.renewalRecurrence.nextRenewalCharge.chargeDate)});a.push(jt().createElement(SR,{key:"downgrade-cancel","aria-label":p,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"ConvertTo"},size:"sm"},title:p,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){return o.openDialog(jt().createElement(H_e,{onServiceUpdate:i}))},pageArea:"manage","aria-label":p,"data-bi-id":"".concat(e.brandId,"-billing-downgradecancel")},variant:"EightFour"}))}if(e.canTurnOffRecurringBilling&&!d){var h=Kt(t.turnOffRbList,e.market);a.push(jt().createElement(SR,{key:"billing-aroff","aria-label":h,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Sync"},size:"sm"},title:h,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){r.push("/".concat(e.modelId,"/cancel?cancelType=DisableAutorenew&fref=billing-aroff"))},pageArea:"manage","aria-label":h,"data-bi-id":"".concat(e.brandId,"-billing-aroff")},variant:"EightFour"}))}var m=l&&!e.isXboxFamily&&zs("SvcXboxFamily")&&!e.isXaa,f=n.nonUpgradableBrandIds.includes(e.brandId),g=!(n.nonUpgradableMarket.includes(e.market)&&f);if(!s||l&&!m||e.upgradeFlow===p7||e.isRUMarketUnsupported){if(e.upgradeFlow!==p7&&!l){var v;v=e.isXboxBrandId?sn(t.upgradeForXbox,{serviceName:e.upgradeConfig.product}):e.isM365BasicSku?sn(t.upgradeToM365,{serviceName:e.upgradeConfig.product}):sn(t.upgradeForOffice,{serviceName:e.upgradeConfig.product}),a.push(jt().createElement(SR,{key:"billing-upgrade","aria-label":v,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Diamond"},size:"sm"},title:v,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){c()},pageArea:"manage","aria-label":v,"data-bi-id":"".concat(e.brandId,"-billing-upgrade")},variant:"EightFour"}))}}else(g||m)&&a.push(eSe(e,!1));var y=(e.billingState===t7.InDunning||e.status===o7)&&"recurrence"===e.type.toLowerCase(),b="/".concat(e.modelId,y?"/cancel?cancelType=CancelImmediately&fref=billing-cancel":"/cancel?fref=billing-cancel");if((e.isCancellable||y)&&a.push(jt().createElement(SR,{key:"billing-cancel","aria-label":t.cancelSubscription,columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Cancel"},size:"sm"},title:t.cancelSubscription,titleTextVariant:"bodySecondaryText"}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{onClick:function(){y&&Z9(e)?o.openDialog(jt().createElement(V_e,null)):Z9(e)?o.openDialog(jt().createElement(L_e,null)):r.push(b)},pageArea:"manage","aria-label":t.cancelSubscription,"data-bi-id":"".concat(e.brandId,"-billing-cancel")},variant:"EightFour",id:"cancel-sub-button"})),l&&!e.isXboxFamily&&zs("SvcXboxFamily")&&e.isXaa){var C,S=jt().createElement(SR,{key:"".concat(e.modelId,"-Upgrade"),variant:"Twelve",columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"icon",iconName:"Info"},size:"sm"},titleTextVariant:"bodySecondaryText",title:t.xboxFamilyUpgradePreventMessageXaa.replaceAll("{{product}}",null===(C=e.upgradeConfig)||void 0===C?void 0:C.product)})]});a.push(S)}if(e.isXboxBrandId&&e.isAutoRenewOffDueToInactivity){var x=tSe(e,!1);a.push(x)}return jt().createElement($R,{isAlwaysExpanded:!0,listItemBackgroundColor:"neutralMed"},a)}return jt().createElement(jt().Fragment,null)},U_e=function(){var e,t=Xve().content.manage,n=Bve(),r=zye();if(!r)throw new Error("Service details not found");var o=function(){return t.brandIdBenefitsMapping[r.brandId.toLowerCase()]},i=function(e,t){var o,i="".concat(e,"-cta");return function(e){var t,n=e.card,r=e.area,o=e.dataBiIdSuffix,i=e.isSmallerImg,a=void 0!==i&&i;t=n.animation?{graphicType:"animation",src:n.animation.src,alt:n.animation.alt,animationTrigger:"hover"}:km(km({graphicType:"image"},n.image),{},{isSmallerImg:a});var s={text:n.link.text,"aria-label":n.link.ariaLabel||n.link.text,"data-bi-id":"".concat(r,".cards.").concat(o)};return{headerProps:n.title?{text:n.title,"aria-label":n.title}:void 0,detailsProps:{heading:n.heading,text:n.description},graphicProps:t,ctaProps:km(km({},s),{},{href:n.link.url,target:ine(n.link.target)}),id:"".concat(r,".cards.").concat(o)}}({card:t,area:n.area,dataBiIdSuffix:null!==(o=t.biId)&&void 0!==o?o:i,isSmallerImg:!(null!==r&&void 0!==r&&r.isXboxBrandId)})};return jt().createElement(bb,{childrenGap:"25px"},jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneTitle"},t.benefitTitle)),jt().createElement(WP,null,null===(e=o()?Object.entries(o()):void 0)||void 0===e?void 0:e.map((function(e,t){var n=Ua(e,2),r=n[0],o=n[1],a=i(r,o);return jt().createElement(X4,Object.assign({key:t},a,{detailsProps:a.detailsProps}))}))))},W_e=function(e,t,n){var r,o=Xve().content.manage,i=iSe(e),a=e.isM365BrandId&&null!==(r=e.sharingDetails)&&void 0!==r&&r.isGuest?e.brandLogo:o.manageBillingIcon,s="#billing"===window.location.hash.toLowerCase(),l=!0;t.isFirstLoad?!s&&e.isM365FullSku&&e.billingState!==t7.InDunning&&e.billingState!==t7.Expired&&e.billingState!==t7.ActiveAutoRenewOff&&(l=!1):l=t.isDrawerOpened,(t.isFirstLoad||t.isDrawerOpened!==l)&&n({isFirstLoad:!1,isDrawerOpened:l});var c=[{column:jt().createElement(tw,{media:{size:"md",image:{imageType:"image",src:a},height:"52px",padding:"0px"},title:{kind:"text",children:o.manageSubscription,nowrap:!1},subtitleTextProps:{children:i,colorOverride:e.billingState===t7.InDunning?"error":void 0}}),slots:12}];return{defaultExpanded:l,onClickToClose:function(){return n({isFirstLoad:!1,isDrawerOpened:!1})},onClickToOpen:function(){return n({isFirstLoad:!1,isDrawerOpened:!0})},buttonId:"".concat(e.modelId,"-manage-drawer"),drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:c})}},G_e=function(e){var t=e.partnerBilling,n=e.brandId,r=Xve();if(!t)return jt().createElement(jt().Fragment,null);var o=r.content.landing.premium.recurringBillingTitlePartner.replace("{partnerName}",t.partnerName),i={size:"md",image:{imageType:"image",src:r.content.manage.manageBillingIcon},height:"52px",padding:"0px"};return jt().createElement($R,{isAlwaysExpanded:!0,shadow:!0,roundedCorners:!0,listItemBackgroundColor:"neutralHigh"},jt().createElement(SR,{key:"partner-billed",columns:[jt().createElement(iR,{listItemMediaProps:i,title:r.content.manage.manageSubscription,subtitles:[{children:o,variant:"metadataText"}]}),jt().createElement(Tw,{actionButtonProps:[{"aria-label":r.content.landing.premium.recurringBillingCta,"data-bi-id":"".concat(n,"-details-manage"),onClick:function(){return window.open(t.billingAccountLink,"_blank")},text:r.content.landing.premium.recurringBillingCta}],contentType:"none"})],variant:"SixSix"}))},j_e=function(e){var t=e.brandId,n=e.isUltimateCloud,r=Xve().content.manage.playNowContent,o=n?r.playNowBrandIdMapping["".concat(t.toLowerCase(),"-cloud")]:r.playNowBrandIdMapping["".concat(t.toLowerCase(),"-noncloud")],i=t===H7.XboxGamePassUltimate?o:r.playNowBrandIdMapping[t.toLowerCase()],a={actionProps:{"aria-label":i.ctaText,"data-bi-id":t===H7.XboxGamePassUltimate?"play-now-ultimate".concat("-",n?"cloud":"noncloud"):"play-now-pcgamepass",kind:"button",onClick:function(){window.open(i.ctaLink,"_blank")},text:i.ctaText,type:"primary"}};return jt().createElement(NO,{backgroundType:"card",bodyText:i.subtitle,bodyTextVariant:"bodyPrimaryText",ctaProps:[a],imageProps:{alt:i.image.alt,src:i.image.src},isImageGradient:!0,height:"medium",featureHeading:{text:i.title},isImageFullBleed:!0})},q_e=function(e){var t,n=e.initialDrawerOpenedState,r=e.setInitialDrawerOpenedState,o=e.onServiceUpdate,i=zye(),a=qo(),s=Xve(),l=EM(),c=s.content.manage,u=ny(),d=Ua((0,Gt.useState)(!1),2),p=d[0],h=d[1],m=s.content.common;if(i){var f,g,v=i.billingState===t7.InDunning;t=(null===(f=i.backupPayment)||void 0===f?void 0:f.id)||(null===(g=i.payment)||void 0===g?void 0:g.supportsBackupPayment)&&!v?jt().createElement(WO,{backgroundColor:"neutralHigh",firstSegment:jt().createElement(sSe,{service:i,onServiceUpdate:o}),secondSegment:jt().createElement(lSe,{service:i,onServiceUpdate:o}),thirdSegment:jt().createElement(cSe,{service:i,onServiceUpdate:o}),variant:"FourFourFour"}):jt().createElement(qO,{backgroundColor:"neutralHigh",firstSegment:jt().createElement(sSe,{service:i,onServiceUpdate:o}),secondSegment:jt().createElement(lSe,{service:i,onServiceUpdate:o}),variant:"SixSix"})}(0,Gt.useEffect)((function(){h(ry(u))}),[u]);var y=jt().createElement(G_e,{partnerBilling:i.partnerBilling,brandId:i.brandId});var b=jt().createElement(jt().Fragment,null,jt().createElement(iL,{drawerAreaProps:W_e(i,n,r),highlightArea:t,detailsArea:z_e(i,c,m,a,l,o)}),function(){if(i.billingState!==t7.Expired)if(i.brandId===H7.XboxGamePassUltimate&&zs("SvcPlayNowUltimate")){if(Mxe(s.content.cancel.xbox.cloudSupportedCountries,null===i||void 0===i?void 0:i.market))return jt().createElement(j_e,{brandId:i.brandId,isUltimateCloud:!0});if(!p)return jt().createElement(j_e,{brandId:i.brandId,isUltimateCloud:!1})}else if(i.brandId===H7.PCGamePass&&zs("SvcPlayNowPCGamepass")&&!p)return jt().createElement(j_e,{brandId:i.brandId,isUltimateCloud:!1});return jt().createElement(jt().Fragment,null)}(),i.brandId===H7.XboxGamePassUltimate?jt().createElement(B_e,{manageView:!0}):jt().createElement(jt().Fragment,null),i.brandId===H7.PCGamePass?jt().createElement(U_e,null):jt().createElement(jt().Fragment,null));return i.partnerBilling?y:b},K_e=function(){var e=zye();vn(e,"service in OverviewFreeAppsSection");var t=Xve().content.overview,n=Bve().area,r=[{image:t.officeMobileImage,title:t.officeMobile,secondaryText:t.officeMobileDescription,link:t.officeMobileLink,biId:"overview-install-mobile"},{image:t.microsoftTeamsImage,title:t.microsoftTeams,secondaryText:t.microsoftTeamsDescription,link:t.microsoftTeamsLink,biId:"get-teams-for-mobile"},{image:t.defenderFeedImageUrl,title:t.defenderFeedTitle,secondaryText:e.isHomeSKU?Kt(t.defenderFeedBodyListFamily,e.market):Kt(t.defenderFeedBodyListPersonal,e.market),link:t.defenderFeedLink,biId:"overview-feed-go-to-defender"}];e.hasSkypeBenefit&&(r=r.concat({image:t.skypeImage,title:t.skype,secondaryText:t.skypeFeedDescription,link:t.skypeFeedLink,biId:"overview-feed-skype"}));var o={size:"sm",image:{imageType:"image",src:t.appsImage},padding:"0px 2px 0px 0px"},i={kind:"text",children:t.appsTitleV2,weightOverride:"semi-bold",nowrap:!0},a=jt().createElement(tw,{media:o,title:i,subtitleTextProps:{children:t.appsDescriptionV2}}),s=jt().createElement(bw,{totalSlots:12,chevronPosition:"end",showAltBackgroundColor:!0,columns:[{column:a,slots:12}]});return jt().createElement(_R,{defaultExpanded:!0,drawerHeader:s,borderRadius:"8px",shadow:!0},jt().createElement($R,{isAlwaysExpanded:!0,showDivider:!0},r.map((function(e,t){return jt().createElement(SR,{key:"list-item-apps-".concat(t),"aria-label":"".concat(e.title," ").concat(e.secondaryText),onClickProps:{"aria-label":"".concat(e.title),"data-bi-id":e.biId,onClick:function(){return window.open(e.link,"_blank")},pageArea:n},columns:[jt().createElement(iR,{listItemMediaProps:{image:{imageType:"image",src:e.image},padding:"8px 18px 8px 2px",size:"sm"},subtitles:[{children:e.secondaryText,variant:"bodySecondaryText"}],title:e.title,titleTextVariant:"headerText"}),jt().createElement(Tw,{columnAlign:"end",actionButtonProps:[{"aria-label":"".concat(e.title),"data-bi-id":e.biId,iconName:"NavigateExternalInline",onClick:function(){return window.open(e.link,"_blank")},text:""}],contentType:"none"})],variant:"EightFour"})}))))},Y_e=function(e){var t=e.overview,n=e.height,r=e.linkId,o=zye();vn(o,"service in OverviewDefenderFeature");var i=o.isHomeSKU?Kt(t.defenderCardBodyListFamily,o.market):Kt(t.defenderCardBodyListPersonal,o.market);return jt().createElement(NO,{borderRadius:"4px",backgroundType:"card",bodyText:i,ctaProps:[{actionProps:{"aria-label":t.defenderCardCtaText,children:t.defenderCardCtaText,"data-bi-id":r,href:t.defenderCardCtaLink,kind:"hyperlink",target:"_blank"}}],featureHeading:{tag:"h2",variant:"statusHeader",text:t.defenderCardTitle},height:n,imageProps:{alt:t.defenderCardTitle,src:t.defenderCardImageUrl},layoutType:"2/3"})},X_e=function(e){var t=e.overview,n=e.height,r=e.linkId;return jt().createElement(NO,{borderRadius:"4px",backgroundType:"card",bodyText:t.oneDriveDescriptionText,ctaProps:[{actionProps:{"aria-label":t.oneDriveCTA,children:t.oneDriveCTA,"data-bi-id":r,href:t.oneDriveLink,kind:"hyperlink",target:"_blank"}}],featureHeading:{tag:"h2",variant:"statusHeader",text:t.oneDrive},height:n,imageProps:{alt:t.oneDrive,src:t.oneDriveImage},layoutType:"2/3"})},Q_e=function(e){var t=e.overview,n=e.height,r=e.linkId;return jt().createElement(NO,{borderRadius:"4px",backgroundType:"card",bodyText:t.outlookDescriptionText,ctaProps:[{actionProps:{"aria-label":t.outlookCTA,children:t.outlookCTA,"data-bi-id":r,href:t.outlookLink,kind:"hyperlink",target:"_blank"}}],featureHeading:{tag:"h2",variant:"statusHeader",text:t.outlook},height:n,imageProps:{alt:t.outlook,src:t.outlookImage},layoutType:"2/3"})},Z_e=function(){var e=Xve().content.overview,t=ny(),n=["s","m","l"].includes(t),r=n?"100%":"33.33%",o=n?"small":"large";return jt().createElement(bb,{childrenGap:10,horizontal:!n},jt().createElement(Cb,{shrink:1,width:r},jt().createElement(X_e,{overview:e,height:o,linkId:"overview-go-to-onedrive"})),jt().createElement(Cb,{shrink:1,width:r},jt().createElement(Y_e,{overview:e,height:o,linkId:"overview-go-to-defender"})),jt().createElement(Cb,{shrink:1,width:r},jt().createElement(Q_e,{overview:e,height:o,linkId:"overview-go-to-outlook"})))},J_e=function(){var e=Bve(),t="".concat(e.area,".overview.iris.card"),n=mi(),r="get-iris-cards",o="services.overview.benefits",i=Ua((0,Gt.useState)([]),2),a=i[0],s=i[1];Qt(Zve(fve().mark((function e(){var i,a;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({name:r,status:"updating"}),e.prev=1,e.next=4,FCe(o);case 4:(i=e.sent)&&i.models&&i.models.length>0&&(a=[],i.models.forEach((function(e,n){var r=ane({surfaceName:o,model:e},"".concat(t).concat(n),"NavigateExternalInline");a.push(r)})),s(a)),n({name:r,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),n({name:r,status:"failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))));for(var l=[],c=4<a.length?4:a.length,u=0;u<c;u++){var d=a[u];l.push(jt().createElement($L,Object.assign({},d,{id:"".concat(t).concat(u),key:u})))}var p=0===l.length?jt().createElement(jt().Fragment,null):jt().createElement(bb,{horizontal:!0,childrenGap:12},l);return jt().createElement(dv,{operationData:{componentName:"details-iris-cards-component",operationName:r},firstLoadView:jt().createElement(jt().Fragment,null),finishedView:p})},$_e=function(){var e=Bve(),t="".concat(e.area,".overview.iris.feature"),n=mi(),r="iris-feature-operation",o="services.overview.feature",i=Ua((0,Gt.useState)(),2),a=i[0],s=i[1],l=Ua((0,Gt.useState)(),2),c=l[0],u=l[1];function d(){return(d=Zve(fve().mark((function e(){var i;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({name:r,status:"updating"}),e.prev=1,e.next=4,NCe(o);case 4:(i=e.sent)&&i.model&&(u(i.model.ad.sectionTitle),s(sne(i,t))),n({name:r,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),n({name:r,status:"failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}Qt((function(){return d.apply(this,arguments)}));var p=a?jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,{variant:"subjectTitle"},c),jt().createElement(FO,Object.assign({},a,{isImageBlockLeft:!1,height:"small"}))):jt().createElement(jt().Fragment,null);return jt().createElement(dv,{operationData:{componentName:"details-iris-feature-component",operationName:r},firstLoadView:jt().createElement(jt().Fragment,null),finishedView:p})},eEe=function(){var e=(0,Gt.useRef)(null);return(0,Gt.useEffect)((function(){"#overview"===window.location.hash&&(window.location.hash="",e.current.focus(),e.current.scrollIntoView())}),[]),jt().createElement("div",{ref:e},jt().createElement(bb,{childrenGap:15},jt().createElement(Z_e,null),jt().createElement(K_e,null),jt().createElement($_e,null),jt().createElement(J_e,null)))},tEe=function(e){var t=e.message,n=e.ariaLabel,r=e.buttonId;return jt().createElement(RQ,{iconName:"Completed",message:t,ariaMessage:t,closeButton:{"data-bi-id":r,"aria-label":n,id:r}})},nEe=function(e){var t=e.inviteId,n=e.emailAddress,r=e.isFamilyShare,o=void 0!==r&&r,i=zye(),a=Xve().content,s=EM(),l=IQ();vn(i,"Service in ResendInviteDialog");var c=a.sharing,u=a.common,d=mi(),p="resend-invite",h=Ua((0,Gt.useState)(!0),2),m=h[0],f=h[1],g=Ua((0,Gt.useState)(u.tryAgainLater),2),v=g[0],y=g[1],b=Ua((0,Gt.useState)(c.sendInviteFailText),2),C=b[0],S=b[1],x=Ua((0,Gt.useState)(!1),2),_=x[0],E=x[1],k=Bve().area;Qt((function(){!function(){I.apply(this,arguments)}()}));var w=function(e,t){if(e){var n=(i.isXboxFamily?c.resendInviteSuccessSubtitleXbox:c.resendInviteSuccessSubtitle).replace("{email}",t);l.showNotificationBar(jt().createElement(tEe,{message:n,ariaLabel:a.common.closeButton,buttonId:"resend-invite-notification-bar-close"}))}s.closeDialog()};function I(){return(I=Zve(fve().mark((function e(){var r,a,s,l;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==i&&void 0!==i&&i.isXboxFamily?br({area:k,scenario:"AmcXboxResendInvite",step:"XboxResendInvite.Index",data:i.bi}):br({area:k,scenario:"AmcResendInvite",step:"ResendInvite.Index",data:null===i||void 0===i?void 0:i.bi}),d({name:p,status:"updating"}),E(!0),e.prev=3,null===i||void 0===i||!i.isXboxFamily){e.next=9;break}return e.next=7,x9(t);case 7:e.next=16;break;case 9:if(!o){e.next=14;break}return e.next=12,V9(null===i||void 0===i?void 0:i.licenseId,t);case 12:e.next=16;break;case 14:return e.next=16,D9(t);case 16:d({name:p,status:"finished"}),w(!0,n),_r({data:null===i||void 0===i?void 0:i.bi}),e.next=27;break;case 21:e.prev=21,e.t0=e.catch(3),s=e.t0,(l=(null===(r=s.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.error)||"ResendInviteNoErrorCode")===y8.xboxUserErrorInvitationExpired&&f(!0),Object.values(y8).includes(l)?(l===y8.xboxUserErrorSubscriptionNotActive?(y(c.subscriptionNotActiveTitle),S(c.subscriptionNotActiveSubtitle)):l===y8.sharingSlotsExhausted||l===y8.groupMemberSizeExceedLimit?(y(u.tryAgainLater),S(c.noSpotAvailable)):l===y8.userErrorTrialShareLimit?(y(c.trialShareLimitTitle),S(c.trialShareLimitSubtitle)):l===y8.xboxUserErrorInvitationExpired?(y(c.sharingOptionsTitle),S(c.userErrorInvitationExpiredSubtitle)):l===y8.joinLimitExceeded?(y(c.joinErrorTitle),S(c.joinLimitExceeded)):l===y8.alreadyHasManageability||l===y8.userAlreadyHasSubscription?(y(c.joinErrorTitle),S(c.userAlreadyHasSubscription)):l===y8.partnerForbiddenFailure?(y(c.sharingForbiddenErrorTitle),S(c.sharingForbiddenErrorSubtitle)):l===y8.partnerErrorNotFound?(y(c.sharingNotFoundErrorTitle),S(c.sharingNotFoundErrorSubtitle)):l===y8.pendingMemberNotInFamily?(y(c.inviteExpiredErrorTitle),S(c.inviteExpiredErrorSubtitle)):l!==y8.actionThrottledForFamily&&l!==y8.actionThrottledForUser||(y(c.inviteExpiredErrorTitle),S(c.inviteExpiredErrorSubtitle)),d({name:p,status:"finished",error:s}),_r({error:l,data:{isUserError:!0,errorDetails:e.t0}})):(d({name:p,status:"failed",error:s}),_r({error:l,data:{isUserError:b8.indexOf(l)>-1,errorDetails:e.t0}}));case 27:E(!1);case 28:case"end":return e.stop()}}),e,null,[[3,21]])})))).apply(this,arguments)}var P={title:v,subText:C},T=km(km({},P),{},{dialogFooterProps:{buttonPrimary:{onClick:function(){w(!1,n)},text:u.closeButton,"aria-label":u.closeButton,"data-bi-id":"resend-invite-dialog-btn-close"}}}),D={title:c.resendInviteProgressTitle,subText:i.isXboxFamily?sn(c.resendInviteProgressSubtitleXbox,i.name):c.resendInviteProgressSubtitle},A={operationName:p,componentName:"resend-invite-dialog"},R={progressViewOperationData:A,errorDialogProps:T,successDialogProps:T,progressDialogProps:D},N=km(km({},P),{},{isOpen:!0,onDismiss:function(){_||w(!1,n)},operationData:R,closeButton:_?void 0:{"data-bi-id":"resend-invite-close-btn","aria-label":u.closeButton}}),M=jt().createElement(kM,c.emailSendFail);return jt().createElement(CM,N,jt().createElement(dv,{operationData:A,firstLoadView:jt().createElement(jt().Fragment,null),updateFailedView:m?jt().createElement(jt().Fragment,null):M,finishedView:jt().createElement(jt().Fragment,null)}))},rEe=(__webpack_require__(40475),[]);Object.freeze(rEe);var oEe={};Object.freeze(oEe);var iEe={};function aEe(){return"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:iEe}function sEe(){return++Nke.mobxGuid}function lEe(e){throw cEe(!1,e),"X"}function cEe(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function uEe(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var dEe=function(){};function pEe(e){return null!==e&&"object"===typeof e}function hEe(e){if(null===e||"object"!==typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function mEe(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function fEe(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function gEe(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return pEe(e)&&!0===e[n]}}function vEe(e){return void 0!==aEe().Map&&e instanceof aEe().Map}function yEe(e){return e instanceof Set}function bEe(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function CEe(){return"function"===typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function SEe(e){return null===e?null:"object"===typeof e?""+e:e}function xEe(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function _Ee(){return"function"===typeof Symbol&&Symbol.iterator||"@@iterator"}function EEe(e,t){fEe(e,_Ee(),t)}function kEe(e){return e[_Ee()]=IEe,e}function wEe(){return"function"===typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function IEe(){return this}var PEe=function(){function e(e){void 0===e&&(e="Atom@"+sEe()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=oke.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return Hke(this)},e.prototype.reportChanged=function(){Oke(),function(e){if(e.lowestObserverState===oke.STALE)return;e.lowestObserverState=oke.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===oke.UP_TO_DATE&&(r.isTracing!==ike.NONE&&Vke(r,e),r.onBecomeStale()),r.dependenciesState=oke.STALE}}(this),Lke()},e.prototype.toString=function(){return this.name},e}(),TEe=gEe("Atom",PEe);function DEe(e,t,n){void 0===t&&(t=dEe),void 0===n&&(n=dEe);var r,o=new PEe(e);return cwe("onBecomeObserved",o,t,r),lwe(o,n),o}function AEe(e,t){return e===t}var REe={identity:AEe,structural:function(e,t){return iIe(e,t)},default:function(e,t){return function(e,t){return"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}(e,t)||AEe(e,t)},shallow:function(e,t){return iIe(e,t,1)}},NEe=function(e,t){return NEe=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])},NEe(e,t)};function MEe(e,t){function n(){this.constructor=e}NEe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var FEe=function(){return FEe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FEe.apply(this,arguments)};function BEe(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function OEe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(BEe(arguments[t]));return e}var LEe={},HEe={};function VEe(e,t){var n=t?LEe:HEe;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return zEe(this),this[e]},set:function(t){zEe(this),this[e]=t}})}function zEe(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in mEe(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function UEe(e,t){return function(){var n,r=function(r,o,i,a){if(!0===a)return t(r,o,i,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,"__mobxDecorators")){var s=r.__mobxDecorators;mEe(r,"__mobxDecorators",FEe({},s))}return r.__mobxDecorators[o]={prop:o,propertyCreator:t,descriptor:i,decoratorTarget:r,decoratorArguments:n},VEe(o,e)};return WEe(arguments)?(n=rEe,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function WEe(e){return(2===e.length||3===e.length)&&"string"===typeof e[1]||4===e.length&&!0===e[3]}function GEe(e,t,n){return bwe(e)?e:Array.isArray(e)?nke.array(e,{name:n}):hEe(e)?nke.object(e,void 0,{name:n}):vEe(e)?nke.map(e,{name:n}):yEe(e)?nke.set(e,{name:n}):e}function jEe(e){return e}function qEe(e){cEe(e);var t=UEe(!0,(function(t,n,r,o,i){Qwe(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)}));return t.enhancer=e,t}var KEe={deep:!0,name:void 0,defaultDecorator:void 0},YEe={deep:!1,name:void 0,defaultDecorator:void 0};function XEe(e){return null===e||void 0===e?KEe:"string"===typeof e?{name:e,deep:!0}:e}function QEe(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?jEe:GEe}Object.freeze(KEe),Object.freeze(YEe);var ZEe=qEe(GEe),JEe=qEe((function(e,t,n){return void 0===e||null===e||tIe(e)||Vwe(e)||Gwe(e)||Kwe(e)?e:Array.isArray(e)?nke.array(e,{name:n,deep:!1}):hEe(e)?nke.object(e,void 0,{name:n,deep:!1}):vEe(e)?nke.map(e,{name:n,deep:!1}):yEe(e)?nke.set(e,{name:n,deep:!1}):lEe(!1)})),$Ee=qEe(jEe),eke=qEe((function(e,t,n){return iIe(e,t)?t:e}));var tke={box:function(e,t){arguments.length>2&&rke("box");var n=XEe(t);return new Ike(e,QEe(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&rke("shallowBox"),nke.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&rke("array");var n=XEe(t);return new Mwe(e,QEe(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&rke("shallowArray"),nke.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&rke("map");var n=XEe(t);return new Uwe(e,QEe(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&rke("shallowMap"),nke.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&rke("set");var n=XEe(t);return new qwe(e,QEe(n),n.name)},object:function(e,t,n){"string"===typeof arguments[1]&&rke("object");var r=XEe(n);return dwe({},e,t,r)},shallowObject:function(e,t){return"string"===typeof arguments[1]&&rke("shallowObject"),nke.object(e,{},{name:t,deep:!1})},ref:$Ee,shallow:JEe,deep:ZEe,struct:eke},nke=function(e,t,n){if("string"===typeof arguments[1])return ZEe.apply(null,arguments);if(bwe(e))return e;var r=hEe(e)?nke.object(e,t,n):Array.isArray(e)?nke.array(e,t):vEe(e)?nke.map(e,t):yEe(e)?nke.set(e,t):e;if(r!==e)return r;lEe(!1)};function rke(e){lEe("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(tke).forEach((function(e){return nke[e]=tke[e]}));var oke,ike,ake=UEe(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};!function(e,t,n){var r=Xwe(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Pke(n),Object.defineProperty(e,t,function(e){return Jwe[e]||(Jwe[e]={configurable:Nke.computedConfigurable,enumerable:!1,get:function(){return $we(this).read(this,e)},set:function(t){$we(this).write(this,e,t)}})}(t))}(e,t,FEe({get:i,set:a},s))}));ake({equals:REe.structural});!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(oke||(oke={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ike||(ike={}));var ske=function(e){this.cause=e};function lke(e){return e instanceof ske}function cke(e){switch(e.dependenciesState){case oke.UP_TO_DATE:return!1;case oke.NOT_TRACKING:case oke.STALE:return!0;case oke.POSSIBLY_STALE:for(var t=gke(!0),n=mke(),r=e.observing,o=r.length,i=0;i<o;i++){var a=r[i];if(Tke(a)){if(Nke.disableErrorBoundaries)a.get();else try{a.get()}catch(eDe){return fke(n),vke(t),!0}if(e.dependenciesState===oke.STALE)return fke(n),vke(t),!0}}return yke(e),fke(n),vke(t),!1}}function uke(e){var t=e.observers.length>0;Nke.computationDepth>0&&t&&lEe(!1),Nke.allowStateChanges||!t&&"strict"!==Nke.enforceActions||lEe(!1)}function dke(e,t,n){var r=gke(!0);yke(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Nke.runId;var o,i=Nke.trackingDerivation;if(Nke.trackingDerivation=e,!0===Nke.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(eDe){o=new ske(eDe)}return Nke.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=oke.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;a<i;a++){0===(s=n[a]).diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState>r&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(s=t[i]).diffValue&&Fke(s,e),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,Mke(s,e))}r!==oke.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,vke(r),o}function pke(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Fke(t[n],e);e.dependenciesState=oke.NOT_TRACKING}function hke(e){var t=mke(),n=e();return fke(t),n}function mke(){var e=Nke.trackingDerivation;return Nke.trackingDerivation=null,e}function fke(e){Nke.trackingDerivation=e}function gke(e){var t=Nke.allowStateReads;return Nke.allowStateReads=e,t}function vke(e){Nke.allowStateReads=e}function yke(e){if(e.dependenciesState!==oke.UP_TO_DATE){e.dependenciesState=oke.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=oke.UP_TO_DATE}}var bke=0,Cke=1,Ske=Object.getOwnPropertyDescriptor((function(){}),"name");Ske&&Ske.configurable;function xke(e,t){var n=function(){return _ke(e,t,this,arguments)};return n.isMobxAction=!0,n}function _ke(e,t,n,r){var o=function(e,t,n){var r=Yke()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;s<i;s++)a[s]=n[s];Qke({type:"action",name:e,object:t,arguments:a})}var l=mke();Oke();var c=kke(!0),u=gke(!0),d={prevDerivation:l,prevAllowStateChanges:c,prevAllowStateReads:u,notifySpy:r,startTime:o,actionId:Cke++,parentActionId:bke};return bke=d.actionId,d}(e,n,r);try{return t.apply(n,r)}catch(i){throw o.error=i,i}finally{!function(e){bke!==e.actionId&&lEe("invalid action stack. did you forget to finish an action?");bke=e.parentActionId,void 0!==e.error&&(Nke.suppressReactionErrors=!0);wke(e.prevAllowStateChanges),vke(e.prevAllowStateReads),Lke(),fke(e.prevDerivation),e.notifySpy&&Jke({time:Date.now()-e.startTime});Nke.suppressReactionErrors=!1}(o)}}function Eke(e,t){var n,r=kke(e);try{n=t()}finally{wke(r)}return n}function kke(e){var t=Nke.allowStateChanges;return Nke.allowStateChanges=e,t}function wke(e){Nke.allowStateChanges=e}var Ike=function(e){function t(t,n,r,o,i){void 0===r&&(r="ObservableValue@"+sEe()),void 0===o&&(o=!0),void 0===i&&(i=REe.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),o&&Yke()&&Xke({type:"create",name:a.name,newValue:""+a.value}),a}return MEe(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Nke.UNCHANGED){var n=Yke();n&&Qke({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&Jke()}},t.prototype.prepareNewValue=function(e){if(uke(this),xwe(this)){var t=Ewe(this,{object:this,type:"update",newValue:e});if(!t)return Nke.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Nke.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),kwe(this)&&Iwe(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return _we(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),wwe(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return SEe(this.get())},t}(PEe);Ike.prototype[CEe()]=Ike.prototype.valueOf;gEe("ObservableValue",Ike);var Pke=function(){function e(e){this.dependenciesState=oke.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=oke.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+sEe(),this.value=new ske(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ike.NONE,cEe(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+sEe(),e.set&&(this.setter=xke(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?REe.structural:REe.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==oke.UP_TO_DATE)return;e.lowestObserverState=oke.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===oke.UP_TO_DATE&&(r.dependenciesState=oke.POSSIBLY_STALE,r.isTracing!==ike.NONE&&Vke(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&lEe("Cycle detected in computation "+this.name+": "+this.derivation),0!==Nke.inBatch||0!==this.observers.length||this.keepAlive?(Hke(this),cke(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===oke.STALE)return;e.lowestObserverState=oke.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===oke.POSSIBLY_STALE?r.dependenciesState=oke.STALE:r.dependenciesState===oke.UP_TO_DATE&&(e.lowestObserverState=oke.UP_TO_DATE)}}(this)):cke(this)&&(this.warnAboutUntrackedRead(),Oke(),this.value=this.computeValue(!1),Lke());var e=this.value;if(lke(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(lke(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){cEe(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else cEe(!1,!1)},e.prototype.trackAndCompute=function(){Yke()&&Xke({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===oke.NOT_TRACKING,n=this.computeValue(!0),r=t||lke(e)||lke(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Nke.computationDepth++,e)t=dke(this,this.derivation,this.scope);else if(!0===Nke.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(eDe){t=new ske(eDe)}return Nke.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(pke(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return iwe((function(){var i=n.get();if(!r||t){var a=mke();e({type:"update",object:n,newValue:i,oldValue:o}),fke(a)}r=!1,o=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return SEe(this.get())},e}();Pke.prototype[CEe()]=Pke.prototype.valueOf;var Tke=gEe("ComputedValue",Pke),Dke=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Ake=!0,Rke=!1,Nke=function(){var e=aEe();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ake=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Dke).version&&(Ake=!1),Ake?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Dke):(setTimeout((function(){Rke||lEe("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Dke)}();function Mke(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Fke(e,t){if(1===e.observers.length)e.observers.length=0,Bke(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Bke(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Nke.pendingUnobservations.push(e))}function Oke(){Nke.inBatch++}function Lke(){if(0===--Nke.inBatch){Gke();for(var e=Nke.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Pke&&n.suspend())}Nke.pendingUnobservations=[]}}function Hke(e){var t=Nke.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Nke.inBatch>0&&Bke(e),!1)}function Vke(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ike.BREAK){var n=[];zke(pwe(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Pke?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}}function zke(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return zke(e,t,n+1)})))}var Uke=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+sEe()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=oke.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+sEe(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ike.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Nke.pendingReactions.push(this),Gke())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Oke(),this._isScheduled=!1,cke(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Yke()&&Xke({name:this.name,type:"scheduled-reaction"})}catch(eDe){this.reportExceptionInDerivation(eDe)}}Lke()}},e.prototype.track=function(e){Oke();var t,n=Yke();n&&(t=Date.now(),Qke({name:this.name,type:"reaction"})),this._isRunning=!0;var r=dke(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&pke(this),lke(r)&&this.reportExceptionInDerivation(r.cause),n&&Jke({time:Date.now()-t}),Lke()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Nke.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Nke.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Yke()&&Xke({type:"error",name:this.name,message:n,error:""+e}),Nke.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Oke(),pke(this),Lke()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"===typeof e[e.length-1]&&(n=e.pop());var r=Cwe(e);if(!r)return lEe(!1);r.isTracing===ike.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled");r.isTracing=n?ike.BREAK:ike.LOG}(this,e)},e}();var Wke=function(e){return e()};function Gke(){Nke.inBatch>0||Nke.isRunningReactions||Wke(jke)}function jke(){Nke.isRunningReactions=!0;for(var e=Nke.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}Nke.isRunningReactions=!1}var qke=gEe("Reaction",Uke);function Kke(e){var t=Wke;Wke=function(n){return e((function(){return t(n)}))}}function Yke(){return!!Nke.spyListeners.length}function Xke(e){if(Nke.spyListeners.length)for(var t=Nke.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Qke(e){Xke(FEe(FEe({},e),{spyReportStart:!0}))}var Zke={spyReportEnd:!0};function Jke(e){Xke(e?FEe(FEe({},e),{spyReportEnd:!0}):Zke)}function $ke(e){return Nke.spyListeners.push(e),uEe((function(){Nke.spyListeners=Nke.spyListeners.filter((function(t){return t!==e}))}))}function ewe(){lEe(!1)}function twe(e){return function(t,n,r){if(r){if(r.value)return{value:xke(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return xke(e,o.call(this))}}}return nwe(e).apply(this,arguments)}}function nwe(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){mEe(this,n,rwe(e,t))}})}}var rwe=function(e,t,n,r){return 1===arguments.length&&"function"===typeof e?xke(e.name||"<unnamed action>",e):2===arguments.length&&"function"===typeof t?xke(e,t):1===arguments.length&&"string"===typeof e?twe(e):!0!==r?twe(t).apply(null,arguments):void(e[t]=xke(e.name||t,n.value))};function owe(e,t,n){mEe(e,t,xke(t,n.bind(e)))}function iwe(e,t){void 0===t&&(t=oEe);var n,r=t&&t.name||e.name||"Autorun@"+sEe();if(!t.scheduler&&!t.delay)n=new Uke(r,(function(){this.track(a)}),t.onError,t.requiresObservable);else{var o=swe(t),i=!1;n=new Uke(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),t.onError,t.requiresObservable)}function a(){e(n)}return n.schedule(),n.getDisposer()}rwe.bound=function(e,t,n,r){return!0===r?(owe(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return owe(this,t,n.value||n.initializer.call(this)),this[t]},set:ewe}:{enumerable:!1,configurable:!0,set:function(e){owe(this,t,e)},get:function(){}}};var awe=function(e){return e()};function swe(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:awe}function lwe(e,t,n){return cwe("onBecomeUnobserved",e,t,n)}function cwe(e,t,n,r){var o="function"===typeof r?nIe(t,n):nIe(t),i="function"===typeof r?r:n,a=o[e];return"function"!==typeof a?lEe(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function uwe(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.arrayBuffer,a=e.reactionScheduler,s=e.reactionRequiresObservable,l=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Nke.pendingReactions.length||Nke.inBatch||Nke.isRunningReactions)&&lEe("isolateGlobalState should be called before MobX is running any reactions"),Rke=!0,Ake&&(0===--aEe().__mobxInstanceCount&&(aEe().__mobxGlobals=void 0),Nke=new Dke)),void 0!==t){var c=void 0;switch(t){case!0:case"observed":c=!0;break;case!1:case"never":c=!1;break;case"strict":case"always":c="strict";break;default:lEe("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Nke.enforceActions=c,Nke.allowStateChanges=!0!==c&&"strict"!==c}void 0!==n&&(Nke.computedRequiresReaction=!!n),void 0!==s&&(Nke.reactionRequiresObservable=!!s),void 0!==l&&(Nke.observableRequiresReaction=!!l,Nke.allowStateReads=!Nke.observableRequiresReaction),void 0!==r&&(Nke.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Nke.disableErrorBoundaries=!!o),"number"===typeof i&&Lwe(i),a&&Kke(a)}function dwe(e,t,n,r){var o=(r=XEe(r)).defaultDecorator||(!1===r.deep?$Ee:ZEe);zEe(e),Xwe(e,r.name,o.enhancer),Oke();try{for(var i=Object.getOwnPropertyNames(t),a=0,s=i.length;a<s;a++){var l=i[a],c=Object.getOwnPropertyDescriptor(t,l);0;var u=(n&&l in n?n[l]:c.get?ake:o)(e,l,c,!0);u&&Object.defineProperty(e,l,u)}}finally{Lke()}return e}function pwe(e,t){return hwe(nIe(e,t))}function hwe(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t}(e.observing).map(hwe)),t}var mwe=0;function fwe(){this.message="FLOW_CANCELLED"}function gwe(e){1!==arguments.length&&lEe("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++mwe,a=rwe(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,l=new Promise((function(e,r){var o=0;function l(e){var n;s=void 0;try{n=rwe(t+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(eDe){return r(eDe)}u(n)}function c(e){var n;s=void 0;try{n=rwe(t+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(eDe){return r(eDe)}u(n)}function u(t){if(!t||"function"!==typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(l,c);t.then(u,r)}n=r,l(void 0)}));return l.cancel=rwe(t+" - runid: "+i+" - cancel",(function(){try{s&&vwe(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(dEe,dEe),vwe(t),n(new fwe)}catch(eDe){n(eDe)}})),l}}function vwe(e){"function"===typeof e.cancel&&e.cancel()}function ywe(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(tIe(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return tIe(e)||!!e.$mobx||TEe(e)||qke(e)||Tke(e)}function bwe(e){return 1!==arguments.length&&lEe(!1),ywe(e)}fwe.prototype=Object.create(Error.prototype);function Cwe(e){switch(e.length){case 0:return Nke.trackingDerivation;case 1:return nIe(e[0]);case 2:return nIe(e[0],e[1])}}function Swe(e,t){void 0===t&&(t=void 0),Oke();try{return e.apply(t)}finally{Lke()}}function xwe(e){return void 0!==e.interceptors&&e.interceptors.length>0}function _we(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),uEe((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ewe(e,t){var n=mke();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(cEe(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{fke(n)}}function kwe(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function wwe(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),uEe((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Iwe(e,t){var n=mke(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);fke(n)}}var Pwe,Twe,Dwe=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Awe=0,Rwe=function(){};Pwe=Rwe,Twe=Array.prototype,"undefined"!==typeof Object.setPrototypeOf?Object.setPrototypeOf(Pwe.prototype,Twe):"undefined"!==typeof Pwe.prototype.__proto__?Pwe.prototype.__proto__=Twe:Pwe.prototype=Twe,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(Rwe.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var Nwe=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new PEe(e||"ObservableArray@"+sEe()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return _we(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),wwe(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!==typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Awe&&Lwe(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;uke(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=rEe),xwe(this)){var i=Ewe(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return rEe;t=i.removedCount,n=i.added}var a=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(o,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,OEe([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Yke(),o=kwe(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Qke(FEe(FEe({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Iwe(this,i),r&&Jke()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Yke(),o=kwe(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Qke(FEe(FEe({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Iwe(this,i),r&&Jke()},e}(),Mwe=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+sEe()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Nwe(r,n,i,o);if(fEe(i,"$mobx",a),t&&t.length){var s=kke(!0);i.spliceWithArray(0,0,t),wke(s)}return Dwe&&Object.defineProperty(a.array,"0",Fwe),i}return MEe(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Vwe(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?OEe(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):OEe(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){uke(n.atom);var o=r[e];if(xwe(n)){var i=Ewe(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(Rwe);EEe(Mwe.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return kEe({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(Mwe.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),mEe(Mwe.prototype,wEe(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];cEe("function"===typeof t,"Base function not defined on Array prototype: '"+e+"'"),mEe(Mwe.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){cEe("function"===typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),mEe(Mwe.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.dehanceValues(o.values)[e]((function(e,o){return t.call(n,e,o,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){mEe(Mwe.prototype,e,(function(){var t=this,n=this.$mobx;n.atom.reportObserved();var r=arguments[0];return arguments[0]=function(e,o,i){return o=n.dehanceValue(o),r(e,o,i,t)},n.values[e].apply(n.values,arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)mEe(e,t[n],e[t[n]])}(Mwe.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Fwe=Bwe(0);function Bwe(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Owe(e){Object.defineProperty(Mwe.prototype,""+e,Bwe(e))}function Lwe(e){for(var t=Awe;t<e;t++)Owe(t);Awe=e}Lwe(1e3);var Hwe=gEe("ObservableArrayAdministration",Nwe);function Vwe(e){return pEe(e)&&Hwe(e.$mobx)}var zwe={},Uwe=function(){function e(e,t,n){if(void 0===t&&(t=GEe),void 0===n&&(n="ObservableMap@"+sEe()),this.enhancer=t,this.name=n,this.$mobx=zwe,this._keysAtom=DEe(this.name+".keys()"),"function"!==typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Nke.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new Ike(this._has(e),jEe,this.name+"."+Wwe(e)+"?",!1);this._hasMap.set(e,r),lwe(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(xwe(this)){var r=Ewe(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((uke(this._keysAtom),xwe(this))&&!(o=Ewe(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Yke(),r=kwe(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Qke(FEe(FEe({},o),{name:this.name,key:e})),Swe((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Iwe(this,o),n&&Jke(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Nke.UNCHANGED){var r=Yke(),o=kwe(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Qke(FEe(FEe({},i),{name:this.name,key:e})),n.setNewValue(t),o&&Iwe(this,i),r&&Jke()}},e.prototype._addValue=function(e,t){var n=this;uke(this._keysAtom),Swe((function(){var r=new Ike(t,n.enhancer,n.name+"."+Wwe(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=Yke(),o=kwe(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Qke(FEe(FEe({},i),{name:this.name,key:e})),o&&Iwe(this,i),r&&Jke()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return kEe({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return kEe({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return Gwe(e)&&(e=e.toJS()),Swe((function(){var n=kke(!0);try{hEe(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=BEe(e,2),r=n[0],o=n[1];return t.set(r,o)})):vEe(e)?e.constructor!==Map?lEe("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!==e&&void 0!==e&&lEe("Cannot initialize map from "+e)}finally{wke(n)}})),this},e.prototype.clear=function(){var e=this;Swe((function(){hke((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return Swe((function(){var n=function(e){if(vEe(e)||Gwe(e))return e;if(Array.isArray(e))return new Map(e);if(hEe(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return lEe("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(xEe(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var i=t._data.get(e);r.set(e,i)}})),xEe(n.entries(),(function(e){var n=BEe(e,2),i=n[0],a=n[1],s=t._data.has(i);if(t.set(i,a),t._data.has(i)){var l=t._data.get(i);r.set(i,l),s||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var i=t._data.keys(),a=r.keys(),s=i.next(),l=a.next();!s.done;){if(s.value!==l.value){t._keysAtom.reportChanged();break}s=i.next(),l=a.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"===typeof r?r:Wwe(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+bEe(this.keys()).map((function(t){return Wwe(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return wwe(this,e)},e.prototype.intercept=function(e){return _we(this,e)},e}();function Wwe(e){return e&&e.toString?e.toString():new String(e).toString()}EEe(Uwe.prototype,(function(){return this.entries()})),fEe(Uwe.prototype,wEe(),"Map");var Gwe=gEe("ObservableMap",Uwe),jwe={},qwe=function(){function e(e,t,n){if(void 0===t&&(t=GEe),void 0===n&&(n="ObservableSet@"+sEe()),this.name=n,this.$mobx=jwe,this._data=new Set,this._atom=DEe(this.name),"function"!==typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Swe((function(){hke((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((uke(this._atom),xwe(this))&&!(o=Ewe(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Swe((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Yke(),r=kwe(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&Iwe(this,o)}return this},e.prototype.delete=function(e){var t=this;if(xwe(this)&&!(o=Ewe(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Yke(),r=kwe(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return Swe((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Iwe(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=bEe(this.keys()),n=bEe(this.values());return kEe({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=bEe(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),kEe({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return Kwe(e)&&(e=e.toJS()),Swe((function(){var n=kke(!0);try{Array.isArray(e)||yEe(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!==e&&void 0!==e&&lEe("Cannot initialize set from "+e)}finally{wke(n)}})),this},e.prototype.observe=function(e,t){return wwe(this,e)},e.prototype.intercept=function(e){return _we(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+bEe(this.keys()).join(", ")+" ]"},e}();EEe(qwe.prototype,(function(){return this.values()})),fEe(qwe.prototype,wEe(),"Set");var Kwe=gEe("ObservableSet",qwe),Ywe=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof Pke)o.set(n);else{if(xwe(this)){if(!(s=Ewe(this,{type:"update",object:r,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==Nke.UNCHANGED){var i=kwe(this),a=Yke(),s=i||a?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;a&&Qke(FEe(FEe({},s),{name:this.name,key:t})),o.setNewValue(n),i&&Iwe(this,s),a&&Jke()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(xwe(this))if(!(i=Ewe(this,{object:t,name:e,type:"remove"})))return;try{Oke();var n=kwe(this),r=Yke(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Qke(FEe(FEe({},i),{name:this.name,key:e})),n&&Iwe(this,i),r&&Jke()}finally{Lke()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return wwe(this,e)},e.prototype.intercept=function(e){return _we(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Mwe(Object.keys(this.values).filter((function(t){return e.values[t]instanceof Ike})),jEe,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Xwe(e,t,n){void 0===t&&(t=""),void 0===n&&(n=GEe);var r=e.$mobx;return r||(hEe(e)||(t=(e.constructor.name||"ObservableObject")+"@"+sEe()),t||(t="ObservableObject@"+sEe()),fEe(e,"$mobx",r=new Ywe(e,t,n)),r)}function Qwe(e,t,n,r){var o=Xwe(e);if(xwe(o)){var i=Ewe(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new Ike(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return Zwe[e]||(Zwe[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=kwe(e),i=Yke(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Qke(FEe(FEe({},a),{name:e.name,key:n}));o&&Iwe(e,a);i&&Jke()}(o,e,t,n)}var Zwe=Object.create(null),Jwe=Object.create(null);function $we(e){var t=e.$mobx;return t||(zEe(e),e.$mobx)}var eIe=gEe("ObservableObjectAdministration",Ywe);function tIe(e){return!!pEe(e)&&(zEe(e),eIe(e.$mobx))}function nIe(e,t){if("object"===typeof e&&null!==e){if(Vwe(e))return void 0!==t&&lEe(!1),e.$mobx.atom;if(Kwe(e))return e.$mobx;if(Gwe(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||lEe(!1),r)}var r;if(zEe(e),t&&!e.$mobx&&e[t],tIe(e))return t?((r=e.$mobx.values[t])||lEe(!1),r):lEe(!1);if(TEe(e)||Tke(e)||qke(e))return e}else if("function"===typeof e&&qke(e.$mobx))return e.$mobx;return lEe(!1)}function rIe(e,t){return e||lEe("Expecting some object"),void 0!==t?rIe(nIe(e,t)):TEe(e)||Tke(e)||qke(e)||Gwe(e)||Kwe(e)?e:(zEe(e),e.$mobx?e.$mobx:void lEe(!1))}var oIe=Object.prototype.toString;function iIe(e,t,n){return void 0===n&&(n=-1),aIe(e,t,n)}function aIe(e,t,n,r,o){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;e=sIe(e),t=sIe(t);var a=oIe.call(e);if(a!==oIe.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!("function"===typeof l&&l instanceof l&&"function"===typeof c&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!aIe(e[u],t[u],n-1,r,o))return!1}else{var d=Object.keys(e),p=void 0;if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!lIe(t,p=d[u])||!aIe(e[p],t[p],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function sIe(e){return Vwe(e)?e.peek():vEe(e)||Gwe(e)||yEe(e)||Kwe(e)?bEe(e.entries()):e}function lIe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}if("object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:$ke,extras:{getDebugName:function(e,t){return(void 0!==t?nIe(e,t):tIe(e)||Gwe(e)||Kwe(e)?rIe(e):nIe(e)).name}},$mobx:"$mobx"}),!Gt.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!$ke)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var cIe=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function uIe(){var e=cIe((0,Gt.useState)(0),2)[1];return(0,Gt.useCallback)((function(){e((function(e){return e+1}))}),[])}var dIe={};var pIe=function(e){return"function"===typeof Symbol?Symbol.for(e):"__$mobx-react "+e+"__"}("observerBatching");function hIe(e){e()}var mIe=!1;function fIe(){return mIe}function gIe(e){return pwe(e)}var vIe,yIe=1e4,bIe=new Set;function CIe(){void 0===vIe&&(vIe=setTimeout(SIe,1e4))}function SIe(){vIe=void 0;var e=Date.now();bIe.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,bIe.delete(t))})),bIe.size>0&&CIe()}var xIe=!1,_Ie=[];var EIe={};function kIe(e){return"observer"+e}function wIe(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=EIe),fIe())return e();var r,o=function(e){return function(){xIe?_Ie.push(e):e()}}((n.useForceUpdate||uIe)()),i=jt().useRef(null);if(!i.current){var a=new Uke(kIe(t),(function(){s.mounted?o():(a.dispose(),i.current=null)})),s=function(e){return{cleanAt:Date.now()+yIe,reaction:e}}(a);i.current=s,r=i,bIe.add(r),CIe()}var l=i.current.reaction;return jt().useDebugValue(l,gIe),jt().useEffect((function(){var e;return e=i,bIe.delete(e),i.current?i.current.mounted=!0:(i.current={reaction:new Uke(kIe(t),(function(){o()})),cleanAt:1/0},o()),function(){i.current.reaction.dispose(),i.current=null}}),[]),function(e){xIe=!0,_Ie=[];try{var t=e();xIe=!1;var n=_Ie.length>0?_Ie:void 0;return jt().useLayoutEffect((function(){n&&n.forEach((function(e){return e()}))}),[n]),t}finally{xIe=!1}}((function(){var t,n;if(l.track((function(){try{t=e()}catch(eDe){n=eDe}})),n)throw n;return t}))}var IIe=function(){return IIe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IIe.apply(this,arguments)};var PIe={$$typeof:!0,render:!0,compare:!0,type:!0};function TIe(e){var t=e.children,n=e.render,r=t||n;return"function"!==typeof r?null:wIe(r)}function DIe(e,t,n,r,o){var i="children"===t?"render":"children",a="function"===typeof e[t],s="function"===typeof e[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}TIe.propTypes={children:DIe,render:DIe},TIe.displayName="Observer";!function(e){e||(e=hIe),uwe({reactionScheduler:e}),("undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:dIe)[pIe]=!0}(nn.unstable_batchedUpdates),uwe({enforceActions:"always",computedConfigurable:!0});var AIe=function(e){return function(t,n){return"string"===typeof t?e(n,t):e(t)}},RIe=AIe((function(e,t){return NIe({construct:function(n){return dwe({},e,void 0,{deep:!1,name:n||t})},updateDepth:nke.box(0,{name:"updateDepth".concat(t||"")})})})),NIe=function e(t){return{extend:AIe((function(n,r){return e(VIe(t,n,r))})),views:function(n){return e(zIe(t,n))},updates:function(n){return e(WIe(t,n))},actions:function(n){return e(UIe(t,n))},finalize:function(){return MIe(t)}}},MIe=function(e){return dwe(e.construct(),{get _dataModelIsUpdating(){return e.updateDepth.get()>0}},void 0,{deep:!1})},FIe=function e(t,n){for(var r in n)if(n.hasOwnProperty(r)&&t.hasOwnProperty(r)){var o=t[r],i=n[r];"function"===typeof i&&(i=i(o)),void 0!==i&&(Vwe(o)?o.replace(Array.prototype.slice.call(i)):Gwe(o)?o.merge(i):tIe(o)?e(o,i):(a=t,("string"!==typeof(s=r)?lEe(!1):ywe(a,s))&&(t[r]=i)))}var a,s},BIe=function(e){e.set(e.get()+1)},OIe=function(e){e.set(e.get()-1)},LIe=function(t,n,r){if("function"!==typeof r.value)throw Error("DataModel: invalid value for ".concat(n,". A view member should either be a function or getter based property."));Object.defineProperty(t,n,(0,e.__assign)((0,e.__assign)({},r),{enumerable:!1}))},HIe=function(t,n,r){Object.defineProperty(t,n,(0,e.__assign)((0,e.__assign)({},r),{value:tn(rwe(n,r.value),r.value.name),enumerable:!1}))},VIe=function(t,n,r){return(0,e.__assign)((0,e.__assign)({},t),{construct:function(e){return dwe(t.construct(e||r),n,void 0,{deep:!1})}})},zIe=function(t,n){return(0,e.__assign)((0,e.__assign)({},t),{construct:function(e){var r=t.construct(e);return dwe(r,n(r),void 0,{defaultDecorator:LIe})}})},UIe=function(t,n){return(0,e.__assign)((0,e.__assign)({},t),{construct:function(e){var r=t.construct(e),o=Object.fromEntries(Object.entries(n(r)).map((function(e){var n=e[0],r=e[1];return[n,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=r.apply(this,e);return o&&"function"===typeof o.then&&"function"===typeof o.finally?(BIe(t.updateDepth),o.finally((function(){Eke(!0,(function(){OIe(t.updateDepth)}))}))):o}]})));return dwe(r,o,void 0,{defaultDecorator:HIe})}})},WIe=function(t,n){return(0,e.__assign)((0,e.__assign)({},t),{construct:function(r){var o=t.construct(r),i=Object.fromEntries(Object.entries(n(o)).map((function(n){var r=n[0],i=n[1];return[r,tn(gwe(tn((function(){var n,r,a=[];for(n=0;n<arguments.length;n++)a[n]=arguments[n];return(0,e.__generator)(this,(function(e){switch(e.label){case 0:BIe(t.updateDepth),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,i.apply(this,a)];case 2:return(r=e.sent())&&FIe(o,r),[3,4];case 3:return OIe(t.updateDepth),[7];case 4:return[2]}}))}),r)),r)]})));return dwe(o,i,void 0,{defaultDecorator:HIe})}})},GIe=1,jIe="/familyonboarding/api/";function qIe(t,n,r,o){return QIe((function(t,n,r,o){return Ps(t,n,(0,e.__assign)({params:r},o))}),t,n,r,o)}function KIe(e,t,n,r){return QIe(Ts,e,t,n,r)}function YIe(t,n,r,o){return function(t,n,r,o,i){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(a){switch(a.label){case 0:return[4,t(jIe+r,{operation:"FamilyOnboarding.React.".concat(n)},o,{headers:(0,e.__assign)((0,e.__assign)({},i),{"X-AMC-JsonMode":"CamelCase"})})];case 1:return[2,a.sent().data]}}))}))}(As,t,n,r,o)}function XIe(t,n,r,o){return QIe((function(t,n,r,o){return Rs(t,n,(0,e.__assign)({params:r},o))}),t,n,r,o)}function QIe(t,n,r,o,i){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(a){switch(a.label){case 0:return[4,t("/family/api/"+r,{operation:"Family.React.".concat(n)},o,{headers:(0,e.__assign)((0,e.__assign)({},i),{"X-AMC-JsonMode":"CamelCase"})})];case 1:return[2,a.sent().data]}}))}))}var ZIe,JIe,$Ie=["https://assets.account.microsoft.com/family/compassassets/d9fda03a-5e17-4527-a47b-ead66c080e7e.svg?n=FamilyMemberAvatarBearYellowBg.svg","https://assets.account.microsoft.com/family/compassassets/fa85ffd8-39b9-4300-805b-45c87ec8d5e7.svg?n=FamilyMemberAvatarToucan.svg"],ePe=["https://assets.account.microsoft.com/family/compassassets/6ba5821d-545e-4dbe-8c71-9fceccc8709b.svg?n=FamilyMemberAvatarLlama.svg","https://assets.account.microsoft.com/family/compassassets/2d00ea43-9e38-4cbe-a628-ae38b198e08c.svg?n=FamilyMemberAvatarPenguin.svg","https://assets.account.microsoft.com/family/compassassets/49962778-ac61-4447-9b5d-4ee604a48df6.svg?n=FamilyMemberAvatarSlothUpdated.svg","https://assets.account.microsoft.com/family/compassassets/75fde562-8f05-41d9-859a-e0d70b2c2e89.svg?n=FamilyMemberAvatarOtterUpdated.svg","https://assets.account.microsoft.com/family/compassassets/beca42db-ad40-4473-a024-54db5759509e.svg?n=FamilyMemberAvatarQuailYellowBg.svg"],tPe=function(t){var n=t.name,r=t.construct,o=t.resolver,i={},a={},s=n||"DataLoader@".concat(GIe++);return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var l="".concat(o?o.apply(void 0,t):t);if(l.includes("[object Object]"))throw Error("DataLoader: invalid cache key ".concat(l,". Define a resolve function for non-primitive parameters."));if(!a[l]){var c=nke.box("inert");a[l]=RIe({name:"".concat(s,"(").concat(l,")"),value:void 0,errorValue:void 0}).views((function(e){return{get status(){var t;return(null===(t=e.value)||void 0===t?void 0:t._dataModelIsUpdating)?"updating":c.get()}}})).actions((function(n){return{load:function(){return tl(i,l,(function(){return gwe((function(){var o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),c.set("first-load"),n.errorValue=void 0,[4,r.apply(void 0,t)];case 1:return o=e.sent(),c.set("finished"),n.value=o,[2,o];case 2:throw i=e.sent(),c.set("failed"),n.value=void 0,n.errorValue=i,i;case 3:return[2]}}))}))()}))},_clear:function(){c.set("inert"),n.value=void 0,n.errorValue=void 0,el(i,l)}}})).finalize(),Object.defineProperty(a[l],"status",{enumerable:!0})}return a[l]}}({name:"familyRoster",construct:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r;return(0,e.__generator)(this,(function(o){switch(o.label){case 0:return[4,qIe("GetFamilyRoster","roster")];case 1:return t=o.sent(),n=[],zs("FamProfilePicMSGraph")?[4,x6("MSGraphUserReadAll")]:[3,4];case 2:return r=o.sent(),[4,Promise.all(t.members.map((function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,o;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dee({accessToken:r.token,userId:null!==(o=t.puidAsHex)&&void 0!==o?o:""})];case 1:return n=e.sent(),[2,[t.puid,n.url]]}}))}))})))];case 3:n=o.sent(),o.label=4;case 4:return[2,aPe(t,n)]}}))}))}}),nPe=function(e){return RIe({primaryId:e.primaryId,isPrimaryIdMobile:e.isPrimaryIdMobile,isChild:e.isChild,removeSet:e.removeSet}).views((function(e){return{get isParent(){return!e.isChild}}}))},rPe=function t(n,r){var o,i;return nPe(n).extend("FamilyMember",{puid:n.puid,firstName:n.firstName,lastName:n.lastName,displayName:n.displayName,profilePicture:zs("FamProfilePicMSGraph")?void 0===r?"":r[1]:n.profilePicture,languagePreference:n.languagePreference,cid:n.cid,cidAsHex:n.cidAsHex,jsonWebToken:n.jsonWebToken,isSelf:n.isSelf,age:null!==(o=n.age)&&void 0!==o?o:void 0,ageOfMajority:n.ageOfMajority,statutoryAge:n.statutoryAge,joinedSince:n.joinedSince,isAgeEligibleForRoleChange:n.isAgeEligibleForRoleChange,isDigitalSafetyEnabled:null!==(i=n.isDigitalSafetyEnabled)&&void 0!==i?i:void 0,controlsOwnPrivacy:n.controlsOwnPrivacy,country:n.country,timeZone:sPe(),isPending:!1,reviewState:n.reviewState}).views((function(e){return{get hasFullName(){return!!e.firstName&&!!e.lastName},get isSelfChild(){return e.isChild&&e.isSelf},get fallbackProfilePicture(){var t,n,r,o,i,a;return e.isParent?(i=(null===(n=null===(t=tPe().value)||void 0===t?void 0:t.organizers)||void 0===n?void 0:n.indexOf(e))||0,a=$Ie):(i=(null===(o=null===(r=tPe().value)||void 0===r?void 0:r.childMembers)||void 0===o?void 0:o.indexOf(e))||0,a=ePe),a[i%a.length]}}})).updates((function(n){return{reload:function(){return(0,e.__awaiter)(this,void 0,void 0,(function(){var o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,qIe("GetFamilyRoster","roster")];case 1:if(o=e.sent(),!(i=o.members.find((function(e){return e.cid===n.cid}))))throw Error("FamilyMember reload: matching member not found in roster");return[2,t(i,r)]}}))}))},updateReviewState:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,YIe("UpdateMemberReviewState","set-member-reviewstate",{puid:n.puid,reviewState:t})];case 1:return e.sent(),[2,{reviewState:t}]}}))}))},updateMemberRole:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,KIe("UpdateMemberRole","update-member-role",{memberId:n.puid,isTargetChild:t})];case 1:return e.sent(),[2,{isChild:t,isDigitalSafetyEnabled:t}]}}))}))}}})).finalize()},oPe=function(e,t){return nPe(e).extend("PendingFamilyMember",{invitedSince:e.invitedSince,isPending:!0,redirectUrl:null===t||void 0===t?void 0:t.redirectUrl,accrualUrl:null===t||void 0===t?void 0:t.accrualUrl}).actions((function(e){return{setAddMemberData:function(t){e.accrualUrl=t.accrualUrl,e.redirectUrl=t.redirectUrl}}})).finalize()},iPe=function(e,t){return Date.parse(e.joinedSince)-Date.parse(t.joinedSince)},aPe=function t(n,r){return RIe("FamilyRoster",{membersMap:nke.map(n.members.filter((function(e){return!e.isLocal&&!e.isPending&&!e.isExtended})).sort(iPe).map((function(e){return[e.cid,rPe(e,r.find((function(t){return t[0]===e.puid})))]}))),pendingMembers:nke.array(n.members.filter((function(e){return!e.isLocal&&e.isPending})).map((function(e){return oPe(e)}))),version:n.version}).views((function(e){return{get members(){return Array.from(e.membersMap.values())},get memberCids(){return Array.from(e.membersMap.keys())}}})).views((function(e){return{get organizers(){return e.members.filter((function(e){return e.isParent}))},get childMembers(){return e.members.filter((function(e){return e.isChild}))},getChildById:function(t){var n=e.membersMap.get(t);return n&&n.isChild?n:e.members.find((function(e){return e.isChild&&e.puid===t}))},get mostRecentlyJoinedMember(){return e.members.reduce((function(e,t){return e.joinedSince>t.joinedSince?e:t}))},get selfMember(){return e.members.find((function(e){return e.isSelf}))}}})).updates((function(n){return{addPendingMember:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){var r,o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,KIe("AddPendingMember","pending-member",t)];case 1:return r=e.sent(),n.pendingMembers.find((function(e){return e.primaryId===t.inviteId}))?[3,3]:[4,qIe("GetFamilyRoster","roster")];case 2:i=e.sent(),o=i.members.find((function(e){return e.primaryId===t.inviteId})),e.label=3;case 3:return[2,{pendingMembers:function(e){var n=e.find((function(e){return e.primaryId===t.inviteId}));n?n.setAddMemberData(r):e.push(oPe(o,r))}}]}}))}))},removeMember:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,XIe("RemoveMember","member",{removeSet:t.removeSet})];case 1:return e.sent(),t.isPending?[2,{pendingMembers:function(e){e.remove(t)}}]:t.isSelf?[2,{pendingMembers:[],membersMap:function(e){e.clear()}}]:[2,{membersMap:function(e){e.delete(t.cid)}}]}}))}))},removeOtherMember:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(t.isSelf)throw new Error("removeOtherMember call invalid for removing 'self' - use 'removeSelf' instead");return[4,XIe("RemoveOtherMember","remove-other-member",{memberId:t.puid})];case 1:return e.sent(),[2,{membersMap:function(e){e.delete(t.cid)}}]}}))}))},removePendingMember:function(t){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,XIe("RemovePendingMember","remove-pending-member",{memberId:t.removeSet.split(":")[1]})];case 1:return e.sent(),[2,{pendingMembers:function(e){e.remove(t)}}]}}))}))},removeSelf:function(){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,XIe("RemoveSelf","remove-self")];case 1:return e.sent(),[2,{pendingMembers:[],membersMap:function(e){e.clear()}}]}}))}))},refreshRoster:function(){return(0,e.__awaiter)(this,void 0,void 0,(function(){var n;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,qIe("GetFamilyRoster","roster")];case 1:return n=e.sent(),[2,t(n,r)]}}))}))}}})).finalize()},sPe=function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone},lPe=(ZIe=[JIe=tPe,function(){return JIe().value}])[0],cPe=ZIe[1],uPe={textAlignment:"center"},dPe=function(t){var n=t.content,r=t.config,o=t.userEmailOrPhone,i=t.setUserEmailOrPhone,a=t.userEmailOrPhoneInvalid,s=t.setUserEmailOrPhoneInvalid,l=t.setIsAddSomeoneNextButtonDisabled,c=(0,Gt.useState)(null!==o&&void 0!==o?o:""),u=c[0],d=c[1];return jt().createElement(bb,(0,e.__assign)({},uPe),jt().createElement(Cb,{align:"center"},jt().createElement(zk,{imageType:"ariaHiddenImage",src:n.emailOrPhone.addSomeoneImage.src,height:140,width:270})),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(nb,{tag:"h1",variant:"paneHeader"},n.emailOrPhone.title)),jt().createElement(Cb,{padding:"16px 0 0 0"},jt().createElement(jL,{"aria-label":n.emailOrPhone.title,onChange:function(e,t){var n=t.replace(/\s/g,"");d(n),i(n),s(!1),l(""===n)},placeholder:n.emailOrPhone.helperText,value:u,"data-bi-id":"family-invite-email-phone",disabled:!1,errorMessage:a?n.emailOrPhone.invalidEmailOrPhone:void 0})),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(ox,{textWithTokens:n.emailOrPhone.noEmailOrPhoneCreateAccount,tokensAndValues:{createAccountLink:jt().createElement(nx,{"aria-label":n.emailOrPhone.createAnAccountTextAria,"data-bi-id":"create-new-member-link",href:r.createAccountUrl},n.emailOrPhone.createAnAccountText)}})))},pPe=function(t){var n=t.operationName,r=t.solution,o=t.captchaInputId,i=t.inviteData,a=t.hipController,s=t.setSolution,l=t.errorMessage,c=(0,Gt.useState)(i.content.hipChallenge.captchaInputAriaLabel),u=c[0],d=c[1],p="family-invite.invite-to-family.hip-challenge",h={operationData:{componentName:"inviteToFamily.challenge",operationName:n},variant:{alignment:"start",titleLocation:"top"},titleProps:{children:i.content.hipChallenge.title},mode:a.mode,challengeSource:a.challenge.challengeSource,userSolution:r,challengeProps:{noAudioSupportMessage:i.content.hipChallenge.noAudioSupportMessage,cannotLoadChallengeMessage:i.content.hipChallenge.cannotLoadChallengeMessage,switchToVisualWhenAudioFailedButtonProps:{"aria-label":i.content.hipChallenge.switchToVisualWhenAudioFailedButtonAriaLabel,"data-bi-id":"".concat(p,".audio-failed.switch-to-visual"),text:i.content.hipChallenge.switchToVisualWhenAudioFailedButtonText},playAudioButtonProps:{"aria-label":i.content.hipChallenge.playAudioButtonAriaLabel,"data-bi-id":"".concat(p,".play-audio")}},controlsProps:{refreshChallengeButtonProps:{"aria-label":i.content.hipChallenge.controls.refreshChallengeButtonAriaLabel,"data-bi-id":"".concat(p,".refresh-challenge"),text:i.content.hipChallenge.controls.refreshChallengeButtonText},switchToAudioButtonProps:{"aria-label":i.content.hipChallenge.controls.switchToAudioButtonAriaLabel,"data-bi-id":"".concat(p,".switch-to-audio"),text:i.content.hipChallenge.controls.switchToAudioButtonText},switchToVisualButtonProps:{"aria-label":i.content.hipChallenge.controls.switchToVisualButtonAriaLabel,"data-bi-id":"".concat(p,".switch-to-visual"),text:i.content.hipChallenge.controls.switchToVisualButtonText}},solutionInputProps:{playAudioInstruction:i.content.hipChallenge.audioCaptchaInputAriaLabel,audioPlaceholder:i.content.hipChallenge.audioPlaceholder,visualPlaceholder:i.content.hipChallenge.visualPlaceholder,"aria-label":u,"data-bi-id":"".concat(p,".solution-input"),id:o,errorMessage:l},onNewChallengeRequested:function(e){d("audio"===e?i.content.hipChallenge.audioCaptchaInputAriaLabel:i.content.hipChallenge.captchaInputAriaLabel),s(""),a.getNewChallenge(e)},onSolutionChanged:s};return jt().createElement(KL,(0,e.__assign)({},h))},hPe=function(t){var n=t.content;return jt().createElement(bb,(0,e.__assign)({},uPe),jt().createElement(Cb,{align:"center"},jt().createElement(qF,{align:"center",correlationVector:Dr(),errorMessage:n.error.description,imageSrc:n.error.errorImage.src})))},mPe=function(e){var t=e.description;return jt().createElement(bb,{margin:"0px 0px 0px -16px"}," ",jt().createElement(Ib,null,t))},fPe=function(t){var n=t.content,r=t.setIsMember,o=t.setIsOrganizerOrMemberNextButtonDisabled,i=t.selectedChoice,a=t.setSelectedChoice,s=t.emailOrPhone,l="member",c={none:n.memberOrOrganizer.noneSelectedImage.src,member:n.memberOrOrganizer.memberImage.src,organizer:n.memberOrOrganizer.organizerImage.src},u={height:135,label:"",textAlignment:"center",onChange:function(e,t){a(e.key),r(e.key===l),o(!1)},optionType:"selectButton",options:[{text:n.memberOrOrganizer.memberTitle,"aria-label":n.memberOrOrganizer.memberChoiceAria,"data-bi-id":"invite-role-choice-member",key:l,lines:[{text:n.memberOrOrganizer.memberDescription}]},{text:n.memberOrOrganizer.organizerTitle,"aria-label":n.memberOrOrganizer.organizerChoiceAria,"data-bi-id":"invite-role-choice-organizer",key:"organizer",lines:[{text:n.memberOrOrganizer.organizerDescription}]}],selectedKey:i};return jt().createElement(bb,(0,e.__assign)({},uPe),jt().createElement(Cb,{align:"center"},jt().createElement(zk,{imageType:"ariaHiddenImage",src:c[i],height:140,width:270,shouldFadeIn:!1})),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(nb,{tag:"h1",variant:"paneHeader"},n.memberOrOrganizer.title)),jt().createElement(Cb,{padding:"2px 0 0 0"},jt().createElement(Ib,{variant:"bodySecondaryText"},s)),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(LT,(0,e.__assign)({},u))),jt().createElement(Cb,{padding:"24px 0 0 0"},zs("FamRoleDescription")&&"none"!==i&&jt().createElement(bb,{textAlignment:"left"},jt().createElement(Ib,{variant:"headerText"},"member"===i?n.memberOrOrganizer.member.header:n.memberOrOrganizer.organizer.header," "),"member"===i?jt().createElement("ul",{style:{listStylePosition:"inside"}},jt().createElement("li",null,n.memberOrOrganizer.member.description1),jt().createElement("li",null,n.memberOrOrganizer.member.description2),jt().createElement("li",null,n.memberOrOrganizer.member.description3),jt().createElement("li",null,n.memberOrOrganizer.member.description4),jt().createElement("li",null,n.memberOrOrganizer.member.description5)):jt().createElement("ul",{style:{listStylePosition:"inside"}},jt().createElement("li",null,n.memberOrOrganizer.organizer.description1),jt().createElement("li",null,n.memberOrOrganizer.organizer.description2),jt().createElement("li",null,n.memberOrOrganizer.organizer.description3),jt().createElement("li",null,n.memberOrOrganizer.organizer.description4)))))},gPe=function(e,t){if(fIe())return e;var n,r,o,i=IIe({forwardRef:!1},t),a=e.displayName||e.name,s=function(t,n){return wIe((function(){return e(t,n)}),a)};return s.displayName=a,n=i.forwardRef?(0,Gt.memo)((0,Gt.forwardRef)(s)):(0,Gt.memo)(s),r=e,o=n,Object.keys(r).forEach((function(e){PIe[e]||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=a,n}((function(t){var n=this,r=t.emailOrPhone,o=t.succeededCallback,i=t.failedCallback,a=t.cancelledCallback,s=t.setDialogProps,l=t.inviteData,c=null===r||void 0===r?void 0:r.length,u=cPe(),d=(0,Gt.useState)(r),p=d[0],h=d[1],m=(0,Gt.useState)(!1),f=m[0],g=m[1],v=(0,Gt.useState)(!c),y=v[0],b=v[1],C=(0,Gt.useState)(!1),S=C[0],x=C[1],_=(0,Gt.useState)(!0),E=_[0],k=_[1],w=(0,Gt.useState)("none"),I=w[0],P=w[1],T="inviteToFamily.challengeOperationName",D=rye({operationName:T}),A=(0,Gt.useState)(""),R=A[0],N=A[1],M=(0,Gt.useState)(),F=M[0],B=M[1],O=(0,Gt.useState)(""),L=O[0],H=O[1],V=(0,Gt.useState)(c?"organizerOrMember":"addSomeone"),z=V[0],U=V[1],W=function(){s({isOpen:!1}),"error"===z&&i?i(F):"error"!==z&&a&&a()};switch((0,Gt.useEffect)((function(){switch(z){case"addSomeone":s(yPe({view:"addSomeone",inviteData:l,primaryButtonAction:function(){p&&function(e){if(un(e))return!0;if(/^(\+?[1])?[-.\s]?\(?([0-9]{3})\)?[-.\s]?([0-9]{3})[-.\s]?([0-9]{4})$/.test(e)){var t=e.replace(/\D/g,"");return 10===t.length?h("+1".concat(t)):h("+".concat(t)),!0}return!1}(p)?U("organizerOrMember"):g(!0)},secondaryButtonAction:W,isPrimaryDisabled:y,dismissButtonAction:W}));break;case"organizerOrMember":s(yPe({view:"organizerOrMember",inviteData:l,primaryButtonAction:function(){return U("challenge")},isPrimaryDisabled:E,secondaryButtonAction:function(){return U("addSomeone")},dismissButtonAction:W}));break;case"challenge":s(yPe({view:"challenge",inviteData:l,primaryButtonAction:function(){return(0,e.__awaiter)(n,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,vPe({familyRoster:u,solution:L,emailOrPhone:p,isMember:S,hipController:D,inviteData:l,setError:N,setSolution:H,setDialogProps:s,setIsEmailOrPhoneInvalid:g,setUnknownError:B,setView:U,succeededCallback:o})];case 1:return e.sent(),[2]}}))}))},isPrimaryDisabled:!1,secondaryButtonAction:function(){return U("organizerOrMember")},dismissButtonAction:W}));break;case"maxFamilyMembers":s(yPe({view:"maxFamilyMembers",inviteData:l,primaryButtonAction:W,isPrimaryDisabled:!1,dismissButtonAction:W}));break;case"error":s(yPe({view:"error",inviteData:l,primaryButtonAction:W,isPrimaryDisabled:!1,secondaryButtonAction:function(){return U("addSomeone")},dismissButtonAction:W}));break;default:throw new Error("View '".concat(z,"' is not supported"))}}),[z,y,E,L,p]),z){case"addSomeone":return jt().createElement(dPe,(0,e.__assign)({},l,{userEmailOrPhone:p,setUserEmailOrPhone:h,userEmailOrPhoneInvalid:f,setUserEmailOrPhoneInvalid:g,setIsAddSomeoneNextButtonDisabled:b}));case"organizerOrMember":return jt().createElement(fPe,(0,e.__assign)({},l,{setIsMember:x,setIsOrganizerOrMemberNextButtonDisabled:k,selectedChoice:I,setSelectedChoice:P,emailOrPhone:p}));case"challenge":return jt().createElement(pPe,{operationName:T,solution:L,captchaInputId:"captcha-user-solution",inviteData:l,hipController:D,setSolution:H,errorMessage:R});case"maxFamilyMembers":return jt().createElement(mPe,{description:l.content.maxFamilyMembers.description});case"error":return jt().createElement(hPe,(0,e.__assign)({},l));default:throw new Error("View '".concat(z,"' is not supported"))}})),vPe=function(t){var n=t.familyRoster,r=t.solution,o=t.setIsEmailOrPhoneInvalid,i=t.emailOrPhone,a=t.isMember,s=t.hipController,l=t.inviteData,c=t.setError,u=t.setSolution,d=t.succeededCallback,p=t.setDialogProps,h=t.setView,m=t.setUnknownError;return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,f,g,v,y,b,C,S,x,_;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(c(""),t=function(){c("visual"===(null===s||void 0===s?void 0:s.mode)?l.content.hipChallenge.invalidCodeMessage:l.content.hipChallenge.invalidAudioCaptchaResponse)},f=function(){u(""),s.getNewChallenge(s.mode),t()},!r||""===r)return f(),[2];g={solution:r,intent:"Family",inviteId:i,isChild:a,isInline:!1,matchAccount:!1,hipContext:null!==(S=null===(C=null===s||void 0===s?void 0:s.challenge)||void 0===C?void 0:C.context)&&void 0!==S?S:{}},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n.addPendingMember(g)];case 2:return e.sent(),d&&d({emailOrPhone:i,isChild:a}),p({isOpen:!1}),[3,4];case 3:return v=e.sent(),"HipValidationFailed"===(b=null===(_=null===(x=(y=v).response)||void 0===x?void 0:x.data)||void 0===_?void 0:_.error)?(f(),t()):"Family.InvalidMobileNumber"===b||"InvalidEmail"===b?(o(!0),h("addSomeone"),"Family.InvalidMobileNumber"===b&&f()):"Family.FamilySizeExceedLimit"===b?h("maxFamilyMembers"):(h("error"),m(y.message)),[3,4];case 4:return[2]}}))}))},yPe=function(e){var t,n=e.view,r=e.inviteData,o=e.primaryButtonAction,i=e.secondaryButtonAction,a=e.dismissButtonAction,s=e.isPrimaryDisabled,l={"aria-label":r.content.shared.nextButtonText,"data-bi-id":"invite-".concat(n,"-primary"),text:r.content.shared.nextButtonText,onClick:o,disabled:s},c=i?{"aria-label":r.content.shared.backButtonText,"data-bi-id":"invite-".concat(n,"-secondary"),text:r.content.shared.backButtonText,onClick:i}:null;switch(n){case"addSomeone":c={"aria-label":r.content.shared.cancelButtonText,text:r.content.shared.cancelButtonText,onClick:i,"data-bi-id":"invite-".concat(n,"-secondary")};break;case"challenge":l={"aria-label":r.content.hipChallenge.inviteButtonText,"data-bi-id":"invite-".concat(n,"-primary"),text:r.content.hipChallenge.inviteButtonText,onClick:o,disabled:s};break;case"maxFamilyMembers":t=r.content.maxFamilyMembers.title,l={"aria-label":r.content.error.closeButtonText,"data-bi-id":"invite-".concat(n,"-primary"),text:r.content.error.closeButtonText,onClick:o,disabled:s};break;case"error":l={"aria-label":r.content.error.closeButtonText,"data-bi-id":"invite-".concat(n,"-primary"),text:r.content.error.closeButtonText,onClick:o,disabled:s},c=i?{"aria-label":r.content.error.tryAgainButtonText,"data-bi-id":"invite-".concat(n,"-secondary"),text:r.content.error.tryAgainButtonText,onClick:i}:null}return{isOpen:!0,title:t,closeButton:{"data-bi-id":"invite-to-family-x-close","aria-label":r.content.shared.closeDismissButtonAria},onDismiss:a,isBlocking:!1,dialogFooterProps:c?{dialogType:"flow",buttonPrimary:l,buttonSecondary:c}:{dialogType:"default",buttonPrimary:l}}},bPe=function(){return jt().createElement(bb,(0,e.__assign)({},uPe),jt().createElement(Cb,{align:"center"},jt().createElement(nw,{height:140,width:270})),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(nw,{height:30,width:288})),jt().createElement(Cb,{padding:"16px 0 0 0",width:380},jt().createElement(nw,{height:24})),jt().createElement(Cb,{padding:"24px 0 0 0"},jt().createElement(nw,{height:16})))},CPe={},SPe="InviteToFamily",xPe=function(t){var n=(0,Gt.useState)(),r=n[0],o=n[1],i=mi(),a=lPe();(0,Gt.useEffect)((function(){(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return(0,e.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),i({name:SPe,status:"first-load"}),t=o,[4,tl(CPe,"FamilyInviteData",(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("/family/inviteflow/data",{operation:"FamilyInviteData"})];case 1:return[2,e.sent().data]}}))}))}))];case 1:return t.apply(void 0,[r.sent()]),[4,a.load()];case 2:return r.sent(),i({name:SPe,status:"finished"}),[3,4];case 3:throw n=r.sent(),i({name:SPe,status:"failed",error:n}),n;case 4:return[2]}}))}))}),[]);var s=(0,Gt.useState)({isOpen:!0,title:"",onDismiss:function(){return c({isOpen:!1})},isBlocking:!1}),l=s[0],c=s[1];return jt().createElement(CM,(0,e.__assign)({},l),jt().createElement(bb,{padding:16},jt().createElement(dv,{operationData:{operationName:SPe,componentName:"InviteToFamily"},firstLoadView:jt().createElement(bPe,null),finishedView:jt().createElement(gPe,(0,e.__assign)({inviteData:r,setDialogProps:c},t))})))},_Pe=function(e){var t=e.profileName,n=e.inviteId,r=e.isFamilyShare,o=void 0!==r&&r,i=zye(),a=Xve().content,s=EM(),l=IQ(),c=gbe(),u=a.sharing,d=a.common;vn(i,"Service in CancelInviteDialog");var p=d.tryAgainLater,h=sn(i.isXboxFamily?u.cancelInviteFailTextXbox:u.cancelInviteFailText,{productId:i.name}),m=Ua((0,Gt.useState)(!1),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)(!1),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)(p),2),S=C[0],x=C[1],_=Ua((0,Gt.useState)(h),2),E=_[0],k=_[1],w=i.isXboxFamily?u.cancelInviteTitleXbox:u.cancelInviteTitle,I=sn(u.cancelInviteDescription,{productId:i.name,name:t}),P=u.cancelInviteButton,T=u.cancelInviteInProgress,D=d.closeButton,A=aI(),R=mi(),N=Bve().area,M="cancel-invite",F="cancel-invite-dialog";Qt((function(){i.isXboxFamily?br({area:N,scenario:"AmcXboxCancelInvite",step:"XboxCancelInvite.Index",data:i.bi}):br({area:N,scenario:"AmcCancelInvite",step:"CancelInvite.Index",data:i.bi}),R({name:M,status:"inert"})}));var B=function(e,t){if(e){var n=i.isXboxFamily?sn(u.cancelInviteSuccessMesssageXbox,{email:t}):u.cancelInviteSuccessMesssage;l.showNotificationBar(jt().createElement(tEe,{message:n,ariaLabel:a.common.closeButton,buttonId:"stop-sharing-notification-bar-close"}))}s.closeDialog()},O=function(){var e=Zve(fve().mark((function e(){var r,a,s,l,d,p,h,m;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R({name:M,status:"updating"}),b(!0),A({type:"push",announcement:{message:T}}),e.prev=3,!i.isXboxFamily){e.next=9;break}return e.next=7,S9(n);case 7:e.next=16;break;case 9:if(!o){e.next=14;break}return e.next=12,z9(n);case 12:e.next=16;break;case 14:return e.next=16,T9(n);case 16:c.onServiceUpdate(),R({name:M,status:"finished"}),_r({data:i.bi}),g(!0),B(!0,t),e.next=30;break;case 23:e.prev=23,e.t0=e.catch(3),h=e.t0,m=null!==(r=null!==(a=null===(s=h.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.errorCode)&&void 0!==a?a:null===(d=h.response)||void 0===d||null===(p=d.data)||void 0===p?void 0:p.error)&&void 0!==r?r:"CancelInviteNoErrorCode",Object.values(y8).includes(m)?(m===y8.xboxUserErrorSubscriptionNotActive?(x(u.subscriptionNotActiveTitle),k(u.subscriptionNotActiveSubtitle)):m===y8.partnerErrorNotFound?(x(u.sharingNotFoundErrorTitle),k(u.sharingNotFoundErrorSubtitle)):m===y8.pendingMemberNotInFamily&&(x(u.inviteExpiredErrorTitle),k(u.inviteExpiredErrorSubtitle)),R({name:M,status:"finished",error:h}),_r({error:m,data:{isUserError:!0,errorDetails:e.t0}})):(R({name:M,status:"failed",error:h}),_r({error:m,data:{isUserError:b8.indexOf(m)>-1,errorDetails:e.t0}})),g(!0),b(!1);case 30:case"end":return e.stop()}}),e,null,[[3,23]])})));return function(){return e.apply(this,arguments)}}(),L={title:S,subText:E,dialogFooterProps:{buttonPrimary:{onClick:function(){B(!1,t)},text:D,"aria-label":D,"data-bi-id":"cancel-invite-error-close"}}},H={progressViewOperationData:{operationName:M,componentName:F},errorDialogProps:L,successDialogProps:L},V={isOpen:!0,onDismiss:function(){y||(f||xr(),B(!1,t))},title:w,closeButton:y?void 0:{"data-bi-id":"cancel-invite-close","aria-label":d.closeButton,id:"cancel-invite-close"},dialogFooterProps:{buttonPrimary:{text:P,onClick:O,"aria-label":P,"data-bi-id":"cancel-invite"}},operationData:H},z=i.isXboxFamily?jt().createElement(ox,{textWithTokens:sn(u.cancelInviteDescriptionXbox,{productId:i.name,name:"{inviteId}"}),tokensAndValues:{inviteId:jt().createElement(Ib,{weightOverride:"bold"},t)}}):jt().createElement(Ib,null,I);return jt().createElement(CM,V,jt().createElement(vi,{operationData:{componentName:F,operationName:M},inertView:z,updatingView:z,firstLoadView:z,updateFailedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},EPe=function(e){var t=e.sectionTitle,n=e.sectionBody,r=e.sectionGap,o=void 0===r?0:r,i=e.bottomPadding,a=e.children,s=Xve().content.sharing.familyShareV1,l=ny(),c="string"===typeof n?jt().createElement(Ib,{variant:"bodySecondaryText"},n):jt().createElement(ox,{textWithTokens:n.textWithTokens,tokensAndValues:n.tokensAndValues});return jt().createElement(jt().Fragment,null,jt().createElement(zk,{id:"dialogImage",imageFit:"cover",imageType:"altTextImage",src:s.introImage.src,alt:s.introImage.alt,height:pbe(l,i).imageHeight}),jt().createElement(bb,{horizontal:!1,horizontalAlign:"start",padding:pbe(l,i).dialogBodyPadding,childrenGap:o},jt().createElement(bb,{horizontal:!1,childrenGap:8},jt().createElement(nb,{variant:"paneHeader",tag:"h1"},t),c),a))},kPe=function(e){var t=e.userInviteLink,n=e.isM365Onboarding,r=e.isOnboardingCompleted,o=zye(),i=tee(),a=Bve().language,s=EM(),l=aI(),c=ny(),u=Xve().content.sharing.familyShareV1.shareViaLinkDialog,d=Xve().content,p="invite-link",h=Ua((0,Gt.useState)(!1),2),m=h[0],f=h[1];vn(o,"Service in ShareViaLinkDialog");var g=function(){s.closeDialog(),_r({data:o.bi}),i(n?cbe:r?lbe:sbe,a)},v=function(){var e=Zve(fve().mark((function e(){var t,n,r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementById(p),n=t.value,t.select(),r=!1,e.prev=4,e.next=7,navigator.clipboard.writeText(n);case 7:r=!0,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),r=!1;case 13:r&&(l({type:"push",announcement:{message:u.linkCopyStatus}}),f(!0),Cr({step:"GetInviteLink.LinkCopied"}));case 14:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}(),y=jt().createElement(dk,{text:"s"===c?u.copyCtaMobile:u.copyCta,onClick:v,"aria-label":u.copyCta,"data-bi-id":n?"m365-onboarding-invite-link-button-copy":"get-invite-link-button-copy"}),b=jt().createElement(bb,{horizontal:!1,horizontalAlign:"start",width:"100%"},jt().createElement(bb,{horizontal:!0,verticalAlign:"center",width:"100%",childrenGap:10},jt().createElement(Cb,{grow:1},jt().createElement(jL,{id:p,"data-bi-id":"invite-link","aria-label":u.inviteLinkAria,value:t,onChange:function(){}})),jt().createElement(Cb,null,y)),m?jt().createElement(ox,{variant:"bodySuccessText",textWithTokens:u.linkCopyStatus,tokensAndValues:{0:jt().createElement(Hy,{color:"successIcon",iconName:"CheckMark",size:"12px"})}}):jt().createElement(jt().Fragment,null)),C={onClick:g,text:u.doneFooterButton,"aria-label":u.doneFooterButton,"data-bi-id":"share-via-invite-done"},S={onClick:function(){s.switchToDialog(jt().createElement(mbe,null)),_r({data:o.bi})},text:d.common.nextButton,"aria-label":d.manage.nextAriaLabel,"data-bi-id":"share-via-invite-next"};return jt().createElement(CM,Object.assign({},function(e,t,n){var r=EM(),o=Xve().content,i=o.sharing.familyShareV1,a=o.common;return{isOpen:!0,onDismiss:t,title:{src:i.dialogTitle.src,imageType:"altTextImage",alt:i.dialogTitle.alt},closeButton:e?{"data-bi-id":e,"aria-label":a.closeButton,id:e}:void 0,stickyHeaderFooter:n?{hasStickyHeaderFooters:!0,firstFocusOnContent:!0}:void 0,dialogFooterProps:n?{buttonPrimary:{onClick:function(){return r.switchToDialog(jt().createElement(mbe,null))},text:a.skip,"aria-label":a.skipAriaLabel,"data-bi-id":"skip-sharing"},hasFooterBackground:!0,hasFooterHorizontalLine:!0}:void 0,bodyStyleTemp:{padding:"18px 0px 0px",smallScreenPadding:"0px"},staticBodyWidth:"480px",minBodyHeight:n?{unit:"vh",height:80}:void 0}}("get-invite-link-close",g,n),{dialogFooterProps:{removeMarginTop:!0,buttonPrimary:n?S:C}}),jt().createElement(EPe,{sectionTitle:u.sectionTitle,sectionBody:sn(u.sectionBody,{productName:o.name}),sectionGap:16,bottomPadding:40},b))},wPe=function(e){var t=e.inviteId,n=e.isFamilyShare,r=void 0!==n&&n,o=zye(),i=Xve().content,a=EM(),s=IQ(),l=gbe(),c=i.common,u=i.sharing;vn(o,"Service in DeleteLinkDialog");var d=u.deleteLinkTitle,p=sn(u.deleteLinkDescription,{productId:o.name}),h=c.deleteButton,m=u.deleteLinkInProgress,f=c.tryAgainLater,g=u.deleteLinkFailText,v=c.closeButton,y=aI(),b=mi(),C=Bve().area,S="delete-link",x=Ua((0,Gt.useState)(f),2),_=x[0],E=x[1],k=Ua((0,Gt.useState)(g),2),w=k[0],I=k[1],P=Ua((0,Gt.useState)(!1),2),T=P[0],D=P[1],A=Ua((0,Gt.useState)(!1),2),R=A[0],N=A[1];Qt((function(){o.isXboxFamily?br({area:C,scenario:"AmcXboxDeleteLink",step:"XboxDeleteLink.Index",data:o.bi}):br({area:C,scenario:"AmcDeleteLink",step:"DeleteLink.Index",data:o.bi}),b({name:S,status:"inert"})}));var M=function(e){e&&s.showNotificationBar(jt().createElement(tEe,{message:o.isXboxFamily?u.deleteLinkSuccessMesssageXbox:u.deleteLinkSuccessMesssage,ariaLabel:i.common.closeButton,buttonId:"delete-link-notification-bar-close"})),a.closeDialog()},F=function(){var e=Zve(fve().mark((function e(){var n,i,a,s,c,d,p,h;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b({name:S,status:"updating"}),N(!0),y({type:"push",announcement:{message:m}}),e.prev=3,!o.isXboxFamily){e.next=9;break}return e.next=7,S9(t);case 7:e.next=16;break;case 9:if(!r){e.next=14;break}return e.next=12,L9();case 12:e.next=16;break;case 14:return e.next=16,T9(t);case 16:l.onServiceUpdate(),b({name:S,status:"finished"}),_r({data:o.bi}),D(!0),M(!0),e.next=30;break;case 23:e.prev=23,e.t0=e.catch(3),p=e.t0,h=null!==(n=null!==(i=null===(a=p.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.errorCode)&&void 0!==i?i:null===(c=p.response)||void 0===c||null===(d=c.data)||void 0===d?void 0:d.error)&&void 0!==n?n:"DeleteLinkNoErrorCode",Object.values(y8).includes(h)?(h===y8.invitationDoesNotExist?(E(u.invitationDoesNotExistTitle),I(u.invitationDoesNotExistSubtitle)):h===y8.xboxUserErrorSubscriptionNotActive?(E(u.subscriptionNotActiveTitle),I(u.subscriptionNotActiveSubtitle)):h===y8.partnerErrorNotFound&&(E(u.sharingNotFoundErrorTitle),I(u.sharingNotFoundErrorSubtitle)),b({name:S,status:"finished",error:p}),_r({error:h,data:{isUserError:!0,errorDetails:e.t0}})):(b({name:S,status:"failed",error:p}),_r({error:h,data:{isUserError:b8.indexOf(h)>-1,errorDetails:e.t0}})),N(!1),D(!0);case 30:case"end":return e.stop()}}),e,null,[[3,23]])})));return function(){return e.apply(this,arguments)}}(),B={title:_,subText:w,dialogFooterProps:{buttonPrimary:{onClick:function(){M(!1)},text:v,"aria-label":v,"data-bi-id":"delete-link-error-close"}}},O={progressViewOperationData:{componentName:"delete-link-dialog",operationName:S},errorDialogProps:B,successDialogProps:B},L={isOpen:!0,title:d,onDismiss:function(){T||R||xr(),R||M(!1)},closeButton:R?void 0:{"data-bi-id":"delete-link-close","aria-label":v,id:"delete-link-close"},dialogFooterProps:{buttonPrimary:{onClick:F,text:h,"aria-label":h,"data-bi-id":"delete-link"}},operationData:O},H=jt().createElement(Ib,null,p);return jt().createElement(CM,L,jt().createElement(vi,{operationData:O.progressViewOperationData,inertView:H,updatingView:H,firstLoadView:H,updateFailedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(jt().Fragment,null)}))},IPe=KR((function(e){var t,n,r,o=e.index,i=e.user,a=e.personaTitle,s=e.secondaryText,l=e.actionButtonFinalColumnProps,c=e.isSharingFull,u=e.sharingCms,d=ny(),p="".concat("GuestListItemOperationName",".").concat(o),h=parseInt(i.puid,10).toString(16),m=Ua((0,Gt.useState)([h]),1)[0],f=Aee({operationName:p,userIds:m}).profilePictureData;switch(d){case"s":case"m":return jt().createElement(xR,{key:o,leftColumn:jt().createElement(aR,{personaProps:{size:"32",imageUrl:null===(t=f[m[0]])||void 0===t?void 0:t.url,operationData:{componentName:p,operationName:p}},title:a,subtitles:c?[{children:s,variant:"bodySecondaryText"},{children:u.noSpotAvailable,variant:"bodySecondaryText"}]:[{children:s,variant:"bodySecondaryText"}]}),rightColumn:jt().createElement(Tw,l)});default:return jt().createElement(SR,{key:o,variant:c?"ThreeThreeThreeThree":"ThreeThreeSix",columns:c?[jt().createElement(aR,{personaProps:{size:"32",imageUrl:null===(n=f[m[0]])||void 0===n?void 0:n.url,operationData:{componentName:p,operationName:p}},title:a}),jt().createElement(nR,{textElements:[{children:s,variant:"bodySecondaryText"}]}),jt().createElement(nR,{textElements:[{children:u.noSpotAvailable,variant:"bodySecondaryText"}]}),jt().createElement(Tw,l)]:[jt().createElement(aR,{personaProps:{size:"32",imageUrl:null===(r=f[m[0]])||void 0===r?void 0:r.url,operationData:{componentName:p,operationName:p}},title:a}),jt().createElement(nR,{textElements:[{children:s,variant:"bodySecondaryText"}]}),jt().createElement(Tw,l)]})}})),PPe=KR((function(e){var t,n,r=e.user,o=e.index,i=e.isShared,a=e.actionButtonFinalColumnProps,s=ny(),l="".concat("FamilyListItemOperationName",".").concat(o),c=parseInt(r.puid,10).toString(16),u=Ua((0,Gt.useState)([c]),1)[0],d=Aee({operationName:l,userIds:u}).profilePictureData;switch(s){case"s":case"m":return jt().createElement(xR,{key:i?"stop-sharing-list-".concat(o):"start-sharing-list-".concat(o),leftColumn:jt().createElement(aR,{personaProps:{size:"32",imageUrl:null===(t=d[u[0]])||void 0===t?void 0:t.url,operationData:{componentName:l,operationName:l}},title:r.name,subtitles:[{children:r.inviteId,variant:"bodySecondaryText"}]}),rightColumn:jt().createElement(Tw,a)});default:return jt().createElement(SR,{key:i?"stop-sharing-list-".concat(o):"start-sharing-list-".concat(o),variant:"ThreeThreeSix",columns:[jt().createElement(aR,{personaProps:{size:"32",imageUrl:null===(n=d[u[0]])||void 0===n?void 0:n.url,operationData:{componentName:l,operationName:l}},title:r.name}),jt().createElement(nR,{textElements:[{children:r.inviteId,variant:"bodySecondaryText"}]}),jt().createElement(Tw,a)]})}})),TPe=function(e,t){t.isXboxFamily?br({area:e,scenario:"AmcXboxInviteLink",step:"XboxGetInviteLink.Index",data:t.bi}):br({area:e,scenario:"AmcInviteLink",step:"GetInviteLink.Index",data:t.bi})},DPe=function(e){var t=e.userInviteLink,n=e.errorCode,r=zye(),o=Xve().content,i=Ua((0,Gt.useState)(!1),2),a=i[0],s=i[1],l=EM(),c=o.common,u=o.sharing;if(!r)throw new Error("Service details not found");var d=mi(),p="get-invite-link",h="invite-link",m=Ua((0,Gt.useState)(),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)({title:u.inviteLinkTitle,subText:u.inviteLinkDescription}),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)(""),2),S=C[0],x=C[1],_={name:p,status:"inert"},E={name:p,status:"finished"},k={name:p,status:"failed"},w=Ua((0,Gt.useState)(!1),2),I=w[0],P=w[1],T=function(){var e=Zve(fve().mark((function e(t){var n,o,i;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=document.getElementById(t),o=n.value,n.select(),i=!1,e.prev=4,e.next=7,navigator.clipboard.writeText(o);case 7:i=!0,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),i=!1;case 13:i&&(s(!0),x("{0} ".concat(u.linkCopiedStatusText)),r.isXboxFamily?Cr({step:"XboxGetInviteLink.LinkCopied"}):Cr({step:"GetInviteLink.LinkCopied"}));case 14:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=Zve(fve().mark((function e(t){var o,i,a,s,l;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=null===r||void 0===r?void 0:r.sharingDetails,a=null===i||void 0===i?void 0:i.userCanAddGuestTimeout,s=null===i||void 0===i||null===(o=i.maxSharesAllowedForGroupInTimeoutPeriod)||void 0===o?void 0:o.toString(),l=!1,P(!0),e.t0=t,e.next=e.t0===y8.userErrorTrialShareLimit?8:e.t0===y8.xboxUserErrorCantShareNoSpace?12:e.t0===y8.xboxUserErrorSubscriptionNotActive?16:e.t0===y8.xboxUserErrorAdminShareThrottled?20:e.t0===y8.xboxUserErrorSharingOtherSubscription?24:e.t0===y8.xboxUserErrorExistingInvitationNotFound?28:e.t0===y8.xboxUserErrorInvitationAlreadyAccepted?32:36;break;case 8:return b({title:u.trialShareLimitTitle,subText:u.trialShareLimitSubtitle}),A(t),l=!0,e.abrupt("break",36);case 12:return b({title:u.cantShareNoSpaceTitle,subText:u.cantShareNoSpaceSubtitle}),A(t),l=!0,e.abrupt("break",36);case 16:return b({title:u.sharingOptionsTitle,subText:u.subscriptionNotActiveSubtitle}),A(t),l=!0,e.abrupt("break",36);case 20:return b({title:u.subReachedMaxUsersTitle,subText:sn(u.subReachedMaxSharesSubtitle,[s,a])}),A(t),l=!0,e.abrupt("break",36);case 24:return b({title:r.isXboxFamily?u.sharingOptionsTitle:c.tryAgainLater,subText:u.sharingOtherSubsSubtitle}),A(t),l=!0,e.abrupt("break",36);case 28:return b({title:r.isXboxFamily?u.sharingOptionsTitle:c.tryAgainLater,subText:u.invitationNotFoundSubtitle}),A(t),l=!0,e.abrupt("break",36);case 32:return b({title:r.isXboxFamily?u.sharingOptionsTitle:c.tryAgainLater,subText:u.invitationAlreadyAcceptedSubtitle}),A(t),l=!0,e.abrupt("break",36);case 36:l||(Object.values(y8).includes(t)?(b({title:r.isXboxFamily?u.sharingOptionsTitle:c.tryAgainLater,subText:sn(u.inviteLinkFailText,{productId:r.name})}),A(t)):(_r({error:t,data:{isUserError:b8.indexOf(t)>-1,errorDetails:n}}),d(k)));case 37:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(e){_r({error:e,data:{isUserError:!0}}),d(E)},R=function(){x(""),l.closeDialog(),I||_r({data:r.bi})};Qt((function(){d(_),t?(g(t),d(E)):"inviteLimitReached"===n?(b({title:u.inviteLimitReachTitle,subText:u.inviteLimitReachSubtitle}),A("userErrorInviteLimitReached"),P(!0)):D(n)}));var N={0:jt().createElement(Hy,{color:"successIcon",iconName:"CheckMark",size:"12px"})},M=jt().createElement(jt().Fragment,null,f&&jt().createElement(jt().Fragment,null,jt().createElement(r6,{id:h,"data-bi-id":"invite-link",label:u.inviteLinkAria,value:f,iconName:"Copy",onChange:function(){},submitButtonProps:{"aria-label":c.copyButton,"data-bi-id":"copy-link",onSubmitButtonClick:function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(h);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}),jt().createElement(ox,{variant:"bodySuccessText",textWithTokens:S,tokensAndValues:N}))),F={onClick:function(){T(h)},text:c.copyButton,"aria-label":c.copyButton,"data-bi-id":"get-invite-link-button-copy"},B={onClick:R,text:c.closeButton,"aria-label":c.closeButton,"data-bi-id":"get-invite-error-close"},O={progressViewOperationData:{operationName:p,componentName:"get-invite-link-dialog"},successDialogProps:{title:y.title,subText:y.subText,dialogFooterProps:{buttonPrimary:f?F:B}},errorDialogProps:{title:c.tryAgainLater,subText:sn(u.inviteLinkFailText,{productId:r.name}),dialogFooterProps:{buttonPrimary:B}}},L={isOpen:!0,onDismiss:R,closeButton:{"data-bi-id":"get-invite-link-close","aria-label":c.closeButton,id:"get-invite-link-close"},operationData:O};return jt().createElement(jt().Fragment,null,jt().createElement(CM,L,M,a?jt().createElement(nI,{message:u.linkCopiedStatusText,ariaLive:"assertive"}):jt().createElement(jt().Fragment,null)))},APe=function(e){var t=e.emailAddress,n=e.onDismiss,r=e.isM365Onboarding,o=e.isOnboardingCompleted,i=Xve().content.sharing,a=zye(),s=gbe(),l=tee(),c=Bve(),u=c.area,d=c.language,p=EM();vn(a,"Service in AddToFamilyDialog");var h=i.addFamilyIcon,m=sn(i.addFamilyTitle,{name:t}),f=i.inviteButton,g=i.skipButton;Qt((function(){a.isXboxFamily?br({area:u,scenario:"AmcXboxInviteToFamily",step:"XboxInviteToFamily.Index",data:a.bi}):br({area:u,scenario:"AmcPromoteAddToFamily",step:"InviteToFamily.Index",data:a.bi})}));var v=function(){xr(),r?p.openDialog(jt().createElement(mbe,null)):l(o?lbe:sbe,d)},y=function(e){_r({error:e||"Invite to family failed"})},b=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.onServiceUpdate(),_r({data:a.bi}),r?p.openDialog(jt().createElement(mbe,null)):l(o?lbe:sbe,d);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C={onDismiss:n,title:m,isOpen:!0,subText:i.addFamilyDescription,dialogFooterProps:{buttonPrimary:{text:f,onClick:function(){p.switchToDialog(jt().createElement(xPe,{emailOrPhone:t,cancelledCallback:v,failedCallback:y,succeededCallback:b}))},"aria-label":f,"data-bi-id":"add-to-family-invite"},buttonSecondary:{text:g,onClick:r?function(){return p.switchToDialog(jt().createElement(mbe,null))}:n,"aria-label":g,"data-bi-id":"add-to-family-skip"}},minBodyHeight:r?{unit:"vh",height:80}:void 0},S={src:h.src,alt:h.alt};return jt().createElement(CM,C,jt().createElement(kM,S))},RPe=function(e){var t,n=e.index,r=e.user,o="".concat("SharingResultPersona",".").concat(n),i=parseInt(r.puid,10).toString(16),a=Ua((0,Gt.useState)([i]),1)[0],s=Aee({operationName:o,userIds:a}).profilePictureData;return jt().createElement(Cb,null,jt().createElement(NP,{size:"32",text:r.name,imageUrl:null===(t=s[a[0]])||void 0===t?void 0:t.url,operationData:{componentName:o,operationName:o}}))},NPe=function(e){var t=zye(),n=Xve().content.sharing;if(!t)throw new Error("Service details not found");var r=t.sharingDetails,o=null===r||void 0===r?void 0:r.maxSharesAllowedForGroupInTimeoutPeriod,i=null===r||void 0===r?void 0:r.userCanAddGuestTimeout,a=sn("".concat(n.subReachedMaxSharesSubtitle," {link}"),[o,i]),s=sn(n.shareWithFamilySuccessSubtitleXbox,t.name),l=jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,null,t.isXboxFamily?s:n.shareWithFamilySuccessSubtitle),e.successfullySharedWith&&e.successfullySharedWith.map((function(e,t){return jt().createElement(RPe,{key:t,index:t,user:e})}))),c=jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,null,e.errorCode===y8.xboxUserErrorCountryMismatch?n.countryMismatchSubtitle:t.isXboxFamily?sn(n.shareWithFamilyPartialErrorSubtitleXbox,t.name):n.shareWithFamilyPartialErrorSubtitle),e.failedToShareWith&&e.failedToShareWith.map((function(e,t){return jt().createElement(RPe,{key:t,index:t,user:e})}))),u=jt().createElement(ox,{textWithTokens:a,tokensAndValues:{link:jt().createElement(nx,{"aria-label":n.subReachedMaxShares.ariaLabel,"data-bi-id":n.subReachedMaxShares.id,to:n.subReachedMaxShares.url,target:"_blank"},n.subReachedMaxShares.text)}}),d=jt().createElement(ox,{textWithTokens:e.message,tokensAndValues:{email:jt().createElement(Ib,{weightOverride:"bold"},e.email)}});return jt().createElement(bb,{childrenGap:20},e.successfullySharedWith&&0!==e.successfullySharedWith.length?l:jt().createElement(jt().Fragment,null),e.failedToShareWith&&0!==e.failedToShareWith.length?c:jt().createElement(jt().Fragment,null),e.sharingLimitReached?u:jt().createElement(jt().Fragment,null),e.email?d:jt().createElement(jt().Fragment,null))};function MPe(e,t,n,r,o){var i,a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l=t.common,c=t.sharing,u=null===o||void 0===o||null===(i=o.maxSharesAllowedForGroupInTimeoutPeriod)||void 0===i?void 0:i.toString(),d=null===o||void 0===o||null===(a=o.userCanAddGuestTimeout)||void 0===a?void 0:a.toString(),p=e.split(":")[0];return Object.values(y8).includes(p)?p===y8.xboxUserErrorSubscriptionNotActive?{title:c.subscriptionNotActiveTitle,message:c.subscriptionNotActiveSubtitle,ctaText:l.closeButton}:p===y8.xboxUserErrorCantShareNoSpace?{title:c.cantShareNoSpaceTitle,message:c.cantShareNoSpaceSubtitle,ctaText:l.closeButton,sharingLimitReached:!0}:p===y8.subscriptionReachedMaxUsers||p===y8.inviteLimitExceeded?{title:c.subReachedMaxUsersTitle,message:"",ctaText:l.closeButton,sharingLimitReached:!0}:p===y8.xboxUserErrorGuestNotInFlight?{title:c.guestNotInFlightTitle,message:c.guestNotInFlightSubtitle,ctaText:l.closeButton}:p===y8.xboxUserErrorAdminShareThrottled?{title:c.subReachedMaxUsersTitle,message:sn(c.subReachedMaxSharesSubtitle,[u,d]),ctaText:l.closeButton,sharingLimitReached:!0}:p===y8.xboxUserErrorGuestShareThrottled?{title:c.subReachedMaxUsersTitle,message:c.subscriptionGuestThrottledSubTitle,ctaText:l.closeButton}:p===y8.xboxUserErrorCountryMismatch?{title:c.sharingOptionsTitle,message:c.countryMismatchSubtitle,ctaText:l.closeButton,email:s}:p===y8.userErrorAlreadyInvited?{title:c.sharingOptionsTitle,message:c.userErrorAlreadyInvitedsubtitle,ctaText:l.closeButton,email:s}:{title:n?c.sharingOptionsTitle:c.shareWithFamilyFullErrorTitle,message:n?sn(c.shareWithFamilyFullErrorSubtitleXboxGamePassUltimate,r):c.shareWithFamilyFullErrorSubtitle,ctaText:l.closeButton}:null}var FPe,BPe,OPe=function(){var e=zye(),t=gbe(),n=Xve().content,r=EM();vn(e,"Service in SendInviteDialog");var o=n.sharing,i=n.common,a=sn(o.sharingSpotsRemaining,e.sharingDetails.availableSlots),s=mi(),l=aI(),c=Bve().area,u=Bve().userEmail,d="send-invite",p="send-invite-dialog",h=Ua((0,Gt.useState)(""),2),m=h[0],f=h[1],g=Ua((0,Gt.useState)({}),2),v=g[0],y=g[1],b=Ua((0,Gt.useState)(!0),2),C=b[0],S=b[1],x=Ua((0,Gt.useState)(!1),2),_=x[0],E=x[1],k=Ua((0,Gt.useState)(!0),2),w=k[0],I=k[1],P=Ua((0,Gt.useState)(!1),2),T=P[0],D=P[1],A=Ua((0,Gt.useState)(!1),2),R=A[0],N=A[1],M=Ua((0,Gt.useState)({}),2),F=M[0],B=M[1],O=Ua((0,Gt.useState)(!1),2),L=O[0],H=O[1],V=Ua((0,Gt.useState)(!1),2),z=V[0],U=V[1],W=Ua((0,Gt.useState)(!1),2),G=W[0],j=W[1],q=Ua((0,Gt.useState)(!1),2),K=q[0],Y=q[1];Qt((function(){e.isXboxFamily?br({area:c,scenario:"AmcXboxSendInvite",step:"XboxSendInvite.Index",data:e.bi}):br({area:c,scenario:"AmcSendInvite",step:"SendInvite.Index",data:e.bi}),s({name:d,status:"inert"})}));var X=function(){G||(z||xr(),r.closeDialog())},Q=function(){X()},Z=function(){!ee()&&e.sharingDetails.canCreateFamilyInvitations?r.switchToDialog(jt().createElement(APe,{emailAddress:m,onDismiss:X})):X()},J=function(){e.isXboxFamily?br({area:c,scenario:"AmcXboxSendInvite",step:"XboxSendInvite.Index",data:e.bi}):br({area:c,scenario:"AmcSendInvite",step:"SendInvite.Index",data:e.bi}),f(""),S(!0),y({}),B({}),U(!1),s({name:d,status:"inert"})},$=function(){var t=new Set(e.sharingDetails.familyUsers.concat(e.sharingDetails.guestUsers).filter(Zt));return Array.from(t).some((function(e){return e.inviteId===m}))},ee=function(){var t=new Set(e.sharingDetails.familyUsers.concat(e.sharingDetails.nonSharedFamilyUsers).filter(Zt));return Array.from(t).some((function(e){return e.inviteId===m}))},te=function(t){var n=new Set(e.sharingDetails.nonSharedFamilyUsers.filter(Zt));return Array.from(n).filter((function(e){return e.inviteId===t}))},ne=function(){var t=new Set(e.sharingDetails.nonSharedFamilyUsers.filter(Zt));return Array.from(t).some((function(e){return e.inviteId===m}))},re=function(){var r=Zve(fve().mark((function r(){var a,l,c,u,p,h,f,g,v,y,b;return fve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,a=te(m),l=[],c=[],!(a.length>0)){r.next=15;break}return u=a[0].puid,H(!0),r.next=9,I9(u,e.id);case 9:(p=r.sent).succeeded.indexOf(null===u||void 0===u?void 0:u.toString())>-1?l.push(a[0]):c.push(a[0]),0!==c.length?B({title:o.shareWithFamilyPartialErrorTitle,ctaText:i.closeButton,successfullySharedWith:l,failedToShareWith:c}):B({title:o.shareWithFamilySuccessTitle,ctaText:i.closeButton,successfullySharedWith:l}),t.onServiceUpdate(),s({name:d,status:"finished"}),0!==l.length?_r({error:p.errorCodes}):_r({data:e.bi});case 15:r.next=23;break;case 17:r.prev=17,r.t0=r.catch(0),v=r.t0,y=null!==(h=null===(f=v.response)||void 0===f||null===(g=f.data)||void 0===g?void 0:g.errorCode)&&void 0!==h?h:"ShareWithFamilyNoErrorCode",(b=MPe(y,n,e.isXboxFamily,e.name,null===e||void 0===e?void 0:e.sharingDetails))?(B(b),s({name:d,status:"finished",error:v}),_r({error:y,data:{isUserError:!0,errorDetails:r.t0}})):(s({name:d,status:"failed",error:v}),_r({error:y,data:{isUserError:b8.indexOf(y)>-1,errorDetails:r.t0}}));case 23:case"end":return r.stop()}}),r,null,[[0,17]])})));return function(){return r.apply(this,arguments)}}(),oe=function(){var t=sn(o.sendInviteAlreadySharingSubtitle,{productName:e.name,email:m});y({title:o.sendInviteAlreadySharingTitle,message:t}),se("invite-existing-user",t)},ie=function(){var t=e.isXboxFamily?o.sendInviteSelfSubtitleXbox:o.sendInviteSelfSubtitle;y({title:sn(e.isXboxFamily?o.sendInviteSelfTitleXbox:o.sendInviteSelfTitle,{productId:e.name}),message:t}),se("invite-error-self",t)},ae=function(e){y({title:i.tryAgainLater,message:o.sendInviteFailText}),se(e,o.sendInviteFailText)},se=function(e,t){_r({error:e,data:{isUserError:!0}}),E(!0),I(!1),l({type:"push",announcement:{message:t}}),s({name:d,status:"finished"})},le=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o={name:t,message:"cant share subscription."},i=MPe(t,n,e.isXboxFamily,e.name,null===e||void 0===e?void 0:e.sharingDetails,r);i?(B(i),s({name:d,status:"finished",error:o}),_r({error:t,data:{isUserError:!0}})):(s({name:d,status:"failed",error:o}),_r({error:t}))},ce=function(){var n=Zve(fve().mark((function n(r){var a;return fve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:a=!1,n.t0=r,n.next=n.t0===y8.invitationDoesNotExist?4:n.t0===y8.userErrorTrialShareLimit?9:n.t0===y8.userErrorAccountClosed?12:n.t0===y8.xboxUserErrorGuestNotInFlight?15:n.t0===y8.xboxUserErrorCantShareNoSpace?18:n.t0===y8.xboxUserErrorSubscriptionNotActive?21:n.t0===y8.xboxUserErrorCountryMismatch?24:n.t0===y8.xboxUserErrorAdminShareThrottled?28:n.t0===y8.xboxUserErrorGuestShareThrottled?32:n.t0===y8.userErrorAlreadyInvited?36:n.t0===y8.joinLimitExceeded?40:n.t0===y8.userAlreadyHasSubscription||n.t0===y8.alreadyHasManageability?44:n.t0===y8.xboxUserErrorSharingOtherSubscription?48:n.t0===y8.xboxUserErrorExistingInvitationNotFound?52:n.t0===y8.xboxUserErrorInvitationAlreadyAccepted?56:60;break;case 4:return n.next=6,t.onServiceUpdate();case 6:return $()?oe():ae(r),a=!0,n.abrupt("break",60);case 9:return y({title:o.trialShareLimitTitle,message:o.trialShareLimitSubtitle}),se("userErrorTrialShareLimit",o.trialShareLimitSubtitle),a=!0,n.abrupt("break",60);case 12:return y({title:o.userErrorAccountClosedTitle,message:o.userErrorAccountClosedSubtitle}),se("userErrorAccountClosed",o.userErrorAccountClosedSubtitle),a=!0,n.abrupt("break",60);case 15:return N(!0),y({title:o.guestNotInFlightTitle,message:o.guestNotInFlightSubtitle}),se(y8.xboxUserErrorGuestNotInFlight,o.guestNotInFlightSubtitle),a=!0,n.abrupt("break",60);case 18:return N(!0),y({title:o.cantShareNoSpaceTitle,message:o.cantShareNoSpaceSubtitle}),se(y8.xboxUserErrorCantShareNoSpace,o.cantShareNoSpaceSubtitle),a=!0,n.abrupt("break",60);case 21:return N(!0),y({title:o.subscriptionNotActiveTitle,message:o.subscriptionNotActiveSubtitle}),se(y8.xboxUserErrorSubscriptionNotActive,o.subscriptionNotActiveSubtitle),a=!0,n.abrupt("break",60);case 24:return H(!0),le(r,m),a=!0,n.abrupt("break",60);case 28:case 32:return Y(!0),le(r,m),a=!0,n.abrupt("break",60);case 36:return H(!0),le(r,m),a=!0,n.abrupt("break",60);case 40:return y({title:o.joinErrorTitle,message:o.joinLimitExceeded}),se(r,o.joinLimitExceeded),a=!0,n.abrupt("break",60);case 44:return y({title:o.joinErrorTitle,message:o.userAlreadyHasSubscription}),se(r,o.joinLimitExceeded),a=!0,n.abrupt("break",60);case 48:return y({title:e.isXboxFamily?o.sharingOptionsTitle:i.tryAgainLater,message:o.sharingOtherSubsSubtitle}),se(r,o.sharingOtherSubsSubtitle),a=!0,n.abrupt("break",60);case 52:return y({title:e.isXboxFamily?o.sharingOptionsTitle:i.tryAgainLater,message:o.invitationNotFoundSubtitle}),se(r,o.invitationNotFoundSubtitle),a=!0,n.abrupt("break",60);case 56:return y({title:e.isXboxFamily?o.sharingOptionsTitle:i.tryAgainLater,message:o.invitationAlreadyAcceptedSubtitle}),se(r,o.invitationAlreadyAcceptedSubtitle),a=!0,n.abrupt("break",60);case 60:a||(Object.values(y8).includes(r)?ae(r):(t.onServiceUpdate(),s({name:d,status:"failed"}),_r({error:r}))),U(!0),j(!1);case 63:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),ue=function(){var n=Zve(fve().mark((function n(){var r,i,a,c,p,h,f;return fve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(un(m)){n.next=3;break}return D(!0),n.abrupt("return");case 3:if(s({name:d,status:"updating"}),!$()){n.next=8;break}oe(),n.next=39;break;case 8:if(!e.isXboxFamily||!ne()){n.next=12;break}re(),n.next=39;break;case 12:if(!e.sharingDetails.isInviteLimitReached){n.next=16;break}y({title:o.inviteLimitReachTitle,message:o.inviteLimitReachSubtitle}),se("invite-limit-reach",o.inviteLimitReachSubtitle),n.next=39;break;case 16:if(m.toLowerCase()!==u.toLowerCase()){n.next=20;break}ie(),n.next=39;break;case 20:return r=e.sharingDetails.emailInvites.find((function(e){return e.name===m})),i=null,n.prev=22,i=e.isXboxFamily?r?x9(r.inviteId):_9(m,e.id):r?D9(r.inviteId):A9(m,e.licenseId),l({type:"push",announcement:{message:o.sendInviteInProgress}}),j(!0),n.next=28,i;case 28:t.onServiceUpdate(),y({title:o.sendInviteSuccessTitle,message:sn(o.sendInviteSuccessSubtitle,{productName:e.name,email:m})}),s({name:d,status:"finished"}),_r({data:e.bi}),n.next=39;break;case 34:return n.prev=34,n.t0=n.catch(22),h=n.t0,f=null!==(a=null===(c=h.response)||void 0===c||null===(p=c.data)||void 0===p?void 0:p.error)&&void 0!==a?a:"SendInviteNoErrorCode",n.abrupt("return",ce(f));case 39:U(!0),j(!1);case 41:case"end":return n.stop()}}),n,null,[[22,34]])})));return function(){return n.apply(this,arguments)}}(),de={title:v.title,subText:v.message,dialogFooterProps:_||e.isXboxFamily&&(L||K)?{buttonPrimary:{onClick:Q,text:i.closeButton,"aria-label":i.closeButton,"data-bi-id":"send-invite-expected-fail-close"}}:{buttonPrimary:{onClick:Z,text:o.sharingDoneButton,"aria-label":o.sharingDoneButton,"data-bi-id":"send-invite-success-done"},buttonSecondary:{onClick:J,text:o.sendInviteAnotherButton,"aria-label":o.sendInviteAnotherButton,"data-bi-id":"send-invite-success-add-another"}}},pe={title:i.tryAgainLater,subText:o.sendInviteFailText,dialogFooterProps:{buttonPrimary:{onClick:Q,text:i.closeButton,"aria-label":i.closeButton,"data-bi-id":"send-invite-error-close"}}},he={progressViewOperationData:{operationName:d,componentName:p},errorDialogProps:pe,successDialogProps:de},me=o.inviteViaEmailText;!e.isXboxFamily||e.isXboxFamily&&L?me=o.sharingOptionsTitle:e.isXboxFamily&&K&&(me=o.subReachedMaxUsersTitle);var fe={isOpen:!0,onDismiss:X,title:me,closeButton:{"data-bi-id":"send-invite-close","aria-label":i.closeButton},dialogFooterProps:{buttonPrimary:{text:o.sendInviteButton,onClick:ue,"aria-label":o.sendInviteButton,"data-bi-id":"send-invite",disabled:C},buttonSecondary:{onClick:function(){X()},text:i.cancelButton,"aria-label":i.cancelButton,"data-bi-id":"send-invite-cancel"}},operationData:he},ge=jt().createElement("form",{onSubmit:function(e){e.preventDefault(),ue()}},jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,null,e.isXboxFamily?sn(o.shareWithFamilySubtitleXboxGamePassUltimate,e.name)+o.shareWithFamilySubtitle2XboxGamePassUltimate:o.shareWithFamilySubtitle),jt().createElement(Ib,null,a),jt().createElement(jL,{"aria-label":o.sendInviteEmailAria,"data-bi-id":"email-text-input",onChange:function(e,t){f(t),S(t.length<=0),D(!1)},placeholder:o.sendInviteEmailAria,value:m}),T?jt().createElement(Ib,{colorOverride:"error"},o.sendInviteEmailError):jt().createElement(jt().Fragment,null))),ve=jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(Cb,{padding:"0px 6px"},jt().createElement(zk,{alt:o.emailSendFail.alt,imageType:"altTextImage",src:o.emailSendFail.src})));return jt().createElement(CM,fe,jt().createElement(vi,{operationData:{componentName:p,operationName:d},inertView:ge,updatingView:ge,firstLoadView:ge,updateFailedView:jt().createElement(jt().Fragment,null),failedView:ve,finishedView:R?jt().createElement(jt().Fragment,null):e.isXboxFamily&&(L||K)?jt().createElement(NPe,F):jt().createElement(bb,{horizontalAlign:"center"},jt().createElement(Cb,{padding:"0px 6px"},jt().createElement(zk,{alt:w?o.emailSendSuccess.alt:o.emailSendFail.alt,imageType:"altTextImage",src:w?o.emailSendSuccess.src:o.emailSendFail.src})))}))},LPe=function(){var e=zye(),t=gbe(),n=Xve().content,r=EM(),o=n.sharing,i=n.common,a=tee(),s=Bve().language;vn(e,"Service in ShareWithFamilyDialog");var l=e.licenseId,c=e.sharingDetails.nonSharedFamilyUsers,u=e.id,d=Ua((0,Gt.useState)(!0),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)({}),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)(e.sharingDetails.availableSlots),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)({}),2),S=C[0],x=C[1],_=Ua((0,Gt.useState)(!1),2),E=_[0],k=_[1],w=Ua((0,Gt.useState)(!1),2),I=w[0],P=w[1],T=sn(o.sharingSpotsRemaining,e.isXboxFamily?e.sharingDetails.availableSlots:y),D=aI(),A=mi(),R=Bve().area,N="share-with-family",M="share-with-family-dialog",F=e.isXboxFamily?sn(o.shareWithFamilyFullErrorSubtitleXboxGamePassUltimate,e.name):o.shareWithFamilyFullErrorSubtitle,B="get-invite-link";Qt((function(){e.isXboxFamily?br({area:R,scenario:"AmcXboxShareWithFamily",step:"XboxShareWithFamily.Index",data:e.bi}):br({area:R,scenario:"AmcShareWithFamily",step:"ShareWithFamily.Index",data:e.bi}),A({name:N,status:"inert"}),A({name:B,status:"finished"});var t={},n=y;c.forEach((function(r){var o=!1,i=!1;n>0?e.isXboxFamily&&e.sharingDetails.availableSlots<e.sharingDetails.nonSharedFamilyUsers.length||(o=!0,n--):i=!0,t[r.puid]={user:r,checked:o,disabled:i}})),h(0===y&&n===y),b(n),g(t)}));var O=function(){r.closeDialog(),a(sbe,s)},L=function(e,t){var n={userInviteLink:t,errorCode:e};r.switchToDialog(jt().createElement(DPe,n))},H=function(){I||(E||xr(),O())},V=function(){var r=Zve(fve().mark((function r(){var i,a,s,c,d,p,h,m,g,v,y;return fve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.isXboxFamily?Cr({step:"XboxShareWithFamily.Final"}):Cr({step:"ShareWithFamily.Final"}),A({name:N,status:"updating"}),P(!0),D({type:"push",announcement:{message:o.shareWithFamilyInProgress}}),i=Object.values(f).filter((function(e){return e.checked})),a=i.map((function(e){return e.user.puid})),r.prev=6,!e.isXboxFamily){r.next=13;break}return r.next=10,w9(a,u);case 10:r.t0=r.sent,r.next=16;break;case 13:return r.next=15,M9(a,l);case 15:r.t0=r.sent;case 16:for(s=r.t0,c=[],d=[],p=0;p<i.length;p++)s.succeeded.indexOf(i[p].user.puid.toString())>-1?c.push(i[p].user):d.push(i[p].user);0!==d.length?x({title:e.isXboxFamily?o.sharingOptionsTitle:o.shareWithFamilyPartialErrorTitle,ctaText:o.sharingDoneButton,successfullySharedWith:c,failedToShareWith:d,errorCode:s.errorCodes}):x({title:e.isXboxFamily?o.sharingOptionsTitle:o.shareWithFamilySuccessTitle,ctaText:o.sharingDoneButton,successfullySharedWith:c}),t.onServiceUpdate(),A({name:N,status:"finished"}),0!==c.length?_r({error:s.errorCodes}):_r({data:e.bi}),r.next=32;break;case 26:r.prev=26,r.t1=r.catch(6),g=r.t1,v=(null===(h=g.response)||void 0===h||null===(m=h.data)||void 0===m?void 0:m.error)||"ShareWithFamilyNoErrorCode",(y=MPe(v,n,e.isXboxFamily,e.name,e.sharingDetails))?(x(y),A({name:N,status:"finished",error:g}),_r({error:v,data:{isUserError:!0,errorDetails:r.t1}})):(A({name:N,status:"failed",error:g}),_r({error:v,data:{isUserError:b8.indexOf(v)>-1,errorDetails:r.t1}}));case 32:k(!0),P(!1);case 34:case"end":return r.stop()}}),r,null,[[6,26]])})));return function(){return r.apply(this,arguments)}}(),z=jt().createElement(bb,{childrenGap:10},Object.values(f).map((function(e,t){return jt().createElement(Cb,{key:t},jt().createElement($P,{"aria-label":e.user.name,checked:e.checked,"data-bi-id":"share-with-family-checkbox-".concat(e.user.puid),label:e.user.name,onChange:function(){return U(e.user.puid)},disabled:e.disabled,id:e.user.puid}))}))),U=function(e){var t=y;f[e].checked?t++:t--;var n=f[e];f[e]={user:n.user,checked:!n.checked,disabled:n.disabled};var r={};Object.values(f).forEach((function(e){0!==t||e.checked?0!==t&&e.disabled?r[e.user.puid]={user:e.user,checked:e.checked,disabled:!1}:r[e.user.puid]={user:e.user,checked:e.checked,disabled:e.disabled}:r[e.user.puid]={user:e.user,checked:e.checked,disabled:!0}})),b(t),g(r),h(!Object.values(f).some((function(e){return e.checked})))},W={title:o.shareWithFamilyFullErrorTitle,subText:F,dialogFooterProps:{buttonPrimary:{onClick:function(){A({name:N,status:"finished"}),O()},text:i.closeButton,"aria-label":i.closeButton,"data-bi-id":"share-with-family-error-close"}}},G={title:S.title,subText:S.message,dialogFooterProps:{buttonPrimary:{onClick:O,text:S.ctaText,"aria-label":S.ctaText,"data-bi-id":"share-with-family-success-btn"}}},j={progressViewOperationData:{operationName:N,componentName:M},errorDialogProps:W,successDialogProps:G},q={isOpen:!0,onDismiss:H,title:o.sharingOptionsTitle,closeButton:{"data-bi-id":"share-with-family-close","aria-label":i.closeButton},dialogFooterProps:0!==c.length?{buttonPrimary:{text:o.shareButton,onClick:V,"aria-label":o.shareButton,"data-bi-id":"share-with-family-share",disabled:p},buttonSecondary:{text:i.cancelButton,onClick:H,"aria-label":i.cancelButton,"data-bi-id":"share-with-family-cancel"}}:void 0,operationData:j},K=function(){var n=Zve(fve().mark((function n(){var r,o,i,a,s,l;return fve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(A({name:B,status:"updating"}),TPe(R,e),r="none",o="",i={},!e.sharingDetails.isInviteLimitReached){n.next=9;break}r="inviteLimitReached",n.next=31;break;case 9:if(!e.sharingDetails.admin.inviteLink){n.next=13;break}o=e.sharingDetails.admin.inviteLink,n.next=31;break;case 13:if(n.prev=13,!e.isXboxFamily){n.next=20;break}return n.next=17,P9(e.id);case 17:n.t0=n.sent,n.next=23;break;case 20:return n.next=22,B9(e.licenseId);case 22:n.t0=n.sent;case 23:(a=n.t0)?a.isInviteLimitExceeded?r="inviteLimitReached":(o=a.link,t.onServiceUpdate()):r="failureAction",n.next=31;break;case 27:n.prev=27,n.t1=n.catch(13),i=n.t1,r=(null===(s=i.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.error)||"GetInviteNoErrorCode";case 31:A("none"===r?{name:B,status:"finished"}:{name:B,status:"failed",error:i}),L(r,o);case 33:case"end":return n.stop()}}),n,null,[[13,27]])})));return function(){return n.apply(this,arguments)}}(),Y=jt().createElement(bb,{childrenGap:18},jt().createElement(bb,{childrenGap:10},jt().createElement(Ib,null,e.isXboxFamily?sn(o.shareWithFamilySubtitleXboxGamePassUltimate,e.name):o.shareWithFamilySubtitle),jt().createElement(Ib,null,T),0!==c.length?jt().createElement(Ib,null,o.shareWithFamilySubtitleLine3):jt().createElement(jt().Fragment,null)),jt().createElement(bb,null,jt().createElement(bb,{childrenGap:20},0!==c.length&&z,jt().createElement(JE,{"aria-label":o.inviteViaEmail,"data-bi-id":"share-with-family-invite-by-email",onClick:function(){r.switchToDialog(jt().createElement(OPe,null))},text:o.inviteViaEmail})),jt().createElement(bb,null,jt().createElement(JE,{"aria-label":o.inviteViaLink,"data-bi-id":"share-with-family-invite-by-link",text:o.inviteViaLink,onClick:K,operationData:{progressViewOperationData:{componentName:M,operationName:B}}})))),X=jt().createElement(NPe,S);return jt().createElement(jt().Fragment,null,jt().createElement(CM,q,jt().createElement(dv,{operationData:{componentName:M,operationName:N},inertView:Y,updatingView:Y,firstLoadView:Y,updateFailedView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:X})))},HPe=function(e){var t=e.user,n=zye(),r=gbe(),o=EM(),i=Xve().content,a=Ua((0,Gt.useState)(!1),2),s=a[0],l=a[1],c=i.sharing,u=i.common;vn(n,"Service in ShareWithFamilyMemberDialog");var d=!1,p=!1,h=n.licenseId,m=n.id,f=t.puid,g=mi(),v="share-with-family-member",y=Bve().area,b=Ua((0,Gt.useState)({title:"",ctaText:""}),2),C=b[0],S=b[1];function x(){return(x=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==n&&void 0!==n&&n.isXboxFamily?br({area:y,scenario:"AmcXboxShareWithFamilyMember",step:"XboxShareWithFamilyMember.Index",data:n.bi}):br({area:y,scenario:"AmcShareWithFamilyMember",step:"ShareWithFamilyMember.Index",data:null===n||void 0===n?void 0:n.bi}),g({name:v,status:"updating"}),e.prev=2,null!==n&&void 0!==n&&n.isXboxFamily?Cr({step:"XboxShareWithFamilyMember.Final"}):Cr({step:"ShareWithFamilyMember.Final"}),null===n||void 0===n||!n.isXboxFamily){e.next=9;break}return e.next=7,I9(f,m);case 7:e.next=11;break;case 9:return e.next=11,F9(f,h);case 11:S({title:c.shareWithFamilySuccessTitle,ctaText:c.sharingDoneButton,successfullySharedWith:[t]}),r.onServiceUpdate(),g({name:v,status:"finished"}),_r({data:null===n||void 0===n?void 0:n.bi}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(2),d&&E(e.t0);case 20:l(!0);case 21:case"end":return e.stop()}}),e,null,[[2,17]])})))).apply(this,arguments)}function _(){s&&o.closeDialog()}function E(e){var t,r;if(!p){var o=(null===(t=e.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.error)||"ShareWithFamilyMemberNoErrorCode",a=MPe(o,i,!!n&&n.isXboxFamily,null===n||void 0===n?void 0:n.name);a?(S(a),g({name:v,status:"finished",error:e}),_r({error:o,data:{isUserError:!0,errorDetails:e}})):(g({name:v,status:"update-failed",error:e}),_r({error:o,data:{isUserError:b8.indexOf(o)>-1,errorDetails:e}})),p=!0}}Qt((function(){d=!0,function(){x.apply(this,arguments)}()})),Xt((function(){d=!1}));var k={title:c.shareWithFamilyFullErrorTitle,subText:n.isXboxFamily?sn(c.shareWithFamilyFullErrorSubtitleXboxGamePassUltimate,n.name):c.shareWithFamilyFullErrorSubtitle,dialogFooterProps:{buttonPrimary:{onClick:function(){_()},text:u.closeButton,"aria-label":u.closeButton,"data-bi-id":"share-with-family-member-error-close"}}},w={title:C.title,subText:C.message,dialogFooterProps:{buttonPrimary:{onClick:function(){_()},text:C.ctaText,"aria-label":C.ctaText,"data-bi-id":"share-with-family-member-success-btn"}}},I={title:c.shareWithFamilyProgressTitle,subText:n.isXboxFamily?sn(c.shareWithFamilyProgressSubtitleXbox,{servicename:n.name,name:t.name}):sn(c.shareWithFamilyProgressSubtitle,{name:t.name})},P={operationName:v,componentName:"share-with-family-member-dialog"},T={isOpen:!0,operationData:{progressViewOperationData:P,errorDialogProps:k,successDialogProps:w,progressDialogProps:I},closeButton:s?{"data-bi-id":"share-with-family-member-close","aria-label":u.closeButton}:void 0,onDismiss:function(){_()}},D=jt().createElement(NPe,C);return jt().createElement(CM,T,jt().createElement(dv,{operationData:P,updatingView:jt().createElement(jt().Fragment,null),firstLoadView:jt().createElement(jt().Fragment,null),failedView:jt().createElement(jt().Fragment,null),finishedView:D}))},VPe=function(e,t,n,r,o,i,a,s,l,c){var u,d,p,h=e.sharingDetails,m=h.totalSlots-h.availableSlots-1,f=h.isGuest?e.brandLogo:t.shareIcon.src,g=!n&&h.availableSlots>0;if(n)u=e.name,d=sn(t.sharingGuestSubtitle,h.admin.name),p="".concat(e.modelId,"-guest-sharing-drawer");else if(r)u=e.isXboxFamily?sn(t.shareSubscriptionXbox,h.totalSlots):t.shareSubscription,d=e.isXboxFamily?t.shareSubscriptionSubtitleXbox:t.sharingColdStateSubtitle,p="".concat(e.modelId,"-coldstart-sharing-drawer");else{if(e.isXboxFamily)1===h.availableSlots?(u=sn(t.shareSubscriptionLeftXbox,h.availableSlots),d=sn(t.shareSubscriptionXboxWithPeopleSubtitle,h.sharedUsers)):0===h.availableSlots?(u=t.sharingBannerTitleFull,d=sn(t.shareSubscriptionXboxWithPeopleSubtitle,h.sharedUsers)):(u=sn(t.shareSubscriptionMoreXbox,h.availableSlots),d=1===h.sharedUsers?sn(t.shareSubscriptionSubtitleMoreXbox,h.sharedUsers):sn(t.shareSubscriptionXboxWithPeopleSubtitle,h.sharedUsers));else u=t.shareSubscription,d=sn(m>1?t.shareWithPeople:t.shareWithPerson,{shareNum:m});p="".concat(e.modelId,"-sharing-drawer")}var v={column:jt().createElement(tw,{media:{size:"md",image:{imageType:"image",src:f},height:"52px",padding:"0px"},title:{kind:"text",children:u,nowrap:!1},subtitleTextProps:{children:d}}),slots:g&&!e.isXboxFamily?9:12},y={column:jt().createElement(ck,{actionAlignment:"flex-end",actionButton:{"aria-label":t.shareSubscription,"data-bi-id":"start-sharing-drawer-header-sub-button",onClick:function(){l()},text:t.shareButton,type:a},"aria-label":t.moreOptionsAriaLabel,"data-bi-id":"".concat(e.modelId,"-share-more-action")}),slots:3},b=g&&!e.isXboxFamily?[v,y]:[v],C=o.isDrawerOpened;return o.isFirstLoad&&(C=r&&!n||e.billingState===t7.ActiveAutoRenewOff||i,c({isFirstLoad:!1,isDrawerOpened:C})),{defaultExpanded:C,buttonId:p,drawerHeader:jt().createElement(bw,{totalSlots:12,chevronPosition:"end",columns:b}),onClickToOpen:function(){s("default"),c({isFirstLoad:!1,isDrawerOpened:!0})},onClickToClose:function(){s("primary"),c({isFirstLoad:!1,isDrawerOpened:!1})}}},zPe=function(e){var t=e.data,n=zye(),r=gbe(),o=Xve().content,i=EM(),a=IQ(),s=o.common,l=o.sharing;vn(n,"Service in StopSharingDialog");var c=Ua((0,Gt.useState)(!1),2),u=c[0],d=c[1],p=Ua((0,Gt.useState)(!1),2),h=p[0],m=p[1],f=sn(l.stopSharingInProgress,{productName:n.name,userName:t.userName}),g=sn(l.stopSharingFailText,{productId:n.name,userName:t.userName}),v=Ua((0,Gt.useState)({}),2),y=v[0],b=v[1],C=aI(),S=mi(),x=Bve().area,_="stop-sharing",E="stop-sharing-dialog";Qt((function(){n.isXboxFamily?br({area:x,scenario:"AmcXboxStopSharing",step:"XboxStopSharing.Index",data:n.bi}):br({area:x,scenario:"AmcStopSharing",step:"StopSharing.Index",data:n.bi}),S({name:_,status:"inert"})}));var k=function(e,t){e&&a.showNotificationBar(jt().createElement(tEe,{message:l.stopSharingSuccessMesssage.replace("{name}",t),ariaLabel:o.common.closeButton,buttonId:"stop-sharing-notification-bar-close"})),i.closeDialog()},w=function(){var e=Zve(fve().mark((function e(){var o,i,a,c;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S({name:_,status:"updating"}),m(!0),n.isXboxFamily?Cr({step:"XboxStopSharing.Final"}):Cr({step:"StopSharing.Final"}),e.prev=3,t.userPuid){e.next=6;break}throw new Error("shared user puid not available");case 6:if(C({type:"push",announcement:{message:f}}),!n.isXboxFamily){e.next=12;break}return e.next=10,E9({recurrenceId:n.id,userPuid:t.userPuid,adminPuid:n.sharingDetails.admin.puid});case 10:e.next=14;break;case 12:return e.next=14,R9({licenseId:n.licenseId,userPuid:t.userPuid});case 14:r.onServiceUpdate(),d(!0),S({name:_,status:"finished"}),k(!0,n.isXboxFamily?t.userInviteId:t.userName),_r({data:n.bi}),e.next=28;break;case 21:e.prev=21,e.t0=e.catch(3),a=e.t0,c=(null===(o=a.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.error)||"StopSharingNoErrorCode",Object.values(y8).includes(c)?(b(c===y8.xboxUserErrorSubscriptionNotActive?{title:l.subscriptionNotActiveTitle,message:l.subscriptionNotActiveSubtitle}:c===y8.sharingActionNotAllowed?{title:l.sharingNotAllowedTitle,message:l.sharingNotAllowedSubtitle}:c===y8.userIsNotSharedWithSubscription||c===y8.memberNotInGroup?{title:sn(l.stopSharingUserNotSharedTitle,{userName:t.userName}),message:l.stopSharingUserNotSharedText}:{title:s.tryAgainLater,message:g}),S({name:_,status:"finished"}),_r({error:c,data:{isUserError:!0,errorDetails:a}})):(S({name:_,status:"failed",error:a}),_r({error:c,data:{isUserError:b8.indexOf(c)>-1,errorDetails:a}})),d(!0),m(!1);case 28:case"end":return e.stop()}}),e,null,[[3,21]])})));return function(){return e.apply(this,arguments)}}(),I={title:s.tryAgainLater,subText:n.isXboxFamily?"":g,dialogFooterProps:{buttonPrimary:{onClick:function(){k(!1,n.isXboxFamily?t.userInviteId:t.userName)},text:s.closeButton,"aria-label":s.closeButton,"data-bi-id":"stop-sharing-error-close"}}},P={title:y.title,subText:y.message,dialogFooterProps:{buttonPrimary:{onClick:function(){k(!1,n.isXboxFamily?t.userInviteId:t.userName)},text:s.closeButton,"aria-label":s.closeButton,"data-bi-id":"stop-sharing-user-error-close"}}},T={progressViewOperationData:{operationName:_,componentName:E},errorDialogProps:I,successDialogProps:P},D={isOpen:!0,onDismiss:function(){h||(u||xr(),k(!1,n.isXboxFamily?t.userInviteId:t.userName))},title:n.isXboxFamily?l.stopSharingTitle:sn(l.stopSharingWith,{name:t.userName}),closeButton:h?void 0:{"data-bi-id":"stop-sharing-close","aria-label":s.closeButton,id:"stop-sharing-close"},dialogFooterProps:{buttonPrimary:{text:l.stopSharingButton,onClick:w,"aria-label":l.stopSharingButton,"data-bi-id":"stop-sharing"}},operationData:T},A=jt().createElement(bb,{childrenGap:10},n.isXboxFamily?jt().createElement(ox,{textWithTokens:sn(l.stopSharingSubtitleXbox,{productId:n.name,email:"{inviteId}"}),tokensAndValues:{inviteId:jt().createElement(Ib,{weightOverride:"bold"},t.userInviteId)}}):jt().createElement("ul",{style:{paddingLeft:"15px"}},jt().createElement("li",null,l.stopSharingStorage),jt().createElement("li",null,l.stopSharingCreate),n.hasSkypeBenefit?jt().createElement("li",null,l.stopSharingSkype):jt().createElement(jt().Fragment,null))),R=jt().createElement(bb,{childrenGap:10},jt().createElement(Cb,null,jt().createElement(Ib,{variant:"paneHeader"},l.stopSharingTitle)),jt().createElement(Cb,null,jt().createElement(ox,{textWithTokens:sn(l.stopSharingFailTextXbox,{productId:n.name,email:"{inviteId}"}),tokensAndValues:{inviteId:jt().createElement(Ib,{weightOverride:"bold"},t.userInviteId)}})));return jt().createElement(CM,D,jt().createElement(dv,{operationData:{componentName:E,operationName:_},inertView:A,updatingView:A,firstLoadView:A,finishedView:jt().createElement(jt().Fragment,null),failedView:n.isXboxFamily?R:jt().createElement(jt().Fragment,null)}))},UPe=function(){var e=zye(),t=Xve().content,n=EM(),r=Jye(!0),o=Ua((0,Gt.useState)(!1),2),i=o[0],a=o[1],s=Ua((0,Gt.useState)(!1),2),l=s[0],c=s[1];if(!e)throw new Error("Service details not found");var u=t.common,d=t.sharing,p=sn(d.stopSharingInProgress,{productName:e.name,userName:e.sharingDetails.admin.name}),h=sn(d.stopSharingWithMeFailText,{productId:e.name,adminName:e.sharingDetails.admin.name}),m=Ua((0,Gt.useState)({}),2),f=m[0],g=m[1],v=aI(),y=mi(),b=Bve().area,C="stop-sharing-with-me",S="stop-sharing-with-me-dialog";Qt((function(){e.isXboxFamily?br({area:b,scenario:"AmcXboxStopSharingWithMe",step:"XboxStopSharingWithMe.Index",data:e.bi}):br({area:b,scenario:"AmcStopSharingWithMe",step:"StopSharingWithMe.Index",data:e.bi}),y({name:C,status:"inert"})}));var x=function(){var t=Zve(fve().mark((function t(){var n,o,i,s;return fve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y({name:C,status:"updating"}),c(!0),e.isXboxFamily?Cr({step:"XboxStopSharingWithMe.Final"}):Cr({step:"StopSharingWithMe.Final"}),v({type:"push",announcement:{message:p}}),t.prev=4,!e.isXboxFamily){t.next=10;break}return t.next=8,k9({adminPuid:e.sharingDetails.admin.puid,recurrenceId:e.id});case 8:t.next=12;break;case 10:return t.next=12,N9({adminPuid:e.sharingDetails.admin.puid,licenseId:e.licenseId});case 12:_r({data:e.bi}),y({name:C,status:"finished"}),r(),t.next=22;break;case 17:t.prev=17,t.t0=t.catch(4),i=t.t0,s=(null===(n=i.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.error)||"StopSharingWithMeNoErrorCode",Object.values(y8).includes(s)?(g(s===y8.sharingActionNotAllowed?{title:d.sharingNotAllowedTitle,message:e.isXboxFamily?sn(d.stopSharingWithMeFailTextXbox,{productId:e.name}):d.sharingNotAllowedSubtitle}:s===y8.userIsNotSharedWithSubscription||s===y8.memberNotInGroup?{title:sn(d.stopSharingWithMeAdminNotSharedTitle,{adminName:e.sharingDetails.admin.name}),message:sn(d.stopSharingWithMeAdminNotSharedText,{productId:e.name,adminName:e.sharingDetails.admin.name})}:{title:u.tryAgainLater,message:h}),y({name:C,status:"finished"}),_r({error:s,data:{isUserError:!0,errorDetails:i}})):(y({name:C,status:"failed",error:i}),_r({error:s,data:{isUserError:b8.indexOf(s)>-1,errorDetails:i}}));case 22:a(!0),c(!1);case 24:case"end":return t.stop()}}),t,null,[[4,17]])})));return function(){return t.apply(this,arguments)}}(),_=function(){l||(i||xr(),n.closeDialog())},E={title:u.tryAgainLater,subText:e.isXboxFamily?"":h,dialogFooterProps:{buttonPrimary:{onClick:_,text:u.closeButton,"aria-label":u.closeButton,"data-bi-id":"stop-sharing-with-me-error-close"}}},k={title:f.title,subText:f.message,dialogFooterProps:{buttonPrimary:{onClick:_,text:u.closeButton,"aria-label":u.closeButton,"data-bi-id":"stop-sharing-with-me-user-error-close"}}},w={progressViewOperationData:{operationName:C,componentName:S},errorDialogProps:E,successDialogProps:k},I={isOpen:!0,onDismiss:_,title:d.leaveSubscription,closeButton:l?void 0:{"data-bi-id":"stop-sharing-with-me-close","aria-label":u.closeButton,id:"stop-sharing-with-me-close"},dialogFooterProps:{buttonPrimary:{text:d.leave,onClick:x,"aria-label":d.leave,"data-bi-id":"stop-sharing-with-me"}},operationData:w},P=jt().createElement(bb,{childrenGap:10},e.isXboxFamily?jt().createElement(ox,{textWithTokens:sn(d.stopSharingWithMeSubtitleXbox,{productname:e.name,name:"{admin}"}),tokensAndValues:{admin:jt().createElement(Ib,{weightOverride:"bold"},e.sharingDetails.admin.name)}}):jt().createElement("ul",{style:{paddingLeft:"15px"}},jt().createElement("li",null,d.leaveSubscriptionStorage),jt().createElement("li",null,d.leaveSubscriptionCreate),e.hasSkypeBenefit?jt().createElement("li",null,d.leaveSubscriptionSkype):jt().createElement(jt().Fragment,null))),T=jt().createElement(bb,{childrenGap:10},jt().createElement(Cb,null,jt().createElement(Ib,{variant:"paneHeader"},d.stopSharingTitle)),jt().createElement(Cb,null,jt().createElement(Ib,{variant:"bodyPrimaryText"},sn(d.stopSharingWithMeFailTextXbox,{productId:e.name}))));return jt().createElement(CM,I,jt().createElement(dv,{operationData:{componentName:S,operationName:C},inertView:P,updatingView:P,firstLoadView:P,finishedView:jt().createElement(jt().Fragment,null),failedView:e.isXboxFamily?T:jt().createElement(jt().Fragment,null)}))},WPe=function(e){var t,n,r,o,i,a,s,l,c=e.initialDrawerOpenedState,u=e.setInitialDrawerOpenedState,d=zye(),p=Xve().content.sharing,h=Bve().area,m=EM(),f="startSharing",g=window.location.hash===GPe,v=Ua((0,Gt.useState)("primary"),2),y=v[0],b=v[1],C=(0,Gt.useRef)(null);if(!d)throw new Error("Service details not found on SharingView");var S,x,_,E,k,w,I=d.sharingDetails;S=!I.isGuest&&((null===(t=I.nonSharedFamilyUsers)||void 0===t?void 0:t.length)>0||(null===(n=I.familyUsers)||void 0===n?void 0:n.length)>0||(null===(r=I.familyShareEmailInvites)||void 0===r?void 0:r.length)>0||(null===(o=I.familyShareLinkInvites)||void 0===o?void 0:o.length)>0),x=!I.isGuest&&((null===(i=I.guestUsers)||void 0===i?void 0:i.length)>0||(null===(a=I.emailInvites)||void 0===a?void 0:a.length)>0||(null===(s=I.linkInvites)||void 0===s?void 0:s.length)>0),_=!(E=I.isGuest)&&!d.isXboxFamily,w=!E&&d.isXboxFamily,k=0===I.familyUsers.length&&0===I.guestUsers.length&&0===I.emailInvites.length&&0===I.linkInvites.length,(0,Gt.useEffect)((function(){(k||window.location.hash===GPe)&&b("default"),window.location.hash===GPe&&(window.location.hash="",C.current.focus(),C.current.scrollIntoView({block:"nearest"}))}),[]);var P=function(){m.closeDialog()},T=function(){d.isM365BrandId?m.openDialog(jt().createElement(Lbe,null)):m.openDialog(jt().createElement(LPe,null))};mn(f,"true")&&!I.isGuest&&I.availableSlots>0&&(!d.isXboxFamily||d.isXboxFamily&&(null===(l=d.sharingDetails)||void 0===l||!l.isSuspended))&&(T(),hn(f));var D,A=function(){var e=Zve(fve().mark((function e(t){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m.openDialog(jt().createElement(HPe,{user:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(e){var t={userPuid:e.puid,userName:e.name,userInviteId:e.inviteId};m.openDialog(jt().createElement(zPe,{data:t}))},N=function(){m.openDialog(jt().createElement(UPe,null))},M=function(e,t){var n={inviteId:e.inviteId,profileName:e.name,isFamilyShare:t};m.openDialog(jt().createElement(_Pe,n))},F=function(e,t){var n={inviteId:e.inviteId,emailAddress:e.name,isFamilyShare:t};m.openDialog(jt().createElement(nEe,n))},B=function(e,t){m.openDialog(jt().createElement(wPe,{inviteId:e.inviteId,isFamilyShare:t}))},O=function(e,t){t?m.openDialog(jt().createElement(Obe,null)):(TPe(h,d),m.openDialog(jt().createElement(kPe,{userInviteLink:e.inviteLink})))},L=function(){P(),xr()},H=function(e){P(),_r({error:e||"Invite to family failed"})},V=function(){var e=Zve(fve().mark((function e(){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G9({forceReload:!0});case 2:P(),_r();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(e){br({area:h,scenario:d.isXboxFamily?"AmcXboxInviteToFamily":"AmcPromoteAddToFamily",step:d.isXboxFamily?"XboxInviteToFamily.Index":"InviteToFamily.Index",data:d.bi});var t={emailOrPhone:e.inviteId,cancelledCallback:L,failedCallback:H,succeededCallback:V};m.openDialog(jt().createElement(xPe,t))};_?D=function(e,t,n){var r=e.sharingDetails,o=r.totalSlots-r.availableSlots-1,i=r.availableSlots>0,a=i?0===o?t.notShareTitle:t.alreadyShareTitle:t.fullShareTitle,s=jt().createElement(nx,{href:t.learnMoreLink.url,target:"_blank","aria-label":t.learnMoreLink.text,"data-bi-id":t.learnMoreLink.id},t.learnMoreLink.text),l=i?0===o?{textWithTokens:t.notShareDetails,tokensAndValues:{learnMoreLink:s}}:{textWithTokens:t.alreadyShareDetails,tokensAndValues:{learnMoreLink:s}}:t.fullShareDetails,c=[{actionProps:{"aria-label":t.startSharingButton,"data-bi-id":"start-sharing-button",kind:"button",onClick:function(){n()},text:t.share,type:"primary"}}];return jt().createElement(NO,{backgroundType:"card",borderRadius:"0px",showShadow:!1,layoutType:"2/3",height:"medium",isImageFullBleed:!1,bodyText:l,ctaProps:i?c:void 0,featureHeading:{tag:"h2",variant:"statusHeader",text:a},imageProps:{alt:t.sharingBanner.alt,src:t.sharingBanner.src}})}(d,p,T):w&&(D=function(e,t,n){var r,o=e.sharingDetails,i=o.availableSlots>0,a=i?t.sharingBannerSubtitleXboxGamePassUltimate:sn(t.sharingBannerSubtitleFullXbox,o.totalSlots);a=sn(a,{totalSlotsWithAdmin:o.totalSlots+1,totalSlots:o.totalSlots}),o.isSuspended?(a=t.sharingBannerSubtitleXboxGamePassUltimateSuspended,r=""):r=i?1===o.availableSlots?sn(t.sharingBannerTitleSharesLeftXbox,{n:o.availableSlots}):o.availableSlots!==o.totalSlots?sn(t.sharingBannerTitleSharesMoreXbox,{n:o.availableSlots}):sn(t.sharingBannerTitleXboxGamePassUltimate,{totalSlots:o.totalSlots}):t.sharingBannerTitleFull;var s=[{actionProps:{"aria-label":t.startSharingButton,"data-bi-id":"start-sharing-button-xbox",kind:"button",onClick:function(){n()},text:t.startSharingButton,type:"primary"}},{actionProps:{kind:"hyperlink",href:t.helpSharingXbox.url,children:t.helpSharingXbox.text,"aria-label":t.helpSharingXbox.text,"data-bi-id":t.helpSharingXbox.id,target:"_blank"}}];return jt().createElement(NO,{backgroundType:"card",borderRadius:"0px",showShadow:!1,layoutType:"2/3",height:"medium",isImageFullBleed:!1,bodyText:a,ctaProps:i&&!o.isSuspended?s:void 0,featureHeading:o.isSuspended?void 0:{tag:"h2",variant:"statusHeader",text:r},imageProps:{alt:t.sharingBannerXbox.alt,src:"",imageFit:"cover"}})}(d,p,T));var U=jt().createElement("div",{ref:C},jt().createElement(bb,null,jt().createElement(iL,{drawerAreaProps:VPe(d,p,E,k,c,g,y,b,T,u),detailsArea:function(){var e=[];if(S&&!w&&(e=e.concat(function(e,t,n,r,o,i,a,s){var l=e.sharingDetails,c=e.sharingDetails.isFamilySharingBridgeBlocked,u=l.availableSlots>0,d=l.totalSlots-1,p=d-l.availableSlots,h=Bve().language,m=t.officeBridgeText,f=t.officeBridgeHelp,g={0:jt().createElement(Ib,null,e.name),1:jt().createElement(nx,{href:f.url,target:"_blank","aria-label":f.ariaLabel,"data-bi-id":f.id},f.text)},v=function(e){return{"aria-label":t.resendInviteButton,"data-bi-id":"family-share-resend-invite",iconName:"Send",onClick:function(){return i(e,!0)},text:t.resend}},y=function(n){return{"aria-label":sn(t.cancelInviteAria,{productName:e.name}),"data-bi-id":"family-share-cancel-invite",iconName:"Delete",onClick:function(){return o(n,!0)},text:t.delete}},b=function(n){return{"aria-label":sn(t.copyLinkAria,{productName:e.name}),"data-bi-id":"family-share-copy-link",iconName:"Copy",onClick:function(){return s(n,!0)},text:t.copy}},C=function(e){return{"aria-label":t.deleteLinkButton,"data-bi-id":"family-share-delete-invite",iconName:"Delete",onClick:function(){return a(e,!0)},text:t.delete}},S=function(o,i){return{actionButtonProps:[i?{"aria-label":sn(t.stopSharingButtonAria,{productName:e.name}),"data-bi-id":"family-stop-sharing",iconName:"Blocked",text:t.stopSharingButton,onClick:function(){n(o)}}:{"aria-label":sn(t.startSharingButtonAria,{productName:e.name}),"data-bi-id":"family-share",iconName:"Share",text:t.startSharingButton,onClick:function(){r(o)}}],contentType:"none",columnAlign:"end"}},x=l.nonSharedFamilyUsers.map((function(e,t){return jt().createElement(PPe,{key:t,user:e,index:t,isShared:!1,actionButtonFinalColumnProps:S(e,!1)})}));x=x.concat(l.familyUsers.map((function(e,t){return jt().createElement(PPe,{key:t,user:e,index:t,isShared:!0,actionButtonFinalColumnProps:S(e,!0)})}))),x=l.familyShareEmailInvites?x.concat(l.familyShareEmailInvites.map((function(e,n){var r="family-share-email-invite-list-".concat(n),o=t.pendingEmailInvite,i=e.name,a={actionButtonProps:u?[v(e),y(e)]:[y(e)],contentType:"none",columnAlign:"end"};return jt().createElement(IPe,{key:r,index:r,user:e,personaTitle:o,secondaryText:i,actionButtonFinalColumnProps:a,sharingCms:t,isSharingFull:!u})}))):x,x=l.familyShareLinkInvites?x.concat(l.familyShareLinkInvites.map((function(e,n){var r="family-share-link-invite-list-".concat(n),o=t.pendingLink,i=e.inviteDateTime?t.linkCreatedOnText.replace("{{date}}",yx(new Date("".concat(e.inviteDateTime," UTC")),h)):e.name,a={actionButtonProps:u?[b(e),C(e)]:[C(e)],contentType:"none",columnAlign:"end"};return jt().createElement(IPe,{key:r,index:r,user:e,personaTitle:o,secondaryText:i,actionButtonFinalColumnProps:a,sharingCms:t,isSharingFull:!u})}))):x,c&&(x=x.concat(jt().createElement(SR,{columns:[jt().createElement(nR,{textElements:[{children:jt().createElement(ox,{textWithTokens:m,tokensAndValues:g}),variant:"bodyPrimaryText"}]})],variant:"Twelve"})));var _,E=sn(t.sharingDetails,{numShared:p,totalSlots:d}),k=jt().createElement(vb,{totalSlots:10,padding:"0px 16px 0px 0px"},jt().createElement(gb,{slots:5,textAlignment:"left"},jt().createElement(Ib,{variant:"headerText"},E)),jt().createElement(gb,{slots:5,textAlignment:"right"},jt().createElement(nx,Object.assign({truncatedLinkProps:{}},{href:(_=t.manageFamily).url,children:_.text,"aria-label":_.ariaLabel,"data-bi-id":_.id,target:_.target}))));return jt().createElement($R,{isAlwaysExpanded:!0,header:k,listItemBackgroundColor:"neutralMed"},x)}(d,p,R,A,M,F,B,O))),x&&!w&&(e=e.concat(function(e,t,n,r,o,i,a,s){var l=e.sharingDetails,c=l.availableSlots>0,u=Bve().language,d=function(e){return{"aria-label":t.inviteToFamilyLinkAria,"data-bi-id":"invite-to-family",iconName:"Family",onClick:function(){return s(e)},text:t.inviteToFamilyLinkText}},p=function(n){return{"aria-label":sn(t.stopSharingButtonAria,{productName:e.name}),"data-bi-id":"guest-stop-sharing",iconName:"Blocked",onClick:function(){return i(n)},text:t.stopSharingButton}},h=function(e){return{"aria-label":t.resendInviteButton,"data-bi-id":"guest-resend-invite",iconName:"Send",onClick:function(){return r(e,!1)},text:t.resendInviteButton}},m=function(r){return{"aria-label":sn(t.cancelInviteAria,{productName:e.name}),"data-bi-id":"guest-cancel-invite",iconName:"Delete",onClick:function(){return n(r,!1)},text:t.cancelInviteButton}},f=function(n){return{"aria-label":sn(t.copyLinkAria,{productName:e.name}),"data-bi-id":"guest-copy-link",iconName:"Copy",onClick:function(){return a(n,!1)},text:t.copyLinkButton}},g=function(e){return{"aria-label":t.deleteLinkButton,"data-bi-id":"guest-delete-invite",iconName:"Delete",onClick:function(){return o(e,!1)},text:t.deleteLinkButton}},v=l.guestUsers.map((function(e,n){var r="guest-list-".concat(n),o=e.name,i=e.inviteId,a={actionButtonProps:[d(e),p(e)],contentType:"none",columnAlign:"end"};return jt().createElement(IPe,{key:r,index:r,user:e,personaTitle:o,secondaryText:i,actionButtonFinalColumnProps:a,sharingCms:t})}));return v=v.concat(l.emailInvites.map((function(e,n){var r="email-invite-list-".concat(n),o=t.pendingEmailInvite,i=e.name,a={actionButtonProps:c?[h(e),m(e)]:[m(e)],contentType:"none",columnAlign:"end"};return jt().createElement(IPe,{key:r,index:r,user:e,personaTitle:o,secondaryText:i,actionButtonFinalColumnProps:a,sharingCms:t,isSharingFull:!c})}))),v=v.concat(l.linkInvites.map((function(e,n){var r="link-invite-list-".concat(n),o=t.pendingLink,i=e.inviteDateTime?t.linkCreatedOnText.replace("{{date}}",yx(new Date("".concat(e.inviteDateTime," UTC")),u)):e.name,a={actionButtonProps:[f(e),g(e)],contentType:"none",columnAlign:"end"};return jt().createElement(IPe,{key:r,index:r,user:e,personaTitle:o,secondaryText:i,actionButtonFinalColumnProps:a,sharingCms:t})}))),jt().createElement($R,{isAlwaysExpanded:!0,header:jt().createElement(Ib,{variant:"headerText"},t.guestsSectionTitle),listItemBackgroundColor:"neutralMed"},v)}(d,p,M,F,B,R,O,z))),w&&!I.isSuspended&&(e=e.concat(function(e,t,n,r,o,i,a,s){var l,c=ny(),u=e.sharingDetails,d=u.availableSlots>0;if(0===u.familyUsers.length&&0===u.guestUsers.length&&0===u.emailInvites.length&&0===u.linkInvites.length)l=jt().createElement(Ib,{variant:"bodySecondaryText"},t.notSharingWithAnyone);else{var p=sn(t.sharedUsersHeader,{SharedUsers:u.totalSlots-u.availableSlots}),h=sn(t.sharedUsersHeader2,{SharesLeft:u.availableSlots});l=jt().createElement(bb,{horizontal:!0},jt().createElement(Ib,{variant:"headerText"},p),"\xa0",jt().createElement(Ib,{variant:"bodySecondaryText"},h))}var m=function(n){return{"aria-label":sn(t.stopSharingButtonAria,{productName:e.name}),"data-bi-id":"stop-sharing",iconName:"Blocked",onClick:function(){return i(n)},tooltipHostProps:{tooltipText:t.stopSharingButton},text:""}},f=function(e){return{"aria-label":t.inviteToFamilyLinkAria,"data-bi-id":"invite-to-family",iconName:"Family",onClick:function(){return s(e)},tooltipHostProps:{tooltipText:t.inviteToFamilyLinkText},text:""}},g=function(e){return{"aria-label":t.resendInviteButton,"data-bi-id":"resend-invite",iconName:"Send",onClick:function(){return r(e)},tooltipHostProps:{tooltipText:t.resendInviteButton},text:""}},v=function(r){return{"aria-label":sn(t.cancelInviteAria,{productName:e.name}),"data-bi-id":"cancel-invite",iconName:"Delete",onClick:function(){return n(r)},tooltipHostProps:{tooltipText:t.cancelInviteButton},text:""}},y=function(n){return{"aria-label":sn(t.copyLinkAria,{productName:e.name}),"data-bi-id":"copy-link",iconName:"Copy",onClick:function(){return a(n)},tooltipHostProps:{tooltipText:t.copyLinkButton},text:""}},b=function(e){return{"aria-label":t.deleteLinkButton,"data-bi-id":"delete-invite",iconName:"Delete",onClick:function(){return o(e)},tooltipHostProps:{tooltipText:t.deleteLinkButton},text:""}},C=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";switch(c){case"s":case"m":return jt().createElement(xR,{key:e,leftColumn:jt().createElement(aR,{personaProps:{size:"32",imageUrl:i},title:t,subtitles:[{children:n,variant:"bodySecondaryText"},{children:r,variant:"bodySecondaryText"}]}),rightColumn:jt().createElement(Tw,o)});default:return jt().createElement(SR,{key:e,variant:"ThreeThreeThreeThree",columns:[jt().createElement(aR,{personaProps:{size:"32",imageUrl:i},title:t}),jt().createElement(nR,{textElements:[{children:n,variant:"bodySecondaryText"}]}),jt().createElement(nR,{textElements:[{children:r,variant:"bodySecondaryText"}]}),jt().createElement(Tw,o)]})}},S=u.familyUsers.map((function(e,n){var r="start-sharing-list-".concat(n),o=e.name,i=e.inviteId,a=t.familySectionTitle,s={actionButtonProps:[m(e)],contentType:"text",textElements:[{children:t.activelySharing,variant:"bodySuccessText"}],columnAlign:"end"};return C(r,o,i,a,s)}));return S=S.concat(u.guestUsers.map((function(e,n){var r="guest-list-xbox-".concat(n),o=e.name,i=e.inviteId,a=t.othersGuest,s={actionButtonProps:[f(e),m(e)],contentType:"text",textElements:[{children:t.activelySharing,variant:"bodySuccessText"}],columnAlign:"end"};return C(r,o,i,a,s)}))),S=S.concat(u.emailInvites.map((function(e,n){var r="email-invite-list-xbox-".concat(n),o=t.sendInviteEmailText,i=t.mailIcon.src,a=e.name,s=t.othersGuest,l={actionButtonProps:d?[g(e),v(e)]:[v(e)],contentType:"text",textElements:[{children:d?t.guestPendingAcceptance:t.noSpotAvailable,variant:"bodyPrimaryText"}],columnAlign:"end"};return C(r,o,a,s,l,i)}))),S=S.concat(u.linkInvites.map((function(e,n){var r="link-invite-list-xbox-".concat(n),o=t.linkInviteText,i=t.linkIcon.src,a=e.inviteLink?t.xboxLinkCreatedOnText.replace("{{date}}",e.inviteDateTime.split(" ")[0]):e.name,s=t.othersGuest,l={actionButtonProps:[y(e),b(e)],contentType:"text",textElements:[{children:t.guestPendingAcceptance,variant:"bodyPrimaryText"}],columnAlign:"end"};return C(r,o,a,s,l,i)}))),jt().createElement($R,{isAlwaysExpanded:!0,header:l,listItemBackgroundColor:"neutralMed"},S)}(d,p,M,F,B,R,O,z))),E&&(e=e.concat(function(e,t,n){var r=Bve();vn(e,"Service details not found");var o=jt().createElement(SR,{variant:"EightFour",columns:[jt().createElement(iR,{listItemMediaProps:{image:{iconName:"SignOut",imageType:"icon"},size:"sm"},title:t.leaveSubscription}),jt().createElement(WA,{iconName:"ChevronRight",contentType:"none"})],onClickProps:{"aria-label":t.leaveSubscription,"data-bi-id":"stop-sharing-with-me",onClick:function(){return n()},pageArea:r.area}});return jt().createElement($R,{isAlwaysExpanded:!0,listItemBackgroundColor:"neutralMed"},o)}(d,p,N))),!E&&!w){var t=k?{shadow:!1,label:p.sharingColdStateFooter,links:[]}:void 0;e=e.concat(jt().createElement($R,{isAlwaysExpanded:!0,showDivider:!0,showDefaultHeaderDivider:!0,footer:t}))}return e}(),highlightArea:D})));return jt().createElement(dv,{operationData:{componentName:"sharing-view",operationName:KTe},firstLoadView:jt().createElement(jt().Fragment,null),finishedView:U})},GPe="#sharing",jPe=function(e){var t=e.manageViewProps,n=e.sharingViewProps,r=e.installViewProps,o=e.onServiceUpdate,i=Xve().content,a=Ua((0,Gt.useState)(!1),2),s=a[0],l=a[1],c=Ua((0,Gt.useState)(!1),2),u=c[0],d=c[1],p=zye();vn(p,"SubDetailView");var h=Bve(),m=EM(),f=!1,g=!1,v=!1,y=!1,b=!1,C={pidlEnvironment:h.pidlEnvironment,area:h.area,language:h.language,userEmail:h.userEmail},S={pidlEnvironment:h.pidlEnvironment,area:h.area,browserLanguage:h.language},x=Ua(bre(h.area),2)[1],_=function(e){if(mn(Vne,Z6)){var t=i.commonCommerce,n=t.turnOnRB,r=t.common,a=t.changePayment,s=t.renewPath;Gne({service:e,dialogController:m,renewAreaConfig:{pidlEnvironment:h.pidlEnvironment,area:h.area,language:h.language},turnOnRBCmsContent:n,commonResource:r,changePaymentCmsContent:a,renewPathContent:s,succeededCallback:o?function(){return o(p)}:void 0})}},E=function(e){if(mn(jSe,Z6)){var t,n=function(){var e=gn(Y6,!0),t=gn(K6,!0),n=gn(X6,!0),r=gn(YSe,!0),o=gn(XSe,!0),i=gn(QSe,!0),a=gn(ZSe,!0),s=gn(JSe,!0),l=gn($Se,!0);return{productId:e,skuId:t,availabilityId:n,nextChargeDate:r,cycleLength:Number(o),cycleUnit:i,taxType:a,skuTaxType:a,price:s,title:l}}(),r=null!==(t=gn(KSe))&&void 0!==t?t:"0";exe({service:e,selectedSwitchPath:n,dialogController:m,cancelScenarioStartTimeStamp:Number(r),pageName:cye})}};Qt(Zve(fve().mark((function e(){var t;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ate(p,i.commonCommerce,C,m,o),$te(p,S,i.commonCommerce,m,o),_(p),E(p),mn(t="isResubscribe","true")&&$be(p)&&(x(p,void 0,iCe),hn(t));case 6:case"end":return e.stop()}}),e)})))),p&&(f=p.isBillingDetailsAvailable,g=null!==p.installDetails&&!p.isPerpetual,v=null!==p.sharingDetails,y=p.isM365FullSku,b=p.isM365BasicSku);var k={service:p,pidlEnvironment:h.pidlEnvironment,onAddressUpdate:function(e){var t=null!==e&&void 0!==e?e:p&&km(km({},p),{},{isValidateAddressNeeded:!1});Uye(t),d(!0)},loadingMessage:i.commonCommerce.payNow.loadingMessage},w=function(e){if(e.service&&e.service.isValidateAddressNeeded){var t=e.service,n=e.pidlEnvironment,r=e.onAddressUpdate,o=e.loadingMessage,i=function(e){null!==e&&void 0!==e&&e.error?s(e.error):(r(e.updatedService),_r())},a=function(){var e=Zve(fve().mark((function e(n){return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:E7({parameters:n,service:t,onAddressVerificationFlowCompletion:i});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){Cr({step:"AddressVerificationFailed",data:{errorDetails:e}}),_r({error:e.errorCode,data:{errorDetails:e}}),r()};return{addressVerificationProps:{addressId:t.soldToAddressId,market:t.market,language:t.locale,env:n,onSuccessCallback:a,onFailureCallback:s,returnUrl:window.location.href,mobileDivStyle:f5,nonMobileDivStyle:g5,scenario:"AmcManageAddressVerification",spinnerAriaLabel:o},dialogComponentName:"detail-address-verification",dialogOperationName:"address-verification-ready"}}}(km({},k));return w&&!s&&(l(!0),br({area:"services",scenario:"AmcBillingValidateAddress",step:"AmcBillingValidateAddress.Index",data:null===p||void 0===p?void 0:p.bi})),jt().createElement(dv,{operationData:{componentName:"sub-detail-view",operationName:KTe},firstLoadView:jt().createElement(jt().Fragment,null),finishedView:jt().createElement(bb,{childrenGap:"16"},f?jt().createElement(q_e,t):jt().createElement(jt().Fragment,null),v?jt().createElement(WPe,n):jt().createElement(jt().Fragment,null),g?jt().createElement(cxe,r):jt().createElement(jt().Fragment,null),y?jt().createElement(eEe,null):jt().createElement(jt().Fragment,null),b?jt().createElement(oxe,null):jt().createElement(jt().Fragment,null),w&&!u?jt().createElement(Z5,w):jt().createElement(jt().Fragment,null))})},qPe=function(e){var t=e.initialManageDrawerOpenedState,n=e.setInitialManageDrawerOpenedState,r=e.initialSharingDrawerOpenedState,o=e.setInitialSharingDrawerOpenedState,i=e.initialInstallDrawerOpenedState,a=e.setInitialInstallDrawerOpenedState,s=e.onServiceUpdate,l=Bve(),c=gbe().alert;return jn("pageid","".concat(l.area,".").concat(cye)),jt().createElement(bb,null,jt().createElement(bb,{childrenGap:16},c?jt().createElement(ESe,null):jt().createElement(jt().Fragment,null),jt().createElement(jPe,{manageViewProps:{initialDrawerOpenedState:t,setInitialDrawerOpenedState:n,onServiceUpdate:s},sharingViewProps:{initialDrawerOpenedState:r,setInitialDrawerOpenedState:o},installViewProps:{initialDrawerOpenedState:i,setInitialDrawerOpenedState:a},onServiceUpdate:s})))},KPe=function(e){FPe.setValue(e)},YPe=function(e){for(var t=[],n=1;n<=e;n++)t.push(jt().createElement(nw,{width:"100%",height:12,key:n}));return jt().createElement(jt().Fragment,null,t)},XPe=12,QPe=function(){switch(ny()){case"xxxl":return jt().createElement(bb,{childrenGap:41},jt().createElement(nw,{width:"40%",height:XPe}),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"80%",height:XPe})),jt().createElement(nw,{width:"30%",height:XPe}),jt().createElement(nw,{width:"30%",height:XPe})));case"xxl":return jt().createElement(bb,{childrenGap:41},jt().createElement(nw,{width:"50%",height:XPe}),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(2),jt().createElement(nw,{width:"20%",height:XPe})),jt().createElement(nw,{width:"40%",height:XPe}),jt().createElement(nw,{width:"40%",height:XPe})));case"xl":return jt().createElement(bb,{childrenGap:41},jt().createElement(nw,{width:"70%",height:XPe}),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(3),jt().createElement(nw,{width:"20%",height:XPe})),jt().createElement(nw,{width:"60%",height:XPe}),jt().createElement(nw,{width:"60%",height:XPe})));case"l":return jt().createElement(bb,{childrenGap:41},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"30%",height:XPe})),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(4),jt().createElement(nw,{width:"60%",height:XPe})),jt().createElement(nw,{width:"80%",height:XPe}),jt().createElement(nw,{width:"80%",height:XPe})));case"m":return jt().createElement(bb,{childrenGap:41},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"40%",height:XPe})),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(6),jt().createElement(nw,{width:"40%",height:XPe})),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"10%",height:XPe})),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"10%",height:XPe}))));case"s":return jt().createElement(bb,{childrenGap:41},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"80%",height:XPe})),jt().createElement(bb,{childrenGap:11},jt().createElement(bb,{childrenGap:6},YPe(8),jt().createElement(nw,{width:"45%",height:XPe})),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"50%",height:XPe})),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"50%",height:XPe}))))}},ZPe=function(){return jt().createElement(nw,{height:32})},JPe=12,$Pe=function(){switch(ny()){case"xxxl":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},jt().createElement(nw,{width:"45%",height:JPe}),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"40%",height:JPe})));case"xxl":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},jt().createElement(nw,{width:"50%",height:JPe}),jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"60%",height:JPe})));case"xl":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},jt().createElement(nw,{width:"70%",height:JPe}),jt().createElement(bb,{childrenGap:6},YPe(2),jt().createElement(nw,{width:"40%",height:JPe})));case"l":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},YPe(1),jt().createElement(bb,{childrenGap:6},YPe(3),jt().createElement(nw,{width:"35%",height:JPe})));case"m":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"35%",height:JPe})),jt().createElement(bb,{childrenGap:6},YPe(4),jt().createElement(nw,{width:"70%",height:JPe})));case"s":return jt().createElement(bb,{childrenGap:20,padding:"8px 0px 0px 0px"},jt().createElement(bb,{childrenGap:6},YPe(1),jt().createElement(nw,{width:"80%",height:JPe})),jt().createElement(bb,{childrenGap:6},YPe(5),jt().createElement(nw,{width:"50%",height:JPe})))}},eTe=246,tTe="164px",nTe=186,rTe="124px",oTe=function(){var e=ny(),t="s"===e||"m"===e?[[1,2],[3,4]]:"l"===e?[[1,2,3],[4,5,6]]:"xl"===e?[[1,2,3,4,5]]:[[1,2,3,4,5,6]];return jt().createElement(bb,{verticalAlign:"center",horizontalAlign:"center"},t.map((function(t,n){return jt().createElement(UT,null,jt().createElement(bb,{horizontal:!0,key:n},t.map((function(t){return jt().createElement(Cb,{key:t},jt().createElement(bb,{grow:1,horizontal:!0,padding:5},jt().createElement(bb,{borderRadius:"8px",overflow:"hidden"},jt().createElement(nw,{width:"s"!==e?tTe:rTe,height:"s"!==e?eTe:nTe}))))}))))})))},iTe=function(){var e=ny(),t=!("s"===e||"m"===e),n=!("s"===e||"m"===e||"l"===e);return jt().createElement(bb,{boxShadow:!0,borderRadius:"8px",padding:20,height:"auto",backgroundColor:"neutralHigh"},jt().createElement(bb,{horizontal:!0,horizontalAlign:"center",childrenGap:20,padding:"0px 0px 10px 0px"},jt().createElement(nw,{height:40,width:128}),jt().createElement(nw,{height:40,width:128}),t?jt().createElement(nw,{height:40,width:128}):jt().createElement(jt().Fragment,null),n?jt().createElement(nw,{height:40,width:128}):jt().createElement(jt().Fragment,null),n?jt().createElement(nw,{height:40,width:128}):jt().createElement(jt().Fragment,null)),jt().createElement(oTe,null))},aTe=function(){var e=jt().createElement(bb,{childrenGap:12,padding:"32px 16px"},jt().createElement(nw,{height:48,width:48}),jt().createElement(nw,{height:12,width:153}),jt().createElement(nw,{height:8,width:153}),jt().createElement(nw,{height:8,width:100}));return jt().createElement(bb,{childrenGap:"12"},jt().createElement(_Q,{features:[{featureNode:jt().createElement(VO,{backgroundColor:"neutralHigh",firstSegment:e,secondSegment:e,thirdSegment:e,fourthSegment:e,variant:"ThreeThreeThreeThree"})}]}))},sTe=function(){var e=ny(),t=["s","m"].includes(e);return jt().createElement(bb,{boxShadow:!0,borderRadius:"8px",backgroundColor:"neutralHigh",padding:"16px 16px"},t?jt().createElement(bb,{childrenGap:25,horizontal:!1,horizontalAlign:"start",width:"100%"},jt().createElement(bb,{childrenGap:12,horizontal:!1,width:"100%"},jt().createElement(nw,{height:12,width:"80%"}),jt().createElement(nw,{height:12,width:"60%"})),jt().createElement(bb,{horizontal:!1,width:"100%"},jt().createElement(nw,{height:12,width:"40%"}))):jt().createElement(nw,{height:12,width:400}))},lTe=function(){var e=ny(),t="xl"===e||"xxl"===e||"xxxl"===e,n="s"===e,r=n?"24":"32";return jt().createElement(bb,{horizontal:t,verticalAlign:"center",horizontalAlign:"space-between",padding:"0px 20px 20px 0px",overflow:"hidden"},jt().createElement(bb,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",childrenGap:10,padding:t?"0px":"15px 0px"},jt().createElement(BQ,{size:r}),jt().createElement(nw,{height:24,width:200})),jt().createElement(bb,{horizontal:!0,width:t?"40%":"100%",horizontalAlign:"space-between"},n?jt().createElement(BQ,{size:r,primaryText:!0}):jt().createElement(BQ,{size:r,primaryText:!0,secondaryText:!0}),jt().createElement(nw,{height:24,width:"100%"}),jt().createElement(bb,{horizontal:!0},jt().createElement(BQ,{size:r}),jt().createElement(BQ,{size:r}),n?jt().createElement(BQ,{size:r,primaryText:!0}):jt().createElement(BQ,{size:r,primaryText:!0,secondaryText:!0}))))},cTe=function(){var e,t=ny(),n=["s"].includes(t),r=zye(),o=Bve().language,i=Lxe(!1,null!==(e=null===r||void 0===r?void 0:r.brandId)&&void 0!==e?e:"");return jt().createElement(bb,{childrenGap:43},jt().createElement(bb,{childrenGap:49},jt().createElement(hI,null,jt().createElement(OP,null))),jt().createElement(ZPe,null),!i||(null===r||void 0===r?void 0:r.brandId)!==H7.XboxGamePassUltimate&&(null===r||void 0===r?void 0:r.brandId)!==H7.PCGamePass?(null===r||void 0===r?void 0:r.brandId)===H7.XboxGamePassUltimate||(null===r||void 0===r?void 0:r.brandId)===H7.PCGamePass?jt().createElement(iTe,null):null:jt().createElement(bb,null,jt().createElement(lTe,null),jt().createElement(iTe,null)),zs(abe,!1)?jt().createElement(jt().Fragment,null):jt().createElement(QPe,null),jt().createElement(bb,{childrenGap:43},jt().createElement(RO,{backgroundType:"card",height:"small",layoutType:"2/3"}),jt().createElement(bb,{childrenGap:12,horizontal:!n,horizontalAlign:"center",padding:"12px 0px 0px 0px"},jt().createElement(nw,{height:32,width:164}),jt().createElement(nw,{height:32,width:164})),jt().createElement(bb,{childrenGap:43},jt().createElement(nw,{height:12,width:"50%"}),jt().createElement(wB,null,jt().createElement(HO,{badge:!0,numberOfChildren:5}),jt().createElement(HO,{numberOfChildren:5}),jt().createElement(HO,{numberOfChildren:5}))),jt().createElement(nw,{height:12,width:"50%"}),zs(ibe,!1)?jt().createElement(jt().Fragment,null):jt().createElement(WP,null,jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null))),zs(abe,!1)||zs(ibe,!1)?jt().createElement(aTe,null):jt().createElement(jt().Fragment,null),Txe(r,o,!1)?jt().createElement(sTe,null):jt().createElement(jt().Fragment,null),jt().createElement(bb,{childrenGap:12,horizontal:!n,padding:"12px 0px 0px 0px"},jt().createElement(nw,{height:32,width:164}),jt().createElement(nw,{height:32,width:164})),jt().createElement($Pe,null))},uTe=function(){var e="cancel-view",t="GetCancelViewData",n=zye();vn(n,"Service details not found in Cancel view");var r,o=mi(),i=$ye(n.modelId,void 0,!0),a=Jye(!0),s=Xve().content.cancel.strings.cancelDunningGamesList;r=void 0,Qt((function(){VCe=J5(r)}));var l=Ua((0,Gt.useState)(Date.now()),2),c=l[0],u=l[1],d=Ua((0,Gt.useState)({}),2),p=d[0],h=d[1],m=Ua((0,Gt.useState)(""),2),f=m[0],g=m[1],v=Ua((0,Gt.useState)(!1),2),y=v[0],b=v[1],C=Ua((0,Gt.useState)({}),2),S=C[0],x=C[1],_=Ua((0,Gt.useState)({}),2),E=_[0],k=_[1],w=Ua((0,Gt.useState)({}),2),I=w[0],P=w[1],T=Ua((0,Gt.useState)({}),2),D=T[0],A=T[1],R=Ua((0,Gt.useState)({}),2),N=R[0],M=R[1],F=Ua((0,Gt.useState)({}),2),B=F[0],O=F[1],L=Ua((0,Gt.useState)({}),2),H=L[0],V=L[1],z=Ua((0,Gt.useState)({}),2),U=z[0],W=z[1],G=n.brandId===H7.PCGamePass&&zs("SvcPCGamePassUpgradePrice"),j=n.brandId===H7.XboxLive&&zs("SvcXboxLiveUpgradePrice"),q=!n.isDowngradePending,K=function(e,t){var n=Ixe(t,e.brandId);return(null===e||void 0===e||!e.isM365BasicSku)&&(null===e||void 0===e||!e.isM365FullSku)&&(!(!(n||null!==e&&void 0!==e&&e.isDowngradePending)||(null===e||void 0===e?void 0:e.billingState)!==t7.InDunning)||!(null===e||void 0===e||!e.isXboxBrandId||null===e||void 0===e||!e.isDowngradePending)||null===e||void 0===e||!e.isXboxBrandId)}(n,s),Y=fn("cancelType"),X="DISABLEAUTORENEW"===(null===Y||void 0===Y?void 0:Y.toUpperCase()),Q=function(){if(!n)return"";var e=n.isM365FullSku||n.isM365BasicSku,t=1===n.cycleDurationInMonths,r=n.cycleDurationInMonths===xye,o=n.daysRemaining>0&&n.daysRemaining<=60,i="";return e&&(n.isM365BasicSku||n.isTrial||n.pastDueBalance||!(t||r&&o)?n.isSwitchPlanEligible&&(n.cycleDurationInMonths===xye||n.isM365BasicSku)&&(i=ASe):i=DSe),i},Z=function(e){var t=!!(e.renewPathsData&&e.renewPathsData.paths&&e.renewPathsData.paths.length>0)&&!!n.payment&&n.billingState!==t7.InDunning&&n.billingState!==t7.ExpiredPrimaryPI;b(t);var r=n.isM365BasicSku||n.cycleDurationInMonths===xye;!t&&r&&g(ASe)};return Qt(Zve(fve().mark((function r(){var s,l,c,d,p,m,f,v,y,b,C,S,_,E,w,I,T,D,R,N,F,B,L,H,z,U,q,K,J,$,ee;return fve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!X||n.billingState!==t7.ActiveAutoRenewOff){r.next=4;break}i(),r.next=28;break;case 4:if(n.billingState!==t7.Expired){r.next=8;break}a(),r.next=28;break;case 8:return o({name:t,status:"first-load"}),s=Q(),g(s),u(Date.now()),l=[],n.isXboxBrandId&&(c=b9(),d={requestId:"profileInfoApiRequest",requestPromise:c,onSuccessCallback:function(e){x(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getProfileInfoAPI failed: ".concat(n)})}},l.push(d)),(G||j)&&(p={productIds:"".concat(W7,",").concat(n.productId),locale:n.locale,market:n.market},m=Jee(p),f={requestId:"personalizedPriceApiRequest",requestPromise:m,onSuccessCallback:function(e){k(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getPersonalizedPriceAPI failed: ".concat(n)})}},l.push(f)),n.isXboxBrandId&&((v=Lxe(!0,n.brandId))&&(y=C9(),b={requestId:"personalizedXboxDetailsApiRequest",requestPromise:y,onSuccessCallback:function(e){A(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getPersonalizedXboxDetailsAPI failed: ".concat(n)})}},l.push(b)),n.brandId===H7.XboxGamePassUltimate||n.brandId===H7.PCGamePass||v?(C={},n.brandId===H7.XboxGamePassUltimate?C=Nxe("XboxGamePassUltimate"):n.brandId===H7.PCGamePass&&(C=Nxe("PCGamePass")),S=Qee(C),_={requestId:"gameInfoV1ApiRequest",requestPromise:S,onSuccessCallback:function(e){P(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getGamesInfoV1API failed: ".concat(n)})}},l.push(_)):n.brandId===H7.XboxGamePassUltimate&&(E={gameCategory:ete,surfaces:[tte.PC,tte.Console,tte.Cloud].join(",")},w=Xee(E),I={requestId:"gameInfoApiRequest",requestPromise:w,onSuccessCallback:function(e){P(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getGamesInfoAPI failed: ".concat(n)})}},l.push(I))),n.brandId===H7.XboxGamePassUltimate&&n.downgradeFlow===d9&&(T=c9(n),D={requestId:"downgradePathsApiRequest",requestPromise:T,onSuccessCallback:function(e){M(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getDowngradePathsAsyncAPI failed: ".concat(n)})}},l.push(D)),n.isM365BrandId&&n.downgradeFlow===d9&&!J9(n)&&(R=u9(n,"Monthly, Yearly",!1),N={requestId:"allDowngradePathsApiRequest",requestPromise:R,onSuccessCallback:function(e){M(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getAllDowngradePathsAsyncAPI failed: ".concat(n)})}},l.push(N)),n.isM365BrandId&&n.billingState===t7.InDunning&&(n.isM365BasicSku||(F=u9(n,"Monthly, Yearly",!0),B={requestId:"allDowngradePathsApiRequest",requestPromise:F,onSuccessCallback:function(e){M(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getAllDowngradePathsAsyncAPI failed: ".concat(n)})}},l.push(B)),n.isHomeSKU||(L=u7(n),H={requestId:"upgradePathsApiRequest",requestPromise:L,onSuccessCallback:function(e){O(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getUpgradePathsAsyncAPI failed: ".concat(n)})}},l.push(H)),z=X9(n.id,n.market),U={requestId:"getProductPurchasePaths",requestPromise:z,onSuccessCallback:function(e){V(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getProductPurchasePathsAPI failed: ".concat(n)})}},l.push(U)),q=zee(),K={requestId:"usqRequest",requestPromise:q,onSuccessCallback:function(e){W(e)},onFailureCallback:function(t){var n=null===t||void 0===t?void 0:t.message;Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:e,message:"getUnifiedStorageQuota failed: ".concat(n)})}},l.push(K),J={serviceId:n.id,serviceType:n.type,cancelType:null!==Y&&void 0!==Y?Y:"NotDefined",conversionPathTypes:s,brandId:n.brandId},$=K8(J),ee={requestId:"cancelRefundApiRequest",requestPromise:$,onSuccessCallback:function(e){h(e),s===DSe&&Z(e),o({name:t,status:"finished"})},onFailureCallback:function(e){var n,r=e,a=null===r||void 0===r||null===(n=r.response)||void 0===n?void 0:n.status;if(400===a)i();else{var s,l,c=(null===r||void 0===r?void 0:r.message)||"Cannot get cancel refund data";o({name:t,status:"failed",error:{name:(null===r||void 0===r||null===(s=r.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.error)||"GetCancelRefundDataError",message:"Status ".concat(a,": ").concat(c)}})}}},l.push(ee),r.next=28,Bxe(l);case 28:case"end":return r.stop()}}),r)})))),jt().createElement(dv,{operationData:{componentName:e,operationName:t},firstLoadView:K?jt().createElement(x_e,null):jt().createElement(cTe,null),finishedView:jt().createElement(F_e,{cancelRefundData:p,profileInfo:S,gameInfo:I,isTurnOffRB:X,showConfirm:q,bypassBenefitsPage:K,downgradePaths:N,upgradePaths:B,purchasePaths:H,conversionPathTypes:f,personalizedPrice:E,isCovidOfferAvailable:y,scenarioStartTimeStamp:c,personalizedXboxDetails:D,usqData:U}),failedView:jt().createElement(nbe,null)})},dTe=function(e){var t=e.isAltaBrandId,n=jt().createElement(bb,{horizontal:!1,childrenGap:18,padding:"25px 55px"},jt().createElement(nw,{width:120,height:8}),jt().createElement(nw,{width:206,height:18})),r=jt().createElement(qO,{backgroundColor:"neutralHigh",firstSegment:n,secondSegment:n,variant:"SixSix"}),o=jt().createElement($R,{isAlwaysExpanded:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},jt().createElement(zR,null)),i={defaultExpanded:!0,shadow:!1,drawerHeader:jt().createElement(bw,{chevronPosition:"end",totalSlots:12,columns:[{column:jt().createElement(rw,{title:{kind:"text",children:!1}}),slots:12}],isShimmer:!0})};return t?jt().createElement(bb,{childrenGap:16},jt().createElement(bb,null,jt().createElement(iL,{drawerAreaProps:i,highlightArea:jt().createElement(RO,{borderRadius:"0px",showShadow:!1,backgroundType:"card",layoutType:"2/3",height:"small",isImageFullBleed:!0}),detailsArea:o})),jt().createElement(bb,null,jt().createElement(iL,{drawerAreaProps:i,highlightArea:jt().createElement(RO,{borderRadius:"0px",showShadow:!1,backgroundType:"card",layoutType:"2/3",height:"small"}),detailsArea:o})),jt().createElement(bb,null,jt().createElement(wM,{anchor:"right",shadow:!1,showDivider:!0}),jt().createElement($R,{isAlwaysExpanded:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},jt().createElement(zR,null),jt().createElement(zR,null),jt().createElement(zR,null))),jt().createElement(bb,{childrenGap:12},jt().createElement(WP,null,jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null),jt().createElement(e6,null)))):jt().createElement(iL,{drawerAreaProps:i,highlightArea:r,detailsArea:jt().createElement($R,{isAlwaysExpanded:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},jt().createElement(zR,null),jt().createElement(zR,null),jt().createElement(zR,null))})},pTe=function(){return BPe.useValue()},hTe=function(e){BPe.setValue(e)},mTe=function(){var e=zye();if(!e)throw new Error("Service details not found");var t=Xve().content.upgrade.benefitFeature,n=jt().createElement("div",{style:{paddingLeft:"20px"}},jt().createElement("ul",null,Object.values(t.bodyText).map((function(e,t){return jt().createElement("li",{key:t},e)})))),r={0:n};return jt().createElement(bb,{padding:"20px 0 0 0",childrenGap:"36px"},jt().createElement(NO,{imageProps:{src:t.imageSrc,imageType:"ariaHiddenImage"},featureHeading:{text:e.isM365BasicSku?t.onedriveHeader:t.header,tag:"h2",variant:"statusHeader"},bodyText:{textWithTokens:"{0}",tokensAndValues:r},height:"small",layoutType:"2/3"}),jt().createElement(bb,null,jt().createElement(nb,{tag:"h2",variant:"paneHeader"},t.infoLine1)))},fTe=function(e){var t=gTe(e);return jt().createElement(ox,t)},gTe=function(e){var t=e.service,n=e.dataBiIdPrefix,r=e.celaStrings,o="".concat(n,".recurringBillingDisclaimer"),i=r.upgradeDisclaimerV1,a=Kt(r.learnAboutCancellationLinkList,t.market,"default",",");return{textWithTokens:i,tokensAndValues:{0:jt().createElement(jt().Fragment,null,r.buyNow),1:jt().createElement(nx,{href:r.storeTermsOfSaleLink,textVariant:"bodyThemeText","aria-label":r.storeTermsOfSaleText,"data-bi-id":"".concat(o,".storeTermsOfSale"),target:"_blank"},r.storeTermsOfSaleText),2:jt().createElement(nx,{href:r.microsoftAccountLink,textVariant:"bodyThemeText","aria-label":r.microsoftAccountText,"data-bi-id":"".concat(o,".msa"),target:"_blank"},r.microsoftAccountText),3:jt().createElement(nx,{href:a,textVariant:"bodyThemeText","aria-label":r.learnMoreText,"data-bi-id":"".concat(o,".learnMore"),target:"_blank"},r.learnAboutCancellationText)}}},vTe="upgrade.success-dialog",yTe=function(){var e,t,n,r=Xve().content.upgrade.confirmationDialog,o=Xve().content.common,i=pTe(),a=i.service,s=i.primaryPI;if(!a)throw new Error("Service not found");var l=$ye(null===(e=i.selectedRenewPath)||void 0===e?void 0:e.productId,void 0,!1,!0),c=zs(q7,!1)?Kt(r.upgradeLegalStringList,"default"):Kt(r.upgradeLegalStringList,i.selectedRenewPath.taxType),u=zs(q7,!1)?X7(a.market,i.selectedRenewPath.priceDetails,o.celaSection.taxBreakdownImmediate,i.selectedRenewPath.price,i.selectedRenewPath.taxType):i.selectedRenewPath.price,d={amount:jt().createElement(jt().Fragment,null,u),paymentMethod:jt().createElement(jt().Fragment,null,null===s||void 0===s?void 0:s.name),oldSkuName:jt().createElement(jt().Fragment,null,a.name),newSkuName:jt().createElement(jt().Fragment,null,null===(t=i.selectedRenewPath)||void 0===t?void 0:t.productName)},p=function(){l()},h={isOpen:!0,onDismiss:p,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},title:r.title,closeButton:{"data-bi-id":"".concat(vTe,"-close"),"aria-label":o.closeButton},dialogFooterProps:{dialogType:"secondary",buttonRight:{onClick:p,text:o.closeButton,"aria-label":o.closeButton,"data-bi-id":"".concat(vTe,"-success-close")}},minBodyHeight:m5};return jt().createElement(CM,h,jt().createElement(bb,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},jt().createElement(zk,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:r.successIcon}),jt().createElement(ox,{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(bb,null,jt().createElement(nb,{variant:"paneHeader",tag:"h2"},r.confirmationText.replace("{productName}",null===(n=i.selectedRenewPath)||void 0===n?void 0:n.productName)))}}),jt().createElement(ox,{textWithTokens:c,tokensAndValues:d}),jt().createElement(ox,{textWithTokens:r.upgradeLegalStringNextCharge,tokensAndValues:{chargeDate:jt().createElement(jt().Fragment,null,gx(i.selectedRenewPath.upgradeProrateNextChargeDate))}})))},bTe="upgrade-smd-threatmetrix-api-dialog",CTe="upgrade-smd-threatmetrix-api-operation",STe=function(e){var t=e.challengeStatus,n=e.paymentSessionId,r=e.selectedPaymentInstrument,o=Bve(),i=mi(),a=EM(),s=gbe(),l=fne(),c=Xve().content.upgrade.smdThreatMetrixAPICallDialog,u=c.errorDialog,d=Xve().content.common,p=pTe(),h=p.service,m=p.selectedRenewPath;vn(h,"Service in UpgradeSMDThreatMetrixAPICallDialog"),vn(m,"renewPath in UpgradeSMDThreatMetrixAPICallDialog");var f=jt().createElement(F5,{spinnerAriaLabel:c.loadingMessage}),g={progressViewOperationData:{operationName:CTe,componentName:bTe},errorDialogProps:{},progressDialogProps:{}},v={isOpen:!0,onDismiss:function(){a.closeDialog()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:c.title.replace("{product}",h.name),closeButton:{"data-bi-id":"".concat(bTe,"-close"),"aria-label":d.closeButton},dialogStylesTemp:h5,operationData:g,minBodyHeight:m5};return Qt(Zve(fve().mark((function e(){var c,f,g,v,y,b,C,S,x,_,E,k,w,I,P,T;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i({name:CTe,status:"updating"}),l.updateSessionId(n),!(v=a8(h,null===(c=r.isSoldToAddressRequired)||void 0===c||c)).isFailed){e.next=9;break}return _r({error:(y=o8(d.smdError)).errorCode,data:{challengeStatus:t,isUserError:y.isUserError}}),br({area:o.area,scenario:Gye.scenarioName,step:Gye.stepName.landing,data:h.bi}),a.switchToDialog(jt().createElement(ISe,{componentName:"".concat(bTe,"-smd-error-dialog"),title:y.errorTitle,errorMessage:y.errorMessage,buttonText:y.buttonText||d.smdError.smdErrorCta,buttonUrlReplacementString:y.buttonUrlReplacementString})),e.abrupt("return");case 9:return(b={}).fromProductId=h.productId,b.toProductId=m.productId,b[Yye]=null===(f=m.cycle)||void 0===f?void 0:f.toString(),b["awa-mee_custom13"]=m.skuId,e.prev=14,Cr({step:Gye.stepName.final}),g=v.addressIdToSend,S=p.primaryPI.biType!==R6||null===(C=p.backupPI)||void 0===C?void 0:C.id,e.next=20,d7({service:h,skuId:m.skuId,availabilityId:m.availabilityId,paymentSessionId:n,challengeCompletedStatus:t,soldToAddressId:g,paymentInstrumentId:p.primaryPI.id,productId:m.productId,backupPaymentInstrumentId:S});case 20:s.onServiceUpdate(),_r({data:b}),i({name:CTe,status:"finished"}),a.switchToDialog(jt().createElement(yTe,null)),e.next=60;break;case 26:if(e.prev=26,e.t0=e.catch(14),w=e.t0,I=null!==(x=null===(_=w.response)||void 0===_||null===(E=_.data)||void 0===E?void 0:E.error)&&void 0!==x?x:"upgradeServiceNoErrorCode",P=u.defaultTitle,T=u.defaultMessage.replace("{product}",h.name),b.errorDetails=w,b.piTypeUsed=null===(k=p.primaryPI)||void 0===k?void 0:k.biType,!(b8.indexOf(I)>=0)){e.next=55;break}e.t1=I,e.next="riskRejected"===e.t1?38:"processorDeclined"===e.t1||"transactionNotAllowed"===e.t1?41:"insufficientFunds"===e.t1?44:"invalidPaymentInstrument"===e.t1?47:50;break;case 38:return P=u.riskRejectedTitle,T=u.riskRejectedMessage,e.abrupt("break",50);case 41:return P=u.processorDeclinedTitle,T=u.processorDeclinedMessage,e.abrupt("break",50);case 44:return P=u.insufficientFundsTitle,T=u.insufficientFundsMessage,e.abrupt("break",50);case 47:return P=u.invalidPaymentInstrumentTitle,T=u.invalidPaymentInstrumentMessage,e.abrupt("break",50);case 50:b.isUserError=!0,_r({error:I,data:b}),i({name:CTe,status:"finished"}),e.next=58;break;case 55:b.isUserError=!1,_r({error:I,data:b}),i({name:CTe,status:"failed",error:w});case 58:br({area:o.area,scenario:Gye.scenarioName,step:Gye.stepName.landing,data:h.bi}),a.switchToDialog(jt().createElement(ISe,{componentName:"".concat(bTe,"-error-dialog"),title:P,errorMessage:T,buttonText:d.closeButton}));case 60:case"end":return e.stop()}}),e,null,[[14,26]])})))),jt().createElement(CM,v,jt().createElement(vi,{operationData:{componentName:bTe,operationName:CTe},firstLoadView:f,finishedView:f}))},xTe=function(){var e,t,n,r=Bve(),o=EM(),i=Xve().content.commonCommerce.common,a=pTe(),s=a.selectedRenewPath,l=a.service;vn(s,"Renew path not found in provider"),vn(l,"Service not found in provider");var c=a.primaryPI;if(void 0===c)throw new Error("selectedPaymentInstrument not found");var u=(null===a||void 0===a||null===(e=a.primaryPI)||void 0===e?void 0:e.biType)===R6,d=G5({india2FASuccessParam:Xbe,productId:s.productId,skuId:s.skuId,piid:c.id,paymentName:c.name,paymentType:c.biType,isSoldToAddressIdRequired:c.isSoldToAddressRequired,isBackup:u,csvPiid:u?null===a||void 0===a||null===(t=a.primaryPI)||void 0===t?void 0:t.id:void 0,csvPaymentName:u?null===a||void 0===a||null===(n=a.primaryPI)||void 0===n?void 0:n.name:void 0}),p=One(r,l,i,"upgrade-pi-challenge",s.priceInDecimal,s.currencyCode,c.id,c.name,s.cycleLength,s.cycleUnit,d,V5(Xbe,!1),(function(e,t){o.switchToDialog(jt().createElement(STe,{challengeStatus:e,selectedPaymentInstrument:c,paymentSessionId:t}))}),(function(e,t){_r({error:w6(e.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:e.isUserError,errorDetails:t}}),br({area:r.area,scenario:Gye.scenarioName,step:Gye.stepName.landing,data:l.bi})}));return jt().createElement(Q5,p)},_Te=function(e){var t,n,r,o=e.flow,i=pTe(),a=i.service,s=Xve().content,l=s.common.celaSection,c=s.renew.celaSection,u=EM(),d=i.selectedRenewPath,p=i.primaryPI,h=i.backupPI,m="SwitchPlan"===o&&(null===d||void 0===d?void 0:d.current)&&(null===p||void 0===p?void 0:p.id)===(null===a||void 0===a||null===(t=a.payment)||void 0===t?void 0:t.id)&&(null===h||void 0===h?void 0:h.id)===(null===a||void 0===a||null===(n=a.backupPayment)||void 0===n?void 0:n.id);if(!a)throw new Error("Service details not found");if(!d)throw new Error("Selected renew path not found");var f={service:a,dataBiIdPrefix:o,celaStrings:l},g=Ua((0,Gt.useState)(!1),2),v=g[0],y=g[1],b=$ye(a.modelId),C=zs(q7,!1)?km(km({},f),{},{price:d.price,priceDetails:d.priceDetails,taxType:d.taxType,cycleUnit:d.cycleUnit,cycleLength:d.cycleLength,nextChargeDate:gx(d.nextChargeDate),upgradeFromSku:a.name,upgradeToSku:d.productName,conversionDetailsUrl:d.conversionDetailsUrl,upgradeProrateNextChargeDate:d.upgradeProrateNextChargeDate?gx(d.upgradeProrateNextChargeDate):void 0}):km(km({},f),{},{price:d.price,taxType:d.taxType,cycleUnit:d.cycleUnit,cycleLength:d.cycleLength,nextChargeDate:gx(d.nextChargeDate),upgradeFromSku:a.name,upgradeToSku:d.productName,conversionDetailsUrl:d.conversionDetailsUrl,upgradeProrateNextChargeDate:d.upgradeProrateNextChargeDate?gx(d.upgradeProrateNextChargeDate):void 0}),S=zs(q7,!1)?function(e){var t=e.service,n=e.celaStrings,r=e.price,o=e.taxType,i=e.upgradeProrateNextChargeDate,a=e.cycleUnit,s=e.cycleLength,l=e.priceDetails,c=X7(t.market,l,n.taxBreakdownImmediate,r||"",o||""),u=i8(a||t.productRenewal.cycleUnit,s||t.productRenewal.cycleLength,n.day,n.days,n.month,n.months,n.year,n.years);return i||Cr({step:"MissingUpgradeProrateNextChargeDate",error:"missing upgrade prorate next charge date"}),sn(n.recurringBillingChargesTodayTaxBreakdown,{amount:c,interval:u,nextRecurrenceDate:gx(i)})}(C):function(e){var t,n,r,o,i,a=e.service,s=e.celaStrings,l=e.price,c=e.taxType,u=e.upgradeProrateNextChargeDate,d=e.cycleUnit,p=e.cycleLength;i=(null===c||void 0===c?void 0:c.toLowerCase())===L7||(null===(n=null===(t=a.productRenewal)||void 0===t?void 0:t.taxType)||void 0===n?void 0:n.toLowerCase())===L7?s.recurringBillingIncludesVAT:(null===c||void 0===c?void 0:c.toLowerCase())===O7||(null===(o=null===(r=a.productRenewal)||void 0===r?void 0:r.taxType)||void 0===o?void 0:o.toLowerCase())===O7?s.recurringBillingPlusTaxes:"";var h=i8(d||a.productRenewal.cycleUnit,p||a.productRenewal.cycleLength,s.day,s.days,s.month,s.months,s.year,s.years);return u||Cr({step:"MissingUpgradeProrateNextChargeDate",error:"missing upgrade prorate next charge date"}),sn(s.recurringBillingChargesTodayV2,{amount:l||a.productRenewal.amountFormatted,tax:i,interval:h,nextRecurrenceDate:gx(u)})}(C),x=jt().createElement(UO,{backgroundColor:"neutralMed",segment:jt().createElement(bb,{childrenGap:24},"Upgrade"===o?jt().createElement(bb,null,eee(C),jt().createElement(Ib,{weightOverride:"semi-bold"},S)):jt().createElement(jt().Fragment,null),"Upgrade"!==o&&jt().createElement(bb,null,jt().createElement(Ib,{weightOverride:"semi-bold"},Y7(C))),"Upgrade"===o?jt().createElement(bb,null,fTe(f)):jt().createElement(bb,null,nee(f)),"Upgrade"===o?jt().createElement(jt().Fragment,null):jt().createElement(bb,null,ene(km(km({},f),{},{showUserConsentText:d.showUserConsentText,onConsentChange:function(){y(!v)}}))),i.primaryPI&&"epay"!==(null===(r=i.primaryPI.biType)||void 0===r?void 0:r.toLowerCase())?jt().createElement(jt().Fragment,null):jt().createElement(bb,{horizontal:!0,childrenGap:9},jt().createElement(Hy,{iconName:"Error",color:"errorIcon"}),jt().createElement(Ib,null,c.noPI)),jt().createElement(bb,{horizontal:!0,childrenGap:11,wrap:!0},jt().createElement(dk,{onClick:function(){xr(),b()},text:c.cancel,"data-bi-id":"renew-cancel","aria-label":c.cancel}),jt().createElement(dk,{onClick:function(){if("Upgrade"===o)u.openDialog(jt().createElement(xTe,null));else if(m)return xr(),b();Cr({step:"OnBuyNowClick"})},text:m?c.keepCurrentPlan:c.buyNow,disabled:function(){var e,t,n,r;return!i.primaryPI||((null===(e=i.primaryPI)||void 0===e||null===(t=e.biType)||void 0===t?void 0:t.toLowerCase())===R6.toLowerCase()?!1===(null===(r=i.backupPI)||void 0===r?void 0:r.valid):!i.primaryPI.valid||"epay"===(null===(n=i.primaryPI.biType)||void 0===n?void 0:n.toLowerCase()))}(),type:"primary","data-bi-id":"renew-start","aria-label":c.buyNow,id:"renew-buy-now-button"})))});return jt().createElement(_Q,{role:"region",headerId:"celaSectionHeader",backgroundColor:"neutralHigh",headerProps:{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(bb,{padding:"3px 0px 12px 0px"},jt().createElement(nb,{tag:"h2",variant:"headerText",id:"celaSectionHeader"},c.title))}},features:[{padding:"16px 0px 16px 0px",backgroundColor:"neutralMed",featureNode:x}]})},ETe=function(e){var t=e.flow,n=Xve().content.renew.celaSection,r=jt().createElement(UO,{backgroundColor:"neutralMed",segment:jt().createElement(bb,{childrenGap:24},jt().createElement(bb,{childrenGap:11},jt().createElement(kTe,null)),jt().createElement(bb,{childrenGap:11},jt().createElement(wTe,{flow:t})),jt().createElement(bb,{horizontal:!0,childrenGap:11,wrap:!0},jt().createElement(dk,{onClick:function(){},disabled:!0,text:n.cancel,"data-bi-id":"","aria-label":""}),jt().createElement(dk,{onClick:function(){},disabled:!0,text:n.buyNow,type:"primary","data-bi-id":"","aria-label":""})))});return jt().createElement(_Q,{backgroundColor:"neutralHigh",headerProps:{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(bb,{padding:"3px 0px 12px 0px"},jt().createElement(nb,{tag:"h2",variant:"headerText"},n.title))}},features:[{padding:"16px 0px 16px 0px",backgroundColor:"neutralMed",featureNode:r}]})},kTe=function(){switch(ny()){case"xxxl":case"xxl":case"xl":case"l":case"m":return jt().createElement(jt().Fragment,null,jt().createElement(nw,{height:12,width:200}),jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"end"},jt().createElement(nw,{height:36,width:80}),jt().createElement(nw,{height:12,width:240})));case"s":return jt().createElement(jt().Fragment,null,jt().createElement(nw,{height:12,width:"100%"}),jt().createElement(bb,{horizontal:!0,childrenGap:8,verticalAlign:"end"},jt().createElement(nw,{height:28,width:80}),jt().createElement(bb,{width:"80%"},jt().createElement(nw,{height:12,width:"100%"}))),jt().createElement(nw,{height:12,width:"20%"}))}},wTe=function(e){var t="Upgrade"===e.flow;switch(ny()){case"xxxl":case"xxl":return jt().createElement(jt().Fragment,null,YPe(t?2:1),jt().createElement(nw,{height:12,width:"20%"}));case"xl":case"l":return jt().createElement(jt().Fragment,null,YPe(t?2:1),jt().createElement(nw,{height:12,width:"50%"}));case"m":return jt().createElement(jt().Fragment,null,YPe(2),jt().createElement(nw,{height:12,width:"20%"}));case"s":return jt().createElement(jt().Fragment,null,YPe(4))}},ITe={componentName:"renew-pi-picker-dialog",operationName:"renew-pi-picker"},PTe=function(e){var t,n,r=e.isChangeBackupPi,o=e.cmsContent,i=e.areaConfig,a=e.dialogController,s=e.selectedRenewPath,l=e.flow,c=e.serviceRenewProvider,u=e.defaultSelectedPiid,d=o.commonCommerce.changePayment,p=c.service;if(!p)throw new Error("Service is undefined");var h="subscription"===p.type?p.includedPaymentInstrumentTagsForLegacySubsForPIDL?p.includedPaymentInstrumentTagsForLegacySubsForPIDL.split(","):void 0:null!==(t=null===s||void 0===s?void 0:s.paymentInstrumentInclusionFilters)&&void 0!==t?t:void 0,m={market:p.market,language:p.locale,billingId:p.billingId,environment:i.pidlEnvironment,transactionAmount:s.priceInDecimal,transactionCurrency:s.currencyCode,scenario:"AmcChangePi",splitPaymentSupported:r,exclusionTags:null!==(n=null===s||void 0===s?void 0:s.paymentInstrumentExclusionFilters)&&void 0!==n?n:void 0,allowedPaymentMethods:h,returnUrl:Jbe(r,s.skuId,s.productId),redirectFailureUrl:s8(U6)},f=u?{id:u}:void 0,g=jt().createElement(M5,{piPickerParams:m,initialPrimaryPi:null!==f&&void 0!==f?f:p.payment?{id:p.payment.id,isExpired:!p.payment.valid}:void 0,initialBackupPi:null!==f&&void 0!==f?f:p.backupPayment?{id:p.backupPayment.id,isExpired:!p.backupPayment.valid}:void 0,onCancel:function(){return a.closeDialog()},onSuccess:function(e,t,n,o,i,s,l){var u={id:e,name:t,isSoldToAddressRequired:n,valid:!0,biType:l};if(r)hTe(km(km({},c),{},{backupPI:u}));else if(o){var d={id:o,name:i,isSoldToAddressRequired:n,valid:!0,biType:s};hTe(km(km({},c),{},{primaryPI:u,backupPI:d}))}else hTe(km(km({},c),{},{primaryPI:u}));a.closeDialog()},onFailure:function(){Cr({step:"closePiPickerDialogOnFailure"}),a.closeDialog()},operationData:ITe,strings:km(km({},d),{},{addPiSubText:d.addPi,failureImageSrc:d.failureIcon,selectBackupPiAlertMessage:d.changeBackupPiAlertMessage,selectBackupPiSubText:d.choosePi,selectPaymentSubText:sn(d.changePaymentSubText,l&&"Upgrade"===l?o.landing.upsell.m365Title:p.name),selectPaymentTitle:r?d.changeBackupPaymentTitle:d.changePaymentTitle,updatePiSubText:d.updatePi})});a.openDialog(g)},TTe=function(e){var t,n,r=e.flow,o=pTe(),i=o.primaryPI,a=o.backupPI,s=o.selectedRenewPath,l=Xve().content,c=Bve(),u=EM(),d=ny(),p=["s","m","l"].includes(d),h=p?"0 12px 0 8px":"",m=jt().createElement(bb,null,jt().createElement(bb,{padding:"0 0 8px 0"},jt().createElement(Ib,null,l.renew.choosePI.choosePIPaymentTitle)),jt().createElement(jk,{size:"md",image:{imageType:"icon",iconName:"PaymentCard"},padding:"0",height:"40px"},i&&"epay"!==(null===(t=i.biType)||void 0===t?void 0:t.toLowerCase())?jt().createElement(bb,{horizontal:!p},jt().createElement(bb,{padding:"0 12px 0 8px"},jt().createElement(Ib,{colorOverride:i.valid?void 0:"error",weightOverride:"semi-bold"},null===i||void 0===i?void 0:i.name)),jt().createElement(bb,{horizontal:!0,padding:h},i.valid?jt().createElement(jt().Fragment,null):jt().createElement(Hy,{iconName:"Error",color:"errorIcon"}),jt().createElement(bb,{padding:"0 4px"},jt().createElement(rx,{onClick:function(){return PTe({isChangeBackupPi:!1,serviceRenewProvider:o,cmsContent:l,areaConfig:c,dialogController:u,selectedRenewPath:s,flow:r})},"aria-label":i.valid?l.common.changePI.change:l.common.changePI.fixHowYouPay,"data-bi-id":i.valid?"change-pi":"fix-pi"},i.valid?l.common.changePI.change:l.common.changePI.fixHowYouPay)))):jt().createElement(bb,{padding:"0 8px"},jt().createElement(rx,{onClick:function(){return PTe({isChangeBackupPi:!1,serviceRenewProvider:o,cmsContent:l,areaConfig:c,dialogController:u,selectedRenewPath:s,flow:r})},"aria-label":l.commonCommerce.changePayment.addPi,"data-bi-id":"add-pi"},l.commonCommerce.changePayment.addPi)))),f=(null===i||void 0===i||null===(n=i.biType)||void 0===n?void 0:n.toLowerCase())===R6.toLowerCase()?jt().createElement(bb,null,jt().createElement(bb,{padding:"0 0 8px 0"},jt().createElement(Ib,null,l.renew.choosePI.choosePIBackupTitle)),jt().createElement(jk,{size:"md",image:{imageType:"icon",iconName:"PaymentCard"},padding:"0px",height:"40px"},a?jt().createElement(bb,{horizontal:!p},jt().createElement(bb,{padding:"0 12px 0 8px"},jt().createElement(Ib,{colorOverride:a.valid?void 0:"error",weightOverride:"semi-bold"},null===a||void 0===a?void 0:a.name," ")),jt().createElement(bb,{horizontal:!0,padding:h},a.valid?jt().createElement(jt().Fragment,null):jt().createElement(Hy,{iconName:"Error",color:"errorIcon"}),jt().createElement(bb,{padding:"0 4px"},jt().createElement(rx,{onClick:function(){return PTe({isChangeBackupPi:!0,serviceRenewProvider:o,cmsContent:l,areaConfig:c,dialogController:u,selectedRenewPath:s,flow:r})},"aria-label":a.valid?l.common.changePI.change:l.common.changePI.fixHowYouPay,"data-bi-id":a.valid?"change-backup-pi":"fix-backup-pi"},a.valid?l.common.changePI.change:l.common.changePI.fixHowYouPay)))):jt().createElement(bb,{padding:"0 8px"},jt().createElement(rx,{onClick:function(){return PTe({isChangeBackupPi:!0,serviceRenewProvider:o,cmsContent:l,areaConfig:c,dialogController:u,selectedRenewPath:s,flow:r})},"aria-label":l.commonCommerce.changePayment.addPi,"data-bi-id":"add-backup-pi"},l.commonCommerce.changePayment.addPi)))):jt().createElement(jt().Fragment,null),g=jt().createElement(qO,{variant:"SixSix",backgroundColor:"neutralMed",firstSegment:m,secondSegment:f});return jt().createElement(_Q,{role:"region",headerId:"paymentMethodHeader",headerProps:{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(bb,{padding:"3px 0px 12px 0px"},jt().createElement(nb,{tag:"h2",variant:"headerText",id:"paymentMethodHeader"},l.renew.choosePI.choosePITitle))}},features:[{padding:"16px 0px 16px 0px",backgroundColor:"neutralMed",featureNode:g}]})};function DTe(){var e=pTe(),t=e.service,n=e.selectedRenewPath,r=mi();vn(t,"CelaSectionError");var o=Xve().content.upgrade.celaSection,i=jt().createElement(GF,{iconProps:{color:"errorIcon",iconName:"Error"},actionProps:{"aria-label":o.tryAgain,children:o.tryAgain,"data-bi-id":"upgrade-view-try-again",actionType:"noHrefLink",onClick:function(){r({name:zTe,status:"first-load"}),c7(t).then((function(t){var o,i;if(t&&null!==(o=t.pathsData)&&void 0!==o&&o.length&&null!==(i=t.pathsData[0])&&void 0!==i&&i.paths){var a=[];t.pathsData.forEach((function(e){return a=a.concat(e.paths)}));var s=n?a.find((function(e){return e.productId===(null===n||void 0===n?void 0:n.productId)&&e.skuId===n.skuId})):a[0];hTe(km(km({},e),{},{selectedRenewPath:s,allRenewPaths:JSON.parse(JSON.stringify(a))})),Cr({step:"UpgradeProrateSuccessOnTryAgain"}),r({name:zTe,status:"finished"})}})).catch((function(e){var t,n,o,i=e;Cr({step:"UpgradeProrateFailOnTryAgain",data:{errorMessage:(null===i||void 0===i?void 0:i.message)||"upgrade prorate failed on try again"},error:null!==(t=null===(n=i.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.error)&&void 0!==t?t:"UpgradeProrateFailedNoErrorCode"}),r({name:zTe,status:"failed",error:i})}))}},messageContent:o.errorMessage,messageBarType:"secondary"});return jt().createElement(bb,{childrenGap:12},jt().createElement(_Q,{role:"region",headerId:"celaSectionHeader",backgroundColor:"neutralHigh",headerProps:{textWithTokens:"{0}",tokensAndValues:{0:jt().createElement(bb,{padding:"3px 0px 12px 0px"},jt().createElement(nb,{tag:"h2",variant:"headerText",id:"celaSectionHeader"},o.title))}},features:[{padding:"0px",featureNode:i}]}))}var ATe,RTe,NTe=function(e){var t=e.titleType,n=Bve(),r=Xve().content,o=r.upgrade,i=r.common,a=o.breadcrumbContent,s=zye(),l=ny();if(!s)throw new Error("Service details not found");var c,u=[{type:"route",to:"/",id:"landing",text:a.landing},{type:"route",to:"/".concat(s.modelId,"/details#overview"),id:"details",text:s.name,mediaProps:{kind:"image",src:s.brandLogo,alt:bn(i.logoAriaLabel,s.name)}},{type:"text",id:"renew",text:a.upgrade}];switch(c=s.upgradeConfig?s.isM365BasicSku?o.pageTitleOneDrive.replace("{serviceName}",s.upgradeConfig.product):o.pageTitle.replace("{serviceName}",s.upgradeConfig.product):"",t){case"confirm":c=o.confirmTitle;break;case"error":c=o.contextualError.noUpgradeTitle}if(!s.upgradeConfig)return jt().createElement(jt().Fragment,null);return jt().createElement(bb,{childrenGap:24,padding:"0 0 24px 0"},jt().createElement(LI,{breadcrumbTitleProps:{ariaLabel:a.ariaLabel,items:u,pageArea:n.area,overflowAriaLabel:a.overflowAriaLabel,isIncludingCurrentPage:!0,dataBiPrefix:"".concat(s.brandId,"-upgrade-breadcrumb"),overflowIndex:1}}),jt().createElement(nb,{variant:function(){switch(l){case"s":return"paneTitle";case"m":case"l":return"statusHeader";case"xl":case"xxl":case"xxxl":return"pageTitle"}}(),tag:"h1",id:"upgrade-banner-id"},c))},MTe=function(){var e="confirm-upgrade-view",t=EM(),n=pTe(),r=Bve(),o=Xve().content,i=o.commonCommerce.common.psd2Resource,a=z5(Xbe),s=function(o,a){var s,l=r8(i,o);_r({error:w6(l.errorCode),data:{challengeStatus:o.challengeStatus,isUserError:l.isUserError,errorDetails:o.errorCode}}),br({area:r.area,scenario:a,step:Wye.stepName.landing,data:null===(s=n.service)||void 0===s?void 0:s.bi}),t.switchToDialog(jt().createElement(ISe,{componentName:"".concat(e,"-error-dialog"),title:l.errorTitle||i.genericErrorTitle,buttonText:l.buttonText||i.closeButton,errorMessage:l.errorMessage||i.genericErrorMessage,buttonUrlReplacementString:l.buttonUrlReplacementString}))};return Qt((function(){if(tbe(),function(e){var t,n=e.serviceRenewProvider,r=e.cmsContent,o=e.areaConfig,i=e.dialogController,a=e.selectedRenewPath,s=e.flow;if(n.service){var l=r.commonCommerce.changePayment,c=null!==(t=gn(J6,!0))&&void 0!==t?t:void 0;if(mn(U6,W6)){var u={name:"PiPickerAddPiError",errorCode:"RedirectGenericError",message:"Redirect add pi failed"},d=P6(l.addEditPiError,u.errorCode);Cr({step:"OnFailureAddPiRedirect",error:w6(d.errorCode),data:{isUserError:d.isUserError}}),i.switchToDialog(jt().createElement(D5,{error:u,strings:km(km({},l.addEditPiError),{},{close:l.close,failureImageSrc:l.failureIcon}),operationData:ITe,onClose:function(){Cr({step:"closePiPickerDialogOnFailure"}),i.closeDialog()}})),hn(U6)}else mn(Qbe,"true")?(PTe({isChangeBackupPi:!1,serviceRenewProvider:n,cmsContent:r,areaConfig:o,dialogController:i,selectedRenewPath:a,flow:s,defaultSelectedPiid:c}),hn(Qbe)):mn(Zbe,"true")&&(PTe({isChangeBackupPi:!0,serviceRenewProvider:n,cmsContent:r,areaConfig:o,dialogController:i,selectedRenewPath:a,flow:s,defaultSelectedPiid:c}),hn(Zbe))}}({serviceRenewProvider:n,cmsContent:o,areaConfig:r,dialogController:t,selectedRenewPath:n.selectedRenewPath,flow:"Upgrade"}),void 0!==a)if(a){var e=K5();if(T6(e.selectedPiid,e.pi.id),e.isBackup?hTe(km(km({},n),{},{primaryPI:{id:e.csvPiid,name:e.csvPaymentName,biType:R6,valid:!0},backupPI:{id:e.pi.id,name:e.pi.displayName,biType:e.pi.paymentMethodType,valid:!0}})):hTe(km(km({},n),{},{primaryPI:{id:e.pi.id,name:e.pi.displayName,biType:e.pi.paymentMethodType,valid:!0}})),"Succeeded"===e.challengeStatus||"NotApplicable"===e.challengeStatus)Cr({step:"India2FARedirectSuccess"}),t.switchToDialog(jt().createElement(STe,{challengeStatus:e.challengeStatus,selectedPaymentInstrument:e.pi,paymentSessionId:e.sessionId}));else{var i={name:"India2FAError",errorCode:"India2FAChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:e.challengeStatus};Cr({step:"India2FAChallengeStatusError"}),s(i,Gye.scenarioName)}}else{var l=U5();Cr({step:"India2FARedirectFailed"}),s(l,Gye.scenarioName)}})),jt().createElement(bb,null,jt().createElement(NTe,{titleType:"confirm"}),jt().createElement(bb,{childrenGap:20},jt().createElement(TTe,{flow:"Upgrade"}),jt().createElement(dv,{operationData:{componentName:e,operationName:zTe},firstLoadView:jt().createElement(ETe,{flow:"Upgrade"}),finishedView:jt().createElement(_Te,{flow:"Upgrade"}),failedView:jt().createElement(DTe,null)})))},FTe=function(){var e=pTe().service,t=$ye(e.modelId),n=Xve();return jt().createElement(bb,null,jt().createElement(NTe,{titleType:"error"}),jt().createElement(bb,{childrenGap:20},jt().createElement(Ib,null,n.content.upgrade.contextualError.noUpgradeMessage),jt().createElement(bb,{padding:"16px 0 0 0"},jt().createElement(Cb,{align:"start"},jt().createElement(dk,{type:"primary",onClick:function(){t()},text:n.content.upgrade.contextualError.noUpgradeButton,"data-bi-id":"no-upgrade","aria-label":n.content.upgrade.contextualError.noUpgradeButton})))))},BTe=function(e){var t,n=e.index,r=e.description,o=e.isBestValue,i=e.title,a=e.price,s=e.features,l=e.ctaProps,c=e.linkProps;r&&(t={children:r});var u=Xve().content.upgrade.switchPlan;return jt().createElement(vB,Object.assign({key:"path".concat(n),actions:{cta:l,alt:c}},o?{badge:u.bestValueCaps}:{},{features:s.map((function(e,t){return{"aria-labelledby":"m365-feature-".concat(n,"-").concat(t),child:jt().createElement(jk,{id:"m365-feature-".concat(n,"-").concat(t),image:{iconColor:"successIcon",iconName:"CheckMark",imageType:"icon"},size:"sm"},jt().createElement(ox,{variant:"bodySecondaryText",textWithTokens:e,tokensAndValues:{superscript1:jt().createElement("sup",{style:{verticalAlign:"super",fontSize:"10px"}},"1"),superscript2:jt().createElement("sup",{style:{verticalAlign:"super",fontSize:"10px"}},"2")}}))}})),subtitle:{children:a},description:t,title:{children:i}}))},OTe=function(e){var t,n=e.onClickCta,r=Xve().content,o=r.landing.upsell.m365Title,i=r.upgrade,a=r.commonCommerce.renewPath,s=pTe(),l=s.service,c=$t(UTe),u=$t(WTe),d=i.switchPlan,p=d.cycles,h=$ye(l.modelId),m=l&&l.productRenewal?{price:l.productRenewal.amountFormatted||"",cycle:eCe(l.productRenewal),name:l.name||""}:null,f=function(e,t,n,r){return sn(r?d.upgradeCtaBestValueAria:d.upgradeCtaAria,{serviceName:e,price:t,cycle:p["title-".concat(n)]})},g=null!==(t=s.allRenewPaths)&&void 0!==t?t:[];return jt().createElement(bb,{childrenGap:48},jt().createElement(wB,null,g.map((function(e,t){return jt().createElement(BTe,{key:"cycle".concat(e.cycle),index:t,isBestValue:e.relativeSavingsPercent>0,description:e.relativeSavingsPercent>0?sn(d.subtitle,{savings:sn(a.planSave,e.relativeSavingsPercent),cycle:p["subtitle-".concat(e.cycle)]}):void 0,title:o,price:"".concat(e.price,"/").concat(p["title-".concat(e.cycle)]),features:Object.values(p["features-".concat(e.cycle)]),ctaProps:{"aria-label":f(o,e.price,e.cycle,e.relativeSavingsPercent),"data-bi-id":d.payNowCtaId,onClick:function(){return t=e,c.value=t.productId,u.value=t.skuId,hTe(km(km({},s),{},{selectedRenewPath:t})),void n();var t},text:d.payNowCta}})})),m&&m.name?jt().createElement(BTe,{index:99,title:sn(d.currentPlanTitle,{name:m.name}),price:"".concat(m.price,"/").concat(p["title-".concat(m.cycle)]),features:Object.values(d.keepFeatures),ctaProps:{"aria-label":d.keepCta,"data-bi-id":d.keepId,onClick:function(){xr(),h()},text:d.keepCta}}):jt().createElement(jt().Fragment,null)))},LTe=function(e){var t,n=e.onClickCta,r=Xve().content,o=r.upgrade,i=r.commonCommerce.renewPath,a=pTe(),s=a.service,l=$t(UTe),c=$t(WTe);vn(s,"OneDriveSwitchPlan");var u=o.switchPlan,d=u.cycles,p=u.products,h=$ye(s.modelId),m=function(e){switch(e){case z7:return"features-family";case V7:return"features-personal";default:return"features-onedrive"}},f=function(e){l.value=e.productId,c.value=e.skuId,hTe(km(km({},a),{},{selectedRenewPath:e})),n()},g=function(e,t,n,r){return sn(r?u.upgradeCtaBestValueAria:u.upgradeCtaAria,{serviceName:e,price:t,cycle:d["title-".concat(n)]})},v=function(e,t){if(null===e||void 0===e||!e.length)return null;var n=eCe(s.productRenewal),r=e.find((function(e){return e.cycle===n})),o=e.find((function(e){return e.cycle!==n})),a=e.find((function(e){return 12===e.cycle}));if(!r||!o)return null;var l=a&&a.relativeSavingsPercent>0?sn(i.planSave,a.relativeSavingsPercent):void 0;return{price:r.price,cycle:r.cycle,productId:r.productId,name:r.productName,savings:l,ctaProps:{"aria-label":g(r.productName,r.price,r.cycle,l),"data-bi-id":t?"upgrade-plan-cta-family":"upgrade-plan-cta-personal",onClick:function(){return f(r)},text:u.payNowCta,type:t?"primary":"default"},linkProps:{children:sn(u.altLinkText,{price:o.price,cycle:d["title-".concat(o.cycle)]}),"aria-label":sn(u.altLinkText,{price:o.price,cycle:d["title-".concat(o.cycle)]}),"data-bi-id":t?"upgrade-plan-link-family":"upgrade-plan-link-personal",onClick:function(){return f(o)}}}},y=null!==(t=a.allRenewPaths)&&void 0!==t?t:[],b=y.filter((function(e){return e.productId===z7})),C=y.filter((function(e){return e.productId===V7})),S=v(b,!0),x=v(C,!1),_=s&&s.productRenewal?{price:s.productRenewal.amountFormatted||"",cycle:eCe(s.productRenewal),name:s.name||"",ctaProps:{"aria-label":u.keepOneDriveCta,"data-bi-id":"keep-subscription-id",onClick:function(){xr(),h()},text:u.keepOneDriveCta}}:null;return jt().createElement(bb,{childrenGap:48},jt().createElement(wB,null,S?jt().createElement(BTe,{key:"m365family-plan",index:1,isBestValue:!0,description:S.savings&&12===s.cycleDurationInMonths?sn(u.subtitle,{savings:S.savings,cycle:d["subtitle-12"]}):void 0,title:S.name,price:"".concat(S.price,"/").concat(d["title-".concat(S.cycle)]),features:Object.values(p[m(S.productId)]),ctaProps:S.ctaProps,linkProps:S.linkProps}):jt().createElement(jt().Fragment,null),x?jt().createElement(BTe,{key:"m365personal-plan",index:2,description:x.savings&&12===s.cycleDurationInMonths?sn(u.subtitle,{savings:x.savings,cycle:d["subtitle-12"]}):void 0,title:x.name,price:"".concat(x.price,"/").concat(d["title-".concat(x.cycle)]),features:Object.values(p[m(x.productId)]),ctaProps:x.ctaProps,linkProps:x.linkProps}):jt().createElement(jt().Fragment,null),_&&_.name?jt().createElement(BTe,{key:"onedrive-plan",index:3,title:sn(u.currentPlanTitle,{name:_.name}),price:"".concat(_.price,"/").concat(d["title-".concat(_.cycle)]),features:Object.values(p["features-onedrive"]),ctaProps:_.ctaProps}):jt().createElement(jt().Fragment,null)),jt().createElement(bb,null,Object.values(u.footnote).map((function(e,t){return jt().createElement(bb,{horizontal:!0,key:"footnote-".concat(t)},jt().createElement(Cb,{width:15},jt().createElement(Ib,{variant:"bodySecondaryText",block:!0,nowrap:!0},t+1,".")),jt().createElement(Cb,{shrink:1},jt().createElement(ox,{textWithTokens:e,tokensAndValues:{},variant:"bodySecondaryText"})))}))))},HTe=function(e){var t=e.isOneDrive;return jt().createElement(bb,null,jt().createElement(hI,null,jt().createElement(OP,null)),jt().createElement(bb,{childrenGap:"20px"},jt().createElement(bb,{childrenGap:"36px"},jt().createElement(RO,{height:"small",layoutType:"2/3"}),jt().createElement(bb,{childrenGap:"8px"},jt().createElement(nw,{width:"50%",height:16}))),jt().createElement(wB,null,jt().createElement(HO,{badge:!0,numberOfChildren:4,actions:t}),jt().createElement(HO,{numberOfChildren:4,actions:t}),jt().createElement(HO,{numberOfChildren:4,actions:t}))))},VTe="GetUpgradePathsData",zTe="GetUpgradePathsDataWithProrate",UTe="UpgradeSPPID",WTe="UpgradeSPSID",GTe=function(){var e="confirm-upgrade",t="contextual-error",n="upgrade-view-shimmer";!function(){var e=zye(),t=Xve().content.commonCommerce.common.piList;if(!e)throw new Error("Service not found");var n={service:e,selectedRenewPath:void 0,allRenewPaths:void 0,primaryPI:null!==e&&void 0!==e&&e.payment?{id:e.payment.id,name:c8(e.payment,t),isSoldToAddressRequired:e.payment.isSoldToAddressRequired,country:e.payment.country,valid:e.payment.valid,biType:e.payment.biType}:void 0,backupPI:e.backupPayment?{id:e.backupPayment.id,name:c8(e.backupPayment,t),isSoldToAddressRequired:e.backupPayment.isSoldToAddressRequired,country:e.backupPayment.country,valid:e.backupPayment.valid,biType:e.backupPayment.biType}:void 0};Qt((function(){BPe=J5(n)}))}();var r=Bve(),o=mi(),i=pTe(),a=i.service,s=$t(UTe),l=$t(WTe);vn(a,"UpgradeView");var c=Jye(),u=function(){g({view:e})},d=jt().createElement(bb,null,jt().createElement(NTe,{titleType:"default"}),jt().createElement(bb,{childrenGap:20},jt().createElement(mTe,null),a.isM365BasicSku?jt().createElement(LTe,{onClickCta:u}):jt().createElement(OTe,{onClickCta:u}))),p=jt().createElement(FTe,null),h=(0,Gt.useReducer)((function(r,o){switch(o.view){case e:return jt().createElement(MTe,null);case t:return p;case n:return jt().createElement(HTe,{isOneDrive:a.isM365BasicSku});default:return d}}),jt().createElement("div",null)),m=Ua(h,2),f=m[0],g=m[1];return Qt(Zve(fve().mark((function u(){var d,p,h,m,f,v,y,b,C,S,x,_,E,k,w,I;return fve().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(a){u.next=2;break}throw new Error("Service details not found");case 2:if(a.upgradeFlow===h7){u.next=4;break}return u.abrupt("return",c());case 4:return d=mn(U6,W6)||mn(Qbe,"true")||mn(Zbe,"true"),(p=void 0!==z5(Xbe,!1))?W5({area:r.area,scenario:Gye.scenarioName,data:a.bi}):d?b5({area:r.area,scenario:Gye.scenarioName,data:a.bi}):br({area:r.area,scenario:Gye.scenarioName,step:Gye.stepName.landing,data:a.bi}),s.value=null,l.value=null,o({name:VTe,status:"first-load"}),u.prev=10,u.next=13,u7(a);case 13:(f=u.sent)&&null!==(h=f.pathsData)&&void 0!==h&&h.length&&null!==(m=f.pathsData[0])&&void 0!==m&&m.paths?(b=[],f.pathsData.forEach((function(e){return b=b.concat(e.paths)})),S=null!==(v=gn(Y6,!0))&&void 0!==v?v:null,x=null!==(y=gn(K6,!0))&&void 0!==y?y:null,S&&x?(s.value=S,l.value=x,C=b.find((function(e){return e.productId===S&&e.skuId===x}))):C=b[0],hTe(km(km({},i),{},{selectedRenewPath:C,allRenewPaths:JSON.parse(JSON.stringify(b))})),g({view:d||p?n:"default"})):g({view:t}),o({name:VTe,status:"finished"}),u.next=24;break;case 18:u.prev=18,u.t0=u.catch(10),w=u.t0,I=null!==(_=null===(E=w.response)||void 0===E||null===(k=E.data)||void 0===k?void 0:k.error)&&void 0!==_?_:"GetUpgradePathsNoErrorCode",o({name:VTe,status:"failed",error:w}),_r({error:I,data:{isUserError:b8.indexOf(I)>-1,errorDetails:w}});case 24:o({name:zTe,status:"first-load"}),c7(a).then((function(t){var n,r;if(t&&null!==(n=t.pathsData)&&void 0!==n&&n.length&&null!==(r=t.pathsData[0])&&void 0!==r&&r.paths){var a=[];t.pathsData.forEach((function(e){return a=a.concat(e.paths)}));var c=s.value,u=l.value,h=c&&u?a.find((function(e){return e.productId===c&&e.skuId===u})):a[0];hTe(km(km({},i),{},{selectedRenewPath:h,allRenewPaths:JSON.parse(JSON.stringify(a))})),Cr({step:"UpgradeProrateApiSuccess"}),(d||p)&&g({view:e}),o({name:zTe,status:"finished"})}})).catch((function(e){var t,n,r,i=e;Cr({step:"UpgradeProrateFail",data:{errorMessage:(null===i||void 0===i?void 0:i.message)||"upgrade prorate failed"},error:null!==(t=null===(n=i.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)&&void 0!==t?t:"UpgradeProrateFailedNoErrorCode"}),o({name:zTe,status:"failed",error:i})}));case 26:case"end":return u.stop()}}),u,null,[[10,18]])})))),jt().createElement(dv,{operationData:{componentName:"upgrade-view",operationName:VTe},firstLoadView:jt().createElement(HTe,{isOneDrive:a.isM365BasicSku}),finishedView:f,failedView:jt().createElement(nbe,null)})},jTe=function(e){var t,n=e.onServiceUpdate,r=zye(),o=Xve().content.cancel.strings.breadcrumbContent,i=[];r&&r.serviceBannerContent&&(i=hCe(r.serviceBannerContent,[r],n),r.brandLogo&&(t={kind:"image",src:r.brandLogo,alt:""}));var a=jt().createElement(hI,null,jt().createElement(OP,null),jt().createElement(qI,null),jt().createElement(qI,null)),s=jt().createElement(jt().Fragment,null,r&&r.serviceBannerContent?jt().createElement(jt().Fragment,null,jt().createElement(hI,null,jt().createElement(LI,{breadcrumbTitleProps:{ariaLabel:o.landing,dataBiPrefix:"services",isIncludingCurrentPage:!0,items:[{id:"services-show-all-my-subscriptions",text:o.landing,to:"/",type:"route"},{id:"serviceName",mediaProps:t,text:r.name,type:"text"}],overflowAriaLabel:o.landing,overflowIndex:0,pageArea:"service-value-banner"}}),i[0],i[1])):jt().createElement(jt().Fragment,null));return jt().createElement(dv,{operationData:{componentName:"service-banner",operationName:KTe},firstLoadView:a,finishedView:s})},qTe="service-view",KTe="get-subscription",YTe=function(e){var t=e.pageName,n=mi(),r=zye(),o=Bve(),i=Ko("/:serviceId"),a=(null===i||void 0===i?void 0:i.params).serviceId,s=a===Kbe,l=!1,c=FPe.useValue(),u=qo(),d=ii().sendPageViewEvent,p=Jye(),h=Ua((0,Gt.useState)({isFirstLoad:!0,isDrawerOpened:!1}),2),m=h[0],f=h[1],g=Ua((0,Gt.useState)({isFirstLoad:!0,isDrawerOpened:!1}),2),v=g[0],y=g[1],b=Ua((0,Gt.useState)({isFirstLoad:!0,isDrawerOpened:!1}),2),C=b[0],S=b[1],x=Ua((0,Gt.useState)(!1),2),_=x[0],E=x[1],k=gbe();k.dispatch=n,mn(Vbe,zbe)&&window.sessionStorage.setItem(U9,"1");var w=function(e){var t;e.billingState!==t7.Unknown||null!==(t=e.sharingDetails)&&void 0!==t&&t.isGuest||p()},I=function(){var e=Zve(fve().mark((function e(t){var n,r,o,i,s,l,c;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,o=null,i=null,e.prev=3,e.next=6,j9({forceReload:t});case 6:r=e.sent,o=Y9(r,a),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),i=e.t0;case 13:return s=null===(n=r)||void 0===n?void 0:n.alerts,l=null,s&&s.alerts&&(c=s.alerts,l=c.find((function(e){var t;return e.serviceId===(null===(t=o)||void 0===t?void 0:t.id)}))),e.abrupt("return",{subscription:o,alert:l,subscriptionError:i});case 17:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),P=function(e){Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:qTe,message:"".concat(e,": ").concat(t)})},T=function(e,n){Kn(),jn("pageid",t),e&&jn(e.bi),n&&jn("awa-alertKey",n.contentKey)},D=function(e,t){var n=!!t&&t.used>F7,r=e.sharingDetails,o=r&&(r.familyUsers&&r.familyUsers.length>0||r.guestUsers&&r.guestUsers.length>0),i=e.installDetails,a=i&&i.installsUsed&&i.installsUsed.length>0;jn("awa-mee_custom16",(o||a||n).toString())},A=function(){var e=Zve(fve().mark((function e(n){var r;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zee();case 3:(r=e.sent)&&(r.used>=0&&jn("awa-one-driveUsage",Wee(r.used)),D(n,r)),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),Br({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"error",component:qTe,message:"".concat(t," ").concat(JSON.stringify(e.t0))}),D(n,null);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),R="forceReload",N="true",M=jt().createElement(jt().Fragment,null),F=jt().createElement(jt().Fragment,null),B=jt().createElement(jt().Fragment,null);(0,Gt.useEffect)((function(){(null===r||void 0===r?void 0:r.billingState)===t7.PartnerBilled&&u.push("/".concat(a,"/details"))}),[u,a,r]),Qt(Zve(fve().mark((function e(){var o,i,s,p,h,m;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=!0,mn(R,N)&&E(!0),Ir()&&xr(),null===(o=Yn("pageid"))||void 0===o||o.remove(),Kn(),jn("pageid",t),n({name:KTe,status:"first-load"}),_||mn(R,N)||!r||r.modelId!==a){e.next=18;break}if(w(r),k.isServiceUpdating){e.next=16;break}return T(r,c),P("Rendering Service finished view..."),n({name:KTe,status:"finished"}),e.next=15,A(r);case 15:d();case 16:e.next=44;break;case 18:return i=_||mn(R,N),e.prev=19,e.next=22,I(i);case 22:if(s=e.sent,p=s.alert,h=s.subscription,!(m=s.subscriptionError)){e.next=28;break}throw m;case 28:if(!h){e.next=38;break}return w(h),KPe(p||void 0),T(h,p),l&&!k.isServiceUpdating&&(Uye(h),n({name:KTe,status:"finished"})),e.next=35,A(h);case 35:d(),e.next=39;break;case 38:u.push("/notfound");case 39:e.next=44;break;case 41:e.prev=41,e.t0=e.catch(19),k.isServiceUpdating||n({name:KTe,status:"failed",error:e.t0});case 44:mn(R,N)&&hn(R);case 45:case"end":return e.stop()}}),e,null,[[19,41]])})))),Xt((function(){l=!1}));var O=function(){var e=Zve(fve().mark((function e(){var t,n,r,o;return fve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k.isServiceUpdating=!0,e.prev=1,k.dispatch({name:KTe,status:"updating"}),e.next=5,I(!0);case 5:if(t=e.sent,n=t.alert,r=t.subscription,!(o=t.subscriptionError)){e.next=11;break}throw o;case 11:T(r,n),Uye(null!==r&&void 0!==r?r:void 0),KPe(null!==n&&void 0!==n?n:void 0),k.dispatch({name:KTe,status:"finished"}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),k.dispatch({name:KTe,status:"failed",error:e.t0});case 20:k.isServiceUpdating=!1;case 21:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(){return e.apply(this,arguments)}}();if(t==="".concat(o.area,".").concat(cye))M=jt().createElement(bb,null,jt().createElement(jTe,null),jt().createElement(dTe,{isAltaBrandId:s})),B=jt().createElement(bb,null,jt().createElement(jTe,{onServiceUpdate:O}),jt().createElement(qPe,{onServiceUpdate:O,forceReload:_,initialManageDrawerOpenedState:m,setInitialManageDrawerOpenedState:f,initialSharingDrawerOpenedState:v,setInitialSharingDrawerOpenedState:y,initialInstallDrawerOpenedState:C,setInitialInstallDrawerOpenedState:S})),F=M;else if(t==="".concat(o.area,".").concat(uye))M=jt().createElement(bb,null,jt().createElement(cTe,null)),B=jt().createElement(bb,null,jt().createElement(uTe,null)),F=M;else if(t==="".concat(o.area,".").concat(dye)){var L=window.location.href.split("?")[1],H=L?"/?launchRenewDialog=true&modelId=".concat(a,"&").concat(L):"/?launchRenewDialog=true&modelId=".concat(a);u.push(H)}else t==="".concat(o.area,".").concat(pye)?(M=jt().createElement(bb,null,jt().createElement(HTe,null)),F=B=jt().createElement(bb,null,jt().createElement(GTe,null))):(P("Pagename not found"),p());var V=jt().createElement(fbe.Provider,{value:{onServiceUpdate:O,hideMessageBar:function(){KPe(void 0)},alert:c,dispatch:n,isServiceUpdating:!1}},jt().createElement(_M,null,jt().createElement(bb,null,jt().createElement(dv,{operationData:{componentName:qTe,operationName:KTe},firstLoadView:M,updatingView:F,finishedView:B,failedView:jt().createElement(nbe,null)}))));return t==="".concat(o.area,".").concat(cye)||t==="".concat(o.area,".").concat(uye)?jt().createElement(lre,{config:dre(o),dimeScript:o.dimeCdn},V):V},XTe=function(){var e=Xve().subNotFoundResource,t=Bve().userEmail,n=Jye(!0);return jt().createElement(bb,{childrenGap:20,padding:"20px 0 0 0"},jt().createElement(Cb,{align:"start"},jt().createElement(Ib,{variant:"paneHeader",weightOverride:"bold"},e.title)),jt().createElement(Cb,{align:"start"},jt().createElement(Ib,{variant:"bodyPrimaryText"},sn(e.subtitle,t))),jt().createElement(Cb,{align:"start"},jt().createElement(dk,{text:e.ctaText,"aria-label":e.ctaText,"data-bi-id":"back-to-subs",type:"primary",onClick:n})))},QTe=function(){var e="#reload";return window.location.href.endsWith("/")?window.location.href=window.location.href.replace(/\/+$/,""):window.location.hash!==e?(window.location.hash=e,window.location.reload()):window.location.href="".concat(window.location.origin,"/services"),null},ZTe=function(){var e,t=Bve(),n=t.area,r=t.userPuid,o=t.isAuthenticated,i=Ua((0,Gt.useState)([r.valueAsHex]),1)[0],a={strings:Xve().content.amcLeftNav,userIds:i,selectedNavLink:"servicesSubscriptions"},s={layoutType:"withoutNavBar",id:an.P,children:jt().createElement(jt().Fragment,null)};return e=void 0,Qt((function(){eye=J5(e)})),function(e){Qt((function(){FPe=J5(e)}))}(void 0),jt().createElement(Go,null,zs("SvcGuestCancel",!1)&&jt().createElement(Bs,{area:n,view:"".concat(mye),path:"/guestcancel"},jt().createElement(Yve,{isSignedIn:o||!1,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(Hye,null))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(lye),path:"/",exact:!0,manualPageView:!0},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(_M,null,jt().createElement(_Se,null)))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(uye),path:"/:serviceId/cancel",manualPageView:!0},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(YTe,{pageName:"".concat(n,".").concat(uye)}))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(dye),path:"/:serviceId/renew",manualPageView:!0},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(YTe,{pageName:"".concat(n,".").concat(dye)}))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(pye),path:"/:serviceId/upgrade",manualPageView:!0},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(YTe,{pageName:"".concat(n,".").concat(pye)}))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(cye),path:"/:serviceId/details",manualPageView:!0},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(YTe,{pageName:"".concat(n,".").concat(cye)}))}),amcAccountLeftNavProps:a})),jt().createElement(Bs,{area:n,view:"".concat(hye),path:"/notfound"},jt().createElement(Yve,{isSignedIn:!0,pageLayoutProps:km(km({},s),{},{children:jt().createElement(wQ,null,jt().createElement(XTe,null))}),amcAccountLeftNavProps:a})),jt().createElement(Lo,{component:QTe}))},JTe=function(){var e=Bve();Qt((function(){My()}));var t=function(t){var n=t.children,r=function(e){var t=pve({msalConfig:e,redirectUri:hve(e),cacheLocation:uoe.LocalStorage,navigateToLoginRequestUrl:!1}),n={brokerOptions:{actAsBroker:!0,preferredInteractionType:goe.Redirect}},r=new dve(t,n);return r.initializeBrokering(),r}(e.msalConfig);return jt().createElement(Ave,{instance:r,msalAuthConfig:{signInName:e.signInName}},n)};return jt().createElement(t,null,jt().createElement(Yo,{basename:"/services"},jt().createElement(vne,e.threatMetrixConfig,jt().createElement(HP,{id:"themeId",variant:"AMC"},jt().createElement(ZTe,null)))))},$Te=function(e){var t,n,r=e.cmsContent,o=e.areaConfig,i=e.areaContext;n=JSON.parse(o),Qt((function(){Mve=J5(n)})),function(e){Qt((function(){Fve=J5(e)}))}(JSON.parse(r)),function(e){Qt((function(){J5(e)}))}(JSON.parse(i));var a=null===(t=Bve())||void 0===t?void 0:t.area;return jt().createElement(sl,{errorComponent:IL},jt().createElement($s,{areaBiId:a},jt().createElement(sI,{announcedComponent:nI},jt().createElement(JTe,null))))};ATe=function(){var e=document.getElementById("root");-1===Object.keys(window).indexOf("MeePortal")&&(window.BradburyTelemetry={bi:{getCurrentLocation:function(){return"https://location.com"},getCurrentPageId:function(){return"pageId"},getCurrentReferrer:function(){return"https://referrer.com"},reportClick:function(e){mt(e)},reportSpaPageView:function(e){ht()}},cv:{getCurrentCvValue:function(){return"cv123"}},experiments:{reportExperimentTrigger:function(e){xt(e)}},perf:{reportViewPerformanceMetrics:function(e,t){kt(e,t)}},qos:{reportFatalError:function(e){gt(e)},reportOutgoingApi:function(e){yt(e)},reportRawEvent:function(e){vt(e)}}},Rt({appId:"xs.amc.ux-reactApp",environment:"Test",isUserSignedIn:!1,allowClickTracking:!0,allowScrollTracking:!0,instrumentationKey:"key",useKeydownEvent:!1},{allowAutoPageView:!0,market:"en-US",language:"en",flights:[],features:[],urlScrubber:function(e){return e}})),rn().render(jt().createElement(Yo,null,jt().createElement($Te,e.dataset)),e)},RTe="services",(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:t=Vt,r=performance.now(),o=!1,i=setTimeout((function(){o=!0,Ur(Wt,RTe,r)}),3e4),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,ATe()];case 2:return e.sent(),[3,5];case 3:throw a=e.sent(),t=zt,n=a,a;case 4:return o||(clearTimeout(i),Ur(t,RTe,r,n)),[7];case 5:return[2]}}))}))}()})();
//# sourceMappingURL=main.05084269.js.map
