/*! For license information please see main.0cbf6322.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",c=a.asyncIterator||"@@asyncIterator",l=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(A){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new S(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 I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(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 c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=d;var h={};function f(){}function m(){}function g(){}var v={};u(v,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==n&&i.call(b,s)&&(v=b);var _=g.prototype=f.prototype=Object.create(v);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var l=p(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(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 w(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,w(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 x(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 S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(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:I}}function I(){return{value:void 0,done:!0}}return m.prototype=g,u(_,"constructor",g),u(g,"constructor",m),m.displayName=u(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},C(E.prototype),u(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(_),u(_,l,"Generator"),u(_,s,(function(){return this})),u(_,"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=T,S.prototype={constructor:S,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"),c=i.call(o,"finallyLoc");if(s&&c){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(!c)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:T(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 m},Of:function(){return s},gL:function(){return p},lm:function(){return a},nG:function(){return i},nr:function(){return u},ok:function(){return l},t$:function(){return d},tY:function(){return h},yR:function(){return f}});var r=n(13019),o=[];function i(e){return e||o}function a(e){return c(e,(function(e){return void 0!==e&&null!==e&&""!==e&&(!(e instanceof Array)||e.length>0)}))}function s(e){return c(e,(function(e){return null!==e}))}function c(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 l(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 f(e){return e}function m(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 L},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 f.$},isEmpty:function(){return v},isSafeInteger:function(){return b()},isString:function(){return D},keys:function(){return _.keys},lowerFirst:function(){return M},makeObject:function(){return C.V},matchAll:function(){return E},memoizeFunction:function(){return w.N},memoizeFunctionProperties:function(){return x.M},memoizeSelector:function(){return T},merge:function(){return I},neverGuard:function(){return p.k},neverGuardDefault:function(){return p.J},omitEmpty:function(){return d.lm},omitNull:function(){return d.Of},range:function(){return A},safeJoinStrings:function(){return O},sortObjectBy:function(){return P.z},startsWith:function(){return N},throwError:function(){return F.throwError},undefinedToNull:function(){return d.gL},uniq:function(){return H},uniqBy:function(){return B},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 c=n(43260),l=n.n(c);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l()((0,a.filterOutNull)(e)).join(",")}var d=n(18287),p=n(62813),h=n(81856),f=n(28278),m=n(76032),g=n.n(m);function v(e){return g()(e)}var y=n(96502),b=n.n(y),_=n(13019),C=n(61148);function E(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 w=n(8141),x=n(77465),k=Object.keys,S=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]}))},T=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 S(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&&S(r,a))return r;return r=a,a}};function I(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 A(e,t,n){return(0,o.__spreadArray)([],Array(e),!0).map((function(e,r){return(t||0)+r*(n||1)}))}var P=n(16038);function D(e){return"string"===typeof e}function R(e){return e.length?e[0].toUpperCase()+e.slice(1):e}function M(e){return e.length?e[0].toLowerCase()+e.slice(1):e}function N(e,t){return e.slice(0,t.length)===t}function L(e,t){return e.slice(0-t.length)===t}function O(e,t){return e.join(t)}var F=n(46912);function B(e,t){var n=e.map(t);return e.filter((function(e,r){return n.indexOf(t(e))===r}))}function H(e){return B(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 c=s.slice(0,s.length-1).join("-");if(o(c))return c;var l=a(c);if(l)return l}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,f=r;h<f.length;h++){var m=f[h];if(0===m.indexOf(d))return m}}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),c=n(91652);function l(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&&l(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,c.stringExists)(e,t)&&n?(0,s.getStringDescriptionWithPlaceholders)(e,n).stringToBeLocalized:(0,c.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=l},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),c=n(42138),l=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(m,"_").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,c.pseudoLocalize)(r);return Object.keys(n).reduce((function(e,t){return e.replace(t,n[t])}),b(o))}(t.text):t.text:!(0,l.stringExists)(e,n)&&t?t.text:(0,l.lookUpString)(e,n)}catch(r){return(0,l.handleLocalizationError)(r,n),""}}t.resolveString=p;var h=function(e,t){return function(n){try{return e(n)}catch(r){return(0,l.handleLocalizationError)(r,t),""}}};function f(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(m,"_").concat(r);n[e]=i,o[i]=t[e]}));var i=(0,c.pseudoLocalize)(y(e.text(n)));return(0,r.keys)(o).reduce((function(e,t){return e.replace(new RegExp(_(t),"g"),o[t])}),b(i))}(t,e):t.text(e)}),n):!(0,l.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,l.lookUpString)(e,n))}),n)}catch(i){return(0,l.handleLocalizationError)(i,n),function(){return""}}}t.resolveStringWithPlaceholders=f,t.lookupStringInStringProvider=function(e){return function(t){return function(n){return n?f(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)()),f(e,t,r)(n)};return n.toString=function(n){return void 0===n&&(n=(0,i.getDefaultStringProvider)()),(0,a.isDevLocalization)()&&t||!(0,l.stringExists)(e,n)&&t?(0,s.getStringDescriptionWithPlaceholders)(e,t).stringToBeLocalized:(0,l.lookUpString)(e,n)},n.key=e,n};var m="0.7059175321136157";var g="->INF::",v="".concat(m,"_-1");function y(e){return e.replace(new RegExp(g,"g"),v)}function b(e){return e.replace(new RegExp(v,"g"),g)}function _(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}t.pseudoLocalizePluralWithPlaceholders=function(e,t){var n={},o={};(0,r.keys)(t).forEach((function(e,r){var i="".concat(m,"_").concat(r);n[e]=i,o[i]=t[e]}));var i=e(n);return(0,r.keys)(i).forEach((function(e){var t=(0,c.pseudoLocalize)(y(i[e]));i[e]=(0,r.keys)(o).reduce((function(e,t){return e.replace(new RegExp(_(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(),c={},l=0,u=(0,o.keys)(t.placeholders);l<u.length;l++){var d=u[l];c[d]=(0,o.isString)(d)?"{".concat(n.indexOf(d),"}"):(0,a.throwError)("Placeholder name ".concat(d," is not a string"))}var p=t.text(c),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),f=(0,i.filterOutNull)(h).map(s).filter(Boolean).join(" ");return n.forEach((function(e,t){f=f.replace("{"+e+"}","{"+t+"}")})),{key:e,stringToBeLocalized:p,comment:f,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 c=n(72097);var l=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,c=(0,i.memoizeFunction)((function(e,t){var n=u(t);return function(t){return Promise.resolve(e===t?n:{})}}));function l(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 c=r[s];"string"===typeof c?t[n+s]=c:"object"===typeof c&&e(n+s+".",c)}}}("",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 l(c(e,t),n)},t.addStringMapLoader=l,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]},c="undefined"!==typeof console?console:void 0,l={trace:(null!==(r=null===c||void 0===c?void 0:c.trace)&&void 0!==r?r:s).bind(c),warn:(null!==(o=null===c||void 0===c?void 0:c.warn)&&void 0!==o?o:s).bind(c),table:(null!==(i=null===c||void 0===c?void 0:c.table)&&void 0!==i?i:s).bind(c)},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},f={},m="undefined"===typeof WeakMap?null:WeakMap,g=function(e,t){if(void 0===t&&(t=100),!m)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 c,u,h,f,m=[],g=0;g<arguments.length;g++)m[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 _=function(e){var t=v(m[e]);if(!(null===(c=b.map)||void 0===c?void 0:c.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){l.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){l.table(t),Object.keys(t).forEach((function(r){var o=t[r],i=n[r];o!==i&&d()(o,i)&&(l.warn("Duplication present in child prop '".concat(r,"'")),e(o,i))}))}(r,t),l.warn(o),l.warn(s)}i.set(b,(0,a.__spreadArray)((0,a.__spreadArray)([],(0,a.__read)(n),!1),[t],!1))}b=null===(f=b.map)||void 0===f?void 0:f.get(t)},C=0;C<m.length;C++)_(C);return b.hasOwnProperty("value")||(b.value=e.apply(void 0,(0,a.__spreadArray)([],(0,a.__read)(m),!1)),r++),b.value}};function v(e){return e?"object"===typeof e||"function"===typeof e?e:(f[e]||(f[e]={val:e}),f[e]):h}function y(){return{map:m?new m: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)),c=s.next();!c.done;c=s.next()){var l=c.value,u=e[l];if("function"===typeof u){var d=u;a[l]=(0,o.N)(d.bind(a))}else a[l]=u}}catch(p){t={error:p}}finally{try{c&&!c.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 m},getStringForRange:function(){return d},mapMidgardLocaleToCLDRLocale:function(){return u},mapNumberToRangeForLocale:function(){return p},parsePluralString:function(){return f}});var r=n(73930),o=n(96502),i=n.n(o),a=n(11481),s=n.n(a),c=["zero","one","two","few","many","other"],l={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)(l[t].exec(e)||[],2)[1];return void 0===n?"":n}function p(e,t){return s()(t,e)}function h(e){var t="";return c.forEach((function(n){e[n]&&(t+=" ".concat(n,"{").concat(e[n],"}"))})),"".concat("{count, plural,").concat(t).concat("}")}function f(e,t,n){return d(e,p(t,n)||"other")}function m(e,t,n){if(t<0||t!==1/0&&!i()(t))throw new Error("count must be a positive integer or Infinity");return f(e,t,n)}function g(e,t,n){if(void 0===t)return e;try{return m(e,t,n||"en")}catch(r){return e}}},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 c="undefined"!==typeof n.g?n.g:self,l=c.MutationObserver||c.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 l?function(e){var t=1,n=new l(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},95803:function(e,t,n){e.exports=n(23975)},41873:function(e,t,n){"use strict";var r=n(17968),o=n(52433),i=n(79645),a=n(45557),s=n(18020),c=n(4493),l=n(95486),u=n(18539);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,h=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(f){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}}if(f.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||l(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&r.forEach(p,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),h&&"json"!==h&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},23975:function(e,t,n){"use strict";var r=n(17968),o=n(89926),i=n(15993),a=n(38838);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(34845));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(47991),c.CancelToken=n(68460),c.isCancel=n(74070),c.all=function(e){return Promise.all(e)},c.spread=n(33287),c.isAxiosError=n(42118),e.exports=c,e.exports.default=c},47991:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},68460:function(e,t,n){"use strict";var r=n(47991);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},74070:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},15993:function(e,t,n){"use strict";var r=n(17968),o=n(45557),i=n(78910),a=n(15585),s=n(38838),c=n(9661),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var p=n.shift(),h=n.shift();try{d=p(d)}catch(f){h(f);break}}try{o=a(d)}catch(f){return Promise.reject(f)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},78910:function(e,t,n){"use strict";var r=n(17968);function o(){this.handlers=[]}o.prototype.use=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},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},18020:function(e,t,n){"use strict";var r=n(1612),o=n(34183);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},18539:function(e,t,n){"use strict";var r=n(19950);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},15585:function(e,t,n){"use strict";var r=n(17968),o=n(64571),i=n(74070),a=n(34845);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},19950:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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:this.config,code:this.code}},e}},38838:function(e,t,n){"use strict";var r=n(17968);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,l),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},52433:function(e,t,n){"use strict";var r=n(18539);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},64571:function(e,t,n){"use strict";var r=n(17968),o=n(34845);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},34845:function(e,t,n){"use strict";var r=n(40475),o=n(17968),i=n(31872),a=n(19950),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof r&&"[object process]"===Object.prototype.toString.call(r))&&(e=n(41873)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(s)})),e.exports=l},89926:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},45557:function(e,t,n){"use strict";var r=n(17968);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},34183:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},79645:function(e,t,n){"use strict";var r=n(17968);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.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(){}}},1612:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},42118:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},95486:function(e,t,n){"use strict";var r=n(17968);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(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=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},31872:function(e,t,n){"use strict";var r=n(17968);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4493:function(e,t,n){"use strict";var r=n(17968),o=["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"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},33287:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9661:function(e,t,n){"use strict";var r=n(19521),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},17968:function(e,t,n){"use strict";var r=n(89926),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},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 c(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 c;for(var l=n?new Float32Array(11):new Array(11),u=0;u<11;++u)l[u]=a(u*t,e,o);function d(n){for(var r=0,i=1;10!==i&&l[i]<=n;++i)r+=t;--i;var c=r+(n-l[i])/(l[i+1]-l[i])*t,u=s(c,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,c,e,o):0===u?c:function(e,t,n,r,o){var i,s,c=0;do{(i=a(s=t+(n-t)/2,r,o)-e)>0?n=s:t=s}while(Math.abs(i)>1e-7&&++c<10);return s}(n,r,r+t,e,o)}return function(e){return 0===e?0:1===e?1:a(d(e),r,i)}}},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),c=n(31540),l=n(5147),u=n(73920),d=n(3120).f,p=n(17929),h=n(12310),f=n(40822),m=n(64499),g=i.DataView,v=g&&g.prototype,y=i.Int8Array,b=y&&y.prototype,_=i.Uint8ClampedArray,C=_&&_.prototype,E=y&&p(y),w=b&&p(b),x=Object.prototype,k=x.isPrototypeOf,S=f("toStringTag"),T=m("TYPED_ARRAY_TAG"),I=!(!i.ArrayBuffer||!g),A=I&&!!h&&"Opera"!==c(i.opera),P=!1,D={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(D,c(e))};for(r in D)i[r]||(A=!1);if((!A||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},A))for(r in D)i[r]&&h(i[r],E);if((!A||!w||w===x)&&(w=E.prototype,A))for(r in D)i[r]&&h(i[r].prototype,w);if(A&&p(C)!==w&&h(C,w),o&&!s(w,S))for(r in P=!0,d(w,S,{get:function(){return a(this)?this[T]:void 0}}),D)i[r]&&l(i[r],T,r);I&&h&&p(v)!==x&&h(v,x),e.exports={NATIVE_ARRAY_BUFFER:I,NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:P&&T,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(k.call(E,e))return e}else for(var t in D)if(s(D,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 D){var a=i[r];a&&s(a.prototype,e)&&delete a.prototype[e]}w[e]&&!n||u(w,e,n?t:A&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(o){if(h){if(n)for(r in D)(a=i[r])&&s(a,e)&&delete a[e];if(E[e]&&!n)return;try{return u(E,e,n?t:A&&y[e]||t)}catch(c){}}for(r in D)!(a=i[r])||a[e]&&!n||u(a,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(D,t)},isTypedArray:R,TypedArray:E,TypedArrayPrototype:w}},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),c=n(81949),l=n(93932),u=n(68606),d=n(60497),p=n(18528),h=n(21170),f=n(57472).f,m=n(3120).f,g=n(90112),v=n(31149),y=n(84392),b=y.get,_=y.set,C="ArrayBuffer",E="DataView",w="Wrong index",x=r.ArrayBuffer,k=x,S=r.DataView,T=r.RangeError,I=h.pack,A=h.unpack,P=function(e){return[255&e]},D=function(e){return[255&e,e>>8&255]},R=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},M=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return I(e,23,4)},L=function(e){return I(e,52,8)},O=function(e,t){m(e.prototype,t,{get:function(){return b(this)[t]}})},F=function(e,t,n,r){var o=p(n),i=b(e);if(o+t>i.byteLength)throw T(w);var a=b(i.buffer).bytes,s=o+i.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},B=function(e,t,n,r,o,i){var a=p(n),s=b(e);if(a+t>s.byteLength)throw T(w);for(var c=b(s.buffer).bytes,l=a+s.byteOffset,u=r(+o),d=0;d<t;d++)c[l+d]=u[i?d:t-d-1]};if(i){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),x.name!=C}))){for(var H,z=(k=function(e){return l(this,k),new x(p(e))}).prototype=x.prototype,V=f(x),U=0;V.length>U;)(H=V[U++])in k||a(k,H,x[H]);z.constructor=k}var W=new S(new k(2)),j=S.prototype.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||s(S.prototype,{setInt8:function(e,t){j.call(this,e,t<<24>>24)},setUint8:function(e,t){j.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){l(this,k,C);var t=p(e);_(this,{bytes:g.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},S=function(e,t,n){l(this,S,E),l(e,k,E);var r=b(e).byteLength,i=u(t);if(i<0||i>r)throw T("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw T("Wrong length");_(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(O(k,"byteLength"),O(S,"buffer"),O(S,"byteLength"),O(S,"byteOffset")),s(S.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return M(F(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return M(F(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(F(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(F(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){B(this,1,e,P,t)},setUint8:function(e,t){B(this,1,e,P,t)},setInt16:function(e,t){B(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){B(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){B(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){B(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){B(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){B(this,8,e,L,t,arguments.length>2?arguments[2]:void 0)}});v(k,C),v(S,E),e.exports={ArrayBuffer:k,DataView:S}},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),c=o(e,s),l=o(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:o(u,s))-l,s-c),p=1;for(l<c&&c<l+d&&(p=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:delete n[c],c+=p,l+=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),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>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),c=n(40616),l=n(9117);e.exports=function(e){var t,n,u,d,p,h=o(e),f="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,v=void 0!==g,y=0,b=l(h);if(v&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||f==Array&&a(b))for(n=new f(t=s(h.length));t>y;y++)c(n,y,v?g(h[y],y):h[y]);else for(p=(d=b.call(h)).next,n=new f;!(u=p.call(d)).done;y++)c(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,c=r(t),l=o(c.length),u=i(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[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),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,p=5==e||d;return function(h,f,m,g){for(var v,y,b=i(h),_=o(b),C=r(f,m,3),E=a(_.length),w=0,x=g||s,k=t?x(h,E):n?x(h,0):void 0;E>w;w++)if((p||w in _)&&(y=C(v=_[w],w,b),e))if(t)k[w]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:c.call(k,v)}else if(u)return!1;return d?-1:l||u?u:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},36340:function(e,t,n){"use strict";var r=n(76616),o=n(68606),i=n(60497),a=n(55085),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf");e.exports=l||u?function(e){if(l)return c.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}:c},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,c){r(n);var l=o(t),u=i(l),d=a(l.length),p=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(p in u){c=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&&(c=n(c,u[p],p,l));return c}};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),c=n(53050),l=n(39120),u=n(5831),d=n(9522),p=n(88505).fastKey,h=n(84392),f=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t),f(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&c(r,e[l],e,n)})),h=m(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=m(t),i=m(r);l(e,t,(function(e,t){f(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),c=n(53050),l=n(92081),u=n(44938),d=n(84392),p=d.set,h=d.getterFor,f=l.find,m=l.findIndex,g=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return f(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=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,r){s(e,d,t),p(e,{type:t,id:g++,frozen:void 0}),void 0!=r&&c(r,e[l],e,n)})),f=h(t),m=function(e,t,n){var r=f(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=f(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=f(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=f(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 m(this,e,t)}}:{add:function(e){return m(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),c=n(53050),l=n(93932),u=n(97955),d=n(81949),p=n(73340),h=n(31149),f=n(48461);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),v=m?"set":"add",y=o[e],b=y&&y.prototype,_=y,C={},E=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()})))))_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(i(e,!0)){var w=new _,x=w[v](g?{}:-0,1)!=w,k=d((function(){w.has(1)})),S=p((function(e){new y(e)})),T=!g&&d((function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)}));S||((_=t((function(t,n){l(t,_,e);var r=f(new y,t,_);return void 0!=n&&c(n,r[v],r,m),r}))).prototype=b,b.constructor=_),(k||T)&&(E("delete"),E("has"),m&&E("get")),(T||x)&&E(v),g&&b.clear&&delete b.clear}return C[e]=_,r({global:!0,forced:_!=y},C),h(_,e),g||n.setStrong(_,e,m),_}},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,c=i.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(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),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),s[l]=c,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),c=n(5147),l=n(73920),u=n(40822),d=n(27410),p=n(84759),h=n(5709),f=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,u,h,C,E){o(n,t,u);var w,x,k,S=function(e){if(e===h&&D)return D;if(!m&&e in A)return A[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",I=!1,A=e.prototype,P=A[g]||A["@@iterator"]||h&&A[h],D=!m&&P||S(h),R="Array"==t&&A.entries||P;if(R&&(w=i(R.call(new e)),f!==Object.prototype&&w.next&&(d||i(w)===f||(a?a(w,f):"function"!=typeof w[g]&&c(w,g,_)),s(w,T,!0,!0),d&&(p[T]=_))),h==y&&P&&P.name!==y&&(I=!0,D=function(){return P.call(this)}),d&&!E||A[g]===D||c(A,g,D),p[t]=D,h)if(x={values:S(y),keys:C?D:S(v),entries:S(b)},E)for(k in x)(m||I||!(k in A))&&l(A,k,x[k]);else r({target:t,proto:!0,forced:m||I},x);return x}},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),c=n(43566),l=n(52501);e.exports=function(e,t){var n,u,d,p,h,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(h=o(n,u))&&h.value:n[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p===typeof d)continue;c(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),c=a("species"),l=!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)})),f=h&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!h||!f||"replace"===e&&!l||"split"===e&&!u){var m=/./[p],g=n(p,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:m.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,c,l,u,d){for(var p,h=c,f=0,m=!!u&&i(u,d,3);f<s;){if(f in a){if(p=m?m(a[f],f,n):a[f],l>0&&r(p))h=e(t,n,p,o(p.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=p}h++}f++}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,c){var l,u,d,p=new Array(c),h=8*c-s-1,f=(1<<h)-1,m=f>>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,l=f):(l=o(i(e)/a),e*(d=r(2,-l))<1&&(l--,d*=2),(e+=l+m>=1?g/d:g*r(2,1-m))*d>=2&&(l++,d/=2),l+m>=f?(u=0,l=f):l+m>=1?(u=(e*d-1)*r(2,s),l+=m):(u=e*r(2,m-1)*r(2,s),l=0));s>=8;p[y++]=255&u,u/=256,s-=8);for(l=l<<s|u,h+=s;h>0;p[y++]=255&l,l/=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,c=s>>1,l=a-7,u=i-1,d=e[u--],p=127&d;for(d>>=7;l>0;p=256*p+e[u],u--,l-=8);for(o=p&(1<<-l)-1,p>>=-l,l+=n;l>0;o=256*o+e[u],u--,l-=8);if(0===p)p=1-c;else{if(p===s)return o?NaN:d?-1/0:t;o+=r(2,n),p-=c}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),c=n(56171),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},p=function(e){a(e,l,{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,l)){if(!d(e))return"F";if(!t)return"E";p(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!d(e))return!0;if(!t)return!1;p(e)}return e[l].weakData},onFreeze:function(e){return c&&h.REQUIRED&&d(e)&&!i(e,l)&&p(e),e}};r[l]=!0},84392:function(e,t,n){var r,o,i,a=n(26071),s=n(3380),c=n(97955),l=n(5147),u=n(44938),d=n(57170),p=n(49901),h=s.WeakMap;if(a){var f=new h,m=f.get,g=f.has,v=f.set;r=function(e,t){return v.call(f,e,t),t},o=function(e){return m.call(f,e)||{}},i=function(e){return g.call(f,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){return l(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(!c(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==l||n!=c&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=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),c=n(99790),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var p,h,f,m,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(f=0,m=i(e.length);m>f;f++)if((g=u?b(r(y=e[f])[0],y[1]):b(e[f]))&&g instanceof l)return g;return new l(!1)}p=h.call(e)}for(v=p.next;!(y=v.call(p)).done;)if("object"==typeof(g=c(p,b,y.value,u))&&g&&g instanceof l)return g;return new l(!1)}).stop=function(e){return new l(!0,e)}},5709:function(e,t,n){"use strict";var r,o,i,a=n(17929),s=n(5147),c=n(44938),l=n(40822),u=n(27410),d=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),void 0==r&&(r={}),u||c(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),c=i(2,127)*(2-s),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),u=r(e);return i<l?u*(i/l/s+1/a-1/a)*l*s:(n=(t=(1+s/a)*i)-(t-i))>c||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,c,l,u,d=n(3380),p=n(5693).f,h=n(40071),f=n(64581).set,m=n(85954),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,y=d.Promise,b="process"==h(v),_=p(d,"queueMicrotask"),C=_&&_.value;C||(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&&!m?(s=!0,c=document.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(l=y.resolve(void 0),u=l.then,a=function(){u.call(l,r)}):a=function(){f.call(d,r)}),e.exports=C||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),c=n(25904),l=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=c(e),o=arguments.length,u=1,d=a.f,p=s.f;o>u;)for(var h,f=l(arguments[u++]),m=d?i(f).concat(d(f)):i(f),g=m.length,v=0;g>v;)h=m[v++],r&&!p.call(f,h)||(n[h]=f[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),c=n(67609),l=n(57170)("IE_PROTO"),u=function(){},d=function(){var e,t=c("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[l]=e):n=d(),void 0===t?n:o(n,t)},a[l]=!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,c=0;s>c;)o.f(e,n=r[c++],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),c=n(44938),l=n(75246),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(n){}if(c(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"),c=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?c: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),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},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),c=o(s),l=c.length,u=0,d=[];l>u;)n=c[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]/,c=8!==a(i+"08")||22!==a(i+"0x16");e.exports=c?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)},c=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))},l=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,l,u=e.length,d=128,p=0,h=72;for(r=0;r<e.length;r++)(l=e[r])<128&&n.push(a(l));var f=n.length,m=f;for(f&&n.push("-");m<u;){var g=t;for(r=0;r<e.length;r++)(l=e[r])>=d&&l<g&&(g=l);var v=m+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((l=e[r])<d&&++p>t)throw RangeError(o);if(l==d){for(var y=p,b=36;;b+=36){var _=b<=h?1:b>=h+26?26:b-h;if(y<_)break;var C=y-_,E=36-_;n.push(a(s(_+C%E))),y=i(C/E)}n.push(a(s(y))),h=c(p,v,m==f),p=0,++m}}++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--"+l(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),c=n(84392),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!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?(c?!p&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(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}(),c=void 0!==/()??/.exec("")[1];(s||c)&&(a=function(e){var t,n,a,l,u=this;return c&&(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),c&&a&&a.length>1&&i.call(a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=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)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+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 c,l,u=String(i(t)),d=u.length,p=void 0===s?" ":String(s),h=r(n);return h<=d||""==p?u:(c=h-d,(l=o.call(p,a(c/p.length))).length>c&&(l=l.slice(0,c)),e?u+l:l+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),c=n(40071),l=n(76525),u=n(36320),d=n(67609),p=n(85954),h=a.location,f=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},C="onreadystatechange",E=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){E(e)}},x=function(e){E(e.data)},k=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};f&&m||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},"process"==c(g)?r=function(e){g.nextTick(w(e))}:y&&y.now?r=function(e){y.now(w(e))}:v&&!p?(i=(o=new v).port2,o.port1.onmessage=x,r=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)?r=C in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),E(e)}}:function(e){setTimeout(w(e),0)}:(r=k,a.addEventListener("message",x,!1))),e.exports={set:f,clear:m}},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),c=n(80922),l=n(93932),u=n(80106),d=n(5147),p=n(60497),h=n(18528),f=n(94918),m=n(37364),g=n(44938),v=n(31540),y=n(97955),b=n(25788),_=n(12310),C=n(57472).f,E=n(83014),w=n(92081).forEach,x=n(5831),k=n(3120),S=n(5693),T=n(84392),I=n(48461),A=T.get,P=T.set,D=k.f,R=S.f,M=Math.round,N=o.RangeError,L=c.ArrayBuffer,O=c.DataView,F=s.NATIVE_ARRAY_BUFFER_VIEWS,B=s.TYPED_ARRAY_TAG,H=s.TypedArray,z=s.TypedArrayPrototype,V=s.aTypedArrayConstructor,U=s.isTypedArray,W="BYTES_PER_ELEMENT",j="Wrong length",q=function(e,t){for(var n=0,r=t.length,o=new(V(e))(r);r>n;)o[n]=t[n++];return o},G=function(e,t){D(e,t,{get:function(){return A(this)[t]}})},K=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},Y=function(e,t){return U(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Q=function(e,t){return Y(e,t=m(t,!0))?u(2,e[t]):R(e,t)},X=function(e,t,n){return!(Y(e,t=m(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?D(e,t,n):(e[t]=n.value,e)};i?(F||(S.f=Q,k.f=X,G(z,"buffer"),G(z,"byteOffset"),G(z,"byteLength"),G(z,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:Q,defineProperty:X}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,u="set"+e,m=o[s],g=m,v=g&&g.prototype,k={},S=function(e,t){D(e,t,{get:function(){return function(e,t){var n=A(e);return n.view[c](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=A(e);n&&(r=(r=M(r))<0?0:r>255?255:255&r),o.view[u](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};F?a&&(g=t((function(e,t,n,r){return l(e,g,s),I(y(t)?K(t)?void 0!==r?new m(t,f(n,i),r):void 0!==n?new m(t,f(n,i)):new m(t):U(t)?q(g,t):E.call(g,t):new m(h(t)),e,g)})),_&&_(g,H),w(C(m),(function(e){e in g||d(g,e,m[e])})),g.prototype=v):(g=t((function(e,t,n,r){l(e,g,s);var o,a,c,u=0,d=0;if(y(t)){if(!K(t))return U(t)?q(g,t):E.call(g,t);o=t,d=f(n,i);var m=t.byteLength;if(void 0===r){if(m%i)throw N(j);if((a=m-d)<0)throw N(j)}else if((a=p(r)*i)+d>m)throw N(j);c=a/i}else c=h(t),o=new L(a=c*i);for(P(e,{buffer:o,byteOffset:d,byteLength:a,length:c,view:new O(o)});u<c;)S(e,u++)})),_&&_(g,H),v=g.prototype=b(z)),v.constructor!==g&&d(v,"constructor",g),B&&d(v,B,s),k[s]=g,r({global:!0,forced:g!=m,sham:!F},k),W in g||d(g,W,i),W in v||d(v,W,i),x(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),c=n(70671).aTypedArrayConstructor;e.exports=function(e){var t,n,l,u,d,p,h=r(e),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,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&&f>2&&(m=s(m,arguments[2],2)),n=o(h.length),l=new(c(this))(n),t=0;n>t;t++)l[t]=g?m(h[t],t):h[t];return l}},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,c=r.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(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,c=s&&s.versions,l=c&&c.v8;l?o=(r=l.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),c=n(44651),l=o("wks"),u=r.Symbol,d=c?u:a;e.exports=function(e){return i(l,e)||(s&&i(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[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",c=i.ArrayBuffer;r({global:!0,forced:o.ArrayBuffer!==c},{ArrayBuffer:c}),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),c=n(60497),l=n(40616),u=n(45223),d=n(9679),p=n(40822),h=n(81363),f=p("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!o((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[f];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=c(i.length))>m)throw TypeError(g);for(n=0;n<o;n++,p++)n in i&&l(d,p,i[n])}else{if(p>=m)throw TypeError(g);l(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),c=n(45223);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return s(e),(t=c(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),c=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=c(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,c=i("indexOf");r({target:"Array",proto:!0,forced:s||c},{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),c="Array Iterator",l=a.set,u=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,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,c=o!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:c||l},{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),c=n(76616),l=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,f=c(this),m=s(f.length),g=a(e,m),v=a(void 0===t?m:t,m);if(i(f)&&("function"!=typeof(n=f.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(f,g,v);for(r=new(void 0===n?Array:n)(h(v-g,0)),u=0;g<v;g++,u++)g in f&&l(r,u,f[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),c=[],l=c.sort,u=a((function(){c.sort(void 0)})),d=a((function(){c.sort(null)})),p=s("sort");r({target:"Array",proto:!0,forced:u||!d||p},{sort:function(e){return void 0===e?l.call(i(this)):l.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),c=n(45223),l=n(40616),u=n(9679),d=Math.max,p=Math.min,h=9007199254740991,f="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!u("splice")},{splice:function(e,t){var n,r,u,m,g,v,y=s(this),b=a(y.length),_=o(e,b),C=arguments.length;if(0===C?n=r=0:1===C?(n=0,r=b-_):(n=C-2,r=p(d(i(t),0),b-_)),b+n-r>h)throw TypeError(f);for(u=c(y,r),m=0;m<r;m++)(g=_+m)in y&&l(u,m,y[g]);if(u.length=r,n<r){for(m=_;m<b-r;m++)v=m+n,(g=m+r)in y?y[v]=y[g]:delete y[v];for(m=b;m>b-r+n;m--)delete y[m-1]}else if(n>r)for(m=b-r;m>_;m--)v=m+n-1,(g=m+r-1)in y?y[v]=y[g]:delete y[v];for(m=0;m<n;m++)y[m+_]=arguments[m+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 ([^ (]*)/,c="name";r&&!(c in i)&&o(i,c,{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,c=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)+c: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,c=arguments.length,l=0;s<c;)l<(n=i(arguments[s++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*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,c=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))*(c/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),c=n(40071),l=n(48461),u=n(37364),d=n(81949),p=n(25788),h=n(57472).f,f=n(5693).f,m=n(3120).f,g=n(20918).trim,v="Number",y=o.Number,b=y.prototype,_=c(p(b))==v,C=function(e){var t,n,r,o,i,a,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=g(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,s=0;s<a;s++)if((c=i.charCodeAt(s))<48||c>o)return NaN;return parseInt(i,r)}return+l};if(i(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var E,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(_?d((function(){b.valueOf.call(n)})):c(n)!=v)?l(new y(C(t)),n,w):C(t)},x=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;x.length>k;k++)s(y,E=x[k])&&!s(w,E)&&m(w,E,f(y,E));w.prototype=b,b.constructor=w,a(o,v,w)}},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),c=1..toFixed,l=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:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}))},{toFixed:function(e){var t,n,r,s,c=i(this),d=o(e),p=[0,0,0,0,0,0],h="",f="0",m=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*p[n],p[n]=r%1e7,r=l(r/1e7)},g=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=l(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(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(h="-",c=-c),c>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}(c*u(2,69,1))-69)<0?c*u(2,-t,1):c/u(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(0,n),r=d;r>=7;)m(1e7,0),r-=7;for(m(u(10,r,1),0),r=t-1;r>=23;)g(1<<23),r-=23;g(1<<r),m(1,1),g(2),f=v()}else m(0,n),m(1<<-t,0),f=v()+a.call("0",d);return f=d>0?h+((s=f.length)<=d?"0."+a.call("0",d-s)+f:f.slice(0,s-d)+"."+f.slice(s-d)):h+f}})},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),c=n(3120);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){c.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),c=n(3120);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){c.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,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(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),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,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),c=n(40616);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),u={},d=0;l.length>d;)void 0!==(n=o(r,t=l[d++]))&&c(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),c=n(17929),l=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=l(n,r))return t.get}while(n=c(n))}})},79471:function(e,t,n){"use strict";var r=n(12791),o=n(9522),i=n(22283),a=n(25904),s=n(37364),c=n(17929),l=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=l(n,r))return t.set}while(n=c(n))}})},90224:function(e,t,n){var r=n(12791),o=n(97955),i=n(88505).onFreeze,a=n(56171),s=n(81949),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{preventExtensions:function(e){return c&&o(e)?c(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),c=Object.seal;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{seal:function(e){return c&&o(e)?c(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),c=n(38660),l=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=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(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),c=n(27410),l=n(3380),u=n(72591),d=n(29044),p=n(73920),h=n(90528),f=n(31149),m=n(5831),g=n(97955),v=n(88928),y=n(93932),b=n(40071),_=n(49252),C=n(53050),E=n(73340),w=n(38660),x=n(64581).set,k=n(96337),S=n(84945),T=n(89591),I=n(752),A=n(42454),P=n(84392),D=n(52501),R=n(40822),M=n(81363),N=R("species"),L="Promise",O=P.get,F=P.set,B=P.getterFor(L),H=d,z=l.TypeError,V=l.document,U=l.process,W=u("fetch"),j=I.f,q=j,G="process"==b(U),K=!!(V&&V.createEvent&&l.dispatchEvent),Y="unhandledrejection",Q=D(L,(function(){if(!(_(H)!==String(H))){if(66===M)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!H.prototype.finally)return!0;if(M>=51&&/native code/.test(H))return!1;var e=H.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[N]=t,!(e.then((function(){}))instanceof t)})),X=Q||!E((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,c,l,u=r[a++],d=i?u.ok:u.fail,p=u.resolve,h=u.reject,f=u.domain;try{d?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===d?s=o:(f&&f.enter(),s=d(o),f&&(f.exit(),l=!0)),s===u.promise?h(z("Promise-chain cycle")):(c=Z(s))?c.call(s,p,h):p(s)):h(o)}catch(m){f&&!l&&f.exit(),h(m)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},$=function(e,t,n){var r,o;K?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):e===Y&&T("Unhandled promise rejection",n)},ee=function(e,t){x.call(l,(function(){var n,r=t.value;if(te(t)&&(n=A((function(){G?U.emit("unhandledRejection",r,e):$(Y,e,r)})),t.rejection=G||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){x.call(l,(function(){G?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 z("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)}}};Q&&(H=function(e){y(this,H,L),v(e),r.call(this);var t=O(this);try{e(re(ie,this,t),re(oe,this,t))}catch(n){oe(this,t,n)}},(r=function(e){F(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H.prototype,{then:function(e,t){var n=B(this),r=j(w(this,H));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=G?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=O(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},I.f=j=function(e){return e===H||e===i?new o(e):q(e)},c||"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 S(H,W.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Q},{Promise:H}),f(H,L,!1,!0),m(L),i=u(L),s({target:L,stat:!0,forced:Q},{reject:function(e){var t=j(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:c||Q},{resolve:function(e){return S(c&&this===i?H:this,e)}}),s({target:L,stat:!0,forced:X},{all:function(e){var t=this,n=j(t),r=n.resolve,o=n.reject,i=A((function(){var n=v(t.resolve),i=[],a=0,s=1;C(e,(function(e){var c=a++,l=!1;i.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,o=A((function(){var o=v(t.resolve);C(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),c=o("Reflect","apply"),l=Function.apply;r({target:"Reflect",stat:!0,forced:!s((function(){c((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),c?c(e,t,n):l.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),c=n(25788),l=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(){}))})),f=p||h;r({target:"Reflect",stat:!0,forced:f,sham:f},{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(l.apply(e,r))}var o=n.prototype,u=c(s(o)?o:Object.prototype),f=Function.apply.call(e,u,t);return s(f)?f: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),c=n(17929);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,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(l=c(t))?e(l,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),c=n(3120),l=n(5693),u=n(17929),d=n(80106);r({target:"Reflect",stat:!0,forced:s((function(){var e=c.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],f=l.f(o(t),n);if(!f){if(i(p=u(t)))return e(p,n,r,h);f=d(0)}if(a(f,"value")){if(!1===f.writable||!i(h))return!1;if(s=l.f(h,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,c.f(h,n,s)}else c.f(h,n,d(0,r));return!0}return void 0!==f.set&&(f.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,c=n(57472).f,l=n(42227),u=n(1758),d=n(73920),p=n(81949),h=n(5831),f=n(40822)("match"),m=o.RegExp,g=m.prototype,v=/a/g,y=/a/g,b=new m(v)!==v;if(r&&i("RegExp",!b||p((function(){return y[f]=!1,m(v)!=v||m(y)==y||"/a/i"!=m(v,"i")})))){for(var _=function(e,t){var n=this instanceof _,r=l(e),o=void 0===t;return!n&&r&&e.constructor===_&&o?e:a(b?new m(r&&!o?e.source:e,t):m((r=e instanceof _)?e.source:e,r&&o?u.call(e):t),n?this:g,_)},C=function(e){e in _||s(_,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},E=c(m),w=0;E.length>w;)C(E[w++]);g.constructor=_,_.prototype=g,d(o,"RegExp",_)}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",c=RegExp.prototype,l=c.toString,u=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.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 c)?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),c=n(72362),l=n(27410),u="".endsWith,d=Math.min,p=c("endsWith");r({target:"String",proto:!0,forced:!(!l&&!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),c=String(e);return u?u.call(t,c,o):t.slice(o-c.length,o)===c}})},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,c=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(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),c=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),l=String(this);if(!a.global)return c(a,l);var u=a.unicode;a.lastIndex=0;for(var d,p=[],h=0;null!==(d=c(a,l));){var f=String(d[0]);p[h]=f,""===f&&(a.lastIndex=s(l,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),c=n(40840),l=n(42672),u=n(47905),d=Math.max,p=Math.min,h=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n){return[function(n,r){var o=c(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 c=n(t,e,this,i);if(c.done)return c.value;var h=o(e),f=String(this),m="function"===typeof i;m||(i=String(i));var g=h.global;if(g){var v=h.unicode;h.lastIndex=0}for(var y=[];;){var b=u(h,f);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(h.lastIndex=l(f,a(h.lastIndex),v))}for(var _,C="",E=0,w=0;w<y.length;w++){b=y[w];for(var x=String(b[0]),k=d(p(s(b.index),f.length),0),S=[],T=1;T<b.length;T++)S.push(void 0===(_=b[T])?_:String(_));var I=b.groups;if(m){var A=[x].concat(S,k,f);void 0!==I&&A.push(I);var P=String(i.apply(void 0,A))}else P=r(x,f,k,S,I,i);k>=E&&(C+=f.slice(E,k)+P,E=k+x.length)}return C+f.slice(E)}];function r(e,n,r,o,a,s){var c=r+e.length,l=o.length,u=m;return void 0!==a&&(a=i(a),u=f),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(c);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>l){var d=h(u/10);return 0===d?t:d<=l?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),c=String(this),l=i.lastIndex;a(l,0)||(i.lastIndex=0);var u=s(i,c);return a(i.lastIndex,l)||(i.lastIndex=l),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),c=n(42672),l=n(60497),u=n(47905),d=n(10569),p=n(81949),h=[].push,f=Math.min,m=4294967295,g=!p((function(){return!RegExp(m,"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?m:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,c,l,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,g=new RegExp(e.source,p+"g");(s=d.call(g,r))&&!((c=g.lastIndex)>f&&(u.push(r.slice(f,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),l=s[0].length,f=c,u.length>=i));)g.lastIndex===s.index&&g.lastIndex++;return f===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(f)),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),_=void 0===o?m:o>>>0;if(0===_)return[];if(0===p.length)return null===u(b,p)?[p]:[];for(var C=0,E=0,w=[];E<p.length;){b.lastIndex=g?E:0;var x,k=u(b,g?p:p.slice(E));if(null===k||(x=f(l(b.lastIndex+(g?0:E)),p.length))===C)E=c(p,E,v);else{if(w.push(p.slice(C,E)),w.length===_)return w;for(var S=1;S<=k.length-1;S++)if(w.push(k[S]),w.length===_)return w;E=C=x}}return w.push(p.slice(C)),w}]}),!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),c=n(72362),l=n(27410),u="".startsWith,d=Math.min,p=c("startsWith");r({target:"String",proto:!0,forced:!(!l&&!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),c=n(3120).f,l=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};l(p,u);var h=p.prototype=u.prototype;h.constructor=p;var f=h.toString,m="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(a(d,e))return"";var n=m?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),c=n(44478),l=n(44651),u=n(81949),d=n(44938),p=n(10117),h=n(97955),f=n(67695),m=n(25904),g=n(76616),v=n(37364),y=n(80106),b=n(25788),_=n(31900),C=n(57472),E=n(71997),w=n(13455),x=n(5693),k=n(3120),S=n(56346),T=n(5147),I=n(73920),A=n(7671),P=n(57170),D=n(49901),R=n(64499),M=n(40822),N=n(34256),L=n(82054),O=n(31149),F=n(84392),B=n(92081).forEach,H=P("hidden"),z="Symbol",V=M("toPrimitive"),U=F.set,W=F.getterFor(z),j=Object.prototype,q=o.Symbol,G=i("JSON","stringify"),K=x.f,Y=k.f,Q=E.f,X=S.f,Z=A("symbols"),J=A("op-symbols"),$=A("string-to-symbol-registry"),ee=A("symbol-to-string-registry"),te=A("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(j,t);r&&delete j[t],Y(e,t,n),r&&e!==j&&Y(j,t,r)}:Y,ie=function(e,t){var n=Z[e]=b(q.prototype);return U(n,{type:z,tag:e,description:t}),s||(n.description=t),n},ae=c&&"symbol"==typeof q.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},se=function(e,t,n){e===j&&se(J,t,n),f(e);var r=v(t,!0);return f(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)},ce=function(e,t){f(e);var n=g(t),r=_(n).concat(pe(n));return B(r,(function(t){s&&!le.call(n,t)||se(e,t,n[t])})),e},le=function(e){var t=v(e,!0),n=X.call(this,t);return!(this===j&&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!==j||!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=Q(g(e)),n=[];return B(t,(function(e){d(Z,e)||d(D,e)||n.push(e)})),n},pe=function(e){var t=e===j,n=Q(t?J:g(e)),r=[];return B(n,(function(e){!d(Z,e)||t&&!d(j,e)||r.push(Z[e])})),r};(c||(q=function(){if(this instanceof q)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===j&&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(j,t,{configurable:!0,set:n}),ie(t,e)},I(q.prototype,"toString",(function(){return W(this).tag})),S.f=le,k.f=se,x.f=ue,C.f=E.f=de,w.f=pe,s&&(Y(q.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||I(j,"propertyIsEnumerable",le,{unsafe:!0}))),l||(N.f=function(e){return ie(M(e),e)}),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(_(te),(function(e){L(e)})),r({target:z,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d($,t))return $[t];var n=q(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:!c,sham:!s},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){w.f(1)}))},{getOwnPropertySymbols:function(e){return w.f(m(e))}}),G)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(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,G.apply(null,o)}});q.prototype[V]||T(q.prototype,V,q.prototype.valueOf),O(q,z),D[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,c=t.length,l=new(s(n))(c);c>r;)l[r]=t[r++];return l}))},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,c=i.values,l=i.keys,u=i.entries,d=o.aTypedArray,p=o.exportTypedArrayMethod,h=s&&s.prototype[a],f=!!h&&("values"==h.name||void 0==h.name),m=function(){return c.call(d(this))};p("entries",(function(){return u.call(d(this))})),p("keys",(function(){return l.call(d(this))})),p("values",m,!f),p(a,m,!f)},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),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){c(this);var t=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=o(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");for(;l<s;)this[t+l]=r[l++]}),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,c=r.exportTypedArrayMethod,l=[].slice;c("slice",(function(e,t){for(var n=l.call(a(this),e,t),r=o(this,this.constructor),i=0,c=n.length,u=new(s(r))(c);c>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,c=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-c))}))},27847:function(e,t,n){"use strict";var r=n(3380),o=n(70671),i=n(81949),a=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,d=!!a&&i((function(){l.call(new a(1))}));c("toLocaleString",(function(){return l.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,c=[].join;o((function(){s.call({})}))&&(s=function(){return c.call(this)});var l=a.toString!=s;r("toString",s,l)},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),c=n(37899),l=n(97955),u=n(84392).enforce,d=n(26071),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,f=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=s("WeakMap",f,c);if(d&&p){r=c.getConstructor(f,"WeakMap",!0),a.REQUIRED=!0;var g=m.prototype,v=g.delete,y=g.has,b=g.get,_=g.set;i(g,{delete:function(e){if(l(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(l(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(l(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(l(e)&&!h(e)){var n=u(this);n.frozen||(n.frozen=new r),y.call(this,e)?_.call(this,e,t):n.frozen.set(e,t)}else _.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 c=r[s],l=c&&c.prototype;if(l&&l.forEach!==i)try{a(l,"forEach",i)}catch(u){l.forEach=i}}},46555:function(e,t,n){var r=n(3380),o=n(31335),i=n(81837),a=n(5147),s=n(40822),c=s("iterator"),l=s("toStringTag"),u=i.values;for(var d in o){var p=r[d],h=p&&p.prototype;if(h){if(h[c]!==u)try{a(h,c,u)}catch(m){h[c]=u}if(h[l]||a(h,l,d),o[d])for(var f in i)if(h[f]!==i[f])try{a(h,f,i[f])}catch(m){h[f]=i[f]}}}},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,c="process"==a(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&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),c=n(31149),l=n(1123),u=n(84392),d=n(93932),p=n(44938),h=n(76525),f=n(31540),m=n(67695),g=n(97955),v=n(25788),y=n(80106),b=n(6574),_=n(9117),C=n(40822),E=o("fetch"),w=o("Headers"),x=C("iterator"),k="URLSearchParams",S="URLSearchParamsIterator",T=u.set,I=u.getterFor(k),A=u.getterFor(S),P=/\+/g,D=Array(4),R=function(e){return D[e-1]||(D[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(P," "),n=4;try{return decodeURIComponent(t)}catch(r){for(;n;)t=t.replace(R(n--),M);return t}},L=/[!'()~]|%20/g,O={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(e){return O[e]},B=function(e){return encodeURIComponent(e).replace(L,F)},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:N(r.shift()),value:N(r.join("="))}))},z=function(e){this.entries.length=0,H(this.entries,e)},V=function(e,t){if(e<t)throw TypeError("Not enough arguments")},U=l((function(e,t){T(this,{type:S,iterator:b(I(e).entries),kind:t})}),"Iterator",(function(){var e=A(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,c,l=arguments.length>0?arguments[0]:void 0,u=this,h=[];if(T(u,{type:k,entries:h,updateURL:function(){},updateSearchParams:z}),void 0!==l)if(g(l))if("function"===typeof(e=_(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(m(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(c in l)p(l,c)&&h.push({key:c,value:l[c]+""});else H(h,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},j=W.prototype;s(j,{append:function(e,t){V(arguments.length,2);var n=I(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){V(arguments.length,1);for(var t=I(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){V(arguments.length,1);for(var t=I(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){V(arguments.length,1);for(var t=I(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){V(arguments.length,1);for(var t=I(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){V(arguments.length,1);for(var n,r=I(this),o=r.entries,i=!1,a=e+"",s=t+"",c=0;c<o.length;c++)(n=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=I(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=I(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(j,x,j.entries),a(j,"toString",(function(){for(var e,t=I(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),c(W,k),r({global:!0,forced:!i},{URLSearchParams:W}),i||"function"!=typeof E||"function"!=typeof w||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,f(n)===k&&((r=t.headers?new w(t.headers):new w).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)),E.apply(this,o)}}),e.exports={URLSearchParams:W,getState:I}},50920:function(e,t,n){"use strict";n(92925);var r,o=n(12791),i=n(9522),a=n(91255),s=n(3380),c=n(20370),l=n(73920),u=n(93932),d=n(44938),p=n(64399),h=n(38706),f=n(83458).codeAt,m=n(41966),g=n(31149),v=n(17299),y=n(84392),b=s.URL,_=v.URLSearchParams,C=v.getState,E=y.set,w=y.getterFor("URL"),x=Math.floor,k=Math.pow,S="Invalid scheme",T="Invalid host",I="Invalid port",A=/[A-Za-z]/,P=/[\d+\-.A-Za-z]/,D=/\d/,R=/^(0x|0X)/,M=/^[0-7]+$/,N=/^\d+$/,L=/^[\dA-Fa-f]+$/,O=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,B=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,z=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(!(n=U(t.slice(1,-1))))return T;e.host=n}else if(X(e)){if(t=m(t),O.test(t))return T;if(null===(n=V(t)))return T;e.host=n}else{if(F.test(t))return T;for(n="",r=h(t),o=0;o<r.length;o++)n+=Y(r[o],j);e.host=n}},V=function(e){var t,n,r,o,i,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[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?N:8==i?M:L).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,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,p=function(){return e.charAt(d)};if(":"==p()){if(":"!=e.charAt(1))return;d+=2,u=++l}for(;p();){if(8==l)return;if(":"!=p()){for(t=n=0;n<4&&L.test(p());)t=16*t+parseInt(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,l>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!D.test(p()))return;for(;D.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++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},W=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=x(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},j={},q=p({},j,{" ":1,'"':1,"<":1,">":1,"`":1}),G=p({},q,{"#":1,"?":1,"{":1,"}":1}),K=p({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var n=f(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(e){return d(Q,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&&A.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={},ce={},le={},ue={},de={},pe={},he={},fe={},me={},ge={},ve={},ye={},be={},_e={},Ce={},Ee={},we={},xe=function(e,t,n,o){var i,a,s,c,l,u=n||re,p=0,f="",m=!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(B,"")),t=t.replace(H,""),i=h(t);p<=i.length;){switch(a=i[p],u){case re:if(!a||!A.test(a)){if(n)return S;u=ie;continue}f+=a.toLowerCase(),u=oe;break;case oe:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return S;f="",u=ie,p=0;continue}if(n&&(X(e)!=d(Q,f)||"file"==f&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(X(e)&&Q[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=ge:X(e)&&o&&o.scheme==e.scheme?u=ae:X(e)?u=ue:"/"==i[p+1]?(u=se,p++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Ce)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return S;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=we;break}u="file"==o.scheme?ge:ce;continue;case ae:if("/"!=a||"/"!=i[p+1]){u=ce;continue}u=de,p++;break;case se:if("/"==a){u=pe;break}u=_e;continue;case ce: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&&X(e))u=le;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=Ee;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=_e;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=we}break;case le:if(!X(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=_e;continue}u=pe}else u=de;break;case ue:if(u=de,"/"!=a||"/"!=f.charAt(p+1))continue;p++;break;case de:if("/"!=a&&"\\"!=a){u=pe;continue}break;case pe:if("@"==a){m&&(f="%40"+f),m=!0,s=h(f);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||v){var _=Y(b,K);v?e.password+=_:e.username+=_}else v=!0}f=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)){if(m&&""==f)return"Invalid authority";p-=h(f).length+1,f="",u=he}else f+=a;break;case he:case fe:if(n&&"file"==e.scheme){u=ye;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)){if(X(e)&&""==f)return T;if(n&&""==f&&(Z(e)||null!==e.port))return;if(c=z(e,f))return c;if(f="",u=be,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),f+=a}else{if(""==f)return T;if(c=z(e,f))return c;if(f="",u=me,n==fe)return}break;case me:if(!D.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)||n){if(""!=f){var C=parseInt(f,10);if(C>65535)return I;e.port=X(e)&&C===Q[e.scheme]?null:C,f=""}if(n)return;u=be;continue}return I}f+=a;break;case ge:if(e.scheme="file","/"==a||"\\"==a)u=ve;else{if(!o||"file"!=o.scheme){u=_e;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=Ee;else{if("#"!=a){ee(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),u=_e;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=we}}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=_e;continue;case ye:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&$(f))u=_e;else if(""==f){if(e.host="",n)return;u=be}else{if(c=z(e,f))return c;if("localhost"==e.host&&(e.host=""),n)return;f="",u=be}continue}f+=a;break;case be:if(X(e)){if(u=_e,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=_e,"/"!=a))continue}else e.fragment="",u=we;else e.query="",u=Ee;break;case _e:if(a==r||"/"==a||"\\"==a&&X(e)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=f).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(te(e),"/"==a||"\\"==a&&X(e)||e.path.push("")):ne(f)?"/"==a||"\\"==a&&X(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",u=Ee):"#"==a&&(e.fragment="",u=we)}else f+=Y(a,G);break;case Ce:"?"==a?(e.query="",u=Ee):"#"==a?(e.fragment="",u=we):a!=r&&(e.path[0]+=Y(a,j));break;case Ee:n||"#"!=a?a!=r&&("'"==a&&X(e)?e.query+="%27":e.query+="#"==a?"%23":Y(a,j)):(e.fragment="",u=we);break;case we:a!=r&&(e.fragment+=Y(a,q))}p++}},ke=function(e){var t,n,r=u(this,ke,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=E(r,{type:"URL"});if(void 0!==o)if(o instanceof ke)t=w(o);else if(n=xe(t={},String(o)))throw TypeError(n);if(n=xe(s,a,null,t))throw TypeError(n);var c=s.searchParams=new _,l=C(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},i||(r.href=Te.call(r),r.origin=Ie.call(r),r.protocol=Ae.call(r),r.username=Pe.call(r),r.password=De.call(r),r.host=Re.call(r),r.hostname=Me.call(r),r.port=Ne.call(r),r.pathname=Le.call(r),r.search=Oe.call(r),r.searchParams=Fe.call(r),r.hash=Be.call(r))},Se=ke.prototype,Te=function(){var e=w(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",Z(e)&&(l+=n+(r?":"+r:"")+"@"),l+=W(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Ie=function(){var e=w(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&&X(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Ae=function(){return w(this).scheme+":"},Pe=function(){return w(this).username},De=function(){return w(this).password},Re=function(){var e=w(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Me=function(){var e=w(this).host;return null===e?"":W(e)},Ne=function(){var e=w(this).port;return null===e?"":String(e)},Le=function(){var e=w(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Oe=function(){var e=w(this).query;return e?"?"+e:""},Fe=function(){return w(this).searchParams},Be=function(){var e=w(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Se,{href:He(Te,(function(e){var t=w(this),n=String(e),r=xe(t,n);if(r)throw TypeError(r);C(t.searchParams).updateSearchParams(t.query)})),origin:He(Ie),protocol:He(Ae,(function(e){var t=w(this);xe(t,String(e)+":",re)})),username:He(Pe,(function(e){var t=w(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(De,(function(e){var t=w(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=w(this);t.cannotBeABaseURL||xe(t,String(e),he)})),hostname:He(Me,(function(e){var t=w(this);t.cannotBeABaseURL||xe(t,String(e),fe)})),port:He(Ne,(function(e){var t=w(this);J(t)||(""==(e=String(e))?t.port=null:xe(t,e,me))})),pathname:He(Le,(function(e){var t=w(this);t.cannotBeABaseURL||(t.path=[],xe(t,e+"",be))})),search:He(Oe,(function(e){var t=w(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",xe(t,e,Ee)),C(t.searchParams).updateSearchParams(t.query)})),searchParams:He(Fe),hash:He(Be,(function(e){var t=w(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",xe(t,e,we)):t.fragment=null}))}),l(Se,"toJSON",(function(){return Te.call(this)}),{enumerable:!0}),l(Se,"toString",(function(){return Te.call(this)}),{enumerable:!0}),b){var ze=b.createObjectURL,Ve=b.revokeObjectURL;ze&&l(ke,"createObjectURL",(function(e){return ze.apply(b,arguments)})),Ve&&l(ke,"revokeObjectURL",(function(e){return Ve.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=[],c=[],l=[],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 f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,r[n]=f,o[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,l[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,p[f]=y<<8|y>>>24,h[f]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=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]:(l=i[a-1],a%n?n>6&&a%n==4&&(l=r[l>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l]):(l=r[(l=l<<8|l>>>24)>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l],l^=f[a/n|0]<<24),i[a]=i[a-n]^l);for(var s=this._invKeySchedule=[],c=0;c<o;c++){if(a=o-c,c%4)var l=i[a];else l=i[a-4];s[c]=c<4||a<=4?l:u[r[l>>>24]]^d[r[l>>>16&255]]^p[r[l>>>8&255]]^h[r[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,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 c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<c;f++){var m=r[l>>>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&l]^n[h++],v=r[d>>>24]^o[p>>>16&255]^i[l>>>8&255]^a[255&u]^n[h++],y=r[p>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&d]^n[h++];l=m,u=g,d=v,p=y}m=(s[l>>>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&l])^n[h++],v=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[h++],y=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),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 c(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 l(e,t,n){for(var o,i=t,a=n,s=0;s<r;++s)o=i^=e.pbox[s],i=a=c(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=c(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 c=0,u=0;u<r+2;u++)e.pbox[u]=o[u]^t[c],++c>=n&&(c=0);for(var d=0,p=0,h=0,f=0;f<r+2;f+=2)d=(h=l(e,d,p)).left,p=h.right,e.pbox[f]=d,e.pbox[f+1]=p;for(var m=0;m<4;m++)for(var g=0;g<256;g+=2)d=(h=l(e,d,p)).left,p=h.right,e.sbox[m][g]=d,e.sbox[m][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=l(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,c=(s.Utf8,s.Base64),l=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}(),f=(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 c=o.create(a,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),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(c)},parse:function(e){var t,n=c.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),m.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 m.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=l.create({keySize:t+n,hasher:i}).compute(e,r);else var a=l.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.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={},c=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)}},l=s.WordArray=c.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=c.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 l.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 l.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 l.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)))}},f=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.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),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(o,d);n=o.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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 m.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 c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);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,c=0;c<4&&a+.75*c<r;c++)i.push(o.charAt(s>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);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 c=e.indexOf(s);-1!==c&&(r=c)}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,c=o.keySize,l=o.iterations;s.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*c,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,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=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 c=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],c=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],C=e[t+10],E=e[t+11],w=e[t+12],x=e[t+13],k=e[t+14],S=e[t+15],T=i[0],I=i[1],A=i[2],P=i[3];T=l(T,I,A,P,a,7,s[0]),P=l(P,T,I,A,c,12,s[1]),A=l(A,P,T,I,h,17,s[2]),I=l(I,A,P,T,f,22,s[3]),T=l(T,I,A,P,m,7,s[4]),P=l(P,T,I,A,g,12,s[5]),A=l(A,P,T,I,v,17,s[6]),I=l(I,A,P,T,y,22,s[7]),T=l(T,I,A,P,b,7,s[8]),P=l(P,T,I,A,_,12,s[9]),A=l(A,P,T,I,C,17,s[10]),I=l(I,A,P,T,E,22,s[11]),T=l(T,I,A,P,w,7,s[12]),P=l(P,T,I,A,x,12,s[13]),A=l(A,P,T,I,k,17,s[14]),T=u(T,I=l(I,A,P,T,S,22,s[15]),A,P,c,5,s[16]),P=u(P,T,I,A,v,9,s[17]),A=u(A,P,T,I,E,14,s[18]),I=u(I,A,P,T,a,20,s[19]),T=u(T,I,A,P,g,5,s[20]),P=u(P,T,I,A,C,9,s[21]),A=u(A,P,T,I,S,14,s[22]),I=u(I,A,P,T,m,20,s[23]),T=u(T,I,A,P,_,5,s[24]),P=u(P,T,I,A,k,9,s[25]),A=u(A,P,T,I,f,14,s[26]),I=u(I,A,P,T,b,20,s[27]),T=u(T,I,A,P,x,5,s[28]),P=u(P,T,I,A,h,9,s[29]),A=u(A,P,T,I,y,14,s[30]),T=d(T,I=u(I,A,P,T,w,20,s[31]),A,P,g,4,s[32]),P=d(P,T,I,A,b,11,s[33]),A=d(A,P,T,I,E,16,s[34]),I=d(I,A,P,T,k,23,s[35]),T=d(T,I,A,P,c,4,s[36]),P=d(P,T,I,A,m,11,s[37]),A=d(A,P,T,I,y,16,s[38]),I=d(I,A,P,T,C,23,s[39]),T=d(T,I,A,P,x,4,s[40]),P=d(P,T,I,A,a,11,s[41]),A=d(A,P,T,I,f,16,s[42]),I=d(I,A,P,T,v,23,s[43]),T=d(T,I,A,P,_,4,s[44]),P=d(P,T,I,A,w,11,s[45]),A=d(A,P,T,I,S,16,s[46]),T=p(T,I=d(I,A,P,T,h,23,s[47]),A,P,a,6,s[48]),P=p(P,T,I,A,y,10,s[49]),A=p(A,P,T,I,k,15,s[50]),I=p(I,A,P,T,g,21,s[51]),T=p(T,I,A,P,w,6,s[52]),P=p(P,T,I,A,f,10,s[53]),A=p(A,P,T,I,C,15,s[54]),I=p(I,A,P,T,c,21,s[55]),T=p(T,I,A,P,b,6,s[56]),P=p(P,T,I,A,S,10,s[57]),A=p(A,P,T,I,v,15,s[58]),I=p(I,A,P,T,x,21,s[59]),T=p(T,I,A,P,m,6,s[60]),P=p(P,T,I,A,E,10,s[61]),A=p(A,P,T,I,h,15,s[62]),I=p(I,A,P,T,_,21,s[63]),i[0]=i[0]+T|0,i[1]=i[1]+I|0,i[2]=i[2]+A|0,i[3]=i[3]+P|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,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=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 l(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(c),t.HmacMD5=i._createHmacHelper(c)}(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 c=0;c<o;c++)e[t+c]^=s[c]}});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,c=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]),c=i.words,l=a.words,u=n.keySize,d=n.iterations;c.length<u;){var p=o.update(t).finalize(a);o.reset();for(var h=p.words,f=h.length,m=p,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var v=m.words,y=0;y<f;y++)h[y]^=v[y]}i.concat(p),l[0]++}return i.sigBytes=4*u,i}});e.PBKDF2=function(e,t,n){return c.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++)c.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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.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 c(){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,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}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++)c.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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.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 c(){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,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}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 c=r[o];r[o]=r[i],r[i]=c}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]),c=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]),l=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,E,w,x,k,S,T,I=this._hash.words,A=d.words,P=p.words,D=s.words,R=c.words,M=l.words,N=u.words;for(E=i=I[0],w=a=I[1],x=h=I[2],k=_=I[3],S=C=I[4],n=0;n<80;n+=1)T=i+e[t+D[n]]|0,T+=n<16?f(a,h,_)+A[0]:n<32?m(a,h,_)+A[1]:n<48?g(a,h,_)+A[2]:n<64?v(a,h,_)+A[3]:y(a,h,_)+A[4],T=(T=b(T|=0,M[n]))+C|0,i=C,C=_,_=b(h,10),h=a,a=T,T=E+e[t+R[n]]|0,T+=n<16?y(w,x,k)+P[0]:n<32?v(w,x,k)+P[1]:n<48?g(w,x,k)+P[2]:n<64?m(w,x,k)+P[3]:f(w,x,k)+P[4],T=(T=b(T|=0,N[n]))+S|0,E=S,S=k,k=b(x,10),x=w,w=T;T=I[1]+h+k|0,I[1]=I[2]+_+S|0,I[2]=I[3]+C+E|0,I[3]=I[4]+i+w|0,I[4]=I[0]+a+x|0,I[0]=T},_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 f(e,t,n){return e^t^n}function m(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],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+a[l];d+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=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]+c|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=[],c=[];!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))),c[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],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)l[h]=0|e[t+h];else{var f=l[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=l[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[h]=m+l[h-7]+v+l[h-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[h]+l[h];p=d,d=u,u=s,s=a+_|0,a=i,i=o,o=r,r=_+(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,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[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++)l[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),(I=n[o]).high^=a,I.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(I=n[p+5*m]).high,f^=I.low;var g=d[p];g.high=h,g.low=f}for(p=0;p<5;p++){var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,_=y.low;for(h=v.high^(b<<1|_>>>31),f=v.low^(_<<1|b>>>31),m=0;m<5;m++)(I=n[p+5*m]).high^=h,I.low^=f}for(var C=1;C<25;C++){var E=(I=n[C]).high,w=I.low,x=c[C];x<32?(h=E<<x|w>>>32-x,f=w<<x|E>>>32-x):(h=w<<x-32|E>>>64-x,f=E<<x-32|w>>>64-x);var k=d[l[C]];k.high=h,k.low=f}var S=d[0],T=n[0];for(S.high=T.high,S.low=T.low,p=0;p<5;p++)for(m=0;m<5;m++){var I=n[C=p+5*m],A=d[C],P=d[(p+1)%5+5*m],D=d[(p+2)%5+5*m];I.high=A.high^~P.high&D.high,I.low=A.low^~P.low&D.low}I=n[0];var R=u[s];I.high^=R.high,I.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,c=s/8,l=[],u=0;u<c;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),l.push(h),l.push(p)}return new r.init(l,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 c=[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)],l=[];!function(){for(var e=0;e<80;e++)l[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,f=r.low,m=o.high,g=o.low,v=i.high,y=i.low,b=a.high,_=a.low,C=s.high,E=s.low,w=u.high,x=u.low,k=d.high,S=d.low,T=p.high,I=p.low,A=h,P=f,D=m,R=g,M=v,N=y,L=b,O=_,F=C,B=E,H=w,z=x,V=k,U=S,W=T,j=I,q=0;q<80;q++){var G,K,Y=l[q];if(q<16)K=Y.high=0|e[t+2*q],G=Y.low=0|e[t+2*q+1];else{var Q=l[q-15],X=Q.high,Z=Q.low,J=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,$=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),ee=l[q-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=l[q-7],ae=ie.high,se=ie.low,ce=l[q-16],le=ce.high,ue=ce.low;K=(K=(K=J+ae+((G=$+se)>>>0<$>>>0?1:0))+re+((G+=oe)>>>0<oe>>>0?1:0))+le+((G+=ue)>>>0<ue>>>0?1:0),Y.high=K,Y.low=G}var de,pe=F&H^~F&V,he=B&z^~B&U,fe=A&D^A&M^D&M,me=P&R^P&N^R&N,ge=(A>>>28|P<<4)^(A<<30|P>>>2)^(A<<25|P>>>7),ve=(P>>>28|A<<4)^(P<<30|A>>>2)^(P<<25|A>>>7),ye=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),be=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),_e=c[q],Ce=_e.high,Ee=_e.low,we=W+ye+((de=j+be)>>>0<j>>>0?1:0),xe=ve+me;W=V,j=U,V=H,U=z,H=F,z=B,F=L+(we=(we=(we=we+pe+((de+=he)>>>0<he>>>0?1:0))+Ce+((de+=Ee)>>>0<Ee>>>0?1:0))+K+((de+=G)>>>0<G>>>0?1:0))+((B=O+de|0)>>>0<O>>>0?1:0)|0,L=M,O=N,M=D,N=R,D=A,R=P,A=we+(ge+fe+(xe>>>0<ve>>>0?1:0))+((P=de+xe|0)>>>0<de>>>0?1:0)|0}f=r.low=f+P,r.high=h+A+(f>>>0<P>>>0?1:0),g=o.low=g+R,o.high=m+D+(g>>>0<R>>>0?1:0),y=i.low=y+N,i.high=v+M+(y>>>0<N>>>0?1:0),_=a.low=_+O,a.high=b+L+(_>>>0<O>>>0?1:0),E=s.low=E+B,s.high=C+F+(E>>>0<B>>>0?1:0),x=u.low=x+z,u.high=w+H+(x>>>0<z>>>0?1:0),S=d.low=S+U,d.high=k+V+(S>>>0<U>>>0?1:0),I=p.low=I+j,p.high=T+W+(I>>>0<j>>>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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{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 l=o[i]=[],u=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[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,c=0;c<8;c++)s|=l[c][((a^o[c])&u[c])>>>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 f=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(f)}(),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),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!==typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var o=r.formatters[n];if("function"===typeof o){var a=t[l];e=o.call(i,a),t.splice(l,1),l--}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}},47814:function(e,t,n){"use strict";var r=n(9479),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 c(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 l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=p(n,v);try{l(t,v,y)}catch(b){}}}}return t}},59986:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?p(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;if(this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),c(e,"resize",r,!0)),c(t,"scroll",r,!0),a&&a.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var l=o(t);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e,i=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=u(o),s=this._rootContainsTarget(o),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(o,a,t),d=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n&&!this.root?null:t,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a=o,s=f(t),c=!1;!c&&s;){var d=null,h=1==s.nodeType?window.getComputedStyle(s):{};if("none"==h.display)return null;if(s==this.root||9==s.nodeType)if(c=!0,s==this.root||s==e)n&&!this.root?!r||0==r.width&&0==r.height?(s=null,d=null,a=null):d=r:d=i;else{var m=f(s),g=m&&u(m),v=m&&this._computeTargetAndRootIntersection(m,g,i);g&&v?(s=m,d=p(g,v)):(s=null,a=null)}else{var y=s.ownerDocument;s!=y.body&&s!=y.documentElement&&"visible"!=h.overflow&&(d=u(s))}if(d&&(a=l(d,a)),!a)break;s=s&&f(s)}return a}},a.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!==i<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||h(e,this.root)},a.prototype._rootContainsTarget=function(t){return h(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function l(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:s}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function p(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()},35556:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},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,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},l=i.push,u=i.indexOf,d={},p=d.toString,h=d.hasOwnProperty,f=h.toString,m=f.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,_={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in _)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function E(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[p.call(e)]||"object":typeof e}var w="3.6.3",x=function e(t,n){return new e.fn.init(t,n)};function k(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:w,constructor:x,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=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.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(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.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:l,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"===typeof a&&(l=a,a=arguments[s]||{},s++),"object"===typeof a||v(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(x.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||x.isPlainObject(n)?n:{},o=!1,a[t]=x.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+(w+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)&&f.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){C(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))?x.merge(n,"string"===typeof e?[e]:e):l.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 c(a)},guid:1,support:g}),"function"===typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_="sizzle"+1*new Date,C=e.document,E=0,w=0,x=ce(),k=ce(),S=ce(),T=ce(),I=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,P=[],D=P.pop,R=P.push,M=P.push,N=P.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+F+"*\\]",z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",V=new RegExp(F+"+","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]*"),j=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp(F+"|>"),G=new RegExp(z),K=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+z),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("^(?:"+O+")$","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")},Q=/HTML$/i,X=/^(?: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=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(P=N.call(C.childNodes),C.childNodes),P[C.childNodes.length].nodeType}catch(ke){M={apply:P.length?function(e,t){R.apply(e,N.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,l,u,d,f,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&(p(t),t=t||h,m)){if(11!==C&&(d=$.exec(e)))if(i=d[1]){if(9===C){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(y&&(l=y.getElementById(i))&&b(t,l)&&l.id===i)return r.push(l),r}else{if(d[2])return M.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===C&&(q.test(e)||j.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=_)),s=(f=a(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+be(f[s]);v=f.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return M.apply(r,y.querySelectorAll(v)),r}catch(E){T(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return c(e.replace(U,"$1"),t,r,o)}function ce(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[_]=!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 fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(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 le((function(t){return t=+t,le((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!Q.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:C;return a!=h&&9===a.nodeType&&a.documentElement?(f=(h=a).documentElement,m=!i(h),C!=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 f.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 f.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).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&&m){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&&m){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&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\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|"+O+")"),e.querySelectorAll("[id~="+_+"-]").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#"+_+"+*").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"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",z)})),n.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.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},I=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==C&&b(C,e)?-1:t==h||t.ownerDocument==C&&b(C,t)?1:u?L(u,e)-L(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?L(u,e)-L(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]==C?-1:s[r]==C?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&&m&&!T[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){T(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&&A.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?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(I),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:le,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&&G.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=x[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+F+"|$)"))&&x(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(V," ")+" ").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,c){var l,u,d,p,h,f,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(g){if(i){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(l=(u=(d=(p=g)[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===E&&l[1])&&l[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[E,h,b];break}}else if(y&&(b=h=(l=(u=(d=(p=t)[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===E&&l[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((u=(d=p[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[E,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[_]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=L(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[_]?le((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:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:le((function(e){return K.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?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===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!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 X.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]=fe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=w++;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,c){var l,u,d,p=[E,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[i])&&l[0]===E&&l[1]===s)return p[2]=l[2];if(u[i]=p,p[2]=e(t,n,c))return!0}return!1}}function Ce(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 Ee(e,t,n,r,o){for(var i,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function we(e,t,n,r,o,i){return r&&!r[_]&&(r=we(r)),o&&!o[_]&&(o=we(o,i)),le((function(i,a,s,c){var l,u,d,p=[],h=[],f=a.length,m=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?m:Ee(m,p,e,s,c),v=n?o||(i?e:f||r)?[]:a:g;if(n&&n(g,v,s,c),r)for(l=Ee(v,h),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(v[h[u]]=!(g[h[u]]=d));if(i){if(o||e){if(o){for(l=[],u=v.length;u--;)(d=v[u])&&l.push(g[u]=d);o(null,v=[],l,c)}for(u=v.length;u--;)(d=v[u])&&(l=o?L(i,d):p[u])>-1&&(i[l]=!(a[l]=d))}}else v=Ee(v===a?v.splice(f,v.length):v),o?o(null,a,v,c):M.apply(a,v)}))}function xe(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=_e((function(e){return e===t}),s,!0),d=_e((function(e){return L(t,e)>-1}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];c<i;c++)if(n=r.relative[e[c].type])p=[_e(Ce(p),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[_]){for(o=++c;o<i&&!r.relative[e[o].type];o++);return we(c>1&&Ce(p),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(U,"$1"),n,c<o&&xe(e.slice(c,o)),o<i&&xe(e=e.slice(o)),o<i&&be(e))}p.push(n)}return Ce(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,c,l,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),c.push(i=[])),n=!1,(o=j.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))||l[a]&&!(o=l[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,c).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=xe(t[n]))[_]?o.push(s):i.push(s);s=S(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,c,u){var d,f,g,v=0,y="0",b=i&&[],_=[],C=l,w=i||o&&r.find.TAG("*",u),x=E+=null==C?1:Math.random()||.1,k=w.length;for(u&&(l=a==h||a||u);y!==k&&null!=(d=w[y]);y++){if(o&&d){for(f=0,a||d.ownerDocument==h||(p(d),s=!m);g=e[f++];)if(g(d,a||h,s)){c.push(d);break}u&&(E=x)}n&&((d=!g&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,_,a,s);if(i){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=D.call(c));_=Ee(_)}M.apply(c,_),u&&!i&&_.length>0&&v+t.length>1&&se.uniqueSort(c)}return u&&(E=x,l=C),b};return n?le(i):i}(i,o)),s.selector=e}return s},c=se.select=function(e,t,n,o){var i,c,l,u,d,p="function"===typeof e&&e,h=!o&&a(e=p.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(i=Y.needsContext.test(e)?0:c.length;i--&&(l=c[i],!r.relative[u=l.type]);)if((d=r.find[u])&&(o=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&ve(t.parentNode)||t))){if(c.splice(i,1),!(e=o.length&&be(c)))return M.apply(n,o),n;break}}return(p||s(e,h))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(I).join("")===_,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(O,(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);x.find=S,(x.expr=S.selectors)[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r},I=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=x.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return v(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!==typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return r>1?x.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&&A.test(e)?x(e):e||[],!1).length}});var M,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||M,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.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 x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),D.test(r[1])&&x.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(x):x.makeArray(e,this)}).prototype=x.fn,M=x(b);var L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!==typeof e&&x(e);if(!A.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&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"===typeof e?u.call(x(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(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var o=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(o=x.filter(r,o)),this.length>1&&(O[e]||x.uniqueSort(o),L.test(e)&&o.reverse()),this.pushStack(o)}}));var B=/[^\x20\t\r\n\f]+/g;function H(e){return e}function z(e){throw e}function V(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])}}x.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return x.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,r,o,i=[],a=[],s=-1,c=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?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,(function(n,r){v(r)?e.unique&&l.has(r)||i.push(r):r&&r.length&&"string"!==E(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?x.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||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.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 x.Deferred((function(n){x.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,c=arguments,l=function(){var r,l;if(!(e<i)){if((r=n.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=r&&("object"===typeof r||"function"===typeof r)&&r.then,v(l)?o?l.call(r,a(i,t,H,o),a(i,t,z,o)):(i++,l.call(r,a(i,t,H,o),a(i,t,z,o),a(i,t,H,t.notifyWith))):(n!==H&&(s=void 0,c=[r]),(o||t.resolveWith)(s,c))}},u=o?l:function(){try{l()}catch(r){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(r,u.stackTrace),e+1>=i&&(n!==z&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),r.setTimeout(u))}}return x.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:z))})).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},i={};return x.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=x.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&&(V(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||v(o[n]&&o[n].then)))return i.then();for(;n--;)V(o[n],a(n),i.reject);return i.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.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)},x.readyException=function(e){r.setTimeout((function(){throw e}))};var W=x.Deferred();function j(){b.removeEventListener("DOMContentLoaded",j),r.removeEventListener("load",j),x.ready()}x.fn.ready=function(e){return W.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||W.resolveWith(b,[x]))}}),x.ready.then=W.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(x.ready):(b.addEventListener("DOMContentLoaded",j),r.addEventListener("load",j));var q=function e(t,n,r,o,i,a,s){var c=0,l=t.length,u=null==r;if("object"===E(r))for(c in i=!0,r)e(t,n,c,r[c],!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(x(e),n)})),n))for(;c<l;c++)n(t[c],r,s?o:o.call(t[c],c,n(t[c],r)));return i?t:u?n.call(t):l?n(t[0],r):a},G=/^-ms-/,K=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function Q(e){return e.replace(G,"ms-").replace(K,Y)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=x.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(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[Q(t)]=n;else for(r in t)o[Q(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Q(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(Q):(t=Q(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.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&&!x.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}x.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)}}),x.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=Q(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)})):q(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)}))}}),x.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,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=x.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){x.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:x.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=x.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 x.contains(e.ownerDocument,e)},ce={composed:!0};ae.getRootNode&&(se=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===x.css(e,"display")};function ue(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},c=s(),l=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==l&&+c)&&oe.exec(x.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)x.style(e,t,u+l),(1-i)*(1-(i=s()/c||.5))<=0&&(a=0),u/=i;x.style(e,t,(u*=2)+l),n=n||[]}return n&&(u=+u||+c||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,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=x.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&&le(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}x.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(){le(this)?x(this).show():x(this).hide()}))}});var fe=/^(?:checkbox|radio)$/i,me=/<([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&&P(e,t)?x.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 _e=/<|&#?\w+;/;function Ce(e,t,n,r,o){for(var i,a,s,c,l,u,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===E(i))x.merge(p,i.nodeType?[i]:i);else if(_e.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(me.exec(i)||["",""])[1].toLowerCase(),c=ve[s]||ve._default,a.innerHTML=c[1]+x.htmlPrefilter(i)+c[2],u=c[0];u--;)a=a.lastChild;x.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",h=0;i=p[h++];)if(r&&x.inArray(i,r)>-1)o&&o.push(i);else if(l=se(i),a=ye(d.appendChild(i),"script"),l&&be(a),n)for(u=0;i=a[u++];)ge.test(i.type||"")&&n.push(i);return d}var Ee=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function xe(){return!1}function ke(e,t){return e===function(){try{return b.activeElement}catch(e){}}()===("focus"===t)}function Se(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)Se(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=xe;else if(!o)return e;return 1===i&&(a=o,o=function(e){return x().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=x.guid++)),e.each((function(){x.event.add(this,t,o,r,n)}))}function Te(e,t,n){n?(J.set(e,t,!1),x.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)(x.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:x.event.trigger(x.extend(i[0],x.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,n,r,o){var i,a,s,c,l,u,d,p,h,f,m,g=J.get(e);if(X(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&x.find.matchesSelector(ae,o),n.guid||(n.guid=x.guid++),(c=g.events)||(c=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(B)||[""]).length;l--;)h=m=(s=Ee.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},u=x.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:f.join(".")},i),(p=c[h])||((p=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,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),x.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,c,l,u,d,p,h,f,m,g=J.hasData(e)&&J.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(h=m=(s=Ee.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},p=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)u=p[i],!o&&m!==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,f,g.handle)||x.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),c=x.event.fix(e),l=(J.get(this,"events")||Object.create(null))[c.type]||[],u=x.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(a=x.event.handlers.call(this,c,l),t=0;(o=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,i,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n<c;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?x(o,this).index(l)>-1:x.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(x.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[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&P(t,"input")&&Te(t,"click",we),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&P(t,"input")&&Te(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&P(t,"input")&&J.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:xe,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&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0}).prototype={constructor:x.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Te(this,e,ke),!1},trigger:function(){return Te(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||x.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(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=xe),this.each((function(){x.event.remove(this,e,n,t)}))}});var Ie=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function De(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(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++)x.event.add(t,o,s[o][n]);$.hasData(e)&&(i=$.access(e),a=x.extend({},i),$.set(t,a))}}function Le(e,t){var n=t.nodeName.toLowerCase();"input"===n&&fe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Oe(e,t,n,r){t=c(t);var o,i,a,s,l,u,d=0,p=e.length,h=p-1,f=t[0],m=v(f);if(m||p>1&&"string"===typeof f&&!g.checkClone&&Ae.test(f))return e.each((function(o){var i=e.eq(o);m&&(t[0]=f.call(this,o,i.html())),Oe(i,t,n,r)}));if(p&&(i=(o=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=x.map(ye(o,"script"),Re)).length;d<p;d++)l=o,d!==h&&(l=x.clone(l,!0,!0),s&&x.merge(a,ye(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,Me),d=0;d<s;d++)l=a[d],ge.test(l.type||"")&&!J.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):C(l.textContent.replace(Pe,""),l,u))}return e}function Fe(e,t,n){for(var r,o=t?x.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||x.cleanData(ye(r)),r.parentNode&&(n&&se(r)&&be(ye(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),c=se(e);if(!g.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!x.isXMLDoc(e))for(a=ye(s),r=0,o=(i=ye(e)).length;r<o;r++)Le(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++)Ne(i[r],a[r]);else Ne(e,s);return(a=ye(s,"script")).length>0&&be(a,!c&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,o=x.event.special,i=0;void 0!==(n=e[i]);i++)if(X(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[$.expando]&&(n[$.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return q(this,(function(e){return void 0===e?x.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 Oe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Oe(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&&(x.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 x.clone(this,e,t)}))},html:function(e){return q(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&&!Ie.test(e)&&!ve[(me.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.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 Oe(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],o=x(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(o[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Be=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),He=/^--/,ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ve=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 je(e,t,n){var r,o,i,a,s=He.test(t),c=e.style;return(n=n||ze(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(We,"$1")||void 0),""!==a||se(e)||(a=x.style(e,t)),!g.pixelBoxStyles()&&Be.test(a)&&Ue.test(t)&&(r=c.width,o=c.minWidth,i=c.maxWidth,c.minWidth=c.maxWidth=c.width=a,a=n.width,c.width=r,c.minWidth=o,c.maxWidth=i)),void 0!==a?a+"":a}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.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(l).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,c=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(l),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,i,a,s,c,l=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,x.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},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 Ge=["Webkit","Moz","ms"],Ke=b.createElement("div").style,Ye={};function Qe(e){var t=x.cssProps[e]||Ye[e];return t||(e in Ke?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ke)return e}(e)||e)}var Xe=/^(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,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=x.css(e,n+ie[a],!0,o)),r?("content"===n&&(c-=x.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(c-=x.css(e,"border"+ie[a]+"Width",!0,o))):(c+=x.css(e,"padding"+ie[a],!0,o),"padding"!==n?c+=x.css(e,"border"+ie[a]+"Width",!0,o):s+=x.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c}function tt(e,t,n){var r=ze(e),o=(!g.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),i=o,a=je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&P(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===x.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)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(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=Q(t),c=He.test(t),l=e.style;if(c||(t=Qe(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=ue(e,t,o),i="number"),null!=n&&n===n&&("number"!==i||c||(n+=o&&o[3]||(x.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i,a,s=Q(t);return He.test(t)||(t=Qe(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=je(e,t,r)),"normal"===o&&t in Je&&(o=Je[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Ve(e,Ze,(function(){return tt(e,t,r)}))},set:function(e,n,r){var o,i=ze(e),a=!g.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===x.css(e,"boxSizing",!1,i),c=r?et(e,t,r,s,i):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-et(e,t,"border",!1,i)-.5)),c&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),$e(0,n,c)}}})),x.cssHooks.marginLeft=qe(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.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&&(x.cssHooks[e+t].set=$e)})),x.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=ze(e),o=t.length;a<o;a++)i[t[a]]=x.css(e,t[a],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.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=x.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.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)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(x.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,x.fx.interval),x.fx.tick())}function ct(){return r.setTimeout((function(){rt=void 0})),rt=Date.now()}function lt(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=x.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=rt||ct(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,a=l.tweens.length;i<a;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=Q(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=x.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,l.opts.specialEasing);i<a;i++)if(r=dt.prefilters[i].call(l,e,u,l.opts))return v(r.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,ut,l),v(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),x.fx.timer(x.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}x.Animation=x.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(B);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,c,l,u,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&le(e),g=J.get(e,"fxshow");for(r in n.queue||(null==(a=x._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--,x.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],it.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}h[r]=g&&g[r]||x.style(e,r)}if((c=!x.isEmptyObject(t))||!x.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=g&&g.display)&&(l=J.get(e,"display")),"none"===(u=x.css(e,"display"))&&(l?u=l:(he([e],!0),l=e.style.display||l,u=x.css(e,"display"),he([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===x.css(e,"float")&&(c||(p.done((function(){f.display=l})),null==l&&(u=f.display,l="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),c=!1,h)c||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:l}),i&&(g.hidden=!m),m&&he([e],!0),p.done((function(){for(r in m||he([e]),J.remove(e,"fxshow"),h)x.style(e,r,h[r])}))),c=ut(m?g[r]:0,r,p),r in g||(g[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"===typeof e?x.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return x.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.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&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=x.isEmptyObject(e),i=x.speed(t,n,r),a=function(){var t=dt(this,x.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=x.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||x.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=x.timers,a=r?r.length:0;for(n.finish=!0,x.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}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,o){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,o)}})),x.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),rt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ot||(ot=!0,st())},x.fx.stop=function(){ot=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.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=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return q(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void x.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=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&P(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(B);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||x.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 ft=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(B)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(B)||[]}x.fn.extend({prop:function(e,t){return q(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.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=x.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,o,i,a;return v(e)?this.each((function(t){x(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){x(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){x(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=x(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;x.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,x(this).val()):e)?o="":"number"===typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=x.valHooks[o.type]||x.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}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:gt(x.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?i+1:o.length;for(r=i<0?c:a?i:0;r<c;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=x.makeArray(t),a=o.length;a--;)((r=o[a]).selected=x.inArray(x.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var _t=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,o){var i,a,s,c,l,u,d,p,f=[n||b],m=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&&!_t.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"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]:x.makeArray(t,[e]),d=x.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!y(n)){for(c=d.delegateType||m,_t.test(c+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=f[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?c:d.bindType||m,(u=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&X(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!X(n)||l&&v(n[m])&&!y(n)&&((s=n[l])&&(n[l]=null),x.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Ct),n[m](),e.isPropagationStopped()&&p.removeEventListener(m,Ct),x.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),g.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.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 Et=r.location,wt={guid:Date.now()},xt=/\?/;x.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||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var kt=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function At(e,t,n,r){var o;if(Array.isArray(t))x.each(t,(function(t,o){n||kt.test(e)?r(e,o):At(e+"["+("object"===typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==E(t))r(e,t);else for(o in t)At(e+"["+o+"]",t[o],n,r)}x.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&&!x.isPlainObject(e))x.each(e,(function(){o(this.name,this.value)}));else for(n in e)At(n,e[n],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&It.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Pt=/%20/g,Dt=/#.*$/,Rt=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},Ft={},Bt="*/".concat("*"),Ht=b.createElement("a");function zt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(B)||[];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 Vt(e,t,n,r){var o={},i=e===Ft;function a(s){var c;return o[s]=!0,x.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!==typeof l||i||o[l]?i?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Ht.href=Et.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,x.ajaxSettings),t):Ut(x.ajaxSettings,e)},ajaxPrefilter:zt(Ot),ajaxTransport:zt(Ft),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0);var n,o,i,a,s,c,l,u,d,p,h=x.ajaxSetup({},t=t||{}),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?x(f):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=h.statusCode||{},_={},C={},E="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Mt.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 l?i:null},setRequestHeader:function(e,t){return null==l&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||E;return n&&n.abort(t),k(0,t),this}};if(g.promise(w),h.url=((e||h.url||Et.href)+"").replace(Lt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(B)||[""],null==h.crossDomain){c=b.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ht.protocol+"//"+Ht.host!==c.protocol+"//"+c.host}catch(S){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=x.param(h.data,h.traditional)),Vt(Ot,h,t,w),l)return w;for(d in(u=x.event&&h.global)&&0===x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Nt.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"===typeof h.data)&&(o+=(xt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Rt,"$1"),p=(xt.test(o)?"&":"?")+"_="+wt.guid+++p),h.url=o+p),h.ifModified&&(x.lastModified[o]&&w.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&w.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&w.setRequestHeader("Content-Type",h.contentType),w.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)w.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,w,h)||l))return w.abort();if(E="abort",v.add(h.complete),w.done(h.success),w.fail(h.error),n=Vt(Ft,h,t,w)){if(w.readyState=1,u&&m.trigger("ajaxSend",[w,h]),l)return w;h.async&&h.timeout>0&&(s=r.setTimeout((function(){w.abort("timeout")}),h.timeout));try{l=!1,n.send(_,k)}catch(S){if(l)throw S;k(-1,S)}}else k(-1,"No Transport");function k(e,t,a,c){var d,p,b,_,C,E=t;l||(l=!0,s&&r.clearTimeout(s),n=void 0,i=c||"",w.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,o,i,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==c[0]&&c.unshift(i),n[i]}(h,w,a)),!d&&x.inArray("script",h.dataTypes)>-1&&x.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var o,i,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=u.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(a=l[c+" "+i]||l["* "+i]))for(o in l)if((s=o.split(" "))[1]===i&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[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(S){return{state:"parsererror",error:a?S:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(h,_,w,d),d?(h.ifModified&&((C=w.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=C),(C=w.getResponseHeader("etag"))&&(x.etag[o]=C)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=_.state,p=_.data,d=!(b=_.error))):(b=E,!e&&E||(E="error",e<0&&(e=0))),w.status=e,w.statusText=(t||E)+"",d?g.resolveWith(f,[p,E,w]):g.rejectWith(f,[w,E,b]),w.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[w,h,d?p:b]),v.fireWith(f,[w,E]),u&&(m.trigger("ajaxComplete",[w,h]),--x.active||x.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=x(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){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},jt=x.ajaxSettings.xhr();g.cors=!!jt&&"withCredentials"in jt,g.ajax=jt=!!jt,x.ajaxTransport((function(e){var t,n;if(g.cors||jt&&!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(c){if(t)throw c}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=x("<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 qt=[],Gt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||x.expando+"_"+wt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,n){var o,i,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.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(Gt,"$1"+o):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||x.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?x(r).removeProp(o):r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,qt.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}(),x.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=D.exec(e))?[t.createElement(o[1])]:(o=Ce([e],t,i),i&&i.length&&x(i).remove(),x.merge([],o.childNodes)));var r,o,i},x.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&&x.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,o,i,a,s,c,l=x.css(e,"position"),u=x(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=x.css(e,"top"),c=x.css(e,"left"),("absolute"===l||"fixed"===l)&&(i+c).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(c)||0),v(t)&&(t=t.call(e,n,x.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)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.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"===x.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"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ae}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return q(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)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=qe(g.pixelPosition,(function(e,n){if(n)return n=je(e,t),Be.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!==typeof o),s=n||(!0===o||!0===i?"margin":"border");return q(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?x.css(t,n,s):x.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.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)}}),x.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){x.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;x.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||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=P,x.isFunction=v,x.isWindow=y,x.camelCase=Q,x.type=E,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Kt,"$1")},void 0===(n=function(){return x}.apply(t,[]))||(e.exports=n);var Yt=r.jQuery,Qt=r.$;return x.noConflict=function(e){return r.$===x&&(r.$=Qt),e&&r.jQuery===x&&(r.jQuery=Yt),x},"undefined"===typeof o&&(r.jQuery=r.$=x),x}))},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,c=t.prefix||"__jp",l=t.name||c+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(){f(),n&&n(new Error("Timeout"))}),d));function f(){a.parentNode&&a.parentNode.removeChild(a),window[l]=i,s&&clearTimeout(s)}return window[l]=function(e){r("jsonp got",e),f(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+p(l)).replace("?&","?"),r('jsonp req "%s"',e),(a=document.createElement("script")).src=e,h.parentNode.insertBefore(a,h),function(){window[l]&&f()}};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 c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},31864:function(e,t,n){var r=n(53910),o=n(39515),i=n(62267),a=n(69008),s=n(85035);function c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},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 c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},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),c=n(92822);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},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),c=n(29239),l=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&&c(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!l.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},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 c=-1,l=t.length;for(i||(i=o),s||(s=[]);++c<l;){var u=t[c];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),c=n(49756),l=n(25377),u=n(29239),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=c(e),b=c(t),_=y?p:s(e),C=b?p:s(t),E=(_=_==d?h:_)==h,w=(C=C==d?h:C)==h,x=_==C;if(x&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(x&&!E)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,_,n,m,g,v);if(!(1&n)){var k=E&&f.call(e,"__wrapped__"),S=w&&f.call(t,"__wrapped__");if(k||S){var T=k?e.value():e,I=S?t.value():t;return v||(v=new r),g(T,I,n,m,v)}}return!!x&&(v||(v=new r),a(e,t,n,m,g,v))}},18273:function(e,t,n){var r=n(48776),o=n(38758),i=n(74274),a=n(36512),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.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,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var b=l?a(y,v,f,t,e,c):a(v,y,f,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,c)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},89691:function(e,t,n){var r=n(25435),o=n(16343),i=n(6170),a=n(2951),s=n(2107),c=n(22761),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,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 f=1&r;if(h||(h=c),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,l,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 c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var p=l[d];if(!(c?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<u;){var v=e[p=l[d]],y=t[p];if(i)var b=c?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)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,C=t.constructor;_==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof C&&C instanceof C||(m=!1)}return s.delete(e),s.delete(t),m}},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(c){}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),c=n(41602),l=n(36512),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=l(r),g=l(o),v=l(i),y=l(a),b=l(s),_=c;(r&&_(new r(new ArrayBuffer(1)))!=f||o&&_(new o)!=u||i&&_(i.resolve())!=d||a&&_(new a)!=p||s&&_(new s)!=h)&&(_=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return f;case g:return u;case v:return d;case y:return p;case b:return h}return t}),e.exports=_},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,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},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,c=(s?s.isBuffer:void 0)||o;e.exports=c},76032:function(e,t,n){var r=n(43746),o=n(28342),i=n(32824),a=n(49756),s=n(66274),c=n(25377),l=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||c(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(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,c=/^0o[0-7]+$/i,l=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||c.test(e)?l(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,c,l,u;switch(c=n*(1-t),l=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=c;break;case 1:r=l,o=n,i=c;break;case 2:r=c,o=n,i=u;break;case 3:r=c,o=l,i=n;break;case 4:r=u,o=c,i=n;break;case 5:r=n,o=c,i=l}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,c=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,c]}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,c,l,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 f=a.masksProperties;for(l=f.length,c=0;c<l;c+=1)if(f[c].pt.k.i)r(f[c].pt.k);else for(p=f[c].pt.k.length,d=0;d<p;d+=1)f[c].pt.k[d].s&&r(f[c].pt.k[d].s[0]),f[c].pt.k[d].e&&r(f[c].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)}}}(),c=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)}}}(),l=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,c=e.length;for(r=0;r<c;r+=1){if((n=e[r]).hasMask){var l=n.masksProperties;for(i=l.length,o=0;o<i;o+=1)if(l[o].pt.k.i)l[o].pt.k.c=l[o].cl;else for(s=l[o].pt.k.length,a=0;a<s;a+=1)l[o].pt.k[a].s&&(l[o].pt.k[a].s[0].c=l[o].cl),l[o].pt.k[a].e&&(l[o].pt.k[a].e[0].c=l[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||(c(n),i(n),a(n),s(n),l(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=c,d.checkChars=a,d.checkPathProperties=s,d.checkShapes=l,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(c){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 c(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 l(){o+=1,f()}function u(){o-=1}function d(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function p(e){var s,c=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(c);n=e,o&&!a?window.requestAnimationFrame(p):i=!0}function h(e){n=e,window.requestAnimationFrame(p)}function f(){!a&&o&&i&&(window.requestAnimationFrame(h),i=!1)}return e.registerAnimation=c,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),c(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),c(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,f()},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 l([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 c(e,t,n){return 3*o(t,n)*e*e+2*i(t,n)*e+a(t)}function l(e){this._p=e,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.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 l=i+(e-o[--a])/(o[a+1]-o[a])*n,u=c(l,t,r);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=c(t,n,r);if(0===i)return t;t-=(s(t,n,r)-e)/i}return t}(e,l,t,r):0===u?l:function(e,t,n,r,o){var i,a,c=0;do{(i=s(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++c<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,c,l,u=getDefaultCurveSegments(),d=0,p=[],h=[],f=bezierLengthPool.newElement();for(a=n.length,o=0;o<u;o+=1){for(c=o/(u-1),l=0,i=0;i<a;i+=1)s=bmPow(1-c,3)*e[i]+3*bmPow(1-c,2)*c*n[i]+3*(1-c)*bmPow(c,2)*r[i]+bmPow(c,3)*t[i],p[i]=s,null!==h[i]&&(l+=bmPow(p[i]-h[i],2)),h[i]=p[i];l&&(d+=l=bmSqrt(l)),f.percents[o]=c,f.lengths[o]=d}return f.addedLength=d,f};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 c=(n[0]+"_"+n[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[c]){var l,u,d,p,h,f,m,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,l=0;l<g;l+=1){for(m=createSizedArray(d),h=l/(g-1),f=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],m[u]=p,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[l]=new o(f,m),y=m}b.segmentLength=v,e[c]=b}return e[c]}}();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 c=r[i]>a?-1:1,l=!0;l;)if(r[i]<=a&&r[i+1]>a?(s=(a-r[i])/(r[i+1]-r[i]),l=!1):i+=c,i<0||i>=o-1){if(i===o-1)return n[i];l=!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,c=e._length,l=r.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=n(i[t],i[t+1],a[t],s[t+1]),u+=l[t].addedLength;return o&&c&&(l[t]=n(i[t],i[0],a[t],s[0]),u+=l[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,o,i,c,l){i<0?i=0:i>1&&(i=1);var u,d=a(i,l),p=a(c=c>1?1:c,l),h=t.length,f=1-d,m=1-p,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,_=f*f*m,C=d*f*m+f*d*m+f*f*p,E=d*d*m+f*d*p+d*f*p,w=d*d*p,x=f*m*m,k=d*m*m+f*p*m+f*m*p,S=d*p*m+f*p*p+d*m*p,T=d*p*p,I=m*m*m,A=p*m*m+m*p*m+m*m*p,P=p*p*m+m*p*p+p*m*p,D=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*(_*t[u]+C*r[u]+E*o[u]+w*n[u]))/1e3,s[4*u+2]=e.round(1e3*(x*t[u]+k*r[u]+S*o[u]+T*n[u]))/1e3,s[4*u+3]=e.round(1e3*(I*t[u]+A*r[u]+P*o[u]+D*n[u]))/1e3;return s},getPointInSegment:function(t,n,r,o,i,s){var c=a(i,s),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*r[0]+(c*c*l+l*c*c+c*l*c)*o[0]+c*c*c*n[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*r[1]+(c*c*l+l*c*c+c*l*c)*o[1]+c*c*c*n[1]))/1e3]},buildBezierData:i,pointOnLine2D:t,pointOnLine3D:function(n,r,o,i,a,s,c,l,u){if(0===o&&0===s&&0===u)return t(n,r,i,a,c,l);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(c-n,2)+e.pow(l-r,2)+e.pow(u-o,2)),f=e.sqrt(e.pow(c-i,2)+e.pow(l-a,2)+e.pow(u-s,2));return(d=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-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,c,l,u,d,p,h,f=t.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(i=this.keyframes[m],a=this.keyframes[m+1],m===g-1&&e>=a.t-o){i.h&&(i=a),f=0;break}if(a.t-o>e){f=m;break}m<g-1?m+=1:(f=0,v=!1)}s=this.keyframesMetadata[m]||{};var y,b=a.t-o,_=i.t-o;if(i.to){s.bezierData||(s.bezierData=bez.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var C=s.bezierData;if(e>=b||e<_){var E=e>=b?C.points.length-1:0;for(l=C.points[E].point.length,c=0;c<l;c+=1)n[c]=C.points[E].point[c]}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-_)/(b-_));var w,x=C.segmentLength*u,k=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastPoint:0,v=!0,d=C.points.length;v;){if(k+=C.points[p].partialLength,0===x||0===u||p===C.points.length-1){for(l=C.points[p].point.length,c=0;c<l;c+=1)n[c]=C.points[p].point[c];break}if(x>=k&&x<k+C.points[p+1].partialLength){for(w=(x-k)/C.points[p+1].partialLength,l=C.points[p].point.length,c=0;c<l;c+=1)n[c]=C.points[p].point[c]+(C.points[p+1].point[c]-C.points[p].point[c])*w;break}p<d-1?p+=1:v=!1}t._lastPoint=p,t._lastAddedLength=k-C.points[p].partialLength,t._lastKeyframeIndex=m}}else{var S,T,I,A,P;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<=_?(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),c=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]=c/degToRads}(n,function(e,t,n){var r,o,i,a,s,c=[],l=e[0],u=e[1],d=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(o=l*h+u*f+d*m+p*g)<0&&(o=-o,h=-h,f=-f,m=-m,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),c[0]=a*l+s*h,c[1]=a*u+s*f,c[2]=a*d+s*m,c[3]=a*p+s*g,c}(r(i.s),r(y),(e-_)/(b-_)));else for(m=0;m<g;m+=1)1!==i.h&&(e>=b?u=1:e<_?u=0:(i.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?h=s.__fnct[m]:(S=void 0===i.o.x[m]?i.o.x[0]:i.o.x[m],T=void 0===i.o.y[m]?i.o.y[0]:i.o.y[m],I=void 0===i.i.x[m]?i.i.x[0]:i.i.x[m],A=void 0===i.i.y[m]?i.i.y[0]:i.i.y[m],h=BezierFactory.getBezierEasing(S,T,I,A).get,s.__fnct[m]=h)):s.__fnct?h=s.__fnct:(S=i.o.x,T=i.o.y,I=i.i.x,A=i.i.y,h=BezierFactory.getBezierEasing(S,T,I,A).get,i.keyframeMetadata=h),u=h((e-_)/(b-_)))),y=a.s||i.e,P=1===i.h?i.s[m]:i.s[m]+(y[m]-i.s[m])*u,"multidimensional"===this.propType?n[m]=P:n=P}return t.lastIndex=f,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),c=Math.sin(n/2),l=Math.sin(r/2);return[s*c*a+o*i*l,s*i*a+o*c*l,o*c*a-s*i*l,o*i*a-s*c*l]}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 c(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 l(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 c=t.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),o=0;o<c;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,c,l){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=c||1,this.elem=t,this.container=l,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,c,l){var u;this.propType="multidimensional";var d,p,h,f,m=r.k.length;for(u=0;u<m-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,f=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]+f[0],p[1]+f[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]+f[0],p[1]+f[1],p[2]+f[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===f[0]&&0===f[1]&&(2===d.length||d[2]===p[2]&&0===h[2]&&0===f[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=c||1,this.elem=t,this.container=l,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 l(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 c(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,c,l,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 f,m,g,v=p,y=h.length-1,b=!0;b&&(f=h[v],!((m=h[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(i=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),u=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}o=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(c=t._length,l=r.i[0].length,n.lastIndex=p,a=0;a<c;a+=1)for(s=0;s<l;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 c(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,c.prototype.getValue=i,c.prototype.interpolateShape=t,c.prototype.setVValue=o,c.prototype.addEffect=s;var l=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,c=this.ir.v,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*o),p=2*Math.PI*c/(2*o),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<o;e+=1){n=a?l:u,r=a?d:p;var m=(t=a?s:c)*Math.cos(h),g=t*Math.sin(h),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*f,g-y*r*n*f,m+v*r*n*f,g+y*r*n*f,e,!0),a=!a,h+=i*f}},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 c=r*Math.cos(a),l=r*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*i*o*s,l-d*i*o*s,c+u*i*o*s,l+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 c(e,t,n):new a(e,t,n):5===n?r=new d(e,t):6===n?r=new l(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};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 c(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 l(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,c,l,u,d,p,h,f,m){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]=c,this.props[9]=l,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(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 m(e,t,n,r,o,i,a,s,c,l,u,d,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===o&&1===i&&0===a&&0===s&&0===c&&0===l&&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]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],C=g[4],E=g[5],w=g[6],x=g[7],k=g[8],S=g[9],T=g[10],I=g[11],A=g[12],P=g[13],D=g[14],R=g[15];return g[0]=v*e+y*o+b*c+_*p,g[1]=v*t+y*i+b*l+_*h,g[2]=v*n+y*a+b*u+_*f,g[3]=v*r+y*s+b*d+_*m,g[4]=C*e+E*o+w*c+x*p,g[5]=C*t+E*i+w*l+x*h,g[6]=C*n+E*a+w*u+x*f,g[7]=C*r+E*s+w*d+x*m,g[8]=k*e+S*o+T*c+I*p,g[9]=k*t+S*i+T*l+I*h,g[10]=k*n+S*a+T*u+I*f,g[11]=k*r+S*s+T*d+I*m,g[12]=A*e+P*o+D*c+R*p,g[13]=A*t+P*i+D*l+R*h,g[14]=A*n+P*a+D*u+R*f,g[15]=A*r+P*s+D*d+R*m,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 _(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 C(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function w(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function x(){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 S(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=k(e[t]);return r}function T(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],c=this.props[12],l=this.props[13];r[0]=e[0]*o+e[1]*a+c,r[1]=e[0]*i+e[1]*s+l,r[2]=t[0]*o+t[1]*a+c,r[3]=t[0]*i+t[1]*s+l,r[4]=n[0]*o+n[1]*a+c,r[5]=n[0]*i+n[1]*s+l}return r}function I(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 A(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 P(){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 D(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("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=p,this.setTransform=h,this.translate=f,this.transform=m,this.applyToPoint=_,this.applyToX=C,this.applyToY=E,this.applyToZ=w,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=R,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=S,this.inversePoint=k,this.getInverseMatrix=x,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,c=[],l=i.length;for(a=0;a<l;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,c.push([u,d]))}return c.length||c.push([0,0]),c},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,c,l,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 f,m,g=[];for(o=0;o<p;o+=1)if((f=this.shapes[o]).shape._mdf||this._mdf||e||2===this.m){if(c=(r=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(r.shapes[s]),l.push(u),d+=u.totalLength;f.totalShapeLength=d,f.pathsData=l}h+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=n,_=0;for(o=p-1;o>=0;o-=1)if((f=this.shapes[o]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(t,n,f.totalShapeLength,_,h),_+=f.totalShapeLength):v=[[y,b]],c=v.length,s=0;s<c;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var C=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var E=C.pop();this.addPaths(C,m),C=this.addShapes(f,g[1],E)}else this.addPaths(C,m),C=this.addShapes(f,g[1]);this.addPaths(C,m)}}f.shape.paths=m}}},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,c,l,u,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),m.push(n),r=0;r<h;r+=1){for(c=d[r].lengths,n.c=p[r].c,i=p[r].c?c.length:c.length+1,o=1;o<i;o+=1)if(f+(a=c[o-1]).addedLength<t.s)f+=a.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+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):(l=bez.getNewSegment(p[r].v[o-1],p[r].v[o],p[r].o[o-1],p[r].i[o],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,c[o-1]),this.addSegmentFromArray(l,n,s,g),g=!1,n.c=!1),f+=a.addedLength,s+=1}if(p[r].c&&c.length){if(a=c[o-1],f<=t.e){var v=c[o-1].addedLength;t.s<=f&&t.e>=f+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):(l=bez.getNewSegment(p[r].v[o-1],p[r].v[0],p[r].o[o-1],p[r].i[0],(t.s-f)/v,(t.e-f)/v,c[o-1]),this.addSegmentFromArray(l,n,s,g),g=!1,n.c=!1)}else n.c=!1;f+=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)),f>t.e)break;r<h-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},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,c,l,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,c=e.o[i][0]+(r[0]-e.o[i][0])*-n,l=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,c,l,u,d,i);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,c=this.amount.v;if(0!==c)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],c));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),c=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/c:c),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,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.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,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<c,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=c;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=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,_=0;if(p>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(p<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=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!==_){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(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[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];_+=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,c,l,u,d,p,h,f,m,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],l=(c=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=f=o[0]+(s[0]-o[0])*l,d=m=o[1]-(o[1]-s[1])*l,p=u-(u-o[0])*roundCorner,h=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,p,h,f,m,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],l=(c=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=p=o[0]+(s[0]-o[0])*l,d=h=o[1]+(s[1]-o[1])*l,f=u-(u-o[0])*roundCorner,m=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,p,h,f,m,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,c=this.rd.v;if(0!==c)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],c));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 c,l,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((c=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(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].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(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)r[n].fPath===c[l].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 c(){return[1,1,1,1]}return function(l){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=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;var p=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.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 l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,l)},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?l[r]:l[r]();r+=1}throw new Error}var s,c=propertyGroupFactory(a,o),l=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?l.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):l.push(t(r.effectElements[s],n.ef[s].ty,i,c));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),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||[],c=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(c,"numProperties",{get:function(){return s.length}}),c}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,f=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?f.push(t(e[h],a[h],p)):"fl"===e[h].ty?f.push(n(e[h],a[h],p)):"st"===e[h].ty?f.push(o(e[h],a[h],p)):"tm"===e[h].ty?f.push(i(e[h],a[h],p)):"tr"===e[h].ty||("el"===e[h].ty?f.push(s(e[h],a[h],p)):"sr"===e[h].ty?f.push(c(e[h],a[h],p)):"sh"===e[h].ty?f.push(ShapePathInterface(e[h],a[h],p)):"rc"===e[h].ty?f.push(l(e[h],a[h],p)):"rd"===e[h].ty?f.push(u(e[h],a[h],p)):"rp"===e[h].ty?f.push(d(e[h],a[h],p)):"gf"===e[h].ty?f.push(r(e[h],a[h],p)):f.push((e[h],a[h],function(){return null})));return f}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(l,n),i=propertyGroupFactory(c,o);function a(n){Object.defineProperty(c,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,c={};for(r=0;r<s;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(i);function l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_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)),l}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 c(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 l(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,c,l,u,d,p,h=this.masksProperties,f=0,m=[],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!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),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(f+=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){c=m.length;var _=createNS("g");for(s=0;s<c;s+=1)_.appendChild(m[s]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",g+"_"+f),C.appendChild(o),i.appendChild(C),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.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:l},this.viewData[r].prop.k||this.drawPath(h[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);f>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 c=e.data.ef[t].ty;registeredEffects[c]&&(n=new(0,registeredEffects[c].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects[c].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 c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),s.appendChild(c),this.globalData.defs.appendChild(t);var l=createNS("rect");l.setAttribute("width",this.comp.data.w),l.setAttribute("height",this.comp.data.h),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),a.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),a.appendChild(l),a.appendChild(this.layerElement),r=a,featureSupport.maskType||(i.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),a.appendChild(l),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(),c=createElementID();i.setAttribute("id",c);var l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.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)"),l.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=l,this.ms=i,this.ost=u,this.maskId=c,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,c=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<t;o+=1)c+=" 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&&(c+=" 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]),c+="z"),c},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,c,l,u,d,p,h,f,m,g=r.styles.length,v=r.lvl;for(u=0;u<g;u+=1){if(c=r.sh._mdf||o,r.styles[u].lvl<v){for(p=t.reset(),f=v-r.styles[u].lvl,m=r.transformers.length-1;!c&&f>0;)c=r.transformers[m].mProps._mdf||c,f-=1,m-=1;if(c)for(f=v-r.styles[u].lvl,m=r.transformers.length-1;f>0;)h=r.transformers[m].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]),f-=1,m-=1}else p=e;if(a=(d=r.sh.paths)._length,c){for(s="",i=0;i<a;i+=1)(l=d.shapes[i])&&l._length&&(s+=buildShapeString(l,l._length,l.c,p));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=c||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),c(0,t,n)}function s(e,t,n){var r,o,i,a,s,c=t.gf,l=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",f="x1"===h?"y1":"cy";c.setAttribute(h,u[0]),c.setAttribute(f,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(i=r.length,o=0;o<i;o+=1)(a=r[o]).setAttribute("offset",m[4*o]+"%"),a.setAttribute("stop-color","rgb("+m[4*o+1]+","+m[4*o+2]+","+m[4*o+3]+")")}if(l&&(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)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!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)),c.setAttribute("r",s),l&&!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,_=Math.cos(v+t.a.v)*b+u[0],C=Math.sin(v+t.a.v)*b+u[1];c.setAttribute("fx",_),c.setAttribute("fy",C),l&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",C))}}function c(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 c;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,c,l,u,d,p,h=[].concat(i),f=e.length-1,m=[],g=[];for(s=f;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),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(l=t[s].it.length,c=0;c<l;c+=1)t[s].prevViewData[c]=t[s].it[c];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(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;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,c=this.elem.globalData.fontManager,l=this.data,u=[],d=0,p=l.m.g,h=0,f=0,m=0,g=[],v=0,y=0,b=c.getFontByName(e.f),_=0,C=getFontProperties(b);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var E,w=e.tr/1e3*e.finalSize;if(e.sz)for(var x,k,S=!0,T=e.sz[0],I=e.sz[1];S;){x=0,v=0,n=(k=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<n;t+=1)E=k[t].charCodeAt(0),r=!1," "===k[t]?A=t:13!==E&&3!==E||(v=0,r=!0,x+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(k[t],b.fStyle,b.fFamily),_=r?0:s.w*e.finalSize/100):_=c.measureText(k[t],e.f,e.finalSize),v+_>T&&" "!==k[t]?(-1===A?n+=1:t=A,x+=e.finalLineHeight||1.2*e.finalSize,k.splice(t,A===t?1:0,"\r"),A=-1,v=0):(v+=_,v+=w);x+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&I<x?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,n=e.finalText.length,S=!1)}v=-w,_=0;var P,D=0;for(t=0;t<n;t+=1)if(r=!1,13===(E=(P=e.finalText[t]).charCodeAt(0))||3===E?(D=0,g.push(v),y=v>y?v:y,v=-2*w,o="",r=!0,m+=1):o=P,c.chars?(s=c.getCharData(P,b.fStyle,c.getFontByName(e.f).fFamily),_=r?0:s.w*e.finalSize/100):_=c.measureText(o,e.f,e.finalSize)," "===P?D+=_+w:(v+=_+w+D,D=0),u.push({l:_,an:_,add:h,n:r,anIndexes:[],val:o,line:m,animatorJustifyOffset:0}),2==p){if(h+=_,""===o||" "===o||t===n-1){for(""!==o&&" "!==o||(h-=_);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=_,f+=1;d+=1,h=0}}else if(3==p){if(h+=_,""===o||t===n-1){for(""===o&&(h-=_);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=_,f+=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,M,N,L,O=l.a;a=O.length;var F=[];for(i=0;i<a;i+=1){for((R=O[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),L=0,N=R.s.b,t=0;t<n;t+=1)(M=u[t]).anIndexes[i]=L,(1==N&&""!==M.val||2==N&&""!==M.val&&" "!==M.val||3==N&&(M.n||" "==M.val||t==n-1)||4==N&&(M.n||t==n-1))&&(1===R.s.rn&&F.push(L),L+=1);l.a[i].s.totalChars=L;var B,H=-1;if(1===R.s.rn)for(t=0;t<n;t+=1)H!=(M=u[t]).anIndexes[i]&&(H=M.anIndexes[i],B=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[i]=B}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 c=BezierFactory.getBezierEasing(o,i,a,s).get,l=0,u=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)l=c(l=d===u?r>=d?1:0:e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(3===p)l=c(l=d===u?r>=d?0:1:1-e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(4===p)d===u?l=0:(l=e(0,t(.5/(d-u)+(r-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===p){if(d===u)l=0;else{var h=d-u,f=-h/2+(r=t(e(0,r+.5-u),d-u)),m=h/2;l=Math.sqrt(1-f*f/(m*m))}l=c(l)}else 6===p?(d===u?l=0:(r=t(e(0,r+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*r/(d-u)))/2),l=c(l)):(r>=n(u)&&(l=e(0,t(r-u<0?t(d,1)-(u-r):d-r,1))),l=c(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*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,c,l,u,d,p,h,f,m,g,v,y,b,_,C=this._moreOptions.alignment.v,E=this._animatorsData,w=this._textData,x=this.mHelper,k=this._renderType,S=this.renderedLetters.length,T=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),a={tLength:0,segments:[]},i=A._length-1,v=0,o=0;o<i;o+=1)I=bez.buildBezierData(A.v[o],A.v[o+1],[A.o[o][0]-A.v[o][0],A.o[o][1]-A.v[o][1]],[A.i[o+1][0]-A.v[o+1][0],A.i[o+1][1]-A.v[o+1][1]]),a.tLength+=I.segmentLength,a.segments.push(I),v+=I.segmentLength;o=i,_.v.c&&(I=bez.buildBezierData(A.v[o],A.v[0],[A.o[o][0]-A.v[o][0],A.o[o][1]-A.v[o][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=I.segmentLength,a.segments.push(I),v+=I.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,l=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);h=(f=m[p].points)[d-1],g=(c=f[d]).partialLength}i=T.length,n=0,r=0;var P,D,R,M,N,L=1.2*e.finalSize*.714,O=!0;R=E.length;var F,B,H,z,V,U,W,j,q,G,K,Y,Q=-1,X=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(T[o].n){for(ne&&(ne+=re);ie<o;)T[ie].animatorJustifyOffset=ne,ie+=1;ne=0,ae=!0}else{for(D=0;D<R;D+=1)(P=E[D].a).t.propType&&(ae&&2===e.j&&(re+=P.t.v*oe),(N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars)).length?ne+=P.t.v*N[0]*oe:ne+=P.t.v*N*oe);ae=!1}for(ne&&(ne+=re);ie<o;)T[ie].animatorJustifyOffset=ne,ie+=1}for(o=0;o<i;o+=1){if(x.reset(),z=1,T[o].n)n=0,r+=e.yOffset,r+=O?1:0,s=X,O=!1,this._hasMaskedPath&&(d=J,h=(f=m[p=Z].points)[d-1],g=(c=f[d]).partialLength,l=0),ee="",K="",q="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==T[o].line){switch(e.j){case 1:s+=v-e.lineWidths[T[o].line];break;case 2:s+=(v-e.lineWidths[T[o].line])/2}$=T[o].line}Q!==T[o].ind&&(T[Q]&&(s+=T[Q].extra),s+=T[o].an/2,Q=T[o].ind),s+=C[0]*T[o].an*.005;var se=0;for(D=0;D<R;D+=1)(P=E[D].a).p.propType&&((N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars)).length?se+=P.p.v[0]*N[0]:se+=P.p.v[0]*N),P.a.propType&&((N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars)).length?se+=P.a.v[0]*N[0]:se+=P.a.v[0]*N);for(u=!0,this._pathData.a.v&&(s=.5*T[0].an+(v-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*Q/(i-1),s+=this._pathData.f.v);u;)l+g>=s+se||!f?(y=(s+se-l)/c.partialLength,B=h.point[0]+(c.point[0]-h.point[0])*y,H=h.point[1]+(c.point[1]-h.point[1])*y,x.translate(-C[0]*T[o].an*.005,-C[1]*L*.01),u=!1):f&&(l+=c.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:_.v.c?(d=0,f=m[p=0].points):(l-=c.partialLength,f=null)),f&&(h=c,g=(c=f[d]).partialLength));F=T[o].an/2-T[o].add,x.translate(-F,0,0)}else F=T[o].an/2-T[o].add,x.translate(-F,0,0),x.translate(-C[0]*T[o].an*.005,-C[1]*L*.01,0);for(D=0;D<R;D+=1)(P=E[D].a).t.propType&&(N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?N.length?s+=P.t.v*N[0]:s+=P.t.v*N:N.length?n+=P.t.v*N[0]:n+=P.t.v*N));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(V=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]]),D=0;D<R;D+=1)(P=E[D].a).a.propType&&((N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars)).length?x.translate(-P.a.v[0]*N[0],-P.a.v[1]*N[1],P.a.v[2]*N[2]):x.translate(-P.a.v[0]*N,-P.a.v[1]*N,P.a.v[2]*N));for(D=0;D<R;D+=1)(P=E[D].a).s.propType&&((N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars)).length?x.scale(1+(P.s.v[0]-1)*N[0],1+(P.s.v[1]-1)*N[1],1):x.scale(1+(P.s.v[0]-1)*N,1+(P.s.v[1]-1)*N,1));for(D=0;D<R;D+=1){if(P=E[D].a,N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars),P.sk.propType&&(N.length?x.skewFromAxis(-P.sk.v*N[0],P.sa.v*N[1]):x.skewFromAxis(-P.sk.v*N,P.sa.v*N)),P.r.propType&&(N.length?x.rotateZ(-P.r.v*N[2]):x.rotateZ(-P.r.v*N)),P.ry.propType&&(N.length?x.rotateY(P.ry.v*N[1]):x.rotateY(P.ry.v*N)),P.rx.propType&&(N.length?x.rotateX(P.rx.v*N[0]):x.rotateX(P.rx.v*N)),P.o.propType&&(N.length?z+=(P.o.v*N[0]-z)*N[0]:z+=(P.o.v*N-z)*N),e.strokeWidthAnim&&P.sw.propType&&(N.length?U+=P.sw.v*N[0]:U+=P.sw.v*N),e.strokeColorAnim&&P.sc.propType)for(j=0;j<3;j+=1)N.length?V[j]+=(P.sc.v[j]-V[j])*N[0]:V[j]+=(P.sc.v[j]-V[j])*N;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(j=0;j<3;j+=1)N.length?W[j]+=(P.fc.v[j]-W[j])*N[0]:W[j]+=(P.fc.v[j]-W[j])*N;P.fh.propType&&(W=N.length?addHueToRGB(W,P.fh.v*N[0]):addHueToRGB(W,P.fh.v*N)),P.fs.propType&&(W=N.length?addSaturationToRGB(W,P.fs.v*N[0]):addSaturationToRGB(W,P.fs.v*N)),P.fb.propType&&(W=N.length?addBrightnessToRGB(W,P.fb.v*N[0]):addBrightnessToRGB(W,P.fb.v*N))}}for(D=0;D<R;D+=1)(P=E[D].a).p.propType&&(N=E[D].s.getMult(T[o].anIndexes[D],w.a[D].s.totalChars),this._hasMaskedPath?N.length?x.translate(0,P.p.v[1]*N[0],-P.p.v[2]*N[1]):x.translate(0,P.p.v[1]*N,-P.p.v[2]*N):N.length?x.translate(P.p.v[0]*N[0],P.p.v[1]*N[1],-P.p.v[2]*N[2]):x.translate(P.p.v[0]*N,P.p.v[1]*N,-P.p.v[2]*N));if(e.strokeWidthAnim&&(q=U<0?0:U),e.strokeColorAnim&&(G="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[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(x.translate(0,-e.ls),x.translate(0,C[1]*L*.01+r,0),this._pathData.p.v){b=(c.point[1]-h.point[1])/(c.point[0]-h.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<h.point[0]&&(ce+=180),x.rotate(-ce*Math.PI/180)}x.translate(B,H,0),s-=C[0]*T[o].an*.005,T[o+1]&&Q!==T[o+1].ind&&(s+=T[o].an/2,s+=.001*e.tr*e.finalSize)}else{switch(x.translate(n,r,0),e.ps&&x.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:x.translate(T[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[o].line]),0,0);break;case 2:x.translate(T[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[o].line])/2,0,0)}x.translate(0,-e.ls),x.translate(F,0,0),x.translate(C[0]*T[o].an*.005,C[1]*L*.01,0),n+=T[o].l+.001*e.tr*e.finalSize}"html"===k?ee=x.toCSS():"svg"===k?ee=x.to2dCSS():te=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],Y=z}S<=o?(M=new LetterProps(Y,q,G,K,ee,te),this.renderedLetters.push(M),S+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[o],this.lettersChangedFlag=M.update(Y,q,G,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 c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,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||[],c=!!this.globalData.fontManager.chars;t=s.length;var l=this.mHelper,u=this.data.singleShape,d=0,p=0,h=!0,f=.001*n.tr*n.finalSize;if(!u||c||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(c?"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,c){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(l.reset(),u&&(s[e].n&&(d=-f,p+=n.yOffset,p+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(n,l,s[e].line,d,p),d+=s[e].l||0,d+=f),c){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+l.props[12]+","+l.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 C=this.textContainer,E="start";switch(n.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}C.setAttribute("text-anchor",E),C.setAttribute("letter-spacing",f);var w=this.buildTextContents(n.finalText);for(t=w.length,p=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",C.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,p+=n.finalLineHeight;this.layerElement.appendChild(C)}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 c=r._length;for(s=1;s<c;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,c,l,u,d=e.length-1,p=[],h=[],f=[].concat(o);for(i=d;i>=0;i-=1){if((c=this.searchProcessedElement(e[i]))?t[i]=n[c-1]:e[i]._shouldRender=r,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)c?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],f),p.push(t[i].style);else if("gr"===e[i].ty){if(c)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,f)}else"tr"===e[i].ty?(c||(u=this.createTransformElement(e[i]),t[i]=u),f.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?c||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty?(c?(l=t[i]).closed=!1:((l=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=l,this.shapeModifiers.push(l)),h.push(l)):"rp"===e[i].ty&&(c?(l=t[i]).closed=!0:(l=ShapeModifiers.getModifier(e[i].ty),t[i]=l,l.init(this,e,i,t),this.shapeModifiers.push(l),r=!1),h.push(l));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,c,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<l;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),i=c.elements,"st"===s||"gs"===s?(d.strokeStyle="st"===s?c.co:c.grd,d.lineWidth=c.wi,d.lineCap=c.lc,d.lineJoin=c.lj,d.miterLimit=c.ml||0):d.fillStyle="fl"===s?c.co:c.grd,u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),n=i.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.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(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&d.fill(c.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 c=e.transforms.finalTransform;for(o=0;o<s;o+=1){var l=a.shapes[o];if(l&&l.v){for(r=l._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),i.push({t:"c",pts:c.applyToTriplePoints(l.o[n-1],l.i[n],l.v[n])});1===r&&i.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(i.push({t:"c",pts:c.applyToTriplePoints(l.o[n-1],l.i[0],l.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,c=t.e.v;if(1===e.t)r=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=l*d,h=Math.cos(u+t.a.v)*p+s[0],f=Math.sin(u+t.a.v)*p+s[1];r=a.createRadialGradient(h,f,0,s[0],s[1],l)}var m=e.g.p,g=t.g.c,v=1;for(i=0;i<m;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,c,l,u,d,p,h,f,m=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,_=0,C=0,E=!0,w=0;for(r=0;r<o;r+=1){a=(i=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},v.reset(),y&&g[r].n&&(_=-b,C+=e.yOffset,C+=E?1:0,E=!1),d=(l=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,_,C),h=createSizedArray(d-1);var x=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,p=l[u].ks.k,f=[],s=1;s<c;s+=1)1===s&&f.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),f.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));f.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[x]=f,x+=1}y&&(_+=g[r].l,_+=b),this.textSpans[w]?this.textSpans[w].elem=h:this.textSpans[w]={elem:h},w+=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,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var u,d,p=null,h=null,f=null;for(e=0;e<t;e+=1)if(!l[e].n){if((s=c[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?f!==s.sw&&(f=s.sw,a.lineWidth=s.sw):f!==this.values.sWidth&&(f=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,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?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),c=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"===c&&(r>n&&"meet"===i||r<n&&"slice"===i)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(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,c=e.transformers,l=s._length;if(!(l<=1)){for(n=0;n<l-1;n+=1)r=this.getTransformedPoint(c,s.v[n]),o=this.getTransformedPoint(c,s.o[n]),i=this.getTransformedPoint(c,s.i[n+1]),a=this.getTransformedPoint(c,s.v[n+1]),this.checkBounds(r,o,i,a,t);s.c&&(r=this.getTransformedPoint(c,s.v[n]),o=this.getTransformedPoint(c,s.o[n]),i=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,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,c,l,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)):(c=i*i-4*a*o)>=0&&((l=(-i+bmSqrt(c))/(2*o))>0&&l<1&&d[p].push(this.calculateF(l,e,t,n,r,p)),(u=(-i-bmSqrt(c))/(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 c,l,u,d=e.l;o=d.length;var p,h=this.mHelper,f="",m=0;for(r=0;r<o;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),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),f=this.createPathShape(h,p),c.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),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,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[r].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[r].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var C=c.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=E,C.webkitTransform=E}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=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,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(r=l.length,n=0;n<r;n+=1)l[n].n?s+=1:(i=this.textSpans[n],a=this.textPaths[n],o=c[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]),c=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-c)}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 f=this.mat.toCSS();(h=d.container.style).transform=f,h.webkitTransform=f}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 c={container:i,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},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 c(e){var t,n=e.length,o=this,i=0,a=o.i=o.j=0,c=o.S=[];for(n||(e=[n++]);i<r;)c[i]=i++;for(i=0;i<r;i++)c[i]=c[a=s&a+e[i%n]+(t=c[i])],c[a]=t;o.g=function(e){for(var t,n=0,i=o.i,a=o.j,c=o.S;e--;)t=c[i=s&i+1],n=n*r+c[s&(c[i]=c[a=s&a+t])+(c[a]=t)];return o.i=i,o.j=a,n}}function l(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,f){var m=[],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),m),v=new c(m),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||f||function(e,n,r,o){return o&&(o.S&&l(o,v),e.state=function(){return l(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),c=(a+s)/2;if(a===s)t=0,n=0;else{var l=a-s;switch(n=c>.5?l/(2-a-s):l/(a+s),a){case r:t=(o-i)/l+(o<i?6:0);break;case o:t=(i-r)/l+2;break;case i:t=(r-o)/l+4}t/=6}return[t,n,c,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,c=2*a-s;t=hue2rgb(c,s,o+1/3),n=hue2rgb(c,s,o),r=hue2rgb(c,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 c=r.length,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=r[a]+(o[a]-r[a])*s;return l}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,c,l=[0,0];for(o=0;o<i;o+=1)s=t&&t[o]?t[o]:l,c=n&&n[o]?n[o]:l,a.setTripleAt(e[o][0],e[o][1],c[0]+e[o][0],c[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,c=s-Math.floor(s),l=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)l[r]=this.pv[r]+i[r]+(-t+2*t*BMMath.random())*c;return l}return this.pv+i[0]+(-t+2*t*BMMath.random())*c}.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,c=o.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(i[s]-o[s])*a+o[s];return l}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,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=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>l.length-1)&&(t=l.length-1),r=u-(o=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((c-o)/r)%2!==0)return this.getValueAtTime((r-(c-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(((c-o)%r+o)/this.comp.globalData.frameRate,0),f=Math.floor((c-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])*f+h[i];return s}return(p-d)*f+h}if("continue"===e){var m=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(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-g)}}return this.getValueAtTime(((c-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,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=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>l.length-1)&&(t=l.length-1),r=(o=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/r)%2===0)return this.getValueAtTime(((u-c)%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-c)%r+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-c)/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])*f;return s}return h-(p-d)*f}if("continue"===e){var m=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(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*(u-c)/.001;return s}return m+(m-g)*(u-c)/.001}}return this.getValueAtTime((r-((u-c)%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,c=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(c=0;c<this.pv.length;c+=1)n[c]+=r[c];else n+=r;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)n[c]/=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),c=this.ry.getValueAtTime(e),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*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 f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[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,c){var l=a(r,o,i,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=n,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===o.a?o.k.length:0,l.propertyIndex=o.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,o,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.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,c=i.length,l=0;s<c;){if(l+i[s].addedLength>a){var u=s,d=n.c&&s===c-1?0:s+1,p=(a-l)/i[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],p,i[s]);break}l+=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([l],s),extendPrototype([l],c),c.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},c.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 c=createNS("feFuncB");c.setAttribute("type","table"),i.appendChild(c),this.feFuncB=c,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 c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",r+"_drop_shadow_1"),c.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);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),c=r.getTotalLength();i="0 0 0 "+c*a+" ";var l,u=c*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(l=0;l<p;l+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*c+" 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,c=Math.min(e,t),l=Math.max(e,t),u=Array.call(null,{length:256}),d=0,p=o-r,h=t-e;s<=256;)a=(i=s/256)<=c?h<0?o:r:i>=l?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,c){c=c||{};var l=typeof e;if("string"===l&&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 c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.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,c=o(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(c[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},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 f=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var C=null!=m&&null!=f&&f!==m,E="+"===b||"*"===b,w="?"===b||"*"===b,x=n[2]||u,k=v||y;r.push({name:g||i++,prefix:m||"",delimiter:x,optional:w,repeat:E,partial:C,asterisk:!!_,pattern:k?l(k):_?".*":"[^"+c(x)+"]+?"})}}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||{},c=(o||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];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=c(p[h]),!n[l].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()})):c(p),!n[l].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 c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(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 l=e[s];if("string"===typeof l)a+=c(l);else{var p=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+p+h+")*"),a+=h=l.optional?l.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var f=c(n.delimiter||"/"),m=a.slice(-f.length)===f;return o||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+f+"|$)",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,c=+r,l=+i.split(".")[0],u=0===a.length?0:+a.replace(/0+$/,"");return t[o].cFn(c,l,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,c=+r,l=+i.split(".")[0],u=0===a.length?0:+a.replace(/0+$/,"");return t[o].oFn(c,l,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 c(e,t,n){return e<=n&&n<=t&&n%1===0}function l(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 c(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:c(3,10,t)?3:c(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 l([1,5,7,8,9,10],e)?0:l([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 l([1,2,5,7,8],n)||l([20,50,70,80],r)?0:l([3,4],n)||l([100,200,300,400,500,600,700,800,900],o)?1:0===t||6===n||l([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:c(2,4,t)&&!c(12,14,n)?1:0===t||c(5,9,t)||c(11,14,n)?2:3},o:[3,5],oFn:function(e){var t=e%100;return l([2,3],e%10)&&!l([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||l([11,71,91],n)?2!==t||l([12,72,92],n)?!c(3,4,t)&&9!==t||c(10,19,n)||c(70,79,n)||c(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&&c(2,4,o)&&!c(12,14,i)||c(2,4,a)&&!c(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 l([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&&l([1,2,3],t)||0===n&&!l([4,6,9],o)||0!==n&&!l([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:c(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 l([0,7,8,9],e)?0:1===e?1:2===e?2:l([3,4],e)?3:l([5,6],e)?4:5}}),s(["da"],{c:[1,5],cFn:function(e,t,n,r,o){return 1===e||0!==o&&l([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&&c(3,4,o)||c(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 l([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&&l([1,2,3],t)||0===n&&!l([4,6,9],o)||0!==n&&!l([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 l([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:c(3,6,e)?2:c(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 l([1,11],e)?0:l([2,12],e)?1:c(3,10,e)||c(13,19,e)?2:3},o:[1,2,3,5],oFn:function(e){return l([1,11],e)?0:l([2,12],e)?1:l([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:l([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&&l([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||c(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 l([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 l([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||c(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:l([2,22,42,62,82],t)||0===n&&(c(1e3,2e4,r)||4e4===r||6e4===r||8e4===r)||0!==e&&1e5===o?2:l([3,23,43,63,83],t)?3:1!==e&&l([1,21,41,61,81],t)?4:5},o:[1,4,5],oFn:function(e){var t=e%100;return c(1,4,e)||c(1,4,t)||c(21,24,t)||c(41,44,t)||c(61,64,t)||c(81,84,t)?0:5===e||5===t?1:2}}),s(["lag"],{c:[0,1,5],cFn:function(e,t){return 0===e?0:l([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||c(11,19,i)?c(2,9,o)&&!c(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||c(11,19,i)||2===n&&c(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:l([7,8],n)&&!l([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||c(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:l([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||c(2,10,t)?1:c(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 c(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||c(7,9,e)?0:l([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&&c(2,4,r)&&!c(12,14,o)?1:0===n&&1!==t&&c(0,1,r)||0===n&&c(5,9,r)||0===n&&c(12,14,o)?2:3}}),s(["pt"],{c:[1,5],cFn:function(e,t){return c(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&&c(2,4,r)&&!c(12,14,o)?1:0===n&&0===r||0===n&&c(5,9,r)||0===n&&c(11,14,o)?2:3}}),s(["shi"],{c:[1,3,5],cFn:function(e,t){return 0===t||1===e?0:c(2,10,e)?1:2}}),s(["si"],{c:[1,5],cFn:function(e,t,n,r){return l([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&&c(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 l([1,2],e%10)&&!l([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 l([6,9],e%10)||10===e?0:1}}),s(["tzm"],{c:[1,5],cFn:function(e){return c(0,1,e)||c(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&&c(2,4,r)&&!c(12,14,o)?1:0===n&&0===r||0===n&&c(5,9,r)||0===n&&c(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,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!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 f(){}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];c.push(new h(e,t)),1!==c.length||l||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=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,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 c(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):l(t.promise,r)}else 1===e._V?l(t.promise,e._W):u(t.promise,e._W)}))}(e,t)}function l(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&&(c(e,e._X),e._X=null),2===e._U){for(var t=0;t<e._X.length;t++)c(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,l(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),c(e,new p(t,n,a))}))}(this,e,t);var n=new s(o);return c(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),c=u(0),l=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 c;if(""===e)return l;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 c=s.then;if("function"===typeof c)return void new r(c.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,c={};function l(t){(e.allRejections||s(c[t].error,e.whitelist||o))&&(c[t].displayId=n++,e.onUnhandled?(c[t].logged=!0,e.onUnhandled(c[t].displayId,c[t].error)):(c[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)}))}(c[t].displayId,c[t].error)))}r._Y=function(t){2===t._V&&c[t._1]&&(c[t._1].logged?function(t){c[t].logged&&(e.onHandled?e.onHandled(c[t].displayId,c[t].error):c[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+c[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+c[t].displayId+".")))}(t._1):clearTimeout(c[t._1].timeout),delete c[t._1])},r._Z=function(e,n){0===e._U&&(e._1=t++,c[e._1]={displayId:null,error:n,timeout:setTimeout(l.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="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,c=n?Symbol.for("react.provider"):60109,l=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,f=n?Symbol.for("react.suspense_list"):60120,m=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,_=n?Symbol.for("react.scope"):60119;function C(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 l:case p:case g:case m:case c:return e;default:return t}}case o:return t}}}function E(e){return C(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||C(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return C(e)===l},t.isContextProvider=function(e){return C(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===p},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===s},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=C},9479:function(e,t,n){"use strict";e.exports=n(15443)},56032:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,c=60110,l=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=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"),c=b("react.context"),l=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function _(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 c:case l:case h:case p:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return _(e)===c}},9462:function(e,t,n){"use strict";e.exports=n(56032)},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 c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(D){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new I(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===f){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?f:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=l;var d="suspendedStart",p="suspendedYield",h="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(A([])));C&&C!==n&&r.call(C,i)&&(b=C);var E=y.prototype=g.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var c=u(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.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){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(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 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 m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;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,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(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:P}}function P(){return{value:t,done:!0}}return v.prototype=y,c(E,"constructor",y),c(y,"constructor",v),v.displayName=c(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,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},w(x.prototype),c(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"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=A,I.prototype={constructor:I,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(T),!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 c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)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,m):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),m},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),T(n),m}},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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},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,c=r.pop(),l=i(r),u=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(n)),d=o((function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return u.apply(null,e)}));return d.resultFunc=c,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 C},__asyncGenerator:function(){return _},__asyncValues:function(){return E},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return T},__classPrivateFieldIn:function(){return A},__classPrivateFieldSet:function(){return I},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return o},__generator:function(){return d},__importDefault:function(){return S},__importStar:function(){return k},__makeTemplateObject:function(){return w},__metadata:function(){return l},__param:function(){return c},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArray:function(){return y},__spreadArrays:function(){return v},__values:function(){return f}});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 c(e,t){return function(n,r){t(n,r,e)}}function l(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{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((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 f(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 m(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(m(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 _(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(c,l):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function C(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 E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(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 w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=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 x(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function T(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 I(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 A(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 S},Headers:function(){return f},Request:function(){return C},Response:function(){return x},fetch:function(){return T}});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,c="ArrayBuffer"in r;if(c)var l=["[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&&l.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 f(e){this.map={},e instanceof f?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 m(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():c&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(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=m(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=m(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=m(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(E)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(e,t){if(!(this instanceof C))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 C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(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 f(t.headers)),this.method=function(e){var t=e.toUpperCase();return _.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 E(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 w(e){var t=new f;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 x(e,t){if(!(this instanceof x))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 f(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},b.call(C.prototype),b.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];x.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(I){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function T(e,t){return new Promise((function(n,o){var i=new C(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(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 x(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 S("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":c&&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 f?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",l),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}T.polyfill=!0,r.fetch||(r.fetch=T,r.Headers=f,r.Request=C,r.Response=x)},50633:function(){},19521:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},__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),__webpack_require__(59986);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",c=(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),c=n.options.normalizePropertyValue&&n.options.normalizePropertyValue(a,n.context[a])||n.context[a];r.push("".concat(s,"=").concat(encodeURIComponent(c)))}var l=r.join(",");return l.length>n.maxResultLength?"":l},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)),l=__webpack_require__.n(c),u=-1,d=1,p=2,h=0,f=1,m=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||m).split("?")[0]||"")},getPageId:w,getQueryParameter:b,getCookie:_,getPerformanceTiming:function(){return window.performance&&window.performance.timing||{}},getNow:function(){return new Date},isPageOptedOutFromAutoPageView:C,setSpaLocationHref:function(e){window.spaLocationHref=e},setSpaReferrer:function(e){window.spaReferrer=e},setSpaPageId:function(e){window.spaPageId=e},setWindowLoadHandler:function(e){l()(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 _(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 C(){return!!l()("meta[name='noAutoPageView']").length}function E(e){var t=document.createElement("a");return t.href=e,t}function w(){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=_("oref");if(e)m=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")})(),m=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 c=t.match(a);if(!c||2!==c.length)return e;var l="https://".concat(c[1].toLowerCase(),"/"),u=t.match(s);return u&&2===u.length&&(l+=u[1].replace("-","/").toLowerCase()),l}(m,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=E(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=l().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=l().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 l()){a.willChangeSupportCors&&(l().support.cors=!0);var n,r=e.additionalHeaders||{},i=e.body,s=i?JSON.stringify(i):e.data||void 0,c=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 f=function(r,i,a){var s=r.getResponseHeader("Content-Length"),c={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,c),t.reportEvent(c.data)};return function r(){var o="".concat(d,"_Retry_").concat(u);return t.recordTimeSpan(o,!1),l().ajax(h).then((function(e,n,r){var i=t.recordTimeSpan(o,!0);return f(r,!0,i),r}),(function(i,a){var s=t.recordTimeSpan(o,!0);f(i,!1,s);var d=l().Deferred();return c>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=f),f===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 x=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}},S=function(){this.getCurrentCvValue=function(){return"cv.1"},this.getCorrelationVectorFormFieldName=function(){return"cv"},this.seedCv=function(e){},this.incrementCv=function(){}},T=(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=E(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 S,this.ccManager=new k,this.ajaxTelemetry=new x,this.utilities={}}e.prototype.setExperimentData=function(){this.reportExperimentOperation((function(e){return e.setExperimentData()}))}}(),"function"),I="object",A="undefined",P=Object,D=P.prototype,R=P.assign,M=P.create,N=P.defineProperty,L=D.hasOwnProperty,O=null;function F(e){void 0===e&&(e=!0);var t=!1===e?null:O;return t||(typeof globalThis!==A&&(t=globalThis),t||typeof self===A||(t=self),t||typeof window===A||(t=window),t||typeof __webpack_require__.g===A||(t=__webpack_require__.g),O=t),t}function B(e){throw new TypeError(e)}function H(e){if(M)return M(e);if(null==e)return{};var t=typeof e;function n(){}return t!==I&&t!==T&&B("Object prototype may only be an Object:"+e),n.prototype=e,new n}(F()||{}).Symbol,(F()||{}).Reflect;var z,V=R||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])D.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U=function(e,t){return U=P.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])},U(e,t)};function W(e,t){function n(){this.constructor=e}typeof t!==T&&null!==t&&B("Class extends value "+String(t)+" is not a constructor or null"),U(e,t),e.prototype=null===t?H(t):(n.prototype=t.prototype,new n)}function j(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var q="undefined",G="constructor",K="prototype",Y="function",Q="_dynClass",X="_unknown_",Z="_dyn__proto__",J=Object,ee=J.getPrototypeOf,te=J.getOwnPropertyNames;var ne=function(){var e;return typeof globalThis!==q&&(e=globalThis),e||typeof self===q||(e=self),e||typeof window===q||(e=window),e||typeof __webpack_require__.g===q||(e=__webpack_require__.g),e||{}}(),re=ne.__dynProto$Gbl||(ne.__dynProto$Gbl={o:(z={},z.setInstFuncs=!0,z.useBaseInst=!0,z),n:1e3});function oe(e,t){return e&&J.prototype.hasOwnProperty.call(e,t)}function ie(e){return e&&(e===J.prototype||e===Array.prototype)}function ae(e){return ie(e)||e===Function.prototype}function se(e){var t;if(e){if(ee)return ee(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,oe(e,Z)||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function ce(e,t){var n=[];if(te)n=te(e);else for(var r in e)"string"===typeof r&&oe(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function le(e,t,n){return t!==G&&typeof e[t]===Y&&(n||oe(e,t))}function ue(e){throw new TypeError("DynamicProto: "+e)}function de(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function pe(e,t,n,r){var o=null;if(e&&oe(n,Q)){var i=e._dynInstFuncs||{};if((o=(i[n._dynClass]||{})[t])||ue("Missing ["+t+"] "+Y),!o._dynInstChk&&!1!==i._dynInstChk){for(var a=!oe(e,t),s=se(e),c=[];a&&s&&!ae(s)&&!de(c,s);){var l=s[t];if(l){a=l===r;break}c.push(s),s=se(s)}try{a&&(e[t]=o),o._dynInstChk=1}catch(u){i._dynInstChk=!1}}}return o}function he(e,t,n){var r=t[e];return r===n&&(r=se(t)[e]),typeof r!==Y&&ue("["+e+"] is not a "+Y),r}function fe(e,t,n,r,o){if(!ie(e)){var i=n._dynInstFuncs=n._dynInstFuncs||{},a=i[t]=i[t]||{};!1!==i._dynInstChk&&(i._dynInstChk=!!o),ce(n,(function(t){le(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!oe(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(pe(this,t,e,n)||he(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}function me(e,t){return oe(e,K)?e.name||t||X:((e||{}).constructor||{}).name||t||X}function ge(e,t,n,r){oe(e,K)||ue("theClass is an invalid class definition.");var o=e.prototype;(function(e,t){if(ee){for(var n=[],r=se(t);r&&!ae(r)&&!de(n,r);){if(r===e)return!0;n.push(r),r=se(r)}return!1}return!0})(o,t)||ue("["+me(e)+"] not in hierarchy of ["+me(t)+"]");var i=null;oe(o,Q)?i=o._dynClass:(i="_dynCls$"+me(e,"_")+"$"+re.n,re.n++,o._dynClass=i);var a=ge._dfOpts,s=!!a.useBaseInst;s&&r&&void 0!==r.useBaseInst&&(s=!!r.useBaseInst);var c=function(e){var t={};return ce(e,(function(n){!t[n]&&le(e,n,!1)&&(t[n]=e[n])})),t}(t),l=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={};ce(n,(function(e){i[e]=o(t,n,e)}));for(var a=se(e),s=[];a&&!ae(a)&&!de(s,a);)ce(a,(function(e){!i[e]&&le(a,e,!ee)&&(i[e]=o(t,a,e))})),s.push(a),a=se(a);return i}(o,t,c,s);n(t,l);var u=!!ee&&!!a.setInstFuncs;u&&r&&(u=!!r.setInstFuncs),fe(o,i,t,c,!1!==u)}ge._dfOpts=re.o;var ve="",ye="channels",be="createPerfMgr",_e="extensionConfig",Ce="eventsSent",Ee="eventsDiscarded",we="eventsSendRequest",xe="perfEvent",ke="errorToConsole",Se="warnToConsole",Te="constructor",Ie=N,Ae=P.freeze,Pe=(P.seal,P.keys),De=String.prototype,Re=De.trim,Me=De.endsWith,Ne=De.startsWith,Le=Date.prototype.toISOString,Oe=Array.isArray,Fe=D.toString,Be=L.toString,He=Be.call(P),ze=/-([a-z])/g,Ve=/([^\w\d_$])/g,Ue=/^(\d+[\w\d_$])/,We=Object.getPrototypeOf;function je(e){if(e){if(We)return We(e);var t=e.__proto__||e.prototype||e.constructor;if(t)return t}return null}function qe(e){return void 0===e||typeof e===A}function Ge(e){return null===e||qe(e)}function Ke(e){return!Ge(e)}function Ye(e,t){return!(!e||!L.call(e,t))}function Qe(e){return!(!e||typeof e!==I)}function Xe(e){return!(!e||typeof e!==T)}function Ze(e){var t=e;return t&&ot(t)&&(t=(t=(t=t.replace(ze,(function(e,t){return t.toUpperCase()}))).replace(Ve,"_")).replace(Ue,(function(e,t){return"_"+t}))),t}function Je(e,t){if(e)for(var n in e)L.call(e,n)&&t.call(e,n,e[n])}function $e(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=Me?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 et(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=Ne?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 tt(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}var nt=Oe||function(e){return!(!e||"[object Array]"!==Fe.call(e))};function rt(e){return!(!e||"[object Error]"!==Fe.call(e))}function ot(e){return"string"===typeof e}function it(e){return"number"===typeof e}function at(e){return"boolean"===typeof e}function st(e){var t=!1;if(e&&"object"===typeof e){var n=We?We(e):je(e);n?(n.constructor&&L.call(n,Te)&&(n=n.constructor),t=typeof n===T&&Be.call(n)===He):t=!0}return t}function ct(e){if(e)return Le?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 lt(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(i){}}function ut(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(a){}}return-1}function dt(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(s){}}return r}function pt(e){return e&&(e=Re&&e.trim?e.trim():e.replace?e.replace(/^\s+|(?=\s)\s+$/g,ve):e),e}var ht=!{toString:null}.propertyIsEnumerable("toString"),ft=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function mt(e){var t=typeof e;if(t===T||t===I&&null!==e||B("objKeys called on non-object"),!ht&&Pe)return Pe(e);var n=[];for(var r in e)e&&L.call(e,r)&&n.push(r);if(ht)for(var o=ft.length,i=0;i<o;i++)e&&L.call(e,ft[i])&&n.push(ft[i]);return n}function gt(e,t,n,r){if(Ie)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),Ie(e,t,o),!0}catch(i){}return!1}function vt(e){return e}function yt(e){return Ae&&Je(e,(function(e,t){(nt(t)||Qe(t))&&Ae(t)})),bt(e)}var bt=Ae||vt;function _t(){var e=Date;return e.now?e.now():(new e).getTime()}function Ct(e){return rt(e)?e.name:ve}function Et(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 wt(e,t,n){var r;return e?!(r=e[t])&&Ge(r)&&(r=qe(n)?{}:n,e[t]=r):r=qe(n)?{}:n,r}function xt(e,t){return Ge(e)?t:e}function kt(e){return!!e}function St(e){throw new Error(e)}function Tt(e,t){var n=null,r=null;return Xe(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function It(e,t,n,r,o){e&&t&&n&&(!1!==o||qe(e[t]))&&(e[t]=Tt(n,r))}function At(e,t,n,r){return e&&t&&Qe(e)&&nt(n)&&lt(n,(function(n){ot(n)&&It(e,n,t,n,r)})),e}function Pt(e){return e&&R&&(e=P(R({},e))),e}function Dt(e,t,n,r,o,i){var a=arguments,s=a[0]||{},c=a.length,l=!1,u=1;for(c>0&&at(s)&&(l=s,s=a[u]||{},u++),Qe(s)||(s={});u<c;u++){var d=a[u],p=nt(d),h=Qe(d);for(var f in d){var m=p&&f in d||h&&L.call(d,f);if(m){var g=d[f],v=void 0;if(l&&g&&((v=nt(g))||st(g))){var y=s[f];v?nt(y)||(y=[]):st(y)||(y={}),g=Dt(l,y,g)}void 0!==g&&(s[f]=g)}}}return s}var Rt=null,Mt=function(){function e(t,n,r){var o,i=this,a=!1;(i.start=_t(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},Xe(n))&&(a=gt(i,"payload",(function(){return!o&&Xe(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(nt(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=_t()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&Xe(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Nt=function(){function e(t){this.ctx={},ge(e,this,(function(e){e.create=function(e,t,n){return new Mt(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&Xe(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}(),Lt="CoreUtils.doPerf";function Ot(e,t,n,r,o){if(e){var i=e;if(i.getPerfMgr&&(i=i.getPerfMgr()),i){var a=void 0,s=i.getCtx(Lt);try{if(a=i.create(t(),r,o)){if(s&&a.setCtx&&(a.setCtx(Mt.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Mt.ChildrenContextKey);c||(c=[],s.setCtx(Mt.ChildrenContextKey,c)),c.push(a)}return i.setCtx(Lt,a),n(a)}}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&i.fire(a),i.setCtx(Lt,s)}}}return n()}var Ft="window",Bt="JSON",Ht="msie",zt="trident/",Vt="XMLHttpRequest",Ut=null,Wt=null,jt=!1,qt=null,Gt=null;function Kt(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e.prototype;r&&(n=t in r)}}catch(o){}if(!n)try{n=!qe((new e)[t])}catch(o){}}return n}function Yt(e){var t=F();return t&&t[e]?t[e]:e===Ft&&Qt()?window:null}function Qt(){return Boolean(typeof window===I&&window)}function Xt(){return Qt()?window:Yt(Ft)}function Zt(){return Boolean(typeof document===I&&document)}function Jt(){return Zt()?document:Yt("document")}function $t(){return Boolean(typeof navigator===I&&navigator)}function en(){return $t()?navigator:Yt("navigator")}function tn(){return Boolean(typeof history===I&&history)}function nn(e){if(e&&jt){var t=Yt("__mockLocation");if(t)return t}return typeof location===I&&location?location:Yt("location")}function rn(){return Yt("performance")}function on(){return Boolean(typeof JSON===I&&JSON||null!==Yt(Bt))}function an(){return on()?JSON||Yt(Bt):null}function sn(){var e=en();return!(!e||!e.product)&&"ReactNative"===e.product}function cn(){var e=en();if(e&&(e.userAgent!==Wt||null===Ut)){var t=((Wt=e.userAgent)||ve).toLowerCase();Ut=tt(t,Ht)||tt(t,zt)}return Ut}function ln(e){if(void 0===e&&(e=null),!e){var t=en()||{};e=t?(t.userAgent||ve).toLowerCase():ve}var n=(e||ve).toLowerCase();if(tt(n,Ht)){var r=Jt()||{};return Math.max(parseInt(n.split(Ht)[1]),r.documentMode||0)}if(tt(n,zt)){var o=parseInt(n.split(zt)[1]);if(o)return o+4}return null}function un(e){var t=Object.prototype.toString.call(e),n=ve;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":on()&&(n=an().stringify(e)),t+n}function dn(){return null===Gt&&(Gt=$t()&&Boolean(en().sendBeacon)),Gt}function pn(e){var t=!1;try{t=!!Yt("fetch");var n=Yt("Request");t&&e&&n&&(t=Kt(n,"keepalive"))}catch(r){}return t}function hn(){return null===qt&&(qt=typeof XDomainRequest!==A)&&fn()&&(qt=qt&&!Kt(Yt(Vt),"withCredentials")),qt}function fn(){var e=!1;try{e=!!Yt(Vt)}catch(t){}return e}var mn,gn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],vn=null;function yn(e,t){return function(){var n=arguments,r=bn(t);if(r){var o=r.listener;o&&o[e]&&o[e].apply(o,n)}}}function bn(e){var t=vn;return t||!0===e.disableDbgExt||(t=vn||function(){var e=Yt("Microsoft");return e&&(vn=e.ApplicationInsights),vn}()),t?t.ChromeDbgExt:null}function _n(e){if(!mn){mn={};for(var t=0;t<gn.length;t++)mn[gn[t]]=yn(gn[t],e)}return mn}function Cn(e){return e?'"'+e.replace(/\"/g,ve)+'"':ve}function En(e,t){var n=typeof console!==A?console:Yt("console");if(n){var r="log";n[e]&&(r=e),Xe(n[r])&&n[r](t)}}var wn=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=ve;on()&&(i=an().stringify(r));var a=(t?" message:"+Cn(t):ve)+(r?" props:"+Cn(i):ve);o.message+=a}return e.dataType="MessageData",e}();function xn(e,t){return(e||{}).logger||new kn(t)}var kn=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,i,a=0,s={};ge(e,this,(function(e){function c(t,n){if(!(a>=o)){var i=!0,c="AITR_"+n.messageId;if(s[c]?i=!1:s[c]=!0,i&&(t<=r&&(e.queue.push(n),a++,l(1===t?"error":"warn",n)),a===o)){var u="Internal events throttle limit per PageView reached for this app.",d=new wn(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function l(e,n){var r=bn(t||{});r&&r.diagLog&&r.diagLog(e,n)}!function(e){n=xt(e.loggingLevelConsole,0),r=xt(e.loggingLevelTelemetry,1),o=xt(e.maxMessageLimit,25),i=xt(e.enableDebug,xt(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 wn(r,o,u,a);if(i)throw un(d);var p=1===t?ke:Se;if(qe(d.message))l("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);c(t,d)}},e.warnToConsole=function(e){En("warn",e),l("warning",e)},e.errorToConsole=function(e){En("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e.logInternalMessage=c}))}return e.__ieDyn=1,e}();function Sn(e){return e||new kn}function Tn(e,t,n,r,o,i){void 0===i&&(i=!1),Sn(e).throwInternal(t,n,r,o,i)}function In(e,t){Sn(e).warnToConsole(t)}var An="toGMTString",Pn="toUTCString",Dn="expires",Rn=null,Mn=null,Nn=null,Ln=Jt(),On={},Fn={};function Bn(e,t){var n=Un._ckMgr||Fn._ckMgr;return n||(n=Un._ckMgr=Un(e,t),Fn._ckMgr=n),n}function Hn(e){return!e||e.isEnabled()}function zn(e,t){return!!(t&&e&&nt(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function Vn(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r._ckMgr?r._ckMgr:Un(t)}return n||(n=Bn(t,(e||{}).logger)),n}function Un(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(Et(t,"domain",e.cookieDomain,Ke,Ge),Et(t,"path",e.cookiePath||"/",null,Ge),Ge(t.enabled)){var n=void 0;qe(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),qe(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||Fn),o=r.path||"/",i=r.domain,a=!1!==r.enabled,s=((n={isEnabled:function(){var e=a&&Wn(t),n=Fn._ckMgr;return e&&n&&s!==n&&(e=Hn(n)),e}}).setEnabled=function(e){a=!1!==e},n.set=function(e,t,n,a,c){var l=!1;if(Hn(s)&&!function(e,t){return!!(t&&e&&nt(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||zn(e,t)}(r,e)){var u={},d=pt(t||ve),p=d.indexOf(";");if(-1!==p&&(d=pt(t.substring(0,p)),u=jn(t.substring(p+1))),Et(u,"domain",a||i,kt,qe),!Ge(n)){var h=cn();if(qe(u.expires)){var f=_t()+1e3*n;if(f>0){var m=new Date;m.setTime(f),Et(u,Dn,qn(m,h?An:Pn)||qn(m,h?An:Pn)||ve,kt)}}h||Et(u,"max-age",ve+n,null,qe)}var g=nn();g&&"https:"===g.protocol&&(Et(u,"secure",null,null,qe),null===Mn&&(Mn=!Qn((en()||{}).userAgent)),Mn&&Et(u,"SameSite","None",null,qe)),Et(u,"path",c||o,null,qe),(r.setCookie||Yn)(e,Gn(d,u)),l=!0}return l},n.get=function(e){var t=ve;return Hn(s)&&!zn(r,e)&&(t=(r.getCookie||Kn)(e)),t},n.del=function(e,t){var n=!1;return Hn(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var o,i=!1;if(Wn(t)){var a=((o={}).path=n||"/",o.expires="Thu, 01 Jan 1970 00:00:01 GMT",o);cn()||(a["max-age"]="0"),(r.delCookie||Yn)(e,Gn(ve,a)),i=!0}return i},n);return s._ckMgr=s,s}function Wn(e){if(null===Rn){Rn=!1;try{Rn=void 0!==(Ln||{}).cookie}catch(t){Tn(e,2,68,"Cannot access document.cookie - "+Ct(t),{exception:un(t)})}}return Rn}function jn(e){var t={};e&&e.length&&lt(pt(e).split(";"),(function(e){if(e=pt(e||ve)){var n=e.indexOf("=");-1===n?t[e]=null:t[pt(e.substring(0,n))]=pt(e.substring(n+1))}}));return t}function qn(e,t){return Xe(e[t])?e[t]():null}function Gn(e,t){var n=e||ve;return Je(t,(function(e,t){n+="; "+e+(Ge(t)?ve:"="+t)})),n}function Kn(e){var t=ve;if(Ln){var n=Ln.cookie||ve;Nn!==n&&(On=jn(n),Nn=n),t=pt(On[e]||ve)}return t}function Yn(e,t){Ln&&(Ln.cookie=e+"="+t)}function Qn(e){return!!ot(e)&&(!(!tt(e,"CPU iPhone OS 12")&&!tt(e,"iPad; CPU OS 12"))||(!!(tt(e,"Macintosh; Intel Mac OS X 10_14")&&tt(e,"Version/")&&tt(e,"Safari"))||(!(!tt(e,"Macintosh; Intel Mac OS X 10_14")||!$e(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!tt(e,"Chrome/5")&&!tt(e,"Chrome/6"))||(!(!tt(e,"UnrealEngine")||tt(e,"Chrome"))||!(!tt(e,"UCBrowser/12")&&!tt(e,"UCBrowser/11")))))))}var Xn=4294967296,Zn=4294967295,Jn=!1,$n=123456789,er=987654321;function tr(e){e<0&&(e>>>=0),$n=123456789+e&Zn,er=987654321-e&Zn,Jn=!0}function nr(){try{var e=2147483647&_t();tr((Math.random()*Xn^e)+e)}catch(t){}}function rr(e){var t=0,n=Yt("crypto")||Yt("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Zn),0===t&&cn()&&(Jn||nr(),t=or()&Zn),0===t&&(t=Math.floor(Xn*Math.random()|0)),e||(t>>>=0),t}function or(e){var t=((er=36969*(65535&er)+(er>>16)&Zn)<<16)+(65535&($n=18e3*(65535&$n)+($n>>16)&Zn))>>>0&Zn|0;return e||(t>>>=0),t}function ir(e){void 0===e&&(e=22);for(var t=rr()>>>0,n=0,r=ve;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(rr()<<2&4294967295|3&t)>>>0,n=0);return r}var ar=N,sr="2.8.16",cr="."+ir(6),lr=0;function ur(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function dr(e,t){var n=t[e.id];if(!n){n={};try{ur(t)&&(function(e,t,n){if(ar)try{return ar(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 pr(e,t){return void 0===t&&(t=!1),Ze(e+lr+++(t?".2.8.16":ve)+cr)}function hr(e){var t={id:pr("_aiData-"+(e||ve)+"."+sr),accept:function(e){return ur(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[Ze(n)]:(o&&((i=dr(t,e))[Ze(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}var fr="events",mr="visibilitychange",gr="pagehide",vr="pageshow",yr="unload",br="beforeunload",_r=pr("aiEvtPageHide"),Cr=pr("aiEvtPageShow"),Er=/\.[\.]+/g,wr=/[\.]+$/,xr=1,kr=hr("events"),Sr=/^([^.]*)(?:\.(.+)|)/;function Tr(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,ve):e}function Ir(e,t){var n;if(t){var r=ve;nt(t)?(r=ve,lt(t,(function(e){(e=Tr(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Tr(t),r&&("."!==r[0]&&(r="."+r),e=(e||ve)+r)}var o=Sr.exec(e||ve)||[];return(n={}).type=o[1],n.ns=(o[2]||ve).replace(Er,".").replace(wr,ve).split(".").sort().join("."),n}function Ar(e,t,n){void 0===n&&(n=!0);var r=kr.get(e,fr,{},n),o=r[t];return o||(o=r[t]=[]),o}function Pr(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 Dr(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)||(Pr(e,i.evtName,i.handler,i.capture),t.splice(o,1)))}}function Rr(e,t){return t?Ir("xx",nt(t)?[e].concat(t):[e,t]).ns.split("."):e}function Mr(e,t,n,r,o){var i;void 0===o&&(o=!1);var a=!1;if(e)try{var s=Ir(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&&kr.accept(e)){var c=((i={guid:xr++,evtName:s}).handler=n,i.capture=o,i);Ar(e,s.type).push(c)}}catch(l){}return a}function Nr(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=Ir(t,r),a=!1;!function(e,t,n){if(t.type)Dr(e,Ar(e,t.type),t,n);else{var r=kr.get(e,fr,{});Je(r,(function(r,o){Dr(e,o,t,n)})),0===mt(r).length&&kr.kill(e,fr)}}(e,i,(function(e){return!((!i.ns||n)&&e.handler!==n)&&(a=!0,!0)})),a||Pr(e,i,n,o)}catch(s){}}function Lr(e,t,n){var r=!1,o=Xt();o&&(r=Mr(o,e,t,n),r=Mr(o.body,e,t,n)||r);var i=Jt();return i&&(r=Mr(i,e,t,n)||r),r}function Or(e,t,n,r){var o=!1;return t&&e&&e.length>0&&lt(e,(function(e){e&&(n&&-1!==ut(n,e)||(o=Lr(e,t,r)||o))})),o}function Fr(e,t,n){e&&nt(e)&&lt(e,(function(e){e&&function(e,t,n){var r=Xt();r&&(Nr(r,e,t,n),Nr(r.body,e,t,n));var o=Jt();o&&Nr(o,e,t,n)}(e,t,n)}))}function Br(e,t,n){return function(e,t,n,r){var o=!1;return t&&e&&nt(e)&&!(o=Or(e,t,n,r))&&n&&n.length>0&&(o=Or(e,t,null,r)),o}([br,yr,gr],e,t,n)}function Hr(e,t){Fr([br,yr,gr],e,t)}function zr(e,t,n){var r=Rr(_r,n),o=Or([gr],e,t,r);return t&&-1!==ut(t,mr)||(o=Or([mr],(function(t){var n=Jt();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=zr(e,null,n)),o}function Vr(e,t){var n=Rr(_r,t);Fr([gr],e,n),Fr([mr],null,n)}function Ur(e,t,n){var r=Rr(Cr,n),o=Or([vr],e,t,r);return!(o=Or([mr],(function(t){var n=Jt();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=Ur(e,null,n)),o}function Wr(){var e=qr();return e.substring(0,8)+"-"+e.substring(8,12)+"-"+e.substring(12,16)+"-"+e.substring(16,20)+"-"+e.substring(20)}function jr(){var e=rn();return e&&e.now?e.now():_t()}function qr(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=ve,r=0;r<4;r++)n+=t[15&(e=rr())]+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&rr())|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 Gr,Kr="",Yr="1DS-Web-JS-3.2.14",Qr="withCredentials",Xr=((Gr={})[0]=0,Gr[2]=6,Gr[1]=1,Gr[3]=7,Gr[4098]=6,Gr[4097]=1,Gr[4099]=7,Gr),Zr=Boolean(Jt()),Jr=Boolean(Xt());function $r(e){return!(e===Kr||Ge(e))}function eo(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return Kr}function to(e){return!!(e&&it(e)&&e>=1&&e<=4)}function no(e,t,n){if(!t&&!$r(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||nt(t))t={value:t};else if("object"!==r||L.call(t,"value")){if(Ge(t.value)||t.value===Kr||!ot(t.value)&&!it(t.value)&&!at(t.value)&&!nt(t.value))return null}else t={value:n?JSON.stringify(t):t};if(nt(t.value)&&!lo(t.value))return null;if(!Ge(t.kind)){if(nt(t.value)||!co(t.kind))return null;t.value=t.value.toString()}return t}function ro(e,t,n){var r=-1;if(!qe(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=Xr[po(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function oo(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||Kr}function io(e){void 0===e&&(e="D");var t=Wr();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,Kr)),t}function ao(e,t,n,r,o){var i={},a=!1,s=0,c=arguments.length,l=Object.prototype,u=arguments;for("[object Boolean]"===l.toString.call(u[0])&&(a=u[0],s++);s<c;s++){Je(e=u[s],(function(e,t){a&&t&&Qe(t)?nt(t)?(i[e]=i[e]||[],lt(t,(function(t,n){t&&Qe(t)?i[e][n]=ao(!0,i[e][n],t):i[e][n]=t}))):i[e]=ao(!0,i[e],t):i[e]=t}))}return i}var so=jr;function co(e){return 0===e||e>0&&e<=13||32===e}function lo(e){return e.length>0}function uo(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=so()}function po(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===I&&(t=4,nt(e)?(t=4096,e.length>0&&(t|=po(e[0]))):L.call(e,"value")&&(t=8192|po(e.value)))}return t}function ho(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,Qr,n),s.open(e,t,!o),n&&a(s,Qr,n),!o&&i&&a(s,"timeout",i),s}var fo="00",mo="ff",go="00000000000000000000000000000000",vo="0000000000000000";function yo(e,t,n){return!(!e||e.length!==t||e===n)&&!!e.match(/^[\da-f]*$/i)}function bo(e,t,n){return yo(e,t)?e:n}function _o(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Co(e,t,n,r){var o;return(o={}).version=yo(r,2,mo)?r:fo,o.traceId=Eo(e)?e:qr(),o.spanId=wo(t)?t:qr().substr(0,16),o.traceFlags=n>=0&&n<=255?n:1,o}function Eo(e){return yo(e,32,go)}function wo(e){return yo(e,16,vo)}function xo(e){if(e){var t=_o(e.traceFlags);yo(t,2)||(t="01");var n=e.version||fo;return"00"!==n&&"ff"!==n&&(n=fo),"".concat(n.toLowerCase(),"-").concat(bo(e.traceId,32,go).toLowerCase(),"-").concat(bo(e.spanId,16,vo).toLowerCase(),"-").concat(t.toLowerCase())}return""}var ko=hr("plugin");function So(e){return ko.get(e,"state",{},!0)}function To(e,t){for(var n,r=[],o=null,i=e.getNext();i;){var a=i.getPlugin();if(a){o&&Xe(o.setNextPlugin)&&Xe(a.processTelemetry)&&o.setNextPlugin(a);(Xe(a.isInitialized)?a.isInitialized():(n=So(a)).isInitialized)||r.push(a),o=a,i=i.getNext()}}lt(r,(function(r){var o=e.core();r.initialize(e.getCfg(),o,t,e.getNext()),n=So(r),r.core||n.core||(n.core=o),n.isInitialized=!0,delete n.teardown}))}function Io(e){return e.sort((function(e,t){var n=0;if(t){var r=Xe(t.processTelemetry);Xe(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1)}else n=e?1:-1;return n}))}var Ao="TelemetryPluginChain",Po=0;function Do(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 Lo([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&&(lt(t,(function(e){try{e.func.call(e.self,e.args)}catch(t){Tn(n.logger,2,73,"Unexpected Exception during onComplete - "+un(t))}})),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return xn(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&&!Ge(i[n])?o=i[n]:t&&!Ge(t[n])&&(o=t[n]);return Ge(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:qe(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(Qe(n)&&0!==r){var a=Dt(!0,n,o);t&&2===r&&Je(n,(function(e){if(Ge(a[e])){var n=t[e];Ge(n)||(a[e]=n)}})),o=a}}else o=n;return o}return a}function Ro(e,t,n,r){var o=Do(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),nt(e)&&(e=Lo(e,t,n,r)),Ro(e||i.getNext(),t,n,r)},i}function Mo(e,t,n){var r=t.config||{},o=Do(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),nt(e)&&(e=Lo(e,r,t,n)),Mo(e||i.getNext(),t,n)},i}function No(e,t,n){var r=t.config||{},o=Do(e,r,t,n).ctx;return o.processNext=function(e){return o.iterate((function(t){Xe(t.update)&&t.update(o,e)}))},o.createNew=function(e,n){return void 0===e&&(e=null),nt(e)&&(e=Lo(e,r,t,n)),No(e||o.getNext(),t,n)},o}function Lo(e,t,n,r){var o=null,i=!r;if(nt(e)&&e.length>0){var a=null;lt(e,(function(e){if(i||r!==e||(i=!0),i&&e&&Xe(e.processTelemetry)){var s=function(e,t,n){var r,o=null,i=Xe(e.processTelemetry),a=Xe(e.setNextPlugin);r=e?e.identifier+"-"+e.priority+"-"+Po++:"Unknown-0-"+Po++;var s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:d,update:p,_id:r,_setNext:function(e){o=e}};function c(){var r;return e&&Xe(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=Ro(s,t,n)),r}function l(t,n,i,a,s){var c=!1,l=e?e.identifier:Ao,u=t._hasRun;return u||(u=t._hasRun={}),t.setNext(o),e&&Ot(t.core(),(function(){return l+":"+i}),(function(){u[r]=!0;try{var e=o?o._id:ve;e&&(u[e]=!1),c=n(t)}catch(s){var a=!o||u[o._id];a&&(c=!0),o&&a||Tn(t.diagLog(),1,73,"Plugin ["+l+"] failed during "+i+" - "+un(s)+", run flags: "+un(u))}}),a,s),c}function u(t,n){function r(n){if(!e||!i)return!1;var r=So(e);return!r.teardown&&!r.disabled&&(a&&e.setNextPlugin(o),e.processTelemetry(t,n),!0)}l(n=n||c(),r,"processTelemetry",(function(){return{item:t}}),!t.sync)||n.processNext(t)}function d(t,n){function r(){var r=!1;if(e){var o=So(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}l(t,r,"unload",(function(){}),n.isAsync)||t.processNext(n)}function p(t,n){function r(){var r=!1;if(e){var o=So(e),i=e.core||o.core;!e||i&&i!==t.core()||o.teardown||e.update&&!0===e.update(t,n)&&(r=!0)}return r}l(t,r,"update",(function(){}),!1)||t.processNext(n)}return bt(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}}))}return r&&!o?Lo([r],t,n):o}var Oo=500;function Fo(e,t,n){t&&nt(t)&&t.length>0&&(lt(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Oo&&St("Channel has invalid priority - "+e.identifier)})),e.push({queue:bt(t),chain:Lo(t,n.config,n)}))}function Bo(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){lt(e,(function(e){try{e(t,n)}catch(r){Tn(t.diagLog(),2,73,"Unexpected error calling unload handler - "+un(r))}})),e=[]}}}var Ho=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||Ro(null,{},a.core);t=r&&r.getPlugin?o.createNew(null,r.getPlugin):o.createNew(null,r)}return t}function c(e,t,o){e&&Et(e,_e,[],null,Ge),!o&&t&&(o=t.getProcessTelContext().getNext());var i=r;r&&r.getPlugin&&(i=r.getPlugin()),a.core=t,n=Ro(o,e,t,i)}function l(){t=!1,a.core=null,n=null,r=null,i=[],o=Bo()}l(),ge(e,a,(function(e){e.initialize=function(e,n,r,o){c(e,n,o),t=!0},e.teardown=function(t,n){var a,s=e.core;if(s&&(!t||s===t.core())){var c,u=!1,d=t||Mo(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)?c=!0:h(),c}function h(){if(!u){u=!0,o.run(d,n);var e=i;i=[],lt(e,(function(e){e.rm()})),!0===c&&d.processNext(p),l()}}},e.update=function(t,n){var o=e.core;if(o&&(!t||o===t.core())){var i,a=!1,s=t||No(null,o,r&&r.getPlugin?r.getPlugin():r),l=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,l,u)?i=!0:u(),i}function u(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(nt(e)?i=i.concat(e):i.push(e))},It(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&&Xe(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),zo=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(),ge(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){lt(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(c){Tn(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ct(c),{exception:un(c)},!0)}}o||e.processNext(t,n)},e._doTeardown=function(){i()}})),o}return W(t,e),t.__ieDyn=1,t}(Ho),Vo="Plugins must provide initialize method",Uo="SDK is still unloading...",Wo={loggingLevelConsole:1};function jo(e,t){return new Nt(t)}function qo(e,t){var n=!1;return lt(t,(function(t){if(t===e)return n=!0,-1})),n}var Go=function(){function e(){var t,n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,C=0,E=!1;ge(e,this,(function(e){function w(n){if(!C&&!E&&(n||e.logger&&e.logger.queue.length>0)){var r=xt(t.diagnosticLogInterval);r&&r>0||(r=1e4),C=setInterval((function(){clearInterval(C),C=0,P()}),r)}return C}function x(){n=!1,t=Dt(!0,{},Wo),e.config=t,e.logger=new kn(t),e._extensions=[],m=new zo,r=[],o=null,i=null,a=null,s=null,c=null,u=null,l=[],d=null,p=null,h=null,f=!1,g=null,v=pr("AIBaseCore",!0),y=Bo(),_=null}function k(){var n=Ro(I(),t,e);return n.onComplete(w),n}function S(n){var r=function(e,t,n){var r,o=[],i={};return lt(n,(function(n){(Ge(n)||Ge(n.initialize))&&St(Vo);var r=n.priority,a=n.identifier;n&&r&&(Ge(i[r])?i[r]=a:In(e,"Two extensions have same priority #"+r+" - "+i[r]+", "+a)),(!r||r<t)&&o.push(n)})),(r={all:n}).core=o,r}(e.logger,Oo,l);u=r.core,c=null;var o=r.all;if(h=bt(function(e,t,n){var r=[];if(e&&lt(e,(function(e){return Fo(r,e,n)})),t){var o=[];lt(t,(function(e){e.priority>Oo&&o.push(e)})),Fo(r,o,n)}return r}(p,o,e)),d){var i=ut(o,d);-1!==i&&o.splice(i,1),-1!==(i=ut(u,d))&&u.splice(i,1),d._setQueue(h)}else d=function(e,t){function n(){return Ro(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&&lt(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:Oo,initialize:function(t,n,r,i){o=!0,lt(e,(function(e){e&&e.queue.length>0&&To(Ro(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&&lt(e,(function(e){if(e&&e.queue.length>0&&(lt(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,c=!1,l=null;function u(){s--,c&&0===s&&(l&&(clearTimeout(l),l=null),o&&o(c),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==l?l=setTimeout((function(){l=null,u()}),a):u())}}))}),(function(){c=!0,u()})),!0},_setQueue:function(t){e=t}};return i}(h,e);o.push(d),u.push(d),e._extensions=Io(o),d.initialize(t,e,o),To(k(),o),e._extensions=bt(Io(u||[])).slice(),n&&function(t){var n=No(I(),e);n.onComplete(w),e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t)}(n)}function T(t){var n,r=null,o=null;return lt(e._extensions,(function(e){if(e.identifier===t&&e!==d&&e!==m)return o=e,-1})),!o&&d&&(o=d.getChannel(t)),o&&((n={plugin:o}).setEnabled=function(e){So(o).disabled=!e},n.isEnabled=function(){var e=So(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);A(r,i,(function(e){e&&S({reason:32,removed:r}),t&&t(e)}))},r=n),r}function I(){if(!c){var n=(u||[]).slice();-1===ut(n,m)&&n.push(m),c=Lo(Io(n),t,e)}return c}function A(n,r,o){if(n&&n.length>0){var i=Mo(Lo(n,t,e),e);i.onComplete((function(){var e=!1,t=[];lt(l,(function(r,o){qo(r,n)?e=!0:t.push(r)})),l=t;var r=[];p&&(lt(p,(function(t,o){var i=[];lt(t,(function(t){qo(t,n)?e=!0:i.push(t)})),r.push(i)})),p=r),o&&o(e),w()})),i.processNext(r)}else o(!1)}function P(){if(e.logger&&e.logger.queue){var n=e.logger.queue.slice(0);e.logger.queue.length=0,lt(n,(function(n){var r,o=((r={}).name=g||"InternalMessageId: "+n.messageId,r.iKey=xt(t.instrumentationKey),r.time=ct(new Date),r.baseType=wn.dataType,r.baseData={message:n.message},r);e.track(o)}))}}function D(e,t,n,r){return d?d.flush(e,t,n||6,r):(t&&t(!1),!0)}function R(t){var n=e.logger;n?(Tn(n,2,73,t),w()):St(t)}x(),e.isInitialized=function(){return n},e.initialize=function(r,i,s,c){f&&St(Uo),e.isInitialized()&&St("Core should not be initialized more than once"),t=r||{},e.config=t,Ge(r.instrumentationKey)&&St("Please provide instrumentation key"),o=c,e._notificationManager=c,function(){var e=xt(t.disableDbgExt);!0===e&&b&&(o.removeNotificationListener(b),b=null);o&&!b&&!0!==e&&(b=_n(t),o.addNotificationListener(b))}(),function(){var e=xt(t.enablePerfMgr);!e&&a&&(a=null);e&&wt(t,be,jo)}(),wt(t,_e,{}).NotificationManager=o,s&&(e.logger=s);var u=wt(t,"extensions",[]);(l=[]).push.apply(l,j(j([],i),u)),p=wt(t,ye,[]),S(null),h&&0!==h.length||St("No channels available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&lt(h,(function(t){e.push(t.queue)})),bt(e)},e.track=function(n){n.iKey=n.iKey||t.instrumentationKey,n.time=n.time||ct(new Date),n.ver=n.ver||"4.0",!f&&e.isInitialized()?k().processNext(n):r.push(n)},e.getProcessTelContext=k,e.getNotifyMgr=function(){return o||(o=function(){var e;return H(((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=Un(t,e.logger)),s},e.setCookieMgr=function(e){s=e},e.getPerfMgr=function(){if(!i&&!a&&xt(t.enablePerfMgr)){var n=xt(t.createPerfMgr);Xe(n)&&(a=n(e,e.getNotifyMgr()))}return i||a||Rt},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return r.length},e.releaseQueue=function(){if(n&&r.length>0){var e=r;r=[],lt(e,(function(e){k().processNext(e)}))}},e.pollInternalLogs=function(e){return g=e||null,E=!1,C&&(clearInterval(C),C=null),w(!0)},e.stopPollingInternalLogs=function(){E=!0,C&&(clearInterval(C),C=0,P())},At(e,(function(){return m}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||St("SDK is not initialized"),f&&St(Uo);var a=((i={reason:50}).isAsync=t,i.flushComplete=!1,i),s=Mo(I(),e);function c(t){a.flushComplete=t,f=!0,y.run(s,a),e.stopPollingInternalLogs(),s.processNext(a)}s.onComplete((function(){x(),r&&r(a)}),e),P(),D(t,c,6,o)||c(!1)},e.getPlugin=T,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void R(Vo);var o=T(e.identifier);if(o&&!t)return r&&r(!1),void R("Plugin ["+e.identifier+"] is already loaded!");var i={reason:16};function a(t){l.push(e),i.added=[e],S(i),r&&r(!0)}if(o){var s=[o.plugin];A(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 _||(_=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),Eo(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){e&&e.setSpanId(n),wo(n)&&(t.spanId=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}()),_},e.setTraceCtx=function(e){_=e||null},It(e,"addUnloadCb",(function(){return y}),"add")}))}return e.__ieDyn=1,e}();function Ko(e,t,n,r){lt(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(o){}}))}var Yo=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;ge(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=ut(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=ut(e.listeners,t)},e.eventsSent=function(t){Ko(e.listeners,Ce,!0,(function(e){e.eventsSent(t)}))},e.eventsDiscarded=function(t,n){Ko(e.listeners,Ee,!0,(function(e){e.eventsDiscarded(t,n)}))},e.eventsSendRequest=function(t,n){Ko(e.listeners,we,n,(function(e){e.eventsSendRequest(t,n)}))},e.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Ko(e.listeners,xe,!1,(function(e){t.isAsync?setTimeout((function(){return e.perfEvent(t)}),0):e.perfEvent(t)})))}}))}return e.__ieDyn=1,e}(),Qo=function(e){function t(){var n=e.call(this)||this;return ge(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 kn(e),o||new Yo(e))},e.track=function(r){Ot(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),St("Invalid telemetry item")),function(e){Ge(e.name)&&(n(e),St("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return W(t,e),t.__ieDyn=1,t}(Go),Xo=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],ge(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new kn({loggingLevelConsole:1})),e.initialize=function(n,r,o,i){Ot(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||St("Invalid property storage override passed."),n.channels&&lt(n.channels,(function(e){e&&lt(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&&lt(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(u){var c=e.logger,l=un(u);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),Tn(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){Ot(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=so(),to(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=Yr;var i=r.baseData=r.baseData||{};i.properties=i.properties||{};var a=i.properties;a.version=a.version||e.pluginVersionString||Kr}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return W(t,e),t.__ieDyn=1,t}(Qo),Zo=Xo;function Jo(e){var t={};return Je(e,(function(e,n){t[e]=n,t[n]=e})),yt(t)}function $o(e){var t={};return Je(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),yt(t)}var ei=Jo({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),ti="REAL_TIME",ni="",ri="POST",oi="drop",ii="send",ai="requeue",si="rspFail",ci="application/x-json-stream",li="cache-control",ui="content-type",di="kill-duration",pi="time-delta-millis",hi="client-version",fi="client-id",mi="time-delta-to-apply-millis",gi="upload-time",vi="apikey",yi="AuthMsaDeviceTicket",bi="AuthXToken";function _i(e){var t=(e.ext||{}).intweb;return t&&$r(t.msfpc)?t.msfpc:null}function Ci(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=_i(e[n]);return t}var Ei=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=Ci(r);o.iKey=function(){return t},o.Msfpc=function(){return i||ni},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=_i(e)),!0)},o.split=function(n,o){var a;if(n<r.length){var s=r.length-n;Ge(o)||(s=o<s?o:s),a=r.splice(n,s),i=Ci(r)}return new e(t,a)}}return e.create=function(t,n){return new e(t,n)},e}(),wi=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",i=!1;ge(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}(),xi=function(){function e(){var t={};ge(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&lt(e,(function(e){t.push(pt(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]]=_t()+o}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=pt(e);return void 0!==n[r]&&n[r]>_t()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),ki=xi;function Si(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var Ti,Ii=2e6,Ai=Math.min(Ii,65e3),Pi=/\./,Di=function(){function e(t,n,r,o){var i="data",a="baseData",s=!!o,c=n,l={};ge(e,this,(function(e){function n(e,t,o,i,a,u,d){Je(e,(function(e,p){var h=null;if(p||$r(p)){var f=o,m=e,g=a,v=t;if(s&&!i&&Pi.test(e)){var y=e.split("."),b=y.length;if(b>1){g&&(g=g.slice());for(var _=0;_<b-1;_++){var C=y[_];v=v[C]=v[C]||{},f+="."+C,g&&g.push(C)}m=y[b-1]}}var E=i&&function(e,t){var n=l[e];return void 0===n&&(e.length>=7&&(n=et(e,"ext.metadata")||et(e,"ext.web")),l[e]=n),n}(f);if(h=!E&&c&&c.handleField(f,m)?c.value(f,m,p,r):no(m,p,r)){var w=h.value;if(v[m]=w,u&&u(g,m,h),d&&"object"===typeof w&&!nt(w)){var x=g;x&&(x=x.slice()).push(m),n(p,w,f+"."+m,i,x,u,d)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:ni,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&&Ot(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,c=[],l=[],u=n.isBeacon,d=u?65e3:3984588,p=u?Ai:Ii,h=0,f=0;h<t.length;){var m=t[h];if(m){if(a>=o){n.overflow=r.split(h);break}var g=e.getEventBlob(m);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,++f>20&&(i.substr(0,1),f=0),s=!0,a++}else g?c.push(m):l.push(m),t.splice(h,1),h--}h++}if(c&&c.length>0&&n.sizeExceed.push(Ei.create(r.iKey(),c)),l&&l.length>0&&n.failedEvts.push(Ei.create(r.iKey(),l)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var y=r.iKey();-1===ut(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 Ot(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+eo(e.iKey);var r={},o=e.ext;o&&(t.ext=r,Je(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var s=t.data={};s.baseType=e.baseType;var c=s.baseData={};return n(e.baseData,c,a,!1,[a],(function(e,t,n){Ri(r,e,t,n)}),true),n(e.data,s,i,!1,[],(function(e,t,n){Ri(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(r){return null}}}))}return e.__ieDyn=1,e}();function Ri(e,t,n,r){if(r&&e){var o=ro(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 c=t[s];a[c]||(a[c]={f:{}});var l=a[c].f;l||(l=a[c].f={}),a=l}a=a[n]={},nt(r.value)?a.a={t:o}:a.t=o}}}var Mi="&NoResponseBody=true",Ni=((Ti={})[1]=ai,Ti[100]=ai,Ti[200]="sent",Ti[8004]=oi,Ti[8003]=oi,Ti),Li={},Oi={};function Fi(e,t,n){Li[e]=t,!1!==n&&(Oi[t]=e)}function Bi(e){try{return e.responseText}catch(t){}return ni}function Hi(e,t){var n=!1;if(e&&t){var r=mt(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&Ye(t,a)&&a.toLowerCase()===o){n=!0;break}}}return n}function zi(e,t,n,r){t&&n&&n.length>0&&(r&&Li[t]?(e.hdrs[Li[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function Vi(e,t){return t&&(it(t)?e=[t].concat(e):nt(t)&&(e=t.concat(e))),e}Fi(yi,yi,!1),Fi(hi,hi),Fi(fi,"Client-Id"),Fi(vi,vi),Fi(mi,mi),Fi(gi,gi),Fi(bi,bi);var Ui=function(){function e(t,n,r,o,i){this._responseHandlers=[];var a,s,c,l,u,d,p,h,f,m,g="?cors=true&"+ui.toLowerCase()+"="+ci,v=new ki,y=!1,b=new wi,_=!1,C=0,E=!0,w=[],x={},k=[],S=null,T=!1,I=!1,P=!1;ge(e,this,(function(e){var D=!0;function R(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?hn()?r=M:fn()&&(r=L):2===n&&pn(t)&&(!t||t&&!h)?r=N:_&&3===n&&dn()&&(r=F),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function M(e,t,n){var r=new XDomainRequest;r.open(ri,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Bi(r);O(t,200,{},e),Q(e)},r.onerror=function(){O(t,400,{})},r.ontimeout=function(){O(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,c=((r={body:e.data,method:ri}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(c.keepalive=!0,2===e._sendReason&&(a=!0,m&&(o+=Mi))),D&&(c.credentials="include"),e.headers&&mt(e.headers).length>0&&(c.headers=e.headers),fetch(o,c).then((function(e){var n={},r=ni,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),s||(s=!0,O(t,e.status,n,r),Q(r))})).catch((function(e){s||(s=!0,O(t,0,{}))})),a&&!s&&(s=!0,O(t,200,{})),!s&&e.timeout>0&&i.set((function(){s||(s=!0,O(t,500,{}))}),e.timeout)}function L(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]=pt(r))}return e}function i(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(ot(e)){lt(pt(e).split(/[\r\n]+/),(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=pt(e.substring(0,n)).toLowerCase(),o=pt(e.substring(n+1));t[r]=o}else t[pt(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,pi),t=o(t,e,di),t=o(t,e,"kill-duration-seconds")),t}function a(e,n){O(t,e.status,i(e),n)}n&&e.disableXhrSync&&(n=!1);var s=ho(ri,r,D,!0,n,e.timeout);Je(e.headers,(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=Bi(s);a(s,e),Q(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function O(e,t,n,r){try{e(t,n,r)}catch(o){Tn(s,2,518,un(o))}}function F(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(m?Mi:ni);try{var a=en();if(!a.sendBeacon(i,e.data))if(o){var c=[];lt(o.batches,(function(e){if(c&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!a.sendBeacon(i,S.getEventBlob(t[n]))){c.push(e.split(n));break}}else c.push(e.split(0))})),X(c,8003,o.sendType,!0)}else r=0}catch(l){In(s,"Failed to send telemetry using sendBeacon API. Ex:"+un(l)),r=0}finally{O(t,r,{},ni)}}function B(e){return 2===e||3===e}function H(e){return I&&B(e)&&(e=2),e}function z(){return!y&&C<n}function V(){var e=k;return k=[],e}function U(e,t,n){var r=!1;return e&&e.length>0&&!y&&c[t]&&S&&(r=0!==t||z()&&(n>0||b.allowRequestSending())),r}function W(e){var t={};return e&&lt(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function j(e,n,r,o,i){if(e&&0!==e.length)if(y)X(e,1,o);else{o=H(o);try{var a=e,u=0!==o;Ot(l,(function(){return"HttpManager:_sendBatches"}),(function(a){a&&(e=e.slice(0));for(var s=[],l=null,d=so(),p=c[o]||(u?c[1]:c[0]),h=p&&p._transport,m=f&&(I||B(o)||3===h||p._isSync&&2===h);U(e,o,n);){var g=e.shift();g&&g.count()>0&&(v.isTenantKilled(g.iKey())?s.push(g):(l=l||S.createPayload(n,r,u,m,i,o),S.appendPayload(l,g,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,K(l,d,so(),i),d=so(),l=null):(K(l,d,so(),i),d=so(),e=[g].concat(e),l=null)))}l&&K(l,d,so(),i),e.length>0&&(k=e.concat(k)),X(s,8004,o)}),(function(){return{batches:W(a),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:i,useSendBeacon:B(o),sendType:o}}),!u)}catch(d){Tn(s,2,48,"Unexpected Exception sending batch: "+un(d))}}}function q(e,t){var n={url:g,hdrs:{},useHdrs:!1};t?(n.hdrs=ao(n.hdrs,x),n.useHdrs=mt(n.hdrs).length>0):Je(x,(function(e,t){Oi[e]?zi(n,Oi[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),zi(n,fi,"NO_AUTH",t),zi(n,hi,Yr,t);var r=ni;lt(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),zi(n,vi,r,t),zi(n,gi,_t().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 ni}(e);if($r(o)&&(n.url+="&ext.intweb.msfpc="+o),b.shouldAddClockSkewHeaders()&&zi(n,mi,b.getClockSkewHeaderValue(),t),l.getWParam){var i=l.getWParam();i>=0&&(n.url+="&w="+i)}for(var a=0;a<w.length;a++)n.url+="&"+w[a].name+"="+w[a].value;return n}function G(e,t,n){e[t]=e[t]||{},e[t][a.identifier]=n}function K(t,n,o,i){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var u=!!e.sendHook,f=c[t.sendType];!B(t.sendType)&&t.isBeacon&&2===t.sendReason&&(f=c[2]||c[3]||f);var m=P;(t.isBeacon||3===f._transport)&&(m=!1);var g=q(t,m);m=m||g.useHdrs;var y=so();Ot(l,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var c=0;c<t.batches.length;c++)for(var _=t.batches[c].events(),w=0;w<_.length;w++){var x=_[w];if(T){var k=x.timings=x.timings||{};G(k,"sendEventStart",y),G(k,"serializationStart",n),G(k,"serializationCompleted",o)}x.sendAttempt>0?x.sendAttempt++:x.sendAttempt=1}X(t.batches,1e3+(i||0),t.sendType,!0);var S={data:t.payloadBlob,urlString:g.url,headers:g.hdrs,_thePayload:t,_sendReason:i,timeout:d,disableXhrSync:p,disableFetchKeepAlive:h};m&&(Hi(S.headers,li)||(S.headers["cache-control"]="no-cache, no-store"),Hi(S.headers,ui)||(S.headers["content-type"]=ci));var P=null;f&&(P=function(n){b.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var s=9e3,c=null,l=!1,u=!1;try{var d=!0;if(typeof t!==A){if(n){b.setClockSkew(n["time-delta-millis"]);var p=n["kill-duration"]||n["kill-duration-seconds"];lt(v.setKillSwitchTenants(n["kill-tokens"],p),(function(e){lt(o.batches,(function(t){if(t.iKey()===e){c=c||[];var n=t.split(0);o.numEvents-=n.count(),c.push(n)}}))}))}if(200==t||204==t)return void(s=200);((f=t)>=300&&f<500&&408!=f&&429!=f||501==f||505==f||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<r?(l=!0,Y((function(){0===o.sendType&&C--,j(o.batches,h+1,o.isTeardown,I?2:o.sendType,5)}),I,Si(h))):(u=!0,I&&(s=8001)))}}finally{l||(b.setClockSkew(),function(t,n,r,o){try{o&&a._backOffTransmission(),200===n&&(o||t.isSync||a._clearBackOff(),function(e){if(T){var t=so();lt(e,(function(e){e&&e.count()>0&&function(e,t){T&&lt(e,(function(e){G(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),X(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(C--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,s,i,u)),X(c,8004,o.sendType)}var f}(n,o,t,i)},c=t.isTeardown||t.isSync;try{f.sendPOST(n,o,c),e.sendListener&&e.sendListener(S,n,c,t.isBeacon)}catch(l){In(s,"Unexpected exception sending payload. Ex:"+un(l)),O(o,0,{})}}),Ot(l,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(P)if(0===t.sendType&&C++,u&&!t.isBeacon&&3!==f._transport){var n={data:S.data,urlString:S.urlString,headers:ao({},S.headers),timeout:S.timeout,disableXhrSync:S.disableXhrSync,disableFetchKeepAlive:S.disableFetchKeepAlive},r=!1;Ot(l,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,E||e._thePayload||(e._thePayload=e._thePayload||S._thePayload,e._sendReason=e._sendReason||S._sendReason),P(e)}),t.isSync||t.isTeardown)}catch(o){r||P(S)}}))}else P(S)}))}),(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 Y(e,t,n){t?e():i.set(e,n)}function Q(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(i){Tn(s,1,519,"Response handler failed: "+i)}if(t){var o=JSON.parse(t);$r(o.webResult)&&$r(o.webResult.msfpc)&&u.set("MSFPC",o.webResult.msfpc,31536e3)}}catch(a){}}function X(e,t,n,r){if(e&&e.length>0&&o){var i=o[function(e){var t=Ni[e];$r(t)||(t="oth",e>=9e3&&e<=9999?t=si:e>=8e3&&e<=8999?t=oi:e>=1e3&&e<=1999&&(t=ii));return t}(t)];if(i){var a=0!==n;Ot(l,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){Y((function(){try{i.call(o,e,t,a,n)}catch(r){Tn(s,1,74,"send request notification failed: "+r)}}),r||a,0)}),(function(){return{batches:W(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,P=!!qe(o.avoidOptions)||!o.avoidOptions,l=t,u=t.getCookieMgr(),T=!l.config.disableEventTimings;var v=!!l.config.enableCompoundKey;s=(a=n).diagLog();var y=o.valueSanitizer,b=o.stringifyObjects;qe(o.enableCompoundKey)||(v=!!o.enableCompoundKey),d=o.xhrTimeout,p=!!o.disableXhrSync,h=!!o.disableFetchKeepAlive,m=!1!==o.addNoResponse,_=!sn(),S=new Di(l,y,b,v),Ge(o.useSendBeacon)||(_=!!o.useSendBeacon);var C=r,w=o.alwaysUseXhrOverride?r:null,x=o.alwaysUseXhrOverride?r:null,k=[3,2];if(!r){E=!1;var I=nn();I&&I.protocol&&"file:"===I.protocol.toLowerCase()&&(D=!1);var A=[];sn()?(A=[2,1],k=[2,1,3]):A=[1,2,3],(r=R(A=Vi(A,o.transports),!1))||In(s,"No available transport to send events"),C=R(A,!0)}w||(w=R(k=Vi(k,o.unloadTransports),!0)),f=!E&&(_&&dn()||!h&&pn(!0)),(i={})[0]=r,i[1]=C||R([1,2,3],!0),i[2]=w||C||R([1],!0),i[3]=x||R([2,3],!0)||C||R([1],!0),c=i},e._getDbgPlgTargets=function(){return[c[0],v,S,c]},e.addQueryStringParameter=function(e,t){for(var n=0;n<w.length;n++)if(w[n].name===e)return void(w[n].value=t);w.push({name:e,value:t})},e.addHeader=function(e,t){x[e]=t},e.canSendRequest=function(){return z()&&b.allowRequestSending()},e.sendQueuedRequests=function(e,t){qe(e)&&(e=0),I&&(e=H(e),t=2),U(k,e,0)&&j(V(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!y&&0===C&&0===k.length},e.setUnloading=function(e){I=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&&j(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&&(Ge(t)&&(t=1),I&&(t=H(t),n=2),j([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Wi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function ji(e){clearTimeout(e)}function qi(e,t){return{set:e||Wi,clear:t||ji}}var Gi,Ki="eventsDiscarded",Yi=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.14";var o,i,a,s,c,l,u,d=!1,p=[],h=null,f=!1,m=0,g=500,v=0,y=1e4,b={},_=ti,C=null,E=null,w=0,x=0,k={},S=-1,T=!0,I=!1,A=6,P=2;return ge(t,r,(function(e,t){function r(e){"beforeunload"!==(e||Xt().event).type&&(I=!0,i.setUnloading(I)),H(2,2)}function D(e){I=!1,i.setUnloading(I)}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,T&&(e.ext=Pt(e.ext),e.baseData&&(e.baseData=Pt(e.baseData)),e.data&&(e.data=Pt(e.data))),e.sync)if(w||f)e.latency=3,e.sync=!1;else if(i)return T&&(e=Pt(e)),void i.sendSynchronousBatch(Ei.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=v,o=y;4===n&&(r=m,o=g);var a=!1;if(r<o)a=!U(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,r){for(;n<=t;){var o=z(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?m-=a:v-=a,Z(Ki,[i],ei.QueueFull),!0}n++}return W(),!1}(e.iKey,e.latency,s,c)&&(a=!U(e,t))}a&&X(Ki,[e],ei.QueueFull)}function M(e,t,n){var r=j(e,t,n);return i.sendQueuedRequests(t,n),r}function N(){return v>0}function L(){if(S>=0&&j(S,0,c)&&i.sendQueuedRequests(0,c),m>0&&!E&&!f){var e=b[_][2];e>=0&&(E=F((function(){E=null,M(4,0,1),L()}),e))}var t=b[_][1];!C&&!h&&t>=0&&!f&&(N()?C=F((function(){C=null,M(0===x?3:1,0,1),x++,x%=2,L()}),t):x=0)}function O(){n=null,d=!1,p=[],h=null,f=!1,m=0,g=500,v=0,y=1e4,b={},_=ti,C=null,E=null,w=0,x=0,o=null,k={},a=void 0,s=0,S=-1,c=null,T=!0,I=!1,A=6,P=2,l=null,u=qi(),i=new Ui(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 F(e,t){0===t&&w&&(t=1);var n=1e3;return w&&(n=Si(w-1)),u.set(e,t*n)}function B(){return null!==C&&(u.clear(C),C=null,x=0,!0)}function H(e,t){B(),h&&(u.clear(h),h=null),f||M(1,e,t)}function z(e,t,n){var r=k[t];r||(r=k[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=Ei.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function V(t,n){i.canSendRequest()&&!w&&(a>0&&v>a&&(n=!0),n&&null==h&&e.flush(t,null,20))}function U(e,t){T&&(e=Pt(e));var n=e.latency,r=z(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(v++,t&&0===e.sendAttempt&&V(!e.sync,s>0&&r.count()>=s)):m++,!0)}function W(){for(var e=0,t=0,n=function(n){var r=k[n];r&&r.batches&&lt(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);v=t,m=e}function j(t,n,r){var o=!1,a=0===n;return!a||i.canSendRequest()?Ot(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&&(lt(r.batches,(function(t){i.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?m-=t.count():v-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&X(Ki,e,ei.KillSwitch),o&&S>=t&&(S=-1,c=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(S=S>=0?Math.min(S,t):t,c=Math.max(c,r)),o}function q(e,t){M(1,0,t),W(),G((function(){e&&e(),p.length>0?h=F((function(){h=null,q(p.shift(),t)}),0):(h=null,L())}))}function G(e){i.isCompletelyIdle()?e():h=F((function(){h=null,G(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=A;I&&(o=P),lt(t,(function(t){t&&t.count()>0&&lt(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(uo(t,e.identifier),R(t,!1)):r.push(t))}))})),r.length>0&&X(Ki,r,ei.NonRetryableStatus),I&&H(2,2)}function Q(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(i){Tn(e.diagLog(),1,74,t+" notification failed: "+i)}}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&Q(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&&lt(t,(function(t){t&&t.count()>0&&Q(e,[t.events()].concat(n))}))}function J(e,t,n){e&&e.length>0&&Q("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function $(e,t){Z("eventsSent",e,t),L()}function ee(e,t){Z(Ki,e,t>=8e3&&t<=8999?t-8e3:ei.Unknown)}function te(e){Z(Ki,e,ei.NonRetryableStatus),L()}function ne(e,t){Z(Ki,e,ei.Unknown),L()}function re(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,y/6)}O(),e._getDbgPlgTargets=function(){return[i]},e.initialize=function(s,c,d){Ot(c,(function(){return"PostChannel:initialize"}),(function(){var p=c;t.initialize(s,c,d);try{c.addUnloadCb;l=Rr(pr(e.identifier),c.evtNamespace&&c.evtNamespace());var h=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),u=qi(n.setTimeoutOverride,n.clearTimeoutOverride),T=!n.disableOptimizeObj&&!!Yt("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),it(n.maxEventRetryAttempts)&&(A=n.maxEventRetryAttempts),it(n.maxUnloadEventRetryAttempts)&&(P=n.maxUnloadEventRetryAttempts),re(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),$r(s.anonCookieName)&&i.addQueryStringParameter("anoncknm",s.anonCookieName),i.sendHook=n.payloadPreprocessor,i.sendListener=n.payloadListener;var f=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=c.getNotifyMgr(),i.initialize(f,e.core,e,o,n);var m=s.disablePageUnloadEvents||[];Br(r,m,l),zr(r,m,l),Ur(D,s.disablePageShowEvents,l)}catch(v){throw e.setInitialized(!1),v}}),(function(){return{coreConfig:s,core:c,extensions:d}}))},e.processTelemetry=function(t,r){uo(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),I?H(2,2):L()),e.processNext(a,r)},e._doTeardown=function(e,t){H(2,2),d=!0,i.teardown(),Hr(null,l),Vr(null,l),function(e,t){var n=Rr(Cr,t);Fr([vr],e,n),Fr([mr],null,n)}(null,l),O()},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&&lt(o.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}V(!0,n)},e.pause=function(){B(),f=!0,i.pause()},e.resume=function(){f=!1,i.resume(),L()},e.addResponseHandler=function(e){i._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){B(),K(),_=ti,L(),Je(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),!f)if(n=n||1,e)null==h?(B(),j(1,0,n),h=F((function(){h=null,q(t,n)}),0)):p.push(t);else{var r=B();M(1,1,n),null!==t&&void 0!==t&&t(),r&&L()}},e.setMsaAuthTicket=function(e){i.addHeader(yi,e)},e.hasEvents=N,e._setTransmitProfile=function(e){_!==e&&void 0!==b[e]&&(B(),_=e,L())},e._backOffTransmission=function(){w<4&&(w++,B(),L())},e._clearBackOff=function(){w&&(w=0,B(),L())},gt(e,"_setTimeoutOverride",(function(){return u.set}),(function(e){u=qi(e,u.clear)})),gt(e,"_clearTimeoutOverride",(function(){return u.clear}),(function(e){u=qi(u.set,e)}))})),r}return W(t,e),t.__ieDyn=1,t}(Ho),Qi=Yi,Xi="locale",Zi="ver",Ji="name",$i=$o({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"]}),ea=$o({id:[0,"id"],ver:[1,Zi],appName:[2,Ji],locale:[3,Xi],expId:[4,"expId"],env:[5,"env"]}),ta=$o({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),na=$o({locale:[0,Xi],localId:[1,"localId"],id:[2,"id"]}),ra=$o({osName:[0,Ji],ver:[1,Zi]}),oa=$o({ver:[0,Zi],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),ia=$o({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),aa=$o({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),sa=$o({tz:[0,"tz"]}),ca=$o({sessionId:[0,"sesId"]}),la=$o({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),ua=$o({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),da=$o({traceId:[0,"traceID"],traceName:[1,Ji],parentId:[2,"parentID"]}),pa=$o({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function ha(){return void 0===Gi&&(Gi=!!ma(0)),Gi}function fa(){return ha()?ma(0):null}function ma(e){var t,n,r=null;try{var o=F();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&Xe(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function ga(){return this.getId()}function va(e){this.setId(e)}var ya=function(){function e(){ge(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return ot(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void gt(e.prototype,"id",ga,va),e}(),ba="ai_session",_a=function(){function e(t,n){var r,o,i=xn(t),a=Vn(t);ge(e,this,(function(t){var s,c={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 l(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(s){Tn(i,1,510,"Error parsing ai_session cookie, session will be reset: "+s)}0===n.renewalDate&&Tn(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();!qe(r)&&r?at(r)?e.setId(io()):e.setId(io(r)):e.setId(ir(c&&c.idLength?c.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,d(e.getId(),e.acquisitionDate,e.renewalDate),ha()||Tn(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(),c=i+t.config.sessionRenewalMs(),l=new Date,u=[e,n,i];s<c?l.setTime(s):l.setTime(c);var d=t.config.cookieDomain?t.config.cookieDomain():null;a.set(o(),u.join("|")+";expires="+l.toUTCString(),null,d),r=(new Date).getTime()}Xe(n.sessionExpirationMs)||(c.sessionExpirationMs=function(){return e.acquisitionSpan}),Xe(n.sessionRenewalMs)||(c.sessionRenewalMs=function(){return e.renewalSpan}),t.config=c,o=function(){return t.config.namePrefix&&t.config.namePrefix()?ba+t.config.namePrefix():ba},t.automaticSession=new ya,t.update=function(){t.automaticSession.getId()||function(){var e=a.get(o());if(e&&Xe(e.split))l(e);else{var n=function(e,t){var n=fa();if(null!==n)try{return n.getItem(t)}catch(r){Gi=!1,Tn(e,1,503,"Browser failed read of local storage. "+r)}return null}(i,o());n&&l(n)}t.automaticSession.getId()||u()}();var n=t.automaticSession,s=t.config,c=(new Date).getTime(),p=c-n.acquisitionDate>s.sessionExpirationMs(),h=c-n.renewalDate>s.sessionRenewalMs();if(p||h)u();else{(!r||c-r>e.cookieUpdateInterval)&&(n.renewalDate=c,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=fa();if(null!==r)try{r.setItem(t,n)}catch(o){Gi=!1,Tn(e,1,504,"Browser failed write to local storage. "+o)}}(i,o(),[e,n,r].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),Ca=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function Ea(e,t){void 0===t&&(t=Ca);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)wa(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function wa(e,t){if(void 0===t&&(t=Ca),!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 xa(){return this.getExpId()}var ka=function(){function e(t,n){var r=null,o=Ca.slice(0),i="Treatments",a=Vn(n),s=t;ge(e,this,(function(e){if(Zt()){var n=Jt().documentElement;n&&(e.locale=n.lang)}function c(e){e!==r&&(r=Ea(e,o))}e.env=t.env?t.env:function(e){var t,n={},r=Jt();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?(c(s.expId),r):(c(oo(a,i)),r)}}))}return e.validateAppExpId=Ea,e._staticInit=void gt(e.prototype,"expId",xa),e}(),Sa=function(){},Ta=function(){};function Ia(){return this.getMsfpc()}function Aa(){return this.getAnid()}var Pa=function(){function e(t,n){var r=Vn(n);ge(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return oo(r,"MSFPC")},e.getAnid=function(){return oo(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;gt(t,"msfpc",Ia),gt(t,"anid",Aa)}(),e}(),Da=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())},Ra={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},Ma={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Na="Unknown",La=[{r:Ra.WINPHONE,os:"Windows Phone"},{r:Ra.WINRT,os:"Windows RT"},{r:Ra.WIN,os:"Windows"},{r:Ra.IOS,os:"iOS"},{r:Ra.ANDROID,os:"Android"},{r:Ra.LINUX,os:"Linux"},{r:Ra.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:Ra.OSX,os:"Mac OS X"}];function Oa(e,t){return"Windows"===t?Fa(e,"Windows NT"):"Android"===t?Fa(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=Ba(n);return r?n.split(r)[0]:n}}return Na}(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=Ba(n);return r?n.split(r)[0]:n}}return Na}(e):Na}function Fa(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?Ma[n[1]]?Ma[n[1]]:n[1]:Na}function Ba(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Ha=function(e){if(e.populateOperatingSystemInfo){var t=this,n=en()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<La.length;t++){var n=La[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return Na}(r.toLowerCase());t.name=i,t.ver=Oa(r,i)}t.name&&t.name!==Na||!ot(o.platform)||(t.name=o.platform)}},za="MicrosoftApplicationsTelemetryDeviceId";var Va=function(){function e(t,n){var r=0;ge(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=rr(!1).toString();var i=Vn(n,t);if(i.isEnabled()||o){var a=function(e,t,n){return t?t.getProperty(n)||"":oo(e,n)}(i,o,za);a||(a=Wr()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,za,a),e.installId=a}else i.purge(za);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),Ua=function(e,t,n,r){var o=this;if(o.traceId=t||qr(),e.enableDistributedTracing&&!n&&(n=qr().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=nn();i&&i.pathname&&(o.name=i.pathname)}};function Wa(){return this.getLocalId()}function ja(e){this.setLocalId(e)}var qa=function(){function e(t,n,r){var o,i=n,a=Vn(r,t);ge(e,this,(function(n){if(a&&a.isEnabled()&&(p(),i.enableApplicationInsightsUser)){var r=oo(a,e.userCookieName);if(r){var s=r.split(e.cookieSeparator);s.length>0&&(n.id=s[0])}if(!n.id){n.id=ir(t&&!qe(t.idLength)?t.idLength:22);var c=ct(new Date);n.accountAcquisitionDate=c;var l=[n.id,c],u=i.cookieDomain?i.cookieDomain:void 0;a.set(e.userCookieName,l.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=oo(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 gt(e.prototype,"localId",Wa,ja),e}(),Ga=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)},Ka=["Required","Analytics","SocialMedia","Advertising"],Ya="([\\d,.]+)",Qa="Unknown",Xa="Edg/",Za=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Xa,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"}],Ja=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function $a(e,t){return t.indexOf(e)>-1}function es(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function ts(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&&$a(Xa,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+Ya));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return Qa}(t,e)}function ns(){return this.getUserConsent()}var rs=function(){function e(t,n){var r=Vn(n),o=t||{};ge(e,this,(function(e){var t=nn();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=en();s&&(i=i||s.userAgent||"",a=a||(s.userAgentData||{}).brands),function(t,n){if(nt(n))try{for(var r=0;r<Ja.length;r++){var o=es(Ja[r].br,n);if(o)return e.browser=Ja[r].b,void(e.browserVer=o)}}catch(a){}if(t){var i=function(e){if(e)for(var t=0;t<Za.length;t++)if($a(Za[t].ua,e))return Za[t].b;return Qa}(t);e.browser=i,e.browserVer=ts(t,i)}}(i,a);var c=function(){var e={h:0,w:0},t=Xt();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=c.w+"X"+c.h}qe(o.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=o.gpcDataSharingOptIn,e.getUserConsent=function(){return o.userConsented||!!oo(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<Ka.length;i++){var a=Ka[i];t[a]=r[a]||!1}}}var s=e.gpcDataSharingOptIn;return null!==s&&((t=t||{}).GPC_DataSharingOptIn=!!s),t?JSON.stringify(t):null}catch(c){}},gt(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void gt(e.prototype,"userConsent",ns),e}();function os(e,t,n,r,o){var i=t.ext[$i[e]];if(i)try{Je(r,(function(e,t){if(ot(t)||it(t)||at(t)){var r=i[n[e]];!o&&(r||ot(r)||it(r)||at(r))&&(t=r),i[n[e]]=t}}))}catch(a){}return i}var is=function(){function e(t,n,r){ge(e,this,(function(e){e.app=new ka(n,r),e.cloud=new Sa,e.user=new qa(t,n,r),e.os=new Ha(n),e.web=new rs(n,r);var o=new Va(t,r),i=new Pa(n,r),a=new Ga(n);e.loc=new Da,e.device=new Ta;var s=new _a(r,n);e.session=new ya;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),Eo(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),wo(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new Ua(n),d()),l=!(n||{}).eventContainExtFields;function u(){var t=e.session;if(t&&ot(t.customId))return t.customId;s.update();var n=s.automaticSession;if(n){var r=n.getId();r&&ot(r)&&(t.automaticId=r)}return t.automaticId}function d(){var e=c;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||c),e}e.getTraceCtx=function(){return c},e.getSessionId=u,e.applyApplicationContext=function(t){var n,r=e.app;os(4,t,ea,((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),l)},e.applyUserContext=function(t){var n,r=e.user;os(0,t,na,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),l)},e.applyWebContext=function(t){var n,r=e.web;os(3,t,ta,((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),l)},e.applyOsContext=function(t){var n,r=e.os;os(5,t,ra,((n={})[0]=r.name,n[1]=r.ver,n),l)},e.applySdkContext=function(e){var t;os(6,e,oa,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),l)},e.applyIntWebContext=function(e){var t;os(7,e,ia,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),l)},e.applyUtcContext=function(e){var t,n=((t={})[0]=a.popSample,t);a.eventFlags>0&&(n[1]=a.eventFlags),os(8,e,aa,n,l)},e.applyLocContext=function(t){var n;os(9,t,sa,((n={})[0]=e.loc.tz,n),l)},e.applySessionContext=function(e){var t;os(4,e,ca,((t={})[0]=u(),t),l)},e.applyDeviceContext=function(t){var n,r=e.device;os(1,t,la,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),l)},e.applyCloudContext=function(t){var n,r=e.cloud;os(10,t,ua,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),l)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=d();r&&os(2,e,da,((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();Ge(o)||(r[2]=o),os(11,e,pa,r,!1)}}}))}return e.__ieDyn=1,e}();var as=[$i[4],$i[0],$i[3],$i[5],$i[6],$i[7],$i[8],$i[9],$i[1],$i[2],$i[11],$i[10]],ss=function(e){function t(){var n,r,o,i=e.call(this)||this;return i.identifier="SystemPropertiesCollector",i.priority=3,i.version="3.2.14",ge(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 is(r,o,i),i&&i.setTraceCtx&&i.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,i){uo(t,e.identifier),i=e._getTelCtx(i);var a,s,c=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},lt(as,(function(e){c[e]=c[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)),lt(mt(c),(function(e){0===mt(c[e]).length&&delete c[e]})),a=r,s=t.data,a&&Je(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 W(t,e),t.__ieDyn=1,t}(Ho),cs=ss,ls=["c:","i:","w:"],us={"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"},ds=function(){function e(t){this.core=t;var n,r=io(),o=qr(),i=null,a=!1,s=Vn(t);ge(e,this,(function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||o},e.getLastPageViewId=function(){return r},e.initializeIds=function(){a?r=io():a=!0},e.getMuidUserId=function(){var e=oo(s,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(i=null,e)for(var t=0;t<ls.length;t++)if(ls[t]===e.substring(0,2)){i=e;break}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return i},e.syncMuid=function(e){var t=nn();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=Jt();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 us[e]}}))}return e.visitorId=function(){return oo(Vn(null),"MUID")},e}(),ps=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}(),hs="correlationHeaderExcludePatterns";function fs(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString().toLowerCase()}function ms(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}function gs(e,t,n,r,o){return!o&&ot(e)&&("Script error."===e||"Script error"===e)}var vs=Jo({LocalStorage:0,SessionStorage:1}),ys=(Jo({AI:0,AI_AND_W3C:1,W3C:2}),void 0),bs=void 0,_s="";function Cs(e){try{if(Ge(F()))return null;var t=(new Date).toString(),n=Yt(e===vs.LocalStorage?"localStorage":"sessionStorage"),r=_s+t;n.setItem(r,t);var o=n.getItem(r)!==t;if(n.removeItem(r),!o)return n}catch(i){}return null}function Es(){return ks()?Cs(vs.SessionStorage):null}function ws(){ys=!1,bs=!1}function xs(e){return(e||void 0===ys)&&(ys=!!Cs(vs.LocalStorage)),ys}function ks(e){return(e||void 0===bs)&&(bs=!!Cs(vs.SessionStorage)),bs}function Ss(e,t){var n=Es();if(null!==n)try{return n.getItem(t)}catch(r){bs=!1,Tn(e,2,2,"Browser failed read of session storage. "+Ct(r),{exception:un(r)})}return null}function Ts(e,t,n){var r=Es();if(null!==r)try{return r.setItem(t,n),!0}catch(o){bs=!1,Tn(e,2,4,"Browser failed write to session storage. "+Ct(o),{exception:un(o)})}return!1}function Is(e,t){var n=Es();if(null!==n)try{return n.removeItem(t),!0}catch(r){bs=!1,Tn(e,2,6,"Browser failed removal of session storage item. "+Ct(r),{exception:un(r)})}return!1}var As,Ps="AppInsightsPropertiesPlugin",Ds="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Rs="not_specified";function Ms(e,t,n){var r=t.length,o=Ns(e,t);if(o.length!==r){for(var i=0,a=o;void 0!==n[a];)i++,a=o.substring(0,147)+Ws(i);o=a}return o}function Ns(e,t){var n;return t&&(t=pt(t.toString())).length>150&&(n=t.substring(0,150),Tn(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function Ls(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=pt(t)).toString().length>n&&(r=t.toString().substring(0,n),Tn(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Os(e,t){return Us(e,t,2048,66)}function Fs(e,t){var n;return t&&t.length>32768&&(n=t.substring(0,32768),Tn(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Bs(e,t){var n;if(t){var r=""+t;r.length>32768&&(n=r.substring(0,32768),Tn(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function Hs(e,t){if(t){var n={};Je(t,(function(t,r){if(Qe(r)&&on())try{r=an().stringify(r)}catch(o){Tn(e,2,49,"custom property is not valid",{exception:o},!0)}r=Ls(e,r,8192),t=Ms(e,t,n),n[t]=r})),t=n}return t}function zs(e,t){if(t){var n={};Je(t,(function(t,r){t=Ms(e,t,n),n[t]=r})),t=n}return t}function Vs(e,t){return t?Us(e,t,128,69).toString():t}function Us(e,t,n,r){var o;return t&&(t=pt(t)).length>n&&(o=t.substring(0,n),Tn(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function Ws(e){var t="00"+e;return t.substr(t.length-3)}(As={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}).sanitizeKeyAndAddUniqueness=Ms,As.sanitizeKey=Ns,As.sanitizeString=Ls,As.sanitizeUrl=Os,As.sanitizeMessage=Fs,As.sanitizeException=Bs,As.sanitizeProperties=Hs,As.sanitizeMeasurements=zs,As.sanitizeId=Vs,As.sanitizeInput=Us,As.padNumber=Ws,As.trim=pt;function js(e,t,n,r,o,i){var a;n=Ls(r,n)||Rs,(Ge(e)||Ge(t)||Ge(n))&&St("Input doesn't contain all required fields");var s="";e.iKey&&(s=e.iKey,delete e.iKey);var c=((a={}).name=n,a.time=ct(new Date),a.iKey=s,a.ext=i||{},a.tags=[],a.data={},a.baseType=t,a.baseData=e,a);return Ge(o)||Je(o,(function(e,t){c.data[e]=t})),c}!function(){function e(){}e.create=js}();var qs=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o.name=Ls(e,t)||Rs,o.properties=Hs(e,n),o.measurements=zs(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Gs=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||Rs,i.message=Fs(e,t),i.properties=Hs(e,r),i.measurements=zs(e,o),n&&(i.severityLevel=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Ks=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Ys=function(){function e(e,t,n,r,o,i,a,s,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var u=new Ks;u.count=r>0?r:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(o)||null===o?void 0:o,u.name=Ls(e,t)||Rs,u.value=n,u.stdDev=isNaN(a)||null===a?void 0:a,l.metrics=[u],l.properties=Hs(e,s),l.measurements=zs(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),Qs=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=Vs(e,a),s.url=Os(e,n),s.name=Ls(e,t)||Rs,isNaN(r)||(s.duration=ms(r)),s.properties=Hs(e,o),s.measurements=zs(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Xs=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=Os(e,n),s.name=Ls(e,t)||Rs,s.properties=Hs(e,o),s.measurements=zs(e,i),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();function Zs(e,t){var n=e;return n&&!ot(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=Xe(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Js(e,t){var n=e;return e&&(n&&!ot(n)&&(n=e.message||e.description||n),n&&!ot(n)&&(n=Zs(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"").indexOf(t)&&(n=t+": "+n),n||""}function $s(e){return e&&e.src&&ot(e.src)&&e.obj&&nt(e.obj)}function ec(e){var t=e||"";ot(t)||(t=ot(t.stack)?t.stack:""+t);var n=t.split("\n");return{src:t,obj:n}}function tc(e){var t=null;if(e)try{if(e.stack)t=ec(e.stack);else if(e.error&&e.error.stack)t=ec(e.error.stack);else if(e.exception&&e.exception.stack)t=ec(e.exception.stack);else if($s(e))t=e;else if($s(e.stackDetails))t=e.stackDetails;else if(window&&window.opera&&e.message)t=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message);else if(e.reason&&e.reason.stack)t=ec(e.reason.stack);else if(ot(e))t=ec(e);else{var n=e.message||e.description||"";ot(e.errorSrc)&&(n&&(n+="\n"),n+=" from "+e.errorSrc),n&&(t=ec(n))}}catch(r){t=ec(r)}return t||{src:"",obj:null}}function nc(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(r){}return t}function rc(e){if(e)try{if(!ot(e)){var t=nc(e),n=Zs(e,!1);return n&&"{}"!==n||(e.error&&(t=nc(e=e.error)),n=Zs(e,!0)),0!==n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var oc=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(Qe(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}return!1}(t)?(n||(n={}),a.exceptions=[new ic(e,t,n)],a.properties=Hs(e,n),a.measurements=zs(e,r),o&&(a.severityLevel=o),i&&(a.id=i)):(a.exceptions=t.exceptions||[],a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),Ge(t.isManual)||(a.isManual=t.isManual))}return e.CreateAutoException=function(e,t,n,r,o,i,a,s){var c,l=nc(o||i||e);return(c={}).message=Js(e,l),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=rc(o||i||e),c.evt=rc(i||e),c.typeName=l,c.stackDetails=tc(a||o||i),c.errorSrc=s,c},e.CreateFromInterface=function(t,n,r,o){var i=n.exceptions&&dt(n.exceptions,(function(e){return ic.CreateFromInterface(t,e)}));return new e(t,V(V({},n),{exceptions:i}),r,o)},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,c=t.isManual,l=n instanceof Array&&dt(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"}).exceptions=l,e.severityLevel=i,e.properties=r,e.measurements=o,e.problemGroup=a,e.id=s,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,r,o,i){var a;return{exceptions:[(a={},a.hasFullStack=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=rc,e}(),ic=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(Qe(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}return!1}(t))r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack||[],r.hasFullStack=t.hasFullStack;else{var o=t,i=o&&o.evt;rt(o)||(o=o.error||i||o),r.typeName=Ls(e,nc(o))||Rs,r.message=Fs(e,Js(t||o,r.typeName))||Rs;var a=t.stackDetails||tc(t);r.parsedStack=function(e){var t,n=e.obj;if(n&&n.length>0){t=[];var r=0,o=0;if(lt(n,(function(e){var n=e.toString();if(ac.regex.test(n)){var i=new ac(n,r++);o+=i.sizeInBytes,t.push(i)}})),o>32768)for(var i=0,a=t.length-1,s=0,c=i,l=a;i<a;){if((s+=t[i].sizeInBytes+t[a].sizeInBytes)>32768){var u=l-c+1;t.splice(c,u);break}c=i,l=a,i++,a--}}return t}(a),nt(r.parsedStack)&&dt(r.parsedStack,(function(t){t.assembly=Ls(e,t.assembly),t.fileName=Ls(e,t.fileName)})),r.stack=Bs(e,function(e){var t="";return e&&(e.obj?lt(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(a)),r.hasFullStack=nt(r.parsedStack)&&r.parsedStack.length>0,n&&(n.typeName=n.typeName||r.typeName)}}return e.prototype.toInterface=function(){var e,t=this,n=t.parsedStack instanceof Array&&dt(t.parsedStack,(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t.typeName,message:t.message,hasFullStack:t.hasFullStack,stack:t.stack}).parsedStack=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n.parsedStack instanceof Array&&dt(n.parsedStack,(function(e){return ac.CreateFromInterface(e)}))||n.parsedStack;return new e(t,V(V({},n),{parsedStack:r}))},e}(),ac=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r.sizeInBytes=0,"string"===typeof t){var o=t;r.level=n,r.method="<no_method>",r.assembly=pt(o),r.fileName="",r.line=0;var i=o.match(e.regex);i&&i.length>=5&&(r.method=pt(i[2])||r.method,r.fileName=pt(i[4]),r.line=parseInt(i[5])||0)}else r.level=t.level,r.method=t.method,r.assembly=t.assembly,r.fileName=t.fileName,r.line=t.line,r.sizeInBytes=0;r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=e.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e.level,method:e.method,assembly:e.assembly,fileName:e.fileName,line:e.line}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function sc(e){var t=null;if(Xe(Event))t=new Event(e);else{var n=Jt();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var cc=$o({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"]}),lc=Jt()||{},uc=0,dc=[null,null,null,null,null];function pc(e){var t=uc,n=dc,r=n[t];return lc.createElement?n[t]||(r=n[t]=lc.createElement("a")):r={host:mc(e,!0)},r.href=e,++t>=n.length&&(t=0),uc=t,r}function hc(e){var t,n=pc(e);return n&&(t=n.href),t}function fc(e,t){return e?e.toUpperCase()+" "+t:t}function mc(e,t){var n=gc(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r.length>3&&ot(r[2])&&r[2].length>0)return r[2]+(r[3]||"")}return n}function gc(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r.length>2&&ot(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}var vc=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function yc(e){return-1!==ut(vc,e.toLowerCase())}var bc={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[hs])for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e[hs][r].test(t))return!1;var o=pc(t).host.toLowerCase();if(!o||-1===o.indexOf(":443")&&-1===o.indexOf(":80")||(o=(gc(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;var i,a=e&&e.correlationHeaderDomains;if(a&&(lt(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").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,"\\.").replace(/\*/g,".*")).test(o))return!1}return o&&o.length>0},getCorrelationContext:function(e){if(e){var t=bc.getCorrelationContextValue(e,cc[1]);if(t&&t!==bc.correlationIdPrefix)return t}},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]}}};function _c(){var e=rn();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return _t()}function Cc(e,t){var n=null;return 0===e||0===t||Ge(e)||Ge(t)||(n=t-e),n}function Ec(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),Eo(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),wo(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var wc=function(){function e(e,t,n,r,o,i,a,s,c,l,u,d){void 0===c&&(c="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 p=this;p.ver=2,p.id=t,p.duration=ms(o),p.success=i,p.resultCode=a+"",p.type=Ls(e,c);var h=function(e,t,n,r){var o,i=r,a=r;if(t&&t.length>0){var s=pc(t);if(o=s.host,!i)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,i=Ls(e,n?n+" "+c:c)}else i=Ls(e,t)}else o=r,i=r;return{target:o,name:i,data:a}}(e,n,s,r);p.data=Os(e,r)||h.data,p.target=Ls(e,h.target),l&&(p.target="".concat(p.target," | ").concat(l)),p.name=Ls(e,h.name),p.properties=Hs(e,u),p.measurements=zs(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),xc=["req","rsp","hkErr","fnErr"];function kc(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Sc(e,t,n,r,o){o>=0&&o<=2&&kc(e,(function(e,i){var a=e.cbks,s=a[xc[o]];if(s){t.ctx=function(){return r[i]=r[i]||{}};try{s.apply(t.inst,n)}catch(u){var c=t.err;try{var l=a[xc[2]];l&&(t.err=u,l.apply(t.inst,n))}catch(d){}finally{t.err=c}}}}))}function Tc(e,t,n,r){var o=null;return e&&(Ye(e,t)?o=e:n&&(o=Tc(je(e),t,r,!1))),o}function Ic(e,t,n,r){var o=n&&n._aiHooks;if(!o){var i=function(e){return function(){var t,n=this,r=arguments,o=e.h,i=((t={}).name=e.n,t.inst=n,t.ctx=null,t.set=l,t),a=[],s=c([i],r);function c(e,t){return kc(t,(function(t){e.push(t)})),e}function l(e,t){(r=c([],r))[e]=t,s=c([i],r)}i.evt=Yt("event"),Sc(o,i,s,a,0);var u=e.f;if(u)try{i.rslt=u.apply(n,r)}catch(d){throw i.err=d,Sc(o,i,s,a,3),d}return Sc(o,i,s,a,1),i.rslt}}(o={i:0,n:t,f:n,h:[]});i._aiHooks=o,e[t]=i}var a={id:o.i,cbks:r,rm:function(){var e=this.id;kc(o.h,(function(t,n){if(t.id===e)return o.h.splice(n,1),1}))}};return o.i++,o.h.push(a),a}function Ac(e,t,n,r,o){if(void 0===r&&(r=!0),e&&t&&n){var i=Tc(e,t,r,o);if(i){var a=i[t];if(typeof a===T)return Ic(i,t,a,n)}}return null}function Pc(e,t,n,r,o){if(e&&t&&n){var i=Tc(e,t,r,o)||e;if(i)return Ic(i,t,i[t],n)}return null}var Dc="enableUnhandledPromiseRejectionTracking",Rc="isBrowserLinkTrackingEnabled",Mc="sendPageViewPerformanceInternal",Nc="populatePageViewPerformanceEvent",Lc=null;var Oc=function(){function e(t,n,r,o){ge(e,this,(function(e){var i,a=null,s=[],c=!1;function l(e){r&&r.flush(e)}function u(){a||(a=setTimeout((function(){a=null;var e=s.slice(0),t=!1;s=[],lt(e,(function(e){e()?t=!0:s.push(e)})),s.length>0&&u(),t&&l(!0)}),100))}function d(e){s.push(e),u()}r&&(i=r.logger),e.trackPageView=function(e,r){var a=e.name;if(Ge(a)||"string"!==typeof a){var s=Jt();a=e.name=s&&s.title||""}var u=e.uri;if(Ge(u)||"string"!==typeof u){var p=nn();u=e.uri=p&&p.href||""}if(!o.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),l(!0),void(function(){if(null==Lc)try{Lc=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Lc=!1}return Lc}()||Tn(i,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 h,f,m=!1,g=o.getPerformanceTiming().navigationStart;g>0&&(h=Cc(g,+new Date),o.shouldCollectDuration(h)||(h=void 0)),Ge(r)||Ge(r.duration)||(f=r.duration),!n&&isNaN(f)||(isNaN(f)&&(r||(r={}),r.duration=h),t.sendPageViewInternal(e,r),l(!0),m=!0);r||(r={}),d((function(){var n=!1;try{if(o.isPerformanceTimingDataReady()){n=!0;var s={name:a,uri:u};o[Nc](s),s.isValid||m?(m||(r.duration=s.durationMs,t.sendPageViewInternal(e,r)),c||(t[Mc](s,r),c=!0)):(r.duration=h,t.sendPageViewInternal(e,r))}else g>0&&Cc(g,+new Date)>6e4&&(n=!0,m||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(l){Tn(i,1,38,"trackPageView failed on page load calculation: "+Ct(l),{exception:un(l)})}return n}))},e.teardown=function(e,t){if(a){clearTimeout(a),a=null;var n=s.slice(0);s=[],lt(n,(function(e){e()&&!0}))}}}))}return e.__ieDyn=1,e}(),Fc=36e5,Bc=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Hc(){var e=rn();return e&&!!e.timing}function zc(){var e=rn(),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 Vc(){return Hc()?rn().timing:null}function Uc(){return function(){var e=rn();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0}()?rn().getEntriesByType("navigation")[0]:null}function Wc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=en()||{},r=n.userAgent,o=!1;if(r)for(var i=0;i<Bc.length;i++)o=o||-1!==r.toLowerCase().indexOf(Bc[i]);if(o)return!1;for(i=0;i<e.length;i++)if(e[i]<0||e[i]>=Fc)return!1;return!0}var jc=function(){function e(t){var n=xn(t);ge(e,this,(function(e){e[Nc]=function(t){t.isValid=!1;var r=Uc(),o=Vc(),i=0,a=0,s=0,c=0,l=0;(r||o)&&(r?(i=r.duration,a=0===r.startTime?r.connectEnd:Cc(r.startTime,r.connectEnd),s=Cc(r.requestStart,r.responseStart),c=Cc(r.responseStart,r.responseEnd),l=Cc(r.responseEnd,r.loadEventEnd)):(i=Cc(o.navigationStart,o.loadEventEnd),a=Cc(o.navigationStart,o.connectEnd),s=Cc(o.requestStart,o.responseStart),c=Cc(o.responseStart,o.responseEnd),l=Cc(o.responseEnd,o.loadEventEnd)),0===i?Tn(n,2,10,"error calculating page view performance.",{total:i,network:a,request:s,response:c,dom:l}):e.shouldCollectDuration(i,a,s,c,l)?i<Math.floor(a)+Math.floor(s)+Math.floor(c)+Math.floor(l)?Tn(n,2,8,"client performance math error.",{total:i,network:a,request:s,response:c,dom:l}):(t.durationMs=i,t.perfTotal=t.duration=ms(i),t.networkConnect=ms(a),t.sentRequest=ms(s),t.receivedResponse=ms(c),t.domProcessing=ms(l),t.isValid=!0):Tn(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:a,request:s,response:c,dom:l}))},e.getPerformanceTiming=Vc,e.isPerformanceTimingSupported=Hc,e.isPerformanceTimingDataReady=zc,e.shouldCollectDuration=Wc}))}return e.__ieDyn=1,e}(),qc=function(){function e(t,n){var r="prevPageVisitData";ge(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(ks()){var n=_t(),o=Ss(t,r);o&&on()&&((e=an().parse(o)).pageVisitTime=n-e.pageVisitStartTime,Is(t,r))}}catch(i){In(t,"Stop page visit timer failed: "+un(i)),e=null}return e}(),function(e,n){try{if(ks()){null!=Ss(t,r)&&St("Cannot call startPageVisit consecutively without first calling stopPageVisit");var o=new Gc(e,n),i=an().stringify(o);Ts(t,r,i)}}catch(a){In(t,"Call to start failed: "+un(a))}}(e,n)}catch(i){In(t,"Call to restart failed: "+un(i)),o=null}return o}(e,o);i&&n(i.pageName,i.pageUrl,i.pageVisitTime)}catch(a){In(t,"Auto track page visit time failed, metric will not be collected: "+un(a))}},gt(e,"_logger",(function(){return t})),gt(e,"pageVisitTimeTrackingHandler",(function(){return n}))}))}return e.__ieDyn=1,e}(),Gc=function(e,t){this.pageVisitStartTime=_t(),this.pageName=e,this.pageUrl=t},Kc=function(e,t){var n=this,r={};n.start=function(t){"undefined"!==typeof r[t]&&Tn(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))Tn(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var c=Cc(s,+new Date);n.action(t,o,c,i,a)}delete r[t],r[t]=void 0}};function Yc(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Qc(e,t){return(e=e||t)<6e4&&(e=6e4),e}function Xc(e){return e||(e={}),e.sessionRenewalMs=Qc(e.sessionRenewalMs,18e5),e.sessionExpirationMs=Qc(e.sessionExpirationMs,864e5),e.disableExceptionTracking=fs(e.disableExceptionTracking),e.autoTrackPageVisitTime=fs(e.autoTrackPageVisitTime),e.overridePageViewDuration=fs(e.overridePageViewDuration),e[Dc]=fs(e[Dc]),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=fs(e.isStorageUseDisabled),e[Rc]=fs(e[Rc]),e.enableAutoRouteTracking=fs(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=fs(e.enableDebug),e.disableFlushOnBeforeUnload=fs(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=fs(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e}function Zc(e){qe(e.isStorageUseDisabled)||(e.isStorageUseDisabled?ws():(ys=xs(!0),bs=ks(!0)))}var Jc=function(e){function t(){var n,r,o,i,a,s,c,l,u,d,p,h,f,m,g=e.call(this)||this;g.identifier="ApplicationInsightsAnalytics",g.priority=180,g.autoRoutePVDelay=500;var v,y,b;return ge(t,g,(function(e,t){var g=t._addHook;function _(t,n,r,o,i){e.diagLog().throwInternal(t,n,r,o,i)}function C(){n=null,r=null,o=null,i=null,a=null,s=null,c=!1,l=!1,u=!1,d=!1,p=!1,h=!1,f=!1,m=!1,0;var e=nn(!0);v=e&&e.href||"",y=null,b=null}C(),e.getCookieMgr=function(){return Vn(e.core)},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=js(t,qs.dataType,qs.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){_(2,39,"trackTrace failed, trace will not be collected: "+Ct(o),{exception:un(o)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(t){_(1,29,"startTrackEvent failed, event will not be collected: "+Ct(t),{exception:un(t)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(o){_(1,30,"stopTrackEvent failed, event will not be collected: "+Ct(o),{exception:un(o)})}},e.trackTrace=function(t,n){try{var r=js(t,Gs.dataType,Gs.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){_(2,39,"trackTrace failed, trace will not be collected: "+Ct(o),{exception:un(o)})}},e.trackMetric=function(t,n){try{var r=js(t,Ys.dataType,Ys.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){_(1,36,"trackMetric failed, metric will not be collected: "+Ct(o),{exception:un(o)})}},e.trackPageView=function(t,n){try{var r=t||{};o.trackPageView(r,V(V(V({},r.properties),r.measurements),n)),e.config.autoTrackPageVisitTime&&a.trackPreviousPageVisit(r.name,r.uri)}catch(i){_(1,37,"trackPageView failed, page view will not be collected: "+Ct(i),{exception:un(i)})}},e.sendPageViewInternal=function(t,n,r){var o=Jt();o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri);var i=js(t,Qs.dataType,Qs.envelopeType,e.diagLog(),n,r);e.core.track(i),0},e[Mc]=function(t,n,r){var o=js(t,Xs.dataType,Xs.envelopeType,e.diagLog(),n,r);e.core.track(o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{i[Nc](r),e[Mc](r,n)}catch(o){_(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Ct(o),{exception:un(o)})}},e.startTrackPage=function(e){try{if("string"!==typeof e){var t=Jt();e=t&&t.title||""}r.start(e)}catch(n){_(1,31,"startTrackPage failed, page view may not be collected: "+Ct(n),{exception:un(n)})}},e.stopTrackPage=function(t,n,o,i){try{if("string"!==typeof t){var s=Jt();t=s&&s.title||""}if("string"!==typeof n){var c=nn();n=c&&c.href||""}r.stop(t,n,o,i),e.config.autoTrackPageVisitTime&&a.trackPreviousPageVisit(t,n)}catch(l){_(1,32,"stopTrackPage failed, page view will not be collected: "+Ct(l),{exception:un(l)})}},e.sendExceptionInternal=function(t,n,r){var o=t&&(t.exception||t.error)||rt(t)&&t||{name:t&&typeof t,message:t||Rs};t=t||{};var i=js(new oc(e.diagLog(),o,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),oc.dataType,oc.envelopeType,e.diagLog(),n,r);e.core.track(i)},e.trackException=function(t,n){t&&!t.exception&&t.error&&(t.exception=t.error);try{e.sendExceptionInternal(t,n)}catch(r){_(1,35,"trackException failed, exception will not be collected: "+Ct(r),{exception:un(r)})}},e._onerror=function(t){var n=t&&t.error,r=t&&t.evt;try{if(!r){var o=Xt();o&&(r=o.event)}var i=t&&t.url||(Jt()||{}).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};gs(t.message,t.url,t.lineNumber,t.columnNumber,t.error)?function(t,n){var r=js(t,oc.dataType,oc.envelopeType,e.diagLog(),n);e.core.track(r)}(oc.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(l){var c=n?n.name+", "+n.message:"null";_(1,11,"_onError threw exception while logging error, error will not be collected: "+Ct(l),{exception:un(l),errorString:c})}},e.addTelemetryInitializer=function(t){if(e.core)return e.core.addTelemetryInitializer(t);s||(s=[]),s.push(t)},e.initialize=function(_,C,E,w){if(!e.isInitialized()){var x;Ge(C)&&St("Error initializing"),t.initialize(_,C,E,w),_.storagePrefix&&(x=_.storagePrefix,_s=x||"");try{b=Rr(pr(e.identifier),C.evtNamespace&&C.evtNamespace()),s&&(lt(s,(function(e){C.addTelemetryInitializer(e)})),s=null);var k=function(t){var n=Ro(null,t,e.core),r=e.identifier,o=Xc(t),i=e.config=n.getExtCfg(r);void 0!==o&&Je(o,(function(e,t){i[e]=n.getConfig(r,e,t),void 0===i[e]&&(i=t)}));return i}(_);Zc(k),i=new jc(e.core),o=new Oc(e,k.overridePageViewDuration,e.core,i),a=new qc(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){c=t[Rc]||n[Rc],function(){if(!l&&c){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(c&&e.baseType===wc.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),l=!0}}()}(k,_),(n=new Kc(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})},(r=new Kc(e.diagLog(),"trackPageView")).action=function(t,n,r,o,i){Ge(o)&&(o={}),o.duration=r.toString();var a={name:t,uri:n,properties:o,measurements:i};e.sendPageViewInternal(a,o)},Qt()&&(function(t){var n=Xt(),r=nn(!0);(p=t.disableExceptionTracking)||h||t.autoExceptionInstrumented||(g(Pc(n,"onerror",{ns:b,rsp:function(t,n,r,o,i,a){p||!0===t.rslt||e._onerror(oc.CreateAutoException(n,r,o,i,a,t.evt))}},!1)),h=!0);!function(t,n,r){(f=!0===t[Dc])&&!m&&(g(Pc(n,"onunhandledrejection",{ns:b,rsp:function(t,n){f&&!0!==t.rslt&&e._onerror(oc.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!ot(t)&&Xe(t.toString)?t.toString():un(t)}return e||""}(n),r?r.href:"",0,0,n,t.evt))}},!1)),m=!0,t.autoUnhandledPromiseInstrumented=m)}(t,n,r)}(k),function(t){var n=Xt(),r=nn(!0);if(u=!0===t.enableAutoRouteTracking,n&&u&&tn()){var o=tn()?history:Yt("history");Xe(o.pushState)&&Xe(o.replaceState)&&typeof Event!==A&&function(t,n,r,o){var i=t.namePrefix||"";function a(){u&&Yc(n,sc(i+"locationchange"))}function s(){if(y?(v=y,y=o&&o.href||""):y=o&&o.href||"",u){var t=function(){var t=null;e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1));if(!t){var n=e.core.getPlugin(Ps);if(n){var r=n.plugin.context;r&&(t=Ec(r.telemetryTrace))}}return t}();if(t){t.setTraceId(qr());var n="_unknown_";o&&o.pathname&&(n=o.pathname+(o.hash||"")),t.setName(Ls(e.diagLog(),n))}setTimeout(function(t){e.trackPageView({refUri:t,properties:{duration:0}})}.bind(e,v),e.autoRoutePVDelay)}}d||(g(Pc(r,"pushState",{ns:b,rsp:function(){u&&(Yc(n,sc(i+"pushState")),Yc(n,sc(i+"locationchange")))}},!0)),g(Pc(r,"replaceState",{ns:b,rsp:function(){u&&(Yc(n,sc(i+"replaceState")),Yc(n,sc(i+"locationchange")))}},!0)),Mr(n,i+"popstate",a,b),Mr(n,i+"locationchange",s,b),d=!0)}(t,n,o,r)}}(k))}catch(S){throw e.setInitialized(!1),S}}},e._doTeardown=function(e,t){o&&o.teardown(e,t),Nr(window,null,null,b),C()},gt(e,"_pageViewManager",(function(){return o})),gt(e,"_pageViewPerformanceManager",(function(){return i})),gt(e,"_pageVisitTimeManager",(function(){return a})),gt(e,"_evtNamespace",(function(){return"."+b}))})),g}return W(t,e),t.Version="2.8.16",t.getDefaultConfig=Xc,t}(Ho);function $c(e){Je(e,(function(t,n){(!$r(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function el(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 tl(e){return"A"===e.nodeName}function nl(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,c=t.right,l=t.bottom;return Math.max(0,Math.min(o,c)-Math.max(n,a))*Math.max(0,Math.min(i,l)-Math.max(r,s))}((e=e).getBoundingClientRect(),t)>0}function rl(e,t){return!!$r(ol(e,"data-bi-dnt"))}function ol(e,t){return el(e,il,t)}function il(e,t){var n=e.getAttribute(t);return $r(n)||""===n}function al(e){return"["+e+"]"}function sl(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 cl(){var e={h:0,v:0},t=Xt(),n=Jt();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 ll(){var e={h:0,w:0},t=Xt(),n=Jt();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 ul={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function dl(e){if(e){var t=function(e){return el(e,tl)}(e);if(t&&1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}function pl(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!$r(t)&&"pii"===t.toLowerCase()}catch(n){return!1}}function hl(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)+($r(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var r=t.search;if(!r){var o=t.hash||"",i=o.indexOf("?");-1!==i&&(r=o.slice(i))}n+=r}e.urlCollectHash&&(n+=t.hash||"");return n}(e,t)}function fl(e,t){var n,r="",o={},i=[],a=e.cookiesToCollect;!1===e.shareAuthStatus?i=a:lt(a,(function(e){"ANON"!==e&&i.push(e)}));try{try{Jr&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(i=i.concat(window.varCustomerCookies))}catch(s){Tn(t,1,512,"Failed to get cookies ")}lt(i,(function(e){o.hasOwnProperty(e)||(o[e]="",Zr&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(r+=e+"="+n+";"))}))}catch(s){Tn(t,1,512,"Failed to get cookies ")}return r}function ml(e,t){var n=Rr(pr("onDomLoaded"),t);gl((function(){if(Zr&&"complete"===document.readyState)e();else{var t=Xt();t&&Mr(t,"load",(function(){e&&e(),e=null,Nr(t,null,null,n)}),n)}}))}function gl(e){var t=Jt()||{};/in/.test(t.readyState)?setTimeout((function(){gl(e)}),100):e.call()}var vl;function yl(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.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"}(vl||(vl={}));var bl,_l=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(),$r(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=(nn()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return r&&r[r.length-1]?r[r.length-1]:"Home"}(this._config,t)),!$r(e.uri)&&Jr&&(e.uri=hl(this._config,nn()))},e.prototype._setCommonProperties=function(e,t,n){var r,o=this;o._setBasicProperties(e,n),o._setPageTags(e,n),o._pageTypeMetaTag=yl(o.metaTags,o._config.coreData,"pageType"),o._marketMetaTag=yl(o.metaTags,o._config.coreData,"market"),o._behaviorMetaTag=yl(o.metaTags,o._config.coreData,"behavior"),$r(n.pageType)&&(e.pageType=n.pageType),$r(o._pageTypeMetaTag)&&!$r(e.pageType)&&(e.pageType=o._pageTypeMetaTag),$r(o._marketMetaTag)&&(e.market=o._marketMetaTag),e.isLoggedIn=(r=o._config).callback&&"function"===typeof r.callback.signedinStatus?r.callback.signedinStatus():r.isLoggedIn,t.cookieEnabled=Wn()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},Je(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=ao(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=ao(!0,n._pageTags,n._pageTagsCallback())),$r(t.pageTags)&&(n._pageTags=ao(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&$r(e.behavior)?t=e.behavior:$r(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if($r(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?vl[e]:n)in vl)return t}return 0},e.prototype._getContentFormatted=function(e){if($r(e))return nt(e)?JSON.stringify(e):al(JSON.stringify(e))},e}(),Cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(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};lt(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){r.baseData[t]=e[t]})),Je(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=$r(e)?e:{};var n={},r=$r(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),$r(e.actionType)&&(n.actionType=e.actionType);var o=ll(),i=cl();n.pageHeight=Zr?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),$r(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}(_l),El="CL",wl="CR",xl="CM",kl="S",Sl="R",Tl="KE",Il="KS";!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(bl||(bl={}));var Al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(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};qe(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,Je(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=$r(t)?t:{};var o={},i=$r(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;else{var s=this._config||{};if((e&&qe(s.syncPageActionNavClick)||s.syncPageActionNavClick)&&(t.actionType===El||t.actionType===Tl)&&"a"===e.tagName.toLowerCase()){var c=(e.getAttribute("href")||"").toLowerCase();c&&(et(c,"https:")||et(c,"http:")||et(c,".")||et(c,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=dl(e);break;case"INPUT":var n=e.type;if(n&&ul[n.toUpperCase()]){var r=nn()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}(e),(a=ao(a=this._contentHandler.getElementContent(e,bl.PAGE_ACTION),this._getCustomTags(e)))&&a.bhvr&&!$r(t.behavior))){var l=function(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}(a,"bhvr");o.behavior=this._getValidBehavior(l)}$r(t.actionType)&&(o.actionType=t.actionType),$r(t.clickCoordinateX)&&$r(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),$r(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer="2.0";var u=t.content||a;if(!nt(u)){var d=this._config.callback.pageActionContentTags;u=ao(u,"function"===typeof d?d(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(u),i.timeToAction=this._getTimeToClick(),i.refUri=$r(t.refUri)?t.refUri:this._config.coreData.referrerUri;var p=fl(this._config,this._traceLogger);p&&(i.cookies=p),this.trackPageAction(o,i)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!pl(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=rn();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(_l),Pl=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 W(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||{};(qe(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,Je(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=$r(e)?e:{};var n={},r=$r(t)?t:{},o=Zr?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=ll().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,Jr){var i=rn(),a=i?i.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(r.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(n,r)},t}(_l),Dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.capturePageView=function(e,t){e=$r(e)?e:{};var n={},r=$r(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=$r(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=fl(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(_l),Rl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=$r(e)?e:{};var n={},r=$r(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}(_l),Ml={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},Nl=function(){function e(t,n){var r,o,i,a,s,c,l,u,d,p=this;ge(e,this,(function(e){function h(e){var t,n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},o=Xt(),i=(e=e||o.event).srcElement||e.target,a={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},s="which"in(t=e)?3===t.which:"button"in t?2===t.button:void 0;if(s)a.actionType=wl;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))a.actionType=El;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))a.actionType=Tl;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))a.actionType=Il;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;a.actionType=xl}for(;i&&i.tagName;){if(i.control&&n[i.control.tagName.toUpperCase()]&&(i=i.control),n[i.tagName.toUpperCase()]){("INPUT"!==i.tagName.toUpperCase()||Ml[i.type.toUpperCase()])&&r&&r.capturePageAction(i,a,{},s);break}i=i.parentElement||i.parentNode}}function f(){e._analyticsPlugin=null,e._traceLogger=null,r=null,o=null,i=null,s=!1,c=!1,l=!1,u=!1,d=!1}f(),r=t,o=n,i=Rr(pr("AutoCaptureHandler"),r._evtNamespace),e._analyticsPlugin=r,e._traceLogger=o,e.pageView=function(){r&&r.capturePageView({isAuto:!0})},e.onLoad=function(){r&&!d&&(ml((function(){r&&r.capturePageViewPerformance({isAuto:!0}),r&&r.captureContentUpdate({isAuto:!0,isDomComplete:!0})}),i),d=!0)},e.click=function(){if(!a){var e=Xt(),t=Jt();if(e&&e.addEventListener)Mr(e,-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown",h,i),Mr(e,"keyup",h,i);else t&&t.attachEvent&&(Mr(t,"click",h,i),Mr(t,"keyup",h,i));a=!0}},e.scroll=function(e){if(!s){var t=sl(null,(function(){r&&r.captureContentUpdate({isAuto:!0,actionType:kl})}),e.scroll,p);Mr(Xt(),"scroll",t,i),s=!0}},e.maxScroll=function(e){if(!c){Mr(Xt(),"scroll",(function(){var t=cl();e.v=e.v>t.v?e.v:t.v}),i),c=!0}},e.resize=function(e){if(!l){var t=sl((function(){r&&r.captureContentUpdate({isAuto:!0,actionType:Sl})}),null,e.resize,p);Mr(Xt(),"resize",t,i),l=!0}},e.onUnload=function(){function e(){r&&r.capturePageUnload({isAuto:!0})}if(!u){var t=((r||{}).core||{}).config.disablePageUnloadEvents;Br(e,t,i),zr(e,t,i),u=!0}},e.teardown=function(e,t){Nr(Xt(),null,null,i),Nr(Jt(),null,null,i),Hr(null,i),Vr(null,i),f()},e._processClick=h}))}return e.__ieDyn=1,e}(),Ll={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"}},Ol={parentId:"parentId",parentName:"parentName"},Fl={parentId:"pI",parentName:"pN"},Bl=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?Ll.shortNames:Ll.longNames}return e.prototype.getMetadata=function(){var e={},t={};return Zr&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),ao(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=ll(),n={top:0,bottom:(e=t).h,left:0,right:e.w},r=null;Zr&&(r=document.querySelectorAll(al(this._contentBlobFieldNames.areaName)+","+al(this._contentBlobFieldNames.slotNumber)+","+al(this._config.biBlobAttributeTag)));var o=[];if(r)for(var i=0;i<r.length;i++){var a=r[i];if(!rl(a)&&nl(a,n)){var s=this.getElementContent(a,bl.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(a){Tn(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,i=ao(i,this._populateElementContentwithDataBi(o,e)));else if((n=ol(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{i=JSON.parse(r)}catch(a){Tn(this._traceLogger,1,506,"Can not parse "+r)}else o=el(e,this._isTrackedWithDataBi),i=ao(i,this._populateElementContentwithDataBi(o,e));return $c(i),this._config.autoCapture.lineage&&t===bl.PAGE_ACTION&&(i=ao(i,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(i=ao(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 c=e.getAttribute(a)||e[a],l=e.getAttribute(s)||e["data-module-id"];if(c){try{var u=JSON.parse(c)}catch(d){Tn(this._traceLogger,1,507,"Can not parse "+c)}u&&(n=u.cN||u.cT,r=u.id||void 0,(n||r)&&(o.push(n),l&&(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),l&&(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=ol(e,this._contentBlobFieldNames.areaName),o=ao({},this._getAreaContent(r)),i=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",a=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: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||Tn(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 s,c=0;c<e.attributes.length;c++){if((s=e.attributes[c]).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(Zr){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||pl(e)||!e.tagName)return"";var n,r=Jt()||{};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?Fl.parentId:Ol.parentId,r=this._contentBlobFieldNames.isShortNames?Fl.parentName:Ol.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=el(e.parentElement,this._isTracked);if(s){var c=s.getAttribute(a)||e[a];if(c){try{var l=JSON.parse(c)}catch(u){Tn(this._traceLogger,1,507,"Can not parse "+c)}l&&(r=l.id,o=l.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}();function Hl(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:Zr?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return Je(t,(function(e,t){Qe(t)&&n.push(e)})),function(e,t){$c(e),lt(t,(function(t,n){Qe(e[t])?$c(e[t]):delete e[t]}))}(e,n),ao(!0,t,e)}var zl=function(e){function t(){var n,r,o,i,a,s,c,l,u=e.call(this)||this;u.identifier="WebAnalyticsPlugin",u.version="3.2.14";var d,p,h,f,m=!1;return ge(t,u,(function(e,t){function g(){n=null,r=null,o=null,i=null,a=null,s=null,c=null,l={h:0,v:0},m=!1,d=null,p=null,h=null,f=null}function v(e){h&&(e&&(f.pageView&&h.pageView(),f.onLoad&&h.onLoad()),f.click&&h.click(),f.scroll&&h.scroll(c.debounceMs),f.resize&&h.resize(c.debounceMs),(f.onUnload||c.manualPageUnload)&&h.maxScroll(l),f.onUnload&&h.onUnload())}function y(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}g(),e.updateCoreDataConfig=function(e){c.coreData=ao(!0,c.coreData,e)},e.refreshMetadata=function(){var e=p.getMetadata();n.metaTags=e,o.metaTags=e,r.metaTags=e,a.metaTags=e},e.initialize=function(m,g,y){var b=g;m.extensionConfig=m.extensionConfig||[],m.extensionConfig[e.identifier]=m.extensionConfig[e.identifier]||{},e._config=c=Hl(m.extensionConfig[e.identifier]),f=c.autoCapture;var _=b.getWParam;if(b.getWParam=function(){var e=0;return c.mscomCookies&&(e|=1),e|_()},m.extensionConfig[e.identifier].disableExceptionTracking=!f.jsError,t.initialize(m,g,y),p=p||new Bl(c,e.diagLog()),h=h||new Nl(e,e.diagLog()),c.manageCv){for(var C=0;C<y.length;C++)if("CorrelationVectorPlugin"===y[C].identifier){c.manageCv=!0,s=y[C];break}s||(Tn(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),c.manageCv=!1)}e.id=new ds(g),d=new ps;var E=p.getMetadata();n=new Dl(u,c,p,e.id,c.callback.pageViewPageTags,E,e.diagLog()),r=new Al(u,c,p,e.id,c.callback.pageActionPageTags,E,e.diagLog()),o=new Cl(u,c,p,e.id,c.callback.contentUpdatePageTags,E,e.diagLog()),i=new Pl(u,c,e.id,e.diagLog(),d,l),a=new Rl(u,c,p,e.id,c.callback.pageViewPageTags,E,e.diagLog()),c.syncMuid&&ml((function(){var t=e.id.getMuidHost(c.muidDomain);e.id.syncMuid(t)}),e._evtNamespace),v(!0)},e.processTelemetry=function(n,r){uo(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 i=null;"PageviewData"!==o.baseType?c.manageCv&&(i=s.getCv())&&i.increment():c.manageCv&&((i=s.getCv())?i.seed():i=s.getCv()),t.processTelemetry(o,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},$r(n)&&Je(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,r){d._recordTimeSpan("dwellTime",!1),l.v=0,m=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,y(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,y(e))},e.capturePageViewPerformance=function(e,t){a.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||io(),t.sendExceptionInternal(e,n,y(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){(function(e,t){return!(t&&t.isAuto&&$r(ol(e,"data-bi-mto")))&&!rl(e)})(e,t)&&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){var n=e._pageViewPerformanceManager;n&&n.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){p=e},e.setAutoCaptureHandler=function(e){h!==e&&(h&&h.teardown(),h=e,v(!1))},e._doTeardown=function(e,n){h&&h.teardown(e,n),t._doTeardown(e,n),g()}})),u}return W(t,e),t.__ieDyn=1,t}(Jc),Vl=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],Ul=["queue","extensions","version","sv"],Wl=function(e){function t(){var n,r,o,i,a=e.call(this)||this;function s(){o=new Qi,i=new cs,r=new zl}return ge(t,a,(function(e,t){s(),e.initialize=function(n,a){Ot(e,(function(){return"ApplicationInsights:initialize"}),(function(){var s=[i,r];if(a&&(s=s.concat(a)),n||St("You must provide a config object!"),n.channels&&n.channels.length>0){for(var c=!1,l=0;l<n.channels[0].length;l++)if(n.channels[0][l].identifier===o.identifier){c=!0;break}c||n.channels[0].push(o)}else n.channels=[[o]];var u=n.extensionConfig=n.extensionConfig||[];u[o.identifier]=u[o.identifier]||n&&n.channelConfiguration||{},u[i.identifier]=u[i.identifier]||n&&n.propertyConfiguration||{},u[r.identifier]=u[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,s)}catch(d){Tn(e.logger,1,514,"Failed to initialize SDK."+un(d))}}),(function(){return{config:n,extensions:a}}))},e._getDbgPlgTargets=function(){return[a.config]},e.getPropertyManager=function(){return i},e.getPostChannel=function(){return o},e.getWebAnalyticsExtension=function(){return r},At(e,(function(){return r}),["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&(Ge(n),Je(e,(function(n,r){if(ot(n)&&!Xe(r)&&n&&"_"!==n[0]&&-1===ut(Vl,n))try{t[n]=r}catch(o){Tn(e.logger,2,514,"Failed to set ["+n+"] during initialization."+un(o))}}))),nt(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&&Xe(i.toString)&&i.toString()}},e.updateSnippetDefinitions=function(e){var t=a;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=ao(!0,e.config,t.config||{}):t.config=e.config,function(e,t,n){if(e&&t&&Qe(e)&&Qe(t)){var r=function(r){if(ot(r)){var o=t[r];Xe(o)?n&&!n(r,!0,t,e)||(e[r]=Tt(t,r)):n&&!n(r,!1,t,e)||(Ye(e,r)&&delete e[r],gt(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}};for(var o in t)r(o)}}(e,t,(function(e){return e&&-1===ut(Vl,e)&&-1===ut(Ul,e)}))},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,(function(e){s(),n&&n(e)}),r)}})),a}return W(t,e),t.__ieDyn=1,t}(Zo),jl=0,ql=1,Gl=2;function Kl(e){try{return e.responseText}catch(t){}return""}var Yl=function(){function e(){}return e.prototype.makeRequest=function(e,t,n,r){var o,i=this;if(hn()){var a=new XDomainRequest;a.open(n,e),a.onload=function(){r(200,Kl(a),{})},a.onerror=function(){r(400,Kl(a),{})},a.ontimeout=function(){r(500,Kl(a),{})},a.onprogress=function(){},setTimeout((function(){a.send(t)}),0)}else if(sn())fetch(e,(o={body:t,method:n,credentials:"include"},o[Ds]=!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(fn()){var s=ho(n,e,!0,!0);s.onload=function(){r(s.status,Kl(s),i._convertAllHeadersToMap(s.getAllResponseHeaders()))},s.onerror=function(){r(s.status,Kl(s),i._convertAllHeadersToMap(s.getAllResponseHeaders()))},s.ontimeout=function(){r(s.status,Kl(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}(),Ql=function(){function e(e,t,n){this._endpointUrl="",this._logger=n,this._endpointUrl=e,this._requestHandler=new Yl,this.setAuthType(t)}return e.prototype.setAuthType=function(e){var t="";switch(e){case Gl:t="aad.js";break;case ql: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=Jt();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(c){Tn(e._logger,1,501,"Error with auth handshake process: "+c)}}))},e.prototype.cleanAuthIFrame=function(){var e=Jt();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}(),Xl="authBounced",Zl=function(e){function t(){var n,r,o,i,a,s,c,l,u=e.call(this)||this;return u.identifier="AuthPlugin",u.priority=190,u.version="3.2.14",ge(t,u,(function(t,d){function p(){if(o.authType!=jl){var e=n,t=e.getWParam;e.getWParam=function(){var e=0;return(e=o.authType===ql?8|e:16|e)|(t?t():0)}}}function h(e,n){var r=Jt();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{f()}catch(a){Tn(t.diagLog(),1,502,"Error receiving auth redirect message: "+a)}}}function f(){a&&clearTimeout(a),r&&r.cleanAuthIFrame(),i=!1,m()}function m(){lt(c,(function(e){e.ctx.processNext(e.item)})),c=[]}function g(){n=null,r=null,o=null,i=!1,a=null,s=null,c=[]}g(),t.initialize=function(t,a,c){var d=u;n=a,e.prototype.initialize.call(u,t,a,c),l=Rr(pr(d.identifier),a.evtNamespace&&a.evtNamespace());var f=d.identifier;o=t.extensionConfig[f]||{},t.extensionConfig[f]=o,i=!1,s=o.handShakeTimeoutMs?o.handShakeTimeoutMs:5e3;var g=o.overrideAuthEndpointUrl?o.overrideAuthEndpointUrl:t.endpointUrl;function v(){m()}r=new Ql(g,o.authType,d.diagLog()),p();var y=t.disablePageUnloadEvents||[];Br(v,y,l),zr(v,y,l);var b=Xt();b&&Mr(b,"message",(function(e){h(e,g)}),l)},t.processTelemetry=function(e,n){if(n=t._getTelCtx(n),uo(e,t.identifier),o.authType!==jl&&o.loggedInStatusCallback&&!0===o.loggedInStatusCallback()){var l=Vn(t.core);if(!oo(l,Xl)){l.set(Xl,ct(new Date),1800),i=!0,a=setTimeout((function(){f()}),s),r.startAuthHandshake()}}i?c.push({ctx:n,item:e}):t.processNext(e,n)},t.signOut=function(){Vn(n).del(Xl),r.signOutAndClearCookies(),f()},t.setAuthType=function(e){f(),o.authType=e,r.setAuthType(e),p()},t._doTeardown=function(e,t){f(),Nr(Xt(),"message",null,l),Hr(null,l),Vr(null,l),g()},gt(t,"_authHandler",(function(){return r})),gt(t,"_authConfig",(function(){return o})),gt(t,"_eventQueue",(function(){return c})),gt(t,"_handshakeInProgress",(function(){return i})),gt(t,"_evtNamespace",(function(){return"."+l}))})),u}return W(t,e),t.__ieDyn=1,t}(Ho),Jl=function(){},$l=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new Jl,this._cv2Constants=new Jl,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=xn(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 Tn(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}(),eu=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 $l(n._cvInitialValue):new $l,n}return W(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){uo(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||Tn(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(Ho),tu=eu,nu=function(){function e(t){var n=io(),r=qr();ge(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}(),ru=nu;function ou(e){var t="ai."+e+".";return function(e){return t+e}}var iu,au=ou("application"),su=ou("device"),cu=ou("location"),lu=ou("operation"),uu=ou("session"),du=ou("user"),pu=ou("cloud"),hu=ou("internal"),fu=function(e){function t(){return e.call(this)||this}return W(t,e),t}((iu={applicationVersion:au("ver"),applicationBuild:au("build"),applicationTypeId:au("typeId"),applicationId:au("applicationId"),applicationLayer:au("layer"),deviceId:su("id"),deviceIp:su("ip"),deviceLanguage:su("language"),deviceLocale:su("locale"),deviceModel:su("model"),deviceFriendlyName:su("friendlyName"),deviceNetwork:su("network"),deviceNetworkName:su("networkName"),deviceOEMName:su("oemName"),deviceOS:su("os"),deviceOSVersion:su("osVersion"),deviceRoleInstance:su("roleInstance"),deviceRoleName:su("roleName"),deviceScreenResolution:su("screenResolution"),deviceType:su("type"),deviceMachineName:su("machineName"),deviceVMName:su("vmName"),deviceBrowser:su("browser"),deviceBrowserVersion:su("browserVersion"),locationIp:cu("ip"),locationCountry:cu("country"),locationProvince:cu("province"),locationCity:cu("city"),operationId:lu("id"),operationName:lu("name"),operationParentId:lu("parentId"),operationRootId:lu("rootId"),operationSyntheticSource:lu("syntheticSource"),operationCorrelationVector:lu("correlationVector"),sessionId:uu("id"),sessionIsFirst:uu("isFirst"),sessionIsNew:uu("isNew"),userAccountAcquisitionDate:du("accountAcquisitionDate"),userAccountId:du("accountId"),userAgent:du("userAgent"),userId:du("id"),userStoreRegion:du("storeRegion"),userAuthUserId:du("authUserId"),userAnonymousUserAcquisitionDate:du("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:du("authUserAcquisitionDate"),cloudName:pu("name"),cloudRole:pu("role"),cloudRoleVer:pu("roleVer"),cloudRoleInstance:pu("roleInstance"),cloudEnvironment:pu("environment"),cloudLocation:pu("location"),cloudDeploymentUnit:pu("deploymentUnit"),internalNodeName:hu("nodeName"),internalSdkVersion:hu("sdkVersion"),internalAgentVersion:hu("agentVersion"),internalSnippet:hu("snippet"),internalSdkSrc:hu("sdkSrc")},function(){var e=this;iu&&Je(iu,(function(t,n){e[t]=n}))})),mu="trace",gu=(new fu,"duration"),vu="excludeRequestFromAutoTrackingPatterns";function yu(e,t,n){var r=0,o=e[t],i=e[n];return o&&i&&(r=Cc(o,i)),r}function bu(e,t,n,r,o){var i=0,a=yu(n,r,o);return a&&(i=_u(e,t,ms(a))),i}function _u(e,t,n){var r=0;e&&t&&n&&((e.ajaxPerf=e.ajaxPerf||{})[t]=n,r=1);return r}var Cu=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},Eu=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 Cu,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,ge(e,a,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?hc(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?Os(s,fc(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){var o;if(e.ajaxTotalDuration=Math.round(1e3*Cc(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",c="redirect",l="request",u="response",d="startTime",p="connectEnd",h="requestStart",f="responseEnd",m=c+"Start",g=c="End",v="transferSize",y="encodedBodySize",b="decodedBodySize",_="serverTiming";if(n){o|=bu(r,c,n,m,g),o|=bu(r,a,n,"domainLookupStart","domainLookupEnd"),o|=bu(r,s,n,"connectStart",p),o|=bu(r,l,n,h,"requestEnd"),o|=bu(r,u,n,"responseStart",f),o|=bu(r,"networkConnect",n,d,p),o|=bu(r,"sentRequest",n,h,f);var C=n.duration;C||(C=yu(n,d,f)||0),o|=_u(r,gu,C),o|=_u(r,"perfTotal",C);var E=n.serverTiming;if(E){var w={};lt(E,(function(e,t){var n=Ze(e.name||""+t),r=w[n]||{};Je(e,(function(e,t){(e!==i&&ot(t)||it(t))&&(r[e]&&(t=r[e]+";"+t),!t&&ot(t)||(r[e]=t))})),w[n]=r})),o|=_u(r,_,w)}o|=_u(r,v,n.transferSize),o|=_u(r,y,n.encodedBodySize),o|=_u(r,b,n.decodedBodySize)}else e.perfMark&&(o|=_u(r,"missing",e.perfAttempts));o&&(t.properties=r)}(e,i),n&&mt(e.requestHeaders).length>0&&(a.requestHeaders=e.requestHeaders),r){var s=r();if(s){var c=s.correlationContext;if(c&&(i.correlationContext=c),s.headerMap&&mt(s.headerMap).length>0&&(a.responseHeaders=s.headerMap),e.errorStatusText)if(e.status>=400){var l=s.type;""!==l&&"text"!==l||(a.responseText=s.responseText?s.statusText+" - "+s.responseText:s.statusText),"json"===l&&(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={})[mu]=((t={}).traceID=r.traceId,t.parentID=r.spanId,t);Ge(r.traceFlags)||(o.traceFlags=r.traceFlags)}return n}}))}return e.__ieDyn=1,e}(),wu="ai.ajxmn.",xu="fetch",ku="Failed to monitor XMLHttpRequest",Su=", monitoring data for this ajax call ",Tu=Su+"may be incorrect.",Iu=Su+"won't be sent.",Au="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Pu="Failed to add custom defined request context as configured call back may missing a null check.",Du="Failed to calculate the duration of the ",Ru=0;var Mu=null;var Nu=function(e,t){return e&&t&&e._ajaxData?(e._ajaxData.i||{})[t]:null},Lu=function(e,t){var n=!1;if(e){var r=(e._ajaxData||{}).xh;r&&lt(r,(function(e){if(e.n===t)return n=!0,-1}))}return n};function Ou(e,t){var n="";try{var r=Nu(e,t);r&&r.requestUrl&&(n+="(url: '"+r.requestUrl+"')")}catch(o){}return n}function Fu(e,t,n,r,o){Tn(e.diagLog(),1,t,n,r,o)}function Bu(e,t,n,r,o){Tn(e.diagLog(),2,t,n,r,o)}function Hu(e,t,n){return function(r){Fu(e,t,n,{ajaxDiagnosticsMessage:Ou(r.inst,e._ajaxDataId),exception:un(r.err)})}}function zu(e,t){return e&&t?e.indexOf(t):-1}function Vu(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){lt(e,(function(t,n){if(t.id===r.id)return e.splice(n,1),-1}))}}}function Uu(e,t,n,r){var o=!0;return lt(t,(function(t,i){try{!1===t.fn.call(null,n)&&(o=!1)}catch(a){Tn(e&&e.logger,1,64,"Dependency "+r+" [#"+i+"] failed: "+Ct(a),{exception:un(a)},!0)}})),o}var Wu="*.blob.core.",ju=yt([Wu+"windows.net",Wu+"chinacloudapi.cn",Wu+"cloudapi.de",Wu+"usgovcloudapi.net"]),qu=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Gu(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:ju,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 Ku(){var e=Gu();return Je(e,(function(t){e[t]=void 0})),e}var Yu=function(e){function t(){var n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,C,E,w,x,k,S=e.call(this)||this;return S.identifier=t.identifier,S.priority=120,ge(t,S,(function(e,S){var T=S._addHook;function I(){var S=nn();n=!1,r=!1,o=S&&S.host&&S.host.toLowerCase(),i=t.getEmptyConfig(),a=!1,s=!1,c=0,l=null,u=!1,d=!1,p=null,h=!1,f=0,m=!1,g={},v=!1,y=!1,b=null,_=null,C=null,w=0,x=[],k=[],E=pr("ajaxData"),e._ajaxDataId=E}function A(e){var t=!0;return(e||i.ignoreHeaders)&&lt(i.ignoreHeaders,(function(n){if(n.toLowerCase()===e.toLowerCase())return t=!1,-1})),t}function P(e,t,n){T(function(e,t,n){return e?Ac(e.prototype,t,n,!1):null}(e,t,n))}function D(e,t,n){var r=!1,o=((ot(t)?t:(t||{}).url||"")||"").toLowerCase();if(lt(b,(function(e){var t=e;ot(e)&&(t=new RegExp(e)),r||(r=t.test(o))})),r)return r;var i=zu(o,"?"),a=zu(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),Ge(e)?Ge(t)||(r="object"===typeof t&&!0===t[Ds]||!!n&&!0===n[Ds]):r=!0===e[Ds]||!0===o[Ds],!r&&o&&yc(o)&&(r=!0),r?g[o]||(g[o]=1):g[o]&&(r=!0),r}function R(e,t,n){var o=!0,i=r;return Ge(e)||(o=!0===n||!Ge(t)),i&&o}function M(){var t=null;return e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1)),!t&&l&&l.telemetryTrace&&(t=Ec(l.telemetryTrace)),t}function N(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}function L(t){try{var n=t.getAllResponseHeaders();if(null!==n)if(-1!==zu(n.toLowerCase(),cc[8])){var r=t.getResponseHeader(cc[0]);return bc.getCorrelationContext(r)}}catch(o){Bu(e,18,Au,{ajaxDiagnosticsMessage:Ou(t,E),exception:un(o)})}}function O(e,t){if(t.requestUrl&&p&&h){var n=rn();if(n&&Xe(n.mark)){Ru++;var r=p+e+"#"+Ru;n.mark(r);var o=n.getEntriesByName(r);o&&1===o.length&&(t.perfMark=o[0])}}}function B(e,t,n,r){var o=t.perfMark,a=rn(),s=i.maxAjaxPerfLookupAttempts,c=i.ajaxPerfLookupDelay,l=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 f=p[h];if(f){if("resource"===f.entryType)f.initiatorType!==e||-1===zu(f.name,l)&&-1===zu(l,f.name)||(d=f);else if("mark"===f.entryType&&f.name===o.name){t.perfTiming=d;break}if(f.startTime<o.startTime-1e3)break}}}!o||t.perfTiming||u>=s||!1===t.async?(o&&Xe(a.clearMarks)&&a.clearMarks(o.name),t.perfAttempts=u,n()):setTimeout(i,c)}catch(m){r(m)}}()}function H(t){var n="";try{Ge(t)||(ot(t)?n+="(url: '".concat(t,"')"):n+="(url: '".concat(t.url,"')"))}catch(r){Fu(e,15,"Failed to grab failed fetch diagnostics message",{exception:un(r)})}return n}function z(t,n,r,o,i,s,c){function l(t,n,o){var i=o||{};i.fetchDiagnosticsMessage=H(r),n&&(i.exception=un(n)),Bu(e,t,Du+"fetch call"+Iu,i)}i&&(i.responseFinishedTime=_c(),i.status=n,B(xu,i,(function(){var t,c=i.CreateTrackItem("Fetch",a,s);try{_&&(t=_({status:n,request:r,response:o}))}catch(d){Bu(e,104,Pu)}if(c){void 0!==t&&(c.properties=V(V({},c.properties),t));var u=i.getPartAProps();W(k,e.core,i,c,null,u)}else l(14,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})}),(function(e){l(18,e,null)})))}function U(t){if(t&&t.headers)try{var n=t.headers.get(cc[0]);return bc.getCorrelationContext(n)}catch(r){Bu(e,18,Au,{fetchDiagnosticsMessage:H(t),exception:un(r)})}}function W(t,n,r,o,i,a){var s=!0;t.length>0&&(s=Uu(n,t,{item:o,properties:i,sysProperties:a,context:r?r.context:null,aborted:!!r&&!!r.aborted},"initializer"));s&&e.trackDependencyDataInternal(o,i,a)}I(),e.initialize=function(o,c,g,w){e.isInitialized()||(S.initialize(o,c,g,w),C=Rr(pr("ajax"),c&&c.evtNamespace&&c.evtNamespace()),function(n){var r=Ro(null,n,e.core);i=Ku(),Je(Gu(),(function(e,n){i[e]=r.getConfig(t.identifier,e,n)}));var o=i.distributedTracingMode;if(a=i.enableRequestHeaderTracking,s=i.enableAjaxErrorStatusText,h=i.enableAjaxPerfTracking,f=i.maxAjaxCallsPerView,m=i.enableResponseHeaderTracking,b=[].concat(i[vu]||[],!1!==i.addIntEndpoints?qu:[]),_=i.addRequestContext,d=0===o||1===o,u=1===o||2===o,h){var c=n.instrumentationKey||"unkwn";p=c.length>5?wu+c.substring(c.length-5)+".":wu+c+"."}v=!!i.disableAjaxTracking,y=!!i.disableFetchTracking}(o),!function(e,t){var n,r=!1;if(fn()){var o=XMLHttpRequest.prototype;r=!Ge(o)&&!Ge(o.open)&&!Ge(o.send)&&!Ge(o.abort)}var i=ln();if(i&&i<9&&(r=!1),r)try{var a=new XMLHttpRequest,s={xh:[],i:(n={},n[t]={},n)};a._ajaxData=s;var c=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=c}catch(l){r=!1,Fu(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:un(l)})}return r}(e,E)||v||r||(P(XMLHttpRequest,"open",{ns:C,req:function(t,n,r,o){if(!v){var i=t.inst,c=Nu(i,E);!D(i,r)&&R(i,c,!0)&&(c&&c.xhrMonitoringState.openDone||(c=function(t,n,r,o){var i,a=M(),c=a&&a.getTraceId()||qr(),l=qr().substr(0,16),u=t._ajaxData=t._ajaxData||{xh:[],i:{}},d=u.i=u.i||{},p=d[E]=d[E]||new Eu(c,l,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=Mr(t,"readystatechange",(function(){try{t&&4===t.readyState&&R(t,n)&&function(t){var n=Nu(t,E);function r(n,r){var o=r||{};o.ajaxDiagnosticsMessage=Ou(t,E),n&&(o.exception=un(n)),Bu(e,14,Du+"ajax call"+Iu,o)}n.responseFinishedTime=_c(),n.status=t.status,B("xmlhttprequest",n,(function(){try{var o=n.CreateTrackItem("Ajax",a,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:L(t),type:t.responseType,responseText:N(t),response:t.response};if(m){var n=t.getAllResponseHeaders();if(n){var r=pt(n).split(/[\r\n]+/),o={};lt(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");A(n)&&(o[n]=r)})),e.headerMap=o}}return e})),i=void 0;try{_&&(i=_({status:t.status,xhr:t}))}catch(l){Bu(e,104,Pu)}if(o){void 0!==i&&(o.properties=V(V({},o.properties),i));var s=n.getPartAProps();W(k,e.core,n,o,null,s)}else r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{var c=(t._ajaxData||{i:{}}).i||{};c[E]&&(c[E]=null)}catch(l){}}}),(function(e){r(e,null)}))}(t)}catch(o){var r=un(o);r&&-1!==zu(r.toLowerCase(),"c00c023f")||Fu(e,16,ku+" 'readystatechange' event handler"+Tu,{ajaxDiagnosticsMessage:Ou(t,E),exception:r})}}),C)}(i,c))}},hkErr:Hu(e,15,ku+".open"+Tu)}),P(XMLHttpRequest,"send",{ns:C,req:function(t,n){if(!v){var r=t.inst,o=Nu(r,E);R(r,o)&&!o.xhrMonitoringState.sendDone&&(O("xhr",o),o.requestSentTime=_c(),e.includeCorrelationHeaders(o,void 0,void 0,r),o.xhrMonitoringState.sendDone=!0)}},hkErr:Hu(e,17,ku+Tu)}),P(XMLHttpRequest,"abort",{ns:C,req:function(e){if(!v){var t=e.inst,n=Nu(t,E);R(t,n)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)}},hkErr:Hu(e,13,ku+".abort"+Tu)}),P(XMLHttpRequest,"setRequestHeader",{ns:C,req:function(e,t,n){if(!v){var r=e.inst,o=Nu(r,E);o&&R(r,o)&&(function(e,t,n){if(e){var r=(e._ajaxData||{}).xh;r&&r.push({n:t,v:n})}}(r,t,n),a&&A(t)&&o&&(o.requestHeaders[t]=n))}},hkErr:Hu(e,71,ku+".setRequestHeader"+Tu)}),r=!0),function(){var t=function(){var e=F();return!e||Ge(e.Request)||Ge(e.Request.prototype)||Ge(e.fetch)?null:e.fetch}();if(!t)return;var o=F(),i=t.polyfill;y||n?i&&T(Ac(o,xu,{ns:C,req:function(e,t,n){D(null,t,n)}})):(T(Ac(o,xu,{ns:C,req:function(t,o,c){var l;if(!y&&n&&!D(null,o,c)&&(!i||!r)){var u=t.ctx();l=function(t,n){var r,o=M(),i=o&&o.getTraceId()||qr(),c=qr().substr(0,16),l=new Eu(i,c,e.diagLog(),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());l.traceFlags=o&&o.getTraceFlags(),l.requestSentTime=_c(),l.errorStatusText=s,t instanceof Request?l.requestUrl=t?t.url:"":l.requestUrl=t;var u="GET";n&&n.method?u=n.method:t&&t instanceof Request&&(u=t.method);l.method=u;var d={};if(a){new Headers((n?n.headers:0)||t instanceof Request&&t.headers||{}).forEach((function(e,t){A(t)&&(d[t]=e)}))}return l.requestHeaders=d,O(xu,l),l}(o,c);var d=e.includeCorrelationHeaders(l,o,c);d!==c&&t.set(1,d),u.data=l}},rsp:function(e,t){if(!y){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(r){return z(e,(r||{}).status,t,r,n,(function(){var e={statusText:(r||{}).statusText,headerMap:null,correlationContext:U(r)};if(m&&r){var t={};r.headers.forEach((function(e,n){A(n)&&(t[n]=e)})),e.headerMap=t}return e})),r})).catch((function(r){throw z(e,0,t,null,n,null,{error:r.message||un(r)}),r})))}},hkErr:Hu(e,15,"Failed to monitor Window.fetch"+Tu)},!0,function(){if(null==Mu)try{Mu=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Mu=!1}return Mu}())),n=!0);i&&(o.fetch.polyfill=i)}(),function(){var t=e.core.getPlugin(Ps);t&&(l=t.plugin.context)}())},e._doTeardown=function(){I()},e.trackDependencyData=function(t,n){W(k,e.core,null,t,n)},e.includeCorrelationHeaders=function(t,n,r,s){var c=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};Uu(t,e,a,"listener"),n.traceID=a.traceId,n.spanID=a.spanId,n.traceFlags=a.traceFlags,n.context=a.context}}(x,e.core,t,s,n,r),n||""===n){if(bc.canIncludeCorrelationHeader(i,t.getAbsoluteUrl(),c)){r||(r={});var p=new Headers(r.headers||n instanceof Request&&n.headers||{});if(d){var h="|"+t.traceID+"."+t.spanID;p.set(cc[3],h),a&&(t.requestHeaders[cc[3]]=h)}if((m=i.appId||l&&l.appId())&&(p.set(cc[0],cc[2]+m),a&&(t.requestHeaders[cc[0]]=cc[2]+m)),u){Ge(g=t.traceFlags)&&(g=1);var f=xo(Co(t.traceID,t.spanID,g));p.set(cc[4],f),a&&(t.requestHeaders[cc[4]]=f)}r.headers=p}return r}if(s){if(bc.canIncludeCorrelationHeader(i,t.getAbsoluteUrl(),c)){if(d)if(Lu(s,cc[3]))Bu(e,71,"Unable to set ["+cc[3]+"] as it has already been set by another instance");else{h="|"+t.traceID+"."+t.spanID;s.setRequestHeader(cc[3],h),a&&(t.requestHeaders[cc[3]]=h)}var m,g;if((m=i.appId||l&&l.appId())&&(Lu(s,cc[0])?Bu(e,71,"Unable to set ["+cc[0]+"] as it has already been set by another instance"):(s.setRequestHeader(cc[0],cc[2]+m),a&&(t.requestHeaders[cc[0]]=cc[2]+m))),u)if(Ge(g=t.traceFlags)&&(g=1),Lu(s,cc[4]))Bu(e,71,"Unable to set ["+cc[4]+"] as it has already been set by another instance");else{f=xo(Co(t.traceID,t.spanID,g));s.setRequestHeader(cc[4],f),a&&(t.requestHeaders[cc[4]]=f)}}return s}},e.trackDependencyDataInternal=function(t,n,r){if(-1===f||c<f){2!==i.distributedTracingMode&&1!==i.distributedTracingMode||"string"!==typeof t.id||"."===t.id[t.id.length-1]||(t.id+="."),Ge(t.startTime)&&(t.startTime=new Date);var o=js(t,wc.dataType,wc.envelopeType,e.diagLog(),n,r);e.core.track(o)}else c===f&&Fu(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);++c},e.addDependencyListener=function(e){return Vu(x,w++,e)},e.addDependencyInitializer=function(e){return Vu(k,w++,e)}})),S}return W(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=Gu,t.getEmptyConfig=Ku,t}(Ho);function Qu(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 Xu(e,t){var n,r={},o=Jt();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 Zu(e){Je(e,(function(t,n){(!$r(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}var Ju,$u=function(){function e(){}return e.prototype._setCommonProperties=function(e,t){$r(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,$r(t.target)&&(e.baseData.target=t.target),$r(t.responseContentType)&&(e.baseData.responseContentType=t.responseContentType),$r(t.protocol)&&(e.baseData.protocol=t.protocol),$r(t.protocolStatusCode)&&(e.baseData.protocolStatusCode=t.protocolStatusCode)},e}(),ed=function(){function e(){this._qosEvent=new $u}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),$r(t.callerIpAddress)&&(e.baseData.callerIpAddress=t.callerIpAddress),$r(t.callerName)&&(e.baseData.callerName=t.callerName),$r(t.requestSizeBytes)&&(e.baseData.requestSizeBytes=t.requestSizeBytes),$r(t.operationVersion)&&(e.baseData.operationVersion=t.operationVersion)},e}(),td=function(){function e(){this._qosEvent=new $u}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",$r(t.dependencyOperationVersion)&&(e.baseData.dependencyOperationVersion=t.dependencyOperationVersion),$r(t.responseSizeBytes)&&(e.baseData.responseSizeBytes=t.responseSizeBytes)},e}(),nd="MS-CV",rd=function(e){function t(){var n,r,o,i,a,s=e.call(this)||this;return s.identifier="QosPlugin",s.version="3.2.14",ge(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 Je(t,(function(e,t){t&&Qe(t)&&n.push(e)})),function(e,t){Zu(e),lt(t,(function(t){Qe(e[t])?Zu(e[t]):delete e[t]}))}(e,n),ao(!0,t,e)}function c(t,n){u(t,n),e.core.track(t)}function l(){n=null,i={market:"",serverImpressionGuid:""},a={},r=new td,o=new ed}function u(e,t){$r(t)&&Je(t,(function(t,n){e.data[t]=n}))}l(),e.includeCorrelationHeaders=function(n,r,o,i){var s=t.includeCorrelationHeaders(n,r,o,i);if(a.enableCvHeaders){var c=e.getCv();if(c&&(r||i)){c.increment();var l=c.getValue();r?(s||(s=o||{}),s.headers&&Xe(s.headers.append)||(s.headers=new Headers(s.headers||r instanceof Request&&r.headers||{})),s.headers.append(nd,l)):s.setRequestHeader(nd,l)}}return s},e.initialize=function(r,o,c){var l=r.extensionConfig=r.extensionConfig||[];l[e.identifier]=l[e.identifier]||{},a=e._qosConfig=s(l[e.identifier]),l[Yu.identifier]=a,t.initialize(r,o,c);var u=function(e){var t,n={};return t=Xu("awa-",!0),e.autoCapture&&e.autoCapture.msTags&&(n=Xu("ms.",!1)),ao(!0,t,n)}(e._qosConfig);i.market=Qu(u,a.coreData,"market"),i.serverImpressionGuid=Qu(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 ru(o),a.enableCvHeaders&&(d?(a.enableCvHeaders=!0,n=d):(Tn(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){uo(t,e.identifier);var r=t;if(r.baseType===wc.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||{},c=s[mu];if(c){var l=s.dt=s.dt||{};l.traceId=l.traceId||c.traceID,l.spanId=l.spanId||c.parentID,Ge(c.traceFlags)||it(l.traceFlags)||(l.traceFlags=c.traceFlags)}$r(n.cV)&&(s.mscv={},s.mscv.cV=n.cV),n.id=a.callback&&a.callback.id?a.callback.id():io(),(r=r||{}).pageName=$r(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=(nn()||{}).pathname||"",n=t.replace(/(^\/+|\/+$)/g,"").split("/"),r=n.length;return n&&n[r-1]?n[r-1]:"Home"}(e._qosConfig),r.uri=$r(r.uri)?r.uri:function(e){var t=nn()||{};return e.coreData.requestUri?e.coreData.requestUri:t.href}(e._qosConfig),r.market=$r(r.market)?r.market:i.market,r.serverImpressionGuid=$r(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),c(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),c(n)},e.getCv=function(){return n?n.getCv():null},e._doTeardown=function(e,n){t._doTeardown(e,n),l()}})),s}return W(t,e),t.__ieDyn=1,t}(Yu),od=rd,id=function(e){var t={referrerUri:Ed.dom.getReferrer()};_d.capturePageView(t)},ad=function(e){if(Ed.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&&Ed.urlScrubber(e.targetUri)||Ed.dom.getLocationHref(),pageName:Ed.dom.getPageId(),refUri:Ed.dom.getReferrer(),actionType:El};_d.capturePageAction(Ed.dummyElement,t)}},sd={reportPageView:id,reportClick:ad,reportPartialView:function(e){var t={behavior:vl.IMPRESSION,pageName:e.viewId},n={pageLoadTime:e.pltMsec};_d.captureContentUpdate(t,n)},$notifyPageLoaded:function(){}},cd=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:Ed.flights},t.ext),wasDisplayed:!1,uri:Ed.dom.getLocationHref(),pageName:t.pageId,market:Ed.market};_d.trackException({},n)},ld=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};_d.trackEvent(i)},ud=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:Ed.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:Ed.dom.getPageId(),uri:Ed.dom.getLocationHref(),market:Ed.market,cV:e.cV};Cd.trackServiceOutgoingQos(t,n)},dd={reportClientError:function(e){var t=e&&e.data&&JSON.stringify(e.data),n={location:Ed.dom.getLocationHref(),pageId:Ed.dom.getPageId(),script:Ed.dom.getLocationHref(),message:e&&e.message||t||"unknown",userAgent:window.navigator.userAgent||""};cd(n)},reportFatalError:cd,reportRawEvent:ld,reportOutgoingApi:ud},pd="awa-",hd=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(pd))t[r.replace(pd,"")]=o}return t},fd=function(e){var t={name:i,baseType:"Ms.Content.PageView",baseData:{pageTags:{flight:e,metaTags:hd()}}};_d.trackEvent(t)},md={reportExperimentTrigger:fd,setExperimentData:function(){}},gd=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=Xt(),n=Jt();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=Xt(),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}(Nl),vd=function(t,n){var r={alt:bd(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||Ed.dom.getPageId(),isDomComplete:!0},i={uri:Ed.dom.getLocationHref(),timings:r,pageTypeForPerf:t.viewName||Ed.dom.getPageId()};_d.captureContentUpdate(o,i)},yd={reportViewPerformanceMetrics:vd},bd=function(e){var t=e;return t.application?Math.round(t.application.loadTimeMsec):void 0},_d=new Wl,Cd=new od,Ed={},wd=[r,n,"Ms.Web.ContentUpdate","Ms.Web.ClientError",o,i,s,a];function xd(t,a){var c=new Zl;Ju=new tu(a.seedCv);var l=new cs,u=a.features.join("|"),d=a.urlScrubber||y;if(Ed.allowClickTracking=t.allowClickTracking,Ed.flights=u,Ed.urlScrubber=d,Ed.dom=a.dom||v(d),Ed.market=a.language,Ed.dummyElement=document.createElement("div"),t.useKeydownEvent){var p=_d.getWebAnalyticsExtension(),h=new gd(p,p.diagLog());p.setAutoCaptureHandler(h)}var f={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:[c,Ju,Cd],extensionConfig:[]},m={callback:{},appId:t.appId,enableCvHeaders:!0,disableAjaxTracking:!0,disableFetchTracking:!0};f.extensionConfig[Cd.identifier]=m;var g={authType:ql,loggedInStatusCallback:function(){return t.isUserSignedIn||!1}};f.extensionConfig[c.identifier]=g;f.extensionConfig[l.identifier]={populateBrowserInfo:!0,populateOperatingSystemInfo:!0},_d.initialize(f,[]),t.userPuid&&t.isUserSignedIn&&(_d.getPropertyManager().getPropertiesContext().user.localId="p:".concat(t.userPuid)),_d.addTelemetryInitializer((function(t){var a,c;if(t.baseData||(t.baseData={}),t.data||(t.data={}),wd.indexOf(t.name)>-1){t.data.referrerUri=Ed.dom.getReferrer(),t.data.isLoggedIn=t.baseData.isLoggedIn,t.data.isManual=t.baseData.isManual,t.baseData.pageName=Ed.dom.getPageId(),t.baseData.impressionGuid=t.baseData.id;var l=t.baseData.properties.pageTags||{},u=t.baseData.pageTags||{};if(t.baseData.pageTags=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},u),l),{metaTags:(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},u.metaTags),l.metaTags),hd()),{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===(c=null===(a=t.ext)||void 0===a?void 0:a.mscv)||void 0===c?void 0:c.cV)&&t.data.overrideCv&&(t.ext.mscv.cV=t.data.overrideCv,delete t.data.overrideCv)):t.name===i||t.name===s?t.baseData.market=Ed.market||"":t.name===n&&(t.baseData.name=t.baseData.pageName);t.baseData.uri=Ed.dom.getLocationHref()}"Ms.Web.PageUnload"===t.name&&t.baseData.uri&&(t.baseData.uri=d(t.baseData.uri))}))}var kd="awa-",Sd="Ms.Osgs.Scenario",Td={$beginScenario:function(t){var n={name:Sd,data:(0,e.__assign)({uri:Ed.dom.getLocationHref(),referrerUri:Ed.dom.getReferrer(),pageName:Ed.dom.getPageId(),area:t.area,name:t.name,step:t.currentStep,next:t.nextStep||"",type:"s"},Id(t))};_d.trackEvent(n);var r={behavior:vl.STARTPROCESS,actionType:"A",contentTags:(0,e.__assign)({scn:t.name,scnstp:t.currentStep,scnnxtstp:t.nextStep},Ad(t.data))};_d.capturePageAction(Ed.dummyElement,r)},$completeStep:function(t){var n="ef";t.canceled?n=t.successful?"cs":"cf":t.successful&&(n="es");var r={name:Sd,data:(0,e.__assign)({uri:Ed.dom.getLocationHref(),referrerUri:Ed.dom.getReferrer(),pageName:Ed.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},Id(t))};_d.trackEvent(r);var o=t.isStep?vl.PROCESSCHECKPOINT:vl.COMPLETEPROCESS;!t.isStep&&t.canceled&&(o=vl.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},Ad(t.data))};_d.capturePageAction(Ed.dummyElement,i)}},Id=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}},Ad=function(e){if(e){var t={};return Object.keys(e).forEach((function(n){var r=n;n.startsWith(kd)&&(r=r.replace(kd,"")),t[r]=e[n]})),t}},Pd={getCorrelationVectorFormFieldName:function(){return"MS-CV"},getCurrentCvValue:function(){return Ju.getCv().getValue()},incrementCv:function(){Ju.getCv().increment()},seedCv:function(e){return e?Ju.getCv().init(e):Ju.getCv().seed()}},Dd={updateFlights:function(e){Ed.flights=e.join("|"),_d.getWebAnalyticsExtension().updateCoreDataConfig({pageTags:{flight:Ed.flights}})},updateUserPuid:function(e){_d.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e)}};window.OneDS={initialize:xd,BiSink:sd,ClientQosSink:dd,CorrelationVectorManager:Pd,ExperimentsSink:md,ScenarioSink:Td,PerformanceSink:yd,TelemetryConfigurationUpdateSink:Dd},window.owap=_d;var Rd,Md=1,Nd=2,Ld=3,Od=4,Fd=React,Bd=__webpack_require__.n(Fd),Hd=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)},zd=function(){return"".concat(Hd()).concat(Hd(),"-").concat(Hd(),"-").concat(Hd(),"-").concat(Hd(),"-").concat(Hd()).concat(Hd()).concat(Hd())},Vd=[],Ud=function(e){(0,Fd.useEffect)((function(){return e}),Vd)},Wd=function(e){var t=(0,Fd.useRef)(!1);t.current||(t.current=!0,e())},jd=function(){var e=navigator.userAgentData;if(e){var t=e.brands;if(t)for(var n=0;n<t.length;n++)if("microsoft edge"===t[n].brand.toLowerCase())return!0}return!1},qd=(new Map,ReactDOM),Gd=__webpack_require__.n(qd),Kd=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=Gd().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,Rd=this)}return null},n.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=Gd().findDOMNode(this);if(t&&document.activeElement===document.body&&Rd===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}(Bd().Component),Yd=JSON.parse('{"p":"main-content-landing","P":"main-content-landing-react"}');function Qd(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}function Xd(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 Zd=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)},Jd=function(){return"".concat(Zd()).concat(Zd(),"-").concat(Zd(),"-").concat(Zd(),"-").concat(Zd(),"-").concat(Zd()).concat(Zd()).concat(Zd())},$d=(__webpack_require__(56449),/\{([-\w]+)\}/),ep=/({[-\w]+\})/,tp=function(e,t,n){return e.reduce((function(e,r,o){var i,a,s=r,c=null===(i=$d.exec(r))||void 0===i?void 0:i[1];if(c&&t.hasOwnProperty(c)){var l=t[c];if(a=l,Bd().isValidElement(a))return l=n?n(l):l,e.push(Bd().cloneElement(l,{key:o})),e;s=null!==l&&void 0!==l?l:""}var u=e.length;return u&&"string"===typeof e[u-1]?e[u-1]+=s:e.push(s),e}),[])},np=[],rp=function(e){(0,Fd.useEffect)((function(){return e}),np)},op=function(e){var t=(0,Fd.useRef)(!1);t.current||(t.current=!0,e())};var ip,ap,sp={bingMapsOverlay:1,twoUIFlowProgressBar:1,twoUITab:1,bingMapsListContainer:2,bingMapsNoPushPinContainer:3,twoUINavBar:5,twoUILiveToast:6,twoUINavBarOverHeader:11,twoUILeftNavBypassBlocksButton:1e4,twoUIPanel:10001,twoUINotificationBar:10002},cp=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=Gd().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,ip=this)}return null},n.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=Gd().findDOMNode(this);if(t&&document.activeElement===document.body&&ip===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}(Bd().Component),lp=["s","m","l","xl","xxl","xxxl"],up=(0,Fd.createContext)(null),dp={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},pp={s:dp.m-1,m:dp.l-1,l:dp.xl-1,xl:dp.xxl-1,xxl:dp.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER},hp=function(e){return lp.find((function(t){return e<=pp[t]}))||"xxxl"},fp=function(e){var t=e.children,n=hp(window.innerWidth),r=(0,Fd.useState)(n),o=r[0],i=r[1],a={},s=function(e){if(e.matches){var t=a[e.media]||hp(window.innerWidth);i(t)}};return(0,Fd.useEffect)((function(){var e=window.matchMedia?lp.map((function(e){var t=window.matchMedia("(max-width: ".concat(pp[e],"px) and (min-width: ").concat(dp[e],"px)"));return a[t.media]=e,t})):void 0;return e&&e.forEach((function(e){e.addEventListener("change",s)})),i(hp(window.innerWidth)),function(){e&&e.forEach((function(e){return e.removeEventListener("change",s)}))}}),[]),Bd().createElement(up.Provider,{value:{viewportType:o}},t)},mp=((0,e.__assign)((0,e.__assign)({},sp),{billingOrderFilter:1,suiteHeaderWholeHeader:10,feedBackButton:10,suiteHeaderSkipToMainContent:1e4}),document.querySelector("html > head")),gp={},vp=function e(t,n){if("string"===typeof t)if(gp[t]){var r=document.head.getElementsByTagName("meta").namedItem(t);r&&(r.content=n)}else{if(null!==yp(t))throw new Error("Metatag not added through MetatagService already exists");gp[t]=!0;var o=document.createElement("meta");o.name=t,o.content=n,mp.appendChild(o)}else for(var i=t,a=0,s=Object.keys(i);a<s.length;a++){var c=s[a];e(c,i[c])}};function yp(e){return mp.getElementsByTagName("meta").namedItem(e)}!function(e){e.AlreadyRunning="alreadyRunning"}(ap||(ap={}));var bp=1e3;var _p,Cp="mountStart",Ep="mountEnd",wp="updateStart",xp="updateEnd",kp="onClickNewStep",Sp="onClickNoStep",Tp="Cancel",Ip="End",Ap="PreScenario",Pp=Ap,Dp=!0,Rp=function(e,t){return"".concat(e,"-").concat(t)},Mp=function(e){return Rp(e,Cp)},Np=function(e){return Rp(e,Ep)},Lp=function(e){return Rp(e,wp)},Op=function(e){return Rp(e,xp)},Fp=Mp(Ap),Bp=Np(Ap),Hp=Lp(Ap),zp=Op(Ap);function Vp(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)/bp,redirectTime:(e.redirectEnd-e.redirectStart)/bp,contentDownloadTime:(e.responseEnd-e.responseStart)/bp,TTFB:(e.responseStart-e.requestStart)/bp,PLT:(e.loadEventStart-e.startTime)/bp,DNS:(e.domainLookupEnd-e.domainLookupStart)/bp,TCP:(e.connectEnd-e.connectStart)/bp,SSL:(e.requestStart-e.secureConnectionStart)/bp}}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);mh((0,e.__assign)((0,e.__assign)((0,e.__assign)({name:"Ms.Webi.MeePortal.OneNavigationPerfEvent",scenarioName:_p,successStatus:t,isFirstScenarioOnPage:Dp},o),a),{timeMarkers:i}))}window.performance.clearMarks&&window.performance.clearMarks(),Up(Ap),Dp=!1}function Up(e){Fp=Mp(Pp=e),Bp=Np(Pp),Hp=Lp(Pp),zp=Op(Pp)}function Wp(e){if(window.performance.mark){var t=function(e){return Rp(e,kp)}(e);window.performance.mark(t)}}function jp(){if(window.performance.mark){var e=Rp(Pp,Sp);window.performance.mark(e)}}function qp(e){Wp(e),Up(e)}var Gp,Kp,Yp,Qp,Xp,Zp="Scenario not started or already ended",Jp=!1,$p={isReact:!0};function eh(t){var n;Jp&&mh({name:"Ms.Webi.MeePortal.ScenarioErrorEvent",message:"Scenario begin called, but Scenario '".concat(t.scenario,"' is already started"),area:t.area,scenario:t.scenario,eventType:ap.AlreadyRunning}),ah(t),Up(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),$p),{scenarioStartTimestamp:Date.now()})})}function th(e){var t;if(!Jp)throw new Error(Zp);Up(e.step),Gp.push(Kp),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(sh(e))}function nh(t){var n;if(!Jp)throw new Error(Zp);t&&t.step&&Up(t.step);var r=(0,e.__assign)({step:Kp.step,data:Kp.data},t);null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.cancelMultiStepScenario(sh(r)),Vp("error"),Jp=!1}function rh(t){var n;if(!Jp)throw new Error(Zp);t&&t.step&&Up(t.step);var r=(0,e.__assign)((0,e.__assign)({},Kp.data),{timeElapsedFromScenarioStart:Kp.data&&Kp.data.scenarioStartTimestamp?Date.now()-Kp.data.scenarioStartTimestamp:null}),o=(0,e.__assign)({step:Kp.step,data:r},t);null===(n=window.BradburyTelemetry)||void 0===n||n.scenarios.endMultiStepScenario(sh(o)),Vp("success"),Jp=!1}function oh(e){var t;if(!Jp)throw new Error(Zp);Up(e.step),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(sh(e)),Vp("error"),Jp=!1}function ih(){return Jp}function ah(t){if(Gp=[],function(e){if(!e)throw new Error("Performance tracking begin(): no scenario specified");_p=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(Qp,"': no step specified"));Yp=t.area,Qp=t.scenario,Xp=t.attribution,Jp=!0,Kp={step:t.step,data:(0,e.__assign)((0,e.__assign)({},t.data),{scenarioStartTimestamp:Date.now()})}}function sh(t){if(!t||!t.step)throw new Error("Scenario '".concat(Qp,"': next step not specified"));var n=Kp.data||t.data?(0,e.__assign)((0,e.__assign)({},Kp.data),t.data):{},r=Kp.data?Kp.data.scenarioStartTimestamp:null,o={area:Yp,name:Qp,attribution:Xp,data:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},n),$p),{timeElapsedFromScenarioStart:r?Date.now()-r:null}),step:Kp.step,next:t.step,isSuccess:!t.error,error:t.error};return Kp={step:o.next,data:o.data},o}var ch=function(){var e;return null===(e=window.BradburyTelemetry)||void 0===e?void 0:e.cv.getCurrentCvValue()},lh=function(){var e;null===(e=window.BradburyTelemetry)||void 0===e||e.cv.incrementCv()},uh=__webpack_require__(40475),dh=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=Jp?Qp:void 0;try{t.data=(0,e.__assign)((0,e.__assign)({},t.data),{scenario:s,devServer:null!==yp("awa-devserver")}),o=JSON.stringify(t.data)}catch(aW){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)},ph=function(e,t){var n;null===(n=window.BradburyTelemetry)||void 0===n||n.perf.reportViewPerformanceMetrics(e,t)},hh=function(t,n){var r,o,i=t.httpStatusCode?t.httpStatusCode:0,a="https://request-uri-missing.com";(null===(r=window.BradburyTelemetry.utilities)||void 0===r?void 0:r.globalUrlScrubber)&&(a=window.BradburyTelemetry.utilities.globalUrlScrubber(t.requestUri));var s,c={isSuccess:void 0!==t.isSuccess?t.isSuccess:i<500,latencyMs:Math.floor(t.latency),httpStatusCode:i.toString(),serviceErrorCode:t.serviceErrorCode||-1,errorMessage:t.errorMessage,requestTimeout:t.timeout,responseStatus:i,responseDataError:t.responseDataError};!function(e,t){var n,r;if(!e)return;var o=h;t&&(o=t(e));o!==f&&(null===(r=null===(n=window.BradburyTelemetry.utilities)||void 0===n?void 0:n.overrideRequestQosData)||void 0===r||r.call(n,e))}(c,n);try{t.customData=(0,e.__assign)((0,e.__assign)({},t.customData),{devServer:null!==yp("awa-devserver")}),s=JSON.stringify(t.customData)}catch(aW){s="Unable to parse customData."}null===(o=window.BradburyTelemetry)||void 0===o||o.qos.reportOutgoingApi({cV:t.overrideCv||ch(),currentOperationName:t.operationName,requestUri:a,latencyMs:c.latencyMs||-1,serviceErrorCode:c.serviceErrorCode,isSuccess:c.isSuccess,httpMethod:t.httpMethod,httpStatusCode:c.httpStatusCode,contentType:t.contentType,operationName:t.operationName,serviceName:t.partnerName||"MeePortal",responseSize:t.responseSize,errorMessage:c.errorMessage,operationVersion:"ReactJS",customData:s})};function fh(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 mh(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 gh(t){var n,r,o=t.name,i=(0,e.__rest)(t,["name"]),a=null===(n=window.MeePortal)||void 0===n?void 0:n.g_userFeatures,s={name:o,content:(0,e.__assign)((0,e.__assign)({},i),{baseData:{pageTags:{flight:(a||[]).join("|")}}})};null===(r=window.BradburyTelemetry)||void 0===r||r.qos.reportRawEvent(s)}function vh(e){var t,n,r="http://uri-missing.com";(null===(t=window.BradburyTelemetry.utilities)||void 0===t?void 0:t.globalUrlScrubber)&&(r=window.BradburyTelemetry.utilities.globalUrlScrubber(e)),mh({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:r,page:null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentLocation()})}function yh(e,t,n){var r;mh({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 bh(e,t,n){var r,o,i;mh({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===uh||void 0===uh?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 _h(e){for(var t,n,r,o,i,a,s,c,l=(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(),f=0;f<l.length;f++){var m=l[f];try{var g=new URL(m.name),v=g.pathname.split("/"),y=v[v.length-1];if("file:"===g.protocol)continue;var b=u&&u(g.href),_=d&&d(g.pathname),C=d&&d(y),E=u&&u(g.search);mh({name:"Ms.Webi.MeePortal.ResourceTiming",domain:g.hostname,path:_||g.pathname,resourceName:C||y,fullUrl:b||g.href,queryString:E||g.search,size:m.transferSize,duration:Math.floor(m.duration),entryType:m.entryType,initiatorType:m.initiatorType,url:h,area:e,pageName:p})}catch(w){mh({name:"Ms.Webi.MeePortal.ResourceTiming",fullUrl:(b=u&&u(m.name))||m.name,url:h,pageName:p,area:e,error:w.message||"unknown error"})}finally{null===(c=performance.clearResourceTimings)||void 0===c||c.call(performance)}}}var Ch=function(e,t,n,r){var o=performance.now()-n;ph({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 Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}function wh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Eh(e,t)}var xh=__webpack_require__(24974),kh=__webpack_require__.n(xh);function Sh(){return Sh=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},Sh.apply(this,arguments)}function Th(e){return"/"===e.charAt(0)}function Ih(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 Ah=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Th(e),a=t&&Th(t),s=i||a;if(e&&Th(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var l=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Ih(o,u):".."===d?(Ih(o,u),l++):l&&(Ih(o,u),l--)}if(!s)for(;l--;l)o.unshift("..");!s||""===o[0]||o[0]&&Th(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function Ph(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Dh=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=Ph(t),o=Ph(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Rh="Invariant failed";var Mh=function(e,t){if(!e)throw new Error(Rh)};function Nh(e){return"/"===e.charAt(0)?e:"/"+e}function Lh(e){return"/"===e.charAt(0)?e.substr(1):e}function Oh(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 Fh(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Bh(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 Hh(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=Sh({},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=Ah(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function zh(){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 Vh=!("undefined"===typeof window||!window.document||!window.document.createElement);function Uh(e,t){t(window.confirm(e))}var Wh="popstate",jh="hashchange";function qh(){try{return window.history.state||{}}catch(e){return{}}}function Gh(e){void 0===e&&(e={}),Vh||Mh(!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,c=void 0===s?Uh:s,l=o.keyLength,u=void 0===l?6:l,d=e.basename?Fh(Nh(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=Oh(i,d)),Hh(i,r,n)}function h(){return Math.random().toString(36).substr(2,u)}var f=zh();function m(e){Sh(T,e),T.length=t.length,f.notifyListeners(T.location,T.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(qh()))}var y=!1;function b(e){if(y)y=!1,m();else{f.confirmTransitionTo(e,"POP",c,(function(t){t?m({action:"POP",location:e}):function(e){var t=T.location,n=C.indexOf(t.key);-1===n&&(n=0);var r=C.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(y=!0,w(o))}(e)}))}}var _=p(qh()),C=[_.key];function E(e){return d+Bh(e)}function w(e){t.go(e)}var x=0;function k(e){1===(x+=e)&&1===e?(window.addEventListener(Wh,g),r&&window.addEventListener(jh,v)):0===x&&(window.removeEventListener(Wh,g),r&&window.removeEventListener(jh,v))}var S=!1;var T={length:t.length,action:"POP",location:_,createHref:E,push:function(e,r){var o="PUSH",i=Hh(e,r,h(),T.location);f.confirmTransitionTo(i,o,c,(function(e){if(e){var r=E(i),s=i.key,c=i.state;if(n)if(t.pushState({key:s,state:c},null,r),a)window.location.href=r;else{var l=C.indexOf(T.location.key),u=C.slice(0,l+1);u.push(i.key),C=u,m({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=Hh(e,r,h(),T.location);f.confirmTransitionTo(i,o,c,(function(e){if(e){var r=E(i),s=i.key,c=i.state;if(n)if(t.replaceState({key:s,state:c},null,r),a)window.location.replace(r);else{var l=C.indexOf(T.location.key);-1!==l&&(C[l]=i.key),m({action:o,location:i})}else window.location.replace(r)}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return S||(k(1),S=!0),function(){return S&&(S=!1,k(-1)),t()}},listen:function(e){var t=f.appendListener(e);return k(1),function(){k(-1),t()}}};return T}var Kh="hashchange",Yh={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Lh(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Lh,decodePath:Nh},slash:{encodePath:Nh,decodePath:Nh}};function Qh(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Xh(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Zh(e){window.location.replace(Qh(window.location.href)+"#"+e)}function Jh(e){void 0===e&&(e={}),Vh||Mh(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Uh:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?Fh(Nh(e.basename)):"",c=Yh[a],l=c.encodePath,u=c.decodePath;function d(){var e=u(Xh());return s&&(e=Oh(e,s)),Hh(e)}var p=zh();function h(e){Sh(k,e),k.length=t.length,p.notifyListeners(k.location,k.action)}var f=!1,m=null;function g(){var e,t,n=Xh(),r=l(n);if(n!==r)Zh(r);else{var i=d(),a=k.location;if(!f&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(m===Bh(i))return;m=null,function(e){if(f)f=!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=_.lastIndexOf(Bh(t));-1===n&&(n=0);var r=_.lastIndexOf(Bh(e));-1===r&&(r=0);var o=n-r;o&&(f=!0,C(o))}(e)}))}}(i)}}var v=Xh(),y=l(v);v!==y&&Zh(y);var b=d(),_=[Bh(b)];function C(e){t.go(e)}var E=0;function w(e){1===(E+=e)&&1===e?window.addEventListener(Kh,g):0===E&&window.removeEventListener(Kh,g)}var x=!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=Qh(window.location.href)),n+"#"+l(s+Bh(e))},push:function(e,t){var n="PUSH",r=Hh(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=Bh(r),o=l(s+t);if(Xh()!==o){m=t,function(e){window.location.hash=e}(o);var i=_.lastIndexOf(Bh(k.location)),a=_.slice(0,i+1);a.push(t),_=a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=Hh(e,void 0,void 0,k.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=Bh(r),o=l(s+t);Xh()!==o&&(m=t,Zh(o));var i=_.indexOf(Bh(k.location));-1!==i&&(_[i]=t),h({action:n,location:r})}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return x||(w(1),x=!0),function(){return x&&(x=!1,w(-1)),t()}},listen:function(e){var t=p.appendListener(e);return w(1),function(){w(-1),t()}}};return k}function $h(e,t,n){return Math.min(Math.max(e,t),n)}function ef(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,c=void 0===s?6:s,l=zh();function u(e){Sh(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,c)}var p=$h(a,0,o.length-1),h=o.map((function(e){return Hh(e,void 0,"string"===typeof e?d():e.key||d())})),f=Bh;function m(e){var t=$h(g.index+e,0,g.entries.length-1),r=g.entries[t];l.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:f,push:function(e,t){var r="PUSH",o=Hh(e,t,d(),g.location);l.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=Hh(e,t,d(),g.location);l.confirmTransitionTo(o,r,n,(function(e){e&&(g.entries[g.index]=o,u({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(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),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var tf=1073741823,nf="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:{};function rf(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 of=Bd().createContext||function(e,t){var n,r,o="__create-react-context-"+function(){var e="__global_unique_id__";return nf[e]=(nf[e]||0)+1}()+"__",i=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=rf(t.props.value),t}wh(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):tf,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(Fd.Component);i.childContextTypes=((n={})[o]=kh().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}wh(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?tf: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?tf: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}(Fd.Component);return a.contextTypes=((r={})[o]=kh().object,r),{Provider:i,Consumer:a}},af=of,sf=__webpack_require__(40960),cf=__webpack_require__.n(sf);__webpack_require__(9479);function lf(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 uf=__webpack_require__(47814),df=__webpack_require__.n(uf),pf=function(e){var t=af();return t.displayName=e,t},hf=pf("Router-History"),ff=pf("Router"),mf=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}wh(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 Bd().createElement(ff.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},Bd().createElement(hf.Provider,{children:this.props.children||null,value:this.props.history}))},t}(Bd().Component);Bd().Component;var gf=function(e){function t(){return e.apply(this,arguments)||this}wh(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(Bd().Component);var vf={},yf=0;function bf(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(vf[e])return vf[e];var t=cf().compile(e);return yf<1e4&&(vf[e]=t,yf++),t}(e)(t,{pretty:!0})}function _f(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return Bd().createElement(ff.Consumer,null,(function(e){e||Mh(!1);var r=e.history,i=e.staticContext,a=o?r.push:r.replace,s=Hh(t?"string"===typeof n?bf(n,t.params):Sh({},n,{pathname:bf(n.pathname,t.params)}):n);return i?(a(s),null):Bd().createElement(gf,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,o=Hh(t.to);n=o,r=Sh({},s,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Dh(n.state,r.state)||a(s)},to:n})}))}var Cf={},Ef=0;function wf(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,c=n.sensitive,l=void 0!==c&&c;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=Cf[n]||(Cf[n]={});if(r[e])return r[e];var o=[],i={regexp:cf()(e,o,t),keys:o};return Ef<1e4&&(r[e]=i,Ef++),i}(n,{end:i,strict:s,sensitive:l}),o=r.regexp,a=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],d=c.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 xf=function(e){function t(){return e.apply(this,arguments)||this}return wh(t,e),t.prototype.render=function(){var e=this;return Bd().createElement(ff.Consumer,null,(function(t){t||Mh(!1);var n=e.props.location||t.location,r=Sh({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?wf(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===Bd().Children.count(e)}(i)&&(i=null),Bd().createElement(ff.Provider,{value:r},r.match?i?"function"===typeof i?i(r):i:a?Bd().createElement(a,r):s?s(r):null:"function"===typeof i?i(r):null)}))},t}(Bd().Component);function kf(e){return"/"===e.charAt(0)?e:"/"+e}function Sf(e,t){if(!e)return t;var n=kf(e);return 0!==t.pathname.indexOf(n)?t:Sh({},t,{pathname:t.pathname.substr(n.length)})}function Tf(e){return"string"===typeof e?e:Bh(e)}function If(e){return function(){Mh(!1)}}function Af(){}Bd().Component;var Pf=function(e){function t(){return e.apply(this,arguments)||this}return wh(t,e),t.prototype.render=function(){var e=this;return Bd().createElement(ff.Consumer,null,(function(t){t||Mh(!1);var n,r,o=e.props.location||t.location;return Bd().Children.forEach(e.props.children,(function(e){if(null==r&&Bd().isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?wf(o.pathname,Sh({},e.props,{path:i})):t.match}})),r?Bd().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(Bd().Component);var Df=Bd().useContext;function Rf(){return Df(hf)}function Mf(){return Df(ff).location}function Nf(e){var t=Mf(),n=Df(ff).match;return e?wf(t.pathname,e):n}var Lf=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=Gh(t.props),t}return wh(t,e),t.prototype.render=function(){return Bd().createElement(mf,{history:this.history,children:this.props.children})},t}(Bd().Component);Bd().Component;var Of=function(e,t){return"function"===typeof e?e(t):e},Ff=function(e,t){return"string"===typeof e?Hh(e,null,null,t):e},Bf=function(e){return e},Hf=Bd().forwardRef;"undefined"===typeof Hf&&(Hf=Bf);var zf=Hf((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=lf(e,["innerRef","navigate","onClick"]),a=i.target,s=Sh({},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=Bf!==Hf&&t||n,Bd().createElement("a",s)}));var Vf=Hf((function(e,t){var n=e.component,r=void 0===n?zf:n,o=e.replace,i=e.to,a=e.innerRef,s=lf(e,["component","replace","to","innerRef"]);return Bd().createElement(ff.Consumer,null,(function(e){e||Mh(!1);var n=e.history,c=Ff(Of(i,e.location),e.location),l=c?n.createHref(c):"",u=Sh({},s,{href:l,navigate:function(){var t=Of(i,e.location),r=Bh(e.location)===Bh(Ff(t));(o||r?n.replace:n.push)(t)}});return Bf!==Hf?u.ref=t||a:u.innerRef=a,Bd().createElement(r,u)}))})),Uf=function(e){return e},Wf=Bd().forwardRef;"undefined"===typeof Wf&&(Wf=Uf);Wf((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,c=e.exact,l=e.isActive,u=e.location,d=e.sensitive,p=e.strict,h=e.style,f=e.to,m=e.innerRef,g=lf(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return Bd().createElement(ff.Consumer,null,(function(e){e||Mh(!1);var n=u||e.location,o=Ff(Of(f,n),n),v=o.pathname,y=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?wf(n.pathname,{path:y,exact:c,sensitive:d,strict:p}):null,_=!!(l?l(b,n):b),C="function"===typeof s?s(_):s,E="function"===typeof h?h(_):h;_&&(C=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(" ")}(C,i),E=Sh({},E,a));var w=Sh({"aria-current":_&&r||null,className:C,style:E,to:o},g);return Uf!==Wf?w.ref=t||m:w.innerRef=m,Bd().createElement(Vf,w)}))}));function jf(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.bi.reportClick(e)}var qf=function(e){var t=(0,Fd.useRef)(!1);window.performance.mark&&(t.current?window.performance.mark(function(e){return"".concat(Hp,"-").concat(e)}(e)):window.performance.mark(function(e){return"".concat(Fp,"-").concat(e)}(e))),(0,Fd.useEffect)((function(){window.performance.mark&&(t.current?window.performance.mark(function(e){return"".concat(zp,"-").concat(e)}(e)):(window.performance.mark(function(e){return"".concat(Bp,"-").concat(e)}(e)),t.current=!0))}))},Gf=(0,Fd.createContext)(null),Kf=function(){var e=(0,Fd.useContext)(Gf);if(null===e)throw new Error("ViewQosContext: Context is uninitialized. Confirm that your component is contained within a ViewQosProvider component.");return e},Yf=function(t){var n=t.area,r=t.view,o=t.manualPageView,i=void 0!==o&&o,a=t.requiredComponents,s=t.autoTrackComponents,c=void 0!==s&&s,l=t.children,u=(0,Fd.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!==Md})).map((function(e){return e.name}))},f=function(e){var t=performance.now()-u.startTime;v(u.reportedViewName,"page",e,t),y(e,t),_h(n)},m=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===Md})).map((function(e){return e.name})));return u.requiredComponents.every((function(t){return e.has(t)}))}()?(v(u.reportedViewName,"page",Nd,t),y(Nd,t)):(v(u.reportedViewName,"page",Md,t),y(Md,t)),_h(n),clearTimeout(u.timeoutHandle)}},g=c?function(){return setTimeout(m)}:m,v=function(t,r,o,i){var a,s={};o!==Md&&(s.failedComponents=h()),o!==Od&&o!==Ld||(s.missingComponents=p()),dh({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!==Md&&r.push({name:"failedComponents",value:h()}),e!==Od&&e!==Ld||r.push({name:"missingComponents",value:p()}),ph({loadTimeMsec:t},r)};return Wd((function(){u.timeoutHandle=setTimeout((function(){u.eventSent=!0,f(Od)}),3e4),g()})),Ud((function(){u.eventSent||d()||(u.eventSent=!0,clearTimeout(u.timeoutHandle),f(Ld))})),Bd().createElement(Gf.Provider,{value:{area:n,view:r,sendPageViewEvent:i?function(){fh(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:c}},l)},Qf={},Xf=(0,Fd.createContext)(null),Zf=function(){var e=(0,Fd.useContext)(Xf);if(null===e)throw new Error("ComponentQosContext: Context is uninitialized. Confirm that your component is contained within a ComponentQosProvider component.");return e},Jf=function(t){var n,r=t.children,o=Kf(),i=o.area,a=o.view,s=o.addRequiredComponent,c=o.reportComponentLoaded,l=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(Qf[a]){var s=performance.now(),l=s-Qf[a].startTime;clearTimeout(Qf[a].timeoutHandle),dh({area:i,name:"".concat(i,".").concat(t,":").concat(n),result:r,durationMs:l,uri:d,pageName:u,kind:"component",data:(0,e.__assign)((0,e.__assign)({},o),{isReact:!0})}),Qf[a].isInit&&c({name:t,status:r,startTime:Qf[a].startTime,endTime:s}),delete Qf[a]}},h=function(e,t){p(e,t,Od)},f=function(e,t){p(e,t,Ld)};return(0,Fd.useEffect)((function(){return function(){Object.keys(Qf).forEach((function(e){var t=e.split(":"),n=t[0],r=t[1];f(n,r)}))}}),[]),Bd().createElement(Xf.Provider,{value:{startOperation:function(e,t,n){var r="".concat(e,":").concat(t),o=performance.now();Qf[r]||(l&&n&&s(e),Qf[r]={startTime:o,timeoutHandle:setTimeout((function(){h(e,t)}),3e4),isInit:n})},reportSuccess:function(e,t,n){p(e,t,Md,n)},reportFailure:function(e,t,n,r){p(e,t,Nd,{error:n,customData:r})},reportCancel:f}},r)},$f=Bd().createContext(null),em=function(){var e=(0,Fd.useContext)($f);if(null===e)throw new Error("OperationStateContext: Context is uninitialized. Confirm that your component is contained within an OperationStateContext.Provider component.");return e},tm=Bd().createContext(null),nm=function(){var e=(0,Fd.useContext)(tm);if(null===e)throw new Error("OperationDispatchContext: Context is uninitialized. Confirm that your component is contained within an OperationDispatchContext.Provider component.");return e},rm=Bd().createContext(null),om=function(t){var n=t.children,r=(0,Fd.useState)((function(){return new Map}))[0],o=em(),i=Zf(),a=i.reportSuccess,s=i.reportFailure;(0,Fd.useEffect)((function(){r.forEach((function(t,n){var i=o[t.operationName];if(i){var c=(0,e.__assign)((0,e.__assign)({},i.customData),{reportedAfterUnmount:!0});switch(i.status){case"finished":a(t.componentName,t.operationName,c),r.delete(n);break;case"update-failed":case"failed":s(t.componentName,t.operationName,i.error||new Error("unspecified error"),c),r.delete(n)}}else r.delete(n)}))}),[o]);var c=(0,Fd.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 Bd().createElement(rm.Provider,{value:c,children:n})},im=function(t){var n,r=em();if(t.updatingView){var o=null===(n=r[t.operationData.operationName])||void 0===n?void 0:n.status;return Bd().createElement(Kd,{isUpdating:"updating"===o},Bd().createElement(am,(0,e.__assign)({},t)))}return Bd().createElement(am,(0,e.__assign)({},t))},am=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,c=void 0===s?null:s,l=e.updateFailedView,u=void 0===l?o:l,d=e.updatingView,p=void 0===d?n:d,h=em(),f=Zf(),m=f.startOperation,g=f.reportSuccess,v=f.reportFailure,y=h[t.operationName],b=null===y||void 0===y?void 0:y.status,_=(0,Fd.useRef)(b);(0,Fd.useEffect)((function(){_.current=b}),[b]);var C=(0,Fd.useContext)(rm);if((0,Fd.useEffect)((function(){return C.claim(t.componentName,t.operationName),function(){"first-load"!==_.current&&"updating"!==_.current||C.abandon(t.componentName,t.operationName)}}),[t.componentName,t.operationName]),!b)return"finished"===t.defaultState?n:c;switch(b){case"updating":return m(t.componentName,t.operationName,!1),p;case"first-load":return m(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 c}},sm=function(t){var n=t.children,r=t.shareParentOperations,o=(0,Fd.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 Bd().createElement(Bd().Fragment,null,r?Bd().createElement(Jf,null,n):Bd().createElement(tm.Provider,{value:a},Bd().createElement($f.Provider,{value:i},Bd().createElement(Jf,null,Bd().createElement(om,null,n)))))},cm=Bd().createContext({}),lm=function(e){var t=e.children,n=e.externalEntities;return Bd().createElement(cm.Provider,{value:null!==n&&void 0!==n?n:{}},t)},um=function(){return(0,Fd.useContext)(cm)},dm=Bd().createContext(null),pm=Bd().createContext(null),hm=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))},fm=function(e){var t=e.children,n=(0,Fd.useReducer)(hm,{}),r=n[0],o=n[1];return Bd().createElement(pm.Provider,{value:o},Bd().createElement(dm.Provider,{value:r},t))},mm=function(){var e=dm,t=(0,Fd.useContext)(e);if(!t)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return t},gm=function(){var e=um().operationEntities,t=pm;e&&(t=e.operationDispatchContext);var n=(0,Fd.useContext)(t);if(!n)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return n},vm={areaBiId:"areaUndefined"},ym=(0,Fd.createContext)({reportComponentValidationErrorEvent:function(e,t,n){},logComponentMountEvent:function(e,t,n){},twoUITelemetryIds:vm,twoUIFlights:[],getCv:function(){return""},reportClick:function(e){},checkUrlAndReportHttp:function(e){}}),bm=function(){return(0,Fd.useContext)(ym)},_m=function(){return(0,Fd.useContext)(ym).twoUIFlights},Cm=function(e){var t=e.replace(/[^a-z0-9\-]/gi,"").substring(0,50);return 0===t.length?vm.areaBiId:t},Em=function(e,t,n){},wm=function(t){var n=t.twoUITelemetryIds,r=t.twoUIFlights,o=t.logComponentMountEvent,i=t.reportHttpUrl,a=t.reportComponentValidationErrorEvent,s=t.reportClick,c=t.getCv,l=t.children,u=t.externalEntities,d=function(t){return(0,e.__assign)((0,e.__assign)({},t),{areaBiId:Cm(t.areaBiId)})}(n);Em=a||Em;return Bd().createElement(ym.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===Em||void 0===Em||Em(e,t,n)},getCv:function(){return(null===c||void 0===c?void 0:c())||""},checkUrlAndReportHttp:function(e){e&&i&&function(e){return!!e.startsWith("http://")}(e)&&i(e)}}},Bd().createElement(lm,{externalEntities:u},Bd().createElement(fm,null,l)))},xm=__webpack_require__(95803),km=__webpack_require__.n(xm),Sm=__webpack_require__(67153),Tm=__webpack_require__.n(Sm),Im=3e4;function Am(e,t,n,r){return void 0===n&&(n={}),Om(e,n,r),Fm("GET",e,t,n,km().get(e,n),r)}function Pm(e,t,n,r,o){return void 0===r&&(r={}),Om(e,r,o),Fm("POST",e,t,r,km().post(e,n,r),o)}function Dm(e,t,n,r,o){return void 0===r&&(r={}),Om(e,r,o),Fm("PUT",e,t,r,km().put(e,n,r),o)}function Rm(e,t,n,r){return void 0===n&&(n={}),Om(e,n,r),Fm("DELETE",e,t,n,km().delete(e,n),r)}function Mm(e,t,n){return void 0===n&&(n={}),Lm(e,"DirectClientCall",t,n)}function Nm(e,t,n){return void 0===n&&(n={}),Lm(new Promise((function(t,r){Tm()(e,{param:n.callbackName,timeout:n.timeout||Im},(function(e,n){e?r(e):t(n)}))})),e,t,n)}function Lm(e,t,n,r){var o={operationName:n.operation,requestUri:t,partnerName:n.partnerName,customData:n.customData},i=performance.now();return e.then((function(e){return r.errorField&&e[r.errorField]?Promise.reject(e[r.errorField]):(o.httpStatusCode=200,Promise.resolve(e))})).catch((function(e){return o.httpStatusCode=500,o.errorMessage=e.message?e.message.toString():e.toString(),Promise.reject(e)})).finally((function(){var e,t=performance.now();o.latency=t-i,o.timeout=null!==(e=r.timeout)&&void 0!==e?e:Im,hh(o)}))}function Om(e,t,n){var r;if(void 0===t.timeout&&(t.timeout=Im),t.headers||(t.headers={}),!1!==(null===n||void 0===n?void 0:n.addXRequestedWithHeader)&&(t.headers["X-Requested-With"]="XMLHttpRequest"),lh(),!1!==(null===n||void 0===n?void 0:n.addCVHeader)&&(t.headers["MS-CV"]=ch()),(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 Fm=function(e,t,n,r,o,i){var a,s={operationName:n.operation,requestUri:t,httpMethod:e,partnerName:n.partnerName,customData:n.customData,overrideCv:null===(a=r.headers)||void 0===a?void 0:a["MS-CV"]},c=performance.now();return o.then((function(e){return s.httpStatusCode=e.status,s.contentType=e.headers["content-type"],s.responseSize=e.headers["content-length"],e})).catch((function(e){var t,n,r,o=NaN;return e.code&&(o=parseInt(e.code,10)||NaN),s.serviceErrorCode=o,s.errorMessage=e.message,e.response&&e.response.status&&(s.httpStatusCode=e.response.status),e.response&&e.response.headers&&(s.contentType=e.response.headers["content-type"],s.responseSize=e.response.headers["content-length"]),(null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&(s.responseDataError=e.response.data.error),e.config&&(e.config.headers={},e.config.data={}),e.response&&(e.response.headers={}),(null===(r=e.response)||void 0===r?void 0:r.config)&&(e.response.config.headers={},e.response.config.data={}),Promise.reject(e)})).finally((function(){var e,t=performance.now();s.latency=t-c,s.timeout=null!==(e=r.timeout)&&void 0!==e?e:Im,hh(s,null===i||void 0===i?void 0:i.overrideRequestQosData)}))},Bm={top:-2,height:1,position:"absolute",overflow:"hidden"},Hm=function(t){var n=t.area,r=t.view,o=t.manualPageView,i=void 0!==o&&o,a=t.requiredComponents,s=t.withoutQosTracking,c=void 0!==s&&s,l=t.shareParentOperations,u=void 0!==l&&l,d=t.scrollToTopOnNav,p=void 0===d||d,h=t.routeHeader,f=t.children,m=(0,e.__rest)(t,["area","view","manualPageView","requiredComponents","withoutQosTracking","shareParentOperations","scrollToTopOnNav","routeHeader","children"]);return Wd((function(){i?v().setSpaPageId("".concat(n,".").concat(r)):fh(n,r)})),Bd().createElement(xf,(0,e.__assign)({},m,{key:"".concat(n,".").concat(r)}),h&&Bd().createElement("div",{style:Bm,"aria-live":"assertive"},h),p&&Bd().createElement(Um,null),c?Bd().createElement(Vm,null,f):Bd().createElement(zm,{area:n,view:r,manualPageView:i,requiredComponents:a,shareParentOperations:u},f))},zm=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,c=e.children;return Bd().createElement(Yf,{area:t,view:n,manualPageView:o,requiredComponents:s||[],autoTrackComponents:!s},Bd().createElement(sm,{shareParentOperations:a},c))},Vm=function(e){var t=e.children;return Bd().createElement(Bd().Fragment,null,t)},Um=function(){var e=document.getElementById(Yd.p);return(0,Fd.useLayoutEffect)((function(){e?e.scrollTop=0:window.scrollTo(0,0)}),[]),null};function Wm(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=qm(o)?o.substr(0,o.length-jm.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 jm="cf",qm=function(e){return e.substr(-jm.length)===jm};var Gm,Km={startOperation:function(e,t,n){},reportSuccess:function(e,t,n){},reportFailure:function(e,t,n,r){},reportCancel:function(e,t){}},Ym=(0,Fd.createContext)(Km),Qm=function(t){var n,r=mm();if(t.updatingView){var o=null===(n=r[t.operationData.operationName])||void 0===n?void 0:n.status;return Bd().createElement(cp,{isUpdating:"updating"===o},Bd().createElement(Xm,(0,e.__assign)({},t)))}return Bd().createElement(Xm,(0,e.__assign)({},t))},Xm=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,c=void 0===s?null:s,l=e.updateFailedView,u=void 0===l?o:l,d=e.updatingView,p=void 0===d?n:d,h=mm()[t.operationName],f=null===h||void 0===h?void 0:h.status;if(!f)return"finished"===t.defaultState?n:c;switch(f){case"updating":return p;case"first-load":return a;case"finished":return n;case"update-failed":return u;case"failed":return o;default:return c}},Zm=function(t){var n,r,o=null!==(r=null===(n=um().operationEntities)||void 0===n?void 0:n.ExternalProgressView)&&void 0!==r?r:Qm;return Bd().createElement(o,(0,e.__assign)({},t))},Jm="ViewportProvider",$m=function(t){var n,r=t.areaBiId,o=t.children,i=Wm("GTwouiLogging")?bh:void 0,a=Wm(Jm),s=Wm("XGPUPhaseTwo",!1),c=Wm("XGPUPhaseTwoComingSoon",!1);n=s||c;var l=Wm("PCGamePassPhaseTwo",!1),u=Wm("PCGamePassPhaseTwoComingSoon",!1),d={areaBiId:r||"areaUndefined"},p=n||(l||u)?["lowerMediaImageHeight"]:[],h=a?[Jm]:[],f=(0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],p,!0),h,!0),["exampleComponentFlight"],!1);return Bd().createElement(wm,{twoUITelemetryIds:d,logComponentMountEvent:i,getCv:ch,reportClick:jf,reportHttpUrl:vh,reportComponentValidationErrorEvent:yh,externalEntities:{operationEntities:{operationDispatchContext:tm,ExternalProgressView:im},componentQosContext:Xf},twoUIFlights:f},o)},eg=function(e,t){if(!e)throw Error("inMemoryCache: null promiseCache sent to removePromiseCacheEntry");e[t]=null},tg=function(t,n,r,o){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var i,a,s,c;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 c=e.sent(),t[n]=null,c;case 7:return[2,s]}}))}))},ng={},rg=function(t){var n=t.errorMessage,r=t.errorComponent,o=(0,Fd.useState)({title:"",summary:""}),i=o[0],a=o[1];Wd((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,tg(ng,"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,Am("/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{rh({error:"ErrorComponentWrapper_unhandledException",data:{errorMessage:n||"unhandled exception"}})}catch(aW){}return r({content:i,cv:ch()})},og=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!==yp("awa-devserver")}})},ig=(0,Fd.createContext)(null),ag=function(t){var n=t.children,r=t.errorComponent,o=(0,Fd.useState)(!1),i=o[0],a=o[1],s=(0,Fd.useState)(""),c=s[0],l=s[1];return i?Bd().createElement(rg,{errorMessage:c,errorComponent:r}):Bd().createElement(ig.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),l(n.message),og(n),[3,3];case 3:return[2,Promise.resolve(null)]}}))}))}}},n)},sg=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){og(e,t)},n.prototype.componentWillUnmount=function(){window.removeEventListener("popstate",this.resetErrorState)},n.prototype.render=function(){return this.state.hasError?Bd().createElement(rg,{errorMessage:this.state.errorMessage,errorComponent:this.props.errorComponent}):Bd().createElement(ag,{errorComponent:this.props.errorComponent},this.props.children)},n}(Bd().Component);!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)"}(Gm||(Gm={}));var cg,lg=0,ug=1,dg=2,pg="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),hg={};try{hg=window||{}}catch(z){}var fg,mg=function(){function t(t,n){var r,o,i,a,s,c;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?lg:ug,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!==(c=null===n||void 0===n?void 0:n.rules)&&void 0!==c?c:this._rules}return t.getInstance=function(){if(!(cg=hg.__stylesheet__)||cg._lastStyleElement&&cg._lastStyleElement.ownerDocument!==document){var e=(null===hg||void 0===hg?void 0:hg.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);cg=n,hg.__stylesheet__=n}return cg},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!==lg?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case ug:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(i){}break;case dg: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(),pg||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 gg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=mg.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 c=o.argsFromClassName(s);c?i(c):-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 vg(e){fg!==e&&(fg=e)}function yg(){return void 0===fg&&(fg="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),fg}function bg(){return{rtl:yg()}}fg=yg();var _g,Cg={};function Eg(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=Cg[n]=Cg[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var wg={"user-select":1};function xg(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(wg[r]){var o=e[t+1];wg[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 kg,Sg=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Tg(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=Sg.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var Ig="left",Ag="right",Pg=((kg={}).left=Ag,kg.right=Ig,kg),Dg={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Rg(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(Ig)>=0)t[n]=r.replace(Ig,Ag);else if(r.indexOf(Ag)>=0)t[n]=r.replace(Ag,Ig);else if(String(o).indexOf(Ig)>=0)t[n+1]=o.replace(Ig,Ag);else if(String(o).indexOf(Ag)>=0)t[n+1]=o.replace(Ag,Ig);else if(Pg[r])t[n]=Pg[r];else if(Dg[o])t[n+1]=Dg[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 Mg(e){var t=e&&e["&"];return t?t.displayName:void 0}var Ng=/\:global\((.+?)\)/g;function Lg(e,t){return e.indexOf(":global(")>=0?e.replace(Ng,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Og(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?Fg([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!Ng.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 Fg([r],t,Lg(n,e))})):Fg([r],t,Lg(n,e))}function Fg(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=mg.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 c=r.argsFromClassName(s);c&&Fg(c,t,n)}else if(Array.isArray(s))Fg(s,t,n);else for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if("selectors"===l){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&Og(n,t,p,d[p])}else"object"===typeof u?null!==u&&Og(n,t,l,u):void 0!==u&&("margin"===l||"padding"===l?Bg(o,l,u):o[l]=u)}}return t}function Bg(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 Hg(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 c in s)s.hasOwnProperty(c)&&void 0!==s[c]&&(r=!0,n.push(c,s[c]))}return r?n.join(""):void 0}function zg(e,t){return t<=0?"":1===t?e:e+zg(e,t-1)}function Vg(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)Eg(n,o),Tg(n,o),Rg(e,n,o),xg(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function Ug(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Fg(t),o=Hg(e,r);if(o){var i=mg.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(Mg(r));for(var s=[],c=0,l=r.__order;c<l.length;c++){var u=l[c];s.push(u,Vg(e,r[u]))}a.rulesToInsert=s}return a}}function Wg(e,t){void 0===t&&(t=1);var n=mg.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 c=a[s+1];if(c){var l=a[s];l=l.replace(/&/g,zg(".".concat(e.className),t));var u="".concat(l,"{").concat(c,"}").concat(0===l.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function jg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qg(e,bg())}function qg(t,n){var r=gg(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=Ug.apply(void 0,(0,e.__spreadArray)([t],n,!1));return o?(Wg(o,t.specificityMultiplier),o.className):""}(n||{},i)),o.join(" ")}var Gg=!1,Kg=0,Yg={empty:!0},Qg={},Xg="undefined"===typeof WeakMap?null:WeakMap;function Zg(){Kg++}function Jg(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Xg)return e;if(!Gg){var r=mg.getInstance();r&&r.onReset&&mg.getInstance().onReset(Zg),Gg=!0}var o,i=0,a=Kg;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var c=o;(void 0===o||a!==Kg||t>0&&i>t)&&(o=tv(),i=0,a=Kg),c=o;for(var l=0;l<r.length;l++){var u=ev(r[l]);c.map.has(u)||c.map.set(u,tv()),c=c.map.get(u)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),i++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function $g(e){if(!Xg)return e;var t=new Xg;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 ev(e){return e?"object"===typeof e||"function"===typeof e?e:(Qg[e]||(Qg[e]={val:e}),Qg[e]):Yg}function tv(){return{map:Xg?new Xg:null}}var nv=9,rv=13,ov=18,iv=27,av=32,sv=33,cv=34,lv=35,uv=36,dv=37,pv=38,hv=39,fv=40,mv=65;function gv(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}function vv(e){if(gv()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var yv=void 0;try{yv=window}catch(bke){}function bv(e){if(gv()&&"undefined"!==typeof yv){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:yv}}function _v(e){var t=null;try{var n=bv();t=n?n.sessionStorage.getItem(e):null}catch(bke){}return t}var Cv,Ev="isRTL";function wv(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Cv){var t=_v(Ev);null!==t&&function(e,t){void 0===t&&(t=!1);var n=vv();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=bv())||void 0===n||n.sessionStorage.setItem(e,t)}catch(bke){}}(Ev,e?"1":"0");vg(Cv=e)}(Cv="1"===t);var n=vv();void 0===Cv&&n&&vg(Cv="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Cv}function xv(e,t){return void 0===t&&(t={}),wv(t)&&(e===dv?e=hv:e===hv&&(e=dv)),e}var kv=e.__assign;function Sv(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t;return i.isSlot?0===(r=Fd.Children.toArray(r)).length?i(n):i((0,e.__assign)((0,e.__assign)({},n),{children:r})):Fd.createElement.apply(Fd,(0,e.__spreadArray)([t,n],r,!1))}function Tv(t,n){void 0===n&&(n={});var r=n.defaultProp,o=void 0===r?"children":r;return function(n,r,i,a,s){if(Fd.isValidElement(r))return r;var c=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),l=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 c=s[a];i.push(c&&c.className),kv(o,c)}return o.className=qg([e,i],{rtl:wv(t)}),o}(a,s,n,c);if(i){if(i.component){var u=i.component;return Fd.createElement(u,(0,e.__assign)({},l))}if(i.render)return i.render(l,t)}return Fd.createElement(t,(0,e.__assign)({},l))}}var Iv=Jg((function(e){return Tv(e)}));function Av(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 Pv(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 Pv(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):Iv(e)(t,n,r,o,i)}function Dv(e){var t=mg.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Vg(bg(),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 Rv="cubic-bezier(.1,.9,.2,1)",Mv="cubic-bezier(.1,.25,.75,.9)",Nv="0.167s",Lv="0.267s",Ov="0.367s",Fv="0.467s",Bv=Dv({from:{opacity:0},to:{opacity:1}}),Hv=Dv({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),zv=xy(-10),Vv=xy(-20),Uv=xy(-40),Wv=xy(-400),jv=xy(10),qv=xy(20),Gv=xy(40),Kv=xy(400),Yv=ky(10),Qv=ky(20),Xv=ky(-10),Zv=ky(-20),Jv=Sy(10),$v=Sy(20),ey=Sy(40),ty=Sy(400),ny=Sy(-10),ry=Sy(-20),oy=Sy(-40),iy=Sy(-400),ay=Ty(-10),sy=Ty(-20),cy=Ty(10),ly=Ty(20),uy=Dv({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),dy=Dv({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),py=Dv({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),hy=Dv({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),fy=Dv({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),my=Dv({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),gy=Rv,vy=Mv,yy=Nv,by=Lv,_y=Ov,Cy=Fv,Ey={slideRightIn10:wy("".concat(Bv,",").concat(zv),Ov,Rv),slideRightIn20:wy("".concat(Bv,",").concat(Vv),Ov,Rv),slideRightIn40:wy("".concat(Bv,",").concat(Uv),Ov,Rv),slideRightIn400:wy("".concat(Bv,",").concat(Wv),Ov,Rv),slideLeftIn10:wy("".concat(Bv,",").concat(jv),Ov,Rv),slideLeftIn20:wy("".concat(Bv,",").concat(qv),Ov,Rv),slideLeftIn40:wy("".concat(Bv,",").concat(Gv),Ov,Rv),slideLeftIn400:wy("".concat(Bv,",").concat(Kv),Ov,Rv),slideUpIn10:wy("".concat(Bv,",").concat(Yv),Ov,Rv),slideUpIn20:wy("".concat(Bv,",").concat(Qv),Ov,Rv),slideDownIn10:wy("".concat(Bv,",").concat(Xv),Ov,Rv),slideDownIn20:wy("".concat(Bv,",").concat(Zv),Ov,Rv),slideRightOut10:wy("".concat(Hv,",").concat(Jv),Ov,Rv),slideRightOut20:wy("".concat(Hv,",").concat($v),Ov,Rv),slideRightOut40:wy("".concat(Hv,",").concat(ey),Ov,Rv),slideRightOut400:wy("".concat(Hv,",").concat(ty),Ov,Rv),slideLeftOut10:wy("".concat(Hv,",").concat(ny),Ov,Rv),slideLeftOut20:wy("".concat(Hv,",").concat(ry),Ov,Rv),slideLeftOut40:wy("".concat(Hv,",").concat(oy),Ov,Rv),slideLeftOut400:wy("".concat(Hv,",").concat(iy),Ov,Rv),slideUpOut10:wy("".concat(Hv,",").concat(ay),Ov,Rv),slideUpOut20:wy("".concat(Hv,",").concat(sy),Ov,Rv),slideDownOut10:wy("".concat(Hv,",").concat(cy),Ov,Rv),slideDownOut20:wy("".concat(Hv,",").concat(ly),Ov,Rv),scaleUpIn100:wy("".concat(Bv,",").concat(uy),Ov,Rv),scaleDownIn100:wy("".concat(Bv,",").concat(py),Ov,Rv),scaleUpOut103:wy("".concat(Hv,",").concat(hy),Nv,Mv),scaleDownOut98:wy("".concat(Hv,",").concat(dy),Nv,Mv),fadeIn100:wy(Bv,Nv,Mv),fadeIn200:wy(Bv,Lv,Mv),fadeIn400:wy(Bv,Ov,Mv),fadeIn500:wy(Bv,Fv,Mv),fadeOut100:wy(Hv,Nv,Mv),fadeOut200:wy(Hv,Lv,Mv),fadeOut400:wy(Hv,Ov,Mv),fadeOut500:wy(Hv,Fv,Mv),rotate90deg:wy(fy,"0.1s",Mv),rotateN90deg:wy(my,"0.1s",Mv)};function wy(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function xy(e){return Dv({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ky(e){return Dv({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Sy(e){return Dv({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Ty(e){return Dv({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var Iy,Ay,Py,Dy,Ry,My=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=jg(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}(Ey);!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)"}(Iy||(Iy={})),function(e){e.Arabic="'".concat(Iy.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(Iy.Cyrillic,"'"),e.EastEuropean="'".concat(Iy.EastEuropean,"'"),e.Greek="'".concat(Iy.Greek,"'"),e.Hebrew="'".concat(Iy.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(Iy.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(Iy.Vietnamese,"'"),e.WestEuropean="'".concat(Iy.WestEuropean,"'"),e.Armenian="'".concat(Iy.Armenian,"'"),e.Georgian="'".concat(Iy.Georgian,"'")}(Ay||(Ay={})),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"}(Py||(Py={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Dy||(Dy={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Ry||(Ry={}));var Ny="'Segoe UI', '".concat(Iy.WestEuropean,"'"),Ly={ar:Ay.Arabic,bg:Ay.Cyrillic,cs:Ay.EastEuropean,el:Ay.Greek,et:Ay.EastEuropean,he:Ay.Hebrew,hi:Ay.Hindi,hr:Ay.EastEuropean,hu:Ay.EastEuropean,ja:Ay.Japanese,kk:Ay.EastEuropean,ko:Ay.Korean,lt:Ay.EastEuropean,lv:Ay.EastEuropean,pl:Ay.EastEuropean,ru:Ay.Cyrillic,sk:Ay.EastEuropean,"sr-latn":Ay.EastEuropean,th:Ay.Thai,tr:Ay.EastEuropean,uk:Ay.Cyrillic,vi:Ay.Vietnamese,"zh-hans":Ay.ChineseSimplified,"zh-hant":Ay.ChineseTraditional,hy:Ay.Armenian,ka:Ay.Georgian};function Oy(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function Fy(e){var t=function(e){for(var t in Ly)if(Ly.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Ly[t];return Ny}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:Oy(Py.mini,Dy.regular,n),xSmall:Oy(Py.xSmall,Dy.regular,n),small:Oy(Py.small,Dy.regular,n),smallPlus:Oy(Py.smallPlus,Dy.regular,n),medium:Oy(Py.medium,Dy.regular,n),mediumPlus:Oy(Py.mediumPlus,Dy.regular,n),large:Oy(Py.large,Dy.regular,n),xLarge:Oy(Py.xLarge,Dy.semibold,n),xLargePlus:Oy(Py.xLargePlus,Dy.semibold,n),xxLarge:Oy(Py.xxLarge,Dy.semibold,n),xxLargePlus:Oy(Py.xxLargePlus,Dy.semibold,n),superLarge:Oy(Py.superLarge,Dy.semibold,n),mega:Oy(Py.mega,Dy.semibold,n)}}var By="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Hy="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",zy=480,Vy=1366;function Uy(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 Wy,jy="ms-Fabric--isFocusVisible",qy="ms-Fabric--isFocusHidden";function Gy(e,t){e&&(e.classList.add(t?jy:qy),e.classList.remove(t?qy:jy))}function Ky(e,t,n){var r;n?n.forEach((function(t){return Gy(t.current,e)})):Gy(null===(r=bv(t))||void 0===r?void 0:r.document.body,e)}function Yy(e,t,n,r,o,i,a,s){return Qy(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function Qy(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,c=void 0===s?1:s,l=t.position,u=void 0===l?"relative":l,d=t.highContrastStyle,p=t.borderColor,h=void 0===p?e.palette.white:p,f=t.outlineColor,m=void 0===f?e.palette.neutralSecondary:f,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(jy," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(c,"px solid ").concat(h),outline:"".concat(c,"px solid ").concat(m),zIndex:Wy.FocusStyle,borderRadius:o,selectors:(r={},r[By]=d,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Wy||(Wy={}));var Xy=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[By]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},Zy={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Jy=Jg((function(e,t){var n=mg.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function $y(e,t,n){return Jy(e,void 0!==n?n:t.disableGlobalClassNames)}var eb=0,tb=function(){function e(){}return e.getValue=function(e,t){var n=nb();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=nb(),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=rb();t||(t=e.__id__=String(eb++)),n[t]=e},e.removeChangeListener=function(e){delete rb()[e.__id__]},e}();function nb(){var e,t=bv()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function rb(){return nb().__callbacks__}var ob={settings:{},scopedSettings:{},inCustomizerContext:!1},ib=tb.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),ab=[],sb=function(){function t(){}return t.reset=function(){ib.settings={},ib.scopedSettings={}},t.applySettings=function(n){ib.settings=(0,e.__assign)((0,e.__assign)({},ib.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){ib.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},ib.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=ob);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&ib.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var c=s[a];r[c]=o[c]||n.settings[c]||i[c]||ib.settings[c]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(z){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){ab.push(e)},t.unobserve=function(e){ab=ab.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||ab.forEach((function(e){return e()}))},t}(),cb=function(){return cb=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},cb.apply(this,arguments)},lb="undefined"===typeof window?__webpack_require__.g:window,ub=lb&&lb.CSPSettings&&lb.CSPSettings.nonce,db=function(){var e=lb.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=cb(cb({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=cb(cb({},e),{registeredThemableStyles:[]}));return lb.__themeState__=e,e}();function pb(e,t){db.loadStyles?db.loadStyles(mb(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=mb(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),ub&&n.setAttribute("nonce",ub);n.appendChild(document.createTextNode(o)),db.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?db.registeredThemableStyles.push(s):db.registeredStyles.push(s)}(e)}function hb(e){db.theme=e,function(){if(db.theme){for(var e=[],t=0,n=db.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||(fb(db.registeredStyles),db.registeredStyles=[]);3!==e&&1!==e||(fb(db.registeredThemableStyles),db.registeredThemableStyles=[])}(1),pb([].concat.apply([],e)))}}()}function fb(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function mb(e){var t=db.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 gb,vb={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)"}(gb||(gb={}));var yb,bb={elevation4:gb.depth4,elevation8:gb.depth8,elevation16:gb.depth16,elevation64:gb.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function _b(e){var t=mg.getInstance(),n=Vg(bg(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}var Cb="language";function Eb(e){if(void 0===e&&(e="sessionStorage"),void 0===yb){var t=vv(),n="localStorage"===e?function(e){var t=null;try{var n=bv();t=n?n.localStorage.getItem(e):null}catch(bke){}return t}(Cb):"sessionStorage"===e?_v(Cb):void 0;n&&(yb=n),void 0===yb&&t&&(yb=t.documentElement.getAttribute("lang")),void 0===yb&&(yb="en")}return yb}var wb=Fy(Eb());function xb(e,t,n,r){_b({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 kb(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);xb(t,i+"-light",Dy.light,o&&o+" Light"),xb(t,i+"-semilight",Dy.semilight,o&&o+" SemiLight"),xb(t,i+"-regular",Dy.regular,o),xb(t,i+"-semibold",Dy.semibold,o&&o+" SemiBold"),xb(t,i+"-bold",Dy.bold,o&&o+" Bold")}function Sb(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];Tb(e||{},i)}return e}function Tb(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:Tb(e[r]||{},o,n)}}return n.pop(),e}function Ib(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}(Ab(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 Ab(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},c=s.white,l=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,f=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,_=s.neutralPrimary,C=s.neutralSecondary,E=s.neutralSecondaryAlt,w=s.neutralTertiary,x=s.neutralTertiaryAlt,k=s.neutralLighterAlt,S=s.accent;return c&&(a.bodyBackground=c,a.bodyFrameBackground=c,a.accentButtonText=c,a.buttonBackground=c,a.primaryButtonText=c,a.primaryButtonTextHovered=c,a.primaryButtonTextPressed=c,a.inputBackground=c,a.inputForegroundChecked=c,a.listBackground=c,a.menuBackground=c,a.cardStandoutBackground=c),l&&(a.bodyTextChecked=l,a.buttonTextCheckedHovered=l),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),f&&(a.inputPlaceholderBackgroundChecked=f),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),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),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),_&&(a.bodyText=_,a.actionLink=_,a.buttonText=_,a.inputBorderHovered=_,a.inputText=_,a.listText=_,a.menuItemText=_),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),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),E&&(a.buttonBorder=E),x&&(a.disabledBodySubtext=x,a.disabledBorder=x,a.buttonBackgroundChecked=x,a.menuDivider=x),S&&(a.accentButtonBackground=S),(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");kb(t,Iy.Thai,"leelawadeeui-thai","leelawadeeui"),kb(t,Iy.Arabic,"segoeui-arabic"),kb(t,Iy.Cyrillic,"segoeui-cyrillic"),kb(t,Iy.EastEuropean,"segoeui-easteuropean"),kb(t,Iy.Greek,"segoeui-greek"),kb(t,Iy.Hebrew,"segoeui-hebrew"),kb(t,Iy.Vietnamese,"segoeui-vietnamese"),kb(t,Iy.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),kb(t,Ay.Selawik,"selawik","selawik"),kb(t,Iy.Armenian,"segoeui-armenian"),kb(t,Iy.Georgian,"segoeui-georgian"),xb("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Dy.light),xb("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Dy.semibold)}}(function(){var e,t,n=null===(e=bv())||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 Pb={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Db(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=Sb({},e,t,{semanticColors:Ab(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 c=s[a];i.fonts[c]=Sb(i.fonts[c],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[c])}return i}({palette:vb,effects:bb,fonts:wb,spacing:Pb,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ib(vb,bb,void 0,n,t),rtl:void 0},e)}var Rb=Db({}),Mb=[],Nb="theme";function Lb(){var t,n,r,o=bv();(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);Rb=Db(t,n),hb((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},Rb.palette),Rb.semanticColors),Rb.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 c=s[a],l=o+c.charAt(0).toUpperCase()+c.slice(1),u=i[c];"fontSize"===c&&"number"===typeof u&&(u+="px"),t[l]=u}return t}(Rb))),sb.applySettings(((r={}).theme=Rb,r)),Mb.forEach((function(e){try{e(Rb)}catch(bke){}}))}(o.FabricConfig.legacyTheme):sb.getSettings([Nb]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(Rb=Db(o.FabricConfig.theme)),sb.applySettings(((t={}).theme=Rb,t)))}Lb();var Ob={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Fb={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Bb(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}function Hb(e){console&&console.warn&&console.warn(e)}var zb=tb.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),Vb=mg.getInstance();Vb&&Vb.onReset&&Vb.onReset((function(){for(var e in zb)zb.hasOwnProperty(e)&&zb[e].subset&&(zb[e].subset.className=void 0)}));var Ub=function(e){return e.toLowerCase()};function Wb(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)({},zb.__options),n):zb.__options,o)if(o.hasOwnProperty(i)){var a=o[i],s=Ub(i);zb[s]?Kb(i):zb[s]={code:a,subset:r}}}function jb(e,t){zb.__remapped[Ub(e)]=Ub(t)}var qb=[],Gb=void 0;function Kb(e){var t=zb.__options;t.disableWarnings||(qb.push(e),void 0===Gb&&(Gb=setTimeout((function(){Hb("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"+qb.slice(0,10).join(", ")+(qb.length>10?" (+ ".concat(qb.length-10," more)"):"")),Gb=void 0,qb=[]}),2e3)))}function Yb(){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 c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var l=s.subComponentStyles;for(var u in l)l.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(l[u]):o[u]=[l[u]]);continue}var d=r[c],p=s[c];r[c]=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,f=function(e){if(o.hasOwnProperty(e)){var t=o[e];h[e]=function(e){return Yb.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var u in o)f(u)}return r}function Qb(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?Yb.apply(void 0,r):{}}function Xb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zb(e,bg())}function Zb(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=Yb.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=gg(r[i]),s=a.classes,c=a.objects;if(null===c||void 0===c?void 0:c.length)(d=Ug(t||{},{displayName:i},c))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var l=0,u=o;l<u.length;l++){var d;(d=u[l])&&Wg(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}var Jb={},$b=void 0;try{$b=window}catch(bke){}function e_(e,t){if("undefined"!==typeof $b){var n=$b.__packages__=$b.__packages__||{};if(!n[e]||!Jb[e])Jb[e]=t,(n[e]=n[e]||[]).push(t)}}e_("@fluentui/set-version","6.0.0"),e_("@fluentui/style-utilities","8.9.18"),Lb();var t_=Fd.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function n_(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 sb.getSettings(n||r,e,t.customizations)}(n.displayName,Fd.useContext(t_),n.fields),i=n.state;i&&(r=(0,e.__assign)((0,e.__assign)({},r),i(r)));var a=r.theme||o.theme,s=r_(r,a,n.tokens,o.tokens,r.tokens),c=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return Yb.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),l=(0,e.__assign)((0,e.__assign)({},r),{styles:c,tokens:s,_defaultStyles:c,theme:a});return t(l)};return i.displayName=n.displayName||t.name,o&&(i.create=Tv(i,{defaultProp:o})),kv(i,n.statics),i}function r_(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 c=s[a];c&&(c="function"===typeof c?c(t,n):c,Array.isArray(c)&&(c=r_.apply(void 0,(0,e.__spreadArray)([t,n],c,!1))),kv(i,c))}return i}var o_=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,c=a;s<c.length;s++){var l=c[s];n[l]=1}return n},i_=o_(["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"]),a_=o_(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),s_=o_(a_,i_),c_=o_(s_,["form"]),l_=o_(s_,["height","loop","muted","preload","src","width"]),u_=o_(l_,["poster"]),d_=o_(s_,["start"]),p_=o_(s_,["value"]),h_=o_(s_,["download","href","hrefLang","media","rel","target","type"]),f_=o_(s_,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),m_=o_(f_,["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"]),g_=o_(f_,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),v_=o_(f_,["form","multiple","required"]),y_=o_(s_,["selected","value"]),b_=o_(s_,["cellPadding","cellSpacing"]),__=s_,C_=o_(s_,["rowSpan","scope"]),E_=o_(s_,["colSpan","headers","rowSpan","scope"]),w_=o_(s_,["span"]),x_=o_(s_,["span"]),k_=o_(s_,["acceptCharset","action","encType","encType","method","noValidate","target"]),S_=o_(s_,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),T_=o_(s_,["alt","crossOrigin","height","src","srcSet","useMap","width"]),I_=s_;function A_(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 P_(){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 D_={root:"ms-StackItem"},R_={start:"flex-start",end:"flex-end"},M_=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},N_=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"}},L_=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?M_(e,t):n.reduce((function(e,n){return M_(e,t)+" "+M_(n,t)}))},O_={start:"flex-start",end:"flex-end"},F_={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},B_=n_((function(t){var n=t.children,r=A_(t,s_);return null==n?null:Sv(Av(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,c=e.order,l=e.className,u=e.basis,d=void 0===u?"auto":u,p=$y(D_,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:R_[a]||a},c&&{order:c},l]}}});function H_(t,n){var r=n.disableShrink,o=n.enableScopedSelectors,i=n.doNotRenderFalsyValues,a=Fd.Children.toArray(t);return a=Fd.Children.map(a,(function(t){if(!t)return i?null:t;if(!Fd.isValidElement(t))return t;if(t.type===Fd.Fragment)return t.props.children?H_(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===B_.displayName&&(s={shrink:!r});var c=a.props.className;return Fd.cloneElement(a,(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},s),a.props),c&&{className:c}),o&&{className:P_(F_.child,c)}))}))}var z_=n_((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,c=t.enableScopedSelectors,l=void 0!==c&&c,u=t.wrap,d=(0,e.__rest)(t,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),p=H_(t.children,{disableShrink:i,enableScopedSelectors:l,doNotRenderFalsyValues:s}),h=A_(d,s_),f=Av(t,{root:r,inner:"div"});return Sv(f.root,(0,e.__assign)({},h),u?Sv(f.inner,null,p):p)}),{displayName:"Stack",styles:function(t,n,r){var o,i,a,s,c,l,u,d,p,h,f,m,g,v=t.className,y=t.disableShrink,b=t.enableScopedSelectors,_=t.grow,C=t.horizontal,E=t.horizontalAlign,w=t.reversed,x=t.verticalAlign,k=t.verticalFill,S=t.wrap,T=$y(F_,n),I=r&&r.childrenGap?r.childrenGap:t.gap,A=r&&r.maxHeight?r.maxHeight:t.maxHeight,P=r&&r.maxWidth?r.maxWidth:t.maxWidth,D=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:N_(M_(n[0],t)),columnGap:N_(M_(n[1],t))};var r=N_(M_(e,t));return{rowGap:r,columnGap:r}}(I,n),M=R.rowGap,N=R.columnGap,L="".concat(-.5*N.value).concat(N.unit),O="".concat(-.5*M.value).concat(M.unit),F={textOverflow:"ellipsis"},B="> "+(b?"."+F_.child:"*"),H=((o={})["".concat(B,":not(.").concat(D_.root,")")]={flexShrink:0},o);return S?{root:[T.root,{flexWrap:"wrap",maxWidth:P,maxHeight:A,width:"auto",overflow:"visible",height:"100%"},E&&(i={},i[C?"justifyContent":"alignItems"]=O_[E]||E,i),x&&(a={},a[C?"alignItems":"justifyContent"]=O_[x]||x,a),v,{display:"flex"},C&&{height:k?"100%":"auto"}],inner:[T.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:L,marginRight:L,marginTop:O,marginBottom:O,overflow:"visible",boxSizing:"border-box",padding:L_(D,n),width:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")"),maxWidth:"100vw"},s[B]=(0,e.__assign)({margin:"".concat(.5*M.value).concat(M.unit," ").concat(.5*N.value).concat(N.unit)},F),s),y&&H,E&&(c={},c[C?"justifyContent":"alignItems"]=O_[E]||E,c),x&&(l={},l[C?"alignItems":"justifyContent"]=O_[x]||x,l),C&&(u={flexDirection:w?"row-reverse":"row",height:0===M.value?"100%":"calc(100% + ".concat(M.value).concat(M.unit,")")},u[B]={maxWidth:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},u),!C&&(d={flexDirection:w?"column-reverse":"column",height:"calc(100% + ".concat(M.value).concat(M.unit,")")},d[B]={maxHeight:0===M.value?"100%":"calc(100% - ".concat(M.value).concat(M.unit,")")},d)]}:{root:[T.root,(p={display:"flex",flexDirection:C?w?"row-reverse":"row":w?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:k?"100%":"auto",maxWidth:P,maxHeight:A,padding:L_(D,n),boxSizing:"border-box"},p[B]=F,p),y&&H,_&&{flexGrow:!0===_?1:_},E&&(h={},h[C?"justifyContent":"alignItems"]=O_[E]||E,h),x&&(f={},f[C?"alignItems":"justifyContent"]=O_[x]||x,f),C&&N.value>0&&(m={},m["".concat(B,w?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(N.value).concat(N.unit)},m),!C&&M.value>0&&(g={},g["".concat(B,w?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(M.value).concat(M.unit)},g),v]}},statics:{Item:B_}}),V_=function(e,t){!function(e,t,n){var r=(0,Fd.useContext)(ym);op((function(){r.logComponentMountEvent(e,t,n)}))}("0.1.23346002",e,t)},U_=Fd.createContext({window:"object"===typeof window?window:void 0}),W_=function(){return Fd.useContext(U_).window},j_=function(){var e;return null===(e=Fd.useContext(U_).window)||void 0===e?void 0:e.document};function q_(e,t){var n=function(){var e=Fd.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=Fd.useContext(t_).customizations,o=r.inCustomizerContext;return Fd.useEffect((function(){return o||sb.observe(n),function(){o||sb.unobserve(n)}}),[o]),sb.getSettings(e,t,r)}var G_,K_,Y_,Q_,X_,Z_={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"},J_={elevation4:Gm.depth4,elevation8:Gm.depth8,elevation16:Gm.depth16,elevation64:Gm.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)"}(G_||(G_={})),function(e){e.Arabic="'".concat(G_.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(G_.Cyrillic,"'"),e.EastEuropean="'".concat(G_.EastEuropean,"'"),e.Greek="'".concat(G_.Greek,"'"),e.Hebrew="'".concat(G_.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(G_.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(G_.Vietnamese,"'"),e.WestEuropean="'".concat(G_.WestEuropean,"'"),e.Armenian="'".concat(G_.Armenian,"'"),e.Georgian="'".concat(G_.Georgian,"'")}(K_||(K_={})),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"}(Y_||(Y_={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Q_||(Q_={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(X_||(X_={}));var $_="'Segoe UI', '".concat(G_.WestEuropean,"'"),eC={ar:K_.Arabic,bg:K_.Cyrillic,cs:K_.EastEuropean,el:K_.Greek,et:K_.EastEuropean,he:K_.Hebrew,hi:K_.Hindi,hr:K_.EastEuropean,hu:K_.EastEuropean,ja:K_.Japanese,kk:K_.EastEuropean,ko:K_.Korean,lt:K_.EastEuropean,lv:K_.EastEuropean,pl:K_.EastEuropean,ru:K_.Cyrillic,sk:K_.EastEuropean,"sr-latn":K_.EastEuropean,th:K_.Thai,tr:K_.EastEuropean,uk:K_.Cyrillic,vi:K_.Vietnamese,"zh-hans":K_.ChineseSimplified,"zh-hant":K_.ChineseTraditional,hy:K_.Armenian,ka:K_.Georgian};function tC(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var nC=function(e){var t=function(e){for(var t in eC)if(eC.hasOwnProperty(t)&&e&&0===t.indexOf(e))return eC[t];return $_}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:tC(Y_.mini,Q_.regular,n),xSmall:tC(Y_.xSmall,Q_.regular,n),small:tC(Y_.small,Q_.regular,n),smallPlus:tC(Y_.smallPlus,Q_.regular,n),medium:tC(Y_.medium,Q_.regular,n),mediumPlus:tC(Y_.mediumPlus,Q_.regular,n),large:tC(Y_.large,Q_.regular,n),xLarge:tC(Y_.xLarge,Q_.semibold,n),xLargePlus:tC(Y_.xLargePlus,Q_.semibold,n),xxLarge:tC(Y_.xxLarge,Q_.semibold,n),xxLargePlus:tC(Y_.xxLargePlus,Q_.semibold,n),superLarge:tC(Y_.superLarge,Q_.semibold,n),mega:tC(Y_.mega,Q_.semibold,n)}}(Eb());function rC(e,t,n,r){_b({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 oC(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);rC(t,i+"-light",Q_.light,o&&o+" Light"),rC(t,i+"-semilight",Q_.semilight,o&&o+" SemiLight"),rC(t,i+"-regular",Q_.regular,o),rC(t,i+"-semibold",Q_.semibold,o&&o+" SemiBold"),rC(t,i+"-bold",Q_.bold,o&&o+" Bold")}function iC(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}(aC(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 aC(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},c=s.white,l=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,f=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,_=s.neutralPrimary,C=s.neutralSecondary,E=s.neutralSecondaryAlt,w=s.neutralTertiary,x=s.neutralTertiaryAlt,k=s.neutralLighterAlt,S=s.accent;return c&&(a.bodyBackground=c,a.bodyFrameBackground=c,a.accentButtonText=c,a.buttonBackground=c,a.primaryButtonText=c,a.primaryButtonTextHovered=c,a.primaryButtonTextPressed=c,a.inputBackground=c,a.inputForegroundChecked=c,a.listBackground=c,a.menuBackground=c,a.cardStandoutBackground=c),l&&(a.bodyTextChecked=l,a.buttonTextCheckedHovered=l),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),f&&(a.inputPlaceholderBackgroundChecked=f),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),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),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),_&&(a.bodyText=_,a.actionLink=_,a.buttonText=_,a.inputBorderHovered=_,a.inputText=_,a.listText=_,a.menuItemText=_),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),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),E&&(a.buttonBorder=E),x&&(a.disabledBodySubtext=x,a.disabledBorder=x,a.buttonBackgroundChecked=x,a.menuDivider=x),S&&(a.accentButtonBackground=S),(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 sC(e,t){var n,r,o;void 0===t&&(t={});var i=Sb({},e,t,{semanticColors:aC(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 c=s[a];i.fonts[c]=Sb(i.fonts[c],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[c])}return i}!function(e){if(e){var t="".concat(e,"/fonts");oC(t,G_.Thai,"leelawadeeui-thai","leelawadeeui"),oC(t,G_.Arabic,"segoeui-arabic"),oC(t,G_.Cyrillic,"segoeui-cyrillic"),oC(t,G_.EastEuropean,"segoeui-easteuropean"),oC(t,G_.Greek,"segoeui-greek"),oC(t,G_.Hebrew,"segoeui-hebrew"),oC(t,G_.Vietnamese,"segoeui-vietnamese"),oC(t,G_.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),oC(t,K_.Selawik,"selawik","selawik"),oC(t,G_.Armenian,"segoeui-armenian"),oC(t,G_.Georgian,"segoeui-georgian"),rC("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Q_.light),rC("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Q_.semibold)}}(function(){var e,t,n=null===(e=bv())||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 cC={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function lC(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return sC({palette:Z_,effects:J_,fonts:nC,spacing:cC,isInverted:n,disableGlobalClassNames:!1,semanticColors:iC(Z_,J_,void 0,n,t),rtl:void 0},e)}var uC=Fd.createContext(void 0);var dC=function(){var e=(0,Fd.useContext)(uC),t=q_(["theme"]).theme;return e||t||lC({})},pC=bv()||{};void 0===pC.__currentId__&&(pC.__currentId__=0);var hC=!1;function fC(e){if(!hC){var t=mg.getInstance();t&&t.onReset&&t.onReset(mC),hC=!0}return(void 0===e?"id__":e)+pC.__currentId__++}function mC(e){void 0===e&&(e=0),pC.__currentId__=e}var gC=0,vC={reset:function(){mg.getInstance().onReset((function(){return gC++}))},getId:function(){return gC},renderStyles:function(e,t){return Zb(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return _b(e)},renderKeyframes:function(e){return Dv(e)}};var yC=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=W_();s&&(s.__id__=s.__id__||fC(),i=s.__id__,n.has(i)||(n.add(i),s.addEventListener("unload",r)));var c=dC();a=a||c;var l=vC.getId(),u=[i,l,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,Fd.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,l,a]),function(){return function(e,t){var n,r,o,i,a,s,c,l,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===(c=e.get(u))||void 0===c||c.delete(d),0===(null===(l=e.get(u))||void 0===l?void 0:l.size)&&e.delete(u))))}(t,[i,l,a])}}),[i,l,a]),!d){var p=function(e){return"function"===typeof e}(e)?e(a):e;d=vC.renderStyles(p,{targetWindow:s,rtl:!!a.rtl}),function(e,t,n){var r,o,i=t[0],a=t[1],s=t[2],c=null!==(r=e.get(i))&&void 0!==r?r:new Map;e.set(i,c);var l=null!==(o=c.get(a))&&void 0!==o?o:new Map;c.set(a,l),l.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 bC(e){var t=yC(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,o=null===(n=j_())||void 0===n?void 0:n.body;Fd.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=P_(n,t.root,"element"===r&&t.body)}var _C,CC={label:c_,audio:l_,video:u_,ol:d_,li:p_,a:h_,button:f_,input:m_,textarea:g_,select:v_,option:y_,table:b_,tr:__,th:C_,td:E_,colGroup:w_,col:x_,form:k_,iframe:S_,img:T_};function EC(e,t,n){return A_(t,e&&CC[e]||s_,n)}function wC(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 xC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return kC.apply(this,[null,e].concat(t))}function kC(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 SC=((_C={})[pv]=1,_C[fv]=1,_C[dv]=1,_C[hv]=1,_C[uv]=1,_C[lv]=1,_C[nv]=1,_C[sv]=1,_C[cv]=1,_C);function TC(e){return!!SC[e]}var IC=new WeakMap,AC=new WeakMap;function PC(e,t){var n,r=IC.get(e);return n=r?r+t:1,IC.set(e,n),n}function DC(e){var t=AC.get(e);if(t)return t;return t={onMouseDown:function(t){return LC(t,e.registeredProviders)},onPointerDown:function(t){return OC(t,e.registeredProviders)},onKeyDown:function(t){return FC(t,e.registeredProviders)},onKeyUp:function(t){return BC(t,e.registeredProviders)}},AC.set(e,t),t}var RC=Fd.createContext(void 0);function MC(e){var t=Fd.useContext(RC);Fd.useEffect((function(){var n,r,o,i,a=bv(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,c,l,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=DC(t);s=p.onMouseDown,c=p.onPointerDown,l=p.onKeyDown,u=p.onKeyUp}else s=LC,c=OC,l=FC,u=BC;var h=PC(d,1);return h<=1&&(d.addEventListener("mousedown",s,!0),d.addEventListener("pointerdown",c,!0),d.addEventListener("keydown",l,!0),d.addEventListener("keyup",u,!0)),function(){var e;a&&!0!==(null===(e=a.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(h=PC(d,-1))&&(d.removeEventListener("mousedown",s,!0),d.removeEventListener("pointerdown",c,!0),d.removeEventListener("keydown",l,!0),d.removeEventListener("keyup",u,!0))}}}),[t,e])}var NC=function(e){return MC(e.rootRef),null};function LC(e,t){Ky(!1,e.target,t)}function OC(e,t){"mouse"!==e.pointerType&&Ky(!1,e.target,t)}function FC(e,t){TC(e.which)&&Ky(!0,e.target,t)}function BC(e,t){TC(e.which)&&Ky(!0,e.target,t)}var HC=function(e){var t=e.providerRef,n=e.layerRoot,r=Fd.useState([])[0],o=Fd.useContext(RC),i=void 0!==o&&!n,a=Fd.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 Fd.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?Fd.createElement(RC.Provider,{value:a},e.children):Fd.createElement(Fd.Fragment,null,e.children)},zC=function(t){var n=t.customizerContext,r=t.ref,o=t.theme,i=t.as||"div",a="string"===typeof t.as?EC(t.as,t):t.as===Fd.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 Fd.createElement(uC.Provider,{value:o},Fd.createElement(t_.Provider,{value:n},Fd.createElement(HC,{providerRef:r},Fd.createElement(i,(0,e.__assign)({},a)))))},VC=new Map,UC=function(e){var t=e.theme,n=dC(),r=e.theme=Fd.useMemo((function(){var e=sC(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||VC.get(i);a||(a=fC(""),VC.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=Fd.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 WC(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 jC(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Fd.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 qC=Fd.forwardRef((function(e,t){var n=function(e,t){var n=WC(t,e);return UC(n),{state:n,render:zC}}(e,{ref:jC(t,Fd.useRef(null)),as:"div",applyTo:"element"}),r=n.render,o=n.state;return bC(o),r(o)}));function GC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KC(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 YC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KC(Object(n),!0).forEach((function(t){GC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}qC.displayName="ThemeProvider";var QC,XC={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)"}(QC||(QC={}));var ZC,JC={elevation4:QC.depth4,elevation8:QC.depth8,elevation16:QC.depth16,elevation64:QC.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function $C(){return void 0===ZC&&(ZC="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),ZC}function eE(){return{rtl:$C()}}ZC=$C();var tE,nE=0,rE=1,oE=2,iE="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),aE={};try{aE=window||{}}catch(z){}var sE,cE=function(){function t(t,n){var r,o,i,a,s,c;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?nE:rE,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!==(c=null===n||void 0===n?void 0:n.rules)&&void 0!==c?c:this._rules}return t.getInstance=function(){if(!(tE=aE.__stylesheet__)||tE._lastStyleElement&&tE._lastStyleElement.ownerDocument!==document){var e=(null===aE||void 0===aE?void 0:aE.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);tE=n,aE.__stylesheet__=n}return tE},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!==nE?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case rE:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(bke){}break;case oE: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(),iE||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}(),lE={};function uE(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=lE[n]=lE[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var dE={"user-select":1};function pE(e,t){var n=function(){var e;if(!sE){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();sE=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 sE}(),r=e[t];if(dE[r]){var o=e[t+1];dE[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 hE,fE=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function mE(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=fE.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var gE="left",vE="right",yE=((hE={}).left=vE,hE.right=gE,hE),bE={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function _E(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(gE)>=0)t[n]=r.replace(gE,vE);else if(r.indexOf(vE)>=0)t[n]=r.replace(vE,gE);else if(String(o).indexOf(gE)>=0)t[n+1]=o.replace(gE,vE);else if(String(o).indexOf(vE)>=0)t[n+1]=o.replace(vE,gE);else if(yE[r])t[n]=yE[r];else if(bE[o])t[n+1]=bE[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 CE,EE,wE,xE,kE;function SE(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)uE(n,o),mE(n,o),_E(e,n,o),pE(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)"}(CE||(CE={})),function(e){e.Arabic="'"+CE.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+CE.Cyrillic+"'",e.EastEuropean="'"+CE.EastEuropean+"'",e.Greek="'"+CE.Greek+"'",e.Hebrew="'"+CE.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+CE.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+CE.Vietnamese+"'",e.WestEuropean="'"+CE.WestEuropean+"'",e.Armenian="'"+CE.Armenian+"'",e.Georgian="'"+CE.Georgian+"'"}(EE||(EE={})),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"}(wE||(wE={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(xE||(xE={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(kE||(kE={}));var TE="'Segoe UI', '"+CE.WestEuropean+"'",IE={ar:EE.Arabic,bg:EE.Cyrillic,cs:EE.EastEuropean,el:EE.Greek,et:EE.EastEuropean,he:EE.Hebrew,hi:EE.Hindi,hr:EE.EastEuropean,hu:EE.EastEuropean,ja:EE.Japanese,kk:EE.EastEuropean,ko:EE.Korean,lt:EE.EastEuropean,lv:EE.EastEuropean,pl:EE.EastEuropean,ru:EE.Cyrillic,sk:EE.EastEuropean,"sr-latn":EE.EastEuropean,th:EE.Thai,tr:EE.EastEuropean,uk:EE.Cyrillic,vi:EE.Vietnamese,"zh-hans":EE.ChineseSimplified,"zh-hant":EE.ChineseTraditional,hy:EE.Armenian,ka:EE.Georgian};function AE(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function PE(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var DE,RE=void 0;try{RE=window}catch(bke){}function ME(e){if(PE()&&"undefined"!==typeof RE){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:RE}}var NE="language";var LE=function(e){var t=function(e){for(var t in IE)if(IE.hasOwnProperty(t)&&e&&0===t.indexOf(e))return IE[t];return TE}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:AE(wE.mini,xE.regular,t),xSmall:AE(wE.xSmall,xE.regular,t),small:AE(wE.small,xE.regular,t),smallPlus:AE(wE.smallPlus,xE.regular,t),medium:AE(wE.medium,xE.regular,t),mediumPlus:AE(wE.mediumPlus,xE.regular,t),large:AE(wE.large,xE.regular,t),xLarge:AE(wE.xLarge,xE.semibold,t),xLargePlus:AE(wE.xLargePlus,xE.semibold,t),xxLarge:AE(wE.xxLarge,xE.semibold,t),xxLargePlus:AE(wE.xxLargePlus,xE.semibold,t),superLarge:AE(wE.superLarge,xE.semibold,t),mega:AE(wE.mega,xE.semibold,t)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===DE){var t=function(e){if(PE()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}(),n="localStorage"===e?function(e){var t=null;try{var n=ME();t=n?n.localStorage.getItem(e):null}catch(bke){}return t}(NE):"sessionStorage"===e?function(e){var t=null;try{var n=ME();t=n?n.sessionStorage.getItem(e):null}catch(bke){}return t}(NE):void 0;n&&(DE=n),void 0===DE&&t&&(DE=t.documentElement.getAttribute("lang")),void 0===DE&&(DE="en")}return DE}());function OE(e,t,n,r){!function(e){var t=cE.getInstance(),n=SE(eE(),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 FE(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;OE(t,i+"-light",xE.light,o&&o+" Light"),OE(t,i+"-semilight",xE.semilight,o&&o+" SemiLight"),OE(t,i+"-regular",xE.regular,o),OE(t,i+"-semibold",xE.semibold,o&&o+" SemiBold"),OE(t,i+"-bold",xE.bold,o&&o+" Bold")}function BE(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];HE(e||{},i)}return e}function HE(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:HE(e[r]||{},o,n)}}return n.pop(),e}function zE(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}(VE(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 VE(t,n,r,o,i){void 0===i&&(i=!1);var a={},s=t||{},c=s.white,l=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,h=s.themeDarkAlt,f=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,_=s.neutralPrimary,C=s.neutralSecondary,E=s.neutralSecondaryAlt,w=s.neutralTertiary,x=s.neutralTertiaryAlt,k=s.neutralLighterAlt,S=s.accent;return c&&(a.bodyBackground=c,a.bodyFrameBackground=c,a.accentButtonText=c,a.buttonBackground=c,a.primaryButtonText=c,a.primaryButtonTextHovered=c,a.primaryButtonTextPressed=c,a.inputBackground=c,a.inputForegroundChecked=c,a.listBackground=c,a.menuBackground=c,a.cardStandoutBackground=c),l&&(a.bodyTextChecked=l,a.buttonTextCheckedHovered=l),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),f&&(a.inputPlaceholderBackgroundChecked=f),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),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),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),_&&(a.bodyText=_,a.actionLink=_,a.buttonText=_,a.inputBorderHovered=_,a.inputText=_,a.listText=_,a.menuItemText=_),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),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),E&&(a.buttonBorder=E),x&&(a.disabledBodySubtext=x,a.disabledBorder=x,a.buttonBackgroundChecked=x,a.menuDivider=x),S&&(a.accentButtonBackground=S),(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";FE(t,CE.Thai,"leelawadeeui-thai","leelawadeeui"),FE(t,CE.Arabic,"segoeui-arabic"),FE(t,CE.Cyrillic,"segoeui-cyrillic"),FE(t,CE.EastEuropean,"segoeui-easteuropean"),FE(t,CE.Greek,"segoeui-greek"),FE(t,CE.Hebrew,"segoeui-hebrew"),FE(t,CE.Vietnamese,"segoeui-vietnamese"),FE(t,CE.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),FE(t,EE.Selawik,"selawik","selawik"),FE(t,CE.Armenian,"segoeui-armenian"),FE(t,CE.Georgian,"segoeui-georgian"),OE("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",xE.light),OE("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",xE.semibold)}}(function(){var e,t,n=null===(e=ME())||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 UE={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function WE(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=BE({},e,t,{semanticColors:VE(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 c=s[a];i.fonts[c]=BE(i.fonts[c],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[c])}return i}({palette:XC,effects:JC,fonts:LE,spacing:UE,isInverted:n,disableGlobalClassNames:!1,semanticColors:zE(XC,JC,void 0,n,t),rtl:void 0},e)}function jE(e){console&&console.warn&&console.warn(e)}var qE="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";var GE={},KE=void 0;try{KE=window}catch(bke){}function YE(e,t){if("undefined"!==typeof KE){var n=KE.__packages__=KE.__packages__||{};if(!n[e]||!GE[e])GE[e]=t,(n[e]=n[e]||[]).push(t)}}YE("@fluentui/set-version","6.0.0"),YE("@fluentui/style-utilities","8.7.12");var QE=void 0;try{QE=window}catch(bke){}function XE(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof QE){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:QE}}var ZE=0,JE=function(){function e(){}return e.getValue=function(e,t){var n=$E();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=$E(),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=ew();t||(t=e.__id__=String(ZE++)),n[t]=e},e.removeChangeListener=function(e){delete ew()[e.__id__]},e}();function $E(){var e,t=XE()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function ew(){return $E().__callbacks__}var tw={settings:{},scopedSettings:{},inCustomizerContext:!1},nw=JE.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),rw=[],ow=function(){function t(){}return t.reset=function(){nw.settings={},nw.scopedSettings={}},t.applySettings=function(n){nw.settings=(0,e.__assign)((0,e.__assign)({},nw.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){nw.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},nw.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=tw);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&nw.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var c=s[a];r[c]=o[c]||n.settings[c]||i[c]||nw.settings[c]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(z){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){rw.push(e)},t.unobserve=function(e){rw=rw.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||rw.forEach((function(e){return e()}))},t}(),iw=WE({}),aw=[],sw="theme";function cw(){var t,n,r,o=XE();(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);iw=WE(t,n),hb((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},iw.palette),iw.semanticColors),iw.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 c=s[a],l=o+c.charAt(0).toUpperCase()+c.slice(1),u=i[c];"fontSize"===c&&"number"===typeof u&&(u+="px"),t[l]=u}return t}(iw))),ow.applySettings(((r={}).theme=iw,r)),aw.forEach((function(e){try{e(iw)}catch(bke){}}))}(o.FabricConfig.legacyTheme):ow.getSettings([sw]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(iw=WE(o.FabricConfig.theme)),ow.applySettings(((t={}).theme=iw,t)))}cw(),cw();var lw,uw=function(e){var t=e.theme;return{root:GC({border:"none"},qE,{border:"1px solid ".concat(null===t||void 0===t?void 0:t.semanticColors.buttonBorder)})}},dw={paddingLeft:32,paddingRight:32},pw={ActionButton:{styles:uw},Button:{styles:function(e){return{root:{border:"none"}}}},Check:{styles:function(e){var t=e.checked,n=e.theme;return n||jE("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:xE.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||jE("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||jE("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:uw},CompoundButton:{styles:uw},DefaultButton:{styles:uw},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:xE.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||jE("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||jE("Theme is undefined or null."),{main:[{boxShadow:t.effects.elevation64,background:t.semanticColors.panelBackground}],content:[dw,{paddingBottom:32}],header:[dw],footerInner:[dw],closeButton:{color:t.semanticColors.menuIcon,selectors:{":hover":{color:t.semanticColors.menuIcon}}}}}},Pivot:{styles:function(e){var t=e.theme;return t||jE("M365Styles-Pivot error: Theme is undefined or null."),{link:[GC({":hover":{backgroundColor:t.semanticColors.dashboardBackdrop}},qE,{border:"none"})],linkIsSelected:[GC({":hover":{backgroundColor:t.semanticColors.dashboardBackdrop}},qE,{border:"none"})]}}},PrimaryButton:{styles:function(e){var t=e.theme;return t||jE("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||jE("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"}(lw||(lw={}));var hw=lw,fw={themePrimary:hw.themePrimary,themeLighterAlt:hw.themeLighterAlt,themeLighter:hw.themeLighter,themeLight:hw.themeLight,themeTertiary:hw.themeTertiary,themeSecondary:hw.themeSecondary,themeDarkAlt:hw.themeDarkAlt,themeDark:hw.themeDark,themeDarker:hw.themeDarker,neutralLighterAlt:hw.neutralLighterAlt,neutralLighter:hw.neutralLighter,neutralLight:hw.neutralLight,neutralQuaternaryAlt:hw.neutralQuaternaryAlt,neutralQuaternary:hw.neutralQuaternary,neutralTertiaryAlt:hw.neutralTertiaryAlt,neutralTertiary:hw.neutralTertiary,neutralSecondary:hw.neutralSecondary,neutralPrimaryAlt:hw.neutralPrimaryAlt,neutralPrimary:hw.neutralPrimary,neutralDark:hw.neutralDark,black:hw.black,white:hw.white},mw={bodyTextChecked:hw.neutralDark,disabledSubtext:hw.neutralQuaternary,disabledBodySubtext:hw.neutralTertiaryAlt,primaryButtonTextDisabled:hw.neutralTertiary,bodyStandoutBackground:hw.neutralLighter,buttonBackground:hw.neutralLight,buttonBackgroundHovered:hw.neutralTertiaryAlt,buttonBackgroundPressed:hw.neutralTertiary,buttonTextHovered:hw.neutralPrimary,buttonTextChecked:hw.neutralSecondary,buttonTextPressed:hw.neutralPrimary,buttonTextDisabled:hw.neutralTertiary,menuHeader:hw.neutralPrimary,listItemBackgroundChecked:hw.neutralQuaternaryAlt,listItemBackgroundCheckedHovered:hw.neutralQuaternary,link:hw.themeDarkAlt,errorText:hw.errorText,warningHighlight:hw.warningHighlight,warningText:hw.neutralPrimary,messageText:hw.neutralPrimary,messageLink:hw.themeDarkAlt,messageLinkHovered:hw.themeDarker,infoIcon:hw.neutralSecondary,errorIcon:hw.highStatus,blockingIcon:hw.highStatus,successIcon:hw.goodStatus,warningIcon:hw.neutralPrimary,severeWarningIcon:hw.severeWarningIcon,infoBackground:hw.neutralLighter,errorBackground:hw.errorBackground,blockingBackground:hw.blockingBackground,warningBackground:hw.warningBackground,severeWarningBackground:hw.severeWarningBackground,successBackground:hw.successBackground,dashboardBackdrop:hw.dashboardBackdrop,actionCardDashboardBorder:"transparent",actionCardDashboardBorderHovered:"transparent",gridItemDestinationBackground:hw.neutralQuaternary,panelBackground:hw.white,overlayBackground:hw.overlayBackground,sectionDividerLine:hw.neutralPrimary,primaryDividerLine:hw.neutralTertiaryAlt,secondaryDividerLine:hw.neutralQuaternaryAlt,dataVis1:hw.dataVis1,dataVis2:hw.dataVis2,dataVis3:hw.dataVis3,dataVis4:hw.dataVis4,dataVis5:hw.dataVis5,dataVis6:hw.dataVis6,dataVis7:hw.dataVis7,dataVis8:hw.dataVis8,dataVis9:hw.dataVis9,dataVis10:hw.dataVis10,headerText:hw.black,secondaryListText:hw.neutralSecondary,navBackground:hw.navBackground,navItemBackgroundHovered:hw.neutralQuaternary,navItemBackgroundPressed:hw.neutralTertiaryAlt,criticalStatus:hw.criticalStatus,highStatus:hw.highStatus,mediumStatus:hw.mediumStatus,lowStatus:hw.lowStatus,goodStatus:hw.goodStatus,unknownStatus:hw.unknownStatus,insightLow:hw.insightLow,insightMedium:hw.insightMedium,insightHigh:hw.insightHigh,neutralRisk:hw.neutralRisk,stepCompleted:hw.themePrimary,stepCurrent:hw.themePrimary,stepNotStarted:hw.unknownStatus,stepModifierBorder:hw.themePrimary,stepHover:hw.themeDark,stepPressed:hw.themeDarker,stepError:hw.highStatus,allStepsComplete:hw.goodStatus,contextualAlertBackground:hw.contextualAlertBackground,needHelpForeground:hw.white,needHelpBackground:hw.needHelpBackground,needHelpBackgroundPressed:hw.needHelpBackgroundPressed,feedbackForeground:hw.white,feedbackBackground:hw.neutralDark,feedbackBackgroundPressed:hw.neutralSecondary,alwaysWhite:hw.white,alwaysBlack:hw.black,filterPillRest:hw.neutralLighterAlt,filterPillHover:hw.neutralLight,filterPillPressed:hw.neutralQuaternary,filterPillEditedRest:hw.themeLighter,filterPillEditedHover:hw.themeLight,filterPillEditedPressed:hw.themeTertiary,tagBackgroundInsight:hw.tagBackgroundInsight,tagBackgroundLowImpact:hw.tagBackgroundLowImpact,tagBackgroundMediumImpact:hw.neutralTertiaryAlt,tagBackgroundHighImpact:hw.neutralPrimary,tagBackgroundNew:hw.themePrimary,tagBackgroundActiveWarning:hw.highStatus,tagBackgroundRecommendation:hw.tagBackgroundRecommendation,tagTextInsight:hw.neutralPrimary,tagTextLowImpact:hw.neutralPrimary,tagTextMediumImpact:hw.neutralPrimary,tagTextHighImpact:hw.white,tagTextNew:hw.white,tagTextActiveWarning:hw.white},gw=(WE({palette:YC({},lw),semanticColors:mw}),WE({palette:fw,semanticColors:mw,components:pw})),vw={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"},yw={bodyBackground:vw.white,navBackground:vw.white,navItemBackgroundHovered:vw.neutralLighter,navItemBackgroundPressed:vw.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:vw.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",buttonBackground:vw.neutralHigh,cautionYellow:"#9D5D00"},bw=Fy(Eb()||navigator.language),_w={small:{font:"Segoe UI Variable Small, ".concat(bw.medium.fontFamily)},medium:{font:"Segoe UI Variable Text, ".concat(bw.medium.fontFamily)},large:{font:"Segoe UI Variable Display, ".concat(bw.medium.fontFamily)}},Cw={fontFamily:_w.medium.font},Ew={palette:vw,semanticColors:yw},ww={palette:vw,semanticColors:(0,e.__assign)((0,e.__assign)({},gw),yw)},xw={palette:{themePrimary:"#a80000",neutralLight:"#f4cfc2",neutralDark:"#323130",neutralSecondary:"#323130",neutralTertiaryAlt:"#e9c4b7",themeDarkAlt:"#901619",themeDark:"#790C0E"},semanticColors:yw,fonts:_w},kw=["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"],Sw=((0,e.__spreadArray)([],kw,!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"}),Tw={bodyBackground:Sw.white,navBackground:Sw.white,navItemBackgroundHovered:Sw.neutralLighter,navItemBackgroundPressed:Sw.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:Sw.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",cautionYellow:"#9D5D00"},Iw={palette:Sw,semanticColors:Tw},Aw=((0,e.__assign)((0,e.__assign)({},gw),Tw),(0,e.__spreadArray)([],kw,!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"}),Pw={AMC:Ew,"AMC-on-red":xw,Family:Iw,FamilyInsights:{palette:Aw,semanticColors:{bodyBackground:Aw.white,navBackground:Aw.white,navItemBackgroundHovered:Aw.neutralLighter,navItemBackgroundPressed:Aw.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a8000",messageLink:Sw.themeDarkAlt,messageWebSuccess:"#107c10",cautionYellow:"#9D5D00"}},"Family-On-NeutralLighterAlt":{palette:(0,e.__assign)((0,e.__assign)({},Iw.palette),{neutralMed:Sw.themeLighterAlt,white:"#ffffff"}),semanticColors:(0,e.__assign)((0,e.__assign)({},Tw),{bodyBackground:Sw.themeLighterAlt})},XboxTheme:{palette:{themePrimary:"#107c10",themeDark:"#054B16",themeDarker:"#054B16",themeDarkAlt:"#054B16",neutralTertiary:vw.neutralTertiary,transparent:"transparent"},semanticColors:yw}},Dw=function(t){var n=t.variant,r=t.noRootElement,o=t.id,i=t.children,a=r?Rw:void 0,s=(0,e.__assign)((0,e.__assign)({},Pw[n]),{defaultFontStyle:Cw,fonts:_w});return Bd().createElement(qC,{id:o,theme:s,as:a},i)},Rw=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}(Bd().Component),Mw=function(){return dC()},Nw=["theme","styles"];function Lw(t,n,r,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,c=void 0===s?Nw:s,l=Fd.forwardRef((function(o,i){var s=Fd.useRef(),l=q_(c,a),u=l.styles,d=(l.dir,(0,e.__rest)(l,["styles","dir"])),p=r?r(o):void 0,h=s.current&&s.current.__cachedInputs__||[],f=o.styles;if(!s.current||u!==h[1]||f!==h[2]){var m=function(e){return Qb(e,n,u,f)};m.__cachedInputs__=[n,u,f],m.__noStyleOverride__=!u&&!f,s.current=m}return Fd.createElement(t,(0,e.__assign)({ref:i},d,p,o,{styles:s.current}))}));l.displayName="Styled".concat(t.displayName||t.name);var u=i?Fd.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}var Ow={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},Fw="100%",Bw=Jg((function(){return Dv({"0%":{transform:"translateX(-".concat(Fw,")")},"100%":{transform:"translateX(".concat(Fw,")")}})})),Hw=Jg((function(){return Dv({"100%":{transform:"translateX(-".concat(Fw,")")},"0%":{transform:"translateX(".concat(Fw,")")}})}));var zw=0,Vw=mg.getInstance();Vw&&Vw.onReset&&Vw.onReset((function(){return zw++}));var Uw="__retval__";function Ww(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=zw;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var c=t,l=a.theme,u=l&&void 0!==l.rtl?l.rtl:wv(),d=e.disableCaching;if(o!==zw&&(o=zw,t=new Map,n=0),e.disableCaching||(c=qw(t,i),c=qw(c,a)),!d&&c[Uw]||(c[Uw]=void 0===i?{}:Zb(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=bv();(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 c[Uw]}}function jw(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 qw(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=jw(e,r[n])}else e=jw(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=jw(e,t[o]));return e}var Gw,Kw,Yw=function(t){function n(e){var n=t.call(this,e)||this;return n.state={isRendered:void 0===bv()},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?Fd.Children.only(this.props.children):null},n.defaultProps={delay:0},n}(Fd.Component);!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(Gw||(Gw={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(Kw||(Kw={}));var Qw=Ww(),Xw={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var Zw=Lw((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=Qw(n,{theme:a,height:t,borderStyle:i});return Fd.createElement("div",{style:{width:o,minWidth:"number"===typeof o?"".concat(o,"px"):"auto"},className:s.root},Fd.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},Fd.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),Fd.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},Fd.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),Fd.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},Fd.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),Fd.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},Fd.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=$y(Xw,o),s=r||{},c={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[By]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},c],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},c],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},c],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},c]}}),void 0,{scope:"ShimmerLine"}),Jw=Ww(),$w={root:"ms-ShimmerGap-root"};var ex=Lw((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=Jw(n,{theme:a,height:t,borderStyle:i});return Fd.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:[$y($w,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[By]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),tx={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var nx=Ww(),rx=Lw((function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=e.theme,i=nx(n,{theme:o,height:t,borderStyle:r});return Fd.createElement("div",{className:i.root},Fd.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},Fd.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=$y(tx,i),c=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[By]={borderColor:"Window"},t)},c],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[By]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),ox=Ww();var ix=Jg((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 Gw.circle:return{root:(0,e.__assign)((0,e.__assign)({},a),{borderColor:o}),svg:{fill:o}};case Gw.gap:return{root:(0,e.__assign)((0,e.__assign)({},a),{borderColor:o,backgroundColor:o})};case Gw.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 ax={root:"ms-ShimmerElementsGroup-root"};var sx=Lw((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 Gw.circle:e.height||(e.height=Kw.circle);break;case Gw.line:e.height||(e.height=Kw.line);break;case Gw.gap:e.height||(e.height=Kw.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(i||[]):a,c=t.flexWrap,l=void 0!==c&&c,u=t.theme,d=t.backgroundColor,p=ox(n,{theme:u,flexWrap:l});return Fd.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,c=a.height,l=ix(s,i,c,n,r);switch(t.type){case Gw.circle:return Fd.createElement(rx,(0,e.__assign)({key:o},a,{styles:l}));case Gw.gap:return Fd.createElement(ex,(0,e.__assign)({key:o},a,{styles:l}));case Gw.line:return Fd.createElement(Zw,(0,e.__assign)({key:o},a,{styles:l}))}})):Fd.createElement(Zw,{height:Kw.line});return o}(i,d,s))}),(function(e){var t=e.flexWrap,n=e.theme;return{root:[$y(ax,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"});function cx(e){var t=Fd.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}var lx=function(){var e=cx({});return Fd.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),cx({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)}))})},ux=Ww(),dx=Fd.forwardRef((function(t,n){var r=t.styles,o=t.shimmerElements,i=t.children,a=t.width,s=t.className,c=t.customElementsGroup,l=t.theme,u=t.ariaLabel,d=t.shimmerColors,p=t.isDataLoaded,h=void 0!==p&&p,f=t.improveCSSPerformance,m=A_(t,I_),g=ux(r,{theme:l,isDataLoaded:h,className:s,transitionAnimationInterval:200,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave,improveCSSPerformance:f||!c}),v=cx({lastTimeoutId:0}),y=lx(),b=y.setTimeout,_=y.clearTimeout,C=Fd.useState(h),E=C[0],w=C[1],x={width:a||"100%"};return Fd.useEffect((function(){if(h!==E){if(h)return v.lastTimeoutId=b((function(){w(!0)}),200),function(){return _(v.lastTimeoutId)};w(!1)}}),[h]),Fd.createElement("div",(0,e.__assign)({},m,{className:g.root,ref:n}),!E&&Fd.createElement("div",{style:x,className:g.shimmerWrapper},Fd.createElement("div",{className:g.shimmerGradient}),c||Fd.createElement(sx,{shimmerElements:o,backgroundColor:d&&d.background})),i&&Fd.createElement("div",{className:g.dataWrapper},i),u&&!h&&Fd.createElement("div",{role:"status","aria-live":"polite"},Fd.createElement(Yw,null,Fd.createElement("div",{className:g.screenReaderText},u))))}));dx.displayName="Shimmer";var px=Lw(dx,(function(t){var n,r=t.isDataLoaded,o=t.className,i=t.theme,a=t.transitionAnimationInterval,s=t.shimmerColor,c=t.shimmerWaveColor,l=t.improveCSSPerformance,u=i.semanticColors,d=$y(Ow,i),p=wv(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[By]=(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"},l?{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(c||u.bodyDivider," 50%,\n                        ").concat(s||u.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(Fw,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:p?Hw():Bw()}],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:Zy}}),void 0,{scope:"Shimmer"}),hx=function(e){var t=function(t){return t?Bd().createElement(fx,{shimmerElements:e.firstLoadView,isLoaded:!0,isOverflowHidden:e.isOverflowHidden,children:t}):void 0};return Bd().createElement(Zm,{operationData:e.operationData,inertView:e.inertView,firstLoadView:Bd().createElement(fx,{shimmerElements:e.firstLoadView}),finishedView:t(e.finishedView),failedView:t(e.failedView),updatingView:t(e.updatingView),updateFailedView:t(e.updateFailedView)})},fx=function(e){var t=e.children,n=e.shimmerElements,r=e.isLoaded,o=e.isOverflowHidden,i=void 0!==o&&o;return Bd().createElement(px,{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 mx,gx=function e(t,n,r){var o=Cx(t);if(_x(t)){if(bx(r).test(o)||n.includes(t.type))return t;if(t.type===hx){var i=t.props;return Object.keys(i).forEach((function(t){if("operationData"!==t){var o=i[t];e(o,n,r)}})),t}}return wx(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},vx=fC("Validation"),yx=function(e){return"".concat(e).concat(vx)},bx=function(e){return new RegExp("_".concat(yx(e),"$"))},_x=function(e){return!!e&&Bd().isValidElement(e)&&"string"!==typeof e.type},Cx=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)},Ex=function(e,t){if(void 0!==t){var n=[];t.forEach((function(e){var t=e();t&&n.push(t)})),0!==n.length&&wx(e,n.join(", "),n.length)}},wx=function(e,t,n){Em(e,t,n)},xx={none:0,all:1,inputOnly:2};function kx(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 Sx(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"}(mx||(mx={}));var Tx=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)}}},Ix=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&Sx(t.refs,e)||(t.resolver=Tx(t)),t.refs=e,t.resolver}};function Ax(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 Px(e,t){return e&&e!==document.body?t(e)?e:Px(Ax(e),t):null}function Dx(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=Ax(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function Rx(e,t,n){return Ox(e,t,!0,!1,!1,n)}function Mx(e,t,n){return Lx(e,t,!0,!1,!0,n)}function Nx(e,t){var n=Ox(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(qx(n),!0)}function Lx(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var c=Fx(t);if(o&&c&&(i||!zx(t)&&!Vx(t))){var l=Lx(e,t.lastElementChild,!0,!0,!0,i,a,s);if(l){if(s&&Hx(l,!0)||!s)return l;var u=Lx(e,l.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=l.parentElement;d&&d!==t;){var p=Lx(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&c&&Hx(t,s))return t;var h=Lx(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:Lx(e,t.parentElement,!0,!1,!1,i,a,s))}function Ox(e,t,n,r,o,i,a,s,c){if(!t||t===e&&o&&!a)return null;var l=(c?Bx:Fx)(t);if(n&&l&&Hx(t,s))return t;if(!o&&l&&(i||!zx(t)&&!Vx(t))){var u=Ox(e,t.firstElementChild,!0,!0,!1,i,a,s,c);if(u)return u}if(t===e)return null;var d=Ox(e,t.nextElementSibling,!0,!0,!1,i,a,s,c);return d||(r?null:Ox(e,t.parentElement,!1,!1,!0,i,a,s,c))}function Fx(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 Bx(e){return!!e&&Fx(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Hx(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 zx(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Vx(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Ux(e,t){return"true"!==function(e,t){var n=Px(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var Wx,jx=void 0;function qx(e){if(e){var t=bv(e);t&&(void 0!==jx&&t.cancelAnimationFrame(jx),jx=t.requestAnimationFrame((function(){e&&e.focus(),jx=void 0})))}}function Gx(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 Kx(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Gx(e,e[n],t[n]))}function Yx(e){Kx(e,{componentDidMount:Qx,componentDidUpdate:Xx,componentWillUnmount:Zx})}function Qx(){Jx(this.props.componentRef,this)}function Xx(e){e.componentRef!==this.props.componentRef&&(Jx(e.componentRef,null),Jx(this.props.componentRef,this))}function Zx(){Jx(this.props.componentRef,null)}function Jx(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var $x=0,ek=jg({overflow:"hidden !important"}),tk="data-is-scrollable",nk=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=ik(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}},rk=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},ok=function(e){e.preventDefault()};function ik(e){for(var t=e,n=vv(e);t&&t!==n.body;){if("true"===t.getAttribute(tk))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(tk)){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=bv(e)),t}var ak="data-portal-element";function sk(e,t){var n=Px(e,(function(e){return t===e||e.hasAttribute(ak)}));return null!==n&&n.hasAttribute(ak)}var ck,lk="data-is-focusable",uk="data-focuszone-id",dk="tabindex",pk="data-no-vertical-wrap",hk="data-no-horizontal-wrap",fk=999999999,mk=-999999999;function gk(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 vk={},yk=new Set,bk=["text","number","password","email","tel","url","search","textarea"],_k=!1,Ck=function(t){function n(e){var r,o,i,a,s=this;(s=t.call(this,e)||this)._root=Fd.createRef(),s._mergedRef=Ix(),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,c=n.onFocus,l=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(Hx(p)&&s._isImmediateDescendantOfZone(p)){t=p;break}p=Ax(p,_k)}if(l&&e.target===s._root.current){var h=u&&"function"===typeof u&&s._root.current&&u(s._root.current);h&&Hx(h)?(t=h,h.focus()):(s.focus(!0),s._activeElement&&(t=null))}var f=!s._activeElement;t&&t!==s._activeElement&&((d||f)&&s._setFocusAlignment(t,!0,!0),s._activeElement=t,f&&s._updateTabIndexes()),r&&r(s._activeElement,e),(i||o)&&e.stopPropagation(),c?c(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=Ax(t,_k);for(;n.length&&((t=n.pop())&&Hx(t)&&s._setActiveElement(t,!0),!zx(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,c=n.shouldEnterInnerZone;if(!o&&(s.props.onKeyDown&&s.props.onKeyDown(e),!e.isDefaultPrevented()&&(s._getDocument().activeElement!==s._root.current||!s._isInnerZone))){if((c&&c(e)||i&&i(e))&&s._isImmediateDescendantOfZone(e.target)){var l=s._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Vx(e.target))return;if(!s.focusElement(Ox(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case av:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(e.target,e))break;return;case dv:if(r!==mx.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusLeft(t)))break;return;case hv:if(r!==mx.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusRight(t)))break;return;case pv:if(r!==mx.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusUp()))break;return;case fv:if(r!==mx.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusDown()))break;return;case cv:if(!a&&s._moveFocusPaging(!0))break;return;case sv:if(!a&&s._moveFocusPaging(!1))break;return;case nv:if(s.props.allowTabKey||s.props.handleTabKey===xx.all||s.props.handleTabKey===xx.inputOnly&&s._isElementInput(e.target)){var u=!1;if(s._processingTabKey=!0,r!==mx.vertical&&s._shouldWrapFocus(s._activeElement,hk))u=(wv(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 uv: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(Ox(s._root.current,d,!0)))break;return;case lv: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(Lx(s._root.current,p,!0,!0,!0)))break;return;case rv: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),c=Math.floor(t.top);return e&&o>i||!e&&a<c?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):s._shouldWrapFocus(s._activeElement,pk)?fk:mk},Yx(s),s._id=fC("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var c=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:c,s._shouldRaiseClicksOnSpace=null!==(a=e.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,s}return(0,e.__extends)(n,t),n.getOuterZones=function(){return yk.size},n._onKeyDownCapture=function(e){e.which===nv&&yk.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(vk[this._id]=this,e){for(var t=Ax(e,_k);t&&t!==this._getDocument().body&&1===t.nodeType;){if(zx(t)){this._isInnerZone=!0;break}t=Ax(t,_k)}this._isInnerZone||(yk.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&&!Dx(this._root.current,this._activeElement,_k)||this._defaultFocusElement&&!Dx(this._root.current,this._defaultFocusElement,_k))&&(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 Hx(n)&&Fx(n)?n:Ox(e,n,!0)||Lx(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete vk[this._id],this._isInnerZone||(yk.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,c=n.className,l=A_(this.props,s_),u=r||o||"div";this._evaluateFocusBeforeRender();var d,p=(void 0===d&&(d=!1),!0===d&&(Rb=Db({},d)),Rb);return Fd.createElement(u,(0,e.__assign)({"aria-labelledby":s,"aria-describedby":a},l,i,{className:P_((ck||(ck=jg({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ck),c),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(lk)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=vk[n.getAttribute(uk)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Dx(this._root.current,this._activeElement)&&Hx(this._activeElement)&&(!t||Bx(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Ox(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(Lx(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=Dx(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Ax(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&&(zx(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(lk)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return gk(n,t),!0;n=Ax(n,_k)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(zx(e))return vk[e.getAttribute(uk)];for(var t=e.firstElementChild;t;){if(zx(t))return vk[t.getAttribute(uk)];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,c=this.props.direction===mx.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var l=c?o.getBoundingClientRect():null;do{if(o=e?Ox(this._root.current,o):Lx(this._root.current,o),!c){a=o;break}if(o){var u=t(l,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(Ox(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Lx(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,pk)?fk:mk:((-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),c=Math.floor(r.top);return a>c?e._shouldWrapFocus(e._activeElement,pk)?fk:mk:((-1===t&&a<=c||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,hk);return!!this._moveFocus(wv(e),(function(r,o){var i=-1;return(wv(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!==mx.vertical?i=r.right-o.right:n||(i=mk),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,hk);return!!this._moveFocus(!wv(e),(function(r,o){var i=-1;return(wv(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!==mx.vertical?i=o.left-r.left:n||(i=mk),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=ik(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,c=r.clientHeight,l=n.getBoundingClientRect();do{if(n=e?Ox(this._root.current,n):Lx(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(l.bottom),h=Math.floor(u.bottom),f=Math.floor(l.top),m=this._getHorizontalDistanceFromCenter(e,l,u);if(e&&d>p+c||!e&&h<f-c)break;m>-1&&(e&&d>a?(a=d,o=m,i=n):!e&&h<s?(s=h,o=m,i=n):(-1===o||m<=o)&&(o=m,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(Ox(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Lx(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===mx.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=Ax(e,_k);t&&t!==this._root.current&&t!==this._getDocument().body;){if(zx(t))return t;t=Ax(t,_k)}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&&!Dx(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Hx(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];zx(r)?"true"===r.getAttribute(lk)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(dk)&&r.setAttribute(dk,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(dk)&&r.setAttribute(dk,"0"))):(r.getAttribute&&"false"===r.getAttribute(lk)&&r.setAttribute(dk,"-1"),Hx(r)?this.props.disabled?r.setAttribute(dk,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(dk)&&r.setAttribute(dk,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(dk)&&r.setAttribute(dk,"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&&bk.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||Ux(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&sk(e,this._root.current)},n.prototype._getDocument=function(){return vv(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:mx.bidirectional,shouldRaiseClicks:!0},n}(Fd.Component),Ek=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&&wx(e,"Invalid props: ".concat(r),1)}},wk=(0,Fd.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,c=t.shouldEnterInnerZone,l=t.children,u=(0,e.__rest)(t,["as","direction","handleTabKey","shouldEnterInnerZone","children"]);V_("FocusZone",u.id);var d=(0,Fd.useRef)(null);return(0,Fd.useImperativeHandle)(n,(function(){return{focus:function(){var e;null===(e=d.current)||void 0===e||e.focus()}}})),Ek("FocusZone",u),Bd().createElement(Ck,(0,e.__assign)({as:o,direction:mx[a],handleTabKey:s?xx[s]:void 0,isInnerZoneKeystroke:c},u,{componentRef:d}),l)})),xk=0,kk=1,Sk=2,Tk=3,Ik=4,Ak=5,Pk=6,Dk=7,Rk=8,Mk=9,Nk=10,Lk=11,Ok=12,Fk=13,Bk={"top-auto":Tk,"top-center":kk,"top-right":Sk,"top-left":xk,"right-center":Ok,"right-top":Lk,"right-bottom":Fk,"bottom-auto":Dk,"bottom-center":Ak,"bottom-right":Pk,"bottom-left":Ik,"left-center":Mk,"left-top":Rk,"left-bottom":Nk},Hk=["s","m","l","xl","xxl","xxxl"],zk="ViewportProvider",Vk={"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"},Uk={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},Wk={s:Uk.m-1,m:Uk.l-1,l:Uk.xl-1,xl:Uk.xxl-1,xxl:Uk.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER},jk=function(e){return Hk.find((function(t){return e<=Wk[t]}))||"xxxl"},qk=("@media only screen and (min-width: ".concat(Uk.s,"px)"),"@media only screen and (min-width: ".concat(Uk.m,"px)")),Gk="@media only screen and (min-width: ".concat(Uk.l,"px)"),Kk="@media only screen and (min-width: ".concat(Uk.xl,"px)"),Yk="@media only screen and (min-width: ".concat(Uk.xxl,"px)"),Qk="@media only screen and (min-width: ".concat(Uk.xxxl,"px)"),Xk="@media only screen and (max-width: ".concat(Wk.s,"px)"),Zk="@media only screen and (max-width: ".concat(Wk.m,"px)"),Jk="@media only screen and (max-width: ".concat(Wk.l,"px)"),$k=("@media only screen and (max-width: ".concat(Wk.xl,"px)"),"@media only screen and (max-width: ".concat(Wk.xxl,"px)"),"@media only screen and (min-height: 0px)"),eS="@media only screen and (min-height: 420px)",tS="@media only screen and (-ms-high-contrast: active), (forced-colors: active)",nS="@media only screen and (-ms-high-contrast: white-on-black), (forced-colors: active) and (prefers-color-scheme: dark)",rS=function(e){var t=e,n=[];return{setValue:function(e){t!==e&&(t=e,Gd().unstable_batchedUpdates((function(){n.forEach((function(t){return t(e)}))})))},useValue:function(){var e=function(e){var t=(0,Fd.useState)(e)[1];return(0,Fd.useCallback)((function(e){t(e)}),[])}(t);return op((function(){n=n.concat(e)})),rp((function(){n=n.filter((function(t){return t!==e}))})),t}}}(jk(window.innerWidth)),oS="x-viewport",iS=window.matchMedia?Hk.map((function(e){var t=window.matchMedia("(max-width: ".concat(Wk[e],"px) and (min-width: ").concat(Uk[e],"px)"));return t[oS]=e,t})):void 0,aS=function(e){var t;if(e.matches){var n=e[oS]||(null===(t=e.currentTarget)||void 0===t?void 0:t[oS])||jk(window.innerWidth);rS.setValue(n)}},sS=function(){var e=_m().includes(zk),t=rS.useValue();return e?function(){var e=(0,Fd.useContext)(up);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},cS=function(e){return["s","m"].includes(e)},lS=function(){var e;return{root:(e={cursor:"pointer",position:"relative",borderWidth:"0px",height:"100%",width:"100%",padding:"0px"},e[tS]={borderWidth:"1px",":focus":{outline:"auto"}},e)}},uS=function(e,t,n,r){return{root:{borderRadius:t,overflow:"0px"!==t?"hidden":void 0,boxShadow:n?Gm.depth4:void 0,borderBottom:r?"1px solid ".concat(e.palette.white):void 0}}},dS=Ww(),pS=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,c=t.label,l=void 0===c?n.props.title:c,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=dS(u,{theme:d,className:a,barHeight:i,indeterminate:void 0===p}),f={width:void 0!==p?p+"%":void 0,transition:void 0!==p&&p<.01?"none":void 0},m=void 0!==p?0:void 0,g=void 0!==p?100:void 0,v=void 0!==p?Math.floor(p):void 0;return Fd.createElement("div",{className:h.itemProgress},Fd.createElement("div",{className:h.progressTrack}),Fd.createElement("div",{className:h.progressBar,style:f,role:"progressbar","aria-describedby":s?n._descriptionId:void 0,"aria-label":r,"aria-labelledby":l?n._labelId:void 0,"aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":v,"aria-valuetext":o}))};var r=fC("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,c=t.theme,l=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=dS(s,{theme:c,className:r,barHeight:n,indeterminate:void 0===p});return Fd.createElement("div",{className:h.root},i?Fd.createElement("div",{id:this._labelId,className:h.itemName},i):null,l?null:d((0,e.__assign)((0,e.__assign)({},this.props),{percentComplete:p}),this._onRenderProgress),a?Fd.createElement("div",{id:this._descriptionId,className:h.itemDescription},a):null)},n.defaultProps={label:"",description:"",width:180},n}(Fd.Component),hS={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},fS=Jg((function(){return Dv({"0%":{left:"-30%"},"100%":{left:"100%"}})})),mS=Jg((function(){return Dv({"100%":{right:"-30%"},"0%":{right:"100%"}})})),gS=Lw(pS,(function(t){var n,r,o,i=wv(t.theme),a=t.className,s=t.indeterminate,c=t.theme,l=t.barHeight,u=void 0===l?2:l,d=c.palette,p=c.semanticColors,h=c.fonts,f=$y(hS,c),m=d.neutralLight;return{root:[f.root,h.medium,a],itemName:[f.itemName,Fb,{color:p.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[f.itemDescription,{color:p.bodySubtext,fontSize:h.small.fontSize,lineHeight:18}],itemProgress:[f.itemProgress,{position:"relative",overflow:"hidden",height:u,padding:"".concat(8,"px 0")}],progressTrack:[f.progressTrack,{position:"absolute",width:"100%",height:u,backgroundColor:m,selectors:(n={},n[By]={borderBottom:"1px solid WindowText"},n)}],progressBar:[{backgroundColor:d.themePrimary,height:u,position:"absolute",transition:"width .3s ease",width:0,selectors:(r={},r[By]=(0,e.__assign)({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},s?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(m," 0%, ")+"".concat(d.themePrimary," 50%, ").concat(m," 100%)"),animation:"".concat(i?mS():fS()," 3s infinite"),selectors:(o={},o[By]={background:"highlight"},o)}:{transition:"width .15s linear"},f.progressBar]}}),void 0,{scope:"ProgressIndicator"});function vS(e,t){void 0===e&&(e=""),Wb({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 yS(e,t){void 0===e&&(e=""),Wb({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 bS(e,t){void 0===e&&(e=""),Wb({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 _S(e,t){void 0===e&&(e=""),Wb({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 CS(e,t){void 0===e&&(e=""),Wb({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 ES(e,t){void 0===e&&(e=""),Wb({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 wS(e,t){void 0===e&&(e=""),Wb({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 xS(e,t){void 0===e&&(e=""),Wb({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 kS(e,t){void 0===e&&(e=""),Wb({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 SS(e,t){void 0===e&&(e=""),Wb({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 TS(e,t){void 0===e&&(e=""),Wb({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 IS(e,t){void 0===e&&(e=""),Wb({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 AS(e,t){void 0===e&&(e=""),Wb({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 PS(e,t){void 0===e&&(e=""),Wb({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 DS(e,t){void 0===e&&(e=""),Wb({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 RS(e,t){void 0===e&&(e=""),Wb({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 MS(e,t){void 0===e&&(e=""),Wb({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 NS(e,t){void 0===e&&(e=""),Wb({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 LS(e,t){void 0===e&&(e=""),Wb({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 OS=function(){jb("trash","delete"),jb("onedrive","onedrivelogo"),jb("alertsolid12","eventdatemissed12"),jb("sixpointstar","6pointstar"),jb("twelvepointstar","12pointstar"),jb("toggleon","toggleleft"),jb("toggleoff","toggleright")};e_("@fluentui/font-icons-mdl2","8.5.25");var FS="".concat("https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002","/assets/icons/"),BS=bv();function HS(e,t){var n,r;void 0===e&&(e=(null===(n=null===BS||void 0===BS?void 0:BS.FabricConfig)||void 0===n?void 0:n.iconBaseUrl)||(null===(r=null===BS||void 0===BS?void 0:BS.FabricConfig)||void 0===r?void 0:r.fontBaseUrl)||FS),[vS,yS,bS,_S,CS,ES,wS,xS,kS,SS,TS,IS,AS,PS,DS,RS,MS,NS,LS].forEach((function(n){return n(e,t)})),OS()}var zS=function(e,t){return e.palette[t]||e.semanticColors[t]},VS=new Set(["Accept","Add","AddTo","AddFriend","AddGroup","AddMedium","Airplane","AllApps","AppIconDefaultAdd","Apps","AskAParent","Back","BingLogo","BirthdayCake","Blocked","BoardActivityFeed","BrokenFile","BulletedList","BumperLeft","BumperRight","ButtonA","ButtonB","ButtonX","ButtonY","Calendar","CalendarReply","Camera","Cancel","Car","CellPhone","CellPhonePermissions","CheckMark","ChevronDown","ChevronDownMed","ChevronDownSmall","ChevronLeft","ChevronLeftSmall","ChevronRight","ChevronRightSmall","ChevronUpMed","ChevronUpSmall","ChevronRightMed","ChevronLeftMed","ChromeClose","ChromeMaximize","ChromeMinimize","CircleFill","CircleFillBadge12","CircleRing","CityNext2","Clock","Cloud","CloudUpload","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","EdgeLogo","EditListPencil","Education","Error","ErrorBadge","Family","FamilySafety","Favicon","FavoriteStar","Feedback","FileExplorer","FilterAlt","Financial","Flag","Forward","FullCircleMask","Game","GenericApp","Giftbox","GitHubLogo","Globe","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","MobBattery2","MobBattery3","MobBattery4","MobBattery5","MobBattery6","MobBattery7","MobBattery8","MobBattery9","MobBattery10","Money","More","MoreVertical","MultiplayerJoinChallenge","MyMoviesTV","MyNetwork","NavigateExternalInline","OfficeLogo","OneDriveLogo","OpenInNewWindow","OutlookLogoInverse","PassiveAuthentication","Pause","PaymentCard","PaymentCardArt128","PC1","PeopleSettings","Permissions","Photo2","PhotosApp","Photo2Remove","PictureFill","PieSingle","Play","POI","PopExpand","PowerButton","PreviewLink","Print","ProtectedDocument","Pulse","QRCode","RadioBullet","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","SortDown","SortUp","SpeedHigh","StatusCircle","StatusCircle7","StatusCircleCheckmark","StatusCircleExclamation","StatusCircleOuter","StatusErrorCircle7","StatusErrorFull","StatusWarning","Stop","Stopwatch","StoreLogo16","Street","Subscriptions","Switch","Sync","System","Tablet","Tag","TagSolid","TeamsLogo","Ticket","TextSortAscending","TextSortDescending","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"]),US="AMC Icons",WS=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,c=t["aria-label"],l=(0,e.__rest)(t,["iconName","size","color","disabled","aria-label"]);V_("Icon",l.id),Ek("Icon",l);var u=Mw(),d=VS.has(n)?n:"BrokenFile",p=jS(u,o,i,s);return(0,Fd.useEffect)((function(){Ex("Icon",[function(){if(!VS.has(n))return"Invalid icon name: ".concat(n,". Please refer to the TwoUI Icon component for a list of all valid icon names.")}])}),[n]),Bd().createElement("span",(0,e.__assign)({role:c?"img":"presentation","aria-hidden":!c,"data-icon-name":d,className:d,style:p,"aria-label":c},l))},jS=function(t,n,r,o){var i=o?"neutralTertiaryAlt":r;return(0,e.__assign)((0,e.__assign)({fontFamily:US},i&&{color:zS(t,i)}),{fontSize:n})},qS=function(e){var t=[],n={};e.forEach((function(e){VS.has(e)&&(t.push(e),n[e]=Bd().createElement(WS,{iconName:e}))})),function(e){for(var t=zb.__options,n=function(e){var n=Ub(e);zb[n]?delete zb[n]:t.disableWarnings||Hb('The icon "'.concat(e,'" tried to unregister but was not registered.')),zb.__remapped[n]&&delete zb.__remapped[n],Object.keys(zb.__remapped).forEach((function(e){zb.__remapped[e]===n&&delete zb.__remapped[e]}))},r=0,o=e;r<o.length;r++)n(o[r])}(t),Wb({icons:n})},GS=Ww(),KS=function(e,t){Fd.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},YS=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)},QS=Fd.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,c=t.styles,l=t.theme,u=t.underline,d=Fd.useRef(null),p=jC(d,n);KS(t,d),MC(d);var h=GS(c,{className:o,isButton:!a,isDisabled:i,isUnderlined:u,theme:l}),f=r||(a?"a":"button");return{state:{},slots:{root:f},slotProps:{root:(0,e.__assign)((0,e.__assign)({},YS(f,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 Fd.createElement(o.root,(0,e.__assign)({},i.root))}));QS.displayName="LinkBase";var XS,ZS,JS={root:"ms-Link"},$S=Lw(QS,(function(e){var t,n,r,o,i,a,s,c=e.className,l=e.isButton,u=e.isDisabled,d=e.isUnderlined,p=e.theme,h=p.semanticColors,f=h.link,m=h.linkHovered,g=h.disabledText,v=h.focusBorder,y=$y(JS,p);return{root:[y.root,p.fonts.medium,{color:f,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[By]={outline:"1px solid WindowText"},n)}},t[By]={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[By]={color:"LinkText",forcedColorAdjust:"none"},r)},!l&&{selectors:(o={},o[By]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},u&&["is-disabled",{color:g,cursor:"default"},{selectors:(i={"&:link, &:visited":{pointerEvents:"none"}},i[By]={color:"GrayText"},i)}],!u&&{selectors:{"&:active, &:hover, &:active:hover":{color:m,textDecoration:"underline",selectors:(a={},a[By]={color:"LinkText"},a)},"&:focus":{color:f,selectors:(s={},s[By]={color:"LinkText"},s)}}},y.root,c]}}),void 0,{scope:"Link"}),eT={"semi-bold":Dy.semibold,bold:Dy.bold},tT=function(e,t){return{disabled:e.palette.neutralTertiary,error:e.palette.redDark,white:e.palette.neutralHigh}[t]},nT="1.4",rT="1.2",oT=function(t,n,r,o){var i,a=function(e,t){var n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,C,E,w,x,k,S,T,I;return{xxlPageBanner:{fontSize:"80px",fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:rT,fontFamily:null===(n=e.fonts)||void 0===n?void 0:n.large.font,hoverColor:e.palette.neutralPrimary},xlPageHeader:{fontSize:"64px",fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:rT,fontFamily:null===(r=e.fonts)||void 0===r?void 0:r.large.font,hoverColor:e.palette.neutralPrimary},pageBanner:{fontSize:Py.superLarge,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(o=e.fonts)||void 0===o?void 0:o.large.font,hoverColor:e.palette.neutralPrimary},pageTitle:{fontSize:Py.xxLargePlus,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(i=e.fonts)||void 0===i?void 0:i.large.font,hoverColor:e.palette.neutralPrimary},pageHeader:{fontSize:Py.xxLarge,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(a=e.fonts)||void 0===a?void 0:a.large.font,hoverColor:e.palette.neutralPrimary},statusHeader:{fontSize:Py.xLargePlus,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(s=e.fonts)||void 0===s?void 0:s.medium.font,hoverColor:e.palette.neutralPrimary},bodyLargeRegular:{fontSize:Py.xLargePlus,fontWeight:Dy.regular,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(c=e.fonts)||void 0===c?void 0:c.medium.font,hoverColor:e.palette.neutralPrimary},paneHeader:{fontSize:Py.xLarge,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(l=e.fonts)||void 0===l?void 0:l.medium.font,hoverColor:e.palette.neutralPrimary},paneThemeTitle:{fontSize:Py.large,fontWeight:Dy.semibold,color:e.palette.themePrimary,lineHeight:nT,fontFamily:null===(u=e.fonts)||void 0===u?void 0:u.medium.font,hoverColor:e.palette.themePrimary},paneTitle:{fontSize:Py.large,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(d=e.fonts)||void 0===d?void 0:d.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumThemeRegular:{fontSize:Py.large,fontWeight:Dy.regular,lineHeight:nT,color:e.palette.themePrimary,fontFamily:null===(p=e.fonts)||void 0===p?void 0:p.medium.font,hoverColor:e.palette.themePrimary},bodyMediumRegular:{fontSize:Py.large,fontWeight:Dy.regular,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(h=e.fonts)||void 0===h?void 0:h.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumSecondaryRegular:{fontSize:Py.large,fontWeight:Dy.regular,color:e.palette.neutralSecondary,lineHeight:nT,fontFamily:null===(f=e.fonts)||void 0===f?void 0:f.medium.font,hoverColor:e.palette.neutralSecondary},headerErrorText:{fontSize:Py.mediumPlus,fontWeight:Dy.semibold,color:e.semanticColors.errorBlockIcon,lineHeight:nT,fontFamily:null===(m=e.fonts)||void 0===m?void 0:m.medium.font,hoverColor:e.semanticColors.errorBlockIcon},subjectTitle:{fontSize:Py.mediumPlus,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(g=e.fonts)||void 0===g?void 0:g.medium.font,hoverColor:e.palette.neutralPrimary},errorBlockIcon:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.semanticColors.errorBlockIcon,lineHeight:nT,fontFamily:null===(v=e.fonts)||void 0===v?void 0:v.medium.font,hoverColor:e.semanticColors.errorBlockIcon},cautionYellowText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.semanticColors.cautionYellow,lineHeight:nT,fontFamily:null===(y=e.fonts)||void 0===y?void 0:y.medium.font,hoverColor:e.semanticColors.cautionYellow},bodySuccessText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.semanticColors.messageWebSuccess,lineHeight:nT,fontFamily:null===(b=e.fonts)||void 0===b?void 0:b.medium.font,hoverColor:e.semanticColors.messageWebSuccess},bodyThemeDarkText:{fontSize:Py.medium,fontWeight:Dy.semibold,color:e.palette.themeDarkAlt,lineHeight:nT,fontFamily:null===(_=e.fonts)||void 0===_?void 0:_.medium.font,hoverColor:e.palette.themeDarkAlt},bodyThemeText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.palette.themePrimary,lineHeight:nT,fontFamily:null===(C=e.fonts)||void 0===C?void 0:C.medium.font,hoverColor:e.palette.themeDark},headerText:{fontSize:Py.medium,fontWeight:Dy.semibold,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(E=e.fonts)||void 0===E?void 0:E.medium.font,hoverColor:e.palette.neutralPrimary},bodyTertiaryText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.palette.neutralTertiary,lineHeight:nT,fontFamily:null===(w=e.fonts)||void 0===w?void 0:w.medium.font,hoverColor:e.palette.neutralTertiary},bodySecondaryText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.palette.neutralSecondary,lineHeight:nT,fontFamily:null===(x=e.fonts)||void 0===x?void 0:x.medium.font,hoverColor:e.palette.neutralSecondary},bodyPrimaryText:{fontSize:Py.medium,fontWeight:Dy.regular,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(k=e.fonts)||void 0===k?void 0:k.medium.font,hoverColor:e.palette.neutralPrimary},metadataText:{fontSize:Py.small,fontWeight:Dy.regular,color:e.palette.neutralSecondary,lineHeight:nT,fontFamily:null===(S=e.fonts)||void 0===S?void 0:S.small.font,hoverColor:e.palette.neutralSecondary},captionText:{fontSize:Py.xSmall,fontWeight:Dy.regular,color:e.palette.neutralPrimary,lineHeight:nT,fontFamily:null===(T=e.fonts)||void 0===T?void 0:T.small.font,hoverColor:e.palette.neutralPrimary},superscript:{fontSize:Py.xSmall,fontWeight:Dy.regular,color:e.palette.themePrimary,lineHeight:nT,fontFamily:null===(I=e.fonts)||void 0===I?void 0:I.small.font,hoverColor:e.palette.themePrimary}}[t]}(t,n),s=(0,e.__assign)((0,e.__assign)({},a),{fontWeight:r?eT[r]:a.fontWeight,color:o?tT(t,o):a.color,fontSize:a.fontSize,lineHeight:a.lineHeight});return(0,e.__assign)((0,e.__assign)({},s),{selectors:(i={},i[By]={color:"windowtext"},i)})},iT=n_((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 Sv(Av(t,{root:r}).root,(0,e.__assign)({},A_(o,s_)))}),{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,c=t.semanticColors,l=s[a||"medium"];return{root:[l,{color:l.color||c.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:l.MozOsxFontSmoothing,webkitFontSmoothing:l.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),aT=function(t){var n=t.tag,r=t.variant,o=void 0===r?"paneHeader":r,i=t.block,a=t.nowrap,s=t.weightOverride,c=t.colorOverride,l=t.children,u=(0,e.__rest)(t,["tag","variant","block","nowrap","weightOverride","colorOverride","children"]);V_("Heading",u.id),Ek("Heading",u);var d=Mw(),p=oT(d,o,s,c);return Bd().createElement(iT,(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),l)};!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(XS||(XS={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(ZS||(ZS={}));var sT=Ww(),cT=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,c=t.theme,l=t.className,u=t.labelPosition,d=o,p=A_(this.props,I_,["size"]),h=r;void 0===h&&void 0!==n&&(h=n===ZS.large?XS.large:XS.medium);var f=sT(a,{theme:c,size:h,className:l,labelPosition:u});return Fd.createElement("div",(0,e.__assign)({},p,{className:f.root}),Fd.createElement("div",{className:f.circle}),s&&Fd.createElement("div",{className:f.label},s),d&&Fd.createElement("div",{role:"status","aria-live":i},Fd.createElement(Yw,null,Fd.createElement("div",{className:f.screenReaderText},d))))},n.defaultProps={size:XS.medium,ariaLive:"polite",labelPosition:"bottom"},n}(Fd.Component),lT={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},uT=Jg((function(){return Dv({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),dT=Lw(cT,(function(t){var n,r=t.theme,o=t.size,i=t.className,a=t.labelPosition,s=r.palette,c=$y(lT,r);return{root:[c.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:[c.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+s.themeLight,borderTopColor:s.themePrimary,animationName:uT(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(n={},n[By]=(0,e.__assign)({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},o===XS.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===XS.small&&["ms-Spinner--small",{width:16,height:16}],o===XS.medium&&["ms-Spinner--medium",{width:20,height:20}],o===XS.large&&["ms-Spinner--large",{width:28,height:28}]],label:[c.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:Zy}}),void 0,{scope:"Spinner"}),pT=Ww({cacheSize:100}),hT=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,c=t.required,l=t.theme,u=pT(s,{className:i,disabled:a,required:c,theme:l});return Fd.createElement(r,(0,e.__assign)({},A_(this.props,I_),{className:u.root}),o)},n}(Fd.Component),fT=Lw(hT,(function(t){var n,r=t.theme,o=t.className,i=t.disabled,a=t.required,s=r.semanticColors,c=Dy.semibold,l=s.bodyText,u=s.disabledBodyText,d=s.errorText;return{root:["ms-Label",r.fonts.medium,{fontWeight:c,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(n={},n[By]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},a&&{selectors:{"::after":{content:"' *'",color:d,paddingRight:12}}},o]}}),void 0,{scope:"Label"}),mT="100ms",gT={rest:Gm.depth4,hover:Gm.depth8,controls:Gm.depth16,surface:Gm.depth64},vT={root:{position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"}},yT=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}},bT=function(e){return function(){return Bd().isValidElement(e)&&e.type===_T?void 0:"SlotStack only accepts children of type SlotStackItem."}};var _T=function(){return Bd().createElement(Bd().Fragment,null)},CT=function(t){var n=t.children,r=(0,e.__rest)(t,["children"]),o=Bd().Children.toArray(n).filter((function(e){return!!e})).map((function(t){return Ex("SlotStack",[bT(t)]),Bd().createElement(xT,(0,e.__assign)({},t.props,{key:t.key||void 0}))}));return Bd().createElement(wT,(0,e.__assign)({type:"slots"},r,{children:o}))},ET=function(e){return function(){return Bd().isValidElement(e)&&e.type===xT&&e.props.slots?void 0:'<SlotStack type="slots"> only accepts children of type <StackItem slot="x">.'}},wT=function(t){var n=t.type,r=t.children,o=t.childrenGap,i=t.horizontal,a=t.height,s=t.width,c=t.maxHeight,l=t.maxWidth,u=t.overflow,d=t.tabIndex,p=t.margin,h=t.padding,f=t.backgroundColor,m=t.reversed,g=void 0!==m&&m,v=t.textAlignment,y=t.totalSlots,b=t.wrap,_=void 0!==b&&b,C=t.withBorder,E=void 0!==C&&C,w=t.boxShadow,x=void 0!==w&&w,k=t.borderRadius,S=(0,e.__rest)(t,["type","children","childrenGap","horizontal","height","width","maxHeight","maxWidth","overflow","tabIndex","margin","padding","backgroundColor","reversed","textAlignment","totalSlots","wrap","withBorder","boxShadow","borderRadius"]);Ek("Stack",S);var T=Mw(),I={root:{}},A={};if(A.childrenGap="slots"===n?16:o,c&&(A.maxHeight=c),l&&(A.maxWidth=l),u&&(I.root.overflow=u),p&&(I.root.margin=p),h&&(I.root.padding=h),a&&(I.root.height=a),s&&(I.root.width=s),E&&(I.root.borderWidth="1px",I.root.borderStyle="solid",I.root.borderColor=T.palette.neutralSecondary,I.root.borderRadius="2px"),v&&(I.root["text-align"]=v),f&&(I.root["background-color"]=T.palette[f]),x&&(I.root.boxShadow=gT.rest),k&&(I.root["border-radius"]=k),"slots"===n){var P=function(t,n){var r=t.reduce((function(e,t){return e+t.props.slots}),0);return Ex("SlotStack",[yT(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),c="calc(".concat(100*a,"% - ").concat(s,"px)");return Bd().createElement(xT,(0,e.__assign)({},i,{width:c,key:t.key||void 0}))}))}((Array.isArray(r)?r:[r]).map((function(e){return Ex("Stack",[ET(e)]),e})),y);return Bd().createElement(z_,(0,e.__assign)({horizontal:!0,reversed:g,styles:I,tokens:A,wrap:!1},S,{doNotRenderFalsyValues:!0}),P)}return Bd().createElement(z_,(0,e.__assign)({horizontal:i,reversed:g,styles:I,tokens:A,wrap:_,tabIndex:d},S,{doNotRenderFalsyValues:!0}),r)},xT=function(t){var n=t.children,r=void 0===n?Bd().createElement(Bd().Fragment,null):n,o=t.margin,i=t.height,a=t.padding,s=t.width,c=t.boxSizing,l=t.textAlignment,u=(0,e.__rest)(t,["children","margin","height","padding","width","boxSizing","textAlignment"]);Ek("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),c&&(d.root.boxSizing=c),l&&(d.root["text-align"]=l),Bd().createElement(B_,(0,e.__assign)({styles:d,tokens:{}},u),r)},kT=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}},ST=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"]);V_("Label",s.id),Ek("Label",s);var c=Mw(),l=function(e,t){switch(t){case"Error":case"Saving":case"Saved":return{root:{height:16,fontWeight:"normal",fontSize:12,lineHeight:16,padding:0,color:kT(e,t)}};case"Light":return{root:{fontWeight:"normal",color:kT(e,t)}};default:return{root:{}}}}(c,n),u=Bd().createElement(fT,(0,e.__assign)({disabled:r,required:o,htmlFor:i,styles:l},s),a);return void 0!==n&&"Error"!==n?Bd().createElement(wT,{horizontal:!0,childrenGap:7},function(t,n){switch(n){case"Saving":return Bd().createElement(dT,{ariaLive:"assertive",size:XS.xSmall});case"Saved":return Bd().createElement(WS,(0,e.__assign)({iconName:"CheckMark",size:"16px"},{styles:{root:{color:t.palette.blue}}}));default:return}}(c,n),u):u},TT=function(e){return!1===isNaN(Number(e))},IT=function(){return navigator.userAgent.includes("rv:11.0")};var AT=function(e){return e.stopPropagation()},PT=function(t){var n,r=t.children,o=t.keycodes,i=void 0===o?[]:o,a=(0,e.__rest)(t,["children","keycodes"]);return V_("StopPropagation"),Bd().createElement("div",{style:(n=a,"inline-block"===n.display?{display:"inline-block"}:n.grow?{height:"100%",width:"100%"}:void 0),onClick:AT,onKeyDown:function(e){return function(e,t){t.includes(e.keyCode)&&e.stopPropagation()}(e,i)},role:"presentation"},r)},DT=function(t){var n=t.block,r=t.nowrap,o=t.variant,i=void 0===o?"bodyPrimaryText":o,a=t.colorOverride,s=t.weightOverride,c=t.children,l=t.disabled,u=void 0!==l&&l,d=(0,e.__rest)(t,["block","nowrap","variant","colorOverride","weightOverride","children","disabled"]);V_("Text",d.id),Ek("Text",d);var p=Mw(),h=oT(p,i,s,u?"disabled":a);return Bd().createElement(iT,(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),c)};var RT,MT,NT,LT=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(bke){n._logError(bke)}}),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=bv(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(bke){n._logError(bke)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=bv(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(bke){n._logError(bke)}}),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,c=!0,l=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing);var d=function t(n){var d=Date.now(),p=d-l,h=s?a-p:a;return p>=a&&(!n||s)?(l=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&c&&(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,c=!1,l=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(c=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(e){h&&(r.clearTimeout(h),h=null),p=e},m=function(t){f(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(c&&n-d>=s&&(o=!0),d=n);var a=n-d,f=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:f=Math.min(f,u-g)),a>=s||v||o?m(n):null!==h&&t||!l||(h=r.setTimeout(e,f)),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()&&f(Date.now())},y.flush=function(){return v()&&m(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=bv(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(bke){n._logError(bke)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=bv(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 OT(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(RT||(RT={})),function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(MT||(MT={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(NT||(NT={}));var FT,BT=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,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var zT=((FT={})[xk]=HT(MT.top,MT.left),FT[kk]=HT(MT.top),FT[Sk]=HT(MT.top,MT.right),FT[Tk]=HT(MT.top,void 0,!0),FT[Ik]=HT(MT.bottom,MT.left),FT[Ak]=HT(MT.bottom),FT[Pk]=HT(MT.bottom,MT.right),FT[Dk]=HT(MT.bottom,void 0,!0),FT[Rk]=HT(MT.left,MT.top),FT[Mk]=HT(MT.left),FT[Nk]=HT(MT.left,MT.bottom),FT[Lk]=HT(MT.right,MT.top),FT[Ok]=HT(MT.right),FT[Fk]=HT(MT.right,MT.bottom),FT);function VT(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function UT(e,t){var n=[];return e.top<t.top&&n.push(MT.top),e.bottom>t.bottom&&n.push(MT.bottom),e.left<t.left&&n.push(MT.left),e.right>t.right&&n.push(MT.right),n}function WT(e,t){return e[MT[t]]}function jT(e,t,n){return e[MT[t]]=n,e}function qT(e,t){var n=rI(t);return(WT(e,n.positiveEdge)+WT(e,n.negativeEdge))/2}function GT(e,t){return e>0?t:-1*t}function KT(e,t){return GT(e,WT(t,e))}function YT(e,t,n){return GT(n,WT(e,n)-WT(t,n))}function QT(e,t,n,r){void 0===r&&(r=!0);var o=WT(e,t)-n,i=jT(e,t,n);return r&&(i=jT(e,-1*t,WT(e,-1*t)-o)),i}function XT(e,t,n,r){return void 0===r&&(r=0),QT(e,n,WT(t,n)+GT(n,r))}function ZT(e,t,n){return KT(n,e)>KT(n,t)}function JT(e,t){for(var n=0,r=0,o=UT(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(YT(e,t,i),2)}return n}function $T(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,c=r.alignTargetEdge,l={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(l=function(e,t,n,r,o){void 0===o&&(o=0);var i=[MT.left,MT.right,MT.bottom,MT.top];wv()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,c=r.targetEdge,l=r.alignmentEdge,u=c,d=l,p=0;p<4;p++){if(ZT(s,n,c))return{elementRectangle:s,targetEdge:c,alignmentEdge:l};var h=JT(s,n);(!a||h<a)&&(a=h,u=c,d=l),i.splice(i.indexOf(c),1),i.length>0&&(i.indexOf(-1*c)>-1?c*=-1:(l=c,c=i.slice(-1)[0]),s=nI(e,t,{targetEdge:c,alignmentEdge:l},o))}return{elementRectangle:s=nI(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=UT(l.elementRectangle,n),d=i?-l.targetEdge:void 0;if(u.length>0)if(c)if(l.alignmentEdge&&u.indexOf(-1*l.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:nI(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(l,t,o,a);if(VT(p.elementRectangle,n))return p;l=eI(UT(p.elementRectangle,n),l,n,d)}else l=eI(u,l,n,d);else l=eI(u,l,n,d);return l}function eI(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=QT(t.elementRectangle,a,WT(n,a),!1),t.forcedInBounds=!0;else ZT(s=XT(t.elementRectangle,n,a),n,-1*a)||(s=QT(s,-1*a,WT(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function tI(e,t,n){var r=rI(t).positiveEdge;return QT(e,r,n-(qT(e,t)-WT(e,r)))}function nI(e,t,n,r,o){void 0===r&&(r=0);var i=new BT(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,c=o?s:-1*s;(i=o?XT(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=GT(-1*n,r);return QT(e,-1*n,WT(t,n)+o)}(i,t,s,r),a)?i=XT(i,t,a):i=tI(i,c,qT(t,s));return i}function rI(e){return e===MT.top||e===MT.bottom?{positiveEdge:MT.left,negativeEdge:MT.right}:{positiveEdge:MT.top,negativeEdge:MT.bottom}}function oI(e,t,n){return n&&Math.abs(YT(e,n,t))>Math.abs(YT(e,n,-1*t))?-1*t:t}function iI(e,t,n,r,o,i,a,s){var c,l={},u=pI(t),d=i?n:-1*n,p=o||rI(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&WT(e,t)===WT(n,t)}(e,(c=p,-1*c),r)||(p=oI(e,p,r)),l[MT[d]]=YT(e,u,d),l[MT[p]]=YT(e,u,p),s&&(l[MT[-1*d]]=YT(e,u,-1*d),l[MT[-1*p]]=YT(e,u,-1*p)),l}function aI(e){return Math.sqrt(e*e*2)}function sI(t,n,r){if(void 0===t&&(t=Dk),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,e.__assign)({},zT[t]);return wv()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?zT[n]:o):o}function cI(e,t,n){var r=qT(t,e),o=qT(n,e),i=rI(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function lI(e,t,n,r,o,i,a){var s=nI(e,t,r,o,a);return VT(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:$T(s,t,n,r,o,i,a)}function uI(t,n,r){var o=-1*t.targetEdge,i=new BT(0,t.elementRectangle.width,0,t.elementRectangle.height),a={},s=oI(t.elementRectangle,t.alignmentEdge?t.alignmentEdge:rI(o).positiveEdge,r),c=YT(t.elementRectangle,t.targetRectangle,o)>Math.abs(WT(n,o));return a[MT[o]]=WT(n,o),a[MT[s]]=YT(n,i,s),{elementPosition:(0,e.__assign)({},a),closestEdge:cI(t.targetEdge,n,i),targetEdge:o,hideBeak:!c}}function dI(e,t){var n=t.targetRectangle,r=rI(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=qT(n,t.targetEdge),s=new BT(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),c=new BT(0,e,0,e);return ZT(c=tI(c=QT(c,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-KT(o,t.elementRectangle)),s,o)?ZT(c,s,i)||(c=XT(c,s,i)):c=XT(c,s,o),c}function pI(e){var t=e.getBoundingClientRect();return new BT(t.left,t.right,t.top,t.bottom)}function hI(e){return new BT(e.left,e.right,e.top,e.bottom)}function fI(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 BT(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=pI(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,c=o.bottom||a;n=new BT(i,s,a,c)}if(!VT(n,e))for(var l=0,u=UT(n,e);l<u.length;l++){var d=u[l];n[MT[d]]=e[MT[d]]}}else n=new BT(0,0,0,0);return n}(r,t.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=cI(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(sI(t.directionalHint,t.directionalHintForRTL,o),a,r,t.coverTarget,t.alignTargetEdge),c=lI(pI(n),a,r,s,i,t.directionalHintFixed,t.coverTarget);return(0,e.__assign)((0,e.__assign)({},c),{targetRectangle:a})}function mI(e,t,n,r,o){return{elementPosition:iI(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function gI(t,n,r,o,i){var a=t.isBeakVisible&&t.beakWidth||0,s=aI(a)/2+(t.gapSpace?t.gapSpace:0),c=t;c.gapSpace=s;var l=t.bounds?hI(t.bounds):new BT(0,window.innerWidth-function(){if(void 0===Wx){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),Wx=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Wx}(),0,window.innerHeight),u=fI(c,r,l,o),d=uI(u,dI(a,u),l);return(0,e.__assign)((0,e.__assign)({},mI(u,n,l,t.coverTarget,i)),{beakPosition:d})}function vI(e,t,n,r){return function(e,t,n,r){return gI(e,t,n,r,!0)}(e,t,n,r)}var yI=["TEMPLATE","STYLE","SCRIPT"];function bI(e){var t=vv(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===yI.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 _I(){var e=Fd.useRef();return e.current||(e.current=new LT),Fd.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function CI(e,t,n,r){var o=Fd.useRef(n);o.current=n,Fd.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return OT(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function EI(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==bv()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function wI(e,t){var n=e.onRestoreFocus,r=void 0===n?EI:n,o=Fd.useRef(),i=Fd.useRef(!1);Fd.useEffect((function(){return o.current=vv().activeElement,function(e){var t=vv(e),n=t&&t.activeElement;return!(!n||!Dx(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=vv())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),CI(t,"focus",Fd.useCallback((function(){i.current=!0}),[]),!0),CI(t,"blur",Fd.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}var xI,kI=Fd.forwardRef((function(t,n){var r=WC({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=Fd.useRef(),i=jC(o,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;Fd.useEffect((function(){if(n&&t.current)return bI(t.current)}),[t,n])}(r,o),wI(r,o);var a=r.role,s=r.className,c=r.ariaLabel,l=r.ariaLabelledBy,u=r.ariaDescribedBy,d=r.style,p=r.children,h=r.onDismiss,f=function(e,t){var n=_I(),r=Fd.useState(!1),o=r[0],i=r[1];return Fd.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),m=Fd.useCallback((function(e){if(e.which===iv)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return CI(W_(),"keydown",m),Fd.createElement("div",(0,e.__assign)({ref:i},A_(r,I_),{className:s,role:a,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,onKeyDown:m,style:(0,e.__assign)({overflowY:f?"scroll":void 0,outline:"none"},d)}),p)}));function SI(e,t){var n=Fd.useRef(),r=Fd.useRef(null),o=W_();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=vv(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]}kI.displayName="Popup";var TI=((xI={})[MT.top]=My.slideUpIn10,xI[MT.bottom]=My.slideDownIn10,xI[MT.left]=My.slideLeftIn10,xI[MT.right]=My.slideRightIn10,xI),II=0,AI=0,PI={opacity:0,filter:"opacity(0)",pointerEvents:"none"},DI=["role","aria-roledescription"],RI={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Dk},MI=Ww({disableCaching:!0});function NI(t,n,r,o,i){var a=Fd.useState(),s=a[0],c=a[1],l=Fd.useRef(0),u=Fd.useRef(),d=_I(),p=t.hidden,h=t.target,f=t.finalHeight,m=t.calloutMaxHeight,g=t.onPositioned,v=t.directionalHint;return Fd.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=m?"".concat(m):"",b.style.visibility="hidden",null===(a=r.parentElement)||void 0===a||a.appendChild(b);var _=u.current===h?s:void 0,C=f?vI(y,n.current,b,_):function(e,t,n,r){return gI(e,t,n,r)}(y,n.current,b,_);null===(d=r.parentElement)||void 0===d||d.removeChild(b),!s&&C||s&&C&&(v=C,!FI((p=s).elementPosition,v.elementPosition)||!FI(p.beakPosition.elementPosition,v.beakPosition.elementPosition))&&l.current<5?(l.current++,c(C)):l.current>0&&(l.current=0,null===g||void 0===g||g(s))}}),r);return u.current=h,function(){d.cancelAnimationFrame(a),u.current=void 0}}c(void 0),l.current=0}),[p,v,d,r,m,n,o,f,i,g,s,t,h]),s}var LI=Fd.memo(Fd.forwardRef((function(t,n){var r=WC(RI,t),o=r.styles,i=r.style,a=r.ariaLabel,s=r.ariaDescribedBy,c=r.ariaLabelledBy,l=r.className,u=r.isBeakVisible,d=r.children,p=r.beakWidth,h=r.calloutWidth,f=r.calloutMaxWidth,m=r.calloutMinWidth,g=r.doNotLayer,v=r.finalHeight,y=r.hideOverflow,b=void 0===y?!!v:y,_=r.backgroundColor,C=r.calloutMaxHeight,E=r.onScroll,w=r.shouldRestoreFocus,x=void 0===w||w,k=r.target,S=r.hidden,T=r.onLayerMounted,I=r.popupProps,A=Fd.useRef(null),P=Fd.useState(null),D=P[0],R=P[1],M=Fd.useCallback((function(e){R(e)}),[]),N=jC(A,n),L=SI(r.target,{current:D}),O=L[0],F=L[1],B=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?RI.minPagePadding:o,a=e.target,s=Fd.useState(!1),c=s[0],l=s[1],u=Fd.useRef(),d=Fd.useCallback((function(){if(!u.current||c){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,c=n;s<c.length;s++){var l=c[s];r&&l.left<=r&&l.right>=r&&o&&l.top<=o&&l.bottom>=o&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.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,c&&l(!1)}return u.current}),[r,i,a,t,n,c]),p=_I();return CI(n,"resize",p.debounce((function(){l(!0)}),500,{leading:!0})),d}(r,O,F),H=NI(r,A,D,O,B),z=function(e,t,n){var r,o=e.calloutMaxHeight,i=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,c=e.hidden,l=Fd.useState(),u=l[0],d=l[1],p=null!==(r=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==r?r:{},h=p.top,f=p.bottom;return Fd.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 f&&"number"===typeof i&&a&&(n=a-i-f),d(!o&&!c||o&&n&&o>n?n:o||void 0)}),[f,o,i,a,s,t,c,n,h]),u}(r,B,H),V=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,c=e.preventDismissOnResize,l=e.preventDismissOnLostFocus,u=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,h=Fd.useRef(!1),f=_I(),m=cx([function(){h.current=!0},function(){h.current=!1}]),g=!!t;return Fd.useEffect((function(){var e=function(e){g&&!s&&v(e)},t=function(e){c||p&&p(e)||null===a||void 0===a||a(e)},m=function(e){l||v(e)},v=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,s=n.current&&!Dx(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&&!Dx(r.current,i))){if(p&&p(e))return;null===a||void 0===a||a(e)}},y=function(e){d&&((!p||p(e))&&(p||l)||(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){f.setTimeout((function(){if(!i&&o){var r=[OT(o,"scroll",e,!0),OT(o,"resize",t,!0),OT(o.document.documentElement,"focus",m,!0),OT(o.document.documentElement,"click",m,!0),OT(o,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[i,f,n,r,o,a,d,u,l,c,s,g,p]),m}(r,H,A,O,F),U=V[0],W=V[1],j=(null===H||void 0===H?void 0:H.elementPosition.top)&&(null===H||void 0===H?void 0:H.elementPosition.bottom),q=(0,e.__assign)((0,e.__assign)({},null===H||void 0===H?void 0:H.elementPosition),{maxHeight:z});if(j&&(q.bottom=void 0),function(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=_I(),a=!!t;Fd.useEffect((function(){if(!r&&o&&a&&n){var e=i.requestAnimationFrame((function(){return Nx(n)}),n);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}(r,H,D),Fd.useEffect((function(){S||null===T||void 0===T||T()}),[S]),!F)return null;var G=b,K=u&&!!k,Y=MI(o,{theme:r.theme,className:l,overflowYHidden:G,calloutWidth:h,positions:H,beakWidth:p,backgroundColor:_,calloutMaxWidth:f,calloutMinWidth:m,doNotLayer:g}),Q=(0,e.__assign)((0,e.__assign)({maxHeight:C||"100%"},i),G&&{overflowY:"hidden"}),X=r.hidden?{visibility:"hidden"}:void 0;return Fd.createElement("div",{ref:N,className:Y.container,style:X},Fd.createElement("div",(0,e.__assign)({},A_(r,I_,DI),{className:P_(Y.root,H&&H.targetEdge&&TI[H.targetEdge]),style:H?(0,e.__assign)({},q):PI,tabIndex:-1,ref:M}),K&&Fd.createElement("div",{className:Y.beak,style:OI(H)}),K&&Fd.createElement("div",{className:Y.beakCurtain}),Fd.createElement(kI,(0,e.__assign)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:c,className:Y.calloutMain,onDismiss:r.onDismiss,onMouseDown:U,onMouseUp:W,onRestoreFocus:r.onRestoreFocus,onScroll:E,shouldRestoreFocus:x,style:Q},I),d)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||wC(e,t)}));function OI(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=AI,o.top=II),o}function FI(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 BI(e){return{height:e,width:e}}LI.displayName="CalloutContentBase";var HI={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},zI=Lw(LI,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,c=e.calloutMaxWidth,l=e.calloutMinWidth,u=e.doNotLayer,d=$y(HI,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?Wy.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[By]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!c&&{maxWidth:c},!!l&&{minWidth:l}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},BI(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"}),VI=Fd.createContext(void 0),UI=function(){return function(){}};VI.Provider;function WI(t,n){void 0===t&&(t={});var r=qI(n)?n:function(t){return function(n){return t?(0,e.__assign)((0,e.__assign)({},n),t):n}}(n);return r(t)}function jI(t,n){return void 0===t&&(t={}),(qI(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 qI(e){return"function"===typeof e}var GI=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(){sb.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){sb.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,t=this.props.contextTransform;return Fd.createElement(t_.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:WI(r.settings,e.settings),scopedSettings:jI(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),Fd.createElement(t_.Provider,{value:r},e.props.children)}))},n}(Fd.Component),KI=Ww(),YI=Jg((function(t,n){return lC((0,e.__assign)((0,e.__assign)({},t),{rtl:n}))})),QI=Fd.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.applyTheme,a=t.applyThemeToBody,s=t.styles,c=KI(s,{theme:o,applyTheme:i,className:r}),l=Fd.useRef(null);return function(e,t,n){var r=t.bodyThemed;Fd.useEffect((function(){if(e){var t=vv(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,c,l),Fd.createElement(Fd.Fragment,null,function(t,n,r,o){var i=n.root,a=t.as,s=void 0===a?"div":a,c=t.dir,l=t.theme,u=A_(t,I_,["dir"]),d=function(e){var t=e.theme,n=e.dir,r=wv(t)?"rtl":"ltr",o=wv()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(t),p=d.rootDir,h=d.needsTheme,f=Fd.createElement(HC,{providerRef:r},Fd.createElement(s,(0,e.__assign)({dir:p},u,{className:i,ref:jC(r,o)})));h&&(f=Fd.createElement(GI,{settings:{theme:YI(l,"rtl"===c)}},f));return f}(t,c,l,n))}));QI.displayName="FabricBase";var XI={fontFamily:"inherit"},ZI={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},JI=Lw(QI,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[$y(ZI,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":XI,"& input":XI,"& textarea":XI},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});var $I={},eA={},tA="fluent-default-layer-host",nA="#".concat(tA);var rA,oA=gv()?Fd.useLayoutEffect:Fd.useEffect,iA=Ww(),aA=Fd.forwardRef((function(t,n){var r=function(){var e;return null!==(e=Fd.useContext(VI))&&void 0!==e?e:UI}(),o=Fd.useRef(null),i=jC(o,n),a=Fd.useRef(),s=Fd.useRef(null),c=Fd.useContext(RC),l=Fd.useState(!1),u=l[0],d=l[1],p=Fd.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(jy);e&&n&&e.classList.add(jy)}),[c]),h=t.children,f=t.className,m=t.eventBubblingEnabled,g=t.fabricProps,v=t.hostId,y=t.insertFirst,b=t.onLayerDidMount,_=void 0===b?function(){}:b,C=t.onLayerMounted,E=void 0===C?function(){}:C,w=t.onLayerWillUnmount,x=t.styles,k=t.theme,S=jC(s,null===g||void 0===g?void 0:g.ref,p),T=iA(x,{theme:k,className:f,isNotHost:!v}),I=function(e){var t,n;if(v){var r=function(e){var t=eA[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=nA,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",tA),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},A=function(){null===w||void 0===w||w();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},P=function(){var e,t=vv(o.current);if(t){var n=I(t);if(n){A();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=T.root,r.setAttribute(ak,"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 oA((function(){P(),v&&function(e,t){$I[e]||($I[e]=[]),$I[e].push(t);var n=eA[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(v,P);var e=a.current?r(a.current):void 0;return function(){e&&e(),A(),v&&function(e,t){var n=$I[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete $I[e])}var o=eA[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(v,P)}}),[v]),Fd.useEffect((function(){a.current&&u&&(null===E||void 0===E||E(),null===_||void 0===_||_(),d(!1))}),[u,E,_]),Fd.createElement("span",{className:"ms-layer",ref:i},a.current&&qd.createPortal(Fd.createElement(HC,{layerRoot:!0,providerRef:S},Fd.createElement(JI,(0,e.__assign)({},!m&&function(){rA||(rA={},["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 rA[e]=sA})));return rA}(),g,{className:P_(T.content,null===g||void 0===g?void 0:g.className),ref:S}),h)),a.current))}));aA.displayName="LayerBase";var sA=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var cA={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},lA=Lw(aA,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=$y(cA,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Wy.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"]}),uA=Fd.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,i=(0,e.__rest)(t,["layerProps","doNotLayer"]),a=Fd.createElement(zI,(0,e.__assign)({},i,{doNotLayer:o,ref:n}));return o?a:Fd.createElement(lA,(0,e.__assign)({},r),a)}));uA.displayName="Callout";var dA,pA=Ww(),hA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"===typeof t.content?Fd.createElement("p",{className:e._classNames.subText},t.content):Fd.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,c=t.maxWidth,l=t.onRenderContent,u=void 0===l?this._onRenderContent:l,d=t.targetElement,p=t.theme;return this._classNames=pA(a,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),Fd.createElement(uA,(0,e.__assign)({target:d,directionalHint:o,directionalHintForRTL:i},r,A_(this.props,I_,["id"]),{className:this._classNames.root}),Fd.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:kk,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(Fd.Component),fA=Lw(hA,(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,c=s.semanticColors,l=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,My.fadeIn200,{background:c.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",l.small,{position:"relative",zIndex:1,color:c.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"}(dA||(dA={}));var mA=Ww(),gA=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=Fd.createRef(),r._defaultTooltipId=fC("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 RT.Parent:return r._tooltipHost.current.parentElement;case RT.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||!sk(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==dA.zero){var c=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),c)}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===iv||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 dA.medium:return 300;case dA.long:return 500;default:return 0}},Yx(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new LT(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,c=t.id,l=t.setAriaDescribedBy,u=void 0===l||l,d=t.tooltipProps,p=t.styles,h=t.theme;this._classNames=mA(p,{theme:h,className:s});var f=this.state.isTooltipVisible,m=c||this._defaultTooltipId,g=(0,e.__assign)((0,e.__assign)({id:"".concat(m,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:xC({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},A_(this.props,I_,["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)?Fd.createElement(Fd.Fragment,null,e.content):null})):o,y=f&&!!v,b=u&&f&&v?m:void 0;return Fd.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&&Fd.createElement(fA,(0,e.__assign)({},g)),Fd.createElement("div",{hidden:!0,id:m,style:Zy},v))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:dA.medium},n}(Fd.Component),vA={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},yA=Lw(gA,(function(e){var t=e.className,n=e.theme;return{root:[$y(vA,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),bA=function(e){return{backgroundColor:e.palette.neutralHigh,styles:{beakCurtain:{backgroundColor:e.palette.neutralHigh}}}},_A=function(e){var t=e.children,n=e.tooltipText,r=e.tooltipPosition;V_("TooltipHost");var o=Mw();return Bd().createElement(yA,{directionalHint:Bk[r||"top-center"],content:n,calloutProps:bA(o)},t)},CA=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},EA=function(e){var t=e;return t.includes("px")&&(t=t.replace("px","")),+t},wA=function(e){return EA(CA(e,"font-size"))},xA=function(e){var t=CA(e,"line-height");return"normal"===t?1.4*wA(e):EA(t)},kA=function(e,t){return Math.round(e*t)},SA=function(t){var n,r=t.type,o=t.lines,i=void 0===o?1:o,a=t.stopPropagation,s=void 0===a||a,c=t.onTruncatedFocusable,l=void 0===c||c,u=t.lineHeight,d=(0,e.__rest)(t,["type","lines","stopPropagation","onTruncatedFocusable","lineHeight"]);V_("TruncatedText",d.id);var p=(0,Fd.useRef)(null),h=(0,Fd.useState)(void 0),f=h[0],m=h[1],g=(0,Fd.useState)(!1),v=g[0],y=g[1],b=function(){p.current&&y(function(e,t){var n=xA(e),r=kA(n,t);return e.scrollHeight>r}(p.current,i))},_=function(){var e;(null===(e=p.current)||void 0===e?void 0:e.firstElementChild)&&m(wA(p.current.firstElementChild))};(0,Fd.useLayoutEffect)((function(){return window.addEventListener("resize",_),window.addEventListener("resize",b),function(){window.removeEventListener("resize",b),window.removeEventListener("resize",_)}}),[]),(0,Fd.useLayoutEffect)((function(){_()}),[p]),(0,Fd.useLayoutEffect)((function(){b()}),[f,d.children]);var C=v&&l?{"data-is-focusable":!0,tabIndex:0}:null,E=IT()&&p.current?{height:kA(xA(p.current),i),overflowY:"scroll"}:void 0,w=Bd().createElement("span",(0,e.__assign)({ref:p},C,{style:(0,e.__assign)({fontSize:f,overflow:"hidden",boxSizing:"content-box",whiteSpace:"normal",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i,color:null!==(n=d.colorOverride)&&void 0!==n?n:void 0,lineHeight:null!==u&&void 0!==u?u:void 0},E)}),"heading"===r?Bd().createElement(aT,(0,e.__assign)({},d)):Bd().createElement(DT,(0,e.__assign)({},d)));if(v&&!IT()){var x=Bd().createElement(_A,{tooltipText:d.children,tooltipPosition:"bottom-left"},w);return s?Bd().createElement(PT,null,x):x}return w},TA=function(t){var n,r=t.children,o=t.disabled,i=t.truncatedLinkProps,a=t.textVariant,s=void 0===a?"bodyThemeText":a,c=t.underline,l=(0,e.__rest)(t,["children","disabled","truncatedLinkProps","textVariant","underline"]);V_("Hyperlink",l.id);var u,d,p,h=bm(),f=Mw(),m="download"in l?l.download:void 0,g="href"in l?l.href:void 0;g||(g="#",o||(p=Vf,u="to"in l?l.to:void 0,d="replace"in l?l.replace:void 0));var v=l.title,y=(0,e.__rest)(l,["title"]);delete y.textVariant,Ek("Hyperlink",y);var b=v||y["aria-label"];"string"!==typeof r&&gx(r,[aT,ST],"Hyperlink"),"target"in y&&(y.rel="noreferrer noopener");var _=oT(f,s,void 0,o?"disabled":void 0),C={root:(n={fontSize:_.fontSize,fontWeight:_.fontWeight,lineHeight:_.lineHeight,fontFamily:_.fontFamily,selectors:_.selectors,color:_.color,":hover":{color:_.hoverColor}},n[By]={color:"linktext",":focus > span":{color:"Highlight",outline:"1px solid Highlight"}},n)};return(0,Fd.useEffect)((function(){h.checkUrlAndReportHttp(g)}),[g]),Bd().createElement($S,(0,e.__assign)({href:g,title:b,disabled:o,styles:C},y,{as:p,to:u,replace:d,download:m,underline:c}),i?Bd().createElement(SA,{lines:i.lines,variant:s,stopPropagation:!1},r):r)},IA=function(t){var n,r=t.children,o=t.disabled,i=t.textVariant,a=void 0===i?"bodyThemeText":i,s=t.truncatedLinkProps,c=t.underline,l=(0,e.__rest)(t,["children","disabled","textVariant","truncatedLinkProps","underline"]);V_("NoHrefLink",l.id),Ek("NoHrefLink",l);var u=Mw(),d=oT(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={})[By]={color:"linktext"},n["@media screen and (-ms-high-contrast: active)"]={color:"-ms-hotlight"},n)),Bd().createElement($S,(0,e.__assign)({disabled:o,styles:p,underline:c},l),s?Bd().createElement(SA,{lines:s.lines,variant:a,stopPropagation:!1},r):r)},AA=function(t){var n=t.textWithTokens,r=t.tokensAndValues,o=t.truncatedTextProps,i=(0,e.__rest)(t,["textWithTokens","tokensAndValues","truncatedTextProps"]);V_("RichText",i.id);var a=function(e){return e.split(ep).filter((function(e){return""!==e}))}(n);return o?Bd().createElement(SA,(0,e.__assign)({},i,o),tp(a,r,PA)):Bd().createElement(DT,(0,e.__assign)({},i),tp(a,r,PA))},PA=function(t){var n=[IA],r=[TA],o=null===t||void 0===t?void 0:t.type;if(n.includes(o)){var i=t.props;return Bd().createElement(IA,(0,e.__assign)({},i,{underline:!0}))}if(r.includes(o)){i=t.props;return Bd().createElement(TA,(0,e.__assign)({},i,{underline:!0}))}return t},DA=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 c=oT(e,"metadataText");return{itemProgress:{padding:"0px",borderRadius:"4px"},itemName:{fontSize:c.fontSize,fontWeight:c.fontWeight,lineHeight:c.lineHeight,fontFamily:c.fontFamily,color:c.color,selectors:c.selectors},progressBar:{borderRadius:s,backgroundColor:n},progressTrack:(i={borderRadius:s,backgroundColor:r},i[By]={backgroundColor:"windowText"},i),root:{maxWidth:a}}},RA=function(e){return Bd().createElement(wT,null,Bd().createElement(AA,{textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues,truncatedTextProps:e.truncatedTextProps}))},MA=function(e){var t,n,r=e.label,o=e.labelTextVariant,i=void 0===o?"headerText":o,a=e.description,s=e.percentComplete,c=e.ariaValueText,l=e.ariaLabel,u=e.icon,d=e.usage,p=e.barColor,h=void 0===p?"themePrimary":p,f=e.trackColor,m=void 0===f?"neutralLight":f,g=e.barType,v=e.isStackStyle,y=e.size;V_("ProgressIndicator");var b,_=Mw();b=g?"thick"===g?8:4:s||0===s?4:2;var C=null!==(t=_.palette[h])&&void 0!==t?t:_.semanticColors[h],E=null!==(n=_.palette[m])&&void 0!==n?n:_.semanticColors[m],w=Bd().createElement(SA,{lines:3,variant:"metadataText"},a);return Bd().createElement(gS,{styles:DA(_,y,C,E,g),label:Bd().createElement(wT,{horizontal:!v,horizontalAlign:"space-between",wrap:!0},Bd().createElement(wT,{horizontal:!0,childrenGap:5},u&&!v?Bd().createElement(WS,{iconName:u.iconName,size:u.size,color:u.color,disabled:u.disabled}):null,r?"string"===typeof r?Bd().createElement(wT,null,Bd().createElement(SA,{lines:2,variant:i},r)):RA(r):null),d?RA(d):null),description:w,percentComplete:s,ariaValueText:c,barHeight:b,ariaLabel:l})},NA=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}}}}},LA=function(e){return{root:{width:e?"calc(100% - 48px)":"100%"}}},OA=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)}}},FA=function(e){return{root:{padding:"0px"!==e?"0px 0px 0px ".concat(e):void 0}}},BA=function(){return wv()},HA=function(e){if(BA())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},zA=function(){return Eb()||navigator.language},VA=new RegExp("^(([0-1]?[0-9]|2[0-3])(:[0-5][0-9])(:[0-5][0-9])(:[0-5][0-9])?)$|^24:00:00$|^24:00:00:00$"),UA="01/01/1996",WA=function(e,t){return KA(e).toLocaleDateString(t||zA(),{year:"numeric",month:"long",day:"numeric"})},jA=function(e,t){return YA(e).toLocaleTimeString(t||zA(),{hour:"2-digit",minute:"2-digit"})},qA=function(e,t){return KA(e).toLocaleDateString(t||zA(),{year:"numeric",month:"short",day:"numeric"})},GA=function(e){return function(){return e?"string"===typeof e&&isNaN(Date.parse(e))?"dateTimeFormat: Unsupported timestamp format":void 0:"dateTimeFormat: timestamp not specified"}},KA=function(e){Ex("dateTimeFormat",[GA(e)]);var t=e;return"string"===typeof e&&(t=new Date(e)),t},YA=function(e){if("string"===typeof e){if(VA.test(e))return new Date("".concat(UA," ").concat(e));if("1.00:00:00"===e)return new Date("".concat(UA," ").concat(e.slice(-8)))}return KA(e)},QA=function(e,t,n){return{transform:"start"===n?XA(t):ZA(t),transition:"transform 0.1s linear 0s",fontSize:"16px",fontFamily:"AMC Icons",color:e.palette.neutralSecondary}},XA=function(e){var t=BA(),n="rotate(0deg)";return e&&t&&(n="rotate(-90deg)"),e&&!t&&(n="rotate(90deg)"),n},ZA=function(e){var t=BA(),n="rotate(0deg)";return e&&t&&(n="rotate(-180deg)"),e&&!t&&(n="rotate(180deg)"),n},JA=function(e){var t=e.chevronPosition,n=void 0===t?"start":t,r=(0,Fd.useContext)(kM),o=Mw(),i="start"===n?HA("ChevronRightMed"):"ChevronDownMed";return Bd().createElement("span",{role:"presentation","data-icon-name":i,className:i,style:QA(o,r.drawerOpen,n)})},$A=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),xC(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 c=t.__events__,l=c?c[n]:null;if(l)for(var u in l)if(l.hasOwnProperty(u))for(var d=l[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 c=this._parent,l={target:t,eventName:n,parent:c,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(l),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(c,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};l.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{l.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(c,e)}}this._eventRecords.push(l)}},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],c=s?s[this._id]:null;c&&(1!==c.length&&n?(s.count--,c.splice(c.indexOf(i),1)):(s.count-=c.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}();var eP,tP,nP,rP;!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++)oP(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 LT(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 $A(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))}}(Fd.Component);function oP(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 iP(){return null}function aP(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(){sb.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){sb.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return Fd.createElement(t_.Consumer,null,(function(a){var s=sb.getSettings(n,t,a.customizations),c=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles((0,e.__assign)((0,e.__assign)({},s),c))),r&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==c.styles){var l=Yb(s.styles,c.styles);i._styleCache.default=s.styles,i._styleCache.component=c.styles,i._styleCache.merged=l}return Fd.createElement(o,(0,e.__assign)({},s,c,{styles:i._styleCache.merged}))}return Fd.createElement(o,(0,e.__assign)({},s,c))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(Fd.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 sP(){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"}(eP||(eP={})),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"}(tP||(tP={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(nP||(nP={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(rP||(rP={}));var cP=Ww(),lP=/\.svg$/i;var uP=Fd.forwardRef((function(t,n){var r=Fd.useRef(),o=Fd.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,i=e.src,a=Fd.useState(rP.notLoaded),s=a[0],c=a[1];oA((function(){c(rP.notLoaded)}),[i]),Fd.useEffect((function(){s===rP.notLoaded&&t.current&&(i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&lP.test(i))&&c(rP.loaded)})),Fd.useEffect((function(){null===n||void 0===n||n(s)}),[s]);var l=Fd.useCallback((function(e){null===r||void 0===r||r(e),i&&c(rP.loaded)}),[i,r]),u=Fd.useCallback((function(e){null===o||void 0===o||o(e),c(rP.error)}),[o]);return[s,l,u]}(t,o),a=i[0],s=i[1],c=i[2],l=A_(t,T_,["width","height"]),u=t.src,d=t.alt,p=t.width,h=t.height,f=t.shouldFadeIn,m=void 0===f||f,g=t.shouldStartVisible,v=t.className,y=t.imageFit,b=t.role,_=t.maximizeFrame,C=t.styles,E=t.theme,w=t.loading,x=function(e,t,n,r){var o=Fd.useRef(t),i=Fd.useRef();(void 0===i||o.current===rP.notLoaded&&t===rP.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===rP.loaded&&(o===tP.cover||o===tP.contain||o===tP.centerContain||o===tP.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==tP.centerContain&&o!==tP.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return nP.landscape}return nP.portrait}(e,t,n,r));return o.current=t,i.current}(t,a,o,r),k=cP(C,{theme:E,className:v,width:p,height:h,maximizeFrame:_,shouldFadeIn:m,shouldStartVisible:g,isLoaded:a===rP.loaded||a===rP.notLoaded&&t.shouldStartVisible,isLandscape:x===nP.landscape,isCenter:y===tP.center,isCenterContain:y===tP.centerContain,isCenterCover:y===tP.centerCover,isContain:y===tP.contain,isCover:y===tP.cover,isNone:y===tP.none,isError:a===rP.error,isNotImageFit:void 0===y});return Fd.createElement("div",{className:k.root,style:{width:p,height:h},ref:r},Fd.createElement("img",(0,e.__assign)({},l,{onLoad:s,onError:c,key:"fabricImage"+t.src||"",className:k.image,ref:jC(o,n),src:u,alt:d,role:b,loading:w})))}));uP.displayName="ImageBase";var dP={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"},pP=Lw(uP,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,c=e.isLandscape,l=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=$y(dP,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=bv(),C=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,E=u&&c||d&&!c?{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&&My.fadeIn400,(l||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[y.imageCenter,b],u&&[y.imageContain,C&&{width:"100%",height:"100%",objectFit:"contain"},!C&&E,!C&&b],d&&[y.imageCover,C&&{width:"100%",height:"100%",objectFit:"cover"},!C&&E,!C&&b],p&&[y.imageCenterContain,c&&{maxWidth:"100%"},!c&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,c&&{maxHeight:"100%"},!c&&{maxWidth:"100%"},b],f&&[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%"}],c&&y.imageLandscape,!c&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0);pP.displayName="Image";var hP=Xb({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),fP="ms-Icon",mP=Jg((function(e){var t=function(e){var t=void 0,n=zb.__options;if(e=e?Ub(e):"",e=zb.__remapped[e]||e)if(t=zb[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(_b(r.fontFace),r.isRegistered=!0),r.className||(r.className=jg(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Hb('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),gP=function(t){var n=t.iconName,r=t.className,o=t.style,i=void 0===o?{}:o,a=mP(n)||{},s=a.iconClassName,c=a.children,l=a.fontFamily,u=a.mergeImageProps,d=A_(t,s_),p=t["aria-label"]||t.title,h=t["aria-label"]||t["aria-labelledby"]||t.title?{role:u?void 0:"img"}:{"aria-hidden":!0},f=c;return u&&"object"===typeof c&&"object"===typeof c.props&&p&&(f=Fd.cloneElement(c,{alt:p})),Fd.createElement("i",(0,e.__assign)({"data-icon-name":n},h,d,u?{title:void 0,"aria-label":void 0}:{},{className:P_(fP,hP.root,s,!n&&hP.placeholder,r),style:(0,e.__assign)({fontFamily:l},i)}),f)},vP=(Jg((function(e,t,n){return gP({iconName:e,className:t,"aria-label":n})})),Ww({cacheSize:100})),yP=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===rP.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,c="string"===typeof i&&0===i.length,l=!!this.props.imageProps||this.props.iconType===eP.image||this.props.iconType===eP.Image,u=mP(i)||{},d=u.iconClassName,p=u.children,h=u.mergeImageProps,f=vP(o,{theme:s,className:r,iconClassName:d,isImage:l,isPlaceholder:c}),m=l?"span":"i",g=A_(this.props,s_,["aria-label"]),v=this.state.imageLoadError,y=(0,e.__assign)((0,e.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=v&&a||pP,_=this.props["aria-label"]||this.props.ariaLabel,C=y.alt||_||this.props.title,E=!!(C||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"])?{role:l||h?void 0:"img","aria-label":l||h?void 0:C}:{"aria-hidden":!0},w=p;return h&&p&&"object"===typeof p&&C&&(w=Fd.cloneElement(p,{alt:C})),Fd.createElement(m,(0,e.__assign)({"data-icon-name":i},E,g,h?{title:void 0,"aria-label":void 0}:{},{className:f.root}),l?Fd.createElement(b,(0,e.__assign)({},y)):n||w)},n}(Fd.Component),bP=Lw(yP,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&hP.placeholder,hP.root,o&&hP.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);bP.displayName="Icon";var _P=function(t){var n=t.className,r=t.imageProps,o=A_(t,s_,["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},c=a?{}:{"aria-hidden":!0};return Fd.createElement("div",(0,e.__assign)({},c,o,{className:P_(fP,hP.root,hP.image,n)}),Fd.createElement(pP,(0,e.__assign)({},s,r,{alt:a?i:""})))};var CP,EP,wP=$g((function(e){return $g((function(t){var n=$g((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function xP(e,t){return wP(e)(t)}function kP(e){var t;if("undefined"===typeof EP||e){var n=bv(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;EP=!!r&&-1!==r.indexOf("Macintosh")}return!!EP}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(CP||(CP={}));var SP=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function TP(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function IP(e){return!(!e.subMenuProps&&!e.items)}function AP(e){return!(!e.isDisabled&&!e.disabled)}function PP(e){return null!==TP(e)?"menuitemcheckbox":"menuitem"}var DP,RP=function(t){var n=t.item,r=t.classNames,o=n.iconProps;return Fd.createElement(bP,(0,e.__assign)({},o,{className:r.icon}))},MP=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,RP):RP(e):null},NP=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=TP(n);if(t){return Fd.createElement(bP,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},LP=function(e){var t=e.item,n=e.classNames;return t.text||t.name?Fd.createElement("span",{className:n.label},t.text||t.name):null},OP=function(e){var t=e.item,n=e.classNames;return t.secondaryText?Fd.createElement("span",{className:n.secondaryText},t.secondaryText):null},FP=function(t){var n=t.item,r=t.classNames,o=t.theme;return IP(n)?Fd.createElement(bP,(0,e.__assign)({iconName:wv(o)?"ChevronLeft":"ChevronRight"},n.submenuIconProps,{className:r.subMenuIcon})):null},BP=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();IP(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;IP(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Yx(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 Fd.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:NP,renderItemIcon:MP,renderItemName:LP,renderSecondaryText:OP,renderSubMenuIcon:FP}))},n.prototype._renderLayout=function(e,t){return Fd.createElement(Fd.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},n}(Fd.Component),HP=Jg((function(e){return Xb({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),zP=36,VP=Uy(0,639),UP=Jg((function(t){var n,r,o,i,a,s=t.semanticColors,c=t.fonts,l=t.palette,u=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,h=s.bodyDivider;return Yb({item:[c.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[Yy(t),c.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:zP,lineHeight:zP,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(n={},n[By]={color:"GrayText",opacity:1},n)},rootHovered:{backgroundColor:u,color:d,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:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(o={},o[By]={color:"inherit"},o)},r[By]=(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:zP,fontSize:Ry.medium,width:Ry.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[VP]={fontSize:Ry.large,width:Ry.large},i)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:zP,lineHeight:zP,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Ry.small,selectors:(a={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},a[VP]={fontSize:Ry.medium},a)},splitButtonFlexContainer:[Yy(t),{display:"flex",height:zP,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),WP="28px",jP=Uy(0,639),qP=Jg((function(e){var t;return Xb(HP(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[jP]={right:32},t)},divider:{height:16,width:1}})})),GP={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"},KP=Jg((function(e,t,n,r,o,i,a,s,c,l,u,d){var p,h,f,m,g=UP(e),v=$y(GP,e);return Xb({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(jy," &:focus, .").concat(jy," &:focus:hover")]=g.rootFocused,p[".".concat(jy," &:hover")]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - ".concat(WP,")")},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(jy," &:focus, .").concat(jy," &:focus:hover")]=g.rootFocused,h[".".concat(jy," &:hover")]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:WP},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f[".".concat(jy," &:focus, .").concat(jy," &:focus:hover")]=g.rootFocused,f[".".concat(jy," &:hover")]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,c,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,c],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,l,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(m={},m[".".concat(jy," &:focus, .").concat(jy," &:focus:hover")]=g.rootFocused,m)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,Zy,{visibility:"hidden"}]})})),YP=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,c=e.dividerClassName,l=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return KP(t,n,r,o,i,a,s,c,l,u,d,p)},QP=Lw(BP,YP,void 0,{scope:"ContextualMenuItem"}),XP=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(){},Yx(n),n}return(0,e.__extends)(n,t),n.prototype.shouldComponentUpdate=function(e){return!wC(e,this.props)},n}(Fd.Component);function ZP(e){var t=(0,Fd.useRef)();return(0,Fd.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"}(DP||(DP={}));var JP=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?DP.PERSISTED_KEYTIP_ADDED:DP.KEYTIP_ADDED;$A.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||$A.raise(this,DP.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?DP.PERSISTED_KEYTIP_REMOVED:DP.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||$A.raise(this,r,{keytip:e,uniqueID:t})},t.prototype.enterKeytipMode=function(){$A.raise(this,DP.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){$A.raise(this,DP.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){$A.raise(this,DP.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=fC()),{keytip:(0,e.__assign)({},t),uniqueID:n}},t._instance=new t,t}();function $P(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function eD(t){var n=Fd.useRef(),r=t.keytipProps?(0,e.__assign)({disabled:t.disabled},t.keytipProps):void 0,o=cx(JP.getInstance()),i=ZP(t);oA((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)})),oA((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=sP(r,function(e){var t=" ktp-layer-id";return e.length?t+" "+$P(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=$P(a);return{ariaDescribedBy:i,keytipId:s}}(o,r,t.ariaDescribedBy)),a}var tD=function(t){var n,r=t.children,o=eD((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))},nD=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._anchor=Fd.createRef(),n._getMemoizedMenuButtonKeytipProps=Jg((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?Fd.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,c=n.hasCheckmarks,l=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?QP:u,p=n.expandedMenuItemKey,h=n.onItemClick,f=n.openSubMenu,m=n.dismissSubMenu,g=n.dismissMenu,v=r.rel;r.target&&"_blank"===r.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=IP(r),b=A_(r,h_),_=AP(r),C=r.itemProps,E=r.ariaDescription,w=r.keytipProps;w&&y&&(w=this._getMemoizedMenuButtonKeytipProps(w)),E&&(this._ariaDescriptionId=fC());var x=sP(r.ariaDescribedBy,E?this._ariaDescriptionId:void 0,b["aria-describedby"]),k={"aria-describedby":x};return Fd.createElement("div",null,Fd.createElement(tD,{keytipProps:r.keytipProps,ariaDescribedBy:x,disabled:_},(function(n){return Fd.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":AP(r),style:r.style,onClick:t._onItemClick,onMouseEnter:t._onItemMouseEnter,onMouseLeave:t._onItemMouseLeave,onMouseMove:t._onItemMouseMove,onKeyDown:y?t._onItemKeyDown:void 0}),Fd.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:c&&h?h:void 0,hasIcons:l,openSubMenu:f,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:t._getSubmenuTarget},C)),t._renderAriaDescription(E,o.screenReaderText))})))},n}(XP),rD=Ww(),oD=Fd.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=rD(n,{theme:r,getClassNames:o,className:i});return Fd.createElement("span",{className:a.wrapper,ref:t},Fd.createElement("span",{className:a.divider}))}));oD.displayName="VerticalDividerBase";var iD=Lw(oD,(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"}),aD=function(t){function n(n){var r=t.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=Jg((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===rv?(r._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(n,e)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(e,t){return e?Fd.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 LT(r),r._events=new $A(r),r._dismissLabelId=fC(),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,c=r.totalItemCount,l=r.hasCheckmarks,u=r.hasIcons,d=r.onItemMouseLeave,p=r.expandedMenuItemKey,h=IP(o),f=o.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var m=o.ariaDescription;m&&(this._ariaDescriptionId=fC());var g=null!==(t=TP(o))&&void 0!==t?t:void 0;return Fd.createElement(tD,{keytipProps:f,disabled:AP(o)},(function(t){return Fd.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(e){return n._splitButton=e},role:PP(o),"aria-label":o.ariaLabel,className:i.splitContainer,"aria-disabled":AP(o),"aria-expanded":h?o.key===p:void 0,"aria-haspopup":!0,"aria-describedby":sP(o.ariaDescribedBy,m?n._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":g,"aria-posinset":s+1,"aria-setsize":c,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,l,u),n._renderSplitDivider(o),n._renderSplitIconButton(o,i,a,t),n._renderAriaDescription(m,i.screenReaderText))}))},n.prototype._renderSplitPrimaryButton=function(t,n,r,o,i){var a=this.props,s=a.contextualMenuItemAs,c=void 0===s?QP:s,l=a.onItemClick,u={key:t.key,disabled:AP(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 Fd.createElement("button",(0,e.__assign)({},A_(u,f_)),Fd.createElement(c,(0,e.__assign)({"data-is-focusable":!1,item:u,classNames:n,index:r,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},d)))},n.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||qP;return Fd.createElement(iD,{getClassNames:t})},n.prototype._renderSplitIconButton=function(t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?QP:a,c=i.onItemMouseLeave,l=i.onItemMouseDown,u=i.openSubMenu,d=i.dismissSubMenu,p=i.dismissMenu,h={onClick:this._onIconItemClick,disabled:AP(t),className:n.splitMenu,subMenuProps:t.subMenuProps,submenuIconProps:t.submenuIconProps,split:!0,key:t.key,"aria-labelledby":this._dismissLabelId},f=(0,e.__assign)((0,e.__assign)({},A_(h,f_)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:c?c.bind(this,t):void 0,onMouseDown:function(e){return l?l(t,e):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-haspopup":!0}),m=t.itemProps;return Fd.createElement("button",(0,e.__assign)({},f),Fd.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},m)))},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}(XP),sD=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._btn=Fd.createRef(),n._getMemoizedMenuButtonKeytipProps=Jg((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._renderAriaDescription=function(e,t){return e?Fd.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,c=n.hasCheckmarks,l=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?QP:u,p=n.expandedMenuItemKey,h=n.onItemMouseDown,f=n.onItemClick,m=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=TP(r),b=null!==y,_=PP(r),C=IP(r),E=r.itemProps,w=r.ariaLabel,x=r.ariaDescription,k=A_(r,f_);delete k.disabled;var S=r.role||_;x&&(this._ariaDescriptionId=fC());var T=sP(r.ariaDescribedBy,x?this._ariaDescriptionId:void 0,k["aria-describedby"]),I={className:o.root,onClick:this._onItemClick,onKeyDown:C?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":w,"aria-describedby":T,"aria-haspopup":C||void 0,"aria-expanded":C?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":AP(r),"aria-checked":"menuitemcheckbox"!==S&&"menuitemradio"!==S||!b?void 0:!!y,"aria-selected":"menuitem"===S&&b?!!y:void 0,role:S,style:r.style},A=r.keytipProps;return A&&C&&(A=this._getMemoizedMenuButtonKeytipProps(A)),Fd.createElement(tD,{keytipProps:A,ariaDescribedBy:T,disabled:AP(r)},(function(n){return Fd.createElement("button",(0,e.__assign)({ref:t._btn},k,I,n),Fd.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:c&&f?f:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:t._getSubmenuTarget},E)),t._renderAriaDescription(x,o.screenReaderText))}))},n}(XP);function cD(e,t){var n=Fd.useRef(t);return n.current||(n.current=fC(e)),n.current}var lD;!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"}(lD||(lD={}));var uD,dD,pD=[479,639,1023,1365,1919,99999999];function hD(){var e;return null!==(e=null!==uD&&void 0!==uD?uD:dD)&&void 0!==e?e:lD.large}function fD(e){try{return e.document.documentElement.clientWidth}catch(bke){return e.innerWidth}}function mD(e){var t=lD.small;if(e){try{for(;fD(e)>pD[t];)t++}catch(bke){t=hD()}dD=t}else{if(void 0===uD)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=uD}return t}var gD=function(e,t){var n=Fd.useState(hD()),r=n[0],o=n[1],i=Fd.useCallback((function(){var t=mD(bv(e.current));r!==t&&o(t)}),[e,r]);return CI(W_(),"resize",i),Fd.useEffect((function(){void 0===t&&i()}),[t]),null!==t&&void 0!==t?t:r},vD=Fd.createContext({}),yD=Ww(),bD=Ww(),_D={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Dk,beakWidth:16};function CD(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];if(o.itemType!==CP.Divider&&o.itemType!==CP.Header)t+=o.customOnRenderListLength?o.customOnRenderListLength:1}return t}function ED(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 c=s[a];if(c.preferMenuTargetAsEventTarget){var l=c.onClick,u=(0,e.__rest)(c,["onClick"]);i.push((0,e.__assign)((0,e.__assign)({},u),{onClick:RD(l,r)}))}else i.push(c)}return i}}var wD="ContextualMenu",xD=Jg((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return Qb.apply(void 0,(0,e.__spreadArray)([n,YP],t,!1))}}));function kD(e,t){var n=e.hidden,r=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,c=Fd.useState(),l=c[0],u=c[1],d=Fd.useState(),p=d[0],h=d[1],f=Fd.useState(),m=f[0],g=f[1],v=cD(wD,a),y=Fd.useCallback((function(){g(void 0),u(void 0),h(void 0)}),[]),b=Fd.useCallback((function(e,t,n){var r=e.key;l!==r&&(t.focus(),g(n),u(r),h(t))}),[l]);Fd.useEffect((function(){n&&y()}),[n,y]);var _=function(e,t){var n=Fd.useRef(!1);return Fd.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,y);return[l,b,function(){var e=DD(l,r),t=null;if(e&&(t={items:ED(e,{target:s}),target:p,onDismiss:_,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:m,directionalHint:wv(o)?Rk:Lk,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&xC(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=RD(n,s)}return t},_]}function SD(e,t,n,r){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=void 0===a?{}:a,c=s.checkForNoWrap,l=s.direction,u=void 0===l?mx.vertical:l,d=Fd.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===iv||function(e){var t=wv(o)?hv:dv;return!(e.which!==t||!i)&&!(u!==mx.vertical&&(!c||Ux(e.target,"data-no-horizontal-wrap")))}(e)||e.which===pv&&(e.altKey||e.metaKey)},f=function(e){d.current=ID(e);var t=e.which===iv&&(kP()||SP());return p(e,h,t)},m=function(e){var t=d.current&&ID(e);return d.current=!1,!!t&&!(SP()||kP())};return[f,function(e){return p(e,m,!0)},function(e){if(!f(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),r=e.which===pv,o=e.which===fv;if(!t&&(r||o)){var i=r?Mx(n.current,n.current.lastChild,!0):Rx(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=wv(o)?dv:hv;e.disabled||t.which!==n&&t.which!==rv&&(t.which!==fv||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var TD=Fd.memo(Fd.forwardRef((function(t,n){var r,o=WC(_D,t),i=(o.ref,(0,e.__rest)(o,["ref"])),a=Fd.useRef(null),s=_I(),c=cD(wD,i.id),l=function(e,t){var n;return null===(n=i.onDismiss)||void 0===n?void 0:n.call(i,e,t)},u=SI(i.target,a),d=u[0],p=u[1],h=function(e,t,n){var r=e.hidden,o=e.onRestoreFocus,i=Fd.useRef(),a=Fd.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 oA((function(){var e,o;if(r)i.current&&(a({originalElement:i.current,containsFocus:!0,documentContainsFocus:(null===(o=vv())||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],f=kD(i,l),m=f[0],g=f[1],v=f[2],y=f[3],b=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=Fd.useRef(!t),o=Fd.useRef(!1);Fd.useEffect((function(){r.current=!t,o.current=!n&&!t&&o.current}),[t,n]);var i=Fd.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,o,i]}(i),_=b[0],C=b[1],E=b[2],w=function(e){var t=Fd.useRef(!0),n=Fd.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),x=w[0],k=w[1],S=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,o=Fd.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),T=S[0],I=S[1],A=S[2],P=gD(a,i.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,i=e.onMenuOpened,a=ZP(r),s=Fd.useRef(i),c=Fd.useRef(o),l=Fd.useRef(e);s.current=i,c.current=o,l.current=e,Fd.useEffect((function(){var e,t;r&&!1===a?null===(e=c.current)||void 0===e||e.call(c,l.current):r||!1===a||null===(t=s.current)||void 0===t||t.call(s,l.current)}),[r,a]),Fd.useEffect((function(){return function(){var e;return null===(e=c.current)||void 0===e?void 0:e.call(c,l.current)}}),[])}(i);var D=SD(i,l,a,g),R=D[0],M=D[1],N=D[2],L=D[3],O=function(e,t,n,r,o,i,a,s,c,l,u,d,p){var h=e.target,f=function(){return!t.current||!i.current},m=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(l(),void 0===a&&r.focus(),IP(e)?(t.stopPropagation(),c((function(){r.focus(),u(e,r,!0)}))):c((function(){d(t),r.focus()})))},g=function(t,n,r){var o=ED(t,{target:h});if(l(),IP(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&&MD(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),f()||m(e,t,n)},function(e,a,s){var c=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&c!==(null===r||void 0===r?void 0:r.document.activeElement)&&m(e,a,s))},function(e,t){var n;if(!f()&&(l(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(bke){}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,A,p,_,C,m,a,I,T,g,y,l),F=O[0],B=O[1],H=O[2],z=O[3],V=O[4],U=O[5],W=O[6],j=function(e,t,n){var r=0,o=e.items,i=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return Fd.createElement("ul",{className:t.list,onKeyDown:R,onKeyUp:M,role:"presentation"},o.map((function(e,n){var o=q(e,n,r,i,a,s,t);if(e.itemType!==CP.Divider&&e.itemType!==CP.Header){var c=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=c}return o})))},q=function(e,t,n,r,o,a,s){var c,l,u=[],d=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,f=h?h.styles:void 0,g=e.itemType===CP.Divider?e.className:void 0,v=e.submenuIconProps?e.submenuIconProps.className:"";if(p)l=p(i.theme,AP(e),m===e.key,!!TP(e),!!e.href,"None"!==d.iconName,e.className,g,d.className,v,e.primaryDisabled);else{var y={theme:i.theme,disabled:AP(e),expanded:m===e.key,checked:!!TP(e),isAnchorLink:!!e.href,knownIcon:"None"!==d.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:d.className,subMenuClassName:v,primaryDisabled:e.primaryDisabled};l=bD(xD(null===(c=s.subComponentStyles)||void 0===c?void 0:c.menuItem,f),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=CP.Divider),e.itemType){case CP.Divider:u.push(Y(t,l));break;case CP.Header:u.push(Y(t,l));var b=X(e,l,s,t,o,a);u.push(K(b,e.key||t,l,e.title));break;case CP.Section:u.push(G(e,l,s,t,o,a));break;default:var _=function(){return Q(e,l,t,n,r,o,a)},C=i.onRenderContextualMenuItem?i.onRenderContextualMenuItem(e,_):_();u.push(K(C,e.key||t,l,e.title))}return Fd.createElement(Fd.Fragment,{key:e.key},u)},G=function(t,n,r,o,i,a){var s=t.sectionProps;if(s){var l,u;if(s.title){var d=void 0,p="";if("string"===typeof s.title){var h=c+s.title.replace(/\s/g,"");d={key:"section-".concat(s.title,"-title"),itemType:CP.Header,text:s.title,id:h},p=h}else{var f=s.title.id||c+s.title.key.replace(/\s/g,"");d=(0,e.__assign)((0,e.__assign)({},s.title),{id:f}),p=f}d&&(u={role:"group","aria-labelledby":p},l=X(d,n,r,o,i,a))}if(s.items&&s.items.length>0){var m=0;return Fd.createElement("li",{role:"presentation",key:s.key||t.key||"section-".concat(o)},Fd.createElement("div",(0,e.__assign)({},u),Fd.createElement("ul",{className:r.list,role:"presentation"},s.topDivider&&Y(o,n,!0,!0),l&&K(l,t.key||o,n,t.title),s.items.map((function(e,t){var n=q(e,t,m,CD(s.items),i,a,r);if(e.itemType!==CP.Divider&&e.itemType!==CP.Header){var o=e.customOnRenderListLength?e.customOnRenderListLength:1;m+=o}return n})),s.bottomDivider&&Y(o,n,!1,!0))))}}},K=function(e,t,n,r){return Fd.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Y=function(e,t,n,r){return r||e>0?Fd.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Q=function(t,n,r,o,a,s,c){if(t.onRender)return t.onRender((0,e.__assign)({"aria-posinset":o+1,"aria-setsize":a},t),l);var u={item:t,classNames:n,index:r,focusableElementIndex:o,totalItemCount:a,hasCheckmarks:s,hasIcons:c,contextualMenuItemAs:i.contextualMenuItemAs,onItemMouseEnter:F,onItemMouseLeave:H,onItemMouseMove:B,onItemMouseDown:AD,executeItemClick:U,onItemKeyDown:L,expandedMenuItemKey:m,openSubMenu:g,dismissSubMenu:y,dismissMenu:l};return t.href?Fd.createElement(nD,(0,e.__assign)({},u,{onItemClick:V})):t.split&&IP(t)?Fd.createElement(aD,(0,e.__assign)({},u,{onItemClick:z,onItemClickBase:W,onTap:T})):Fd.createElement(sD,(0,e.__assign)({},u,{onItemClick:z,onItemClickBase:W}))},X=function(t,n,r,o,a,s){var c=i.contextualMenuItemAs,l=void 0===c?QP:c,u=t.itemProps,d=t.id,p=u&&A_(u,I_);return Fd.createElement("div",(0,e.__assign)({id:d,className:r.header},p,{style:t.style}),Fd.createElement(l,(0,e.__assign)({item:t,classNames:n,index:o,onCheckmarkClick:a?z: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,ce=i.ariaLabel,le=i.doNotLayer,ue=i.target,de=i.bounds,pe=i.useTargetWidth,he=i.useTargetAsMinWidth,fe=i.directionalHintFixed,me=i.shouldFocusOnMount,ge=i.shouldFocusOnContainer,ve=i.title,ye=i.styles,be=i.theme,_e=i.calloutProps,Ce=i.onRenderSubMenu,Ee=void 0===Ce?PD:Ce,we=i.onRenderMenuList,xe=void 0===we?function(e,t){return j(e,Te)}:we,ke=i.focusZoneProps,Se=i.getMenuClassNames,Te=Se?Se(be,te):yD(ye,{theme:be,className:te}),Ie=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===CP.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(J);var Ae,Pe=(0,e.__assign)((0,e.__assign)({direction:mx.vertical,handleTabKey:xx.all,isCircularNavigation:!0},ke),{className:P_(Te.root,null===(r=i.focusZoneProps)||void 0===r?void 0:r.className)}),De=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(J),Re=m&&!0!==i.hidden?v():null;Z=void 0===Z?P<=lD.medium:Z;var Me=d.current;if((pe||he)&&Me&&Me.offsetWidth){var Ne=Me.getBoundingClientRect().width-2;pe?Ae={width:Ne}:he&&(Ae={minWidth:Ne})}if(J&&J.length>0){var Le=CD(J),Oe=Te.subComponentStyles?Te.subComponentStyles.callout:void 0;return Fd.createElement(vD.Consumer,null,(function(t){return Fd.createElement(uA,(0,e.__assign)({styles:Oe,onRestoreFocus:h},_e,{target:ue||t.target,isBeakVisible:Z,beakWidth:ne,directionalHint:re,directionalHintForRTL:oe,gapSpace:ae,coverTarget:se,doNotLayer:le,className:P_("ms-ContextualMenu-Callout",_e&&_e.className),setInitialFocus:me,onDismiss:i.onDismiss||t.onDismiss,onScroll:x,bounds:de,directionalHintFixed:fe,alignTargetEdge:ie,hidden:i.hidden||t.hidden,ref:n}),Fd.createElement("div",{style:Ae,ref:a,id:ee,className:Te.container,tabIndex:ge?0:-1,onKeyDown:N,onKeyUp:M,onFocusCapture:E,"aria-label":ce,"aria-labelledby":$,role:"menu"},ve&&Fd.createElement("div",{className:Te.title}," ",ve," "),J&&J.length?function(t,n){var r=i.focusZoneAs,o=void 0===r?Ck:r;return Fd.createElement(o,(0,e.__assign)({},n),t)}(xe({ariaLabel:ce,items:J,totalItemCount:Le,hasCheckmarks:De,hasIcons:Ie,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return q(e,n,r,o,i,a,t)}(e,Te)},labelElementId:$},(function(e,t){return j(e,Te)})),Pe):null,Re&&Ee(Re,PD)),Fd.createElement(NC,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||wC(e,t)}));function ID(e){return e.which===ov||"Meta"===e.key}function AD(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function PD(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function DD(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===CP.Section&&o.sectionProps){var i=DD(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function RD(e,t){return e?function(n,r){return MD(n,t),e(n,r)}:e}function MD(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}TD.displayName="ContextualMenuBase";var ND={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function LD(t){return Fd.createElement(OD,(0,e.__assign)({},t))}var OD=Lw(TD,(function(e){var t=e.className,n=e.theme,r=$y(ND,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:Dy.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:zP,lineHeight:zP,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?xP(e.onRenderSubMenu,LD):LD}}),{scope:"ContextualMenu"}),FD=OD;FD.displayName="ContextualMenu";var BD={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"},HD=Jg((function(e,t,n,r,o,i,a,s,c,l,u){var d,p,h=$y(BD,e||{}),f=l&&!u;return Xb({root:[h.msButton,t.root,r,c&&["is-checked",t.rootChecked],f&&["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&&[BD.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!f&&!c&&{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&&c&&[t.rootCheckedDisabled],!a&&c&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,f&&t.iconExpanded,c&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,c&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,c&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!f&&!c&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},f&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,c&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),zD=Jg((function(e,t,n,r,o){return{root:jg(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:jg(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:jg(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:jg(e.splitButtonFlexContainer),divider:jg(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}));var VD=$g((function(t){var n=t;return $g((function(r){if(t===r)throw new Error("Attempted to compose a component with itself.");var o=r,i=$g((function(t){return function(n){return Fd.createElement(o,(0,e.__assign)({},n,{defaultRender:t}))}}));return function(t){var r=t.defaultRender;return Fd.createElement(n,(0,e.__assign)({},t,{defaultRender:r?i(r):o}))}}))}));function UD(e,t){return VD(e)(t)}var WD=function(t){function n(n){var r=t.call(this,n)||this;return r._buttonElement=Fd.createRef(),r._splitButtonContainer=Fd.createRef(),r._mergedRef=Ix(),r._renderedVisibleMenu=!1,r._getMemoizedMenuButtonKeytipProps=Jg((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 Fd.createElement(bP,(0,e.__assign)({className:P_(r._classNames.icon,i),imageProps:a},s));if(o.iconName)return Fd.createElement(gP,(0,e.__assign)({className:P_(r._classNames.icon,i)},s));if(a)return Fd.createElement(_P,(0,e.__assign)({className:P_(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,c=e.onRenderDescription,l=void 0===c?r._onRenderDescription:c;return t||"string"===typeof n||i?Fd.createElement("span",{className:r._classNames.textContainer},s(r.props,r._onRenderText),l(r.props,r._onRenderDescription)):[s(r.props,r._onRenderText),l(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()?Fd.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?Fd.createElement("span",{key:r._descriptionId,className:r._classNames.description,id:r._descriptionId},n):null},r._onRenderAriaDescription=function(){var e=r.props.ariaDescription;return e?Fd.createElement("span",{className:r._classNames.screenReaderText,id:r._ariaDescriptionId},e):null},r._onRenderMenuIcon=function(t){var n=r.props.menuIconProps;return Fd.createElement(gP,(0,e.__assign)({iconName:"ChevronDown"},n,{className:r._classNames.menuIcon}))},r._onRenderMenu=function(t){var n=r.props.menuAs?UD(r.props.menuAs,FD):FD;return Fd.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&&sk(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!==rv&&e.which!==av?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===rv||e.which===av?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===pv,o=e.which===fv;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!==rv&&e.which!==av||Ky(!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())},Yx(r),r._async=new LT(r),r._events=new $A(r),r.props.split,r._labelId=fC(),r._descriptionId=fC(),r._ariaDescriptionId=fC(),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,c=t.primaryDisabled,l=t.secondaryText,u=void 0===l?this.props.description:l,d=t.href,p=t.iconProps,h=t.menuIconProps,f=t.styles,m=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,_=t.role,C=this.state.menuHidden,E=a||c;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,E,m,!C,!!this.props.menuProps,this.props.split,!!s):HD(v,f,i,g,p&&p.className,h&&h.className,E,!!this.props.menuProps,m,!C,this.props.split);var w=this,x=w._ariaDescriptionId,k=w._labelId,S=w._descriptionId,T=!E&&!!d,I=T?"a":"button",A=A_(xC(T?{}:{type:"button"},this.props.rootProps,this.props),T?h_:f_,["disabled"]),P=r||A["aria-label"],D=void 0;n?D=x:u&&this.props.onRenderDescription!==iP?D=S:A["aria-describedby"]&&(D=A["aria-describedby"]);var R=void 0;A["aria-labelledby"]?R=A["aria-labelledby"]:D&&!P&&(R=this._hasText()?k:void 0);var M=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),N="menuitemcheckbox"===_||"checkbox"===_,L=N||!0===y?!!m:void 0,O=xC(A,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:E&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":P,"aria-labelledby":R,"aria-describedby":D,"aria-disabled":E,"data-is-focusable":M})[N?"aria-checked":"aria-pressed"]=L,e));if(o&&(O["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(I,O);if(this.props.menuProps){var F=this.props.menuProps.id,B=void 0===F?"".concat(this._labelId,"-menu"):F;xC(O,{"aria-expanded":!C,"aria-controls":C?null:B,"aria-haspopup":!0})}return this._onRenderContent(I,O)},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?(Ky(!0,void 0,null===(e=this.context)||void 0===e?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(Ky(!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,c=o.onRenderIcon,l=void 0===c?this._onRenderIcon:c,u=o.onRenderAriaDescription,d=void 0===u?this._onRenderAriaDescription:u,p=o.onRenderChildren,h=void 0===p?this._onRenderChildren:p,f=o.onRenderMenu,m=void 0===f?this._onRenderMenu:f,g=o.onRenderMenuIcon,v=void 0===g?this._onRenderMenuIcon:g,y=o.disabled,b=o.keytipProps;b&&s&&(b=this._getMemoizedMenuButtonKeytipProps(b));var _=function(t){return Fd.createElement(i,(0,e.__assign)({},n,t),Fd.createElement("span",{className:r._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},l(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()&&m(r._getMenuProps(s),r._onRenderMenu)))},C=b?Fd.createElement(tD,{keytipProps:this._isSplitButton?void 0:b,ariaDescribedBy:n["aria-describedby"],disabled:y},(function(e){return _(e)})):_();return s&&s.doNotLayer?Fd.createElement(Fd.Fragment,null,C,this._shouldRenderMenu()&&m(this._getMenuProps(s),this._onRenderMenu)):Fd.createElement(Fd.Fragment,null,C,Fd.createElement(NC,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:Ik},t),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:n?r:void 0,className:P_("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,c=o.allowDisabledFocus,l=o.checked,u=o.getSplitButtonClassNames,d=o.primaryDisabled,p=o.menuProps,h=o.toggle,f=o.role,m=o.primaryActionButtonProps,g=this.props.keytipProps,v=this.state.menuHidden,y=u?u(!!s,!v,!!l,!!c):a&&zD(a,!!s,!v,!!l,!!d);xC(n,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var b=A_(n,[],["disabled"]);m&&xC(n,m);var _=function(o){return Fd.createElement("div",(0,e.__assign)({},b,{"data-ktp-target":o?o["data-ktp-target"]:void 0,role:f||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":h?!!l:void 0,"aria-describedby":sP(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||c?0:void 0,"aria-roledescription":n["aria-roledescription"],onFocusCapture:r._onSplitContainerFocusCapture}),Fd.createElement("span",{style:{display:"flex",width:"100%"}},r._onRenderContent(t,n),r._onRenderSplitButtonMenuButton(y,o),r._onRenderSplitButtonDivider(y)))};return g?Fd.createElement(tD,{keytipProps:g,disabled:s},(function(e){return _(e)})):_()},n.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return Fd.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,c=o.splitButtonMenuProps,l=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)({},c),{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:l,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return Fd.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===fv&&(e.altKey||e.metaKey))},n.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},n.contextType=RC,n}(Fd.Component),jD={outline:0},qD=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},GD=Jg((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,c=r.disabledText,l={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Yy(e,{inset:1,highContrastStyle:l,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:[Yy(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:c,cursor:"default",selectors:{":hover":jD,":focus":jD}}],iconDisabled:{color:c,selectors:(t={},t[By]={color:"GrayText"},t)},menuIconDisabled:{color:c,selectors:(n={},n[By]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:qD(i.mediumPlus.fontSize),menuIcon:qD(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Zy}})),KD=Jg((function(t,n){var r,o,i,a,s,c,l,u,d,p,h,f,m,g=t.effects,v=t.palette,y=t.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},_={position:"absolute",width:1,right:31,top:8,bottom:8};return Yb({splitButtonContainer:[Yy(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[By]=(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[By]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[By]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(a={},a[By]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[By]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(c={},c[By]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}}},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[By]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:(0,e.__assign)((0,e.__assign)({},_),{selectors:(u={},u[By]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:(0,e.__assign)((0,e.__assign)({},_),{selectors:(d={},d[By]={backgroundColor:"GrayText"},d)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[By]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(f={},f[By]={color:"GrayText"},f)}},p[By]={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:(m={},m[By]=(0,e.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m)},splitButtonMenuFocused:(0,e.__assign)({},Yy(t,{highContrastStyle:b,inset:2}))},n)}));var YD=Jg((function(t,n,r){var o=GD(t),i=KD(t);return Yb(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:Dy.semibold}},r?function(t){var n,r,o,i,a,s,c,l,u,d=t.palette,p=t.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid ".concat(p.primaryButtonBackground),color:p.primaryButtonText,selectors:(n={},n[By]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n[".".concat(jy," &: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[By]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid ".concat(p.primaryButtonBackgroundPressed),color:p.primaryButtonTextPressed,selectors:(o={},o[By]=(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[By]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(a={},a[By]={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[By]={backgroundColor:"Window"},s)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(c={},c[By]={backgroundColor:"Canvas"},c[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[By]={color:"Highlight"},l)},c)},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[By]={color:"GrayText"},u)}}}(t):function(t){var n,r,o,i,a,s=t.semanticColors,c=t.palette,l=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,p=s.buttonBackgroundDisabled,h=s.buttonText,f=s.buttonTextHovered,m=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:h},rootHovered:{backgroundColor:d,color:f,selectors:(n={},n[By]={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:m,backgroundColor:p,selectors:(r={},r[By]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(o={},o[By]={border:"none"},o)},splitButtonMenuButton:{color:c.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:c.neutralLight,selectors:(i={},i[By]={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:c.neutralTertiaryAlt,selectors:(a={},a[By]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:t.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:c.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:c.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:c.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:c.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}(t),i,n)})),QD=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 Fd.createElement(WD,(0,e.__assign)({},this.props,{variantClassName:r?"ms-Button--primary":"ms-Button--default",styles:YD(i,o,r),onRenderDescription:iP}))},n=(0,e.__decorate)([aP("DefaultButton",["theme","styles"],!0)],n)}(Fd.Component),XD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){return Fd.createElement(QD,(0,e.__assign)({},this.props,{primary:!0,onRenderDescription:iP}))},n=(0,e.__decorate)([aP("PrimaryButton",["theme","styles"],!0)],n)}(Fd.Component),ZD=Jg((function(e,t){var n,r,o;return Yb(GD(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[By]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(r={},r[By]={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[By]={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)})),JD=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 Fd.createElement(WD,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:ZD(r,n),onRenderDescription:iP}))},n=(0,e.__decorate)([aP("ActionButton",["theme","styles"],!0)],n)}(Fd.Component),$D=Jg((function(e,t){var n,r=GD(e),o=KD(e),i=e.palette;return Yb(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[By]={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)})),eR=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 Fd.createElement(WD,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:$D(r,n),onRenderText:iP,onRenderDescription:iP}))},n=(0,e.__decorate)([aP("IconButton",["theme","styles"],!0)],n)}(Fd.Component),tR=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},nR={display:"inline-block",verticalAlign:"text-top"},rR=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"]);V_("ErrorCallout",s.id);var c,l,u=Mw(),d=(0,Fd.useState)(!0),p=d[0],h=d[1],f=(0,Fd.useRef)(null);"aria-label"in n?l=n:c=n;var m=c||f;Ek("ErrorCallout",s);var g={icon:{color:u.semanticColors.errorIcon},root:{height:"100%"}};return Bd().createElement(Bd().Fragment,null,l?Bd().createElement("div",null,Bd().createElement("div",{ref:f,style:nR},Bd().createElement(eR,{onClick:function(){h(!p)},ariaLabel:l["aria-label"],"data-bi-id":l["data-bi-id"],iconProps:{iconName:"Error"},styles:g}))):null,p?Bd().createElement(uA,(0,e.__assign)({styles:tR(u),role:"alertdialog",target:m,onDismiss:function(){h(!1)},setInitialFocus:!0,directionalHint:Bk[o]},s),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:6},l?null:Bd().createElement(WS,{iconName:"Error",color:"errorIcon",size:"16px"}),Bd().createElement(ST,{"aria-label":a},i))):null)},oR=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"}},iR=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 Ek("RetryActionButton",s),Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},Bd().createElement(z_,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:r,color:"errorIcon",size:"12px"})),Bd().createElement(z_,{horizontal:!1,doNotRenderFalsyValues:!0},Bd().createElement(ST,{"aria-label":i},o),Bd().createElement(IA,(0,e.__assign)({},a))))},aR=function(t){var n,r=t.text,o=t["aria-label"],i=t.disabled,a=void 0!==i&&i,s=t.iconName,c=t.textAlignment,l=void 0===c?"center":c,u=t.operationData,d=t.type,p=t.parentComponentName,h=(0,e.__rest)(t,["text","aria-label","disabled","iconName","textAlignment","operationData","type","parentComponentName"]);V_("ActionButton",h.id),Ek("ActionButton",h);var f=bm(),m="primary"===d?XD:JD,g=function(e,t,n){return void 0===n&&(n="themePrimary"),"error"===e?{rest:"errorIcon",hover:"warningIcon",pressed:"severeWarningIcon"}:oR(e,t,n)}(t.type,a),v="TextColumn"===p||"MediaTitleColumn"===p;"default"!==t.type&&t.type||(g=oR(t.type,a,t.buttonColor));var y,b=Mw(),_=(0,e.__assign)({text:r,disabled:a,ariaLabel:o,styles:{root:(0,e.__assign)((n={color:zS(b,g.rest),textAlign:l},n[By]={":focus::after":{margin:"1px"},color:(y=t.type,"primary"!==y?"highlight":void 0)},n),v&&{height:"auto",wordBreak:"normal"}),rootHovered:{color:zS(b,g.hover)},rootPressed:{color:zS(b,g.pressed)}},onRenderIcon:s?function(){return Bd().createElement(WS,{size:"16px",iconName:s})}:void 0},h),C=h.href;(0,Fd.useEffect)((function(){f.checkUrlAndReportHttp(C)}),[C]);var E=function(){return h.tooltipHostProps?Bd().createElement(_A,(0,e.__assign)({},h.tooltipHostProps),Bd().createElement(m,(0,e.__assign)({},_))):Bd().createElement(m,(0,e.__assign)({},_))};if(u){var w=E();"retryActionButton"in u&&u.retryActionButton?w=Bd().createElement(iR,(0,e.__assign)({},u.retryActionButton)):"errorCallout"in u&&u.errorCallout&&(w=Bd().createElement(sR,{as:m,buttonProps:_,errorCalloutProps:u.errorCallout}));var x=(0,e.__assign)((0,e.__assign)({},_),{text:u.textWhileUpdating||r,disabled:!0,onRenderIcon:function(){return Bd().createElement(dT,{size:XS.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return Bd().createElement(Zm,{operationData:u.progressViewOperationData,updatingView:Bd().createElement(m,(0,e.__assign)({},x)),updateFailedView:w,finishedView:E(),failedView:void 0})}return E()},sR=function(t){var n=t.as,r=t.buttonProps,o=t.errorCalloutProps,i=(0,Fd.useRef)(null);return Bd().createElement(Bd().Fragment,null,Bd().createElement(n,(0,e.__assign)({elementRef:i},r)),Bd().createElement(rR,(0,e.__assign)({targetOrTriggerButton:i},o)))},cR=function(t){var n=t.iconName,r=t.menuItems,o=t.iconColor,i=t.isBeakVisible,a=t.backgroundColor,s=t.onMenuOpened,c=t.onMenuDismissed,l=t.menuItemsPadding,u=t.disabled,d=t.hasHighContrastBackground,p=t.menuIconVariant,h=void 0===p?"default":p,f=(0,e.__rest)(t,["iconName","menuItems","iconColor","isBeakVisible","backgroundColor","onMenuOpened","onMenuDismissed","menuItemsPadding","disabled","hasHighContrastBackground","menuIconVariant"]);V_("MenuIconButton",f.id);var m=Mw(),g=bm(),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:CP.Divider};if("header"===t.itemType)return(0,e.__assign)((0,e.__assign)({},t),{style:t.backgroundColor?{backgroundColor:zS(m,t.backgroundColor)}:{},itemType:CP.Header});return(0,e.__assign)((0,e.__assign)({},t),{ariaLabel:t["aria-label"],itemType:CP.Normal,onRender:u?function(){return Bd().createElement(wT,{padding:"8px 8p 4px 8px"},Bd().createElement(DT,{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)}})})),_={iconProps:{iconName:n},menuProps:{items:b,isBeakVisible:i,styles:{root:{padding:l,backgroundColor:a?zS(m,a):void 0}},directionalHint:Pk,gapSpace:4,onMenuOpened:s,onMenuDismissed:c}},C={icon:{}};return"card"===h&&(C.root=(0,e.__assign)((0,e.__assign)({},C.root),{padding:"22px 10px 22px 10px"})),o&&(C.icon.color=zS(m,o)),d&&(C.rootHovered={backgroundColor:m.palette.neutralLight},C.rootPressed={backgroundColor:m.palette.neutralQuaternaryAlt}),f.tooltipHostProps?Bd().createElement(_A,(0,e.__assign)({},f.tooltipHostProps),Bd().createElement(eR,(0,e.__assign)({},_,f,{onRenderMenuIcon:y,styles:C}))):Bd().createElement(eR,(0,e.__assign)({},_,f,{onRenderMenuIcon:y,styles:C}))};var lR=function(t){var n=t.children,r=t.alignment,o=void 0===r?"flex-start":r,i=(0,e.__rest)(t,["children","alignment"]);V_("FlexibleMenu",i.id);var a=(0,Fd.useState)(1),s=a[0],c=a[1],l=function(){c(window.innerWidth)};return(0,Fd.useLayoutEffect)((function(){var e=function(e,t){var n;return function(){clearTimeout(n),n=__webpack_require__.g.setTimeout(e,t)}}(l,300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),Bd().createElement(uR,(0,e.__assign)({windowWidth:s,alignment:o},i),n)},uR=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"]),c=(0,Fd.useRef)(null),l=(0,Fd.useState)(!1),u=l[0],d=l[1],p=(0,Fd.useState)([]),h=p[0],f=p[1],m=(null===n||void 0===n?void 0:n.menuItems)||[],g={display:"flex",flexDirection:"row",justifyContent:a,flexWrap:"wrap",overflow:"hidden",flexShrink:1,alignItems:"center",height:r,whiteSpace:"nowrap"};return(0,Fd.useLayoutEffect)((function(){d(!0)}),[i,o,n]),(0,Fd.useLayoutEffect)((function(){if(c.current){for(var t=[],n=Array.from(c.current.children),r=Bd().Children.toArray(o),i=c.current,a=i.clientHeight+i.offsetTop,s=function(t){return Bd().cloneElement(t,{children:Bd().isValidElement(t.props.children)?Bd().cloneElement(t.props.children,(0,e.__assign)((0,e.__assign)({},t.props.children.props),{role:"menuitem"})):t.props.children,role:Bd().isValidElement(t.props.children)?void 0:"menuitem"})},l=function(e){var o=n[e];if(o.hasAttribute("hidden")&&o.removeAttribute("hidden"),o.offsetTop>=a){var i=r[e];o.setAttribute("hidden","");var c=s(i);t.push({key:"overflow-".concat(e+1),name:"overflowItem-".concat(e+1),"data-bi-id":i.props["data-bi-id"]||"","aria-label":i.props["aria-label"]||"",onRender:function(){return c}})}},u=0;u<n.length;u++)l(u);if(n.length>0){var p=n[0],h=c.current.clientWidth;if(p.clientWidth>=h){var g=r[0];p.setAttribute("hidden","");var v=s(g);t.unshift({key:"overflow-0",name:"overflowItem-0","data-bi-id":g.props["data-bi-id"]||"","aria-label":g.props["aria-label"]||g.props.ariaLabel||"",onRender:function(){return v}})}}var y=(0,e.__spreadArray)((0,e.__spreadArray)([],t,!0),m,!0);y.length>0?f(y):d(!1)}}),[i,o,n]),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",grow:!0,horizontalAlign:"end",padding:u?"":"0 8px 0 0"},Bd().createElement(PT,{grow:!0},Bd().createElement("div",{style:g,ref:c},o)),u?Bd().createElement(cR,(0,e.__assign)({},s,n,{iconName:"MoreVertical",menuItems:h})):null)},dR=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 Bd().createElement(PT,{keycodes:[13]},Bd().createElement(lR,(0,e.__assign)({},a),r?Bd().createElement(aR,(0,e.__assign)({},r)):null))},pR=function(t){var n=t.errorMessage,r=t.errorMessageAriaLabel,o=t.retryLink,i=(t.children,(0,e.__rest)(t,["errorMessage","errorMessageAriaLabel","retryLink","children"]));return Ek("ErrorButton",i),Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},Bd().createElement(z_,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:"Error",color:"errorIcon",size:"12px"})),Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:6},doNotRenderFalsyValues:!0},Bd().createElement(fT,{"aria-label":r},n),Bd().createElement(IA,(0,e.__assign)({},o))))},hR=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,c=void 0!==s&&s,l=t.allowDisabledFocus,u=void 0!==l&&l,d=t.operationData,p=(0,e.__rest)(t,["type","onClick","text","aria-label","disabled","allowDisabledFocus","operationData"]);V_("Button",p.id),Ek("Button",p);var h=Mw(),f="primaryAlt"===r?function(e){var t;return Yb({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(jy," &: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 Yb({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(jy," &:focus")]={selectors:{":after":{border:"none",outlineColor:e.palette.themeDark}}},t)}})}(h):{root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}},m=(0,e.__assign)({onClick:o,text:i,disabled:c,ariaLabel:a,allowDisabledFocus:u,styles:f},p),g="primary"===r||"primaryAlt"===r?XD:QD;if(d){var v=d.errorButton?Bd().createElement(pR,(0,e.__assign)({},d.errorButton)):Bd().createElement(g,(0,e.__assign)({},m)),y=(0,e.__assign)((0,e.__assign)({},m),{onClick:void 0,text:i,disabled:!0,allowDisabledFocus:!1,onRenderIcon:function(){return Bd().createElement(dT,{size:XS.small,styles:{root:{marginRight:"4px"}}})}});return Bd().createElement(Zm,{operationData:d.progressViewOperationData,updatingView:Bd().createElement(g,(0,e.__assign)({},y)),finishedView:Bd().createElement(g,(0,e.__assign)({},m)),failedView:v})}return Bd().createElement(g,(0,e.__assign)({},m))},fR=function(t){var n=t.onClick,r=t["aria-label"],o=t.disabled,i=void 0!==o&&o,a=t.iconName,s=t.iconColor,c=void 0===s?"themePrimary":s,l=t.hasHighContrastBackground,u=t.iconButtonVariant,d=void 0===u?"default":u,p=(0,e.__rest)(t,["onClick","aria-label","disabled","iconName","iconColor","hasHighContrastBackground","iconButtonVariant"]);V_("IconButton",p.id),Ek("IconButton",p);var h=Mw(),f=(0,e.__assign)((0,e.__assign)({},p),{onClick:n,disabled:i,ariaLabel:r,onRenderIcon:function(){return Bd().createElement(WS,{size:"16px",color:i?"neutralTertiaryAlt":c,iconName:a})}}),m=zS(h,c),g={icon:{color:m}};"card"===d&&(g.root={padding:"22px"});var v=function(){return p.tooltipHostProps?Bd().createElement(_A,(0,e.__assign)({},p.tooltipHostProps),Bd().createElement(eR,(0,e.__assign)({},f,{styles:g}))):Bd().createElement(eR,(0,e.__assign)({},f,{styles:g}))};if(i&&(g.rootDisabled={backgroundColor:"inherit"}),l&&(g.rootHovered={backgroundColor:h.palette.neutralLight},g.rootPressed={backgroundColor:h.palette.neutralQuaternaryAlt}),p.operationData){var y=p.operationData,b=(0,e.__assign)((0,e.__assign)({},f),{onClick:function(){},disabled:!0,onRenderIcon:function(){return Bd().createElement(dT,{color:m,size:XS.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return Bd().createElement(Zm,{operationData:y.progressViewOperationData,inertView:Bd().createElement(eR,(0,e.__assign)({},f,{styles:g})),updatingView:Bd().createElement(JD,(0,e.__assign)({},b)),finishedView:v()})}return v()},mR={display:"inline-block"},gR=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},vR=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"]);V_("Callout",a.id),Ek("Callout",a);var s,c=(0,Fd.useState)(!1),l=c[0],u=c[1],d=(0,Fd.useRef)(null),p=Mw(),h=function(){u(!l)},f="IconButton"===a.calloutTrigger?a.calloutTriggerProps.iconName:void 0;switch((0,Fd.useEffect)((function(){u(!1)}),[f]),a.calloutTrigger){case"NoHrefLink":s=Bd().createElement(IA,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}));break;case"IconButton":s=Bd().createElement(fR,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}));break;case"Button":s=Bd().createElement(hR,(0,e.__assign)({},a.calloutTriggerProps,{onClick:h}))}return Bd().createElement(Bd().Fragment,null,Bd().createElement("div",{style:(0,e.__assign)({},mR),ref:d},s),l?Bd().createElement(uA,(0,e.__assign)({styles:gR(p),role:o,target:d,onDismiss:function(){u(!1)},setInitialFocus:!0,directionalHint:Bk[n||"bottom-center"],layerProps:{eventBubblingEnabled:!0}},a),i):null)},yR=function(t){var n=t.calloutProps;return Bd().createElement(z_,{horizontalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(PT,null,Bd().createElement(vR,(0,e.__assign)({},n),n.children)))},bR=function(e){var t=e.errorMessage,n=e.id;return Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(z_,{verticalAlign:"center",tokens:{padding:"0px 16px 0px 0px"},doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:"Error",size:"16px",color:"errorIcon"})),Bd().createElement(z_,{verticalAlign:"center",styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},Bd().createElement(DT,{block:!0,nowrap:!0,colorOverride:"error",variant:"bodyPrimaryText",id:n},t)))},_R={root:{maxWidth:"fit-content"}},CR=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},ER=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]}},wR=function(t){var n=JP.getInstance(),r=t.className,o=t.overflowItems,i=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,c=cx({}),l=Fd.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),u=Fd.useMemo((function(){var t=[],r=[];return i?null===o||void 0===o||o.forEach((function(o){var a,s=o.keytipProps;if(s){var c={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||l(o)?(c.onExecute=n.menuExecute.bind(n,i,null===(a=null===o||void 0===o?void 0:o.keytipProps)||void 0===a?void 0:a.keySequences),c.hasOverflowSubMenu=!0):c.onExecute=s.onExecute,t.push(c);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,l,n,i]),d=u.modifiedOverflowItems;return function(e,t,n){var r=ZP(e);Fd.useEffect((function(){r&&(ER(n,r),CR(t,n,e))})),Fd.useEffect((function(){return CR(t,n,e),function(){ER(n,e)}}),[])}(c,u.keytipsToRegister,n),Fd.createElement("div",{className:r},s(d))},xR=Ww(),kR=Fd.forwardRef((function(t,n){var r=Fd.useRef(null),o=jC(r,n);!function(e,t){Fd.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Nx(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Dx(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(t,r);var i=t.items,a=t.overflowItems,s=t.className,c=t.styles,l=t.vertical,u=t.role,d=t.overflowSide,p=void 0===d?"end":d,h=t.onRenderItem,f=xR(c,{className:s,vertical:l}),m=!!a&&a.length>0;return Fd.createElement("div",(0,e.__assign)({},A_(t,I_),{role:u||"group","aria-orientation":"menubar"===u?!0===l?"vertical":"horizontal":void 0,className:f.root,ref:o}),"start"===p&&m&&Fd.createElement(wR,(0,e.__assign)({},t,{className:f.overflowButton})),i&&i.map((function(e,t){return Fd.createElement("div",{className:f.item,key:e.key,role:"none"},h(e))})),"end"===p&&m&&Fd.createElement(wR,(0,e.__assign)({},t,{className:f.overflowButton})))}));kR.displayName="OverflowSet";var SR,TR={flexShrink:0,display:"inherit"},IR=Lw(kR,(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",TR],overflowButton:["ms-OverflowSet-overflowButton",TR]}}),void 0,{scope:"OverflowSet"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(SR||(SR={}));var AR=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 c=t(a);if(void 0===c)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(c)))return{dataToMeasure:c,resizeDirection:"shrink"};a=c}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,a,s,c){if(void 0!==c||void 0!==a.dataToMeasure){if(c){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})}(c,t.data,a.renderedData,t.onGrowData));n=c}var l=(0,e.__assign)((0,e.__assign)({},a),{measureContainer:!1});return a.dataToMeasure&&(l="grow"===a.resizeDirection&&t.onGrowData?(0,e.__assign)((0,e.__assign)({},l),function(t,a,s,c){for(var l=t,u=o(t,s);u<n;){var d=a(l);if(void 0===d)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};l=d}return(0,e.__assign)({resizeDirection:"shrink"},i(l,c,s))}(a.dataToMeasure,t.onGrowData,s,t.onReduceData)):(0,e.__assign)((0,e.__assign)({},l),i(a.dataToMeasure,t.onReduceData,s))),l}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,e.__assign)({},t),resizeDirection:"grow",measureContainer:!0}}}},PR=Fd.createContext({isMeasured:!1}),DR={position:"fixed",visibility:"hidden"},RR={position:"relative"};function MR(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 NR(t,n){var r=cx(AR),o=Fd.useRef(null),i=Fd.useRef(null),a=Fd.useRef(!1),s=_I(),c=function(t,n,r){var o=cx((function(){return n.getInitialResizeGroupState(t.data)})),i=Fd.useReducer(MR,o),a=i[0],s=i[1];Fd.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var c=Fd.useRef(o);return c.current=(0,e.__assign)({},a),[c,Fd.useCallback((function(e){e&&s({type:"resizeData",value:e})}),[]),Fd.useCallback((function(){r.current&&s({type:"measureContainer",value:!0})}),[r])]}(t,r,n),l=c[0],u=c[1],d=c[2];Fd.useEffect((function(){var e;l.current.renderedData&&(a.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,l.current.renderedData))})),Fd.useEffect((function(){s.requestAnimationFrame((function(){var e=void 0;if(l.current.measureContainer&&n.current){var s=n.current.getBoundingClientRect();e=t.direction===SR.vertical?s.height:s.width}var c=r.getNextState(t,l.current,(function(){var e=a.current?i:o;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===SR.vertical?n.height:n.width}),e);u(c)}),n.current)})),CI(W_(),"resize",s.debounce(d,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(l.current.dataToMeasure),h=!a.current&&p;return[l.current.dataToMeasure,l.current.renderedData,d,o,i,p,h]}var LR={isMeasured:!0},OR=Fd.forwardRef((function(t,n){var r=Fd.useRef(null),o=jC(r,n),i=NR(t,r),a=i[0],s=i[1],c=i[2],l=i[3],u=i[4],d=i[5],p=i[6];Fd.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var h=t.className,f=t.onRenderData,m=A_(t,I_,["data"]);return Fd.createElement("div",(0,e.__assign)({},m,{className:h,ref:o}),Fd.createElement("div",{style:RR},d&&!p&&Fd.createElement("div",{style:DR,ref:u},Fd.createElement(PR.Provider,{value:LR},f(a))),Fd.createElement("div",{ref:l,style:p?DR:void 0,"data-automation-id":"visibleContent"},p?f(a):s&&f(s))))}));OR.displayName="ResizeGroupBase";var FR=OR,BR={"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"},HR=(Object.keys(BR),Object.values(BR),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[nS]={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}),zR={none:tP.none,center:tP.center,"center-contain":tP.centerContain,"center-cover":tP.centerCover,contain:tP.contain,cover:tP.cover},VR=function(e,t,n,r){return{root:{height:t,width:n,backgroundColor:r?e.palette.neutralLighter:"transparent"}}},UR=function(t){var n=t.height,r=t.width,o=t.fallbackIconProps,i=(0,e.__rest)(t,["height","width","fallbackIconProps"]),a=Mw();if(n&&r){var s=WR(n),c=WR(r),l=Math.min(s,c),u=l>=36,d=void 0;d=l>=100?"48px":l<100&&l>=50?"32px":"16px";var p=o?Bd().createElement(WS,(0,e.__assign)({},o,{size:d})):Bd().createElement(WS,{iconName:"Photo2Remove",color:"neutralTertiaryAlt",size:d}),h=Bd().createElement(z_,{styles:VR(a,s,c,u),horizontalAlign:"center",verticalAlign:"center",role:"altTextImage"===i.imageType?"img":"presentation",doNotRenderFalsyValues:!0},p);return"altTextImage"===i.imageType?Bd().createElement(_A,{tooltipText:i.alt,tooltipPosition:"top-center"},h):h}return null},WR=function(e){return"number"===typeof e?e:e.includes("px")?+e.substr(0,e.length-"px".length):0},jR=function(t){var n=t.imageFit,r=t.src,o=t.errorSrc,i=t.borderRadius,a=t.height,s=t.width,c=t.grayscale,l=t.disabled,u=t.enableHighContrastMode,d=t.imageGradientType,p=(0,e.__rest)(t,["imageFit","src","errorSrc","borderRadius","height","width","grayscale","disabled","enableHighContrastMode","imageGradientType"]);V_("Image",p.id),Ek("Image",p);var h=bm(),f=(0,Fd.useState)(r),m=f[0],g=f[1],v=(0,Fd.useState)(!1),y=v[0],b=v[1];(0,Fd.useEffect)((function(){h.checkUrlAndReportHttp(r),g(r)}),[r]);var _=(0,Fd.useRef)(!0);(0,Fd.useEffect)((function(){_.current?_.current=!1:b(!1)}),[m]);var C={};return"ariaHiddenImage"===p.imageType&&(C={"aria-hidden":!0}),y?Bd().createElement(UR,(0,e.__assign)({height:a,width:s},p)):Bd().createElement(pP,(0,e.__assign)({onLoadingStateChange:function(e){e!==rP.error&&void 0!==m&&null!==m||(o&&m!==o?g(o):b(!0))},imageFit:n?zR[n]:void 0,src:m,styles:HR(c,l,i,u,d),height:a,width:s},C,p))},qR=function(e,t,n){return{root:{width:e,backgroundColor:t,fontSize:e,lineHeight:e,minHeight:e,borderRadius:n||"0px"}}},GR=function(e,t,n){return{root:{width:e,height:e,backgroundColor:t,borderRadius:n||"0px"}}},KR=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"}},YR=function(t){var n=t.size,r=t.image,o=t.height,i=t.padding,a=t.imagePadding,s=t.disabled,c=t.topAlign,l=t.borderRadius,u=t.horizontal,d=void 0===u||u,p=t.linkProps,h=t.children,f=(0,e.__rest)(t,["size","image","height","padding","imagePadding","disabled","topAlign","borderRadius","horizontal","linkProps","children"]);V_("Media",f.id),Ek("Media",f);var m,g,v=Mw(),y=sS(),b={},_=o||"44px",C=i||"6px 0",E=_m();switch(n){case"xs":b={height:g="16px",width:g,lineHeight:"14px",fontSize:"10px"},m="12px";break;case"sm":b={height:g="24px",width:g,lineHeight:"22px",fontSize:"15px"},m="16px";break;case"md":b={height:g="32px",width:g,lineHeight:"29px",fontSize:"20px"},m="24px";break;case"lg":m="32px",g="48px",_=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?BR[m]:g,b={height:g,width:g,lineHeight:"45px",fontSize:"30px"};break;case"xl":C=i||"10px 0",m="48px",g="60px",_=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?BR[m]:g,b={height:g,width:g,lineHeight:"57px",fontSize:"60px"};break;case"xxl":C=i||"10px 0",m="60px",g="72px",_=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?BR[m]:g,b={height:g,width:g,lineHeight:"69px",fontSize:"45px"};break;case"xxxl":C=i||"10px 0",m="96px",g="96px",_=null!==o&&void 0!==o?o:"icon"===r.imageType&&r.backplate?BR[m]:g,b={height:g,width:g,lineHeight:"93px",fontSize:"60px"}}if("imageCard"===r.imageType){if(E.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"}}C=i||"0px",_=null!==o&&void 0!==o?o:g}var w=d?"start":"center",x=d?void 0:"center",k={display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",height:"100%",position:"imageCard"===r.imageType&&r.textHost?"relative":void 0},S=Bd().createElement(wT,(0,e.__assign)({horizontal:d,childrenGap:"8px",padding:C},f),Bd().createElement(xT,{align:w,height:c?void 0:_,shrink:0,padding:a},Bd().createElement("div",{style:k},function(){var t;switch(r.imageType){case"image":case"imageCard":return QR((0,e.__assign)((0,e.__assign)({},r),{theme:v,viewportType:y,style:b,imageSize:g,disabled:s,borderRadius:l}));case"imageFavicon":var o=null!==(t=r.iconProps)&&void 0!==t?t:{iconName:"Globe",color:"neutralPrimary"};return QR((0,e.__assign)((0,e.__assign)({},r),{theme:v,viewportType:y,style:b,imageSize:g,disabled:s,borderRadius:l,fallbackIconProps:o}));case"icon":return ZR((0,e.__assign)({theme:v,iconSize:m,disabled:s,borderRadius:l},r));case"character":return JR((0,e.__assign)({theme:v,style:b,size:n,disabled:s,borderRadiusStyle:l},r))}}())),h?Bd().createElement(xT,{align:"center",grow:!0,textAlignment:x},h):null);if(p){p.kind;var T=(0,e.__rest)(p,["kind"]);return Bd().createElement($S,(0,e.__assign)({},T,{styles:{root:{selectors:{":hover":{textDecoration:"none"},":active:focus":{textDecoration:"none"}}}},disabled:s}),S)}return S},QR=function(t){var n,r=t.theme,o=(t.viewportType,t.imageSize),i=t.backplate,a=t.textHost,s=(t.imageType,t.style),c=(0,e.__rest)(t,["theme","viewportType","imageSize","backplate","textHost","imageType","style"]),l=a?Bd().createElement(Bd().Fragment,null,Bd().createElement(jR,(0,e.__assign)({},c,{alt:"",height:s.height,width:s.width})),XR(a,r,c.borderRadius)):Bd().createElement(jR,(0,e.__assign)({},c,{alt:"",height:s.height,width:s.width}));if(i){var u=null!==(n=zS(r,!0===i?"themePrimary":i))&&void 0!==n?n:i;return Bd().createElement(z_,{verticalAlign:"center",horizontalAlign:"center",styles:GR(Vk[o],u,c.borderRadius),doNotRenderFalsyValues:!0},l)}return l},XR=function(t,n,r){return Bd().createElement("div",{style:KR(t,n,r)},Bd().createElement(SA,(0,e.__assign)({},t.truncatedTextProps)))},ZR=function(t){var n,r=t.theme,o=t.iconSize,i=t.borderRadius,a=(t.imageType,t.iconColor),s=t.backplate,c=(0,e.__rest)(t,["theme","iconSize","borderRadius","imageType","iconColor","backplate"]),l=Bd().createElement(WS,(0,e.__assign)({},c,{size:o,color:a}));if(s){var u=zS(r,!0===s?"themePrimary":s);return Bd().createElement(z_,{horizontal:!0,styles:qR(BR[o],u,i),doNotRenderFalsyValues:!0},Bd().createElement(z_,{verticalAlign:"center",styles:(n=BR[o],{root:{width:n,height:n,position:"absolute",verticalAlign:"center",textAlign:"center"}}),doNotRenderFalsyValues:!0},l))}return l},JR=function(t){var n,r=t.theme,o=t.style,i=t.size,a=t.disabled,s=t.borderRadiusStyle,c=t.characterVariant,l=t.backplateColor,u=(0,e.__rest)(t,["theme","style","size","disabled","borderRadiusStyle","characterVariant","backplateColor"]);Ex("Media",[(n=u.character,function(){return 1!==n.length?"Prop 'character' must be one character":void 0})]);var d,p,h=r.palette,f=null!==s&&void 0!==s?s:["xs","sm","md"].includes(i)?"2px":"4px";l?(d=zS(r,l),p=c&&"neutralDark"===c?r.palette.neutralDark:r.palette.neutralHigh):(d=a?h.neutralLighter:h.neutralSecondary,p=r.palette.neutralHigh);var m=(0,e.__assign)({background:d,color:p,borderRadius:f},o);return Bd().createElement("div",{style:m},u.character)},$R=function(e){return e.map((function(e){return e.key})).toString()},eM=function(t){var n=t.mediaImageList,r=t.overflowLabel,o=t.mediaLabel,i=t.hideHeaderMedia,a=t.id,s="",c=n?n.map((function(e,t){return s+="item".concat(t),{key:t.toString(),mediaImage:e}})):[],l=BA()?"translateX(100%)":"translateX(-100%)",u={transition:"transform 0.5s ease-out",transformOrigin:"left",transform:i?l:"translateX(0%)"},d=function(e){return Bd().createElement(wT,{margin:"0px 8px 0px 0px"},Bd().createElement(YR,{size:"md",borderRadius:"4px",image:{imageType:"image",src:e.mediaImage},height:"32px",padding:"0px"}))},p=function(e){return Bd().createElement(wT,{verticalAlign:"center"},Bd().createElement(DT,{variant:"bodySecondaryText"},"+".concat(null===e||void 0===e?void 0:e.length," ").concat(r)))},h={primary:c,overflow:[],cacheKey:s};return Bd().createElement(wT,{grow:!0},Bd().createElement(wT,{width:"inherit",maxWidth:"664px"},Bd().createElement(FR,{onRenderData:function(e){return Bd().createElement(wT,{childrenGap:"17px",verticalAlign:"center",horizontal:!0},Bd().createElement(DT,{id:a},o),Bd().createElement(wT,{overflow:"hidden"},Bd().createElement(z_,{style:u,doNotRenderFalsyValues:!0},Bd().createElement(IR,{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:$R(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:$R(r)}}}})))},tM=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 Bd().createElement(z_,{horizontal:!0,horizontalAlign:r,verticalAlign:"center",doNotRenderFalsyValues:!0},t?Bd().createElement(z_,{verticalAlign:"center",styles:{root:{paddingRight:"8px"}},doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:t,size:"16px"})):null,Bd().createElement(z_,{styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},Bd().createElement(SA,{weightOverride:o,variant:i},a)))},nM=function(e){return"text"!==e.kind||void 0===e.nowrap||e.nowrap?{}:{root:{textAlign:"left"}}},rM=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?Bd().createElement(SA,(0,e.__assign)({},o)):Bd().createElement(DT,(0,e.__assign)({},o));case"hyperlink":t.kind;var i=(0,e.__rest)(t,["kind"]);return Bd().createElement(PT,{keycodes:[13]},Bd().createElement(TA,(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?Bd().createElement(SA,(0,e.__assign)({type:"heading"},s)):Bd().createElement(aT,(0,e.__assign)({},s))}},oM=function(t){var n=t.nowrap,r=void 0===n||n,o=(0,e.__rest)(t,["nowrap"]);return r?Bd().createElement(SA,(0,e.__assign)({variant:"metadataText"},o)):Bd().createElement(DT,(0,e.__assign)({variant:"metadataText"},o))},iM=function(t){var n=t.media,r=t.title,o=t.subtitleTextProps,i=t.id,a=Bd().createElement(z_,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",styles:nM(r),doNotRenderFalsyValues:!0},Bd().createElement(rM,(0,e.__assign)({},r,{id:i}))),Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},o?Bd().createElement(oM,(0,e.__assign)({},o)):null));return Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},n?Bd().createElement(z_,{verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(YR,(0,e.__assign)({},n),a)):a)},aM=function(e){var t=e.height,n=e.width,r=void 0===n?"100%":n,o=e.shimmerColors;return V_("ShimmerLine"),Bd().createElement(px,{width:r,shimmerElements:[{type:Gw.line,width:"100%",height:t}],shimmerColors:o})},sM=function(t){var n=t.media,r=t.title,o=t.id;return Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},n?Bd().createElement(z_,{styles:{root:{paddingRight:"16px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(YR,(0,e.__assign)({},n))):null,Bd().createElement(z_,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",styles:nM(r),doNotRenderFalsyValues:!0},Bd().createElement(rM,(0,e.__assign)({},r,{id:o}))),Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},Bd().createElement(aM,{height:8,width:286}))))};function cM(e,t,n){var r=Fd.useState(t),o=r[0],i=r[1],a=cx(void 0!==e),s=a?e:o,c=Fd.useRef(s),l=Fd.useRef(n);Fd.useEffect((function(){c.current=s,l.current=n}));var u=cx((function(){return function(e,t){var n="function"===typeof e?e(c.current):e;l.current&&l.current(t,n),a||i(n)}}));return[s,u]}var lM=Ww(),uM="Toggle",dM=Fd.forwardRef((function(t,n){var r=t.as,o=void 0===r?"div":r,i=t.ariaLabel,a=t.checked,s=t.className,c=t.defaultChecked,l=void 0!==c&&c,u=t.disabled,d=t.inlineLabel,p=t.label,h=t.offAriaLabel,f=t.offText,m=t.onAriaLabel,g=t.onChange,v=t.onChanged,y=t.onClick,b=t.onText,_=t.role,C=t.styles,E=t.theme,w=cM(a,l,Fd.useCallback((function(e,t){null===g||void 0===g||g(e,t),null===v||void 0===v||v(t)}),[g,v])),x=w[0],k=w[1],S=lM(C,{theme:E,className:s,disabled:u,checked:x,inlineLabel:d,onOffMissing:!b&&!f}),T=x?m:h,I=cD(uM,t.id),A="".concat(I,"-label"),P="".concat(I,"-stateText"),D=x?b:f,R=A_(t,m_,["defaultChecked"]),M=void 0;i||T||(p&&(M=A),D&&!M&&(M=P));var N=Fd.useRef(null);MC(N),pM(t,x,N);var L={root:{className:S.root,hidden:R.hidden},label:{children:p,className:S.label,htmlFor:I,id:A},container:{className:S.container},pill:(0,e.__assign)((0,e.__assign)({},R),{"aria-disabled":u,"aria-checked":x,"aria-label":i||T,"aria-labelledby":M,className:S.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:u,id:I,onClick:function(e){u||(k(!x,e),y&&y(e))},ref:N,role:_||"switch",type:"button"}),thumb:{className:S.thumb},stateText:{children:D,className:S.text,htmlFor:I,id:P}};return Fd.createElement(o,(0,e.__assign)({ref:n},L.root),p&&Fd.createElement(fT,(0,e.__assign)({},L.label)),Fd.createElement("div",(0,e.__assign)({},L.container),Fd.createElement("button",(0,e.__assign)({},L.pill),Fd.createElement("span",(0,e.__assign)({},L.thumb))),(x&&b||f)&&Fd.createElement(fT,(0,e.__assign)({},L.stateText))))}));dM.displayName="ToggleBase";var pM=function(e,t,n){Fd.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},hM=Lw(dM,(function(t){var n,r,o,i,a,s,c,l=t.theme,u=t.className,d=t.disabled,p=t.checked,h=t.inlineLabel,f=t.onOffMissing,m=l.semanticColors,g=l.palette,v=m.bodyBackground,y=m.inputBackgroundChecked,b=m.inputBackgroundCheckedHovered,_=g.neutralDark,C=m.disabledBodySubtext,E=m.smallInputBorder,w=m.inputForegroundChecked,x=m.disabledBodySubtext,k=m.disabledBackground,S=m.smallInputBorder,T=m.inputBorderHovered,I=m.disabledBodySubtext,A=m.disabledText;return{root:["ms-Toggle",p&&"is-checked",!d&&"is-enabled",d&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},h&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:A,selectors:(n={},n[By]={color:"GrayText"},n)},h&&!f&&{marginRight:16},f&&h&&{order:1,marginLeft:16},h&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",Yy(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid ".concat(S),background:v,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!d&&[!p&&{selectors:{":hover":[{borderColor:T}],":hover .ms-Toggle-thumb":[{backgroundColor:_,selectors:(r={},r[By]={borderColor:"Highlight"},r)}]}},p&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(o={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:(i={},i[By]={backgroundColor:"Highlight"},i)}]},o[By]=(0,e.__assign)({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}]],d&&[{cursor:"default"},!p&&[{borderColor:I}],p&&[{backgroundColor:C,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:(a={},a[By]={borderColor:"Highlight"},a)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:E,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!d&&p&&[{backgroundColor:w,selectors:(s={},s[By]={backgroundColor:"Window",borderColor:"Window"},s)}],d&&[!p&&[{backgroundColor:x}],p&&[{backgroundColor:k}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Dy.regular}}},d&&{selectors:{"&&":{color:A,selectors:(c={},c[By]={color:"GrayText"},c)}}}]}}),void 0,{scope:"Toggle"}),fM=function(t){var n=t.label,r=t.labelPosition,o=void 0===r?"right":r,i=t.spinnerSize,a=void 0===i?XS.medium:i,s=(0,e.__rest)(t,["label","labelPosition","spinnerSize"]);return V_("Spinner",s.id),Ek("Spinner",s),Bd().createElement(dT,(0,e.__assign)({role:"alert",label:n,labelPosition:o,size:a},s))},mM=function(){var e=(0,Fd.useState)(!1),t=e[0],n=e[1];return(0,Fd.useEffect)((function(){var e=setTimeout((function(){n(!0)}),1e3);return function(){return clearTimeout(e)}}),[]),t?Bd().createElement(dT,null):null},gM=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)}}}]})},vM=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"),Bd().createElement(wT,{horizontal:t,childrenGap:a},n?Bd().createElement(wT,null,Bd().createElement(ST,{labelState:r,htmlFor:o},n)):null,Bd().createElement(wT,{horizontal:!0,padding:s,height:32},i))},yM=(0,Fd.forwardRef)((function(t,n){var r=t.inlineLabel,o=t.label,i=t.labelState,a=t.children,s=t.id,c=t.styles,l=(0,e.__rest)(t,["inlineLabel","label","labelState","children","id","styles"]),u=(0,Fd.useRef)(s||fC("Toggle")).current,d=Mw();return Bd().createElement(vM,{inlineLabel:r,label:o,labelState:i,htmlFor:u},Bd().createElement("div",{ref:n},Bd().createElement(hM,(0,e.__assign)({},l,{id:u,"data-bi-ctrlstate":!!l.checked,styles:gM(d,c)}))),a)})),bM=function(t){var n=(0,Fd.useState)(!1),r=n[0],o=n[1],i=(0,e.__assign)((0,e.__assign)({},t),{checked:!t.checked,disabled:!0});(0,Fd.useEffect)((function(){var e=setTimeout((function(){o(!0)}),1e3);return function(){return clearTimeout(e)}}),[]);var a=Bd().createElement(wT,{verticalAlign:"start",padding:"0 0 8px 8px"},Bd().createElement(fM,{"aria-label":t.ariaLabel})),s={};return r&&(s.text={display:"none"},t.onText||t.offText||(s.pill={display:"none"})),Bd().createElement(yM,(0,e.__assign)({},i,{styles:s}),r?a:null)},_M=function(t){var n,r=t.errorCalloutProps,o=t.toggleProps,i=(0,Fd.useRef)(null);return n=o.onText||o.offText?r.targetOrTriggerButton:i,Bd().createElement(yM,(0,e.__assign)({},o,{ref:i,styles:{text:{display:"none"}}}),Bd().createElement(wT,{verticalAlign:"baseline"},Bd().createElement(rR,{calloutPosition:"bottom-center",targetOrTriggerButton:n,errorMessageAriaLabel:r.errorMessageAriaLabel,errorMessage:r.errorMessage})))},CM=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,c=t.offText,l=t.onChange,u=t.checked,d=t.disabled,p=void 0!==d&&d,h=t.operationData,f=t.componentRef,m=(0,e.__rest)(t,["aria-label","label","labelPosition","labelState","onText","offText","onChange","checked","disabled","operationData","componentRef"]);V_("Toggle",m.id),Ek("Toggle",m);var g=(0,e.__assign)((0,e.__assign)({ariaLabel:n,label:r,labelState:a,onText:s,offText:c,onChange:l,checked:u,disabled:p,componentRef:f},m),function(e){if("inline"===e)return{inlineLabel:!0}}(i));if(h){var v=Bd().createElement(yM,(0,e.__assign)({},g));return h.errorCallout&&(v=Bd().createElement(_M,{toggleProps:g,errorCalloutProps:h.errorCallout,operationData:h})),Bd().createElement(Zm,{operationData:h.progressViewOperationData,updatingView:Bd().createElement(bM,(0,e.__assign)({},g)),finishedView:Bd().createElement(yM,(0,e.__assign)({},g)),updateFailedView:v})}return Bd().createElement(yM,(0,e.__assign)({},g))},EM=function(t){var n=t.label,r=t.togglePosition,o=void 0===r?"start":r,i=(0,e.__rest)(t,["label","togglePosition"]),a=sS(),s="s"===a||"m"===a||"l"===a,c=(0,e.__assign)({},i);return s&&(c=(0,e.__assign)((0,e.__assign)({},i),{offText:void 0,onText:void 0})),Bd().createElement(CT,{totalSlots:5,reversed:"end"===o,verticalAlign:"center"},Bd().createElement(_T,{slots:2},Bd().createElement(wT,{verticalAlign:"center",horizontalAlign:"end",padding:"12px 0 0 0"},Bd().createElement(PT,{keycodes:[13]},Bd().createElement(CM,(0,e.__assign)({},c))))),Bd().createElement(_T,{slots:3},s?null:Bd().createElement(DT,{variant:"bodySecondaryText",block:!0,nowrap:!0},n)))},wM=[iM,tM,dR,EM,function(t){var n=t.kind,r=t.showDrawerLinkEllipsis,o=void 0===r||r,i=(0,e.__rest)(t,["kind","showDrawerLinkEllipsis"]),a=Bd().createElement(Bd().Fragment,null),s=o?{truncatedLinkProps:{}}:void 0;switch(n){case"hyperlink":a=Bd().createElement(TA,(0,e.__assign)({},i.hyperlink,s));break;case"routelink":a=Bd().createElement(TA,(0,e.__assign)({},i.routelink,s));break;case"nohreflink":a=Bd().createElement(IA,(0,e.__assign)({},i.nohreflink,s))}return Bd().createElement(PT,{keycodes:[13]},Bd().createElement(z_,{styles:_R,doNotRenderFalsyValues:!0},a))},bR,eM,sM,yR],xM=function(e){var t,n,r=e.totalSlots,o=e.columns,i=e.chevronPosition,a=void 0===i?"start":i,s=e.progressIndicator,c=e.showAltBackgroundColor,l=void 0!==c&&c,u=e.minHeight,d=void 0===u?"48px":u,p=e.indentPadding,h=void 0===p?"0px":p,f=Mw(),m=[iM,bR,sM,eM],g=m.map((function(e){return e.name})).join(", "),v=(0,Fd.useContext)(kM).drawerHeaderTitleId;t=o&&o.length>=1?o[0].column:void 0,(0,Fd.useEffect)((function(){t&&m.includes(t.type)||wx("DrawerHeader","Invalid first column for Drawer Header. Acceptable types for the DrawerHeader's first column are: ".concat(g),1),o.forEach((function(e){gx(e.column,wM,"DrawerHeader")}))}),[o]);var y=Bd().createElement(z_,{verticalAlign:"center",styles:{root:{padding:"0px 16px"}},doNotRenderFalsyValues:!0},Bd().createElement(JA,{chevronPosition:a}));t&&(n=Bd().cloneElement(t,{id:v}));var b=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 Bd().createElement(_T,{slots:e.slots,key:r},Bd().createElement(z_,{horizontal:!0,styles:s?OA(a,h):0===r?FA(h):void 0,doNotRenderFalsyValues:!0},"start"===a&&0===r?y:null,Bd().createElement(z_,{styles:LA(i),doNotRenderFalsyValues:!0},0===r&&t?n:e.column),"end"===a&&r===o.length-1?y:null))})),_=s?Bd().createElement(MA,{ariaValueText:null===s||void 0===s?void 0:s.ariaValueText}):Bd().createElement(Bd().Fragment,null),C=s?"6px 0px 8px 0px":"8px 0px";return Bd().createElement(z_,{verticalAlign:"center",styles:NA(f,l,d),doNotRenderFalsyValues:!0},_,Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",tokens:{padding:C},doNotRenderFalsyValues:!0},Bd().createElement(z_,{verticalAlign:"center",styles:{root:{width:"100%"}},doNotRenderFalsyValues:!0},Bd().createElement(CT,{verticalAlign:"center",totalSlots:r},b))))},kM=(0,Fd.createContext)({drawerOpen:!1,drawerHeaderTitleId:""}),SM=[xM],TM=function(t){var n,r,o,i=t.drawerOpen,a=void 0!==i&&i,s=t.drawerHeader,c=t.drawerContentPadding,l=t.borderRadius,u=void 0===l?"4px":l,d=t.shadow,p=void 0!==d&&d,h=t.onClickToOpen,f=t.onClickToClose,m=t.buttonId,g=t.children,v=t.showDivider,y=void 0!==v&&v,b=t.removeTreeRole,_=void 0!==b&&b,C=(0,e.__rest)(t,["drawerOpen","drawerHeader","drawerContentPadding","borderRadius","shadow","onClickToOpen","onClickToClose","buttonId","children","showDivider","removeTreeRole"]),E=Mw();n=s,r=SM,o="Drawer",(0,Fd.useEffect)((function(){gx(n,r,o)}),[n,r,o]);var w=function(e){var t=a?f:h;null===t||void 0===t||t(e)},x="drawer_".concat(Jd()),k="drawerHeaderTitle_".concat(Jd());return Bd().createElement(kM.Provider,{value:{drawerOpen:a,drawerHeaderTitleId:k}},Bd().createElement(z_,{role:_?void 0:"tree",styles:uS(E,u,p,y),doNotRenderFalsyValues:!0},Bd().createElement(z_,{horizontal:!0,doNotRenderFalsyValues:!0},Bd().createElement(z_,(0,e.__assign)({tabIndex:0,id:m,"data-is-focusable":!0,onClick:w,onKeyDown:function(e){13!==e.keyCode&&27!==e.keyCode||w(e)},styles:lS(),"aria-selected":a,"aria-expanded":a,role:"treeitem"},C,{doNotRenderFalsyValues:!0}),Bd().createElement(wk,{direction:"horizontal"},s))),Bd().createElement(z_,{id:x,role:"treeitem","aria-labelledby":k,tokens:{padding:a?c:"0px"},doNotRenderFalsyValues:!0},a?g:void 0)))},IM=function(t){var n=t.accordionDrawers,r=t.drawerIndexOpen,o=t.borderRadius,i=void 0===o?"8px":o,a=t.showBoxShadow,s=void 0===a||a,c=(0,e.__rest)(t,["accordionDrawers","drawerIndexOpen","borderRadius","showBoxShadow"]);V_("Accordion",c.id);var l={root:{borderRadius:i,overflow:"hidden",boxShadow:s?Gm.depth4:Gm.depth0}};return Bd().createElement(z_,{role:"tree",styles:l,doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:{root:{overflow:"auto"}},doNotRenderFalsyValues:!0},n.map((function(t,o){var i=o!==n.length-1?"0px 0px 1px 0px":"0px";return Bd().createElement(z_,{key:o,padding:i,id:c.id,lang:c.lang,doNotRenderFalsyValues:!0},Bd().createElement(TM,(0,e.__assign)({},t,{borderRadius:"0px",shadow:!1,drawerOpen:o===r,removeTreeRole:!0})))}))))},AM="8px 0 8px 16px",PM=function(t){var n=t.operationalData,r=t.children,o=Bd().createElement(Bd().Fragment,null,r);return n?Bd().createElement(Zm,{operationData:n.operationData,updatingView:Bd().createElement(fM,(0,e.__assign)({},n.spinnerProps)),finishedView:o,inertView:o}):o},DM=function(t,n){switch(t.contentType){case"hyperlink":return t.hyperlinkElements.map((function(t,r){return Bd().createElement(TA,(0,e.__assign)({},t,{disabled:n,key:r}))}));case"text":return t.textElements.map((function(r,o){return t.truncatedTextProps?Bd().createElement(SA,(0,e.__assign)({lines:t.truncatedTextProps.lines,stopPropagation:t.truncatedTextProps.stopPropagation},r,{disabled:n,key:o})):Bd().createElement(DT,(0,e.__assign)({},r,{disabled:n,key:o}))}));case"callout":return t.calloutElements.map((function(t,n){return Bd().createElement(vR,(0,e.__assign)({},t,{key:n}))}));default:return}},RM=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=(0,e.__rest)(t,["actionButtonProps","menuProps","collapseActionText","disabled","menuDisabled","operationalData"]),c=bm(),l=c.twoUITelemetryIds.areaBiId,u=n.map((function(t,n){return Bd().createElement(PT,{key:n},Bd().createElement(aR,(0,e.__assign)({},t,{onClick:function(e){var n={clickId:"".concat(t["data-bi-id"]),pageArea:l};c.reportClick(n),"onClick"in t&&t.onClick(e)}})))})),d={menuProps:o,height:"40px",alignment:"flex-end","aria-label":"","data-bi-id":""};return Bd().createElement(wT,{horizontal:!0,grow:!0,childrenGap:16},Bd().createElement(wT,{verticalAlign:"center"},Bd().createElement(PM,{operationalData:a},DM(s,i))),Bd().createElement(lR,(0,e.__assign)({},d),u))},MM="0 16px 0 0",NM=function(t){var n=t.menuProps,r=t.disabled,o=t.operationalData,i=(0,e.__rest)(t,["menuProps","disabled","operationalData"]);return Bd().createElement(wT,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},Bd().createElement(wT,null,Bd().createElement(PM,{operationalData:o},DM(i,r))),Bd().createElement(PT,null,Bd().createElement(cR,(0,e.__assign)({},n,{disabled:r,menuItemsPadding:2}))))},LM=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[tS]={inset:"4px"},r)}},rootHovered:{color:e.palette.themePrimary,background:t?e.palette[t]:e.palette.neutralMed},icon:{marginRight:"4px",marginLeft:"0px"}}},OM=function(t){var n=t.href,r=t.iconName,o=t.backgroundHoverColorOverride,i=(0,e.__rest)(t,["href","iconName","backgroundHoverColorOverride"]);Ek("CardCallToAction",i);var a=bm(),s=Mw();(0,Fd.useEffect)((function(){a.checkUrlAndReportHttp(n)}),[n]);var c=(0,e.__assign)({},i);return Bd().createElement(PT,null,Bd().createElement(JD,(0,e.__assign)({href:n,iconProps:{iconName:r},styles:LM(s,o,!!r)},c)))},FM={tokens:{childrenGap:10,padding:"16px 16px 0 16px"},styles:{root:{marginBottom:"-20px"}},grow:!0},BM=[TA,hR,IA],HM=function(t){var n=t.heading,r=t.text,o=t.textColorOverride;return(0,Fd.useEffect)((function(){"string"!==typeof r&&Object.keys(r.tokensAndValues).forEach((function(e){return function(e,t,n){var r=Cx(e);return _x(e)?(bx(n).test(r)||!t.includes(e.type)||wx(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],BM,"CardDetails")}))}),[r]),Bd().createElement(z_,(0,e.__assign)({},FM,{doNotRenderFalsyValues:!0}),Bd().createElement(SA,{variant:"subjectTitle",lines:1},n),"string"===typeof r?Bd().createElement(SA,{variant:"metadataText",colorOverride:o,lines:3},r):Bd().createElement(AA,(0,e.__assign)({},r,{truncatedTextProps:{lines:3}})))},zM="12px 0 12px 16px",VM=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}}}},UM=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,c=function(t,n,r,o){return{styles:{root:(0,e.__assign)({cursor:r?"pointer":void 0},VM(t,o))},tokens:{padding:n?"12px 12px 12px 16px":zM}}}(Mw(),s,!!r,a.backgroundHoverColorOverride),l=c.styles,u=c.tokens,d=Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:5},"withTitleImage"===a.headerType?Bd().createElement(jR,{width:22,height:22,imageType:"ariaHiddenImage",src:a.imgSrc}):null,Bd().createElement(SA,{variant:"headerText",lines:1,type:"heading",tag:i},n)),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},"withInfoIcon"===a.headerType?Bd().createElement(WS,{iconName:"Info",size:"14px",color:"errorIcon"}):null,a.headerType&&"default"!==a.headerType||!a.menuProps?null:Bd().createElement(PT,null,Bd().createElement(cR,(0,e.__assign)({},a.menuProps,{iconName:"MoreVertical",iconColor:"neutralSecondary",menuIconVariant:"card"})))));return r?Bd().createElement(PT,null,Bd().createElement(z_,(0,e.__assign)({styles:l,tokens:u,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between"},r,{tabIndex:0,doNotRenderFalsyValues:!0}),Bd().createElement(JD,(0,e.__assign)({text:n,styles:vT},r)),d)):Bd().createElement(z_,{styles:l,tokens:u,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",doNotRenderFalsyValues:!0},d)};function WM(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 jM=function(e){return{styles:{root:{margin:"16px 16px 0",overflow:"hidden"}},tokens:{padding:"".concat(e&&"0 24px")}}},qM={width:"100%",height:"210px"},GM=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:Gm.depth4,overflow:"hidden",transitionDuration:mT,cursor:n?"pointer":"auto",selectors:(o={":hover":{boxShadow:n?Gm.depth8:void 0}},o[By]={outline:"1px solid transparent",":focus":{outline:"3px auto highlight"},"a:focus":{outline:"3px auto transparent"}},o)}}},KM={large:"424px",medium:"336px",small:"124px"},YM=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,c=t.backgroundColorOverride,l=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=bm();Ek("CardCanvas",p);var f=Mw(),m=a&&a["aria-label"]||l;return Bd().createElement(z_,(0,e.__assign)({role:d,"data-testid":"card",onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),WM(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:GM(f,KM[i],!!a,c),tokens:{childrenGap:r},"aria-label":m},p,{doNotRenderFalsyValues:!0}),s)},QM=__webpack_require__(39997),XM=__webpack_require__.n(QM),ZM={hover:"mouseenter",click:"click"},JM="data_ready",$M="complete",eN=function(e){var t=e.id,n=e.src,r=e.alt,o=e.animationTrigger,i=e.height,a=e.width,s=e.autoPlay,c=void 0!==s&&s,l=e.loop,u=void 0!==l&&l,d=bm(),p=(0,Fd.useRef)(null),h=cD(r),f=(0,Fd.useRef)(!1),m=(0,Fd.useRef)(),g=o?ZM[o]:void 0;(0,Fd.useEffect)((function(){if(g){var e=function(){!f.current&&m.current&&(f.current=!0,m.current.goToAndPlay(0))};return p.current.addEventListener(g,e),function(){p.current.removeEventListener(g,e)}}}),[g]),(0,Fd.useEffect)((function(){var e=function(){f.current=!1},t=function(){f.current=c,m.current.addEventListener($M,e)};return m.current=XM().loadAnimation({container:p.current,renderer:"svg",loop:u,autoplay:c,path:n,name:h}),m.current.addEventListener(JM,t),function(){m.current.removeEventListener(JM,t),m.current.removeEventListener($M,e),XM().destroy(h)}}),[m,r,c,u,n,h]),(0,Fd.useEffect)((function(){d.checkUrlAndReportHttp(n)}),[n]);var v={height:i,width:a};return Bd().createElement("div",{id:t,ref:p,style:v,role:"img","aria-label":r})},tN=Ww(),nN=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=tN(r,{className:a});return Fd.createElement(i,(0,e.__assign)({role:"status",className:s.root},A_(this.props,I_,["className"])),Fd.createElement(Yw,null,Fd.createElement("div",{className:s.screenReaderText},n)))},n.defaultProps={"aria-live":"polite"},n}(Fd.Component),rN=Lw(nN,(function(e){return{root:e.className,screenReaderText:Zy}})),oN=function(t){var n=t.message,r=t.ariaLive,o=void 0===r?"polite":r,i=(0,e.__rest)(t,["message","ariaLive"]);return V_("Announced"),Bd().createElement(rN,(0,e.__assign)({message:n,"aria-live":o},i))},iN=function(t){var n=t.announcedComponent,r=sN();return Bd().createElement(Bd().Fragment,null,r.announcements.map((function(t,r){return Bd().createElement(n,(0,e.__assign)({key:r},t))})))},aN=(0,Fd.createContext)(null),sN=function(){var e=(0,Fd.useContext)(aN);if(null===e)throw new Error("AnnouncementsContext: Context is uninitialized. Confirm that your component is contained within an AnnouncementsContext.Provider component.");return e.state},cN=function(e){var t=e.children,n=e.announcedComponent,r=(0,Fd.useReducer)((function(e,t){if("push"===t.type)return{announcements:e.announcements.concat(t.announcement)}}),{announcements:[]}),o=r[0],i=r[1];return Bd().createElement(aN.Provider,{value:{state:o,dispatch:i}},t,Bd().createElement(iN,{announcedComponent:n}))},lN=function(e){return function(){return e.length<1?"Banner cannot have less than ".concat(1," column"):void 0}},uN=function(e){return function(){return e.length>3?"Banner cannot have more than ".concat(3," column"):void 0}},dN=(0,Fd.createContext)({setDisplaySecondColumnContainer:function(){},setDisplayThirdColumnContainer:function(){}}),pN=function(t){var n=t.id,r=t.expanded,o=void 0===r||r,i=t.children;V_("Banner",n);var a=(0,Fd.useState)(!0),s=a[0],c=a[1],l=(0,Fd.useState)(!0),u=l[0],d=l[1],p=Bd().Children.toArray(i);Ex("Banner",[lN(p),uN(p)]);var h=p.length,f=sS(),m=["s","m","l"].includes(f),g="".concat(m?"24px":"30px"," 0 0"),v=o?g:void 0,y=!m&&h>1?"50%":"100%",b=function(e){return e?{root:{width:"s"===f?"100%":"50%"}}:{root:{width:"0%",overflow:"hidden"}}},_={horizontalAlign:m?"start":"end"},C=m?"100%":"50%";return Bd().createElement(dN.Provider,{value:{setDisplaySecondColumnContainer:c,setDisplayThirdColumnContainer:d}},Bd().createElement(z_,{horizontal:!0,wrap:!0,styles:{root:{width:"100%",padding:v}},id:n,doNotRenderFalsyValues:!0},Bd().createElement(B_,{styles:{root:{width:y}},shrink:0},p[0]),h>1?Bd().createElement(z_,(0,e.__assign)({},_,{horizontal:!0,wrap:!0,styles:{root:{width:C}},doNotRenderFalsyValues:!0}),p[1]?Bd().createElement(B_,{styles:b(s),shrink:0},p[1]):null,p[2]?Bd().createElement(B_,{styles:b(u),shrink:0},p[2]):null):null))},hN=Ww(),fN=function(){return null},mN={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},gN=function(t){function n(n){var r=t.call(this,n)||this;return r._focusZone=Fd.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?bP:i,s=n.onRenderItem,c=n.overflowAriaLabel,l=n.overflowIndex,u=n.onRenderOverflowIcon,d=n.overflowButtonAs,p=t.renderedOverflowItems,h=t.renderedItems,f=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:mN}})),m=h.length-1,g=p&&0!==p.length,v=h.map((function(e,t){var n=r._onRenderItem;return e.onRender&&(n=xP(e.onRender,n)),s&&(n=xP(s,n)),Fd.createElement("li",{className:r._classNames.listItem,key:e.key||String(t)},n(e),(t!==m||g&&t===l-1)&&Fd.createElement(a,{className:r._classNames.chevron,iconName:wv(r.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(g){var y=u?{}:{iconName:"More"},b=u||fN,_=d||eR;v.splice(l,0,Fd.createElement("li",{className:r._classNames.overflow,key:"overflow"},Fd.createElement(_,{className:r._classNames.overflowButton,iconProps:y,role:"button","aria-haspopup":"true",ariaLabel:c,onRenderMenuIcon:b,menuProps:{items:f,directionalHint:Ik}}),l!==m+1&&Fd.createElement(a,{className:r._classNames.chevron,iconName:wv(r.props.theme)?"ChevronLeft":"ChevronRight",item:p[p.length-1]})))}var C=A_(r.props,s_,["className"]);return Fd.createElement("div",(0,e.__assign)({className:r._classNames.root,role:"navigation","aria-label":o},C),Fd.createElement(Ck,(0,e.__assign)({componentRef:r._focusZone,direction:mx.horizontal},r.props.focusZoneProps),Fd.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,c=t.onRenderContent,l=(0,e.__rest)(t,["as","href","onClick","isCurrentItem","text","onRenderContent"]),u=vN;if(c&&(u=xP(c,u)),r.props.onRenderItemContent&&(u=xP(r.props.onRenderItemContent,u)),i||o)return Fd.createElement($S,(0,e.__assign)({},l,{as:n,className:r._classNames.itemLink,href:o,"aria-current":a?"page":void 0,onClick:r._onBreadcrumbClicked.bind(r,t)}),Fd.createElement(yA,(0,e.__assign)({content:s,overflowMode:RT.Parent},r.props.tooltipHostProps),u(t)));var d=n||"span";return Fd.createElement(d,(0,e.__assign)({},l,{className:r._classNames.item}),Fd.createElement(yA,(0,e.__assign)({content:s,overflowMode:RT.Parent},r.props.tooltipHostProps),u(t)))},r._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},Yx(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,c=t.items,l=t.className,u=t.theme,d=t.styles,p=(0,e.__spreadArray)([],c,!0),h=p.splice(a,p.length-s),f={props:this.props,renderedItems:p,renderedOverflowItems:h};return this._classNames=hN(d,{className:l,theme:u}),Fd.createElement(FR,{onRenderData:this._onRenderBreadcrumb,onReduceData:r,onGrowData:i,data:f})},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}(Fd.Component);function vN(e){return e?Fd.createElement(Fd.Fragment,null,e.text):null}var yN,bN,_N,CN,EN={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"},wN={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},xN=Uy(0,479),kN=Uy(zy,639),SN=Lw(gN,(function(t){var n,r,o,i,a,s=t.className,c=t.theme,l=c.palette,u=c.semanticColors,d=c.fonts,p=$y(EN,c),h=u.menuItemBackgroundHovered,f=u.menuItemBackgroundPressed,m=l.neutralSecondary,g=Dy.regular,v=l.neutralPrimary,y=l.neutralPrimary,b=Dy.semibold,_=l.neutralSecondary,C=l.neutralSecondary,E={fontWeight:b,color:y},w={":hover":{color:v,backgroundColor:h,cursor:"pointer",selectors:(n={},n[By]={color:"Highlight",backgroundColor:"transparent"},n)},":active":{backgroundColor:f,color:v},"&:active:hover":{color:v,backgroundColor:f},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},x={color:m,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)({},E),(r={},r[By]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},r)),"&:last-child .ms-Breadcrumb-item":E}}],chevron:[p.chevron,{color:_,fontSize:d.small.fontSize,selectors:(o={},o[By]=(0,e.__assign)({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o[kN]={fontSize:8},o[xN]={fontSize:8},o)}],overflow:[p.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[p.overflowButton,Yy(c,{highContrastStyle:{left:1,right:1,top:1,bottom:1}}),wN,{fontSize:16,color:C,height:"100%",cursor:"pointer",selectors:(0,e.__assign)((0,e.__assign)({},w),(i={},i[xN]={padding:"4px 6px"},i[kN]={fontSize:d.mediumPlus.fontSize},i))}],itemLink:[p.itemLink,Yy(c),wN,(0,e.__assign)((0,e.__assign)({},x),{selectors:(0,e.__assign)((a={":focus":{color:l.neutralDark}},a[".".concat(jy," &:focus")]={outline:"none"},a),w)})],item:[p.item,(0,e.__assign)((0,e.__assign)({},x),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"}),TN={selectors:(yN={},yN[Xk]={fontSize:"12px",lineHeight:"16px"},yN[qk]={fontSize:"12px",lineHeight:"16px"},yN[Kk]={fontSize:"14px",lineHeight:"20px"},yN)},IN=function(t,n){var r,o={};return n&&(o={color:t.palette.neutralSecondary,fontFamily:US,selectors:(r={},r[Xk]={fontSize:18},r[qk]={fontSize:18},r[Gk]={fontSize:24},r[Kk]={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)({},TN),{":hover":{cursor:"text"}}),itemLink:TN,list:{selectors:{"li:first-child > *:first-child":{paddingLeft:"0px"}},alignItems:"center"}}},AN=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[By]=(i={},i[a]={color:"LinkText"},i[":focus"]={outline:"highlight auto 1px !important"},i),n)}},PN=function(e,t){var n=oT(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"}}},DN=function(e,t,n){return{root:{marginRight:4,marginLeft:e?4:0,maxWidth:t,width:n,alignItems:"center"}}},RN=function(e){return{root:{marginRight:e?8:2,marginLeft:2,marginTop:0}}},MN=function(e){return{root:{marginRight:e?8:2,marginLeft:2,marginTop:0}}},NN=0,LN=1,ON=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,c=t.dataBiPrefix,l=t.isIncludingCurrentPage,u=t.itemStyle,d=void 0===u?NN:u,p=(0,e.__rest)(t,["items","overflowIndex","maxDisplayedItems","pageArea","dataBiPrefix","isIncludingCurrentPage","itemStyle"]),h=bm();V_("Breadcrumb"),(0,Fd.useEffect)((function(){}),[]);var f=sS(),m=Rf(),g=Mw(),v=d===LN,y=n.length>1?n[0].mediaProps:void 0,b=(0,Fd.useRef)(null),_=(0,Fd.useState)(500),C=_[0],E=_[1],w=(0,Fd.useState)(void 0),x=w[0],k=w[1];function S(e,t){var n=function(e){var t,n,r,o,i=document.createElement("span"),a=oT(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 T(e,t,n){var r="paneTitle",o=16;switch(f){case"l":case"xl":case"xxl":case"xxxl":r="statusHeader",o=24}var i=t?S(e,r):0;return n?i+o+2+8:i+4}var I=function(){if(b.current){var e=.85*b.current.offsetWidth-24;if(e>0)if(1===n.length)E(e);else{var t=T(n[0].text,!y,!!n[0].mediaProps),r=T(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)),E(i);else{var a=r>o?o:r;k(void 0),E(a)}}else k(void 0),E(void 0)}};(0,Fd.useEffect)((function(){window.addEventListener("resize",I)}),[]);var A=function(e,t){var n={clickId:"".concat(c,"-").concat(null===t||void 0===t?void 0:t.key),pageArea:s};h.reportClick(n)},P=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){A(0,n),m.push(e.to)},isCurrentItem:l&&t===n.length-1,id:e.id};case"hyperlink":return{text:e.text,key:e.id,href:e.href,onClick:A,isCurrentItem:l&&t===n.length-1,id:e.id};case"text":return{text:e.text,key:e.id,isCurrentItem:l&&t===n.length-1,id:e.id}}}));(0,Fd.useEffect)((function(){P.forEach((function(e){h.checkUrlAndReportHttp(e.href)}))}),[P]);var D=(0,Fd.useState)("paneTitle"),R=D[0],M=D[1],N=(0,Fd.useState)("".concat(16,"px")),L=N[0],O=N[1];(0,Fd.useEffect)((function(){switch(I(),f){case"s":case"m":M("paneTitle"),O("".concat(16,"px"));break;case"l":case"xl":case"xxl":case"xxxl":M("statusHeader"),O("".concat(24,"px"))}}),[f]);var F=Bd().createElement(SN,(0,e.__assign)({styles:IN(g,v),items:P,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,c=n.findIndex((function(e){return e.id===(null===t||void 0===t?void 0:t.key)})),l=!(s&&!a)&&""!==n[c].text;switch(null===(r=n[c].mediaProps)||void 0===r?void 0:r.kind){case"image":o=Bd().createElement(z_,{styles:RN(l),doNotRenderFalsyValues:!0},Bd().createElement(jR,(0,e.__assign)({imageType:"altTextImage"},n[c].mediaProps,{height:L,width:L})));break;case"icon":i=n[c].mediaProps.iconName,o=Bd().createElement(z_,{styles:MN(l),doNotRenderFalsyValues:!0},Bd().createElement(WS,(0,e.__assign)({},n[c].mediaProps,{size:L})))}var u={href:t.href,styles:AN(g,i),"data-bi-id":t.text,"aria-label":t.text,onClick:t.onClick,underline:!1,id:t.id};return a||"text"===n[c].type?Bd().createElement(z_,{horizontal:!0,styles:a?DN(void 0===o,void 0,C):DN(void 0===o,s?x:void 0,void 0),doNotRenderFalsyValues:!0},o,Bd().createElement(SA,{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?Bd().createElement(_A,{tooltipText:t.text,tooltipPosition:"top-center"},Bd().createElement($S,(0,e.__assign)({},u),Bd().createElement(z_,{horizontal:!0,doNotRenderFalsyValues:!0},o))):Bd().createElement(_A,{tooltipText:t.text,tooltipPosition:"top-center"},Bd().createElement($S,(0,e.__assign)({},u),Bd().createElement(z_,{horizontal:!0,styles:DN(void 0===o,s?x:void 0,void 0),doNotRenderFalsyValues:!0},o,Bd().createElement(iT,{className:"crumbTitle",styles:PN(g,R)},t.text))))}:void 0,focusZoneProps:{handleTabKey:1}},p));return v?Bd().createElement("div",{className:"divRef",ref:b},F):F},FN=function(t){var n=t.breadcrumbTitleProps,r=(0,e.__rest)(t,["breadcrumbTitleProps"]);return Ek("BannerBreadcrumbTitleColumn",r),Bd().createElement(z_,{styles:{root:{paddingTop:"18px",paddingBottom:"24px"}},doNotRenderFalsyValues:!0},Bd().createElement(ON,(0,e.__assign)({maxDisplayedItems:5,itemStyle:LN},n)))},BN=function(){var e;return{root:{selectors:(e={},e[Xk]={paddingTop:"4px",paddingBottom:"8px"},e[qk]={paddingTop:"8px",paddingBottom:"8px"},e[Kk]={paddingTop:"29px",paddingBottom:"19px"},e)}}},HN=function(e,t,n){var r,o,i,a,s,c,l,u=".".concat(t),d=n?e.palette.themeDarkAlt:e.palette.neutralPrimary,p=n?e.palette.themePrimary:e.palette.themeSecondary,h=p,f=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[Zk]={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:f},s)},r[By]=(c={".FullCircleMask, .infoColumnCta, .infoColumnInfoText":{color:"LinkText"}},c[u]={color:"Window"},c[":hover, &:focus"]=(l={".FullCircleMask, .infoColumnCta, .infoColumnInfoText, .ChevronRight, .ChevronLeft":{color:"highlight"}},l[u]={color:"Window"},l),c),r)}}},zN=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[By]=(n={},n[r]={"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"},n),t)}}},VN=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[By]={".StatusWarning, .StatusCircle7":{"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"}},t)}}},UN=function(e){var t,n;return{root:{maxWidth:"100%",marginRight:e?void 0:"13px",selectors:{".infoColumnCta":{fontWeight:Dy.semibold,selectors:(t={},t[Zk]={lineHeight:"16px",marginTop:"8px"},t[Gk]={lineHeight:"16px"},t)},".infoColumnInfoText":{lineHeight:"16px",selectors:(n={},n[Xk]={display:"none"},n[qk]={display:"none"},n[Gk]={display:"block"},n)}}}}},WN=function(t){var n=t.iconName,r=t.ctaText,o=t.ctaUrl,i=t.onClick,a=t.infoText,s=t.badge,c=t.isHyperlinkVariant,l=(0,e.__rest)(t,["iconName","ctaText","ctaUrl","onClick","infoText","badge","isHyperlinkVariant"]);Ek("BannerInfoColumn",l);var u,d=Mw(),p=BA();if("Alert"===s)u=Bd().createElement(z_,{styles:VN(p),doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:"StatusCircle7",color:"errorIcon",size:"32px"}),Bd().createElement(WS,{iconName:"StatusWarning",color:"white",size:"24px"}));else u=Bd().createElement(Bd().Fragment,null);return Bd().createElement(z_,{horizontal:!0,styles:BN(),doNotRenderFalsyValues:!0},Bd().createElement(B_,null,Bd().createElement($S,(0,e.__assign)({href:o,onClick:i,style:{textDecoration:"none",boxShadow:"none",display:"inline-block"},styles:HN(d,n,c)},l),u,Bd().createElement(z_,{horizontal:!0,styles:zN(n),doNotRenderFalsyValues:!0},Bd().createElement(WS,{iconName:"FullCircleMask",size:"32px"}),Bd().createElement(WS,{iconName:n,size:"16px"})),Bd().createElement(z_,{styles:UN(c),doNotRenderFalsyValues:!0},Bd().createElement(iT,{className:"infoColumnCta",block:!0,variant:"small"},r),Bd().createElement(iT,{className:"infoColumnInfoText",block:!0,variant:"small"},a)))),c?Bd().createElement(B_,{styles:HN(d,n,c)},Bd().createElement(WS,{iconName:HA("ChevronRight"),size:"12px"})):null)},jN=function(e){var t=e.height,n=e.shimmerColors;return V_("ShimmerCircle"),Bd().createElement(px,{style:{borderRadius:"100%",overflow:"hidden"},shimmerElements:[{type:Gw.circle,height:t}],shimmerColors:n})};!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"}(bN||(bN={})),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"}(_N||(_N={})),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"}(CN||(CN={}));var qN,GN,KN,YN=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,QN=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,XN=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ZN=/\s+/g,JN=/[\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 $N(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(YN,"")).replace(QN,"")).replace(ZN," ")).trim()}(e),JN.test(e)||!n&&XN.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"}(GN||(GN={})),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"}(KN||(KN={}));var eL=function(e){return{isSize8:e===bN.size8,isSize10:e===bN.size10||e===bN.tiny,isSize16:e===bN.size16,isSize24:e===bN.size24||e===bN.extraExtraSmall,isSize28:e===bN.size28||e===bN.extraSmall,isSize32:e===bN.size32,isSize40:e===bN.size40||e===bN.small,isSize48:e===bN.size48||e===bN.regular,isSize56:e===bN.size56,isSize72:e===bN.size72||e===bN.large,isSize100:e===bN.size100||e===bN.extraLarge,isSize120:e===bN.size120}},tL=((qN={})[bN.tiny]=10,qN[bN.extraExtraSmall]=24,qN[bN.extraSmall]=28,qN[bN.small]=40,qN[bN.regular]=48,qN[bN.large]=72,qN[bN.extraLarge]=100,qN[bN.size8]=8,qN[bN.size10]=10,qN[bN.size16]=16,qN[bN.size24]=24,qN[bN.size28]=28,qN[bN.size32]=32,qN[bN.size40]=40,qN[bN.size48]=48,qN[bN.size56]=56,qN[bN.size72]=72,qN[bN.size100]=100,qN[bN.size120]=120,qN),nL=function(e){return{isAvailable:e===_N.online,isAway:e===_N.away,isBlocked:e===_N.blocked,isBusy:e===_N.busy,isDoNotDisturb:e===_N.dnd,isOffline:e===_N.offline}},rL=Ww({cacheSize:100}),oL=Fd.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,o=e.styles,i=e.presence,a=e.theme,s=e.presenceTitle,c=e.presenceColors,l=jC(t,Fd.useRef(null)),u=eL(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,f=n?{width:p,height:p}:void 0,m=rL(o,{theme:a,presence:i,size:e.size,isOutOfOffice:r,presenceColors:c});return i===_N.none?null:Fd.createElement("div",{role:"presentation",className:m.presence,style:f,title:s,ref:l},d&&Fd.createElement(bP,{className:m.presenceIcon,iconName:iL(e.presence,e.isOutOfOffice),style:h}))}));function iL(e,t){if(e){var n="SkypeArrow";switch(_N[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}oL.displayName="PersonaPresenceBase";var aL={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function sL(e){return{color:e,borderColor:e}}function cL(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function lL(e){return{height:e,width:e}}function uL(e){return{backgroundColor:e}}var dL=Lw(oL,(function(t){var n,r,o,i,a,s,c=t.theme,l=t.presenceColors,u=c.semanticColors,d=c.fonts,p=$y(aL,c),h=eL(t.size),f=nL(t.presence),m=l&&l.available||"#6BB700",g=l&&l.away||"#FFAA44",v=l&&l.busy||"#C43148",y=l&&l.dnd||"#C50F1F",b=l&&l.offline||"#8A8886",_=l&&l.oof||"#B4009E",C=l&&l.background||u.bodyBackground,E=f.isOffline||t.isOutOfOffice&&(f.isAvailable||f.isBusy||f.isAway||f.isDoNotDisturb),w=h.isSize72||h.isSize100?"2px":"1px";return{presence:[p.presence,(0,e.__assign)((0,e.__assign)({position:"absolute",height:KN.size12,width:KN.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(C),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:(n={},n[By]={borderColor:"Window",backgroundColor:"WindowText"},n)}),(h.isSize8||h.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(r={},r[By]={top:"9px",border:"1px solid WindowText"},r)},(h.isSize8||h.isSize10||h.isSize24||h.isSize28||h.isSize32)&&lL(KN.size8),(h.isSize40||h.isSize48)&&lL(KN.size12),h.isSize16&&{height:KN.size6,width:KN.size6,borderWidth:"1.5px"},h.isSize56&&lL(KN.size16),h.isSize72&&lL(KN.size20),h.isSize100&&lL(KN.size28),h.isSize120&&lL(KN.size32),f.isAvailable&&{backgroundColor:m,selectors:(o={},o[By]=uL("Highlight"),o)},f.isAway&&uL(g),f.isBlocked&&[{selectors:(i={":after":h.isSize40||h.isSize48||h.isSize72||h.isSize100?{content:'""',width:"100%",height:w,backgroundColor:v,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},i[By]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},i)}],f.isBusy&&uL(v),f.isDoNotDisturb&&uL(y),f.isOffline&&uL(b),(E||f.isBlocked)&&[{backgroundColor:C,selectors:(a={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(w," solid ").concat(v),borderRadius:"50%",boxSizing:"border-box"}},a[By]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},a)}],E&&f.isAvailable&&cL(w,m),E&&f.isBusy&&cL(w,v),E&&f.isAway&&cL(w,_),E&&f.isDoNotDisturb&&cL(w,y),E&&f.isOffline&&cL(w,b),E&&f.isOffline&&t.isOutOfOffice&&cL(w,_)],presenceIcon:[p.presenceIcon,{color:C,fontSize:"6px",lineHeight:KN.size12,verticalAlign:"top",selectors:(s={},s[By]={color:"Window"},s)},h.isSize56&&{fontSize:"8px",lineHeight:KN.size16},h.isSize72&&{fontSize:d.small.fontSize,lineHeight:KN.size20},h.isSize100&&{fontSize:d.medium.fontSize,lineHeight:KN.size28},h.isSize120&&{fontSize:d.medium.fontSize,lineHeight:KN.size32},f.isAway&&{position:"relative",left:E?void 0:"1px"},E&&f.isAvailable&&sL(m),E&&f.isBusy&&sL(v),E&&f.isAway&&sL(_),E&&f.isDoNotDisturb&&sL(y),E&&f.isOffline&&sL(b),E&&f.isOffline&&t.isOutOfOffice&&sL(_)]}}),void 0,{scope:"PersonaPresence"}),pL=[CN.lightBlue,CN.blue,CN.darkBlue,CN.teal,CN.green,CN.darkGreen,CN.lightPink,CN.pink,CN.magenta,CN.purple,CN.orange,CN.lightRed,CN.darkRed,CN.violet,CN.gold,CN.burgundy,CN.warmGray,CN.cyan,CN.rust,CN.coolGray],hL=pL.length;function fL(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"===typeof r?r:function(e){switch(e){case CN.lightBlue:return"#4F6BED";case CN.blue:return"#0078D4";case CN.darkBlue:return"#004E8C";case CN.teal:return"#038387";case CN.lightGreen:case CN.green:return"#498205";case CN.darkGreen:return"#0B6A0B";case CN.lightPink:return"#C239B3";case CN.pink:return"#E3008C";case CN.magenta:return"#881798";case CN.purple:return"#5C2E91";case CN.orange:return"#CA5010";case CN.red:return"#EE1111";case CN.lightRed:return"#D13438";case CN.darkRed:return"#A4262C";case CN.transparent:return"transparent";case CN.violet:return"#8764B8";case CN.gold:return"#986F0B";case CN.burgundy:return"#750B1C";case CN.warmGray:return"#7A7574";case CN.cyan:return"#005B70";case CN.rust:return"#8E562E";case CN.coolGray:return"#69797E";case CN.black:return"#1D1D1D";case CN.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=CN.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 pL[n%hL]}(n||t))}var mL=Ww({cacheSize:100}),gL=Jg((function(e,t,n,r,o,i){return jg(e,!i&&{backgroundColor:fL({text:r,initialsColor:t,primaryText:o}),color:n})})),vL={size:bN.size48,presence:_N.none,imageAlt:""};var yL=Fd.forwardRef((function(t,n){var r=WC(vL,t),o=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=Fd.useState(rP.notLoaded),o=r[0],i=r[1];return Fd.useEffect((function(){i(rP.notLoaded)}),[n]),[o,function(e){i(e),null===t||void 0===t||t(e)}]}(r),i=o[0],a=o[1],s=bL(a),c=r.className,l=r.coinProps,u=r.showUnknownPersonaCoin,d=r.coinSize,p=r.styles,h=r.imageUrl,f=r.initialsColor,m=r.initialsTextColor,g=r.isOutOfOffice,v=r.onRenderCoin,y=void 0===v?s:v,b=r.onRenderPersonaCoin,_=void 0===b?y:b,C=r.onRenderInitials,E=void 0===C?_L:C,w=r.presence,x=r.presenceTitle,k=r.presenceColors,S=r.primaryText,T=r.showInitialsUntilImageLoads,I=r.text,A=r.theme,P=r.size,D=A_(r,I_),R=A_(l||{},I_),M=d?{width:d,height:d}:void 0,N=u,L={coinSize:d,isOutOfOffice:g,presence:w,presenceTitle:x,presenceColors:k,size:P,theme:A},O=mL(p,{theme:A,className:l&&l.className?l.className:c,size:P,coinSize:d,showUnknownPersonaCoin:u}),F=Boolean(i!==rP.loaded&&(T&&h||!h||i===rP.error||N));return Fd.createElement("div",(0,e.__assign)({role:"presentation"},D,{className:O.coin,ref:n}),P!==bN.size8&&P!==bN.size10&&P!==bN.tiny?Fd.createElement("div",(0,e.__assign)({role:"presentation"},R,{className:O.imageArea,style:M}),F&&Fd.createElement("div",{className:gL(O.initials,f,m,I,S,u),style:M,"aria-hidden":"true"},E(r,_L)),!N&&_(r,s),Fd.createElement(dL,(0,e.__assign)({},L))):r.presence?Fd.createElement(dL,(0,e.__assign)({},L)):Fd.createElement(bP,{iconName:"Contact",className:O.size10WithoutPresenceIcon}),r.children)}));yL.displayName="PersonaCoinBase";var bL=function(e){return function(t){var n=t.coinSize,r=t.styles,o=t.imageUrl,i=t.imageAlt,a=t.imageShouldFadeIn,s=t.imageShouldStartVisible,c=t.theme,l=t.showUnknownPersonaCoin,u=t.size,d=void 0===u?vL.size:u;if(!o)return null;var p=mL(r,{theme:c,size:d,showUnknownPersonaCoin:l}),h=n||tL[d];return Fd.createElement(pP,{className:p.image,imageFit:tP.cover,src:o,width:h,height:h,alt:i,shouldFadeIn:a,shouldStartVisible:s,onLoadingStateChange:e})}},_L=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,o=e.text,i=e.primaryText,a=e.theme;if(r)return Fd.createElement(bP,{iconName:"Help"});var s=wv(a);return""!==(t=t||$N(o||i||"",s,n))?Fd.createElement("span",null,t):Fd.createElement(bP,{iconName:"Contact"})},CL={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"},EL=Lw(yL,(function(t){var n,r=t.className,o=t.theme,i=t.coinSize,a=o.palette,s=o.fonts,c=eL(t.size),l=$y(CL,o),u=i||t.size&&tL[t.size]||48;return{coin:[l.coin,s.medium,c.isSize8&&l.size8,c.isSize10&&l.size10,c.isSize16&&l.size16,c.isSize24&&l.size24,c.isSize28&&l.size28,c.isSize32&&l.size32,c.isSize40&&l.size40,c.isSize48&&l.size48,c.isSize56&&l.size56,c.isSize72&&l.size72,c.isSize100&&l.size100,c.isSize120&&l.size120,r],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[l.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:u,width:u},u<=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"},u<=10&&{overflow:"visible",background:"transparent",height:0,width:0},u>10&&{height:u,width:u}],initials:[l.initials,{borderRadius:"50%",color:t.showUnknownPersonaCoin?"rgb(168, 0, 0)":a.white,fontSize:s.large.fontSize,fontWeight:Dy.semibold,lineHeight:48===u?46:u,height:u,selectors:(n={},n[By]=(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:Dy.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"}),wL=Ww(),xL={size:bN.size48,presence:_N.none,imageAlt:"",showOverflowTooltip:!0};var kL=Fd.forwardRef((function(t,n){var r=WC(xL,t),o=jC(n,Fd.useRef(null)),i=function(){return r.text||r.primaryText||""},a=function(e,t,n){var o=t&&t(r,n);return o?Fd.createElement("div",{dir:"auto",className:e},o):void 0},s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return Fd.createElement(yA,{content:e,overflowMode:RT.Parent,directionalHint:xk},e)}:function(){return Fd.createElement(Fd.Fragment,null,e)}:void 0},c=s(i(),r.showOverflowTooltip),l=s(r.secondaryText,r.showOverflowTooltip),u=s(r.tertiaryText,r.showOverflowTooltip),d=s(r.optionalText,r.showOverflowTooltip),p=r.hidePersonaDetails,h=r.onRenderOptionalText,f=void 0===h?d:h,m=r.onRenderPrimaryText,g=void 0===m?c:m,v=r.onRenderSecondaryText,y=void 0===v?l:v,b=r.onRenderTertiaryText,_=void 0===b?u:b,C=r.onRenderPersonaCoin,E=void 0===C?function(t){return Fd.createElement(EL,(0,e.__assign)({},t))}:C,w=r.size,x=r.allowPhoneInitials,k=r.className,S=r.coinProps,T=r.showUnknownPersonaCoin,I=r.coinSize,A=r.styles,P=r.imageAlt,D=r.imageInitials,R=r.imageShouldFadeIn,M=r.imageShouldStartVisible,N=r.imageUrl,L=r.initialsColor,O=r.initialsTextColor,F=r.isOutOfOffice,B=r.onPhotoLoadingStateChange,H=r.onRenderCoin,z=r.onRenderInitials,V=r.presence,U=r.presenceTitle,W=r.presenceColors,j=r.showInitialsUntilImageLoads,q=r.showSecondaryText,G=r.theme,K=(0,e.__assign)({allowPhoneInitials:x,showUnknownPersonaCoin:T,coinSize:I,imageAlt:P,imageInitials:D,imageShouldFadeIn:R,imageShouldStartVisible:M,imageUrl:N,initialsColor:L,initialsTextColor:O,onPhotoLoadingStateChange:B,onRenderCoin:H,onRenderInitials:z,presence:V,presenceTitle:U,showInitialsUntilImageLoads:j,size:w,text:i(),isOutOfOffice:F,presenceColors:W},S),Y=wL(A,{theme:G,className:k,showSecondaryText:q,presence:V,size:w}),Q=A_(r,I_),X=Fd.createElement("div",{className:Y.details},a(Y.primaryText,g,c),a(Y.secondaryText,y,l),a(Y.tertiaryText,_,u),a(Y.optionalText,f,d),r.children);return Fd.createElement("div",(0,e.__assign)({},Q,{ref:o,className:Y.root,style:I?{height:I,minWidth:I}:void 0}),E(K,E),(!p||w===bN.size8||w===bN.size10||w===bN.tiny)&&X)}));kL.displayName="PersonaBase";var SL={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"},TL=Lw(kL,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=$y(SL,r),s=eL(e.size),c=nL(e.presence),l="16px",u={color:o.bodySubtext,fontWeight:Dy.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,Ob,{color:o.bodyText,position:"relative",height:GN.size48,minWidth:GN.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:GN.size8,minWidth:GN.size8}],s.isSize10&&[a.size10,{height:GN.size10,minWidth:GN.size10}],s.isSize16&&[a.size16,{height:GN.size16,minWidth:GN.size16}],s.isSize24&&[a.size24,{height:GN.size24,minWidth:GN.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:GN.size28,minWidth:GN.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:GN.size32,minWidth:GN.size32}],s.isSize40&&[a.size40,{height:GN.size40,minWidth:GN.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:GN.size56,minWidth:GN.size56}],s.isSize72&&[a.size72,{height:GN.size72,minWidth:GN.size72}],s.isSize100&&[a.size100,{height:GN.size100,minWidth:GN.size100}],s.isSize120&&[a.size120,{height:GN.size120,minWidth:GN.size120}],c.isAvailable&&a.available,c.isAway&&a.away,c.isBlocked&&a.blocked,c.isBusy&&a.busy,c.isDoNotDisturb&&a.doNotDisturb,c.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,Fb,{color:o.bodyText,fontWeight:Dy.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:l,lineHeight:l,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:GN.size8},s.isSize16&&{lineHeight:GN.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,Fb,u,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:l,lineHeight:l,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,Fb,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,Fb,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,Fb]}}),void 0,{scope:"Persona"}),IL=["160","200","256"],AL={24:bN.size24,28:bN.size28,32:bN.size32,40:bN.size40,48:bN.size48,56:bN.size56,72:bN.size72,100:bN.size100,120:bN.size120};var PL=function(t){var n=(0,e.__rest)(t,[]);return Bd().createElement(DL,(0,e.__assign)({},n))},DL=function(t){var n,r=t.operationData,o=t.size,i=void 0===o?"32":o,a=t.imageUrl,s=t.text,c=t.secondaryText,l=t.hideText,u=void 0!==l&&l,d=t.trackingId,p=(0,e.__rest)(t,["operationData","size","imageUrl","text","secondaryText","hideText","trackingId"]);Ek("Persona",p);var h=cD(),f=bm();V_("Persona",p.id);var m=function(){var e=um().componentQosContext,t=Ym;e&&(t=e);var n=(0,Fd.useContext)(t);if(!n)throw new Error("TwoUIComponentQoS: Context is uninitialized");return n}(),g=m.startOperation,v=m.reportSuccess,y=m.reportFailure,b=(0,Fd.useState)(!1),_=b[0],C=b[1],E=function(e){return IL.includes(e)}(i),w=E?bN.size120:function(e){return AL[e||"32"]}(i),x=E?Number(i):void 0,k=a?function(e){try{return new URL(e).host}catch(t){return window.location.host}}(a):"unknown-domain",S="".concat("persona.image-load.").concat(k,".").concat(d),T=Mw();(0,Fd.useEffect)((function(){f.checkUrlAndReportHttp(a),a?(C(!0),d&&g(S,h,!0)):C(!1)}),[a]);var I=function(){return Bd().createElement(jN,{height:+i})},A=jg({selectors:(n={},n.span={fontSize:"96px"},n)}),P="256"===i?{coinProps:{className:A}}:void 0,D=(0,e.__assign)({size:w,coinSize:x,imageUrl:a,text:s,secondaryText:c,hidePersonaDetails:u,onPhotoLoadingStateChange:function(e){e===rP.error?(d&&y(S,h,new Error("Image failed to load")),C(!1)):e===rP.loaded&&(d&&v(S,h),C(!1))},onRenderInitials:_?I:void 0,initialsTextColor:T.palette.neutralHigh,showInitialsUntilImageLoads:_,coinProps:P},p),R=Bd().createElement(TL,(0,e.__assign)({},D)),M=Bd().createElement(TL,(0,e.__assign)({},D,{showInitialsUntilImageLoads:!0,onRenderInitials:I,onPhotoLoadingStateChange:void 0}));return r?Bd().createElement(hx,{operationData:r,inertView:M,firstLoadView:M,updatingView:M,updateFailedView:R,finishedView:R,failedView:R}):R},RL=function(){var e;return{root:{selectors:(e={},e[Xk]={paddingTop:"13px",paddingBottom:"14px"},e[qk]={paddingTop:"24px",paddingBottom:"8px"},e[Kk]={paddingTop:"23px",paddingBottom:"17px"},e)}}},ML={s:25,m:33,l:33,xl:44,xxl:44,xxxl:44},NL=function(){var e=sS(),t=e?ML[e]:ML.xl;return Bd().createElement(z_,{horizontal:!0,styles:RL(),doNotRenderFalsyValues:!0},Bd().createElement(aM,{width:200,height:t}))},LL=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=_m();op((function(){iS&&iS.forEach((function(e){e.addListener(aS)})),rS.setValue(jk(window.innerWidth))})),rp((function(){iS&&iS.forEach((function(e){return e.removeListener(aS)}))}));var s={root:{backgroundColor:Mw().semanticColors.bodyBackground}},c=Bd().createElement(z_,{horizontal:n,horizontalAlign:o,styles:s,doNotRenderFalsyValues:!0},i);return a.includes(zk)?Bd().createElement(fp,null,c):c},OL=function(t){return V_("BaseLayout"),Bd().createElement(Dw,{variant:t.variant},Bd().createElement(LL,(0,e.__assign)({},t)))},FL=function(e){var t=e.children,n=e.disabled,r=e.iconName;return Bd().createElement(wT,{horizontal:!0,grow:!0,verticalAlign:"center"},t,r?Bd().createElement(wT,{padding:MM},Bd().createElement(WS,{size:"16px",iconName:HA(r),color:"neutralSecondary",disabled:n})):null)},BL=function(t){var n=t.buttonProps,r=t.disabled,o=t.columnAlign,i=void 0===o?"end":o,a=t.iconName,s=t.operationalData,c=(0,e.__rest)(t,["buttonProps","disabled","columnAlign","iconName","operationalData"]);return Bd().createElement(FL,{iconName:a,disabled:r},Bd().createElement(wT,{horizontal:!0,grow:!0,horizontalAlign:"end"===i?"space-between":"start",childrenGap:16,verticalAlign:"center"},Bd().createElement(wT,null,Bd().createElement(PM,{operationalData:s},DM(c,r))),Bd().createElement(wT,{padding:MM},Bd().createElement(PT,null,Bd().createElement(hR,(0,e.__assign)({},n,{disabled:r}))))))},HL=function(t){var n=t.calloutProps,r=t.operationalData;return Bd().createElement(wT,{horizontalAlign:"start"},Bd().createElement(PM,{operationalData:r},Bd().createElement(PT,null,n.map((function(t,n){return Bd().createElement(vR,(0,e.__assign)({},t,{key:n}),t.children)})))))},zL=function(e){var t=e.children,n=e.onCardReflow,r=(0,Fd.useRef)(null),o=(0,Fd.useState)(1),i=o[0],a=o[1];(0,Fd.useLayoutEffect)((function(){var e=function(){if(r.current){var e=r.current.clientWidth,t=VL(e);a(t)}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,Fd.useLayoutEffect)((function(){null===n||void 0===n||n(i)}),[i]);var s,c,l,u=Bd().Children.toArray(t),d=(c=i,(s=u).length<=0||0===c?[]:s.reduce((function(e,t,n){return n%c===0?e.push([t]):e[e.length-1].push(t),e}),[]));return Bd().createElement("div",{style:{display:"flex"},ref:r},Bd().createElement(z_,{tokens:{childrenGap:16},styles:(l=i,{root:{minWidth:244,maxWidth:"".concat(UL(l),"px")}}),grow:!0,doNotRenderFalsyValues:!0},d.map((function(e,t){return Bd().createElement(CT,{totalSlots:i,key:t},e.map((function(e,t){return Bd().createElement(_T,{slots:1,key:t},e)})))}))))},VL=function(e){return Math.max(Math.floor((e+16)/260),1)},UL=function(e){return 288*e+16*(e-1)},WL=Ww(),jL=Fd.forwardRef((function(t,n){var r=t.disabled,o=t.required,i=t.inputProps,a=t.name,s=t.ariaLabel,c=t.ariaLabelledBy,l=t.ariaDescribedBy,u=t.ariaPositionInSet,d=t.ariaSetSize,p=t.title,h=t.checkmarkIconProps,f=t.styles,m=t.theme,g=t.className,v=t.boxSide,y=void 0===v?"start":v,b=cD("checkbox-",t.id),_=Fd.useRef(null),C=jC(_,n),E=Fd.useRef(null),w=cM(t.checked,t.defaultChecked,t.onChange),x=w[0],k=w[1],S=cM(t.indeterminate,t.defaultIndeterminate),T=S[0],I=S[1];MC(_);var A=WL(f,{theme:m,className:g,disabled:r,indeterminate:T,checked:x,reversed:"start"!==y,isUsingCustomLabelRender:!!t.onRenderLabel}),P=Fd.useCallback((function(e){T?(k(!!x,e),I(!1)):k(!x,e)}),[k,I,T,x]),D=Fd.useCallback((function(e){return e&&e.label?Fd.createElement("span",{className:A.text,title:e.title},e.label):null}),[A.text]),R=Fd.useCallback((function(e){if(E.current){var t=!!e;E.current.indeterminate=t,I(t)}}),[I]);!function(e,t,n,r,o){Fd.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,x,T,R,E),Fd.useEffect((function(){return R(T)}),[R,T]);var M=t.onRenderLabel||D,N=T?"mixed":void 0,L=(0,e.__assign)((0,e.__assign)({className:A.input,type:"checkbox"},i),{checked:!!x,disabled:r,required:o,name:a,id:b,title:p,onChange:P,"aria-disabled":r,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,"aria-posinset":u,"aria-setsize":d,"aria-checked":N});return Fd.createElement("div",{className:A.root,title:p,ref:C},Fd.createElement("input",(0,e.__assign)({},L,{ref:E,title:p,"data-ktp-execute-target":!0})),Fd.createElement("label",{className:A.label,htmlFor:b},Fd.createElement("div",{className:A.checkbox,"data-ktp-target":!0},Fd.createElement(bP,(0,e.__assign)({iconName:"CheckMark"},h,{className:A.checkmark}))),M(t,D)))}));jL.displayName="CheckboxBase";var qL={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},GL="20px",KL="200ms",YL="cubic-bezier(.4, 0, .23, 1)",QL=Lw(jL,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_=t.className,C=t.theme,E=t.reversed,w=t.checked,x=t.disabled,k=t.isUsingCustomLabelRender,S=t.indeterminate,T=C.semanticColors,I=C.effects,A=C.palette,P=C.fonts,D=$y(qL,C),R=T.inputForegroundChecked,M=A.neutralSecondary,N=A.neutralPrimary,L=T.inputBackgroundChecked,O=T.inputBackgroundChecked,F=T.disabledBodySubtext,B=T.inputBorderHovered,H=T.inputBackgroundCheckedHovered,z=T.inputBackgroundChecked,V=T.inputBackgroundCheckedHovered,U=T.inputBackgroundCheckedHovered,W=T.inputTextHovered,j=T.disabledBodySubtext,q=T.bodyText,G=T.disabledText,K=[(n={content:'""',borderRadius:I.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:x?F:L,transitionProperty:"border-width, border, border-color",transitionDuration:KL,transitionTimingFunction:YL},n[By]={borderColor:"WindowText"},n)];return{root:[D.root,{position:"relative",display:"flex"},E&&"reversed",w&&"is-checked",!x&&"is-enabled",x&&"is-disabled",!x&&[!w&&(r={},r[":hover .".concat(D.checkbox)]=(o={borderColor:B},o[By]={borderColor:"Highlight"},o),r[":focus .".concat(D.checkbox)]={borderColor:B},r[":hover .".concat(D.checkmark)]=(i={color:M,opacity:"1"},i[By]={color:"Highlight"},i),r),w&&!S&&(a={},a[":hover .".concat(D.checkbox)]={background:V,borderColor:U},a[":focus .".concat(D.checkbox)]={background:V,borderColor:U},a[By]=(s={},s[":hover .".concat(D.checkbox)]={background:"Highlight",borderColor:"Highlight"},s[":focus .".concat(D.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(D.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(D.checkmark)]={color:"Window"},s[":hover .".concat(D.checkmark)]={color:"Window"},s),a),S&&(c={},c[":hover .".concat(D.checkbox,", :hover .").concat(D.checkbox,":after")]=(l={borderColor:H},l[By]={borderColor:"WindowText"},l),c[":focus .".concat(D.checkbox)]={borderColor:H},c[":hover .".concat(D.checkmark)]={opacity:"0"},c),(u={},u[":hover .".concat(D.text,", :focus .").concat(D.text)]=(d={color:W},d[By]={color:x?"GrayText":"WindowText"},d),u)],_],input:(p={position:"absolute",background:"none",opacity:0},p[".".concat(jy," &:focus + label::before")]=(h={outline:"1px solid "+C.palette.neutralSecondary,outlineOffset:"2px"},h[By]={outline:"1px solid WindowText"},h),p),label:[D.label,C.fonts.medium,{display:"flex",alignItems:k?"center":"flex-start",cursor:x?"default":"pointer",position:"relative",userSelect:"none"},E&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[D.checkbox,(f={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:GL,width:GL,border:"1px solid ".concat(N),borderRadius:I.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:KL,transitionTimingFunction:YL,overflow:"hidden",":after":S?K:null},f[By]=(0,e.__assign)({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),f),S&&{borderColor:L},E?{marginLeft:4}:{marginRight:4},!x&&!S&&w&&(m={background:z,borderColor:O},m[By]={background:"Highlight",borderColor:"Highlight"},m),x&&(g={borderColor:F},g[By]={borderColor:"GrayText"},g),w&&x&&(v={background:j,borderColor:F},v[By]={background:"Window"},v)],checkmark:[D.checkmark,(y={opacity:w&&!S?"1":"0",color:R},y[By]=(0,e.__assign)({color:x?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),y)],text:[D.text,(b={color:x?G:q,fontSize:P.medium.fontSize,lineHeight:"20px"},b[By]=(0,e.__assign)({color:x?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),E?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),XL=function(t){var n=t.operationData,r=t.label,o=t.labelPosition,i=t["aria-label"],a=t.onChange,s=t.disabled,c=t.checked,l=t.id,u=(0,e.__rest)(t,["operationData","label","labelPosition","aria-label","onChange","disabled","checked","id"]);V_("Checkbox",l),Ek("Checkbox",u);var d={ariaLabel:i,boxSide:o||"start",onChange:s?void 0:a,disabled:s,checked:c,id:l,inputProps:(0,e.__assign)((0,e.__assign)({},u),{"data-bi-ctrlstate":!!c})},p=function(t){return r&&"string"!==typeof r?Bd().createElement(QL,(0,e.__assign)({},d,{onRenderLabel:function(){return Bd().createElement(AA,(0,e.__assign)({},r))}},t)):Bd().createElement(QL,(0,e.__assign)({},d,{label:r},t))},h=(0,Fd.useRef)(null);if(n){var f=void 0;return f=r?{"aria-label":n.errorProps.targetOrTriggerButton["aria-label"],"data-bi-id":n.errorProps.targetOrTriggerButton["data-bi-id"]}:h,Bd().createElement(Zm,{operationData:n.progressViewOperationData,updatingView:Bd().createElement(wT,{horizontal:!0,childrenGap:8,verticalAlign:"center"},d.label?p({checked:!c,disabled:!0}):null,Bd().createElement(mM,null)),finishedView:Bd().createElement(wT,{horizontal:!0,childrenGap:8,verticalAlign:"center"},p()),updateFailedView:Bd().createElement(wT,{horizontal:!0,childrenGap:8,verticalAlign:"center"},Bd().createElement("div",{ref:h},p()),Bd().createElement(rR,(0,e.__assign)({},n.errorProps,{targetOrTriggerButton:f})))})}return p()},ZL=Ww(),JL={imageSize:{width:32,height:32}},$L=function(t){var n=WC((0,e.__assign)((0,e.__assign)({},JL),{key:t.itemKey}),t),r=n.ariaLabel,o=n.focused,i=n.required,a=n.theme,s=n.iconProps,c=n.imageSrc,l=n.imageSize,u=n.disabled,d=n.checked,p=n.id,h=n.styles,f=n.name,m=(0,e.__rest)(n,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),g=ZL(h,{theme:a,hasIcon:!!s,hasImage:!!c,checked:d,disabled:u,imageIsLarge:!!c&&(l.width>71||l.height>71),imageSize:l,focused:o}),v=A_(m,m_),y=v.className,b=(0,e.__rest)(v,["className"]),_=function(){return Fd.createElement("span",{id:n.labelId,className:"ms-ChoiceFieldLabel"},n.text)},C=function(){var t=n.imageAlt,r=void 0===t?"":t,o=n.selectedImageSrc,i=(n.onRenderLabel?xP(n.onRenderLabel,_):_)((0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}));return Fd.createElement("label",{htmlFor:p,className:g.field},c&&Fd.createElement("div",{className:g.innerField},Fd.createElement("div",{className:g.imageWrapper},Fd.createElement(pP,(0,e.__assign)({src:c,alt:r},l))),Fd.createElement("div",{className:g.selectedImageWrapper},Fd.createElement(pP,(0,e.__assign)({src:o,alt:r},l)))),s&&Fd.createElement("div",{className:g.innerField},Fd.createElement("div",{className:g.iconWrapper},Fd.createElement(bP,(0,e.__assign)({},s)))),c||s?Fd.createElement("div",{className:g.labelWrapper},i):i)},E=n.onRenderField,w=void 0===E?C:E;return Fd.createElement("div",{className:g.root},Fd.createElement("div",{className:g.choiceFieldWrapper},Fd.createElement("input",(0,e.__assign)({"aria-label":r,id:p,className:P_(g.input,y),type:"radio",name:f,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)}})),w((0,e.__assign)((0,e.__assign)({},n),{key:n.itemKey}),C)))};$L.displayName="ChoiceGroupOption";var eO={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"},tO="200ms",nO="cubic-bezier(.4, 0, .23, 1)";function rO(e,t){var n,r;return["is-inFocus",{selectors:(n={},n[".".concat(jy," &")]={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[By]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function oO(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:tO,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 iO=Lw($L,(function(t){var n,r,o,i,a,s=t.theme,c=t.hasIcon,l=t.hasImage,u=t.checked,d=t.disabled,p=t.imageIsLarge,h=t.focused,f=t.imageSize,m=s.palette,g=s.semanticColors,v=s.fonts,y=$y(eO,s),b=m.neutralPrimary,_=g.inputBorderHovered,C=g.inputBackgroundChecked,E=m.themeDark,w=g.disabledBodySubtext,x=g.bodyBackground,k=m.neutralSecondary,S=g.inputBackgroundChecked,T=m.themeDark,I=g.disabledBodySubtext,A=m.neutralDark,P=g.focusBorder,D=g.inputBorderHovered,R=g.inputBackgroundChecked,M=m.themeDark,N=m.neutralLighter,L={selectors:{".ms-ChoiceFieldLabel":{color:A},":before":{borderColor:u?E:_},":after":[!c&&!l&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:k},u&&{borderColor:T,background:T}]}},O={borderColor:u?M:D,selectors:{":before":{opacity:1,borderColor:u?E:_}}},F=[{content:'""',display:"inline-block",backgroundColor:x,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:tO,transitionTimingFunction:nO,borderRadius:"50%"},d&&{borderColor:w,selectors:(n={},n[By]=(0,e.__assign)({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},u&&{borderColor:d?w:C,selectors:(r={},r[By]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},r)},(c||l)&&{top:3,right:3,left:"auto",opacity:u?1:0}],B=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:tO,transitionTimingFunction:nO,boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:d?I:S,background:S,left:5,top:5,width:10,height:10,selectors:(o={},o[By]={borderColor:"Highlight",forcedColorAdjust:"none"},o)},u&&(c||l)&&{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"}}},!c&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",c&&"ms-ChoiceField--icon",(c||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:N,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,h&&rO(P,c||l)],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&&L,":focus":!d&&L,":before":F,":after":B}},c&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(c||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:tO,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:R},(c||l)&&!d&&{selectors:{":hover":O,":focus":O}},d&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:(i={},i[By]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},u&&d&&{borderColor:N}],innerField:[y.innerField,l&&{height:f.height,width:f.width},(c||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(c||l)&&p&&{paddingLeft:24,paddingRight:24},(c||l)&&d&&{opacity:.25,selectors:(a={},a[By]={color:"GrayText",opacity:1},a)}],imageWrapper:oO(!1,y.imageWrapper,u),selectedImageWrapper:oO(!0,y.imageWrapper,u),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,v.medium,(c||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*f.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),aO=Ww(),sO=function(e,t){return"".concat(t,"-").concat(e.key)},cO=function(e,t){return void 0===t?void 0:function(e,t){var n=kx(e,t);if(!(n<0))return e[n]}(e,(function(e){return e.key===t}))},lO=function(e,t,n,r){var o=cO(e,t)||e.filter((function(e){return!e.disabled}))[0],i=o&&document.getElementById(sO(o,n));i&&(i.focus(),Ky(!0,i,r))},uO=Fd.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.styles,a=t.options,s=void 0===a?[]:a,c=t.label,l=t.required,u=t.disabled,d=t.name,p=t.defaultSelectedKey,h=t.componentRef,f=t.onChange,m=cD("ChoiceGroup"),g=cD("ChoiceGroupLabel"),v=A_(t,I_,["onChange","className","required"]),y=aO(i,{theme:o,className:r,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),b=t.ariaLabelledBy||(c?g:t["aria-labelledby"]),_=cM(t.selectedKey,p),C=_[0],E=_[1],w=Fd.useState(),x=w[0],k=w[1],S=Fd.useRef(null),T=jC(S,n),I=Fd.useContext(RC);!function(e,t,n,r,o){Fd.useImperativeHandle(r,(function(){return{get checkedOption(){return cO(e,t)},focus:function(){lO(e,t,n,o)}}}),[e,t,n,o])}(s,C,m,h,null===I||void 0===I?void 0:I.registeredProviders),MC(S);var A=Fd.useCallback((function(e,t){var n;t&&(k(t.itemKey),null===(n=t.onFocus)||void 0===n||n.call(t,e))}),[]),P=Fd.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)}),[]),D=Fd.useCallback((function(e,t){var n;t&&(E(t.itemKey),null===(n=t.onChange)||void 0===n||n.call(t,e),null===f||void 0===f||f(e,cO(s,t.itemKey)))}),[f,s,E]),R=Fd.useCallback((function(e){(function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper})(e)&&lO(s,C,m,null===I||void 0===I?void 0:I.registeredProviders)}),[s,C,m,I]);return Fd.createElement("div",(0,e.__assign)({className:y.root},v,{ref:T}),Fd.createElement("div",(0,e.__assign)({role:"radiogroup"},b&&{"aria-labelledby":b},{onFocus:R}),c&&Fd.createElement(fT,{className:y.label,required:l,id:g,disabled:u},c),Fd.createElement("div",{className:y.flexContainer},s.map((function(t){return Fd.createElement(iO,(0,e.__assign)({itemKey:t.key},t,{key:t.key,onBlur:P,onFocus:A,onChange:D,focused:t.key===x,checked:t.key===C,disabled:t.disabled||u,id:sO(t,m),labelId:t.labelId||"".concat(g,"-").concat(t.key),name:d||m,required:l}))})))))}));uO.displayName="ChoiceGroup";var dO,pO,hO,fO,mO,gO={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},vO=Lw(uO,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=$y(gO,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"}),yO=function(e){return["selectButton","mediaButton"].includes(e)?{root:{width:"100%"},flexContainer:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}}:{}},bO="0px 0px 12px 0px",_O="8px",CO=function(e){return e?"bodyTertiaryText":"bodyPrimaryText"},EO=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:_O}},wO=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"},xO(t,r,o))}},xO=function(e,t,n){var r;return n?{}:((r={boxSizing:"content-box",border:"solid",borderWidth:t?"2px":"1px",padding:t?"0px":"1px",borderRadius:_O,borderColor:t?e.palette.themePrimary:e.palette.neutralTertiary})[tS]={borderWidth:t?"4px":"1px",padding:t?"0px":"3px"},r.selectors={":focus-within":{outline:"3px solid",outlineColor:e.palette.neutralPrimary,borderWidth:"2px",padding:"0px",borderRadius:_O},":hover":{borderColor:t?void 0:e.palette.neutralPrimary,boxShadow:Gm.depth16,transitionDuration:mT}," input":{cursor:"pointer"}},r)},kO=function(t,n,r,o,i){var a=t.trim().length>0,s=i?"0px 0px 6px":"0px 0px 14px";return Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!0},a?Bd().createElement(wT,{padding:"selectButton"===o?s:bO,grow:1},Bd().createElement(DT,{variant:CO(n),weightOverride:"bold"},t)):null,r?Bd().createElement(wT,{padding:"selectButton"===o?s:bO,horizontalAlign:"end",grow:1},function(e,t){return"richText"===e.lineItemType?Bd().createElement(wT,null,e.ariaLabelOverride&&Bd().createElement("p",{style:{width:"1px",height:"1px",overflow:"hidden",margin:"-1px",padding:"0px",border:0,whiteSpace:"nowrap"}},e.ariaLabelOverride),Bd().createElement(AA,{"aria-hidden":!!e.ariaLabelOverride,textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues})):Bd().createElement(DT,{variant:CO(t),weightOverride:e.isBold?"bold":void 0},e.text)}(r,n)):null),i?Bd().createElement(YR,(0,e.__assign)({padding:"0px 0px 25px"},i),Bd().createElement(DT,{variant:CO(n),weightOverride:"bold"},i.text)):null)},SO=function(t,n){return Bd().createElement(Bd().Fragment,null,t?t.map((function(t,r){return"media"===t.lineItemType?Bd().createElement(YR,(0,e.__assign)({key:r},t,{disabled:n}),Bd().createElement(DT,{variant:CO(n),weightOverride:t.isBold?"bold":void 0},t.text)):Bd().createElement(DT,{key:r,variant:CO(n),weightOverride:t.isBold?"bold":void 0},t.text)})):null)},TO=function(e){switch(e){case"left":case"right":return"start";case"top":case"bottom":return"center"}},IO=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}}},AO=function(e,t){return function(){return t&&"left"!==e?"MediaButtonChoiceGroup must have mediaPosition set to `left` when provided a topRightText":void 0}},PO=function(t){var n=t.text,r=t.lines,o=t.disabled,i=t.height,a=t.mediaPosition,s=t.mediaProp,c=t.selected,l=t.topRightText,u=t.optionType,d=sS(),p=Mw(),h=cS(d),f=(0,e.__assign)((0,e.__assign)({},s),{shouldFadeIn:"image"!==s.imageType&&void 0});return Ex("MediaButtonChoiceGroup",[AO(a,l)]),Bd().createElement(z_,(0,e.__assign)({},function(t,n,r,o,i,a){void 0===r&&(r="auto");var s=["left","right"].includes(o),c=["bottom","right"].includes(o),l=["top","bottom"].includes(o),u=s?"left":"center";return{horizontal:s,reversed:c,verticalAlign:l?"center":"start",horizontalAlign:"right"===o?"space-between":l?"center":void 0,styles:{root:(0,e.__assign)({},EO(t,n,r,u,i,a))}}}(p,h,i,a,o,c),{doNotRenderFalsyValues:!0}),Bd().createElement(z_,{styles:IO(a),doNotRenderFalsyValues:!0},Bd().createElement(YR,{size:"xl",padding:"0px",image:f,disabled:o})),Bd().createElement(wT,{width:"100%"},kO(n,o,l,u),Bd().createElement(wT,{horizontalAlign:TO(a)},SO(r,o))))},DO=function(t,n,r,o,i,a){return void 0===r&&(r="auto"),{root:(0,e.__assign)({},EO(t,n,r,o,i,a))}},RO=function(e){switch(e){case"left":return"start";case"center":return"center";case"right":return"end"}},MO=function(e,t){return function(){return t&&"left"!==e?"SelectButtonChoiceGroup must have textAlignment set to `left` when provided a topRightText":void 0}},NO=function(e){var t=e.text,n=e.lines,r=e.disabled,o=e.height,i=e.textAlignment,a=e.selected,s=e.topRightText,c=e.optionType,l=e.subTextWithMedia,u=sS(),d=Mw(),p=cS(u);return Ex("SelectButtonChoiceGroup",[MO(i,s)]),Bd().createElement(z_,{styles:DO(d,p,o,i,r,a),doNotRenderFalsyValues:!0},kO(t,r,s,c,l),Bd().createElement(wT,{horizontalAlign:RO(i)},SO(n,r)))},LO=function(t){var n=t.label,r=t.onChange,o=t.selectedKey,i=t.textAlignment,a=void 0===i?"left":i,s=t.operationData,c=t.isSingleColumn,l=(0,e.__rest)(t,["label","onChange","selectedKey","textAlignment","operationData","isSingleColumn"]);V_("ChoiceGroup",l.id);var u=(0,Fd.useState)(o||void 0),d=u[0],p=u[1];(0,Fd.useEffect)((function(){p(o)}),[o]);var h=sS(),f=Mw(),m=cS(h),g=["selectButton","mediaButton"].includes(l.optionType),v=function(t){var n;return n="selectButton"===l.optionType?l.options.map((function(n){return(0,e.__assign)((0,e.__assign)({},n),{styles:wO(f,m,n.key===d,t||n.disabled,c),onRenderField:function(){return Bd().createElement(NO,(0,e.__assign)({},n,{height:c?"auto":l.height,textAlignment:a,selected:n.key===d,disabled:t||n.disabled,optionType:l.optionType}))}})})):"mediaButton"===l.optionType?l.options.map((function(n){return(0,e.__assign)((0,e.__assign)({},n),{styles:wO(f,m,n.key===d,t||n.disabled,c),onRenderField:function(){var r;return Bd().createElement(PO,(0,e.__assign)({},n,{height:c?"auto":l.height,mediaPosition:null!==(r=l.mediaPosition)&&void 0!==r?r:"left",selected:n.key===d,disabled:t||n.disabled,optionType:l.optionType}))}})})):l.options.slice(),n},y=l.optionType,b=(l.options,l.height,l.mediaPosition,(0,e.__rest)(l,["optionType","options","height","mediaPosition"]));Ek("ChoiceGroup",b);var _=(0,e.__assign)({label:n,selectedKey:o,options:v(),onChange:function(e,t){g&&!o&&p(t.key),r&&r(t,e)},styles:yO(y)},b);return s?Bd().createElement(Zm,{operationData:s.progressViewOperationData,updatingView:Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!0,childrenGap:8},Bd().createElement(fT,{disabled:!0},n),Bd().createElement(mM,null)),Bd().createElement(vO,(0,e.__assign)({},_,{label:"",disabled:!0,options:v(!0)}))),updateFailedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!0,childrenGap:8},Bd().createElement(fT,null,n),Bd().createElement(wT,{padding:"8px 0px 0px 0px"},Bd().createElement(rR,(0,e.__assign)({},s.errorProps)))),Bd().createElement(vO,(0,e.__assign)({},_,{label:""}))),finishedView:Bd().createElement(vO,(0,e.__assign)({},_))}):Bd().createElement(vO,(0,e.__assign)({},_))},OO=function(e){var t;return{root:{background:e.palette.neutralHigh,boxSizing:"border-box",alignItems:"center",verticalAlign:"baseline",paddingLeft:"8px",flexDirection:"row-reverse",borderRadius:"2px",margin:"0 8px 8px 0",selectors:(t={":focus":{background:e.palette.neutralHigh,border:"1px solid ".concat(e.palette.black)},":hover":{background:e.palette.neutralLighter},".choiceSummaryIcon:hover":{background:e.palette.neutralLight,color:e.palette.neutralPrimary},":disabled":{background:e.palette.themePrimary,color:e.palette.themeDark},".ms-Fabric--isFocusVisible &:focus:after":{borderColor:e.palette.neutralSecondary,outline:"none"}},t[By]={border:"1px solid WindowText",".choiceSummaryIcon":{"forced-color-adjust":"none",color:"ButtonText"},".choiceSummaryIcon:hover, .choiceSummaryIcon:focus":{background:"Highlight",color:"Window"}},t),maxWidth:"288px",minWidth:"34px"}}},FO={listStyle:"none",display:"inline-flex"},BO=(0,e.__assign)((0,e.__assign)({},FO),{verticalAlign:"top"}),HO=function(t){var n=t.label,r=t.onClick,o=t.divRef,i=(0,e.__rest)(t,["label","onClick","divRef"]);Ek("ChoiceSummaryOption",i);var a=Mw(),s=i.disabled?function(e){var t;return{root:{background:e.palette.neutralLighter,boxSizing:"border-box",alignItems:"center",verticalAlign:"baseline",paddingLeft:"8px",flexDirection:"row-reverse",borderRadius:"2px",margin:"0 8px 8px 0",maxWidth:"288px",minWidth:"34px",selectors:(t={},t[By]={background:"GrayText",".choiceSummaryIcon":{background:"GrayText"}},t)}}}(a):OO(a),c=function(e){return{root:{marginLeft:"4px",color:e.palette.neutralPrimary,selectors:{":hover":{color:e.palette.neutralPrimary},":disabled":{color:e.palette.neutralTertiary}}}}}(a),l=i.disabled?"bodyTertiaryText":"bodyPrimaryText";return Bd().createElement("li",{style:FO},Bd().createElement(z_,{horizontal:!0,styles:s,doNotRenderFalsyValues:!0},Bd().createElement("div",{ref:o},Bd().createElement(eR,(0,e.__assign)({className:"choiceSummaryIcon",styles:c,iconProps:{iconName:"Cancel"},onClick:i.disabled?function(){}:r},i))),Bd().createElement(DT,{variant:l},n)))},zO=function(t){var n=t.children,r=(0,e.__rest)(t,["children"]);return Bd().createElement("ul",(0,e.__assign)({"aria-live":"polite"},r),n)},VO=function(t){var n=t.errorMessage,r=t.optionProps,o=(0,Fd.useRef)(null);return Bd().createElement(Bd().Fragment,null,Bd().createElement(HO,(0,e.__assign)({divRef:o},r)),Bd().createElement(rR,{targetOrTriggerButton:o,errorMessageAriaLabel:n,errorMessage:n}))},UO=function(t){var n=t.options,r=(0,e.__rest)(t,["options"]);V_("ChoiceSummary",r.id);var o=Mw();if(r.operationData){var i=r.operationData,a=function(e,t){return Bd().createElement("li",{style:BO,key:t},Bd().createElement(z_,{horizontal:!0,styles:OO(o),doNotRenderFalsyValues:!0},Bd().createElement(dT,{size:XS.xSmall,style:{padding:"10px",marginLeft:"4px"}}),Bd().createElement(DT,null,e)))},s=n.map((function(t,n){var o,s=r.disabled||t.disabled,c="".concat(i.progressViewOperationData.operationName,".").concat(t.id);return Bd().createElement(Zm,{key:t.id,operationData:(0,e.__assign)((0,e.__assign)({},i.progressViewOperationData),{operationName:c}),updatingView:a(t.label,n),finishedView:Bd().createElement(HO,(0,e.__assign)({},t,{disabled:s})),updateFailedView:Bd().createElement(VO,{errorMessage:null===(o=r.operationData)||void 0===o?void 0:o.errorMessage,optionProps:t})})}));return Bd().createElement(zO,null,s)}var c=n.map((function(t,n){var o=r.disabled||t.disabled;return Bd().createElement(HO,(0,e.__assign)({key:n},t,{disabled:o}))}));return Bd().createElement(zO,(0,e.__assign)({},r),c)},WO=function(e){var t=e.children;return Bd().createElement(wT,null,t)},jO=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?Fd.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:a},role:i}):null},qO=function(e,t){return function(){return e&&t?"Forbidden passing listItemRole when removeRole prop is true":void 0}},GO=function(t,n,r,o,i,a,s,c){var l,u,d,p,h,f,m=n||"neutralHigh",g="themeLighterAlt"===m?t.palette.themeLighter:t.palette.neutralLighterAlt,v=i?{cursor:"pointer",":hover":(l={background:g},l[By]={background:"highlight"},l),":active":(u={background:t.palette.neutralLight},u[By]={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[By]={backgroundColor:"highlight"},d),":active":(p={backgroundColor:t.palette.themeLighter,borderColor:t.palette.themeDark},p[By]={backgroundColor:"highlight"},p)}:void 0,b=((h={})[By]={border:"1px solid WindowText"},h[":focus"]={outlineOffset:"-2px"},h),_={":hover":(f={background:g,outline:"1px solid ".concat(g)},f[By]={background:"highlight"},f),":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:zS(t,m),padding:r,borderBottom:a?"1px solid ".concat(t.palette.white):void 0,minHeight:o},v),y),b),"DetailsList"===c&&_)}},KO="48px",YO=function(t){var n=t.backgroundColor,r=t.padding,o=t.children,i=t.groupSpacerNestingDepth,a=t.onClickProps,s=t.onEnter,c=t.onLeave,l=t.showDivider,u=void 0===l||l,d=t.disabled,p=t.selected,h=t["data-is-focusable"],f=void 0===h||h,m=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"]),_=bm();Ek("ListItemCanvas",b);var C,E=Mw();(0,Fd.useEffect)((function(){Ex("ListItemCanvas",[qO(b.removeRole,m)])})),a&&!d&&(C=(0,e.__assign)((0,e.__assign)({},a),{onClick:function(e){_.reportClick({clickId:a["data-bi-id"],pageArea:a.pageArea}),a.onClick(e)}}));return Bd().createElement(z_,(0,e.__assign)({"data-is-focusable":f,tabIndex:f?0:-1,grow:!0,verticalAlign:"center",styles:GO(E,n,r,KO,!!a&&!d,u,p,y),role:b.removeRole?void 0:m||"listitem"},b,C,{"aria-label":b["aria-label"],onMouseEnter:s,onTouchStart:s,onFocus:s,onMouseLeave:c,onTouchCancel:c,onBlur:c,doNotRenderFalsyValues:!0}),Bd().createElement(wk,{direction:"horizontal"},Bd().createElement(z_,{verticalAlign:"center",horizontal:v,grow:!0,doNotRenderFalsyValues:!0},void 0!==i&&0!==i?Bd().createElement(xT,null,Bd().createElement(jO,{count:i})):null,C?Bd().createElement(PT,null,Bd().createElement(QD,(0,e.__assign)({text:C["aria-label"]},C,{id:C.id?"".concat(C.id,"-hidden"):void 0,styles:vT}))):null,Bd().createElement(xT,{grow:!0},o))))},QO=function(t){return Bd().createElement(XO,(0,e.__assign)({},t))},XO=function(t){var n=t.image,r=t.imageSize,o=void 0===r?"md":r,i=t.children,a=t.groupSpacerNestingDepth,s=t.onClickProps,c=t.backgroundColor,l=t.actions,u=t.disabled,d=void 0!==u&&u,p=t.showDivider,h=void 0!==p&&p,f=(0,e.__rest)(t,["image","imageSize","children","groupSpacerNestingDepth","onClickProps","backgroundColor","actions","disabled","showDivider"]);Ek("BaseFeedListItemInternal",f);var m,g,v,y,b=sS(),_=Bd().createElement(Bd().Fragment,null);switch(l&&(Ex("BaseFeedListItemInternal",[(m=l.length,function(){return m>3?"BaseFeedListItem supports up to ".concat(3," action slots"):void 0})]),_=["xl","xxl","xxxl"].includes(b)?Bd().createElement(wT,{verticalAlign:"center",type:"slots",totalSlots:l.length},l.map((function(e,t){return Bd().createElement(xT,{key:e.key||t,slots:1},d?Bd().cloneElement(e,{disabled:d}):e)}))):Bd().createElement(wT,{verticalAlign:"center",horizontal:!0,horizontalAlign:["s","m"].includes(b)?"end":"start"},l.map((function(e,t){return Bd().createElement(xT,{key:e.key||t},d?Bd().cloneElement(e,{disabled:d}):e)})))),b){case"s":y=(g=4)-(v=(null===l||void 0===l?void 0:l.length)?1:0);break;case"m":case"l":y=(g=6)-(v=(null===l||void 0===l?void 0:l.length)?2:0);break;case"xl":y=(g=12)-(v=l?2*l.length:0);break;case"xxl":case"xxxl":y=(g=12)-(v=l?2*l.length:0)-1}return Bd().createElement(YO,{groupSpacerNestingDepth:a,onClickProps:s,backgroundColor:c,showDivider:h},Bd().createElement(CT,(0,e.__assign)({totalSlots:g,verticalAlign:"center"},f),Bd().createElement(_T,{slots:y},Bd().createElement(YR,{disabled:d,size:o,image:n,padding:"2px 0 2px 16px"},i)),v?Bd().createElement(_T,{slots:v},_):null))},ZO=function(e){var t,n,r,o,i,a=e.backgroundColor,s=void 0===a?"neutralMed":a,c=sS();switch(c){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 Bd().createElement(YO,{backgroundColor:s},Bd().createElement(CT,{totalSlots:t},Bd().createElement(_T,{slots:r},"s"===c?Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,{padding:"0 0 0 11px",key:"1"},Bd().createElement(aM,{height:16,width:16})),Bd().createElement(xT,{padding:"0 0 0 9px",key:"2"},Bd().createElement(aM,{height:o,width:i}))):Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,{padding:"0 0 0 16px",key:"1"},Bd().createElement(aM,{height:16,width:16})),Bd().createElement(xT,{padding:"0 0 0 10px",key:"2"},Bd().createElement(aM,{height:32,width:32})),Bd().createElement(xT,{padding:"0 0 0 9px",key:"3"},Bd().createElement(aM,{height:o,width:i})))),["l","m","s"].includes(c)?Bd().createElement(_T,{slots:n},Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,null,Bd().createElement(aM,{height:16,width:"s"===c?63:145})))):Bd().createElement(_T,{slots:n},Bd().createElement(wT,{type:"slots",totalSlots:3,verticalAlign:"center",height:"100%"},Bd().createElement(xT,{slots:1,key:"1"},Bd().createElement(aM,{height:16,width:100})),Bd().createElement(xT,{slots:1,key:"2"},Bd().createElement(aM,{height:16,width:100})),Bd().createElement(xT,{slots:1,key:"3"},Bd().createElement(aM,{height:16,width:100}))))))};!function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(dO||(dO={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(pO||(pO={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(hO||(hO={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(fO||(fO={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(mO||(mO={}));var JO,$O={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"},eF={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},tF={rowHeight:42,compactRowHeight:32},nF=(0,e.__assign)((0,e.__assign)({},tF),{rowVerticalPadding:11,compactRowVerticalPadding:6}),rF=Ww(),oF=function(e){return function(t){return t?t.column.isIconOnly?Fd.createElement("span",{className:e.accessibleLabel},t.column.name):Fd.createElement(Fd.Fragment,null,t.column.name):null}},iF=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Fd.createRef(),r._tooltipRef=Fd.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)?gP:bP;return Fd.createElement(o,(0,e.__assign)({},r))}},r._onRenderColumnHeaderTooltip=function(e){return Fd.createElement("span",{className:e.hostClassName},e.children)},r._onColumnClick=function(e){var t=r.props,n=t.onColumnClick,o=t.column;o.columnActionsMode!==dO.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()},Yx(r),r._async=new LT(r),r._events=new $A(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,c=void 0===s?eF:s,l=t.useFastIcons,u=void 0===l||l,d=this.props.onRenderColumnHeaderTooltip,p=void 0===d?this._onRenderColumnHeaderTooltip:d;this._classNames=rF(i,{theme:a,headerClassName:n.headerClassName,iconClassName:n.iconClassName,isActionable:n.columnActionsMode!==dO.disabled,isEmpty:!n.name,isIconVisible:n.isSorted||n.isGrouped||n.isFiltered,isPadded:n.isPadded,isIconOnly:n.isIconOnly,cellStyleProps:c,transitionDurationDrag:200,transitionDurationDrop:1500});var h=this._classNames,f=u?gP:bP,m=n.onRenderFilterIcon?xP(n.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),g=n.onRenderHeader?xP(n.onRenderHeader,oF(this._classNames)):oF(this._classNames),v=n.columnActionsMode!==dO.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 Fd.createElement(Fd.Fragment,null,Fd.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===dO.disabled?void 0:"true",className:h.root,"data-is-draggable":o,draggable:o,style:{width:n.calculatedWidth+c.cellLeftPadding+c.cellRightPadding+(n.isPadded?c.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":n.key,onBlur:this._onColumnBlur,onFocus:this._onColumnFocus}),o&&Fd.createElement(f,{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!==dO.disabled?n.ariaLabel:"",children:Fd.createElement("span",(0,e.__assign)({id:"".concat(r,"-").concat(n.key),className:h.cellTitle,"data-is-focusable":v&&n.columnActionsMode!==dO.disabled?"true":void 0,role:v?"button":void 0},v&&b,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":n.columnActionsMode===dO.hasDropdown?"menu":void 0,"aria-expanded":n.columnActionsMode===dO.hasDropdown?!!n.isMenuOpen:void 0}),Fd.createElement("span",{id:"".concat(r,"-").concat(n.key,"-name"),className:h.cellName},(n.iconName||n.iconClassName)&&Fd.createElement(f,{className:h.iconClassName,iconName:n.iconName}),g(this.props)),n.isFiltered&&Fd.createElement(f,{className:h.nearIcon,iconName:"Filter"}),(n.isSorted||n.showSortIconWhenUnsorted)&&Fd.createElement(f,{className:h.sortIcon,iconName:n.isSorted?n.isSortedDescending?"SortDown":"SortUp":"Sort"}),n.isGrouped&&Fd.createElement(f,{className:h.nearIcon,iconName:"GroupedDescending"}),n.columnActionsMode===dO.hasDropdown&&!n.isIconOnly&&m({"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?Fd.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}(Fd.Component),aF={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"},sF=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?eF:n,o=t.semanticColors;return[$y(aF,t).cell,Yy(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"}]},cF={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"},lF=Lw(iF,(function(t){var n,r=t.theme,o=t.headerClassName,i=t.iconClassName,a=t.isActionable,s=t.isEmpty,c=t.isIconVisible,l=t.isPadded,u=t.isIconOnly,d=t.cellStyleProps,p=void 0===d?eF:d,h=t.transitionDurationDrag,f=t.transitionDurationDrop,m=r.semanticColors,g=r.palette,v=r.fonts,y=$y(cF,r),b={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,dropdownChevronForegroundColor:g.neutralSecondary,resizerColor:g.neutralTertiaryAlt},_={color:b.iconForegroundColor,opacity:1,paddingLeft:8},C={outline:"1px solid ".concat(g.themePrimary)},E={outlineColor:"transparent"};return{root:[sF(t),v.small,a&&[y.isActionable,{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}}],s&&[y.isEmpty,{textOverflow:"clip"}],c&&y.isIconVisible,l&&{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,_],sortIcon:[_,{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,Yy(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:Dy.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:Zy,borderWhileDragging:C,noBorderWhileDragging:[E,{transition:"outline ".concat(h,"ms ease")}],borderAfterDropping:C,noBorderAfterDropping:[E,{transition:"outline  ".concat(f,"ms ease")}]}}),void 0,{scope:"DetailsColumn"}),uF=Fd.createContext({scrollablePane:void 0});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(JO||(JO={}));var dF,pF=function(t){function n(e){var n=t.call(this,e)||this;return n._root=Fd.createRef(),n._stickyContentTop=Fd.createRef(),n._stickyContentBottom=Fd.createRef(),n._nonStickyContent=Fd.createRef(),n._placeHolder=Fd.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},Yx(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===JO.Both||this.props.stickyPosition===JO.Header},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===JO.Both||this.props.stickyPosition===JO.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||hF(this._nonStickyContent,this._stickyContentTop)||hF(this._nonStickyContent,this._stickyContentBottom)||hF(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?Fd.createElement("div",{ref:this._root},this.canStickyTop&&Fd.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},Fd.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&Fd.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},Fd.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),Fd.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&Fd.createElement("span",{style:Zy},i),Fd.createElement("div",{ref:this._nonStickyContent,className:t||n?o:void 0,style:this._getContentStyles(t||n)},i))):Fd.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:JO.Both,isScrollSynced:!0},n.contextType=uF,n}(Fd.Component);function hF(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"}(dF||(dF={}));var fF=Ww(),mF=Fd.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,c=void 0===s||s,l=fF(a,{theme:i,className:o,checked:r}),u=c?gP:bP;return Fd.createElement("div",{className:l.root,ref:t},Fd.createElement(u,{iconName:"CircleRing",className:l.circle}),Fd.createElement(u,{iconName:"StatusCircleCheckmark",className:l.check}))}));mF.displayName="CheckBase";var gF,vF,yF={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},bF=Lw(mF,(function(t){var n,r,o,i,a,s=t.height,c=void 0===s?t.checkBoxHeight||"18px":s,l=t.checked,u=t.className,d=t.theme,p=d.palette,h=d.semanticColors,f=d.fonts,m=wv(d),g=$y(yF,d),v={fontSize:c,position:"absolute",left:0,top:0,width:c,height:c,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[g.root,f.medium,{lineHeight:"1",width:c,height:c,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)},l&&["is-checked",{selectors:{":before":{background:p.themePrimary,opacity:1,selectors:(r={},r[By]={background:"Window"},r)}}}],u],circle:[g.circle,v,{color:p.neutralSecondary,selectors:(o={},o[By]={color:"WindowText"},o)},l&&{color:p.white}],check:[g.check,v,{opacity:0,color:p.neutralSecondary,fontSize:Ry.medium,left:m?"-0.5px":".5px",top:"-1px",selectors:(i={":hover":{opacity:1}},i[By]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},l&&{opacity:1,color:p.white,fontWeight:900,selectors:(a={},a[By]={border:"none",color:"WindowText"},a)}],checkHost:g.checkHost}}),void 0,{scope:"Check"},!0),_F={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},CF="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(gF||(gF={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(vF||(vF={}));var EF=Ww(),wF=Fd.memo((function(e){return Fd.createElement(bF,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function xF(e){return Fd.createElement(bF,{checked:e.checked})}function kF(e){return Fd.createElement(wF,{theme:e.theme,checked:e.checked})}var SF,TF=Lw((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,c=t.selected,l=void 0!==c&&c,u=t.selectionMode,d=t.isHeader,p=void 0!==d&&d,h=t.className,f=(t.checkClassName,t.styles),m=t.theme,g=t.compact,v=t.onRenderDetailsCheckbox,y=t.useFastIcons,b=void 0===y||y,_=(0,e.__rest)(t,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),C=b?kF:xF,E=v?xP(v,C):C,w=EF(f,{theme:m,canSelect:i,selected:l,anySelected:s,className:h,isHeader:p,isVisible:r,compact:g}),x={checked:l,theme:m},k=EC("div",_,["aria-label","aria-labelledby","aria-describedby"]),S=u===gF.single?"radio":"checkbox";return i?Fd.createElement("div",(0,e.__assign)({},_,{role:S,className:P_(w.root,w.check),"aria-checked":l,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),E(x)):Fd.createElement("div",(0,e.__assign)({},k,{className:P_(w.root,w.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,c=e.isVisible,l=$y(_F,t),u=r?42:s?tF.compactRowHeight:tF.rowHeight,d=c||o||i;return{root:[l.root,n],check:[!a&&l.isDisabled,r&&l.isHeader,Yy(t),t.fonts.small,yF.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),IF=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 $A(this);var o=vv();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,c,l,u,d,p,h,f,m=n.key,g=void 0===m?"".concat(++this._lastId):m,v=[];if(n&&e){var y=n.eventMap,b=n.context,_=n.updateDropState,C={root:e,options:n,key:g};if(p=this._isDraggable(C),h=this._isDroppable(C),(p||h)&&y)for(var E=0,w=y;E<w.length;E++){var x=w[E],k={callback:x.callback.bind(null,b),eventName:x.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]&&_(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]++,1===r._dragEnterCounts[g]&&_(!0,e))},c=function(e){r._dragEnterCounts[g]=0,_(!1,e)},l=function(e){r._dragEnterCounts[g]=0,_(!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",c),t.on(e,"drop",l),t.on(e,"dragover",u)),p&&(d=this._onMouseDown.bind(this,C),c=this._onDragEnd.bind(this,C),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",c)),f={target:C,dispose:function(){if(r._activeTargets[g]===f&&delete r._activeTargets[g],e){for(var n=0,o=v;n<o.length;n++){var m=o[n];r._events.off(e,m.eventName,m.callback)}h&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",c),t.off(e,"dragover",u),t.off(e,"drop",l)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",c))}}},this._activeTargets[g]=f}return{key:g,dispose:function(){f&&f.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&&($A.raise(this._dragData.dropTarget.root,"dragleave"),$A.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=vv();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&&($A.raise(this._dragData.dropTarget.root,"dragleave"),$A.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&&($A.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"}(SF||(SF={}));var AF=Ww(),PF=[],DF=function(t){function n(n){var r=t.call(this,n)||this;return r._rootElement=Fd.createRef(),r._rootComponent=Fd.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?PF:t,o=r._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,c=o.frozenColumnCountFromEnd||0,l=s;l<n.length-c+1;l++)if(r._rootElement.current){var u=r._rootElement.current.querySelectorAll("#columnDropHint_"+l)[0];if(u)if(l===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;r._dropHintDetails[l-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,l===n.length-c&&(r._dropHintDetails[l]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},r._computeDropHintToBeShown=function(e){var t=wv(r.props.theme);if(r._rootElement.current){var n=e-r._rootElement.current.getBoundingClientRect().left,o=r._currentDropHintIndex;if(r._isValidCurrentDropHintIndex()&&RF(t,n,r._dropHintDetails[o].startX,r._dropHintDetails[o].endX))return;var i=r.props.columns,a=void 0===i?PF:i,s=r._getColumnReorderProps(),c=s.frozenColumnCountFromStart||0,l=s.frozenColumnCountFromEnd||0,u=c,d=a.length-l,p=-1;if(MF(t,n,r._dropHintDetails[u].endX)?p=u:NF(t,n,r._dropHintDetails[d].startX)?p=d:r._isValidCurrentDropHintIndex()&&(r._dropHintDetails[o+1]&&RF(t,n,r._dropHintDetails[o+1].startX,r._dropHintDetails[o+1].endX)?p=o+1:r._dropHintDetails[o-1]&&RF(t,n,r._dropHintDetails[o-1].startX,r._dropHintDetails[o-1].endX)&&(p=o-1)),-1===p)for(var h=c,f=d;h<f;){var m=Math.ceil((f+h)/2);if(RF(t,n,r._dropHintDetails[m].startX,r._dropHintDetails[m].endX)){p=m;break}MF(t,n,r._dropHintDetails[m].originX)?f=m:NF(t,n,r._dropHintDetails[m].originX)&&(h=m)}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?PF:o,a=i[n],s=r.state.columnResizeDetails,c=r._classNames;return a.isResizable?Fd.createElement("div",{key:"".concat(a.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:LF,"data-sizer-index":n,onBlur:r._onSizerBlur,className:P_(c.cellSizer,n<i.length-1?c.cellSizerStart:c.cellSizerEnd,(t={},t[c.cellIsResizing]=s&&s.columnIndex===n,t)),onDoubleClick:r._onSizerDoubleClick.bind(r,n)}):null},r._onRenderColumnHeaderTooltip=function(e){return Fd.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?PF: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,c=void 0===s?PF:s,l=a.onColumnResized,u=t.target.getAttribute("data-sizer-index");if(u&&!i){var d=Number(u);if(o){var p=void 0;t.which===rv?(r.setState({columnResizeDetails:void 0}),t.preventDefault(),t.stopPropagation()):t.which===dv?p=wv(r.props.theme)?1:-1:t.which===hv&&(p=wv(r.props.theme)?-1:1),p&&(t.shiftKey||(p*=10),r.setState({columnResizeDetails:(0,e.__assign)((0,e.__assign)({},o),{columnMinWidth:o.columnMinWidth+p})}),l&&l(c[d],o.columnMinWidth+p,d),t.preventDefault(),t.stopPropagation())}else t.which===rv&&(r.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:c[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?PF:a,c=r.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==c.originX&&o&&o(s[c.columnIndex],!0),i){var l=e.clientX-c.originX;wv(r.props.theme)&&(l=-l),i(s[c.columnIndex],c.columnMinWidth+l,c.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?PF: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)},Yx(r),r._events=new $A(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=fC("header"),r._currentDropHintIndex=-1,r._dragDropHelper=new IF({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,CF,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?PF:t,r=this.props.columns,o=void 0===r?PF: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?PF:n,o=t.ariaLabel,i=t.ariaLabelForToggleAllGroupsButton,a=t.ariaLabelForSelectAllCheckbox,s=t.selectAllVisibility,c=t.ariaLabelForSelectionColumn,l=t.indentWidth,u=t.onColumnClick,d=t.onColumnContextMenu,p=t.onRenderColumnHeaderTooltip,h=void 0===p?this._onRenderColumnHeaderTooltip:p,f=t.styles,m=t.selectionMode,g=t.theme,v=t.onRenderDetailsCheckbox,y=t.groupNestingDepth,b=t.useFastIcons,_=t.checkboxVisibility,C=t.className,E=this.state,w=E.isAllSelected,x=E.columnResizeDetails,k=E.isSizing,S=E.isAllCollapsed,T=s!==SF.none,I=s===SF.hidden,A=_===mO.always,P=this._getColumnReorderProps(),D=P&&P.frozenColumnCountFromStart?P.frozenColumnCountFromStart:0,R=P&&P.frozenColumnCountFromEnd?P.frozenColumnCountFromEnd:0;this._classNames=AF(f,{theme:g,isAllSelected:w,isSelectAllHidden:s===SF.hidden,isResizingColumn:!!x&&k,isSizing:k,isAllCollapsed:S,isCheckboxHidden:I,className:C});var M=this._classNames,N=b?gP:bP,L=y>0,O=L&&this.props.collapseAllVisibility===dF.visible,F=this._computeColumnIndexOffset(T),B=wv(g);return Fd.createElement(Ck,{role:"row","aria-label":o,className:M.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:mx.horizontal},T?[Fd.createElement("div",{key:"__checkbox",className:M.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:I?void 0:this._onSelectAllClicked,role:"columnheader"},h({hostClassName:M.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:a,children:Fd.createElement(TF,{id:"".concat(this._id,"-check"),"aria-label":m===gF.multiple?a:c,"data-is-focusable":!I||void 0,isHeader:!0,selected:w,anySelected:!1,canSelect:!I,className:M.check,onRenderDetailsCheckbox:v,useFastIcons:b,isVisible:A})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:a&&!I?Fd.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},a):c&&I?Fd.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},c):null]:null,O?Fd.createElement("div",{className:M.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!S,role:"columnheader"},Fd.createElement(N,{className:M.collapseButton,iconName:B?"ChevronLeftMed":"ChevronRightMed"}),Fd.createElement("span",{className:M.accessibleLabel},i)):L?Fd.createElement("div",{className:M.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,Fd.createElement(jO,{indentWidth:l,role:"gridcell",count:y-1}),r.map((function(t,n){var o=!!P&&(n>=D&&n<r.length-R);return[P&&(o||n===r.length-R)&&e._renderDropHint(n),Fd.createElement(lF,{column:t,styles:t.styles,key:t.key,columnIndex:F+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)]})),P&&0===R&&this._renderDropHint(r.length),k&&Fd.createElement(lA,null,Fd.createElement("div",{className:M.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===gF.none||n===mO.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 hO.header}},n.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?PF: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?gP:bP;return Fd.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e)},Fd.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},Fd.createElement(n,{iconName:"CircleShapeSolid"})),Fd.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?PF: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:SF.visible,collapseAllVisibility:dF.visible,useFastIcons:!0},n}(Fd.Component);function RF(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function MF(e,t,n){return e?t>=n:t<=n}function NF(e,t,n){return e?t<=n:t>=n}function LF(e){e.stopPropagation()}var OF=Lw(DF,(function(t){var n,r,o,i,a=t.theme,s=t.className,c=t.isAllSelected,l=t.isResizingColumn,u=t.isSizing,d=t.isAllCollapsed,p=t.cellStyleProps,h=void 0===p?eF:p,f=a.semanticColors,m=a.palette,g=a.fonts,v=$y(aF,a),y={iconForegroundColor:f.bodySubtext,headerForegroundColor:f.bodyText,headerBackgroundColor:f.bodyBackground,resizerColor:m.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},_=sF(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(f.bodyDivider),cursor:"default",userSelect:"none",selectors:(n={},n["&:hover .".concat(v.check)]={opacity:1},n["& .".concat(v.tooltipHost," .").concat(v.checkTooltip)]={display:"block"},n)},c&&v.isAllSelected,l&&v.isResizingColumn,s],check:[v.check,{height:42},{selectors:(r={},r[".".concat(jy," &:focus")]={opacity:1},r)}],cellWrapperPadded:{paddingRight:h.cellExtraRightPadding+h.cellRightPadding},cellIsCheck:[_,v.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},c&&{opacity:1}],cellIsGroupExpander:[_,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,padding:0,border:"none",width:36,color:m.neutralSecondary,selectors:{":hover":{backgroundColor:m.neutralLighter},":active":{backgroundColor:m.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:f.bodyText,background:f.listHeaderBackgroundHovered},":active":{background:f.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:wv(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[By]=(0,e.__assign)({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},accessibleLabel:Zy,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(m.themePrimary),background:m.white}],dropHintCaretStyle:[v.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:g.medium.fontSize,color:m.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[v.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:m.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),FF=function(e){var t=e.columns,n=e.rowClassNames,r=e.cellStyleProps,o=void 0===r?eF:r,i=e.item,a=e.itemIndex,s=e.isSelected,c=e.onRenderItemColumn,l=e.getCellValueKey,u=e.onRenderField,d=e.cellsByColumn,p=e.enableUpdateAnimations,h=e.rowHeaderId,f=Fd.useRef(),m=f.current||(f.current={}),g=Fd.useCallback((function(e){var t=e.column,r=e.cellValueKey,i=e.className,a=e.onRender,s=e.item,c=e.itemIndex,l="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 Fd.createElement("div",{key:u,id:t.isRowHeader?h:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:P_(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,i),style:{width:l},"data-automationid":"DetailsRowCell","data-automation-key":t.key},a(s,c,t))}),[n,o,h]);return Fd.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,r=void 0===t?l:t,o=d&&e.key in d&&function(){return d[e.key]}||e.onRender||c||BF,h=g;e.onRenderField&&(h=xP(e.onRenderField,h)),u&&(h=xP(u,h));var f=m[e.key],v=p&&r?r(i,a,e):void 0,y=!1;return void 0!==v&&void 0!==f&&v!==f&&(y=!0),m[e.key]=v,h({item:i,itemIndex:a,isSelected:s,column:e,cellValueKey:v,className:y?n.cellAnimation:void 0,onRender:o})})))};function BF(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 HF=Ww(),zF=[],VF=function(t){function n(e){var n=t.call(this,e)||this;return n._root=Fd.createRef(),n._cellMeasurer=Fd.createRef(),n._focusZone=Fd.createRef(),n._onSelectionChanged=function(){var e=UF(n.props);wC(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})},Yx(n),n._events=new $A(n),n.state={selectionState:UF(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:UF(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,CF,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=UF(e);return this.state.selectionState.isSelected!==n.isSelected||!wC(this.props,e)}return!0},n.prototype.render=function(){var t,n=this.props,r=n.className,o=n.columns,i=void 0===o?zF:o,a=n.dragDropEvents,s=n.item,c=n.itemIndex,l=n.id,u=n.flatIndexOffset,d=void 0===u?2:u,p=n.onRenderCheck,h=void 0===p?this._onRenderCheck:p,f=n.onRenderDetailsCheckbox,m=n.onRenderItemColumn,g=n.onRenderField,v=n.getCellValueKey,y=n.selectionMode,b=n.checkboxVisibility,_=n.getRowAriaLabel,C=n.getRowAriaDescription,E=n.getRowAriaDescribedBy,w=n.isGridRow,x=n.checkButtonAriaLabel,k=n.checkboxCellClassName,S=n.rowFieldsAs,T=n.selection,I=n.indentWidth,A=n.enableUpdateAnimations,P=n.compact,D=n.theme,R=n.styles,M=n.cellsByColumn,N=n.groupNestingDepth,L=n.useFastIcons,O=void 0===L||L,F=n.cellStyleProps,B=n.group,H=n.focusZoneProps,z=n.disabled,V=void 0!==z&&z,U=this.state,W=U.columnMeasureInfo,j=U.isDropping,q=this.state.selectionState,G=q.isSelected,K=void 0!==G&&G,Y=q.isSelectionModal,Q=void 0!==Y&&Y,X=a?!(!a.canDrag||!a.canDrag(s)):void 0,Z=j?this._droppingClassNames||"is-dropping":"",J=_?_(s):void 0,$=C?C(s):void 0,ee=E?E(s):void 0,te=!!T&&T.canSelectItem(s,c)&&!V,ne=y===gF.multiple,re=y!==gF.none&&b!==mO.hidden,oe=y===gF.none?void 0:K,ie=B?c-B.startIndex+1:void 0,ae=B?B.count:void 0,se=H?H.direction:mx.horizontal;this._classNames=(0,e.__assign)((0,e.__assign)({},this._classNames),HF(R,{theme:D,isSelected:K,canSelect:!ne,anySelected:Q,checkboxCellClassName:k,droppingClassName:Z,className:r,compact:P,enableUpdateAnimations:A,cellStyleProps:F,disabled:V}));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};wC(this._rowClassNames||{},ce)||(this._rowClassNames=ce);var le=S?UD(S,FF):FF,ue=Fd.createElement(le,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),cellsByColumn:M,columns:i,item:s,itemIndex:c,isSelected:K,columnStartIndex:(re?1:0)+(N?1:0),onRenderItemColumn:m,onRenderField:g,getCellValueKey:v,enableUpdateAnimations:A,cellStyleProps:F}),de=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=fC("DetailsRow-description");var pe=i.some((function(e){return!!e.isRowHeader})),he="".concat(l,"-checkbox")+(pe?" ".concat(l,"-header"):""),fe=w?{}:{"aria-level":N&&N+1||void 0,"aria-posinset":ie,"aria-setsize":ae};return Fd.createElement(Ck,(0,e.__assign)({"data-is-focusable":!0},A_(this.props,I_),"boolean"===typeof X?{"data-is-draggable":X,draggable:X}:{},H,fe,{direction:se,elementRef:this._root,componentRef:this._focusZone,role:de,"aria-label":J,"aria-disabled":V||void 0,"aria-describedby":$?this._ariaRowDescriptionId:ee,className:this._classNames.root,"data-selection-index":c,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(t=this.props["data-selection-disabled"])&&void 0!==t?t:V||void 0,"data-item-index":c,"aria-rowindex":void 0===ie?c+d:void 0,"data-automationid":"DetailsRow","aria-selected":oe,allowFocusRoot:!0}),$?Fd.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},$):null,re&&Fd.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},h({id:l?"".concat(l,"-checkbox"):void 0,selected:K,selectionMode:y,anySelected:Q,"aria-label":x,"aria-labelledby":l?he:void 0,canSelect:te,compact:P,className:this._classNames.check,theme:D,isVisible:b===mO.always,onRenderDetailsCheckbox:f,useFastIcons:O})),Fd.createElement(jO,{indentWidth:I,role:"gridcell",count:0===N?-1:N}),s&&ue,W&&Fd.createElement("span",{role:"presentation",className:P_(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},Fd.createElement(le,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),columns:[W.column],item:s,itemIndex:c,columnStartIndex:(re?1:0)+(N?1:0)+i.length,onRenderItemColumn:m,getCellValueKey:v})))},n.prototype.measureCell=function(t,n){var r=this.props.columns,o=void 0===r?zF: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 Fd.createElement(TF,(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}(Fd.Component);function UF(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 WF=Lw(VF,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h,f,m,g=t.theme,v=t.isSelected,y=t.canSelect,b=t.droppingClassName,_=t.isCheckVisible,C=t.checkboxCellClassName,E=t.compact,w=t.className,x=t.cellStyleProps,k=void 0===x?eF:x,S=t.enableUpdateAnimations,T=t.disabled,I=g.palette,A=g.fonts,P=I.neutralPrimary,D=I.white,R=I.neutralSecondary,M=I.neutralLighter,N=I.neutralLight,L=I.neutralDark,O=I.neutralQuaternaryAlt,F=g.semanticColors,B=F.focusBorder,H=F.linkHovered,z=$y($O,g),V={defaultHeaderText:P,defaultMetaText:R,defaultBackground:D,defaultHoverHeaderText:L,defaultHoverMetaText:P,defaultHoverBackground:M,selectedHeaderText:L,selectedMetaText:P,selectedBackground:N,selectedHoverHeaderText:L,selectedHoverMetaText:P,selectedHoverBackground:O,focusHeaderText:L,focusMetaText:P,focusBackground:N,focusHoverBackground:O},U=[Yy(g,{inset:-1,borderColor:B,outlineColor:D,highContrastStyle:{top:2,right:2,bottom:2,left:2},pointerEvents:"none"}),z.isSelected,{color:V.selectedMetaText,background:V.selectedBackground,borderBottom:"1px solid ".concat(D),selectors:(n={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(D)}},n[".".concat(z.cell," > .").concat(JS.root)]={color:H,selectors:(r={},r[By]={color:"HighlightText"},r)},n["&:hover"]={background:V.selectedHoverBackground,color:V.selectedHoverMetaText,selectors:(o={},o[By]={background:"Highlight",selectors:(i={},i[".".concat(z.cell)]={color:"HighlightText"},i[".".concat(z.cell," > .").concat(JS.root)]={forcedColorAdjust:"none",color:"HighlightText"},i)},o[".".concat(z.isRowHeader)]={color:V.selectedHoverHeaderText,selectors:(a={},a[By]={color:"HighlightText"},a)},o)},n["&:focus"]={background:V.focusBackground,selectors:(s={},s[".".concat(z.cell)]={color:V.focusMetaText,selectors:(c={},c[By]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},c)},s[".".concat(z.isRowHeader)]={color:V.focusHeaderText,selectors:(l={},l[By]={color:"HighlightText"},l)},s[By]={background:"Highlight"},s)},n[By]=(0,e.__assign)((0,e.__assign)({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),n["&:focus:hover"]={background:V.focusHoverBackground},n)}],W=[z.isContentUnselectable,{userSelect:"none",cursor:"default"}],j={minHeight:nF.compactRowHeight,border:0},q={minHeight:nF.compactRowHeight,paddingTop:nF.compactRowVerticalPadding,paddingBottom:nF.compactRowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px")},G=[Yy(g,{inset:-1}),z.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:nF.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:nF.rowVerticalPadding,paddingBottom:nF.rowVerticalPadding,paddingLeft:"".concat(k.cellLeftPadding,"px"),selectors:(u={"& > button":{maxWidth:"100%"}},u["[data-is-focusable='true']"]=Yy(g,{inset:-1,borderColor:R,outlineColor:D}),u)},v&&{selectors:(d={},d[By]=(0,e.__assign)({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)},E&&q,T&&{opacity:.5}];return{root:[z.root,My.fadeIn400,b,g.fonts.small,_&&z.isCheckVisible,Yy(g,{borderColor:B,outlineColor:D}),{borderBottom:"1px solid ".concat(M),background:V.defaultBackground,color:V.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:nF.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(p={},p[".".concat(z.listCellFirstChild," &:before")]={display:"none"},p["&:hover"]={background:V.defaultHoverBackground,color:V.defaultHoverMetaText,selectors:(h={},h[".".concat(z.isRowHeader)]={color:V.defaultHoverHeaderText},h[".".concat(z.cell," > .").concat(JS.root)]={color:H},h)},p["&:hover .".concat(z.check)]={opacity:1},p[".".concat(jy," &:focus .").concat(z.check)]={opacity:1},p[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},p)},v&&U,!y&&W,E&&j,w],cellUnpadded:{paddingRight:"".concat(k.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(k.cellExtraRightPadding+k.cellRightPadding,"px"),selectors:(f={},f["&.".concat(z.cellCheck)]={paddingRight:0},f)},cell:G,cellAnimation:S&&Ey.slideLeftIn40,cellMeasurer:[z.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[G,z.cellCheck,C,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[z.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[z.isRowHeader,{color:V.defaultHeaderText,fontSize:A.medium.fontSize},v&&{color:V.selectedHeaderText,fontWeight:Dy.semibold,selectors:(m={},m[By]={color:"HighlightText"},m)}],isMultiline:[G,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[z.check]}}),void 0,{scope:"DetailsRow"}),jF="data-selection-index",qF="data-selection-toggle",GF="data-selection-invoke",KF="data-selection-all-toggle",YF=function(t){function n(e){var n=t.call(this,e)||this;n._root=Fd.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||Dx(document.activeElement,t)){if(Dx(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,GF)){n.ignoreNextFocus();break}t=Ax(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!==gF.none){var a=n._hasAttribute(t,qF),s=n._findItemRoot(t);if(!a&&s){var c=n._getItemIndex(s);void 0===n._getItemSpan(s)&&(o?(r.setIndexSelected(c,r.isIndexSelected(c),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",c))}}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,KF);){if(o){if(n._hasAttribute(r,qF))break;if(n._hasAttribute(r,GF))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=Ax(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,KF)){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i),c=n._getItemSpan(i);if(n._hasAttribute(o,qF)){a||(n._isShiftPressed?n._onItemSurfaceClick("click",s,c):n._onToggleClick(e,s,c));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,GF)){void 0===c&&n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick("click",s,c);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=Ax(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,qF)&&!n._hasAttribute(t,GF);){if(t===o){n._onInvokeClick(e,i);break}t=Ax(t)}t=Ax(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===mv&&(n._isCtrlPressed||n._isMetaPressed),c=e.which===iv;if(!n._isInputElement(t)){var l=n._getSelectionMode();if(s&&l===gF.multiple&&!i.isAllSelected())return r||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&c&&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,qF);){if(n._shouldAutoSelect(t)){r||void 0!==p||n._onInvokeMouseDown(e,d,p);break}if(!(e.which!==rv&&e.which!==av||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===u){if(e.which===rv)return void(void 0===p&&(n._onInvokeClick(e,d),e.preventDefault()));if(e.which===av)return r||n._onToggleClick(e,d,p),void e.preventDefault();break}t=Ax(t)}}},n._events=new $A(n),n._async=new LT(n),Yx(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=bv(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 Fd.createElement("div",{className:P_("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,Fd.createElement(NC,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()===gF.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Ax(e)}return!1},n.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===gF.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===gF.multiple)void 0!==n?r.toggleRangeSelected(t,n):r.toggleIndexSelected(t);else{if(o!==gF.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,c=this._getSelectionMode();c===gF.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):c===gF.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=ik(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===nv},n.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(jF),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=Ax(e)}if(e!==this._root.current)return e},n.prototype._getItemIndex=function(e){var t,n=parseInt(null!==(t=e.getAttribute(jF))&&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=Ax(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=vv();if(t&&e)for(;e&&e!==t.documentElement;){if(Hx(e)||e.hasAttribute("data-selection-index"))return!1;e=Ax(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:gF.none:t},n.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:gF.multiple,selectionClearedOnEscapePress:!0},n}(Fd.Component),QF=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,c=n.items,l=n.selectionMode,u=void 0===l?gF.multiple:l;this.mode=u,this._getKey=i||XF,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(c||[],!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={},c=0;for(var l in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(l)){var u,d=Number(l),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,c++,o=o||h!==d)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),!i)for(var f=0,m=Object.keys(this._keyToIndexMap);f<m.length;f++){var g;if(!((g=m[f])in n)){i=!0;break}}this._exemptedIndices=s,this._exemptedCount=c,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&this._updateCount(),i&&($A.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===gF.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===gF.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!==gF.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===gF.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!==gF.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!==gF.none)if(this.mode!==gF.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!==gF.none)if(this.mode!==gF.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!==gF.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===gF.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===gF.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,$A.raise(this,CF),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function XF(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var ZF={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},JF="cubic-bezier(0.445, 0.050, 0.550, 0.950)",$F={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"},eB="cubic-bezier(0.075, 0.820, 0.165, 1.000)",tB="cubic-bezier(0.390, 0.575, 0.565, 1.000)",nB="cubic-bezier(0.600, -0.280, 0.735, 0.045)",rB=Ww(),oB=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===xv(hv,n.props.theme);(!n.state.isCollapsed&&e.which===xv(dv,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?xP(e.onRenderName,n._onRenderName):n._onRenderName;return Fd.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?Fd.createElement(Fd.Fragment,null,Fd.createElement("span",null,t.name),Fd.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=fC("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,c=t.isSelected,l=void 0!==c&&c,u=t.selected,d=void 0!==u&&u,p=t.indentWidth,h=t.onRenderGroupHeaderCheckbox,f=t.isCollapsedGroupSelectVisible,m=void 0===f||f,g=t.expandButtonProps,v=t.expandButtonIcon,y=t.selectAllButtonProps,b=t.theme,_=t.styles,C=t.className,E=t.compact,w=t.ariaLevel,x=t.ariaPosInSet,k=t.ariaSetSize,S=t.ariaRowIndex,T=t.useFastIcons,I=this.props.onRenderTitle?xP(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,A=T?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,P=h?xP(h,A):A,D=this.state,R=D.isCollapsed,M=D.isLoadingVisible,N=a===gF.multiple,L=N&&(m||!(n&&n.isCollapsed)),O=d||l,F=wv(b);return this._classNames=rB(_,{theme:b,className:C,selected:O,isCollapsed:R,compact:E}),n?Fd.createElement("div",{className:this._classNames.root,style:i?{minWidth:i.width}:{},role:"row","aria-level":w,"aria-setsize":k,"aria-posinset":x,"aria-rowindex":S,"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":N?O:void 0,"data-selection-index":n.startIndex,"data-selection-span":n.count},Fd.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},L?Fd.createElement("div",{role:"gridcell"},Fd.createElement("button",(0,e.__assign)({"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},y),P({checked:O,theme:b},P))):a!==gF.none&&Fd.createElement(jO,{indentWidth:48,count:1}),Fd.createElement(jO,{indentWidth:p,count:o}),Fd.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},Fd.createElement(bP,{iconName:"Tag"})),Fd.createElement("div",{role:"gridcell"},Fd.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),Fd.createElement(bP,{className:this._classNames.expandIsCollapsed,iconName:v||(F?"ChevronLeftMed":"ChevronRightMed")}))),I(this.props),M&&Fd.createElement(dT,{label:s}))):null},n.prototype._defaultCheckboxRender=function(e){return Fd.createElement(bF,{checked:e.checked})},n.prototype._fastDefaultCheckboxRender=function(e){return Fd.createElement(iB,{theme:e.theme,checked:e.checked})},n.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},n}(Fd.Component),iB=Fd.memo((function(e){return Fd.createElement(bF,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),aB=Lw(oB,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,c=e.selected,l=e.isCollapsed,u=e.compact,d=eF.cellLeftPadding,p=u?40:48,h=a.semanticColors,f=a.palette,m=a.fonts,g=$y($F,a),v=[Yy(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[g.root,Yy(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(jy," &: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(Cy," ").concat(eB," ")+"opacity ".concat(yy," ").concat(tB),transitionDelay:_y,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(g.check)]={opacity:0},n)},t)},c&&[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(jy," &:focus")]={opacity:1},o)}],expand:[g.expand,v,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:m.small.fontSize,width:36,height:p,color:c?f.neutralPrimary:f.neutralSecondary,selectors:{":hover":{backgroundColor:c?f.neutralQuaternary:f.neutralLight},":active":{backgroundColor:c?f.neutralTertiaryAlt:f.neutralQuaternaryAlt}}}],expandIsCollapsed:[l?[g.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:wv(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[g.title,{paddingLeft:d,fontSize:u?m.medium.fontSize:m.mediumPlus.fontSize,fontWeight:l?Dy.regular:Dy.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[g.dropIcon,{position:"absolute",left:-26,fontSize:Ry.large,color:f.neutralSecondary,transition:"transform ".concat(by," ").concat(nB,", ")+"opacity ".concat(Cy," ").concat(tB),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"}),sB={root:"ms-GroupShowAll",link:"ms-Link"},cB=Ww(),lB=Lw((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,c=cB(i,{theme:a}),l=(0,Fd.useCallback)((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?Fd.createElement("div",{className:c.root},Fd.createElement(jO,{count:n}),Fd.createElement($S,{onClick:l},o)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=$y(sB,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"}),uB={root:"ms-groupFooter"},dB=Ww(),pB=Lw((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,o=e.indentWidth,i=e.styles,a=e.theme,s=dB(i,{theme:a});return t&&r?Fd.createElement("div",{className:s.root},Fd.createElement(jO,{indentWidth:o,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=$y(uB,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),hB=0,fB=1,mB=2,gB=3,vB=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)},yB=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},bB="spacer-",_B={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},CB=function(e){return e.getBoundingClientRect()},EB=CB,wB=CB,xB=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Fd.createRef(),r._surface=Fd.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&&gv()?(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 Fd.createElement("div",(0,e.__assign)({ref:n},o),r)},r._onRenderSurface=function(t){var n=t.surfaceRef,r=t.pageElements,o=t.divProps;return Fd.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,c=i.role,l=t.page,u=l.items,d=void 0===u?[]:u,p=l.startIndex,h=(0,e.__rest)(t,["page"]),f=void 0===c?"listitem":"presentation",m=[],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 _=null!==s&&void 0!==s?s:a,C=null!==(o=null===_||void 0===_?void 0:_(y,v,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;s&&!C||m.push(Fd.createElement("div",{role:f,className:"ms-List-cell",key:b,"data-list-index":v,"data-automationid":"ListCell"},C))}return Fd.createElement("div",(0,e.__assign)({},h),m)},Yx(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._async=new LT(r),r._events=new $A(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=hB);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,c=r;c<o;c+=s){var l=this._getPageSpecification(this.props,c,i),u=l.height;if(s=l.itemCount,c<=e&&c+s>e){if(t&&this._scrollElement){for(var d=wB(this._scrollElement),p=vB(this._scrollElement),h={top:p,bottom:p+d.height},f=e-c,m=0;m<f;++m)a+=t(c+m);var g=a+t(e);switch(n){case fB:return void yB(this._scrollElement,a);case mB:return void yB(this._scrollElement,g-d.height);case gB:return void yB(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&&yB(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=ik(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,c=void 0===s?[]:s,l=[],u=A_(this.props,I_),d=0,p=c;d<p.length;d++){var h=p[d];l.push(this._renderPage(h))}var f=i?xP(i,this._onRenderSurface):this._onRenderSurface;return(a?xP(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:c,surfaceElement:f({surfaceRef:this._surface,pages:c,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,e.__assign)((0,e.__assign)({},u),{className:P_("ms-List",n),role:l.length>0?o:void 0,"aria-label":l.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=Ax(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 c=0,l=t;c<l.length;c++){var u;(u=l[c]).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)({},_B),c=[],l=1,u=0,d=null,p=this._focusedIndex,h=i+r,f=this._shouldVirtualize(t),m=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;l=r.itemCount;var _,C,E=u+a-1,w=kx(n.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,x=!g||E>=g.top&&u<=g.bottom,k=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!m&&(k||x&&w)||!f||p>=e&&p<e+l||e===i){d&&(c.push(d),d=null);var S=Math.min(l,h-e),T=y._createPage(b,o.slice(e,e+S),e,void 0,void 0,v);T.top=u,T.height=a,y._visibleRect&&y._visibleRect.bottom&&(T.isVisible=E>=y._visibleRect.top&&u<=y._visibleRect.bottom),c.push(T),k&&y._allowedRect&&(_=s,C={top:u,bottom:E,height:a,left:g.left,right:g.right,width:g.width},_.top=C.top<_.top||-1===_.top?C.top:_.top,_.left=C.left<_.left||-1===_.left?C.left:_.left,_.bottom=C.bottom>_.bottom||-1===_.bottom?C.bottom:_.bottom,_.right=C.right>_.right||-1===_.right?C.right:_.right,_.width=_.right-_.left+1,_.height=_.bottom-_.top+1)}else d||(d=y._createPage(bB+e,void 0,e,0,void 0,v,!0)),d.height=(d.height||0)+(E-u)+1,d.itemCount+=l;if(u+=E-u+1,m&&f)return"break"},y=this,b=i;b<h;b+=l){if("break"===v(b))break}return d&&(d.key="spacer-end",c.push(d)),this._materializedRect=s,(0,e.__assign)((0,e.__assign)({},n),{pages:c,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)({},_B),c=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=vB(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-l)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=EB(this._surface.current),this._scrollTop=l),!r&&c&&c===this._scrollHeight||this._measureVersion++,this._scrollHeight=c||0;var u=Math.max(0,-s.top),d=bv(this._root.current),p={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=kB(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=kB(p,i,o),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return Fd.createElement(Fd.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n}(Fd.Component);function kB(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 SB=function(t){function n(r){var o=t.call(this,r)||this;o._root=Fd.createRef(),o._list=Fd.createRef(),o._subGroupRefs={},o._droppingClassName="",o._onRenderGroupHeader=function(t){return Fd.createElement(aB,(0,e.__assign)({},t))},o._onRenderGroupShowAll=function(t){return Fd.createElement(lB,(0,e.__assign)({},t))},o._onRenderGroupFooter=function(t){return Fd.createElement(pB,(0,e.__assign)({},t))},o._renderSubGroup=function(e,t){var r=o.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,c=r.getGroupItemLimit,l=r.groupNestingDepth,u=r.groupProps,d=r.items,p=r.headerProps,h=r.showAllProps,f=r.footerProps,m=r.listProps,g=r.onRenderCell,v=r.selection,y=r.selectionMode,b=r.viewport,_=r.onRenderGroupHeader,C=r.onRenderGroupShowAll,E=r.onRenderGroupFooter,w=r.onShouldVirtualize,x=r.group,k=r.compact,S=e.level?e.level+1:l;return!e||e.count>0||u&&u.showEmptyGroups?Fd.createElement(n,{ref:function(e){return o._subGroupRefs["subGroup_"+t]=e},key:o._getGroupKey(e,t),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:f,getGroupItemLimit:c,group:e,groupIndex:t,groupNestingDepth:S,groupProps:u,headerProps:p,items:d,listProps:m,onRenderCell:g,selection:v,selectionMode:y,showAllProps:h,viewport:b,onRenderGroupHeader:_,onRenderGroupShowAll:C,onRenderGroupFooter:E,onShouldVirtualize:w,groups:x?x.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 Yx(o),o._id=fC("GroupedListSection"),o.state={isDropping:!1,isSelected:!(!i||!a)&&i.isRangeSelected(a.startIndex,a.count)},o._events=new $A(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,CF,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,c=t.viewport,l=t.selectionMode,u=t.onRenderGroupHeader,d=void 0===u?this._onRenderGroupHeader:u,p=t.onRenderGroupShowAll,h=void 0===p?this._onRenderGroupShowAll:p,f=t.onRenderGroupFooter,m=void 0===f?this._onRenderGroupFooter:f,g=t.onShouldVirtualize,v=t.groupedListClassNames,y=t.groups,b=t.compact,_=t.listProps,C=void 0===_?{}:_,E=this.state.isSelected,w=r&&n?n(r):1/0,x=r&&!r.children&&!r.isCollapsed&&!r.isShowingAll&&(r.count>w||r.hasMoreData),k=r&&r.children&&r.children.length>0,S=C.version,T={group:r,groupIndex:o,groupLevel:r?r.level:0,isSelected:E,selected:E,viewport:c,selectionMode:l,groups:y,compact:b},I={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},A=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},i),T),I),P=(0,e.__assign)((0,e.__assign)({},a),T),D=(0,e.__assign)((0,e.__assign)({},s),T),R=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(r)&&!!this.props.dragDropEvents.canDragGroups;return Fd.createElement("div",(0,e.__assign)({ref:this._root},R&&{draggable:!0},{className:P_(v&&v.group,this._getDroppingClassName()),role:"presentation"}),d(A,this._onRenderGroupHeader),r&&r.isCollapsed?null:k?Fd.createElement(xB,{role:"presentation",ref:this._list,items:r?r.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:g,version:S,id:this._id}):this._onRenderGroup(w),r&&r.isCollapsed?null:x&&h(P,this._onRenderGroupShowAll),m(D,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,c=n.onShouldVirtualize,l=n.groupProps,u=r&&!r.isShowingAll?r.count:o.length,d=r?r.startIndex:0;return Fd.createElement(xB,(0,e.__assign)({role:l&&l.role?l.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:c,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 P_((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},n}(Fd.Component),TB=Ww(),IB=tF.rowHeight,AB=tF.compactRowHeight,PB=function(t){function n(n){var r=t.call(this,n)||this;r._list=Fd.createRef(),r._renderGroup=function(t,n){var o=r.props,i=o.dragDropEvents,a=o.dragDropHelper,s=o.eventsToRegister,c=o.groupProps,l=o.items,u=o.listProps,d=o.onRenderCell,p=o.selectionMode,h=o.selection,f=o.viewport,m=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)({},c.headerProps),y),_=(0,e.__assign)((0,e.__assign)({},c.showAllProps),y),C=(0,e.__assign)((0,e.__assign)({},c.footerProps),y),E=r._getGroupNestingDepth();if(!c.showEmptyGroups&&t&&0===t.count)return null;var w=(0,e.__assign)((0,e.__assign)({},u||{}),{version:r.state.version});return Fd.createElement(SB,{key:r._getGroupKey(t,n),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:C,getGroupItemLimit:c&&c.getGroupItemLimit,group:t,groupIndex:n,groupNestingDepth:E,groupProps:c,headerProps:b,listProps:w,items:l,onRenderCell:d,onRenderGroupHeader:c.onRenderHeader,onRenderGroupShowAll:c.onRenderShowAll,onRenderGroupFooter:c.onRenderFooter,selectionMode:p,selection:h,showAllProps:_,viewport:f,onShouldVirtualize:m,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?AB:IB;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===gF.multiple&&n.toggleRangeSelected(e.startIndex,e.count)},r._isInnerZoneKeystroke=function(e){return e.which===xv(hv)},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}},Yx(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,c=s&&s.version,l=(0,e.__assign)((0,e.__assign)({},n),{selectionMode:o,compact:i,groups:r,listProps:s,items:a}),u=!1;return c===(n.listProps&&n.listProps.version)&&a===n.items&&r===n.groups&&o===n.selectionMode&&i===n.compact||(u=!0),u&&(l=(0,e.__assign)((0,e.__assign)({},l),{version:{}})),l},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,c=t.styles,l=t.compact,u=t.focusZoneProps,d=void 0===u?{}:u,p=t.rootListProps,h=void 0===p?{}:p,f=this.state,m=f.groups,g=f.version;this._classNames=TB(c,{theme:i,className:n,compact:l});var v=d.shouldEnterInnerZone,y=void 0===v?this._isInnerZoneKeystroke:v;return Fd.createElement(Ck,(0,e.__assign)({direction:mx.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},d,{shouldEnterInnerZone:y,className:P_(this._classNames.root,d.className)}),m?Fd.createElement(xB,(0,e.__assign)({ref:this._list,role:s,items:m,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:gF.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},n}(Fd.Component),DB=Lw(PB,(function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=$y(ZF,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(by," ").concat(JF)}],groupIsDropping:{backgroundColor:a.neutralLight}}}),void 0,{scope:"GroupedList"}),RB=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var MB=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=RB);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}(Fd.Component);function NB(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 LB(t){return function(n){function r(e){var t=n.call(this,e)||this;return t._root=Fd.createRef(),t._registerResizeObserver=function(){var e=bv(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=NB(ik(r)),i=NB(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 LT(t),t._events=new $A(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=bv(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=bv(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 Fd.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},Fd.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=bv(this._root.current);return e&&e.ResizeObserver},r}(MB)}var OB=Ww(),FB=100,BB={tabIndex:0},HB={},zB=function(t){var n=t.selection,r=t.ariaLabelForListHeader,o=t.ariaLabelForSelectAllCheckbox,i=t.ariaLabelForSelectionColumn,a=t.className,s=t.checkboxVisibility,c=t.compact,l=t.constrainMode,u=t.dragDropEvents,d=t.groups,p=t.groupProps,h=t.indentWidth,f=t.items,m=t.isPlaceholderData,g=t.isHeaderVisible,v=t.layoutMode,y=t.onItemInvoked,b=t.onItemContextMenu,_=t.onColumnHeaderClick,C=t.onColumnHeaderContextMenu,E=t.selectionMode,w=void 0===E?n.mode:E,x=t.selectionPreservedOnEmptyClick,k=t.selectionZoneProps,S=t.ariaLabel,T=t.ariaLabelForGrid,I=t.rowElementEventMap,A=t.shouldApplyApplicationRole,P=void 0!==A&&A,D=t.getKey,R=t.listProps,M=t.usePageCache,N=t.onShouldVirtualize,L=t.viewport,O=t.minimumPixelsForDrag,F=t.getGroupHeight,B=t.styles,H=t.theme,z=t.cellStyleProps,V=void 0===z?eF:z,U=t.onRenderCheckbox,W=t.useFastIcons,j=t.dragDropHelper,q=t.adjustedColumns,G=t.isCollapsed,K=t.isSizing,Y=t.isSomeGroupExpanded,Q=t.version,X=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,ce=void 0===se||se,le=t.onColumnResized,ue=t.onColumnAutoResized,de=t.onToggleCollapse,pe=t.onActiveRowChanged,he=t.onBlur,fe=t.rowElementEventMap,me=t.onRenderMissingItem,ge=t.onRenderItemColumn,ve=t.onRenderField,ye=t.getCellValueKey,be=t.getRowAriaLabel,_e=t.getRowAriaDescribedBy,Ce=t.checkButtonAriaLabel,Ee=t.checkButtonGroupAriaLabel,we=t.checkboxCellClassName,xe=t.useReducedRowRenderer,ke=t.enableUpdateAnimations,Se=t.enterModalSelectionOnTouch,Te=t.onRenderDefaultRow,Ie=t.selectionZoneRef,Ae=t.focusZoneProps,Pe="grid",De=t.role?t.role:Pe,Re=fC("row"),Me=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(d),Ne=function(e){return Fd.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),Le=Fd.useMemo((function(){return(0,e.__assign)({renderedWindowsAhead:K?0:2,renderedWindowsBehind:K?0:2,getKey:D,version:Q},R)}),[K,D,Q,R]),Oe=SF.none;if(w===gF.single&&(Oe=SF.hidden),w===gF.multiple){var Fe=p&&p.headerProps&&p.headerProps.isCollapsedGroupSelectVisible;void 0===Fe&&(Fe=!0),Oe=Fe||!d||Y?SF.visible:SF.hidden}s===mO.hidden&&(Oe=SF.none);var Be=Fd.useCallback((function(t){return Fd.createElement(OF,(0,e.__assign)({},t))}),[]),He=Fd.useCallback((function(){return null}),[]),ze=t.onRenderDetailsHeader,Ve=Fd.useMemo((function(){return ze?xP(ze,Be):Be}),[ze,Be]),Ue=t.onRenderDetailsFooter,We=Fd.useMemo((function(){return Ue?xP(Ue,He):He}),[Ue,He]),je=Fd.useMemo((function(){return{columns:q,groupNestingDepth:Me,selection:n,selectionMode:w,viewport:L,checkboxVisibility:s,indentWidth:h,cellStyleProps:V}}),[q,Me,n,w,L,s,h,V]),qe=$&&$.onDragEnd,Ge=Fd.useCallback((function(e,t){var n=e.dropLocation,r=hO.outside;if(qe){if(n&&n!==hO.header)r=n;else if(X.current){var o=X.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=hO.surface)}qe(r)}}),[qe,X]),Ke=Fd.useMemo((function(){if($)return(0,e.__assign)((0,e.__assign)({},$),{onColumnDragEnd:Ge})}),[$,Ge]),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)+(f?f.length:0),Qe=(Oe!==SF.none?1:0)+(q?q.length:0)+(d?1:0),Xe=Fd.useMemo((function(){return OB(B,{theme:H,compact:c,isFixed:v===fO.fixedColumns,isHorizontalConstrained:l===pO.horizontalConstrained,className:a})}),[B,H,c,v,l,a]),Ze=p&&p.onRenderFooter,Je=Fd.useMemo((function(){return Ze?function(t,r){return Ze((0,e.__assign)((0,e.__assign)({},t),{columns:q,groupNestingDepth:Me,indentWidth:h,selection:n,selectionMode:w,viewport:L,checkboxVisibility:s,cellStyleProps:V}),r)}:void 0}),[Ze,q,Me,h,n,w,L,s,V]),$e=p&&p.onRenderHeader,et=Fd.useMemo((function(){return $e?function(t,r){var o,i,a=t.groupIndex,c=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,l=void 0!==c&&Ne[c]?Ne[c].totalRowCount:0;return $e((0,e.__assign)((0,e.__assign)({},t),{columns:q,groupNestingDepth:Me,indentWidth:h,selection:n,selectionMode:s!==mO.hidden?w:gF.none,viewport:L,checkboxVisibility:s,cellStyleProps:V,ariaColSpan:q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==a?l+(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&&Ne[a]?Ne[a].totalRowCount:0;return n((0,e.__assign)((0,e.__assign)({},t),{ariaColSpan:q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?s+(g?1:0):void 0}))}}),[$e,q,Me,h,g,n,w,L,s,V,Ne]),tt=Fd.useMemo((function(){var t;return(0,e.__assign)((0,e.__assign)({},p),{role:De===Pe?"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":Ee},null===(t=null===p||void 0===p?void 0:p.headerProps)||void 0===t?void 0:t.selectAllButtonProps)})})}),[p,Je,et,Ee,De]),nt=cx((function(){return Jg((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),rt=p&&p.collapseAllVisibility,ot=Fd.useMemo((function(){return nt(q)}),[q,nt]),it=Fd.useCallback((function(e,r,o,i){var a=t.onRenderRow?xP(t.onRenderRow,Te):Te,l=i?i.key:void 0,d=l&&Ne[l]?Ne[l].numOfGroupHeadersBeforeItem:0,p=De===Pe?void 0:"presentation",f=g||o>0?HB:BB,m={item:r,itemIndex:o,flatIndexOffset:(g?2:1)+d,compact:c,columns:q,groupNestingDepth:e,id:"".concat(Re,"-").concat(o),selectionMode:w,selection:n,onDidMount:oe,onWillUnmount:ie,onRenderItemColumn:ge,onRenderField:ve,getCellValueKey:ye,eventsToRegister:fe,dragDropEvents:u,dragDropHelper:j,viewport:L,checkboxVisibility:s,collapseAllVisibility:rt,getRowAriaLabel:be,getRowAriaDescribedBy:_e,checkButtonAriaLabel:Ce,checkboxCellClassName:we,useReducedRowRenderer:xe,indentWidth:h,cellStyleProps:V,onRenderDetailsCheckbox:U,enableUpdateAnimations:ke,rowWidth:ot,useFastIcons:W,role:p,isGridRow:!0,focusZoneProps:f};return r?a(m):me?me(o,m):null}),[c,q,w,n,Re,oe,ie,ge,ve,ye,fe,u,j,L,s,rt,be,_e,g,Ce,we,xe,h,V,U,ke,W,Te,me,t.onRenderRow,ot,De,Ne]),at=Fd.useCallback((function(e){return function(t,n){return it(e,t,n)}}),[it]),st=Fd.useCallback((function(e){return e.which===xv(hv,H)}),[H]),ct=(0,e.__assign)((0,e.__assign)({},Ae),{componentRef:Ae&&Ae.componentRef?Ae.componentRef:J,className:Ae&&Ae.className?P_(Xe.focusZone,Ae.className):Xe.focusZone,direction:Ae?Ae.direction:mx.vertical,shouldEnterInnerZone:Ae&&Ae.shouldEnterInnerZone?Ae.shouldEnterInnerZone:st,onActiveElementChanged:Ae&&Ae.onActiveElementChanged?Ae.onActiveElementChanged:pe,shouldRaiseClicksOnEnter:!1,onBlur:Ae&&Ae.onBlur?Ae.onBlur:he}),lt=d&&(null===p||void 0===p?void 0:p.groupedListAs)?UD(p.groupedListAs,DB):DB,ut=d?Fd.createElement(lt,{focusZoneProps:ct,componentRef:ee,groups:d,groupProps:tt,items:f,onRenderCell:it,role:"presentation",selection:n,selectionMode:s!==mO.hidden?w:gF.none,dragDropEvents:u,dragDropHelper:j,eventsToRegister:I,listProps:Le,onGroupExpandStateChanged:ne,usePageCache:M,onShouldVirtualize:N,getGroupHeight:F,compact:c}):Fd.createElement(Ck,(0,e.__assign)({},ct),Fd.createElement(xB,(0,e.__assign)({ref:Z,role:"presentation",items:f,onRenderCell:at(0),usePageCache:M,onShouldVirtualize:N},Le))),dt=Fd.useCallback((function(e){e.which===fv&&J.current&&J.current.focus()&&(ce&&0===n.getSelectedIndices().length&&n.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[n,J,ce]),pt=Fd.useCallback((function(e){e.which!==pv||e.altKey||te.current&&te.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[te]);return Fd.createElement("div",(0,e.__assign)({ref:X,className:Xe.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},P?{role:"application"}:{}),Fd.createElement(NC,null),Fd.createElement("div",{role:De,"aria-label":T||S,"aria-rowcount":m?0:Ye,"aria-colcount":Qe,"aria-busy":m},Fd.createElement("div",{onKeyDown:dt,role:"presentation",className:Xe.headerWrapper},g&&Ve({componentRef:te,selectionMode:w,layoutMode:v,selection:n,columns:q,onColumnClick:_,onColumnContextMenu:C,onColumnResized:le,onColumnIsSizingChanged:re,onColumnAutoResized:ue,groupNestingDepth:Me,isAllCollapsed:G,onToggleCollapseAll:de,ariaLabel:r,ariaLabelForSelectAllCheckbox:o,ariaLabelForSelectionColumn:i,selectAllVisibility:Oe,collapseAllVisibility:p&&p.collapseAllVisibility,viewport:L,columnReorderProps:Ke,minimumPixelsForDrag:O,cellStyleProps:V,checkboxVisibility:s,indentWidth:h,onRenderDetailsCheckbox:U,rowWidth:nt(q),useFastIcons:W},Ve)),Fd.createElement("div",{onKeyDown:pt,role:"presentation",className:Xe.contentWrapper},ae?ut:Fd.createElement(YF,(0,e.__assign)({ref:Ie,selection:n,selectionPreservedOnEmptyClick:x,selectionMode:w,isSelectedOnFocus:ce,selectionClearedOnEscapePress:ce,toggleWithoutModifierPressed:!ce,onItemInvoked:y,onItemContextMenu:b,enterModalOnTouch:Se},k||{}),ut)),We((0,e.__assign)({},je))))},VB=function(t){function n(n){var r=t.call(this,n)||this;return r._root=Fd.createRef(),r._header=Fd.createRef(),r._groupedList=Fd.createRef(),r._list=Fd.createRef(),r._focusZone=Fd.createRef(),r._selectionZone=Fd.createRef(),r._onRenderRow=function(t,n){return Fd.createElement(WF,(0,e.__assign)({},t))},r._getDerivedStateFromProps=function(t,n){var o=r.props,i=o.checkboxVisibility,a=o.items,s=o.setKey,c=o.selectionMode,l=void 0===c?r._selection.mode:c,u=o.columns,d=o.viewport,p=o.compact,h=o.dragDropEvents,f=(r.props.groupProps||{}).isAllGroupsCollapsed,m=void 0===f?void 0:f,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 _=n;return y&&(r._initialFocusedIndex=t.initialFocusedIndex,_=(0,e.__assign)((0,e.__assign)({},_),{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),_=(0,e.__assign)((0,e.__assign)({},_),r._adjustColumns(t,_,!0)),t.selectionMode!==l&&(b=!0),void 0===m&&t.groupProps&&void 0!==t.groupProps.isAllGroupsCollapsed&&(_=(0,e.__assign)((0,e.__assign)({},_),{isCollapsed:t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!t.groupProps.isAllGroupsCollapsed})),t.dragDropEvents!==h&&(r._dragDropHelper&&r._dragDropHelper.dispose(),r._dragDropHelper=t.dragDropEvents?new IF({selection:r._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,b=!0),b&&(_=(0,e.__assign)((0,e.__assign)({},_),{version:{}})),_},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||FB,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})},Yx(r),r._async=new LT(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 QF({onSelectionChanged:void 0,getKey:n.getKey,selectionMode:n.selectionMode}),r.props.disableSelectionZone||r._selection.setItems(n.items,!1),r._dragDropHelper=n.dragDropEvents?new IF({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,c=o.checkboxVisibility,l=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&&l){var h=s===gF.none||c===mO.hidden,f=(c!==mO.hidden?2:1)+p,m=h?f-1:f-2,g=h?d-1:d-2,v=null!==(n=l.frozenColumnCountFromStart)&&void 0!==n?n:0,y=null!==(r=l.frozenColumnCountFromEnd)&&void 0!==r?r:0;if(g>=v&&g<a.length-y)if(l.onColumnDrop){var b={draggedIndex:m,targetIndex:g};l.onColumnDrop(b)}else l.handleColumnReorder&&l.handleColumnReorder(m,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&&!Dx(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 Fd.createElement(zB,(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,c=e.selectionMode,l=e.viewport,u=l&&l.width?l.width:0,d=e.columns,p=this.props?this.props.columns:[],h=t?t.lastWidth:-1,f=t?t.lastSelectionMode:void 0;return n||h!==u||f!==c||p&&d!==p?(d=d||function(e,t,n,r,o,i,a,s){var c=[];if(e&&e.length){var l=e[0];for(var u in l)l.hasOwnProperty(u)&&c.push({key:u,name:u,fieldName:u,minWidth:FB,maxWidth:300,isCollapsible:!!c.length,isMultiline:void 0!==a&&a,isSorted:r===u,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:null!==s&&void 0!==s?s:dO.clickable,isResizable:t,onColumnClick:n,isGrouped:i===u})}return c}(a,!0),s===fO.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,c=i.checkboxVisibility,l=i.flexMargin,u=i.skipViewportMeasures,d=n-(l||0),p=0;t.forEach((function(e){u||!e.flexGrow?d-=e.maxWidth||e.minWidth||FB:(d-=e.minWidth||FB,p+=e.flexGrow),d-=UB(e,r,!0)}));var h=s!==gF.none&&c!==mO.hidden?48:0,f=36*this._getGroupNestingDepth(),m=(d-=h+f)/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*m+n.minWidth,i=r-n.maxWidth;i>0&&(d+=i,p-=i/(r-n.minWidth)*n.flexGrow)}})),m=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*m,n.calculatedWidth=Math.min(n.calculatedWidth,n.maxWidth||Number.MAX_VALUE)):n.calculatedWidth=n.maxWidth||n.minWidth||FB),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,c=r.skipViewportMeasures,l=a!==gF.none&&s!==mO.hidden?48:0,u=36*this._getGroupNestingDepth(),d=0,p=0,h=n-(l+u),f=t.map((function(t,n){var i=(0,e.__assign)((0,e.__assign)({},t),{calculatedWidth:t.minWidth||FB}),a=(0,e.__assign)((0,e.__assign)({},i),o._columnOverrides[t.key]);return i.isCollapsible||i.isCollapsable||(p+=UB(i,r)),d+=UB(a,r),a}));if(c)return f;for(var m=f.length-1;m>=0&&d>h;){var g=(_=f[m]).minWidth||FB,v=d-h;if(_.calculatedWidth-g>=v||!_.isCollapsible&&!_.isCollapsable){var y=_.calculatedWidth;p<h&&(_.calculatedWidth=Math.max(_.calculatedWidth-v,g)),d-=y-_.calculatedWidth}else d-=UB(_,r),f.splice(m,1);m--}for(var b=0;b<f.length&&d<h;b++){var _=f[b],C=b===f.length-1,E=this._columnOverrides[_.key];if(!E||!E.calculatedWidth||C){var w=h-d,x=void 0;if(C)x=w;else{var k=_.maxWidth;g=_.minWidth||k||FB;x=k?Math.min(w,k-g):w}_.calculatedWidth=_.calculatedWidth+x,d+=x}}return f},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:fO.justified,selectionMode:gF.multiple,constrainMode:pO.horizontalConstrained,checkboxVisibility:mO.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},n=(0,e.__decorate)([LB],n)}(Fd.Component);function UB(e,t,n){var r=t.cellStyleProps,o=void 0===r?eF:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var 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"},jB=Lw(VB,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,c=r.semanticColors,l=$y(WB,r);return{root:[l.root,r.fonts.small,{position:"relative",color:c.listText,selectors:(t={},t["& .".concat(l.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&l.isFixed,a&&[l.compact,{selectors:(n={},n[".".concat(l.listCell)]={minHeight:32},n)}],i&&[l.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:l.headerWrapper,contentWrapper:l.contentWrapper}}),void 0,{scope:"DetailsList"}),qB=function(e){var t=e.operationalData;return Bd().createElement(wT,{horizontalAlign:"start"},Bd().createElement(PM,{operationalData:t}))},GB=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 Bd().createElement(FL,{iconName:n,disabled:r},Bd().createElement(wT,{horizontalAlign:"end"===a?"end":"start",margin:"end"===a?"0px 8px":void 0,grow:!0},Bd().createElement(PM,{operationalData:o},DM(s,r))))},KB=function(t){var n=t.toggleProps,r=t.disabled,o=t.columnAlign,i=void 0===o?"end":o,a=t.iconName,s=t.operationalData,c=(0,e.__rest)(t,["toggleProps","disabled","columnAlign","iconName","operationalData"]);return Bd().createElement(FL,{iconName:a,disabled:r},Bd().createElement(wT,{horizontal:!0,grow:!0,horizontalAlign:"end"===i?"space-between":"start",childrenGap:16,verticalAlign:"center"},Bd().createElement(wT,null,Bd().createElement(PM,{operationalData:s},DM(c,r))),Bd().createElement(wT,{padding:MM},Bd().createElement(PT,null,Bd().createElement(CM,(0,e.__assign)({},n,{labelPosition:"inline",disabled:r}))))))},YB=function(t){var n=t.hyperlinks,r=t.disabled,o=t.operationalData;return Bd().createElement(wT,{horizontal:!0,childrenGap:"16",wrap:!0},Bd().createElement(PM,{operationalData:o},n.map((function(t,n){return Bd().createElement(TA,(0,e.__assign)({},t,{disabled:null!==r&&void 0!==r?r:t.disabled,key:n}))}))))},QB=function(){return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:1},Bd().createElement(Bd().Fragment,null)),Bd().createElement(_T,{slots:8},Bd().createElement(aM,{height:12})),Bd().createElement(_T,{slots:2},Bd().createElement(aM,{height:12})),Bd().createElement(_T,{slots:1},Bd().createElement(Bd().Fragment,null)))},XB="RevealPasswordMedium",ZB=function(e,t,n){return Bd().createElement(iT,{key:"".concat(t,"-").concat(n),style:{color:e}},t)},JB=function(e){var t=e.contentType,n=function(e,t,n){var r=[];"password"===n&&Array.from(e).forEach((function(e,n){TT(e)?r.push(ZB(t.semanticColors.errorBlockIcon,e,n)):function(e){return 1===e.length&&/[a-zA-Z]/.test(e)}(e)?r.push(ZB(t.palette.neutralPrimary,e,n)):r.push(ZB(t.semanticColors.messageLink,e,n))}));return r}(e.value,Mw(),t);return Bd().createElement(z_,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap"}},doNotRenderFalsyValues:!0},n)},$B=function(){var t=(0,e.__spreadArray)([],Array(25),!0).map((function(e,t){return Bd().createElement(WS,{key:t,iconName:"CircleFillBadge12",size:"6px",color:"neutralSecondary"})}));return Bd().createElement(z_,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap",overflow:"hidden",height:"6px"}},doNotRenderFalsyValues:!0},t)},eH=function(e){var t=e.contentType,n=e.shown,r=e.value;return n&&r?Bd().createElement(JB,{value:r,contentType:t}):Bd().createElement($B,null)},tH=function(e){var t=e.contentType,n=e.onHideButtonClick,r=e.onShowButtonClick,o=e.operationalData,i=e.showIconButton,a=e.hideIconButton,s=e.value;V_("SensitiveContent");var c=(0,Fd.useState)(!0),l=c[0],u=c[1],d=(0,Fd.useState)({iconName:XB,tooltip:i.tooltip,"aria-label":i["aria-label"],"data-bi-id":i["data-bi-id"],disabled:i.disabled}),p=d[0],h=d[1],f=function(){l?(u(!1),m(!0),r&&r()):(u(!0),m(!1),n&&n())},m=function(e){h({iconName:e?"Hide":XB,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})},g={display:"flex",justifyContent:"space-between",maxWidth:"calc(".concat(120,"px + ").concat(48,"px)")},v=Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:g},doNotRenderFalsyValues:!0},Bd().createElement(eH,{shown:!1,value:s,contentType:t}),Bd().createElement(z_,{styles:{root:{height:"32px",padding:"0px 16px 0px 8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(fM,{"aria-label":null===o||void 0===o?void 0:o.spinnerAriaLabel,spinnerSize:XS.small}))),y=Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:g},doNotRenderFalsyValues:!0},Bd().createElement(eH,{shown:!l,value:s,contentType:t}),Bd().createElement(z_,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(PT,null,Bd().createElement(fR,{iconName:p.iconName,iconColor:"neutralSecondary",disabled:p.disabled,onClick:f,"aria-label":p["aria-label"],"data-bi-id":p["data-bi-id"],tooltipHostProps:{tooltipText:p.tooltip}})))),b=Bd().createElement(z_,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:g},doNotRenderFalsyValues:!0},Bd().createElement(eH,{shown:!1,value:void 0,contentType:t}),Bd().createElement(z_,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(PT,null,Bd().createElement(fR,{iconName:XB,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?Bd().createElement(hx,{operationData:o.operationData,inertView:y,firstLoadView:Bd().createElement(QB,null),failedView:b,updatingView:v,updateFailedView:y,finishedView:y}):y},nH=function(t){var n=t.sensitiveContentProps;return Bd().createElement(tH,(0,e.__assign)({},n))},rH=function(e){var t=e.shimmerLineProps,n=e.horizontal,r=n?"":"0 0 4px 0";return Bd().createElement(wT,{childrenGap:"0 10px",verticalAlign:"center",horizontal:n},t.map((function(e,n){return Bd().createElement(wT,{margin:n===t.length-1?"":r,key:n},Bd().createElement(aM,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))})))},oH=function(e){var t=e.mediaShimmerSize,n=e.shimmerLineProps;return Bd().createElement(wT,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},Bd().createElement(aM,{height:t,width:t}),Bd().createElement(wT,{horizontal:!1},n.map((function(e,t){return Bd().createElement(wT,{margin:t===n.length-1?"":"0 0 4px 0",key:t},Bd().createElement(aM,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},iH=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,c=t.operationalData,l=t.truncatedTextProps,u=t.ctaButtonProps,d=r.map((function(t,n){return l?Bd().createElement(SA,(0,e.__assign)({lines:l.lines,stopPropagation:!1},t,{disabled:i,key:n})):Bd().createElement(DT,(0,e.__assign)({},t,{disabled:i,key:n}))}));return Bd().createElement(wT,{horizontalAlign:"start",padding:"0px"!==s?"0px 0px 0px ".concat(s," "):void 0},Bd().createElement(PM,{operationalData:c},u?Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},d,u&&Bd().createElement(aR,(0,e.__assign)({},u,{parentComponentName:"TextColumn"}))):d))},aH=function(t){var n=t.titleHyperlinkProps,r=t.subtitles,o=void 0===r?[]:r,i=t.disabled,a=t.truncatedSubtitleTextProps;return Bd().createElement(wT,null,Bd().createElement(TA,(0,e.__assign)({},n)),o.map((function(t,n){return a?Bd().createElement(SA,(0,e.__assign)({lines:a.lines,stopPropagation:!1},t,{disabled:i,key:n})):Bd().createElement(DT,(0,e.__assign)({},t,{disabled:i,key:n}))})))},sH=function(t){var n=t.children,r=t.indicatorColor,o=t.image,i=t.disabled,a=void 0!==i&&i,s=t.padding,c=t.height,l=(0,e.__rest)(t,["children","indicatorColor","image","disabled","padding","height"]),u=o?Bd().createElement(YR,(0,e.__assign)({},l,{padding:s||"0px",height:c||"auto",image:o}),Bd().createElement(wT,{padding:"0px 0px 0px 12px"},a?Bd().Children.map(n,(function(e,t){return Bd().isValidElement(e)?Bd().cloneElement(e,{disabled:a,key:e.key||t}):e})):n)):Bd().createElement(wT,null,n);return r?Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:16},Bd().createElement(xT,null,Bd().createElement("div",{role:"presentation",style:{backgroundColor:r,borderRadius:2,width:12,height:12}})),u):u},cH=function(t){var n=t.listItemMediaProps,r=t.title,o=t.titleTextVariant,i=t.isTitleSemiBold,a=void 0!==i&&i,s=t.subtitles,c=void 0===s?[]:s,l=t.disabled,u=t.truncatedTitleTextProps,d=t.truncatedSubtitleTextProps,p=t.ctaButtonProps,h=u?Bd().createElement(SA,{lines:u.lines,stopPropagation:u.stopPropagation,children:r,variant:o,weightOverride:a?"semi-bold":void 0,disabled:l}):Bd().createElement(DT,{variant:o,weightOverride:a?"semi-bold":void 0,children:r,disabled:l}),f=c.map((function(t,n){return d?Bd().createElement(SA,(0,e.__assign)({lines:d.lines,stopPropagation:d.stopPropagation},t,{disabled:l,key:n})):Bd().createElement(DT,(0,e.__assign)({},t,{disabled:l,key:n}))}));return Bd().createElement(sH,(0,e.__assign)({},n),p?Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},h,f,p&&Bd().createElement(aR,(0,e.__assign)({},p,{parentComponentName:"MediaTitleColumn"}))):Bd().createElement(Bd().Fragment,null,h,f))},lH=function(t){var n=t.personaProps,r=t.title,o=t.subtitles,i=void 0===o?[]:o,a=t.disabled,s=t.truncatedTitleTextProps,c=t.truncatedSubtitleTextProps;return Bd().createElement(wT,{verticalAlign:"center",horizontal:!0,padding:"4px 0 4px 0",childrenGap:10},Bd().createElement(wT,{height:n.size,width:n.size}," ",Bd().createElement(PL,(0,e.__assign)({},n,{text:r,hideText:!0}))," "),Bd().createElement(wT,null,s?Bd().createElement(SA,{lines:s.lines,stopPropagation:s.stopPropagation,children:r,disabled:a}):Bd().createElement(DT,{children:r,disabled:a}),i.map((function(t,n){return c?Bd().createElement(SA,(0,e.__assign)({lines:c.lines,stopPropagation:c.stopPropagation},t,{disabled:a,key:n})):Bd().createElement(DT,(0,e.__assign)({},t,{disabled:a,key:n}))}))))},uH=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,c=t.truncatedTitleTextProps,l=t.truncatedSubtitleTextProps;return Bd().createElement(wT,null,c?Bd().createElement(SA,{lines:c.lines,stopPropagation:c.stopPropagation,children:n,weightOverride:o?"semi-bold":void 0,disabled:s}):Bd().createElement(DT,{children:n,weightOverride:o?"semi-bold":void 0,disabled:s}),a.map((function(t,n){return l?Bd().createElement(SA,(0,e.__assign)({lines:l.lines,stopPropagation:l.stopPropagation},t,{disabled:s,key:n})):Bd().createElement(DT,(0,e.__assign)({},t,{disabled:s,key:n}))})))},dH=function(e){var t=e.personaGraphic,n=e.children;return Bd().createElement(wT,{horizontal:!0,padding:"12px 0"},t,Bd().createElement(wT,{horizontal:!1},n))},pH=[vR,WS,DT,TA,rR],hH=(0,e.__spreadArray)([dH,sH,PL,DT],pH,!0),fH=[aR,hR,vR,fR,IA,TA,CM],mH=[RM,NM,BL,HL,function(e){var t=e.shimmerSize;return Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(wT,{width:t,margin:"0 10px 0 0"},Bd().createElement(jN,{height:t})))},WO,lF,iF,qB,function(t){var n=t.label,r=t.links,o=t.disabled;return Bd().createElement(wT,{verticalAlign:"center",wrap:!0,horizontal:!0,padding:"1px 0 1px 0"},n?Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",padding:"0 16px 0 0"},Bd().createElement(DT,{variant:"bodySecondaryText",disabled:o},n)):null,Bd().createElement(wT,{verticalAlign:"center",horizontal:!0,wrap:!0},r.map((function(t,n){return Bd().createElement(xT,{padding:"0 16px 0 0",key:n},"href"in t?Bd().createElement(TA,(0,e.__assign)({},t,{disabled:null!==o&&void 0!==o?o:t.disabled})):Bd().createElement(IA,(0,e.__assign)({},t,{disabled:null!==o&&void 0!==o?o:t.disabled})))}))))},YB,aH,function(t){var n=t.icons,r=t.disabled,o=t.operationalData;return Bd().createElement(wT,{horizontal:!0,childrenGap:"16",wrap:!0},Bd().createElement(PM,{operationalData:o},n.map((function(t,n){return Bd().createElement(WS,(0,e.__assign)({},t,{disabled:null!==r&&void 0!==r?r:t.disabled,key:n}))}))))},rH,oH,cH,nH,function(e){var t=e.personaShimmerSize,n=e.shimmerLineProps;return Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(wT,{width:t,margin:"0 10px 0 0"},Bd().createElement(jN,{height:t})),Bd().createElement(wT,{horizontal:!1},n.map((function(e,t){return Bd().createElement(wT,{margin:t===n.length-1?"":"0 0 4px 0"},Bd().createElement(aM,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},lH,iH,GB,uH,KB],gH=[RM,NM,BL,HL,WO,YB,aH,nH,KB],vH="ListItem",yH=function(e,t){return gx(e,t,vH)},bH=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}},_H=function(e,t,n){Ex("".concat(e,"ListItemInternal"),[bH(t,n)])};var CH,EH,wH,xH,kH,SH,TH=function(t){var n,r=t.find((function(e){return e.type===sH||e.type===PL})),o=t.filter((function(e){return e!==r}));if(r)if(r.type===PL){var i=IH((0,e.__spreadArray)([Bd().createElement(DT,null,r.props.text)],o,!0));n=Bd().createElement(dH,{personaGraphic:Bd().cloneElement(r,(0,e.__assign)((0,e.__assign)({},r.props),{text:void 0}))},i)}else{i=IH((0,e.__spreadArray)([r.props.children],o,!0));n=Bd().cloneElement(r,void 0,i)}return n?[n]:t},IH=function(e){return e.map((function(e,t){return e&&null===e.key?Bd().cloneElement(e,{key:t}):e}))},AH={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]},PH=function(e,t,n){return function(){return e!==t?"ListItem needs to have ".concat(t," columns for variant ").concat(n,"."):void 0}},DH=function(t){var n=(0,e.__rest)(t,[]);return Bd().createElement(RH,(0,e.__assign)({columnWidths:AH[n.variant]},n))},RH=function(t){var n=t.columns,r=void 0===n?[]:n,o=t.columnWidths,i=t.disabled,a=void 0!==i&&i,s=(t.menuDisabled,t.verticalAlign),c=void 0===s?"center":s,l=t.variant,u=t.cellRole,d=t.customListItemPadding,p=(0,e.__rest)(t,["columns","columnWidths","disabled","menuDisabled","verticalAlign","variant","cellRole","customListItemPadding"]);Ek("ListItemInternal",p),(0,Fd.useEffect)((function(){Ex("ListItem",[PH(r.length,o.length,l)])}),[r,o,l]),(0,Fd.useEffect)((function(){r.forEach((function(e){return yH(e,mH)}))}),[r]);var h=Bd().createElement(CT,{totalSlots:12,verticalAlign:c},r.map((function(e,t){return Bd().createElement(_T,{slots:o[t],key:e.key||t},u?Bd().createElement(z_,{role:u,doNotRenderFalsyValues:!0},Bd().cloneElement(e,{disabled:a||e.props.disabled,key:e.key||t})):Bd().cloneElement(e,{disabled:a||e.props.disabled,key:e.key||t}))})));return Bd().createElement(YO,(0,e.__assign)({},p,{showDivider:p.showDivider,padding:null!==d&&void 0!==d?d:AM,disabled:a}),h)},MH=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,c=(0,e.__rest)(t,["leftColumn","rightColumn","disabled","menuDisabled","cellRole","customListItemPadding"]);Ek("MobileListItem",c),(0,Fd.useEffect)((function(){yH(n,mH)}),[n]),(0,Fd.useEffect)((function(){yH(r,mH)}),[r]);var l=function(e){return a?Bd().createElement("div",{role:a},Bd().cloneElement(e,{disabled:i})):Bd().cloneElement(e,{disabled:i})},u=Bd().createElement(wT,{verticalAlign:"center",horizontalAlign:"space-between",horizontal:!0,childrenGap:16},Bd().createElement(wT,{verticalAlign:"center",grow:!0},l(n)),Bd().createElement(wT,{verticalAlign:"center",grow:!0},l(r)));return Bd().createElement(YO,(0,e.__assign)({padding:null!==s&&void 0!==s?s:AM},c),u)},NH=function(e,t){return{root:{width:"100%",paddingLeft:["12px","7px","15px"][e],cursor:"pointer",marginLeft:"-14px",selectors:{":hover":{backgroundColor:t.palette.neutralLighterAlt},":active":{backgroundColor:t.palette.neutralLight}}}}},LH=function(e){return{root:{width:"100%",height:"100%",paddingLeft:"9px",cursor:"pointer",backgroundColor:e.palette.neutralHigh,selectors:{":hover":{backgroundColor:e.palette.neutralLighterAlt},":active":{backgroundColor:e.palette.neutralLight}}}}},OH=function(e){var t=e.name,n=e.variant,r=e.isSorted,o=e.sortType;return Bd().createElement(wT,{horizontal:!0,height:"42px",verticalAlign:"center",childrenGap:"8px"},Bd().createElement(xT,null,Bd().createElement(DT,{variant:n},t)),r?Bd().createElement(xT,null,Bd().createElement(WS,{iconName:"asc"===o?"SortUp":"SortDown",size:"12px"})):null)},FH="0 16px",BH={m:0,l:2,xl:3,xxl:2,xxxl:2},HH={height:57},zH=function(e){var t=e.width,n=void 0===t?"40px":t;return Bd().createElement(z_,{style:HH,verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(aM,{width:n,height:12}))},VH=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=Bd().createElement(hR,(0,e.__assign)({},i));break;case"actionButton":r.kind;var a=(0,e.__rest)(r,["kind"]);n=Bd().createElement(aR,(0,e.__assign)({},a));break;case"hyperlink":r.kind;var s=(0,e.__rest)(r,["kind"]);n=Bd().createElement(TA,(0,e.__assign)({},s));break;case"noHrefLink":r.kind;var c=(0,e.__rest)(r,["kind"]);n=Bd().createElement(IA,(0,e.__assign)({},c));break;case"toggle":r.kind;var l=(0,e.__rest)(r,["kind"]);n=Bd().createElement(CM,(0,e.__assign)({},l));break;case"toggleShimmer":r.kind;var u=(0,e.__rest)(r,["kind"]);n=Bd().createElement(zH,(0,e.__assign)({},u))}return"actionButton"===r.kind&&r.buttonTheme?Bd().createElement(PT,(0,e.__assign)({},o),Bd().createElement(Dw,{variant:r.buttonTheme,noRootElement:!0},n)):Bd().createElement(PT,(0,e.__assign)({},o),n)},UH=function(){var e=sS(),t=cS(e);return Bd().createElement(wT,null,Bd().createElement(wT,{padding:t?"20px 0px":"0px 0px 20px"},Bd().createElement(aM,{width:"30%",height:25})),Bd().createElement(wT,{childrenGap:10},Bd().createElement(aM,{width:"80%",height:15}),Bd().createElement(aM,{width:"70%",height:15})))},WH=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 Bd().createElement(aT,(0,e.__assign)({},s,{colorOverride:i,weightOverride:a}))},jH=function(t){var n,r,o=t.featureHeading,i=t.bodyText,a=t.bodyTextVariant,s=void 0===a?"bodyPrimaryText":a,c=t.ctaProps,l=t.operationData;if(o&&(n=Bd().createElement(WH,(0,e.__assign)({},o))),"string"===typeof i)r=Bd().createElement(DT,{variant:s},i);else if(Array.isArray(i)){var u=i.map((function(t,n){return"string"===typeof t?Bd().createElement(DT,{key:n,variant:s},t):Bd().createElement(AA,(0,e.__assign)({key:n},t))}));r=Bd().createElement(wT,{childrenGap:2},u)}else i&&(r=Bd().createElement(AA,(0,e.__assign)({},i)));var d="0 0 12px",p=sS(),h=cS(p),f=Bd().createElement(wT,{grow:!0},n?Bd().createElement(xT,{margin:d},n):null,Bd().createElement(xT,{margin:d},r),Bd().createElement(wT,{horizontal:!h,childrenGap:12,verticalAlign:"baseline"},c?c.map((function(t,n){return Bd().createElement(VH,(0,e.__assign)({key:n},t))})):null));return l?Bd().createElement(hx,{operationData:l,firstLoadView:Bd().createElement(UH,null),finishedView:f,failedView:void 0}):f},qH=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[By]={":focus-within":{outline:"2px auto highlight"}},t)}:{root:(n={padding:"0px 5px 5px",boxSizing:"border-box",flex:"1 1 50%"},n[By]={":focus-within":{outline:"2px auto highlight"}},n)}},GH=function(t){var n,r=t.featureHeading,o=t.mediaPropsList,i=t.operationData,a=sS(),s=cS(a);r&&(n=Bd().createElement(WH,(0,e.__assign)({},r)));var c=null===o||void 0===o?void 0:o.map((function(e){return Bd().createElement(B_,{styles:qH(s)},Bd().createElement(YR,{image:e.image,size:e.size,linkProps:e.linkProps},e.children))})),l=Bd().createElement(z_,{doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:{root:{padding:"0px 0px 12px 0px"}},doNotRenderFalsyValues:!0},n),Bd().createElement(z_,{horizontal:!0,wrap:!0,doNotRenderFalsyValues:!0},c));return i?Bd().createElement(hx,{operationData:i,firstLoadView:Bd().createElement(UH,null),finishedView:l,failedView:void 0}):l},KH=__webpack_require__(54791),YH=__webpack_require__.n(KH),QH=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 XH(){return XH=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},XH.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"}(CH||(CH={})),function(e){e.px="px",e["%"]="%",e.vh="vh",e.vw="vw"}(EH||(EH={})),function(e){e.deg="deg",e.turn="turn",e.rad="rad"}(wH||(wH={})),function(e){e[""]=""}(xH||(xH={})),function(e){e.vertical="vertical",e.horizontal="horizontal"}(kH||(kH={})),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"}(SH||(SH={}));var ZH=0;var JH=function(){function e(e){var t=e.el.getBoundingClientRect();if(e.view.scrollContainer){var n=e.view.scrollContainer.getBoundingClientRect();t=XH({},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}(),$H=[xH[""],EH.px,EH["%"],EH.vh,EH.vw,wH.deg,wH.turn,wH.rad];function ez(e,t){void 0===t&&(t=EH["%"]);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,!$H.includes(n.unit))throw new Error("Invalid unit provided.");return n}var tz={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 nz(e){if(Array.isArray(e))return YH()(e[0],e[1],e[2],e[3]);if("string"===typeof e&&"undefined"!==typeof tz[e]){var t=tz[e];return YH()(t[0],t[1],t[2],t[3])}}var rz=Object.values(CH),oz={speed:"px",translateX:"%",translateY:"%",rotate:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",scale:"",scaleX:"",scaleY:"",scaleZ:"",opacity:""};function iz(e,t){var n={};return rz.forEach((function(r){var o=oz[r];if("number"===typeof(null==e?void 0:e[r])){var i=null==e?void 0:e[r],a=-10*(i||0)+"px",s=ez(10*(i||0)+"px"),c=ez(a),l={start:s.value,end:c.value,unit:s.unit};t===kH.vertical&&(n.translateY=l),t===kH.horizontal&&(n.translateX=l)}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=ez(null==u?void 0:u[0],o),p=ez(null==u?void 0:u[1],o),h=nz(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 az(e,t,n,r){var o=(n-e)/t;return r&&(o=r(o)),o}function sz(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 cz=Object.values(CH).filter((function(e){return"opacity"!==e}));function lz(e,t,n){if(n){var r=function(e,t){var n=cz.reduce((function(n,r){var o=e[r]&&sz(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&&sz(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 uz(e){var t=e.el;t&&(t.style.transform="",t.style.opacity="")}function dz(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 pz(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 c=n/100,l=r/100;n=window.innerHeight*c,r=window.innerHeight*l}return{start:n,end:r}}var hz={start:0,end:0,unit:""};var fz=function(e,t,n){return Math.min(Math.max(e,t),n)},mz=function(){function e(e){this.el=e.el,this.props=e.props,this.scrollAxis=e.scrollAxis,this.id=++ZH,this.effects=iz(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=XH({},this.props,e),this.effects=iz(e,this.scrollAxis),this._setElementEasing(e.easing),this},t.setCachedAttributes=function(e,t){uz(this),this.rect=new JH({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===kH.horizontal||r.translateY&&o===kH.vertical));return"number"===typeof this.props.startScroll&&"number"===typeof this.props.endScroll?(this.limits=new QH({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||hz,s=n.translateY||hz,c=pz(a,e.width),l=c.start,u=c.end,d=pz(s,e.height),p=d.start,h=d.end,f=e.top-t.height,m=e.left-t.width,g=e.bottom,v=e.right,y=1,b=1;o===kH.vertical&&(b=y=dz(p,h,t.height+e.height));var _=1,C=1;if(o===kH.horizontal&&(C=_=dz(l,u,t.width+e.width)),p<0&&(f+=p*y),h>0&&(g+=h*b),l<0&&(m+=l*_),u>0&&(v+=u*C),m+=r.x,v+=r.x,f+=r.y,g+=r.y,i){var E=r.y+e.top<t.height,w=r.x+e.left<t.width,x=r.y+e.bottom>t.scrollHeight-t.height,k=r.x+e.right>t.scrollWidth-t.height;E&&x&&(y=1,b=1,f=0,g=t.scrollHeight-t.height),w&&k&&(_=1,C=1,m=0,v=t.scrollWidth-t.width),!E&&x&&(f=e.top-t.height+r.y,y=dz(p,h,(g=t.scrollHeight-t.height)-f),b=1,p<0&&(f+=p*y)),!w&&k&&(m=e.left-t.width+r.x,_=dz(l,u,(v=t.scrollWidth-t.width)-m),C=1,l<0&&(m+=l*_)),E&&!x&&(f=0,y=1,b=dz(p,h,(g=e.bottom+r.y)-f),h>0&&(g+=h*b)),w&&!k&&(m=0,_=1,C=dz(l,u,(v=e.right+r.x)-m),u>0&&(v+=u*C))}return new QH({startX:m,startY:f,endX:v,endY:g,startMultiplierX:_,endMultiplierX:C,startMultiplierY:y,endMultiplierY:b})}(this.rect,e,this.effects,t,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=function(e,t){var n=XH({},e);return n.translateX&&(n.translateX=XH({},e.translateX,{start:n.translateX.start*t.startMultiplierX,end:n.translateX.end*t.endMultiplierX})),n.translateY&&(n.translateY=XH({},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 QH({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=fz(Math.round(this.progress),0,1);this._updateElementProgress(e)},t._setElementStyles=function(){this.props.disabled||lz(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=nz(e)},t.updatePosition=function(e){if(!this.limits)return this;var t=this.scrollAxis===kH.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 c=az(r,i,a,this.easing);this._updateElementProgress(c),this._setElementStyles()}else n&&(this.progress=fz(Math.round(az(r,i,a,this.easing)),0,1),this._setElementStyles());return this},e}(),gz=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}(),vz=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 yz=function(){function e(e){var t=e.scrollAxis,n=void 0===t?kH.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 vz(i,a),this.view=new gz({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(bke){}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(bke){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 mz(XH({},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){uz(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 gz({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 uz(e)})),this.elements=void 0},e}();function bz(){return bz=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},bz.apply(this,arguments)}function _z(e,t){return _z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_z(e,t)}function Cz(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 Ez=["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 wz(e){var t,n=e.disabled,r=e.easing,o=e.endScroll,i=e.onChange,a=e.onEnter,s=e.onExit,c=e.onProgressChange,l=e.opacity,u=e.rootMargin,d=e.rotate,p=e.rotateX,h=e.rotateY,f=e.rotateZ,m=e.scale,g=e.scaleX,v=e.scaleY,y=e.scaleZ,b=e.shouldAlwaysCompleteAnimation,_=e.shouldDisableScalingTranslations,C=e.speed,E=e.startScroll,w=e.targetElement,x=e.translateX,k=e.translateY,S=Cz(e,Ez),T=(t={disabled:n,easing:r,endScroll:o,onChange:i,onEnter:a,onExit:s,onProgressChange:c,opacity:l,rootMargin:u,rotate:d,rotateX:p,rotateY:h,rotateZ:f,scale:m,scaleX:g,scaleY:v,scaleZ:y,shouldAlwaysCompleteAnimation:b,shouldDisableScalingTranslations:_,speed:C,startScroll:E,targetElement:w,translateX:x,translateY:k},Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:{}})),t);return{parallaxProps:T,rest:S}}var xz=Bd().createContext(null);function kz(e){var t=function(){var e=(0,Fd.useContext)(xz);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,Fd.useRef)(null),r=wz(e).parallaxProps;!function(e){(0,Fd.useEffect)((function(){if("undefined"!==typeof window&&!e&&!(e instanceof yz))throw new Error("Must wrap your application's <Parallax /> components in a <ParallaxProvider />.")}),[e])}(t);var o=(0,Fd.useState)(),i=o[0],a=o[1];return(0,Fd.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,Fd.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 Sz={height:0};var Tz=["children","disabled","style","expanded","image","testId"],Iz={position:"absolute",top:0,left:0,right:0,bottom:0},Az=function(e){var t,n=wz(e),r=n.parallaxProps,o=n.rest,i=o.style,a=o.expanded,s=void 0===a||a,c=o.testId,l=Cz(o,Tz),u=(t=e).image?{backgroundImage:"url("+t.image+")",backgroundPosition:"center",backgroundSize:"cover"}:{},d=s?function(e){if(Array.isArray(e.translateY)){var t=ez(e.translateY[0]),n=ez(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())||Sz;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=kz(bz({targetElement:e.targetElement,shouldDisableScalingTranslations:!0},r));return Bd().createElement("div",Object.assign({"data-testid":c,ref:p.ref,style:bz({},u,Iz,d,i)},l),o.children)},Pz=["disabled","style","layers"],Dz={position:"relative",overflow:"hidden",width:"100%"},Rz=function(e){var t=(0,Fd.useState)(null),n=t[0],r=t[1],o=(0,Fd.useRef)(null);(0,Fd.useEffect)((function(){r(o.current)}),[]);var i=e.style,a=e.layers,s=void 0===a?[]:a,c=Cz(e,Pz);return Bd().createElement("div",Object.assign({ref:o,style:bz({},Dz,i)},c),n&&s&&s.length>0?s.map((function(e,t){return Bd().createElement(Az,Object.assign({},e,{targetElement:n,key:"layer-"+t,testId:"layer-"+t}))})):null,n?Bd().Children.map(e.children,(function(e){var t=e;return t.type===Az?Bd().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:yz.init(r)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,_z(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 Bd().createElement(xz.Provider,{value:this.controller},e)},r}(Fd.Component)).defaultProps={scrollAxis:kH.vertical};var Mz=function(t){var n=t.aspectRatio,r=t.height,o=(0,e.__rest)(t,["aspectRatio","height"]);return Bd().createElement(Rz,(0,e.__assign)({style:{aspectRatio:n,height:r}},o))},Nz={extraSmall:48,small:168,medium:224,large:300,extraLarge:400},Lz=function(e){return"card"===e||"alertCard"===e},Oz=function(t,n,r,o,i){var a,s={backgroundColor:t.palette.neutralHigh,borderRadius:i,boxShadow:o?gT.rest:void 0,minHeight:Nz[r],overflow:"hidden",selectors:(a={},a[By]={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:Nz[r]}}},Fz=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)},Bz=function(e,t,n,r,o){if(!n)return r?t?Lz(e)?"16px":"16px 0":Fz(!!o,r):Lz(e)?t?"16px 32px":o?"16px 0 16px 32px":"16px 32px 16px 0":"16px 0"},Hz=function(e,t,n,r,o){return n||o?t?Lz(e)?"0 16px 16px":"0 0 16px":Fz(!r,n,o):Lz(e)?t?"0 32px 16px":r?"16px 32px 16px 0":"16px 0 16px 32px":"16px 0"},zz=function(t){var n=t.backgroundType,r=void 0===n?"card":n,o=t.layoutType,i=t.isImageBlockLeft,a=t.isImageBlockBottom,s=t.insidePaddingVariant,c=t.height,l=void 0===c?"medium":c,u=t.paddingVariant,d=t.showShadow,p=void 0===d||d,h=t.borderRadius,f=void 0===h?"8px":h,m=t.isImageFullBleed,g=void 0!==m&&m,v=t.imageSlot,y=t.contentSlot,b=t.isVerticalLayout,_=void 0===b?["s","m"]:b,C=(0,e.__rest)(t,["backgroundType","layoutType","isImageBlockLeft","isImageBlockBottom","insidePaddingVariant","height","paddingVariant","showShadow","borderRadius","isImageFullBleed","imageSlot","contentSlot","isVerticalLayout"]);Ek("FeatureLayout",C);var E,w=sS(),x=Mw(),k=_.includes(w);if(k)E=Bd().createElement(wT,{reversed:a},Bd().createElement(xT,{padding:Bz(r,k,g,u)},v),Bd().createElement(xT,{padding:Hz(r,k,u)},y));else{var S="2/3"===o?7:6,T="2/3"===o?1:0,I=12-S-T;E=Bd().createElement(CT,{totalSlots:12,verticalAlign:"center",reversed:i},Bd().createElement(_T,{slots:S},Bd().createElement(wT,{padding:Hz(r,k,u,i,s)},y)),T?Bd().createElement(_T,{slots:T},Bd().createElement(Bd().Fragment,null)):null,Bd().createElement(_T,{slots:I},Bd().createElement(wT,{padding:Bz(r,k,g,u,i)},v)))}return Bd().createElement(z_,(0,e.__assign)({styles:Oz(x,r,l,p,f)},C,{doNotRenderFalsyValues:!0}),E)},Vz=function(e){var t=e.height,n=void 0===t?"medium":t;return Bd().createElement(z_,{doNotRenderFalsyValues:!0},Bd().createElement(aM,{height:Uz(n)}))},Uz=function(e){return Nz[e]},Wz=function(t){var n,r=t.imageProps,o=t.height,i=void 0===o?"medium":o,a=t.operationData,s=t.imageFit,c=t.imageGradientType;return n="parallax"===r.imageType?Bd().createElement(wT,{borderRadius:r.borderRadius,overflow:"hidden",width:"100%",height:"100%"},Bd().createElement(Mz,{height:Uz(i),layers:r.imageLayers.map((function(t){return(0,e.__assign)((0,e.__assign)({},t),{children:Bd().createElement(jR,{src:t.imageSrc,imageType:"ariaHiddenImage",imageFit:"cover",width:"100%",height:"100%"})})}))})):Bd().createElement(jR,(0,e.__assign)({},r,{height:Uz(i),imageFit:s,imageGradientType:c})),a?Bd().createElement(hx,{operationData:a,firstLoadView:Bd().createElement(Vz,{height:i}),finishedView:n}):n},jz=function(t){return Bd().createElement(zz,(0,e.__assign)({},t,{imageSlot:Bd().createElement(Vz,{height:t.height}),contentSlot:Bd().createElement(UH,null)}))},qz=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,c=t.paddingVariant,l=t.showShadow,u=t.borderRadius,d=t.isImageBlockLeft,p=t.isImageBlockBottom,h=t.isImageFullBleed,f=t.isImageGradient,m=t.isVerticalLayout,g=void 0===m?["s","m"]:m,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"]);V_("Feature",b.id),Ek("Feature",b),(0,Fd.useEffect)((function(){var e;"mediaList"===b.kind&&Ex("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,E=sS(),w=g.includes(E);f&&(_=w?"toBottom":"toLeft"),C="mediaList"===b.kind?Bd().createElement(GH,{featureHeading:n,mediaPropsList:b.mediaPropsList,operationData:b.operationData}):"noBodyContent"===b.kind?Bd().createElement(jH,{featureHeading:n,ctaProps:b.ctaProps,operationData:b.operationData}):Bd().createElement(jH,{featureHeading:n,bodyTextVariant:b.bodyTextVariant,bodyText:b.bodyText,ctaProps:b.ctaProps,operationData:b.operationData});var x=Bd().createElement(jz,{backgroundType:"card",height:"medium",layoutType:"2/3"}),k=Bd().createElement(zz,{backgroundType:i,layoutType:s,isImageBlockLeft:d,isImageBlockBottom:p,isImageFullBleed:h,insidePaddingVariant:o,height:y,paddingVariant:c,showShadow:l,borderRadius:u,isVerticalLayout:g,imageSlot:Bd().createElement(Wz,{imageProps:r,height:y,imageFit:h?"cover":"center-contain",imageGradientType:_,operationData:b.operationData}),contentSlot:C,id:b.id});return b.operationData?Bd().createElement(hx,{operationData:b.operationData,inertView:x,firstLoadView:x,updatingView:x,finishedView:k,failedView:void 0}):k},Gz=120,Kz=12,Yz="48px",Qz="0px 0px 0px 42px",Xz={display:"inline-block",marginRight:"8px"},Zz=function(e){var t=e.charactersInPill,n="".concat(40+6*t,"px");return Bd().createElement("span",{style:Xz},Bd().createElement(aM,{width:n,height:12}))},Jz=function(e,t,n){return"image"===(null===t||void 0===t?void 0:t.contentType)?{imageProps:{src:t.imgSrc,imageFit:tP.contain,maximizeFrame:!0},styles:{root:{margin:"0px 8px 0px 0px"}}}:{iconName:null===t||void 0===t?void 0:t.iconName,styles:{root:{color:eV(e,n),margin:"0px 8px 0px 0px"}}}},$z=function(e){return"high"===e?"errorBlockIcon":"bodyPrimaryText"},eV=function(e,t){switch(t){case"high":return e.semanticColors.errorBlockIcon;case"medium":case"low":return e.palette.neutralPrimary;default:return e.palette.neutralSecondary}},tV=function(t){var n=t.text,r=t.disabled,o=t.onClick,i=t.operationData,a=t.pillMedia,s=t.severity,c=(0,e.__rest)(t,["text","disabled","onClick","operationData","pillMedia","severity"]);V_("Pill",c.id),Ek("Pill",c);var l=Mw(),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:gT.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)}}}(l,s),d=Bd().createElement(QD,(0,e.__assign)({disabled:r,onClick:o,styles:u,iconProps:Jz(l,a,s)},c),Bd().createElement(DT,{block:!0,nowrap:!0,variant:$z(s)},n)),p=(0,Fd.useRef)(null);if(i){var h=Bd().createElement("span",{ref:p,style:{paddingBottom:"11px"}},d,Bd().createElement(rR,{targetOrTriggerButton:p,errorMessageAriaLabel:"Error message aria label",errorMessage:i.errorMessage,calloutPosition:"top-auto"}));return Bd().createElement(Zm,{operationData:i.progressViewOperationData,updatingView:Bd().createElement(Zz,{charactersInPill:n.length}),finishedView:d,failedView:h})}return d},nV=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("_")}},rV=function(e){return e.visible.length?nV(e.visible.slice(0,-1),e):void 0},oV=function(e){return e.remaining?nV(e.pills.slice(0,e.visible.length+1),e):void 0},iV=(0,Fd.forwardRef)((function(t,n){var r=t.children,o=(0,e.__rest)(t,["children"]),i=(0,Fd.useState)(0),a=i[0],s=i[1];(0,Fd.useImperativeHandle)(n,(function(){return{setRemaining:s}}));var c=Bd().Children.toArray(r);return c=c.slice(c.length-a),Bd().createElement(aV,(0,e.__assign)({children:c},o))})),aV=function(t){var n=t.children,r=t.severity,o=t.lines,i=void 0===o?2:o,a=t.showMoreBtnBiId,s=t.showMoreAriaLabelFormatter,c=(0,e.__rest)(t,["children","severity","lines","showMoreBtnBiId","showMoreAriaLabelFormatter"]);V_("PillContainer");var l=(0,Fd.useRef)(null),u=(0,Fd.useState)(!1),d=u[0],p=u[1],h=(0,Fd.useCallback)((function(){return p(!0)}),[]),f=(0,Fd.useCallback)((function(){return p(!1)}),[]),m=(0,Fd.useCallback)((function(e){var t;return null===(t=l.current)||void 0===t?void 0:t.setRemaining(e.remaining)}),[]),g=Bd().Children.toArray(n),v=Bd().createElement(Bd().Fragment,null,Bd().createElement(FR,{data:nV(g,null),onRenderData:function(e){return Bd().createElement("div",{style:{display:"flex"}},e.visible,i<=1&&e.remaining?Bd().createElement(tV,{"aria-label":s(e.remaining),"data-bi-id":a,text:"+".concat(e.remaining),onClick:c.useCustomExpand?c.onShowMore:h,severity:r}):null)},onReduceData:rV,onGrowData:oV,dataDidRender:m}),i>1?Bd().createElement(iV,(0,e.__assign)({ref:l,lines:i-1,children:g,showMoreBtnBiId:a,showMoreAriaLabelFormatter:s,severity:r},c)):null);return g.length?(c.useCustomExpand||(v=Bd().createElement(Bd().Fragment,null,Bd().createElement("div",{style:d?{visibility:"hidden",position:"absolute",width:"100%"}:void 0},v),d?Bd().createElement(Bd().Fragment,null,Bd().createElement("div",{style:{display:"flex",flexFlow:"wrap"}},n),Bd().createElement(IA,{"aria-label":c.showLessAriaLabel,"data-bi-id":c.showLessBiId,onClick:f},c.showLessText)):null)),v):null},sV=[function(){var e,t=sS();if("s"===t)return Bd().createElement(wT,{backgroundColor:"neutralHigh",height:KO,padding:FH},Bd().createElement(wT,{horizontal:!0,childrenGap:"16px",verticalAlign:"center"},Bd().createElement(xT,null,Bd().createElement(aM,{width:32,height:32})),Bd().createElement(xT,null,Bd().createElement(aM,{width:120,height:12}))));var n=null!==(e=BH[t])&&void 0!==e?e:0;return Bd().createElement(CT,{backgroundColor:"neutralHigh",height:KO,padding:FH,totalSlots:12,verticalAlign:"center"},Bd().createElement(_T,{slots:6},Bd().createElement(wT,{horizontal:!0,childrenGap:"16px",verticalAlign:"center"},Bd().createElement(xT,null,Bd().createElement(aM,{width:32,height:32})),Bd().createElement(xT,null,Bd().createElement(aM,{width:120,height:12})))),"m"!==t?Bd().createElement(_T,{slots:n},Bd().createElement(aM,{width:120,height:12})):null)},function(t){var n=t.backgroundColor,r=void 0===n?"neutralHigh":n,o=t.ctaProps,i=t.imageProps,a=t.bodyText,s=t.headerText,c=(0,e.__rest)(t,["backgroundColor","ctaProps","imageProps","bodyText","headerText"]);V_("FeatureListItem",c.id),Ek("FeatureListItem",c);var l=["s","m"].includes(sS());return Bd().createElement("div",{role:"listitem"},Bd().createElement(wT,{backgroundColor:r,padding:l?"0 6px":"0 16px"},Bd().createElement(qz,{backgroundType:"flat",featureHeading:s?{text:s}:void 0,bodyText:a,ctaProps:o,height:"small",imageProps:i,layoutType:"2/3"})))},function(t){var n=t.title,r=t.metadata,o=t.icon,i=t.menuIconButtonProps,a=t.devicesOverflowString,s=t.menuDisabled,c=t.wrapWithListCanvas,l=(0,e.__rest)(t,["title","metadata","icon","menuIconButtonProps","devicesOverflowString","menuDisabled","wrapWithListCanvas"]);V_("ListContentWithDetails",l.id),Ek("ListContentWithDetails",l),(0,Fd.useEffect)((function(){}),[]);var u={primary:r,overflow:[]},d=Bd().createElement(Bd().Fragment,null,Bd().createElement(DT,{block:!0,variant:"headerText"},n),r?Bd().createElement(FR,{data:u,onReduceData:function(t){if(0!==t.primary.length){var n=(0,e.__spreadArray)((0,e.__spreadArray)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},onRenderData:function(e){var t=e.overflow.length>0?e.primary.length>0?", +".concat(e.overflow.length," ").concat(a):"".concat(e.overflow.length," ").concat(a):"";return Bd().createElement(Bd().Fragment,null,Bd().createElement(DT,{variant:"metadataText"},e.primary.join(", ")),Bd().createElement(DT,{variant:"metadataText"},t))}}):void 0),p=Bd().createElement(wT,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},Bd().createElement(xT,{grow:!0},o?Bd().createElement(YR,{size:"sm",image:o,padding:"0 6px"},d):d),Bd().createElement(xT,{padding:"0 4px 0 0"},i?Bd().createElement(cR,(0,e.__assign)({},i,{disabled:s,backgroundColor:"neutralHigh",iconColor:"neutralPrimary",isBeakVisible:!1})):void 0));return c?Bd().createElement(YO,(0,e.__assign)({},l),p):p},function(t){var n=t.columns,r=t.totalSlots,o=t.columnSlotSize,i=t.sortedOn,a=t.sortType,s=t.menuHeader,c=t.menuButtonAriaLabel,l=t.menuButtonDataBiId;V_("ListHeaderWithColumns");var u=sS(),d=Mw(),p=o[u]||o.default;if(!p)throw Error("ListHeaderWithColumns: default or viewport slotsCount is not defined");var h,f=function(e,t){return Bd().createElement(JD,{onClick:function(t){return e.onClick(t)},"aria-label":e["aria-label"],styles:NH(t,d)},Bd().createElement(OH,{name:e.text,variant:"headerText",isSorted:i===e.text,sortType:a}))},m=function(e,t){return function(){e.onClick(),t()}},g=function(e,t){return Bd().createElement(JD,{onClick:m(e,t),styles:LH(d)},Bd().createElement(OH,{name:e.name,variant:"headerText",isSorted:i===e.name,sortType:a}))},v=n.slice(1).map((function(e){return{key:e.text,name:e.text,onClick:e.onClick,onRender:g,"aria-label":e["aria-label"],"data-bi-id":e["data-bi-id"]}})),y=s?(0,e.__spreadArray)((0,e.__spreadArray)([],[{key:h=s,name:h,itemType:"header",backgroundColor:"neutralHigh"},{itemType:"divider"}],!0),v,!0):(0,e.__spreadArray)([],v,!0),b=Bd().createElement(wT,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},Bd().createElement(xT,{grow:!0},f(n[0],0)),Bd().createElement(cR,{iconName:"MoreVertical",menuItems:y,isBeakVisible:!1,iconColor:"neutralPrimary","aria-label":c,"data-bi-id":l}));return["s","m","l"].includes(u)&&n.length>1?b:Bd().createElement(CT,{totalSlots:r},n.map((function(e,t){return Bd().createElement(_T,{key:t,slots:p[t],align:"center"},f(e,t))})))},function(){var e=sS(),t="l"===e?9:12;if("s"===e)return Bd().createElement(wT,{verticalAlign:"center",childrenGap:"8px",backgroundColor:"neutralMed",height:Yz,padding:Qz},Bd().createElement(aM,{width:Gz,height:Kz}),Bd().createElement(aM,{width:Gz,height:Kz}));if("m"===e)return Bd().createElement(CT,{backgroundColor:"neutralMed",height:Yz,padding:Qz,totalSlots:t,verticalAlign:"center"},Bd().createElement(_T,{slots:6},Bd().createElement(aM,{width:Gz,height:Kz})),Bd().createElement(_T,{slots:6},Bd().createElement(aM,{width:Gz,height:Kz})));var n="l"===e?3:6;return Bd().createElement(CT,{backgroundColor:"neutralMed",height:Yz,padding:Qz,totalSlots:t,verticalAlign:"center"},Bd().createElement(_T,{slots:n},Bd().createElement(aM,{width:Gz,height:Kz})),Bd().createElement(_T,{slots:3},Bd().createElement(aM,{width:Gz,height:Kz})),Bd().createElement(_T,{slots:3},Bd().createElement(aM,{width:Gz,height:Kz})))},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 V_("PillContainerListItem",s.id),Ek("PillContainerListItem",s),Bd().createElement(YO,(0,e.__assign)({groupSpacerNestingDepth:r,backgroundColor:o,onClickProps:i},s),Bd().createElement(wT,{padding:"0 16px"},Bd().createElement(aV,(0,e.__assign)({useCustomExpand:!0},a),n.map((function(t,n){return Bd().createElement(tV,(0,e.__assign)({},t,{key:n}))})))))}],cV=function(t){var n=t.defaultExpanded,r=t.onClickToOpen,o=t.onClickToClose,i=(0,e.__rest)(t,["defaultExpanded","onClickToOpen","onClickToClose"]);V_("Drawer",i.buttonId);var a=(0,Fd.useState)(n),s=a[0],c=a[1],l=function(){c(!s)};return Bd().createElement(TM,(0,e.__assign)({drawerOpen:s,onClickToOpen:function(e){null===r||void 0===r||r(e),l()},onClickToClose:function(e){null===o||void 0===o||o(e),l()}},i))},lV=function(e){return e.map((function(e){return e.key})).toString()},uV=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,c=void 0===s?"end":s,l=t.collapseActionText,u=void 0!==l&&l,d=t.disabled,p=void 0!==d&&d,h=t.menuDisabled,f=void 0!==h&&h,m=(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 Bd().createElement(PT,{key:t},e)}}})),_={primary:b,overflow:[],cacheKey:y},C=function(e){return Bd().createElement(PT,{key:e.key},p?Bd().cloneElement(e.action,{disabled:p}):e.action)},E=function(t){return Bd().createElement(wT,{verticalAlign:"center"},Bd().createElement(cR,(0,e.__assign)({},a,{iconName:"MoreVertical",disabled:f||p,menuItems:t,menuItemsPadding:a.menuItemsPadding||2})))};return Bd().createElement(wT,{horizontal:!0,grow:!0},n&&n.length>0?Bd().createElement(wT,{horizontal:!0,verticalAlign:"center",childrenGap:16},n.map((function(e,t){return!p&&e.key?e:Bd().cloneElement(e,{disabled:p,key:e.key||t})}))):null,v?Bd().createElement(wT,{grow:!0},Bd().createElement(FR,{data:_,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:lV(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:lV(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:Bd().cloneElement(t.action,(0,e.__assign)((0,e.__assign)({},t.action.props),{text:""}))}):t})));var r="start"===c||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"}),Bd().createElement(IR,{items:n,overflowItems:(0,e.__spreadArray)((0,e.__spreadArray)([],g,!0),t.overflow,!0),onRenderItem:C,onRenderOverflowButton:E,styles:r})}})):null,m.iconName&&0===_.overflow.length?Bd().createElement(wT,{grow:!0,horizontalAlign:"end",verticalAlign:"center",padding:"0 8px 0 0"},Bd().createElement(WS,{size:"16px",iconName:HA(m.iconName),color:"neutralPrimary"})):null)},dV=function(t){return Bd().createElement(pV,(0,e.__assign)({},t))},pV=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,c=void 0!==s&&s,l=t.menuDisabled,u=void 0!==l&&l,d=(0,e.__rest)(t,["firstColumn","actions","actionsAlign","disabled","menuDisabled"]);(0,Fd.useEffect)((function(){}),[]),Ek("OneColumnInternalListItem",d),(0,Fd.useEffect)((function(){n.forEach((function(e){return yH(e,hH)}))}),[n]),(0,Fd.useEffect)((function(){o.forEach((function(e){return yH(e,fH)}))}),[o]);var p=sS(),h=void 0!==d.onClickProps;_H("OneColumn",h,o.length);var f,m="s"===p||"m"===p||"l"===p;return"menu"===d.decorationType&&(f=(0,e.__assign)({},d.menuProps)),Bd().createElement(YO,(0,e.__assign)({},d),Bd().createElement(wT,{verticalAlign:"center",horizontal:!0,padding:AM,childrenGap:16},Bd().createElement(wT,{verticalAlign:"center",grow:!1},n.map((function(e,t){return Bd().cloneElement(e,{disabled:c,key:e.key||t})}))),Bd().createElement(uV,{finalColumnActions:o,finalColumnAlign:a,collapseActionText:m,existingMenuProps:f,iconName:"icon"===d.decorationType?d.iconName:void 0,disabled:c,menuDisabled:u})))},hV=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,c=t.thirdColumn,l=void 0===c?[]:c,u=t.thirdColumnWidth,d=t.finalColumnText,p=void 0===d?[]:d,h=t.finalColumnActions,f=void 0===h?[]:h,m=t.finalColumnWidth,g=t.finalColumnAlign,v=void 0===g?"end":g,y=t.disabled,b=void 0!==y&&y,_=t.menuDisabled,C=void 0!==_&&_,E=(0,e.__rest)(t,["firstColumn","firstColumnWidth","secondColumn","secondColumnWidth","thirdColumn","thirdColumnWidth","finalColumnText","finalColumnActions","finalColumnWidth","finalColumnAlign","disabled","menuDisabled"]);(0,Fd.useEffect)((function(){}),[]),Ek("FourColumnListItemInternal",E),(0,Fd.useEffect)((function(){r.forEach((function(e){return yH(e,hH)}))}),[r]),(0,Fd.useEffect)((function(){a&&a.forEach((function(e){yH(e,pH)}))}),[a]),(0,Fd.useEffect)((function(){l&&l.forEach((function(e){yH(e,pH)}))}),[l]),(0,Fd.useEffect)((function(){p&&p.forEach((function(e){return yH(e,pH)}))}),[p]),(0,Fd.useEffect)((function(){f&&f.forEach((function(e){return yH(e,fH)}))}),[f]);var w,x=sS(),k=void 0!==E.onClickProps;return _H("FourColumn",k,f.length),"s"===x||"m"===x||"l"===x?Bd().createElement(dV,(0,e.__assign)({firstColumn:TH((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)((0,e.__spreadArray)([],r,!0),a,!0),l,!0),p,!0)),actions:f,actionsAlign:"end",disabled:b,menuDisabled:C},E)):("menu"===E.decorationType&&(w=(0,e.__assign)({},E.menuProps)),Bd().createElement(YO,(0,e.__assign)({},E),Bd().createElement(CT,{totalSlots:12,verticalAlign:"center"},Bd().createElement(_T,{slots:o},Bd().createElement(wT,{padding:AM},r.map((function(e,t){return Bd().cloneElement(e,{disabled:b,key:e.key||t})})))),Bd().createElement(_T,{slots:s},Bd().createElement(wT,{horizontal:!0,childrenGap:4},a.map((function(e,t){return Bd().cloneElement(e,{disabled:b,key:e.key||t})})))),Bd().createElement(_T,{slots:u},Bd().createElement(wT,{horizontal:!0,childrenGap:4},l.map((function(e,t){return Bd().cloneElement(e,{disabled:b,key:e.key||t})})))),Bd().createElement(_T,{slots:m},Bd().createElement(uV,{finalColumnText:p,finalColumnActions:f,finalColumnAlign:v,existingMenuProps:w,collapseActionText:k,iconName:"icon"===E.decorationType?E.iconName:void 0,disabled:b,menuDisabled:C})))))},fV={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]},mV=(0,e.__spreadArray)((0,e.__spreadArray)([],sV,!0),[function(t){var n=t.image,r=t.text,o=t.firstDetail,i=t.secondDetail,a=t.detailsIconButtonProps,s=t.actionProps,c=t.disabled,l=void 0!==c&&c,u=(0,e.__rest)(t,["image","text","firstDetail","secondDetail","detailsIconButtonProps","actionProps","disabled"]);Ek("DetailsFeedListItem",u),(0,Fd.useEffect)((function(){}),[]);var d,p=sS(),h=Bd().createElement(vR,(0,e.__assign)({},a,{calloutPosition:"left-top"}));return d=["s","m"].includes(p)?[h,Bd().createElement(fR,(0,e.__assign)({key:"iconAction",disabled:l},s))]:"l"===p?[h,Bd().createElement(aR,(0,e.__assign)({key:"buttonAction",disabled:l},s))]:[Bd().createElement(DT,{key:"first",disabled:l},o),Bd().createElement(DT,{key:"second",disabled:l},i),Bd().createElement(aR,(0,e.__assign)({key:"buttonAction",disabled:l},s))],Bd().createElement(QO,(0,e.__assign)({image:n,actions:d,disabled:l},u),Bd().createElement(DT,{disabled:l},r))},ZO,cV,function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"ThreeThreeThreeThree":return Bd().createElement(hV,(0,e.__assign)({firstColumnWidth:3,secondColumnWidth:3,thirdColumnWidth:3,finalColumnWidth:3},r));case"SixTwoTwoTwo":return Bd().createElement(hV,(0,e.__assign)({firstColumnWidth:6,secondColumnWidth:2,thirdColumnWidth:2,finalColumnWidth:2},r))}},dV,function(t){var n=t.image,r=t.text,o=t.actionProps,i=(0,e.__rest)(t,["image","text","actionProps"]);Ek("SimpleFeedListItem",i),(0,Fd.useEffect)((function(){}),[]);var a,s=sS();return a=["s","m"].includes(s)?Bd().createElement(fR,(0,e.__assign)({key:"iconAction"},o)):Bd().createElement(aR,(0,e.__assign)({key:"buttonAction"},o)),Bd().createElement(QO,(0,e.__assign)({image:n,actions:[a]},i),r)},function(e){var t,n,r,o=e.backgroundColor,i=sS();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 Bd().createElement(YO,{backgroundColor:o},Bd().createElement(CT,{totalSlots:t},Bd().createElement(_T,{slots:r},Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,{padding:"0 0 0 16px"},Bd().createElement(aM,{height:32,width:32})),Bd().createElement(xT,{padding:"0 0 0 8px"},Bd().createElement(aM,{height:20,width:"s"===i||"m"===i?145:277})))),Bd().createElement(_T,{slots:n},Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,null,Bd().createElement(aM,{height:14,width:"s"===i||"m"===i?14:150}))))))},function(e){var t=e.firstColumnComponentName,n=void 0===t?"Text":t,r=e.variant;(0,Fd.useEffect)((function(){}),[]);var o=sS(),i="s"===o||"m"===o,a=i?16:32,s=Bd().createElement(aM,{height:i?15:20});switch(n){case"Icon":s=Bd().createElement(wT,{width:a,margin:"0 10px 0 0"},Bd().createElement(jN,{height:a}));break;case"Persona":s=Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(wT,{width:a,margin:"0 10px 0 0"},Bd().createElement(jN,{height:a})),Bd().createElement(aM,{height:a,width:150}));break;case"ListItemMedia":s=Bd().createElement(wT,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},Bd().createElement(aM,{height:a,width:a}),Bd().createElement(aM,{height:a,width:150}))}var c=r?fV[r][0]:12;return i?Bd().createElement(YO,null,Bd().createElement(wT,{backgroundColor:"neutralHigh",margin:"0 0 3px 0",padding:"8px 13px 4px 52px",verticalAlign:"center"},Bd().createElement(wT,{margin:"0 0 4px 0"},s),r?fV[r].slice(1).map((function(e,t){return Bd().createElement(wT,{margin:"0 0 4px 0",key:t},Bd().createElement(aM,{height:20}))})):null)):Bd().createElement(YO,null,Bd().createElement(CT,{backgroundColor:"neutralHigh",totalSlots:12,height:48,margin:"0 0 3px 0",padding:"0 13px 0 52px",verticalAlign:"center"},Bd().createElement(_T,{slots:c},s),r?fV[r].slice(1).map((function(e,t){return Bd().createElement(_T,{slots:e,key:t},Bd().createElement(aM,{height:20}))})):null))},DH,MH,YO],!1),gV="neutralHigh",vV=function(t,n,r,o,i){return void 0===o&&(o=0),void 0===i&&(i=!0),Bd().cloneElement(t,(0,e.__assign)({disabled:r,backgroundColor:t.props.backgroundColor||n,groupSpacerNestingDepth:o,showDivider:i},t.props))},yV="List",bV=function(e){return(Array.isArray(e)?e:e?[e]:[]).map((function(e){return gx(e,mV,yV)}))};function _V(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 gx(i,t,n)};return Object.defineProperty(r,"displayName",{enumerable:!0,configurable:!0,get:function(){return"".concat(e.displayName||e.name,"_").concat(yx(n))},set:function(){}}),r}(e,mV,yV)}var CV=function e(t){for(var n,r=0,o=t.length;r<o;r++){var i=t[r];if(Bd().isValidElement(i)&&i.props.children){if(n&&"non-leaf"!==n)return!1;if(n="non-leaf",!e(bV(i.props.children)))return!1}else{if(n&&"leaf"!==n)return!1;n="leaf"}}return!0},EV=function(e){return function(){return CV(e)?void 0:"Cannot mix childless and child-containing list nodes on the same level."}},wV=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[By]={border:"none"},n)},groupHeaderContainer:{height:"100%"}}},xV=function(t){return V_("GroupedList",t.id),Bd().createElement(OV,(0,e.__assign)({},t,{listType:"GroupedList"}))},kV=function(t){var n=t.children,r=t.listItemBackgroundColor,o=void 0===r?gV:r,i=t.disabled,a=t.showDivider,s=void 0===a||a,c=t.expandButtonProps,l=(0,e.__rest)(t,["children","listItemBackgroundColor","disabled","showDivider","expandButtonProps"]);(0,Fd.useEffect)((function(){}),[]),Ex("GroupedList",[EV(bV(n))]);var u=(0,Fd.useRef)(new Map).current,d=Mw(),p=[],h=SV(bV(n),u,p)||[];return Bd().createElement(DB,{groups:h,items:p,onRenderCell:function(e,t){return vV(t,o,i,e,s)},groupProps:{headerProps:{onRenderTitle:i?function(e){var t=e.group.data;return Bd().cloneElement(t,{menuDisabled:!0})}:function(e){var t=e.group.data;return vV(t,o,i,void 0,!1)},styles:wV(d,s),onToggleCollapse:function(e){u.set(e.key,!e.isCollapsed)},expandButtonProps:c},role:"group"},selectionMode:gF.none,onShouldVirtualize:function(){return!1},rootListProps:l})},SV=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,c=t.length;s<c;s++){var l=t[s];if(Bd().isValidElement(l)&&l.props.children){var u=(l.key||s).toString();i&&(u="".concat(i,"-").concat(s));var d=bV(l.props.children),p=r.length,h=d.length,f=e(d,n,r,o+1,u);a.push({count:h,key:u,name:l.props["aria-label"],ariaLabel:l.props["aria-label"],startIndex:p,level:o,children:f,isCollapsed:n.has(u)?n.get(u):!l.props.defaultExpanded,data:Bd().cloneElement(l,{defaultExpanded:void 0,children:void 0,key:u})})}else r.push(l)}return a},TV=(0,Fd.forwardRef)((function(t,n){return V_("List",t.id),Bd().createElement(OV,(0,e.__assign)({},t,{listType:"List",ref:n}))})),IV=(0,Fd.forwardRef)((function(t,n){var r=t.children,o=t.listItemBackgroundColor,i=void 0===o?gV:o,a=t.enableVirtualization,s=void 0!==a&&a,c=t.disabled,l=t.showDivider,u=void 0===l||l,d=t.isTabbable,p=void 0!==d&&d,h=t.listRole,f=void 0===h?"list":h,m=(0,e.__rest)(t,["children","listItemBackgroundColor","enableVirtualization","disabled","showDivider","isTabbable","listRole"]),g=BA(),v=p?"all":void 0;return Bd().createElement(wk,{handleTabKey:v,shouldEnterInnerZone:function(e){return e.key===(g?"ArrowLeft":"ArrowRight")},direction:"vertical",ref:n},Bd().createElement(xB,(0,e.__assign)({},m,{items:bV(r).slice(),onRenderCell:function(e){return vV(e,i,c,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:f})))})),AV=function(e,t,n){return{root:{boxShadow:n?Gm.depth8:void 0,borderRadius:t?"0 0 4px 4px":"0px",padding:"8px 16px",backgroundColor:e.palette.neutralMed}}},PV=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,c=Mw();return Bd().createElement(z_,{verticalAlign:"center",styles:AV(c,i,s),doNotRenderFalsyValues:!0},Bd().createElement(z_,{wrap:!0,horizontal:!0,style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},n?Bd().createElement(z_,{horizontal:!0,styles:{root:{margin:"0 16px 0 0"}},doNotRenderFalsyValues:!0},Bd().createElement(DT,{variant:"bodySecondaryText"},n)):null,Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:"0 16"},wrap:1!==r.length,doNotRenderFalsyValues:!0},r.map((function(t,n){return Bd().createElement(B_,{key:n},Bd().createElement(RV,(0,e.__assign)({},t)))})))))},DV=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,c=t.shadow,l=void 0===c||c,u=Mw(),d=sS(),p=n.length,h=i?8:6,f=12-h,m=Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:h},1===p?Bd().createElement(RV,(0,e.__assign)({},n[0])):Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},n.map((function(t,n){return Bd().createElement(B_,{key:n},Bd().createElement(RV,(0,e.__assign)({},t)))})))),Bd().createElement(_T,{slots:f},i?Bd().createElement(z_,{horizontalAlign:"end",doNotRenderFalsyValues:!0},Bd().createElement(RV,(0,e.__assign)({},r))):Bd().createElement(RV,(0,e.__assign)({},r)))),g=Bd().createElement(z_,{horizontal:!1,tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},Bd().createElement(B_,null,1===p?Bd().createElement(RV,(0,e.__assign)({},n[0])):Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},n.map((function(t,n){return Bd().createElement(B_,{key:n},Bd().createElement(RV,(0,e.__assign)({},t)))})))),Bd().createElement(B_,null,Bd().createElement(RV,(0,e.__assign)({},r))));return Bd().createElement(z_,{verticalAlign:"center",styles:AV(u,s,l),doNotRenderFalsyValues:!0},Bd().createElement(z_,{style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},function(){switch(d){case"xxxl":case"xxl":case"xl":case"l":return m;case"m":case"s":return g}}()))},RV=function(t){return"href"in t?Bd().createElement(TA,(0,e.__assign)({},t)):Bd().createElement(IA,(0,e.__assign)({},t))},MV=function(t){return"twocolumn"===t.type?Bd().createElement(DV,(0,e.__assign)({},t)):Bd().createElement(PV,(0,e.__assign)({},t))},NV=function(t){var n=t.minHeight,r=void 0===n?"44px":n,o=(0,e.__rest)(t,["minHeight"]),i=Mw();return Bd().createElement(z_,{verticalAlign:"center",style:{backgroundColor:i.palette.neutralHigh,minHeight:r,padding:"0 16px"},doNotRenderFalsyValues:!0},Bd().createElement(xT,null,Bd().createElement(IA,(0,e.__assign)({},o))))},LV=function(e,t,n,r){return{root:{boxShadow:e?Gm.depth4:void 0,borderRadius:n?t:void 0,overflow:n?"hidden":void 0,height:r}}},OV=(0,Fd.forwardRef)((function(t,n){var r,o,i,a,s=t.listType,c=t.label,l=t.header,u=t.footer,d=t.placeholder,p=t.children,h=t.shadow,f=t.roundedCorners,m=t.borderRadius,g=void 0===m?"8px":m,v=t.operationData,y=t.showDefaultHeaderDivider,b=void 0===y||y,_=(0,e.__rest)(t,["listType","label","header","footer","placeholder","children","shadow","roundedCorners","borderRadius","operationData","showDefaultHeaderDivider"]),C=(0,Fd.useState)(null!==(r=_.defaultExpanded)&&void 0!==r&&r),E=C[0],w=C[1],x=null===c||void 0===c?void 0:c.text,k=bV(p);if(_.isAlwaysExpanded){i=0;_.isAlwaysExpanded;var S=(0,e.__rest)(_,["isAlwaysExpanded"]);o=S}else{if((i=_.initialListLength||5)>0&&k.length>i){x="".concat(x," (").concat(k.length,")");var T=E?_.showLessButtonProps:_.showMoreButtonProps;a=(0,e.__assign)((0,e.__assign)({},T),{onClick:function(){return w(!E)}})}k=E?k:k.slice(0,i);_.isAlwaysExpanded,_.initialListLength,_.showMoreButtonProps,_.showLessButtonProps,S=(0,e.__rest)(_,["isAlwaysExpanded","initialListLength","showMoreButtonProps","showLessButtonProps"]);o=S}if(k.length>0&&"DetailsList"!==s){var I=k[k.length-1];k[k.length-1]=Bd().createElement(I.type,(0,e.__assign)((0,e.__assign)({},I.props),{showDivider:!1}))}"DetailsList"===s&&(k=k.map((function(t){return Bd().createElement(t.type,(0,e.__assign)((0,e.__assign)({},t.props),{cellRole:"gridcell",listType:"DetailsList"}))}))),Ek("ListWrapper",o);var A="DetailsList"===s?_.customHeight:void 0,P=function(t){return Bd().createElement(z_,{styles:LV(h,g,f,A),doNotRenderFalsyValues:!0},c?Bd().createElement(ST,{id:c.id},x):null,t?Bd().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1}},Bd().createElement(gS,{styles:{itemProgress:{padding:"0px"}}})):null,l?vV(Bd().createElement(YO,{showDivider:b,removeRole:!0,"data-is-focusable":!1},Bd().createElement(wT,{padding:AM},t?Bd().cloneElement(l,{menuDisabled:t,showDivider:b}):l)),_.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===c||void 0===c?void 0:c.id},o),{disabled:t,children:k}),i=(0,e.__assign)((0,e.__assign)({"aria-labelledby":null===c||void 0===c?void 0:c.id},o),{disabled:t,children:k,headerColumns:_.headerColumns,ariaLabelForListHeader:_.ariaLabelForListHeader,checkButtonAriaLabel:_.checkButtonAriaLabel,onHeaderChange:_.onHeaderChange,announcedSortMessage:_.announcedSortMessage});return Bd().createElement(Bd().Fragment,null,function(){switch(s){case"List":return Bd().createElement(IV,(0,e.__assign)({},r,{ref:n}));case"DetailsList":return Bd().createElement(GV,(0,e.__assign)({},i));default:return Bd().createElement(kV,(0,e.__assign)({showDivider:b},r))}}(),a?Bd().createElement(NV,(0,e.__assign)({},a)):null)}(t),u?Bd().createElement(MV,(0,e.__assign)({},u)):null)};return v?Bd().createElement(Zm,{operationData:v.progressViewOperationData,failedView:P(),finishedView:P(),updatingView:P(!0)}):P()})),FV=function(e,t){return function(){return e!==t.length?"DetailsList must have the same number of columns in the headers and rows":void 0}},BV=function(e){return gH.includes(e.type)},HV="8px 0 8px 2px",zV={cellLeftPadding:0,cellRightPadding:0,cellExtraRightPadding:0},VV=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[By]={":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)}},UV={root:{width:"100% !important"}},WV=function(e){return{list:{backgroundColor:e.semanticColors.buttonBackground}}},jV={root:{alignItems:"center",marginRight:"8px"}},qV=function(e){return{root:{height:e,position:"relative",overflow:"unset"}}},GV=function(t){var n,r,o,i,a=t.headerColumns,s=t.ariaLabelForListHeader,c=t.checkButtonAriaLabel,l=t.children,u=t.announcedSortMessage,d=t.onHeaderChange,p=t.customHeight,h=(0,e.__rest)(t,["headerColumns","ariaLabelForListHeader","checkButtonAriaLabel","children","announcedSortMessage","onHeaderChange","customHeight"]),f=Mw(),m=bm(),g=(0,Fd.useContext)(ym).twoUITelemetryIds.areaBiId,v=bV(l).slice();Ex("DetailsList",[(i=v,function(){return i.length<1?"DetailsList cannot have less than ".concat(1," rows"):void 0}),FV(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,_=0;!y&&_<b;){var C=a[_];switch(C.sortStatus){case"sortedAscending":case"sortedDescending":var E=C.sortFunction(v,_,"sortedDescending"===C.sortStatus),w=E[0];E[1];v=(0,e.__spreadArray)([],w,!0),y=!0}_++}_++;var x=(0,Fd.useState)(),k=x[0],S=x[1],T=(0,Fd.useState)(u),I=T[0],A=T[1],P=function(){S(void 0)};function D(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};m.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 c=s.sortFunction(t.data.detailsListItems,a,n),l=c[0],u=c[1];if(l){A("".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:Ik,gapSpace:10,onDismiss:P,styles:WV(f)}}var R,M,N=function(e,t){var n={clickId:"".concat(t.data.detailsHeaderColumn["data-bi-id"]),pageArea:g};m.reportClick(n),t.columnActionsMode!==dO.disabled&&S(D(e,t))},L=function(e,t){e&&t&&e.columnActionsMode!==dO.disabled&&S(D(t,e))},O=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)?BV(n.listItemColumn)&&"notSortable"!==n.sortStatus?Bd().createElement(Bd().Fragment,null):n.listItemColumn:null!==(t=!(null===e||void 0===e?void 0:e.column.isMultiline))&&void 0!==t&&t?Bd().createElement(SA,{type:"text",lines:1,variant:"headerText",stopPropagation:!1},null===e||void 0===e?void 0:e.column.name):Bd().createElement(DT,{children:null===e||void 0===e?void 0:e.column.name,variant:"headerText",nowrap:!1,block:!0})},F=function(e,t,n){var r;return"listItemHeader"===e.headerType&&BV(e.listItemColumn)?"notSortable"===e.sortStatus?Bd().createElement(iF,{column:t,columnIndex:n,styles:UV}):Bd().createElement(WO,null,Bd().createElement(z_,{horizontal:!0,styles:jV,doNotRenderFalsyValues:!0},e.listItemColumn,Bd().createElement(lF,{column:t,columnIndex:n,cellStyleProps:zV,styles:VV(n,!1,!0)}))):Bd().createElement(lF,{column:t,columnIndex:n,cellStyleProps:zV,styles:VV(n,null!==(r=t.isIconOnly)&&void 0!==r&&r)})},B=(M=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:O,columnActionsMode:"notSortable"===t.sortStatus?dO.disabled:r?void 0:dO.hasDropdown,isSorted:r,isSortedDescending:"sortedDescending"===t.sortStatus,onColumnClick:N,onColumnContextMenu:L,data:{detailsHeaderColumn:t,detailsListItems:M,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:O})}))),H=[I?Bd().createElement(rN,{message:I}):void 0,Bd().createElement(jB,{items:v,columns:B,onItemContextMenu:function(e,t,n){var r={target:null===n||void 0===n?void 0:n.target,items:[{key:"text",name:"selected"}],onDismiss:function(){S(void 0)}};return t&&t>-1&&S(r),!1},ariaLabelForListHeader:s,checkButtonAriaLabel:c,listProps:(0,e.__assign)({items:v,onRenderCell:function(e){return vV(e)}},h),layoutMode:fO.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?F(null===t||void 0===t?void 0:t.columns[0].data.detailsHeaderColumn,null===t||void 0===t?void 0:t.columns[0],0):Bd().createElement(Bd().Fragment,null),rightColumn:t?F(null===t||void 0===t?void 0:t.columns[1].data.detailsHeaderColumn,null===t||void 0===t?void 0:t.columns[1],1):Bd().createElement(Bd().Fragment,null),onClickProps:void 0,listItemRole:"row",customListItemPadding:HV};return p?Bd().createElement(pF,{stickyPosition:JO.Header},Bd().createElement(MH,(0,e.__assign)({},r))):Bd().createElement(MH,(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 F(null===t||void 0===t?void 0:t.columns[n].data.detailsHeaderColumn,e,n)})):[],onClickProps:void 0,listItemRole:"row",horizontalStack:!1,verticalAlign:"stretch",customListItemPadding:HV};return p?Bd().createElement(pF,{stickyPosition:JO.Header},Bd().createElement(DH,(0,e.__assign)({},o))):Bd().createElement(DH,(0,e.__assign)({},o))}return Bd().createElement(Bd().Fragment,null)},styles:{headerWrapper:{"[role=row] > div":{display:"flex",flexGrow:1,"div ":{alignItems:"stretch","div > div":{height:"100%",maxWidth:"100%"}}}}},selectionMode:gF.none}),k?Bd().createElement(FD,(0,e.__assign)({},k)):null];return Bd().createElement(z_,{styles:{root:{display:"flex",flexDirection:"column",flexWrap:"wrap",width:"100%",overflowX:"auto"}},doNotRenderFalsyValues:!0},p?Bd().createElement(z_,{styles:qV(p),doNotRenderFalsyValues:!0},H):Bd().createElement(Bd().Fragment,null,H))};function KV(e){var t=Fd.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return oA((function(){t.current=e}),[e]),cx((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 YV=function(e){var t=Fd.useRef(e);t.current=e,Fd.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])},QV={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},XV=Fd.forwardRef((function(t,n){var r,o=Fd.useRef(null),i=Fd.useRef(null),a=Fd.useRef(null),s=jC(o,n),c=j_(),l=null===(r=ZP(!1))||void 0===r||r,u=WC(QV,t),d=cx({hasFocus:!1,focusStackId:cD("ftz-",u.id)}),p=u.children,h=u.componentRef,f=u.disabled,m=u.disableFirstFocus,g=u.forceFocusInsideTrap,v=u.focusPreviouslyFocusedInnerElement,y=u.firstFocusableSelector,b=u.firstFocusableTarget,_=u.disableRestoreFocus,C=void 0===_?u.ignoreExternalFocusing:_,E=u.isClickableOutsideFocusTrap,w=u.enableAriaHiddenSiblings,x={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:f?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},k=Fd.useCallback((function(e){e!==i.current&&e!==a.current&&qx(e)}),[]),S=KV((function(){if(o.current){var e=d.previouslyFocusedElementInTrapZone;if(v&&e&&Dx(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=Ox(o.current,o.current.firstChild,!1,!1,!1,!0)),t&&k(t)}}})),T=function(e){if(!f&&o.current){var t,n,r,s=e===d.hasFocus?(t=o.current,n=a.current,void 0===(r=!1)&&(r=!0),Lx(t,n,r,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Ox(e,t,r,!1,!1,n,!1,!0)}(o.current,i.current,!0,!1);s&&(s===i.current||s===a.current?S():s.focus())}},I=KV((function(e){if(XV.focusStack=XV.focusStack.filter((function(e){return d.focusStackId!==e})),c){var t=c.activeElement;C||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!Dx(o.current,t)&&t!==c.body||k(e)}})),A=KV((function(e){if(!f&&d.focusStackId===XV.focusStack.slice(-1)[0]){var t=e.target;t&&!Dx(o.current,t)&&(c&&c.activeElement===c.body?setTimeout((function(){c&&c.activeElement===c.body&&(S(),d.hasFocus=!0)}),0):(S(),d.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return Fd.useEffect((function(){var e=[];return g&&e.push(OT(window,"focus",A,!0)),E||e.push(OT(window,"click",A,!0)),function(){e.forEach((function(e){return e()}))}}),[g,E]),Fd.useEffect((function(){if(!f&&(l||g)&&o.current){XV.focusStack.push(d.focusStackId);var e=u.elementToFocusOnDismiss||c.activeElement;return m||Dx(o.current,e)||S(),function(){return I(e)}}}),[g,f]),Fd.useEffect((function(){if(!f&&w)return bI(o.current)}),[f,w,o]),YV((function(){delete d.previouslyFocusedElementInTrapZone})),function(e,t,n){Fd.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(h,d.previouslyFocusedElementInTrapZone,S),Fd.createElement("div",(0,e.__assign)({"aria-labelledby":u.ariaLabelledBy},A_(u,I_),{ref:s,onFocusCapture:function(e){var t;null===(t=u.onFocusCapture)||void 0===t||t.call(u,e),e.target===i.current?T(!0):e.target===a.current&&T(!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=c.activeElement),Dx(o.current,n)||(d.hasFocus=!1)}}),Fd.createElement("div",(0,e.__assign)({},x,{ref:i})),p,Fd.createElement("div",(0,e.__assign)({},x,{ref:a})))}));XV.displayName="FocusTrapZone",XV.focusStack=[];var ZV=by,JV={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},$V=Ww(),eU=function(t){function n(e){var n=t.call(this,e)||this;Yx(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=vv();e&&e.body&&!$x&&(e.body.classList.add(ek),e.body.addEventListener("touchmove",ok,{passive:!1,capture:!1})),$x++}()},n.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if($x>0){var e=vv();e&&e.body&&1===$x&&(e.body.classList.remove(ek),e.body.removeEventListener("touchmove",ok)),$x--}}()},n.prototype.render=function(){var t=this.props,n=t.isDarkThemed,r=t.className,o=t.theme,i=t.styles,a=A_(this.props,I_),s=$V(i,{theme:o,className:r,isDark:n});return Fd.createElement("div",(0,e.__assign)({},a,{className:s.root}))},n}(Fd.Component),tU={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},nU=Lw(eU,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=$y(tU,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[By]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),rU=Jg((function(e,t){return{root:jg(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),oU={start:"touchstart",move:"touchmove",stop:"touchend"},iU={start:"mousedown",move:"mousemove",stop:"mouseup"},aU=function(t){function n(e){var n=t.call(this,e)||this;return n._currentEventType=iU,n._events=[],n._onMouseDown=function(e){var t=Fd.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=iU,n._onDragStart(e)},n._onMouseUp=function(e){var t=Fd.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=iU,n._onDragStop(e)},n._onTouchStart=function(e){var t=Fd.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=oU,n._onDragStart(e)},n._onTouchEnd=function(e){var t=Fd.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=oU,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=[OT(document.body,n._currentEventType.move,n._onDrag,!0),OT(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=Fd.Children.only(this.props.children),n=t.props,r=this.props.position,o=this.state,i=o.position,a=o.isDragging,s=i.x,c=i.y;return r&&!a&&(s=r.x,c=r.y),Fd.cloneElement(t,{style:(0,e.__assign)((0,e.__assign)({},n.style),{transform:"translate(".concat(s,"px, ").concat(c,"px)")}),className:rU(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}(Fd.Component);function sU(e){var t=Fd.useState(e),n=t[0],r=t[1];return[n,{setTrue:cx((function(){return function(){r(!0)}})),setFalse:cx((function(){return function(){r(!1)}})),toggle:cx((function(){return function(){r((function(e){return!e}))}}))}]}var cU={x:0,y:0},lU={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},uU=Ww(),dU=Fd.forwardRef((function(t,n){var r,o,i,a,s,c=WC(lU,t),l=c.allowTouchBodyScroll,u=c.className,d=c.children,p=c.containerClassName,h=c.scrollableContentClassName,f=c.elementToFocusOnDismiss,m=c.firstFocusableSelector,g=c.focusTrapZoneProps,v=c.forceFocusInsideTrap,y=c.disableRestoreFocus,b=void 0===y?c.ignoreExternalFocusing:y,_=c.isBlocking,C=c.isAlert,E=c.isClickableOutsideFocusTrap,w=c.isDarkOverlay,x=c.onDismiss,k=c.layerProps,S=c.overlay,T=c.isOpen,I=c.titleAriaId,A=c.styles,P=c.subtitleAriaId,D=c.theme,R=c.topOffsetFixed,M=c.responsiveMode,N=c.onLayerDidMount,L=c.isModeless,O=c.dragOptions,F=c.onDismissed,B=c.enableAriaHiddenSiblings,H=c.popupProps,z=Fd.useRef(null),V=Fd.useRef(null),U=jC(V,null===g||void 0===g?void 0:g.componentRef),W=Fd.useRef(null),j=jC(z,n),q=gD(j),G=cD("ModalFocusTrapZone",null===g||void 0===g?void 0:g.id),K=W_(),Y=lx(),Q=Y.setTimeout,X=Y.clearTimeout,Z=Fd.useState(T),J=Z[0],$=Z[1],ee=Fd.useState(T),te=ee[0],ne=ee[1],re=Fd.useState(cU),oe=re[0],ie=re[1],ae=Fd.useState(),se=ae[0],ce=ae[1],le=sU(!1),ue=le[0],de=le[1],pe=de.toggle,he=de.setFalse,fe=cx((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:l,scrollableContent:null,lastSetCoordinates:cU,events:new $A({})}})),me=(O||{}).keepInBounds,ge=null!==C&&void 0!==C?C:_&&!L,ve=void 0===k?"":k.className,ye=uU(A,{theme:D,className:u,containerClassName:p,scrollableContentClassName:h,isOpen:T,isVisible:te,hasBeenOpened:fe.hasBeenOpened,modalRectangleTop:se,topOffsetFixed:R,isModeless:L,layerClassName:ve,windowInnerHeight:null===K||void 0===K?void 0:K.innerHeight,isDefaultDragHandle:O&&!O.dragHandleSelector}),be=(0,e.__assign)((0,e.__assign)({eventBubblingEnabled:!1},k),{onLayerDidMount:k&&k.onLayerDidMount?k.onLayerDidMount:N,insertFirst:(null===k||void 0===k?void 0:k.insertFirst)||L,className:ye.layer}),_e=Fd.useCallback((function(e){e?fe.allowTouchBodyScroll?rk(e,fe.events):nk(e,fe.events):fe.events.off(fe.scrollableContent),fe.scrollableContent=e}),[fe]),Ce=function(){var e=W.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(R&&ce(t.top),me&&(fe.minPosition={x:-t.left,y:-t.top},fe.maxPosition={x:t.left,y:t.top}))},Ee=Fd.useCallback((function(e,t){var n=fe.minPosition,r=fe.maxPosition;return me&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[me,fe]),we=function(){var e;fe.lastSetCoordinates=cU,he(),fe.isInKeyboardMoveMode=!1,$(!1),ie(cU),null===(e=fe.disposeOnKeyUp)||void 0===e||e.call(fe),null===F||void 0===F||F()},xe=Fd.useCallback((function(){he(),fe.isInKeyboardMoveMode=!1}),[fe,he]),ke=Fd.useCallback((function(e,t){ie((function(e){return{x:Ee("x",e.x+t.delta.x),y:Ee("y",e.y+t.delta.y)}}))}),[Ee]),Se=Fd.useCallback((function(){V.current&&V.current.focus()}),[]);Fd.useEffect((function(){X(fe.onModalCloseTimer),T&&(requestAnimationFrame((function(){return Q(Ce,0)})),$(!0),O&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===av&&Dx(fe.scrollableContent,e.target)&&(pe(),e.preventDefault(),e.stopPropagation())};fe.disposeOnKeyUp||(fe.events.on(K,"keyup",e,!0),fe.disposeOnKeyUp=function(){fe.events.off(K,"keyup",e,!0),fe.disposeOnKeyUp=void 0})}(),fe.hasBeenOpened=!0,ne(!0)),!T&&J&&(fe.onModalCloseTimer=Q(we,1e3*parseFloat(ZV)),ne(!1))}),[J,T]),YV((function(){fe.events.dispose()})),function(e,t){Fd.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(c,V);var Te=Fd.createElement(XV,(0,e.__assign)({},g,{id:G,ref:W,componentRef:U,className:P_(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:f,isClickableOutsideFocusTrap:null!==(o=null===g||void 0===g?void 0:g.isClickableOutsideFocusTrap)&&void 0!==o?o:L||E||!_,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)&&!L,firstFocusableSelector:(null===g||void 0===g?void 0:g.firstFocusableSelector)||m,focusPreviouslyFocusedInnerElement:null===(s=null===g||void 0===g?void 0:g.focusPreviouslyFocusedInnerElement)||void 0===s||s,onBlur:fe.isInKeyboardMoveMode?function(e){var t,n;null===(t=null===g||void 0===g?void 0:g.onBlur)||void 0===t||t.call(g,e),fe.lastSetCoordinates=cU,fe.isInKeyboardMoveMode=!1,null===(n=fe.disposeOnKeyDown)||void 0===n||n.call(fe)}:void 0}),O&&fe.isInKeyboardMoveMode&&Fd.createElement("div",{className:ye.keyboardMoveIconContainer},O.keyboardMoveIconProps?Fd.createElement(bP,(0,e.__assign)({},O.keyboardMoveIconProps)):Fd.createElement(bP,{iconName:"move",className:ye.keyboardMoveIcon})),Fd.createElement("div",{ref:_e,className:ye.scrollableContent,"data-is-scrollable":!0},O&&ue&&Fd.createElement(O.menu,{items:[{key:"move",text:O.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===av)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===iv;if(ue&&t&&he(),!fe.isInKeyboardMoveMode||e.keyCode!==iv&&e.keyCode!==rv||(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 iv:ie(fe.lastSetCoordinates);case rv:fe.lastSetCoordinates=cU;break;case pv:ie((function(e){return{x:e.x,y:Ee("y",e.y-r)}}));break;case fv:ie((function(e){return{x:e.x,y:Ee("y",e.y+r)}}));break;case dv:ie((function(e){return{x:Ee("x",e.x-r),y:e.y}}));break;case hv:ie((function(e){return{x:Ee("x",e.x+r),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};fe.lastSetCoordinates=oe,he(),fe.isInKeyboardMoveMode=!0,fe.events.on(K,"keydown",e,!0),fe.disposeOnKeyDown=function(){fe.events.off(K,"keydown",e,!0),fe.disposeOnKeyDown=void 0}}},{key:"close",text:O.closeMenuItemText,onClick:we}],onDismiss:he,alignTargetEdge:!0,coverTarget:!0,directionalHint:xk,directionalHintFixed:!0,shouldFocusOnMount:!0,target:fe.scrollableContent}),d));return J&&q>=(M||lD.small)&&Fd.createElement(lA,(0,e.__assign)({ref:j},be),Fd.createElement(kI,(0,e.__assign)({role:ge?"alertdialog":"dialog",ariaLabelledBy:I,ariaDescribedBy:P,onDismiss:x,shouldRestoreFocus:!b,enableAriaHiddenSiblings:B,"aria-modal":!L},H),Fd.createElement("div",{className:ye.root,role:L?void 0:"document"},!L&&Fd.createElement(nU,(0,e.__assign)({"aria-hidden":!0,isDarkThemed:w,onClick:_?void 0:x,allowTouchBodyScroll:l},S)),O?Fd.createElement(aU,{handleSelector:O.dragHandleSelector||"#".concat(G),preventDragSelector:"button",onStart:xe,onDragChange:ke,onStop:Se,position:oe},Te):Te)))||null}));dU.displayName="Modal";var pU=Lw(dU,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,c=e.modalRectangleTop,l=e.theme,u=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,h=e.isDefaultDragHandle,f=e.windowInnerHeight,m=l.palette,g=l.effects,v=l.fonts,y=$y(JV,l);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(ZV)},u&&"number"===typeof c&&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:m.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?Wy.Layer:void 0},d&&{pointerEvents:"auto"},u&&"number"===typeof c&&s&&{top:c},h&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:f},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"]});pU.displayName="Modal";var hU,fU=Ww(),mU=function(t){function n(e){var n=t.call(this,e)||this;return Yx(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=fU(n,{theme:r,className:t}),Fd.createElement("div",{className:this._classNames.actions},Fd.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},n.prototype._renderChildrenAsActions=function(){var e=this;return Fd.Children.map(this.props.children,(function(t){return t?Fd.createElement("span",{className:e._classNames.action},t):null}))},n}(Fd.Component),gU={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},vU=Lw(mU,(function(e){var t=e.className,n=e.theme,r=$y(gU,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"});vU.displayName="DialogFooter";var yU={width:"100%",maxWidth:"100%",minWidth:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",borderRadius:"0px"},bU={main:(hU={},hU[Zk]=(0,e.__assign)({},yU),hU[Xk]=(0,e.__assign)({},yU),hU)},_U=function(e){if("smallAndMedium"===e.fullScreenViewports)return bU},CU={padding:"24px",smallScreenPadding:"16px",removeBodyBottomPadding:!1},EU={headerLeftRightPadding:"24px",withHeaderHorizontalLine:!1},wU={isStickyFooterWithText:!1,hasFooterBackground:!1,hasFooterHorizontalLine:!1},xU=function(e){return jg({backgroundColor:e.palette.neutralHigh})},kU=function(e,t){var n,r;return void 0===t&&(t=EU),jg([null===(r=e.fonts)||void 0===r?void 0:r.xLarge,{color:e.semanticColors.bodyText,fontWeight:Dy.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[Xk]={padding:"16px"},n)}])},SU=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}}},TU={itemProgress:{padding:0}},IU="dialogBody",AU=function(e,t){var n,r,o;if(!e)return{root:{height:"100%"}};var i=t?"auto":"60vh";return{root:(n={},n[e.forceStickyOnSmallScreens?$k:eS]={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)}},PU=function(e){var t;return Xb({main:(t={},t[e.forceStickyOnSmallScreens?$k:eS]={display:"flex",flexDirection:"column",overflowY:"hidden"},t)})},DU=function(e,t,n,r,o,i){var a,s=t?"".concat(t.height).concat(t.unit):void 0,c=n?parseInt(n,10):0;return Xb({main:(a={backgroundColor:e.palette.neutralHigh,borderRadius:o,maxWidth:n||"480px",minWidth:n||"auto",height:s,top:0},a[Jk]={maxWidth:n?Uk.l>c?n:"96%":"480px",minWidth:n?Uk.l>c?n:"96%":"auto"},a[Zk]={margin:"16px",maxWidth:n&&Uk.m>c?n:"96%",minWidth:n?Uk.m>c?n:"96%":"auto",minHeight:t?"92%":void 0},a[Xk]={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?_U(i):void 0)},RU=function(t){var n,r,o=t.isFooterDisabled,i=t.richTextProps,a=t.textAlignment,s=void 0===a?"left":a,c=t.removeMarginTop,l=t.hasFullWidthButtons,u=(t.hasFooterBackground,(0,e.__rest)(t,["isFooterDisabled","richTextProps","textAlignment","removeMarginTop","hasFullWidthButtons","hasFooterBackground"]));if("secondary"===u.dialogType)r=[u.buttonLeft?Bd().createElement(hR,(0,e.__assign)({},u.buttonLeft,{disabled:o||u.buttonLeft.disabled,key:1})):null,Bd().createElement(hR,(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?[Bd().createElement(hR,(0,e.__assign)({},u.buttonSecondary,{disabled:p,key:0})),Bd().createElement(hR,(0,e.__assign)({},u.buttonPrimary,{disabled:d,type:"primary",key:1}))]:[Bd().createElement(hR,(0,e.__assign)({},u.buttonPrimary,{disabled:d,type:"primary",key:0})),u.buttonSecondary&&Bd().createElement(hR,(0,e.__assign)({},u.buttonSecondary,{disabled:p,key:1}))]}var h=l?"0px":void 0,f=l?"0px":void 0,m=c?"0px":void 0,g=l?"flex":void 0,v=l?"column":void 0;return Bd().createElement(wT,{textAlignment:s,padding:i&&"12px 0 0 0",childrenGap:12},i?Bd().createElement(AA,(0,e.__assign)({},i)):null,Bd().createElement(vU,{styles:{actions:{marginTop:m,marginLeft:h,display:g,flexDirection:v},actionsRight:{marginRight:f,display:"flex",flexDirection:v,justifyContent:"flex-end"},action:{marginLeft:h,marginRight:f,display:g,flexDirection:v}}},r))},MU=function(t){var n=t.operationData,r=t.footerProps,o=function(e,t){var n;return void 0===t&&(t=wU),Xb({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[Xk]={padding:"0 16px 16px 16px"},n)}})}(Mw(),{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 Bd().createElement(Bd().Fragment,null,t?Bd().createElement(z_,{className:o,doNotRenderFalsyValues:!0},Bd().createElement(RU,(0,e.__assign)({},t))):null)},a=i(r),s=r?(0,e.__assign)({isFooterDisabled:!0},r):void 0;if(n){var c=i(n.progressDialogProps?n.progressDialogProps.dialogFooterProps:s),l=function(e){return i(e.dialogFooterProps)};return Bd().createElement(Zm,{operationData:n.progressViewOperationData,inertView:a,firstLoadView:c,updatingView:c,updateFailedView:l(n.errorDialogProps),finishedView:n.successDialogProps?l(n.successDialogProps):a,failedView:l(n.errorDialogProps)})}return a},NU="SearchBox",LU={root:{height:"auto"},icon:{fontSize:"12px"}},OU={iconName:"Clear"},FU={ariaLabel:"Clear text"},BU=Ww(),HU=Fd.forwardRef((function(t,n){var r=t.ariaLabel,o=t.className,i=t.defaultValue,a=void 0===i?"":i,s=t.disabled,c=t.underlined,l=t.styles,u=t.labelText,d=t.placeholder,p=void 0===d?u:d,h=t.theme,f=t.clearButtonProps,m=void 0===f?FU:f,g=t.disableAnimation,v=void 0!==g&&g,y=t.showIcon,b=void 0!==y&&y,_=t.onClear,C=t.onBlur,E=t.onEscape,w=t.onSearch,x=t.onKeyDown,k=t.iconProps,S=t.role,T=t.onChange,I=t.onChanged,A=Fd.useState(!1),P=A[0],D=A[1],R=Fd.useRef(),M=cM(t.value,a,(function(e,t){e&&e.timeStamp===R.current||(R.current=null===e||void 0===e?void 0:e.timeStamp,null===T||void 0===T||T(e,t),null===I||void 0===I||I(t))})),N=M[0],L=M[1],O=String(N),F=Fd.useRef(null),B=Fd.useRef(null),H=jC(F,n),z=cD(NU,t.id),V=m.onClick,U=BU(l,{theme:h,className:o,underlined:c,hasFocus:P,disabled:s,hasInput:O.length>0,disableAnimation:v,showIcon:b}),W=A_(t,m_,["className","placeholder","onFocus","onBlur","value","role"]),j=Fd.useCallback((function(e){var t;null===_||void 0===_||_(e),e.defaultPrevented||(L(""),null===(t=B.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[_,L]),q=Fd.useCallback((function(e){null===V||void 0===V||V(e),e.defaultPrevented||j(e)}),[V,j]),G=Fd.useCallback((function(e){D(!1),null===C||void 0===C||C(e)}),[C]),K=function(e){L(e.target.value,e)};return function(e,t,n){Fd.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,B,P),Fd.createElement("div",{role:S,ref:H,className:U.root,onFocusCapture:function(e){var n;D(!0),null===(n=t.onFocus)||void 0===n||n.call(t,e)}},Fd.createElement("div",{className:U.iconContainer,onClick:function(){B.current&&(B.current.focus(),B.current.selectionStart=B.current.selectionEnd=0)},"aria-hidden":!0},Fd.createElement(bP,(0,e.__assign)({iconName:"Search"},k,{className:U.icon}))),Fd.createElement("input",(0,e.__assign)({},W,{id:z,className:U.field,placeholder:p,onChange:K,onInput:K,onBlur:G,onKeyDown:function(e){switch(e.which){case iv:null===E||void 0===E||E(e),O&&!e.defaultPrevented&&j(e);break;case rv:w&&(w(O),e.preventDefault(),e.stopPropagation());break;default:null===x||void 0===x||x(e),e.defaultPrevented&&e.stopPropagation()}},value:O,disabled:s,role:"searchbox","aria-label":r,ref:B})),O.length>0&&Fd.createElement("div",{className:U.clearButton},Fd.createElement(eR,(0,e.__assign)({onBlur:G,styles:LU,iconProps:OU},m,{onClick:q}))))}));HU.displayName=NU;var zU={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};var VU,UU=Lw(HU,(function(e){var t,n,r,o,i,a=e.theme,s=e.underlined,c=e.disabled,l=e.hasFocus,u=e.className,d=e.hasInput,p=e.disableAnimation,h=e.showIcon,f=a.palette,m=a.fonts,g=a.semanticColors,v=a.effects,y=$y(zU,a),b={color:g.inputPlaceholderText,opacity:1},_=f.neutralSecondary,C=f.neutralPrimary,E=f.neutralLighter,w=f.neutralLighter,x=f.neutralLighter;return{root:[y.root,m.medium,Ob,{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[By]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(n={},n[By]={borderColor:"Highlight"},n)},t[":hover .".concat(y.iconContainer)]={color:g.inputIconHovered},t)},!l&&d&&{selectors:(r={},r[":hover .".concat(y.iconContainer)]={width:4},r[":hover .".concat(y.icon)]={opacity:0,pointerEvents:"none"},r)},l&&["is-active",{position:"relative"},Xy(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)}],c&&["is-disabled",{borderColor:E,backgroundColor:x,pointerEvents:"none",cursor:"default",selectors:(i={},i[By]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&c&&{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"},l&&{width:4},c&&{color:g.inputIconDisabled},!p&&{transition:"width ".concat(yy)},h&&l&&{width:32}],icon:[y.icon,{opacity:1},l&&{opacity:0,pointerEvents:"none"},!p&&{transition:"opacity ".concat(yy," 0s")},h&&l&&{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:w},"&:hover .ms-Button-icon":{color:C},".ms-Button":{borderRadius:wv(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:_}}}],field:[y.field,Ob,Bb(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"}}},c&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"}),WU=function(t){var n=t["aria-label"],r=(0,e.__rest)(t,["aria-label"]);V_("SearchBox",r.id);var o=function(e){return{root:{backgroundColor:zS(e,"neutralHigh")}}}(Mw());return Ek("SearchBox",r),Bd().createElement(UU,(0,e.__assign)({ariaLabel:n,styles:r.disabled?void 0:o},r))},jU=function(t){var n=t.title,r=t.titleAriaId,o=t.searchBoxProps,i=t.subtitle,a=t.closeButton,s=t.backButton,c=t.headerLeftRightPadding,l=t.headingTag,u=void 0===l?"h1":l,d=t.operationData,p=t.withHeaderHorizontalLine,h=Mw(),f=kU(h,{headerLeftRightPadding:c||"24px",withHeaderHorizontalLine:p}),m=o?6:i?8:0,g=function(t){var n=Bd().createElement(Bd().Fragment,null);return t||a?(t&&(n="string"===typeof t?Bd().createElement(SA,{type:"heading",tag:u,variant:"paneHeader",id:r,lines:2},t):"src"in t?Bd().createElement(jR,(0,e.__assign)({},t,{id:r,height:24})):Bd().createElement(z_,{horizontal:!0,tokens:{childrenGap:"8px"},verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(jR,(0,e.__assign)({},t.image,{id:r,height:24})),Bd().createElement(SA,{type:"heading",tag:u,variant:"paneHeader",lines:2},t.text))),Bd().createElement(z_,{className:f,tokens:{childrenGap:m},doNotRenderFalsyValues:!0},Bd().createElement(z_,{horizontal:!0,horizontalAlign:"space-between",styles:{root:{minHeight:"32px"}},doNotRenderFalsyValues:!0},s?Bd().createElement(z_,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},Bd().createElement(eR,(0,e.__assign)({styles:SU(h,!0),iconProps:{iconName:"Back"}},s,{ariaLabel:s["aria-label"]})),n):n,a?Bd().createElement("div",{style:{width:"24px",flexShrink:0}}):null),Bd().createElement(z_,{tokens:{childrenGap:16},doNotRenderFalsyValues:!0},o?Bd().createElement(WU,(0,e.__assign)({},o)):null,i?Bd().createElement(AA,(0,e.__assign)({},i)):null))):n},v=g(n);if(d){var y=Bd().createElement(Bd().Fragment,null,Bd().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1},"aria-hidden":!0},Bd().createElement(gS,{styles:TU})),d.progressDialogTitle?g(d.progressDialogTitle):v),b=g(d.errorDialogTitle);return Bd().createElement(Zm,{operationData:d.progressViewOperationData,inertView:v,firstLoadView:y,updatingView:y,updateFailedView:b,finishedView:Bd().createElement(Bd().Fragment,null,d.successDialogTitle?g(d.successDialogTitle):v),failedView:b})}return v},qU=function(t){var n=t.closeButton,r=t.onCloseButtonClicked,o=t.headerLeftRightPadding,i=void 0===o?"24px":o,a=Mw(),s=kU(a,{headerLeftRightPadding:i,withHeaderHorizontalLine:!1});return n?Bd().createElement(z_,{className:s,styles:{root:{position:"absolute",top:0,right:0}},doNotRenderFalsyValues:!0},Bd().createElement(eR,(0,e.__assign)({styles:SU(a),iconProps:{iconName:"Cancel"},onClick:function(e){r&&e&&r(e)}},n,{ariaLabel:n["aria-label"]}))):null},GU=function(e){var t=e.subText,n=e.operationData,r=function(){var e;return jg({marginBottom:"24px",selectors:(e={},e[Xk]={marginBottom:"16px"},e)})}(),o=function(e){return e?Bd().createElement(z_,{className:r,doNotRenderFalsyValues:!0},Bd().createElement(DT,{variant:"bodyPrimaryText"},e)):Bd().createElement(Bd().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 Bd().createElement(Zm,{operationData:n.progressViewOperationData,inertView:i,firstLoadView:i,updatingView:a,updateFailedView:s,finishedView:n.successSubText?o(n.successSubText):i,failedView:s})}return i},KU=function(t){t.isBlocking;var n,r,o,i,a,s=t.showOverlay,c=void 0===s||s,l=t.headerLeftRightPadding,u=t.headingTag,d=t.withHeaderHorizontalLine,p=t.dialogStylesTemp,h=t.bodyStyleTemp,f=t.topOffsetFixed,m=void 0!==f&&f,g=t.minBodyHeight,v=t.staticBodyWidth,y=t.isOpen,b=void 0!==y&&y,_=t.isModeless,C=void 0!==_&&_,E=t.onDismiss,w=t.onDismissed,x=t.title,k=t.searchBoxProps,S=t.subtitle,T=t.subText,I=t.contentId,A=t.closeButton,P=t.backButton,D=t.dialogFooterProps,R=t.operationData,M=t.stickyHeaderFooter,N=t.removeBodyBottomPadding,L=t.borderRadius,O=void 0===L?"8px":L,F=t.hostId,B=t.fullScreenMode,H=t.children,z=(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"]);V_("Dialog",z.id),Ek("Dialog",z);var V=(0,Fd.useRef)(document.activeElement);(0,Fd.useEffect)((function(){return null===M||void 0===M||M.bodyMinHeight,function(){V.current&&V.current.focus()}}),[null===M||void 0===M?void 0:M.bodyMinHeight]);var U=cD("twoui"),W=Mw(),j=function(e){var t;return void 0===e&&(e=CU),jg({padding:e.padding,paddingBottom:e.removeBodyBottomPadding?0:void 0,selectors:(t={},t[Xk]={padding:e.smallScreenPadding,paddingBottom:e.removeBodyBottomPadding?0:void 0},t)})}({padding:h?h.padding:CU.padding,smallScreenPadding:h?h.smallScreenPadding:CU.smallScreenPadding,removeBodyBottomPadding:N}),q={isBlocking:!1,styles:DU(W,g,v,p,O,B),topOffsetFixed:m,isOpen:b,onDismiss:E,onDismissed:w,isModeless:C,overlay:{styles:{root:{opacity:c?void 0:0}},onClick:void 0},isClickableOutsideFocusTrap:!1,titleAriaId:U,containerClassName:M?PU(M).main:xU(W),layerProps:{eventBubblingEnabled:!0,hostId:F},allowTouchBodyScroll:!0,firstFocusableSelector:(null===M||void 0===M?void 0:M.firstFocusOnContent)?IU:void 0},G=function(e){E&&e&&E(e)};return Bd().createElement(pU,(0,e.__assign)({},q),Bd().createElement(cN,{announcedComponent:oN},Bd().createElement(jU,{title:x,titleAriaId:U,searchBoxProps:k,subtitle:S,closeButton:A,backButton:P,headerLeftRightPadding:l,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:G}),Bd().createElement(z_,{id:I,className:(null===M||void 0===M?void 0:M.firstFocusOnContent)?"".concat(j," ").concat(IU):j,styles:AU(M,g),tabIndex:(null===M||void 0===M?void 0:M.firstFocusOnContent)?-1:void 0,doNotRenderFalsyValues:!0},Bd().createElement(GU,{subText:T,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),Bd().createElement(MU,{operationData:R,footerProps:D}),Bd().createElement(qU,{closeButton:A,onCloseButtonClicked:G,headerLeftRightPadding:l})))},YU=Bd().createContext({openDialog:function(e,t){return Jd()},closeDialog:function(e){},switchToDialog:function(e,t){return Jd()}}),QU=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}},XU=function(e){var t=e.children,n=(0,Fd.useReducer)(QU,[]),r=n[0],o=n[1],i=(0,Fd.useMemo)((function(){var e=function(e,t){var n=t;return n||(n=Jd()),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 Bd().createElement("div",{key:e.id},e.controlledDialog)}));return Bd().createElement(YU.Provider,{value:i},t,a)},ZU=function(){return(0,Fd.useContext)(YU)},JU=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,c=void 0===s?"4px":s,l=e.shadow,u=void 0!==l&&l,d=e.showDivider,p=void 0!==d&&d,h=Mw(),f=sS(),m=!("s"===f||"m"===f),g="right"!==o&&m?"space-between":"end";return Bd().createElement(z_,{styles:uS(h,c,u,p),doNotRenderFalsyValues:!0},Bd().createElement(CT,{totalSlots:12,backgroundColor:n},Bd().createElement(_T,{slots:6},Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center"},Bd().createElement(xT,{padding:"22px 14px 22px 22px",key:"1"},Bd().createElement(aM,{height:24,width:24})),Bd().createElement(wT,{horizontalAlign:"start"},Bd().createElement(xT,{padding:"4px",key:"2"},Bd().createElement(aM,{height:12,width:153})),2===a?Bd().createElement(xT,{padding:"4px",key:"3"},Bd().createElement(aM,{height:8,width:153})):null))),Bd().createElement(_T,{slots:6},Bd().createElement(wT,{horizontal:!0,height:49,verticalAlign:"center",horizontalAlign:g},m?Bd().createElement(xT,{padding:"21px",key:"1"},Bd().createElement(aM,{height:8,width:127})):null,Bd().createElement(xT,{padding:"3px 19px 3px 3px",key:"2"},Bd().createElement(aM,{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"}(VU||(VU={}));var $U,eW=JD,tW=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,c=a.hidden;s===VU.Divider||s===VU.Header?(n.push(i),r.push(i)):c?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"}($U||($U={}));var nW,rW=Ww();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(nW||(nW={}));var oW,iW,aW,sW,cW,lW=function(t){function n(n){var r=t.call(this,n)||this;r._panel=Fd.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?rk(e,r._events):nk(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 Fd.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 Fd.createElement(Fd.Fragment,null,!r._hasCustomNavigation&&a(r.props,r._onRenderHeader,r._headerTextId),Fd.createElement(eR,{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?Fd.createElement("div",{className:r._classNames.header},Fd.createElement("div",(0,e.__assign)({id:o,role:"heading","aria-level":1},s,{className:P_(r._classNames.headerText,s.className)}),i)):null},r._onRenderBody=function(e){return Fd.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?Fd.createElement("div",{className:r._classNames.footer},Fd.createElement("div",{className:r._classNames.footerInner},n())):null},r._animateTo=function(e){e===nW.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===nW.open&&r.props.onOpened&&r.props.onOpened(),e===nW.closed&&r.props.onDismissed&&r.props.onDismissed()};var o=r.props.allowTouchBodyScroll,i=void 0!==o&&o;return r._allowTouchBodyScroll=i,Yx(r),r.state={isFooterSticky:!1,visibility:nW.closed,id:fC("Panel")},r}return(0,e.__extends)(n,t),n.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==nW.closed&&t.visibility!==nW.animatingClosed?e.isOpen||t.visibility!==nW.open&&t.visibility!==nW.animatingOpen?null:{visibility:nW.animatingClosed}:{visibility:nW.animatingOpen}},n.prototype.componentDidMount=function(){this._async=new LT(this),this._events=new $A(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:nW.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===nW.animatingOpen?this._animateTo(nW.open):this.state.visibility===nW.animatingClosed&&this._animateTo(nW.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,c=t.hasCloseButton,l=t.headerText,u=t.headerClassName,d=void 0===u?"":u,p=t.ignoreExternalFocusing,h=t.isBlocking,f=t.isFooterAtBottom,m=t.isLightDismiss,g=t.isHiddenOnDismiss,v=t.layerProps,y=t.overlayProps,b=t.popupProps,_=t.type,C=t.styles,E=t.theme,w=t.customWidth,x=t.onLightDismissClick,k=void 0===x?this._onPanelClick:x,S=t.onRenderNavigation,T=void 0===S?this._onRenderNavigation:S,I=t.onRenderHeader,A=void 0===I?this._onRenderHeader:I,P=t.onRenderBody,D=void 0===P?this._onRenderBody:P,R=t.onRenderFooter,M=void 0===R?this._onRenderFooter:R,N=this.state,L=N.isFooterSticky,O=N.visibility,F=N.id,B=_===$U.smallFixedNear||_===$U.customNear,H=wv(E)?B:!B,z=_===$U.custom||_===$U.customNear?{width:w}:{},V=A_(this.props,I_),U=this.isActive,W=O===nW.animatingClosed||O===nW.animatingOpen;if(this._headerTextId=l&&F+"-headerText",!U&&!W&&!g)return null;this._classNames=rW(C,{theme:E,className:r,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:c,headerClassName:d,isAnimating:W,isFooterSticky:L,isFooterAtBottom:f,isOnRightSide:H,isOpen:U,isHiddenOnDismiss:g,type:_,hasCustomNavigation:this._hasCustomNavigation});var j,q=this._classNames,G=this._allowTouchBodyScroll;return h&&U&&(j=Fd.createElement(nU,(0,e.__assign)({className:q.overlay,isDarkThemed:!1,onClick:m?k:void 0,allowTouchBodyScroll:G},y))),Fd.createElement(lA,(0,e.__assign)({},v),Fd.createElement(kI,(0,e.__assign)({role:"dialog","aria-modal":h?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:q.hiddenPanel,enableAriaHiddenSiblings:!!U},b),Fd.createElement("div",(0,e.__assign)({"aria-hidden":!U&&W},V,{ref:this._panel,className:q.root}),j,Fd.createElement(XV,(0,e.__assign)({ignoreExternalFocusing:p,forceFocusInsideTrap:!(!h||g&&!U)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:q.main,style:z,elementToFocusOnDismiss:o}),Fd.createElement("div",{className:q.contentInner},Fd.createElement("div",{ref:this._allowScrollOnPanel,className:q.scrollableContent,"data-is-scrollable":!0},Fd.createElement("div",{className:q.commands,"data-is-visible":!0},T(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!c)&&A(this.props,this._onRenderHeader,this._headerTextId),D(this.props,this._onRenderBody),M(this.props,this._onRenderFooter)))))))},n.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:nW.animatingOpen}))},n.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:nW.animatingClosed})},Object.defineProperty(n.prototype,"isActive",{get:function(){return this.state.visibility===nW.open||this.state.visibility===nW.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&&(Dx(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:$U.smallFixedFar},n}(Fd.Component),uW={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"},dW="100%",pW="auto",hW=272,fW=340,mW=592,gW=644,vW=940,yW="auto",bW=0,_W=48,CW=428,EW=176,wW=((oW={})["@media (min-width: ".concat(zy,"px)")]={width:fW},oW),xW=((iW={})["@media (min-width: ".concat(640,"px)")]={width:mW},iW["@media (min-width: ".concat(1024,"px)")]={width:gW},iW),kW=((aW={})["@media (min-width: ".concat(768,"px)")]={left:_W,width:pW},aW["@media (min-width: ".concat(Vy,"px)")]={left:CW},aW),SW=((sW={})["@media (min-width: ".concat(Vy,"px)")]={left:yW,width:vW},sW),TW=((cW={})["@media (min-width: ".concat(Vy,"px)")]={left:EW},cW),IW=function(t){var n;switch(t){case $U.smallFixedFar:n=(0,e.__assign)({},wW);break;case $U.medium:n=(0,e.__assign)((0,e.__assign)({},wW),xW);break;case $U.large:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},wW),xW),kW);break;case $U.largeFixed:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},wW),xW),kW),SW);break;case $U.extraLarge:n=(0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},wW),xW),kW),TW)}return n},AW={paddingLeft:"24px",paddingRight:"24px"},PW=Lw(lW,(function(t){var n,r,o,i,a=t.className,s=t.focusTrapZoneClassName,c=t.hasCloseButton,l=t.headerClassName,u=t.isAnimating,d=t.isFooterSticky,p=t.isFooterAtBottom,h=t.isOnRightSide,f=t.isOpen,m=t.isHiddenOnDismiss,g=t.hasCustomNavigation,v=t.theme,y=t.type,b=void 0===y?$U.smallFixedFar:y,_=v.effects,C=v.fonts,E=v.semanticColors,w=$y(uW,v),x=b===$U.custom||b===$U.customNear;return{root:[w.root,v.fonts.medium,f&&w.isOpen,c&&w.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},x&&h&&w.custom,x&&!h&&w.customNear,a],overlay:[{pointerEvents:"auto",cursor:"pointer"},f&&u&&My.fadeIn100,!f&&u&&My.fadeOut100],hiddenPanel:[!f&&!u&&m&&{visibility:"hidden"}],main:[w.main,{backgroundColor:E.bodyBackground,boxShadow:_.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:yW,right:bW,width:dW,selectors:(0,e.__assign)((n={},n[By]={borderLeft:"3px solid ".concat(E.variantBorder),borderRight:"3px solid ".concat(E.variantBorder)},n),IW(b))},b===$U.smallFluid&&{left:bW},b===$U.smallFixedNear&&{left:bW,right:yW,width:hW},b===$U.customNear&&{right:"auto",left:0},x&&{maxWidth:"100vw"},f&&u&&!h&&My.slideRightIn40,f&&u&&h&&My.slideLeftIn40,!f&&u&&!h&&My.slideLeftOut40,!f&&u&&h&&My.slideRightOut40,s],commands:[w.commands,{backgroundColor:E.bodyBackground,paddingTop:18,selectors:(r={},r["@media (min-height: ".concat(zy,"px)")]={position:"sticky",top:0,zIndex:1},r)},g&&{paddingTop:"inherit"}],navigation:[w.navigation,{display:"flex",justifyContent:"flex-end"},g&&{height:"44px"}],contentInner:[w.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[w.header,AW,{alignSelf:"flex-start"},c&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[w.headerText,C.xLarge,{color:E.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},l],scrollableContent:[w.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[w.content,AW,{paddingBottom:20},p&&{selectors:(o={},o["@media (min-height: ".concat(zy,"px)")]={flexGrow:1},o)}],footer:[w.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(_y," ").concat(vy),selectors:(i={},i["@media (min-height: ".concat(zy,"px)")]={position:"sticky",bottom:0},i)},d&&{backgroundColor:E.bodyBackground,borderTopColor:E.variantBorder}],footerInner:[w.footerInner,AW,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[w.closeButton,{marginRight:14,color:v.palette.neutralSecondary,fontSize:Ry.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:v.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"});function DW(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 RW=Ww(),MW={options:[]};var NW=Fd.forwardRef((function(t,n){var r=WC(MW,t),o=Fd.useRef(null),i=jC(n,o),a=gD(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,c=ZP(a),l=Fd.useState([]),u=l[0],d=l[1],p=a!==c,h=ZP(t=s?p&&void 0!==n?n:r:p&&void 0!==o?o:i);return Fd.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 kx(a,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&c||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,c=i[o];-1!==(a=n(c))&&r.push(a)}return r}())}),[p,s,c,h,a,t]),[u,d]}(r),c=s[0],l=s[1];return Fd.createElement(HW,(0,e.__assign)({},r,{responsiveMode:a,hoisted:{rootRef:i,selectedIndices:c,setSelectedIndices:l}}))}));NW.displayName="DropdownBase";var LW,OW,FW,BW,HW=function(t){function n(n){var r=t.call(this,n)||this;r._host=Fd.createRef(),r._focusZone=Fd.createRef(),r._dropDown=Fd.createRef(),r._scrollIdleDelay=250,r._sizePosCache=new tW,r._requestAnimationFrame=function(e){var t;return function(n){t||(t=new Set,Kx(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,c=s.onChange,l=s.onChanged;if(c||l){var u=a?(0,e.__assign)((0,e.__assign)({},n[o]),{selected:!i}):n[o];c&&c((0,e.__assign)((0,e.__assign)({},t),{target:r._dropDown.current}),u,o),l&&l(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 Fd.createElement(Fd.Fragment,null,r._getTitle(e))},r._onRenderPlaceholder=function(e){return r._getPlaceholder()?Fd.createElement(Fd.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,c=a<=lD.medium,l={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),c?Fd.createElement(PW,(0,e.__assign)({closeButtonAriaLabel:"Close",focusTrapZoneProps:l,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:r._onDismiss,styles:u},o),r._renderFocusableList(t)):Fd.createElement(uA,(0,e.__assign)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Ik,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 Fd.createElement(bP,{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?[Fd.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 VU.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 VU.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(),Fd.createElement(Fd.Fragment,null,a)},r._onRenderItem=function(e){switch(e.itemType){case VU.Divider:return r._renderSeparator(e);case VU.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,c=void 0===s?[]:s,l=!(void 0===t.index||!c)&&c.indexOf(t.index)>-1,u=t.hidden?r._classNames.dropdownItemHidden:l&&!0===t.disabled?r._classNames.dropdownItemSelectedAndDisabled:l?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",f=r._classNames.subComponentStyles?r._classNames.subComponentStyles.multiSelectItem:void 0;return r.props.multiSelect?Fd.createElement(QL,{id:p,key:t.key,disabled:t.disabled,onChange:r._onItemClick(t),inputProps:(0,e.__assign)({"aria-selected":l,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:P_(u,"is-multi-select"),checked:l,styles:f,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}):Fd.createElement(eW,{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":l?"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 Fd.createElement("span",{className:r._classNames.dropdownOptionText},e.text)},r._onRenderMultiselectOption=function(e){return Fd.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=vv().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(bke){}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 rv:r.setState({isOpen:!i});break;case iv:if(!i)return;r.setState({isOpen:!1});break;case pv: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 fv: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 uv:r.props.multiSelect||(t=r._moveIndex(e,1,0,n));break;case lv:r.props.multiSelect||(t=r._moveIndex(e,-1,r.props.options.length-1,n));break;case av: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===av?(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 pv:i?r.setState({isOpen:!1}):r._host.current&&(o=Mx(r._host.current,r._host.current.lastChild,!0));break;case uv:case lv:case sv:case cv:break;case fv:!i&&r._host.current&&(o=Rx(r._host.current,r._host.current.firstChild,!0));break;case iv:r.setState({isOpen:!1});break;case nv:r.setState({isOpen:!1});var a=vv();a&&(e.shiftKey?null===(t=Lx(a.body,r._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(n=Ox(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?Fd.createElement(fT,{className:r._classNames.label,id:r._labelId,required:n,styles:i,disabled:o},t):null},Yx(r);n.multiSelect,n.selectedKey,n.selectedKeys,n.defaultSelectedKey,n.defaultSelectedKeys;var o=n.options;return r._id=n.id||fC("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 DW(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,c=n.errorMessage,l=n.styles,u=n.theme,d=n.panelProps,p=n.calloutProps,h=n.onRenderTitle,f=void 0===h?this._getTitle:h,m=n.onRenderContainer,g=void 0===m?this._onRenderContainer:m,v=n.onRenderCaretDown,y=void 0===v?this._onRenderCaretDown:v,b=n.onRenderLabel,_=void 0===b?this._onRenderLabel:b,C=n.onRenderItem,E=void 0===C?this._onRenderItem:C,w=n.hoisted.selectedIndices,x=this.state,k=x.isOpen,S=x.calloutRenderEdge,T=x.hasFocus,I=n.onRenderPlaceholder||n.onRenderPlaceHolder||this._getPlaceholder;i!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(i);var A=DW(i,w),P=A_(n,I_),D=this._isDisabled(),R=t+"-errorMessage";this._classNames=RW(l,{theme:u,className:r,hasError:!!(c&&c.length>0),hasLabel:!!o,isOpen:k,required:s,disabled:D,isRenderingPlaceholder:!A.length,panelClassName:d?d.className:void 0,calloutClassName:p?p.className:void 0,calloutRenderEdge:S});var M=!!c&&c.length>0;return Fd.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":k?this._listId:void 0},_(this.props,this._onRenderLabel),Fd.createElement("div",(0,e.__assign)({"data-is-focusable":!D,"data-ktp-target":!0,ref:this._dropDown,id:t,tabIndex:D?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":k?"true":"false","aria-label":a,"aria-labelledby":o&&!a?sP(this._labelId,this._optionId):void 0,"aria-describedby":M?this._id+"-errorMessage":void 0,"aria-required":s,"aria-disabled":D,"aria-controls":k?this._listId:void 0},P,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),Fd.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":T?"polite":void 0,"aria-atomic":!!T||void 0,"aria-invalid":M},A.length?f(A,this._onRenderTitle):I(n,this._onRenderPlaceholder)),Fd.createElement("span",{className:this._classNames.caretDownWrapper},y(n,this._onRenderCaretDown))),k&&g((0,e.__assign)((0,e.__assign)({},n),{onDismiss:this._onDismiss,onRenderItem:E}),this._onRenderContainer),M&&Fd.createElement("div",{role:"alert",id:R,className:this._classNames.errorMessage},c))},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,c=n.hoisted.selectedIndices,l=void 0===c?[]:c,u=!!l&&l.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!==l[0]){if(a)if(d=l?this._copyArray(l):[],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===VU.Header||o[n].itemType===VU.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 Fd.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},Fd.createElement(Ck,{ref:this._focusZone,direction:mx.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?Fd.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 Fd.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===ov||"Meta"===e.key},n.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(kP()||SP())},n.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},n.defaultProps={options:[]},n}(Fd.Component),zW={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"},VW=((LW={})["".concat(By,", ").concat(Hy.replace("@media ",""))]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),LW),UW={selectors:(0,e.__assign)((OW={},OW[By]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},OW[".ms-Checkbox-checkbox"]=(FW={},FW[By]={borderColor:"HighlightText"},FW),OW),VW)},WW={selectors:(BW={},BW[By]={borderColor:"Highlight"},BW)},jW=Uy(0,zy),qW=Lw(NW,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h,f=t.theme,m=t.hasError,g=t.hasLabel,v=t.className,y=t.isOpen,b=t.disabled,_=t.required,C=t.isRenderingPlaceholder,E=t.panelClassName,w=t.calloutClassName,x=t.calloutRenderEdge;if(!f)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var k=$y(zW,f),S=f.palette,T=f.semanticColors,I=f.effects,A=f.fonts,P={color:T.menuItemTextHovered},D={color:T.menuItemText},R={borderColor:T.errorText},M=[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%"}}],N=[k.dropdownItemHeader,(0,e.__assign)((0,e.__assign)({},A.medium),{fontWeight:Dy.semibold,color:T.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(n={},n[By]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)})],L=T.menuItemBackgroundPressed,O=function(e){var t,n;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:T.menuItemTextHovered,backgroundColor:e?L:T.menuItemBackgroundHovered},UW],"&.is-multi-select:hover":[{backgroundColor:e?L:"transparent"},UW],"&:active:hover":[{color:T.menuItemTextHovered,backgroundColor:e?T.menuItemBackgroundHovered:T.menuItemBackgroundPressed},UW]},t[".".concat(jy," &:focus:after")]=(n={left:0,top:0,bottom:0,right:0},n[By]={inset:"2px"},n),t[By]={border:"none"},t)}},F=(0,e.__spreadArray)((0,e.__spreadArray)([],M,!0),[{backgroundColor:L,color:T.menuItemTextHovered},O(!0),UW],!1),B=(0,e.__spreadArray)((0,e.__spreadArray)([],M,!0),[{color:T.disabledText,cursor:"default",selectors:(r={},r[By]={color:"GrayText",border:"none"},r)}],!1),H=x===MT.bottom?"".concat(I.roundedCorner2," ").concat(I.roundedCorner2," 0 0"):"0 0 ".concat(I.roundedCorner2," ").concat(I.roundedCorner2),z=x===MT.bottom?"0 0 ".concat(I.roundedCorner2," ").concat(I.roundedCorner2):"".concat(I.roundedCorner2," ").concat(I.roundedCorner2," 0 0");return{root:[k.root,v],label:k.label,dropdown:[k.dropdown,Ob,A.medium,{color:T.menuItemText,borderColor:T.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(o={},o["&:hover ."+k.title]=[!b&&P,{borderColor:y?S.neutralSecondary:S.neutralPrimary},WW],o["&:focus ."+k.title]=[!b&&P,{selectors:(i={},i[By]={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(S.themePrimary),borderRadius:"2px",selectors:(a={},a[By]={color:"Highlight"},a)}],o["&:active ."+k.title]=[!b&&P,{borderColor:S.themePrimary},WW],o["&:hover ."+k.caretDown]=!b&&D,o["&:focus ."+k.caretDown]=[!b&&D,{selectors:(s={},s[By]={color:"Highlight"},s)}],o["&:active ."+k.caretDown]=!b&&D,o["&:hover ."+k.titleIsPlaceHolder]=!b&&D,o["&:focus ."+k.titleIsPlaceHolder]=!b&&D,o["&:active ."+k.titleIsPlaceHolder]=!b&&D,o["&:hover ."+k.titleHasError]=R,o["&:active ."+k.titleHasError]=R,o)},y&&"is-open",b&&"is-disabled",_&&"is-required",_&&!g&&{selectors:(c={":before":{content:"'*'",color:T.errorText,position:"absolute",top:-5,right:-10}},c[By]={selectors:{":after":{right:-14}}},c)}],title:[k.title,Ob,{backgroundColor:T.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:T.inputBorder,borderRadius:y?H:I.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},C&&[k.titleIsPlaceHolder,{color:T.inputPlaceholderText}],m&&[k.titleHasError,R],b&&{backgroundColor:T.disabledBackground,border:"none",color:T.disabledText,cursor:"default",selectors:(l={},l[By]=(0,e.__assign)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],caretDownWrapper:[k.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!b&&{cursor:"pointer"}],caretDown:[k.caretDown,{color:S.neutralSecondary,fontSize:A.small.fontSize,pointerEvents:"none"},b&&{color:T.disabledText,selectors:(u={},u[By]=(0,e.__assign)({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)}],errorMessage:(0,e.__assign)((0,e.__assign)({color:T.errorText},f.fonts.small),{paddingTop:5}),callout:[k.callout,{boxShadow:I.elevation8,borderRadius:z,selectors:(d={},d[".ms-Callout-main"]={borderRadius:z},d)},w],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[k.dropdownItems,{display:"block"}],dropdownItem:(0,e.__spreadArray)((0,e.__spreadArray)([],M,!0),[O()],!1),dropdownItemSelected:F,dropdownItemDisabled:B,dropdownItemSelectedAndDisabled:[F,B,{backgroundColor:"transparent"}],dropdownItemHidden:(0,e.__spreadArray)((0,e.__spreadArray)([],M,!0),[{display:"none"}],!1),dropdownDivider:[k.dropdownDivider,{height:1,backgroundColor:T.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:N,dropdownItemHeaderHidden:(0,e.__spreadArray)((0,e.__spreadArray)([],N,!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(jy," &:focus + label::before")]={outlineOffset:"0px"},p)}},panel:{root:[E],main:{selectors:(h={},h[jW]={width:272},h)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});qW.displayName="Dropdown";var GW,KW,YW={height:45},QW=function(e){var t=e.width,n=void 0===t?145:t;return Bd().createElement(z_,{style:YW,verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(aM,{width:n,height:16}))},XW=function(){return Bd().createElement(z_,{verticalFill:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(dT,{size:XS.medium}))},ZW=function(t){var n,r=t["aria-label"],o=t["data-bi-prefix"],i=t.value,a=t.pageArea,s=t.placeholder,c=t.options,l=t.onChange,u=t.label,d=t.width,p=t.calloutWidth,h=t.calloutPosition,f=void 0===h?"bottom-center":h,m=t.alignTitle,g=t.maxHeight,v=t.descriptions,y=void 0!==v&&v,b=t.disabled,_=void 0!==b&&b,C=t.multiSelect,E=void 0!==C&&C,w=t.dropdownStyle,x=void 0===w?"default":w,k=t.title,S=t.componentRef,T=t.calloutPreventDismissOnScroll,I=void 0!==T&&T,A=t.required,P=t.disableResponsiveMode,D=void 0!==P&&P,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"]),M=bm();V_("Dropdown",R.id),Ek("Dropdown",R);var N,L=Mw(),O=(0,Fd.useRef)(null),F="borderless"===x?L.semanticColors.bodyBackground:L.palette.neutralHigh,B={title:{backgroundColor:_?L.palette.neutralLighterAlt:F,borderColor:"borderless"===x?"transparent":void 0,textAlign:m},dropdownItem:{backgroundColor:L.palette.neutralHigh,height:"auto"},dropdownItemSelected:{height:"auto"},dropdownItemDisabled:{backgroundColor:L.palette.neutralHigh,height:"auto"},dropdownOptionText:{overflow:"visible",whiteSpace:"normal"},dropdownItemSelectedAndDisabled:(n={},n[tS]={backgroundColor:"transparent",border:"1px solid highlight"},n.height="auto",n)};d&&(B.dropdown={width:d}),y&&(B.dropdownItem={backgroundColor:L.palette.neutralHigh,selectors:{".ms-Button-flexContainer":{width:"100%"}},height:"auto"},B.dropdownItemSelected={selectors:{".ms-Button-flexContainer":{width:"100%"},height:"auto"}},N=function(e){return Bd().createElement("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"}},Bd().createElement("span",null,e.text),e.description?Bd().createElement("span",null,e.description):Bd().createElement(Bd().Fragment,null))});var H={};E?H.selectedKeys=Array.isArray(i)?i.slice():null===i?i:[i]:H.selectedKey=Array.isArray(i)?i.slice():i;var z=c.map((function(t,n){return"divider"===t.itemType?{key:"divider_".concat(n),text:"",itemType:VU.Divider}:(0,e.__assign)((0,e.__assign)({},t),{itemType:VU.Normal})})),V={calloutMaxHeight:g,directionalHint:Bk[f],preventDismissOnEvent:I?function(e){return"scroll"===e.type}:void 0},U=(0,e.__assign)({placeholder:s,options:z,onChange:function(e,t,n){if(t){var r={clickId:"".concat(o,"-").concat(t.id),pageArea:a};M.reportClick(r),l(e,{key:t.key.toString(),text:t.text,ariaLabel:t.ariaLabel,id:t.id},t.selected,n)}else l(e,void 0,void 0,n)},disabled:_,required:A,label:u,dropdownWidth:p,ariaLabel:r,calloutProps:V,styles:B,onRenderOption:N,multiSelect:E,componentRef:S},H);if(void 0!==k&&(U.onRenderTitle=function(){return Bd().createElement(Bd().Fragment,null,k)}),D&&(U.responsiveMode=lD.unknown),R.operationData){var W=R.operationData,j=(0,e.__rest)(R,["operationData"]);U=(0,e.__assign)((0,e.__assign)({},U),j);var q=void 0;q="callout"===W.errorProps.errorType?Bd().createElement(Bd().Fragment,null,Bd().createElement("div",{ref:O,style:{width:d}},Bd().createElement(qW,(0,e.__assign)({},U))),Bd().createElement(rR,{calloutPosition:"bottom-center",targetOrTriggerButton:O,errorMessageAriaLabel:W.errorProps.errorCallout.errorMessageAriaLabel,errorMessage:W.errorProps.errorCallout.errorMessage})):Bd().createElement(qW,(0,e.__assign)({},U,{errorMessage:W.errorProps.errorMessage}));var G=(0,e.__assign)((0,e.__assign)({},B),{title:{backgroundColor:L.palette.neutralHigh,border:"1px solid ".concat(L.palette.neutralQuaternary),textAlign:m}});return Bd().createElement(hx,{operationData:W.progressViewOperationData,firstLoadView:Bd().createElement(QW,null),updatingView:Bd().createElement(qW,(0,e.__assign)({},U,{disabled:!0,onRenderCaretDown:XW,styles:G})),finishedView:Bd().createElement(qW,(0,e.__assign)({},U)),updateFailedView:q,failedView:void 0})}return U=(0,e.__assign)((0,e.__assign)({},U),R),Bd().createElement(qW,(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"}(GW||(GW={}));var JW,$W,ej,tj,nj=((KW={})[GW.info]="Info",KW[GW.warning]="Info",KW[GW.error]="ErrorBadge",KW[GW.blocked]="Blocked2",KW[GW.severeWarning]="Warning",KW[GW.success]="Completed",KW),rj=Ww(),oj=function(e){switch(e){case GW.blocked:case GW.error:case GW.severeWarning:return"assertive"}return"polite"},ij=function(e){switch(e){case GW.blocked:case GW.error:case GW.severeWarning:return"alert"}return"status"},aj=Fd.forwardRef((function(t,n){var r=sU(!1),o=r[0],i=r[1].toggle,a=cD("MessageBar"),s=t.actions,c=t.className,l=t.children,u=t.overflowButtonAriaLabel,d=t.dismissIconProps,p=t.styles,h=t.theme,f=t.messageBarType,m=void 0===f?GW.info:f,g=t.onDismiss,v=void 0===g?void 0:g,y=t.isMultiline,b=void 0===y||y,_=t.truncated,C=t.dismissButtonAriaLabel,E=t.messageBarIconProps,w=t.role,x=t.delayedRender,k=void 0===x||x,S=t.expandButtonProps,T=A_(t,s_,["className","role"]),I=rj(p,{theme:h,messageBarType:m||GW.info,onDismiss:void 0!==v,actions:void 0!==s,truncated:_,isMultiline:b,expandSingleLine:o,className:c}),A={iconName:o?"DoubleChevronUp":"DoubleChevronDown"},P=s||v?{"aria-describedby":a,role:"region"}:{},D=s?Fd.createElement("div",{className:I.actions},s):null,R=v?Fd.createElement(eR,{disabled:!1,className:I.dismissal,onClick:v,iconProps:d||{iconName:"Clear"},title:C,ariaLabel:C}):null;return Fd.createElement("div",(0,e.__assign)({ref:n,className:I.root},P),Fd.createElement("div",{className:I.content},Fd.createElement("div",{className:I.iconContainer,"aria-hidden":!0},E?Fd.createElement(bP,(0,e.__assign)({},E,{className:P_(I.icon,E.className)})):Fd.createElement(bP,{iconName:nj[m],className:I.icon})),Fd.createElement("div",{className:I.text,id:a,role:w||ij(m),"aria-live":oj(m)},Fd.createElement("span",(0,e.__assign)({className:I.innerText},T),k?Fd.createElement(Yw,null,Fd.createElement("span",null,l)):Fd.createElement("span",null,l))),!b&&!D&&_&&Fd.createElement("div",{className:I.expandSingleLine},Fd.createElement(eR,(0,e.__assign)({disabled:!1,className:I.expand,onClick:i,iconProps:A,ariaLabel:u,"aria-expanded":o},S))),!b&&D,!b&&R&&Fd.createElement("div",{className:I.dismissSingleLine},R),b&&R),b&&D)}));aj.displayName="MessageBar";var sj={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"},cj=((JW={})[GW.error]="errorBackground",JW[GW.blocked]="errorBackground",JW[GW.success]="successBackground",JW[GW.warning]="warningBackground",JW[GW.severeWarning]="severeWarningBackground",JW[GW.info]="infoBackground",JW),lj=(($W={})[GW.error]="errorIcon",$W[GW.blocked]="errorIcon",$W[GW.success]="successIcon",$W[GW.warning]="warningIcon",$W[GW.severeWarning]="severeWarningIcon",$W[GW.info]="infoIcon",$W),uj=((ej={})[GW.error]="#ff0000",ej[GW.blocked]="#ff0000",ej[GW.success]="#bad80a",ej[GW.warning]="#fff100",ej[GW.severeWarning]="#ff0000",ej[GW.info]="WindowText",ej),dj=((tj={})[GW.error]="#e81123",tj[GW.blocked]="#e81123",tj[GW.success]="#107c10",tj[GW.warning]="#966400",tj[GW.severeWarning]="#d83b01",tj[GW.info]="WindowText",tj),pj=Lw(aj,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h=t.theme,f=t.className,m=t.onDismiss,g=t.truncated,v=t.isMultiline,y=t.expandSingleLine,b=t.messageBarType,_=void 0===b?GW.info:b,C=h.semanticColors,E=h.fonts,w=Uy(0,479),x=$y(sj,h),k={fontSize:Ry.xSmall,height:10,lineHeight:"10px",color:C.messageText,selectors:(n={},n[By]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),n)},S=[Yy(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:[x.root,E.medium,_===GW.error&&x.error,_===GW.blocked&&x.blocked,_===GW.severeWarning&&x.severeWarning,_===GW.success&&x.success,_===GW.warning&&x.warning,v?x.multiline:x.singleline,!v&&m&&x.dismissalSingleLine,!v&&g&&x.expandingSingleLine,{background:C[cj[_]],boxSizing:"border-box",color:C.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(r={".ms-Link":{color:C.messageLink,selectors:{":hover":{color:C.messageLinkHovered}}}},r[By]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:"transparent",border:"1px solid ".concat(uj[_]),color:"WindowText"}),r[Hy]={border:"1px solid ".concat(dj[_])},r)},v&&{flexDirection:"column"},f],content:[x.content,(o={display:"flex",width:"100%",lineHeight:"normal"},o[w]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},o)],iconContainer:[x.iconContainer,(i={fontSize:Ry.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},i[w]={gridArea:"icon"},i)],icon:{color:C[lj[_]],selectors:(a={},a[By]=(0,e.__assign)((0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),a)},text:[x.text,(0,e.__assign)((0,e.__assign)({minWidth:0,display:"flex",flexGrow:1,margin:8},E.small),(s={},s[w]={gridArea:"text"},s.selectors=(c={},c[By]=(0,e.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c),s)),!m&&{marginRight:12}],innerText:[x.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[w]={overflow:"visible",whiteSpace:"pre-wrap"},l)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[x.dismissSingleLine,(u={},u[w]={gridArea:"close"},u)],expandSingleLine:x.expandSingleLine,dismissal:[x.dismissal,S],expand:[x.expand,S],actions:[v?x.actions:x.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[w]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":(p={marginLeft:8},p[w]={marginBottom:0},p)},d),v&&{marginBottom:8},m&&!v&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),hj={info:GW.info,secondary:GW.info,warning:GW.warning,"severe-warning":GW.severeWarning,error:GW.error,blocked:GW.blocked,success:GW.success},fj=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[By]={".ms-Link":{color:"linktext"},".ms-Link > span":{color:"linktext"}},a)};if(r&&(s.actions={alignItems:"flex-end",marginBottom:"8px",marginRight:"24px"},s.innerText=jg(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 c=void 0;switch(i){case"floating":c={borderRadius:"8px",boxShadow:gT.rest};break;case"embedded-dialog":c={borderRadius:"4px",border:"1px solid ".concat(t.palette.neutralLighterAlt)}}c&&(s.root=(0,e.__assign)((0,e.__assign)({},s.root),c))}return s},mj=function(e){return null===e||void 0===e?void 0:e["aria-label"]},gj=function(t){var n=t.messageContent,r=t.messageHeader,o=t.messageBarType,i=void 0===o?"info":o,a=t.actionProps,s=t.dismissButtonProps,c=t.hideIcon,l=t.iconProps,u=t.messageBarVariant,d=void 0===u?"default":u,p=t.isMultiline,h=t.messageContentId,f=(0,e.__rest)(t,["messageContent","messageHeader","messageBarType","actionProps","dismissButtonProps","hideIcon","iconProps","messageBarVariant","isMultiline","messageContentId"]),m=bm(),g=(0,Fd.useRef)(null);V_("MessageBar",f.id),Ek("MessageBar",f),(0,Fd.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,_=Mw();if(a)if("noHrefLink"===a.actionType){a.actionType;var C=(0,e.__rest)(a,["actionType"]);v=Bd().createElement(IA,(0,e.__assign)({},C))}else if("button"===a.actionType){a.actionType,C=(0,e.__rest)(a,["actionType"]);v=Bd().createElement(hR,(0,e.__assign)({type:"primaryAlt"},C))}else{a.actionType,C=(0,e.__rest)(a,["actionType"]);v=Bd().createElement(TA,(0,e.__assign)({},C))}return y="string"===typeof n?Bd().createElement(DT,null,n):Bd().createElement(AA,(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,_,l),Bd().createElement(pj,(0,e.__assign)({ref:g,messageBarType:hj[i],onDismiss:s?function(){if(s){var e={clickId:"".concat(s["data-bi-id"]),pageArea:"".concat(s.pageArea)};m.reportClick(e),s.onDismiss()}}:void 0,dismissButtonAriaLabel:mj(s),isMultiline:null!==p&&void 0!==p&&p,actions:v,styles:fj(_,c,r,i,d),messageBarIconProps:b},f),Bd().createElement(wT,{childrenGap:6,id:h},Bd().createElement(DT,{variant:"subjectTitle",block:!0},r),y))},vj=function(t){var n=t.errorMessage,r=t.description,o=t.imageSrc,i=t.correlationVector,a=t.align,s=void 0===a?"auto":a,c=t.buttonProps,l=(0,e.__rest)(t,["errorMessage","description","imageSrc","correlationVector","align","buttonProps"]);return V_("ErrorIllustration",l.id),Ek("ErrorIllustration",l),Bd().createElement(wT,(0,e.__assign)({},l),Bd().createElement(xT,{align:s},Bd().createElement(jR,{imageType:"ariaHiddenImage",src:o})),Bd().createElement(xT,{align:s},Bd().createElement(YR,{image:{iconName:"Error",imageType:"icon"},size:"sm"},n)),Bd().createElement(xT,{align:s},Bd().createElement(wT,{margin:"0 26px",childrenGap:"26px"},r?Bd().createElement(xT,{align:s},Bd().createElement(DT,{variant:"bodySecondaryText"},r)):null,Bd().createElement(xT,{align:s},Bd().createElement(DT,null,"TraceID: ",i)),c?Bd().createElement(xT,{align:s},Bd().createElement(hR,(0,e.__assign)({},c))):null)))},yj=function(){var e;return{root:(e={borderRadius:"8px",overflow:"hidden",boxShadow:Gm.depth4},e[By]={border:"1px solid WindowText"},e)}};function bj(e){return function(){for(var t=Mw(),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 Xb(n)}}var _j,Cj,Ej,wj,xj,kj,Sj,Tj,Ij,Aj="--comparison-card-col",Pj="4px",Dj=(bj({root:function(e){return{display:"flex",flexDirection:"column",backgroundColor:e.palette.neutralHigh,borderRadius:Pj,boxShadow:gT.hover}},badge:function(e){return{display:"flex",padding:"5px 24px",borderTopLeftRadius:Pj,borderTopRightRadius:Pj,backgroundColor:e.palette.highlighter}},header:{margin:"10px 24px"},featureList:{listStyle:"none",margin:"0 24px",marginBottom:"auto",padding:0,columns:"var(".concat(Aj,", auto)")," > *":{breakInside:"avoid"}},actions:{display:"flex",flexDirection:"column",padding:"16px 24px 24px 24px"," > *:not(:last-child)":{marginBottom:"12px"}}}),bj({badgeCenter:{textAlign:"center",justifyContent:"center"},headerCenter:{textAlign:"center"},headerNoBadge:{marginTop:"40px"},actionsCenter:{textAlign:"center"}}),bj({root:(_j={display:"flex",flexDirection:"column",gap:"16px",listStyle:"none",padding:0,margin:0},_j[Aj]="auto",_j["> *"]={flex:1},_j),groupItem:{display:"flex","> *":{flex:1}}}),{flexDirection:"row",flexWrap:"wrap","> *":{flexBasis:"49%"}}),Rj={"> *":{flexBasis:"0"}},Mj={"> :first-child":(Cj={flexBasis:"100%"},Cj[Aj]=2,Cj)},Nj={"> :first-child":(Ej={flexBasis:"0"},Ej[Aj]="auto",Ej)},Lj=(bj({rootL:(wj={},wj[Gk]={flexDirection:"row"},wj),rootXl:(xj={},xj[Kk]={flexDirection:"row"},xj)}),bj({rootL:(kj={},kj[Gk]=(0,e.__assign)({},Dj),kj[Kk]=(0,e.__assign)({},Rj),kj),rootXl:(Sj={},Sj[Kk]=(0,e.__assign)({},Dj),Sj[Yk]=(0,e.__assign)({},Rj),Sj)}),bj({rootL:(Tj={},Tj[Gk]=(0,e.__assign)((0,e.__assign)({},Dj),Mj),Tj[Kk]=(0,e.__assign)((0,e.__assign)({},Rj),Nj),Tj),rootXl:(Ij={},Ij[Kk]=(0,e.__assign)((0,e.__assign)({},Dj),Mj),Ij[Yk]=(0,e.__assign)((0,e.__assign)({},Rj),Nj),Ij)}),function(e){var t=e.url;V_("IrisBeacon");var n=function(e){return e&&e.replace(/^http:\/\//i,"https://")}(t);return n?Bd().createElement(jR,{imageType:"ariaHiddenImage",src:n}):null});function Oj(e,t){var n=Bd().createElement(Bd().Fragment,null);if(e){var r=e.replace(/{ACTION}/g,t);n=Bd().createElement(Lj,{url:r})}return n}bj({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"}});var Fj=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);if("ThreeThreeThreeThree"===n)return Bd().createElement(Bj,(0,e.__assign)({},r))},Bj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.fourthSegment,i=e.backgroundColor;switch(sS()){case"xxxl":case"xxl":case"xl":return Bd().createElement(CT,{totalSlots:12,padding:"16px",backgroundColor:i},Bd().createElement(_T,{slots:3},t),Bd().createElement(_T,{slots:3},n),Bd().createElement(_T,{slots:3},r),Bd().createElement(_T,{slots:3},o));case"l":return Bd().createElement(wT,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:i},Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:6},t),Bd().createElement(_T,{slots:6},n)),Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:6},r),Bd().createElement(_T,{slots:6},o)));case"m":case"s":return Bd().createElement(wT,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:i},t,n,r,o)}},Hj=function(e){var t=e.segment,n=e.backgroundColor;return Bd().createElement(wT,{horizontal:!1,padding:"16px",backgroundColor:n},t)},zj=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"FourFourFour":return Bd().createElement(Vj,(0,e.__assign)({},r));case"SixThreeThree":return Bd().createElement(Uj,(0,e.__assign)({},r))}},Vj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.backgroundColor;switch(sS()){case"xxxl":case"xxl":case"xl":return Bd().createElement(CT,{totalSlots:12,padding:"16px",backgroundColor:o},Bd().createElement(_T,{slots:4},t),Bd().createElement(_T,{slots:4},n),Bd().createElement(_T,{slots:4},r));case"l":case"m":case"s":return Bd().createElement(wT,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r)}},Uj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,o=e.backgroundColor;switch(sS()){case"xxxl":case"xxl":case"xl":return Bd().createElement(CT,{totalSlots:12,padding:"16px",backgroundColor:o},Bd().createElement(_T,{slots:6},t),Bd().createElement(_T,{slots:3},n),Bd().createElement(_T,{slots:3},r));case"l":return Bd().createElement(wT,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:6},n),Bd().createElement(_T,{slots:6},r)));case"m":case"s":return Bd().createElement(wT,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r)}},Wj=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);switch(n){case"SixSix":return Bd().createElement(jj,(0,e.__assign)({},r));case"OneThree":return Bd().createElement(qj,(0,e.__assign)({},r));case"OneTwo":return Bd().createElement(Gj,(0,e.__assign)({},r));case"OneOne":return Bd().createElement(Kj,(0,e.__assign)({},r))}},jj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=sS(),s=Bd().createElement(CT,{totalSlots:12,padding:"16px",backgroundColor:r},Bd().createElement(_T,{slots:6},t),Bd().createElement(_T,{slots:6},n)),c=Bd().createElement(wT,{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:c;case"m":case"s":return c}},qj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=sS(),s=Bd().createElement(CT,{totalSlots:4,padding:"16px",backgroundColor:r},Bd().createElement(_T,{slots:1},t),Bd().createElement(_T,{slots:3},n)),c=Bd().createElement(wT,{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:c;case"m":case"s":return c}},Gj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=sS(),s=Bd().createElement(CT,{totalSlots:3,padding:"16px",backgroundColor:r},Bd().createElement(_T,{slots:1},t),Bd().createElement(_T,{slots:2},n)),c=Bd().createElement(wT,{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:c;case"m":case"s":return c}},Kj=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,o=e.compact,i=void 0!==o&&o,a=sS(),s=Bd().createElement(CT,{totalSlots:2,padding:"2px",backgroundColor:r},Bd().createElement(_T,{slots:1},t),Bd().createElement(_T,{slots:1},n)),c=Bd().createElement(wT,{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:c;case"m":case"s":return c}},Yj=function(t){var n=t.variant,r=(0,e.__rest)(t,["variant"]);if("SixSix"===n)return Bd().createElement(Zj,(0,e.__assign)({},r))},Qj=function(e){return{root:{width:"50%",display:"flex",flexDirection:"column",flex:1,minHeight:e}}},Xj=function(e){return{root:{height:e,minHeight:e,display:"flex",flexDirection:"column",flexGrow:1}}},Zj=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(sS()){case"xxxl":case"xxl":case"xl":return Bd().createElement(wT,{horizontal:!0,childrenGap:i,backgroundColor:r},Bd().createElement(z_,{styles:Qj(a),doNotRenderFalsyValues:!0},t),Bd().createElement(z_,{styles:Qj(a),doNotRenderFalsyValues:!0},n));case"l":case"m":case"s":return Bd().createElement(wT,{horizontal:!1,childrenGap:i,backgroundColor:r},Bd().createElement(z_,{styles:Xj(a),doNotRenderFalsyValues:!0},t),Bd().createElement(z_,{styles:{root:{display:"flex",flexDirection:"column",flex:1}},doNotRenderFalsyValues:!0},n))}},Jj=[qz,jz,function(t){var n=t.impressionBeaconUrl,r=t.clickBeaconUrl,o=t.ctaProps,i=(0,e.__rest)(t,["impressionBeaconUrl","clickBeaconUrl","ctaProps"]);V_("IrisFeature",i.id);var a=(0,Fd.useState)(!1),s=a[0],c=a[1],l=(0,Fd.useState)(!1),u=l[0],d=l[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),c(!0)}})})}if(o.length>1){var f=o[1].actionProps;p.push({actionProps:(0,e.__assign)((0,e.__assign)({},f),{onClick:function(e){(null===f||void 0===f?void 0:f.onClick)&&f.onClick(e),d(!0)}})})}}return Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,(0,e.__assign)({ctaProps:p},i)),function(e){return e?Bd().createElement(Lj,{url:e}):Bd().createElement(Bd().Fragment,null)}(n),s?Oj(r,"click1"):null,u?Oj(r,"click2"):null)},gj,Hj,Wj,zj,Fj];var $j=[TV,gj,Yj];var eq,tq,nq=function(e,t){return{root:{borderBottom:t?"1px solid ".concat(e.palette.neutralLighter):"0px"}}},rq=function(e){var t=e.highlightArea,n=e.detailsArea,r=Mw();return(0,Fd.useEffect)((function(){if(t)if(Array.isArray(t))for(var e=0;e<t.length;e++)gx(t[e],Jj,"ExpandedFeatureGroupContent");else gx(t,Jj,"ExpandedFeatureGroupContent")}),[t]),(0,Fd.useEffect)((function(){if(n)if(Array.isArray(n))for(var e=0;e<n.length;e++)gx(n[e],$j,"ExpandedFeatureGroupContent");else gx(n,$j,"ExpandedFeatureGroupContent")}),[n]),Bd().createElement(z_,{doNotRenderFalsyValues:!0},t?Bd().createElement(z_,{styles:nq(r,!!n),doNotRenderFalsyValues:!0},t):null,n?Bd().createElement(z_,{doNotRenderFalsyValues:!0},n):null)},oq=function(t){var n=t.drawerAreaProps,r=t.highlightArea,o=t.detailsArea;V_("ExpandedFeatureGroup");var i,a=Bd().createElement(z_,{styles:(i=!!n,{root:{marginTop:i?"1px":"0px"}}),doNotRenderFalsyValues:!0},Bd().createElement(rq,{highlightArea:r,detailsArea:o}));return Bd().createElement(z_,{styles:yj(),doNotRenderFalsyValues:!0},n?Bd().createElement(cV,(0,e.__assign)({borderRadius:"0px"},n),a):a)},iq="100vh",aq={root:{width:"100%",minHeight:iq}},sq={root:{overflowX:"hidden",width:"100vw",minHeight:iq}},cq=function(e){return{root:{position:"fixed",minHeight:"40px",zIndex:sp.twoUINavBar,width:"100%",backgroundColor:e.semanticColors.bodyBackground}}},lq={root:{flex:2,boxSizing:"border-box",width:"100%",selectors:(eq={"#uhf-footer > div":{paddingLeft:0,paddingRight:0}},eq[Xk]={padding:"0 16px 10px",width:"100%"},eq[qk]={padding:"0 32px 10px",width:"100%"},eq[Gk]={padding:"0 48px 10px",width:"100%"},eq[Kk]={padding:"0 54px 10px",width:"100%"},eq[Yk]={padding:"0 0 10px",margin:"0 auto",maxWidth:"968px",width:"100%"},eq[Qk]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},eq)}},uq=function(e){var t=e.messageBarContainer,n=e.leftNavContainer,r=e.children,o=e.id;V_("WithNavBarPageLayout",o);var i=sS(),a=Mw(),s=(0,Fd.useRef)(null);return(0,Fd.useLayoutEffect)((function(){if(s.current&&s.current.parentNode){var e=document.getElementById("uhf-footer");if(e){var t=e.parentElement;return s.current.parentNode.appendChild(e),function(){t.appendChild(e)}}}}),[]),Bd().createElement(z_,{horizontal:!0,styles:aq,doNotRenderFalsyValues:!0},"s"!==i?n:null,Bd().createElement(z_,{styles:sq,doNotRenderFalsyValues:!0},Bd().createElement("main",{role:"main",id:o,tabIndex:-1,style:{outline:"none"}},"s"===i?Bd().createElement(z_,{styles:cq(a),doNotRenderFalsyValues:!0},n):null,Bd().createElement(z_,{doNotRenderFalsyValues:!0},t),Bd().createElement(z_,{verticalAlign:"start",styles:lq,doNotRenderFalsyValues:!0},r,Bd().createElement("div",{ref:s})))))},dq="100vh",pq={root:{width:"100%",minHeight:dq}},hq={root:{overflowX:"hidden",width:"100vw",minHeight:dq}},fq={root:{boxSizing:"border-box",width:"100%",selectors:(tq={},tq[Xk]={padding:"0 16px 10px",width:"100%"},tq[qk]={padding:"0 32px 10px",width:"100%"},tq[Gk]={padding:"0 48px 10px",width:"100%"},tq[Kk]={padding:"0 54px 10px",width:"100%"},tq[Yk]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},tq[Qk]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},tq)}},mq=function(e){var t=e.messageBarContainer,n=e.children,r=e.id;return V_("WithoutNavBarPageLayout",r),Bd().createElement(z_,{horizontal:!0,styles:pq,doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:hq},Bd().createElement("main",{role:"main",id:r,tabIndex:-1,style:{outline:"none"}},Bd().createElement(z_,{doNotRenderFalsyValues:!0},t),Bd().createElement(z_,{verticalAlign:"start",styles:fq,doNotRenderFalsyValues:!0},n))))},gq=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 Bd().createElement(mq,{layoutType:i.layoutType,messageBarContainer:n,id:o},r);case"withNavBar":return Bd().createElement(uq,{layoutType:i.layoutType,messageBarContainer:n,leftNavContainer:i.leftNavContainer,id:o},r)}},vq=function(e){var t=e.variant,n=void 0===t?"AMC":t,r=e.content,o=e.cv,i=e.id;return V_("FatalError",i),Bd().createElement(OL,{variant:n},Bd().createElement(gq,{layoutType:"withoutNavBar",id:i},Bd().createElement(wT,{margin:"64px 0 48px 0"},Bd().createElement(xT,{align:"center",textAlignment:"center",padding:"37px 0 3px 0"},Bd().createElement(aT,{tag:"h2",variant:"pageBanner"},r.title)),Bd().createElement(xT,{align:"center",textAlignment:"center",padding:"4px 0 8px 0"},Bd().createElement(DT,{variant:"statusHeader"},r.summary))),Bd().createElement(wT,{padding:"24px 0 0 0"},Bd().createElement(xT,{align:"center"},Bd().createElement(DT,null,"TraceId: ",o)))))},yq="6.12vw",bq=("-".concat(yq),(0,Fd.forwardRef)((function(t,n){var r=t.mode,o=t.operationData,i=t.challengeSource,a=t.noAudioSupportMessage,s=t.playAudioButtonProps,c=t.switchToVisualWhenAudioFailedButtonProps,l=t.cannotLoadChallengeMessage,u=t.onNewChallengeRequested,d=t.reloaded,p=(0,Fd.useRef)(null),h=gm(),f=Bd().useState(!1),m=f[0],g=f[1];(0,Fd.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=Bd().createElement(JD,(0,e.__assign)({},s,{onClick:v,"data-testid":"playbutton"}),Bd().createElement(WS,{iconName:m?"Pause":"Play",size:"72px"})),b=d?Bd().createElement(wk,{shouldFocusOnMount:!0},y):[y],_=Bd().createElement(Bd().Fragment,null,"audio"===r?Bd().createElement(Bd().Fragment,null,Bd().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)}},Bd().createElement(DT,null,a),Bd().createElement(aR,(0,e.__assign)({},c,{onClick:function(e){u("visual")}}))),b):null,"visual"===r?Bd().createElement(Bd().Fragment,null,Bd().createElement(jR,{imageType:"ariaHiddenImage",src:i})):null),C=Bd().createElement(DT,{colorOverride:"error"},l),E="audio"===r?Bd().createElement(aM,{height:96,width:102}):Bd().createElement(aM,{height:96,width:216});return Bd().createElement(wT,{height:96,verticalAlign:"center"},Bd().createElement(hx,{operationData:{componentName:"".concat(o.componentName,".challengeBase"),operationName:o.operationName,defaultState:"inert"},firstLoadView:E,updatingView:E,updateFailedView:C,failedView:C,finishedView:_}))}))),_q=function(t){var n=t.mode,r=t.refreshChallengeButtonProps,o=t.switchToAudioButtonProps,i=t.switchToVisualButtonProps,a=t.bottomMargin,s=void 0===a?16:a,c=t.reloaded,l=t.onNewChallengeRequested,u=Bd().createElement(aR,(0,e.__assign)({iconName:"Volume"},o,{onClick:function(e){l("audio")}})),d=c?Bd().createElement(wk,{shouldFocusOnMount:!0},u):[u];return Bd().createElement(wT,{horizontal:!0,childrenGap:8,verticalAlign:"center",margin:"0px 0px ".concat(s,"px 0px")},Bd().createElement(aR,(0,e.__assign)({iconName:"Refresh"},r,{onClick:function(e){l(n)}})),"visual"===n?d:Bd().createElement(aR,(0,e.__assign)({iconName:"Photo2"},i,{onClick:function(e){l("visual")}})))},Cq=function(e){var t=e.mode,n=e.alignment,r=e.controlsBottomMargin,o=void 0===r?16:r,i=Bd().createElement(wT,null,Bd().createElement(wT,{margin:"24px 0px ".concat(o,"px 0px"),horizontal:!0,childrenGap:17},Bd().createElement(aM,{height:12,width:48}),Bd().createElement(aM,{height:12,width:48}))),a=Bd().createElement(wT,{margin:"8px 0px 8px 0px"},Bd().createElement(aM,{height:12,width:176})),s=Bd().createElement(wT,{margin:"0px 0px 8px 0px"},Bd().createElement(aM,{height:96,width:216})),c=Bd().createElement(wT,{margin:"0px 0px 8px 0px"},Bd().createElement(aM,{height:96,width:102})),l=Bd().createElement(aM,{height:25,width:432}),u=Bd().createElement(wT,{margin:"0px 0px 18px 0px"},Bd().createElement(aM,{height:8,width:113}));return"audio"===t?Bd().createElement(wT,{horizontalAlign:n},a,c,i,u,l):Bd().createElement(wT,{horizontalAlign:n},a,s,i,l)};var Eq,wq=Ww(),xq="TextField",kq=function(t){function n(e){var n=t.call(this,e)||this;n._textElement=Fd.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?Fd.createElement(fT,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?Fd.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=Sq(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},Yx(n),n._async=new LT(n),n._fallbackId=fC(xq),n._descriptionId=fC("TextFieldDescription"),n._labelId=fC("TextFieldLabel"),n._prefixId=fC("TextFieldPrefix"),n._suffixId=fC("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 Sq(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 c=Sq(e,t),l=this.value;c!==l&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),Tq(r)&&this._delayedValidate(l))},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,c=t.label,l=t.multiline,u=t.required,d=t.underlined,p=t.prefix,h=t.resizable,f=t.suffix,m=t.theme,g=t.styles,v=t.autoAdjustHeight,y=t.canRevealPassword,b=t.revealPasswordAriaLabel,_=t.type,C=t.onRenderPrefix,E=void 0===C?this._onRenderPrefix:C,w=t.onRenderSuffix,x=void 0===w?this._onRenderSuffix:w,k=t.onRenderLabel,S=void 0===k?this._onRenderLabel:k,T=t.onRenderDescription,I=void 0===T?this._onRenderDescription:T,A=this.state,P=A.isFocused,D=A.isRevealingPassword,R=this._errorMessage,M="boolean"===typeof i?i:!!R,N=!!y&&"password"===_&&function(){if("boolean"!==typeof Eq){var e=bv();if(null===e||void 0===e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");Eq=!(function(){var e,t=bv();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 Eq=!0}return Eq}(),L=this._classNames=wq(g,{theme:m,className:r,disabled:o,focused:P,required:u,multiline:l,hasLabel:!!c,hasErrorMessage:M,borderless:n,resizable:h,hasIcon:!!a,underlined:d,inputClassName:s,autoAdjustHeight:v,hasRevealButton:N});return Fd.createElement("div",{ref:this.props.elementRef,className:L.root},Fd.createElement("div",{className:L.wrapper},S(this.props,this._onRenderLabel),Fd.createElement("div",{className:L.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&Fd.createElement("div",{className:L.prefix,id:this._prefixId},E(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),a&&Fd.createElement(bP,(0,e.__assign)({className:L.icon},a)),N&&Fd.createElement("button",{"aria-label":b,className:L.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!D,type:"button"},Fd.createElement("span",{className:L.revealSpan},Fd.createElement(bP,{className:L.revealIcon,iconName:D?"Hide":"RedEye"}))),(void 0!==f||this.props.onRenderSuffix)&&Fd.createElement("div",{className:L.suffix,id:this._suffixId},x(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&Fd.createElement("span",{id:this._descriptionId},I(this.props,this._onRenderDescription),R&&Fd.createElement("div",{role:"alert"},Fd.createElement(Yw,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,Hb("Warning: 'value' prop on '".concat(xq,"' 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 Fd.createElement("span",{style:{paddingBottom:"1px"}},t)},n.prototype._onRenderSuffix=function(e){var t=e.suffix;return Fd.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?Fd.createElement("p",{className:this._classNames.errorMessage},Fd.createElement("span",{"data-automation-id":"error-message"},e)):Fd.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=A_(this.props,g_,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return Fd.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,c=t.suffix,l=t.type,u=void 0===l?"text":l,d=[];t.label&&d.push(this._labelId),(void 0!==s||i)&&d.push(this._prefixId),(void 0!==c||a)&&d.push(this._suffixId);var p=(0,e.__assign)((0,e.__assign)({type:this.state.isRevealingPassword?"text":u,id:this._id},A_(this.props,m_,["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 Fd.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||!Tq(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}(Fd.Component);function Sq(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"===typeof r?String(r):r}function Tq(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var Iq={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 Aq(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[By]={height:31},e)}]}}}var Pq=Lw(kq,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h,f=t.theme,m=t.className,g=t.disabled,v=t.focused,y=t.required,b=t.multiline,_=t.hasLabel,C=t.borderless,E=t.underlined,w=t.hasIcon,x=t.resizable,k=t.hasErrorMessage,S=t.inputClassName,T=t.autoAdjustHeight,I=t.hasRevealButton,A=f.semanticColors,P=f.effects,D=f.fonts,R=$y(Iq,f),M={background:A.disabledBackground,color:g?A.disabledText:A.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(n={},n[By]={background:"Window",color:g?"GrayText":"WindowText"},n)},N=[{color:A.inputPlaceholderText,opacity:1,selectors:(r={},r[By]={color:"GrayText"},r)}],L={color:A.disabledText,selectors:(o={},o[By]={color:"GrayText"},o)};return{root:[R.root,D.medium,y&&R.required,g&&R.disabled,v&&R.active,b&&R.multiline,C&&R.borderless,E&&R.underlined,Ob,{position:"relative"},m],wrapper:[R.wrapper,E&&[{display:"flex",borderBottom:"1px solid ".concat(k?A.errorText:A.inputBorder),width:"100%"},g&&{borderBottomColor:A.disabledBackground,selectors:(i={},i[By]=(0,e.__assign)({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},!g&&{selectors:{":hover":{borderBottomColor:k?A.errorText:A.inputBorderHovered,selectors:(a={},a[By]=(0,e.__assign)({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},v&&[{position:"relative"},Xy(k?A.errorText:A.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[R.fieldGroup,Ob,{border:"1px solid ".concat(A.inputBorder),borderRadius:P.roundedCorner2,background:A.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:A.inputBorderHovered,selectors:(s={},s[By]=(0,e.__assign)({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},v&&!E&&Xy(k?A.errorText:A.inputFocusBorderAlt,P.roundedCorner2),g&&{borderColor:A.disabledBackground,selectors:(c={},c[By]=(0,e.__assign)({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c),cursor:"default"},C&&{border:"none"},C&&v&&{border:"none",selectors:{":after":{border:"none"}}},E&&{flex:"1 1 0px",border:"none",textAlign:"left"},E&&g&&{backgroundColor:"transparent"},k&&!E&&{borderColor:A.errorText,selectors:{"&:hover":{borderColor:A.errorText}}},!_&&y&&{selectors:(l={":before":{content:"'*'",color:A.errorText,position:"absolute",top:-5,right:-10}},l[By]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[D.medium,R.field,Ob,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:A.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[By]={background:"Window",color:g?"GrayText":"WindowText"},u)},Bb(N),b&&!x&&[R.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&T&&{overflow:"hidden"},w&&!I&&{paddingRight:24},b&&w&&{paddingRight:40},g&&[{backgroundColor:A.disabledBackground,color:A.disabledText,borderColor:A.disabledBackground},Bb(L)],E&&{textAlign:"left"},v&&!C&&{selectors:(d={},d[By]={paddingLeft:11,paddingRight:11},d)},v&&b&&!C&&{selectors:(p={},p[By]={paddingTop:4},p)},S],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Ry.medium,lineHeight:18},g&&{color:A.disabledText}],description:[R.description,{color:A.bodySubtext,fontSize:D.xSmall.fontSize}],errorMessage:[R.errorMessage,My.slideDownIn20,D.small,{color:A.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[R.prefix,M],suffix:[R.suffix,M],revealButton:[R.revealButton,"ms-Button","ms-Button--icon",Yy(f,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:A.link,selectors:{":hover":{outline:0,color:A.primaryButtonBackgroundHovered,backgroundColor:A.buttonBackgroundHovered,selectors:(h={},h[By]={borderColor:"Highlight",color:"Highlight"},h)},":focus":{outline:0}}},w&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Ry.medium,lineHeight:18},subComponentStyles:{label:Aq(t)}}}),void 0,{scope:"TextField"}),Dq=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:Rq(n)}}},Rq=function(e){return{root:e&&{padding:"0px",height:"100%"}}},Mq=function(t){var n,r=t["aria-label"],o=t.underlined,i=t.imageSrc,a=(0,e.__rest)(t,["aria-label","underlined","imageSrc"]),s=Mw(),c=!!i,l=(0,Fd.useState)(rP.notLoaded),u=l[0],d=l[1];V_("TextInput",a.id),Ek("TextInput",a),n=c&&u!==rP.error?function(t,n,r){var o=Dq(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"}})}(s,a.disabled||!1,o):function(t,n,r){var o=Dq(t,n,r);return(0,e.__assign)((0,e.__assign)({},o),{prefix:{display:"none"}})}(s,a.disabled||!1,o);var p=function(e){e===rP.loaded?d(rP.loaded):e===rP.notLoaded?d(rP.notLoaded):d(rP.error)},h={};u===rP.notLoaded&&(h={root:{display:"none"}});return c?Bd().createElement(Pq,(0,e.__assign)({},a,{underlined:o,ariaLabel:r,styles:n,onRenderPrefix:function(){return Bd().createElement(Bd().Fragment,null,u===rP.notLoaded?Bd().createElement(dT,{size:XS.small}):null,Bd().createElement(pP,{styles:h,shouldFadeIn:!0,src:i,height:"16px",width:"16px",role:"presentation",onLoadingStateChange:p}))}})):Bd().createElement(Pq,(0,e.__assign)({},a,{underlined:o,ariaLabel:r,styles:n}))},Nq=function(t){var n=t.mode,r=t.userSolution,o=t.audioPlaceholder,i=t.visualPlaceholder,a=t.playAudioInstruction,s=t.onSolutionChanged,c=t.onPlayAudio,l=(0,e.__rest)(t,["mode","userSolution","audioPlaceholder","visualPlaceholder","playAudioInstruction","onSolutionChanged","onPlayAudio"]),u=cD(),d="audio"===n?o:i;return Bd().createElement(Bd().Fragment,null,"audio"===n?Bd().createElement(wT,{margin:"0px 0px 16px 0px"},Bd().createElement(DT,{id:u},a)):null,Bd().createElement(Mq,(0,e.__assign)({},l,{"aria-describedby":u,value:r,placeholder:d,onChange:function(e,t){(null===t||void 0===t?void 0:t.endsWith("1"))&&"audio"===n?c():s(null!==t&&void 0!==t?t:"")}})))},Lq=function(t){var n=t.variant,r=t.mode,o=t.challengeSource,i=t.userSolution,a=t.operationData,s=t.titleProps,c=t.challengeProps,l=t.controlsProps,u=t.solutionInputProps,d=t.visualCaptchaLoadedMessage,p=t.audioCaptchaLoadedMessage,h=t.onNewChallengeRequested,f=t.onSolutionChanged,m=(0,Fd.useState)(!1),g=m[0],v=m[1];V_("HipChallenge");var y=(0,Fd.useRef)(null),b=s?Bd().createElement(DT,(0,e.__assign)({},s,{weightOverride:"semi-bold"})):null,_=function(e){v(!0),h(e)},C="visual"===r?d:p,E=Bd().createElement(bq,(0,e.__assign)({},c,{mode:r,ref:y,challengeSource:o,operationData:a,onNewChallengeRequested:_,visualCaptchaLoadedMessage:d,audioCaptchaLoadedMessage:p,reloaded:g})),w=Bd().createElement(_q,(0,e.__assign)({},l,{mode:r,reloaded:g,onNewChallengeRequested:_})),x=(0,e.__assign)((0,e.__assign)({},u),{mode:r,userSolution:i,onSolutionChanged:f,onPlayAudio:function(){var e;null===(e=null===y||void 0===y?void 0:y.current)||void 0===e||e.playAudioChallenge()}}),k=Bd().createElement(Nq,(0,e.__assign)({},x)),S=Bd().createElement(Nq,(0,e.__assign)({},x,{id:"".concat(x.id,"-disabled"),"data-bi-id":"".concat(x["data-bi-id"],"-disabled"),disabled:!0})),T=Bd().createElement(hx,{operationData:{componentName:"".concat(a.componentName,".challengeSolution"),operationName:a.operationName,defaultState:"inert"},inertView:S,firstLoadView:S,updatingView:S,updateFailedView:S,failedView:S,finishedView:k}),I=Bd().createElement(Cq,{mode:r,controlsBottomMargin:l.bottomMargin,alignment:n.alignment}),A="top"===n.titleLocation?Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontalAlign:n.alignment},Bd().createElement(wT,{margin:"8px 0px 8px 0px"},b),E,w),T):Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontalAlign:n.alignment},E,w,Bd().createElement(wT,{margin:"0 0 16px 0"},b)),T),P=Bd().createElement(Bd().Fragment,null,C&&g?Bd().createElement(oN,{message:C,ariaLive:"polite"}):Bd().createElement(Bd().Fragment,null),A);return Bd().createElement(hx,{operationData:{componentName:a.componentName,operationName:a.operationName,defaultState:"inert"},inertView:I,firstLoadView:A,updatingView:A,updateFailedView:A,failedView:A,finishedView:P})},Oq=function(e,t){void 0===t&&(t=.5);var n=(0,Fd.useState)(!1),r=n[0],o=n[1];return(0,Fd.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},Fq=function(t){return Bd().createElement(wT,(0,e.__assign)({},jM(!0)),Bd().createElement(eN,(0,e.__assign)({},qM,t)))},Bq=function(t){var n=t.iconName,r=t.size;return Bd().createElement(wT,(0,e.__assign)({},jM(!1)),Bd().createElement(wT,(0,e.__assign)({},qM,{horizontalAlign:"center",verticalAlign:"center"}),Bd().createElement(WS,{size:r,iconName:n})))},Hq=function(t){var n=t.isSmallerImg,r=void 0!==n&&n,o=(0,e.__rest)(t,["isSmallerImg"]);return Bd().createElement(wT,(0,e.__assign)({},jM(r)),Bd().createElement(jR,(0,e.__assign)({},qM,o,{imageFit:"center-contain"})))},zq=function(t){switch(t.graphicType){case"image":t.graphicType;var n=(0,e.__rest)(t,["graphicType"]);return Bd().createElement(Hq,(0,e.__assign)({},n));case"animation":t.graphicType;var r=(0,e.__rest)(t,["graphicType"]);return Bd().createElement(Fq,(0,e.__assign)({},r));case"icon":t.graphicType;var o=(0,e.__rest)(t,["graphicType"]);return Bd().createElement(Bq,(0,e.__assign)({},o))}},Vq=(__webpack_require__(40475),(0,Fd.createContext)({}));function Uq(e,t,n,r){var o=null!==r&&void 0!==r?r:{},i=o.context,a=o.theme,s="";if(!e){var c,l;s=null!==(c=null===i||void 0===i||null===(l=i.onThrowOnUndefinedColor)||void 0===l?void 0:l.call(i,{desiredColor:e,desiredColorName:t,callingComponentName:n,theme:a}))&&void 0!==c?c:"";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 Wq(){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 c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var l=s.subComponentStyles;for(var u in l)l.hasOwnProperty(u)&&(o.hasOwnProperty(u)?o[u].push(l[u]):o[u]=[l[u]]);continue}var d=r[c],p=s[c];r[c]=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,f=function(e){if(o.hasOwnProperty(e)){var t=o[e];h[e]=function(e){return Wq.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var u in o)f(u)}return r}function jq(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?Wq.apply(void 0,r):{}}function qq(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var Gq=void 0;try{Gq=window}catch(bke){}function Kq(e){if(qq()&&"undefined"!==typeof Gq){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Gq}}var Yq=0,Qq=function(){function e(){}return e.getValue=function(e,t){var n=Xq();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=Xq(),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=Zq();t||(t=e.__id__=String(Yq++)),n[t]=e},e.removeChangeListener=function(e){delete Zq()[e.__id__]},e}();function Xq(){var e,t=Kq()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function Zq(){return Xq().__callbacks__}var Jq={settings:{},scopedSettings:{},inCustomizerContext:!1},$q=Qq.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),eG=[],tG=function(){function t(){}return t.reset=function(){$q.settings={},$q.scopedSettings={}},t.applySettings=function(n){$q.settings=(0,e.__assign)((0,e.__assign)({},$q.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,r){$q.scopedSettings[n]=(0,e.__assign)((0,e.__assign)({},$q.scopedSettings[n]),r),t._raiseChange()},t.getSettings=function(e,t,n){void 0===n&&(n=Jq);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&$q.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var c=s[a];r[c]=o[c]||n.settings[c]||i[c]||$q.settings[c]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(z){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(e){eG.push(e)},t.unobserve=function(e){eG=eG.filter((function(t){return t!==e}))},t._raiseChange=function(){t._suppressUpdates||eG.forEach((function(e){return e()}))},t}(),nG=Fd.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function rG(e,t){var n=function(){var e=Fd.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=Fd.useContext(nG).customizations,o=r.inCustomizerContext;return Fd.useEffect((function(){return o||tG.observe(n),function(){o||tG.unobserve(n)}}),[o]),tG.getSettings(e,t,r)}var oG=["theme","styles"];function iG(t,n,r,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,c=void 0===s?oG:s,l=Fd.forwardRef((function(o,i){var s=Fd.useRef(),l=rG(c,a),u=l.styles,d=(l.dir,(0,e.__rest)(l,["styles","dir"])),p=r?r(o):void 0,h=s.current&&s.current.__cachedInputs__||[],f=o.styles;if(!s.current||u!==h[1]||f!==h[2]){var m=function(e){return jq(e,n,u,f)};m.__cachedInputs__=[n,u,f],m.__noStyleOverride__=!u&&!f,s.current=m}return Fd.createElement(t,(0,e.__assign)({ref:i},d,p,o,{styles:s.current}))}));l.displayName="Styled"+(t.displayName||t.name);var u=i?Fd.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}function aG(e,t){if(null==e)return{};var n,r,o=lf(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 sG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cG(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 lG(e,t,n){return t&&cG(e.prototype,t),n&&cG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dG(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&&Eh(e,t)}function pG(e){return pG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pG(e)}function hG(e){return hG="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},hG(e)}function fG(e,t){if(t&&("object"===hG(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uG(e)}function mG(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(bke){return!1}}();return function(){var n,r=pG(e);if(t){var o=pG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fG(this,n)}}var gG,vG=0,yG=1,bG=2,_G="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),CG={};try{CG=window||{}}catch(z){}var EG,wG=function(){function t(t,n){var r,o,i,a,s,c;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?vG:yG,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!==(c=null===n||void 0===n?void 0:n.rules)&&void 0!==c?c:this._rules}return t.getInstance=function(){if(!(gG=CG.__stylesheet__)||gG._lastStyleElement&&gG._lastStyleElement.ownerDocument!==document){var e=(null===CG||void 0===CG?void 0:CG.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);gG=n,CG.__stylesheet__=n}return gG},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!==vG?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case yG:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(bke){}break;case bG: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(),_G||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 xG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=wG.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 c=o.argsFromClassName(s);c?i(c):-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 kG(e){EG!==e&&(EG=e)}function SG(){return void 0===EG&&(EG="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),EG}function TG(){return{rtl:SG()}}EG=SG();var IG,AG={};function PG(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=AG[n]=AG[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var DG={"user-select":1};function RG(e,t){var n=function(){var e;if(!IG){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();IG=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 IG}(),r=e[t];if(DG[r]){var o=e[t+1];DG[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 MG,NG=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function LG(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=NG.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var OG="left",FG="right",BG=((MG={}).left=FG,MG.right=OG,MG),HG={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function zG(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(OG)>=0)t[n]=r.replace(OG,FG);else if(r.indexOf(FG)>=0)t[n]=r.replace(FG,OG);else if(String(o).indexOf(OG)>=0)t[n+1]=o.replace(OG,FG);else if(String(o).indexOf(FG)>=0)t[n+1]=o.replace(FG,OG);else if(BG[r])t[n]=BG[r];else if(HG[o])t[n+1]=HG[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 VG(e){var t=e&&e["&"];return t?t.displayName:void 0}var UG=/\:global\((.+?)\)/g;function WG(e,t){return e.indexOf(":global(")>=0?e.replace(UG,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function jG(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?qG([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!UG.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 qG([r],t,WG(n,e))})):qG([r],t,WG(n,e))}function qG(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=wG.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 c=r.argsFromClassName(s);c&&qG(c,t,n)}else if(Array.isArray(s))qG(s,t,n);else for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if("selectors"===l){var d=s.selectors;for(var p in d)d.hasOwnProperty(p)&&jG(n,t,p,d[p])}else"object"===typeof u?null!==u&&jG(n,t,l,u):void 0!==u&&("margin"===l||"padding"===l?GG(o,l,u):o[l]=u)}}return t}function GG(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 KG(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 c in s)s.hasOwnProperty(c)&&void 0!==s[c]&&(r=!0,n.push(c,s[c]))}return r?n.join(""):void 0}function YG(e,t){return t<=0?"":1===t?e:e+YG(e,t-1)}function QG(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)PG(n,o),LG(n,o),zG(e,n,o),RG(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function XG(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qG(t),o=KG(e,r);if(o){var i=wG.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(VG(r));for(var s=[],c=0,l=r.__order;c<l.length;c++){var u=l[c];s.push(u,QG(e,r[u]))}a.rulesToInsert=s}return a}}function ZG(e,t){void 0===t&&(t=1);var n=wG.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 c=a[s+1];if(c){var l=a[s],u=(l=l.replace(/&/g,YG("."+e.className,t)))+"{"+c+"}"+(0===l.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,i,a)}}function JG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $G(e,TG())}function $G(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=Wq.apply(void 0,e),o=[];for(var i in r)if(r.hasOwnProperty(i)){if("subComponentStyles"===i){n.subComponentStyles=r.subComponentStyles||{};continue}var a=xG(r[i]),s=a.classes,c=a.objects;if(null===c||void 0===c?void 0:c.length)(d=XG(t||{},{displayName:i},c))&&(o.push(d),n[i]=s.concat([d.className]).join(" "));else n[i]=s.join(" ")}for(var l=0,u=o;l<u.length;l++){var d;(d=u[l])&&ZG(d,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}function eK(e){if(qq()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var tK,nK="isRTL";function rK(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===tK){var t=function(e){var t=null;try{var n=Kq();t=n?n.sessionStorage.getItem(e):null}catch(bke){}return t}(nK);null!==t&&function(e,t){void 0===t&&(t=!1);var n=eK();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=Kq())||void 0===n||n.sessionStorage.setItem(e,t)}catch(bke){}}(nK,e?"1":"0");kG(tK=e)}(tK="1"===t);var n=eK();void 0===tK&&n&&kG(tK="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!tK}var oK=0,iK=wG.getInstance();iK&&iK.onReset&&iK.onReset((function(){return oK++}));function aK(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=oK;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var c=t,l=a.theme,u=l&&void 0!==l.rtl?l.rtl:rK(),d=e.disableCaching;if(o!==oK&&(o=oK,t=new Map,n=0),e.disableCaching||(c=cK(t,i),c=cK(c,a)),!d&&c.__retval__||(c.__retval__=void 0===i?{}:$G(["function"===typeof i?i(a):i],{rtl:!!u,specificityMultiplier:e.useStaticStyles?5:void 0}),d||n++),n>(e.cacheSize||50)){var p=Kq();(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 c.__retval__}}function sK(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 cK(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=sK(e,r[n])}else e=sK(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=sK(e,t[o]));return e}var lK=Kq()||{};void 0===lK.__currentId__&&(lK.__currentId__=0);var uK=!1;function dK(e){if(!uK){var t=wG.getInstance();t&&t.onReset&&t.onReset(pK),uK=!0}return(void 0===e?"id__":e)+lK.__currentId__++}function pK(e){void 0===e&&(e=0),lK.__currentId__=e}var hK,fK=1,mK=2;function gK(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"}(hK||(hK={}));var vK=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)}}},yK=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&gK(t.refs,e)||(t.resolver=vK(t)),t.refs=e,t.resolver}};function bK(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 _K(e,t){return e&&e!==document.body?t(e)?e:_K(bK(e),t):null}function CK(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=bK(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function EK(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var c=xK(t);if(o&&c&&(i||!TK(t)&&!IK(t))){var l=EK(e,t.lastElementChild,!0,!0,!0,i,a,s);if(l){if(s&&SK(l,!0)||!s)return l;var u=EK(e,l.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=l.parentElement;d&&d!==t;){var p=EK(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&c&&SK(t,s))return t;var h=EK(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(r?null:EK(e,t.parentElement,!0,!1,!1,i,a,s))}function wK(e,t,n,r,o,i,a,s,c){if(!t||t===e&&o&&!a)return null;var l=(c?kK:xK)(t);if(n&&l&&SK(t,s))return t;if(!o&&l&&(i||!TK(t)&&!IK(t))){var u=wK(e,t.firstElementChild,!0,!0,!1,i,a,s,c);if(u)return u}if(t===e)return null;var d=wK(e,t.nextElementSibling,!0,!0,!1,i,a,s,c);return d||(r?null:wK(e,t.parentElement,!1,!1,!0,i,a,s,c))}function xK(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 kK(e){return!!e&&xK(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function SK(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 TK(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function IK(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function AK(e,t){return"true"!==function(e,t){var n=_K(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var PK=void 0;function DK(e){if(e){if(PK)return void(PK=e);PK=e;var t=Kq(e);t&&t.requestAnimationFrame((function(){PK&&PK.focus(),PK=void 0}))}}var RK=9,MK=13,NK=18,LK=27,OK=32,FK=33,BK=34,HK=35,zK=36,VK=37,UK=38,WK=39,jK=40;function qK(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 GK(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=qK(e,e[n],t[n]))}(e,{componentDidMount:KK,componentDidUpdate:YK,componentWillUnmount:QK})}function KK(){XK(this.props.componentRef,this)}function YK(e){e.componentRef!==this.props.componentRef&&(XK(e.componentRef,null),XK(this.props.componentRef,this))}function QK(){XK(this.props.componentRef,null)}function XK(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var ZK,JK=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,c=a;s<c.length;s++){var l=c[s];n[l]=1}return n},$K=JK(["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"]),eY=JK(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),tY=JK(eY,$K),nY=(JK(tY,["form"]),JK(tY,["height","loop","muted","preload","src","width"])),rY=(JK(nY,["poster"]),JK(tY,["start"]),JK(tY,["value"]),JK(tY,["download","href","hrefLang","media","rel","target","type"])),oY=JK(tY,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),iY=(JK(oY,["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"]),JK(oY,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),JK(oY,["form","multiple","required"]),JK(tY,["selected","value"]),JK(tY,["cellPadding","cellSpacing"]),JK(tY,["rowSpan","scope"]),JK(tY,["colSpan","headers","rowSpan","scope"]),JK(tY,["span"]),JK(tY,["span"]),JK(tY,["acceptCharset","action","encType","encType","method","noValidate","target"]),JK(tY,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),JK(tY,["alt","crossOrigin","height","src","srcSet","useMap","width"])),aY=tY;function sY(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 cY(){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 lY(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uY(e,TG())}function uY(t,n){var r=xG(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=XG.apply(void 0,(0,e.__spreadArray)([t],n));return o?(ZG(o,t.specificityMultiplier),o.className):""}(n||{},i)),o.join(" ")}lY({overflow:"hidden !important"});var dY="data-is-scrollable";function pY(e){for(var t=e,n=eK(e);t&&t!==n.body;){if("true"===t.getAttribute(dY))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(dY)){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=Kq(e)),t}var hY="data-portal-element";function fY(e,t){var n=_K(e,(function(e){return t===e||e.hasAttribute(hY)}));return null!==n&&n.hasAttribute(hY)}function mY(e){var t=cE.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",SE(eE(),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 gY="cubic-bezier(.1,.9,.2,1)",vY="cubic-bezier(.1,.25,.75,.9)",yY="0.167s",bY="0.267s",_Y="0.367s",CY="0.467s",EY=mY({from:{opacity:0},to:{opacity:1}}),wY=mY({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),xY=nQ(-10),kY=nQ(-20),SY=nQ(-40),TY=nQ(-400),IY=nQ(10),AY=nQ(20),PY=nQ(40),DY=nQ(400),RY=rQ(10),MY=rQ(20),NY=rQ(-10),LY=rQ(-20),OY=oQ(10),FY=oQ(20),BY=oQ(40),HY=oQ(400),zY=oQ(-10),VY=oQ(-20),UY=oQ(-40),WY=oQ(-400),jY=iQ(-10),qY=iQ(-20),GY=iQ(10),KY=iQ(20),YY=mY({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),QY=mY({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),XY=mY({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),ZY=mY({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),JY=mY({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),$Y=mY({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),eQ=gY;function tQ(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function nQ(e){return mY({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function rQ(e){return mY({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function oQ(e){return mY({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function iQ(e){return mY({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var aQ=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=lY(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:tQ(EY+","+xY,_Y,gY),slideRightIn20:tQ(EY+","+kY,_Y,gY),slideRightIn40:tQ(EY+","+SY,_Y,gY),slideRightIn400:tQ(EY+","+TY,_Y,gY),slideLeftIn10:tQ(EY+","+IY,_Y,gY),slideLeftIn20:tQ(EY+","+AY,_Y,gY),slideLeftIn40:tQ(EY+","+PY,_Y,gY),slideLeftIn400:tQ(EY+","+DY,_Y,gY),slideUpIn10:tQ(EY+","+RY,_Y,gY),slideUpIn20:tQ(EY+","+MY,_Y,gY),slideDownIn10:tQ(EY+","+NY,_Y,gY),slideDownIn20:tQ(EY+","+LY,_Y,gY),slideRightOut10:tQ(wY+","+OY,_Y,gY),slideRightOut20:tQ(wY+","+FY,_Y,gY),slideRightOut40:tQ(wY+","+BY,_Y,gY),slideRightOut400:tQ(wY+","+HY,_Y,gY),slideLeftOut10:tQ(wY+","+zY,_Y,gY),slideLeftOut20:tQ(wY+","+VY,_Y,gY),slideLeftOut40:tQ(wY+","+UY,_Y,gY),slideLeftOut400:tQ(wY+","+WY,_Y,gY),slideUpOut10:tQ(wY+","+jY,_Y,gY),slideUpOut20:tQ(wY+","+qY,_Y,gY),slideDownOut10:tQ(wY+","+GY,_Y,gY),slideDownOut20:tQ(wY+","+KY,_Y,gY),scaleUpIn100:tQ(EY+","+YY,_Y,gY),scaleDownIn100:tQ(EY+","+XY,_Y,gY),scaleUpOut103:tQ(wY+","+ZY,yY,vY),scaleDownOut98:tQ(wY+","+QY,yY,vY),fadeIn100:tQ(EY,yY,vY),fadeIn200:tQ(EY,bY,vY),fadeIn400:tQ(EY,_Y,vY),fadeIn500:tQ(EY,CY,vY),fadeOut100:tQ(wY,yY,vY),fadeOut200:tQ(wY,bY,vY),fadeOut400:tQ(wY,_Y,vY),fadeOut500:tQ(wY,CY,vY),rotate90deg:tQ(JY,"0.1s",vY),rotateN90deg:tQ($Y,"0.1s",vY)}),sQ="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";function cQ(e,t){return"@media only screen"+("number"===typeof e?" and (min-width: "+e+"px)":"")+("number"===typeof t?" and (max-width: "+t+"px)":"")}var lQ,uQ="ms-Fabric--isFocusVisible",dQ="ms-Fabric--isFocusHidden";function pQ(e,t){e&&(e.classList.add(t?uQ:dQ),e.classList.remove(t?dQ:uQ))}function hQ(e,t,n){var r;n?n.forEach((function(t){return pQ(t.current,e)})):pQ(null===(r=Kq(t))||void 0===r?void 0:r.document.body,e)}function fQ(e,t,n,r,o,i,a,s){return mQ(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function mQ(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,c=void 0===s?1:s,l=t.position,u=void 0===l?"relative":l,d=t.highContrastStyle,p=t.borderColor,h=void 0===p?e.palette.white:p,f=t.outlineColor,m=void 0===f?e.palette.neutralSecondary:f,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:c+"px solid "+h,outline:c+"px solid "+m,zIndex:lQ.FocusStyle,borderRadius:o,selectors:(r={},r[sQ]=d,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(lQ||(lQ={}));var gQ={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},vQ=!1,yQ=0,bQ={empty:!0},_Q={},CQ="undefined"===typeof WeakMap?null:WeakMap;function EQ(){yQ++}function wQ(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!CQ)return e;if(!vQ){var r=wG.getInstance();r&&r.onReset&&wG.getInstance().onReset(EQ),vQ=!0}var o,i=0,a=yQ;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var c=o;(void 0===o||a!==yQ||t>0&&i>t)&&(o=SQ(),i=0,a=yQ),c=o;for(var l=0;l<r.length;l++){var u=kQ(r[l]);c.map.has(u)||c.map.set(u,SQ()),c=c.map.get(u)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),i++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function xQ(e){if(!CQ)return e;var t=new CQ;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 kQ(e){return e?"object"===typeof e||"function"===typeof e?e:(_Q[e]||(_Q[e]={val:e}),_Q[e]):bQ}function SQ(){return{map:CQ?new CQ:null}}var TQ=wQ((function(e,t){var n=wG.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function IQ(e,t,n){return TQ(e,void 0!==n?n:t.disableGlobalClassNames)}var AQ=WE({}),PQ=[],DQ="theme";function RQ(){var t,n,r,o=Kq();(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);AQ=WE(t,n),hb((0,e.__assign)((0,e.__assign)((0,e.__assign)((0,e.__assign)({},AQ.palette),AQ.semanticColors),AQ.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 c=s[a],l=o+c.charAt(0).toUpperCase()+c.slice(1),u=i[c];"fontSize"===c&&"number"===typeof u&&(u+="px"),t[l]=u}return t}(AQ))),tG.applySettings(((r={}).theme=AQ,r)),PQ.forEach((function(e){try{e(AQ)}catch(bke){}}))}(o.FabricConfig.legacyTheme):tG.getSettings([DQ]).theme||((null===(r=null===o||void 0===o?void 0:o.FabricConfig)||void 0===r?void 0:r.theme)&&(AQ=WE(o.FabricConfig.theme)),tG.applySettings(((t={}).theme=AQ,t)))}RQ();var MQ=Qq.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),NQ=wG.getInstance();NQ&&NQ.onReset&&NQ.onReset((function(){for(var e in MQ)MQ.hasOwnProperty(e)&&MQ[e].subset&&(MQ[e].subset.className=void 0)}));var LQ=function(e){return e.toLowerCase()};function OQ(e){var t,n=void 0,r=MQ.__options;if(e=e?LQ(e):"",e=MQ.__remapped[e]||e)if(n=MQ[e]){var o=n.subset;o&&o.fontFace&&(o.isRegistered||(!function(e){var t=wG.getInstance(),n=QG(TG(),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=lY(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 FQ={},BQ=void 0;try{BQ=window}catch(bke){}function HQ(e,t){if("undefined"!==typeof BQ){var n=BQ.__packages__=BQ.__packages__||{};if(!n[e]||!FQ[e])FQ[e]=t,(n[e]=n[e]||[]).push(t)}}HQ("@fluentui/set-version","6.0.0"),HQ("@fluentui/style-utilities","8.7.12"),RQ();var zQ,VQ="data-is-focusable",UQ="data-focuszone-id",WQ="tabindex",jQ="data-no-vertical-wrap",qQ="data-no-horizontal-wrap",GQ=999999999,KQ=-999999999;function YQ(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 QQ={},XQ=new Set,ZQ=["text","number","password","email","tel","url","search","textarea"],JQ=!1,$Q=function(t){function n(e){var r,o,i,a,s=t.call(this,e)||this;s._root=Fd.createRef(),s._mergedRef=yK(),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,c=n.onFocus,l=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(SK(p)&&s._isImmediateDescendantOfZone(p)){t=p;break}p=bK(p,JQ)}if(l&&e.target===s._root.current){var h=u&&"function"===typeof u&&s._root.current&&u(s._root.current);h&&SK(h)?(t=h,h.focus()):(s.focus(!0),s._activeElement&&(t=null))}var f=!s._activeElement;t&&t!==s._activeElement&&((d||f)&&s._setFocusAlignment(t,!0,!0),s._activeElement=t,f&&s._updateTabIndexes()),r&&r(s._activeElement,e),(i||o)&&e.stopPropagation(),c?c(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=bK(t,JQ);for(;n.length&&((t=n.pop())&&SK(t)&&s._setActiveElement(t,!0),!TK(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,c=n.shouldEnterInnerZone;if(!o&&(s.props.onKeyDown&&s.props.onKeyDown(e),!e.isDefaultPrevented()&&(s._getDocument().activeElement!==s._root.current||!s._isInnerZone))){if((c&&c(e)||i&&i(e))&&s._isImmediateDescendantOfZone(e.target)){var l=s._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!IK(e.target))return;if(!s.focusElement(wK(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case OK:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(e.target,e))break;return;case VK:if(r!==hK.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusLeft(t)))break;return;case WK:if(r!==hK.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusRight(t)))break;return;case UK:if(r!==hK.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusUp()))break;return;case jK:if(r!==hK.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusDown()))break;return;case BK:if(!a&&s._moveFocusPaging(!0))break;return;case FK:if(!a&&s._moveFocusPaging(!1))break;return;case RK:if(s.props.allowTabKey||s.props.handleTabKey===fK||s.props.handleTabKey===mK&&s._isElementInput(e.target)){var u=!1;if(s._processingTabKey=!0,r!==hK.vertical&&s._shouldWrapFocus(s._activeElement,qQ))u=(rK(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 zK: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(wK(s._root.current,d,!0)))break;return;case HK: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(EK(s._root.current,p,!0,!0,!0)))break;return;case MK: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),c=Math.floor(t.top);return e&&o>i||!e&&a<c?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):s._shouldWrapFocus(s._activeElement,jQ)?GQ:KQ},GK(s),s._id=dK("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var c=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:c,s._shouldRaiseClicksOnSpace=null!==(a=e.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,s}return(0,e.__extends)(n,t),n.getOuterZones=function(){return XQ.size},n._onKeyDownCapture=function(e){e.which===RK&&XQ.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(QQ[this._id]=this,e){for(var t=bK(e,JQ);t&&t!==this._getDocument().body&&1===t.nodeType;){if(TK(t)){this._isInnerZone=!0;break}t=bK(t,JQ)}this._isInnerZone||(XQ.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&&!CK(this._root.current,this._activeElement,JQ)||this._defaultFocusElement&&!CK(this._root.current,this._defaultFocusElement,JQ))&&(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 SK(n)&&xK(n)?n:wK(e,n,!0)||EK(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete QQ[this._id],this._isInnerZone||(XQ.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,c=n.className,l=sY(this.props,tY),u=r||o||"div";this._evaluateFocusBeforeRender();var d,p=(void 0===d&&(d=!1),!0===d&&(AQ=WE({},d)),AQ);return Fd.createElement(u,(0,e.__assign)({"aria-labelledby":s,"aria-describedby":a},l,i,{className:cY((zQ||(zQ=lY({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),zQ),c),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(VQ)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=QQ[n.getAttribute(UQ)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&CK(this._root.current,this._activeElement)&&SK(this._activeElement)&&(!t||kK(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(wK(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(EK(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=CK(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=bK(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&&(TK(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(VQ)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return YQ(n,t),!0;n=bK(n,JQ)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(TK(e))return QQ[e.getAttribute(UQ)];for(var t=e.firstElementChild;t;){if(TK(t))return QQ[t.getAttribute(UQ)];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,c=this.props.direction===hK.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var l=c?o.getBoundingClientRect():null;do{if(o=e?wK(this._root.current,o):EK(this._root.current,o),!c){a=o;break}if(o){var u=t(l,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(wK(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(EK(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,jQ)?GQ:KQ:((-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),c=Math.floor(r.top);return a>c?e._shouldWrapFocus(e._activeElement,jQ)?GQ:KQ:((-1===t&&a<=c||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,qQ);return!!this._moveFocus(rK(e),(function(r,o){var i=-1;return(rK(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!==hK.vertical?i=r.right-o.right:n||(i=KQ),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,qQ);return!!this._moveFocus(!rK(e),(function(r,o){var i=-1;return(rK(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!==hK.vertical?i=o.left-r.left:n||(i=KQ),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=pY(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,c=r.clientHeight,l=n.getBoundingClientRect();do{if(n=e?wK(this._root.current,n):EK(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),p=Math.floor(l.bottom),h=Math.floor(u.bottom),f=Math.floor(l.top),m=this._getHorizontalDistanceFromCenter(e,l,u);if(e&&d>p+c||!e&&h<f-c)break;m>-1&&(e&&d>a?(a=d,o=m,i=n):!e&&h<s?(s=h,o=m,i=n):(-1===o||m<=o)&&(o=m,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(wK(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(EK(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===hK.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=bK(e,JQ);t&&t!==this._root.current&&t!==this._getDocument().body;){if(TK(t))return t;t=bK(t,JQ)}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&&!CK(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!SK(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];TK(r)?"true"===r.getAttribute(VQ)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(WQ)&&r.setAttribute(WQ,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(WQ)&&r.setAttribute(WQ,"0"))):(r.getAttribute&&"false"===r.getAttribute(VQ)&&r.setAttribute(WQ,"-1"),SK(r)?this.props.disabled?r.setAttribute(WQ,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(WQ)&&r.setAttribute(WQ,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(WQ)&&r.setAttribute(WQ,"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&&ZQ.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||AK(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&fY(e,this._root.current)},n.prototype._getDocument=function(){return eK(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:hK.bidirectional,shouldRaiseClicks:!0},n}(Fd.Component);__webpack_require__(40475);var eX,tX=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(bke){n._logError(bke)}}),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=Kq(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(bke){n._logError(bke)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=Kq(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(bke){n._logError(bke)}}),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,c=!0,l=0,u=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing);var d=function t(n){var d=Date.now(),p=d-l,h=s?a-p:a;return p>=a&&(!n||s)?(l=d,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&c&&(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,c=!1,l=!0,u=null,d=0,p=Date.now(),h=null;n&&"boolean"===typeof n.leading&&(c=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(e){h&&(r.clearTimeout(h),h=null),p=e},m=function(t){f(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(c&&n-d>=s&&(o=!0),d=n);var a=n-d,f=s-a,g=n-p,v=!1;return null!==u&&(g>=u&&h?v=!0:f=Math.min(f,u-g)),a>=s||v||o?m(n):null!==h&&t||!l||(h=r.setTimeout(e,f)),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()&&f(Date.now())},y.flush=function(){return v()&&m(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=Kq(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(bke){n._logError(bke)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=Kq(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 nX(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 rX(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return oX.apply(this,[null,e].concat(t))}function oX(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"}(eX||(eX={}));var iX,aX,sX=0,cX=1,lX=2,uX=3,dX=4,pX=5,hX=6,fX=7,mX=8,gX=9,vX=10,yX=11,bX=12,_X=13;function CX(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function EX(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"}(iX||(iX={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(aX||(aX={}));var wX,xX=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 kX(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var SX=((wX={})[sX]=kX(iX.top,iX.left),wX[cX]=kX(iX.top),wX[lX]=kX(iX.top,iX.right),wX[uX]=kX(iX.top,void 0,!0),wX[dX]=kX(iX.bottom,iX.left),wX[pX]=kX(iX.bottom),wX[hX]=kX(iX.bottom,iX.right),wX[fX]=kX(iX.bottom,void 0,!0),wX[mX]=kX(iX.left,iX.top),wX[gX]=kX(iX.left),wX[vX]=kX(iX.left,iX.bottom),wX[yX]=kX(iX.right,iX.top),wX[bX]=kX(iX.right),wX[_X]=kX(iX.right,iX.bottom),wX);function TX(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function IX(e,t){var n=[];return e.top<t.top&&n.push(iX.top),e.bottom>t.bottom&&n.push(iX.bottom),e.left<t.left&&n.push(iX.left),e.right>t.right&&n.push(iX.right),n}function AX(e,t){return e[iX[t]]}function PX(e,t,n){return e[iX[t]]=n,e}function DX(e,t){var n=WX(t);return(AX(e,n.positiveEdge)+AX(e,n.negativeEdge))/2}function RX(e,t){return e>0?t:-1*t}function MX(e,t){return RX(e,AX(t,e))}function NX(e,t,n){return RX(n,AX(e,n)-AX(t,n))}function LX(e,t,n,r){void 0===r&&(r=!0);var o=AX(e,t)-n,i=PX(e,t,n);return r&&(i=PX(e,-1*t,AX(e,-1*t)-o)),i}function OX(e,t,n,r){return void 0===r&&(r=0),LX(e,n,AX(t,n)+RX(n,r))}function FX(e,t,n){return MX(n,e)>MX(n,t)}function BX(e,t){for(var n=0,r=0,o=IX(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(NX(e,t,i),2)}return n}function HX(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,c=r.alignTargetEdge,l={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(l=function(e,t,n,r,o){void 0===o&&(o=0);var i=[iX.left,iX.right,iX.bottom,iX.top];rK()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,c=r.targetEdge,l=r.alignmentEdge,u=c,d=l,p=0;p<4;p++){if(FX(s,n,c))return{elementRectangle:s,targetEdge:c,alignmentEdge:l};var h=BX(s,n);(!a||h<a)&&(a=h,u=c,d=l),i.splice(i.indexOf(c),1),i.length>0&&(i.indexOf(-1*c)>-1?c*=-1:(l=c,c=i.slice(-1)[0]),s=UX(e,t,{targetEdge:c,alignmentEdge:l},o))}return{elementRectangle:s=UX(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=IX(l.elementRectangle,n),d=i?-l.targetEdge:void 0;if(u.length>0)if(c)if(l.alignmentEdge&&u.indexOf(-1*l.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:UX(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(l,t,o,a);if(TX(p.elementRectangle,n))return p;l=zX(IX(p.elementRectangle,n),l,n,d)}else l=zX(u,l,n,d);else l=zX(u,l,n,d);return l}function zX(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=LX(t.elementRectangle,a,AX(n,a),!1),t.forcedInBounds=!0;else FX(s=OX(t.elementRectangle,n,a),n,-1*a)||(s=LX(s,-1*a,AX(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function VX(e,t,n){var r=WX(t).positiveEdge;return LX(e,r,n-(DX(e,t)-AX(e,r)))}function UX(e,t,n,r,o){void 0===r&&(r=0);var i=new xX(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,c=o?s:-1*s;(i=o?OX(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=RX(-1*n,r);return LX(e,-1*n,AX(t,n)+o)}(i,t,s,r),a)?i=OX(i,t,a):i=VX(i,c,DX(t,s));return i}function WX(e){return e===iX.top||e===iX.bottom?{positiveEdge:iX.left,negativeEdge:iX.right}:{positiveEdge:iX.top,negativeEdge:iX.bottom}}function jX(e,t,n){return n&&Math.abs(NX(e,n,t))>Math.abs(NX(e,n,-1*t))?-1*t:t}function qX(e,t,n,r,o,i,a,s){var c,l={},u=JX(t),d=i?n:-1*n,p=o||WX(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&AX(e,t)===AX(n,t)}(e,(c=p,-1*c),r)||(p=jX(e,p,r)),l[iX[d]]=NX(e,u,d),l[iX[p]]=NX(e,u,p),s&&(l[iX[-1*d]]=NX(e,u,-1*d),l[iX[-1*p]]=NX(e,u,-1*p)),l}function GX(e){return Math.sqrt(e*e*2)}function KX(t,n,r){if(void 0===t&&(t=fX),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,e.__assign)({},SX[t]);return rK()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?SX[n]:o):o}function YX(e,t,n){var r=DX(t,e),o=DX(n,e),i=WX(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function QX(e,t,n,r,o,i,a){var s=UX(e,t,r,o,a);return TX(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:HX(s,t,n,r,o,i,a)}function XX(t,n,r){var o=-1*t.targetEdge,i=new xX(0,t.elementRectangle.width,0,t.elementRectangle.height),a={},s=jX(t.elementRectangle,t.alignmentEdge?t.alignmentEdge:WX(o).positiveEdge,r),c=NX(t.elementRectangle,t.targetRectangle,o)>Math.abs(AX(n,o));return a[iX[o]]=AX(n,o),a[iX[s]]=NX(n,i,s),{elementPosition:(0,e.__assign)({},a),closestEdge:YX(t.targetEdge,n,i),targetEdge:o,hideBeak:!c}}function ZX(e,t){var n=t.targetRectangle,r=WX(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=DX(n,t.targetEdge),s=new xX(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),c=new xX(0,e,0,e);return FX(c=VX(c=LX(c,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-MX(o,t.elementRectangle)),s,o)?FX(c,s,i)||(c=OX(c,s,i)):c=OX(c,s,o),c}function JX(e){var t=e.getBoundingClientRect();return new xX(t.left,t.right,t.top,t.bottom)}function $X(e){return new xX(e.left,e.right,e.top,e.bottom)}function eZ(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 xX(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=JX(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,c=o.bottom||a;n=new xX(i,s,a,c)}if(!TX(n,e))for(var l=0,u=IX(n,e);l<u.length;l++){var d=u[l];n[iX[d]]=e[iX[d]]}}else n=new xX(0,0,0,0);return n}(r,t.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=YX(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(KX(t.directionalHint,t.directionalHintForRTL,o),a,r,t.coverTarget,t.alignTargetEdge),c=QX(JX(n),a,r,s,i,t.directionalHintFixed,t.coverTarget);return(0,e.__assign)((0,e.__assign)({},c),{targetRectangle:a})}function tZ(e,t,n,r,o){return{elementPosition:qX(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function nZ(t,n,r,o,i){var a=t.isBeakVisible&&t.beakWidth||0,s=GX(a)/2+(t.gapSpace?t.gapSpace:0),c=t;c.gapSpace=s;var l=t.bounds?$X(t.bounds):new xX(0,window.innerWidth-function(){if(void 0===ZK){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),ZK=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ZK}(),0,window.innerHeight),u=eZ(c,r,l,o),d=XX(u,ZX(a,u),l);return(0,e.__assign)((0,e.__assign)({},tZ(u,n,l,t.coverTarget,i)),{beakPosition:d})}function rZ(e,t,n,r){return function(e,t,n,r){return nZ(e,t,n,r,!0)}(e,t,n,r)}var oZ=["TEMPLATE","STYLE","SCRIPT"];function iZ(e){var t=eK(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===oZ.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 aZ(){var e=Fd.useRef();return e.current||(e.current=new tX),Fd.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function sZ(e,t,n,r){var o=Fd.useRef(n);o.current=n,Fd.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return CX(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function cZ(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Fd.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 lZ=Fd.createContext({window:"object"===typeof window?window:void 0}),uZ=function(){return Fd.useContext(lZ).window},dZ=function(){var e;return null===(e=Fd.useContext(lZ).window)||void 0===e?void 0:e.document};function pZ(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Kq()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function hZ(e,t){var n=e.onRestoreFocus,r=void 0===n?pZ:n,o=Fd.useRef(),i=Fd.useRef(!1);Fd.useEffect((function(){return o.current=eK().activeElement,function(e){var t=eK(e),n=t&&t.activeElement;return!(!n||!CK(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=eK())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),sZ(t,"focus",Fd.useCallback((function(){i.current=!0}),[]),!0),sZ(t,"blur",Fd.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}var fZ,mZ=Fd.forwardRef((function(t,n){var r=EX({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=Fd.useRef(),i=cZ(o,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;Fd.useEffect((function(){if(n&&t.current)return iZ(t.current)}),[t,n])}(r,o),hZ(r,o);var a=r.role,s=r.className,c=r.ariaLabel,l=r.ariaLabelledBy,u=r.ariaDescribedBy,d=r.style,p=r.children,h=r.onDismiss,f=function(e,t){var n=aZ(),r=Fd.useState(!1),o=r[0],i=r[1];return Fd.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),m=Fd.useCallback((function(e){if(e.which===LK)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return sZ(uZ(),"keydown",m),Fd.createElement("div",(0,e.__assign)({ref:i},sY(r,aY),{className:s,role:a,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,onKeyDown:m,style:(0,e.__assign)({overflowY:f?"scroll":void 0,outline:"none"},d)}),p)}));function gZ(e){var t=Fd.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function vZ(e,t){var n=Fd.useRef(),r=Fd.useRef(null),o=uZ();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=eK(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]}mZ.displayName="Popup";var yZ=((fZ={})[iX.top]=aQ.slideUpIn10,fZ[iX.bottom]=aQ.slideDownIn10,fZ[iX.left]=aQ.slideLeftIn10,fZ[iX.right]=aQ.slideRightIn10,fZ),bZ=0,_Z=0,CZ={opacity:0,filter:"opacity(0)",pointerEvents:"none"},EZ=["role","aria-roledescription"],wZ={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:fX},xZ=aK({disableCaching:!0});function kZ(t,n,r,o,i){var a=Fd.useState(),s=a[0],c=a[1],l=Fd.useRef(0),u=Fd.useRef(),d=aZ(),p=t.hidden,h=t.target,f=t.finalHeight,m=t.calloutMaxHeight,g=t.onPositioned,v=t.directionalHint;return Fd.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=m?""+m:"",b.style.visibility="hidden",null===(a=r.parentElement)||void 0===a||a.appendChild(b);var _=u.current===h?s:void 0,C=f?rZ(y,n.current,b,_):function(e,t,n,r){return nZ(e,t,n,r)}(y,n.current,b,_);null===(d=r.parentElement)||void 0===d||d.removeChild(b),!s&&C||s&&C&&(v=C,!AZ((p=s).elementPosition,v.elementPosition)||!AZ(p.beakPosition.elementPosition,v.beakPosition.elementPosition))&&l.current<5?(l.current++,c(C)):l.current>0&&(l.current=0,null===g||void 0===g||g(s))}}),r);return u.current=h,function(){d.cancelAnimationFrame(a),u.current=void 0}}c(void 0),l.current=0}),[p,v,d,r,m,n,o,f,i,g,s,t,h]),s}function SZ(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=aZ(),a=!!t;Fd.useEffect((function(){if(!r&&o&&a&&n){var e=i.requestAnimationFrame((function(){return function(e,t){var n=wK(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(DK(n),!0)}(n)}),n);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}var TZ=Fd.memo(Fd.forwardRef((function(t,n){var r=EX(wZ,t),o=r.styles,i=r.style,a=r.ariaLabel,s=r.ariaDescribedBy,c=r.ariaLabelledBy,l=r.className,u=r.isBeakVisible,d=r.children,p=r.beakWidth,h=r.calloutWidth,f=r.calloutMaxWidth,m=r.calloutMinWidth,g=r.doNotLayer,v=r.finalHeight,y=r.hideOverflow,b=void 0===y?!!v:y,_=r.backgroundColor,C=r.calloutMaxHeight,E=r.onScroll,w=r.shouldRestoreFocus,x=void 0===w||w,k=r.target,S=r.hidden,T=r.onLayerMounted,I=r.popupProps,A=Fd.useRef(null),P=Fd.useState(null),D=P[0],R=P[1],M=Fd.useCallback((function(e){R(e)}),[]),N=cZ(A,n),L=vZ(r.target,{current:D}),O=L[0],F=L[1],B=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?wZ.minPagePadding:o,a=e.target,s=Fd.useState(!1),c=s[0],l=s[1],u=Fd.useRef(),d=Fd.useCallback((function(){if(!u.current||c){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,c=n;s<c.length;s++){var l=c[s];r&&l.left<=r&&l.right>=r&&o&&l.top<=o&&l.bottom>=o&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.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,c&&l(!1)}return u.current}),[r,i,a,t,n,c]),p=aZ();return sZ(n,"resize",p.debounce((function(){l(!0)}),500,{leading:!0})),d}(r,O,F),H=kZ(r,A,D,O,B),z=function(e,t,n){var r,o=e.calloutMaxHeight,i=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,c=e.hidden,l=Fd.useState(),u=l[0],d=l[1],p=null!==(r=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==r?r:{},h=p.top,f=p.bottom;return Fd.useEffect((function(){var e,n=null!==(e=t())&&void 0!==e?e:{},r=n.top,i=n.bottom;o||c?d(o||void 0):"number"===typeof h&&i?d(i-h):"number"===typeof f&&"number"===typeof r&&i&&d(i-r-f)}),[f,o,i,a,s,t,c,n,h]),u}(r,B,H),V=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,c=e.preventDismissOnResize,l=e.preventDismissOnLostFocus,u=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,h=Fd.useRef(!1),f=aZ(),m=gZ([function(){h.current=!0},function(){h.current=!1}]),g=!!t;return Fd.useEffect((function(){var e=function(e){g&&!s&&v(e)},t=function(e){c||p&&p(e)||null===a||void 0===a||a(e)},m=function(e){l||v(e)},v=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,s=n.current&&!CK(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&&!CK(r.current,i))){if(p&&p(e))return;null===a||void 0===a||a(e)}},y=function(e){d&&((!p||p(e))&&(p||l)||(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){f.setTimeout((function(){if(!i&&o){var r=[CX(o,"scroll",e,!0),CX(o,"resize",t,!0),CX(o.document.documentElement,"focus",m,!0),CX(o.document.documentElement,"click",m,!0),CX(o,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){b.then((function(e){return e()}))}}),[i,f,n,r,o,a,d,u,l,c,s,g,p]),m}(r,H,A,O,F),U=V[0],W=V[1],j=(null===H||void 0===H?void 0:H.elementPosition.top)&&(null===H||void 0===H?void 0:H.elementPosition.bottom),q=(0,e.__assign)((0,e.__assign)({},null===H||void 0===H?void 0:H.elementPosition),{maxHeight:z});if(j&&(q.bottom=void 0),SZ(r,H,D),Fd.useEffect((function(){S||null===T||void 0===T||T()}),[S]),!F)return null;var G=b,K=u&&!!k,Y=xZ(o,{theme:r.theme,className:l,overflowYHidden:G,calloutWidth:h,positions:H,beakWidth:p,backgroundColor:_,calloutMaxWidth:f,calloutMinWidth:m,doNotLayer:g}),Q=(0,e.__assign)((0,e.__assign)({maxHeight:C||"100%"},i),G&&{overflowY:"hidden"}),X=r.hidden?{visibility:"hidden"}:void 0;return Fd.createElement("div",{ref:N,className:Y.container,style:X},Fd.createElement("div",(0,e.__assign)({},sY(r,aY,EZ),{className:cY(Y.root,H&&H.targetEdge&&yZ[H.targetEdge]),style:H?(0,e.__assign)({},q):CZ,tabIndex:-1,ref:M}),K&&Fd.createElement("div",{className:Y.beak,style:IZ(H)}),K&&Fd.createElement("div",{className:Y.beakCurtain}),Fd.createElement(mZ,(0,e.__assign)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:c,className:Y.calloutMain,onDismiss:r.onDismiss,onMouseDown:U,onMouseUp:W,onRestoreFocus:r.onRestoreFocus,onScroll:E,shouldRestoreFocus:x,style:Q},I),d)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||nX(e,t)}));function IZ(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=_Z,o.top=bZ),o}function AZ(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 PZ(e){return{height:e,width:e}}TZ.displayName="CalloutContentBase";var DZ,RZ={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},MZ=iG(TZ,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,c=e.calloutMaxWidth,l=e.calloutMinWidth,u=e.doNotLayer,d=IQ(RZ,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?lQ.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[sQ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!c&&{maxWidth:c},!!l&&{minWidth:l}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},PZ(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"}),NZ=Fd.createContext((function(){return function(){}}));NZ.Provider;var LZ=((DZ={})[UK]=1,DZ[jK]=1,DZ[VK]=1,DZ[WK]=1,DZ[zK]=1,DZ[HK]=1,DZ[RK]=1,DZ[FK]=1,DZ[BK]=1,DZ);function OZ(e){return!!LZ[e]}var FZ=new WeakMap,BZ=new WeakMap;function HZ(e,t){var n,r=FZ.get(e);return n=r?r+t:1,FZ.set(e,n),n}var zZ=Fd.createContext(void 0);function VZ(e){var t=Fd.useContext(zZ);Fd.useEffect((function(){var n,r,o=Kq(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,c,l=o;if(null===(r=null===t||void 0===t?void 0:t.providerRef)||void 0===r?void 0:r.current){l=t.providerRef.current;var u=function(e){var t=BZ.get(e);return t||(t={onMouseDown:function(t){return WZ(t,e.registeredProviders)},onPointerDown:function(t){return jZ(t,e.registeredProviders)},onKeyDown:function(t){return qZ(t,e.registeredProviders)},onKeyUp:function(t){return GZ(t,e.registeredProviders)}},BZ.set(e,t),t)}(t);i=u.onMouseDown,a=u.onPointerDown,s=u.onKeyDown,c=u.onKeyUp}else i=WZ,a=jZ,s=qZ,c=GZ;var d=HZ(l,1);return d<=1&&(l.addEventListener("mousedown",i,!0),l.addEventListener("pointerdown",a,!0),l.addEventListener("keydown",s,!0),l.addEventListener("keyup",c,!0)),function(){var e;o&&!0!==(null===(e=o.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(d=HZ(l,-1))&&(l.removeEventListener("mousedown",i,!0),l.removeEventListener("pointerdown",a,!0),l.removeEventListener("keydown",s,!0),l.removeEventListener("keyup",c,!0))}}}),[t,e])}var UZ=function(e){return VZ(e.rootRef),null};function WZ(e,t){hQ(!1,e.target,t)}function jZ(e,t){"mouse"!==e.pointerType&&hQ(!1,e.target,t)}function qZ(e,t){OZ(e.which)&&hQ(!0,e.target,t)}function GZ(e,t){OZ(e.which)&&hQ(!0,e.target,t)}var KZ=function(e){var t=e.providerRef,n=e.layerRoot,r=Fd.useState([])[0],o=Fd.useContext(zZ),i=void 0!==o&&!n,a=Fd.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 Fd.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?Fd.createElement(zZ.Provider,{value:a},e.children):Fd.createElement(Fd.Fragment,null,e.children)};function YZ(t,n){void 0===t&&(t={});var r=XZ(n)?n:function(t){return function(n){return t?(0,e.__assign)((0,e.__assign)({},n),t):n}}(n);return r(t)}function QZ(t,n){return void 0===t&&(t={}),(XZ(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 XZ(e){return"function"===typeof e}var ZZ=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(){tG.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){tG.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,t=this.props.contextTransform;return Fd.createElement(nG.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:YZ(r.settings,e.settings),scopedSettings:QZ(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),Fd.createElement(nG.Provider,{value:r},e.props.children)}))},n}(Fd.Component),JZ=aK(),$Z=wQ((function(t,n){return WE((0,e.__assign)((0,e.__assign)({},t),{rtl:n}))})),eJ=Fd.forwardRef((function(t,n){var r=t.className,o=t.theme,i=t.applyTheme,a=t.applyThemeToBody,s=t.styles,c=JZ(s,{theme:o,applyTheme:i,className:r}),l=Fd.useRef(null);return function(e,t,n){var r=t.bodyThemed;Fd.useEffect((function(){if(e){var t=eK(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,c,l),Fd.createElement(Fd.Fragment,null,function(t,n,r,o){var i=n.root,a=t.as,s=void 0===a?"div":a,c=t.dir,l=t.theme,u=sY(t,aY,["dir"]),d=function(e){var t=e.theme,n=e.dir,r=rK(t)?"rtl":"ltr",o=rK()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(t),p=d.rootDir,h=d.needsTheme,f=Fd.createElement(KZ,{providerRef:r},Fd.createElement(s,(0,e.__assign)({dir:p},u,{className:i,ref:cZ(r,o)})));h&&(f=Fd.createElement(ZZ,{settings:{theme:$Z(l,"rtl"===c)}},f));return f}(t,c,l,n))}));eJ.displayName="FabricBase";var tJ={fontFamily:"inherit"},nJ={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},rJ=iG(eJ,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[IQ(nJ,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":tJ,"& input":tJ,"& textarea":tJ}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});var oJ={},iJ={},aJ="fluent-default-layer-host",sJ="#fluent-default-layer-host";var cJ,lJ=qq()?Fd.useLayoutEffect:Fd.useEffect,uJ=aK(),dJ=Fd.forwardRef((function(t,n){var r=Fd.useContext(NZ),o=Fd.useRef(null),i=cZ(o,n),a=Fd.useRef(),s=Fd.useRef(null),c=Fd.useState(!1),l=c[0],u=c[1],d=t.eventBubblingEnabled,p=t.styles,h=t.theme,f=t.className,m=t.children,g=t.hostId,v=t.onLayerDidMount,y=void 0===v?function(){}:v,b=t.onLayerMounted,_=void 0===b?function(){}:b,C=t.onLayerWillUnmount,E=t.insertFirst,w=uJ(p,{theme:h,className:f,isNotHost:!g}),x=function(e){var t,n;if(g){var r=function(e){var t=iJ[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=sJ,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",aJ),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},k=function(){null===C||void 0===C||C();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},S=function(){var e,t=eK(o.current);if(t){var n=x(t);if(n){k();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=w.root,r.setAttribute(hY,"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),E?n.insertBefore(r,n.firstChild):n.appendChild(r),a.current=r,u(!0)}}};return lJ((function(){S(),g&&function(e,t){oJ[e]||(oJ[e]=[]),oJ[e].push(t);var n=iJ[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(g,S);var e=a.current?r(a.current):void 0;return function(){e&&e(),k(),g&&function(e,t){var n=oJ[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete oJ[e])}var o=iJ[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(g,S)}}),[g]),Fd.useEffect((function(){a.current&&l&&(null===_||void 0===_||_(),null===y||void 0===y||y(),u(!1))}),[l,_,y]),Fd.createElement("span",{className:"ms-layer",ref:i},a.current&&qd.createPortal(Fd.createElement(KZ,{layerRoot:!0,providerRef:s},Fd.createElement(rJ,(0,e.__assign)({},!d&&function(){cJ||(cJ={},["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 cJ[e]=pJ})));return cJ}(),{className:w.content,ref:s}),m)),a.current))}));dJ.displayName="LayerBase";var pJ=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var hJ={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},fJ=iG(dJ,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=IQ(hJ,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:lQ.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"]}),mJ=Fd.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,i=(0,e.__rest)(t,["layerProps","doNotLayer"]),a=Fd.createElement(MZ,(0,e.__assign)({},i,{doNotLayer:o,ref:n}));return o?a:Fd.createElement(fJ,(0,e.__assign)({},r),a)}));mJ.displayName="Callout";var gJ,vJ=aK(),yJ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"===typeof t.content?Fd.createElement("p",{className:e._classNames.subText},t.content):Fd.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,c=t.maxWidth,l=t.onRenderContent,u=void 0===l?this._onRenderContent:l,d=t.targetElement,p=t.theme;return this._classNames=vJ(a,{theme:p,className:n||r&&r.className,beakWidth:r&&r.beakWidth,gapSpace:r&&r.gapSpace,maxWidth:c}),Fd.createElement(mJ,(0,e.__assign)({target:d,directionalHint:o,directionalHintForRTL:i},r,sY(this.props,aY,["id"]),{className:this._classNames.root}),Fd.createElement("div",{className:this._classNames.content,id:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},u(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:cX,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(Fd.Component),bJ=iG(yJ,(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,c=s.semanticColors,l=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,aQ.fadeIn200,{background:c.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",l.small,{position:"relative",zIndex:1,color:c.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"}(gJ||(gJ={}));var _J,CJ,EJ,wJ,xJ=aK(),kJ=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=Fd.createRef(),r._defaultTooltipId=dK("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 eX.Parent:return r._tooltipHost.current.parentElement;case eX.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||!fY(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==gJ.zero){var c=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),c)}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===LK||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 gJ.medium:return 300;case gJ.long:return 500;default:return 0}},GK(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new tX(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,c=t.id,l=t.setAriaDescribedBy,u=void 0===l||l,d=t.tooltipProps,p=t.styles,h=t.theme;this._classNames=xJ(p,{theme:h,className:s});var f=this.state.isTooltipVisible,m=c||this._defaultTooltipId,g=(null===d||void 0===d?void 0:d.onRenderContent)?d.onRenderContent():o,v=f&&!!g,y=u&&f&&g?m:void 0;return Fd.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&&Fd.createElement(bJ,(0,e.__assign)({id:m+"--tooltip",content:o,targetElement:this._getTargetElement(),directionalHint:i,directionalHintForRTL:a,calloutProps:rX({},n,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},sY(this.props,aY,["id"]),d)),Fd.createElement("div",{hidden:!0,id:m,style:gQ},g))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:gJ.medium},n}(Fd.Component),SJ={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},TJ=iG(kJ,(function(e){var t=e.className,n=e.theme;return{root:[IQ(SJ,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"}(_J||(_J={})),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"}(CJ||(CJ={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(EJ||(EJ={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(wJ||(wJ={}));var IJ=aK(),AJ=/\.svg$/i;var PJ=Fd.forwardRef((function(t,n){var r=Fd.useRef(),o=Fd.useRef(),i=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,i=e.src,a=Fd.useState(wJ.notLoaded),s=a[0],c=a[1];lJ((function(){c(wJ.notLoaded)}),[i]),Fd.useEffect((function(){s===wJ.notLoaded&&t.current&&(i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&AJ.test(i))&&c(wJ.loaded)})),Fd.useEffect((function(){null===n||void 0===n||n(s)}),[s]);var l=Fd.useCallback((function(e){null===r||void 0===r||r(e),i&&c(wJ.loaded)}),[i,r]),u=Fd.useCallback((function(e){null===o||void 0===o||o(e),c(wJ.error)}),[o]);return[s,l,u]}(t,o),a=i[0],s=i[1],c=i[2],l=sY(t,iY,["width","height"]),u=t.src,d=t.alt,p=t.width,h=t.height,f=t.shouldFadeIn,m=void 0===f||f,g=t.shouldStartVisible,v=t.className,y=t.imageFit,b=t.role,_=t.maximizeFrame,C=t.styles,E=t.theme,w=t.loading,x=function(e,t,n,r){var o=Fd.useRef(t),i=Fd.useRef();(void 0===i||o.current===wJ.notLoaded&&t===wJ.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===wJ.loaded&&(o===CJ.cover||o===CJ.contain||o===CJ.centerContain||o===CJ.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==CJ.centerContain&&o!==CJ.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return EJ.landscape}return EJ.portrait}(e,t,n,r));return o.current=t,i.current}(t,a,o,r),k=IJ(C,{theme:E,className:v,width:p,height:h,maximizeFrame:_,shouldFadeIn:m,shouldStartVisible:g,isLoaded:a===wJ.loaded||a===wJ.notLoaded&&t.shouldStartVisible,isLandscape:x===EJ.landscape,isCenter:y===CJ.center,isCenterContain:y===CJ.centerContain,isCenterCover:y===CJ.centerCover,isContain:y===CJ.contain,isCover:y===CJ.cover,isNone:y===CJ.none,isError:a===wJ.error,isNotImageFit:void 0===y});return Fd.createElement("div",{className:k.root,style:{width:p,height:h},ref:r},Fd.createElement("img",(0,e.__assign)({},l,{onLoad:s,onError:c,key:"fabricImage"+t.src||"",className:k.image,ref:cZ(o,n),src:u,alt:d,role:b,loading:w})))}));PJ.displayName="ImageBase";var DJ={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"},RJ=iG(PJ,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,c=e.isLandscape,l=e.isCenter,u=e.isContain,d=e.isCover,p=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=IQ(DJ,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=Kq(),C=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,E=u&&c||d&&!c?{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&&aQ.fadeIn400,(l||u||d||p||h)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[y.imageCenter,b],u&&[y.imageContain,C&&{width:"100%",height:"100%",objectFit:"contain"},!C&&E,!C&&b],d&&[y.imageCover,C&&{width:"100%",height:"100%",objectFit:"cover"},!C&&E,!C&&b],p&&[y.imageCenterContain,c&&{maxWidth:"100%"},!c&&{maxHeight:"100%"},b],h&&[y.imageCenterCover,c&&{maxHeight:"100%"},!c&&{maxWidth:"100%"},b],f&&[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%"}],c&&y.imageLandscape,!c&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0);RJ.displayName="Image";var MJ=JG({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),NJ="ms-Icon",LJ=wQ((function(e){var t=OQ(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),OJ=function(t){var n=t.iconName,r=t.className,o=t.style,i=void 0===o?{}:o,a=LJ(n)||{},s=a.iconClassName,c=a.children,l=a.fontFamily,u=a.mergeImageProps,d=sY(t,tY),p=t["aria-label"]||t.title,h=t["aria-label"]||t["aria-labelledby"]||t.title?{role:u?void 0:"img"}:{"aria-hidden":!0},f=c;return u&&"object"===typeof c&&"object"===typeof c.props&&p&&(f=Fd.cloneElement(c,{alt:p})),Fd.createElement("i",(0,e.__assign)({"data-icon-name":n},h,d,u?{title:void 0,"aria-label":void 0}:{},{className:cY(NJ,MJ.root,s,!n&&MJ.placeholder,r),style:(0,e.__assign)({fontFamily:l},i)}),f)},FJ=(wQ((function(e,t,n){return OJ({iconName:e,className:t,"aria-label":n})})),aK({cacheSize:100})),BJ=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===wJ.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,c="string"===typeof i&&0===i.length,l=!!this.props.imageProps||this.props.iconType===_J.image||this.props.iconType===_J.Image,u=LJ(i)||{},d=u.iconClassName,p=u.children,h=u.mergeImageProps,f=FJ(o,{theme:s,className:r,iconClassName:d,isImage:l,isPlaceholder:c}),m=l?"span":"i",g=sY(this.props,tY,["aria-label"]),v=this.state.imageLoadError,y=(0,e.__assign)((0,e.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=v&&a||RJ,_=this.props["aria-label"]||this.props.ariaLabel,C=y.alt||_||this.props.title,E=!!(C||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"])?{role:l||h?void 0:"img","aria-label":l||h?void 0:C}:{"aria-hidden":!0},w=p;return h&&p&&"object"===typeof p&&C&&(w=Fd.cloneElement(p,{alt:C})),Fd.createElement(m,(0,e.__assign)({"data-icon-name":i},E,g,h?{title:void 0,"aria-label":void 0}:{},{className:f.root}),l?Fd.createElement(b,(0,e.__assign)({},y)):n||w)},n}(Fd.Component),HJ=iG(BJ,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&MJ.placeholder,MJ.root,o&&MJ.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);HJ.displayName="Icon";var zJ=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),rX(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 c=t.__events__,l=c?c[n]:null;if(l)for(var u in l)if(l.hasOwnProperty(u))for(var d=l[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 c=this._parent,l={target:t,eventName:n,parent:c,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(l),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(c,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};l.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else{l.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(c,e)}}this._eventRecords.push(l)}},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],c=s?s[this._id]:null;c&&(1!==c.length&&n?(s.count--,c.splice(c.indexOf(i),1)):(s.count-=c.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++)VJ(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 tX(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 zJ(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))}}(Fd.Component);function VJ(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 UJ(){return null}function WJ(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(){tG.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){tG.unobserve(this._onSettingChanged)},a.prototype.render=function(){var i=this;return Fd.createElement(nG.Consumer,null,(function(a){var s=tG.getSettings(n,t,a.customizations),c=i.props;if(s.styles&&"function"===typeof s.styles&&(s.styles=s.styles((0,e.__assign)((0,e.__assign)({},s),c))),r&&s.styles){if(i._styleCache.default!==s.styles||i._styleCache.component!==c.styles){var l=Wq(s.styles,c.styles);i._styleCache.default=s.styles,i._styleCache.component=c.styles,i._styleCache.merged=l}return Fd.createElement(o,(0,e.__assign)({},s,c,{styles:i._styleCache.merged}))}return Fd.createElement(o,(0,e.__assign)({},s,c))}))},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(Fd.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 jJ(){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 qJ=function(t){var n=t.className,r=t.imageProps,o=sY(t,tY,["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},c=a?{}:{"aria-hidden":!0};return Fd.createElement("div",(0,e.__assign)({},c,o,{className:cY(NJ,MJ.root,MJ.image,n)}),Fd.createElement(RJ,(0,e.__assign)({},s,r,{alt:a?i:""})))};var GJ,KJ,YJ=xQ((function(e){return xQ((function(t){var n=xQ((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function QJ(e){var t;if("undefined"===typeof KJ||e){var n=Kq(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;KJ=!!r&&-1!==r.indexOf("Macintosh")}return!!KJ}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(GJ||(GJ={}));var XJ=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function ZJ(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function JJ(e){return!(!e.subMenuProps&&!e.items)}function $J(e){return!(!e.isDisabled&&!e.disabled)}function e$(e){return null!==ZJ(e)?"menuitemcheckbox":"menuitem"}var t$,n$=function(t){var n=t.item,r=t.classNames,o=n.iconProps;return Fd.createElement(HJ,(0,e.__assign)({},o,{className:r.icon}))},r$=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,n$):n$(e):null},o$=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=ZJ(n);if(t){return Fd.createElement(HJ,{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?Fd.createElement("span",{className:n.label},t.text||t.name):null},a$=function(e){var t=e.item,n=e.classNames;return t.secondaryText?Fd.createElement("span",{className:n.secondaryText},t.secondaryText):null},s$=function(t){var n=t.item,r=t.classNames,o=t.theme;return JJ(n)?Fd.createElement(HJ,(0,e.__assign)({iconName:rK(o)?"ChevronLeft":"ChevronRight"},n.submenuIconProps,{className:r.subMenuIcon})):null},c$=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();JJ(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;JJ(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},GK(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 Fd.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:o$,renderItemIcon:r$,renderItemName:i$,renderSecondaryText:a$,renderSubMenuIcon:s$}))},n.prototype._renderLayout=function(e,t){return Fd.createElement(Fd.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},n}(Fd.Component),l$=wQ((function(e){return JG({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),u$=36,d$=cQ(0,639),p$=wQ((function(t){var n,r,o,i,a,s=t.semanticColors,c=t.fonts,l=t.palette,u=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,h=s.bodyDivider;return Wq({item:[c.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[fQ(t),c.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:u$,lineHeight:u$,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(n={},n[sQ]={color:"GrayText",opacity:1},n)},rootHovered:{backgroundColor:u,color:d,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:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(o={},o[sQ]={color:"inherit"},o)},r[sQ]=(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:u$,fontSize:kE.medium,width:kE.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[d$]={fontSize:kE.large,width:kE.large},i)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:u$,lineHeight:u$,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:kE.small,selectors:(a={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},a[d$]={fontSize:kE.medium},a)},splitButtonFlexContainer:[fQ(t),{display:"flex",height:u$,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),h$="28px",f$=cQ(0,639),m$=wQ((function(e){var t;return JG(l$(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[f$]={right:32},t)},divider:{height:16,width:1}})})),g$={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"},v$=wQ((function(e,t,n,r,o,i,a,s,c,l,u,d){var p,h,f,m,g=p$(e),v=IQ(g$,e);return JG({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:h$},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,f[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,c,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,c],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,l,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(m={},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,gQ,{visibility:"hidden"}]})})),y$=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,c=e.dividerClassName,l=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return v$(t,n,r,o,i,a,s,c,l,u,d,p)},b$=iG(c$,y$,void 0,{scope:"ContextualMenuItem"}),_$=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(){},GK(n),n}return(0,e.__extends)(n,t),n.prototype.shouldComponentUpdate=function(e){return!nX(e,this.props)},n}(Fd.Component);function C$(e){var t=(0,Fd.useRef)();return(0,Fd.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"}(t$||(t$={}));var E$=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?t$.PERSISTED_KEYTIP_ADDED:t$.KEYTIP_ADDED;zJ.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||zJ.raise(this,t$.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?t$.PERSISTED_KEYTIP_REMOVED:t$.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||zJ.raise(this,r,{keytip:e,uniqueID:t})},t.prototype.enterKeytipMode=function(){zJ.raise(this,t$.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){zJ.raise(this,t$.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){zJ.raise(this,t$.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=dK()),{keytip:(0,e.__assign)({},t),uniqueID:n}},t._instance=new t,t}();function w$(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function x$(t){var n=Fd.useRef(),r=t.keytipProps?(0,e.__assign)({disabled:t.disabled},t.keytipProps):void 0,o=gZ(E$.getInstance()),i=C$(t);lJ((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)})),lJ((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=jJ(r,function(e){var t=" ktp-layer-id";return e.length?t+" "+w$(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=w$(a);return{ariaDescribedBy:i,keytipId:s}}(o,r,t.ariaDescribedBy)),a}var k$=function(t){var n,r=t.children,o=x$((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))},S$=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._anchor=Fd.createRef(),n._getMemoizedMenuButtonKeytipProps=wQ((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?Fd.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,c=n.hasCheckmarks,l=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?b$:u,p=n.expandedMenuItemKey,h=n.onItemClick,f=n.openSubMenu,m=n.dismissSubMenu,g=n.dismissMenu,v=r.rel;r.target&&"_blank"===r.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=JJ(r),b=sY(r,rY),_=$J(r),C=r.itemProps,E=r.ariaDescription,w=r.keytipProps;w&&y&&(w=this._getMemoizedMenuButtonKeytipProps(w)),E&&(this._ariaDescriptionId=dK());var x=jJ(r.ariaDescribedBy,E?this._ariaDescriptionId:void 0,b["aria-describedby"]),k={"aria-describedby":x};return Fd.createElement("div",null,Fd.createElement(k$,{keytipProps:r.keytipProps,ariaDescribedBy:x,disabled:_},(function(n){return Fd.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":$J(r),style:r.style,onClick:t._onItemClick,onMouseEnter:t._onItemMouseEnter,onMouseLeave:t._onItemMouseLeave,onMouseMove:t._onItemMouseMove,onKeyDown:y?t._onItemKeyDown:void 0}),Fd.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:c&&h?h:void 0,hasIcons:l,openSubMenu:f,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:t._getSubmenuTarget},C)),t._renderAriaDescription(E,o.screenReaderText))})))},n}(_$),T$=aK(),I$=Fd.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=T$(n,{theme:r,getClassNames:o,className:i});return Fd.createElement("span",{className:a.wrapper,ref:t},Fd.createElement("span",{className:a.divider}))}));I$.displayName="VerticalDividerBase";var A$=iG(I$,(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"}),P$=function(t){function n(n){var r=t.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=wQ((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===MK?(r._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(n,e)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(e,t){return e?Fd.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 tX(r),r._events=new zJ(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,c=n.hasCheckmarks,l=n.hasIcons,u=n.onItemMouseLeave,d=n.expandedMenuItemKey,p=JJ(r),h=r.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var f=r.ariaDescription;return f&&(this._ariaDescriptionId=dK()),Fd.createElement(k$,{keytipProps:h,disabled:$J(r)},(function(n){return Fd.createElement("div",{"data-ktp-target":n["data-ktp-target"],ref:function(e){return t._splitButton=e},role:e$(r),"aria-label":r.ariaLabel,className:o.splitContainer,"aria-disabled":$J(r),"aria-expanded":p?r.key===d:void 0,"aria-haspopup":!0,"aria-describedby":jJ(r.ariaDescribedBy,f?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,c,l),t._renderSplitDivider(r),t._renderSplitIconButton(r,o,i,n),t._renderAriaDescription(f,o.screenReaderText))}))},n.prototype._renderSplitPrimaryButton=function(t,n,r,o,i){var a=this.props,s=a.contextualMenuItemAs,c=void 0===s?b$:s,l=a.onItemClick,u={key:t.key,disabled:$J(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 Fd.createElement("button",(0,e.__assign)({},sY(u,oY)),Fd.createElement(c,(0,e.__assign)({"data-is-focusable":!1,item:u,classNames:n,index:r,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},d)))},n.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||m$;return Fd.createElement(A$,{getClassNames:t})},n.prototype._renderSplitIconButton=function(t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?b$:a,c=i.onItemMouseLeave,l=i.onItemMouseDown,u=i.openSubMenu,d=i.dismissSubMenu,p=i.dismissMenu,h={onClick:this._onIconItemClick,disabled:$J(t),className:n.splitMenu,subMenuProps:t.subMenuProps,submenuIconProps:t.submenuIconProps,split:!0,key:t.key},f=(0,e.__assign)((0,e.__assign)({},sY(h,oY)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:c?c.bind(this,t):void 0,onMouseDown:function(e){return l?l(t,e):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),m=t.itemProps;return Fd.createElement("button",(0,e.__assign)({},f),Fd.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},m)))},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}(_$),D$=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._btn=Fd.createRef(),n._getMemoizedMenuButtonKeytipProps=wQ((function(t){return(0,e.__assign)((0,e.__assign)({},t),{hasMenu:!0})})),n._renderAriaDescription=function(e,t){return e?Fd.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,c=n.hasCheckmarks,l=n.hasIcons,u=n.contextualMenuItemAs,d=void 0===u?b$:u,p=n.expandedMenuItemKey,h=n.onItemMouseDown,f=n.onItemClick,m=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=ZJ(r),b=null!==y,_=e$(r),C=JJ(r),E=r.itemProps,w=r.ariaLabel,x=r.ariaDescription,k=sY(r,oY);delete k.disabled;var S=r.role||_;x&&(this._ariaDescriptionId=dK());var T=jJ(r.ariaDescribedBy,x?this._ariaDescriptionId:void 0,k["aria-describedby"]),I={className:o.root,onClick:this._onItemClick,onKeyDown:C?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":w,"aria-describedby":T,"aria-haspopup":C||void 0,"aria-expanded":C?r.key===p:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":$J(r),"aria-checked":"menuitemcheckbox"!==S&&"menuitemradio"!==S||!b?void 0:!!y,"aria-selected":"menuitem"===S&&b?!!y:void 0,role:S,style:r.style},A=r.keytipProps;return A&&C&&(A=this._getMemoizedMenuButtonKeytipProps(A)),Fd.createElement(k$,{keytipProps:A,ariaDescribedBy:T,disabled:$J(r)},(function(n){return Fd.createElement("button",(0,e.__assign)({ref:t._btn},k,I,n),Fd.createElement(d,(0,e.__assign)({componentRef:r.componentRef,item:r,classNames:o,index:i,onCheckmarkClick:c&&f?f:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:t._getSubmenuTarget},E)),t._renderAriaDescription(x,o.screenReaderText))}))},n}(_$);function R$(e,t){var n=Fd.useRef(t);return n.current||(n.current=dK(e)),n.current}var M$;!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"}(M$||(M$={}));var N$,L$,O$=[479,639,1023,1365,1919,99999999];function F$(){var e;return null!==(e=null!==N$&&void 0!==N$?N$:L$)&&void 0!==e?e:M$.large}function B$(e){try{return e.document.documentElement.clientWidth}catch(bke){return e.innerWidth}}function H$(e){var t=M$.small;if(e){try{for(;B$(e)>O$[t];)t++}catch(bke){t=F$()}L$=t}else{if(void 0===N$)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=N$}return t}var z$=Fd.createContext({}),V$=aK(),U$=aK(),W$={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:fX,beakWidth:16};function j$(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 c=s[a];if(c.preferMenuTargetAsEventTarget){var l=c.onClick,u=(0,e.__rest)(c,["onClick"]);i.push((0,e.__assign)((0,e.__assign)({},u),{onClick:e0(l,r)}))}else i.push(c)}return i}}var q$="ContextualMenu",G$=wQ((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return jq.apply(void 0,(0,e.__spreadArray)([n,y$],t))}}));function K$(e,t){var n=e.hidden,r=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,c=Fd.useState(),l=c[0],u=c[1],d=Fd.useState(),p=d[0],h=d[1],f=Fd.useState(),m=f[0],g=f[1],v=R$(q$,a),y=Fd.useCallback((function(){g(void 0),u(void 0),h(void 0)}),[]),b=Fd.useCallback((function(e,t,n){var r=e.key;l!==r&&(t.focus(),g(n),u(r),h(t))}),[l]);Fd.useEffect((function(){n&&y()}),[n,y]);var _=function(e,t){var n=Fd.useRef(!1);return Fd.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,y);return[l,b,function(){var e=$$(l,r),t=null;if(e&&(t={items:j$(e,{target:s}),target:p,onDismiss:_,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:m,directionalHint:rK(o)?mX:yX,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&rX(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=e0(n,s)}return t},_]}function Y$(e,t,n,r){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=void 0===a?{}:a,c=s.checkForNoWrap,l=s.direction,u=void 0===l?hK.vertical:l,d=Fd.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===LK||function(e){var t=rK(o)?WK:VK;return!(e.which!==t||!i)&&!(u!==hK.vertical&&(!c||AK(e.target,"data-no-horizontal-wrap")))}(e)||e.which===UK&&(e.altKey||e.metaKey)},f=function(e){d.current=X$(e);var t=e.which===LK&&(QJ()||XJ());return p(e,h,t)},m=function(e){var t=d.current&&X$(e);return d.current=!1,!!t&&!(XJ()||QJ())};return[f,function(e){return p(e,m,!0)},function(e){if(!f(e)&&n.current){var t,r,o=!(!e.altKey&&!e.metaKey),i=e.which===UK,a=e.which===jK;if(!o&&(i||a)){var s=i?(t=n.current,r=n.current.lastChild,EK(t,r,!0,!1,!0,!0)):function(e,t,n){return wK(e,t,!0,!1,!1,n)}(n.current,n.current.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=rK(o)?VK:WK;e.disabled||t.which!==n&&t.which!==MK&&(t.which!==jK||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var Q$=Fd.memo(Fd.forwardRef((function(t,n){var r,o=EX(W$,t),i=(o.ref,(0,e.__rest)(o,["ref"])),a=Fd.useRef(null),s=aZ(),c=R$(q$,i.id),l=function(e,t){var n;return null===(n=i.onDismiss)||void 0===n?void 0:n.call(i,e,t)},u=vZ(i.target,a),d=u[0],p=u[1],h=function(t,n){var r=t.hidden,o=t.onRestoreFocus,i=Fd.useRef([]),a=Fd.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 lJ((function(){var t;if(r)i.current.length>0&&(a({originalElement:i.current[0],containsFocus:!0,documentContainsFocus:(null===(t=eK())||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],f=K$(i,l),m=f[0],g=f[1],v=f[2],y=f[3],b=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=Fd.useRef(!t),o=Fd.useRef(!1);Fd.useEffect((function(){r.current=!t,o.current=!n&&!t&&o.current}),[t,n]);var i=Fd.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,o,i]}(i),_=b[0],C=b[1],E=b[2],w=function(e){var t=Fd.useRef(!0),n=Fd.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),x=w[0],k=w[1],S=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,o=Fd.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),T=S[0],I=S[1],A=S[2],P=function(e,t){var n=Fd.useState(F$()),r=n[0],o=n[1],i=Fd.useCallback((function(){var t=H$(Kq(e.current));r!==t&&o(t)}),[e,r]);return sZ(uZ(),"resize",i),Fd.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=C$(r),s=Fd.useRef(i),c=Fd.useRef(o),l=Fd.useRef(e);s.current=i,c.current=o,l.current=e,Fd.useEffect((function(){var e,t;r&&!1===a?null===(e=c.current)||void 0===e||e.call(c,l.current):r||!1===a||null===(t=s.current)||void 0===t||t.call(s,l.current)}),[r,a]),Fd.useEffect((function(){return function(){var e;return null===(e=c.current)||void 0===e?void 0:e.call(c,l.current)}}),[])}(i);var D=Y$(i,l,a,g),R=D[0],M=D[1],N=D[2],L=D[3],O=function(e,t,n,r,o,i,a,s,c,l,u,d,p){var h=e.target,f=function(){return!t.current||!i.current},m=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(l(),void 0===a&&r.focus(),JJ(e)?(t.stopPropagation(),c((function(){r.focus(),u(e,r,!0)}))):c((function(){d(t),r.focus()})))},g=function(t,n,r){var o=j$(t,{target:h});if(l(),JJ(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&&t0(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),f()||m(e,t,n)},function(e,a,s){var c=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&c!==(null===r||void 0===r?void 0:r.document.activeElement)&&m(e,a,s))},function(e,t){var n;if(!f()&&(l(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(bke){}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,A,p,_,C,m,a,I,T,g,y,l),F=O[0],B=O[1],H=O[2],z=O[3],V=O[4],U=O[5],W=O[6],j=function(e,t,n){var r=0,o=e.items,i=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return Fd.createElement("ul",{className:t.list,onKeyDown:R,onKeyUp:M,role:"presentation"},o.map((function(e,n){var o=q(e,n,r,i,a,s,t);if(e.itemType!==GJ.Divider&&e.itemType!==GJ.Header){var c=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=c}return o})))},q=function(e,t,n,r,o,a,s){var c,l,u=[],d=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,f=h?h.styles:void 0,g=e.itemType===GJ.Divider?e.className:void 0,v=e.submenuIconProps?e.submenuIconProps.className:"";if(p)l=p(i.theme,$J(e),m===e.key,!!ZJ(e),!!e.href,"None"!==d.iconName,e.className,g,d.className,v,e.primaryDisabled);else{var y={theme:i.theme,disabled:$J(e),expanded:m===e.key,checked:!!ZJ(e),isAnchorLink:!!e.href,knownIcon:"None"!==d.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:d.className,subMenuClassName:v,primaryDisabled:e.primaryDisabled};l=U$(G$(null===(c=s.subComponentStyles)||void 0===c?void 0:c.menuItem,f),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=GJ.Divider),e.itemType){case GJ.Divider:u.push(Y(t,l));break;case GJ.Header:u.push(Y(t,l));var b=X(e,l,s,t,o,a);u.push(K(b,e.key||t,l,e.title));break;case GJ.Section:u.push(G(e,l,s,t,o,a));break;default:var _=function(){return Q(e,l,t,n,r,o,a)},C=i.onRenderContextualMenuItem?i.onRenderContextualMenuItem(e,_):_();u.push(K(C,e.key||t,l,e.title))}return Fd.createElement(Fd.Fragment,{key:e.key},u)},G=function(t,n,r,o,i,a){var s=t.sectionProps;if(s){var l,u;if(s.title){var d=void 0,p="";if("string"===typeof s.title){var h=c+s.title.replace(/\s/g,"");d={key:"section-"+s.title+"-title",itemType:GJ.Header,text:s.title,id:h},p=h}else{var f=s.title.id||c+s.title.key.replace(/\s/g,"");d=(0,e.__assign)((0,e.__assign)({},s.title),{id:f}),p=f}d&&(u={role:"group","aria-labelledby":p},l=X(d,n,r,o,i,a))}return s.items&&s.items.length>0?Fd.createElement("li",{role:"presentation",key:s.key||t.key||"section-"+o},Fd.createElement("div",(0,e.__assign)({},u),Fd.createElement("ul",{className:r.list,role:"presentation"},s.topDivider&&Y(o,n,!0,!0),l&&K(l,t.key||o,n,t.title),s.items.map((function(e,t){return q(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 Fd.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},Y=function(e,t,n,r){return r||e>0?Fd.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Q=function(t,n,r,o,a,s,c){if(t.onRender)return t.onRender((0,e.__assign)({"aria-posinset":o+1,"aria-setsize":a},t),l);var u={item:t,classNames:n,index:r,focusableElementIndex:o,totalItemCount:a,hasCheckmarks:s,hasIcons:c,contextualMenuItemAs:i.contextualMenuItemAs,onItemMouseEnter:F,onItemMouseLeave:H,onItemMouseMove:B,onItemMouseDown:Z$,executeItemClick:U,onItemKeyDown:L,expandedMenuItemKey:m,openSubMenu:g,dismissSubMenu:y,dismissMenu:l};return t.href?Fd.createElement(S$,(0,e.__assign)({},u,{onItemClick:V})):t.split&&JJ(t)?Fd.createElement(P$,(0,e.__assign)({},u,{onItemClick:z,onItemClickBase:W,onTap:T})):Fd.createElement(D$,(0,e.__assign)({},u,{onItemClick:z,onItemClickBase:W}))},X=function(t,n,r,o,a,s){var c=i.contextualMenuItemAs,l=void 0===c?b$:c,u=t.itemProps,d=t.id,p=u&&sY(u,aY);return Fd.createElement("div",(0,e.__assign)({id:d,className:r.header},p,{style:t.style}),Fd.createElement(l,(0,e.__assign)({item:t,classNames:n,index:o,onCheckmarkClick:a?z: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,ce=i.ariaLabel,le=i.doNotLayer,ue=i.target,de=i.bounds,pe=i.useTargetWidth,he=i.useTargetAsMinWidth,fe=i.directionalHintFixed,me=i.shouldFocusOnMount,ge=i.shouldFocusOnContainer,ve=i.title,ye=i.styles,be=i.theme,_e=i.calloutProps,Ce=i.onRenderSubMenu,Ee=void 0===Ce?J$:Ce,we=i.onRenderMenuList,xe=void 0===we?function(e,t){return j(e,Te)}:we,ke=i.focusZoneProps,Se=i.getMenuClassNames,Te=Se?Se(be,te):V$(ye,{theme:be,className:te}),Ie=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===GJ.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(J);var Ae,Pe=(0,e.__assign)((0,e.__assign)({direction:hK.vertical,handleTabKey:fK,isCircularNavigation:!0},ke),{className:cY(Te.root,null===(r=i.focusZoneProps)||void 0===r?void 0:r.className)}),De=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(J),Re=m&&!0!==i.hidden?v():null;Z=void 0===Z?P<=M$.medium:Z;var Me=d.current;if((pe||he)&&Me&&Me.offsetWidth){var Ne=Me.getBoundingClientRect().width-2;pe?Ae={width:Ne}:he&&(Ae={minWidth:Ne})}if(J&&J.length>0){for(var Le=0,Oe=0,Fe=J;Oe<Fe.length;Oe++){var Be=Fe[Oe];if(Be.itemType!==GJ.Divider&&Be.itemType!==GJ.Header){var He=Be.customOnRenderListLength?Be.customOnRenderListLength:1;Le+=He}}var ze=Te.subComponentStyles?Te.subComponentStyles.callout:void 0;return Fd.createElement(z$.Consumer,null,(function(t){return Fd.createElement(mJ,(0,e.__assign)({styles:ze,onRestoreFocus:h},_e,{target:ue||t.target,isBeakVisible:Z,beakWidth:ne,directionalHint:re,directionalHintForRTL:oe,gapSpace:ae,coverTarget:se,doNotLayer:le,className:cY("ms-ContextualMenu-Callout",_e&&_e.className),setInitialFocus:me,onDismiss:i.onDismiss||t.onDismiss,onScroll:x,bounds:de,directionalHintFixed:fe,alignTargetEdge:ie,hidden:i.hidden||t.hidden,ref:n}),Fd.createElement("div",{style:Ae,ref:a,id:ee,className:Te.container,tabIndex:ge?0:-1,onKeyDown:N,onKeyUp:M,onFocusCapture:E,"aria-label":ce,"aria-labelledby":$,role:"menu"},ve&&Fd.createElement("div",{className:Te.title}," ",ve," "),J&&J.length?function(t,n){var r=i.focusZoneAs,o=void 0===r?$Q:r;return Fd.createElement(o,(0,e.__assign)({},n),t)}(xe({ariaLabel:ce,items:J,totalItemCount:Le,hasCheckmarks:De,hasIcons:Ie,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return q(e,n,r,o,i,a,t)}(e,Te)},labelElementId:$},(function(e,t){return j(e,Te)})),Pe):null,Re&&Ee(Re,J$)),Fd.createElement(UZ,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||nX(e,t)}));function X$(e){return e.which===NK||"Meta"===e.key}function Z$(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function J$(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,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===GJ.Section&&o.sectionProps){var i=$$(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function e0(e,t){return e?function(n,r){return t0(n,t),e(n,r)}:e}function t0(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}Q$.displayName="ContextualMenuBase";var n0={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function r0(t){return Fd.createElement(o0,(0,e.__assign)({},t))}var o0=iG(Q$,(function(e){var t=e.className,n=e.theme,r=IQ(n0,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:xE.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:u$,lineHeight:u$,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=r0,YJ(t)(n)):r0};var t,n}),{scope:"ContextualMenu"}),i0=o0;i0.displayName="ContextualMenu";var a0={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"},s0=wQ((function(e,t,n,r,o,i,a,s,c,l,u){var d,p,h=IQ(a0,e||{}),f=l&&!u;return JG({root:[h.msButton,t.root,r,c&&["is-checked",t.rootChecked],f&&["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&&[a0.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!f&&!c&&{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&&c&&[t.rootCheckedDisabled],!a&&c&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,f&&t.iconExpanded,c&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,c&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,c&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!f&&!c&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},f&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,c&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})})),c0=wQ((function(e,t,n,r,o){return{root:lY(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:lY(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:lY(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:lY(e.splitButtonFlexContainer),divider:lY(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}));var l0=xQ((function(t){var n=t;return xQ((function(r){if(t===r)throw new Error("Attempted to compose a component with itself.");var o=r,i=xQ((function(t){return function(n){return Fd.createElement(o,(0,e.__assign)({},n,{defaultRender:t}))}}));return function(t){var r=t.defaultRender;return Fd.createElement(n,(0,e.__assign)({},t,{defaultRender:r?i(r):o}))}}))}));var u0=function(t){function n(n){var r=t.call(this,n)||this;return r._buttonElement=Fd.createRef(),r._splitButtonContainer=Fd.createRef(),r._mergedRef=yK(),r._renderedVisibleMenu=!1,r._getMemoizedMenuButtonKeytipProps=wQ((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 Fd.createElement(HJ,(0,e.__assign)({className:cY(r._classNames.icon,i),imageProps:a},s));if(o.iconName)return Fd.createElement(OJ,(0,e.__assign)({className:cY(r._classNames.icon,i)},s));if(a)return Fd.createElement(qJ,(0,e.__assign)({className:cY(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,c=e.onRenderDescription,l=void 0===c?r._onRenderDescription:c;return t||"string"===typeof n||i?Fd.createElement("span",{className:r._classNames.textContainer},s(r.props,r._onRenderText),l(r.props,r._onRenderDescription)):[s(r.props,r._onRenderText),l(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()?Fd.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?Fd.createElement("span",{key:r._descriptionId,className:r._classNames.description,id:r._descriptionId},n):null},r._onRenderAriaDescription=function(){var e=r.props.ariaDescription;return e?Fd.createElement("span",{className:r._classNames.screenReaderText,id:r._ariaDescriptionId},e):null},r._onRenderMenuIcon=function(t){var n=r.props.menuIconProps;return Fd.createElement(OJ,(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=i0,l0(n)(o)):i0;return Fd.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&&fY(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!==MK&&e.which!==OK?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===MK||e.which===OK?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===UK,n=e.which===jK;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!==MK&&e.which!==OK||hQ(!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())},GK(r),r._async=new tX(r),r._events=new zJ(r),r.props.split,r._labelId=dK(),r._descriptionId=dK(),r._ariaDescriptionId=dK(),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,c=t.primaryDisabled,l=t.secondaryText,u=void 0===l?this.props.description:l,d=t.href,p=t.iconProps,h=t.menuIconProps,f=t.styles,m=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,_=t.role,C=this.state.menuHidden,E=a||c;this._classNames=b?b(v,i,g,p&&p.className,h&&h.className,E,m,!C,!!this.props.menuProps,this.props.split,!!s):s0(v,f,i,g,p&&p.className,h&&h.className,E,!!this.props.menuProps,m,!C,this.props.split);var w=this,x=w._ariaDescriptionId,k=w._labelId,S=w._descriptionId,T=!E&&!!d,I=T?"a":"button",A=sY(rX(T?{}:{type:"button"},this.props.rootProps,this.props),T?rY:oY,["disabled"]),P=r||A["aria-label"],D=void 0;n?D=x:u&&this.props.onRenderDescription!==UJ?D=S:A["aria-describedby"]&&(D=A["aria-describedby"]);var R=void 0;A["aria-labelledby"]?R=A["aria-labelledby"]:D&&!P&&(R=this._hasText()?k:void 0);var M=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),N="menuitemcheckbox"===_||"checkbox"===_,L=N||!0===y?!!m:void 0,O=rX(A,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:E&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":P,"aria-labelledby":R,"aria-describedby":D,"aria-disabled":E,"data-is-focusable":M})[N?"aria-checked":"aria-pressed"]=L,e));if(o&&(O["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(I,O);if(this.props.menuProps){var F=this.props.menuProps.id,B=void 0===F?this._labelId+"-menu":F;rX(O,{"aria-expanded":!C,"aria-controls":C?null:B,"aria-haspopup":!0})}return this._onRenderContent(I,O)},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?(hQ(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(hQ(!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,c=o.onRenderIcon,l=void 0===c?this._onRenderIcon:c,u=o.onRenderAriaDescription,d=void 0===u?this._onRenderAriaDescription:u,p=o.onRenderChildren,h=void 0===p?this._onRenderChildren:p,f=o.onRenderMenu,m=void 0===f?this._onRenderMenu:f,g=o.onRenderMenuIcon,v=void 0===g?this._onRenderMenuIcon:g,y=o.disabled,b=o.keytipProps;b&&s&&(b=this._getMemoizedMenuButtonKeytipProps(b));var _=function(t){return Fd.createElement(i,(0,e.__assign)({},n,t),Fd.createElement("span",{className:r._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},l(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()&&m(r._getMenuProps(s),r._onRenderMenu)))},C=b?Fd.createElement(k$,{keytipProps:this._isSplitButton?void 0:b,ariaDescribedBy:n["aria-describedby"],disabled:y},(function(e){return _(e)})):_();return s&&s.doNotLayer?Fd.createElement(Fd.Fragment,null,C,this._shouldRenderMenu()&&m(this._getMenuProps(s),this._onRenderMenu)):Fd.createElement(Fd.Fragment,null,C,Fd.createElement(UZ,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:dX},t),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:n?r:void 0,className:cY("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,c=o.allowDisabledFocus,l=o.checked,u=o.getSplitButtonClassNames,d=o.primaryDisabled,p=o.menuProps,h=o.toggle,f=o.role,m=o.primaryActionButtonProps,g=this.props.keytipProps,v=this.state.menuHidden,y=u?u(!!s,!v,!!l,!!c):a&&c0(a,!!s,!v,!!l,!!d);rX(n,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var b=sY(n,[],["disabled"]);m&&rX(n,m);var _=function(o){return Fd.createElement("div",(0,e.__assign)({},b,{"data-ktp-target":o?o["data-ktp-target"]:void 0,role:f||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":h?!!l:void 0,"aria-describedby":jJ(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||c?0:void 0,"aria-roledescription":n["aria-roledescription"],onFocusCapture:r._onSplitContainerFocusCapture}),Fd.createElement("span",{style:{display:"flex",width:"100%"}},r._onRenderContent(t,n),r._onRenderSplitButtonMenuButton(y,o),r._onRenderSplitButtonDivider(y)))};return g?Fd.createElement(k$,{keytipProps:g,disabled:s},(function(e){return _(e)})):_()},n.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return Fd.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,c=o.splitButtonMenuProps,l=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)({},c),{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:l,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return Fd.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===jK&&(e.altKey||e.metaKey))},n.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},n}(Fd.Component),d0={outline:0},p0=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},h0=wQ((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,c=r.disabledText,l={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[fQ(e,{inset:1,highContrastStyle:l,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:[fQ(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:c,cursor:"default",selectors:{":hover":d0,":focus":d0}}],iconDisabled:{color:c,selectors:(t={},t[sQ]={color:"GrayText"},t)},menuIconDisabled:{color:c,selectors:(n={},n[sQ]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:p0(i.mediumPlus.fontSize),menuIcon:p0(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:gQ}})),f0=wQ((function(t,n){var r,o,i,a,s,c,l,u,d,p,h,f,m,g=t.effects,v=t.palette,y=t.semanticColors,b={left:-2,top:-2,bottom:-2,right:-2,border:"none"},_={position:"absolute",width:1,right:31,top:8,bottom:8};return Wq({splitButtonContainer:[fQ(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[sQ]=(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[sQ]={border:"1px solid WindowText",borderLeftWidth:"0"},o)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[sQ]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(a={},a[sQ]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},a)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[sQ]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(c={},c[sQ]=(0,e.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}}},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[sQ]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:(0,e.__assign)((0,e.__assign)({},_),{selectors:(u={},u[sQ]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:(0,e.__assign)((0,e.__assign)({},_),{selectors:(d={},d[sQ]={backgroundColor:"GrayText"},d)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[sQ]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(f={},f[sQ]={color:"GrayText"},f)}},p[sQ]={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:(m={},m[sQ]=(0,e.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m)},splitButtonMenuFocused:(0,e.__assign)({},fQ(t,{highContrastStyle:b,inset:2}))},n)}));var m0=wQ((function(t,n,r){var o=h0(t),i=f0(t);return Wq(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:xE.semibold}},r?function(t){var n,r,o,i,a,s,c,l,u,d=t.palette,p=t.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid "+p.primaryButtonBackground,color:p.primaryButtonText,selectors:(n={},n[sQ]=(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[sQ]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid "+p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed,selectors:(o={},o[sQ]=(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[sQ]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(a={},a[sQ]={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[sQ]={backgroundColor:"Window"},s)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(c={},c[sQ]={backgroundColor:"WindowText"},c[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[sQ]={color:"Highlight"},l)},c)},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[sQ]={color:"GrayText"},u)}}}(t):function(t){var n,r,o,i,a,s=t.semanticColors,c=t.palette,l=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,p=s.buttonBackgroundDisabled,h=s.buttonText,f=s.buttonTextHovered,m=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:h},rootHovered:{backgroundColor:d,color:f,selectors:(n={},n[sQ]={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:m,backgroundColor:p,selectors:(r={},r[sQ]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(o={},o[sQ]={border:"none"},o)},splitButtonMenuButton:{color:c.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:c.neutralLight,selectors:(i={},i[sQ]={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:c.neutralTertiaryAlt,selectors:(a={},a[sQ]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:t.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:c.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:c.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:c.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:c.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}(t),i,n)})),g0=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 Fd.createElement(u0,(0,e.__assign)({},this.props,{variantClassName:r?"ms-Button--primary":"ms-Button--default",styles:m0(i,o,r),onRenderDescription:UJ}))},n=(0,e.__decorate)([WJ("DefaultButton",["theme","styles"],!0)],n)}(Fd.Component),v0=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.render=function(){return Fd.createElement(g0,(0,e.__assign)({},this.props,{primary:!0,onRenderDescription:UJ}))},n=(0,e.__decorate)([WJ("PrimaryButton",["theme","styles"],!0)],n)}(Fd.Component),y0=wQ((function(e,t){var n,r=h0(e),o=f0(e),i=e.palette;return Wq(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[sQ]={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)})),b0=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 Fd.createElement(u0,(0,e.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:y0(r,n),onRenderText:UJ,onRenderDescription:UJ}))},n=(0,e.__decorate)([WJ("IconButton",["theme","styles"],!0)],n)}(Fd.Component),_0=e.__assign;function C0(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t;return i.isSlot?0===(r=Fd.Children.toArray(r)).length?i(n):i((0,e.__assign)((0,e.__assign)({},n),{children:r})):Fd.createElement.apply(Fd,(0,e.__spreadArray)([t,n],r))}function E0(t,n){void 0===n&&(n={});var r=n.defaultProp,o=void 0===r?"children":r;return function(n,r,i,a,s){if(Fd.isValidElement(r))return r;var c=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),l=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 c=s[a];i.push(c&&c.className),_0(o,c)}return o.className=uY([e,i],{rtl:rK(t)}),o}(a,s,n,c);if(i){if(i.component){var u=i.component;return Fd.createElement(u,(0,e.__assign)({},l))}if(i.render)return i.render(l,t)}return Fd.createElement(t,(0,e.__assign)({},l))}}var w0=wQ((function(e){return E0(e)}));function x0(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 k0(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 k0(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):w0(e)(t,n,r,o,i)}function S0(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 tG.getSettings(n||r,e,t.customizations)}(n.displayName,Fd.useContext(nG),n.fields),i=n.state;i&&(r=(0,e.__assign)((0,e.__assign)({},r),i(r)));var a=r.theme||o.theme,s=T0(r,a,n.tokens,o.tokens,r.tokens),c=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return Wq.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),l=(0,e.__assign)((0,e.__assign)({},r),{styles:c,tokens:s,_defaultStyles:c,theme:a});return t(l)};return i.displayName=n.displayName||t.name,o&&(i.create=E0(i,{defaultProp:o})),_0(i,n.statics),i}function T0(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 c=s[a];c&&(c="function"===typeof c?c(t,n):c,Array.isArray(c)&&(c=T0.apply(void 0,(0,e.__spreadArray)([t,n],c))),_0(i,c))}return i}var I0=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},A0=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"}},P0=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?I0(e,t):n.reduce((function(e,n){return I0(e,t)+" "+I0(n,t)}))},D0={start:"flex-start",end:"flex-end"},R0={root:"ms-Stack",inner:"ms-Stack-inner"},M0={root:"ms-StackItem"},N0={start:"flex-start",end:"flex-end"},L0=S0((function(t){var n=t.children,r=sY(t,tY);return null==n?null:C0(x0(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,c=e.order,l=e.className,u=e.basis,d=void 0===u?"auto":u,p=IQ(M0,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:N0[a]||a},c&&{order:c},l]}}});var O0=S0((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=Fd.Children.toArray(t.children);1===s.length&&Fd.isValidElement(s[0])&&s[0].type===Fd.Fragment&&(s=s[0].props.children),s=Fd.Children.map(s,(function(t,n){if(!t)return null;if((i=t)&&"object"===typeof i&&i.type&&i.type.displayName===L0.displayName){var r={shrink:!o};return Fd.cloneElement(t,(0,e.__assign)((0,e.__assign)({},r),t.props))}var i;return t}));var c=sY(a,tY),l=x0(t,{root:r,inner:"div"});return C0(l.root,(0,e.__assign)({},c),i?C0(l.inner,null,s):s)}),{displayName:"Stack",styles:function(t,n,r){var o,i,a,s,c,l,u,d=t.verticalFill,p=t.horizontal,h=t.reversed,f=t.grow,m=t.wrap,g=t.horizontalAlign,v=t.verticalAlign,y=t.disableShrink,b=t.className,_=IQ(R0,n),C=r&&r.childrenGap?r.childrenGap:t.gap,E=r&&r.maxHeight?r.maxHeight:t.maxHeight,w=r&&r.maxWidth?r.maxWidth:t.maxWidth,x=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:A0(I0(n[0],t)),columnGap:A0(I0(n[1],t))};var r=A0(I0(e,t));return{rowGap:r,columnGap:r}}(C,n),S=k.rowGap,T=k.columnGap,I=""+-.5*T.value+T.unit,A=""+-.5*S.value+S.unit,P={textOverflow:"ellipsis"},D={"> *:not(.ms-StackItem)":{flexShrink:y?0:1}};return m?{root:[_.root,{flexWrap:"wrap",maxWidth:w,maxHeight:E,width:"auto",overflow:"visible",height:"100%"},g&&(o={},o[p?"justifyContent":"alignItems"]=D0[g]||g,o),v&&(i={},i[p?"alignItems":"justifyContent"]=D0[v]||v,i),b,{display:"flex"},p&&{height:d?"100%":"auto"}],inner:[_.inner,{display:"flex",flexWrap:"wrap",marginLeft:I,marginRight:I,marginTop:A,marginBottom:A,overflow:"visible",boxSizing:"border-box",padding:P0(x,n),width:0===T.value?"100%":"calc(100% + "+T.value+T.unit+")",maxWidth:"100vw",selectors:(0,e.__assign)({"> *":(0,e.__assign)({margin:""+.5*S.value+S.unit+" "+.5*T.value+T.unit},P)},D)},g&&(a={},a[p?"justifyContent":"alignItems"]=D0[g]||g,a),v&&(s={},s[p?"alignItems":"justifyContent"]=D0[v]||v,s),p&&{flexDirection:h?"row-reverse":"row",height:0===S.value?"100%":"calc(100% + "+S.value+S.unit+")",selectors:{"> *":{maxWidth:0===T.value?"100%":"calc(100% - "+T.value+T.unit+")"}}},!p&&{flexDirection:h?"column-reverse":"column",height:"calc(100% + "+S.value+S.unit+")",selectors:{"> *":{maxHeight:0===S.value?"100%":"calc(100% - "+S.value+S.unit+")"}}}]}:{root:[_.root,{display:"flex",flexDirection:p?h?"row-reverse":"row":h?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:w,maxHeight:E,padding:P0(x,n),boxSizing:"border-box",selectors:(0,e.__assign)((c={"> *":P},c[h?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+T.value+T.unit},!p&&{marginTop:""+S.value+S.unit}],c),D)},f&&{flexGrow:!0===f?1:f},g&&(l={},l[p?"justifyContent":"alignItems"]=D0[g]||g,l),v&&(u={},u[p?"alignItems":"justifyContent"]=D0[v]||v,u),b]}},statics:{Item:L0}});function F0(e){var t=Fd.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return lJ((function(){t.current=e}),[e]),gZ((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 B0={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},H0=Fd.forwardRef((function(t,n){var r,o=Fd.useRef(null),i=Fd.useRef(null),a=Fd.useRef(null),s=cZ(o,n),c=dZ(),l=null===(r=C$(!1))||void 0===r||r,u=EX(B0,t),d=gZ({hasFocus:!1,focusStackId:R$("ftz-",u.id)}),p=u.children,h=u.componentRef,f=u.disabled,m=u.disableFirstFocus,g=u.forceFocusInsideTrap,v=u.focusPreviouslyFocusedInnerElement,y=u.firstFocusableSelector,b=u.firstFocusableTarget,_=u.disableRestoreFocus,C=void 0===_?u.ignoreExternalFocusing:_,E=u.isClickableOutsideFocusTrap,w=u.enableAriaHiddenSiblings,x={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:f?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},k=Fd.useCallback((function(e){e!==i.current&&e!==a.current&&DK(e)}),[]),S=F0((function(){if(o.current){var e=d.previouslyFocusedElementInTrapZone;if(v&&e&&CK(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=wK(o.current,o.current.firstChild,!1,!1,!1,!0)),t&&k(t)}}})),T=function(e){if(!f&&o.current){var t,n,r,s=e===d.hasFocus?(t=o.current,n=a.current,void 0===(r=!1)&&(r=!0),EK(t,n,r,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),wK(e,t,r,!1,!1,n,!1,!0)}(o.current,i.current,!0,!1);s&&(s===i.current||s===a.current?S():s.focus())}},I=F0((function(e){if(H0.focusStack=H0.focusStack.filter((function(e){return d.focusStackId!==e})),c){var t=c.activeElement;C||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!CK(o.current,t)&&t!==c.body||k(e)}})),A=F0((function(e){if(!f&&d.focusStackId===H0.focusStack.slice(-1)[0]){var t=e.target;t&&!CK(o.current,t)&&(c&&c.activeElement===c.body?setTimeout((function(){c&&c.activeElement===c.body&&(S(),d.hasFocus=!0)}),0):(S(),d.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return Fd.useEffect((function(){var e=[];return g&&e.push(CX(window,"focus",A,!0)),E||e.push(CX(window,"click",A,!0)),function(){e.forEach((function(e){return e()}))}}),[g,E]),Fd.useEffect((function(){if(!f&&(l||g)&&o.current){H0.focusStack.push(d.focusStackId);var e=u.elementToFocusOnDismiss||c.activeElement;return m||CK(o.current,e)||S(),function(){return I(e)}}}),[g,f]),Fd.useEffect((function(){if(!f&&w)return iZ(o.current)}),[f,w,o]),function(e){var t=Fd.useRef(e);t.current=e,Fd.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])}((function(){delete d.previouslyFocusedElementInTrapZone})),function(e,t,n){Fd.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(h,d.previouslyFocusedElementInTrapZone,S),Fd.createElement("div",(0,e.__assign)({"aria-labelledby":u.ariaLabelledBy},sY(u,aY),{ref:s,onFocusCapture:function(e){var t;null===(t=u.onFocusCapture)||void 0===t||t.call(u,e),e.target===i.current?T(!0):e.target===a.current&&T(!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=c.activeElement),CK(o.current,n)||(d.hasFocus=!1)}}),Fd.createElement("div",(0,e.__assign)({},x,{ref:i})),p,Fd.createElement("div",(0,e.__assign)({},x,{ref:a})))}));H0.displayName="FocusTrapZone",H0.focusStack=[];var z0=aK(),V0=Fd.forwardRef((function(t,n){var r,o,i,a,s,c,l,u=Fd.useRef(null),d=dZ(),p=cZ(u,n),h=R$("teaching-bubble-content-"),f=R$("teaching-bubble-title-"),m=null!==(r=t.ariaDescribedBy)&&void 0!==r?r:h,g=null!==(o=t.ariaLabelledBy)&&void 0!==o?o:f,v=t.illustrationImage,y=t.primaryButtonProps,b=t.secondaryButtonProps,_=t.headline,C=t.hasCondensedHeadline,E=t.hasCloseButton,w=void 0===E?t.hasCloseIcon:E,x=t.onDismiss,k=t.closeButtonAriaLabel,S=t.hasSmallHeadline,T=t.isWide,I=t.styles,A=t.theme,P=t.footerContent,D=t.focusTrapZoneProps,R=z0(I,{theme:A,hasCondensedHeadline:C,hasSmallHeadline:S,hasCloseButton:w,hasHeadline:!!_,isWide:T,primaryButtonClassName:y?y.className:void 0,secondaryButtonClassName:b?b.className:void 0});if(sZ(d,"keydown",Fd.useCallback((function(e){x&&e.which===LK&&x(e)}),[x])),v&&v.src&&(i=Fd.createElement("div",{className:R.imageContent},Fd.createElement(RJ,(0,e.__assign)({},v)))),_){var M="string"===typeof _?"p":"div";a=Fd.createElement("div",{className:R.header},Fd.createElement(M,{role:"heading","aria-level":3,className:R.headline,id:g},_))}if(t.children){var N="string"===typeof t.children?"p":"div";s=Fd.createElement("div",{className:R.body},Fd.createElement(N,{className:R.subText,id:m},t.children))}return(y||b||P)&&(c=Fd.createElement(O0,{className:R.footer,horizontal:!0,horizontalAlign:P?"space-between":"end"},Fd.createElement(O0.Item,{align:"center"},Fd.createElement("span",null,P)),Fd.createElement(O0.Item,null,y&&Fd.createElement(v0,(0,e.__assign)({},y,{className:R.primaryButton})),b&&Fd.createElement(g0,(0,e.__assign)({},b,{className:R.secondaryButton}))))),w&&(l=Fd.createElement(b0,{className:R.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:k,onClick:x})),function(e,t){Fd.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(t.componentRef,u),Fd.createElement("div",{className:R.content,ref:p,role:"dialog",tabIndex:-1,"aria-labelledby":g,"aria-describedby":m,"data-is-focusable":!0},i,Fd.createElement(H0,(0,e.__assign)({isClickableOutsideFocusTrap:!0},D),Fd.createElement("div",{className:R.bodyContent},a,s,c,l)))})),U0={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"},W0=wQ((function(){return function(e){var t=wG.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",QG(TG(),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:eQ,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),j0=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:""+W0(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},q0=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},G0=function(t){var n,r,o,i=t.hasCondensedHeadline,a=t.hasSmallHeadline,s=t.hasCloseButton,c=t.hasHeadline,l=t.isWide,u=t.primaryButtonClassName,d=t.secondaryButtonClassName,p=t.theme,h=t.calloutProps,f=void 0===h?{className:void 0,theme:p}:h,m=!i&&!a,g=p.palette,v=p.semanticColors,y=p.fonts,b=IQ(U0,p),_=fQ(p,{outlineColor:"transparent",borderColor:"transparent"});return{root:[b.root,y.medium,f.className],body:[b.body,s&&!c&&{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],j0(l)),[l&&{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],q0(b,i,a)),[s&&{marginRight:24},(i||a)&&[y.medium,{fontWeight:xE.semibold}]]),headline:[b.headline,{margin:0,color:g.white,fontWeight:xE.semibold,overflowWrap:"break-word"},m&&[{fontSize:y.xLarge.fontSize}]],imageContent:[b.header,b.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[b.primaryButton,u,_,{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,_,{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:xE.regular}],subComponentStyles:{callout:{root:(0,e.__spreadArray)((0,e.__spreadArray)([],j0(l,f)),[y.medium]),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},K0=iG(V0,G0,void 0,{scope:"TeachingBubbleContent"}),Y0={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:bX},Q0=aK(),X0=Fd.forwardRef((function(t,n){var r=Fd.useRef(null),o=cZ(r,n),i=t.calloutProps,a=t.targetElement,s=t.onDismiss,c=t.hasCloseButton,l=void 0===c?t.hasCloseIcon:c,u=t.isWide,d=t.styles,p=t.theme,h=t.target,f=Fd.useMemo((function(){return(0,e.__assign)((0,e.__assign)((0,e.__assign)({},Y0),i),{theme:p})}),[i,p]),m=Q0(d,{theme:p,isWide:u,calloutProps:f,hasCloseButton:l}),g=m.subComponentStyles?m.subComponentStyles.callout:void 0;return function(e,t){Fd.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(t.componentRef,r),Fd.createElement(mJ,(0,e.__assign)({target:h||a,onDismiss:s},f,{className:m.root,styles:g,hideOverflow:!0}),Fd.createElement("div",{ref:o},Fd.createElement(K0,(0,e.__assign)({},t))))}));X0.displayName="TeachingBubble";var Z0=iG(X0,G0,void 0,{scope:"TeachingBubble"}),J0=["calloutProps"],$0=function(e){dG(n,e);var t=mG(n);function n(){return sG(this,n),t.apply(this,arguments)}return lG(n,[{key:"render",value:function(){var e=this.props,t=e.calloutProps,n=aG(e,J0);return Fd.createElement(Z0,YC(YC({hasCondensedHeadline:!0,hasSmallHeadline:!0,hasCloseIcon:!0,isWide:!1},n),{},{calloutProps:YC({beakWidth:12,directionalHint:dX,directionalHintFixed:!0},t)}))}}]),n}(Fd.Component),e1=iG($0,(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"}),t1=["className","title","disabled"],n1=aK(),r1=iG(TJ,{root:{display:"flex"}},void 0,{scope:"FlexTooltipHost"}),o1=function(e){dG(n,e);var t=mG(n);function n(e){var r;return sG(this,n),GC(uG(r=t.call(this,e)),"_linkTipId",dK("linkTip")),GC(uG(r),"_onClick",(function(e){r.props.onClick&&r.props.onClick(e,r.props.item)})),GC(uG(r),"_setLinkRef",(function(e){r.state.linkRef!==e&&r.setState({linkRef:e})})),r.state={linkRef:null},r}return lG(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,c=void 0;return n&&(c="ChevronDownMed"),Fd.createElement(Fd.Fragment,null,Fd.createElement("div",{className:w.iconContainer,role:"presentation"},i&&!(o&&a)&&Fd.createElement(HJ,{iconName:i,className:w.icon})),t&&Fd.createElement("div",{className:w.text},t),s&&Fd.createElement("div",{className:w.secondaryContent},s(e)),(!o||a||r)&&Fd.createElement(HJ,{iconName:c,className:w.secondaryIcon,role:"presentation"}))},t=this.props,n=t.name,r=t.hasNestedMenu,o=t.isNested,i=t.isNavCollapsed,a=t.isExpanded,s=t.isSelected,c=t.hasSelectedNestedLink,l=t.styles,u=t.primaryIconName,d=t.href,p=t.forceAnchor,h=t.theme,f=t.showTeachingBubble,m=t.teachingBubbleProps,g=t.isParentExpanded,v=t.preserveIconSpace,y=t.tooltipProps,b=t.ariaLabel,_=t.isCollapsibleSection,C=t.onRenderNavContent,E=void 0===C?e:C,w=n1(l,{theme:h,isNavCollapsed:!!i,hasNestedMenu:!!r,isExpanded:!!a,isSelected:!!s,hasSelectedNestedLink:!!c,isNested:!!o,hasIcon:!!u,preserveIconSpace:!!v,isCollapsibleSection:!!_,colorThrowContext:this.context}),x=sY(this.props,d?rY:oY),k=x.className,S=x.title,T=x.disabled,I=aG(x,t1),A=E(this.props,e);p&&!d&&console.warn("If you force true without href prop the link will not work with keyboard");var P=lY(w.root,k),D=d||p?Fd.createElement("a",YC(YC({"aria-label":b},I),{},{onClick:this._onClick,className:P,ref:this._setLinkRef}),A):Fd.createElement("button",YC(YC({"aria-label":b},I),{},{onClick:this._onClick,className:P,ref:this._setLinkRef}),A),R=f&&(!o||!i&&o&&g);return Fd.createElement(Fd.Fragment,null,T||void 0===S&&!i&&!y?D:Fd.createElement(r1,YC({id:this._linkTipId,content:null!==S&&void 0!==S?S:i&&!o&&n,directionalHint:bX},y),D),R&&Fd.createElement(e1,YC({target:this.state.linkRef},m)))}}]),n}(Fd.Component);function i1(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}function a1(e){if(i1()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}GC(o1,"contextType",Vq);var s1,c1=void 0;try{c1=window}catch(bke){}function l1(e){if(i1()&&"undefined"!==typeof c1){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c1}}function u1(e){s1!==e&&(s1=e)}function d1(){return void 0===s1&&(s1="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),s1}s1=d1();var p1,h1="isRTL";function f1(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===p1){var t=function(e){var t=null;try{var n=l1();t=n?n.sessionStorage.getItem(e):null}catch(bke){}return t}(h1);null!==t&&function(e,t){void 0===t&&(t=!1);var n=a1();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var n;try{null===(n=l1())||void 0===n||n.sessionStorage.setItem(e,t)}catch(bke){}}(h1,e?"1":"0");u1(p1=e)}(p1="1"===t);var n=a1();void 0===p1&&n&&u1(p1="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!p1}var m1=function(){return f1()?"@noflip":""},g1=!1,v1=0,y1={empty:!0},b1={},_1="undefined"===typeof WeakMap?null:WeakMap;function C1(){v1++}function E1(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!_1)return e;if(!g1){var r=mg.getInstance();r&&r.onReset&&mg.getInstance().onReset(C1),g1=!0}var o,i=0,a=v1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var c=o;(void 0===o||a!==v1||t>0&&i>t)&&(o=x1(),i=0,a=v1),c=o;for(var l=0;l<r.length;l++){var u=w1(r[l]);c.map.has(u)||c.map.set(u,x1()),c=c.map.get(u)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),i++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function w1(e){return e?"object"===typeof e||"function"===typeof e?e:(b1[e]||(b1[e]={val:e}),b1[e]):y1}function x1(){return{map:_1?new _1:null}}var k1,S1,T1=0,I1=0,A1=[];var P1,D1,R1=E1((function(e){var t,n;if("undefined"!==typeof window)if(null!==(t=k1)&&void 0!==t&&t.parentElement&&null!==(n=k1)&&void 0!==n&&n.sheet)void 0!==S1&&k1.sheet.deleteRule(S1),S1=k1.sheet.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"));else{var r,o,i,a,s,c,l;k1&&document.getElementsByTagName("head")[0].removeChild(k1);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=mg.getInstance()._config)||void 0===s||null===(c=s.cspSettings)||void 0===c?void 0:c.nonce;k1=document.createElement("style"),u&&k1.setAttribute("nonce",u),document.getElementsByTagName("head")[0].appendChild(k1),S1=null===(l=k1.sheet)||void 0===l?void 0:l.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"))}}),1),M1=function e(){void 0!==P1&&cancelAnimationFrame(P1);var t=1;"undefined"!==typeof window&&(P1=requestAnimationFrame((function(){D1&&(D1.onchange=null),(D1=matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"))).onchange=e,P1=void 0})),t=window.devicePixelRatio),R1(function(e){if(0!==T1&&I1===e||"undefined"===typeof window)return T1;I1=e;var t=document.createElement("div");t.setAttribute("class",jg({width:100,height:100,overflow:"scroll",position:"absolute",top:-999,display:"block !important"}));var n=document.createElement("div");return n.setAttribute("class",jg({width:100,height:200})),t.appendChild(n),document.body.appendChild(t),T1=t.offsetWidth-t.clientWidth,document.body.removeChild(t),A1.forEach((function(e){e(T1)})),T1}(t))};M1();M1();var N1=wE.medium,L1=40,O1=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}}},F1=wE.icon,B1="NavLink",H1=iG(o1,(function(e){var t=e.isNavCollapsed,n=e.isExpanded,r=e.hasNestedMenu,o=e.isSelected,i=e.hasSelectedNestedLink,a=e.isNested,s=e.theme,c=e.hasIcon,l=e.preserveIconSpace,u=e.isCollapsibleSection,d=e.colorThrowContext,p=!t&&a?"34px":"4px";return{root:[s.fonts.medium,fQ(s),{minHeight:a?32:L1,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:Uq(s.semanticColors.navItemBackgroundHovered,"navItemBackgroundHovered",B1,{context:d,theme:s})},":active":{backgroundColor:Uq(s.semanticColors.navItemBackgroundPressed,"navItemBackgroundPressed",B1,{context:d,theme:s})}}],iconContainer:[{display:"flex",flex:"0 0 ".concat(t&&u?12:c||a||l?48:16,"px"),alignItems:"center",justifyContent:"center","::before":[GC({content:'" "',position:"absolute",left:p,width:"4px",height:"24px",backgroundColor:s.palette.themePrimary,opacity:0,transition:"opacity 300ms"},sQ,{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(m1())}},t&&a&&{flex:"0 0 12px"}],icon:{fontSize:F1,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),z1=24,V1=aK(),U1=0,W1=function(e){dG(n,e);var t=mG(n);function n(e){var r;return sG(this,n),GC(uG(r=t.call(this,e)),"navLinkGroupRef",void 0),GC(uG(r),"navRootRef",void 0),GC(uG(r),"instanceNumber",void 0),GC(uG(r),"uniqueId",void 0),GC(uG(r),"_onLinkClicked",(function(e,t){r.setState(YC(YC({},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)})),GC(uG(r),"_keyboardFocusSubNav",(function(e){e&&e.focus(!0)})),GC(uG(r),"_escapeSubNavFocus",(function(e){e.which===LK&&(r.setState({isKeyboardExpanded:!1}),r.props.focusZoneRef.current&&r.props.focusZoneRef.current.focus())})),GC(uG(r),"_nestedNavBlur",(function(e){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),e.currentTarget.contains(t)||r.setState({isKeyboardExpanded:!1})})),GC(uG(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")}})),GC(uG(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=Fd.createRef(),r.navRootRef=Fd.createRef(),r.instanceNumber=U1++,r.uniqueId=e.isGroupSectionHeader?dK("Group_"):dK("L1Content_"),r}return lG(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,c=n.itemStartIndex,l=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)})),f=l&&!u,m=V1(i,{isExpanded:p,isNavCollapsed:o,isKeyboardExpanded:!!d,theme:a,isCollapsibleSection:f}),g=o&&d&&!f?$Q:"ul",v="".concat(this.uniqueId,"menu_id").concat(this.instanceNumber),y="".concat(this.uniqueId,"_id").concat(this.instanceNumber);return Fd.createElement("div",YC({className:m.root,role:"presentation"},o&&r.links&&{onMouseEnter:this._offsetUpdated,ref:this.navRootRef}),Fd.createElement(H1,YC(YC(YC({item:r,role:"menuitem",primaryIconName:r.icon},r),{},{isNavCollapsed:o,onClick:this._onLinkClicked,"aria-controls":v,"aria-expanded":p},o&&!f&&r.links&&{"aria-haspopup":!0,"aria-expanded":d}),{},{isSelected:h,hasSelectedNestedLink:h,hasNestedMenu:!0,isCollapsibleSection:f,isExpanded:p,id:y,"aria-setsize":s,"aria-posinset":c},!p&&h&&{"aria-current":"page"})),r.links&&Fd.createElement("div",YC({className:m.nestedNav,role:"presentation"},o&&{ref:this.navLinkGroupRef,"data-is-focusable":!1}),o&&!f&&Fd.createElement(H1,{isNavCollapsed:o,name:r.name,"data-is-focusable":!1,"aria-hidden":!0,primaryIconName:r.icon,disabled:!0,styles:{root:m.nestedNavHeaderItem,text:m.nestedNavHeaderItemText,icon:m.nestedNavHeaderItemIcon},onRenderSecondaryContent:r.onRenderSecondaryContent}),Fd.createElement("div",{className:m.nestedNavLinksWrapper,role:"presentation"},Fd.createElement(g,YC({className:m.nestedNavLinks,"aria-labelledby":y,role:"menu",id:v},d&&o&&{componentRef:this._keyboardFocusSubNav,onKeyDown:this._escapeSubNavFocus,isCircularNavigation:!f,as:"ul",onBlur:this._nestedNavBlur}),r.links.map((function(e,n){var i=t._isNestedLinkSelected(e);return Fd.createElement("li",{role:"presentation",key:e.key},e.links?Fd.createElement(j1,YC(YC({},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:l})):Fd.createElement(H1,YC(YC(YC({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:l,styles:YC({iconContainer:[m.nestedNavLinkIconContainer]},e.styles)})))}))))))}}]),n}(Fd.Component),j1=iG(W1,(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&&[aQ.fadeIn400,aQ.slideDownIn20],(!t&&!n||i&&!n)&&{display:"none"},t&&!i&&{overflow:"hidden",padding:"".concat(64,"px ").concat(z1,"px ").concat(z1,"px 0px"),margin:"-".concat(64,"px -").concat(z1,"px -").concat(z1,"px 0px"),selectors:{'*[dir="rtl"] &':{paddingTop:"".concat(64,"px"),paddingRight:"0px ".concat(m1()),paddingBottom:"".concat(z1,"px"),paddingLeft:"".concat(z1,"px  ").concat(m1()),marginTop:"-".concat(64,"px"),marginRight:"0px  ".concat(m1()),marginBottom:"-".concat(z1,"px"),marginLeft:"-".concat(z1,"px  ").concat(m1())}}}],nestedNavLinks:[{padding:0,listStyle:"none"},t&&!i&&{width:"".concat(230,"px"),marginTop:"-".concat(L1,"px"),paddingTop:"".concat(L1,"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&&[aQ.slideRightIn10,{selectors:{'[dir="rtl"] &':[aQ.slideLeftIn10]}}]],nestedNavLinkIconContainer:[t&&i&&n&&{flex:"0 0 24px"}]}}),void 0,{scope:"NavLinkGroup"}),q1=aK(),G1=function(e){dG(n,e);var t=mG(n);function n(e){var r;return sG(this,n),GC(uG(r=t.call(this,e)),"_groupId",void 0),GC(uG(r),"_setLinkRef",(function(e){r.state.linkRef!==e&&r.setState({linkRef:e})})),r.state={linkRef:null},r}return lG(n,[{key:"componentDidMount",value:function(){this._groupId="GroupId__".concat(dK())}},{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,c=n.navRef,l=n.focusZoneRef,u=n.styles,d=n.theme,p=n.showHeaderTeachingBubble,h=n.headerTeachingBubbleProps,f=n.itemStartIndex,m=n.itemTotal,g=this.props.collapsibleGroupTitleProps,v=q1(u,{isNavCollapsed:!!a,isCollapsible:!!g,theme:d}),y=function(e){return null===e||void 0===e||!e.groupName||e.isNavCollapsed&&!e.collapsibleGroupTitleProps?null:Fd.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 Fd.createElement(Fd.Fragment,null,0!==r&&Fd.createElement("li",{role:"presentation",className:v.navGroupDivider}),Fd.createElement("div",{role:"group","aria-labelledby":this._groupId},g?Fd.createElement(j1,{link:YC(YC({name:b,icon:null===g||void 0===g?void 0:g.icon,links:i},null===g||void 0===g?void 0:g.collapsibleGroupTitleAttributes),{},{tooltipProps:YC({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:c,focusZoneRef:l,itemStartIndex:f,itemTotal:m,isCollapsibleSection:!0,isGroupSectionHeader:!0,styles:u}):Fd.createElement(Fd.Fragment,null,b&&Fd.createElement(Fd.Fragment,null,Fd.createElement("li",YC(YC({role:"presentation"},this.props.groupTitleAttributes),{},{ref:this._setLinkRef}),b),p&&Fd.createElement(e1,YC({target:this.state.linkRef},h))),i.map((function(e,n){var r=t._isNestedLinkSelected(e),o=f+n;return Fd.createElement("li",{className:v.navItem,role:"presentation",key:e.key},e.links?Fd.createElement(j1,YC(YC({},e),{},{styles:e.navLinkGroupStyles,isNavCollapsed:a,link:e,hasNestedMenu:!0,hasSelectedNestedLink:r,onCollapse:s,navRef:c,focusZoneRef:l,itemStartIndex:o,itemTotal:m})):Fd.createElement(H1,YC(YC(YC({item:e,primaryIconName:e.icon,role:"menuitem"},e),{},{isNavCollapsed:a},e.isSelected&&{"aria-current":"page"}),{},{hasNestedMenu:!1,isNested:!1,"aria-posinset":o,"aria-setsize":m})))})))))}},{key:"_isNestedLinkSelected",value:function(e){return e&&!!e.links&&e.links.some((function(e){return!!e&&!!e.isSelected}))}}]),n}(Fd.Component),K1=iG(G1,(function(e){var t=e.theme,n=e.isCollapsible,r=e.isNavCollapsed;return{navGroupDivider:O1(t),navGroupTitle:[{lineHeight:L1,color:t.palette.neutralPrimary,fontWeight:xE.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"}),Y1=["navItemTotal","editNavIndex"],Q1=aK(),X1=function(e){dG(n,e);var t=mG(n);function n(e){var r;return sG(this,n),GC(uG(r=t.call(this,e)),"_menuRef",void 0),GC(uG(r),"_containerRef",void 0),GC(uG(r),"_focusRef",void 0),GC(uG(r),"_observer",void 0),GC(uG(r),"_createObserver",(function(){r._observer=new IntersectionObserver(r._setScrollLayout,{root:r._containerRef.current,threshold:.995}),r._menuRef.current&&r._observer.observe(r._menuRef.current)})),GC(uG(r),"_setScrollLayout",(function(e){var t=e[0].intersectionRatio<.995;t!==r.state.shouldScroll&&r.setState({shouldScroll:t})})),GC(uG(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,Fd.createRef)(),r._containerRef=(0,Fd.createRef)(),r._focusRef=(0,Fd.createRef)(),r._onNavCollapseClicked=r._onNavCollapseClicked.bind(uG(r)),r._setScrollLayout=r._setScrollLayout.bind(uG(r)),r}return lG(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,c=t.collapseNavLinkProps,l=t.theme,u=t.hideCollapseLink,d=this.state.shouldScroll,p=dK("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,f=Q1(i,{isNavCollapsed:h,shouldScroll:d,theme:l,zoomLevel:0,colorThrowContext:this.context}),m=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=m.navItemTotal,v=m.editNavIndex,y=aG(m,Y1).navGroupStartIndex;return Fd.createElement("div",{className:f.root,role:"presentation"},Fd.createElement("nav",{role:"navigation",className:f.navWrapper},!u&&Fd.createElement(H1,YC(YC({primaryIconName:"GlobalNavButton"},c),{},{onClick:this._onNavCollapseClicked,"aria-controls":p,"aria-expanded":!h,styles:f.subComponentStyles.collapseNavButtonStyles})),Fd.createElement("div",{id:p,className:f.navContainer,ref:this._containerRef},Fd.createElement("div",{ref:this._menuRef,role:"presentation"},Fd.createElement($Q,{isCircularNavigation:!0,direction:hK.vertical,as:"ul",role:"menubar","aria-orientation":"vertical",className:f.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),Fd.createElement(K1,YC(YC({},t),{},{groupIndex:n,groupName:t.name,isNavCollapsed:h,navRef:e._containerRef,focusZoneRef:e._focusRef,itemStartIndex:y,itemTotal:g,key:t.key}))})),r&&Fd.createElement(Fd.Fragment,null,Fd.createElement("li",{role:"presentation",className:f.navGroupDivider}),Fd.createElement("li",{role:"presentation"},Fd.createElement(H1,YC(YC({primaryIconName:"Edit",role:"menuitem"},s),{},{"aria-setsize":g,"aria-posinset":v}))),o&&Fd.createElement("li",{role:"presentation"},Fd.createElement(H1,YC(YC({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}(Fd.Component);GC(X1,"contextType",Vq);var Z1=iG(X1,(function(e){var t=e.isNavCollapsed,n=e.shouldScroll,r=e.theme,o=e.colorThrowContext;return{root:{position:"relative",zIndex:lQ.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:Uq(r.semanticColors.navBackground,"navBackground","Nav",{context:o,theme:r}),color:r.semanticColors.buttonText,transitionProperty:"width",transitionDuration:".2s",userSelect:"none",fontSize:N1,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:O1(r),subComponentStyles:{collapseNavButtonStyles:{root:{backgroundColor:Uq(r.semanticColors.navBackground,"navBackground","Nav",{context:o,theme:r})}}}}}),void 0,{scope:"M365LeftNav"}),J1=function(e,t){return{position:"fixed",height:m2(t)&&e?"auto":"100%",zIndex:sp.twoUINavBar}},$1=function(e){return{root:{paddingRight:g2(e)?"".concat(48,"px"):"".concat(233,"px")}}},e2=function(e){return{root:{zIndex:sp.twoUILeftNavBypassBlocksButton,fontWeight:600,backgroundColor:e.palette.neutralPrimary,borderColor:e.palette.neutralPrimary,left:"8px",top:"0",padding:"12px",position:"absolute",transform:"translateY(-100%)",verticalAlign:"center",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}}}}}}},t2=function(e){var t=e.text,n=e["aria-label"],r=e["data-bi-id"],o=e.targetId,i=Mw();return Bd().createElement(XD,{styles:e2(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)},n2=function(e){return{root:{margin:(g2(e),"16px 10px 16px 10px"),height:g2(e)?"28px":"48px"}}},r2=function(t,n,r){var o;void 0===r&&(r=!1);var i=((o={outline:r?"":"2px solid ".concat(n.palette.themePrimary)})[By]={outline:r?"":"2px solid highlight"},o);return{root:{width:g2(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)})}}},o2={root:{":hover":{textDecoration:"none"},":active":{textDecoration:"none"},":active:hover":{textDecoration:"none"}}},i2=function(e){return{root:{marginRight:e?void 0:"8px"}}},a2=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})[By]={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[By]={color:"buttontext"},i[":focus"]=s,i[":hover"]=s,i[":active"]=(0,e.__assign)((0,e.__assign)({},s),{color:r?a:t.palette.themeDark}),i)}}},s2=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 Bd().createElement(DL,{size:t,styles:r2(o,i,a),imageUrl:n.imageUrl,text:"initials"===n.fallback?r:void 0,operationData:s,hideText:!0})},c2=function(e){var t;return"heading"===e.kind?Bd().createElement(SA,{stopPropagation:!1,type:"heading",tag:null!==(t=e.headingTag)&&void 0!==t?t:"h1",variant:"headerText"},e.text):Bd().createElement(SA,{stopPropagation:!1,variant:"headerText"},e.text)},l2=function(e){var t=e.text;return Bd().createElement(SA,{stopPropagation:!1,variant:"metadataText"},t)},u2=function(t){var n=t.isNavCollapsed,r=t.persona,o=t.primaryInfo,i=t.secondaryInfo,a=Mw(),s=sS(),c="48";return g2(s)&&(c="28"),Bd().createElement(z_,{horizontal:!0,styles:n2(s),doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:i2(n),doNotRenderFalsyValues:!0},r.itemInteractiveProps?Bd().createElement($S,{styles:o2,"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},Bd().createElement(s2,{size:c,viewport:s,theme:a,personaInfo:r,primaryText:o.text,disableInteraction:!1,operationData:r.operationData})):Bd().createElement(z_,{styles:o2,doNotRenderFalsyValues:!0},Bd().createElement(s2,{size:c,viewport:s,theme:a,personaInfo:r,primaryText:o.text,disableInteraction:!0,operationData:r.operationData}))),n?void 0:Bd().createElement(z_,{verticalAlign:"center",doNotRenderFalsyValues:!0},o.itemInteractiveProps?Bd().createElement($S,{styles:a2(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},Bd().createElement(c2,(0,e.__assign)({},o))):Bd().createElement(z_,{styles:a2(a,!0,!0),doNotRenderFalsyValues:!0},Bd().createElement(c2,(0,e.__assign)({},o))),i.itemInteractiveProps?Bd().createElement($S,{styles:a2(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},Bd().createElement(l2,(0,e.__assign)({},i))):Bd().createElement(z_,{styles:a2(a,!1,!0),doNotRenderFalsyValues:!0},Bd().createElement(l2,(0,e.__assign)({},i)))))},d2=function(e){var t=e.isNavCollapsed,n=sS(),r=48;return g2(n)&&(r=28),Bd().createElement(z_,{horizontal:!0,styles:n2(n),doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:i2(t),doNotRenderFalsyValues:!0},Bd().createElement(jN,{height:r})),t?void 0:Bd().createElement(z_,{verticalAlign:"center",tokens:{childrenGap:16},doNotRenderFalsyValues:!0},Bd().createElement(aM,{width:171,height:8}),v2(n)?Bd().createElement(aM,{width:150,height:8}):null))},p2=function(e){return{calloutMain:{background:e.palette.neutralHigh},beakCurtain:{background:e.palette.neutralHigh},beak:{background:e.palette.neutralHigh}}},h2=function(e){var t=e.isSelected,n=e.text;return Bd().createElement(DT,{weightOverride:t?"semi-bold":void 0},n)},f2=function(t,n,r,o,i){return{key:t.itemKey,name:Bd().createElement(h2,(0,e.__assign)({},t,{isSelected:t.isSelected})),"aria-label":t["aria-label"],"data-bi-id":t["data-bi-id"],isSelected:t.isSelected,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 function(e,t,n,r,o){var i,a,s,c;return{iconContainer:{"::before":(i={opacity:e.isSelected?1:0,backgroundColor:"#005FB8",width:"3px",height:"16px",left:"0px",borderRadius:"999px"},i[By]={backgroundColor:"buttontext"},i)},icon:{color:e.isSelected?t.palette.themeDarkAlt:t.palette.neutralSecondary,display:"flex",fontFamily:null!==o&&void 0!==o?o:void 0},root:(a={marginLeft:n?void 0:"8px",marginRight:n?void 0:"8px",marginBottom:r?void 0:"6px",borderRadius:"4px",minHeight:"40px",width:e.isNavCollapsed?void 0:"220px",boxShadow:e.isSelected?gT.rest:void 0,backgroundColor:e.isSelected?t.palette.neutralHigh:t.palette.white},a[By]={border:"1px solid windowtext",backgroundColor:e.isSelected?"linkText":void 0,span:{color:"buttontext"}},a[":focus"]={":focus::after":(s={borderRadius:"3px",boxShadow:"0 0 0 1px ".concat(t.palette.neutralSecondary),outline:"none",border:"none"},s[By]={outline:"2px solid buttontext",border:"1px solid buttontext"},s)},a[":hover"]=(c={backgroundColor:t.palette.neutralLighter},c[By]={backgroundColor:"highlight"},c),a[":active"]={backgroundColor:t.palette.neutralLight,span:{color:t.palette.neutralSecondary}},a)}}(e,o,r,n,i)},icon:t.icon,tooltipProps:{calloutProps:{styles:p2(o)},content:t.text}}},m2=function(e){return"s"===e},g2=function(e){return["s","m","l"].includes(e)},v2=function(e){return["xl","xxl","xxxl"].includes(e)},y2=function(t){var n=t.bypassBlocksButton,r=t.expandCollapseNavButton,o=t.navHeader,i=t.navLinkGroups,a=t.selectedNavLinkKey,s=Mw(),c=sS(),l=(0,Fd.useRef)(c),u=(0,Fd.useState)(g2(c)),d=u[0],p=u[1];op((function(){var e=i.map((function(e){return e.navLinks.map((function(e){return e.icon}))})).flat();qS(e)})),(0,Fd.useEffect)((function(){v2(c)&&p(!1),v2(l.current)&&g2(c)&&p(!0),l.current=c}),[c]);var h=Bd().useRef(null);(0,Fd.useEffect)((function(){if(!v2(c)&&!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===iv||"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)}}}),[c,d,h]);var f=[];i.forEach((function(t,n){var r={key:t.key,name:t.title,links:_2(t.navLinks,a,d,s),styles:{navGroupTitle:{fontSize:s.fonts.smallPlus.fontSize}}};f.push(0!==n?r:(0,e.__assign)((0,e.__assign)({},r),{onRenderGroupTitle:function(e){return b2(o,e)}}))}));return Bd().createElement(qC,{theme:ww},Bd().createElement(Vq.Provider,{value:{onThrowOnUndefinedColor:function(e){return ww.semanticColors[e.desiredColorName]},disableThrowOnUndefinedColor:!0}},Bd().createElement(z_,{doNotRenderFalsyValues:!0},Bd().createElement(z_,{styles:$1(c),doNotRenderFalsyValues:!0}),Bd().createElement("div",{ref:h,style:J1(d,c)},Bd().createElement(t2,(0,e.__assign)({},n)),Bd().createElement(Z1,{styles:function(e){return function(e,t,n,r){var o=e.isNavCollapsed?48:233;return{root:{boxShadow:e.isNavCollapsed||v2(n)?void 0:gT.hover,height:"100%"},navContainer:{maxWidth:o+17,paddingRight:e.isNavCollapsed?"3px":void 0},navGroup:{display:e.isNavCollapsed&&m2(n)?"none":void 0},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,c,r.removeNavButtonBorder||!1)},groups:f,hideCollapseLink:v2(c),collapseNavLinkProps:r,isNavCollapsed:d,onNavCollapsed:function(){p(!d)}})))))},b2=function(t,n){switch(t.headerType){case"profileHeader":return Bd().createElement(u2,(0,e.__assign)({},t,{isNavCollapsed:!!(null===n||void 0===n?void 0:n.isNavCollapsed)}));case"profileHeaderShimmer":return Bd().createElement(d2,(0,e.__assign)({},t,{isNavCollapsed:!!(null===n||void 0===n?void 0:n.isNavCollapsed)}))}},_2=function(t,n,r,o){return t.map((function(i,a){var s=i.itemKey===n;if("directlink"===i.linkType)return f2((0,e.__assign)((0,e.__assign)({},i),{isSelected:s}),a===t.length-1,r,o,US)}))};var C2={s:2,m:3,l:4,xl:5},E2={s:2,m:2,l:3,xl:5},w2=function(e){return function(){return e.length<1?"MediaGroup cannot have less than ".concat(1," items"):void 0}},x2=function(e){return function(){return e.length>10?"MediaGroup cannot have more than ".concat(10," items"):void 0}},k2=function(e,t){return{root:{outline:"1px solid transparent",backgroundColor:e.palette.neutralHigh,borderRadius:t?"0px":"8px",boxShadow:Gm.depth4,overflow:"hidden",transitionDuration:mT,cursor:"auto",padding:t?"16px 0px 24px 0px":"24px"}}},S2=function(e,t){var n,r,o,i,a,s;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:(n={":focus":(r={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed},r[By]={border:"1px solid Highlight",span:{color:"Highlight"}},r),":hover":(o={textDecoration:"none",borderBottom:t?"none":void 0,backgroundColor:e.palette.neutralMed,boxShadow:"".concat(gT.hover)},o[By]={span:{color:"Highlight"}},o),":hover:focus":(i={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed,boxShadow:"".concat(gT.hover)},i[By]={border:"1px solid Highlight",span:{color:"Highlight"}},i),":active:focus":(a={textDecoration:"none",border:"1px solid transparent",boxShadow:"".concat(gT.rest),backgroundColor:e.palette.neutralLighterAlt},a[By]={border:"1px solid Highlight",span:{color:"Highlight",outline:"1px solid Highlight"}},a),".ms-Fabric--isFocusVisible &:focus":(s={boxShadow:"none",outline:"none"},s[By]={boxShadow:"none",outline:"none"},s)},n[By]={border:"1px solid Window"},n)}}},T2=function(t){var n=t.mediaImage,r=t.mediaText,o=t.ctaUrl,i=t.onClickProps,a=t["data-bi-id"],s=t["aria-label"],c=t.target,l=void 0===c?"_blank":c,u=(0,e.__rest)(t,["mediaImage","mediaText","ctaUrl","onClickProps","data-bi-id","aria-label","target"]);Ek("MediaGroupProduct",u);var d=Mw(),p=sS(),h="icon"===n.imageType?"xxl":"lg",f="imageCard"===n.imageType;return Bd().createElement($S,(0,e.__assign)({href:o,onClick:null===i||void 0===i?void 0:i.onClick,styles:S2(d,f),"data-bi-id":a,"aria-label":s,target:l},u),Bd().createElement(YR,{size:f?function(){switch(p){case"l":return"lg";case"m":return"md";case"s":return"sm";default:return h}}():h,borderRadius:f?"8px":void 0,image:n,horizontal:!1},r?Bd().createElement(DT,null,r):null))},I2=function(t){var n=t.products,r=t.padding,o=void 0===r?"16px":r,i=(0,e.__rest)(t,["products","padding"]);V_("MediaGroup",i.id),(0,Fd.useEffect)((function(){var e=[w2(n),x2(n)];Ex("MediaGroup",e)}),[n]),Ek("MediaGroup",i);var a=!1;n.forEach((function(e){"imageCard"===e.mediaImage.imageType&&(a=!0)}));var s=sS(),c=Mw(),l=function(e,t,n){return["xxl","xxxl"].includes(e)?t:n?E2[e]:C2[e]}(s,n.length,a),u=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,l);return Bd().createElement(z_,(0,e.__assign)({styles:k2(c,a),tokens:{childrenGap:24},verticalAlign:"center",horizontalAlign:a?"center":void 0},i,{doNotRenderFalsyValues:!0}),Bd().createElement(wk,null,u.map((function(t,n){return a?Bd().createElement(z_,{tokens:{childrenGap:o},horizontal:!0,key:n,doNotRenderFalsyValues:!0},t.map((function(t,n){return Bd().createElement(B_,{key:n},Bd().createElement(z_,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"start"}},doNotRenderFalsyValues:!0},Bd().createElement(T2,(0,e.__assign)({},t))))}))):Bd().createElement(CT,{key:n,totalSlots:l},t.map((function(t,n){return Bd().createElement(_T,{key:n,slots:1},Bd().createElement(z_,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"center"}},doNotRenderFalsyValues:!0},Bd().createElement(T2,(0,e.__assign)({},t))))})))}))))};function A2(e,t){void 0===t&&(t=null);var n=Fd.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 P2=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=Fd.useRef(),i=Fd.useRef(),a=A2((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=bv(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=A2((function(e){return a(e.parentElement),function(){return a(null)}}));return oA((function(){var e=a.current,c=s.current;if(e&&c){for(var l=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==c&&l.push(d)}var p=[],h=0;o.current=function(){var e=i.current;if(void 0!==e){for(var t=l.length-1;t>=0;t--){if(void 0===p[t]){var o=n?e-l[t].offsetLeft:l[t].offsetLeft+l[t].offsetWidth;t+1<l.length&&t+1===r&&(h=p[t+1]-o),t===l.length-2&&(h+=c.offsetWidth),p[t]=o+h}if(e>p[t])return void m(t+1)}m(0)}};var f=l.length,m=function(e){f!==e&&(f=e,t(e,l.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},g=void 0;if(void 0!==i.current){var v=bv(e);if(v){var y=v.requestAnimationFrame(o.current);g=function(){return v.cancelAnimationFrame(y)}}}return function(){g&&g(),m(l.length),o.current=void 0}}})),{menuButtonRef:s}},D2=function(t){function n(e){var n=t.call(this,e)||this;return Yx(n),n}return(0,e.__extends)(n,t),n.prototype.render=function(){return Fd.createElement("div",(0,e.__assign)({},A_(this.props,I_)),this.props.children)},n}(Fd.Component),R2=Ww(),M2=function(t,n){var r={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return Fd.Children.forEach(Fd.Children.toArray(t.children),(function(o,i){if(N2(o)){var a=o.props,s=a.linkText,c=(0,e.__rest)(a,["linkText"]),l=o.props.itemKey||i.toString();r.links.push((0,e.__assign)((0,e.__assign)({headerText:s},c),{itemKey:l})),r.keyToIndexMapping[l]=i,r.keyToTabIdMapping[l]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)}(t,n,l,i)}else o&&Hb("The children of a Pivot component must be of type PivotItem to be rendered.")})),r},N2=function(e){var t;return Fd.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===D2.name},L2=Fd.forwardRef((function(t,n){var r,o=Fd.useRef(null),i=Fd.useRef(null),a=cD("Pivot"),s=cM(t.selectedKey,t.defaultSelectedKey),c=s[0],l=s[1],u=t.componentRef,d=t.theme,p=t.linkSize,h=t.linkFormat,f=t.overflowBehavior,m=t.overflowAriaLabel,g=t.focusZoneProps,v=t.overflowButtonAs,y={"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"]},b=A_(t,I_,["aria-label","aria-labelledby"]),_=M2(t,a);Fd.useImperativeHandle(u,(function(){return{focus:function(){var e;null===(e=o.current)||void 0===e||e.focus()}}}));var C=function(e){if(!e)return null;var t=e.itemCount,n=e.itemIcon,o=e.headerText;return Fd.createElement("span",{className:r.linkContent},void 0!==n&&Fd.createElement("span",{className:r.icon},Fd.createElement(bP,{iconName:n})),void 0!==o&&Fd.createElement("span",{className:r.text}," ",e.headerText),void 0!==t&&Fd.createElement("span",{className:r.count}," (",t,")"))},E=function(t,n,o,i){var a,s=n.itemKey,c=n.headerButtonProps,l=n.onRenderItemLink,u=t.keyToTabIdMapping[s],d=o===s;a=l?l(n,C):C(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 Fd.createElement(eW,(0,e.__assign)({},c,h,{id:u,key:s,className:P_(i,d&&r.linkIsSelected),onClick:function(e){return w(s,e)},onKeyDown:function(e){return x(s,e)},"aria-label":n.ariaLabel,name:n.headerText,keytipProps:n.keytipProps,"data-content":p}),a)},w=function(e,t){t.preventDefault(),k(e,t)},x=function(e,t){t.which===rv&&(t.preventDefault(),k(e))},k=function(e,n){var r;if(l(e),_=M2(t,a),t.onLinkClick&&_.keyToIndexMapping[e]>=0){var o=_.keyToIndexMapping[e],s=Fd.Children.toArray(t.children)[o];N2(s)&&t.onLinkClick(s,n)}null===(r=i.current)||void 0===r||r.dismissMenu()};r=R2(t.styles,{theme:d,linkSize:p,linkFormat:h});var S=function(){return null===(e=c)||void 0!==e&&void 0!==_.keyToIndexMapping[e]?c:_.links.length?_.links[0].itemKey:void 0;var e}(),T=S?_.keyToIndexMapping[S]:0,I=_.links.map((function(e){return E(_,e,S,r.link)})),A=Fd.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:Pk}}),[]),P=P2({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)})),A.items=_.links.slice(e).filter((function(e){return e.itemKey!==S})).map((function(t,n){return t.role="menuitem",{key:t.itemKey||"".concat(e+n),onRender:function(){return E(_,t,S,r.linkInMenu)}}}))},rtl:wv(d),pinnedIndex:T}).menuButtonRef,D=v||eW;return Fd.createElement("div",(0,e.__assign)({ref:n},b),Fd.createElement(Ck,(0,e.__assign)({componentRef:o,role:"tablist"},y,{direction:mx.horizontal},g,{className:P_(r.root,null===g||void 0===g?void 0:g.className)}),I,"menu"===f&&Fd.createElement(D,{className:P_(r.link,r.overflowMenuButton),elementRef:P,componentRef:i,menuProps:A,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:m,role:"tab"})),S&&_.links.map((function(e){return(!0===e.alwaysRender||S===e.itemKey)&&function(e,n){if(t.headersOnly||!e)return null;var o=_.keyToIndexMapping[e],i=_.keyToTabIdMapping[e];return Fd.createElement("div",{role:"tabpanel",hidden:!n,key:e,"aria-hidden":!n,"aria-labelledby":i,className:r.itemContainer},Fd.Children.toArray(t.children)[o])}(e.itemKey,S===e.itemKey)})))}));L2.displayName="Pivot";var O2,F2={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"},B2=function(t,n,r){var o,i,a;void 0===r&&(r=!1);var s=t.linkSize,c=t.linkFormat,l=t.theme,u=l.semanticColors,d=l.fonts,p="large"===s,h="tabs"===c;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(jy," &:focus")]={outline:"1px solid ".concat(u.focusBorder)},o[".".concat(jy," &: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(by," ").concat(vy,",\n                        right ").concat(by," ").concat(vy)},o[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Dy.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(jy," &: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:Dy.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[By]=(0,e.__assign)({fontWeight:Dy.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)},i[".".concat(jy," &.").concat(n.linkIsSelected,":focus")]={outlineColor:u.primaryButtonText},i)}]]]},H2=Lw(L2,(function(t){var n,r,o,i,a=t.className,s=t.linkSize,c=t.linkFormat,l=t.theme,u=l.semanticColors,d=l.fonts,p=$y(F2,l),h="large"===s,f="tabs"===c;return{root:[p.root,d.medium,Ob,{position:"relative",color:u.link,whiteSpace:"nowrap"},h&&p.rootIsLarge,f&&p.rootIsTabs,a],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:(0,e.__spreadArray)((0,e.__spreadArray)([p.link],B2(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],B2(t,p,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[p.link,p.linkIsSelected,{fontWeight:Dy.semibold,selectors:(o={":before":{backgroundColor:u.inputBackgroundChecked,selectors:(i={},i[By]={backgroundColor:"Highlight"},i)},":hover::before":{left:0,right:0}},o[By]={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"}),z2=Bd().createContext(void 0),V2=Bd().createContext(""),U2=function(){return{pointerEvents:"none",position:"fixed",width:"100%",bottom:0,left:0,zIndex:sp.twoUINotificationBar,padding:"0 0 10px 0"}},W2=function(e,t,n,r){var o,i="neutralHigh";"error"===t?i="severeWarning":n&&(i="themeLighterAlt");var a=zS(e,i),s="400px",c="800px";return"s"===r?(s="min(400px, calc(100vw - 32px))",c="calc(100vw - 32px)"):"m"===r?c="calc(100vw - 64px)":"l"===r&&(c="min(800px, calc(100vw - 96px))"),{root:(o={minHeight:48,maxHeight:92,minWidth:s,maxWidth:c,padding:"0 16px 0 16px",boxShadow:gT.controls,backgroundColor:a,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",pointerEvents:"auto"},o[By]={outline:"1px solid highlight"},o)}},j2=(0,Fd.forwardRef)((function(t,n){var r=t.iconName,o=t.message,i=t.ariaMessage,a=t.notificationAction,s=t.closeButton,c=t.showTime,l=void 0===c?1e4:c,u=t.notificationBarType,d=void 0===u?"info":u,p=t.isThemeStyle,h=void 0!==p&&p,f=(0,Fd.useContext)(V2);V_("NotificationBar");var m=(0,Fd.useContext)(z2),g=cD(),v=Mw(),y=sS(),b=(0,Fd.useRef)(null),_=null===n,C=(0,Fd.useState)((function(){return _?"visible":"hidden"})),E=C[0],w=C[1],x=(0,Fd.useRef)(0);rp((function(){return clearTimeout(b.current)})),(0,Fd.useEffect)((function(){_&&T()}),[]);var k=function(){clearTimeout(b.current)},S=function(){if("visible"===E){var e=l-(Date.now()-x.current);b.current=setTimeout((function(){A()}),Math.max(e,1e3))}},T=function(){clearTimeout(b.current),x.current=Date.now(),b.current=setTimeout((function(){A()}),l),w("visible")},I=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),w((function(e){return"slideOut"===e?"hidden":e})),null===m||void 0===m||m.removeNotificationBar(f)},A=function(){clearTimeout(b.current);var e=document.getElementById(g);null===e||void 0===e||e.addEventListener("webkitAnimationEnd",I),null===e||void 0===e||e.addEventListener("animationend",I),w("slideOut")};(0,Fd.useImperativeHandle)(n,(function(){return{showNotificationBar:T,hideNotificationBar:A}}));var P="error"===d?"errorIcon":"successIcon",D="error"===d?"errorBlockIcon":"bodyPrimaryText",R="error"===d?"default":"primary",M="error"===d?"errorIcon":"black";return"hidden"===E?Bd().createElement(Bd().Fragment,null):Bd().createElement(z_,{id:g,styles:{root:["visible"===E?Ey.slideUpIn20:Ey.slideDownOut20,_?void 0:U2()]},horizontalAlign:"center",verticalAlign:"center",doNotRenderFalsyValues:!0},Bd().createElement(z_,{onMouseEnter:k,onMouseLeave:S,onFocus:k,onBlur:S,tokens:{childrenGap:8},styles:W2(v,d,h,y),horizontal:!0,doNotRenderFalsyValues:!0},r?Bd().createElement(z_.Item,{align:"auto"},Bd().createElement(WS,{iconName:r,size:"16px",color:P})):null,Bd().createElement(z_.Item,{align:"auto",grow:!0,styles:{root:{margin:"12px 0px 12px 0px"}}},Bd().createElement(SA,{variant:D,lines:3},o)),a?Bd().createElement(z_.Item,{align:"auto",disableShrink:!0},Bd().createElement(hR,(0,e.__assign)({},a,{type:R}))):null,Bd().createElement(z_.Item,{align:"auto",styles:{root:{marginLeft:"auto",marginRight:"-8px"}}},Bd().createElement(fR,(0,e.__assign)({iconName:"Cancel",iconColor:M},s,{onClick:A})))),Bd().createElement(oN,{message:i,ariaLive:"assertive"}))}));!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(O2||(O2={}));O2.valid,O2.warning,O2.invalid;var q2=__webpack_require__(16038),G2="object"==typeof global&&global&&global.Object===Object&&global,K2="object"==typeof self&&self&&self.Object===Object&&self,Y2=G2||K2||Function("return this")(),Q2=Y2.Symbol,X2=Object.prototype,Z2=X2.hasOwnProperty,J2=X2.toString,$2=Q2?Q2.toStringTag:void 0;var e4=function(e){var t=Z2.call(e,$2),n=e[$2];try{e[$2]=void 0;var r=!0}catch(bke){}var o=J2.call(e);return r&&(t?e[$2]=n:delete e[$2]),o},t4=Object.prototype.toString;var n4=function(e){return t4.call(e)},r4=Q2?Q2.toStringTag:void 0;var o4=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r4&&r4 in Object(e)?e4(e):n4(e)};var i4=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var a4=function(e){if(!i4(e))return!1;var t=o4(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},s4=Y2["__core-js_shared__"],c4=function(){var e=/[^.]+$/.exec(s4&&s4.keys&&s4.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var l4=function(e){return!!c4&&c4 in e},u4=Function.prototype.toString;var d4=function(e){if(null!=e){try{return u4.call(e)}catch(bke){}try{return e+""}catch(bke){}}return""},p4=/^\[object .+?Constructor\]$/,h4=Function.prototype,f4=Object.prototype,m4=h4.toString,g4=f4.hasOwnProperty,v4=RegExp("^"+m4.call(g4).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var y4=function(e){return!(!i4(e)||l4(e))&&(a4(e)?v4:p4).test(d4(e))};var b4=function(e,t){return null==e?void 0:e[t]};var _4=function(e,t){var n=b4(e,t);return y4(n)?n:void 0},C4=function(){try{var e=_4(Object,"defineProperty");return e({},"",{}),e}catch(bke){}}();var E4=function(e,t,n){"__proto__"==t&&C4?C4(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var w4=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}},x4=w4();var k4=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var S4=function(e){return null!=e&&"object"==typeof e};var T4=function(e){return S4(e)&&"[object Arguments]"==o4(e)},I4=Object.prototype,A4=I4.hasOwnProperty,P4=I4.propertyIsEnumerable,D4=T4(function(){return arguments}())?T4:function(e){return S4(e)&&A4.call(e,"callee")&&!P4.call(e,"callee")},R4=D4,M4=Array.isArray;var N4=function(){return!1},L4="object"==typeof exports&&exports&&!exports.nodeType&&exports,O4=L4&&"object"==typeof module&&module&&!module.nodeType&&module,F4=O4&&O4.exports===L4?Y2.Buffer:void 0,B4=(F4?F4.isBuffer:void 0)||N4,H4=/^(?:0|[1-9]\d*)$/;var z4=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&H4.test(e))&&e>-1&&e%1==0&&e<t};var V4=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},U4={};U4["[object Float32Array]"]=U4["[object Float64Array]"]=U4["[object Int8Array]"]=U4["[object Int16Array]"]=U4["[object Int32Array]"]=U4["[object Uint8Array]"]=U4["[object Uint8ClampedArray]"]=U4["[object Uint16Array]"]=U4["[object Uint32Array]"]=!0,U4["[object Arguments]"]=U4["[object Array]"]=U4["[object ArrayBuffer]"]=U4["[object Boolean]"]=U4["[object DataView]"]=U4["[object Date]"]=U4["[object Error]"]=U4["[object Function]"]=U4["[object Map]"]=U4["[object Number]"]=U4["[object Object]"]=U4["[object RegExp]"]=U4["[object Set]"]=U4["[object String]"]=U4["[object WeakMap]"]=!1;var W4=function(e){return S4(e)&&V4(e.length)&&!!U4[o4(e)]};var j4=function(e){return function(t){return e(t)}},q4="object"==typeof exports&&exports&&!exports.nodeType&&exports,G4=q4&&"object"==typeof module&&module&&!module.nodeType&&module,K4=G4&&G4.exports===q4&&G2.process,Y4=function(){try{var e=G4&&G4.require&&G4.require("util").types;return e||K4&&K4.binding&&K4.binding("util")}catch(bke){}}(),Q4=Y4&&Y4.isTypedArray,X4=Q4?j4(Q4):W4,Z4=Object.prototype.hasOwnProperty;var J4=function(e,t){var n=M4(e),r=!n&&R4(e),o=!n&&!r&&B4(e),i=!n&&!r&&!o&&X4(e),a=n||r||o||i,s=a?k4(e.length,String):[],c=s.length;for(var l in e)!t&&!Z4.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||z4(l,c))||s.push(l);return s},$4=Object.prototype;var e3=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$4)};var t3=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),n3=Object.prototype.hasOwnProperty;var r3=function(e){if(!e3(e))return t3(e);var t=[];for(var n in Object(e))n3.call(e,n)&&"constructor"!=n&&t.push(n);return t};var o3=function(e){return null!=e&&V4(e.length)&&!a4(e)};var i3=function(e){return o3(e)?J4(e):r3(e)};var a3=function(e,t){return e&&x4(e,t,i3)};var s3=function(){this.__data__=[],this.size=0};var c3=function(e,t){return e===t||e!==e&&t!==t};var l3=function(e,t){for(var n=e.length;n--;)if(c3(e[n][0],t))return n;return-1},u3=Array.prototype.splice;var d3=function(e){var t=this.__data__,n=l3(t,e);return!(n<0)&&(n==t.length-1?t.pop():u3.call(t,n,1),--this.size,!0)};var p3=function(e){var t=this.__data__,n=l3(t,e);return n<0?void 0:t[n][1]};var h3=function(e){return l3(this.__data__,e)>-1};var f3=function(e,t){var n=this.__data__,r=l3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function m3(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])}}m3.prototype.clear=s3,m3.prototype.delete=d3,m3.prototype.get=p3,m3.prototype.has=h3,m3.prototype.set=f3;var g3=m3;var v3=function(){this.__data__=new g3,this.size=0};var y3=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var b3=function(e){return this.__data__.get(e)};var _3=function(e){return this.__data__.has(e)},C3=_4(Y2,"Map"),E3=_4(Object,"create");var w3=function(){this.__data__=E3?E3(null):{},this.size=0};var x3=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},k3=Object.prototype.hasOwnProperty;var S3=function(e){var t=this.__data__;if(E3){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return k3.call(t,e)?t[e]:void 0},T3=Object.prototype.hasOwnProperty;var I3=function(e){var t=this.__data__;return E3?void 0!==t[e]:T3.call(t,e)};var A3=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=E3&&void 0===t?"__lodash_hash_undefined__":t,this};function P3(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])}}P3.prototype.clear=w3,P3.prototype.delete=x3,P3.prototype.get=S3,P3.prototype.has=I3,P3.prototype.set=A3;var D3=P3;var R3=function(){this.size=0,this.__data__={hash:new D3,map:new(C3||g3),string:new D3}};var M3=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var N3=function(e,t){var n=e.__data__;return M3(t)?n["string"==typeof t?"string":"hash"]:n.map};var L3=function(e){var t=N3(this,e).delete(e);return this.size-=t?1:0,t};var O3=function(e){return N3(this,e).get(e)};var F3=function(e){return N3(this,e).has(e)};var B3=function(e,t){var n=N3(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function H3(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])}}H3.prototype.clear=R3,H3.prototype.delete=L3,H3.prototype.get=O3,H3.prototype.has=F3,H3.prototype.set=B3;var z3=H3;var V3=function(e,t){var n=this.__data__;if(n instanceof g3){var r=n.__data__;if(!C3||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new z3(r)}return n.set(e,t),this.size=n.size,this};function U3(e){var t=this.__data__=new g3(e);this.size=t.size}U3.prototype.clear=v3,U3.prototype.delete=y3,U3.prototype.get=b3,U3.prototype.has=_3,U3.prototype.set=V3;var W3=U3;var j3=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var q3=function(e){return this.__data__.has(e)};function G3(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new z3;++t<n;)this.add(e[t])}G3.prototype.add=G3.prototype.push=j3,G3.prototype.has=q3;var K3=G3;var Y3=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 Q3=function(e,t){return e.has(t)};var X3=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var d=-1,p=!0,h=2&n?new K3:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,i):r(f,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!Y3(t,(function(e,t){if(!Q3(h,t)&&(f===e||o(f,e,n,r,i)))return h.push(t)}))){p=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},Z3=Y2.Uint8Array;var J3=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var $3=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},e6=Q2?Q2.prototype:void 0,t6=e6?e6.valueOf:void 0;var n6=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 Z3(e),new Z3(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c3(+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=J3;case"[object Set]":var c=1&r;if(s||(s=$3),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=X3(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(t6)return t6.call(e)==t6.call(t)}return!1};var r6=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var o6=function(e,t,n){var r=t(e);return M4(e)?r:r6(r,n(e))};var i6=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 a6=function(){return[]},s6=Object.prototype.propertyIsEnumerable,c6=Object.getOwnPropertySymbols,l6=c6?function(e){return null==e?[]:(e=Object(e),i6(c6(e),(function(t){return s6.call(e,t)})))}:a6;var u6=function(e){return o6(e,i3,l6)},d6=Object.prototype.hasOwnProperty;var p6=function(e,t,n,r,o,i){var a=1&n,s=u6(e),c=s.length;if(c!=u6(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:d6.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 f=a;++l<c;){var m=e[u=s[l]],g=t[u];if(r)var v=a?r(g,m,u,t,e,i):r(m,g,u,e,t,i);if(!(void 0===v?m===g||o(m,g,n,r,i):v)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){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},h6=_4(Y2,"DataView"),f6=_4(Y2,"Promise"),m6=_4(Y2,"Set"),g6=_4(Y2,"WeakMap"),v6="[object Map]",y6="[object Promise]",b6="[object Set]",_6="[object WeakMap]",C6="[object DataView]",E6=d4(h6),w6=d4(C3),x6=d4(f6),k6=d4(m6),S6=d4(g6),T6=o4;(h6&&T6(new h6(new ArrayBuffer(1)))!=C6||C3&&T6(new C3)!=v6||f6&&T6(f6.resolve())!=y6||m6&&T6(new m6)!=b6||g6&&T6(new g6)!=_6)&&(T6=function(e){var t=o4(e),n="[object Object]"==t?e.constructor:void 0,r=n?d4(n):"";if(r)switch(r){case E6:return C6;case w6:return v6;case x6:return y6;case k6:return b6;case S6:return _6}return t});var I6=T6,A6="[object Arguments]",P6="[object Array]",D6="[object Object]",R6=Object.prototype.hasOwnProperty;var M6=function(e,t,n,r,o,i){var a=M4(e),s=M4(t),c=a?P6:I6(e),l=s?P6:I6(t),u=(c=c==A6?D6:c)==D6,d=(l=l==A6?D6:l)==D6,p=c==l;if(p&&B4(e)){if(!B4(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new W3),a||X4(e)?X3(e,t,n,r,o,i):n6(e,t,c,n,r,o,i);if(!(1&n)){var h=u&&R6.call(e,"__wrapped__"),f=d&&R6.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,g=f?t.value():t;return i||(i=new W3),o(m,g,n,r,i)}}return!!p&&(i||(i=new W3),p6(e,t,n,r,o,i))};var N6=function e(t,n,r,o,i){return t===n||(null==t||null==n||!S4(t)&&!S4(n)?t!==t&&n!==n:M6(t,n,r,o,e,i))};var L6=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 c=(s=n[o])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new W3;if(r)var p=r(l,u,c,e,t,d);if(!(void 0===p?N6(u,l,3,r,d):p))return!1}}return!0};var O6=function(e){return e===e&&!i4(e)};var F6=function(e){for(var t=i3(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,O6(o)]}return t};var B6=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var H6=function(e){var t=F6(e);return 1==t.length&&t[0][2]?B6(t[0][0],t[0][1]):function(n){return n===e||L6(n,e,t)}};var z6=function(e){return"symbol"==typeof e||S4(e)&&"[object Symbol]"==o4(e)},V6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U6=/^\w*$/;var W6=function(e,t){if(M4(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!z6(e))||(U6.test(e)||!V6.test(e)||null!=t&&e in Object(t))};function j6(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(j6.Cache||z3),n}j6.Cache=z3;var q6=j6;var G6=function(e){var t=q6(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},K6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y6=/\\(\\)?/g,Q6=G6((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K6,(function(e,n,r,o){t.push(r?o.replace(Y6,"$1"):n||e)})),t})),X6=Q6;var Z6=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},J6=Q2?Q2.prototype:void 0,$6=J6?J6.toString:void 0;var e5=function e(t){if("string"==typeof t)return t;if(M4(t))return Z6(t,e)+"";if(z6(t))return $6?$6.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var t5=function(e){return null==e?"":e5(e)};var n5=function(e,t){return M4(e)?e:W6(e,t)?[e]:X6(t5(e))};var r5=function(e){if("string"==typeof e||z6(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var o5=function(e,t){for(var n=0,r=(t=n5(t,e)).length;null!=e&&n<r;)e=e[r5(t[n++])];return n&&n==r?e:void 0};var i5=function(e,t,n){var r=null==e?void 0:o5(e,t);return void 0===r?n:r};var a5=function(e,t){return null!=e&&t in Object(e)};var s5=function(e,t,n){for(var r=-1,o=(t=n5(t,e)).length,i=!1;++r<o;){var a=r5(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&V4(o)&&z4(a,o)&&(M4(e)||R4(e))};var c5=function(e,t){return null!=e&&s5(e,t,a5)};var l5=function(e,t){return W6(e)&&O6(t)?B6(r5(e),t):function(n){var r=i5(n,e);return void 0===r&&r===t?c5(n,e):N6(t,r,3)}};var u5=function(e){return e};var d5=function(e){return function(t){return null==t?void 0:t[e]}};var p5=function(e){return function(t){return o5(t,e)}};var h5=function(e){return W6(e)?d5(r5(e)):p5(e)};var f5=function(e){return"function"==typeof e?e:null==e?u5:"object"==typeof e?M4(e)?l5(e[0],e[1]):H6(e):h5(e)};var m5=function(e,t){var n={};return t=f5(t,3),a3(e,(function(e,r,o){E4(n,r,t(e,r,o))})),n};var g5=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 v5=function(e,t){return function(n,r){if(null==n)return n;if(!o3(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}},y5=v5(a3);var b5=function(e,t,n,r){return y5(e,(function(e,o,i){t(r,e,n(e),i)})),r};var _5=function(e,t){return function(n,r){var o=M4(n)?g5:b5,i=t?t():{};return o(n,e,f5(r,2),i)}},C5=Object.prototype.hasOwnProperty,E5=_5((function(e,t,n){C5.call(e,n)?e[n].push(t):E4(e,n,[t])})),w5=E5;function x5(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 k5="function"===typeof Symbol&&Symbol.observable||"@@observable",S5=function(){return Math.random().toString(36).substring(7).split("").join(".")},T5={INIT:"@@redux/INIT"+S5(),REPLACE:"@@redux/REPLACE"+S5(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+S5()}};function I5(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 A5(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(x5(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(x5(1));return n(A5)(e,t)}if("function"!==typeof e)throw new Error(x5(2));var o=e,i=t,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(x5(3));return i}function d(e){if("function"!==typeof e)throw new Error(x5(4));if(c)throw new Error(x5(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw new Error(x5(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!I5(e))throw new Error(x5(7));if("undefined"===typeof e.type)throw new Error(x5(8));if(c)throw new Error(x5(9));try{c=!0,i=o(i,e)}finally{c=!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(x5(10));o=e,p({type:T5.REPLACE})}function f(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(x5(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[k5]=function(){return this},e}return p({type:T5.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:h})[k5]=f,r}function P5(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:T5.INIT}))throw new Error(x5(12));if("undefined"===typeof n(void 0,{type:T5.PROBE_UNKNOWN_ACTION()}))throw new Error(x5(13))}))}(n)}catch(bke){i=bke}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(x5(14))}o[c]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}var D5=__webpack_require__(35556),R5=__webpack_require__.n(D5),M5=function(e){return"function"===typeof e},N5=function(e){return e},L5=function(e){return null===e};var O5={};function F5(e,t){!function(e,t){O5[e]=t}(e,t.getLogProperties||null);var n=function(e,t,n){void 0===t&&(t=N5),R5()(M5(t)||L5(t),"Expected payloadCreator to be a function, undefined or null");var r=L5(t)||t===N5?N5: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=M5(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 B5="selectors",H5="stores",z5=F5("LOAD_STATE",{featureName:"NoLogging"});var V5={exportCss:function(){}};function U5(e,t){console.error("Exception in ".concat(e)),console.error(t)}function W5(e){if(!e||!e.handleException)return{handleException:U5};var t=!1;return{handleException:function(n,r){if(t)U5(n,r);else{t=!0;try{e.handleException(n,r)}finally{t=!1}}}}}var j5=W5(void 0),q5=1;function G5(e){return e._Name||e.name||"Unknown"}var K5=function(){function e(e){this.singletonsByIndex={},this._exceptionHandler=j5,this._cssExtractor=V5,this.reduxStore=e&&e.reduxStore}return Object.defineProperty(e.prototype,"exceptionHandler",{get:function(){return this._exceptionHandler},set:function(e){this._exceptionHandler=W5(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(G5(e.constructor)," already exists."));var t,n=("number"!==typeof(t=e.constructor)._singleton_index&&(t._singleton_index=q5,q5+=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(G5(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}(),Y5={appContext:xh.instanceOf(K5).isRequired},Q5=Bd().createContext(null);var X5=function(e){e()},Z5=function(){return X5};var J5={notify:function(){},get:function(){return[]}};function $5(e,t){var n,r=J5;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=Z5(),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=J5)},getListeners:function(){return r}};return a}var e8="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?Fd.useLayoutEffect:Fd.useEffect;var t8=function(e){var t=e.store,n=e.context,r=e.children,o=(0,Fd.useMemo)((function(){var e=$5(t);return{store:t,subscription:e}}),[t]),i=(0,Fd.useMemo)((function(){return t.getState()}),[t]);e8((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||Q5;return Bd().createElement(a.Provider,{value:o},r)},n8=__webpack_require__(9462),r8=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],o8=["reactReduxForwardedRef"],i8=[],a8=[null,null];function s8(e,t){var n=e[1];return[t.payload,n+1]}function c8(e,t,n){e8((function(){return e.apply(void 0,t)}),n)}function l8(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function u8(e,t,n,r,o,i,a,s,c,l){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(bke){n=bke,d=bke}n||(d=null),e===i.current?a.current||c():(i.current=e,s.current=e,a.current=!0,l({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 d8=function(){return[null,0]};function p8(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,c=void 0===s?void 0:s,l=n.shouldHandleStateChanges,u=void 0===l||l,d=n.storeKey,p=void 0===d?"store":d,h=(n.withRef,n.forwardRef),f=void 0!==h&&h,m=n.context,g=void 0===m?Q5:m,v=lf(n,r8),y=g;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=Sh({},v,{getDisplayName:o,methodName:a,renderCountProp:c,shouldHandleStateChanges:u,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var l=s?Fd.useMemo:function(e){return e()};function d(n){var r=(0,Fd.useMemo)((function(){var e=n.reactReduxForwardedRef,t=lf(n,o8);return[n.context,e,t]}),[n]),o=r[0],a=r[1],s=r[2],c=(0,Fd.useMemo)((function(){return o&&o.Consumer&&(0,n8.isContextConsumer)(Bd().createElement(o.Consumer,null))?o:y}),[o,y]),d=(0,Fd.useContext)(c),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var h=p?n.store:d.store,f=(0,Fd.useMemo)((function(){return function(t){return e(t.dispatch,i)}(h)}),[h]),m=(0,Fd.useMemo)((function(){if(!u)return a8;var e=$5(h,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,d]),g=m[0],v=m[1],b=(0,Fd.useMemo)((function(){return p?d:Sh({},d,{subscription:g})}),[p,d,g]),_=(0,Fd.useReducer)(s8,i8,d8),C=_[0][0],E=_[1];if(C&&C.error)throw C.error;var w=(0,Fd.useRef)(),x=(0,Fd.useRef)(s),k=(0,Fd.useRef)(),S=(0,Fd.useRef)(!1),T=l((function(){return k.current&&s===x.current?k.current:f(h.getState(),s)}),[h,C,s]);c8(l8,[x,w,S,s,T,k,v]),c8(u8,[u,h,g,f,x,w,S,k,v,E],[h,g,f]);var I=(0,Fd.useMemo)((function(){return Bd().createElement(t,Sh({},T,{ref:a}))}),[a,t,T]);return(0,Fd.useMemo)((function(){return u?Bd().createElement(c.Provider,{value:b},I):I}),[c,I,b])}var h=s?Bd().memo(d):d;if(h.WrappedComponent=t,h.displayName=d.displayName=r,f){var m=Bd().forwardRef((function(e,t){return Bd().createElement(h,Sh({},e,{reactReduxForwardedRef:t}))}));return m.displayName=r,m.WrappedComponent=t,df()(m,t)}return df()(h,t)}}function h8(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function f8(e,t){if(h8(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])||!h8(e[n[o]],t[n[o]]))return!1;return!0}function m8(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function g8(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function v8(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=g8(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=g8(o),o=r(t,n)),o},r}}var y8=[function(e){return"function"===typeof e?v8(e):void 0},function(e){return e?void 0:m8((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?m8((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 b8=[function(e){return"function"===typeof e?v8(e):void 0},function(e){return e?void 0:m8((function(){return{}}))}];function _8(e,t,n){return Sh({},n,e,t)}var C8=[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 c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return _8}}],E8=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function w8(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function x8(e,t,n,r,o){var i,a,s,c,l,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,h=!1;function f(o,h){var f=!d(h,a),m=!u(o,i);return i=o,a=h,f&&m?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),l=n(s,c,a)):f?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),l=n(s,c,a)):m?function(){var t=e(i,a),r=!p(t,s);return s=t,r&&(l=n(s,c,a)),l}():l}return function(o,u){return h?f(o,u):(s=e(i=o,a=u),c=t(r,a),l=n(s,c,a),h=!0,l)}}function k8(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=lf(t,E8),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?x8:w8)(a,s,c,e,i)}var S8=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function T8(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 I8(e,t){return e===t}function A8(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?p8:n,o=t.mapStateToPropsFactories,i=void 0===o?b8:o,a=t.mapDispatchToPropsFactories,s=void 0===a?y8:a,c=t.mergePropsFactories,l=void 0===c?C8:c,u=t.selectorFactory,d=void 0===u?k8:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,u=void 0===c||c,p=a.areStatesEqual,h=void 0===p?I8:p,f=a.areOwnPropsEqual,m=void 0===f?f8:f,g=a.areStatePropsEqual,v=void 0===g?f8:g,y=a.areMergedPropsEqual,b=void 0===y?f8:y,_=lf(a,S8),C=T8(e,i,"mapStateToProps"),E=T8(t,s,"mapDispatchToProps"),w=T8(n,l,"mergeProps");return r(d,Sh({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:E,initMergeProps:w,pure:u,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:b},_))}}var P8=A8();var D8;D8=qd.unstable_batchedUpdates,X5=D8;var R8=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?Fd.createElement(t8,{store:this.props.context.reduxStore},this.props.children):Fd.createElement(Fd.Fragment,null,this.props.children)},n.childContextTypes=(0,e.__assign)({},Y5),n}(Fd.Component);function M8(e,t){try{return t?e.toDataURL():e.toDataURL("image/jpeg")}catch(n){return console.error(n),""}}var N8={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]},L8=256,O8="white",F8="rgba(0, 120, 215, 0.5)",B8=function(e){return e*Math.PI/180};function H8(e,t,n,r,o,i){e.save(),e.translate(t/2,t/2),e.transform.apply(e,N8[r]),e.rotate(B8(n)),e.translate(-t/2,-t/2),i(e,o),e.restore()}function z8(e,t,n,r){var o=B8(r),i=N8[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 V8(e,t,n){return Math.min(n,Math.max(e,t))}var U8="photoPickerFirstFocusableSelector",W8="PhotoPicker";function j8(e,t){return void 0===t&&(t=null),F5("".concat(W8).concat(e,"Action"),{featureName:W8,exportOptions:t?{exportType:"UserInteraction",exportName:t}:void 0})}var q8=j8("UploadedPhotoTooSmall"),G8=j8("CancelButtonClicked","PhotoPickerCancelButtonClicked"),K8=j8("CloseButtonClicked","PhotoPickerCloseButtonClickedAction"),Y8=j8("DoneButtonClicked","PhotoPickerDoneButtonClickedAction"),Q8=j8("UploadNewPhotoButtonClicked","PhotoPickerUploadNewPhotoButtonClickedAction"),X8=j8("ImageEditPaneDismissed","PhotoPickerImageEditPaneDismissed"),Z8=j8("ImageUpdated"),J8=j8("LoadedCurrentImage"),$8=j8("LoadedEmptyImage"),e9=j8("LoadedNewImage"),t9=j8("SomethingWentWrong"),n9=j8("UploadStarted","PhotoPickerApplyButtonClicked"),r9=j8("UploadProgress"),o9=j8("UploadSucceeded"),i9=j8("WarningDismissed"),a9=j8("Keyboard"),s9=j8("ImageRotate"),c9=j8("Zoom"),l9=j8("ImageLoaded"),u9=j8("DragStarted"),d9=j8("DragProgress"),p9=j8("ResetEditCanvas"),h9=j8("EmptyImageRendered"),f9=j8("SetImageUpdated"),m9=j8("PhotoListImageSelected"),g9=j8("NewImageUploaded"),v9=j8("PhotoListLoadPhotos");var y9=__webpack_require__(62813),b9=__webpack_require__(18287),_9="ReduxStateJanitorStartedAction";F5(_9,{featureName:"NoLogging"});function C9(){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===_9)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 E9=__webpack_require__(77465),w9=__webpack_require__(68038);function x9(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 k9={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 x9(e,t,n,(function(e){return e}))},insertArrayWith:x9,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 S9=function(){return S9=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},S9.apply(this,arguments)},T9=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))},I9={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},A9={photoPicker:{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,show:!1,isUpdated:!1,uploadStart:0,uploadDuration:0,isUploadedPhotoTooSmall:!1},editCanvas:S9(S9({},I9),{originalCanvasState:I9}),photoList:{selectedIndex:0,imageUrls:[]}},P9=P5({photoPicker:C9().handleAction(G8,R9).handleAction(K8,R9).handleAction(Y8,R9).handleAction(X8,R9).handleAction(i9,(function(e){return(0,b9.ok)(e,{status:"READY",warning:void 0})})).handleAction(J8,(function(e,t){var n=t.payload.dataUrl;return(0,b9.ok)(e,{dataUrl:e.dataUrl||n,currentImageDataUrl:e.currentImageDataUrl||n,isUpdated:!!t.payload.isSuggestedPhoto||!!t.payload.isPhotoListPresent})})).handleAction(e9,(function(e,t){return(0,b9.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($8,(function(e,t){return(0,b9.ok)(e,{dataUrl:"",status:"READY",warning:void 0,isUpdated:!!e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:void 0})})).handleAction(n9,(function(e,t){return(0,b9.ok)(e,{status:"IN_PROGRESS",warning:void 0,uploadStart:t.payload.now,uploadDuration:0})})).handleAction(r9,(function(e,t){return"IN_PROGRESS"===e.status?(0,b9.ok)(e,{uploadDuration:t.payload.now-e.uploadStart}):e})).handleAction(o9,(function(e,t){return(0,b9.ok)(e,{currentImageDataUrl:t.payload.dataUrl,status:"SUCCESS",warning:void 0})})).handleAction(t9,(function(e,t){return(0,b9.ok)(e,{status:"SOMETHING_WENT_WRONG",warning:t.payload.warning})})).handleAction(Z8,(function(e){return(0,b9.ok)(e,{isUpdated:!0})})).handleAction(q8,(function(e,t){return(0,b9.ok)(e,t.payload)})).done(A9.photoPicker),editCanvas:C9().handleAction(p9,M9).handleAction(a9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction(c9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction(l9,(function(e,t){return(0,b9.ok)(e,S9(S9({},t.payload),{originalCanvasState:e.originalCanvasState.initialRender?(0,b9.ok)(e.originalCanvasState,t.payload):e.originalCanvasState}))})).handleAction(u9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction(d9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction(f9,(function(e){return(0,b9.ok)(e,{imageUpdated:!0})})).handleAction(h9,(function(e){return(0,b9.ok)(e,{initialRender:!1})})).handleAction(G8,M9).handleAction(K8,M9).handleAction(Y8,M9).handleAction(X8,M9).handleAction(s9,(function(e,t){return(0,b9.ok)(e,t.payload)})).done(A9.editCanvas),photoList:C9().handleAction(m9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction($8,(function(e){return(0,b9.ok)(e,{selectedIndex:-1})})).handleAction(g9,(function(e,t){return(0,b9.ok)(e,{selectedIndex:t.payload.selectedIndex,imageUrls:T9([t.payload.newImageUrl],e.imageUrls,!0)})})).handleAction(v9,(function(e,t){return(0,b9.ok)(e,t.payload)})).handleAction(G8,N9).handleAction(K8,N9).handleAction(Y8,N9).handleAction(X8,N9).done(A9.photoList)}),D9=function(e,t,n){var r=t(void 0,{type:void 0}),o=function(e,t){var n=e.name;return(0,w9.P1)((function(t){return k9.get(t.stores,n)||e.initialState}),(function(e){return(0,E9.M)(t(e))}))}({name:e,initialState:r},n);return{name:e,initialState:r,reducer:t,getSelectors:o}}("PhotoPickerStore",P9,(function(e){return{getPhotoPickerState:function(){return e.photoPicker},getEditCanvasState:function(){return e.editCanvas},getPhotoListState:function(){return e.photoList}}}));function R9(e){return(0,b9.ok)(e,{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,isUpdated:!1,fileName:void 0})}function M9(e){return(0,b9.ok)(e,A9.editCanvas)}function N9(e){return(0,b9.ok)(e,A9.photoList)}var L9=["absoluteScale","imageRotationAngle","xpos","ypos"],O9=Jg((function(){return Xb({closeButton:{float:"right",marginTop:-20,marginRight:-20},removeButton:{marginLeft:"auto"}})})),F9=function(e){var t=e.onClick,n=e.dataLogName,r=e.ariaLabel,o=e.title,i=O9();switch(e.buttonType){case"Primary":return Fd.createElement(XD,{disabled:e.disabled,onClick:t,"data-log-name":n,ariaLabel:r,title:o,componentRef:e.buttonRef},e.buttonLabel);case"Action":return Fd.createElement(JD,{className:i.removeButton,iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,disabled:e.disabled,title:o},e.buttonLabel);case"Icon":return Fd.createElement(yA,{content:o,styles:{root:i.closeButton}},Fd.createElement(eR,{iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,ariaLabel:r}));case"Default":return Fd.createElement(QD,{onClick:t,"data-log-name":n,ariaLabel:r,title:o},e.buttonLabel);default:return e}},B9=__webpack_require__(8141),H9=(0,B9.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 z9(){var e=Fd.useContext(t_),t=V9(e.customizations),n=Fd.useState(t),r=n[0],o=n[1];return Fd.useEffect((function(){var t=V9(e.customizations);o(t)}),[e.customizations]),Fd.useEffect((function(){var t=function(){var t=V9(e.customizations);o(t)};return sb.observe(t),function(){return sb.unobserve(t)}}),[e.customizations]),H9(r)}function V9(e){return sb.getSettings(["theme"],"WithTheme",e).theme}var U9=Jg((function(e,t){return Xb({root:jg({margin:"7px 0",color:e.palette.neutralPrimary},null===t||void 0===t?void 0:t.root),text:jg(e.fonts.medium,null===t||void 0===t?void 0:t.text)})})),W9=function(e){var t=U9(z9(),e.styles),n="UNKNOWN"===e.warning,r="IMAGE_TOO_SMALL_ERROR"===e.warning,o=n||r?GW.error:GW.warning,i=n?void 0:e.onDismiss;return Fd.createElement(pj,{className:t.root,messageBarType:o,onDismiss:i,isMultiline:!0,"aria-live":"polite",styles:t,dismissButtonAriaLabel:e.dismissButtonAriaLabel},e.warningText)},j9=Jg((function(e,t){var n=e.palette;return Xb({modal:jg({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:jg(e.fonts.medium,{padding:32,overflow:"hidden"},null===t||void 0===t?void 0:t.root),header:jg(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"}})})),q9=function(e){var t=e.hideTitleText,n=e.isComponentInline,r=e.titleText,o=e.closeIcon,i=e.infoBar,a=e.uploadPhoto,s=e.editCanvas,c=e.applyButton,l=e.cancelButton,u=e.removeButton,d=e.onDismiss,p=e.focusTrapRef,h=e.hideEndActions,f=e.imageEditorDescription,m=e.customUploadButton,g=e.photoList,v=e.styles,y=j9(z9(),v),b=Fd.createElement(Fd.Fragment,null,!n&&o,!t&&Fd.createElement("div",{className:y.header,id:"dialogTitle",role:"heading","aria-level":1},r),i,a,Fd.createElement("div",{className:y.editCanvasAndPhotoListContainer},s,g),f,!h&&Fd.createElement("div",{className:y.endActions},c,l,u),m);return Fd.createElement(Fd.Fragment,null,n?Fd.createElement("div",{id:"lpc-photo-picker",className:y.picker},b):Fd.createElement(pU,{className:"lpc_nested_popup",containerClassName:y.modal,isOpen:!0,onDismiss:d,titleAriaId:"dialogTitle"},Fd.createElement(XV,{id:"lpc-photo-picker",className:y.picker,componentRef:p,firstFocusableSelector:U8},b)))},G9=Jg((function(e,t){return Xb({fileInput:{display:"none"},button:jg({color:e.palette.themePrimary,padding:0,margin:"0 0 12px -4px"},null===t||void 0===t?void 0:t.button)})})),K9=function(e){var t=G9(z9(),e.styles),n=Fd.useRef(null);return Fd.createElement(Fd.Fragment,null,Fd.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/*"}),Fd.createElement(JD,{componentRef:e.buttonRef,className:"".concat(t.button," ").concat(U8),iconProps:{iconName:"Add"},onClick:function(){var t;null===(t=n.current)||void 0===t||t.click(),e.onUploadNewPhoto()}},e.uploadText))},Y9=__webpack_require__(81856);function Q9(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 c=0;c<s;c++)if(274===t.getUint16(o+12*c,a))return(n=t.getUint16(o+12*c+8,a))<1||n>8?1:n}else{if(65280!==(65280&i))break;o+=t.getUint16(o,!1)}}return 1}var X9=Ww(),Z9=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},J9=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},$9=function(t,n){var r=t.step,o=void 0===r?1:r,i=t.className,a=t.disabled,s=void 0!==a&&a,c=t.label,l=t.max,u=void 0===l?10:l,d=t.min,p=void 0===d?0:d,h=t.showValue,f=void 0===h||h,m=t.buttonProps,g=void 0===m?{}:m,v=t.vertical,y=void 0!==v&&v,b=t.snapToStep,_=t.valueFormat,C=t.styles,E=t.theme,w=t.originFromZero,x=t["aria-labelledby"],k=t.ariaLabel,S=void 0===k?t["aria-label"]:k,T=t.ranged,I=t.onChange,A=t.onChanged,P=Fd.useRef([]),D=lx(),R=D.setTimeout,M=D.clearTimeout,N=Fd.useRef(null),L=cM(t.value,t.defaultValue,(function(e,t){return null===I||void 0===I?void 0:I(t,T?[W.latestLowerValue,t]:void 0,e)})),O=L[0],F=L[1],B=cM(t.lowerValue,t.defaultLowerValue,(function(e,t){return null===I||void 0===I?void 0:I(W.latestValue,[t,W.latestValue],e)})),H=B[0],z=B[1],V=Math.max(p,Math.min(u,O||0)),U=Math.max(p,Math.min(V,H||0)),W=cx({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:V,latestLowerValue:U});W.latestValue=V,W.latestLowerValue=U;var j=cD("Slider",t.id||(null===g||void 0===g?void 0:g.id)),q=X9(C,{className:i,disabled:s,vertical:y,showTransitions:!b&&!W.isBetweenSteps,showValue:f,ranged:T,theme:E}),G=(u-p)/o,K=function(){M(W.onKeyDownTimer),W.onKeyDownTimer=-1},Y=function(e){K(),A&&(W.onKeyDownTimer=R((function(){A(e,W.latestValue,T?[W.latestLowerValue,W.latestValue]:void 0)}),1e3))},Q=function(e){var n=t.ariaValueText;if(void 0!==e)return n?n(e):e.toString()},X=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,T?W.isAdjustingLowerValue&&(w?i<=0:i<=W.latestValue)?z(i,e):!W.isAdjustingLowerValue&&(w?i>=0:i>=W.latestLowerValue)&&F(i,e):F(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=N.current.getBoundingClientRect(),o=(t.vertical?r.height:r.width)/G;if(t.vertical){var i=Z(e,t.vertical);n=(r.bottom-i)/o}else{var a=Z(e,t.vertical);n=(wv(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);X(e,i,r),t||(e.preventDefault(),e.stopPropagation())},ee=function(e){if(T){var t=J(e),n=p+o*t;W.isAdjustingLowerValue=n<=W.latestLowerValue||n-W.latestLowerValue<=W.latestValue-n}"mousedown"===e.type?P.current.push(OT(window,"mousemove",$,!0),OT(window,"mouseup",te,!0)):"touchstart"===e.type&&P.current.push(OT(window,"touchmove",$,!0),OT(window,"touchend",te,!0)),$(e,!0)},te=function(e){W.isBetweenSteps=void 0,null===A||void 0===A||A(e,W.latestValue,T?[W.latestLowerValue,W.latestValue]:void 0),ne()},ne=Fd.useCallback((function(){P.current.forEach((function(e){return e()})),P.current=[]}),[]);Fd.useEffect((function(){return ne}),[ne]);var re=Fd.useRef(null),oe=Fd.useRef(null),ie=Fd.useRef(null);!function(e,t,n,r){Fd.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,V,T?[U,V]:void 0);var ae=Z9(y?"bottom":wv(t.theme)?"right":"left"),se=Z9(y?"height":"width"),ce=w?0:p,le=J9(V,p,u),ue=J9(U,p,u),de=J9(ce,p,u),pe=T?le-ue:Math.abs(de-le),he=Math.min(100-le,100-de),fe=T?ue:Math.min(le,de),me={className:q.root,ref:n},ge={className:q.titleLabel,children:c,disabled:s,htmlFor:S?void 0:j},ve=f?{className:q.valueLabel,children:_?_(V):V,disabled:s,htmlFor:s?j:void 0}:void 0,ye=T&&f?{className:q.valueLabel,children:_?_(U):U,disabled:s}:void 0,be=w?{className:q.zeroTick,style:ae(de)}:void 0,_e={className:P_(q.lineContainer,q.activeSection),style:se(pe)},Ce={className:P_(q.lineContainer,q.inactiveSection),style:se(he)},Ee={className:P_(q.lineContainer,q.inactiveSection),style:se(fe)},we=(0,e.__assign)({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),xe=(0,e.__assign)((0,e.__assign)((0,e.__assign)({id:j,className:P_(q.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 xv(dv,t.theme):case fv:r=-o,K(),Y(e);break;case xv(hv,t.theme):case pv:r=o,K(),Y(e);break;case uv:n=p,K(),Y(e);break;case lv:n=u,K(),Y(e);break;default:return}X(e,n+r),e.preventDefault(),e.stopPropagation()}}),g&&A_(g,I_,["id","className"])),!T&&(0,e.__assign)((0,e.__assign)({},we),{"aria-valuemin":p,"aria-valuemax":u,"aria-valuenow":V,"aria-valuetext":Q(V),"aria-label":S||c,"aria-labelledby":x})),ke=s?{}:{onFocus:function(e){W.isAdjustingLowerValue=e.target===re.current}},Se=(0,e.__assign)({ref:oe,className:q.thumb,style:ae(le)},T&&(0,e.__assign)((0,e.__assign)((0,e.__assign)({},we),ke),{id:"max-".concat(j),"aria-valuemin":U,"aria-valuemax":u,"aria-valuenow":V,"aria-valuetext":Q(V),"aria-label":"max ".concat(S||c)})),Te=T?(0,e.__assign)((0,e.__assign)((0,e.__assign)({ref:re,className:q.thumb,style:ae(ue)},we),ke),{id:"min-".concat(j),"aria-valuemin":p,"aria-valuemax":V,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":"min ".concat(S||c)}):void 0;return{root:me,label:ge,sliderBox:xe,container:{className:q.container},valueLabel:ve,lowerValueLabel:ye,thumb:Se,lowerValueThumb:Te,zeroTick:be,activeTrack:_e,topInactiveTrack:Ce,bottomInactiveTrack:Ee,sliderLine:{ref:N,className:q.line}}},e7=Fd.forwardRef((function(t,n){var r=$9(t,n);return Fd.createElement("div",(0,e.__assign)({},r.root),r&&Fd.createElement(fT,(0,e.__assign)({},r.label)),Fd.createElement("div",(0,e.__assign)({},r.container),t.ranged&&(t.vertical?r.valueLabel&&Fd.createElement(fT,(0,e.__assign)({},r.valueLabel)):r.lowerValueLabel&&Fd.createElement(fT,(0,e.__assign)({},r.lowerValueLabel))),Fd.createElement("div",(0,e.__assign)({},r.sliderBox),Fd.createElement("div",(0,e.__assign)({},r.sliderLine),t.ranged&&Fd.createElement("span",(0,e.__assign)({},r.lowerValueThumb)),Fd.createElement("span",(0,e.__assign)({},r.thumb)),r.zeroTick&&Fd.createElement("span",(0,e.__assign)({},r.zeroTick)),Fd.createElement("span",(0,e.__assign)({},r.bottomInactiveTrack)),Fd.createElement("span",(0,e.__assign)({},r.activeTrack)),Fd.createElement("span",(0,e.__assign)({},r.topInactiveTrack)))),t.ranged&&t.vertical?r.lowerValueLabel&&Fd.createElement(fT,(0,e.__assign)({},r.lowerValueLabel)):r.valueLabel&&Fd.createElement(fT,(0,e.__assign)({},r.valueLabel))),Fd.createElement(NC,null))}));e7.displayName="SliderBase";var t7={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"},n7=Lw(e7,(function(t){var n,r,o,i,a,s,c,l,u,d,p,h,f,m=t.className,g=t.titleLabelClassName,v=t.theme,y=t.vertical,b=t.disabled,_=t.showTransitions,C=t.showValue,E=t.ranged,w=v.semanticColors,x=v.palette,k=$y(t7,v),S=w.inputBackgroundCheckedHovered,T=w.inputBackgroundChecked,I=x.neutralSecondaryAlt,A=x.neutralPrimary,P=x.neutralSecondaryAlt,D=w.disabledText,R=w.disabledBackground,M=w.inputBackground,N=w.smallInputBorder,L=w.disabledBorder,O=!b&&{backgroundColor:S,selectors:(n={},n[By]={backgroundColor:"Highlight"},n)},F=!b&&{backgroundColor:I,selectors:(r={},r[By]={borderColor:"Highlight"},r)},B=!b&&{backgroundColor:T,selectors:(o={},o[By]={backgroundColor:"Highlight"},o)},H=!b&&{border:"2px solid ".concat(S),selectors:(i={},i[By]={borderColor:"Highlight"},i)},z=!t.disabled&&{backgroundColor:w.inputPlaceholderBackgroundChecked,selectors:(a={},a[By]={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),[m],!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,!E&&Yy(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(s={},s[":active .".concat(k.activeSection)]=O,s[":hover .".concat(k.activeSection)]=B,s[":active .".concat(k.inactiveSection)]=F,s[":hover .".concat(k.inactiveSection)]=F,s[":active .".concat(k.thumb)]=H,s[":hover .".concat(k.thumb)]=H,s[":active .".concat(k.zeroTick)]=z,s[":hover .".concat(k.zeroTick)]=z,s[By]={forcedColorAdjust:"none"},s)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[C?k.showValue:void 0],!1),[_?k.showTransitions:void 0],!1),thumb:[k.thumb,E&&Yy(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:N,borderRadius:10,boxSizing:"border-box",background:M,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:wv(v)?"translateX(50%)":"translateX(-50%)"},_&&{transition:"left ".concat(_y," ").concat(gy)},b&&{borderColor:L,selectors:(c={},c[By]={borderColor:"GrayText"},c)}],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:A,selectors:(l={},l[By]={backgroundColor:"WindowText"},l)},_&&{transition:"width ".concat(_y," ").concat(gy)},b&&{background:D,selectors:(u={},u[By]={backgroundColor:"GrayText",borderColor:"GrayText"},u)}],inactiveSection:[k.inactiveSection,{background:P,selectors:(d={},d[By]={border:"1px solid WindowText"},d)},_&&{transition:"width ".concat(_y," ").concat(gy)},b&&{background:R,selectors:(p={},p[By]={borderColor:"GrayText"},p)}],zeroTick:[k.zeroTick,{position:"absolute",background:w.disabledBorder,selectors:(h={},h[By]={backgroundColor:"WindowText"},h)},t.disabled&&{background:w.disabledBackground,selectors:(f={},f[By]={backgroundColor:"GrayText"},f)},t.vertical?{width:"16px",height:"1px",transform:wv(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 r7(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 o7(e,t){if(e){if("string"===typeof e)return r7(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)?r7(e,t):void 0}}function i7(e){return function(e){if(Array.isArray(e))return r7(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o7(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 a7=Fd.createContext(void 0),s7={},c7=(a7.Provider,"undefined"===typeof window?__webpack_require__.g:window),l7="@griffel/";function u7(e,t){return c7[Symbol.for(l7+e)]||(c7[Symbol.for(l7+e)]=t),c7[Symbol.for(l7+e)]}var d7=u7("DEFINITION_LOOKUP_TABLE",{}),p7="data-make-styles-bucket",h7="___",f7=h7.length+7;var m7=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 g7(e){var t=e.length;if(7===t)return e;for(var n=t;n<7;n++)e+="0";return e}function v7(e,t){return h7+g7(m7(e+t))}function y7(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 b7(e,t){var n={};for(var r in e){var o=y7(e[r],t);if(""!==o){var i=v7(o,t),a=i+" "+o;d7[i]=[e[r],t],n[r]=a}else n[r]=""}return n}function _7(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(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||o7(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.")}()}function C7(e){return Array.isArray(e)?e:[e]}function E7(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 w7=["r","d","l","v","w","f","i","h","a","k","t","m","c"].reduce((function(e,t,n){return e[t]=n,e}),{});function x7(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"),c=E7(s,e,YC(YC({},r.styleElementAttributes),i&&{media:o.m}));r.stylesheets[a]=c,t&&s&&t.head.insertBefore(s,k7(t,n,e,r,o))}return r.stylesheets[a]}function k7(e,t,n,r,o){var i=w7[n],a=function(e){return i-w7[e.getAttribute(p7)]},s=e.head.querySelectorAll("[".concat(p7,"]"));if("m"===n&&o){var c=e.head.querySelectorAll("[".concat(p7,'="').concat(n,'"]'));c.length&&(s=c,a=function(e){return r.compareMediaQueries(o.m,e.media)})}for(var l=s.length,u=l-1;u>=0;){var d=s.item(u);if(a(d)>0)return d.nextSibling;u--}return l>0?s.item(0):t?t.nextSibling:null}var S7=0,T7=function(e,t){return e<t?-1:e>t?1:0};function I7(){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?T7:i,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:a,id:"d".concat(S7++),insertCSSRules:function(t){for(var o in t)for(var i=t[o],a=0,c=i.length;a<c;a++){var l=_7(C7(i[a]),2),u=l[0],d=l[1],p=x7(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(bke){0}}}}};return s}":(".concat(["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),")");var A7=Fd.createContext(I7());var P7=Fd.createContext("ltr");var D7={};var R7=["title","primaryFill"],M7=function(e,t){var n=function(e,t){var n={},r=null,o=null;return function(i){var a=i.dir,s=i.renderer,c="ltr"===a,l=c?s.id:s.id+"r";return c?null===r&&(r=b7(e,a)):null===o&&(o=b7(e,a)),void 0===n[l]&&(s.insertCSSRules(t),n[l]=!0),c?r:o}}(e,t);return function(){var e=Fd.useContext(P7),t=Fd.useContext(A7);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;}}"]}),N7=function(e,t){var n=e.title,r=e.primaryFill,o=void 0===r?"currentColor":r,i=YC(YC({},aG(e,R7)),{},{title:void 0,fill:o}),a=M7(),s=Fd.useContext(a7)?Fd.useContext(a7):s7;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(h7);if(-1===a)n+=i+" ";else{var s=i.substr(a,f7);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=D7[r];if(void 0!==s)return n+s;for(var c=[],l=0;l<arguments.length;l++){var u=o[l];if(u){var d=d7[u];d&&(c.push(d[0]),t=d[1])}}var p=Object.assign.apply(Object,[{}].concat(c)),h=y7(p,t),f=v7(h,t,o);return h=f+" "+h,D7[r]=h,d7[f]=[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},L7=function(e,t,n,r){var o="1em"===t?"20":t,i=Fd.forwardRef((function(e,i){var a=YC(YC({},N7(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 Fd.createElement.apply(Fd,["svg",a].concat(i7(n.map((function(e){return Fd.createElement("path",{d:e,fill:a.fill})})))))}));return i.displayName=e,i},O7=L7("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"]),F7=L7("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"]),B7=L7("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"]),H7=(0,B9.N)((function(e,t){return Xb({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:jg({selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},null===t||void 0===t?void 0:t.root),slideBox:jg({padding:"0 10px"},null===t||void 0===t?void 0:t.slideBox),thumb:jg({border:"2px solid ".concat(e.palette.themePrimary)},null===t||void 0===t?void 0:t.thumb),activeThumb:jg({backgroundColor:e.palette.themePrimary},null===t||void 0===t?void 0:t.activeThumb),inactiveThumb:jg({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"}})})),z7=function(e){return"".concat(Math.round(e),"\xb0")},V7=function(e){return"".concat(Math.round(e))},U7=function(e){var t,n,r=z9(),o=H7(r,e.styles),i=e.onImageRotate,a=e.setBaseAngleForStraightening,s=Fd.useCallback((function(t){var n=t-e.imageRotationAngle+e.baseAngleForStraightening;i(n)}),[i,e.baseAngleForStraightening,e.imageRotationAngle]),c=Fd.useCallback((function(){i(90),a(e.baseAngleForStraightening+90)}),[i,a,e.baseAngleForStraightening]),l=Fd.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:z7(e.imageRotationAngle)}))&&void 0!==n?n:z7(e.imageRotationAngle);return Fd.createElement("div",{className:o.editControls},Fd.createElement(eR,{className:o.sliderButton,title:e.counterClockwiseString,ariaLabel:e.counterClockwiseString,onClick:l,onRenderIcon:W7,disabled:e.isPhotoUploading}),Fd.createElement(yA,{content:u,styles:{root:o.sliderContainer}},Fd.createElement(n7,{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:V7,"aria-label":e.rotateString})),Fd.createElement(eR,{className:o.sliderButton,disabled:e.isPhotoUploading,title:e.clockwiseString,ariaLabel:e.clockwiseString,onClick:c,onRenderIcon:j7}),Fd.createElement("div",{"aria-live":"assertive",role:"status",className:o.announcement},z7(e.imageRotationAngle)))};function W7(){return Fd.createElement("span",null,Fd.createElement(F7,null))}function j7(){return Fd.createElement("span",null,Fd.createElement(B7,null))}var q7=function(e){return"".concat(e,"%")},G7=function(e,t){return Math.round(100*(e*(t-1)+1))},K7=function(e){var t,n,r=Fd.useState(!1),o=r[0],i=r[1],a=Fd.useRef(0),s=e.zoom,c=Fd.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]),l=Fd.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]);Fd.useEffect((function(){return function(){return clearTimeout(a.current)}}),[a]);var u=z9(),d=H7(u,e.styles),p=V8(2*e.stepSize,.1,.2),h=G7(0,e.maximumScale),f=G7(1,e.maximumScale),m=G7(e.relativeScale,e.maximumScale),g=G7(V8(e.stepSize,.05,.1),e.maximumScale)-G7(0,e.maximumScale),v=e.maximumScale<=1?e.zoomAtMaxString:null!==(n=null===(t=e.imageScaleInformationString)||void 0===t?void 0:t.call(e,{p0:q7(m)}))&&void 0!==n?n:q7(m);return Fd.createElement("div",{className:d.editControls},Fd.createElement(eR,{className:d.sliderButton,iconProps:{iconName:"CalculatorSubtract"},title:e.zoomOutString,ariaLabel:e.zoomOutString,onClick:function(){return l(-p)},disabled:e.isPhotoUploading||e.zoomOutDisabled}),Fd.createElement(yA,{content:v,styles:{root:d.sliderContainer}},Fd.createElement(n7,{styles:{root:d.root,slideBox:d.slideBox,thumb:d.thumb,activeSection:d.activeThumb,inactiveSection:d.inactiveThumb},ariaValueText:q7,ariaLabel:e.zoomString,min:h,max:f,disabled:e.isPhotoUploading||e.maximumScale<=1,step:g,value:m,showValue:!1,onChange:c})),Fd.createElement(eR,{className:d.sliderButton,iconProps:{iconName:"CalculatorAddition"},title:e.zoomInString,ariaLabel:e.zoomInString,onClick:function(){return l(p)},disabled:e.isPhotoUploading||e.zoomInDisabled}),o&&Fd.createElement("div",{"aria-live":"assertive",role:"status",className:d.announcement},q7(G7(e.relativeScale,e.maximumScale))))},Y7=L7("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"]),Q7=Jg((function(e,t){var n=e.palette;return Xb({editPivot:{height:46},link:jg({lineHeight:10,width:46,height:46,padding:0,marginRight:0,color:n.neutralSecondary},null===t||void 0===t?void 0:t.link),linkSelected:jg({color:n.neutralDark,fontWeight:600},null===t||void 0===t?void 0:t.linkSelected),button:jg({flex:"0 1 100%",height:44},null===t||void 0===t?void 0:t.button),buttonText:jg({fontSize:10,marginTop:5},null===t||void 0===t?void 0:t.buttonText)})})),X7=function(e){var t=z9(),n=Q7(t,e.styles),r=e.setSelectedKey,o=Fd.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=Fd.useCallback((function(t){if(!(null===t||void 0===t?void 0:t.itemKey))return null;var r=t.itemKey,o="Rotate"===r?[Fd.createElement(O7,{key:r}),e.rotateString]:[Fd.createElement(Y7,{key:r}),e.zoomString],i=o[0],a=o[1];return Fd.createElement("span",{className:n.button},i,Fd.createElement("div",{className:n.buttonText},a))}),[e.rotateString,e.zoomString,n.button,n.buttonText]);return Fd.createElement(H2,{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},Fd.createElement(D2,{itemKey:"Zoom",onRenderItemLink:i}),Fd.createElement(D2,{itemKey:"Rotate",onRenderItemLink:i}))},Z7=function(){return Z7=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},Z7.apply(this,arguments)},J7=Jg((function(e,t,n,r){return Xb({editControlsPlaceholderSpace:{height:32},editCanvas:jg({backgroundColor:e.palette.neutralLight,cursor:t?"move":"inherit"},null===n||void 0===n?void 0:n.root),isDropActive:{outline:"1px solid purple"},invisible:Z7({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:jg({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:jg({fontSize:128,lineHeight:128},null===n||void 0===n?void 0:n.initials)})})),$7=function(e){e.stopPropagation(),e.preventDefault()},eee=function(e){return"targetTouches"in e?[e.targetTouches[0].clientX,e.targetTouches[0].clientY]:[e.clientX,e.clientY]};var tee=P8((function(e){return D9.getSelectors(e).getEditCanvasState()}),(function(e){return{onReset:function(){return e(p9())},onKeyboardEvent:function(t){return e(a9({xpos:t.xpos,ypos:t.ypos}))},onZoomEvent:function(t){return e(c9({absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,zoomOutDisabled:t.zoomOutDisabled,zoomInDisabled:t.zoomInDisabled,xpos:t.xpos,ypos:t.ypos}))},onImageLoaded:function(t){return e(l9({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(u9({moving:t.moving,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onDragProgress:function(t){return e(d9({moving:t.moving,xpos:t.xpos,ypos:t.ypos,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onEmptyImageRendered:function(){return e(h9())},onRotateEvent:function(t){return e(s9({imageRotationAngle:t.imageRotationAngle}))}}}))((function(e){var t,n=Fd.useRef(!1),r=Fd.useRef(null),o=Fd.useRef(null),i=$N(e.personDisplayName,wv()),a=!e.image||e.maximumScale<=1||e.progress>0,s=e.image,c=e.progress>0&&e.progress<1,l=!a||e.naturalHeight!==e.naturalWidth,u=z9(),d=J7(u,l,e.styles.canvas,e.isPhotoListPresent),p=Fd.useState(!1),h=p[0],f=p[1],m=Fd.useState(0),g=m[0],v=m[1],y=Fd.useState(),b=y[0],_=y[1],C=Fd.useCallback((function(e){return v(e%360)}),[]),E=e.onRefocus,w=e.onZoomEvent,x=e.onError,k=e.onDragProgress,S=e.onReset,T=e.onDragStart,I=e.onCanvasUpdated,A=e.onEmptyImageRendered,P=e.onFileSelected,D=e.onImageLoaded,R=e.onKeyboardEvent,M=e.onRotateEvent,N=e.isUploadedPhotoTooSmall,L=Fd.useCallback((function(t,n){return"Fit"===e.imageScaling&&n<L8?(L8-n)/2:t>0?0:t+n<L8?L8-n:t}),[e.imageScaling]),O=Fd.useCallback((function(t,n,r,o){var i=t+(n-t)*o/e.absoluteScale,a=o*r/e.maximumScale;return L(i,a)}),[L,e.absoluteScale,e.maximumScale]),F=Fd.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,c=O(n,e.xpos,e.naturalWidth,i),l=O(r,e.ypos,e.naturalHeight,i);w({absoluteScale:i,relativeScale:o,zoomOutDisabled:a,zoomInDisabled:s,xpos:c,ypos:l})}}}),[e.image,e.maximumScale,e.relativeScale,e.xpos,e.naturalWidth,e.ypos,e.naturalHeight,O,w,b]),B=Fd.useCallback((function(t){var n=(e.imageRotationAngle+t)%360;M({imageRotationAngle:n})}),[e.imageRotationAngle,M]),H=Fd.useCallback((function(t){var n,r,o,i,a,s,c,l;if(e.image&&!(e.maximumScale<1)){var u="",d=e.xpos.toFixed(1),p=e.ypos.toFixed(1);switch(t.key){case"+":return F(e.stepSize,128,128);case"-":return F(-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===(l=(c=e.strings).downArrowKeyAriaLabel)||void 0===l?void 0:l.call(c,{p0:d,p1:p})}t.currentTarget.setAttribute("aria-label","".concat(u));var h=z8((t.which===dv?1:t.which===hv&&-1)||0,(t.which===pv?1:t.which===fv&&-1)||0,e.orientation,e.imageRotationAngle),f=h.x,m=h.y,g=f*e.naturalWidth/100,v=m*e.naturalHeight/100,y=L(e.xpos+g,e.naturalWidth*e.absoluteScale/e.maximumScale),b=L(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,F,L,e.strings]),z=Fd.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/L8):(i=Math.min(t.naturalWidth,t.naturalHeight),a=i/L8);var c=function(e){return-.5*(e/a-L8)},l=Math.min(1,Math.max(.01,L8/(2*Math.max(t.naturalWidth,t.naturalHeight))));C(0),!e.initialRender&&a<1&&(t.naturalHeight<48||t.naturalWidth<48?setTimeout((function(){return x("IMAGE_TOO_SMALL_ERROR")}),0):setTimeout((function(){return x("IMAGE_TOO_SMALL_WARNING")}),0)),N(t.naturalHeight<48||t.naturalWidth<48),n.current||D({naturalMin:i,naturalWidth:t.naturalWidth*s,naturalHeight:t.naturalHeight*s,stepSize:l,maximumScale:a,orientation:Q9(t.src),imageRotationAngle:0,image:t,zoomInDisabled:!1,initialRender:!1,xpos:c(t.naturalWidth*s),ypos:c(t.naturalHeight*s),absoluteScale:1,relativeScale:0,imageUpdated:!1}),!e.initialRender&&(null===(o=r.current)||void 0===o||o.focus())}),[e.initialRender,x,N,D,n,r,e.imageScaling,C]),V=Fd.useCallback((function(t){if(t){var n=new Image;n.onload=function(){return z(n)},n.src=t,n.alt=e.fileName||""}else S(),""===t&&A()}),[S,z,A,e.fileName]),U=Fd.useCallback((function(t){if(e.image){$7(t);var n=t.deltaY>0?-1:1,r=z8(t.nativeEvent.offsetX,t.nativeEvent.offsetY,e.orientation,e.imageRotationAngle),o=r.x,i=r.y;F(V8(e.stepSize,.05,.1)*n,o,i)}}),[e.image,e.orientation,e.stepSize,F,e.imageRotationAngle]),W=Fd.useCallback((function(t){var n=eee(t),r=z8(n[0],n[1],e.orientation,e.imageRotationAngle),o=r.x,i=r.y;e.image&&($7(t),T({moving:!0,lastMouseX:o,lastMouseY:i}))}),[e.image,T,e.orientation,e.imageRotationAngle]),j=Fd.useCallback((function(t){if($7(t),e.image)if(["mousemove","touchmove"].includes(t.type)&&e.moving){var n=eee(t),r=z8(n[0],n[1],e.orientation,e.imageRotationAngle),o=r.x,i=r.y,a=L(e.xpos+(o-e.lastMouseX),e.naturalWidth*e.absoluteScale/e.maximumScale),s=L(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,L,k,e.imageRotationAngle]),q=Fd.useCallback((function(e){$7(e),f(!0)}),[f]),G=Fd.useCallback((function(e){$7(e),f(!1)}),[f]),K=Fd.useCallback((function(t){G(t),t.dataTransfer&&P(t.dataTransfer.files[0],e.isPhotoListPresent)}),[G,P,e.isPhotoListPresent]),Y=Fd.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)"),c="rgba(".concat(a[0],", ").concat(a[1],", ").concat(a[2],", 1)"),l=fL({text:e.personDisplayName});""===e.dataUrl?(n.fillStyle=l,o.current.style.display="flex"):(n.fillStyle=e.customBackgroundColor||O8,o.current.style.display="none"),n.fillRect(0,0,L8,L8),e.image&&H8(n,L8,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===I||void 0===I||I(t),"Circle"===e.imageCropShape&&(n.save(),n.beginPath(),n.rect(0,0,L8,L8),n.arc(128,128,125,0,2*Math.PI,!0),n.clip(),n.fillStyle=s,n.fillRect(0,0,L8,L8),n.restore(),n.save(),n.beginPath(),n.arc(128,128,126,0,2*Math.PI,!0),n.lineWidth=2,n.strokeStyle=c,n.stroke(),n.restore(),n.save(),n.beginPath(),n.lineWidth=4,n.fillStyle=F8,n.strokeStyle=F8,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 x("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,x,e.customBackgroundColor,I,e.imageCropShape,o]);Fd.useEffect((function(){return Y(),function(){n.current=!0}}),[]),Fd.useEffect((function(){Y()})),Fd.useEffect((function(){1===e.progress&&E()}),[e.progress,E]),Fd.useEffect((function(){e.dataUrl&&_(a?"Rotate":"Zoom")}),[e.dataUrl,a]),Fd.useEffect((function(){e.dataUrl?e.imageUpdated&&V(e.dataUrl):e.image&&(S(),A())}),[e.dataUrl,e.imageUpdated,e.image,S,A,a,V]);var Q=Fd.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]),X=Fd.useRef((0,Y9.Z)());return Fd.createElement("div",{className:d.canvasContainer},Fd.createElement("div",{"aria-live":"polite"},Fd.createElement("canvas",{className:P_(d.editCanvas,(t={},t[d.isDropActive]=h,t)),role:"img",tabIndex:s?0:-1,ref:r,width:L8,height:L8,onKeyDown:H,"aria-label":Q,onDragEnter:q,onDrop:K,onDragLeave:G,onDragOver:$7,onMouseDown:W,onMouseMove:j,onMouseUp:j,onMouseLeave:j,onWheel:U,onTouchStart:W,onTouchMove:j,onTouchEnd:j,"aria-describedby":X.current}),e.image&&e.fileName&&Fd.createElement("img",{alt:e.fileName,id:X.current,"aria-hidden":!0,hidden:!0}),Fd.createElement("div",{className:d.textboy,ref:o,onDragEnter:q,onDragLeave:G,onDragOver:$7,onDrop:K},Fd.createElement("div",{className:d.initials},i),Fd.createElement("div",null,e.strings.dropZone))),Fd.createElement("div",{role:"region","aria-live":"assertive","aria-atomic":!0},1===e.progress?Fd.createElement("div",{className:d.textboy},Fd.createElement("span",{className:d.invisible},e.strings.success),Fd.createElement(bP,{className:d.initials,iconName:"CheckMark"})):null),s?Fd.createElement(Fd.Fragment,null,"Zoom"!==b&&e.enableImageRotation?Fd.createElement(U7,{styles:e.styles.slider,isPhotoUploading:c,clockwiseString:e.strings.clockwise,counterClockwiseString:e.strings.counterClockwise,rotateString:e.strings.rotate,baseAngleForStraightening:g,imagePositionInformationString:e.strings.imagePositionInformationString,setBaseAngleForStraightening:C,onImageRotate:B,imageRotationAngle:e.imageRotationAngle,panEnabled:l}):Fd.createElement(K7,{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:c,canvasSize:L8,image:e.image,maximumScale:e.maximumScale,stepSize:e.stepSize,zoomOutDisabled:e.zoomOutDisabled,relativeScale:e.relativeScale,zoomInDisabled:e.zoomInDisabled,panEnabled:l,zoom:F}),e.enableImageRotation&&Fd.createElement(X7,{styles:e.styles.pivot,zoomAtMaxString:e.strings.zoomAtMax,isPhotoUploading:c,maximumScale:e.maximumScale,selectedKey:b,setSelectedKey:_,rotateString:e.strings.rotate,zoomString:e.strings.zoom,pivotString:e.strings.pivot})):Fd.createElement("div",{className:d.editControlsPlaceholderSpace,"aria-live":"polite"}))}));var nee=void 0;try{nee=window}catch(bke){}var ree,oee=0,iee=1,aee=2,see="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),cee={};try{cee=window||{}}catch(z){}var lee=function(){function t(t,n){var r,o,i,a,s,c;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,e.__assign)({injectionMode:"undefined"===typeof document?oee:iee,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!==(c=null===n||void 0===n?void 0:n.rules)&&void 0!==c?c:this._rules}return t.getInstance=function(){if(!(ree=cee.__stylesheet__)||ree._lastStyleElement&&ree._lastStyleElement.ownerDocument!==document){var e=(null===cee||void 0===cee?void 0:cee.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);ree=n,cee.__stylesheet__=n}return ree},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!==oee?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case iee:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(bke){}break;case aee: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(),see||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}(),uee=function(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof nee){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:nee}}()||{};void 0===uee.__currentId__&&(uee.__currentId__=0);var dee=!1;function pee(e){void 0===e&&(e=0),uee.__currentId__=e}function hee(e,t){var n=Fd.useRef(t);return n.current||(n.current=function(e){if(!dee){var t=lee.getInstance();t&&t.onReset&&t.onReset(pee),dee=!0}return(void 0===e?"id__":e)+uee.__currentId__++}(e)),n.current}var fee=__webpack_require__(66759);var mee={};var gee,vee,yee=(vee={},(gee="@1js/create-shared-react-context")in mee||(mee[gee]=vee),{get:function(){return mee[gee]},set:function(e){return mee[gee]=e}});var bee=function(e,t){var n=yee.get();return n[t]||(n[t]=Fd.createContext(e))}({lookupString:function(e){return function(){return e}}},"LocalizationComponentsStringProvider");bee.Provider;function _ee(e,t){return function(e,t,n){return(0,fee.me)()?t(n):e.lookupString(t.key)(n)}(Fd.useContext(bee),e,t)}var Cee=(0,fee.li)("accessibility-utils-ui.accessibility-utils.positionInSet");function Eee(e){var t=e.posInSet,n=e.setSize,r=e.onRenderDescribedElement,o=function(e,t){return _ee(Cee,{pos:e.toString(),size:t.toString()})}(t,n),i=hee();return Fd.createElement(Fd.Fragment,null,Fd.createElement("div",{id:i,hidden:!0},o),r(i))}var wee=__webpack_require__(61148),xee=__webpack_require__(13019),kee=function(){return{}};function See(t,n){return wee.V.apply(void 0,(0,e.__spreadArray)([function(e){var r=t[e];return(Array.isArray(r)?r:[r]).concat(n[e])}],(0,xee.keys)(t),!1))}var Tee={};var Iee=function(e){return function(e){return Jg((function(t,n){return void 0===n&&(n=kee),Xb(See(e(t),n(t)))}))}((function(t){return Xb({listItem:jg({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:jg({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:jg({margin:"auto",fontSize:"24px",color:t.palette.neutralSecondaryAlt},null===e||void 0===e?void 0:e.emptyListIcon)})}))},Aee=function(e){var t,n=z9(),r=Iee(e.styles)(n);return Fd.createElement("button",{className:P_(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?Fd.createElement(gP,{"aria-label":e.photoListEmptyImageAriaLabel,iconName:"Contact",className:r.emptyListIcon}):Fd.createElement(pP,{src:e.imageUrl,className:r.photoListItemImage,alt:e.photoListImageAriaLabel,imageFit:tP.cover}))},Pee=function(e){return function(e){return Jg((function(t){return void 0===t&&(t=Tee),Xb(See(e,t))}))}(Xb({root:jg({height:256,width:56,padding:"0px 25px 0px 12px",overflowY:"auto",margin:0,listStyle:"none"},null===e||void 0===e?void 0:e.root)}))()},Dee=function(e){var t=Pee(e.styles),n=e.imageUrls,r=e.showEmptyPhoto?n.length:n.length-1;return Fd.createElement("ul",{className:t.root,"aria-label":e.strings.photoListAriaLabel},n.map((function(t,n){return Fd.createElement(Eee,{posInSet:n+1,setSize:r+1,key:n,onRenderDescribedElement:function(o){return Fd.createElement("li",{key:n},Fd.createElement(Aee,{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&&Fd.createElement(Eee,{posInSet:r+1,setSize:r+1,onRenderDescribedElement:function(t){return Fd.createElement("li",null,Fd.createElement(Aee,{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}))}}))},Ree=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)}}(),Mee=function(){return Mee=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},Mee.apply(this,arguments)},Nee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ree(t,e),t.prototype.componentDidMount=function(){this.props.photoListLoadPhotos(this.props.photoListSelectedIndex||0,this.props.photoListImageUrls)},t.prototype.render=function(){return Fd.createElement(Dee,Mee({},this.props))},t}(Fd.Component);var Lee=P8((function(e){return D9.getSelectors(e).getPhotoListState()}),(function(e){return{photoListLoadPhotos:function(t,n){e(v9({selectedIndex:t,imageUrls:n}))},onPhotoListImageSelected:function(t){!function(e,t,n,r){if(!t)return e($8({isPhotoListPresent:!0})),void e(m9({selectedIndex:n}));if(t.startsWith("data:image/"))return e(e9({dataUrl:t,isPhotoListPresent:!0,fileName:r})),e(f9()),void e(m9({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(e9({dataUrl:M8(t,!1),isPhotoListPresent:!0,fileName:r})),e(f9()),e(m9({selectedIndex:n})))},o.src=t}(e,t.imageUrl,t.selectedIndex,t.fileName)}}}))(Nee),Oee=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)}}(),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)},Bee=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},Hee=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),zee=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 Oee(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 Fd.createElement(q9,{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:Fd.createElement(F9,{buttonType:"Icon",iconName:"Cancel",onClick:this.handleOnCloseButtonClicked,dataLogName:"PhotoPickerClose",title:this.props.strings.closeIconTitle,ariaLabel:this.props.strings.closeIconAriaLabel}),infoBar:r?Fd.createElement(W9,{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:Fd.createElement(K9,{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:Fd.createElement(tee,{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)?Fd.createElement(Lee,{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:Fd.createElement(F9,{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:Fd.createElement(F9,{buttonType:"Default",buttonLabel:this.props.strings.cancel,dataLogName:"PhotoPickerCancel",onClick:this.handleOnCancelButtonClicked}),removeButton:this.props.isImageRemovable?Fd.createElement(F9,{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,y9.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}(Fd.Component);var Vee={absoluteScale:0,imageRotationAngle:0,xpos:0,ypos:0},Uee=function(e){return L9.reduce((function(t,n){var r;return Fee(Fee({},t),((r={})[n]=Number(e[n]),r))}),Vee)},Wee=function(e,t){return L9.some((function(n){return t[n].toFixed(4)!==e[n].toFixed(4)}))},jee=function(e,t){switch(e){case"IN_PROGRESS":return.999999*Hee(t/2e3);case"SUCCESS":return 1;case"READY":case"SOMETHING_WENT_WRONG":return 0;default:(0,y9.k)(e)}};var qee=P8((function(e){var t=D9.getSelectors(e).getPhotoPickerState(),n=D9.getSelectors(e).getEditCanvasState(),r=n.originalCanvasState,o=Bee(n,["originalCanvasState"]),i=Uee(o),a=Uee(r);return{dataUrl:t.dataUrl,initialImage:t.currentImageDataUrl,warning:t.warning,status:t.status,isCanvasDirty:t.isUpdated||Wee(a,i),isUploadedPhotoTooSmall:t.isUploadedPhotoTooSmall,progress:jee(t.status,t.uploadDuration),latestImageStats:i,fileName:t.fileName}}),(function(e){return{onUploadedPhotoTooSmall:function(t){return e(q8({isUploadedPhotoTooSmall:t}))},onDismissInfoBar:function(){return e(i9())},onError:function(t){return e(t9({warning:t}))},onUploadNewPhoto:function(){return e(Q8())},onFileSelected:function(t,n){return function(e,t,n){var r=new FileReader,o=function(){return e(t9({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(e9({dataUrl:i.src,fileName:t.name})),e(f9()),n&&e(g9({selectedIndex:0,newImageUrl:i.src}))},i.src=String(r.result)},r.readAsDataURL(t)}(e,t,n)},onCancel:function(){return e(G8())},onClose:function(){return e(K8())},onDone:function(){return e(Y8())},onImageEditPaneDismissed:function(){return e(X8())},onImageUpdated:function(){return e(Z8())},onUploadProgress:function(t){return e(r9({now:t}))}}}))(zee),Gee=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)}}(),Kee=function(){return Kee=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},Kee.apply(this,arguments)},Yee=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(M8(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||O8,o.fillRect(0,0,n.width,n.height),t.props.image&&H8(o,n.width,t.props.imageRotationAngle,t.props.orientation,t.props.image,(function(e,r){return o.drawImage(r,t.props.xpos*n.width/L8,t.props.ypos*n.height/L8,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 c=a.getContext("2d");return c?(c.drawImage(n,0,0,n.width*i,n.width*i,0,0,s,s),M8(a,t.props.isComponentInline)):(t.props.onError("UNSUPPORTED_BROWSER"),"")},t.stopEventDefaults=function(e){e.stopPropagation(),e.preventDefault()},t}return Gee(t,e),t.prototype.render=function(){return Fd.createElement(qee,Kee({loadCurrentImage:this.loadCurrentImage,startUpload:this.startUpload,loadedEmptyImage:this.props.onLoadedEmptyImage,styles:this.props.styles||{}},this.props))},t}(Fd.Component);var Qee=P8((function(e){return Kee(Kee({},D9.getSelectors(e).getEditCanvasState()),D9.getSelectors(e).getPhotoListState())}),(function(e){return{onError:function(t){return e(t9({warning:t}))},onLoadedCurrentImage:function(t,n,r){return e(J8({dataUrl:t,isSuggestedPhoto:n,isPhotoListPresent:r}))},onLoadedEmptyImage:function(t){return e($8({isPhotoListPresent:t}))},onStartUpload:function(t,n,r,o,i,a){return function(e,t,n,r,o,i,a){e(n9({now:t})),i(n,(function(){e(o9({dataUrl:n})),null===a||void 0===a||a(r===o.length?-1:r,o)}),(function(){return e(t9({warning:"UNKNOWN"}))}))}(e,t,n,r,o,i,a)}}}))(Yee);var Xee=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)}}(),Zee=function(){return Zee=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},Zee.apply(this,arguments)},Jee=null,$ee=!1,ete=0,tte=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Xee(n,t),n.prototype.UNSAFE_componentWillMount=function(){if(ete>=1)throw new Error("Can only mount one StandalonePhotoPicker at a time.");if(ete+=1,$ee||($ee=!0,HS(void 0,{disableWarnings:!0})),null===Jee){var t=A5(function(t,n){var r,o;if(n&&n.stores)throw new Error("The '".concat(H5,"' key of the state tree is reserved for functional stores."));if(n&&n.selectors)throw new Error("The '".concat(B5,"' key of the state tree is reserved for debug output from selectors."));var i=m5(w5(t,(function(e){return e.name})),(function(e){return e[0].reducer})),a=P5((0,q2.z)(i,(function(e){return e}))),s=P5((0,e.__assign)(((r={}).stores=a,r),n||{})),c=((o={}).stores={},o);return function(e,t){return t.type===z5.toString()?t.payload:s(e||c,t)}}([D9]));Jee=new K5({reduxStore:t})}},n.prototype.componentWillUnmount=function(){ete-=1},n.prototype.render=function(){return Jee?Fd.createElement(R8,{context:Jee},Fd.createElement(Qee,Zee({},this.props))):null},n}(Fd.Component),nte=((0,Fd.forwardRef)((function(t,n){var r,o=t.operationData,i=t.personDisplayName,a=t.personImageUrl,s=t.onPictureSelected,c=t.onCanvasUpdated,l=t.getPhotoPickerStrings,u=t.photoSelectedString,d=t.arrowKeyMovementStrings,p=(0,Fd.useRef)((function(e,t){})),h=(0,Fd.useRef)(null);function f(e,t,n){return e.replace("{0}",t).replace("{1}",n)}var m=(0,e.__assign)((0,e.__assign)({},l),{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 f(d.leftArrowKeyAriaLabel,t,n)},rightArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(d.rightArrowKeyAriaLabel,t,n)},upArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(d.upArrowKeyAriaLabel,t,n)},downArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(d.downArrowKeyAriaLabel,t,n)},dropZoneImageAriaLabel:null===(r=l.dropZoneImageAriaLabel)||void 0===r?void 0:r.replace("{0}",i)});(0,Fd.useImperativeHandle)(n,(function(){return{startUploadNewPhoto:function(){var e;null===(e=h.current)||void 0===e||e.click()}}}));var g=function(){},v=Bd().createElement(jN,{height:256}),y=Bd().createElement(Bd().Fragment,null,Bd().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/*"}),Bd().createElement(wT,{horizontalAlign:"center"},Bd().createElement(tte,{enableImageRotation:!0,personDisplayName:i,personImageUrl:a,strings:m,onUpload:g,onDismiss:g,isImageRemovable:!1,isComponentInline:!0,imageCropShape:"Circle",imageScaling:"Fill",onCanvasUpdated:function(e,t){null===c||void 0===c||c(e,t)},hideButtons:!0,hideUploadHeader:!0,hideUploadPhotoButton:!0,renderCustomUploadButton:function(e){return p.current=e.onFileSelected,Bd().createElement(Bd().Fragment,null)}})));return Bd().createElement(wT,{verticalAlign:"center",horizontalAlign:"center",height:264,width:264,margin:"0 0 54px 0"},Bd().createElement(hx,{operationData:o,firstLoadView:v,updatingView:v,finishedView:y,failedView:y}))})),function(e){var t=e.status,n=e.color;return Bd().createElement(WS,{iconName:"completed"===t?"CircleFill":"CircleRing",color:n,size:"10px"})}),rte=function(e){return function(){return e<3?"ProgressTracker cannot have less than ".concat(3," steps"):void 0}},ote=function(e){return function(){return e>7?"ProgressTracker cannot have more than ".concat(7," steps"):void 0}},ite=function(e,t){return function(){return e<0||e>t?"ProgressTracker current step cannot be less than 0 or more than the total number of steps":void 0}},ate=function(e){var t=e.currentStep,n=void 0===t?0:t,r=e.numberOfSteps,o=e.dotColor,i=void 0===o?"neutralSecondary":o;(0,Fd.useEffect)((function(){var e=[rte(r),ote(r),ite(n,r)];Ex("ProgressTrackerDots",e)}),[r,n]);for(var a=[],s=0;s<r;s++){var c=s+1<=n?"completed":"active";a.push({status:c})}return Bd().createElement(wT,{horizontal:!0,horizontalAlign:"center",childrenGap:4},a.map((function(e,t){return Bd().createElement(xT,{key:t},Bd().createElement(nte,{status:e.status,color:i}))})))},ste=Ww(),cte=Fd.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.className,i=e.vertical,a=e.alignContent,s=e.children,c=ste(n,{theme:r,className:o,alignContent:a,vertical:i});return Fd.createElement("div",{className:c.root,ref:t},Fd.createElement("div",{className:c.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s))})),lte=Lw(cte,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,c="center"===o,l="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(c||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&l&&{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[By]={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[By]={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"});lte.displayName="Separator";var ute=function(t){var n,r=t.content,o=t.alignContent,i=t.vertical,a=(0,e.__rest)(t,["content","alignContent","vertical"]);return V_("Separator"),Ek("Separator",a),r&&(n=Bd().createElement(DT,{variant:"metadataText"},r)),Bd().createElement(lte,(0,e.__assign)({alignContent:o,vertical:i},a),n)},dte=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 V_("SimpleCard",a.id),Ek("SimpleCard",a),Bd().createElement(YM,(0,e.__assign)({action:i,height:"large"},a),n?Bd().createElement(UM,(0,e.__assign)({},n)):null,Bd().createElement(zq,(0,e.__assign)({},o)),Bd().createElement(HM,(0,e.__assign)({},r)),Bd().createElement(OM,(0,e.__assign)({},i)))};var pte=function(e,t,n){return{position:"absolute",width:e,height:t,backgroundColor:n,opacity:.35,zIndex:sp.bingMapsOverlay}},hte=function(e,t){return function(){return e&&!t?"BingMaps must have pushpinAccessible set to true when a pushPin has an ariaLabel":void 0}},fte=function(e){return function(){return e?void 0:"BingMaps-initMap: ref is not defined"}},mte=function(e){return function(){return null===e?"BingMapsContext: Context is not initialized. Confirm that your app is contained within a BingMapsProvider.":void 0}},gte=function(e){return function(){return null===e?"BingMaps-loadBingMapsScript: callback is not provided":void 0}},vte=(0,Fd.createContext)({}),yte=function(t){var n,r,o,i,a=t.spinnerAriaLabel,s=t.progressViewProps,c=t.center,l=t.mapLoadOptions,u=t.mapItems,d=t.mapWidth,p=t.mapHeight,h=t.clusteringOptions,f=t.mapPadding;V_("BingMaps");var m=(0,Fd.useState)(),g=m[0],v=m[1],y=(0,Fd.useState)(!1),b=y[0],_=y[1],C=(0,Fd.useState)(!0),E=C[0],w=C[1],x=function(){var e=(0,Fd.useContext)(vte);return Ex("BingMaps",[mte(e)]),e}(),k=x.endState,S=x.currentError,T=gm(),I=sS(),A=Mw(),P=(0,Fd.useRef)(null),D=s.operationData,R=s.failedView,M=null!==(n=null===u||void 0===u?void 0:u.iconOffset)&&void 0!==n?n:{xOffset:0,yOffset:0},N=null!==(r=null===u||void 0===u?void 0:u.textOffset)&&void 0!==r?r:{xOffset:0,yOffset:35},L=function(){if("success"===k)if(c)null===g||void 0===g||g.setView((0,e.__assign)({center:new Microsoft.Maps.Location(c.latitude,c.longitude)},l));else{var t=[];u&&("listItem"===u.optionType||"accordion"===u.optionType?u.mapElements.forEach((function(e){if(e.pushPin){var n=e.pushPin.location,r=n.latitude,o=n.longitude;t.push(new Microsoft.Maps.Location(r,o))}})):u.pushPins.forEach((function(e){t.push(new Microsoft.Maps.Location(e.location.latitude,e.location.longitude))})));var n=t&&t.length&&function(){var e=P.current;if(e){var t=window.getComputedStyle(e),n=parseInt(t.getPropertyValue("height"),10),r=parseInt(t.getPropertyValue("width"),10);if(n>256&&r>256)return!0}return!1}()?{bounds:Microsoft.Maps.LocationRect.fromLocations(t),padding:f}:{center:new Microsoft.Maps.Location(0,0),zoom:1};null===g||void 0===g||g.setView((0,e.__assign)((0,e.__assign)({},n),l))}},O=function(t){var n,r;if("success"===k&&g&&u){var o,i=[];if("listItem"===u.optionType||"accordion"===u.optionType)for(var a=function(t){if(t.id===u.selectedMapItemId&&(o=t),t.pushPin){var a=t.pushPin.location,s=a.latitude,c=a.longitude,d=A.palette.themePrimary,p=void 0;p=t.id===u.selectedMapItemId?null!==(n=t.pushPin.selectedImage)&&void 0!==n?n:(v=d,y=t.pushPin.imageSrc,'<svg width="86" height="94" viewBox="0 0 86 94" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n    <g clip-path="url(#clip0)" filter="url(#filter0_dd)">\n    <g filter="url(#filter1_d)">\n    <path d="M43 73.8457C40.2386 73.8457 38 71.6071 38 68.8457C38 66.0843 40.2386 63.8457 43 63.8457C45.7614 63.8457 48 66.0843 48 68.8457C48 71.6071 45.7614 73.8457 43 73.8457Z" fill="'.concat(v,'"/>\n    </g>\n    <mask id="path-2-inside-1" fill="white">\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M43 8C27.536 8 15 20.536 15 36C15 49.4548 24.4901 60.693 37.1417 63.3862L43.0762 69.3206L49.0527 63.3441C61.607 60.5776 71 49.3857 71 36C71 20.536 58.464 8 43 8Z"/>\n    </mask>\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M43 8C27.536 8 15 20.536 15 36C15 49.4548 24.4901 60.693 37.1417 63.3862L43.0762 69.3206L49.0527 63.3441C61.607 60.5776 71 49.3857 71 36C71 20.536 58.464 8 43 8Z" fill="white"/>\n    <path d="M37.1417 63.3862L37.5582 61.43L38.1373 61.5533L38.556 61.972L37.1417 63.3862ZM43.0762 69.3206L44.4904 70.7348L43.0762 72.149L41.662 70.7348L43.0762 69.3206ZM49.0527 63.3441L47.6385 61.9299L48.0517 61.5167L48.6223 61.3909L49.0527 63.3441ZM13 36C13 19.4315 26.4315 6 43 6V10C28.6406 10 17 21.6406 17 36H13ZM36.7253 65.3424C23.1694 62.4567 13 50.4182 13 36H17C17 48.4913 25.8108 58.9293 37.5582 61.43L36.7253 65.3424ZM38.556 61.972L44.4904 67.9064L41.662 70.7348L35.7275 64.8004L38.556 61.972ZM41.662 67.9064L47.6385 61.9299L50.4669 64.7583L44.4904 70.7348L41.662 67.9064ZM73 36C73 50.3443 62.9346 62.3331 49.4831 65.2972L48.6223 61.3909C60.2795 58.8222 69 48.4271 69 36H73ZM43 6C59.5685 6 73 19.4315 73 36H69C69 21.6406 57.3594 10 43 10V6Z" fill="').concat(v,'" mask="url(#path-2-inside-1)"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="#C4C4C4"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="url(#pattern0)"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="url(#pattern1)"/>\n    </g>\n    <defs>\n    <filter id="filter0_dd" x="0.6" y="4.76837e-07" width="84.8" height="94.7995" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n    <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset dy="6.4"/>\n    <feGaussianBlur stdDeviation="7.2"/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>\n    <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset dy="1.2"/>\n    <feGaussianBlur stdDeviation="1.8"/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>\n    <feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/>\n    <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/>\n    </filter>\n    <filter id="filter1_d" x="34.5279" y="60.3736" width="16.9442" height="16.9442" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n    <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0.158594 0 0 0 0 0.845833 0 0 0 0 0.766098 0 0 0 1 0"/>\n    <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>\n    <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>\n    </filter>\n    <pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">\n    <use xlink:href="#image1" transform="translate(-0.419814, -0.14) scale(0.000466166)"/>\n    </pattern>\n    <clipPath id="clip0">\n    <rect width="80" height="80" fill="white" transform="matrix(-1 0 0 1 85 8)"/>\n    </clipPath>\n    <image id="image1" width="4096" height="2731" xlink:href="').concat(y,'"/>\n    </defs>\n    </svg>')):null!==(r=t.pushPin.staticImage)&&void 0!==r?r:function(e,t){return'<svg width="86" height="95" viewBox="0 0 86 95" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n    <g clip-path="url(#clip0)" filter="url(#filter0_dd)">\n    <g filter="url(#filter1_d)">\n    <path d="M43 73.8457C40.2386 73.8457 38 71.6071 38 68.8457C38 66.0843 40.2386 63.8457 43 63.8457C45.7614 63.8457 48 66.0843 48 68.8457C48 71.6071 45.7614 73.8457 43 73.8457Z" fill="'.concat(e,'"/>\n    </g>\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M43 8C27.536 8 15 20.536 15 36C15 49.4548 24.4901 60.693 37.1417 63.3862L43.0762 69.3206L49.0527 63.3441C61.607 60.5776 71 49.3857 71 36C71 20.536 58.464 8 43 8Z" fill="white"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="#C4C4C4"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="url(#pattern0)"/>\n    <path d="M69 36C69 50.3594 57.3594 62 43 62C28.6406 62 17 50.3594 17 36C17 21.6406 28.6406 10 43 10C57.3594 10 69 21.6406 69 36Z" fill="url(#pattern1)"/>\n    </g>\n    <defs>\n    <filter id="filter0_dd" x="0.6" y="4.76837e-07" width="84.8" height="94.7995" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n    <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset dy="6.4"/>\n    <feGaussianBlur stdDeviation="7.2"/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>\n    <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset dy="1.2"/>\n    <feGaussianBlur stdDeviation="1.8"/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>\n    <feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/>\n    <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/>\n    </filter>\n    <filter id="filter1_d" x="34.5279" y="60.3736" width="16.9442" height="16.9442" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n    <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n    <feOffset/>\n    <feColorMatrix type="matrix" values="0 0 0 0 0.158594 0 0 0 0 0.845833 0 0 0 0 0.766098 0 0 0 1 0"/>\n    <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>\n    <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>\n    </filter>\n    <pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">\n    <use xlink:href="#image1" transform="translate(-0.419814, -0.14) scale(0.000466166)"/>\n    </pattern>\n    <clipPath id="clip0">\n    <rect width="80" height="80" fill="white" transform="matrix(-1 0 0 1 85 8)"/>\n    </clipPath>\n    <image id="image1" width="4096" height="2731" xlink:href="').concat(t,'"/>\n    </defs>\n    </svg>')}(d,t.pushPin.imageSrc);var h=new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(s,c),(0,e.__assign)((0,e.__assign)({},t.pushPin.options),{icon:p}));if(Ex("BingMaps",[hte(t.pushPin.ariaLabel,null===l||void 0===l?void 0:l.pushpinAccessible)]),h.metadata={ariaLabel:t.pushPin.ariaLabel,imageSrc:t.pushPin.imageSrc},t.pushPin.anchorOffset){var f=t.pushPin.anchorOffset,m=f.xOffset,g=f.yOffset;h.setOptions({anchor:new Microsoft.Maps.Point(m,g)})}Microsoft.Maps.Events.addHandler(h,"click",(function(){u.onSelectedMapItemChange(t.id)})),i.push(h)}var v,y},s=0,d=u.mapElements;s<d.length;s++){a(d[s])}else{var p=new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0,0),{visible:!1});p.setMap(g),u.pushPins.forEach((function(t){var n=t.location,r=n.latitude,o=n.longitude,a=new Microsoft.Maps.Location(r,o),s=new Microsoft.Maps.Pushpin(a,(0,e.__assign)({},t.options));if(Ex("BingMaps",[hte(t.ariaLabel,null===l||void 0===l?void 0:l.pushpinAccessible)]),s.metadata={ariaLabel:t.ariaLabel},t.infoboxProps){var c=t.infoboxProps,u=c.title,d=c.description,h=c.offset;Microsoft.Maps.Events.addHandler(s,"click",(function(){p.setOptions({title:u,description:d,offset:h?new Microsoft.Maps.Point(h.xOffset,h.yOffset):void 0,location:a,visible:!0,zIndex:-1})}))}i.push(s)}))}if(function(t){var n;if(t)if(t.pushPin){var r=t.pushPin.location,o=r.latitude,i=r.longitude;_(!1),null===g||void 0===g||g.setView((0,e.__assign)((0,e.__assign)({},l),{center:new Microsoft.Maps.Location(o,i),zoom:null!==(n=u.listItemClickZoomLevel)&&void 0!==n?n:15}))}else _(!0),null===g||void 0===g||g.setView((0,e.__assign)((0,e.__assign)({},l),{center:c?new Microsoft.Maps.Location(c.latitude,c.longitude):new Microsoft.Maps.Location(0,0),zoom:1}));else _(!1),L()}(o),t&&g.layers.clear(),null===h||void 0===h?void 0:h.useClustering){var m=h.clusterIcon,v=h.isClusterOnClickZoom;Microsoft.Maps.loadModule("Microsoft.Maps.Clustering",(function(){var e=m?new Microsoft.Maps.ClusterLayer(i,{clusteredPinCallback:function(e){v&&function(e){Microsoft.Maps.Events.addHandler(e,"click",(function(e){var t=e;if(null===t||void 0===t?void 0:t.target.containedPushpins){var n=t.target.containedPushpins.map((function(e){return e.getLocation()})),r=Microsoft.Maps.LocationRect.fromLocations(n);g.setView({bounds:r,padding:f})}}))}(e),e.setOptions({icon:m,textOffset:new Microsoft.Maps.Point(N.xOffset,N.yOffset),anchor:new Microsoft.Maps.Point(M.xOffset,M.yOffset)})}}):new Microsoft.Maps.ClusterLayer(i);g.layers.insert(e)}))}else{var y=new Microsoft.Maps.Layer;y.setPrimitives(i),g.layers.insert(y)}i.forEach((function(e){e.metadata.ariaLabel&&Microsoft.Maps.Events.addHandler(e,"changed",(function(t){var n,r=t;3===r.newValue&&"state"===r.name&&(null===(n=document.querySelector('div[data-pid="'.concat(r.sender.entity.id,'"]')))||void 0===n||n.setAttribute("aria-label",e.metadata.ariaLabel))}))}))}};op((function(){T({name:D.operationName,status:"first-load"})})),(0,Fd.useEffect)((function(){"success"===k?setTimeout((function(){try{!function(){Ex("BingMaps",[fte(P.current)]);var t=(0,e.__assign)({center:c?new Microsoft.Maps.Location(c.latitude,c.longitude):void 0,disableScrollWheelZoom:!0,showLocateMeButton:!1,showMapTypeSelector:!1},l);v(new Microsoft.Maps.Map(P.current,t))}()}catch(t){T({name:D.operationName,status:"failed",error:t})}T({name:D.operationName,status:"finished"})})):"failure"===k&&setTimeout((function(){T({name:D.operationName,status:"failed",error:S})}))}),[k]),(0,Fd.useEffect)((function(){O(!1)}),[g]),(0,Fd.useLayoutEffect)((function(){L()}),[c,l,u,g,P]),(0,Fd.useEffect)((function(){O(!0)}),[u]);var F,B,H,z={width:d,height:p},V=cS(I)?void 0:"listItem"===(null===u||void 0===u?void 0:u.optionType)||"accordion"===(null===u||void 0===u?void 0:u.optionType)?(F="string"===typeof p?p:"".concat(p,"px"),B=u.containerProps.width,H=u.containerProps.height,{position:"absolute",width:B,height:H,top:8,left:8,zIndex:sp.bingMapsListContainer,maxHeight:"calc(".concat(F," - 16px)"),overflowY:"auto"}):void 0;return Bd().createElement("div",{style:{position:"relative",minHeight:p}},Bd().createElement(Zm,{operationData:D,firstLoadView:Bd().createElement(wT,{width:d,height:p,verticalAlign:"center",horizontalAlign:"center"},Bd().createElement(fM,{"aria-label":a,spinnerSize:2})),finishedView:"listItem"===(null===u||void 0===u?void 0:u.optionType)||"accordion"===(null===u||void 0===u?void 0:u.optionType)?Bd().createElement(z_,{"aria-label":u.containerProps.ariaLabel,style:V,horizontal:!0,tokens:{childrenGap:"8px"},doNotRenderFalsyValues:!0},E?"listItem"===u.optionType?Bd().createElement(bte,{mapItems:u}):Bd().createElement(_te,{mapItems:u}):null,(null===(o=null===u||void 0===u?void 0:u.mapElements)||void 0===o?void 0:o.length)>0?Bd().createElement("div",{style:{backgroundColor:A.palette.neutralHigh,height:"max-content",borderRadius:"4px"}},Bd().createElement(fR,{"data-bi-id":"collapse-button-bing-maps","aria-label":null!==(i=u.collapseButtonAriaLabel)&&void 0!==i?i:"",iconName:E?"ChevronLeft":"ChevronRight",onClick:function(){return w(!E)},iconColor:"neutralPrimary"})):null):Bd().createElement(Bd().Fragment,null),failedView:R}),Bd().createElement("div",{style:z,ref:P},b?Bd().createElement(Bd().Fragment,null,Bd().createElement(z_,{style:pte(d,p,A.palette.black),doNotRenderFalsyValues:!0}),"listItem"!==(null===u||void 0===u?void 0:u.optionType)&&"accordion"!==(null===u||void 0===u?void 0:u.optionType)||!u.noPushPinText?null:Bd().createElement(z_,{verticalAlign:"center",horizontalAlign:"center",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:sp.bingMapsNoPushPinContainer},doNotRenderFalsyValues:!0},Bd().createElement(wT,{horizontal:!0,padding:"16px",backgroundColor:"neutralHigh",childrenGap:8},Bd().createElement(WS,{iconName:"Info",size:"14px"}),Bd().createElement(DT,null,u.noPushPinText)))):null))},bte=function(t){var n=t.mapItems;return Bd().createElement(TV,(0,e.__assign)({},n.listProps),n.mapElements.map((function(t){return Bd().createElement(DH,(0,e.__assign)({key:t.id,selected:t.id===n.selectedMapItemId},t.listItemProps,{onClickProps:(0,e.__assign)((0,e.__assign)({},t.onClickProps),{pageArea:n.pageArea,onClick:(r=t,function(e){n.onSelectedMapItemChange(r.id),r.onClickProps.onClick&&r.onClickProps.onClick(e)})})}));var r})))},_te=function(t){var n,r=t.mapItems,o=function(e){return function(t){r.onSelectedMapItemChange(e.id),e.accordionDrawerProps.onClickToClose&&e.accordionDrawerProps.onClickToClose(t)}},i=r.mapElements.map((function(t,i){return r.selectedMapItemId===t.id&&(n=i),(0,e.__assign)((0,e.__assign)({},t.accordionDrawerProps),{key:t.id,onClickToOpen:(a=t,function(e){r.onSelectedMapItemChange(a.id),a.accordionDrawerProps.onClickToOpen&&a.accordionDrawerProps.onClickToOpen(e)}),onClickToClose:o(t)});var a}));return Bd().createElement(IM,(0,e.__assign)({accordionDrawers:i,drawerIndexOpen:n},r.accordionProps))},Cte="bing-maps",Ete=function(e){var t=e.config,n=e.children,r=(0,Fd.useState)(),o=r[0],i=r[1],a=(0,Fd.useState)(),s=a[0],c=a[1];return op((function(){var e=t.apiKey,n="".concat(t.prodOrExperimentalMapUrlV8,"&key=").concat(e),r="?".concat(t.prodOrExperimentalMapUrlV8.split("?")[1]),o=new URLSearchParams(r).get("callback");Ex("BingMaps",[gte(o)]);var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.defer=!0,a.src=n,a.id=Cte,a.setAttribute("data-testId",Cte),window[o]=function(){i("success")},a.onerror=function(e){i("failure"),c(new Error(e.toString()))},document.body.appendChild(a)})),rp((function(){var e=document.getElementById(Cte);e&&document.body.removeChild(e)})),Bd().createElement(vte.Provider,{value:{endState:o,currentError:s}},n)},wte=function(e){return"".concat(e,"/Acw.Read")},xte=function(e,t){return xte=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])},xte(e,t)};function kte(e,t){function n(){this.constructor=e}xte(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ste=function(){return Ste=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},Ste.apply(this,arguments)};function Tte(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(bke){i(bke)}}function s(e){try{c(r.throw(e))}catch(bke){i(bke)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Ite(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(bke){i=[6,bke],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 Ate(){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 Pte,Dte,Rte,Mte,Nte,Lte={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"},Ote=[Lte.OPENID_SCOPE,Lte.PROFILE_SCOPE,Lte.OFFLINE_ACCESS_SCOPE],Fte=Ate(Ote,[Lte.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"}(Pte||(Pte={})),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"}(Dte||(Dte={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(Rte||(Rte={})),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"}(Mte||(Mte={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(Nte||(Nte={}));var Bte,Hte={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"}(Bte||(Bte={}));var zte,Vte,Ute,Wte,jte,qte,Gte={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(zte||(zte={})),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"}(Vte||(Vte={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(Ute||(Ute={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(Wte||(Wte={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(jte||(jte={})),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"}(qte||(qte={}));var Kte,Yte="appmetadata",Qte="1",Xte="authority-metadata",Zte=86400;!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(Kte||(Kte={}));var Jte,$te={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"}(Jte||(Jte={}));var ene,tne,nne,rne,one,ine,ane=60,sne=3600,cne="throttling",lne="retry-after, h429",une="invalid_grant",dne="client_mismatch";!function(e){e.username="username",e.password="password"}(ene||(ene={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(tne||(tne={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(nne||(nne={})),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"}(rne||(rne={})),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"}(one||(one={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(ine||(ine={}));var pne,hne,fne,mne,gne,vne,yne,bne,_ne,Cne="invalid_grant",Ene=483,wne=600,xne="msal",kne=30,Sne="msal.js.browser",Tne="53ee284d-920a-4b59-9d30-a60315b26836",Ine="ppnbnpeolgkicgegkbkbjmhlideopiji",Ane="MATS";!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(pne||(pne={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(hne||(hne={})),function(e){e.GET="GET",e.POST="POST"}(fne||(fne={})),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"}(mne||(mne={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(gne||(gne={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(vne||(vne={})),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"}(yne||(yne={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(bne||(bne={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(_ne||(_ne={}));var Pne,Dne={scopes:Ote},Rne="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(Pne||(Pne={}));var Mne,Nne="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"}(Mne||(Mne={}));var Lne=function(e,t){return Lne=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])},Lne(e,t)};var One=function(){return One=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},One.apply(this,arguments)};var Fne=function(e,t){return Fne=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])},Fne(e,t)};function Bne(e,t){function n(){this.constructor=e}Fne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Hne,zne,Vne=function(){return Vne=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},Vne.apply(this,arguments)};function Une(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 Wne(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(bke){i(bke)}}function s(e){try{c(r.throw(e))}catch(bke){i(bke)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function jne(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(bke){i=[6,bke],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 qne(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 Gne(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qne(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"}(Hne||(Hne={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(zne||(zne={}));var Kne,Yne=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),Qne={code:"unexpected_error",desc:"Unexpected error in authentication."},Xne={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."},Zne=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||Lte.EMPTY_STRING,i.errorMessage=r||Lte.EMPTY_STRING,i.subError=o||Lte.EMPTY_STRING,i.name="AuthError",i}return kte(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(Qne.code,Qne.desc+": "+e)},t.createPostRequestFailed=function(e){return new t(Xne.code,Xne.desc+": "+e)},t}(Error),Jne=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 kte(t,e),t}(Zne),$ne=["interaction_required","consent_required","login_required"],ere=["message_only","additional_action","basic_action","user_password_expired","consent_required"],tre={code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},nre={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."},rre=function(e){function t(n,r,o,i,a,s,c){var l=e.call(this,n,r,o)||this;return Object.setPrototypeOf(l,t.prototype),l.timestamp=i||Lte.EMPTY_STRING,l.traceId=a||Lte.EMPTY_STRING,l.correlationId=s||Lte.EMPTY_STRING,l.claims=c||Lte.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return kte(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&$ne.indexOf(e)>-1,o=!!n&&ere.indexOf(n)>-1,i=!!t&&$ne.some((function(e){return t.indexOf(e)>-1}));return r||i||o},t.createNoTokensFoundError=function(){return new t(tre.code,tre.desc)},t.createNativeAccountUnavailableError=function(){return new t(nre.code,nre.desc)},t}(Zne),ore={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."},ire={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."},are=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 kte(t,e),t.createMissingKidError=function(){return new t(ore.code,ore.desc)},t.createMissingAlgError=function(){return new t(ire.code,ire.desc)},t}(Zne),sre=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 are.createMissingKidError();if(!t.alg)throw are.createMissingAlgError();var n=new e({typ:t.typ||ine.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),cre=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),lre=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,cre.decimalToHex(e[0])+cre.decimalToHex(e[1])+cre.decimalToHex(e[2])+cre.decimalToHex(e[3])+"-"+cre.decimalToHex(e[4])+cre.decimalToHex(e[5])+"-"+cre.decimalToHex(e[6])+cre.decimalToHex(e[7])+"-"+cre.decimalToHex(e[8])+cre.decimalToHex(e[9])+"-"+cre.decimalToHex(e[10])+cre.decimalToHex(e[11])+cre.decimalToHex(e[12])+cre.decimalToHex(e[13])+cre.decimalToHex(e[14])+cre.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,o=Lte.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}(),ure=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=Lte.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}(),dre=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,Lte.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,Lte.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=ure.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=Lte.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}(),pre=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 ure.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,Lte.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,c=0,l=0,u=0;u<r;u++)if(s=3&u,c|=this.b64ToUint6(n.charCodeAt(u))<<18-6*s,3===s||r-u===1){for(a=0;a<3&&l<o;a++,l++)i[l]=c>>>(16>>>a&24)&255;c=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}(),hre={code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},fre={code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},mre={code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},gre={code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},vre={code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},yre={code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},bre={code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},_re={code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},Cre={code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},Ere={code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},wre={code:"state_not_found",desc:"State not found"},xre={code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},kre={code:"nonce_not_found",desc:"nonce not found"},Sre={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."},Tre={code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},Ire={code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},Are={code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},Pre={code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},Dre={code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},Rre={code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},Mre={code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},Nre={code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},Lre={code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},Ore={code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},Fre={code:"device_code_expired",desc:"Device code is expired."},Bre={code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},Hre={code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},zre={code:"invalid_cache_record",desc:"Cache record object was null or undefined."},Vre={code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},Ure={code:"no_account_found",desc:"No account found in cache for given key."},Wre={code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},jre={code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},qre={code:"invalid_cache_type",desc:"Invalid cache type"},Gre={code:"unexpected_account_type",desc:"Unexpected account type."},Kre={code:"unexpected_credential_type",desc:"Unexpected credential type."},Yre={code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},Qre={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"},Xre={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."},Zre={code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},Jre={code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},$re={code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},eoe={code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},toe={code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},noe={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."},roe={code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},ooe={code:"user_canceled",desc:"User canceled the flow."},ioe=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 kte(t,e),t.createClientInfoDecodingError=function(e){return new t(hre.code,hre.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(fre.code,""+fre.desc)},t.createTokenParsingError=function(e){return new t(mre.code,mre.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(gre.code,gre.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(vre.code,vre.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(yre.code,yre.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(bre.code,bre.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(_re.code,_re.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(Cre.code,Cre.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(Ere.code,Ere.desc)},t.createStateNotFoundError=function(e){return new t(wre.code,wre.desc+":  "+e)},t.createNonceMismatchError=function(){return new t(xre.code,xre.desc)},t.createAuthTimeNotFoundError=function(){return new t(Sre.code,Sre.desc)},t.createMaxAgeTranspiredError=function(){return new t(Tre.code,Tre.desc)},t.createNonceNotFoundError=function(e){return new t(kre.code,kre.desc+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(Ire.code,Ire.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(Are.code,Are.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(Pre.code,Pre.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(Dre.code,Dre.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(Rre.code,Rre.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(Mre.code,Mre.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(Nre.code,Nre.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(Lre.code,""+Lre.desc)},t.createDeviceCodeCancelledError=function(){return new t(Ore.code,""+Ore.desc)},t.createDeviceCodeExpiredError=function(){return new t(Fre.code,""+Fre.desc)},t.createDeviceCodeUnknownError=function(){return new t(Bre.code,""+Bre.desc)},t.createNoAccountInSilentRequestError=function(){return new t(Hre.code,""+Hre.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(zre.code,zre.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(Vre.code,Vre.desc)},t.createNoAccountFoundError=function(){return new t(Ure.code,Ure.desc)},t.createCachePluginError=function(){return new t(Wre.code,""+Wre.desc)},t.createNoCryptoObjectError=function(e){return new t(jre.code,""+jre.desc+e)},t.createInvalidCacheTypeError=function(){return new t(qre.code,""+qre.desc)},t.createUnexpectedAccountTypeError=function(){return new t(Gre.code,""+Gre.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(Kre.code,""+Kre.desc)},t.createInvalidAssertionError=function(){return new t(Yre.code,""+Yre.desc)},t.createInvalidCredentialError=function(){return new t(Qre.code,""+Qre.desc)},t.createRefreshRequiredError=function(){return new t(Xre.code,Xre.desc)},t.createUserTimeoutReachedError=function(){return new t(Zre.code,Zre.desc)},t.createTokenClaimsRequiredError=function(){return new t(Jre.code,Jre.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t($re.code,$re.desc)},t.createBindingKeyNotRemovedError=function(){return new t(eoe.code,eoe.desc)},t.createLogoutNotSupportedError=function(){return new t(toe.code,toe.desc)},t.createKeyIdMissingError=function(){return new t(noe.code,noe.desc)},t.createNoNetworkConnectivityError=function(){return new t(roe.code,roe.desc)},t.createUserCanceledError=function(){return new t(ooe.code,ooe.desc)},t}(Zne),aoe=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw ioe.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw ioe.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(bke){}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(bke){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}(),soe={code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},coe={code:"crypto_nonexistent",desc:"The crypto object or function is not available."},loe={code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},uoe={code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},doe={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."},poe={code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hoe={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."},foe={code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},moe={code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},goe={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."},voe={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."},yoe={code:"empty_window_error",desc:"window.open returned null or undefined window object."},boe={code:"user_cancelled",desc:"User cancelled the flow."},_oe={code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},Coe={code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},Eoe={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."},woe={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"},xoe={code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},koe={code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},Soe={code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},Toe={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."},Ioe={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'."},Aoe={code:"no_token_request_cache_error",desc:"No token request found in cache."},Poe={code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},Doe={code:"no_cached_authority_error",desc:"No cached authority found."},Roe={code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},Moe={code:"invalid_cache_type",desc:"Invalid cache type"},Noe={code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},Loe={code:"database_not_open",desc:"Database is not open!"},Ooe={code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},Foe={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'"},Boe={code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},Hoe={code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},zoe={code:"unable_to_load_token",desc:"Error loading token to cache."},Voe={code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},Uoe={code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},Woe={code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},joe={code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},qoe={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."},Goe={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."},Koe={code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},Yoe={code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},Qoe={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."},Xoe={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."},Zoe={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."},Joe=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 Bne(t,e),t.createPkceNotGeneratedError=function(e){return new t(soe.code,soe.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(coe.code,coe.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(loe.code,loe.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(uoe.code,uoe.desc)},t.createEmptyHashError=function(e){return new t(doe.code,doe.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(poe.code,poe.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(hoe.code,hoe.desc)},t.createUnableToParseStateError=function(){return new t(foe.code,foe.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(moe.code,moe.desc)},t.createInteractionInProgressError=function(){return new t(goe.code,goe.desc)},t.createPopupWindowError=function(e){var n=voe.desc;return n=aoe.isEmpty(e)?n:n+" Details: "+e,new t(voe.code,n)},t.createEmptyWindowCreatedError=function(){return new t(yoe.code,yoe.desc)},t.createUserCancelledError=function(){return new t(boe.code,boe.desc)},t.createMonitorPopupTimeoutError=function(){return new t(_oe.code,_oe.desc)},t.createMonitorIframeTimeoutError=function(){return new t(Coe.code,Coe.desc)},t.createRedirectInIframeError=function(e){return new t(Eoe.code,Eoe.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(woe.code,woe.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(xoe.code,xoe.desc)},t.createIframeClosedPrematurelyError=function(){return new t(koe.code,koe.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Soe.code,Soe.desc)},t.createNoAccountError=function(){return new t(Toe.code,Toe.desc)},t.createSilentPromptValueError=function(e){return new t(Ioe.code,Ioe.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Poe.code,Poe.desc)},t.createNoTokenRequestCacheError=function(){return new t(Aoe.code,Aoe.desc)},t.createAuthRequestNotSetError=function(){return new t(Roe.code,Roe.desc)},t.createNoCachedAuthorityError=function(){return new t(Doe.code,Doe.desc)},t.createInvalidCacheTypeError=function(){return new t(Moe.code,""+Moe.desc)},t.createNonBrowserEnvironmentError=function(){return new t(Noe.code,Noe.desc)},t.createDatabaseNotOpenError=function(){return new t(Loe.code,Loe.desc)},t.createNoNetworkConnectivityError=function(){return new t(Ooe.code,Ooe.desc)},t.createPostRequestFailedError=function(e,n){return new t(Foe.code,Foe.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(Boe.code,Boe.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Hoe.code,Hoe.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(zoe.code,zoe.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Voe.code,Voe.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Uoe.code,Uoe.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Woe.code,Woe.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(joe.code,joe.desc)},t.createDatabaseUnavailableError=function(){return new t(qoe.code,qoe.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Goe.code,Goe.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Koe.code,Koe.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(Yoe.code,Yoe.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Qoe.code,Qoe.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Xoe.code,Xoe.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Zoe.code,Zoe.desc)},t}(Zne),$oe=function(){function e(e){this.base64Encode=new dre,this.cryptoObj=e}return e.prototype.generateCodes=function(){return Wne(this,void 0,void 0,(function(){var e,t;return jne(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(bke){throw Joe.createPkceNotGeneratedError(bke)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return Wne(this,void 0,void 0,(function(){var t,n;return jne(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(),Joe.createPkceNotGeneratedError(n);case 3:return[2]}}))}))},e}(),eie=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return Wne(this,void 0,void 0,(function(){return jne(this,(function(t){return[2,window.crypto.subtle.exportKey(Rne,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return Wne(this,void 0,void 0,(function(){return jne(this,(function(o){return[2,window.crypto.subtle.importKey(Rne,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){return[2,window.crypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,window.crypto.subtle.digest(e,t)]}))}))},e}(),tie=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Gne(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return Wne(this,void 0,void 0,(function(){return jne(this,(function(t){return[2,window.msrCrypto.subtle.exportKey(Rne,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return Wne(this,void 0,void 0,(function(){return jne(this,(function(o){return[2,window.msrCrypto.subtle.importKey(Rne,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,window.msrCrypto.subtle.digest(e,t)]}))}))},e}(),nie=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(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 Wne(this,void 0,void 0,(function(){return jne(this,(function(t){return[2,new Promise((function(t,n){var r=window.msCrypto.subtle.exportKey(Rne,e);r.addEventListener("complete",(function(e){var r=e.target.result,o=ure.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,Lte.EMPTY_STRING).replace(/\n/g,Lte.EMPTY_STRING).replace(/\t/g,Lte.EMPTY_STRING).split(" ").join(Lte.EMPTY_STRING).replace("\0",Lte.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 Wne(this,void 0,void 0,(function(){var o,i;return jne(this,(function(a){return o=ure.getSortedObjectString(e),i=ure.stringToArrayBuffer(o),[2,new Promise((function(e,o){var a=window.msCrypto.subtle.importKey(Rne,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 Wne(this,void 0,void 0,(function(){return jne(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 Wne(this,void 0,void 0,(function(){return jne(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}(),rie={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},oie={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},iie={code:"storage_not_supported",desc:"Given storage configuration option was not supported."},aie={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."},sie={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"},cie={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."},lie={code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."},uie=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 Bne(t,e),t.createRedirectUriEmptyError=function(){return new t(rie.code,rie.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(oie.code,oie.desc)},t.createStorageNotSupportedError=function(e){return new t(iie.code,iie.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(aie.code,aie.desc)},t.createStubPcaInstanceCalledError=function(){return new t(sie.code,sie.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(cie.code,cie.desc)},t.createEntropyNotProvided=function(){return new t(lie.code,lie.desc)},t}(Zne),die="SHA-256",pie=new Uint8Array([1,0,1]),hie=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 eie;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new nie;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."),Joe.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new tie}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."),uie.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:die,modulusLength:2048,publicExponent:pie}}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 Wne(this,void 0,void 0,(function(){var t;return jne(this,(function(n){return t=ure.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:die},t)]}))}))},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return Wne(this,void 0,void 0,(function(){return jne(this,(function(t){return[2,this.subtleCrypto.exportKey(e)]}))}))},e.prototype.importJwk=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]}))}))},e.prototype.sign=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]}))}))},e}(),fie=function(){function e(){this.dbName=Nne,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return e.prototype.open=function(){return Wne(this,void 0,void 0,(function(){var e=this;return jne(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(Joe.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return Wne(this,void 0,void 0,(function(){return jne(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 Wne(this,void 0,void 0,(function(){var t=this;return jne(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(Joe.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 Wne(this,void 0,void 0,(function(){var n=this;return jne(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(Joe.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 Wne(this,void 0,void 0,(function(){var t=this;return jne(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(Joe.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 Wne(this,void 0,void 0,(function(){var e=this;return jne(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(Joe.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 Wne(this,void 0,void 0,(function(){var t=this;return jne(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(Joe.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 Wne(this,void 0,void 0,(function(){return jne(this,(function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise((function(e,t){var n=window.indexedDB.deleteDatabase(Nne);n.addEventListener("success",(function(){return e(!0)})),n.addEventListener("blocked",(function(){return e(!0)})),n.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),mie=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}(),gie=function(){function e(e,t){this.inMemoryCache=new mie,this.indexedDBCache=new fie,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof Joe&&e.errorCode===qoe.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 Wne(this,void 0,void 0,(function(){var t,n;return jne(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 Wne(this,void 0,void 0,(function(){var n;return jne(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 Wne(this,void 0,void 0,(function(){var t;return jne(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 Wne(this,void 0,void 0,(function(){var e,t;return jne(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 Wne(this,void 0,void 0,(function(){var t,n;return jne(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 Wne(this,void 0,void 0,(function(){var e,t;return jne(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"}(Kne||(Kne={}));var vie,yie=function(){function e(e){this.logger=e,this.asymmetricKeys=new gie(this.logger,Kne.asymmetricKeys),this.symmetricKeys=new gie(this.logger,Kne.symmetricKeys)}return e.prototype.clear=function(){return Wne(this,void 0,void 0,(function(){var e;return jne(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}(),bie=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new hie(this.logger,n),this.b64Encode=new dre,this.b64Decode=new pre,this.guidGenerator=new lre(this.browserCrypto),this.pkceGenerator=new $oe(this.browserCrypto),this.cache=new yie(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 Wne(this,void 0,void 0,(function(){return jne(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){var n;return Wne(this,void 0,void 0,(function(){var r,o,i,a,s,c,l,u;return jne(this,(function(d){switch(d.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Hne.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=ure.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),r&&r.endMeasurement({success:!0}),[2,c]}}))}))},e.prototype.removeTokenBindingKey=function(e){return Wne(this,void 0,void 0,(function(){return jne(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 Wne(this,void 0,void 0,(function(){return jne(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 Wne(this,void 0,void 0,(function(){var o,i,a,s,c,l,u,d,p,h,f,m,g;return jne(this,(function(v){switch(v.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Hne.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(i=v.sent()))throw Joe.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=v.sent(),s=ure.getSortedObjectString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:t})),l=sre.getShrHeaderString({kid:c,alg:a.alg}),u=this.b64Encode.urlEncode(l),e.cnf={jwk:JSON.parse(s)},d=this.b64Encode.urlEncode(JSON.stringify(e)),p=u+"."+d,h=ure.stringToArrayBuffer(p),[4,this.browserCrypto.sign(i.privateKey,h)];case 3:return f=v.sent(),m=this.b64Encode.urlEncodeArr(new Uint8Array(f)),g=p+"."+m,o&&o.endMeasurement({success:!0}),[2,g]}}))}))},e.prototype.hashString=function(e){return Wne(this,void 0,void 0,(function(){var t,n;return jne(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"}(vie||(vie={}));var _ie,Cie=function(){function e(t,n,r){this.level=vie.Info;var o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||function(){},this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level="number"===typeof o.logLevel?o.logLevel:vie.Info,this.correlationId=o.correlationId||Lte.EMPTY_STRING,this.packageName=n||Lte.EMPTY_STRING,this.packageVersion=r||Lte.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:vie.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=(aoe.isEmpty(t.correlationId)?aoe.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+vie[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:vie.Error,containsPii:!1,correlationId:t||Lte.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:vie.Error,containsPii:!0,correlationId:t||Lte.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:vie.Warning,containsPii:!1,correlationId:t||Lte.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:vie.Warning,containsPii:!0,correlationId:t||Lte.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:vie.Info,containsPii:!1,correlationId:t||Lte.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:vie.Info,containsPii:!0,correlationId:t||Lte.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:vie.Verbose,containsPii:!1,correlationId:t||Lte.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:vie.Verbose,containsPii:!0,correlationId:t||Lte.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:vie.Trace,containsPii:!1,correlationId:t||Lte.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:vie.Trace,containsPii:!0,correlationId:t||Lte.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),Eie=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 Yne},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:zne.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(Ste(Ste({},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 c=null===t||void 0===t?void 0:t.flushMeasurement();if(!c)return this.logger.trace("PerformanceClient: Performance measurement not taken",i.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+c+" ms",e.correlationId),!a)return i[e.name+"DurationMs"]=Math.floor(c),Ste({},i);var l=Ste(Ste({},i),e),u=0;return null===(r=l.incompleteSubMeasurements)||void 0===r||r.forEach((function(t){o.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,l.correlationId),u++})),l.incompleteSubMeasurements=void 0,l=Ste(Ste({},l),{durationMs:Math.round(c),queuedTimeMs:s.totalQueueTime,queuedCount:s.totalQueueCount,queuedManuallyCompletedCount:s.manuallyCompletedCount,status:zne.Completed,incompleteSubsCount:u}),this.truncateIntegralFields(l,this.getIntFields()),this.emitEvents([l],e.correlationId),l},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,Ste(Ste({},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,Ste({},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}(),wie=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),xie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kte(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new wie},t.prototype.startPerformanceMeasurement=function(){return new wie},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(Eie),kie={createNewGuid:function(){throw Zne.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw Zne.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw Zne.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - generatePkceCodes() has not been implemented",Zne.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")}))}))},getPublicKeyThumbprint:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - getPublicKeyThumbprint() has not been implemented",Zne.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")}))}))},removeTokenBindingKey:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - removeTokenBindingKey() has not been implemented",Zne.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")}))}))},clearKeystore:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - clearKeystore() has not been implemented",Zne.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")}))}))},signJwt:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - signJwt() has not been implemented",Zne.createUnexpectedError("Crypto interface - signJwt() has not been implemented")}))}))},hashString:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Crypto interface - hashString() has not been implemented",Zne.createUnexpectedError("Crypto interface - hashString() has not been implemented")}))}))}},Sie=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 jte.ID_TOKEN:return qte.ID_TOKEN;case jte.ACCESS_TOKEN:case jte.ACCESS_TOKEN_WITH_AUTH_SCHEME:return qte.ACCESS_TOKEN;case jte.REFRESH_TOKEN:return qte.REFRESH_TOKEN;default:throw ioe.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,r,o,i,a,s,c){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,o,a),this.generateTargetForCacheKey(i),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(s)].join(Wte.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(Wte.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){return[e,e===jte.REFRESH_TOKEN&&r||t,n||Lte.EMPTY_STRING].join(Wte.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||Lte.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||Lte.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Jte.BEARER.toLowerCase()?e.toLowerCase():Lte.EMPTY_STRING},e}(),Tie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kte(t,e),t.createIdTokenEntity=function(e,n,r,o,i){var a=new t;return a.credentialType=jte.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===jte.ID_TOKEN)},t}(Sie),Iie={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},Aie={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},Pie={code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},Die={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"},Rie={code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},Mie={code:"empty_url_error",desc:"URL was empty or null."},Nie={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."},Lie={code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},Oie={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"},Fie={code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},Bie={code:"token_request_empty",desc:"Token request was empty and not found in cache."},Hie={code:"logout_request_empty",desc:"The logout request was null or undefined."},zie={code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},Vie={code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},Uie={code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},Wie={code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},jie={code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},qie={code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},Gie={code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},Kie={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."},Yie={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."},Qie={code:"invalid_authentication_header",desc:"Invalid authentication header provided"},Xie=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 kte(t,e),t.createRedirectUriEmptyError=function(){return new t(Iie.code,Iie.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Aie.code,Aie.desc)},t.createClaimsRequestParsingError=function(e){return new t(Pie.code,Pie.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(Die.code,Die.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(Rie.code,Rie.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(Mie.code,Mie.desc)},t.createEmptyScopesArrayError=function(){return new t(Nie.code,""+Nie.desc)},t.createClientIdSingleScopeError=function(e){return new t(Lie.code,Lie.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(Oie.code,Oie.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(Fie.code,Fie.desc)},t.createEmptyLogoutRequestError=function(){return new t(Hie.code,Hie.desc)},t.createEmptyTokenRequestError=function(){return new t(Bie.code,Bie.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(zie.code,zie.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(Vie.code,Vie.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(Uie.code,Uie.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(Wie.code,Wie.desc)},t.createUntrustedAuthorityError=function(){return new t(jie.code,jie.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(qie.code,qie.desc)},t.createMissingSshJwkError=function(){return new t(Gie.code,Gie.desc)},t.createMissingSshKidError=function(){return new t(Kie.code,Kie.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(Yie.code,Yie.desc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(Qie.code,Qie.desc+". Invalid header: "+e+". Details: "+n)},t}(ioe),Zie=function(){function e(e){var t=this,n=e?aoe.trimArrayEntries(Ate(e)):[],r=n?aoe.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||Lte.EMPTY_STRING).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(Lte.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Xie.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!aoe.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 Fte.forEach((function(n){e.containsScope(n)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){aoe.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(bke){throw ioe.createAppendScopeSetError(bke)}},e.prototype.removeScope=function(e){if(aoe.isEmpty(e))throw ioe.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;Fte.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw ioe.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 ioe.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(" "):Lte.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();function Jie(e,t){if(aoe.isEmpty(e))throw ioe.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(bke){throw ioe.createClientInfoDecodingError(bke.message)}}function $ie(e){if(aoe.isEmpty(e))throw ioe.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Wte.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?Lte.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"}(_ie||(_ie={}));var eae,tae=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(Wte.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 Ute.ADFS_ACCOUNT_TYPE:return qte.ADFS;case Ute.MSAV1_ACCOUNT_TYPE:return qte.MSA;case Ute.MSSTS_ACCOUNT_TYPE:return qte.MSSTS;case Ute.GENERIC_ACCOUNT_TYPE:return qte.GENERIC;default:throw ioe.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||Lte.EMPTY_STRING,e.tenantId||Lte.EMPTY_STRING].join(Wte.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,o,i,a,s,c){var l,u,d,p,h,f,m=new e;m.authorityType=Ute.MSSTS_ACCOUNT_TYPE,m.clientInfo=t,m.homeAccountId=n,m.nativeAccountId=c;var g=s||o&&o.getPreferredCache();if(!g)throw ioe.createInvalidCacheEnvironmentError();if(m.environment=g,m.realm=(null===(l=null===r||void 0===r?void 0:r.claims)||void 0===l?void 0:l.tid)||Lte.EMPTY_STRING,r){m.idTokenClaims=r.claims,m.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)||Lte.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;m.username=v||y||Lte.EMPTY_STRING,m.name=null===(f=null===r||void 0===r?void 0:r.claims)||void 0===f?void 0:f.name}return m.cloudGraphHostName=i,m.msGraphHost=a,m},e.createGenericAccount=function(t,n,r,o,i,a){var s,c,l,u,d=new e;d.authorityType=r&&r.authorityType===_ie.Adfs?Ute.ADFS_ACCOUNT_TYPE:Ute.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=Lte.EMPTY_STRING;var p=a||r&&r.getPreferredCache();if(!p)throw ioe.createInvalidCacheEnvironmentError();return n&&(d.localAccountId=(null===(s=null===n||void 0===n?void 0:n.claims)||void 0===s?void 0:s.oid)||(null===(c=null===n||void 0===n?void 0:n.claims)||void 0===c?void 0:c.sub)||Lte.EMPTY_STRING,d.username=(null===(l=null===n||void 0===n?void 0:n.claims)||void 0===l?void 0:l.upn)||Lte.EMPTY_STRING,d.name=(null===(u=null===n||void 0===n?void 0:n.claims)||void 0===u?void 0:u.name)||Lte.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:Lte.EMPTY_STRING;if(t===_ie.Adfs||t===_ie.Dsts)return a;if(e)try{var s=Jie(e,r);if(!aoe.isEmpty(s.uid)&&!aoe.isEmpty(s.utid))return""+s.uid+Wte.CLIENT_INFO_SEPARATOR+s.utid}catch(bke){}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}(),nae=function(){function e(t,n){if(aoe.isEmpty(t))throw ioe.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=aoe.decodeAuthToken(e);try{var r=n.JWSPayload,o=t.base64Decode(r);return JSON.parse(o)}catch(i){throw ioe.createTokenParsingError(i)}},e.checkMaxAge=function(e,t){if(0===t||Date.now()-3e5>e+t)throw ioe.createMaxAgeTranspiredError()},e}(),rae="@azure/msal-common",oae="13.0.0",iae=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(rae,oae)}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 nae(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(t){switch(t.label){case 0:if(!e)throw ioe.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 Tte(this,void 0,void 0,(function(){var t,n,r,o,i=this;return Ite(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=Zie.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))Zie.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(Wte.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(Wte.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(jte.ID_TOKEN.toLowerCase())&&-1===t.indexOf(jte.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(jte.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(jte.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(jte.REFRESH_TOKEN.toLowerCase())>-1){var n=""+jte.REFRESH_TOKEN+Wte.CACHE_KEY_SEPARATOR+this.clientId+Wte.CACHE_KEY_SEPARATOR,r=""+jte.REFRESH_TOKEN+Wte.CACHE_KEY_SEPARATOR+Qte+Wte.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===jte.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===Jte.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 Tte(this,void 0,void 0,(function(){var e,t,n=this;return Ite(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 Tte(this,void 0,void 0,(function(){var t;return Ite(this,(function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw ioe.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}}))}))},e.prototype.removeAccountContext=function(e){return Tte(this,void 0,void 0,(function(){var t,n,r,o=this;return Ite(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 Tte(this,void 0,void 0,(function(){var t,n;return Ite(this,(function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==jte.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Jte.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(),ioe.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),c=this.readAppMetadataFromCache(n);return o&&i&&(o.idTokenClaims=new nae(i.secret,this.cryptoImpl).claims),{account:o,idToken:i,accessToken:a,refreshToken:s,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=tae.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:jte.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 ioe.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,Ste({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=Zie.createSearchScopes(t.scopes),i=t.authenticationScheme||Jte.BEARER,a=i&&i.toLowerCase()!==Jte.BEARER.toLowerCase()?jte.ACCESS_TOKEN_WITH_AUTH_SCHEME:jte.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},c=n&&n.accessToken||this.getTokenKeys().accessToken,l=[];c.forEach((function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&l.push(t)}}));var u=l.length;if(u<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(u>1)throw ioe.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),l[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?Qte:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:jte.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 ioe.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==Qte)},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!==jte.ACCESS_TOKEN&&e.credentialType!==jte.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&Zie.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(Yte)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(Xte)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return Xte+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),aae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kte(t,e),t.prototype.setAccount=function(){throw Zne.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw Zne.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw Zne.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw Zne.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw Zne.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw Zne.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw Zne.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw Zne.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw Zne.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw Zne.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw Zne.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw Zne.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw Zne.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw Zne.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw Zne.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getAccountKeys=function(){throw Zne.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getTokenKeys=function(){throw Zne.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Storage interface - clear() has not been implemented for the cacheStorage interface.",Zne.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")}))}))},t.prototype.updateCredentialCacheKey=function(){throw Zne.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(iae),sae=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}(),cae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kte(t,e),t.createAccessTokenEntity=function(e,n,r,o,i,a,s,c,l,u,d,p,h,f,m){var g,v,y=new t;y.homeAccountId=e,y.credentialType=jte.ACCESS_TOKEN,y.secret=r;var b=sae.nowSeconds();if(y.cachedAt=b.toString(),y.expiresOn=s.toString(),y.extendedExpiresOn=c.toString(),u&&(y.refreshOn=u.toString()),y.environment=n,y.clientId=o,y.realm=i,y.target=a,y.userAssertionHash=p,y.tokenType=aoe.isEmpty(d)?Jte.BEARER:d,f&&(y.requestedClaims=f,y.requestedClaimsHash=m),(null===(g=y.tokenType)||void 0===g?void 0:g.toLowerCase())!==Jte.BEARER.toLowerCase())switch(y.credentialType=jte.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case Jte.POP:var _=nae.extractTokenClaims(r,l);if(!(null===(v=null===_||void 0===_?void 0:_.cnf)||void 0===v?void 0:v.kid))throw ioe.createTokenClaimsRequiredError();y.keyId=_.cnf.kid;break;case Jte.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===jte.ACCESS_TOKEN||e.credentialType===jte.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(Sie),lae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kte(t,e),t.createRefreshTokenEntity=function(e,n,r,o,i,a){var s=new t;return s.clientId=o,s.credentialType=jte.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===jte.REFRESH_TOKEN)},t}(Sie),uae=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[Yte,e,t].join(Wte.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(Yte)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}(),dae=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf($te.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),pae=function(){function e(){this.expiresAt=sae.nowSeconds()+Zte}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=sae.nowSeconds()+Zte},e.prototype.isExpired=function(){return this.expiresAt<=sae.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(Xte)&&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}(),hae=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(cne));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),fae=function(){function e(){}return e.setRequestState=function(t,n,r){var o=e.generateLibraryState(t,r);return aoe.isEmpty(n)?o:""+o+Lte.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw ioe.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 ioe.createNoCryptoObjectError("parseRequestState");if(aoe.isEmpty(t))throw ioe.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(Lte.RESOURCE_DELIM),r=n[0],o=n.length>1?n.slice(1).join(Lte.RESOURCE_DELIM):Lte.EMPTY_STRING,i=e.base64Decode(r),a=JSON.parse(i);return{userRequestState:aoe.isEmpty(o)?Lte.EMPTY_STRING:o,libraryState:a}}catch(bke){throw ioe.createInvalidStateError(t,bke)}},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(eae||(eae={}));var mae,gae,vae=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==hne.LocalStorage&&e!==hne.SessionStorage)throw uie.createStorageNotSupportedError(e);if(!!!window[e])throw uie.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}(),yae=function(){function e(t){if(this._urlString=t,aoe.isEmpty(this._urlString))throw Xie.createUrlEmptyError();aoe.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 aoe.endsWith(t,"?")?t=t.slice(0,-1):aoe.endsWith(t,"?/")&&(t=t.slice(0,-2)),aoe.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(bke){throw Xie.createUrlParseError(bke)}if(!e.HostNameAndPort||!e.PathSegments)throw Xie.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw Xie.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return aoe.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]!==Rte.COMMON&&r[0]!==Rte.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 Xie.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,!aoe.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 Xie.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===Lte.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):Lte.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):Lte.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(aoe.isEmpty(t))return{};var n=e.parseHash(t),r=aoe.queryStringToObject(aoe.isEmpty(n)?t:n);if(!r)throw ioe.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(aoe.isEmpty(t))return{};var n=e.parseQueryString(t),r=aoe.queryStringToObject(aoe.isEmpty(n)?t:n);if(!r)throw ioe.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(aoe.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),bae=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(aoe.isEmpty(t))return null;try{return fae.parseRequestState(e,t).libraryState.meta}catch(bke){throw ioe.createInvalidStateError(t,bke)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new yae(e);return yae.getDeserializedHash(t.getHash())},e}(),_ae=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 mie,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 Bne(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case hne.LocalStorage:case hne.SessionStorage:try{return new vae(e)}catch(bke){this.logger.verbose(bke);break}}return this.cacheConfig.cacheLocation=hne.MemoryStorage,new mie},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case hne.LocalStorage:case hne.SessionStorage:try{return new vae(e||hne.SessionStorage)}catch(bke){return this.logger.verbose(bke),this.internalStorage}case hne.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=Lte.CACHE_PREFIX+"."+Dte.ID_TOKEN,n=Lte.CACHE_PREFIX+"."+Dte.CLIENT_INFO,r=Lte.CACHE_PREFIX+"."+Dte.ERROR,o=Lte.CACHE_PREFIX+"."+Dte.ERROR_DESC,i=[this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r),this.browserStorage.getItem(o)];[Dte.ID_TOKEN,Dte.CLIENT_INFO,Dte.ERROR,Dte.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(gne.ACCOUNT_KEYS),n=this.getItem(gne.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 jte.ID_TOKEN:if(Tie.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=iae.toObject(new Tie,r),i=e.updateCredentialCacheKey(t,o);return void e.addTokenKey(i,jte.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 jte.ACCESS_TOKEN:case jte.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(cae.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=iae.toObject(new cae,r);i=e.updateCredentialCacheKey(t,a);return void e.addTokenKey(i,jte.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 jte.REFRESH_TOKEN:if(lae.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=iae.toObject(new lae,r);i=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(i,jte.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 c=e.validateAndParseJson(n);c&&tae.isAccountEntity(c)&&(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&&tae.isAccountEntity(n)?iae.toObject(new tae,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(gne.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(gne.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(gne.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 Wne(this,void 0,void 0,(function(){return jne(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,jte.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,jte.ACCESS_TOKEN),[2]}))}))},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,jte.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(gne.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 jte.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case jte.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case jte.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),ioe.createUnexpectedCredentialTypeError()}this.setItem(gne.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 jte.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 jte.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 jte.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),ioe.createUnexpectedCredentialTypeError()}this.setItem(gne.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,jte.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Tie.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),iae.toObject(new Tie,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,jte.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,jte.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,jte.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&cae.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),iae.toObject(new cae,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,jte.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,jte.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,jte.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&lae.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),iae.toObject(new lae,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,jte.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,jte.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&&uae.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),iae.toObject(new uae,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&&dae.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),iae.toObject(new dae,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&&pae.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),iae.toObject(new pae,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(vne.WRAPPER_SKU,e),this.internalStorage.setItem(vne.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(vne.WRAPPER_SKU)||Lte.EMPTY_STRING,this.internalStorage.getItem(vne.WRAPPER_VER)||Lte.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(Dte.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(Dte.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(Dte.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(Dte.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 ioe.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&&hae.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),iae.toObject(new hae,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===hne.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 Gne(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return Wne(this,void 0,void 0,(function(){var e=this;return jne(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(Lte.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 Lte.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=Lte.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,Lte.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):aoe.startsWith(e,Lte.CACHE_PREFIX)||aoe.startsWith(e,Dte.ADAL_ID_TOKEN)?e:Lte.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=fae.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(mne.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=fae.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(mne.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=fae.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(mne.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 c={credential:o.homeAccountId,type:eae.HOME_ACCOUNT_ID};this.setTemporaryCache(mne.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(!aoe.isEmpty(r)){c={credential:r,type:eae.UPN};this.setTemporaryCache(mne.CCS_CREDENTIAL,JSON.stringify(c),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),aoe.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(mne.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(mne.ORIGIN_URI)),this.removeItem(this.generateCacheKey(mne.URL_HASH)),this.removeItem(this.generateCacheKey(mne.CORRELATION_ID)),this.removeItem(this.generateCacheKey(mne.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(mne.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||Lte.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(mne.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=bae.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(mne.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(mne.REQUEST_PARAMS,!0);if(!n)throw Joe.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw Joe.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(mne.REQUEST_PARAMS)),aoe.isEmpty(r.authority)){var o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw Joe.createNoCachedAuthorityError();r.authority=i}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(mne.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=Lte.CACHE_PREFIX+"."+mne.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=Lte.CACHE_PREFIX+"."+mne.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw Joe.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(Dte.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Dte.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(Dte.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(Dte.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new nae(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(mne.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(mne.REDIRECT_CONTEXT,e,!0)},t}(iae);!function(e){e.AAD="AAD",e.OIDC="OIDC"}(mae||(mae={})),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"}(gae||(gae={}));var Cae={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},Eae={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:vie.Info,correlationId:Lte.EMPTY_STRING},wae={sendGetRequestAsync:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Network interface - sendGetRequestAsync() has not been implemented",Zne.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")}))}))},sendPostRequestAsync:function(){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(e){throw"Network interface - sendPostRequestAsync() has not been implemented",Zne.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")}))}))}},xae={sku:Lte.SKU,version:oae,cpu:Lte.EMPTY_STRING,os:Lte.EMPTY_STRING},kae={clientSecret:Lte.EMPTY_STRING,clientAssertion:void 0},Sae={azureCloudInstance:gae.None,tenant:""+Lte.DEFAULT_COMMON_TENANT},Tae={application:{appName:"",appVersion:""}};var Iae={sendGetRequestAsync:function(){return Promise.reject(Zne.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(Zne.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},Aae=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Wne(this,void 0,void 0,(function(){var n,r,o;return jne(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(e,{method:fne.GET,headers:this.getFetchHeaders(t)})];case 1:return n=i.sent(),[3,3];case 2:throw r=i.sent(),window.navigator.onLine?Joe.createGetRequestFailedError(r,e):Joe.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(),Joe.createFailedToParseNetworkResponseError(e);case 6:return[2]}}))}))},e.prototype.sendPostRequestAsync=function(e,t){return Wne(this,void 0,void 0,(function(){var n,r,o,i;return jne(this,(function(a){switch(a.label){case 0:n=t&&t.body||Lte.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:fne.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?Joe.createPostRequestFailedError(o,e):Joe.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(),Joe.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}(),Pae=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,this.sendRequestAsync(e,fne.GET,t)]}))}))},e.prototype.sendPostRequestAsync=function(e,t){return Wne(this,void 0,void 0,(function(){return jne(this,(function(n){return[2,this.sendRequestAsync(e,fne.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===fne.POST?i(Joe.createPostRequestFailedError("Failed with status "+a.status,e)):i(Joe.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(bke){i(Joe.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===fne.POST?i(Joe.createPostRequestFailedError("Failed with status "+a.status,e)):i(Joe.createGetRequestFailedError("Failed with status "+a.status,e)):i(Joe.createNoNetworkConnectivityError())},t===fne.POST&&n&&n.body)a.send(n.body);else{if(t!==fne.GET)throw Joe.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}(),Dae=function(){function e(){}return e.clearHash=function(e){e.location.hash=Lte.EMPTY_STRING,"function"===typeof e.history.replaceState&&e.history.replaceState(null,Lte.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("#"):Lte.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(xne+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new yae(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Aae:new Pae},e.blockReloadInHiddenIframes=function(){if(yae.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw Joe.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===bne.Redirect&&r&&!n)throw Joe.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw Joe.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw Joe.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Joe.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}(),Rae=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}(),Mae=6e3;var Nae,Lae="@azure/msal-browser",Oae="2.37.0";!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"}(Nae||(Nae={}));var Fae,Bae=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||!tae.isAccountEntity(n))return;var r=iae.toObject(new tae,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Nae.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Nae.ACCOUNT_REMOVED,void 0,r))}catch(e){return}},e}(),Hae=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return cne+"."+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 Jne((null===(r=i.errorCodes)||void 0===r?void 0:r.join(" "))||Lte.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[Pte.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(Pte.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||ane),n+sne))},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}(),zae=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return Tte(this,void 0,void 0,(function(){var r,o;return Ite(this,(function(i){switch(i.label){case 0:Hae.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 Zne?o:ioe.createNetworkError(t,o);case 4:return Hae.postProcess(this.cacheManager,e,r),[2,r]}}))}))},e}(),Vae=function(){function e(){}return e.validateRedirectUri=function(e){if(aoe.isEmpty(e))throw Xie.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in Hte)t.push(Hte[n]);if(t.indexOf(e)<0)throw Xie.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(bke){throw Xie.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(aoe.isEmpty(e)||aoe.isEmpty(t))throw Xie.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([Gte.PLAIN,Gte.S256].indexOf(e)<0)throw Xie.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}(),Uae=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Mte.RESPONSE_TYPE,encodeURIComponent(Lte.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Mte.RESPONSE_TYPE,encodeURIComponent(Lte.TOKEN_RESPONSE_TYPE+" "+Lte.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(Mte.RESPONSE_MODE,encodeURIComponent(e||zte.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(Mte.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?Ate(e||[],Ote):e||[],r=new Zie(n);this.parameters.set(Mte.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(Mte.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){Vae.validateRedirectUri(e),this.parameters.set(Mte.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){Vae.validateRedirectUri(e),this.parameters.set(Mte.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(Mte.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(Bte.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(Bte.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(Pte.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(Pte.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(Bte.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);Vae.validateClaims(n),this.parameters.set(Mte.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(Mte.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(Mte.X_CLIENT_SKU,e.sku),this.parameters.set(Mte.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Mte.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Mte.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(Mte.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(Mte.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){Vae.validatePrompt(e),this.parameters.set(""+Mte.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){aoe.isEmpty(e)||this.parameters.set(Mte.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(Mte.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(Vae.validateCodeChallengeParams(e,t),!e||!t)throw Xie.createInvalidCodeChallengeParamsError();this.parameters.set(Mte.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Mte.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(Mte.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(Mte.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(Mte.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(Mte.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(Mte.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){aoe.isEmpty(e)||this.parameters.set(Mte.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){aoe.isEmpty(e)||this.parameters.set(Mte.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(Mte.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(Mte.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(Mte.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=Vae.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(bke){throw Xie.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(Nte.ACCESS_TOKEN)||(n[Nte.ACCESS_TOKEN]={}),n[Nte.ACCESS_TOKEN][Nte.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(ene.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(ene.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){aoe.isEmpty(e)||(this.parameters.set(Mte.TOKEN_TYPE,Jte.POP),this.parameters.set(Mte.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){aoe.isEmpty(e)||(this.parameters.set(Mte.TOKEN_TYPE,Jte.SSH),this.parameters.set(Mte.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(Mte.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Mte.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Mte.X_MS_LIB_CAPABILITY,lne)},e.prototype.addLogoutHint=function(e){this.parameters.set(Mte.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}(),Wae=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,c=e.clientCredentials,l=e.libraryInfo,u=e.telemetry,d=e.serverTelemetryManager,p=e.persistencePlugin,h=e.serializableCache,f=Ste(Ste({},Eae),o);return{authOptions:(t=n,Ste({clientCapabilities:[],azureCloudOptions:Sae,skipAuthorityMetadataCache:!1},t)),systemOptions:Ste(Ste({},Cae),r),loggerOptions:f,storageInterface:i||new aae(n.clientId,kie,new Cie(f)),networkInterface:a||wae,cryptoInterface:s||kie,clientCredentials:c||kae,libraryInfo:Ste(Ste({},xae),l),telemetry:Ste(Ste({},Tae),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:h||null}}(e),this.logger=new Cie(this.config.loggerOptions,rae,oae),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new zae(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[Pte.CONTENT_TYPE]=Lte.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case eae.HOME_ACCOUNT_ID:try{var n=$ie(e.credential);t[Pte.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(bke){this.logger.verbose("Could not parse home account ID for CCS Header: "+bke)}break;case eae.UPN:t[Pte.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return Tte(this,void 0,void 0,(function(){var o;return Ite(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 ioe.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new Uae;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),jae=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"}(Fae||(Fae={}));var qae=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return Tte(this,void 0,void 0,(function(){var r,o,i;return Ite(this,(function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Hne.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 Tte(this,void 0,void 0,(function(){return Ite(this,(function(n){switch(n.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:Fae.SW}]}}))}))},e.prototype.signPopToken=function(e,t,n){return Tte(this,void 0,void 0,(function(){return Ite(this,(function(r){return[2,this.signPayload(e,t,n)]}))}))},e.prototype.signPayload=function(e,t,n,r){return Tte(this,void 0,void 0,(function(){var o,i,a,s,c,l;return Ite(this,(function(u){switch(u.label){case 0:return o=n.resourceRequestMethod,i=n.resourceRequestUri,a=n.shrClaims,s=n.shrNonce,c=i?new yae(i):void 0,l=null===c||void 0===c?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ste({at:e,ts:sae.nowSeconds(),m:null===o||void 0===o?void 0:o.toUpperCase(),u:null===l||void 0===l?void 0:l.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null===l||void 0===l?void 0:l.AbsolutePath,q:(null===l||void 0===l?void 0:l.QueryString)?[[],l.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,u.sent()]}}))}))},e}(),Gae=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}(),Kae=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?ioe.createStateNotFoundError("Cached State"):ioe.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw ioe.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(rre.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new rre(e.error||Lte.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||Lte.EMPTY_STRING,e.trace_id||Lte.EMPTY_STRING,e.correlation_id||Lte.EMPTY_STRING,e.claims||Lte.EMPTY_STRING);throw new Jne(e.error||Lte.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&Jie(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(rre.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new rre(e.error,e.error_description,e.suberror,e.timestamp||Lte.EMPTY_STRING,e.trace_id||Lte.EMPTY_STRING,e.correlation_id||Lte.EMPTY_STRING,e.claims||Lte.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Jne(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,i,a,s,c,l){var u;return Tte(this,void 0,void 0,(function(){var d,p,h,f,m,g;return Ite(this,(function(v){switch(v.label){case 0:if(null===(u=this.performanceClient)||void 0===u||u.addQueueMeasurement(Hne.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new nae(t.id_token||Lte.EMPTY_STRING,this.cryptoObj),i&&!aoe.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw ioe.createNonceMismatchError();if(o.maxAge||0===o.maxAge){if(!(p=d.claims.auth_time))throw ioe.createAuthTimeNotFoundError();nae.checkMaxAge(p,o.maxAge)}}this.homeAccountIdentifier=tae.generateHomeAccountId(t.client_info||Lte.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(h=fae.parseRequestState(this.cryptoObj,i.state)),t.key_id=t.key_id||o.sshKid||void 0,f=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"),m=new Gae(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:v.sent(),v.label=3;case 3:return!s||c||!f.account||(g=f.account.generateAccountKey(),this.cacheStorage.getAccount(g))?[4,this.cacheStorage.saveCacheRecord(f)]:(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,f,!1,o,d,h,void 0,l)]);case 4:return v.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:v.sent(),v.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,f,!1,o,d,h,t,l)]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,o,i,a){var s,c,l=t.getPreferredCache();if(aoe.isEmpty(l))throw ioe.createInvalidCacheEnvironmentError();!aoe.isEmpty(e.id_token)&&o&&(s=Tie.createIdTokenEntity(this.homeAccountIdentifier,l,e.id_token||Lte.EMPTY_STRING,this.clientId,o.claims.tid||Lte.EMPTY_STRING),c=this.generateAccountEntity(e,o,t,a));var u=null;if(!aoe.isEmpty(e.access_token)){var d=e.scope?Zie.fromString(e.scope):new Zie(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,f=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,m=n+p,g=m+h,v=f&&f>0?n+f:void 0;u=cae.createAccessTokenEntity(this.homeAccountIdentifier,l,e.access_token||Lte.EMPTY_STRING,this.clientId,o?o.claims.tid||Lte.EMPTY_STRING:t.tenant,d.printScopes(),m,g,this.cryptoObj,v,e.token_type,i,e.key_id,r.claims,r.requestedClaimsHash)}var y=null;aoe.isEmpty(e.refresh_token)||(y=lae.createRefreshTokenEntity(this.homeAccountIdentifier,l,e.refresh_token||Lte.EMPTY_STRING,this.clientId,e.foci,i));var b=null;return aoe.isEmpty(e.foci)||(b=uae.createAppMetadataEntity(this.clientId,l,e.foci)),new jae(c,s,u,y,b)},e.prototype.generateAccountEntity=function(e,t,n,r){var o=n.authorityType,i=r?r.cloud_graph_host_name:Lte.EMPTY_STRING,a=r?r.msgraph_host:Lte.EMPTY_STRING;if(o===_ie.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tae.createGenericAccount(this.homeAccountIdentifier,t,n,i,a);if(aoe.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw ioe.createClientInfoEmptyError();return e.client_info?tae.createAccount(e.client_info,this.homeAccountIdentifier,t,n,i,a):tae.createGenericAccount(this.homeAccountIdentifier,t,n,i,a)},e.generateAuthenticationResult=function(e,t,n,r,o,i,a,s,c){var l,u,d;return Tte(this,void 0,void 0,(function(){var p,h,f,m,g,v,y,b,_,C,E;return Ite(this,(function(w){switch(w.label){case 0:if(p=Lte.EMPTY_STRING,h=[],f=null,g=Lte.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Jte.POP)return[3,2];if(v=new qae(e),y=n.accessToken,b=y.secret,!(_=y.keyId))throw ioe.createKeyIdMissingError();return[4,v.signPopToken(b,_,o)];case 1:return p=w.sent(),[3,3];case 2:p=n.accessToken.secret,w.label=3;case 3:h=Zie.fromString(n.accessToken.target).asArray(),f=new Date(1e3*Number(n.accessToken.expiresOn)),m=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),w.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Qte?Qte:Lte.EMPTY_STRING),C=(null===i||void 0===i?void 0:i.claims.oid)||(null===i||void 0===i?void 0:i.claims.sub)||Lte.EMPTY_STRING,E=(null===i||void 0===i?void 0:i.claims.tid)||Lte.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:C,tenantId:E,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:i?i.rawToken:Lte.EMPTY_STRING,idTokenClaims:i?i.claims:{},accessToken:p,fromCache:r,expiresOn:f,correlationId:o.correlationId,requestId:c||Lte.EMPTY_STRING,extExpiresOn:m,familyId:g,tokenType:(null===(l=n.accessToken)||void 0===l?void 0:l.tokenType)||Lte.EMPTY_STRING,state:a?a.userRequestState:Lte.EMPTY_STRING,cloudGraphHostName:(null===(u=n.account)||void 0===u?void 0:u.cloudGraphHostName)||Lte.EMPTY_STRING,msGraphHost:(null===(d=n.account)||void 0===d?void 0:d.msGraphHost)||Lte.EMPTY_STRING,code:null===s||void 0===s?void 0:s.spa_code,fromNativeBroker:!1}]}}))}))},e}(),Yae=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return kte(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return Tte(this,void 0,void 0,(function(){var r;return Ite(this,(function(o){switch(o.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Hne.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=o.sent(),[2,yae.appendQueryString(this.authority.authorizationEndpoint,r)]}}))}))},t.prototype.acquireToken=function(e,t){var n,r,o,i,a,s;return Tte(this,void 0,void 0,(function(){var c,l,u,d,p,h,f=this;return Ite(this,(function(m){switch(m.label){case 0:if(!e||!e.code)throw ioe.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.AuthClientAcquireToken,e.correlationId),c=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),l=sae.nowSeconds(),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return u=m.sent(),d=null===(i=u.headers)||void 0===i?void 0:i[Pte.X_MS_REQUEST_ID],(p=null===(a=u.headers)||void 0===a?void 0:a[Pte.X_MS_HTTP_VERSION])&&(null===c||void 0===c||c.addStaticFields({httpVerAuthority:p})),(h=new Kae(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(Hne.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(u.body,this.authority,l,e,t,void 0,void 0,void 0,d).then((function(e){return null===c||void 0===c||c.endMeasurement({success:!0}),e})).catch((function(t){throw f.logger.verbose("Error in fetching token in ACC",e.correlationId),null===c||void 0===c||c.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.handleFragmentResponse=function(e,t){var n=new Kae(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new yae(e),o=yae.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw ioe.createNoAuthCodeInServerResponseError();return Ste(Ste({},o),{code:o.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Xie.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return yae.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return Tte(this,void 0,void 0,(function(){var o,i,a,s,c,l,u;return Ite(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Hne.AuthClientCreateTokenRequestBody,t.correlationId),o=this.createTokenQueryParameters(t),i=yae.appendQueryString(e.tokenEndpoint,o),[4,this.createTokenRequestBody(t)];case 1:if(a=d.sent(),s=void 0,t.clientInfo)try{c=Jie(t.clientInfo,this.cryptoUtils),s={credential:""+c.uid+Wte.CLIENT_INFO_SEPARATOR+c.utid,type:eae.HOME_ACCOUNT_ID}}catch(bke){this.logger.verbose("Could not parse client info for CCS Header: "+bke)}return l=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,l,u)]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n;return Tte(this,void 0,void 0,(function(){var r,o,i,a,s,c,l,u;return Ite(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.AuthClientCreateTokenRequestBody,e.correlationId),(r=new Uae).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):Vae.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(Vte.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==Jte.POP?[3,2]:(i=new qae(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Hne.PopTokenGenerateCnf,e.correlationId),[4,i.generateCnf(e)]);case 1:return a=d.sent(),r.addPopToken(a.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Jte.SSH){if(!e.sshJwk)throw Xie.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}d.label=3;case 3:if(s=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(s),(!aoe.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),c=void 0,e.clientInfo)try{l=Jie(e.clientInfo,this.cryptoUtils),c={credential:""+l.uid+Wte.CLIENT_INFO_SEPARATOR+l.utid,type:eae.HOME_ACCOUNT_ID}}catch(bke){this.logger.verbose("Could not parse client info for CCS Header: "+bke)}else c=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case eae.HOME_ACCOUNT_ID:try{l=$ie(c.credential),r.addCcsOid(l)}catch(bke){this.logger.verbose("Could not parse home account ID for CCS Header: "+bke)}break;case eae.UPN:r.addCcsUpn(c.credential)}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[Mte.RETURN_SPA_CODE]||r.addExtraQueryParameters(((u={})[Mte.RETURN_SPA_CODE]="1",u)),[2,r.createQueryString()]}}))}))},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return Tte(this,void 0,void 0,(function(){var n,r,o,i,a,s,c;return Ite(this,(function(l){switch(l.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.AuthClientCreateQueryString,e.correlationId),(n=new Uae).addClientId(this.config.authOptions.clientId),r=Ate(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!==Hte.SELECT_ACCOUNT)if(e.sid&&e.prompt===Hte.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=$ie(e.account.homeAccountId),n.addCcsOid(s)}catch(bke){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===Hte.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(i);try{s=$ie(e.account.homeAccountId),n.addCcsOid(s)}catch(bke){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=$ie(e.account.homeAccountId),n.addCcsOid(s)}catch(bke){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),(!aoe.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!==Jte.POP?[3,2]:[4,new qae(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:c=l.sent(),n.addPopToken(c.reqCnfHash),l.label=2;case 2:return[2,n.createQueryString()]}}))}))},t.prototype.createLogoutUrlQueryString=function(e){var t=new Uae;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}(Wae);function Qae(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}var Xae={"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"}},Zae={"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 Jae,$ae=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 Tte(this,void 0,void 0,(function(){var s,c,l,u,d;return Ite(this,(function(p){switch(p.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(Hne.RegionDiscoveryDetectRegion,this.correlationId),s=t)return[3,8];c=e.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(Lte.IMDS_VERSION,c)];case 2:return(l=p.sent()).status===tne.httpSuccess&&(s=l.body,n.region_source=nne.IMDS),l.status!==tne.httpBadRequest?[3,5]:(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(Hne.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)]);case 3:return(u=p.sent())?(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(Hne.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,c)]):(n.region_source=nne.FAILED_AUTO_DETECTION,[2,null]);case 4:(d=p.sent()).status===tne.httpSuccess&&(s=d.body,n.region_source=nne.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),n.region_source=nne.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=nne.ENVIRONMENT_VARIABLE,p.label=9;case 9:return s||(n.region_source=nne.FAILED_AUTO_DETECTION),[2,s||null]}}))}))},e.prototype.getRegionFromIMDS=function(e,t){var n;return Tte(this,void 0,void 0,(function(){return Ite(this,(function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(Lte.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,Lte.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(e){var t;return Tte(this,void 0,void 0,(function(){var n;return Ite(this,(function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(Lte.IMDS_ENDPOINT+"?format=json",e)];case 2:return(n=r.sent()).status===tne.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}(),ese=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 $ae(t,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(Lte.CIAM_AUTH_URL))return _ie.Ciam;var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case Lte.ADFS:return _ie.Adfs;case Lte.DSTS:return _ie.Dsts}return _ie.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 yae(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 ioe.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 ioe.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 ioe.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw ioe.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw ioe.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 ioe.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 ioe.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 yae(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===_ie.Adfs||this.authorityType===_ie.Dsts||this.protocolMode===mae.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 Tte(this,void 0,void 0,(function(){var r,o,i,a;return Ite(this,(function(s){switch(s.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(Hne.AuthorityResolveEndpointsAsync,this.correlationId),(r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(r=new pae).updateCanonicalAuthority(this.canonicalAuthority),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(Hne.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(Hne.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return i=s.sent(),o!==Kte.CACHE&&i!==Kte.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 Tte(this,void 0,void 0,(function(){var s,c;return Ite(this,(function(l){switch(l.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.AuthorityUpdateEndpointMetadata,this.correlationId),(s=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(s,!1),[2,Kte.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Kte.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Hne.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(s=l.sent())?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(s)]):[3,3]:[3,4];case 2:s=l.sent(),l.label=3;case 3:return e.updateEndpointMetadata(s,!0),[2,Kte.NETWORK];case 4:return!(c=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(Hne.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,6];case 5:c=l.sent(),l.label=6;case 6:return e.updateEndpointMetadata(c,!1),[2,Kte.HARDCODED_VALUES];case 7:throw ioe.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},e.prototype.isAuthoritySameType=function(e){return new yae(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(bke){throw Xie.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return Tte(this,void 0,void 0,(function(){var t,n;return Ite(this,(function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(Hne.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,Qae((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 Xae?Xae[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,o,i,a,s,c;return Tte(this,void 0,void 0,(function(){var l,u;return Ite(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Hne.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:return l=d.sent(),u=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===Lte.AZURE_REGION_AUTO_DISCOVER_FLAG?l:null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion,(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===Lte.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=l?rne.AUTO_DETECTION_REQUESTED_SUCCESSFUL:rne.AUTO_DETECTION_REQUESTED_FAILED:this.regionDiscoveryMetadata.region_outcome=l?(null===(c=this.authorityOptions.azureRegionConfiguration)||void 0===c?void 0:c.azureRegion)===l?rne.CONFIGURED_MATCHES_DETECTED:rne.CONFIGURED_NOT_DETECTED:rne.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 Tte(this,void 0,void 0,(function(){var r,o,i;return Ite(this,(function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||Lte.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||Lte.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||Lte.NOT_APPLICABLE)),(r=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,Kte.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,Kte.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(Hne.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,Kte.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,Kte.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."),Xie.createUntrustedAuthorityError()}}))}))},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===_ie.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(bke){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Xie.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 Tte(this,void 0,void 0,(function(){var n,r,o,i,a,s,c,l;return Ite(this,(function(u){switch(u.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+Lte.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===Lte.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(c=u.sent())instanceof Zne?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+c.errorCode+"\nError Description: "+c.errorMessage):(l=c,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+l.name+"\nError Description: "+l.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 Zae?Zae[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter((function(t){return yae.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort})).length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==gae.None){var r=t.tenant?t.tenant:Lte.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 ioe.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return Lte.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new yae(e);r.validateAsUri();var o=r.getUrlComponents(),i=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=t+"."+Lte.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=yae.constructAuthorityUriFromObject(Ste(Ste({},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,Lte.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(Lte.FORWARD_SLASH)?e:""+e+Lte.FORWARD_SLASH,n=new yae(e).getUrlComponents();0===n.PathSegments.length&&n.HostNameAndPort.endsWith(Lte.CIAM_AUTH_URL)&&(t=""+t+n.HostNameAndPort.split(".")[0]+Lte.AAD_TENANT_DOMAIN_SUFFIX);return t},e}(),tse=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,o,i,a,s){return Tte(this,void 0,void 0,(function(){var c,l,u;return Ite(this,(function(d){switch(d.label){case 0:null===a||void 0===a||a.addQueueMeasurement(Hne.AuthorityFactoryCreateDiscoveredInstance,s),c=ese.transformCIAMAuthority(t),l=e.createInstance(c,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(Hne.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw u=d.sent(),ioe.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}}))}))},e.createInstance=function(e,t,n,r,o,i,a){if(aoe.isEmpty(e))throw Xie.createUrlEmptyError();return new ese(e,t,n,r,o,i,a)},e}(),nse=function(){function e(e,t){this.cacheOutcome=one.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||Lte.EMPTY_STRING,this.wrapperVer=e.wrapperVer||Lte.EMPTY_STRING,this.telemetryCacheKey=$te.CACHE_KEY+Wte.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+$te.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join($te.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join($te.VALUE_SEPARATOR);return[$te.SCHEMA_VERSION,n,t].join($te.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join($te.VALUE_SEPARATOR),o=t.errors.slice(0,n).join($te.VALUE_SEPARATOR),i=t.errors.length,a=[i,n<i?$te.OVERFLOW_TRUE:$te.OVERFLOW_FALSE].join($te.VALUE_SEPARATOR);return[$te.SCHEMA_VERSION,t.cacheHits,r,o,a].join($te.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=$te.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),aoe.isEmpty(e.subError)?aoe.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push($te.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 dae;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 dae;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]||Lte.EMPTY_STRING,a=e.failedRequests[2*t+1]||Lte.EMPTY_STRING,s=e.errors[t]||Lte.EMPTY_STRING;if(!((r+=i.toString().length+a.toString().length+s.length+3)<$te.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||Lte.EMPTY_STRING),e.push(this.regionSource||Lte.EMPTY_STRING),e.push(this.regionOutcome||Lte.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}(),rse=function(){function e(e,t,n,r,o,i,a,s,c){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=c||this.browserCrypto.createNewGuid(),this.logger=r.clone(Sne,Oae,this.correlationId),this.performanceClient=a}return e.prototype.clearCacheOnLogout=function(e){return Wne(this,void 0,void 0,(function(){return jne(this,(function(t){switch(t.label){case 0:if(!e)return[3,5];tae.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(tae.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 Wne(this,void 0,void 0,(function(){var t,n,r,o;return jne(this,(function(i){switch(i.label){case 0:if(this.performanceClient.addQueueMeasurement(Hne.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,n=Gne(e&&e.scopes||[]),(r=Vne(Vne({},e),{correlationId:this.correlationId,authority:t,scopes:n})).authenticationScheme){if(r.authenticationScheme===Jte.SSH){if(!e.sshJwk)throw Xie.createMissingSshJwkError();if(!e.sshKid)throw Xie.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+r.authenticationScheme+'" as configured in Auth request')}else r.authenticationScheme=Jte.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return!e.claims||aoe.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||Dae.getCurrentUri();return yae.getAbsoluteUrl(t,Dae.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 nse(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return Wne(this,void 0,void 0,(function(){var t;return jne(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,tse.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,tse.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)]}}))}))},e}(),ose=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bne(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return Wne(this,void 0,void 0,(function(){var t,n;return jne(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=Vne(Vne({},e),{redirectUri:e.redirectUri,code:Lte.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=Lte.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=Vne({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=yae.getAbsoluteUrl(e.postLogoutRedirectUri,Dae.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=yae.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Dae.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=yae.getAbsoluteUrl(Dae.getCurrentUri(),Dae.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 Wne(this,void 0,void 0,(function(){var r;return jne(this,(function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Yae(r,this.performanceClient)]}}))}))},t.prototype.getClientConfiguration=function(e,t,n){return Wne(this,void 0,void 0,(function(){var r,o;return jne(this,(function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Hne.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:Sne,version:Oae,cpu:Lte.EMPTY_STRING,os:Lte.EMPTY_STRING},telemetry:this.config.telemetry}]}}))}))},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw Joe.createHashDoesNotContainStateError();var r=bae.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw Joe.createUnableToParseStateError();if(r.interactionType!==t)throw Joe.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return Wne(this,void 0,void 0,(function(){var r,o,i,a;return jne(this,(function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Hne.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=ese.generateAuthority(i,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Hne.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,tse.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 Wne(this,void 0,void 0,(function(){var n,r,o,i,a,s,c;return jne(this,(function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r={interactionType:t},o=fae.setRequestState(this.browserCrypto,e&&e.state||Lte.EMPTY_STRING,r),this.performanceClient.setPreQueueTime(Hne.InitializeBaseRequest,this.correlationId),a=[{}],[4,this.initializeBaseRequest(e)];case 1:return i=Vne.apply(void 0,[Vne.apply(void 0,a.concat([l.sent()])),{redirectUri:n,state:o,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:zte.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),aoe.isEmpty(i.loginHint)&&!s&&(c=this.browserStorage.getLegacyLoginHint())&&(i.loginHint=c),[2,i]}}))}))},t}(rse);!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"}(Jae||(Jae={}));var ise={code:"ContentError"},ase={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."},sse={code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"},cse=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 Bne(t,e),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Jae.PERSISTENT_ERROR&&this.ext.status!==Jae.DISABLED)||this.errorCode===ise.code},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case Jae.ACCOUNT_UNAVAILABLE:return rre.createNativeAccountUnavailableError();case Jae.USER_INTERACTION_REQUIRED:return new rre(e,n);case Jae.USER_CANCEL:return Joe.createUserCancelledError();case Jae.NO_NETWORK:return Joe.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t(ase.code,ase.desc)},t.createTokensNotFoundInCacheError=function(){return new t(sse.code,sse.desc)},t}(Zne),lse=function(e){function t(t,n){return e.call(this,t,n)||this}return kte(t,e),t.prototype.acquireToken=function(e){var t,n,r,o,i,a,s;return Tte(this,void 0,void 0,(function(){var c,l,u,d,p,h,f=this;return Ite(this,(function(m){switch(m.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.RefreshTokenClientAcquireToken,e.correlationId),c=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Hne.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),l=sae.nowSeconds(),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Hne.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return u=m.sent(),d=null===(o=u.headers)||void 0===o?void 0:o[Pte.X_MS_HTTP_VERSION],null===c||void 0===c||c.addStaticFields({refreshTokenSize:(null===(i=u.body.refresh_token)||void 0===i?void 0:i.length)||0}),d&&(null===c||void 0===c||c.addStaticFields({httpVerToken:d})),p=null===(a=u.headers)||void 0===a?void 0:a[Pte.X_MS_REQUEST_ID],(h=new Kae(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(Hne.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(u.body,this.authority,l,e,void 0,void 0,!0,e.forceCache,p).then((function(e){return null===c||void 0===c||c.endMeasurement({success:!0}),e})).catch((function(t){throw f.logger.verbose("Error in fetching refresh token",e.correlationId),null===c||void 0===c||c.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,o;return Tte(this,void 0,void 0,(function(){var i,a;return Ite(this,(function(s){if(!e)throw Xie.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw ioe.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(Hne.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(bke){if(i=bke instanceof rre&&bke.errorCode===tre.code,a=bke instanceof Jne&&bke.errorCode===une&&bke.subError===dne,i||a)return null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Hne.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw bke}return null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]}))}))},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,o;return Tte(this,void 0,void 0,(function(){var i,a,s;return Ite(this,(function(c){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Hne.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(),rre.createNoTokensFoundError();return null===i||void 0===i||i.endMeasurement({success:!0}),s=Ste(Ste({},e),{refreshToken:a.secret,authenticationScheme:e.authenticationScheme||Jte.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:eae.HOME_ACCOUNT_ID}}),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(s)]}))}))},t.prototype.executeTokenRequest=function(e,t){var n,r,o;return Tte(this,void 0,void 0,(function(){var i,a,s,c,l,u;return Ite(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(Hne.RefreshTokenClientExecuteTokenRequest,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(Hne.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(Hne.RefreshTokenClientCreateTokenRequestBody,e.correlationId),a=this.createTokenQueryParameters(e),s=yae.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(e)];case 1:return c=d.sent(),l=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,c,l,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 Tte(this,void 0,void 0,(function(){var o,i,a,s,c,l,u;return Ite(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(Hne.RefreshTokenClientCreateTokenRequestBody,e.correlationId),o=e.correlationId,i=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(Hne.BaseClientCreateTokenRequestHeaders,o),(a=new Uae).addClientId(this.config.authOptions.clientId),a.addScopes(e.scopes),a.addGrantType(Vte.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!==Jte.POP?[3,2]:(c=new qae(this.cryptoUtils,this.performanceClient),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(Hne.PopTokenGenerateCnf,e.correlationId),[4,c.generateCnf(e)]);case 1:return l=d.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Jte.SSH){if(!e.sshJwk)throw null===i||void 0===i||i.endMeasurement({success:!1}),Xie.createMissingSshJwkError();a.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!aoe.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 eae.HOME_ACCOUNT_ID:try{u=$ie(e.ccsCredential.credential),a.addCcsOid(u)}catch(bke){this.logger.verbose("Could not parse home account ID for CCS Header: "+bke)}break;case eae.UPN:a.addCcsUpn(e.ccsCredential.credential)}return null===i||void 0===i||i.endMeasurement({success:!0}),[2,a.createQueryString()]}}))}))},t}(Wae),use=function(e){function t(t,n){return e.call(this,t,n)||this}return kte(t,e),t.prototype.acquireToken=function(e){return Tte(this,void 0,void 0,(function(){var t;return Ite(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 ioe&&t.errorCode===Xre.code)return[2,new lse(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},t.prototype.acquireCachedToken=function(e){var t,n,r,o;return Tte(this,void 0,void 0,(function(){var i,a;return Ite(this,(function(s){switch(s.label){case 0:if(!e)throw Xie.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(one.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),ioe.createRefreshRequiredError();if(!e.account)throw ioe.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(one.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),ioe.createRefreshRequiredError();if(sae.wasClockTurnedBack(a.accessToken.cachedAt)||sae.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(one.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),ioe.createRefreshRequiredError();if(a.accessToken.refreshOn&&sae.isTokenExpired(a.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(one.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),ioe.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 Tte(this,void 0,void 0,(function(){var n,r;return Ite(this,(function(o){switch(o.label){case 0:if(e.idToken&&(n=new nae(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 ioe.createAuthTimeNotFoundError();nae.checkMaxAge(r,t.maxAge)}return[4,Kae.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,o.sent()]}}))}))},t}(Wae),dse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i;return jne(this,(function(a){switch(a.label){case 0:return t=this.performanceClient.startMeasurement(Hne.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(yne.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 Joe&&i.errorCode===Voe.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 Zne&&i.errorCode||void 0,subErrorCode:i instanceof Zne&&i.subError||void 0,success:!1}),i;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Joe.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return Wne(this,void 0,void 0,(function(){var r;return jne(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new use(r,this.performanceClient)]}}))}))},t.prototype.initializeSilentRequest=function(e,t){return Wne(this,void 0,void 0,(function(){var n;return jne(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Hne.InitializeBaseRequest,this.correlationId),n=[Vne({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,Vne.apply(void 0,[Vne.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}}))}))},t}(ose),pse=function(e){function t(t,n,r,o,i,a,s,c,l,u,d,p){var h=e.call(this,t,n,r,o,i,a,c,l,p)||this;return h.apiId=s,h.accountId=u,h.nativeMessageHandler=l,h.nativeStorageManager=d,h.silentCacheClient=new dse(t,h.nativeStorageManager,r,o,i,a,c,l,p),h}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return jne(this,(function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(Hne.NativeInteractionClientAcquireToken,e.correlationId),n=sae.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=c.sent(),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return o=c.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return c.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return i={method:pne.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(i)];case 6:return a=c.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:Zie.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return Wne(this,void 0,void 0,(function(){var n,r;return jne(this,(function(o){switch(o.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),ioe.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw ioe.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 Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a;return jne(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:pne.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 cse&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(mne.NATIVE_REQUEST,JSON.stringify(t),!0),i={apiId:yne.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 Wne(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,s;return jne(this,(function(c){switch(c.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=Une(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(mne.NATIVE_REQUEST)),r={method:pne.GetToken,request:n},o=sae.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return i=c.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,n,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=c.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 Wne(this,void 0,void 0,(function(){var r,o,i,a,s,c;return jne(this,(function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw cse.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=l.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 c=l.sent(),this.cacheAccount(s),this.cacheNativeTokens(e,t,a,i,c.accessToken,c.tenantId,n),[2,c]}}))}))},t.prototype.createIdTokenObj=function(e){return new nae(e.id_token||Lte.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return tae.generateHomeAccountId(e.client_info||Lte.EMPTY_STRING,_ie.Default,this.logger,this.browserCrypto,t)},t.prototype.createAccountEntity=function(e,t,n,r){return tae.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?Zie.fromString(e.scope):Zie.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return Wne(this,void 0,void 0,(function(){var n,r;return jne(this,(function(o){switch(o.label){case 0:if(t.tokenType!==Jte.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new qae(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw ioe.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 Wne(this,void 0,void 0,(function(){var a,s,c,l,u,d,p;return jne(this,(function(h){switch(h.label){case 0:return a=this.addTelemetryFromNativeResponse(e),s=e.scope?Zie.fromString(e.scope):Zie.fromString(t.scope),c=e.account.properties||{},l=c.UID||n.claims.oid||n.claims.sub||Lte.EMPTY_STRING,u=c.TenantId||n.claims.tid||Lte.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return d=h.sent(),p=t.tokenType===Jte.POP?Jte.POP:Jte.BEARER,[2,{authority:o,uniqueId:l,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=Tie.createIdTokenEntity(n,t.authority,e.id_token||Lte.EMPTY_STRING,t.clientId,r.claims.tid||Lte.EMPTY_STRING);this.nativeStorageManager.setIdTokenCredential(s);var c=a+(t.tokenType===Jte.POP?Lte.SHR_NONCE_VALIDITY:("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),l=this.generateScopes(e,t),u=cae.createAccessTokenEntity(n,t.authority,o,t.clientId,i,l.printScopes(),c,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 cse.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(bke){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 Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u=this;return jne(this,(function(d){switch(d.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,(n=new yae(t)).validateAsUri(),r=e.scopes,o=Une(e,["scopes"]),(i=new Zie(r||[])).appendScopes(Ote),a=function(){switch(u.apiId){case yne.ssoSilent:case yne.acquireTokenSilent_silentFlow:return u.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Hte.NONE}if(e.prompt)switch(e.prompt){case Hte.NONE:case Hte.CONSENT:case Hte.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"),Joe.createNativePromptParameterNotSupportedError()}else u.logger.trace("initializeNativeRequest: prompt was not provided")},s=Vne(Vne({},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:Vne(Vne(Vne({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:Ane}),extendedExpiryToken:!1}),e.authenticationScheme!==Jte.POP?[3,2]:(c={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new qae(this.browserCrypto).generateCnf(c)]);case 1:l=d.sent(),s.reqCnf=l.reqCnfHash,s.keyId=l.kid,d.label=2;case 2:return[2,s]}}))}))},t}(rse),hse=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(Hne.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return Wne(this,void 0,void 0,(function(){var t,n=this;return jne(this,(function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Tne,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 Wne(this,void 0,void 0,(function(){var o,i;return jne(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,Ine)).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 Wne(this,void 0,void 0,(function(){var e,t=this;return jne(this,(function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Tne,extensionId:this.extensionId,responseId:this.responseId++,body:{method:pne.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(Joe.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===Tne&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===pne.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(Joe.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===pne.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(cse.createError(i.code,i.description,i.ext));else{if(!i.result)throw Zne.createUnexpectedError("Event does not contain result.");i.result.code&&i.result.description?n.reject(cse.createError(i.result.code,i.result.description,i.result.ext)):n.resolve(i.result)}this.resolvers.delete(t.responseId)}else if(o===pne.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 Jte.BEARER:case Jte.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}(),fse=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 Wne(this,void 0,void 0,(function(){var o,i,a;return jne(this,(function(s){if(this.performanceClient.addQueueMeasurement(Hne.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),aoe.isEmpty(e))throw Joe.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw ioe.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(bke){throw bke instanceof Jne&&bke.subError===boe.code?Joe.createUserCancelledError():bke}return this.performanceClient.setPreQueueTime(Hne.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),Wne(this,void 0,void 0,(function(){var i,a,s,c,l,u;return jne(this,(function(d){switch(d.label){case 0:if(this.performanceClient.addQueueMeasurement(Hne.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),i=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(i)))throw ioe.createStateNotFoundError("Cached State");return s=this.browserStorage.generateNonceKey(a),c=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Hne.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=c||void 0),e.state=a,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(l=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=l),this.performanceClient.setPreQueueTime(Hne.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 Wne(this,void 0,void 0,(function(){var r,o;return jne(this,(function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,tse.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(mne.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(bke){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),mse=function(e){function t(t,n,r,o,i,a,s,c,l,u){var d=e.call(this,t,n,r,o,i,a,s,l,u)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=c,d}return Bne(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||Ote,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(bke){return Promise.reject(bke)}},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(bke){return Promise.reject(bke)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return Wne(this,void 0,void 0,(function(){var o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_=this;return jne(this,(function(C){switch(C.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(yne.acquireTokenPopup),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,bne.Popup)];case 1:i=C.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||Lte.EMPTY_STRING,i.account||null),C.label=2;case 2:return C.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return a=C.sent(),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 4:return s=C.sent(),this.logger.verbose("Auth code client created"),c=hse.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),l=void 0,c&&(l=this.performanceClient.startMeasurement(Hne.FetchAccountIdWithNativeBroker,e.correlationId)),[4,s.getAuthCodeUrl(Vne(Vne({},i),{nativeBroker:c}))];case 5:return u=C.sent(),d=new fse(s,this.browserStorage,a,this.logger,this.performanceClient),p={popup:r,popupName:t,popupWindowAttributes:n},h=this.initiateAuthRequest(u,p),this.eventHandler.emitEvent(Nae.POPUP_OPENED,bne.Popup,{popupWindow:h},null),[4,this.monitorPopupForHash(h)];case 6:if(f=C.sent(),m=yae.getDeserializedHash(f),g=this.validateAndExtractStateFromHash(m,bne.Popup,i.correlationId),Hae.removeThrottle(this.browserStorage,this.config.auth.clientId,a),m.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),l&&l.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Joe.createNativeConnectionNotEstablishedError();return v=new pse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,m.accountId,this.nativeStorage,i.correlationId),y=fae.parseRequestState(this.browserCrypto,g).userRequestState,[2,v.acquireToken(Vne(Vne({},i),{state:y,prompt:void 0})).finally((function(){_.browserStorage.cleanRequestByState(g)}))]}return[4,d.handleCodeResponseFromHash(f,g,s.authority,this.networkClient)];case 7:return[2,C.sent()];case 8:throw b=C.sent(),r&&r.close(),b instanceof Zne&&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 Wne(this,void 0,void 0,(function(){var a,s,c,l,u,d,p;return jne(this,(function(h){switch(h.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Nae.LOGOUT_START,bne.Popup,e),a=this.initializeServerTelemetryManager(yne.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(Hne.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(a,r)];case 3:return s=h.sent(),this.logger.verbose("Auth code client created"),c=s.getLogoutUri(e),this.eventHandler.emitEvent(Nae.LOGOUT_SUCCESS,bne.Popup,e),l=this.openPopup(c,{popupName:t,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(Nae.POPUP_OPENED,bne.Popup,{popupWindow:l},null),[4,this.waitForLogoutPopup(l)];case 4:return h.sent(),i?(u={apiId:yne.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=yae.getAbsoluteUrl(i,Dae.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 Zne&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Nae.LOGOUT_FAILURE,bne.Popup,null,p),this.eventHandler.emitEvent(Nae.LOGOUT_END,bne.Popup),a.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(Nae.LOGOUT_END,bne.Popup),[2]}}))}))},t.prototype.initiateAuthRequest=function(e,t){if(aoe.isEmpty(e))throw this.logger.error("Navigate url is empty"),Joe.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(Joe.createUserCancelledError());var s=Lte.EMPTY_STRING,c=Lte.EMPTY_STRING;try{s=e.location.href,c=e.location.hash}catch(bke){}aoe.isEmpty(s)||"about:blank"===s||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),i++,c?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(a),t.cleanPopup(e),yae.hashContainsKnownProperties(c)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(c)):(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: "+c),r(Joe.createHashDoesNotContainKnownPropertiesError()))):i>o&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(Joe.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=Lte.EMPTY_STRING;try{o=e.location.href}catch(bke){}aoe.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 Joe.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(bke){throw this.logger.error("error opening popup "+bke.message),this.browserStorage.setInteractionInProgress(!1),Joe.createPopupWindowError(bke.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,o,i,a,s=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,l=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,f=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!d||d<0||d>l)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),d=Ene),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=wne),(!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-wne/2+c)),(!f||f<0||f>l)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),f=Math.max(0,l/2-Ene/2+s)),window.open(e,t,"width="+d+", height="+p+", top="+h+", left="+f+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(bne.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 xne+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return xne+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(ose),gse=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 Bne(t,e),t.prototype.initiateAuthRequest=function(e,t){return Wne(this,void 0,void 0,(function(){var n;return jne(this,(function(r){switch(r.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),aoe.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(mne.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(mne.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:yne.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"),Joe.createEmptyNavigationUriError();case 8:return[2]}}))}))},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return Wne(this,void 0,void 0,(function(){var o,i,a,s,c,l,u;return jne(this,(function(d){switch(d.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),aoe.isEmpty(e))throw Joe.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw ioe.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(bke){throw bke instanceof Jne&&bke.subError===boe.code?Joe.createUserCancelledError():bke}return s=this.browserStorage.generateNonceKey(i),c=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=c||void 0,a.state=i,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(l=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=l),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return u=d.sent(),this.browserStorage.cleanRequestByState(t),[2,u]}}))}))},t}(fse),vse=function(e){function t(t,n,r,o,i,a,s,c,l,u){var d=e.call(this,t,n,r,o,i,a,s,l,u)||this;return d.nativeStorage=c,d}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u=this;return jne(this,(function(d){switch(d.label){case 0:return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,bne.Redirect)];case 1:t=d.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||Lte.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(yne.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(Hne.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return o=d.sent(),this.performanceClient.setPreQueueTime(Hne.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 gse(i,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,i.getAuthCodeUrl(Vne(Vne({},t),{nativeBroker:hse.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return s=d.sent(),c=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+c),window.addEventListener("pageshow",r),[4,a.initiateAuthRequest(s,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,d.sent()];case 7:throw(l=d.sent())instanceof Zne&&l.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(t.state),l;case 8:return[2]}}))}))},t.prototype.handleRedirectPromise=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u,d,p;return jne(this,(function(h){switch(h.label){case 0:t=this.initializeServerTelemetryManager(yne.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(bne.Redirect),[2,null];r=void 0;try{o=yae.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(o,bne.Redirect),this.logger.verbose("State extracted from hash")}catch(bke){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+bke),this.browserStorage.cleanRequestByInteractionType(bne.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(mne.ORIGIN_URI,!0)||Lte.EMPTY_STRING,a=yae.removeHashFromUrl(i),s=yae.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 c=h.sent(),i.indexOf("#")>-1&&Dae.replaceHash(i),[2,c];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 Dae.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(mne.URL_HASH,n,!0),l={apiId:yne.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},u=!0,i&&"null"!==i?[3,6]:(d=Dae.getHomepage(),this.browserStorage.setTemporaryCache(mne.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,l)]));case 5:return u=h.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,l)];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 Zne&&p.setCorrelationId(this.correlationId),t.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(bne.Redirect),p;case 11:return[2]}}))}))},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),yae.hashContainsKnownProperties(e))return Dae.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(mne.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(mne.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),t},t.prototype.handleHash=function(e,t,n){return Wne(this,void 0,void 0,(function(){var r,o,i,a,s,c,l=this;return jne(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=yae.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Joe.createNativeConnectionNotEstablishedError();return i=new pse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,r.correlationId),a=fae.parseRequestState(this.browserCrypto,t).userRequestState,[2,i.acquireToken(Vne(Vne({},r),{state:a,prompt:void 0})).finally((function(){l.browserStorage.cleanRequestByState(t)}))]}if(!(s=this.browserStorage.getCachedAuthority(t)))throw Joe.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,s)];case 1:return c=u.sent(),this.logger.verbose("Auth code client created"),Hae.removeThrottle(this.browserStorage,this.config.auth.clientId,r),[4,new gse(c,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,c.authority,this.networkClient)];case 2:return[2,u.sent()]}}))}))},t.prototype.logout=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a;return jne(this,(function(s){switch(s.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(yne.logout),s.label=1;case 1:return s.trys.push([1,10,,11]),this.eventHandler.emitEvent(Nae.LOGOUT_START,bne.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return s.sent(),r={apiId:yne.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Hne.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(Nae.LOGOUT_SUCCESS,bne.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 Zne&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.eventHandler.emitEvent(Nae.LOGOUT_FAILURE,bne.Redirect,null,a),this.eventHandler.emitEvent(Nae.LOGOUT_END,bne.Redirect),a;case 11:return this.eventHandler.emitEvent(Nae.LOGOUT_END,bne.Redirect),[2]}}))}))},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return yae.getAbsoluteUrl(t,Dae.getCurrentUri())},t}(ose),yse=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 Bne(t,e),t.prototype.initiateAuthRequest=function(e){return Wne(this,void 0,void 0,(function(){return jne(this,(function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(Hne.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),aoe.isEmpty(e))throw this.logger.info("Navigate url is empty"),Joe.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Hne.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(Hne.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise((function(r,o){t<Mae&&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(Joe.createMonitorIframeTimeoutError());var t=Lte.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:Lte.EMPTY_STRING}catch(bke){}if(!aoe.isEmpty(t)){var c=s?s.location.hash:Lte.EMPTY_STRING;return yae.hashContainsKnownProperties(c)?(n.removeHiddenIframe(e),clearInterval(a),void r(c)):void 0}}),n.pollIntervalMilliseconds)}))},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(Hne.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}(fse),bse=function(e){function t(t,n,r,o,i,a,s,c,l,u,d){var p=e.call(this,t,n,r,o,i,a,c,u,d)||this;return p.apiId=s,p.nativeStorage=l,p}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i;return jne(this,(function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(Hne.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(Hne.SilentIframeClientAcquireToken,e.correlationId),aoe.isEmpty(e.loginHint)&&aoe.isEmpty(e.sid)&&(!e.account||aoe.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!==Hte.NONE&&e.prompt!==Hte.NO_SESSION)throw t.endMeasurement({success:!1}),Joe.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(Vne(Vne({},e),{prompt:e.prompt||Hte.NONE}),bne.Silent)];case 1:n=a.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||Lte.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(Hne.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(Hne.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 Zne&&i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:i instanceof Zne&&i.errorCode||void 0,subErrorCode:i instanceof Zne&&i.subError||void 0,success:!1}),i;case 6:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Joe.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return Wne(this,void 0,void 0,(function(){var n,r,o,i,a,s,c,l,u,d=this;return jne(this,(function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=p.sent(),this.performanceClient.setPreQueueTime(Hne.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(Vne(Vne({},t),{nativeBroker:hse.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=p.sent(),o=new yse(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Hne.SilentHandlerInitiateAuthRequest,t.correlationId),[4,o.initiateAuthRequest(r)];case 3:return i=p.sent(),this.performanceClient.setPreQueueTime(Hne.SilentHandlerMonitorIframeForHash,t.correlationId),[4,o.monitorIframeForHash(i,this.config.system.iframeHashTimeout)];case 4:if(a=p.sent(),s=yae.getDeserializedHash(a),c=this.validateAndExtractStateFromHash(s,bne.Silent,n.correlationId),s.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Joe.createNativeConnectionNotEstablishedError();return l=new pse(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=fae.parseRequestState(this.browserCrypto,c).userRequestState,[2,l.acquireToken(Vne(Vne({},t),{state:u,prompt:t.prompt||Hte.NONE})).finally((function(){d.browserStorage.cleanRequestByState(c)}))]}return this.performanceClient.setPreQueueTime(Hne.HandleCodeResponseFromHash,t.correlationId),[2,o.handleCodeResponseFromHash(a,c,e.authority,this.networkClient)]}}))}))},t}(ose),_se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return jne(this,(function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(Hne.InitializeBaseRequest,e.correlationId),n=[Vne({},e)],[4,this.initializeBaseRequest(e)];case 1:return t=Vne.apply(void 0,n.concat([s.sent()])),r=this.performanceClient.startMeasurement(Hne.SilentRefreshClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(yne.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(Hne.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 Zne&&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(Joe.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return Wne(this,void 0,void 0,(function(){var r;return jne(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new lse(r,this.performanceClient)]}}))}))},t}(ose),Cse=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 Joe.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,o,i=new nae(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 jae(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 Joe.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=ese.generateAuthority(e.authority,e.azureCloudOptions),c={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 ese(s,this.config.system.networkClient,this.storage,c,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");a=this.loadAccount(i,o.hostnameAndPort,n.clientInfo,o.authorityType);r=new jae(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 Joe.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 jae(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=tae.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!i)throw Joe.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?tae.createAccount(n,i,e,void 0,void 0,void 0,t):tae.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 Joe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var o=Tie.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 Joe.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 Joe.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!i.extendedExpiresOn)throw Joe.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new Zie(e.scopes).printScopes(),s=i.expiresOn||t.expires_in+(new Date).getTime()/1e3,c=i.extendedExpiresOn,l=cae.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,o,a,s,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(l),l;throw Joe.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=lae.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 Joe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var o,i,a,s,c=Lte.EMPTY_STRING,l=[],u=null;(null===n||void 0===n?void 0:n.accessToken)&&(c=n.accessToken.secret,l=Zie.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)||Lte.EMPTY_STRING,p=(null===t||void 0===t?void 0:t.claims.tid)||Lte.EMPTY_STRING;return{authority:r?r.canonicalAuthority:Lte.EMPTY_STRING,uniqueId:d,tenantId:p,scopes:l,account:(null===n||void 0===n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:Lte.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||Lte.EMPTY_STRING,requestId:Lte.EMPTY_STRING,extExpiresOn:s,familyId:Lte.EMPTY_STRING,tokenType:(null===(o=null===n||void 0===n?void 0:n.accessToken)||void 0===o?void 0:o.tokenType)||Lte.EMPTY_STRING,state:Lte.EMPTY_STRING,cloudGraphHostName:(null===(i=null===n||void 0===n?void 0:n.account)||void 0===i?void 0:i.cloudGraphHostName)||Lte.EMPTY_STRING,msGraphHost:(null===(a=null===n||void 0===n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||Lte.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),Ese=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return Bne(t,e),t}(Yae),wse=function(e){function t(t,n,r,o,i,a,s,c,l,u){var d=e.call(this,t,n,r,o,i,a,c,l,u)||this;return d.apiId=s,d}return Bne(t,e),t.prototype.acquireToken=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a;return jne(this,(function(s){switch(s.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw Joe.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,bne.Silent)];case 1:t=s.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||Lte.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),s.label=2;case 2:return s.trys.push([2,4,,5]),r=Vne(Vne({},t),{code:e.code}),this.performanceClient.setPreQueueTime(Hne.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return o=s.sent(),i=new Ese(o),this.logger.verbose("Auth code client created"),[2,new yse(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 Zne&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(t.state),a;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Joe.createSilentLogoutUnsupportedError())},t}(ose),xse=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(bke){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(bke){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(bke){}},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(bke){}return null},e}(),kse=function(e){function t(t,n,r,o,i,a,s){var c=e.call(this,t,n,r,o,i,a)||this;return c.browserCrypto=new hie(c.logger,s),c.guidGenerator=new lre(c.browserCrypto),c}return Bne(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new xse(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(Vne({},e))})),r.length>0&&xse.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 Vne(Vne({},i),{endMeasurement:function(e){var t=i.endMeasurement(Vne({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}(Eie),Sse=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:Lte.EMPTY_STRING,authority:""+Lte.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:Lte.EMPTY_STRING,authorityMetadata:Lte.EMPTY_STRING,redirectUri:Lte.EMPTY_STRING,postLogoutRedirectUri:Lte.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:mae.AAD,azureCloudOptions:{azureCloudInstance:gae.None,tenant:Lte.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:hne.SessionStorage,temporaryCacheLocation:hne.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==hne.LocalStorage)},c={loggerCallback:function(){},logLevel:vie.Info,piiLoggingEnabled:!1},l=Vne(Vne({},Cae),{loggerOptions:c,networkClient:t?Dae.getBrowserNetworkClient():Iae,navigationClient:new Rae,loadFrameTimeout:0,windowHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||6e4,iframeHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||Mae,navigateFrameWait:t&&Dae.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===o||void 0===o?void 0:o.nativeBrokerHandshakeTimeout)||2e3,pollIntervalMilliseconds:kne,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=Vne(Vne({},o),{loggerOptions:(null===o||void 0===o?void 0:o.loggerOptions)||c}),d={application:{appName:Lte.EMPTY_STRING,appVersion:Lte.EMPTY_STRING}};return{auth:Vne(Vne({},a),n),cache:Vne(Vne({},s),r),system:Vne(Vne({},l),u),telemetry:Vne(Vne({},d),i)}}(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Cie(this.config.system.loggerOptions,Lae,Oae),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 kse(this.config.auth.clientId,this.config.auth.authority,this.logger,Lae,Oae,this.config.telemetry.application,this.config.system.cryptoOptions):new xie(this.config.auth.clientId,this.config.auth.authority,this.logger,Lae,Oae,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new bie(this.logger,this.performanceClient,this.config.system.cryptoOptions):kie,this.eventHandler=new Bae(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new _ae(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(e,t){var n={cacheLocation:hne.MemoryStorage,temporaryCacheLocation:hne.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};return new _ae(e,n,kie,t)}(this.config.auth.clientId,this.logger);var t={cacheLocation:hne.MemoryStorage,temporaryCacheLocation:hne.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};this.nativeInternalStorage=new _ae(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new Cse(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return Wne(this,void 0,void 0,(function(){var e,t,n,r;return jne(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(Hne.InitializeClientApplication),this.eventHandler.emitEvent(Nae.INITIALIZE_START),!e)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),n=this,[4,hse.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(Nae.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}}))}))},e.prototype.handleRedirectPromise=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l=this;return jne(this,(function(u){return this.logger.verbose("handleRedirectPromise called"),Dae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||Lte.EMPTY_STRING,"undefined"===typeof(r=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(Nae.HANDLE_REDIRECT_START,bne.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),i=void 0,o&&hse.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new pse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.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(mne.CORRELATION_ID,!0)||Lte.EMPTY_STRING,c=this.createRedirectClient(s),i=c.handleRedirectPromise(e)),r=i.then((function(e){e&&(t.length<l.getAllAccounts().length?(l.eventHandler.emitEvent(Nae.LOGIN_SUCCESS,bne.Redirect,e),l.logger.verbose("handleRedirectResponse returned result, login success")):(l.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_SUCCESS,bne.Redirect,e),l.logger.verbose("handleRedirectResponse returned result, acquire token success")));return l.eventHandler.emitEvent(Nae.HANDLE_REDIRECT_END,bne.Redirect),e})).catch((function(e){throw t.length>0?l.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_FAILURE,bne.Redirect,null,e):l.eventHandler.emitEvent(Nae.LOGIN_FAILURE,bne.Redirect,null,e),l.eventHandler.emitEvent(Nae.HANDLE_REDIRECT_END,bne.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 Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return jne(this,(function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(bne.Redirect),(n=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_START,bne.Redirect,e):this.eventHandler.emitEvent(Nae.LOGIN_START,bne.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new pse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=o.acquireTokenRedirect(e).catch((function(t){if(t instanceof cse&&t.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(e.correlationId).acquireToken(e);if(t instanceof rre)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(Nae.ACQUIRE_TOKEN_FAILURE,bne.Redirect,null,e):a.eventHandler.emitEvent(Nae.LOGIN_FAILURE,bne.Redirect,null,e),e}))]}))}))},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(Hne.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(bne.Popup)}catch(bke){return Promise.reject(bke)}var o,i=this.getAllAccounts();(i.length>0?this.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_START,bne.Popup,e):this.eventHandler.emitEvent(Nae.LOGIN_START,bne.Popup,e),this.canUseNative(e))?o=this.acquireTokenNative(e,yne.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 cse&&n.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(n instanceof rre)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(Nae.LOGIN_SUCCESS,bne.Popup,e):t.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_SUCCESS,bne.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(Nae.ACQUIRE_TOKEN_FAILURE,bne.Popup,null,e):t.eventHandler.emitEvent(Nae.LOGIN_FAILURE,bne.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 Wne(this,void 0,void 0,(function(){var n,r,o,i,a=this;return jne(this,(function(s){return n=this.getRequestCorrelationId(e),r=Vne(Vne({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(bne.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Hne.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(Nae.SSO_SILENT_START,bne.Silent,r),this.canUseNative(r)?o=this.acquireTokenNative(r,yne.ssoSilent).catch((function(e){if(e instanceof cse&&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(Nae.SSO_SILENT_SUCCESS,bne.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(Nae.SSO_SILENT_FAILURE,bne.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 Wne(this,void 0,void 0,(function(){var t,n,r,o,i=this;return jne(this,(function(a){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(bne.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_BY_CODE_START,bne.Silent,e),n=this.performanceClient.startMeasurement(Hne.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Joe.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(Vne(Vne({},e),{correlationId:t})).then((function(e){return i.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_BY_CODE_SUCCESS,bne.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(Nae.ACQUIRE_TOKEN_BY_CODE_FAILURE,bne.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,yne.acquireTokenByCode,e.nativeAccountId).catch((function(e){throw e instanceof cse&&e.isFatal()&&(i.nativeExtensionProvider=void 0),e}))];throw Joe.createUnableToAcquireTokenFromNativePlatformError()}throw Joe.createAuthCodeOrNativeAccountIdRequiredError()}catch(bke){throw this.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_BY_CODE_FAILURE,bne.Silent,null,bke),n.endMeasurement({errorCode:bke instanceof Zne&&bke.errorCode||void 0,subErrorCode:bke instanceof Zne&&bke.subError||void 0,success:!1}),bke}return[2]}))}))},e.prototype.acquireTokenByCodeAsync=function(e){var t;return Wne(this,void 0,void 0,(function(){var n=this;return jne(this,(function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Hne.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 Wne(this,void 0,void 0,(function(){return jne(this,(function(r){switch(this.performanceClient.addQueueMeasurement(Hne.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Mne.Default:case Mne.AccessToken:case Mne.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw ioe.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenByRefreshToken=function(e,t){return Wne(this,void 0,void 0,(function(){var n;return jne(this,(function(r){switch(this.performanceClient.addQueueMeasurement(Hne.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Mne.Default:case Mne.AccessTokenAndRefreshToken:case Mne.RefreshToken:case Mne.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(Hne.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw ioe.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenBySilentIframe=function(e){return Wne(this,void 0,void 0,(function(){var t;return jne(this,(function(n){return this.performanceClient.addQueueMeasurement(Hne.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(Hne.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]}))}))},e.prototype.logout=function(e){return Wne(this,void 0,void 0,(function(){var t;return jne(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(Vne({correlationId:t},e))]}))}))},e.prototype.logoutRedirect=function(e){return Wne(this,void 0,void 0,(function(){var t;return jne(this,(function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(bne.Redirect),[2,this.createRedirectClient(t).logout(e)]}))}))},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(bne.Popup),this.createPopupClient(t).logout(e)}catch(bke){return Promise.reject(bke)}},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"),Dae.blockNonBrowserEnvironment(this.isBrowserEnvironment),Dae.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Dae.blockReloadInHiddenIframes(),Dae.blockAcquireTokenInPopups(),Dae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===bne.Redirect&&this.config.cache.cacheLocation===hne.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw uie.createInMemoryRedirectUnavailableError();e!==bne.Redirect&&e!==bne.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Dae.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return Wne(this,void 0,void 0,(function(){return jne(this,(function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Joe.createNativeConnectionNotEstablishedError();return[2,new pse(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"),!hse.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 Hte.NONE:case Hte.CONSENT:case Hte.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 mse(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 vse(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 bse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new dse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new _se(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new wse(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,yne.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():Lte.EMPTY_STRING},e}(),Tse=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 Bne(t,e),t.prototype.loginRedirect=function(e){return Wne(this,void 0,void 0,(function(){var t;return jne(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(Vne({correlationId:t},e||Dne))]}))}))},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(Vne({correlationId:t},e||Dne))},t.prototype.acquireTokenSilent=function(e){return Wne(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c=this;return jne(this,(function(l){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(Hne.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(bne.Silent),this.logger.verbose("acquireTokenSilent called",t),!(r=e.account||this.getActiveAccount()))throw Joe.createNoAccountError();return o={clientId:this.config.auth.clientId,authority:e.authority||Lte.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(Hne.AcquireTokenSilentAsync,t),s=this.acquireTokenSilentAsync(Vne(Vne({},e),{correlationId:t}),r).then((function(t){return c.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 c.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 Wne(this,void 0,void 0,(function(){var r,o,i,a,s,c=this;return jne(this,(function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Hne.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_START,bne.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Hne.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),hse.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=Vne(Vne({},e),{account:t}),r=this.acquireTokenNative(o,yne.acquireTokenSilent_silentFlow).catch((function(t){return Wne(c,void 0,void 0,(function(){return jne(this,(function(n){if(t instanceof cse&&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(Hne.InitializeSilentRequest,e.correlationId),[4,i.initializeSilentRequest(e,t)];case 2:a=l.sent(),s=Vne(Vne({},e),{cacheLookupPolicy:e.cacheLookupPolicy||Mne.Default}),this.performanceClient.setPreQueueTime(Hne.AcquireTokenFromCache,a.correlationId),r=this.acquireTokenFromCache(i,a,s).catch((function(t){if(s.cacheLookupPolicy===Mne.AccessToken)throw t;return Dae.blockReloadInHiddenIframes(),c.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_NETWORK_START,bne.Silent,a),c.performanceClient.setPreQueueTime(Hne.AcquireTokenByRefreshToken,a.correlationId),c.acquireTokenByRefreshToken(a,s).catch((function(t){var n=t instanceof Jne,r=t instanceof rre,o=t.errorCode===Cne;if((!n||!o||r||s.cacheLookupPolicy===Mne.AccessTokenAndRefreshToken||s.cacheLookupPolicy===Mne.RefreshToken)&&s.cacheLookupPolicy!==Mne.Skip)throw t;return c.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),c.performanceClient.setPreQueueTime(Hne.AcquireTokenBySilentIframe,a.correlationId),c.acquireTokenBySilentIframe(a)}))})),l.label=3;case 3:return[2,r.then((function(e){var t;return c.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_SUCCESS,bne.Silent,e),null===(t=c.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw c.eventHandler.emitEvent(Nae.ACQUIRE_TOKEN_FAILURE,bne.Silent,null,e),null===(t=c.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",c.trackPageVisibility)}))]}}))}))},t}(Sse),Ise="",Ase="channels",Pse="createPerfMgr",Dse="extensionConfig",Rse="eventsSent",Mse="eventsDiscarded",Nse="eventsSendRequest",Lse="perfEvent",Ose="errorToConsole",Fse="warnToConsole",Bse="constructor",Hse=N,zse=P.freeze,Vse=(P.seal,P.keys),Use=String.prototype,Wse=Use.trim,jse=Use.endsWith,qse=Use.startsWith,Gse=Date.prototype.toISOString,Kse=Array.isArray,Yse=D.toString,Qse=L.toString,Xse=Qse.call(P),Zse=/-([a-z])/g,Jse=/([^\w\d_$])/g,$se=/^(\d+[\w\d_$])/,ece=Object.getPrototypeOf;function tce(e){return void 0===e||typeof e===A}function nce(e){return null===e||tce(e)}function rce(e){return!nce(e)}function oce(e,t){return!(!e||!L.call(e,t))}function ice(e){return!(!e||typeof e!==I)}function ace(e){return!(!e||typeof e!==T)}function sce(e){var t=e;return t&&fce(t)&&(t=(t=(t=t.replace(Zse,(function(e,t){return t.toUpperCase()}))).replace(Jse,"_")).replace($se,(function(e,t){return"_"+t}))),t}function cce(e,t){if(e)for(var n in e)L.call(e,n)&&t.call(e,n,e[n])}function lce(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=jse?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 uce(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=qse?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 dce(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}var pce=Kse||function(e){return!(!e||"[object Array]"!==Yse.call(e))};function hce(e){return!(!e||"[object Error]"!==Yse.call(e))}function fce(e){return"string"===typeof e}function mce(e){return"number"===typeof e}function gce(e){return"boolean"===typeof e}function vce(e){var t=!1;if(e&&"object"===typeof e){var n=ece?ece(e):function(e){if(e){if(ece)return ece(e);var t=e.__proto__||e.prototype||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&L.call(n,Bse)&&(n=n.constructor),t=typeof n===T&&Qse.call(n)===Xse):t=!0}return t}function yce(e){if(e)return Gse?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 bce(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(bke){}}function _ce(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(bke){}}return-1}function Cce(e){return e&&(e=Wse&&e.trim?e.trim():e.replace?e.replace(/^\s+|(?=\s)\s+$/g,Ise):e),e}var Ece=!{toString:null}.propertyIsEnumerable("toString"),wce=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function xce(e){var t=typeof e;if(t===T||t===I&&null!==e||B("objKeys called on non-object"),!Ece&&Vse)return Vse(e);var n=[];for(var r in e)e&&L.call(e,r)&&n.push(r);if(Ece)for(var o=wce.length,i=0;i<o;i++)e&&L.call(e,wce[i])&&n.push(wce[i]);return n}function kce(e,t,n,r){if(Hse)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),Hse(e,t,o),!0}catch(bke){}return!1}function Sce(e){return e}function Tce(e){return zse&&cce(e,(function(e,t){(pce(t)||ice(t))&&zse(t)})),Ice(e)}var Ice=zse||Sce;function Ace(){var e=Date;return e.now?e.now():(new e).getTime()}function Pce(e){return hce(e)?e.name:Ise}function Dce(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 Rce(e,t,n){var r;return e?!(r=e[t])&&nce(r)&&(r=tce(n)?{}:n,e[t]=r):r=tce(n)?{}:n,r}function Mce(e,t){return nce(e)?t:e}function Nce(e){return!!e}function Lce(e){throw new Error(e)}function Oce(e,t){var n=null,r=null;return ace(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function Fce(e,t,n,r,o){e&&t&&n&&(!1!==o||tce(e[t]))&&(e[t]=Oce(n,r))}function Bce(e,t,n,r){return e&&t&&ice(e)&&pce(n)&&bce(n,(function(n){fce(n)&&Fce(e,n,t,n,r)})),e}function Hce(e){return e&&R&&(e=P(R({},e))),e}function zce(e,t,n,r,o,i){var a=arguments,s=a[0]||{},c=a.length,l=!1,u=1;for(c>0&&gce(s)&&(l=s,s=a[u]||{},u++),ice(s)||(s={});u<c;u++){var d=a[u],p=pce(d),h=ice(d);for(var f in d){var m=p&&f in d||h&&L.call(d,f);if(m){var g=d[f],v=void 0;if(l&&g&&((v=pce(g))||vce(g))){var y=s[f];v?pce(y)||(y=[]):vce(y)||(y={}),g=zce(l,y,g)}void 0!==g&&(s[f]=g)}}}return s}var Vce=null,Uce=function(){function e(t,n,r){var o,i=this,a=!1;(i.start=Ace(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},ace(n))&&(a=kce(i,"payload",(function(){return!o&&ace(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(pce(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=Ace()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&ace(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Wce=function(){function e(t){this.ctx={},ge(e,this,(function(e){e.create=function(e,t,n){return new Uce(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&ace(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}(),jce="CoreUtils.doPerf";function qce(e,t,n,r,o){if(e){var i=e;if(i.getPerfMgr&&(i=i.getPerfMgr()),i){var a=void 0,s=i.getCtx(jce);try{if(a=i.create(t(),r,o)){if(s&&a.setCtx&&(a.setCtx(Uce.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Uce.ChildrenContextKey);c||(c=[],s.setCtx(Uce.ChildrenContextKey,c)),c.push(a)}return i.setCtx(jce,a),n(a)}}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&i.fire(a),i.setCtx(jce,s)}}}return n()}var Gce="window",Kce="JSON",Yce="msie",Qce="trident/",Xce="XMLHttpRequest",Zce=null,Jce=null,$ce=!1,ele=null,tle=null;function nle(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e.prototype;r&&(n=t in r)}}catch(bke){}if(!n)try{n=!tce((new e)[t])}catch(bke){}}return n}function rle(e){var t=F();return t&&t[e]?t[e]:e===Gce&&ole()?window:null}function ole(){return Boolean(typeof window===I&&window)}function ile(){return ole()?window:rle(Gce)}function ale(){return Boolean(typeof document===I&&document)}function sle(){return ale()?document:rle("document")}function cle(){return Boolean(typeof navigator===I&&navigator)}function lle(){return cle()?navigator:rle("navigator")}function ule(e){if(e&&$ce){var t=rle("__mockLocation");if(t)return t}return typeof location===I&&location?location:rle("location")}function dle(){return rle("performance")}function ple(){return Boolean(typeof JSON===I&&JSON||null!==rle(Kce))}function hle(){return ple()?JSON||rle(Kce):null}function fle(){var e=lle();return!(!e||!e.product)&&"ReactNative"===e.product}function mle(){var e=lle();if(e&&(e.userAgent!==Jce||null===Zce)){var t=((Jce=e.userAgent)||Ise).toLowerCase();Zce=dce(t,Yce)||dce(t,Qce)}return Zce}function gle(e){var t=Object.prototype.toString.call(e),n=Ise;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ple()&&(n=hle().stringify(e)),t+n}function vle(){return null===tle&&(tle=cle()&&Boolean(lle().sendBeacon)),tle}function yle(e){var t=!1;try{t=!!rle("fetch");var n=rle("Request");t&&e&&n&&(t=nle(n,"keepalive"))}catch(bke){}return t}function ble(){return null===ele&&(ele=typeof XDomainRequest!==A)&&_le()&&(ele=ele&&!nle(rle(Xce),"withCredentials")),ele}function _le(){var e=!1;try{e=!!rle(Xce)}catch(bke){}return e}var Cle,Ele=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],wle=null;function xle(e,t){return function(){var n=arguments,r=kle(t);if(r){var o=r.listener;o&&o[e]&&o[e].apply(o,n)}}}function kle(e){var t=wle;return t||!0===e.disableDbgExt||(t=wle||function(){var e=rle("Microsoft");return e&&(wle=e.ApplicationInsights),wle}()),t?t.ChromeDbgExt:null}function Sle(e){return e?'"'+e.replace(/\"/g,Ise)+'"':Ise}function Tle(e,t){var n=typeof console!==A?console:rle("console");if(n){var r="log";n[e]&&(r=e),ace(n[r])&&n[r](t)}}var Ile=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=Ise;ple()&&(i=hle().stringify(r));var a=(t?" message:"+Sle(t):Ise)+(r?" props:"+Sle(i):Ise);o.message+=a}return e.dataType="MessageData",e}();function Ale(e,t){return(e||{}).logger||new Ple(t)}var Ple=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,i,a=0,s={};ge(e,this,(function(e){function c(t,n){if(!(a>=o)){var i=!0,c="AITR_"+n.messageId;if(s[c]?i=!1:s[c]=!0,i&&(t<=r&&(e.queue.push(n),a++,l(1===t?"error":"warn",n)),a===o)){var u="Internal events throttle limit per PageView reached for this app.",d=new Ile(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function l(e,n){var r=kle(t||{});r&&r.diagLog&&r.diagLog(e,n)}!function(e){n=Mce(e.loggingLevelConsole,0),r=Mce(e.loggingLevelTelemetry,1),o=Mce(e.maxMessageLimit,25),i=Mce(e.enableDebug,Mce(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 Ile(r,o,u,a);if(i)throw gle(d);var p=1===t?Ose:Fse;if(tce(d.message))l("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);c(t,d)}},e.warnToConsole=function(e){Tle("warn",e),l("warning",e)},e.errorToConsole=function(e){Tle("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e.logInternalMessage=c}))}return e.__ieDyn=1,e}();function Dle(e){return e||new Ple}function Rle(e,t,n,r,o,i){void 0===i&&(i=!1),Dle(e).throwInternal(t,n,r,o,i)}function Mle(e,t){Dle(e).warnToConsole(t)}var Nle=4294967296,Lle=4294967295,Ole=!1,Fle=123456789,Ble=987654321;function Hle(e){e<0&&(e>>>=0),Fle=123456789+e&Lle,Ble=987654321-e&Lle,Ole=!0}function zle(){try{var e=2147483647&Ace();Hle((Math.random()*Nle^e)+e)}catch(bke){}}function Vle(e){var t=0,n=rle("crypto")||rle("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Lle),0===t&&mle()&&(Ole||zle(),t=Ule()&Lle),0===t&&(t=Math.floor(Nle*Math.random()|0)),e||(t>>>=0),t}function Ule(e){var t=((Ble=36969*(65535&Ble)+(Ble>>16)&Lle)<<16)+(65535&(Fle=18e3*(65535&Fle)+(Fle>>16)&Lle))>>>0&Lle|0;return e||(t>>>=0),t}function Wle(e){void 0===e&&(e=22);for(var t=Vle()>>>0,n=0,r=Ise;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Vle()<<2&4294967295|3&t)>>>0,n=0);return r}var jle=N,qle="2.8.12",Gle="."+Wle(6),Kle=0;function Yle(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Qle(e,t){var n=t[e.id];if(!n){n={};try{Yle(t)&&(function(e,t,n){if(jle)try{return jle(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(bke){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(bke){}}return n}function Xle(e,t){return void 0===t&&(t=!1),sce(e+Kle+++(t?".2.8.12":Ise)+Gle)}function Zle(e){var t={id:Xle("_aiData-"+(e||Ise)+"."+qle),accept:function(e){return Yle(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[sce(n)]:(o&&((i=Qle(t,e))[sce(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(bke){}}};return t}var Jle="00000000000000000000000000000000",$le="0000000000000000";function eue(e,t,n){return!(!e||e.length!==t||e===n)&&!!e.match(/^[\da-f]*$/)}function tue(e){return eue(e,32,Jle)}function nue(e){return eue(e,16,$le)}var rue=Zle("plugin");function oue(e){return rue.get(e,"state",{},!0)}function iue(e,t){for(var n,r=[],o=null,i=e.getNext();i;){var a=i.getPlugin();if(a){o&&ace(o.setNextPlugin)&&ace(a.processTelemetry)&&o.setNextPlugin(a);(ace(a.isInitialized)?a.isInitialized():(n=oue(a)).isInitialized)||r.push(a),o=a,i=i.getNext()}}bce(r,(function(r){var o=e.core();r.initialize(e.getCfg(),o,t,e.getNext()),n=oue(r),r.core||n.core||(n.core=o),n.isInitialized=!0,delete n.teardown}))}function aue(e){return e.sort((function(e,t){var n=0;if(t){var r=ace(t.processTelemetry);ace(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1)}else n=e?1:-1;return n}))}var sue="TelemetryPluginChain",cue=0;function lue(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 hue([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&&(bce(t,(function(e){try{e.func.call(e.self,e.args)}catch(bke){Rle(n.logger,2,73,"Unexpected Exception during onComplete - "+gle(bke))}})),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return Ale(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&&!nce(i[n])?o=i[n]:t&&!nce(t[n])&&(o=t[n]);return nce(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:tce(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(ice(n)&&0!==r){var a=zce(!0,n,o);t&&2===r&&cce(n,(function(e){if(nce(a[e])){var n=t[e];nce(n)||(a[e]=n)}})),o=a}}else o=n;return o}return a}function uue(e,t,n,r){var o=lue(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),pce(e)&&(e=hue(e,t,n,r)),uue(e||i.getNext(),t,n,r)},i}function due(e,t,n){var r=t.config||{},o=lue(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),pce(e)&&(e=hue(e,r,t,n)),due(e||i.getNext(),t,n)},i}function pue(e,t,n){var r=t.config||{},o=lue(e,r,t,n).ctx;return o.processNext=function(e){return o.iterate((function(t){ace(t.update)&&t.update(o,e)}))},o.createNew=function(e,n){return void 0===e&&(e=null),pce(e)&&(e=hue(e,r,t,n)),pue(e||o.getNext(),t,n)},o}function hue(e,t,n,r){var o=null,i=!r;if(pce(e)&&e.length>0){var a=null;bce(e,(function(e){if(i||r!==e||(i=!0),i&&e&&ace(e.processTelemetry)){var s=function(e,t,n){var r,o=null,i=ace(e.processTelemetry),a=ace(e.setNextPlugin);r=e?e.identifier+"-"+e.priority+"-"+cue++:"Unknown-0-"+cue++;var s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:d,update:p,_id:r,_setNext:function(e){o=e}};function c(){var r;return e&&ace(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=uue(s,t,n)),r}function l(t,n,i,a,s){var c=!1,l=e?e.identifier:sue,u=t._hasRun;return u||(u=t._hasRun={}),t.setNext(o),e&&qce(t.core(),(function(){return l+":"+i}),(function(){u[r]=!0;try{var e=o?o._id:Ise;e&&(u[e]=!1),c=n(t)}catch(s){var a=!o||u[o._id];a&&(c=!0),o&&a||Rle(t.diagLog(),1,73,"Plugin ["+l+"] failed during "+i+" - "+gle(s)+", run flags: "+gle(u))}}),a,s),c}function u(t,n){function r(n){if(!e||!i)return!1;var r=oue(e);return!r.teardown&&!r.disabled&&(a&&e.setNextPlugin(o),e.processTelemetry(t,n),!0)}l(n=n||c(),r,"processTelemetry",(function(){return{item:t}}),!t.sync)||n.processNext(t)}function d(t,n){function r(){var r=!1;if(e){var o=oue(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}l(t,r,"unload",(function(){}),n.isAsync)||t.processNext(n)}function p(t,n){function r(){var r=!1;if(e){var o=oue(e),i=e.core||o.core;!e||i&&i!==t.core()||o.teardown||e.update&&!0===e.update(t,n)&&(r=!0)}return r}l(t,r,"update",(function(){}),!1)||t.processNext(n)}return Ice(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}}))}return r&&!o?hue([r],t,n):o}var fue=500;function mue(e,t,n){t&&pce(t)&&t.length>0&&(bce(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<fue&&Lce("Channel has invalid priority - "+e.identifier)})),e.push({queue:Ice(t),chain:hue(t,n.config,n)}))}var gue="toGMTString",vue="toUTCString",yue="expires",bue=null,_ue=null,Cue=null,Eue=sle(),wue={},xue={};function kue(e,t){var n=Aue._ckMgr||xue._ckMgr;return n||(n=Aue._ckMgr=Aue(e,t),xue._ckMgr=n),n}function Sue(e){return!e||e.isEnabled()}function Tue(e,t){return!!(t&&e&&pce(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function Iue(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r._ckMgr?r._ckMgr:Aue(t)}return n||(n=kue(t,(e||{}).logger)),n}function Aue(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(Dce(t,"domain",e.cookieDomain,rce,nce),Dce(t,"path",e.cookiePath||"/",null,nce),nce(t.enabled)){var n=void 0;tce(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),tce(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||xue),o=r.path||"/",i=r.domain,a=!1!==r.enabled,s=((n={isEnabled:function(){var e=a&&Pue(t),n=xue._ckMgr;return e&&n&&s!==n&&(e=Sue(n)),e}}).setEnabled=function(e){a=!1!==e},n.set=function(e,t,n,a,c){var l=!1;if(Sue(s)&&!function(e,t){return!!(t&&e&&pce(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||Tue(e,t)}(r,e)){var u={},d=Cce(t||Ise),p=d.indexOf(";");if(-1!==p&&(d=Cce(t.substring(0,p)),u=Due(t.substring(p+1))),Dce(u,"domain",a||i,Nce,tce),!nce(n)){var h=mle();if(tce(u.expires)){var f=Ace()+1e3*n;if(f>0){var m=new Date;m.setTime(f),Dce(u,yue,Rue(m,h?gue:vue)||Rue(m,h?gue:vue)||Ise,Nce)}}h||Dce(u,"max-age",Ise+n,null,tce)}var g=ule();g&&"https:"===g.protocol&&(Dce(u,"secure",null,null,tce),null===_ue&&(_ue=!Oue((lle()||{}).userAgent)),_ue&&Dce(u,"SameSite","None",null,tce)),Dce(u,"path",c||o,null,tce),(r.setCookie||Lue)(e,Mue(d,u)),l=!0}return l},n.get=function(e){var t=Ise;return Sue(s)&&!Tue(r,e)&&(t=(r.getCookie||Nue)(e)),t},n.del=function(e,t){var n=!1;return Sue(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var o,i=!1;if(Pue(t)){var a=((o={}).path=n||"/",o.expires="Thu, 01 Jan 1970 00:00:01 GMT",o);mle()||(a["max-age"]="0"),(r.delCookie||Lue)(e,Mue(Ise,a)),i=!0}return i},n);return s._ckMgr=s,s}function Pue(e){if(null===bue){bue=!1;try{bue=void 0!==(Eue||{}).cookie}catch(bke){Rle(e,2,68,"Cannot access document.cookie - "+Pce(bke),{exception:gle(bke)})}}return bue}function Due(e){var t={};e&&e.length&&bce(Cce(e).split(";"),(function(e){if(e=Cce(e||Ise)){var n=e.indexOf("=");-1===n?t[e]=null:t[Cce(e.substring(0,n))]=Cce(e.substring(n+1))}}));return t}function Rue(e,t){return ace(e[t])?e[t]():null}function Mue(e,t){var n=e||Ise;return cce(t,(function(e,t){n+="; "+e+(nce(t)?Ise:"="+t)})),n}function Nue(e){var t=Ise;if(Eue){var n=Eue.cookie||Ise;Cue!==n&&(wue=Due(n),Cue=n),t=Cce(wue[e]||Ise)}return t}function Lue(e,t){Eue&&(Eue.cookie=e+"="+t)}function Oue(e){return!!fce(e)&&(!(!dce(e,"CPU iPhone OS 12")&&!dce(e,"iPad; CPU OS 12"))||(!!(dce(e,"Macintosh; Intel Mac OS X 10_14")&&dce(e,"Version/")&&dce(e,"Safari"))||(!(!dce(e,"Macintosh; Intel Mac OS X 10_14")||!lce(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!dce(e,"Chrome/5")&&!dce(e,"Chrome/6"))||(!(!dce(e,"UnrealEngine")||dce(e,"Chrome"))||!(!dce(e,"UCBrowser/12")&&!dce(e,"UCBrowser/11")))))))}function Fue(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){bce(e,(function(e){try{e(t,n)}catch(bke){Rle(t.diagLog(),2,73,"Unexpected error calling unload handler - "+gle(bke))}})),e=[]}}}var Bue=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||uue(null,{},a.core);t=r&&r.getPlugin?o.createNew(null,r.getPlugin):o.createNew(null,r)}return t}function c(e,t,o){e&&Dce(e,Dse,[],null,nce),!o&&t&&(o=t.getProcessTelContext().getNext());var i=r;r&&r.getPlugin&&(i=r.getPlugin()),a.core=t,n=uue(o,e,t,i)}function l(){t=!1,a.core=null,n=null,r=null,i=[],o=Fue()}l(),ge(e,a,(function(e){e.initialize=function(e,n,r,o){c(e,n,o),t=!0},e.teardown=function(t,n){var a,s=e.core;if(s&&(!t||s===t.core())){var c,u=!1,d=t||due(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)?c=!0:h(),c}function h(){if(!u){u=!0,o.run(d,n);var e=i;i=[],bce(e,(function(e){e.rm()})),!0===c&&d.processNext(p),l()}}},e.update=function(t,n){var o=e.core;if(o&&(!t||o===t.core())){var i,a=!1,s=t||pue(null,o,r&&r.getPlugin?r.getPlugin():r),l=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,l,u)?i=!0:u(),i}function u(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(pce(e)?i=i.concat(e):i.push(e))},Fce(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&&ace(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),Hue=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(),ge(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){bce(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(bke){Rle(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Pce(bke),{exception:gle(bke)},!0)}}o||e.processNext(t,n)},e._doTeardown=function(){i()}})),o}return W(t,e),t.__ieDyn=1,t}(Bue),zue="Plugins must provide initialize method",Vue="SDK is still unloading...",Uue={loggingLevelConsole:1};function Wue(e,t){return new Wce(t)}function jue(e,t){var n=!1;return bce(t,(function(t){if(t===e)return n=!0,-1})),n}var que=function(){function e(){var t,n,r,o,i,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,C=0;ge(e,this,(function(e){function E(){n=!1,t=zce(!0,{},Uue),e.config=t,e.logger=new Ple(t),e._extensions=[],m=new Hue,r=[],o=null,i=null,a=null,s=null,c=null,u=null,l=[],d=null,p=null,h=null,f=!1,g=null,v=Xle("AIBaseCore",!0),y=Fue(),_=null}function w(){return uue(S(),t,e)}function x(n){var r=function(e,t,n){var r,o=[],i={};return bce(n,(function(n){(nce(n)||nce(n.initialize))&&Lce(zue);var r=n.priority,a=n.identifier;n&&r&&(nce(i[r])?i[r]=a:Mle(e,"Two extensions have same priority #"+r+" - "+i[r]+", "+a)),(!r||r<t)&&o.push(n)})),(r={all:n}).core=o,r}(e.logger,fue,l);u=r.core,c=null;var o=r.all;if(h=Ice(function(e,t,n){var r=[];if(e&&bce(e,(function(e){return mue(r,e,n)})),t){var o=[];bce(t,(function(e){e.priority>fue&&o.push(e)})),mue(r,o,n)}return r}(p,o,e)),d){var i=_ce(o,d);-1!==i&&o.splice(i,1),-1!==(i=_ce(u,d))&&u.splice(i,1),d._setQueue(h)}else d=function(e,t){function n(){return uue(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&&bce(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:fue,initialize:function(t,n,r,i){o=!0,bce(e,(function(e){e&&e.queue.length>0&&iue(uue(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&&bce(e,(function(e){if(e&&e.queue.length>0&&(bce(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,c=!1,l=null;function u(){s--,c&&0===s&&(l&&(clearTimeout(l),l=null),o&&o(c),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==l?l=setTimeout((function(){l=null,u()}),a):u())}}))}),(function(){c=!0,u()})),!0},_setQueue:function(t){e=t}};return i}(h,e);o.push(d),u.push(d),e._extensions=aue(o),d.initialize(t,e,o),iue(w(),o),e._extensions=Ice(aue(u||[])).slice(),n&&function(t){var n=pue(S(),e);e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t)}(n)}function k(t){var n,r=null,o=null;return bce(e._extensions,(function(e){if(e.identifier===t&&e!==d&&e!==m)return o=e,-1})),!o&&d&&(o=d.getChannel(t)),o&&((n={plugin:o}).setEnabled=function(e){oue(o).disabled=!e},n.isEnabled=function(){var e=oue(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);T(r,i,(function(e){e&&x({reason:32,removed:r}),t&&t(e)}))},r=n),r}function S(){if(!c){var n=(u||[]).slice();-1===_ce(n,m)&&n.push(m),c=hue(aue(n),t,e)}return c}function T(n,r,o){if(n&&n.length>0){var i=due(hue(n,t,e),e);i.onComplete((function(){var e=!1,t=[];bce(l,(function(r,o){jue(r,n)?e=!0:t.push(r)})),l=t;var r=[];p&&(bce(p,(function(t,o){var i=[];bce(t,(function(t){jue(t,n)?e=!0:i.push(t)})),r.push(i)})),p=r),o&&o(e)})),i.processNext(r)}else o(!1)}function I(){var n=e.logger?e.logger.queue:[];n&&(bce(n,(function(n){var r,o=((r={}).name=g||"InternalMessageId: "+n.messageId,r.iKey=Mce(t.instrumentationKey),r.time=yce(new Date),r.baseType=Ile.dataType,r.baseData={message:n.message},r);e.track(o)})),n.length=0)}function A(e,t,n,r){return d?d.flush(e,t,n||6,r):(t&&t(!1),!0)}function P(t){var n=e.logger;n?Rle(n,2,73,t):Lce(t)}E(),e.isInitialized=function(){return n},e.initialize=function(r,i,s,c){f&&Lce(Vue),e.isInitialized()&&Lce("Core should not be initialized more than once"),t=r||{},e.config=t,nce(r.instrumentationKey)&&Lce("Please provide instrumentation key"),o=c,e._notificationManager=c,function(){var e=Mce(t.disableDbgExt);!0===e&&b&&(o.removeNotificationListener(b),b=null);o&&!b&&!0!==e&&(b=function(e){if(!Cle){Cle={};for(var t=0;t<Ele.length;t++)Cle[Ele[t]]=xle(Ele[t],e)}return Cle}(t),o.addNotificationListener(b))}(),function(){var e=Mce(t.enablePerfMgr);!e&&a&&(a=null);e&&Rce(t,Pse,Wue)}(),Rce(t,Dse,{}).NotificationManager=o,s&&(e.logger=s);var u=Rce(t,"extensions",[]);(l=[]).push.apply(l,j(j([],i),u)),p=Rce(t,Ase,[]),x(null),h&&0!==h.length||Lce("No channels available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&bce(h,(function(t){e.push(t.queue)})),Ice(e)},e.track=function(n){n.iKey=n.iKey||t.instrumentationKey,n.time=n.time||yce(new Date),n.ver=n.ver||"4.0",!f&&e.isInitialized()?w().processNext(n):r.push(n)},e.getProcessTelContext=w,e.getNotifyMgr=function(){return o||(o=function(){var e;return H(((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=Aue(t,e.logger)),s},e.setCookieMgr=function(e){s=e},e.getPerfMgr=function(){if(!i&&!a&&Mce(t.enablePerfMgr)){var n=Mce(t.createPerfMgr);ace(n)&&(a=n(e,e.getNotifyMgr()))}return i||a||Vce},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return r.length},e.releaseQueue=function(){if(n&&r.length>0){var e=r;r=[],bce(e,(function(e){w().processNext(e)}))}},e.pollInternalLogs=function(e){g=e||null;var n=Mce(t.diagnosticLogInterval);return n&&n>0||(n=1e4),C&&clearInterval(C),C=setInterval((function(){I()}),n)},e.stopPollingInternalLogs=function(){C&&(clearInterval(C),C=0,I())},Bce(e,(function(){return m}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||Lce("SDK is not initialized"),f&&Lce(Vue);var a=((i={reason:50}).isAsync=t,i.flushComplete=!1,i),s=due(S(),e);function c(t){a.flushComplete=t,f=!0,y.run(s,a),e.stopPollingInternalLogs(),s.processNext(a)}s.onComplete((function(){E(),r&&r(a)}),e),A(t,c,6,o)||c(!1)},e.getPlugin=k,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void P(zue);var o=k(e.identifier);if(o&&!t)return r&&r(!1),void P("Plugin ["+e.identifier+"] is already loaded!");var i={reason:16};function a(t){l.push(e),i.added=[e],x(i),r&&r(!0)}if(o){var s=[o.plugin];T(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=A,e.getTraceCtx=function(e){return _||(_=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),tue(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){e&&e.setSpanId(n),nue(n)&&(t.spanId=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}()),_},e.setTraceCtx=function(e){_=e||null},Fce(e,"addUnloadCb",(function(){return y}),"add")}))}return e.__ieDyn=1,e}();function Gue(e,t,n,r){bce(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(bke){}}))}var Kue=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;ge(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=_ce(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=_ce(e.listeners,t)},e.eventsSent=function(t){Gue(e.listeners,Rse,!0,(function(e){e.eventsSent(t)}))},e.eventsDiscarded=function(t,n){Gue(e.listeners,Mse,!0,(function(e){e.eventsDiscarded(t,n)}))},e.eventsSendRequest=function(t,n){Gue(e.listeners,Nse,n,(function(e){e.eventsSendRequest(t,n)}))},e.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Gue(e.listeners,Lse,!1,(function(e){t.isAsync?setTimeout((function(){return e.perfEvent(t)}),0):e.perfEvent(t)})))}}))}return e.__ieDyn=1,e}(),Yue=function(e){function t(){var n=e.call(this)||this;return ge(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 Ple(e),o||new Kue(e))},e.track=function(r){qce(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Lce("Invalid telemetry item")),function(e){nce(e.name)&&(n(e),Lce("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return W(t,e),t.__ieDyn=1,t}(que),Que="",Xue="events",Zue="visibilitychange",Jue="pagehide",$ue="pageshow",ede="unload",tde="beforeunload",nde=Xle("aiEvtPageHide"),rde=Xle("aiEvtPageShow"),ode=/\.[\.]+/g,ide=/[\.]+$/,ade=1,sde=Zle("events"),cde=/^([^.]*)(?:\.(.+)|)/;function lde(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Ise):e}function ude(e,t){var n;if(t){var r=Ise;pce(t)?(r=Ise,bce(t,(function(e){(e=lde(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=lde(t),r&&("."!==r[0]&&(r="."+r),e=(e||Ise)+r)}var o=cde.exec(e||Ise)||[];return(n={}).type=o[1],n.ns=(o[2]||Ise).replace(ode,".").replace(ide,Ise).split(".").sort().join("."),n}function dde(e,t,n){void 0===n&&(n=!0);var r=sde.get(e,Xue,{},n),o=r[t];return o||(o=r[t]=[]),o}function pde(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 hde(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)||(pde(e,i.evtName,i.handler,i.capture),t.splice(o,1)))}}function fde(e,t){return t?ude("xx",pce(t)?[e].concat(t):[e,t]).ns.split("."):e}function mde(e,t,n,r,o){var i;void 0===o&&(o=!1);var a=!1;if(e)try{var s=ude(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&&sde.accept(e)){var c=((i={guid:ade++,evtName:s}).handler=n,i.capture=o,i);dde(e,s.type).push(c)}}catch(bke){}return a}function gde(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=ude(t,r),a=!1;!function(e,t,n){if(t.type)hde(e,dde(e,t.type),t,n);else{var r=sde.get(e,Xue,{});cce(r,(function(r,o){hde(e,o,t,n)})),0===xce(r).length&&sde.kill(e,Xue)}}(e,i,(function(e){return!((!i.ns||n)&&e.handler!==n)&&(a=!0,!0)})),a||pde(e,i,n,o)}catch(bke){}}function vde(e,t,n){var r=!1,o=ile();o&&(r=mde(o,e,t,n),r=mde(o.body,e,t,n)||r);var i=sle();return i&&(r=mde(i,e,t,n)||r),r}function yde(e,t,n,r){var o=!1;return t&&e&&e.length>0&&bce(e,(function(e){e&&(n&&-1!==_ce(n,e)||(o=vde(e,t,r)||o))})),o}function bde(e,t,n){e&&pce(e)&&bce(e,(function(e){e&&function(e,t,n){var r=ile();r&&(gde(r,e,t,n),gde(r.body,e,t,n));var o=sle();o&&gde(o,e,t,n)}(e,t,n)}))}function _de(e,t,n){return function(e,t,n,r){var o=!1;return t&&e&&pce(e)&&!(o=yde(e,t,n,r))&&n&&n.length>0&&(o=yde(e,t,null,r)),o}([tde,ede,Jue],e,t,n)}function Cde(e,t,n){var r=fde(nde,n),o=yde([Jue],e,t,r);return t&&-1!==_ce(t,Zue)||(o=yde([Zue],(function(t){var n=sle();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=Cde(e,null,n)),o}function Ede(e,t,n){var r=fde(rde,n),o=yde([$ue],e,t,r);return!(o=yde([Zue],(function(t){var n=sle();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=Ede(e,null,n)),o}function wde(){var e=kde();return e.substring(0,8)+"-"+e.substring(8,12)+"-"+e.substring(12,16)+"-"+e.substring(16,20)+"-"+e.substring(20)}function xde(){var e=dle();return e&&e.now?e.now():Ace()}function kde(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=Ise,r=0;r<4;r++)n+=t[15&(e=Vle())]+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&Vle())|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 Sde;var Tde="1DS-Web-JS-3.2.10",Ide="withCredentials",Ade=((Sde={})[0]=0,Sde[2]=6,Sde[1]=1,Sde[3]=7,Sde[4098]=6,Sde[4097]=1,Sde[4099]=7,Sde);Boolean(sle()),Boolean(ile());function Pde(e){return!(e===Que||nce(e))}function Dde(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return Que}function Rde(e){return!!(e&&mce(e)&&e>=1&&e<=4)}function Mde(e,t,n){if(!t&&!Pde(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||pce(t))t={value:t};else if("object"!==r||L.call(t,"value")){if(nce(t.value)||t.value===Que||!fce(t.value)&&!mce(t.value)&&!gce(t.value)&&!pce(t.value))return null}else t={value:n?JSON.stringify(t):t};if(pce(t.value)&&!zde(t.value))return null;if(!nce(t.kind)){if(pce(t.value)||!Hde(t.kind))return null;t.value=t.value.toString()}return t}function Nde(e,t,n){var r=-1;if(!tce(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=Ade[Ude(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function Lde(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||Que}function Ode(e){void 0===e&&(e="D");var t=wde();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,Que)),t}function Fde(e,t,n,r,o){var i={},a=!1,s=0,c=arguments.length,l=Object.prototype,u=arguments;for("[object Boolean]"===l.toString.call(u[0])&&(a=u[0],s++);s<c;s++){cce(e=u[s],(function(e,t){a&&t&&ice(t)?pce(t)?(i[e]=i[e]||[],bce(t,(function(t,n){t&&ice(t)?i[e][n]=Fde(!0,i[e][n],t):i[e][n]=t}))):i[e]=Fde(!0,i[e],t):i[e]=t}))}return i}var Bde=xde;function Hde(e){return 0===e||e>0&&e<=13||32===e}function zde(e){return e.length>0}function Vde(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=Bde()}function Ude(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===I&&(t=4,pce(e)?(t=4096,e.length>0&&(t|=Ude(e[0]))):L.call(e,"value")&&(t=8192|Ude(e.value)))}return t}var Wde=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],ge(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new Ple({loggingLevelConsole:1})),e.initialize=function(n,r,o,i){qce(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||Lce("Invalid property storage override passed."),n.channels&&bce(n.channels,(function(e){e&&bce(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&&bce(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(bke){var c=e.logger,l=gle(bke);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),Rle(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){qce(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=Bde(),Rde(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=Tde;var i=r.baseData=r.baseData||{};i.properties=i.properties||{};var a=i.properties;a.version=a.version||e.pluginVersionString||Que}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return W(t,e),t.__ieDyn=1,t}(Yue),jde=Wde;function qde(e){var t={};return cce(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),Tce(t)}var Gde,Kde="locale",Yde="ver",Qde="name",Xde=qde({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"]}),Zde=qde({id:[0,"id"],ver:[1,Yde],appName:[2,Qde],locale:[3,Kde],expId:[4,"expId"],env:[5,"env"]}),Jde=qde({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),$de=qde({locale:[0,Kde],localId:[1,"localId"],id:[2,"id"]}),epe=qde({osName:[0,Qde],ver:[1,Yde]}),tpe=qde({ver:[0,Yde],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),npe=qde({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),rpe=qde({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),ope=qde({tz:[0,"tz"]}),ipe=qde({sessionId:[0,"sesId"]}),ape=qde({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),spe=qde({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),cpe=qde({traceId:[0,"traceID"],traceName:[1,Qde],parentId:[2,"parentID"]}),lpe=qde({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function upe(){return void 0===Gde&&(Gde=!!ppe(0)),Gde}function dpe(){return upe()?ppe(0):null}function ppe(e){var t,n,r=null;try{var o=F();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&ace(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function hpe(){return this.getId()}function fpe(e){this.setId(e)}var mpe=function(){function e(){ge(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return fce(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void kce(e.prototype,"id",hpe,fpe),e}(),gpe="ai_session",vpe=function(){function e(t,n){var r,o,i=Ale(t),a=Iue(t);ge(e,this,(function(t){var s,c={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 l(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(bke){Rle(i,1,510,"Error parsing ai_session cookie, session will be reset: "+bke)}0===n.renewalDate&&Rle(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();!tce(r)&&r?gce(r)?e.setId(Ode()):e.setId(Ode(r)):e.setId(Wle(c&&c.idLength?c.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,d(e.getId(),e.acquisitionDate,e.renewalDate),upe()||Rle(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(),c=i+t.config.sessionRenewalMs(),l=new Date,u=[e,n,i];s<c?l.setTime(s):l.setTime(c);var d=t.config.cookieDomain?t.config.cookieDomain():null;a.set(o(),u.join("|")+";expires="+l.toUTCString(),null,d),r=(new Date).getTime()}ace(n.sessionExpirationMs)||(c.sessionExpirationMs=function(){return e.acquisitionSpan}),ace(n.sessionRenewalMs)||(c.sessionRenewalMs=function(){return e.renewalSpan}),t.config=c,o=function(){return t.config.namePrefix&&t.config.namePrefix()?gpe+t.config.namePrefix():gpe},t.automaticSession=new mpe,t.update=function(){t.automaticSession.getId()||function(){var e=a.get(o());if(e&&ace(e.split))l(e);else{var n=function(e,t){var n=dpe();if(null!==n)try{return n.getItem(t)}catch(bke){Gde=!1,Rle(e,1,503,"Browser failed read of local storage. "+bke)}return null}(i,o());n&&l(n)}t.automaticSession.getId()||u()}();var n=t.automaticSession,s=t.config,c=(new Date).getTime(),p=c-n.acquisitionDate>s.sessionExpirationMs(),h=c-n.renewalDate>s.sessionRenewalMs();if(p||h)u();else{(!r||c-r>e.cookieUpdateInterval)&&(n.renewalDate=c,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=dpe();if(null!==r)try{r.setItem(t,n)}catch(bke){Gde=!1,Rle(e,1,504,"Browser failed write to local storage. "+bke)}}(i,o(),[e,n,r].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),ype=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function bpe(e,t){void 0===t&&(t=ype);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)_pe(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function _pe(e,t){if(void 0===t&&(t=ype),!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 Cpe(){return this.getExpId()}var Epe=function(){function e(t,n){var r=null,o=ype.slice(0),i="Treatments",a=Iue(n),s=t;ge(e,this,(function(e){if(ale()){var n=sle().documentElement;n&&(e.locale=n.lang)}function c(e){e!==r&&(r=bpe(e,o))}e.env=t.env?t.env:function(e){var t,n={},r=sle();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?(c(s.expId),r):(c(Lde(a,i)),r)}}))}return e.validateAppExpId=bpe,e._staticInit=void kce(e.prototype,"expId",Cpe),e}(),wpe=function(){},xpe=function(){};function kpe(){return this.getMsfpc()}function Spe(){return this.getAnid()}var Tpe=function(){function e(t,n){var r=Iue(n);ge(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return Lde(r,"MSFPC")},e.getAnid=function(){return Lde(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;kce(t,"msfpc",kpe),kce(t,"anid",Spe)}(),e}(),Ipe=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())},Ape={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},Ppe={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Dpe="Unknown",Rpe=[{r:Ape.WINPHONE,os:"Windows Phone"},{r:Ape.WINRT,os:"Windows RT"},{r:Ape.WIN,os:"Windows"},{r:Ape.IOS,os:"iOS"},{r:Ape.ANDROID,os:"Android"},{r:Ape.LINUX,os:"Linux"},{r:Ape.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:Ape.OSX,os:"Mac OS X"}];function Mpe(e,t){return"Windows"===t?Npe(e,"Windows NT"):"Android"===t?Npe(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=Lpe(n);return r?n.split(r)[0]:n}}return Dpe}(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=Lpe(n);return r?n.split(r)[0]:n}}return Dpe}(e):Dpe}function Npe(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?Ppe[n[1]]?Ppe[n[1]]:n[1]:Dpe}function Lpe(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Ope=function(e){if(e.populateOperatingSystemInfo){var t=this,n=lle()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<Rpe.length;t++){var n=Rpe[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return Dpe}(r.toLowerCase());t.name=i,t.ver=Mpe(r,i)}t.name&&t.name!==Dpe||!fce(o.platform)||(t.name=o.platform)}},Fpe="MicrosoftApplicationsTelemetryDeviceId";var Bpe=function(){function e(t,n){var r=0;ge(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=Vle(!1).toString();var i=Iue(n,t);if(i.isEnabled()||o){var a=function(e,t,n){return t?t.getProperty(n)||"":Lde(e,n)}(i,o,Fpe);a||(a=wde()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,Fpe,a),e.installId=a}else i.purge(Fpe);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),Hpe=function(e,t,n,r){var o=this;if(o.traceId=t||kde(),e.enableDistributedTracing&&!n&&(n=kde().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=ule();i&&i.pathname&&(o.name=i.pathname)}};function zpe(){return this.getLocalId()}function Vpe(e){this.setLocalId(e)}var Upe=function(){function e(t,n,r){var o,i=n,a=Iue(r,t);ge(e,this,(function(n){if(a&&a.isEnabled()&&(p(),i.enableApplicationInsightsUser)){var r=Lde(a,e.userCookieName);if(r){var s=r.split(e.cookieSeparator);s.length>0&&(n.id=s[0])}if(!n.id){n.id=Wle(t&&!tce(t.idLength)?t.idLength:22);var c=yce(new Date);n.accountAcquisitionDate=c;var l=[n.id,c],u=i.cookieDomain?i.cookieDomain:void 0;a.set(e.userCookieName,l.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=Lde(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 kce(e.prototype,"localId",zpe,Vpe),e}(),Wpe=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)},jpe="([\\d,.]+)",qpe="Unknown",Gpe="Edg/",Kpe=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Gpe,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"}],Ype=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Qpe(e,t){return t.indexOf(e)>-1}function Xpe(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function Zpe(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&&Qpe(Gpe,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+jpe));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return qpe}(t,e)}function Jpe(){return this.getUserConsent()}var $pe=function(){function e(t,n){var r=Iue(n),o=t||{};ge(e,this,(function(e){var t=ule();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=lle();s&&(i=i||s.userAgent||"",a=a||(s.userAgentData||{}).brands),function(t,n){if(pce(n))try{for(var r=0;r<Ype.length;r++){var o=Xpe(Ype[r].br,n);if(o)return e.browser=Ype[r].b,void(e.browserVer=o)}}catch(bke){}if(t){var i=function(e){if(e)for(var t=0;t<Kpe.length;t++)if(Qpe(Kpe[t].ua,e))return Kpe[t].b;return qpe}(t);e.browser=i,e.browserVer=Zpe(t,i)}}(i,a);var c=function(){var e={h:0,w:0},t=ile();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=c.w+"X"+c.h}e.getUserConsent=function(){return o.userConsented||!!Lde(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(bke){}return null},kce(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void kce(e.prototype,"userConsent",Jpe),e}();function ehe(e,t,n,r,o){var i=t.ext[Xde[e]];return i&&cce(r,(function(e,t){if(fce(t)||mce(t)||gce(t)){var r=i[n[e]];!o&&(r||fce(r)||mce(r)||gce(r))&&(t=r),i[n[e]]=t}})),i}var the=function(){function e(t,n,r){ge(e,this,(function(e){e.app=new Epe(n,r),e.cloud=new wpe,e.user=new Upe(t,n,r),e.os=new Ope(n),e.web=new $pe(n,r);var o=new Bpe(t,r),i=new Tpe(n,r),a=new Wpe(n);e.loc=new Ipe,e.device=new xpe;var s=new vpe(r,n);e.session=new mpe;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),tue(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),nue(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new Hpe(n),d()),l=!(n||{}).eventContainExtFields;function u(){var t=e.session;if(t&&fce(t.customId))return t.customId;s.update();var n=s.automaticSession;if(n){var r=n.getId();r&&fce(r)&&(t.automaticId=r)}return t.automaticId}function d(){var e=c;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||c),e}e.getTraceCtx=function(){return c},e.getSessionId=u,e.applyApplicationContext=function(t){var n,r=e.app;ehe(4,t,Zde,((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),l)},e.applyUserContext=function(t){var n,r=e.user;ehe(0,t,$de,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),l)},e.applyWebContext=function(t){var n,r=e.web;ehe(3,t,Jde,((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),l)},e.applyOsContext=function(t){var n,r=e.os;ehe(5,t,epe,((n={})[0]=r.name,n[1]=r.ver,n),l)},e.applySdkContext=function(e){var t;ehe(6,e,tpe,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),l)},e.applyIntWebContext=function(e){var t;ehe(7,e,npe,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),l)},e.applyUtcContext=function(e){var t,n=((t={})[0]=a.popSample,t);a.eventFlags>0&&(n[1]=a.eventFlags),ehe(8,e,rpe,n,l)},e.applyLocContext=function(t){var n;ehe(9,t,ope,((n={})[0]=e.loc.tz,n),l)},e.applySessionContext=function(e){var t;ehe(4,e,ipe,((t={})[0]=u(),t),l)},e.applyDeviceContext=function(t){var n,r=e.device;ehe(1,t,ape,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),l)},e.applyCloudContext=function(t){var n,r=e.cloud;ehe(10,t,spe,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),l)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=d();r&&ehe(2,e,cpe,((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();nce(o)||(r[2]=o),ehe(11,e,lpe,r,!1)}}}))}return e.__ieDyn=1,e}();var nhe=[Xde[4],Xde[0],Xde[3],Xde[5],Xde[6],Xde[7],Xde[8],Xde[9],Xde[1],Xde[2],Xde[11],Xde[10]],rhe=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",ge(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 the(r,o,i),i&&i.setTraceCtx&&i.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,i){Vde(t,e.identifier),i=e._getTelCtx(i);var a,s,c=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},bce(nhe,(function(e){c[e]=c[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)),bce(xce(c),(function(e){0===xce(c[e]).length&&delete c[e]})),a=r,s=t.data,a&&cce(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 W(t,e),t.__ieDyn=1,t}(Bue),ohe=rhe,ihe=function(e){var t={};return cce(e,(function(e,n){t[e]=n,t[n]=e})),Tce(t)}({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),ahe="REAL_TIME",she="",che="POST",lhe="drop",uhe="send",dhe="requeue",phe="rspFail",hhe="application/x-json-stream",fhe="cache-control",mhe="content-type",ghe="kill-duration",vhe="time-delta-millis",yhe="client-version",bhe="client-id",_he="time-delta-to-apply-millis",Che="upload-time",Ehe="apikey",whe="AuthMsaDeviceTicket",xhe="AuthXToken";function khe(e){var t=(e.ext||{}).intweb;return t&&Pde(t.msfpc)?t.msfpc:null}function She(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=khe(e[n]);return t}var The=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=She(r);o.iKey=function(){return t},o.Msfpc=function(){return i||she},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=khe(e)),!0)},o.split=function(n,o){var a;if(n<r.length){var s=r.length-n;nce(o)||(s=o<s?o:s),a=r.splice(n,s),i=She(r)}return new e(t,a)}}return e.create=function(t,n){return new e(t,n)},e}(),Ihe=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",i=!1;ge(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}(),Ahe=Ihe,Phe=function(){function e(){var t={};ge(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&bce(e,(function(e){t.push(Cce(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]]=Ace()+o}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=Cce(e);return void 0!==n[r]&&n[r]>Ace()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),Dhe=Phe;function Rhe(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var Mhe,Nhe=2e6,Lhe=Math.min(Nhe,65e3),Ohe=/\./,Fhe=function(){function e(t,n,r,o){var i="data",a="baseData",s=!!o,c=n,l={};ge(e,this,(function(e){function n(e,t,o,i,a,u,d){cce(e,(function(e,p){var h=null;if(p||Pde(p)){var f=o,m=e,g=a,v=t;if(s&&!i&&Ohe.test(e)){var y=e.split("."),b=y.length;if(b>1){g&&(g=g.slice());for(var _=0;_<b-1;_++){var C=y[_];v=v[C]=v[C]||{},f+="."+C,g&&g.push(C)}m=y[b-1]}}var E=i&&function(e,t){var n=l[e];return void 0===n&&(e.length>=7&&(n=uce(e,"ext.metadata")||uce(e,"ext.web")),l[e]=n),n}(f);if(h=!E&&c&&c.handleField(f,m)?c.value(f,m,p,r):Mde(m,p,r)){var w=h.value;if(v[m]=w,u&&u(g,m,h),d&&"object"===typeof w&&!pce(w)){var x=g;x&&(x=x.slice()).push(m),n(p,w,f+"."+m,i,x,u,d)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:she,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&&qce(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,c=[],l=[],u=n.isBeacon,d=u?65e3:3984588,p=u?Lhe:Nhe,h=0,f=0;h<t.length;){var m=t[h];if(m){if(a>=o){n.overflow=r.split(h);break}var g=e.getEventBlob(m);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,++f>20&&(i.substr(0,1),f=0),s=!0,a++}else g?c.push(m):l.push(m),t.splice(h,1),h--}h++}if(c&&c.length>0&&n.sizeExceed.push(The.create(r.iKey(),c)),l&&l.length>0&&n.failedEvts.push(The.create(r.iKey(),l)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var y=r.iKey();-1===_ce(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 qce(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+Dde(e.iKey);var r={},o=e.ext;o&&(t.ext=r,cce(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var s=t.data={};s.baseType=e.baseType;var c=s.baseData={};return n(e.baseData,c,a,!1,[a],(function(e,t,n){Bhe(r,e,t,n)}),true),n(e.data,s,i,!1,[],(function(e,t,n){Bhe(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(bke){return null}}}))}return e.__ieDyn=1,e}();function Bhe(e,t,n,r){if(r&&e){var o=Nde(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 c=t[s];a[c]||(a[c]={f:{}});var l=a[c].f;l||(l=a[c].f={}),a=l}a=a[n]={},pce(r.value)?a.a={t:o}:a.t=o}}}var Hhe="&NoResponseBody=true",zhe=((Mhe={})[1]=dhe,Mhe[100]=dhe,Mhe[200]="sent",Mhe[8004]=lhe,Mhe[8003]=lhe,Mhe),Vhe={},Uhe={};function Whe(e,t,n){Vhe[e]=t,!1!==n&&(Uhe[t]=e)}function jhe(e){try{return e.responseText}catch(bke){}return she}function qhe(e,t){var n=!1;if(e&&t){var r=xce(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&oce(t,a)&&a.toLowerCase()===o){n=!0;break}}}return n}function Ghe(e,t,n,r){t&&n&&n.length>0&&(r&&Vhe[t]?(e.hdrs[Vhe[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function Khe(e,t){return t&&(mce(t)?e=[t].concat(e):pce(t)&&(e=t.concat(e))),e}Whe(whe,whe,!1),Whe(yhe,yhe),Whe(bhe,"Client-Id"),Whe(Ehe,Ehe),Whe(_he,_he),Whe(Che,Che),Whe(xhe,xhe);var Yhe=function(){function e(t,n,r,o,i){this._responseHandlers=[];var a,s,c,l,u,d,p,h,f,m,g="?cors=true&"+mhe.toLowerCase()+"="+hhe,v=new Dhe,y=!1,b=new Ahe,_=!1,C=0,E=!0,w=[],x={},k=[],S=null,T=!1,I=!1,P=!1;ge(e,this,(function(e){var D=!0;function R(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?ble()?r=M:_le()&&(r=L):2===n&&yle(t)&&(!t||t&&!h)?r=N:_&&3===n&&vle()&&(r=F),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function M(e,t,n){var r=new XDomainRequest;r.open(che,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=jhe(r);O(t,200,{},e),Q(e)},r.onerror=function(){O(t,400,{})},r.ontimeout=function(){O(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,c=((r={body:e.data,method:che}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(c.keepalive=!0,2===e._sendReason&&(a=!0,m&&(o+=Hhe))),D&&(c.credentials="include"),e.headers&&xce(e.headers).length>0&&(c.headers=e.headers),fetch(o,c).then((function(e){var n={},r=she,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),s||(s=!0,O(t,e.status,n,r),Q(r))})).catch((function(e){s||(s=!0,O(t,0,{}))})),a&&!s&&(s=!0,O(t,200,{})),!s&&e.timeout>0&&i.set((function(){s||(s=!0,O(t,500,{}))}),e.timeout)}function L(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]=Cce(r))}return e}function i(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(fce(e)){bce(Cce(e).split(/[\r\n]+/),(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=Cce(e.substring(0,n)).toLowerCase(),o=Cce(e.substring(n+1));t[r]=o}else t[Cce(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,vhe),t=o(t,e,ghe),t=o(t,e,"kill-duration-seconds")),t}function a(e,n){O(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(bke){}}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,Ide,n),s.open(e,t,!o),n&&a(s,Ide,n),!o&&i&&a(s,"timeout",i),s}(che,r,D,!0,n,e.timeout);cce(e.headers,(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=jhe(s);a(s,e),Q(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function O(e,t,n,r){try{e(t,n,r)}catch(bke){Rle(s,2,518,gle(bke))}}function F(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(m?Hhe:she);try{var a=lle();if(!a.sendBeacon(i,e.data))if(o){var c=[];bce(o.batches,(function(e){if(c&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!a.sendBeacon(i,S.getEventBlob(t[n]))){c.push(e.split(n));break}}else c.push(e.split(0))})),X(c,8003,o.sendType,!0)}else r=0}catch(l){Mle(s,"Failed to send telemetry using sendBeacon API. Ex:"+gle(l)),r=0}finally{O(t,r,{},she)}}function B(e){return 2===e||3===e}function H(e){return I&&B(e)&&(e=2),e}function z(){return!y&&C<n}function V(){var e=k;return k=[],e}function U(e,t,n){var r=!1;return e&&e.length>0&&!y&&c[t]&&S&&(r=0!==t||z()&&(n>0||b.allowRequestSending())),r}function W(e){var t={};return e&&bce(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function j(e,n,r,o,i){if(e&&0!==e.length)if(y)X(e,1,o);else{o=H(o);try{var a=e,u=0!==o;qce(l,(function(){return"HttpManager:_sendBatches"}),(function(a){a&&(e=e.slice(0));for(var s=[],l=null,d=Bde(),p=c[o]||(u?c[1]:c[0]),h=p&&p._transport,m=f&&(I||B(o)||3===h||p._isSync&&2===h);U(e,o,n);){var g=e.shift();g&&g.count()>0&&(v.isTenantKilled(g.iKey())?s.push(g):(l=l||S.createPayload(n,r,u,m,i,o),S.appendPayload(l,g,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,K(l,d,Bde(),i),d=Bde(),l=null):(K(l,d,Bde(),i),d=Bde(),e=[g].concat(e),l=null)))}l&&K(l,d,Bde(),i),e.length>0&&(k=e.concat(k)),X(s,8004,o)}),(function(){return{batches:W(a),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:i,useSendBeacon:B(o),sendType:o}}),!u)}catch(d){Rle(s,2,48,"Unexpected Exception sending batch: "+gle(d))}}}function q(e,t){var n={url:g,hdrs:{},useHdrs:!1};t?(n.hdrs=Fde(n.hdrs,x),n.useHdrs=xce(n.hdrs).length>0):cce(x,(function(e,t){Uhe[e]?Ghe(n,Uhe[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),Ghe(n,bhe,"NO_AUTH",t),Ghe(n,yhe,Tde,t);var r=she;bce(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),Ghe(n,Ehe,r,t),Ghe(n,Che,Ace().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 she}(e);if(Pde(o)&&(n.url+="&ext.intweb.msfpc="+o),b.shouldAddClockSkewHeaders()&&Ghe(n,_he,b.getClockSkewHeaderValue(),t),l.getWParam){var i=l.getWParam();i>=0&&(n.url+="&w="+i)}for(var a=0;a<w.length;a++)n.url+="&"+w[a].name+"="+w[a].value;return n}function G(e,t,n){e[t]=e[t]||{},e[t][a.identifier]=n}function K(t,n,o,i){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var u=!!e.sendHook,f=c[t.sendType];!B(t.sendType)&&t.isBeacon&&2===t.sendReason&&(f=c[2]||c[3]||f);var m=P;(t.isBeacon||3===f._transport)&&(m=!1);var g=q(t,m);m=m||g.useHdrs;var y=Bde();qce(l,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var c=0;c<t.batches.length;c++)for(var _=t.batches[c].events(),w=0;w<_.length;w++){var x=_[w];if(T){var k=x.timings=x.timings||{};G(k,"sendEventStart",y),G(k,"serializationStart",n),G(k,"serializationCompleted",o)}x.sendAttempt>0?x.sendAttempt++:x.sendAttempt=1}X(t.batches,1e3+(i||0),t.sendType,!0);var S={data:t.payloadBlob,urlString:g.url,headers:g.hdrs,_thePayload:t,_sendReason:i,timeout:d,disableXhrSync:p,disableFetchKeepAlive:h};m&&(qhe(S.headers,fhe)||(S.headers["cache-control"]="no-cache, no-store"),qhe(S.headers,mhe)||(S.headers["content-type"]=hhe));var P=null;f&&(P=function(n){b.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var s=9e3,c=null,l=!1,u=!1;try{var d=!0;if(typeof t!==A){if(n){b.setClockSkew(n["time-delta-millis"]);var p=n["kill-duration"]||n["kill-duration-seconds"];bce(v.setKillSwitchTenants(n["kill-tokens"],p),(function(e){bce(o.batches,(function(t){if(t.iKey()===e){c=c||[];var n=t.split(0);o.numEvents-=n.count(),c.push(n)}}))}))}if(200==t||204==t)return void(s=200);((f=t)>=300&&f<500&&408!=f&&429!=f||501==f||505==f||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<r?(l=!0,Y((function(){0===o.sendType&&C--,j(o.batches,h+1,o.isTeardown,I?2:o.sendType,5)}),I,Rhe(h))):(u=!0,I&&(s=8001)))}}finally{l||(b.setClockSkew(),function(t,n,r,o){try{o&&a._backOffTransmission(),200===n&&(o||t.isSync||a._clearBackOff(),function(e){if(T){var t=Bde();bce(e,(function(e){e&&e.count()>0&&function(e,t){T&&bce(e,(function(e){G(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),X(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(C--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,s,i,u)),X(c,8004,o.sendType)}var f}(n,o,t,i)},c=t.isTeardown||t.isSync;try{f.sendPOST(n,o,c),e.sendListener&&e.sendListener(S,n,c,t.isBeacon)}catch(l){Mle(s,"Unexpected exception sending payload. Ex:"+gle(l)),O(o,0,{})}}),qce(l,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(P)if(0===t.sendType&&C++,u&&!t.isBeacon&&3!==f._transport){var n={data:S.data,urlString:S.urlString,headers:Fde({},S.headers),timeout:S.timeout,disableXhrSync:S.disableXhrSync,disableFetchKeepAlive:S.disableFetchKeepAlive},r=!1;qce(l,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,E||e._thePayload||(e._thePayload=e._thePayload||S._thePayload,e._sendReason=e._sendReason||S._sendReason),P(e)}),t.isSync||t.isTeardown)}catch(o){r||P(S)}}))}else P(S)}))}),(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 Y(e,t,n){t?e():i.set(e,n)}function Q(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(bke){Rle(s,1,519,"Response handler failed: "+bke)}if(t){var o=JSON.parse(t);Pde(o.webResult)&&Pde(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=zhe[e];Pde(t)||(t="oth",e>=9e3&&e<=9999?t=phe:e>=8e3&&e<=8999?t=lhe:e>=1e3&&e<=1999&&(t=uhe));return t}(t)];if(i){var a=0!==n;qce(l,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){Y((function(){try{i.call(o,e,t,a,n)}catch(bke){Rle(s,1,74,"send request notification failed: "+bke)}}),r||a,0)}),(function(){return{batches:W(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,P=!!tce(o.avoidOptions)||!o.avoidOptions,l=t,u=t.getCookieMgr(),T=!l.config.disableEventTimings;var v=!!l.config.enableCompoundKey;s=(a=n).diagLog();var y=o.valueSanitizer,b=o.stringifyObjects;tce(o.enableCompoundKey)||(v=!!o.enableCompoundKey),d=o.xhrTimeout,p=!!o.disableXhrSync,h=!!o.disableFetchKeepAlive,m=!1!==o.addNoResponse,_=!fle(),S=new Fhe(l,y,b,v),nce(o.useSendBeacon)||(_=!!o.useSendBeacon);var C=r,w=o.alwaysUseXhrOverride?r:null,x=o.alwaysUseXhrOverride?r:null,k=[3,2];if(!r){E=!1;var I=ule();I&&I.protocol&&"file:"===I.protocol.toLowerCase()&&(D=!1);var A=[];fle()?(A=[2,1],k=[2,1,3]):A=[1,2,3],(r=R(A=Khe(A,o.transports),!1))||Mle(s,"No available transport to send events"),C=R(A,!0)}w||(w=R(k=Khe(k,o.unloadTransports),!0)),f=!E&&(_&&vle()||!h&&yle(!0)),(i={})[0]=r,i[1]=C||R([1,2,3],!0),i[2]=w||C||R([1],!0),i[3]=x||R([2,3],!0)||C||R([1],!0),c=i},e._getDbgPlgTargets=function(){return[c[0],v,S,c]},e.addQueryStringParameter=function(e,t){for(var n=0;n<w.length;n++)if(w[n].name===e)return void(w[n].value=t);w.push({name:e,value:t})},e.addHeader=function(e,t){x[e]=t},e.canSendRequest=function(){return z()&&b.allowRequestSending()},e.sendQueuedRequests=function(e,t){tce(e)&&(e=0),I&&(e=H(e),t=2),U(k,e,0)&&j(V(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!y&&0===C&&0===k.length},e.setUnloading=function(e){I=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&&j(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&&(nce(t)&&(t=1),I&&(t=H(t),n=2),j([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Qhe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Xhe(e){clearTimeout(e)}function Zhe(e,t){return{set:e||Qhe,clear:t||Xhe}}var Jhe="eventsDiscarded",$he=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,c,l,u,d=!1,p=[],h=null,f=!1,m=0,g=500,v=0,y=1e4,b={},_=ahe,C=null,E=null,w=0,x=0,k={},S=-1,T=!0,I=!1,A=6,P=2;return ge(t,r,(function(e,t){function r(e){"beforeunload"!==(e||ile().event).type&&(I=!0,i.setUnloading(I)),H(2,2)}function D(e){I=!1,i.setUnloading(I)}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,T&&(e.ext=Hce(e.ext),e.baseData&&(e.baseData=Hce(e.baseData)),e.data&&(e.data=Hce(e.data))),e.sync)if(w||f)e.latency=3,e.sync=!1;else if(i)return T&&(e=Hce(e)),void i.sendSynchronousBatch(The.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=v,o=y;4===n&&(r=m,o=g);var a=!1;if(r<o)a=!U(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,r){for(;n<=t;){var o=z(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?m-=a:v-=a,Z(Jhe,[i],ihe.QueueFull),!0}n++}return W(),!1}(e.iKey,e.latency,s,c)&&(a=!U(e,t))}a&&X(Jhe,[e],ihe.QueueFull)}function M(e,t,n){var r=j(e,t,n);return i.sendQueuedRequests(t,n),r}function N(){return v>0}function L(){if(S>=0&&j(S,0,c)&&i.sendQueuedRequests(0,c),m>0&&!E&&!f){var e=b[_][2];e>=0&&(E=F((function(){E=null,M(4,0,1),L()}),e))}var t=b[_][1];!C&&!h&&t>=0&&!f&&(N()?C=F((function(){C=null,M(0===x?3:1,0,1),x++,x%=2,L()}),t):x=0)}function O(){n=null,d=!1,p=[],h=null,f=!1,m=0,g=500,v=0,y=1e4,b={},_=ahe,C=null,E=null,w=0,x=0,o=null,k={},a=void 0,s=0,S=-1,c=null,T=!0,I=!1,A=6,P=2,l=null,u=Zhe(),i=new Yhe(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 F(e,t){0===t&&w&&(t=1);var n=1e3;return w&&(n=Rhe(w-1)),u.set(e,t*n)}function B(){return null!==C&&(u.clear(C),C=null,x=0,!0)}function H(e,t){B(),h&&(u.clear(h),h=null),f||M(1,e,t)}function z(e,t,n){var r=k[t];r||(r=k[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=The.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function V(t,n){i.canSendRequest()&&!w&&(a>0&&v>a&&(n=!0),n&&null==h&&e.flush(t,null,20))}function U(e,t){T&&(e=Hce(e));var n=e.latency,r=z(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(v++,t&&0===e.sendAttempt&&V(!e.sync,s>0&&r.count()>=s)):m++,!0)}function W(){for(var e=0,t=0,n=function(n){var r=k[n];r&&r.batches&&bce(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);v=t,m=e}function j(t,n,r){var o=!1,a=0===n;return!a||i.canSendRequest()?qce(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&&(bce(r.batches,(function(t){i.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?m-=t.count():v-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&X(Jhe,e,ihe.KillSwitch),o&&S>=t&&(S=-1,c=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(S=S>=0?Math.min(S,t):t,c=Math.max(c,r)),o}function q(e,t){M(1,0,t),W(),G((function(){e&&e(),p.length>0?h=F((function(){h=null,q(p.shift(),t)}),0):(h=null,L())}))}function G(e){i.isCompletelyIdle()?e():h=F((function(){h=null,G(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=A;I&&(o=P),bce(t,(function(t){t&&t.count()>0&&bce(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(Vde(t,e.identifier),R(t,!1)):r.push(t))}))})),r.length>0&&X(Jhe,r,ihe.NonRetryableStatus),I&&H(2,2)}function Q(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(bke){Rle(e.diagLog(),1,74,t+" notification failed: "+bke)}}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&Q(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&&bce(t,(function(t){t&&t.count()>0&&Q(e,[t.events()].concat(n))}))}function J(e,t,n){e&&e.length>0&&Q("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function $(e,t){Z("eventsSent",e,t),L()}function ee(e,t){Z(Jhe,e,t>=8e3&&t<=8999?t-8e3:ihe.Unknown)}function te(e){Z(Jhe,e,ihe.NonRetryableStatus),L()}function ne(e,t){Z(Jhe,e,ihe.Unknown),L()}function re(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,y/6)}O(),e._getDbgPlgTargets=function(){return[i]},e.initialize=function(s,c,d){qce(c,(function(){return"PostChannel:initialize"}),(function(){var p=c;t.initialize(s,c,d);try{c.addUnloadCb;l=fde(Xle(e.identifier),c.evtNamespace&&c.evtNamespace());var h=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),u=Zhe(n.setTimeoutOverride,n.clearTimeoutOverride),T=!n.disableOptimizeObj&&!!rle("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),mce(n.maxEventRetryAttempts)&&(A=n.maxEventRetryAttempts),mce(n.maxUnloadEventRetryAttempts)&&(P=n.maxUnloadEventRetryAttempts),re(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),Pde(s.anonCookieName)&&i.addQueryStringParameter("anoncknm",s.anonCookieName),i.sendHook=n.payloadPreprocessor,i.sendListener=n.payloadListener;var f=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=c.getNotifyMgr(),i.initialize(f,e.core,e,o,n);var m=s.disablePageUnloadEvents||[];_de(r,m,l),Cde(r,m,l),Ede(D,s.disablePageShowEvents,l)}catch(bke){throw e.setInitialized(!1),bke}}),(function(){return{coreConfig:s,core:c,extensions:d}}))},e.processTelemetry=function(t,r){Vde(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),I?H(2,2):L()),e.processNext(a,r)},e._doTeardown=function(e,t){H(2,2),d=!0,i.teardown(),bde([tde,ede,Jue],null,l),function(e,t){var n=fde(nde,t);bde([Jue],e,n),bde([Zue],null,n)}(null,l),function(e,t){var n=fde(rde,t);bde([$ue],e,n),bde([Zue],null,n)}(null,l),O()},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&&bce(o.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}V(!0,n)},e.pause=function(){B(),f=!0,i.pause()},e.resume=function(){f=!1,i.resume(),L()},e.addResponseHandler=function(e){i._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){B(),K(),_=ahe,L(),cce(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),!f)if(n=n||1,e)null==h?(B(),j(1,0,n),h=F((function(){h=null,q(t,n)}),0)):p.push(t);else{var r=B();M(1,1,n),null!==t&&void 0!==t&&t(),r&&L()}},e.setMsaAuthTicket=function(e){i.addHeader(whe,e)},e.hasEvents=N,e._setTransmitProfile=function(e){_!==e&&void 0!==b[e]&&(B(),_=e,L())},e._backOffTransmission=function(){w<4&&(w++,B(),L())},e._clearBackOff=function(){w&&(w=0,B(),L())},kce(e,"_setTimeoutOverride",(function(){return u.set}),(function(e){u=Zhe(e,u.clear)})),kce(e,"_clearTimeoutOverride",(function(){return u.clear}),(function(e){u=Zhe(u.set,e)}))})),r}return W(t,e),t.__ieDyn=1,t}(Bue),efe=$he,tfe=function(e){function t(){var n,r,o=e.call(this)||this;return ge(t,o,(function(e,t){e.initialize=function(e,i){var a=o;qce(o,(function(){return"ApplicationInsights:initialize"}),(function(){n=new efe;var o=[r=new ohe];i&&(o=o.concat(i)),e||Lce("You must provide a config object!");var s=e.channels;if(s&&s.length>0){for(var c=!1,l=0;l<s[0].length;l++)if(s[0][l].identifier===n.identifier){c=!0;break}c||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){Rle(a.logger,1,514,"Failed to initialize SDK."+gle(d))}}),(function(){return{config:e,extensions:i}}))},e.getPropertyManager=function(){return r},e.getPostChannel=function(){return n}})),o}return W(t,e),t.__ieDyn=1,t}(jde),nfe=tfe,rfe=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)||[Hne.AcquireTokenSilent,Hne.SsoSilent,Hne.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 nfe,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=One(One({},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=[gae.AzurePublic,gae.AzurePpe],e.instrumentationKey="d634483c08244c1ca09af2b2d952c92e-ab2bba03-2ba3-49d8-a82c-ef6da750d8ab-7725",e}(),ofe=function(e){function t(t,n){var r=e.call(this,t)||this,o=new rfe(r.getLogger(),null===n||void 0===n?void 0:n.performanceTelemetryConfiguration);return r.addPerformanceCallback(o.getPerformanceTelemetryCallback()),r}return function(e,t){function n(){this.constructor=e}Lne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Tse),ife=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}}},afe=function(e){return"https://".concat(e.amcRedirectDomain,"/auth/complete-client-signin-oauth")},sfe=__webpack_require__(77162),cfe=__webpack_require__.n(sfe),lfe={initialize:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(uie.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw uie.createStubPcaInstanceCalledError()},getLogger:function(){throw uie.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw uie.createStubPcaInstanceCalledError()}},ufe=function(){function e(){}return e.getInteractionStatusFromEvent=function(e,t){switch(e.eventType){case Nae.LOGIN_START:return _ne.Login;case Nae.SSO_SILENT_START:return _ne.SsoSilent;case Nae.ACQUIRE_TOKEN_START:if(e.interactionType===bne.Redirect||e.interactionType===bne.Popup)return _ne.AcquireToken;break;case Nae.HANDLE_REDIRECT_START:return _ne.HandleRedirect;case Nae.LOGOUT_START:return _ne.Logout;case Nae.SSO_SILENT_SUCCESS:case Nae.SSO_SILENT_FAILURE:if(t&&t!==_ne.SsoSilent)break;return _ne.None;case Nae.LOGOUT_END:if(t&&t!==_ne.Logout)break;return _ne.None;case Nae.HANDLE_REDIRECT_END:if(t&&t!==_ne.HandleRedirect)break;return _ne.None;case Nae.LOGIN_SUCCESS:case Nae.LOGIN_FAILURE:case Nae.ACQUIRE_TOKEN_SUCCESS:case Nae.ACQUIRE_TOKEN_FAILURE:if(e.interactionType===bne.Redirect||e.interactionType===bne.Popup){if(t&&t!==_ne.Login&&t!==_ne.AcquireToken)break;return _ne.None}}return null},e}(),dfe={instance:lfe,inProgress:_ne.None,accounts:[],logger:new Cie({})},pfe=(0,Fd.createContext)(dfe);pfe.Consumer;function hfe(e,t){if(e.length!==t.length)return!1;var n=i7(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 ffe(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 mfe,gfe="1.5.4";!function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"}(mfe||(mfe={}));var vfe=function(e,t){var n=t.type,r=t.payload,o=e.inProgress;switch(n){case mfe.UNBLOCK_INPROGRESS:e.inProgress===_ne.Startup&&(o=_ne.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case mfe.EVENT:var i=r.message,a=ufe.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||hfe(s,e.accounts)?o!==e.inProgress?YC(YC({},e),{},{inProgress:o}):hfe(s,e.accounts)?e:YC(YC({},e),{},{accounts:s}):YC(YC({},e),{},{inProgress:o,accounts:s})};function yfe(e){var t=e.instance,n=e.children;(0,Fd.useEffect)((function(){t.initializeWrapperLibrary(Pne.React,gfe)}),[t]);var r=(0,Fd.useMemo)((function(){return t.getLogger().clone("@azure/msal-react",gfe)}),[t]),o=_7((0,Fd.useReducer)(vfe,void 0,(function(){return{inProgress:_ne.Startup,accounts:t.getAllAccounts()}})),2),i=o[0],a=o[1];(0,Fd.useEffect)((function(){var e=t.addEventCallback((function(e){a({payload:{instance:t,logger:r,message:e},type:mfe.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:mfe.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 Bd().createElement(pfe.Provider,{value:s},n)}var bfe=function(){return(0,Fd.useContext)(pfe)};function _fe(e,t){return t&&(t.homeAccountId||t.localAccountId||t.username)?ffe(e.getAllAccounts(),t):e.getActiveAccount()}function Cfe(e){var t=bfe(),n=t.instance,r=t.inProgress,o=t.logger,i=_7((0,Fd.useState)((function(){return _fe(n,e)})),2),a=i[0],s=i[1];return(0,Fd.useEffect)((function(){s((function(t){var r=_fe(n,e);return tae.accountInfoIsEqual(t,r,!0)?t:(o.info("useAccount - Updating account"),r)}))}),[r,e,n,o]),a}var Efe,wfe=(0,Fd.createContext)({signInName:""}),xfe=function(e){var t=e.instance,n=e.msalAuthConfig,r=e.children,o=r;return Wm("GlobalMsalJSAccountSelector")&&(o=Bd().createElement(Sfe,null,r)),Bd().createElement(yfe,{instance:t},Bd().createElement(wfe.Provider,{value:n},o))},kfe=function(){var e,t=bfe().accounts,n=(0,Fd.useContext)(wfe).signInName;e=Cfe(t.find((function(e){return e.username===n})));var r=Cfe(t[0]);return e||n||(e=r),e},Sfe=function(e){var t=e.children,n=bfe().instance,r=kfe();return(0,Fd.useEffect)((function(){n.setActiveAccount(r)}),[n,r]),Bd().createElement(Bd().Fragment,null,t)},Tfe={operation:"GLOBAL.MSALJS.LOGIN"},Ife={operation:"GLOBAL.MSALJS.ACQUIRE-TOKEN-SILENT"},Afe=function(e){return Mm(e,Tfe)},Pfe="failed",Dfe="success",Rfe="unknown";!function(e){e.Popup="popup",e.Redirect="redirect",e.None="none"}(Efe||(Efe={}));var Mfe;function Nfe(e){var t=e,n=[];return{setValue:function(e){t!==e&&(t=e,Gd().unstable_batchedUpdates((function(){n.forEach((function(t){return t(e)}))})))},useValue:function(){var e=function(e){var t=(0,Fd.useState)(e)[1];return(0,Fd.useCallback)((function(e){t(e)}),[])}(t);return Wd((function(){n=n.concat(e)})),Ud((function(){n=n.filter((function(t){return t!==e}))})),t}}}var Lfe=function(){return Mfe.useValue()},Ofe={};var Ffe="/auth/acquire-onbehalf-of-token",Bfe="GLOBAL.OAUTH.GETTOKENS",Hfe={},zfe=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=Vfe(t),n&&eg(Hfe,r),[2,tg(Hfe,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,Am(Ffe,{operation:Bfe},{params:{scopes:t}})];case 1:return[2,e.sent().data]}}))}))}))]}))}))},Vfe=function(e){return"token_".concat(e)},Ufe=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,zfe(t)];case 1:return n=e.sent(),(r=Wfe(n))?jfe(r.expiration)?[3,3]:[4,zfe(t,!0)]:(function(e){eg(Hfe,e)}(Vfe(t)),[2,Promise.reject({message:qfe(n)})]);case 2:if(n=e.sent(),!(r=Wfe(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]}}))}))},Wfe=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"}}},jfe=function(e){return new Date(e).valueOf()>(new Date).valueOf()},qfe=function(e){return e&&e.length>0&&!e[0].isSuccess&&e[0].errorMessage?e[0].errorMessage:"No access token"},Gfe=[],Kfe=[],Yfe=!1;function Qfe(e,t,n){if(!e)throw new Error("CookieManager.getCookie - name argument should not be false-y");if(eme(),t&&!Jfe(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 Xfe(t){if(!t)throw new Error("CookieManager.setCookie - cookie argument should not be false-y");if(eme(),t.requiresConsent&&!Jfe(t.category))return Gfe=(0,e.__spreadArray)((0,e.__spreadArray)([],Gfe,!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),c="".concat(a,"=").concat(s).concat(n).concat(o,";path=").concat(t.path).concat(i);return document.cookie=c,t.requiresConsent&&(Kfe=(0,e.__spreadArray)((0,e.__spreadArray)([],Kfe,!0),[t],!1)),!0}function Zfe(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),Xfe({name:e,value:"",requiresConsent:!1,expiresOn:n,domain:t})}function Jfe(e){return!window.siteConsent||window.siteConsent.getConsentFor(null!==e&&void 0!==e?e:WcpConsent.consentCategories.Required)}function $fe(t){var n=[],r=[];Gfe.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)})),Gfe=(0,e.__spreadArray)([],r,!0);var o=[],i=[];Kfe.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)})),Kfe=(0,e.__spreadArray)([],i,!0),n.forEach((function(e){return Xfe(e)})),o.forEach((function(e){Zfe(e.name)})),Gfe=(0,e.__spreadArray)((0,e.__spreadArray)([],Gfe,!0),o,!0),window.clarity&&t.Analytics&&window.clarity("consent")}function eme(){!Yfe&&window.siteConsent&&(window.siteConsent.onConsentChanged($fe),Yfe=!0)}var tme,nme="profile",rme="".concat(nme,".engaged"),ome="".concat(nme,".unengaged"),ime=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=Qfe("mock-scenarios",!1).split(",").filter((function(t){return-1!==t.indexOf(e)}));return t.length>0?t[0]:""}(nme),n){case rme:return[2,{pictureStatus:"hasPicture",url:"https://account.microsoft.com/Resources/Images/testProfilePicture.png"}];case ome:return[2,{pictureStatus:"noProfilePicture",url:""}]}e.label=1;case 1:return e.trys.push([1,3,,4]),t.userId&&"0"!==t.userId?[4,Am("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]}}))}))},ame=function(t){var n=t.operationName,r=t.userIds,o=nm(),i=(0,Fd.useState)({}),a=i[0],s=i[1],c=function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,i,a,c,l,u,d,p,h,f,m,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,Ufe("MSGraphUserReadAll")];case 1:for(t=e.sent(),i=[],a={},c=function(e){i.push(ime({accessToken:t.token,userId:e}).then((function(t){a[e]=t})))},l=0,u=r;l<u.length;l++)d=u[l],c(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,m=null===(y=null===(v=null===(g=(f=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=f.response)||void 0===b?void 0:b.status)?(o({name:n,status:"finished"}),m&&(window.location.href=m)):o({name:n,status:"update-failed",error:h}),[3,4];case 4:return[2]}}))}))};return(0,Fd.useEffect)((function(){c()}),[r]),{profilePictureData:a,reloadImages:c}},sme=Bd().createContext({initialPersonalInfo:void 0,initialProfilePhoto:void 0}),cme="GetPersonalInfoOperationName",lme="GetProfilePhotoOperationName",ume="account-leftnav",dme=function(e){return"".concat(ume,".").concat(e)},pme=function(t){var n=t.strings,r=t.selectedNavLink,o=t.getNavigationIconName,i=t.userIds,a=t.mainContentAnchor,s=(0,Fd.useContext)(sme),c=s.initialPersonalInfo,l=s.initialProfilePhoto,u=dme(cme),d=dme(lme),p=(0,Fd.useState)(""),h=p[0],f=p[1],m=(0,Fd.useState)(""),g=m[0],v=m[1],y=(0,Fd.useState)(""),b=y[0],_=y[1];(0,Fd.useEffect)((function(){var e;void 0!==c&&(f(c.fullName),v(c.signInName)),void 0!==l&&_(null===(e=l[i[0]])||void 0===e?void 0:e.url)}),[c,l]);var C={text:n.skipToMainContentText,"aria-label":n.skipToMainContentText,"data-bi-id":dme("bypass-blocks-button"),targetId:"main-content-landing-react"},E={"aria-label":n.ariaNavButton,"data-bi-id":dme("expand-collapse-nav-button"),removeNavButtonBorder:!0},w={imageUrl:b,fallback:"initials",operationData:{componentName:"leftNav.profile-column.persona",operationName:d},itemInteractiveProps:{"aria-label":n.ariaAddProfilePicture,"data-bi-id":"home.banner.profile-column.image.cta",itemInteraction:{interactionType:"withHref",href:n.editPictureLink.url}}},x={kind:"text",text:h,itemInteractiveProps:{"aria-label":Qd(n.ariaEditProfile,{fullName:h}),"data-bi-id":"home.banner.profile-column.title.cta",itemInteraction:{interactionType:"withHref",href:n.editNameLink.url}}},k={text:g,itemInteractiveProps:{"aria-label":Qd(n.ariaViewInbox,{email:g}),"data-bi-id":"home.banner.profile-column.subtitle.cta",itemInteraction:{interactionType:"withHref",href:n.viewInboxLink.url,target:"_blank"}}},S=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||"")}}})),T={navLinks:S,key:"leftnav-group"},I={bypassBlocksButton:C,expandCollapseNavButton:E,navHeader:{headerType:"profileHeader",persona:w,primaryInfo:x,secondaryInfo:k},navLinkGroups:[T],selectedNavLinkKey:r},A={bypassBlocksButton:C,expandCollapseNavButton:E,navHeader:{headerType:"profileHeaderShimmer"},navLinkGroups:[T],selectedNavLinkKey:r};return Bd().createElement(im,{operationData:{componentName:ume,operationName:u},firstLoadView:Bd().createElement(y2,(0,e.__assign)({},A)),updatingView:Bd().createElement(y2,(0,e.__assign)({},A)),finishedView:Bd().createElement(y2,(0,e.__assign)({},I)),failedView:Bd().createElement(y2,(0,e.__assign)({},I))})},hme=function(t){var n=t.strings,r=t.userIds,o=t.selectedNavLink,i=t.getPersonalInfo,a=t.getProfilePhoto,s=t.getNavigationIconName,c=t.mainContentAnchor,l=nm(),u=a({operationName:dme(lme),userIds:r}).profilePictureData,d=(0,Fd.useState)(void 0),p=d[0],h=d[1];return Wd((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:dme(cme),status:"first-load"}),[4,i()];case 1:return t=e.sent(),h(t),l({name:dme(cme),status:"finished"}),[3,3];case 2:return n=e.sent(),r=n,l({name:dme(cme),status:"failed",error:r}),[3,3];case 3:return[2]}}))}))})),Bd().createElement(sme.Provider,{value:{initialPersonalInfo:p,initialProfilePhoto:u}},Bd().createElement(pme,{strings:n,selectedNavLink:o,userIds:r,getNavigationIconName:s,mainContentAnchor:c}))},fme=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,tg(Ofe,"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,Am("".concat("/home/api").concat("/profile","/personal-info"),{operation:"".concat("GLOBAL.HOME.PROFILE",".GETPERSONALINFO")})];case 1:return[2,e.sent().data]}}))}))}))]}))}))];case 1:return[2,t.sent()]}}))}))},mme=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"}},gme=function(e){var t=e.strings,n=e.userIds,r=e.selectedNavLink;return Bd().createElement(hme,{strings:t,userIds:n,selectedNavLink:r,getPersonalInfo:fme,getProfilePhoto:ame,getNavigationIconName:mme,mainContentAnchor:"#main-content-landing-react"})},vme=function(t,n,r,o){return n&&t?Bd().createElement(gq,(0,e.__assign)({},r,{layoutType:"withNavBar",leftNavContainer:Bd().createElement(gme,(0,e.__assign)({},o))})):Bd().createElement(gq,(0,e.__assign)({},r,{layoutType:"withoutNavBar"}))},yme=function(){return tme.useValue()};function bme(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function _me(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bme(i,r,o,a,s,"next",e)}function s(e){bme(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Cme,Eme={},wme="get",xme="del";!function(e){e.Unauthorized="401",e.Conflict="409",e.PreconditionFailed="412",e.TooManyRequests="429"}(Cme||(Cme={}));var kme=function(e){return function(t){var n=h;return e.forEach((function(e){t.httpStatusCode===e&&(t.httpStatusCode="200",t.isSuccess=!0,n=f)})),n}};function Sme(e,t,n,r){return Pme("get",Am,e,t,n,{},r)}function Tme(e,t,n,r,o){return Pme("putOrPost",Pm,e,t,r,n,o)}function Ime(e,t,n,r,o){return Pme("putOrPost",Dm,e,t,r,n,o)}function Ame(e,t,n,r){return Pme("del",Rm,e,t,n,{},r)}function Pme(t,n,r,o,i,a,s){var c;return(0,e.__awaiter)(this,void 0,void 0,(function(){var l,u;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,6]),l=void 0,t!==wme&&t!==xme?[3,2]:[4,n(r,{operation:o},i||{},s||{})];case 1:return l=e.sent(),[3,4];case 2:return[4,n(r,{operation:o},a,i||{},s||{})];case 3:l=e.sent(),e.label=4;case 4:return[2,l.data];case 5:return u=e.sent(),401===(null===(c=u.response)||void 0===c?void 0:c.status)&&window.location.reload(),[2,Promise.reject(u)];case 6:return[2]}}))}))}function Dme(t,n,r,o,i,a){return(0,e.__awaiter)(this,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return t&&Rme(n),[4,tg(Eme,n,(function(){return Sme(r,o,i,a)}))];case 1:return[2,e.sent()]}}))}))}function Rme(e){eg(Eme,e)}var Mme,Nme="/privacy/api",Lme="".concat(Nme,"/test"),Ome="PRIVACY",Fme=[Cme.Unauthorized],Bme=kme(Fme),Hme="".concat(Nme,"/edge-autofill-data"),zme="".concat(Ome,".EDGEAUTOFILLDATA."),Vme=function(t){return void 0===t&&(t=""),(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 n=t?"?searchTerm=".concat(encodeURIComponent(t)):"",[4,Sme("".concat(Hme).concat(n),"".concat(zme,"GET"),{},{overrideRequestQosData:Bme})];case 1:return[2,e.sent()]}}))}))},Ume=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[4,Sme("".concat(Hme,"/next?nextLink=").concat(t),"".concat(zme,"GET.NEXT"),{},{overrideRequestQosData:Bme})];case 1:return[2,e.sent()]}}))}))},Wme=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[4,Ame("".concat(Hme,"/by-id?id=").concat(t),"".concat(zme,"DELETE.BYID"),{},{overrideRequestQosData:Bme})];case 1:return[2,e.sent()]}}))}))},jme=["location","browse","search","usage"],qme=401,Gme="show-all-dialog-body",Kme=["location","browse","search","usage","performance"];!function(e){e[e.location=0]="location",e[e.browse=1]="browse",e[e.search=2]="search",e[e.usage=3]="usage",e[e.performance=4]="performance",e[e.autofill=5]="autofill",e[e.appAccess=6]="appAccess",e[e.customDictionary=7]="customDictionary"}(Mme||(Mme={}));var Yme,Qme=["browse","search","usage"],Xme="FIRST_LOAD",Zme="LOAD_MORE",Jme="DELETE_BY_IDS",$me="DELETE_BY_DOMAIN",ege="RESET",tge="startTime_today",nge="/privacy",rge="/download-data",oge=2e3,ige=500,age="privacy",sge="".concat(age,".overview"),cge="".concat(sge,".intro"),lge="".concat(sge,".product-settings"),uge="".concat(age,".download-your-data"),dge="".concat(uge,".archive"),pge="".concat(uge,".create-archive-dialog"),hge="".concat(uge,".delete-archive-dialog"),fge="".concat(sge,".clear-all-dialog"),mge="".concat(sge,".show-all-dialog"),gge="".concat(age,".ad-settings"),vge="".concat(gge,".signed-in"),yge="".concat(age,".third-party-sharing"),bge="".concat(yge,".signed-in"),_ge="".concat(gge,".signed-out"),Cge="".concat(_ge,".third-party-ads"),Ege="".concat(age,".mac-address-opt-out"),wge="".concat(age,".office-settings"),xge="".concat(wge,".drawers"),kge="".concat(age,".timeline-v2"),Sge="".concat(kge,".clear-all-dialog"),Tge="Privacy",Ige="DeleteConfirm",Age="DeleteRetryAfterFailure",Pge="DeleteFailure",Dge="ManageRecurringDelete",Rge="download-data",Mge="personalized-ad-settings",Nge="ad-settings-signedout",Lge="third-party-ads",Oge="child-activity",Fge="thirdPartyAdsOptOut",Bge="3PAdsOptOut",Hge="userControls.recommendPeople.set",zge=function(e,t,n,r){jf({clickId:"".concat(t,".").concat(e?"opening":"closing"),pageArea:n}),null===r||void 0===r||r()},Vge=1e9,Uge=1e6,Wge=function(e,t,n,r,o,i){var a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=Lfe(),c=yme().sharedContent,l=["s","m"].includes(sS()),u=Lfe(),d=u.areaPrefix,p="".concat(e,".drawer"),h=qge(o,i,c,s.language),f=-1!==o,m=Bd().createElement(DT,{variant:"headerText"},n);f&&l&&(m=Bd().createElement(AA,{textWithTokens:"{0} {1}",tokensAndValues:{0:Bd().createElement(DT,{variant:"headerText"},n),1:Bd().createElement(DT,{variant:"bodyPrimaryText"},"(",h,")")}}));var g=[{column:Bd().createElement(iM,{media:{size:"sm",image:{imageType:"image",src:t.src},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:m},subtitleTextProps:{children:r}}),slots:f&&!l?9:12}];return f&&!l&&g.push({column:Bd().createElement(tM,{statusAlignment:"end",textWeightOverride:"semi-bold"},h),slots:3}),{onClickToOpen:function(){return zge(!0,p,d)},onClickToClose:function(){return zge(!1,p,d)},defaultExpanded:a,drawerHeader:Bd().createElement(xM,{totalSlots:12,chevronPosition:"end",columns:g})}},jge=function(e,t,n){var r=e.toLocaleString(n);return e>=Vge?r=Qd(t.dataCountOverBillion,Math.floor(e/Vge)):e>=Uge&&(r=Qd(t.dataCountOverMillion,Math.floor(e/Uge))),r},qge=function(e,t,n,r){return e>0?Qd(t,jge(e,n,r)):n.dataCountZero},Gge=function(e){var t=new Date(e.getTime());return t.setHours(0,0,0,0),t},Kge=function(e,t,n,r){var o=Gge(new Date),i=Gge(new Date);i.setDate(o.getDate()-1);var a=new Date(e);if(t&&"Monthly"===t)return function(e,t){return KA(e).toLocaleDateString(t||zA(),{year:"numeric",month:"short"})}(new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()));Yme&&Yme.getTime()===Gge(a).getTime()||(Yme=Gge(a));var s=qA(Yme);return o.getTime()===Yme.getTime()?r?n.today:jA(a):i.getTime()===Yme.getTime()?n.yesterday:s},Yge=function(e,t){for(var n={},r=0,o=Object.values(e);r<o.length;r++){var i=o[r],a=Kge(i.timestamp,i.aggregationMethod,t,!0);n.hasOwnProperty(a)?n[a].push(i):n[a]=[i]}return n},Qge=function(e){var t=new Date(e);return jA(t)},Xge=["domain","deleteByDomainCallback"],Zge="AutofillDomainListItem.SingleRowDelete",Jge="edge-autofill-domain-list-item",$ge=_V((function(e){var t=e.domain,n=e.deleteByDomainCallback,r=aG(e,Xge),o=sS(),i=nm(),a=yme().overviewContent.edgeAutofill,s=yme().sharedContent,c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v={children:t.domain},y={children:Qd(a.drawerArea.dataCount,Object.values(t.fields).length),variant:"bodySecondaryText"},b={children:Kge(t.lastModifiedDateTime,void 0,s),variant:"bodySecondaryText"},_={children:l?s.clearing:"",variant:"bodySecondaryText"},C=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(Zge,".").concat(t.domain),status:"updating"}),e.next=4,n(t.domain);case 4:u(!1),i({name:"".concat(Zge,".").concat(t.domain),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),i({name:"".concat(Zge,".").concat(t.domain),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),E=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),w=[{"aria-label":l?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(Jge,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?E:function(){u(!0),g(!1),h(setTimeout(C,oge))},text:"",operationData:{progressViewOperationData:{componentName:Jge,operationName:"".concat(Zge,".").concat(t.domain),defaultState:"finished"}}}],x=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(Jge,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],k=function(){return["xl","xxl","xxxl"].includes(o)?Bd().createElement(RM,{contentType:m?"callout":"text",columnAlign:"end",calloutElements:x,textElements:[_],actionButtonProps:w}):Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:x,actionButtonProps:w})};switch(o){case"xxxl":case"xxl":case"xl":case"l":return Bd().createElement(DH,Object.assign({},r,{key:t.domain,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[v]}),Bd().createElement(iH,{textElements:[y]}),Bd().createElement(iH,{textElements:[b]}),k()]}));case"m":case"s":return Bd().createElement(DH,Object.assign({},r,{key:t.domain,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[v,y,b,_]}),k()]}))}})),eve=function(e){var t=e.confirmationDialogState,n=e.setConfirmationDialogState,r=e.clearAllDataCallback,o=nm(),i=yme(),a=i.overviewContent.edgeAutofill,s=i.sharedContent,c="edge-autofill-clear-all",l={iconName:"ErrorBadge",color:"errorIcon"},u=function(){n(!1)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&qp(Tp),n(!1),e&&nh()},p=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,qp(Ip),o({name:c,status:"updating"}),e.next=5,r();case 5:o({name:c,status:"finished"}),d(!1),rh(),e.next=15;break;case 10:e.prev=10,e.t0=e.catch(0),qp(Age),o({name:c,status:"failed"}),th({step:Age,error:Pge});case 15:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(KU,{closeButton:{"aria-label":s.close,"data-bi-id":"".concat(c,".dialog.close")},dialogFooterProps:{buttonPrimary:{"aria-label":s.clear,"data-bi-id":"".concat(c,".dialog.clearAll"),onClick:function(){p()},text:s.clear},buttonSecondary:{"aria-label":s.dontClear,"data-bi-id":"".concat(c,".dialog.cancel"),onClick:u,text:s.dontClear}},isOpen:t,onDismiss:u,title:a.dialogContent.clearAllTitle},Bd().createElement(wT,{horizontalAlign:"center",childrenGap:"33px"},Bd().createElement(jR,{src:a.highlightArea.image.src,alt:a.highlightArea.image.alt}),Bd().createElement(DT,{variant:"paneTitle"},a.dialogContent.areYouSure),Bd().createElement(gj,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:l,messageContent:"something line 1"}),Bd().createElement(gj,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:l,messageContent:"something line 2"})))},tve=function(e,t){var n,r,o;switch(t.type){case Xme:return o={},null===(n=t.firstLoadResult)||void 0===n||n.domains.forEach((function(e){var t=zd();o[t]=nve(e,t)})),{nextLink:t.firstLoadResult.nextLink,domains:o};case Zme:return o=YC({},e.domains),null===(r=t.loadMoreResult)||void 0===r||r.domains.forEach((function(e){var t=zd();o[t]=nve(e,t)})),{nextLink:t.loadMoreResult.nextLink,domains:o};case Jme:var i=e.domains;return delete i[t.domain].fields[t.idToDelete],{nextLink:e.nextLink,domains:i};case $me:return delete(i=e.domains)[t.domain],{nextLink:e.nextLink,domains:i};case ege:return{nextLink:"",domains:{}};default:throw new Error("Incorrect data action type")}},nve=function(e,t){var n={};return e.fields.forEach((function(e){var t={id:e.id,value:e.value,lastModifiedDateTime:e.lastModifiedDateTime};n[e.id]=t})),{id:t,domain:e.domain,lastModifiedDateTime:e.lastModifiedDateTime,fields:n}};var rve=function(e){var t=e.sharedContent,n=e.prefix;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},Bd().createElement(WS,{iconName:"Info",size:"16px"}),Bd().createElement(AA,{textWithTokens:t.noData,tokensAndValues:{"learn-more":Bd().createElement(TA,{"aria-label":t.learnMoreAriaLabel,"data-bi-id":"".concat(n,"-noData-learnMore-link"),href:t.learnMoreLink,target:"_blank"},t.learnMoreToken)}}))},ove=function(e){var t=e.prefix,n=e.header,r=e.clearAllText,o=e.openConfirmationDialog;return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(DT,{weightOverride:"semi-bold"},n)),Bd().createElement(_T,{slots:8},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"},Bd().createElement(IA,{"aria-label":r,"data-bi-id":"".concat(t,".clear-all"),onClick:function(){return o()}},r))))},ive=function(e){var t=e.sharedContent,n=e.prefix,r=e.isRetrying,o=e.onRetryClick;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(DT,null,t.retryHeader),Bd().createElement(IA,{key:"".concat(n,".try-again"),"aria-label":t.retryHeader,"data-bi-id":"".concat(n,".try-again"),onClick:o,disabled:r},t.tryAgain),r&&Bd().createElement(fM,{"aria-label":t.retryInProgressAriaLabel}))},ave={hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},sve={padding:"0px",smallScreenPadding:"0px"},cve=function(e,t){var n=_7((0,Fd.useState)(e),2),r=n[0],o=n[1];return(0,Fd.useEffect)((function(){var n=setTimeout((function(){o(e)}),t);return function(){clearTimeout(n)}}),[e,t]),r},lve=["domainId","formField","deleteById"],uve=_V((function(e){var t=e.domainId,n=e.formField,r=e.deleteById,o=aG(e,lve),i=sS(),a=yme().overviewContent.overviewActivities.dialogs,s=nm(),c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v="AutofillListItem.SingleRowDelete",y=[{children:n.value}],b={children:Qge(n.lastModifiedDateTime),variant:"bodySecondaryText"},_=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(v,".").concat(n.id),status:"updating"}),e.next=4,r(n.id,t);case 4:u(!1),s({name:"".concat(v,".").concat(n.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),s({name:"".concat(v,".").concat(n.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),C=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),E=[{"aria-label":l?a.cancelAriaLabel:a.deleteAriaLabel,"data-bi-id":"".concat(pve,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?C:function(){u(!0),g(!1),h(setTimeout(_,oge))},text:"",operationData:{progressViewOperationData:{componentName:"edge-autofill-list-item",operationName:"".concat(v,".").concat(n.id),defaultState:"finished"}}}],w=[{"aria-label":a.clearFailed,children:a.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":a.clearFailed,"data-bi-id":"".concat(pve,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],x=function(){return Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:w,actionButtonProps:E})};switch(i){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},o,{key:n.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:y}),Bd().createElement(iH,{textElements:[b]}),x()]}));case"s":return Bd().createElement(DH,Object.assign({},o,{key:n.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(y,[b])}),x()]}))}})),dve=function(e){var t=e.isHistoryView,n=e.data,r=e.loadMoreData,o=e.deleteById,i="ShowAllDialogContent.LoadMore",a="edge-autofill.show-all-dialog-content";qf(a);var s=yme().overviewContent.overviewActivities.dialogs,c=nm(),l=_7((0,Fd.useState)(null),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(!1),2),h=p[0],f=p[1];(0,Fd.useEffect)((function(){d(document.getElementById(Gme))}),[]),(0,Fd.useEffect)((function(){t&&u&&(u.scrollTop=0)}),[t,u]);var m=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),c({name:i,status:"updating"}),e.next=5,r();case 5:c({name:i,status:"finished"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),c({name:i,status:"update-failed",error:e.t0});case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[c,r]);return(0,Fd.useEffect)((function(){var e=!!n.nextLink,t=function(){u&&(u.scrollTop+u.offsetHeight+5>=u.scrollHeight&&!h&&e&&m())};return e?null===u||void 0===u||u.addEventListener("scroll",t):null===u||void 0===u||u.removeEventListener("scroll",t),u&&e&&u.scrollHeight<=u.clientHeight&&!h&&m(),function(){null===u||void 0===u||u.removeEventListener("scroll",t)}}),[u,h,n,m]),Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!1},Object.values(n.domains).map((function(e){return Bd().createElement(TV,{key:e.id,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},e.domain)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},e.fields?Object.values(e.fields).map((function(t){return Bd().createElement(uve,{key:t.id,domainId:e.id,formField:t,deleteById:o})})):void 0)}))),Bd().createElement(im,{operationData:{operationName:i,componentName:a,defaultState:"finished"},finishedView:Bd().createElement(Bd().Fragment,null),updatingView:Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:5},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":s.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),updateFailedView:Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:"".concat(s.loadMoreError," {tryAgainCta}"),tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":s.loadMoreError,"data-bi-id":"".concat(pve,".load-more.try-again"),onClick:m},s.tryAgain)}})),isAlwaysExpanded:!0})}))},pve="edge-autofill.show-all",hve="EdgeAutofill.ShowAllDialog.SearchFilter",fve="edge-autofill.show-all-dialog",mve=function(e){var t=e.showAllDialogState,n=e.setshowAllDialogState,r=e.onClearAllClick,o=e.data,i=e.loadMoreData,a=e.deleteDataById;qf(fve);var s=nm(),c=yme().overviewContent.edgeAutofill,l=yme().sharedContent,u=_7((0,Fd.useReducer)(tve,{nextLink:"",domains:{}}),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(""),2),f=h[0],m=h[1],g=cve(f,ige),v=_7((0,Fd.useState)(!1),2),y=v[0],b=v[1],_=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,b(!0),s({name:hve,status:"updating"}),e.next=5,Vme(g);case 5:t=e.sent,p({type:Xme,firstLoadResult:t}),s({name:hve,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),s({name:hve,status:"failed",error:e.t0});case 13:return e.prev=13,b(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])}))),[g,s]),C=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,b(!0),e.next=4,Ume(d.nextLink);case 4:t=e.sent,p({type:Zme,loadMoreResult:t});case 6:return e.prev=6,b(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[0,,6,9]])}))),[d.nextLink]),E=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t,n){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,b(!0),e.next=4,a(t,n);case 4:setTimeout((function(){p({type:Jme,idToDelete:t,domain:n})}));case 5:return e.prev=5,setTimeout((function(){b(!1)})),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[0,,5,8]])})));return function(t,n){return e.apply(this,arguments)}}(),[a]);(0,Fd.useEffect)((function(){""!==g?_():p({type:ege})}),[g,_]);var w=!g,x=0===Object.keys(d.domains).length,k=!!!d.nextLink&&x,S=!w&&(y||x),T=function(){n(!1)},I=c.detailsArea.clearAll,A=Bd().createElement(IA,{"aria-label":I,"data-bi-id":"".concat(pve,".clear-all"),onClick:function(){r()},disabled:S},I),P={isOpen:t,title:c.drawerArea.title,closeButton:{"data-bi-id":"close-button","aria-label":c.dialogContent.closeAriaLabel},searchBoxProps:{"aria-label":c.detailsArea.searchBoxAriaLabel,"data-bi-id":"".concat(pve,".search-box"),placeholder:c.detailsArea.searchBoxPlaceholder,onChange:function(e,t){m(t||"")}},subtitle:w?{textWithTokens:"{clearAllCta}",tokensAndValues:{clearAllCta:A}}:void 0,headerLeftRightPadding:"16px",onDismiss:T,stickyHeaderFooter:ave,staticBodyWidth:"480px",contentId:Gme,minBodyHeight:{height:80,unit:"vh"},bodyStyleTemp:sve,dialogFooterProps:{dialogType:"secondary",buttonRight:{onClick:T,text:l.close,"aria-label":l.close,"data-bi-id":"".concat(pve,".cancel")}}},D=Bd().useMemo((function(){return Bd().createElement(dve,{isHistoryView:w,data:o,loadMoreData:i,deleteById:a})}),[w,o,i,a]),R=Bd().useMemo((function(){return Bd().createElement(dve,{isHistoryView:w,data:d,loadMoreData:C,deleteById:E})}),[w,d,C,E]),M=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"transparent",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Blocked",size:"16px"}),Bd().createElement(AA,{textWithTokens:l.noResultsFound,tokensAndValues:{0:Bd().createElement(DT,{weightOverride:"bold"},g)}})),isAlwaysExpanded:!0}),N=Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:11},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":l.loadingMore,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),L=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:l.searchErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":l.searchTryAgainAriaLabel,"data-bi-id":"".concat(pve,".new-search.try-again"),onClick:_},l.tryAgain)}})),isAlwaysExpanded:!0}),O=Bd().createElement(im,{operationData:{operationName:hve,componentName:fve,defaultState:"finished"},updatingView:N,failedView:L,finishedView:k?M:R});return Bd().createElement(KU,P,w?D:O)},gve="edge-autofill.drawer",vve=function(){var t="EdgeAutofillData.Get";qf(gve);var n=yme().overviewContent.edgeAutofill,r=nm(),o=_7((0,Fd.useState)(-1),2),i=o[0],a=o[1],s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=_7((0,Fd.useReducer)(tve,{nextLink:"",domains:{}}),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=_7((0,Fd.useState)(!1),2),_=b[0],C=b[1],E=function(){eh({area:Tge,scenario:"ClearAllEdgeAutofill",step:Ige})},w=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={count:0,domains:[]},e.next=3,Vme();case 3:t=e.sent,m({type:Xme,firstLoadResult:t}),a(t.count);case 6:case"end":return e.stop()}}),e)}))),[]),x=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ume(f.nextLink);case 2:t=e.sent,m({type:Zme,loadMoreResult:t});case 4:case"end":return e.stop()}}),e)}))),[f.nextLink]),k=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t,n){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wme(t);case 2:a(i-1),setTimeout((function(){m({type:Jme,idToDelete:t,domain:n})}));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[i]),S=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wme(t);case 2:a(i-1),setTimeout((function(){m({type:$me,domain:t})}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[i]),T=(0,Fd.useCallback)(_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ame("".concat(Hme),"".concat(zme,"CLEARALL"),{},{overrideRequestQosData:Bme})];case 1:return[2,e.sent()]}}))}));case 2:a(0),m({type:ege});case 4:case"end":return t.stop()}}),t)}))),[]);(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({name:t,status:"first-load"}),e.next=4,Promise.all([w()]);case 4:r({name:t,status:"finished"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),r({name:t,status:"failed",error:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();e()}),[r,t,w]);var I=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,C(!0),r({name:t,status:"updating"}),e.next=5,w();case 5:r({name:t,status:"finished"}),y(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),r({name:t,status:"failed",error:e.t0}),y(!0);case 13:return e.prev=13,C(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,9,13,16]])})));return function(){return e.apply(this,arguments)}}(),A=Wge("autofill",n.drawerArea.icon,n.drawerArea.title,n.drawerArea.subtitle,i,n.drawerArea.dataCount),P={height:"small",backgroundType:"card",bodyText:{textWithTokens:"{0}{1}",tokensAndValues:{0:n.highlightArea.description,1:Bd().createElement("ul",{style:{padding:"8px 16px 0px"}},Bd().createElement("li",null,Bd().createElement(DT,null,n.highlightArea.bullet1)),Bd().createElement("li",null,Bd().createElement(DT,null,n.highlightArea.bullet2)))}},imageProps:{alt:n.highlightArea.image.alt,src:n.highlightArea.image.src},layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px"},D=Bd().createElement(qz,Object.assign({key:"edge-autofill-highlight"},P)),R=function(e,t,n,r,o,i){var a,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=yme(),l=c.overviewContent.edgeAutofill.detailsArea,u=c.sharedContent,d="edge-autofill-details",p=Qd(u.clearAllText,e),h=l.title;a=o?Bd().createElement(ive,{sharedContent:u,prefix:d,isRetrying:i,onRetryClick:r}):0===e?Bd().createElement(rve,{sharedContent:u,prefix:d}):Bd().createElement(ove,{sharedContent:u,prefix:d,header:h,clearAllText:p,openConfirmationDialog:n,showDownload:s});var f="".concat(d,".show-more");return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:a,footer:e>=1?{links:[{onClick:t,"data-bi-id":f,"aria-label":l.showMoreAriaLabel,id:f,children:l.showMoreLinkText}],shadow:!1}:void 0}}(i,(function(){jp(),l(!0)}),(function(){Wp(Ige),E(),p(!0)}),I,v,_),M=Bd().createElement(TV,Object.assign({isAlwaysExpanded:!0},R),Array.from({length:5},(function(e,t){return Bd().createElement(DH,{key:t,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),N=Object.values(f.domains),L=Bd().createElement(TV,Object.assign({key:"edge-autofill-details"},R),N.slice(0,5).map((function(e){return Bd().createElement($ge,{key:e.domain,domain:e,deleteByDomainCallback:S})}))),O="edge-autofill-efg";return Bd().createElement(hx,{operationData:{componentName:gve,operationName:t},firstLoadView:Bd().createElement(oq,{key:O,drawerAreaProps:A,highlightArea:D,detailsArea:M}),finishedView:Bd().createElement(wT,null,Bd().createElement(oq,{key:O,drawerAreaProps:A,highlightArea:D,detailsArea:L}),c&&Bd().createElement(mve,{showAllDialogState:c,setshowAllDialogState:l,onClearAllClick:function(){Wp(Ige),E(),p(!0),l(!1)},data:f,loadMoreData:x,deleteDataById:k}),d&&Bd().createElement(eve,{confirmationDialogState:d,setConfirmationDialogState:p,clearAllDataCallback:T})),updatingView:Bd().createElement(oq,{key:O,drawerAreaProps:A,highlightArea:D,detailsArea:L}),failedView:Bd().createElement(oq,{key:O,drawerAreaProps:A,highlightArea:D,detailsArea:L})})},yve="".concat(Nme,"/activity-data/recurring-deletes"),bve="getRecurringDeletes",_ve=[Cme.Unauthorized,Cme.TooManyRequests],Cve=kme(_ve),Eve=function(t,n,r){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var o,i,a,s;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return o=Ave(t,n),i=Pve(t,n),a="".concat(Nme,"/history/timeline").concat(o),s=Mve(r),[4,Sme(a,"".concat(Ome,".").concat(i),s,{overrideRequestQosData:Cve})];case 1:return[2,e.sent()]}}))}))},wve=function(t,n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,o,i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return"GETTIMELINEHISTORY.AGGREGATECOUNT",r="activityType=".concat(encodeURIComponent(t)),o="".concat(Nme,"/activity-data/count?").concat(r),i=Mve(n),[4,Sme(o,"".concat(Ome,".").concat("GETTIMELINEHISTORY.AGGREGATECOUNT"),i,{overrideRequestQosData:Cve})];case 1:return[2,e.sent()]}}))}))},xve=function(t,n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,o,i,a;return(0,e.__generator)(this,(function(s){switch(s.label){case 0:return r=Dve(t&&t[0]),o=null===r||void 0===r?void 0:r.toUpperCase(),i="".concat(Nme,"/history/timeline/types?reportedType=").concat(r),a=Mve(n),[4,Ame(i,"".concat(Ome,".DELETETIMELINEHISTORYBYTYPES.").concat(o),(0,e.__assign)((0,e.__assign)({},a),{data:{types:t}}))];case 1:return s.sent(),[2]}}))}))},kve=function(t,n,r){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var o,i,a,s;return(0,e.__generator)(this,(function(c){switch(c.label){case 0:return o=Dve(n),i=null===o||void 0===o?void 0:o.toUpperCase(),a="".concat(Nme,"/history/timeline/ids?reportedType=").concat(o),s=Mve(r),[4,Ame(a,"".concat(Ome,".DELETETIMELINEHISTORYBYIDS.").concat(i),(0,e.__assign)((0,e.__assign)({},s),{data:{ids:t}}))];case 1:return c.sent(),[2]}}))}))},Sve=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 n=Mve(t),[4,Dme(!1,bve,yve,"".concat(Ome,".GETRECURRINGDELETES"),n)];case 1:return[2,e.sent()]}}))}))},Tve=function(t,n,r,o){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var i;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return Rve(),i=Mve(o),[4,Tme(yve,"".concat(Ome,".CREATEORUPDATERECURRINGDELETES"),{activityType:t,interval:n,status:r},i,{overrideRequestQosData:kme([Cme.Unauthorized])})];case 1:return[2,e.sent()]}}))}))},Ive=function(t,n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r;return(0,e.__generator)(this,(function(o){switch(o.label){case 0:return Rve(),r=Mve(n),[4,Ame(yve,"".concat(Ome,".DELETERECURRINGDELETES"),(0,e.__assign)((0,e.__assign)({},r),{data:{dataType:t}}),{overrideRequestQosData:kme([Cme.Unauthorized])})];case 1:return o.sent(),[2]}}))}))},Ave=function(e,t){var n=null===t||void 0===t?void 0:t.types,r=null===t||void 0===t?void 0:t.startTime,o=null===t||void 0===t?void 0:t.searchTerm,i=e?"state=".concat(encodeURIComponent(e)):"",a=n?"types=".concat(encodeURIComponent(n.join(","))):"",s=r?"startTime=".concat(r.split("_")[1]):"",c=o?"searchTerm=".concat(encodeURIComponent(o)):"";return"?".concat(a,"&").concat(i,"&").concat(s,"&").concat(c)},Pve=function(e,t){var n=t.searchTerm,r=Dve(t.types&&t.types[0]),o=null===r||void 0===r?void 0:r.toUpperCase();return n?e?"GETTIMELINEHISTORY.LOADMORE.SEARCHFILTER.".concat(o):"GETTIMELINEHISTORY.SEARCHFILTER.".concat(o):e?"GETTIMELINEHISTORY.LOADMORE.".concat(o):"GETTIMELINEHISTORY.".concat(o)},Dve=function(e){var t;return e&&e.split("_").length>1&&(t=e.split("_")[1]),t},Rve=function(){Rme(bve)},Mve=function(e){return e?{headers:{"X-Obo":e}}:{}},Nve=function(){eh({area:Tge,scenario:"BulkDelete",step:Ige})},Lve="awa-mee_custom1",Ove="awa-mee_custom3",Fve="awa-mee_custom4",Bve="awa-mee_custom5",Hve="awa-mee_custom9",zve=function(e,t){var n,r,o,i,a,s;switch(t.type){case Xme:return s={},null===(n=t.firstLoadResult)||void 0===n||null===(r=n.items)||void 0===r||r.forEach((function(e){var t;s[null!==(t=e.id)&&void 0!==t?t:zd()]=e})),{state:t.firstLoadResult.state,items:s};case Zme:return s=YC({},e.items),null===(o=t.loadMoreResult)||void 0===o||null===(i=o.items)||void 0===i||i.forEach((function(e){var t;s[null!==(t=e.id)&&void 0!==t?t:zd()]=e})),{state:t.loadMoreResult.state,items:s};case Jme:return s=YC({},e.items),null===(a=t.idsToDelete)||void 0===a||a.forEach((function(e){delete s[e]})),{state:e.state,items:s};case ege:return{state:"",items:{}};default:throw new Error("Incorrect timeline data action type")}},Vve="recurring-delete",Uve={componentName:"recurring-delete-dialog-v2",operationName:Vve},Wve={days2:2,days30:30,days90:90,days180:180},jve=function(e){var t,n,r,o,i=e.filterType,a=e.interval,s=e.variant,c=e.status,l=void 0===c?"active":c,u=e.onSuccessCallback,d=e.authToken,p=ZU(),h=nm(),f=yme().overviewContent.recurringDelete,m=f.dialog,g="turnOff",v="450px",y="create"===s,b=_7((0,Fd.useState)(),2),_=b[0],C=b[1],E=_7((0,Fd.useState)(!1),2),w=E[0],x=E[1],k=Qd(m.updateDialogDescription,i.split("_")[1]),S=y?f.buttons.turnOn:f.buttons.save,T=y?f.buttons.dontTurnOn:f.buttons.cancel;switch(i){case"cardTypeFilter_browse":t=y?m.createBrowseDialogSuccess:m.updateBrowseDialogSuccess,n=y?m.browseDialogTitle:m.updateDialogTitle,r=y?m.browseDialogDescription:k,o=y?m.clearBrowseDataSuccess:void 0;break;case"cardTypeFilter_search":t=y?m.createSearchDialogSuccess:m.updateSearchDialogSuccess,n=y?m.searchDialogTitle:m.updateDialogTitle,r=y?m.searchDialogDescription:k,o=y?m.clearSearchDataSuccess:void 0;break;default:throw Error("RecurringDeleteDialog: Unexpected filterType")}_===g&&(t=m.turnOffSuccessMessage);var I=function(e){var t=Wve[e];return{"data-bi-id":"recurring-delete-interval-".concat(t),"aria-label":Qd(m.interval,t),key:e,text:Qd(m.interval,t)}},A=[];Wm("RoleEngineer")&&A.push(I("days2")),A.push(I("days30")),A.push(I("days90")),A.push(I("days180")),"manage"===s&&A.push({"data-bi-id":"recurring-delete-turnoff","aria-label":m.turnOff,key:g,text:m.turnOff});var P=function(){ih()&&nh(),p.closeDialog()},D=function(){var e=_me(cfe().mark((function e(){var t,n,r;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,h({name:Vve,status:"updating"}),"manage"!==s||_!==g){e.next=8;break}return e.next=5,Ive(i,d);case 5:null===u||void 0===u||u(w),e.next=12;break;case 8:return e.next=10,Tve(i,_,l,d);case 10:t=e.sent,null===u||void 0===u||u(w,t);case 12:h({name:Vve,status:"finished"}),rh({data:{interval:_}}),e.next=22;break;case 16:e.prev=16,e.t0=e.catch(0),h({name:Vve,status:"failed",error:e.t0}),r=e.t0,th({step:"RetryAfterFailure",error:null!==(n=r.toString())&&void 0!==n?n:"RecurringDeleteFailed"});case 22:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}();(0,Fd.useEffect)((function(){a&&C(a),h({name:Vve,status:"inert"})}),[a,h]);var R=function(){return{buttonPrimary:{text:S,"aria-label":S,"data-bi-id":"recurring-delete-save",onClick:D,disabled:!!("manage"===s&&"paused"!==l&&_===a||"create"===s&&!_)},buttonSecondary:{text:T,"aria-label":T,"data-bi-id":"recurring-delete-cancel",onClick:P}}},M={title:n,isOpen:!0,staticBodyWidth:"480px",closeButton:{"aria-label":m.dismissButtonAriaLabel,"data-bi-id":"recurring-delete-dismiss"},onDismiss:P,stickyHeaderFooter:{hasStickyHeaderFooters:!0},dialogFooterProps:R(),operationData:{progressViewOperationData:Uve,errorDialogProps:{title:n,dialogFooterProps:YC(YC({},R()),{},{richTextProps:{textWithTokens:"{errorMessage}",tokensAndValues:{errorMessage:Bd().createElement(DT,{colorOverride:"error"},m.errorMessage)}}})},successDialogProps:{title:n,dialogFooterProps:{buttonPrimary:{text:f.buttons.ok,"aria-label":f.buttons.ok,"data-bi-id":"recurring-delete-success-ok",onClick:function(){return p.closeDialog()}}}},progressDialogProps:{title:n}}},N=function(e){return Bd().createElement(YR,{size:"sm",image:{iconColor:"successIcon",iconName:"CompletedSolid",imageType:"icon"}},Bd().createElement(DT,{variant:"bodySecondaryText"},e))},L=Bd().createElement(wT,{height:"create"===s?v:void 0,horizontal:!1,childrenGap:"12"},o&&Bd().createElement(wT,null,N(o),Bd().createElement(ute,null)),r&&Bd().createElement(DT,{variant:"bodySecondaryText"},r),Bd().createElement(LO,{optionType:"basic",label:m.intervalsLabel,"aria-label":m.intervalsAriaLabel,"data-bi-id":"recurring-delete-interval-options",onChange:function(e){var t=e.key;C(t),x(t===g)},options:A,selectedKey:_})),O=Bd().createElement(wT,{height:v,horizontal:!1},Bd().createElement(wT,{childrenGap:"12"},N(t))),F=Bd().createElement(wT,{height:v,horizontal:!1},Bd().createElement(wT,{padding:"80"},Bd().createElement(fM,{"aria-label":m.progressMessage})));return Bd().createElement(KU,M,Bd().createElement(im,{operationData:Uve,inertView:L,finishedView:O,updatingView:F,failedView:L}))},qve=function(e,t,n){return e.map((function(r,o){return 0===o?{textWithTokens:r,tokensAndValues:t}:"location"===n&&o===e.length-1||"search"===n||"browse"===n||"usage"===n||"performance"===n?{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{padding:"8px 0px 0px 0px"},Bd().createElement(AA,{textWithTokens:r,tokensAndValues:t}))}}:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement("ul",{style:{padding:"8px 16px 0px"}},Bd().createElement("li",null,Bd().createElement(AA,{textWithTokens:r,tokensAndValues:t})))}}}))},Gve=function(e){var t=e.dataType,n="timeLine-confirmation-dialog-content-v2.".concat(t);qf(n);var r=yme().overviewContent.overviewActivities.dialogs,o=[],i=[],a={},s={iconName:"ErrorBadge",color:"errorIcon"},c={iconName:"Info"};switch(t){case"browse":o=Object.values(r.browse.body2),i=[s,s,c,c],a={viewDeleteLink:Bd().createElement(TA,{"aria-label":r.browse.tokens.viewDeleteToken,"data-bi-id":"".concat(Sge,".browse-view-delete-link"),href:r.browse.links.viewDeleteLink,target:"_blank"},r.browse.tokens.viewDeleteToken)};break;case"search":o=Object.values(r.search.body2),i=[s,s,c];break;case"usage":o=Object.values(r.usage.body),i=[s,s,s];break;case"performance":o=Object.values(r.performance.body),i=[s,s,s]}return Bd().createElement(wT,null,Bd().createElement(wT,{childrenGap:"5px"},Bd().createElement(Bd().Fragment,null,o.map((function(e,t){return Bd().createElement(gj,{messageBarType:"info",iconProps:i[t],messageContent:{textWithTokens:e,tokensAndValues:a}})})),"browse"===t?Bd().createElement(TA,{"aria-label":r.browse.learnMoreText,"data-bi-id":"".concat(Sge,".browse-learn-more-link"),href:r.browse.learnMoreLink,target:"_blank"},r.browse.learnMoreText):null)))},Kve=function(e){var t=e.confirmationDialogState,n=e.setConfirmationDialogState,r=e.onClearAllCancel,o=e.deleteAll,i=e.onRecurringDeleteSuccessCallback,a=e.recurringDeletes,s=e.child,c="timeline-confirmation-dialog-v2.".concat(t.dialogDataType);qf(c);var l,u="cardTypeFilter_".concat(t.dialogDataType),d=Lfe(),p=ZU(),h=nm(),f=yme().overviewContent.overviewActivities.dialogs,m=a&&a[u];if(!t.dialogDataType)return null;switch(t.dialogDataType){case"browse":l=f.browse.areYouSure;break;case"location":l=f.location.areYouSure;break;case"search":l=f.search.areYouSure;break;case"usage":l=f.usage.areYouSure;break;case"performance":l=f.performance.areYouSure}var g=GC({},Lve,t.dialogDataType),v="ConfirmationDialog.DeleteAllByType.".concat(t.dialogDataType),y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&qp(Tp),n({showDialog:!1,dialogDataType:null}),e&&nh({data:g})},b=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,qp(Ip),h({name:v,status:"updating"}),e.next=5,o();case 5:h({name:v,status:"finished"}),y(!1),rh({data:g}),m||"performance"===t.dialogDataType||(eh({area:d.areaPrefix,scenario:"CreateRecurringDelete",step:"Index",data:{activityType:t.dialogDataType}}),p.openDialog(Bd().createElement(jve,{filterType:u,variant:"create",onSuccessCallback:i,authToken:null===s||void 0===s?void 0:s.authToken}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),qp(Age),h({name:v,status:"failed"}),th({step:Age,error:Pge,data:g});case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(KU,function(){var e={buttonPrimary:{onClick:b,text:f.clear,"aria-label":f.clear,"data-bi-id":"".concat(Sge,".clear")},buttonSecondary:{onClick:r,text:f.dontClear,"aria-label":f.dontClear,"data-bi-id":"".concat(Sge,".cancel")}};return{isOpen:t.showDialog,staticBodyWidth:"480px",closeButton:{"data-bi-id":"close-button","aria-label":f.closeAriaLabel},title:l,onDismiss:function(){return y(!0)},stickyHeaderFooter:{hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},dialogFooterProps:e,operationData:{progressViewOperationData:{operationName:v,componentName:c},errorDialogProps:{title:l,dialogFooterProps:e}}}}(),Bd().createElement(im,{operationData:{operationName:v,componentName:c,defaultState:"finished"},finishedView:Bd().createElement(Gve,{dataType:t.dialogDataType}),updatingView:Bd().createElement(Gve,{dataType:t.dialogDataType}),failedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(Gve,{dataType:t.dialogDataType}),Bd().createElement(DT,{colorOverride:"error"},f.clearFailed))}))},Yve=["timelineItem","deleteByIds","canDelete"],Qve="BrowseListItem.SingleRowDelete",Xve="".concat(sge,".browse"),Zve=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,Yve),a=sS(),s=nm(),c=yme().overviewContent.overviewActivities.drawers.listItems,l=yme().overviewContent.overviewActivities.drawers.detailsArea,u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=t,_={children:b.title},C={children:Qd(l.visits,{count:b.count}),variant:"bodySecondaryText"},E={children:"".concat(Kge(b.timestamp,b.aggregationMethod,c)),variant:"bodySecondaryText"},w={children:d?c.clearing:"",variant:"bodySecondaryText"},x=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(Qve,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:p(!1),s({name:"".concat(Qve,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),p(!1),y(!0),s({name:"".concat(Qve,".").concat(b.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),k=(0,Fd.useCallback)((function(){p(!1),clearTimeout(f)}),[f]),S=[{"aria-label":d?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(Xve,d?".cancel":".delete"),iconName:d?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:d?k:function(){p(!0),y(!1),m(setTimeout(x,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.BrowseListItem",operationName:"".concat(Qve,".").concat(b.id),defaultState:"finished"}}}],T=[{"aria-label":c.tryAgain,children:c.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.tryAgain,"data-bi-id":"".concat(Xve,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],I=function(){return o?["xl","xxl","xxxl"].includes(a)?Bd().createElement(RM,{contentType:v?"callout":"text",columnAlign:"end",calloutElements:T,textElements:[w],actionButtonProps:S}):Bd().createElement(RM,{contentType:v?"callout":"none",columnAlign:"end",calloutElements:T,actionButtonProps:S}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_]}),Bd().createElement(iH,{textElements:[C]}),Bd().createElement(iH,{textElements:[E]}),I()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_,C,w]}),Bd().createElement(iH,{textElements:[E]}),I()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_,C,E,w]}),I()]}))}})),Jve="BrowseListItemV2.SingleRowDelete",$ve=_V((function(e){var t,n,r=e.timelineItem,o=e.deleteByIds,i=e.isDialog,a=void 0!==i&&i,s=sS(),c=nm(),l=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManage,u=yme(),d=u.sharedContent,p=u.webSearchContent.pageContent,h=_7((0,Fd.useState)(!1),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(),2),v=g[0],y=g[1],b=_7((0,Fd.useState)(!1),2),_=b[0],C=b[1],E=r,w="".concat(kge,a?".dialog.browse":".browse"),x=a?Qge(E.timestamp):Kge(E.timestamp,E.aggregationMethod,d),k=Xd(p.webListItemVisits,{count:E.count}),S=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c({name:"".concat(Jve,".").concat(E.id),status:"updating"}),e.next=4,o([E.id]);case 4:m(!1),c({name:"".concat(Jve,".").concat(E.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),m(!1),C(!0),c({name:"".concat(Jve,".").concat(E.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),T=(0,Fd.useCallback)((function(){m(!1),clearTimeout(v)}),[v]),I=Bd().createElement(dR,{actionAlignment:"flex-end",actionButton:{"aria-label":f?d.cancelAriaLabel:d.deleteAriaLabel,"data-bi-id":"".concat(w,f?".cancel":".delete"),disabled:!1,onClick:f?T:function(){m(!0),C(!1),y(setTimeout(S,oge))},text:"",iconName:f?"Cancel":"Delete",buttonColor:"neutralPrimary",operationData:{progressViewOperationData:{componentName:"timeline-browse-list-item-v2",operationName:"".concat(Jve,".").concat(E.id),defaultState:"finished"},textWhileUpdating:d.clearing}},"aria-label":"","data-bi-id":""}),A=Bd().createElement(yR,{calloutProps:{"aria-label":d.tryAgainLongText,children:d.tryAgainLongText,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":d.tryAgainLongText,"data-bi-id":"".concat(w,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}}),P=Bd().createElement(iM,{title:{children:E.title,kind:"text",nowrap:!0}}),D=Bd().createElement(tM,null,k),R=Bd().createElement(tM,null,x),M=Bd().createElement(iM,{title:{children:"".concat(E.title," \u2022 ").concat(k," \u2022 ").concat(x),kind:"text",nowrap:!0}}),N=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:3},{column:R,slots:3},{column:I,slots:2}],totalSlots:12}),L=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:4},{column:R,slots:4}],totalSlots:12}),O=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:3},{column:R,slots:3},{column:A,slots:1},{column:I,slots:1}],totalSlots:12}),F=Bd().createElement(xM,{columns:[{column:M,slots:8},{column:I,slots:4}],totalSlots:12}),B=Bd().createElement(xM,{columns:[{column:M,slots:12}],totalSlots:12}),H=Bd().createElement(xM,{columns:[{column:M,slots:8},{column:A,slots:1},{column:I,slots:3}],totalSlots:12}),z=Bd().createElement(DH,{variant:"Twelve",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:d.noAvailableData}]})]}),V=null!==(n=E.browsedUrls)&&void 0!==n&&n.length?E.browsedUrls.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:e.title}]}),Bd().createElement(YB,{hyperlinks:[{"aria-label":e.title,"data-bi-id":"".concat(w,".browsed-url"),href:e.url,children:e.url,target:"_blank"}]})],variant:"ThreeNine"})})):z;switch(s){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(cV,{drawerHeader:l?_?O:N:L,removeTreeRole:!0},V);case"s":return Bd().createElement(cV,{drawerHeader:l?_?H:F:B,removeTreeRole:!0},V)}})),eye={},tye=function(t,n){return tg(eye,"".concat(n.lat,",").concat(n.long),(function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(!n.lat||!n.long)throw Error("Latitude and longitude MUST be provided to call getLocationLookupAddress");r="".concat(t.restApiUrl)+"".concat(t.restLocationApi)+"".concat(n.lat,",").concat(n.long)+"?key=".concat(t.apiKey)+"&c=".concat(t.locale)+"&includeEntityTypes=".concat("Address,Neighborhood,PopulatedPlace,AdminDivision1"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Nm(r,{partnerName:"BingMaps",operation:"LookupLocation"},{callbackName:"jsonp",errorField:"errorDetails"})];case 2:return[2,e.sent().resourceSets[0].resources[0].address];case 3:return e.sent(),[2,{formattedAddress:"".concat(n.lat.toFixed(4),", ").concat(n.long.toFixed(4))}];case 4:return[2]}}))}))}))},nye="LocationListItem.SingleRowDelete",rye="".concat(sge,".location"),oye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=sS(),a=nm(),s=yme(),c=s.overviewContent.overviewActivities.drawers.listItems,l=s.overviewContent.overviewActivities.drawers.detailsArea,u=Lfe().bingMapsConfig,d=_7((0,Fd.useState)(!1),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(),2),m=f[0],g=f[1],v=_7((0,Fd.useState)(!1),2),y=v[0],b=v[1],_=_7((0,Fd.useState)(""),2),C=_[0],E=_[1],w=t,x=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.location.lat||!w.location.long){e.next=5;break}return e.next=3,tye(u,{lat:w.location.lat,long:w.location.long});case 3:t=e.sent,E(t.formattedAddress);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Wd((function(){x()}));var k=[{children:C},vye(w,l)],S={children:Kge(w.timestamp,w.aggregationMethod,c),variant:"bodySecondaryText"},T=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a({name:"".concat(nye,".").concat(w.id),status:"updating"}),e.next=4,n([w.id]);case 4:h(!1),a({name:"".concat(nye,".").concat(w.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),h(!1),b(!0),a({name:"".concat(nye,".").concat(w.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),I=(0,Fd.useCallback)((function(){h(!1),clearTimeout(m)}),[m]),A=[{"aria-label":p?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(rye,p?".cancel":".delete"),iconName:p?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:p?I:function(){h(!0),b(!1),g(setTimeout(T,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.LocationListItem",operationName:"".concat(nye,".").concat(w.id),defaultState:"finished"}}}],P=[{"aria-label":c.tryAgain,children:c.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.tryAgain,"data-bi-id":"".concat(rye,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],D=function(){return o?Bd().createElement(RM,{contentType:y?"callout":"none",columnAlign:"end",calloutElements:P,actionButtonProps:A}):Bd().createElement(qB,null)};switch(i){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,{key:w.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:k}),Bd().createElement(iH,{textElements:[S]}),D()]});case"s":return Bd().createElement(DH,{key:w.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(k,[S])}),D()]})}})),iye=["timelineItem","deleteByIds","canDelete"],aye="SearchListItem.SingleRowDelete",sye="".concat(sge,".search"),cye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,iye),a=sS(),s=nm(),c=yme().overviewContent.overviewActivities.drawers.listItems,l=yme().overviewContent.overviewActivities.drawers.detailsArea,u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=t,_={children:"".concat(b.terms)},C={children:Qd(l.searches,{count:b.count}),variant:"bodySecondaryText"},E={children:"".concat(Kge(b.timestamp,b.aggregationMethod,c)),variant:"bodySecondaryText"},w={children:d?c.clearing:"",variant:"bodySecondaryText"},x=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(aye,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:p(!1),s({name:"".concat(aye,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),p(!1),y(!0),s({name:"".concat(aye,".").concat(b.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),k=(0,Fd.useCallback)((function(){p(!1),clearTimeout(f)}),[f]),S=[{"aria-label":c.tryAgain,children:c.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.tryAgain,"data-bi-id":"".concat(sye,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=[{"aria-label":d?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(sye,d?".cancel":".delete"),iconName:d?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:d?k:function(){p(!0),y(!1),m(setTimeout(x,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.SearchListItem",operationName:"".concat(aye,".").concat(b.id),defaultState:"finished"}}}],I=function(){return o?["xl","xxl","xxxl"].includes(a)?Bd().createElement(RM,{contentType:v?"callout":"text",columnAlign:"end",calloutElements:S,textElements:[w],actionButtonProps:T}):Bd().createElement(RM,{contentType:v?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:T}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_]}),Bd().createElement(iH,{textElements:[C]}),Bd().createElement(iH,{textElements:[E]}),I()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_,C,w]}),Bd().createElement(iH,{textElements:[E]}),I()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[_,C,E,w]}),I()]}))}})),lye="SearchListItemV2.SingleRowDelete",uye=_V((function(e){var t,n,r=e.timelineItem,o=e.deleteByIds,i=e.isDialog,a=void 0!==i&&i,s=sS(),c=nm(),l=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManage,u=yme(),d=u.sharedContent,p=u.webSearchContent.pageContent,h=_7((0,Fd.useState)(!1),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=_7((0,Fd.useState)(),2),_=b[0],C=b[1],E=r,w=Xd(p.searchListItemSearches,{count:E.count}),x="".concat(kge,a?".dialog.search":".search"),k=a?Qge(E.timestamp):Kge(E.timestamp,E.aggregationMethod,d),S=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c({name:"".concat(lye,".").concat(E.id),status:"updating"}),e.next=4,o([E.id]);case 4:m(!1),c({name:"".concat(lye,".").concat(E.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),m(!1),y(!0),c({name:"".concat(lye,".").concat(E.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),T=(0,Fd.useCallback)((function(){m(!1),clearTimeout(_)}),[_]),I=Bd().createElement(dR,{actionAlignment:"flex-end",actionButton:{"aria-label":f?d.cancelAriaLabel:d.deleteAriaLabel,"data-bi-id":"".concat(x,f?".cancel":".delete"),disabled:!1,onClick:f?T:function(){m(!0),y(!1),C(setTimeout(S,oge))},text:"",iconName:f?"Cancel":"Delete",buttonColor:"neutralPrimary",operationData:{progressViewOperationData:{componentName:"timeline-search-list-item-v2",operationName:"".concat(lye,".").concat(E.id),defaultState:"finished"},textWhileUpdating:d.clearing}},"aria-label":"","data-bi-id":""}),A=Bd().createElement(yR,{calloutProps:{"aria-label":d.tryAgainLongText,children:d.tryAgainLongText,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":d.tryAgainLongText,"data-bi-id":"".concat(x,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}}),P=Bd().createElement(iM,{title:{children:E.terms,kind:"text",nowrap:!0}}),D=Bd().createElement(tM,null,w),R=Bd().createElement(tM,null,k),M=Bd().createElement(iM,{title:{children:"".concat(E.terms," \u2022 ").concat(w," \u2022 ").concat(k),kind:"text",nowrap:!0}}),N=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:3},{column:R,slots:3},{column:I,slots:2}],totalSlots:12}),L=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:4},{column:R,slots:4}],totalSlots:12}),O=Bd().createElement(xM,{columns:[{column:P,slots:4},{column:D,slots:3},{column:R,slots:3},{column:A,slots:1},{column:I,slots:1}],totalSlots:12}),F=Bd().createElement(xM,{columns:[{column:M,slots:8},{column:I,slots:4}],totalSlots:12}),B=Bd().createElement(xM,{columns:[{column:M,slots:12}],totalSlots:12}),H=Bd().createElement(xM,{columns:[{column:M,slots:8},{column:A,slots:1},{column:I,slots:3}],totalSlots:12}),z=Bd().createElement(DH,{variant:"Twelve",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:d.noAvailableData}]})]}),V=null!==(n=E.sites)&&void 0!==n&&n.length?E.sites.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:e.title}]}),Bd().createElement(YB,{hyperlinks:[{"aria-label":e.title,"data-bi-id":"".concat(x,".visited-url"),href:e.url,children:e.url,target:"_blank"}]})],variant:"ThreeNine"})})):z;switch(s){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(cV,{drawerHeader:l?v?O:N:L,removeTreeRole:!0},V);case"s":return Bd().createElement(cV,{drawerHeader:l?v?H:F:B,removeTreeRole:!0},V)}})),dye=function(e){return e.appIconUrl||!e.appName?{imageType:"image",src:e.appIconUrl}:{imageType:"character",character:e.appName.charAt(0).toLocaleUpperCase()}},pye=["timelineItem","deleteByIds"],hye="UsageListItem.SingleRowDelete",fye="".concat(sge,".usage"),mye=_V((function(e){var t,n=e.timelineItem,r=e.deleteByIds,o=aG(e,pye),i=sS(),a=nm(),s=yme().overviewContent.overviewActivities.drawers.listItems,c=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManage,l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y=n,b="".concat(Kge(y.timestamp,y.aggregationMethod,s)),_={listItemMediaProps:{image:dye(y),size:"sm"},title:y.appName},C={children:"".concat(y.appPublisher),variant:"bodySecondaryText"},E={children:b,variant:"bodySecondaryText"},w={children:u?s.clearing:"",variant:"bodySecondaryText"},x=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a({name:"".concat(hye,".").concat(y.id),status:"updating"}),e.next=4,r([y.id]);case 4:d(!1),a({name:"".concat(hye,".").concat(y.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),a({name:"".concat(hye,".").concat(y.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),k=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),S=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(fye,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=[{"aria-label":u?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(fye,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?k:function(){d(!0),v(!1),f(setTimeout(x,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.UsageListItem",operationName:"".concat(hye,".").concat(y.id),defaultState:"finished"}}}],I=function(){return c?["xl","xxl","xxxl"].includes(i)?Bd().createElement(RM,{contentType:g?"callout":"text",columnAlign:"end",calloutElements:S,textElements:[w],actionButtonProps:T}):Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:T}):Bd().createElement(qB,null)};switch(i){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},o,{key:y.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,_),Bd().createElement(iH,{textElements:[C]}),Bd().createElement(iH,{textElements:[E],"data-fct-id":b}),I()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},o,{key:y.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},_,{subtitles:[C,w]})),Bd().createElement(iH,{textElements:[E],"data-fct-id":b}),I()]}));case"s":return Bd().createElement(DH,Object.assign({},o,{key:y.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},_,{subtitles:[C,E,w],"data-fct-id":b})),I()]}))}})),gye=function(e,t,n){switch(e){case"usage":return Bd().createElement(mye,{key:t.id,timelineItem:t,deleteByIds:n});case"location":return Bd().createElement(oye,{key:t.id,timelineItem:t,deleteByIds:n});case"search":return Wm("PrivWebSearch")?Bd().createElement(uye,{key:t.id,timelineItem:t,deleteByIds:n}):Bd().createElement(cye,{key:t.id,timelineItem:t,deleteByIds:n});case"browse":return Wm("PrivWebSearch")?Bd().createElement($ve,{key:t.id,timelineItem:t,deleteByIds:n}):Bd().createElement(Zve,{key:t.id,timelineItem:t,deleteByIds:n});default:throw new Error("List item requested for an unsupported data type")}},vye=function(e,t){return e.sources&&e.sources.length&&e.sources.filter((function(e){return e.length>0})).join(", ")?{children:"".concat(e.sources.join(", ")," - ").concat(Qd(t.visits,{count:e.count})),variant:"bodySecondaryText"}:{children:Qd(t.visits,{count:e.count}),variant:"bodySecondaryText"}};var yye=function(e){var t=e.prefix,n=e.sharedContent;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},Bd().createElement(WS,{iconName:"Info",size:"16px"}),Bd().createElement(AA,{textWithTokens:n.noData,tokensAndValues:{"learn-more":Bd().createElement(TA,{"aria-label":n.learnMoreAriaLabel,"data-bi-id":"".concat(t,"-noData-learnMore-link"),href:n.learnMoreLink,target:"_blank"},n.learnMoreToken)}}))},bye=function(e){var t=e.sharedContent,n=e.header,r=e.prefix,o=e.onSearchChange,i=e.searchValue,a=e.isSmallViewport,s=Bd().createElement(WU,{"aria-label":t.searchBoxPlaceHolder,"data-bi-id":"".concat(r,"-search-box"),onChange:function(e,t){o(t||"")},placeholder:t.searchBoxPlaceHolder,value:i,id:"".concat(r,"-search-box")});return a?Bd().createElement(wT,null,Bd().createElement(xT,null,Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},n))),Bd().createElement(xT,{padding:"10px 16px 10px 0px"},s)):Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(wT,{horizontal:!0,padding:"5px 0 0 0"},Bd().createElement(DT,{weightOverride:"semi-bold"},n))),Bd().createElement(_T,{slots:8},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"end",padding:"0 16px 0 0"},s)))},_ye=function(e){var t=e.prefix,n=e.sharedContent,r=e.isRetrying,o=e.onRetryClick;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(DT,null,n.retryHeader),Bd().createElement(IA,{key:"".concat(t,".try-again"),"aria-label":n.retryHeader,"data-bi-id":"".concat(t,".try-again"),onClick:o,disabled:r},n.tryAgain),r?Bd().createElement(fM,{"aria-label":n.retryInProgressAriaLabel}):null)},Cye=["timelineItem","deleteByIds","canDelete"],Eye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,Cye),a=sS(),s=nm(),c=yme().overviewContent.overviewActivities.dialogs,l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y="Dialog.BrowseListItem.SingleRowDelete",b="".concat(mge,".browse"),_=t,C=[{children:_.title}],E={children:Qge(_.timestamp),variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(y,".").concat(_.id),status:"updating"}),e.next=4,n([_.id]);case 4:d(!1),s({name:"".concat(y,".").concat(_.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),s({name:"".concat(y,".").concat(_.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),k=[{"aria-label":u?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(b,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?x:function(){d(!0),v(!1),f(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.BrowseListItem",operationName:"".concat(y,".").concat(_.id),defaultState:"finished"}}}],S=[{"aria-label":c.clearFailed,children:c.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.clearFailed,"data-bi-id":"".concat(b,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=function(){return o?Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:k}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:C}),Bd().createElement(iH,{textElements:[E]}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(C,[E])}),T()]}))}})),wye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n,i="".concat(mge,".browse"),a=yme().overviewContent.overviewActivities.dialogs.collapseExpandAriaLabel;return Bd().createElement(xV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1,expandButtonProps:{"aria-label":a}},o.map((function(e){var t;return Bd().createElement(Eye,{key:e.id,timelineItem:e,deleteByIds:r},null===(t=e.browsedUrls)||void 0===t?void 0:t.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",variant:"Twelve",columns:[Bd().createElement(WO,{children:Bd().createElement(wT,null,Bd().createElement(DT,null,e.title),Bd().createElement(TA,{"aria-label":e.title,"data-bi-id":"".concat(i,".browsed-url"),"data-bi-dnt":"true",href:e.url,target:"_blank"},e.url))})]})})))})))},xye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n,i={initialListLength:o.length};return Bd().createElement(TV,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,listRole:"tree",key:t},i,{header:Bd().createElement(iH,{textElements:[{children:t,variant:"headerText"}]})}),o.map((function(e){return Bd().createElement($ve,{key:e.id,timelineItem:e,deleteByIds:r,isDialog:!0})})))},kye=["timelineItem","deleteByIds","canDelete"],Sye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,kye),a=sS(),s=nm(),c=yme(),l=c.overviewContent.overviewActivities.dialogs,u=c.overviewContent.overviewActivities.drawers.detailsArea,d=Lfe().bingMapsConfig,p=_7((0,Fd.useState)(!1),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(),2),g=m[0],v=m[1],y=_7((0,Fd.useState)(!1),2),b=y[0],_=y[1],C="Dialog.LocationListItem.SingleRowDelete",E="".concat(mge,".location"),w=t,x=_7((0,Fd.useState)(""),2),k=x[0],S=x[1],T=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.location.lat||!w.location.long){e.next=5;break}return e.next=3,tye(d,{lat:w.location.lat,long:w.location.long});case 3:t=e.sent,S(t.formattedAddress);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Wd((function(){T()}));var I=[{children:k},vye(w,u)],A={children:Qge(w.timestamp),variant:"bodySecondaryText"},P=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(C,".").concat(w.id),status:"updating"}),e.next=4,n([w.id]);case 4:f(!1),s({name:"".concat(C,".").concat(w.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),f(!1),_(!0),s({name:"".concat(C,".").concat(w.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),D=(0,Fd.useCallback)((function(){f(!1),clearTimeout(g)}),[g]),R=[{"aria-label":h?l.cancelAriaLabel:l.deleteAriaLabel,"data-bi-id":"".concat(E,h?".cancel":".delete"),iconName:h?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:h?D:function(){f(!0),_(!1),v(setTimeout(P,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.LocationListItem",operationName:"".concat(C,".").concat(w.id),defaultState:"finished"}}}],M=[{"aria-label":l.clearFailed,children:l.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":l.clearFailed,"data-bi-id":"".concat(E,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],N=function(){return o?Bd().createElement(RM,{contentType:b?"callout":"none",columnAlign:"end",calloutElements:M,actionButtonProps:R}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:w.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:I}),Bd().createElement(iH,{textElements:[A]}),N()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:w.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(I,[A])}),N()]}))}})),Tye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n;return Bd().createElement(TV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},o.map((function(e){return Bd().createElement(Sye,{key:e.id,timelineItem:e,deleteByIds:r})})))},Iye=["timelineItem","deleteByIds","canDelete"],Aye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,Iye),a=sS(),s=yme().overviewContent.overviewActivities.dialogs,c=nm(),l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y="Dialog.SearchListItem.SingleRowDelete",b="".concat(mge,".search"),_=t,C=[{children:_.terms}],E={children:Qge(_.timestamp),variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c({name:"".concat(y,".").concat(_.id),status:"updating"}),e.next=4,n([_.id]);case 4:d(!1),c({name:"".concat(y,".").concat(_.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),c({name:"".concat(y,".").concat(_.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),k=[{"aria-label":u?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(b,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?x:function(){d(!0),v(!1),f(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.SearchListItem",operationName:"".concat(y,".").concat(_.id),defaultState:"finished"}}}],S=[{"aria-label":s.clearFailed,children:s.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.clearFailed,"data-bi-id":"".concat(b,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=function(){return o?Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:k}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:C}),Bd().createElement(iH,{textElements:[E]}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(C,[E])}),T()]}))}})),Pye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=e.canDelete,i=void 0===o||o,a=n,s="".concat(mge,".search"),c=yme().overviewContent.overviewActivities.dialogs;return Bd().createElement(xV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralHigh",roundedCorners:!1,expandButtonProps:{"aria-label":c.collapseExpandAriaLabel}},a.map((function(e){var t;return Bd().createElement(Aye,{key:e.id,timelineItem:e,deleteByIds:r,canDelete:i},null!==(t=e.sites)&&void 0!==t&&t.length?e.sites.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",columns:[Bd().createElement(WO,{children:Bd().createElement(wT,null,Bd().createElement(DT,null,e.title),Bd().createElement(TA,{"aria-label":e.title,"data-bi-id":"".concat(s,".visited-url"),"data-bi-dnt":"true",href:e.url,target:"_blank"},e.url))})],variant:"Twelve"})})):Bd().createElement(DH,{variant:"Twelve",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:c.noData}]})]}))})))},Dye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n,i={initialListLength:o.length};return Bd().createElement(TV,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,listRole:"tree",key:t},i,{header:Bd().createElement(iH,{textElements:[{children:t,variant:"headerText"}]})}),o.map((function(e){return Bd().createElement(uye,{key:e.id,timelineItem:e,deleteByIds:r,isDialog:!0})})))},Rye=["timelineItem","deleteByIds","canDelete"],Mye=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=e.canDelete,o=void 0===r||r,i=aG(e,Rye),a=sS(),s=yme().overviewContent.overviewActivities.dialogs,c=nm(),l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y="Dialog.UsageListItem.SingleRowDelete",b="".concat(mge,".usage"),_=t,C={listItemMediaProps:{image:dye(_),size:"sm"},title:"".concat(_.appName)},E={children:_.appPublisher,variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c({name:"".concat(y,".").concat(_.id),status:"updating"}),e.next=4,n([_.id]);case 4:d(!1),c({name:"".concat(y,".").concat(_.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),c({name:"".concat(y,".").concat(_.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),k=[{"aria-label":u?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(b,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?x:function(){d(!0),v(!1),f(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.UsageListItem",operationName:"".concat(y,".").concat(_.id),defaultState:"finished"}}}],S=[{"aria-label":s.clearFailed,children:s.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.clearFailed,"data-bi-id":"".concat(b,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=function(){return o?Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:k}):Bd().createElement(qB,null)};switch(a){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,C),Bd().createElement(iH,{textElements:[E]}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},i,{key:_.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},C,{subtitles:[E]})),T()]}))}})),Nye=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n;return Bd().createElement(TV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},o.map((function(e){return Bd().createElement(Mye,{key:e.id,timelineItem:e,deleteByIds:r})})))},Lye=function(e){var t=e.isHistoryView,n=e.timelineData,r=e.cardType,o=e.loadMore,i=e.deleteByIds,a="ShowAllDialog.loadMore.".concat(r),s="Overview.ShowAllDialogContent.".concat(r);qf(s);var c="privacy.overview.show-all-dialog.".concat(r),l=yme().overviewContent.overviewActivities.drawers.listItems,u=yme().overviewContent.overviewActivities.dialogs,d=yme().overviewContent.overviewActivities.drawers.location.mapLoading,p=nm(),h=_7((0,Fd.useState)(null),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=[];"location"===r&&Object.entries(n.items).forEach((function(e){var t=_7(e,2),n=(t[0],t[1]);b.push({location:{latitude:n.location.lat,longitude:n.location.long}})})),(0,Fd.useEffect)((function(){m(document.getElementById(Gme))}),[]),(0,Fd.useEffect)((function(){t&&f&&(f.scrollTop=0)}),[t,f]);var _=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,y(!0),p({name:a,status:"updating"}),e.next=5,o();case 5:p({name:a,status:"finished"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),p({name:a,status:"update-failed",error:e.t0});case 11:return e.prev=11,y(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[a,p,o]);(0,Fd.useEffect)((function(){var e=!!n.state,t=function(){f&&(f.scrollTop+f.offsetHeight+5>=f.scrollHeight&&!v&&e&&_())};return e?null===f||void 0===f||f.addEventListener("scroll",t):null===f||void 0===f||f.removeEventListener("scroll",t),f&&e&&f.scrollHeight<=f.clientHeight&&!v&&_(),function(){null===f||void 0===f||f.removeEventListener("scroll",t)}}),[f,v,n,_]);var C=Yge(n.items,l),E=Object.entries(C);return Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!1},"location"===r?Bd().createElement(yte,{spinnerAriaLabel:d,mapHeight:260,mapWidth:"100%",progressViewProps:{operationData:{componentName:"bingMapsLocationDialog",operationName:"loadBingMapsLocationDialog"}},mapItems:{pushPins:b}}):null,E.map((function(e){var t=_7(e,2),n=t[0],o=t[1];return function(e,t,n,r){var o={key:t,date:t,timelineItemsAtDate:n,deleteByIds:r};switch(e){case"usage":return Bd().createElement(Nye,o);case"location":return Bd().createElement(Tye,o);case"search":return Wm("PrivWebSearch")?Bd().createElement(Dye,o):Bd().createElement(Pye,o);case"browse":return Wm("PrivWebSearch")?Bd().createElement(xye,o):Bd().createElement(wye,o);default:throw new Error("Dialog list requested for an unsupported data type")}}(r,n,o,i)}))),Bd().createElement(im,{operationData:{operationName:a,componentName:s,defaultState:"finished"},finishedView:Bd().createElement(Bd().Fragment,null),updatingView:Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:5},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":u.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),updateFailedView:Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:"".concat(u.loadMoreError," {tryAgainCta}"),tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":u.loadMoreError,"data-bi-id":"".concat(c,".load-more.try-again"),onClick:_},u.tryAgain)}})),isAlwaysExpanded:!0})}))},Oye=function(e){var t,n=e.showAllDialogState,r=e.setshowAllDialogState,o=e.onClearAllClick,i=e.historyViewData,a=e.deleteHistoryViewDataByIds,s=e.recurringDeletes,c=e.onRecurringDeleteSuccessCallback,l=e.child,u=e.initialSearchTerm,d=e.totalCount,p="timeline.show-all-dialog-v2.".concat(n.dialogDataType);qf(p);var h="ShowAllDialog.SearchFilter.".concat(n.dialogDataType),f="ShowAllDialog.SearchBulkDelete.".concat(n.dialogDataType),m="".concat(kge,".dialog.").concat(n.dialogDataType),g="cardTypeFilter_".concat(n.dialogDataType),v=Rf(),y=nm(),b=ZU(),_=Lfe(),C=yme(),E=C.overviewContent.overviewActivities.dialogs,w=E[n.dialogDataType].showAllTitle,x=jge(d,C.sharedContent,_.language),k=Qd(C.sharedContent.clearAllText,x),S=E.manageScheduledDelete,T=_7((0,Fd.useReducer)(zve,{state:"",items:i.items}),2),I=T[0],A=T[1],P=_7((0,Fd.useState)(null!==u&&void 0!==u?u:""),2),D=P[0],R=P[1],M=cve(D,ige),N=_7((0,Fd.useState)(!0),2),L=N[0],O=N[1],F=_7((0,Fd.useState)(!1),2),B=F[0],H=F[1],z=_7((0,Fd.useState)(!1),2),V=z[0],U=z[1],W=s&&s[g],j=null===(t=_.selfRights)||void 0===t?void 0:t.canManage,q=!l,G=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,U(!0),y({name:h,status:"updating"}),e.next=5,Eve("",{startTime:tge,types:[g],searchTerm:M},null===l||void 0===l?void 0:l.authToken);case 5:t=e.sent,A({type:Xme,firstLoadResult:t}),O(!0),H(!1),y({name:h,status:"finished"}),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),H(!0),y({name:h,status:"failed",error:e.t0});case 16:return e.prev=16,U(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])}))),[null===l||void 0===l?void 0:l.authToken,M,y,g,h]),K=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,U(!0),e.next=4,Eve(I.state,{startTime:tge,types:[g],searchTerm:M},null===l||void 0===l?void 0:l.authToken);case 4:t=e.sent,A({type:Zme,loadMoreResult:t});case 6:return e.prev=6,U(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[0,,6,9]])}))),[g,null===l||void 0===l?void 0:l.authToken,M,I.state]),Y=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,U(!0),e.next=4,a(t);case 4:setTimeout((function(){A({type:Jme,idsToDelete:t})}));case 5:return e.prev=5,setTimeout((function(){U(!1)})),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[0,,5,8]])})));return function(t){return e.apply(this,arguments)}}(),[a]);(0,Fd.useEffect)((function(){G()}),[M,G]);var Q=Qme.includes(n.dialogDataType),X=E[n.dialogDataType].searchBoxAriaLabel,Z=Object.keys(I.items).length,J=0===Z,$=!!!I.state&&J,ee=V||J,te=L&&$||B,ne=L&&""!==M,re=Qd(E.clearList,{numOfItems:Z}),oe=Qd(Z<=1?E.clearListAriaLabelSingular:E.clearListAriaLabel,{numOfItems:Z}),ie=GC({},Lve,n.dialogDataType),ae=function(){r({showDialog:!1,dialogDataType:null})},se=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Object.keys(I.items),eh({area:_.areaPrefix,scenario:"FilteredBulkDelete",step:"Deleting"}),y({name:f,status:"updating"}),e.next=6,Y(t);case 6:setTimeout((function(){rh({data:ie}),y({name:f,status:"finished"})})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),rh({error:e.t0,data:ie}),y({name:f,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),[Y,y,f,I.items]),ce=Bd().createElement(IA,{"aria-label":ne?oe:k,"data-bi-id":"".concat(m,ne?".clear-list":".clear-all"),onClick:ne?se:function(){o(n.dialogDataType)},disabled:ee},ne?re:k),le=Bd().createElement(IA,{"aria-label":S,"data-bi-id":"".concat(m,".manage-scheduled-delete"),onClick:function(){ae();var e=s[g];eh({area:_.areaPrefix,scenario:Dge,step:"Index",data:{activityType:n.dialogDataType,previousInterval:s,source:"ShowAllDialog"}}),b.openDialog(Bd().createElement(jve,{filterType:g,variant:"manage",interval:e.interval,status:e.status,onSuccessCallback:c}))}},S),ue={isOpen:n.showDialog,title:w,closeButton:{"data-bi-id":"close-button","aria-label":E.closeAriaLabel},searchBoxProps:Q?{"aria-label":X,"data-bi-id":"".concat(m,".search-box"),placeholder:E.searchBoxPlaceholder,onChange:function(e,t){R(t||"")},value:D}:void 0,subtitle:j&&!te?{textWithTokens:W?"{clearAllCtaWithManageScheduledDelete}":"{clearAllCta}",tokensAndValues:{clearAllCtaWithManageScheduledDelete:Bd().createElement(wT,{horizontal:!0,childrenGap:"16px"},ce,le),clearAllCta:ce}}:void 0,headerLeftRightPadding:"16px",onDismiss:ae,stickyHeaderFooter:ave,staticBodyWidth:"968px",contentId:Gme,minBodyHeight:{height:80,unit:"vh"},bodyStyleTemp:sve,dialogFooterProps:{dialogType:"secondary",buttonLeft:q?{onClick:function(){v.push({pathname:rge})},text:E.downloadData,"aria-label":E.downloadData,"data-bi-id":"".concat(m,".download-your-data")}:void 0,buttonRight:{onClick:ae,text:E.close,"aria-label":E.closeAriaLabel,"data-bi-id":"".concat(m,".cancel")}}},de=Bd().useMemo((function(){return Bd().createElement(Lye,{isHistoryView:!1,cardType:n.dialogDataType,timelineData:I,loadMore:K,deleteByIds:Y})}),[n.dialogDataType,I,K,Y]),pe=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"transparent",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Blocked",size:"16px"}),Bd().createElement(AA,{textWithTokens:E.noResultMessage,tokensAndValues:{searchTerm:Bd().createElement(DT,{weightOverride:"bold"},M)}})),isAlwaysExpanded:!0}),he=Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:11},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":E.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),fe=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:E.newSearchErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":E.newSearchTryAgainAriaLabel,"data-bi-id":"".concat(m,".new-search.try-again"),onClick:G},E.tryAgain)}})),isAlwaysExpanded:!0}),me=Bd().createElement(wT,{width:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center"},Bd().createElement(fM,{spinnerSize:3,"aria-label":E.clearingListMessage,label:E.clearingListMessage,labelPosition:"bottom"})),ge=Bd().createElement(Bd().Fragment,null,Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:E.clearListErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":E.clearListTryAgainAriaLabel,"data-bi-id":"".concat(m,".clear-list.try-again"),onClick:se},E.tryAgain)}})),isAlwaysExpanded:!0}),de),ve=Bd().createElement(im,{operationData:{operationName:h,componentName:p,defaultState:"finished"},updatingView:he,failedView:fe,finishedView:Bd().createElement(im,{operationData:{operationName:f,componentName:p,defaultState:"finished"},updatingView:me,failedView:ge,finishedView:$?pe:de})});return n.dialogDataType?Bd().createElement(KU,ue,ve):null},Fye="timeline-drawer-v2",Bye=function(e){var t=e.dataType,n=e.child,r="".concat(Fye,".").concat(t);qf(r);var o,i,a="".concat("ActivityDrawers.getTimelineHistory",".").concat(t),s="cardTypeFilter_".concat(t),c=GC({},Lve,t),l=Lfe(),u=nm(),d=ZU(),p=yme(),h=p.overviewContent.recurringDelete,f=p.webSearchContent.webDrawer,m=p.webSearchContent.searchDrawer,g=p.appsServicesContent.usageDrawer,v=p.appsServicesContent.performanceDrawer,y=p.sharedContent,b=_7((0,Fd.useReducer)(zve,{state:"",items:{}}),2),_=b[0],C=b[1],E=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),w=E[0],x=E[1],k=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),S=k[0],T=k[1],I=_7((0,Fd.useState)(!1),2),A=I[0],P=I[1],D=_7((0,Fd.useState)(!1),2),R=D[0],M=D[1],N=_7((0,Fd.useState)(""),2),L=N[0],O=N[1],F=_7((0,Fd.useState)(""),2),B=F[0],H=F[1],z=_7((0,Fd.useState)(!1),2),V=z[0],U=z[1],W=cve(L,ige),j=_7((0,Fd.useState)(-1),2),q=j[0],G=j[1],K=_7((0,Fd.useState)({}),2),Y=K[0],Q=K[1],X=(0,Fd.useRef)(null),Z=_7((0,Fd.useState)(!1),2),J=Z[0],$=Z[1],ee=!n,te="".concat(kge,".").concat(t),ne={};switch(t){case"browse":o=f.drawerArea,i=f.highlightArea,ne["web-learnMoreLink"]=Bd().createElement(TA,{"aria-label":i.tokens.learnToken,"data-bi-id":"".concat(te,".learn-More-link"),href:i.links.learnLink,target:"_blank"},i.tokens.learnToken);break;case"search":o=m.drawerArea,i=m.highlightArea,ne["search-viewChangeLink"]=Bd().createElement(TA,{"aria-label":i.tokens.viewChangeToken,"data-bi-id":"".concat(te,".view-change-link"),href:i.links.viewChangeLink,target:"_blank"},i.tokens.viewChangeToken),ne["search-learnMoreLink"]=Bd().createElement(TA,{"aria-label":i.tokens.learnToken,"data-bi-id":"".concat(te,".learn-More-link"),href:i.links.learnLink,target:"_blank"},i.tokens.learnToken);break;case"usage":o=g.drawerArea,i=g.highlightArea;break;case"performance":o=v.drawerArea,i=v.highlightArea;break;default:throw new Error("Drawer requested for unsupported data type")}var re,oe=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,r,o,i=arguments;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"",U(!0),r=-1,e.prev=3,e.next=6,wve(s,null===n||void 0===n?void 0:n.authToken);case 6:r=e.sent,G(r),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:if(o={state:"",items:[]},0===r){e.next=17;break}return e.next=16,Eve("",{startTime:tge,types:[s],searchTerm:""!==t?t:W},null===n||void 0===n?void 0:n.authToken);case 16:o=e.sent;case 17:U(!1),C({type:Xme,firstLoadResult:o});case 19:case"end":return e.stop()}}),e,null,[[3,10]])}))),[null===n||void 0===n?void 0:n.authToken,s,W]),ie=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Eve(_.state,{startTime:tge,types:[s],searchTerm:W},null===n||void 0===n?void 0:n.authToken);case 2:t=e.sent,C({type:Zme,loadMoreResult:t});case 4:case"end":return e.stop()}}),e)}))),[s,_.state,null===n||void 0===n?void 0:n.authToken,W]),ae=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wve(s,null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,G(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),[s,null===n||void 0===n?void 0:n.authToken]),se=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sve(null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,Q(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),[null===n||void 0===n?void 0:n.authToken]),ce=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kve(t,s,null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,ae();case 4:setTimeout((function(){C({type:Jme,idsToDelete:t})}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,null===n||void 0===n?void 0:n.authToken,ae]),le=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t,r,o){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u({name:a,status:"updating"}),U(!0),$(!1),eh({area:l.areaPrefix,scenario:"FilteredBulkDelete",step:"Deleting"}),e.next=7,kve(t,s,null===n||void 0===n?void 0:n.authToken);case 7:if(!o){e.next=12;break}return e.next=10,oe(r);case 10:e.next=14;break;case 12:return e.next=14,ae();case 14:U(!1),setTimeout((function(){C({type:Jme,idsToDelete:t}),rh({data:c}),u({name:a,status:"finished"})})),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),rh({error:e.t0,data:c}),$(!0),u({name:a,status:"failed",error:e.t0});case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t,n,r){return e.apply(this,arguments)}}(),[s,null===n||void 0===n?void 0:n.authToken,ae]),ue={message:y.tryAgainLongText,ariaMessage:y.tryAgainLongText,closeButton:{"aria-label":y.close,"data-bi-id":"".concat(te,".bulk-delete-failed.close"),id:"".concat(te,".bulk-delete-failed.close")},iconName:"Error",notificationBarType:"error"};J&&(null===(re=X.current)||void 0===re||re.showNotificationBar(),$(!1));var de=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xve([s],null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,ae();case 4:C({type:ege});case 5:case"end":return e.stop()}}),e)}))),[s,null===n||void 0===n?void 0:n.authToken,ae]),pe=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,P(!0),u({name:a,status:"updating"}),e.next=5,oe();case 5:u({name:a,status:"finished"}),M(!1),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),u({name:a,status:"failed",error:e.t0}),U(!1),M(!0);case 14:return e.prev=14,P(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,9,14,17]])})));return function(){return e.apply(this,arguments)}}(),he=function(e,t){if(!e&&!t)throw Error("TimelineDrawer: Must provide recurringDelete data if recurringDelete is not turned off");Q({});var n=Y;e?delete n[s]:n[t.activityType]=t,Q(n)};(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"performance"!==t){e.next=4;break}return u({name:a,status:"finished"}),e.abrupt("return");case 4:return u({name:a,status:"first-load"}),e.next=7,Promise.all([oe(),se()]);case 7:u({name:a,status:"finished"}),M(!1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),u({name:a,status:"failed",error:e.t0}),U(!1),M(!0);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[null===n||void 0===n?void 0:n.authToken,t,u,a,W]);var fe=function(e,t,n,r,o,i){var a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=Lfe(),c=yme().sharedContent,l=["s","m"].includes(sS()),u=Lfe().areaPrefix,d="".concat(e,".drawer"),p=qge(o,i,c,s.language),h=-1!==o,f=Bd().createElement(DT,{variant:"headerText"},n);h&&l&&(f=Bd().createElement(AA,{textWithTokens:"{0} {1}",tokensAndValues:{0:Bd().createElement(DT,{variant:"headerText"},n),1:Bd().createElement(DT,{variant:"bodyPrimaryText"},"(",p,")")}}));var m=[{column:Bd().createElement(iM,{media:{size:"sm",image:{imageType:"icon",iconName:t},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:f},subtitleTextProps:{children:r}}),slots:h&&!l?9:12}];return h&&!l&&m.push({column:Bd().createElement(tM,{statusAlignment:"end",textWeightOverride:"semi-bold"},p),slots:3}),{onClickToOpen:function(){return zge(!0,d,u)},onClickToClose:function(){return zge(!1,d,u)},defaultExpanded:a,drawerHeader:Bd().createElement(xM,{totalSlots:12,chevronPosition:"end",columns:m})}}(t,{browse:"Globe",search:"Search",usage:"BoardActivityFeed",performance:"BoardActivityFeed"}[t],o.header,o.subtitle,q,o.dataCount,!0),me=function(e,t,n){var r=Object.values(n.bodyText);return{height:"small",backgroundType:"card",bodyText:qve(r,t,e),imageProps:{alt:n.image.alt,src:n.image.src},layoutType:"2/3",paddingVariant:"24px",borderRadius:"0px",ctaProps:[]}}(t,ne,i),ge=Bd().createElement(qz,Object.assign({key:t},me));(0,Fd.useEffect)((function(){var e;B&&(null===(e=document.getElementById(B))||void 0===e||e.focus())}));var ve=""===W?q:Object.keys(_.items).length>5?5:Object.keys(_.items).length,ye=function(e,t,n,r,o,i,a,s,c,l,u,d){var p,h=!(arguments.length>12&&void 0!==arguments[12])||arguments[12],f=yme(),m=Lfe(),g=Rf(),v=sS(),y=null===(p=m.selfRights)||void 0===p?void 0:p.canManage,b=f.sharedContent,_=f.webSearchContent.pageContent,C=f.appsServicesContent,E="".concat(kge,".").concat(r),w=""!==d,x=!(!e.state||""===e.state),k="s"===v,S="",T="";switch(r){case"browse":S=_.webShowMoreAriaLabel,T=_.webListHeader;break;case"search":S=_.searchShowMoreAriaLabel,T=_.searchListHeader;break;case"performance":return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",footer:y?{links:[{onClick:function(){return i(r)},"data-bi-id":"".concat(E,".clear-all"),"aria-label":C.performanceDrawer.detailsArea.text.clearAll,id:"".concat(E,".clear-all"),children:C.performanceDrawer.detailsArea.text.clearAll}],shadow:!1}:void 0}}var I,A=Object.values(e.items),P=A.length,D=A.slice(0,5).map((function(e){return e.id})),R=jge(n,b,m.language),M=Bd().createElement(_ye,{prefix:E,sharedContent:b,isRetrying:u,onRetryClick:s}),N=Bd().createElement(bye,{prefix:E,sharedContent:b,header:T,openConfirmationDialog:i,dataType:r,showDownload:h,onSearchChange:a,searchValue:d,isSmallViewport:k});I=0===t?Bd().createElement(yye,{prefix:E,sharedContent:b}):l?d?Bd().createElement(wT,{childrenGap:10},M,N):M:N;var L="".concat(E,w?".show-more-results":".show-more-activities"),O=w?e.state&&""!==e.state?Qd(b.showMoreResultsWithCount,P-5):Qd(b.showMoreResultsWithCount2,P-5):b.showMoreText,F=[],B=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(D,d,x);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(P>5||e.state&&""!==e.state)&&F.push({onClick:function(){return o(r)},"data-bi-id":L,"aria-label":S,id:L,children:O}),h&&F.push({onClick:function(){g.push("/download-data")},"data-bi-id":"".concat(E,".download-your-data"),"aria-label":b.downloadData,id:"".concat(E,".download-your-data"),children:b.downloadData,href:"/privacy/download-data"});var H=w?Qd(b.clearListCtaAriaLabel,R):Qd(b.clearAllText,"-1"!==R?R:""),z={onClick:function(){return w?B():i(r)},"data-bi-id":"".concat(E,w?".clear-list":".clear-all"),"aria-label":H,id:"".concat(E,w?".clear-list":".clear-all"),children:H};return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:I,footer:A.length>=1?y?{type:"twocolumn",leftLinks:F,rightLink:z,shouldRightLinkRightAligned:!0,shadow:!1}:{links:F,shadow:!1}:void 0}}(_,q,ve,t,(function(e){jp(),x({showDialog:!0,dialogDataType:e})}),(function(e){Wp(Ige),Nve(),T({showDialog:!0,dialogDataType:e})}),(function(e){O(e),H("".concat(te,"-search-box")),U(!0)}),pe,le,R,A,L,ee),be=Object.values(_.items),_e=be.slice(0,5),Ce=Bd().createElement(TV,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,listRole:"tree",key:t},ye),V?Array.from({length:5},(function(e,t){return Bd().createElement(DH,{key:t,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})})):_e.map((function(e){return gye(t,e,ce)}))),Ee=Bd().createElement(TV,Object.assign({isAlwaysExpanded:!0},ye),Bd().createElement(DH,{key:"web-search-line-item",id:"web-search-line-item",variant:"Twelve",columns:[Bd().createElement(iH,{textElements:[{children:Bd().createElement(AA,{textWithTokens:y.noResultsFound,tokensAndValues:{0:Bd().createElement(DT,{weightOverride:"bold"},W)}}),variant:"bodyPrimaryText"}]})]})),we=[];if(Y&&Y[s]){var xe=Y[s],ke="info",Se="";switch(xe.status){case"active":Se=Qd(h.status.active,[Wve[xe.interval],qA(xe.nextDelete)]);break;case"paused":ke="warning",Se=xe.lastSucceededDelete?Qd(h.status.paused,qA(xe.lastSucceededDelete)):h.status.pausedWithNoLastSucceededDelete;break;case"failed":ke="warning",Se=Qd(h.status.failed,qA(xe.nextDelete))}we=we.concat(Bd().createElement(gj,{key:"manage-recurring-delete-".concat(t),messageBarType:ke,messageContent:Se,actionProps:{actionType:"noHrefLink",children:h.status.manageActionText,"data-bi-id":"manage-recurring-delete-".concat(t),"aria-label":h.status.manageLinkAriaLabel,onClick:function(){return e=xe.interval,n=xe.status,eh({area:l.areaPrefix,scenario:Dge,step:"Index",data:{activityType:t,previousInterval:e,source:"TimelineDrawer"}}),void d.openDialog(Bd().createElement(jve,{filterType:s,variant:"manage",interval:e,status:n,onSuccessCallback:he}));var e,n}}}))}we=q>0&&0===be.length&&""!==W?we.concat(Ee):we.concat(Ce);var Te=Bd().createElement(wT,{id:"".concat(t,"-drawer")},w.showDialog?Bd().createElement(Oye,{showAllDialogState:w,setshowAllDialogState:x,onClearAllClick:function(e){Wp(Ige),Nve(),T({showDialog:!0,dialogDataType:e}),x(YC(YC({},w),{},{showDialog:!1}))},historyViewData:_,loadMoreHistoryViewData:ie,deleteHistoryViewDataByIds:ce,recurringDeletes:Y,onRecurringDeleteSuccessCallback:he,child:n,initialSearchTerm:W,totalCount:q}):null,S.showDialog?Bd().createElement(Kve,{confirmationDialogState:S,setConfirmationDialogState:T,onClearAllCancel:function(){Wp(Tp),w.dialogDataType&&x(YC(YC({},w),{},{showDialog:!0})),T({showDialog:!1,dialogDataType:null}),nh({data:c})},deleteAll:de,recurringDeletes:Y,onRecurringDeleteSuccessCallback:he}):null);return Bd().createElement(Bd().Fragment,null,Bd().createElement(oq,{key:t,drawerAreaProps:fe,highlightArea:ge,detailsArea:we}),Bd().createElement(hx,{operationData:{componentName:r,operationName:a},firstLoadView:Te,finishedView:Te}),Bd().createElement(j2,Object.assign({ref:X},ue)))},Hye="".concat(Nme,"/signedout/third-party-sharing-preference"),zye=function(t,n){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,Ime(Hye,"".concat(Ome,".UPDATETHIRDPARTYSHARINGPREFERENCE"),{muid:t,optOut:n})];case 1:return[2,e.sent()]}}))}))},Vye=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[4,Ime("".concat(Nme,"/user/settings/a"),"".concat(Ome,".UPDATEUSERSETTINGSADVERTISING"),{etag:"-",enabled:t})];case 1:return[2,e.sent()]}}))}))},Uye=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[4,Ime("".concat(Nme,"/user/settings/t"),"".concat(Ome,".UPDATEUSERSETTINGSTHIRDPARTYSHARING"),{etag:"-",enabled:t})];case 1:return[2,e.sent()]}}))}))},Wye=function(e,t){lh();var n=window.location,r=ch(),o=encodeURIComponent(r);return"".concat(t,"?operation=").concat(e,"&domain=").concat(n.host,"&protocol=").concat(n.protocol,"&MS-CV=").concat(o)},jye=function(){var e=window.location.href,t="#FAQ",n=window.location.hash;return n?e.replace(n,t):"".concat(e).concat(t)},qye=function(){"1"===Qfe(Fge,!1)&&(Zfe(Fge),function(){var e=new Date(Date.now());e.setDate(e.getDate()+390),Xfe({name:Bge,value:"1",requiresConsent:!1,expiresOn:e,domain:window.location.hostname.split("account").pop()})}())},Gye="".concat(Nme,"/user/interests"),Kye="UserInterests",Yye=function(t,n,r){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return Rme(Kye),[4,Ime(Gye,"".concat(Ome,".UPDATEUSERINTERESTS"),{etag:"-",interestIds:t,isInterested:n,interestType:r})];case 1:return[2,e.sent()]}}))}))},Qye={ApparelAccessories:"Shirt",ArtsEntertainment:"MyMoviesTV",AutosVehicles:"Car",BabyChildrensProducts:"Family",BeautyProductsServices:"FavoriteStar",BusinessIndustrialProducts:"CityNext2",BusinessServices:"Financial",ComputersPeripherals:"System",ConsumerElectronics:"Devices3",DatingServices:"Heart",Default:"FavoriteStar",Education:"Education",Employment:"Work",FinancialServices:"Money",GiftsOccasions:"Giftbox",HobbiesLeisure:"Leisure",HomeGarden:"Street",PersonalServices:"FavoriteStar",RealEstate:"Home",Social:"Group",Software:"AllApps",SportsFitness:"Jogging",Telecom:"Wifi",Travel:"Airplane",Websitedomains:"Website"},Xye="interests.ads-list",Zye=function(){var t="InterestBasedAdsList.getUserInterests",n="InterestBasedAdsList.updateUserInterests",r=yme().adSettingsContent.interestList,o=r.title,i=r.description,a=r.current,s=r.removed,c=_7((0,Fd.useState)({}),2),l=c[0],u=c[1],d={},p=_7((0,Fd.useState)({}),2),h=p[0],f=p[1],m=_7((0,Fd.useState)({}),2),g=m[0],v=m[1],y=function(){var t=_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,Kye,Gye,"".concat(Ome,".GETUSERINTERESTS"))];case 1:return[2,e.sent()]}}))}));case 2:n=t.sent,d={},n.interests&&n.interests.forEach((function(e){d[e.id]=e})),u(d);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var e={},t={};Object.values(d).forEach((function(n){n.isTurnedOff?e[n.groupName]?e[n.groupName].push(n):e[n.groupName]=[n]:t[n.groupName]?t[n.groupName].push(n):t[n.groupName]=[n]})),v(e),f(t)},_=function(){var e=_me(cfe().mark((function e(t){var n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yye(t.id,t.isTurnedOff,t.interestType);case 2:"domain"===t.interestType?delete(d=l)[t.id]:(n={id:t.id,name:t.name,isTurnedOff:!t.isTurnedOff,groupId:t.groupId,groupName:t.groupName,interestType:t.interestType},(d=l)[t.id]=n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=nm();Wd(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,C({name:t,status:"first-load"}),e.next=4,y();case 4:C({name:t,status:"finished"}),b(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),C({name:t,status:"failed",error:e.t0});case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))));var E=function(e){return _me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,C({name:"".concat(n,".").concat(e.id),status:"updating"}),t.next=4,_(e);case 4:C({name:"".concat(n,".").concat(e.id),status:"finished"}),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),C({name:"".concat(n,".").concat(e.id),status:"update-failed",error:t.t0});case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))},w=function(e,t){var o=t?a:s,i=Object.entries(e);return 0===i.length?null:Bd().createElement(TV,{shadow:!0,roundedCorners:!0,listRole:"tree",header:Bd().createElement(aT,{tag:"h2",variant:"headerText"},o),initialListLength:5,showMoreButtonProps:{children:r.seeAll,"data-bi-id":"".concat(vge,".see-all"),"aria-label":"".concat(r.seeAll," ").concat(o)},showLessButtonProps:{children:r.seeLess,"data-bi-id":"".concat(vge,".see-less"),"aria-label":"".concat(r.seeLess," ").concat(o)}},i.sort().map((function(e){var i=_7(e,2),a=i[0],s=i[1],c={size:"md",image:{imageType:"icon",iconName:Qye[s[0].groupId]||Qye.Default},padding:"0px",height:"24px"},l={kind:"text",children:a,nowrap:!1,"aria-label":"".concat(o," ").concat(a)},u={"data-bi-id":"".concat(vge,".choice-summary"),"aria-label":"".concat(a)};return Bd().createElement(cV,{drawerContentPadding:"16px 16px 16px 42px",borderRadius:"0px",removeTreeRole:!0,drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{media:c,title:l}),slots:6},{column:Bd().createElement(tM,null,s.length.toString()),slots:6}],totalSlots:12}),key:a},Bd().createElement(wT,{horizontal:!0,wrap:!0},Bd().createElement(UO,Object.assign({operationData:{progressViewOperationData:{componentName:Xye,operationName:n,defaultState:"finished"},errorMessage:r.tagError},key:a,options:s.sort().map((function(e){return{label:e.name,onClick:E(e),"data-bi-id":"".concat(vge,".interest-").concat(t?"remove":"add"),"aria-label":"".concat(r.remove," ").concat(e.name),id:e.id}}))},u))))})))};return Bd().createElement(hx,{operationData:{componentName:Xye,operationName:t},firstLoadView:Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(TV,{isAlwaysExpanded:!0,header:Bd().createElement(aM,{height:20,width:"20%"})},Bd().createElement(ZO,null),Bd().createElement(ZO,null),Bd().createElement(ZO,null),Bd().createElement(ZO,null),Bd().createElement(ZO,null)),Bd().createElement(TV,{isAlwaysExpanded:!0,header:Bd().createElement(aM,{height:20,width:"20%"})},Bd().createElement(ZO,null),Bd().createElement(ZO,null),Bd().createElement(ZO,null))),finishedView:0===Object.keys(l).length?Bd().createElement(wT,{"data-testid":"No Interests"},Bd().createElement(aT,{tag:"h2",variant:"paneTitle"},r.noInterests.header),Bd().createElement(DT,null,r.noInterests.text)):Bd().createElement(wT,null,Bd().createElement(wT,{childrenGap:"5px",padding:"40px 0px 30px 0px"},Bd().createElement(aT,{tag:"h2",variant:"paneTitle"},o),Bd().createElement(DT,null,i)),Bd().createElement(wT,{childrenGap:"20px"},w(h,!0),w(g,!1))),failedView:Bd().createElement(vj,{"data-testid":"getUserInterests-failed",correlationVector:ch(),errorMessage:r.listErrorMessage,imageSrc:r.listErrorImage.src})})},Jye="interests.ads.v2",$ye=function(t){var n=t.signedIn,r="InterestBasedAdsV2.userAdSettings",o="InterestBasedAdsV2.thirdPartyAdsToggle",i="third-party-toggle-div",a="35px",s=Lfe(),c=s.choiceApiConfig.cookieEndpoint,l=s.choiceApiConfig.choiceEndpoint,u=s.choiceApiConfig.muidCookieEndpoint,d=n&&"us"===s.msaCountryCode.toLowerCase(),p=n?vge:_ge,h=yme().adSettingsContent,f=h.interestChoice,m=h.interestChoice.descriptionFull,g=h.thirdPartyAds,v=g.pageTitle,y=g.pageDescription,b=g.tokens,_=h.signInRichText,C=h.toggle,E=jye(),w={link:Bd().createElement(TA,{"data-bi-id":"".concat(p,".interest-choice-link"),"aria-label":f.labels.link,href:f.link,target:"_blank"},f.tokens.link),faq:Bd().createElement(TA,{"data-bi-id":"".concat(p,".faq-jump-link"),"aria-label":f.labels.faq,href:E},f.tokens.faq),br:Bd().createElement("br",null),shareDataForPersonalizedAds:Bd().createElement(DT,{weightOverride:"bold",variant:"metadataText"},b.shareDataForPersonalizedAds)},x=s.signInLink||"https://".concat(window.location.hostname,"/auth/complete-signin?ru=").concat(window.location.href),k=Wye("thirdparty",c),S=_7((0,Fd.useState)(k),2),T=S[0],I=S[1],A=_7((0,Fd.useState)(""),2),P=A[0],D=A[1],R=_7((0,Fd.useState)(""),2),M=R[0],N=R[1],L=_7((0,Fd.useState)(""),2),O=L[0],F=L[1],B=_7((0,Fd.useState)(""),2),H=B[0],z=B[1],V=_7((0,Fd.useState)(""),2),U=V[0],W=V[1],j=_7((0,Fd.useState)(!1),2),q=j[0],G=j[1],K=_7((0,Fd.useState)(!1),2),Y=K[0],Q=K[1],X=_7((0,Fd.useState)({adsChecked:!1,thirdPartyAdsChecked:!1,adsDisabled:!0,thirdPartyAdsDisabled:!0,firstLoad:!0,thirdPartyCookiesEnabled:!0,msaAdsEnabled:!0,msaThirdPartyAdsEnabled:!0}),2),Z=X[0],J=X[1],$=navigator.globalPrivacyControl,ee=Kf().addRequiredComponent,te=nm(),ne=function(){var e=_me(cfe().mark((function e(t,n){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!n){e.next=4;break}J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})),e.next=15;break;case 4:if(t||n){e.next=8;break}J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!0,msaThirdPartyAdsEnabled:!0,thirdPartyAdsDisabled:!1})})),e.next=15;break;case 8:if(!t||n){e.next=14;break}return e.next=11,Uye(!1);case 11:J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})),e.next=15;break;case 14:!t&&n&&(N(Wye("thirdpartyadsoptout",l)),""===U&&Q(!0),J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})));case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();Wd(_me(cfe().mark((function t(){var o,a;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.onmessage=function(e){!e.data||"null"!==e.origin&&e.origin!=="".concat(window.location.protocol,"//").concat(window.location.hostname)&&""!==e.origin||F(e.data)},te({name:r,status:"first-load"}),!n){t.next=25;break}return t.prev=3,t.next=6,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,"UserSettings","".concat(Nme,"/user/settings"),"".concat(Ome,".GETUSERSETTINGS"))];case 1:return[2,e.sent()]}}))}));case 6:if(o=t.sent,!$){t.next=15;break}if(!o.sharingState){t.next=11;break}return t.next=11,Uye(!1);case 11:J((function(e){return YC(YC({},e),{},{thirdPartyAdsDisabled:!0,msaThirdPartyAdsEnabled:!1,msaAdsEnabled:o.advertising})})),te({name:r,status:"finished"}),t.next=18;break;case 15:J((function(e){return YC(YC({},e),{},{msaAdsEnabled:o.advertising,msaThirdPartyAdsEnabled:o.sharingState})})),qye(),te({name:r,status:"finished"});case 18:"true"===new URLSearchParams(window.location.search.toLowerCase()).get("scrolltonewtoggle")&&(null===(a=document.getElementById(i))||void 0===a||a.scrollIntoView()),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(3),window.onmessage=null,te({name:r,status:"failed",error:t.t0});case 25:case"end":return t.stop()}}),t,null,[[3,21]])}))));var re=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===U){e.next=3;break}return e.next=3,zye(U,t);case 3:N(Wye(t?"thirdpartyadsoptout":"thirdpartyadsoptin",l)),te({name:o,status:"finished"});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oe=function(){var e=_me(cfe().mark((function e(t){var n,r=arguments;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.prev=1,e.next=4,Uye(t);case 4:J((function(e){return YC(YC({},e),{},{msaThirdPartyAdsEnabled:t,thirdPartyAdsChecked:t,thirdPartyAdsDisabled:n})})),e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),te({name:o,status:"update-failed",error:e.t0}),n!==Z.thirdPartyAdsDisabled&&J((function(e){return YC(YC({},e),{},{thirdPartyAdsDisabled:n})})),e.abrupt("return");case 12:return e.next=14,re(!t);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),ie=function(){var e=_me(cfe().mark((function e(){var t,i,a,s;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(te({name:r,status:"updating"}),!n){e.next=22;break}return e.prev=2,e.next=5,Vye(!Z.adsChecked);case 5:J((function(e){return YC(YC({},e),{},{msaAdsEnabled:!Z.adsChecked})})),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),te({name:r,status:"update-failed",error:e.t0}),e.abrupt("return");case 12:if(!Z.adsChecked===Z.thirdPartyAdsChecked){e.next=22;break}if(t=!Z.msaThirdPartyAdsEnabled,i=!!Z.adsChecked,$||q){e.next=21;break}return te({name:o,status:"updating"}),e.next=19,oe(t,i);case 19:e.next=22;break;case 21:q&&J((function(e){return YC(YC({},e),{},{thirdPartyAdsDisabled:i})}));case 22:Z.thirdPartyCookiesEnabled?(a=Z.adsChecked?"muidoptout":"muidoptin",s=Wye(a,l),I(s)):(J((function(e){return YC(YC({},e),{},{adsChecked:!Z.adsChecked,thirdPartyCookiesEnabled:!1})})),te({name:r,status:"finished"}));case 23:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te({name:o,status:"updating"}),t=!Z.thirdPartyAdsChecked,e.next=4,oe(t);case 4:G(!t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=(0,Fd.useCallback)((function(){if(!n||Z.msaAdsEnabled)J((function(e){return YC(YC({},e),{},{adsChecked:!0,adsDisabled:!1,firstLoad:!1})})),te({name:r,status:"finished"});else{var e=Wye("muidoptout",l);I(e)}}),[Z,l,te,n]),ce=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!Z.msaAdsEnabled){e.next=12;break}return e.prev=1,e.next=4,Vye(!1);case 4:J((function(e){return YC(YC({},e),{},{msaAdsEnabled:!1})})),e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),window.onmessage=null,te({name:r,status:"failed",error:e.t0}),e.abrupt("return");case 12:if(!n||!Z.thirdPartyAdsChecked&&!Z.msaThirdPartyAdsEnabled){e.next=15;break}return e.next=15,oe(!1,!0);case 15:J((function(e){return YC(YC({},e),{},{adsChecked:!1,adsDisabled:!1,firstLoad:!1,thirdPartyAdsDisabled:!Z.msaThirdPartyAdsEnabled})})),te({name:r,status:"finished"});case 17:case"end":return e.stop()}}),e,null,[[1,7]])}))),[Z,te,n]),le=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==Qfe(Bge,!1)){e.next=9;break}if(Zfe(Bge),""===U){e.next=5;break}return e.next=5,zye(U,!0);case 5:return t=Wye("thirdpartyadsoptout",l),N(t),I(Wye("status",l)),e.abrupt("return");case 9:n=!Z.msaThirdPartyAdsEnabled||!Z.msaAdsEnabled,ne(!1,n),I(Wye("status",l)),te({name:r,status:"finished"});case 13:case"end":return e.stop()}}),e)}))),[Z,l,te]),ue=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"===Qfe(Bge,!1)){e.next=8;break}if(""===U){e.next=4;break}return e.next=4,zye(U,!1);case 4:return t=Wye("thirdpartyadsoptin",l),N(t),I(Wye("status",l)),e.abrupt("return");case 8:n=!Z.msaThirdPartyAdsEnabled||!Z.msaAdsEnabled,ne(!0,n),Z.msaAdsEnabled||J((function(e){return YC(YC({},e),{},{thirdPartyAdsDisabled:!0})})),I(Wye("status",l)),te({name:r,status:"finished"});case 13:case"end":return e.stop()}}),e)}))),[Z,te]),de=(0,Fd.useCallback)((function(){J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!0,thirdPartyAdsDisabled:!1,firstLoad:!1})})),te({name:r,status:"finished"})}),[Z,l,te]),pe=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Q(!1),J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!1,thirdPartyAdsDisabled:$||!Z.adsChecked,firstLoad:!1})})),te({name:r,status:"finished"});case 3:case"end":return e.stop()}}),e)}))),[Z,te]),he=(0,Fd.useCallback)((function(){$&&""!==U&&(Z.thirdPartyAdsChecked&&(te({name:o,status:"updating"}),Uye(!1),re(!0)),J((function(e){return YC(YC({},e),{},{thirdPartyAdsChecked:!1,thirdPartyAdsDisabled:!0})})))}),[Z,$,U]),fe=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,n,o,i;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="Error occurred when loading URL: ".concat(T),!Z.firstLoad){e.next=7;break}window.onmessage=null,n=new Error("".concat(t," on first load")),te({name:r,status:"failed",error:n}),e.next=20;break;case 7:return e.prev=7,e.next=10,Vye(!Z.msaAdsEnabled);case 10:J((function(e){return YC(YC({},e),{},{msaAdsEnabled:!Z.msaAdsEnabled})})),o=Error(t),te({name:r,status:"update-failed",error:o}),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(7),window.onmessage=null,i=new Error("".concat(e.t0,". ").concat(t)),te({name:r,status:"failed",error:i});case 20:case"end":return e.stop()}}),e,null,[[7,15]])}))),[Z,te,T]);(0,Fd.useEffect)((function(){if(O!==H&&"string"===typeof O){if(O.startsWith("Muid")){var e=O.split(":")[1];""!==e&&(W(e),he(),Y&&zye(e,!Z.thirdPartyAdsChecked))}switch(O){case"ThirdPartyCookiesEnabled":if(n){var t=Wye("muid",u);D(t);var o=Wye("thirdpartyadsstatus",l);N(o)}else{var i=Wye("status",l);I(i)}J((function(e){return YC(YC({},e),{},{adsDisabled:!0,thirdPartyCookiesEnabled:!0})}));break;case"ThirdPartyCookiesDisabled":n?(J((function(e){return YC(YC({},e),{},{adsChecked:Z.msaAdsEnabled,adsDisabled:!1,thirdPartyCookiesEnabled:!1})})),te({name:r,status:"finished"})):(J((function(e){return YC(YC({},e),{},{adsChecked:!1,adsDisabled:!0,thirdPartyCookiesEnabled:!1})})),te({name:r,status:"finished"}));break;case"CookieOptedIn":se();break;case"CookieOptedOut":ce();break;case"StatusThirdPartyAdsCookieOptedIn":le();break;case"StatusThirdPartyAdsCookieOptedOut":ue();break;case"ThirdPartyAdsCookieOptedIn":de();break;case"ThirdPartyAdsCookieOptedOut":pe();break;case"Error":fe()}z(O)}}),[O,H,Z,n,l,u,te,se,ce,fe]),(0,Fd.useEffect)((function(){vp(Hve,"".concat(Z.adsChecked)),vp(Bve,"".concat(Z.thirdPartyAdsChecked))}),[Z]);var me=function(){return Z.thirdPartyCookiesEnabled?null:Bd().createElement(DT,{colorOverride:"error"},f.thirdPartyCookiesDisabled)},ge=h.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",Z.adsChecked?"off":"on"),ve=h.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",Z.thirdPartyAdsChecked?"off":"on"),ye=function(){var e={"aria-label":_.text,"data-bi-id":"".concat(p,".sign-in-link"),href:x,children:_.text};return n?null:Bd().createElement(AA,{textWithTokens:_.textWithToken,tokensAndValues:{signIn:Bd().createElement(TA,Object.assign({id:"sign-in-link"},e))}})},be=[{actionProps:{id:"ad-settings-toggle","aria-label":C.label,checked:Z.adsChecked,"data-bi-id":"".concat(p,".toggle"),kind:"toggle",offText:C.off,onChange:ie,onText:C.on,disabled:Z.adsDisabled,operationData:{progressViewOperationData:{componentName:Jye,operationName:r,defaultState:"finished"},errorCallout:{errorMessage:ge,errorMessageAriaLabel:ge,targetOrTriggerButton:{"aria-label":C.calloutAriaLabel,"data-bi-id":"".concat(p,".toggle.error-callout")}}}}}],_e=[{actionProps:{id:"".concat(bge,".toggle"),"aria-label":C.label,checked:Z.thirdPartyAdsChecked,"data-bi-id":"".concat(bge,".toggle"),kind:"toggle",offText:C.off,onChange:ae,onText:C.on,disabled:!!$||Z.thirdPartyAdsDisabled,operationData:{progressViewOperationData:{componentName:Jye,operationName:o,defaultState:"finished"},errorCallout:{errorMessage:ve,errorMessageAriaLabel:ve,targetOrTriggerButton:{"aria-label":C.calloutAriaLabel,"data-bi-id":"".concat(bge,".toggle.error-callout")}}}}}],Ce=[{actionProps:{kind:"toggleShimmer",width:"72px"}}],Ee={text:f.title,tag:"h2",variant:"paneTitle"},we={text:v,tag:"h2",variant:"paneTitle"},xe=Bd().createElement(wT,{childrenGap:16},Bd().createElement(DT,{variant:"metadataText"},g.signedInAdditionalInfoLine1),Bd().createElement(AA,{variant:"metadataText",textWithTokens:g.signedInAdditionalInfoLine2,tokensAndValues:w})),ke=Z.thirdPartyAdsChecked?{alt:g.thirdPartyAdsImageOn.alt,src:g.thirdPartyAdsImageOn.src}:{alt:g.thirdPartyAdsImageOff.alt,src:g.thirdPartyAdsImageOff.src};return Bd().createElement(Bd().Fragment,null,Bd().createElement(hx,{operationData:{operationName:r,componentName:Jye},firstLoadView:Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:m,tokensAndValues:w},imageProps:Z.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:Ce,featureHeading:Ee,height:"small",layoutType:"2/3"}),d?Bd().createElement("div",{style:{marginTop:a},id:i},Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:y,tokensAndValues:w},ctaProps:Ce,featureHeading:we,height:"small",imageProps:ke,layoutType:"2/3"})):null),finishedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:m,tokensAndValues:w},imageProps:Z.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:be,featureHeading:Ee,height:"small",layoutType:"2/3"}),Bd().createElement(wT,null,me(),ye()),n&&Z.adsChecked?(ee(Xye),Bd().createElement(Zye,null)):null,d?Bd().createElement("div",{style:{marginTop:a},id:i},Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:y,tokensAndValues:w},ctaProps:_e,featureHeading:we,height:"small",imageProps:ke,layoutType:"2/3"}),Bd().createElement(wT,{childrenGap:15},$?Bd().createElement(DT,{colorOverride:"error"},h.thirdPartyAds.globalPrivacyControlEnabledError):null,xe)):null),updateFailedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:m,tokensAndValues:w},imageProps:Z.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:be,featureHeading:Ee,height:"small",layoutType:"2/3"}),Bd().createElement(wT,null,me(),ye()),d?Bd().createElement("div",{style:{marginTop:a},id:i},Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:y,tokensAndValues:w},imageProps:ke,ctaProps:_e,featureHeading:we,height:"small",layoutType:"2/3"}),xe):null),failedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:m,tokensAndValues:w},imageProps:Z.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},featureHeading:Ee,height:"small",layoutType:"2/3"}),d?Bd().createElement("div",{style:{marginTop:a},id:i},Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:y,tokensAndValues:w},imageProps:ke,featureHeading:we,height:"small",layoutType:"2/3"})):null,Bd().createElement(vj,{"data-testid":"getUserInterests-failed",correlationVector:ch(),errorMessage:f.choiceOrMsaError,imageSrc:f.toggleErrorImage.src}))}),Bd().createElement("iframe",{id:"muid-optout-iframe-react",name:"muid-optout-iframe-react",src:T,style:{display:"none"},title:"Choice iframe",sandbox:"allow-scripts"}),Bd().createElement("iframe",{id:"muid-thirdPartyCookies-optout-iframe",name:"muid-thirdPartyCookies-optout-iframe",src:M,style:{display:"none"},title:"Choice third party cookies opt out iFrame",sandbox:"allow-scripts"}),Bd().createElement("iframe",{id:"muid-iframe-react",name:"muid-iframe-react",src:P,style:{display:"none"},title:"Choice iframe muid",sandbox:"allow-scripts"}))},ebe=(0,Fd.createContext)({}),tbe=function(){var e=(0,Fd.useContext)(ebe);if(null===e)throw new Error("OboContext: Context is not initialized. Confirm that your app is contained within an OboProvider.");return e},nbe=function(e){var t=e.selfRights,n=e.kids,r=void 0===n?[]:n,o=e.children,i=new URLSearchParams(Mf().search).get("idx")||"",a=Number(i),s=[{authToken:void 0,canManage:null===t||void 0===t?void 0:t.canManage}].concat(i7(r.map((function(e){var t;return{authToken:e.authToken,canManage:(null===(t=e.oboRights)||void 0===t?void 0:t.canManage)||!1}})))),c=s[a]?a:0,l=s[c].authToken,u=s[c].canManage;return(0,Fd.useEffect)((function(){vp(Fve,0===c?u?"self":"self-cannot-delete":"obo")}),[c,u]),Bd().createElement(ebe.Provider,{value:{authToken:l,canManage:u}},o)},rbe="thirdParty.ads",obe=function(){var e="ThirdPartyAds.userAdSettings",t=Lfe(),n=t.choiceApiConfig.cookieEndpoint,r=t.choiceApiConfig.muidCookieEndpoint,o=t.choiceApiConfig.choiceEndpoint,i=yme().adSettingsContent,a=i.thirdPartyAds.pageInfo,s=i.thirdPartyAds.pageTitle,c=i.thirdPartyAds.pageDescription,l=i.thirdPartyAds.tokens,u=i.interestChoice.labels.faq,d=i.interestChoice.tokens.faq,p=i.toggle,h=i.thirdPartyAds.thirdPartyAdsImageOn,f=i.thirdPartyAds.thirdPartyAdsImageOff,m=t.signInLink||"https://".concat(window.location.hostname,"/auth/complete-signin?ru=").concat(window.location.href),g="https://".concat(window.location.hostname,"/privacy/ad-settings/signedout"),v=jye(),y={faq:Bd().createElement(TA,{"data-bi-id":"".concat(Cge,".faq-jump-link"),"aria-label":u,href:v},d),signIn:Bd().createElement(TA,{id:"sign-in-link","aria-label":i.signInRichText.text,"data-bi-id":"".concat(Cge,".sign-in-link"),href:m,children:i.signInRichText.text}),shareDataForPersonalizedAds:Bd().createElement(DT,{weightOverride:"bold",variant:"metadataText"},l.shareDataForPersonalizedAds),personalizedAdSettingsPage:Bd().createElement(TA,{id:"personalized-ad-settings-page-link","aria-label":l.personalizedAdSettingsPage,"data-bi-id":"".concat(Cge,".personalized-ad-settings-page-link"),href:g,children:l.personalizedAdSettingsPage})},b=_7((0,Fd.useState)(""),2),_=b[0],C=b[1],E=_7((0,Fd.useState)(""),2),w=E[0],x=E[1],k=_7((0,Fd.useState)(""),2),S=k[0],T=k[1],I=_7((0,Fd.useState)(Wye("muid",r)),1)[0],A=_7((0,Fd.useState)(""),2),P=A[0],D=A[1],R=_7((0,Fd.useState)({toggleChecked:!1,toggleDisabled:!0,thirdPartyCookiesEnabled:!0}),2),M=R[0],N=R[1],L=navigator.globalPrivacyControl,O=nm();Wd(_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.onmessage=function(e){!e.data||"null"!==e.origin&&""!==e.origin&&e.origin!=="".concat(window.location.protocol,"//").concat(window.location.hostname)||x(e.data)},O({name:e,status:"first-load"});case 2:case"end":return t.stop()}}),t)}))));var F=function(){var t=_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return O({name:e,status:"updating"}),n=M.toggleChecked,t.prev=2,t.next=5,zye(P,n);case 5:C(Wye(n?"thirdpartyadsoptout":"thirdpartyadsoptin",o)),O({name:e,status:"finished"}),t.next=14;break;case 10:return t.prev=10,t.t0=t.catch(2),O({name:e,status:"update-failed",error:t.t0}),t.abrupt("return");case 14:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(){return t.apply(this,arguments)}}(),B=(0,Fd.useCallback)(_me(cfe().mark((function t(){var n,r;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"!==Qfe(Bge,!1)){t.next=7;break}return Zfe(Bge),t.next=4,zye(P,!0);case 4:return n=Wye("thirdpartyadsoptout",o),C(n),t.abrupt("return");case 7:if("1"!==Qfe(Fge,!1)){t.next=14;break}return Zfe(Fge),t.next=11,zye(P,!0);case 11:return r=Wye("thirdpartyadsoptout",o),C(r),t.abrupt("return");case 14:N((function(e){return YC(YC({},e),{},{toggleChecked:!0,toggleDisabled:!1,firstLoad:!1})})),O({name:e,status:"finished"});case 16:case"end":return t.stop()}}),t)}))),[M,o,O]),H=(0,Fd.useCallback)(_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"===Qfe(Bge,!1)){t.next=6;break}return t.next=3,zye(P,!1);case 3:return n=Wye("thirdpartyadsoptin",o),C(n),t.abrupt("return");case 6:N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:L,firstLoad:!1})})),O({name:e,status:"finished"});case 8:case"end":return t.stop()}}),t)}))),[M,O]),z=(0,Fd.useCallback)((function(){N((function(e){return YC(YC({},e),{},{toggleChecked:!0,toggleDisabled:!1,firstLoad:!1})})),O({name:e,status:"finished"})}),[M,o,O]),V=(0,Fd.useCallback)(_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:L,firstLoad:!1})})),O({name:e,status:"finished"});case 2:case"end":return t.stop()}}),t)}))),[M,O]),U=(0,Fd.useCallback)(_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"!==Qfe(Bge,!1)){t.next=4;break}N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),t.next=14;break;case 4:return t.prev=4,t.next=7,zye(P,!0);case 7:C(Wye("thirdpartyadsoptout",o)),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(4),N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),O({name:e,status:"failed",error:t.t0});case 14:O({name:e,status:"finished"});case 15:case"end":return t.stop()}}),t,null,[[4,10]])}))),[L,P,O]),W=(0,Fd.useCallback)((function(){""===P?(N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),O({name:e,status:"finished"})):U()}),[P,U,O]),j=(0,Fd.useCallback)((function(){window.onmessage=null;var t=new Error("$Error occurred when loading URL: ".concat(_," on first load"));O({name:e,status:"failed",error:t})}),[_,O]);(0,Fd.useEffect)((function(){if(w!==S){var t=w.toString().split(":");switch(t[0]){case"Muid":D(t[1]),""!==t[1]?C(Wye("thirdparty",n)):(N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),O({name:e,status:"finished"}));break;case"ThirdPartyCookiesEnabled":if(L)W();else{var r=Wye("thirdpartyadsstatus",o);C(r),N((function(e){return YC(YC({},e),{},{toggleDisabled:!0,thirdPartyCookiesEnabled:!0})}))}break;case"ThirdPartyCookiesDisabled":N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0,thirdPartyCookiesEnabled:!1})})),O({name:e,status:"finished"});break;case"ThirdPartyAdsCookieOptedIn":z();break;case"ThirdPartyAdsCookieOptedOut":V();break;case"StatusThirdPartyAdsCookieOptedIn":""!==P?B():(N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),O({name:e,status:"finished"}));break;case"StatusThirdPartyAdsCookieOptedOut":""!==P?H():(N((function(e){return YC(YC({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),O({name:e,status:"finished"}));break;case"Error":j()}T(w)}}),[w,S,n,j,O]),(0,Fd.useEffect)((function(){vp(Bve,"".concat(M.toggleChecked))}),[M]);var q=i.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",M.toggleChecked?"off":"on"),G=Bd().createElement(wT,{childrenGap:16},Bd().createElement(DT,{variant:"statusHeader"},s),Bd().createElement(DT,{variant:"bodyPrimaryText"},c),Bd().createElement(zH,{width:"72px"})),K=[{actionProps:{id:"".concat(Cge,".toggle"),"aria-label":"Third-Party.".concat(p.label),checked:M.toggleChecked,"data-bi-id":"".concat(Cge,".toggle"),kind:"toggle",offText:p.off,onChange:F,onText:p.on,disabled:M.toggleDisabled,operationData:{errorCallout:{errorMessage:q,errorMessageAriaLabel:q,targetOrTriggerButton:{"aria-label":"Third-Party.".concat(p.label),"data-bi-id":"".concat(Cge,".toggle-error-callout-trigger")}},progressViewOperationData:{operationName:e,componentName:rbe,defaultState:"finished"}}}}],Y=Bd().createElement(wT,{childrenGap:48},Bd().createElement(DT,{variant:"bodyPrimaryText"},a),Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:c,tokensAndValues:y},imageProps:M.toggleChecked?{alt:h.alt,src:h.src}:{alt:f.alt,src:f.src},ctaProps:K,featureHeading:{text:s},height:"small",layoutType:"2/3"})),Q=Bd().createElement(wT,{childrenGap:16},Y,Bd().createElement(DT,{variant:"metadataText"},i.thirdPartyAds.additionalInfoLine1),Bd().createElement(AA,{variant:"metadataText",textWithTokens:i.thirdPartyAds.additionalInfoLine2,tokensAndValues:y}));return Bd().createElement(Bd().Fragment,null,Bd().createElement(hx,{operationData:{operationName:e,componentName:rbe},firstLoadView:G,finishedView:Bd().createElement(wT,{childrenGap:16},Y,(M.thirdPartyCookiesEnabled?null:Bd().createElement(DT,{colorOverride:"error"},i.interestChoice.thirdPartyCookiesDisabled))||(L?Bd().createElement(DT,{colorOverride:"error"},i.thirdPartyAds.globalPrivacyControlEnabledError):null)||(M.thirdPartyCookiesEnabled&&""===P?Bd().createElement(AA,{colorOverride:"error",textWithTokens:i.thirdPartyAds.noMuidError,tokensAndValues:y}):null),Bd().createElement(AA,{textWithTokens:i.signInRichText.textWithToken,tokensAndValues:y}),Bd().createElement(DT,{variant:"metadataText"},i.thirdPartyAds.additionalInfoLine1),Bd().createElement(AA,{variant:"metadataText",textWithTokens:i.thirdPartyAds.additionalInfoLine2,tokensAndValues:y})),updateFailedView:Q,failedView:Q}),Bd().createElement("iframe",{id:"muid-thirdPartyCookies-optout-iframe",name:"muid-thirdPartyCookies-optout-iframe",src:_,style:{display:"none"},title:"Choice third party cookies opt out iFrame",sandbox:"allow-scripts"}),Bd().createElement("iframe",{id:"get-MUID-iframe",name:"get-MUID-iframe",src:I,style:{display:"none"},title:"Choice get MUID value iFrame",sandbox:"allow-scripts"}))},ibe=function(e){var t,n=e.subPage,r=e.useInAppNavigation,o=void 0===r||r,i=e.member,a=void 0===i?null:i,s=yme(),c=s.breadcrumbContent,l=s.adSettingsContent.adFreeOutlook,u=Lfe();switch(n){case"ad-settings":case"ad-settings-signedout":t={type:"text",id:"ad-settings-breadcrumb-id",text:c.adSettings};break;case"personalized-ad-settings":t={type:"text",id:"ad-settings-breadcrumb-id",text:c.adSettingsNew};break;case"third-party-ads":t={type:"text",id:"third-party-ad-settings-breadcrumb-id",text:c.thirdPartyAds};break;case"download-data":t={type:"text",id:"download-data-breadcrumb-id",text:c.downloadData};break;case"office-settings":t={type:"text",id:"office-settings-breadcrumb-id",text:c.officeSettings};break;case"child-activity":t={id:"child-activity",mediaProps:a.profilePictureUrl?{alt:a.displayName,kind:"image",src:a.profilePictureUrl,borderRadius:"16px"}:void 0,text:a.displayName,type:"text"};break;case"web-search":t={type:"text",id:"web-search-breadcrumb-id",text:c.webSearch};break;case"apps-services":t={type:"text",id:"apps-services-breadcrumb-id",text:c.appsServices};break;case"spelling-text":t={type:"text",id:"spelling-text-breadcrumb-id",text:c.spellingText};break;default:t={}}var d={id:"overview-breadcrumb-id",text:c.overview},p=[YC(YC({},d),{},o?{type:"route",to:nge}:{type:"hyperlink",href:nge})];n&&p.push(t);var h="".concat(u.areaPrefix,".ad-free-outlook.cta"),f={iconName:"OutlookLogoInverse",infoText:l.infoText,"aria-label":l.ctaText,"data-bi-id":h,id:h,ctaText:l.ctaText,ctaUrl:l.ctaUrl},m={iconName:"FamilySafety",infoText:c.familySafety,"aria-label":c.manageYourFamily,"data-bi-id":"manage-your-family",id:"manage-your-family",ctaText:c.manageYourFamily,ctaUrl:"https://family.microsoft.com",target:"_blank"};return Bd().createElement(Bd().Fragment,null,Bd().createElement(pN,null,Bd().createElement(FN,{breadcrumbTitleProps:{items:p,ariaLabel:c.label,dataBiPrefix:u.areaPrefix,pageArea:u.areaPrefix,overflowAriaLabel:c.overflowLabel,isIncludingCurrentPage:!0}}),"personalized-ad-settings"===n||"ad-settings-signedout"===n?Bd().createElement(WN,f):null,"child-activity"===n?Bd().createElement(WN,m):null))},abe=function(){var e=Lfe(),t=Rf(),n=yme(),r=Kf().sendPageViewEvent,o=n.appsServicesContent,i=o.pageContent.body,a=[{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement("ul",{style:{padding:"4px 16px 0px"}},Bd().createElement("li",null,i.line1),Bd().createElement("li",null,i.line2),Bd().createElement("li",null,i.line3)),Bd().createElement(TA,{href:i.learnMoreUsageData.url,"aria-label":i.learnMoreUsageData.text,"data-bi-id":"learn-more-usage-data"},i.learnMoreUsageData.text),Bd().createElement(AA,{textWithTokens:i.windowsDiagnosticData,tokensAndValues:{0:Bd().createElement(TA,{href:i.learnMoreDiagnosticData.url,"aria-label":i.learnMoreDiagnosticData.text,"data-bi-id":"learn-more-diagnostic-data"},i.learnMoreDiagnosticData.text)}}))}}],s=Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,{variant:"paneHeader",children:n.sharedContent.relatedSettings}),Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0},Bd().createElement(DH,{key:"apps-services-related-settings",id:"apps-services-related-settings",variant:"EightFour",columns:[Bd().createElement(cH,{listItemMediaProps:{image:{iconName:"AppIconDefaultAdd",imageType:"icon"},size:"sm"},title:o.pageContent.appAccessTitle,subtitles:[{children:o.pageContent.appAccessSubtitle,variant:"metadataText"}],titleTextVariant:"headerText"}),Bd().createElement(GB,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:e.areaPrefix,"aria-label":o.pageContent.appAccessSubtitle,"data-bi-id":"apps-services.related.app-access",onClick:function(){return t.push("/")}}})));return Wd((function(){r()})),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(ibe,{subPage:"apps-services"}),Bd().createElement(qz,{backgroundType:"flat",bodyText:a,featureHeading:{text:o.pageContent.pageTitle,tag:"h2"},height:"small",imageProps:o.pageContent.image,layoutType:"2/3"}),Bd().createElement(DT,{variant:"paneHeader",children:o.pageContent.sectionTitle}),Bd().createElement(wT,{childrenGap:"24px"},Bd().createElement(wT,{childrenGap:"10px"},Bd().createElement(Bye,{dataType:"usage"}),Bd().createElement(Bye,{dataType:"performance"})),Wm("Priv3PAppAccess")?s:void 0))},sbe=function(){return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(ibe,{subPage:"spelling-text"}),Bd().createElement(vve,null))},cbe=function(){var e=yme(),t=Kf().sendPageViewEvent,n=e.webSearchContent,r=Object.values(n.pageContent.bodyText),o=r.map((function(e,t){return 0===t||t===r.length-1?{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{padding:"10px 0px"},e)}}:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement("ul",{style:{padding:"4px 24px 0px"}},Bd().createElement("li",null,e))}}}));return Wd((function(){t()})),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(ibe,{subPage:"web-search"}),Bd().createElement(wT,{childrenGap:"40px"},Bd().createElement(qz,{backgroundType:"flat",bodyText:o,featureHeading:{text:n.pageContent.title,tag:"h2"},height:"small",imageProps:n.pageContent.image,layoutType:"2/3"})),Bd().createElement(DT,{variant:"paneHeader",children:n.pageContent.webSearchSectionTitle}),Bd().createElement(wT,{childrenGap:"24px"},Bd().createElement(wT,{childrenGap:"10px"},Bd().createElement(Bye,{dataType:"browse"}),Bd().createElement(Bye,{dataType:"search"}))))},lbe=function(){var e=yme().adSettingsContent.devices,t=e.deviceList.winEleven,n=e.deviceList.winTen,r={gear:Bd().createElement(WS,{iconName:"Settings",size:"16px"}),lock:Bd().createElement(WS,{iconName:"Lock",size:"16px"}),winlogo:Bd().createElement(WS,{iconName:"WindowsLogo",size:"16px"}),shield:Bd().createElement(WS,{iconName:"Shield",size:"16px"}),privacySecurity:Bd().createElement(DT,{weightOverride:"bold"},t.tokens.privacySecurity),general:Bd().createElement(DT,{weightOverride:"bold"},t.tokens.general),privacy:Bd().createElement(DT,{weightOverride:"bold"},n.tokens.privacy),settings:Bd().createElement(DT,{weightOverride:"bold"},n.tokens.settings),start:Bd().createElement(DT,{weightOverride:"bold"},n.tokens.start),winElevenText:Bd().createElement(DT,{weightOverride:"bold"},t.tokens.adID),winTenText:Bd().createElement(DT,{weightOverride:"bold"},n.tokens.adID)};return Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{childrenGap:"5px",padding:"40px 0px 30px 0px"},Bd().createElement(aT,{tag:"h2",variant:"paneTitle"},e.title),Bd().createElement(DT,null,e.description)),Bd().createElement(TV,{isAlwaysExpanded:!0,shadow:!0,roundedCorners:!0,showDivider:!1,listItemBackgroundColor:"neutralMed",listRole:"tree"},Object.values(e.deviceList).map((function(t){var n={kind:"text",children:t.question,nowrap:!1,"aria-label":"".concat(e.title," ").concat(t.question)};return Bd().createElement(cV,{borderRadius:"0px",drawerContentPadding:"16px 16px 16px 42px",drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:n}),slots:12}],totalSlots:12}),key:t.question,removeTreeRole:!0},Bd().createElement(wT,{childrenGap:"20px"},Object.values(t.answer).map((function(e){return Bd().createElement(AA,{textWithTokens:e,tokensAndValues:r,key:e})}))))}))))},ube=function(e){return!e.selfRights||0===Object.keys(e.selfRights).length||e.selfRights.canManage},dbe=function(e){var t=e.signedIn,n=yme(),r=Lfe(),o=t?vge:_ge,i=n.adSettingsContent.faq,a=i.links,s={privacyStatement:Bd().createElement(TA,{href:a.privacyStatementLink,"data-bi-id":"".concat(o,".privacy-statement"),"aria-label":i.tokens.privacyStatement,target:"_blank"},i.tokens.privacyStatement),verizonMedia:Bd().createElement(TA,{href:a.verizonMediaLink,"data-bi-id":"".concat(o,".verizon-media"),"aria-label":i.tokens.verizonMedia,target:"_blank"},i.tokens.verizonMedia),xandr:Bd().createElement(TA,{href:a.xandrLink,"data-bi-id":"".concat(o,".xandr"),"aria-label":i.tokens.xandr,target:"_blank"},i.tokens.xandr),interestAds:Bd().createElement(DT,{weightOverride:"bold"},i.tokens.interestAds),browserAds:Bd().createElement(DT,{weightOverride:"bold"},i.tokens.browserAds),daa:Bd().createElement(TA,{href:a.daaLink,"data-bi-id":"".concat(o,".digital-advertising-alliance"),"aria-label":i.tokens.daa,target:"_blank"},i.tokens.daa),edaa:Bd().createElement(TA,{href:a.edaaLink,"data-bi-id":"".concat(o,".european-interactive-digital-advertising-alliance"),"aria-label":i.tokens.edaa,target:"_blank"},i.tokens.edaa),daac:Bd().createElement(TA,{href:a.daacLink,"data-bi-id":"".concat(o,".digital-advertising-alliance-of-canada"),"aria-label":i.tokens.daac,target:"_blank"},i.tokens.daac),microsoftEdge:Bd().createElement(DT,{weightOverride:"bold"},i.tokens.microsoftEdge),settings:Bd().createElement(DT,{weightOverride:"bold"},i.tokens.settings),privacySearchServices:Bd().createElement(DT,{weightOverride:"bold"},i.tokens.privacySearchServices),learnMoreLink:Bd().createElement(TA,{href:a.learnMoreLink,"data-bi-id":"".concat(o,".learn-more"),"aria-label":i.tokens.learnMoreLinkAriaLabel,target:"_blank"},i.tokens.learnMoreLink),amcProfileLink:Bd().createElement(TA,{href:a.amcProfileLink,"data-bi-id":"".concat(o,".amc-profile"),"aria-label":i.tokens.amcProfileLink},i.tokens.amcProfileLink),yahoo:Bd().createElement(TA,{href:a.yahooLink,"data-bi-id":"".concat(o,".yahoo"),"aria-label":i.tokens.yahoo,target:"_blank"},i.tokens.yahoo)},c=ube(r)?i.questions:n.adSettingsContent.underage.faq,l=[];return Object.values(c).forEach((function(e){l.push(e)})),Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{id:"FAQ",padding:"32px 0 0 0"},Bd().createElement(TV,{isAlwaysExpanded:!0,header:Bd().createElement(wT,null,Bd().createElement(aT,{tag:"h2",variant:"paneTitle"},n.adSettingsContent.faq.header)),shadow:!0,showDivider:!1,showDefaultHeaderDivider:!0,roundedCorners:!0,listItemBackgroundColor:"neutralMed",listRole:"tree"},l.map((function(e){var t={kind:"text",children:e.question,nowrap:!1,"aria-label":"".concat(n.adSettingsContent.faq.header," ").concat(e.question)};return Bd().createElement(cV,{borderRadius:"0px",drawerContentPadding:"16px 16px 16px 42px",drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:t}),slots:12}],totalSlots:12}),key:e.question,removeTreeRole:!0},Bd().createElement(wT,{childrenGap:"20px"},Object.values(e.answer).map((function(e){return Bd().createElement(AA,{textWithTokens:e,tokensAndValues:s,key:e})}))))})))))},pbe=function(){var e=yme().adSettingsContent,t=e.underage,n=e.titleNew;return Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:n,ariaLive:"assertive"}),Bd().createElement(ibe,{subPage:Mge}),Bd().createElement(wT,{childrenGap:"20px",id:"cannot-manage-view"},Bd().createElement(qz,{backgroundType:"card",bodyText:t.whyAds.content,"data-testid":"Why Ads Feature",featureHeading:{tag:"h2",variant:"statusHeader",text:t.whyAds.title},height:"small",imageProps:t.whyAds.image,layoutType:"2/3"}),Bd().createElement(qz,{backgroundType:"card",bodyText:t.showAds.content,"data-testid":"Show Ads Feature",featureHeading:{tag:"h2",variant:"statusHeader",text:t.showAds.title},height:"small",imageProps:t.showAds.image,layoutType:"2/3"}),Bd().createElement(qz,{backgroundType:"card",bodyText:t.whatAds.content,"data-testid":"What Ads Feature",featureHeading:{tag:"h2",variant:"statusHeader",text:t.whatAds.title},height:"small",imageProps:t.whatAds.image,layoutType:"2/3"})))},hbe={};function fbe(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(c){switch(c.label){case 0:return i="getSurvey-".concat(t,"-").concat(n),[4,tg(hbe,i,(function(){return(0,e.__awaiter)(s,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){return[2,Am("/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=c.sent(),[2,null===(o=a.data)||void 0===o?void 0:o.content]}}))}))}var mbe=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}},gbe=function(){var t=Mw();return(0,Fd.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(c){switch(c.label){case 0:return a=[],[4,fbe(n,r,i)];case 1:return(s=c.sent())&&(o&&(s=(0,e.__assign)((0,e.__assign)({},s),{AdditionalDataRequested:["EmailAddress"]})),a.push(s)),window.OfficeBrowserFeedback&&a.length>0&&(mbe(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])},vbe={},ybe=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,tg(vbe,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,Am("/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]}}))}))}))]}))}))},bbe=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}}}}},_be="Privacy.getSurvey",Cbe=function(){var e=Lfe(),t=e.language,n=e.selfRights,r=nm(),o=gbe();return(0,Fd.useEffect)((function(){var e=setTimeout(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Wm("PrivBaselineSurvey")&&n.canManage){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,r({name:_be,status:"first-load"}),e.next=6,o("privacy-baseline-survey",t);case 6:r({name:_be,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),r({name:_be,status:"failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[2,9]])}))),2e4);return function(){return clearTimeout(e)}}),[t,r,o]),Bd().createElement(im,{operationData:{componentName:"PrivacyBaselineSurvey",operationName:_be},finishedView:Bd().createElement(Bd().Fragment,null)})},Ebe="Privacy.getSurvey",wbe=function(){var e=Lfe(),t=e.language,n=e.selfRights,r=nm(),o=gbe(),i=Wm("PrivacySurvey");return(0,Fd.useEffect)((function(){if(i&&n.canManage){var e=setTimeout(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({name:Ebe,status:"first-load"}),e.next=4,o("privacy-vertical-survey",t);case 4:r({name:Ebe,status:"finished"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),r({name:Ebe,status:"failed",error:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),5e3);return function(){return clearTimeout(e)}}}),[i,t,n,r,o]),Bd().createElement(im,{operationData:{componentName:"survey",operationName:Ebe},finishedView:Bd().createElement(Bd().Fragment,null)})},xbe=function(e){var t=e.signedIn,n=Lfe(),r=yme().adSettingsContent,o=Kf().sendPageViewEvent;return Wd((function(){t&&o()})),Bd().createElement(wT,{id:"ad-settings"},t&&!n.selfRights.canManageAdSettings?Bd().createElement(pbe,null):Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:r.titleNew,ariaLive:"assertive"}),Bd().createElement(wT,null,Bd().createElement(ibe,{subPage:t?Mge:Nge,useInAppNavigation:t}),Bd().createElement($ye,{signedIn:t})),Bd().createElement(lbe,null)),Bd().createElement(dbe,{signedIn:t}),Bd().createElement(wbe,null),Bd().createElement(Cbe,null))},kbe={},Sbe=[Cme.Unauthorized],Tbe=kme(Sbe),Ibe=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,tg(kbe,"ChildrenDataAndProfilePictures",Abe)];case 1:return[2,e.sent()]}}))}))},Abe=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[4,Sme("".concat(Nme,"/children"),"".concat(Ome,".GETCHILDREN"),{},{overrideRequestQosData:Tbe})];case 1:return(t=r.sent())?[4,Ufe("MSGraphUserReadAll")]:[3,4];case 2:return n=r.sent(),[4,Promise.all(t.map((function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r,o;return(0,e.__generator)(this,(function(i){switch(i.label){case 0:return[4,ime({accessToken:n.token,userId:null!==(o=t.puidAsHex)&&void 0!==o?o:""})];case 1:return r=i.sent(),[2,(0,e.__assign)((0,e.__assign)({},t),{profilePictureUrl:r.url})]}}))}))})))];case 3:return[2,r.sent()];case 4:return[2,[]]}}))}))},Pbe="recurring-delete",Dbe={componentName:"recurring-delete-dialog",operationName:Pbe},Rbe={days2:2,days30:30,days90:90,days180:180},Mbe=function(e){var t,n,r=e.filterType,o=e.interval,i=e.variant,a=e.status,s=void 0===a?"active":a,c=e.onSuccessCallback,l=e.authToken,u=ZU(),d=nm(),p=yme().overviewContent,h=p.overviewActivities,f=p.recurringDelete,m="turnOff",g="498px",v=_7((0,Fd.useState)(),2),y=v[0],b=v[1],_=_7((0,Fd.useState)(!1),2),C=_[0],E=_[1];switch(r){case"cardTypeFilter_location":n=h.drawers.location.drawerArea.header.toLowerCase(),t=h.drawers.location.highlightArea.image;break;case"cardTypeFilter_browse":n=h.drawers.browse.drawerArea.header.toLowerCase(),t=h.drawers.browse.highlightArea.image;break;case"cardTypeFilter_search":n=h.drawers.search.drawerArea.header.toLowerCase(),t=h.drawers.search.highlightArea.image;break;case"cardTypeFilter_usage":n=h.drawers.usage.drawerArea.header.toLowerCase(),t=h.drawers.usage.highlightArea.image;break;default:throw Error("RecurringDeleteDialog: Unexpected filterType")}var w,x,k=f.dialog.manageDialogTitle,S=f.dialog.manageInfoTitle,T=f.buttons.save,I=f.buttons.cancel,A=f.dialog.manageSuccessMessage;"create"===i&&(k=f.dialog.createDialogTitle,S=f.dialog.createInfoTitle,w=Qd(f.dialog.description,n),T=f.buttons.turnOn,I=f.buttons.dontTurnOn,A=f.dialog.createSuccessMessage,x=Qd(f.dialog.clearDataSuccessMessage,n)),y===m&&(A=f.dialog.turnOffSuccessMessage),k=Qd(k,n),S=Qd(S,n),A=Qd(A,[n,y&&Rbe[y]]);var P=function(e){var t=Rbe[e];return{"data-bi-id":"recurring-delete-interval-".concat(t),"aria-label":Qd(f.dialog.interval,t),key:e,text:Qd(f.dialog.interval,t)}},D=[];Wm("RoleEngineer")&&D.push(P("days2")),D.push(P("days30")),D.push(P("days90")),D.push(P("days180")),"manage"===i&&D.push({"data-bi-id":"recurring-delete-turnoff","aria-label":f.dialog.turnOff,key:m,text:f.dialog.turnOff});var R=function(){ih()&&nh(),u.closeDialog()},M=function(){var e=_me(cfe().mark((function e(){var t,n,o;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,d({name:Pbe,status:"updating"}),"manage"!==i||y!==m){e.next=8;break}return e.next=5,Ive(r,l);case 5:null===c||void 0===c||c(C),e.next=12;break;case 8:return e.next=10,Tve(r,y,s,l);case 10:t=e.sent,null===c||void 0===c||c(C,t);case 12:d({name:Pbe,status:"finished"}),rh({data:{interval:y}}),e.next=22;break;case 16:e.prev=16,e.t0=e.catch(0),d({name:Pbe,status:"failed",error:e.t0}),o=e.t0,th({step:"RetryAfterFailure",error:null!==(n=o.toString())&&void 0!==n?n:"RecurringDeleteFailed"});case 22:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}();(0,Fd.useEffect)((function(){o&&b(o),d({name:Pbe,status:"inert"})}),[o,d]);var N=function(){return{buttonPrimary:{text:T,"aria-label":T,"data-bi-id":"recurring-delete-save",onClick:M,disabled:!!("manage"===i&&"paused"!==s&&y===o||"create"===i&&!y)},buttonSecondary:{text:I,"aria-label":I,"data-bi-id":"recurring-delete-cancel",onClick:R}}},L={title:k,isOpen:!0,staticBodyWidth:"480px",closeButton:{"aria-label":f.dialog.dismissButtonAriaLabel,"data-bi-id":"recurring-delete-dismiss"},onDismiss:R,stickyHeaderFooter:{hasStickyHeaderFooters:!0},dialogFooterProps:N(),operationData:{progressViewOperationData:Dbe,errorDialogProps:{title:k,dialogFooterProps:YC(YC({},N()),{},{richTextProps:{textWithTokens:"{errorMessage}",tokensAndValues:{errorMessage:Bd().createElement(DT,{colorOverride:"error"},f.dialog.errorMessage)}}})},successDialogProps:{title:k,dialogFooterProps:{buttonPrimary:{text:f.buttons.ok,"aria-label":f.buttons.ok,"data-bi-id":"recurring-delete-success-ok",onClick:function(){return u.closeDialog()}}}},progressDialogProps:{title:k}}},O=function(e){return Bd().createElement(YR,{size:"sm",image:{iconColor:"successIcon",iconName:"CompletedSolid",imageType:"icon"}},Bd().createElement(DT,{variant:"headerText"},e))},F={src:t.src,width:"80%",alt:t.alt,imageType:"altTextImage"},B=Bd().createElement(wT,{height:"create"===i?g:void 0,horizontal:!1,childrenGap:"12"},Bd().createElement(wT,{horizontalAlign:"center"},Bd().createElement(jR,F)),x?Bd().createElement(wT,null,O(x),Bd().createElement(ute,null)):null,Bd().createElement(DT,{variant:"paneTitle"}," ",S),w?Bd().createElement(DT,{variant:"bodySecondaryText"},w):null,Bd().createElement(LO,{optionType:"basic",label:f.dialog.intervalsLabel,"aria-label":f.dialog.intervalsAriaLabel,"data-bi-id":"recurring-delete-interval-options",onChange:function(e){var t=e.key;b(t),E(t===m)},options:D,selectedKey:y})),H=Bd().createElement(wT,{height:g,horizontal:!1},Bd().createElement(wT,{childrenGap:"12"},Bd().createElement(wT,{horizontalAlign:"center"},Bd().createElement(jR,F)),O(A))),z=Bd().createElement(wT,{height:g,horizontal:!1},Bd().createElement(wT,{padding:"80"},Bd().createElement(fM,{"aria-label":f.dialog.progressMessage})));return Bd().createElement(KU,L,Bd().createElement(im,{operationData:Dbe,inertView:B,finishedView:H,updatingView:z,failedView:B}))},Nbe=function(e,t,n){var r=Object.values(n.bodyText);return{height:"small",backgroundType:"card",bodyText:Lbe(r,t,e),imageProps:{alt:n.image.alt,src:n.image.src},layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px",ctaProps:[]}},Lbe=function(e,t,n){return e.map((function(r,o){return 0===o?{textWithTokens:r,tokensAndValues:t}:"location"===n&&o===e.length-1||"appAccess"===n?{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{padding:"8px 0px 0px 0px"},Bd().createElement(AA,{textWithTokens:r,tokensAndValues:t}))}}:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement("ul",{style:{padding:"8px 16px 0px"}},Bd().createElement("li",null,Bd().createElement(AA,{textWithTokens:r,tokensAndValues:t})))}}}))},Obe=function(e){var t=e.dataType,n="Timeline.ConfirmationDialogContent.".concat(t);qf(n);var r=yme().overviewContent.overviewActivities.dialogs,o="",i="",a="",s=[],c=[],l={},u={iconName:"ErrorBadge",color:"errorIcon"},d={iconName:"Info"};switch(t){case"browse":o=r.browse.image.src,i=r.browse.image.alt,s=Object.values(r.browse.body),c=[u,d,d,u],a=r.browse.areYouSure,l={viewDeleteLink:Bd().createElement(TA,{"aria-label":r.browse.tokens.viewDeleteToken,"data-bi-id":"".concat(fge,".browse-view-delete-link"),href:r.browse.links.viewDeleteLink,target:"_blank"},r.browse.tokens.viewDeleteToken)};break;case"location":o=r.location.image.src,i=r.location.image.alt,s=Object.values(r.location.body),c=[u,u,u],a=r.location.areYouSure;break;case"search":o=r.search.image.src,i=r.search.image.alt,s=Object.values(r.search.body),c=[u,d,u],a=r.search.areYouSure;break;case"usage":o=r.usage.image.src,i=r.usage.image.alt,s=Object.values(r.usage.body),c=[u,u,u],a=r.usage.areYouSure;break;case"performance":o=r.performance.image.src,i=r.performance.image.alt,s=Object.values(r.performance.body),c=[u,u,u],a=r.performance.areYouSure}var p={src:o,width:"80%",alt:i,imageType:"altTextImage"};return Bd().createElement(wT,{horizontal:!1},Bd().createElement(wT,{horizontalAlign:"center"},Bd().createElement(jR,p)),Bd().createElement(wT,{horizontal:!1,childrenGap:"33px"},Bd().createElement(wT,{horizontal:!1,childrenGap:"16px"},Bd().createElement(aT,{variant:"paneTitle",tag:"h2",children:a}),s.map((function(e,t){return Bd().createElement(gj,{key:"confirm-message-".concat(t),messageBarType:"secondary",messageBarVariant:"floating",iconProps:c[t],messageContent:{textWithTokens:e,tokensAndValues:l}})})),"browse"===t?Bd().createElement(TA,{"aria-label":r.browse.learnMoreText,"data-bi-id":"".concat(fge,".browse-learn-more-link"),href:r.browse.learnMoreLink,target:"_blank"},r.browse.learnMoreText):null)))},Fbe=function(e){var t=e.confirmationDialogState,n=e.setConfirmationDialogState,r=e.onClearAllCancel,o=e.deleteAll,i=e.onRecurringDeleteSuccessCallback,a=e.recurringDeletes,s=e.child,c="Timeline.ConfirmationDialog.".concat(t.dialogDataType);qf(c);var l,u="cardTypeFilter_".concat(t.dialogDataType),d=Lfe(),p=ZU(),h=nm(),f=yme().overviewContent.overviewActivities.dialogs,m=a&&a[u];if(!t.dialogDataType)return null;switch(t.dialogDataType){case"browse":l=f.browse.confirmationTitle;break;case"location":l=f.location.confirmationTitle;break;case"search":l=f.search.confirmationTitle;break;case"usage":l=f.usage.confirmationTitle}var g=GC({},Lve,t.dialogDataType),v="ConfirmationDialog.DeleteAllByType.".concat(t.dialogDataType),y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&qp(Tp),n({showDialog:!1,dialogDataType:null}),e&&nh({data:g})},b=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,qp(Ip),h({name:v,status:"updating"}),e.next=5,o();case 5:h({name:v,status:"finished"}),y(!1),rh({data:g}),m||"performance"===t.dialogDataType||(eh({area:d.areaPrefix,scenario:"CreateRecurringDelete",step:"Index",data:{activityType:t.dialogDataType}}),p.openDialog(Bd().createElement(Mbe,{filterType:u,variant:"create",onSuccessCallback:i,authToken:null===s||void 0===s?void 0:s.authToken}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),qp(Age),h({name:v,status:"failed"}),th({step:Age,error:Pge,data:g});case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(KU,function(){var e={buttonPrimary:{onClick:b,text:f.clear,"aria-label":f.clear,"data-bi-id":"".concat(fge,".clear")},buttonSecondary:{onClick:r,text:f.dontClear,"aria-label":f.dontClear,"data-bi-id":"".concat(fge,".cancel")}};return{isOpen:t.showDialog,staticBodyWidth:"480px",closeButton:{"data-bi-id":"close-button","aria-label":f.closeAriaLabel},title:l,onDismiss:function(){return y(!0)},stickyHeaderFooter:{hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},dialogFooterProps:e,operationData:{progressViewOperationData:{operationName:v,componentName:c},errorDialogProps:{title:l,dialogFooterProps:e}}}}(),Bd().createElement(im,{operationData:{operationName:v,componentName:c,defaultState:"finished"},finishedView:Bd().createElement(Obe,{dataType:t.dialogDataType}),updatingView:Bd().createElement(Obe,{dataType:t.dialogDataType}),failedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(Obe,{dataType:t.dialogDataType}),Bd().createElement(DT,{colorOverride:"error"},f.clearFailed))}))};var Bbe,Hbe=function(e){var t=e.content,n=e.prefix;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},Bd().createElement(WS,{iconName:"Info",size:"16px"}),Bd().createElement(AA,{textWithTokens:t.noData,tokensAndValues:{"learn-more":Bd().createElement(TA,{"aria-label":t.learnMoreAriaLabel,"data-bi-id":"".concat(n,"-noData-learnMore-link"),href:t.learnMoreLink,target:"_blank"},t.learnMoreToken)}}))},zbe=function(e){var t=e.content,n=e.prefix,r=e.header,o=e.clearAllText,i=e.openConfirmationDialog,a=e.dataType,s=e.showDownload,c=void 0===s||s;return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(DT,{weightOverride:"semi-bold"},r)),Bd().createElement(_T,{slots:8},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"},c?Bd().createElement(TA,{"aria-label":t.downloadData,"data-bi-id":"".concat(n,".download-your-data"),to:{pathname:"/download-data"}},t.downloadData):null,Bd().createElement(IA,{"aria-label":o,"data-bi-id":"".concat(n,".clear-all"),onClick:function(){return i(a)}},o))))},Vbe=function(e){var t=e.content,n=e.prefix,r=e.isRetrying,o=e.onRetryClick;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(DT,null,t.retryHeader),Bd().createElement(IA,{key:"".concat(n,".try-again"),"aria-label":t.retryHeader,"data-bi-id":"".concat(n,".try-again"),onClick:o,disabled:r},t.tryAgain),r?Bd().createElement(fM,{"aria-label":t.retryInProgressAriaLabel}):null)},Ube=function(e){var t=e.showAllDialogState,n=e.setshowAllDialogState,r=e.onClearAllClick,o=e.historyViewData,i=e.loadMoreHistoryViewData,a=e.deleteHistoryViewDataByIds,s=e.recurringDeletes,c=e.onRecurringDeleteSuccessCallback,l=e.child,u="Timeline.ShowAllDialog.".concat(t.dialogDataType);qf(u);var d="ShowAllDialog.SearchFilter.".concat(t.dialogDataType),p="ShowAllDialog.SearchBulkDelete.".concat(t.dialogDataType),h="timeline.show-all-dialog.".concat(t.dialogDataType),f="cardTypeFilter_".concat(t.dialogDataType),m=Rf(),g=nm(),v=ZU(),y=Lfe(),b=yme().overviewContent.overviewActivities.dialogs,_=b[t.dialogDataType].showAllTitle,C=b[t.dialogDataType].clearAll,E=b.manageScheduledDelete,w=_7((0,Fd.useReducer)(zve,{state:"",items:{}}),2),x=w[0],k=w[1],S=_7((0,Fd.useState)(""),2),T=S[0],I=S[1],A=cve(T,ige),P=_7((0,Fd.useState)(!0),2),D=P[0],R=P[1],M=_7((0,Fd.useState)(!1),2),N=M[0],L=M[1],O=_7((0,Fd.useState)(!1),2),F=O[0],B=O[1],H=s&&s[f],z=ube(y),V=!l,U=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),g({name:d,status:"updating"}),e.next=5,Eve("",{startTime:tge,types:[f],searchTerm:A},null===l||void 0===l?void 0:l.authToken);case 5:t=e.sent,k({type:Xme,firstLoadResult:t}),R(!0),L(!1),g({name:d,status:"finished"}),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),L(!0),g({name:d,status:"failed",error:e.t0});case 16:return e.prev=16,B(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])}))),[null===l||void 0===l?void 0:l.authToken,A,g,f,d]),W=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),e.next=4,Eve(x.state,{startTime:tge,types:[f],searchTerm:A},null===l||void 0===l?void 0:l.authToken);case 4:t=e.sent,k({type:Zme,loadMoreResult:t}),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:return e.prev=11,B(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[f,null===l||void 0===l?void 0:l.authToken,A,x.state]),j=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),e.next=4,a(t);case 4:setTimeout((function(){k({type:Jme,idsToDelete:t})})),e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:return e.prev=10,setTimeout((function(){B(!1)})),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(t){return e.apply(this,arguments)}}(),[a]);(0,Fd.useEffect)((function(){if(""===A)return R(!1),L(!1),void k({type:ege});U()}),[A,U]);var q=Qme.includes(t.dialogDataType),G=b[t.dialogDataType].searchBoxAriaLabel,K=!A,Y=Object.keys(x.items).length,Q=0===Y,X=!!!x.state&&Q,Z=!K&&(F||Q),J=!K&&(D&&X||N),$=!K&&D,ee=Qd(b.clearList,{numOfItems:Y}),te=Qd(Y<=1?b.clearListAriaLabelSingular:b.clearListAriaLabel,{numOfItems:Y}),ne=GC({},Lve,t.dialogDataType),re=function(){n({showDialog:!1,dialogDataType:null})},oe=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Object.keys(x.items),eh({area:y.areaPrefix,scenario:"FilteredBulkDelete",step:"Deleting"}),g({name:p,status:"updating"}),e.next=6,j(t);case 6:setTimeout((function(){rh({data:ne}),g({name:p,status:"finished"})})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),rh({error:e.t0,data:ne}),g({name:p,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),[j,g,p,x.items]),ie=Bd().createElement(IA,{"aria-label":$?te:C,"data-bi-id":"".concat(h,$?".clear-list":".clear-all"),onClick:$?oe:function(){r(t.dialogDataType)},disabled:Z},$?ee:C),ae=Bd().createElement(IA,{"aria-label":E,"data-bi-id":"".concat(h,".manage-scheduled-delete"),onClick:function(){re();var e=s[f];eh({area:y.areaPrefix,scenario:Dge,step:"Index",data:{activityType:t.dialogDataType,previousInterval:s,source:"ShowAllDialog"}}),v.openDialog(Bd().createElement(Mbe,{filterType:f,variant:"manage",interval:e.interval,status:e.status,onSuccessCallback:c}))}},E),se={isOpen:t.showDialog,title:_,closeButton:{"data-bi-id":"close-button","aria-label":b.closeAriaLabel},searchBoxProps:q?{"aria-label":G,"data-bi-id":"".concat(h,".search-box"),placeholder:b.searchBoxPlaceholder,onChange:function(e,t){I(t||"")}}:void 0,subtitle:z&&!J?{textWithTokens:H?"{clearAllCtaWithManageScheduledDelete}":"{clearAllCta}",tokensAndValues:{clearAllCtaWithManageScheduledDelete:Bd().createElement(wT,{horizontal:!0,childrenGap:"16px"},ie,ae),clearAllCta:ie}}:void 0,headerLeftRightPadding:"16px",onDismiss:re,stickyHeaderFooter:ave,staticBodyWidth:"480px",contentId:Gme,minBodyHeight:{height:80,unit:"vh"},bodyStyleTemp:sve,dialogFooterProps:{dialogType:"secondary",buttonLeft:V?{onClick:function(){m.push({pathname:rge})},text:b.downloadData,"aria-label":b.downloadData,"data-bi-id":"".concat(h,".download-your-data")}:void 0,buttonRight:{onClick:re,text:b.close,"aria-label":b.closeAriaLabel,"data-bi-id":"".concat(h,".cancel")}}},ce=Bd().useMemo((function(){return Bd().createElement(Lye,{isHistoryView:K,cardType:t.dialogDataType,timelineData:o,loadMore:i,deleteByIds:a})}),[K,t.dialogDataType,o,i,a]),le=Bd().useMemo((function(){return Bd().createElement(Lye,{isHistoryView:K,cardType:t.dialogDataType,timelineData:x,loadMore:W,deleteByIds:j})}),[K,t.dialogDataType,x,W,j]),ue=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"transparent",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Blocked",size:"16px"}),Bd().createElement(AA,{textWithTokens:b.noResultMessage,tokensAndValues:{searchTerm:Bd().createElement(DT,{weightOverride:"bold"},A)}})),isAlwaysExpanded:!0}),de=Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:11},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":b.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),pe=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:b.newSearchErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":b.newSearchTryAgainAriaLabel,"data-bi-id":"".concat(h,".new-search.try-again"),onClick:U},b.tryAgain)}})),isAlwaysExpanded:!0}),he=Bd().createElement(wT,{width:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center"},Bd().createElement(fM,{spinnerSize:3,"aria-label":b.clearingListMessage,label:b.clearingListMessage,labelPosition:"bottom"})),fe=Bd().createElement(Bd().Fragment,null,Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:b.clearListErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":b.clearListTryAgainAriaLabel,"data-bi-id":"".concat(h,".clear-list.try-again"),onClick:oe},b.tryAgain)}})),isAlwaysExpanded:!0}),le),me=Bd().createElement(im,{operationData:{operationName:d,componentName:u,defaultState:"finished"},updatingView:de,failedView:pe,finishedView:Bd().createElement(im,{operationData:{operationName:p,componentName:u,defaultState:"finished"},updatingView:he,failedView:fe,finishedView:X?ue:le})});return t.dialogDataType?Bd().createElement(KU,se,K?ce:me):null},Wbe=function(e){var t=e.dataType,n=e.child,r="timeline-drawer.".concat(t);qf(r);var o,i,a="ActivityDrawers.getTimelineHistory.".concat(t),s="cardTypeFilter_".concat(t),c=Lfe(),l=nm(),u=ZU(),d=yme().overviewContent,p=d.overviewActivities.drawers,h=d.recurringDelete,f=_7((0,Fd.useReducer)(zve,{state:"",items:{}}),2),m=f[0],g=f[1],v=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),y=v[0],b=v[1],_=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),C=_[0],E=_[1],w=_7((0,Fd.useState)(!1),2),x=w[0],k=w[1],S=_7((0,Fd.useState)(!1),2),T=S[0],I=S[1],A=_7((0,Fd.useState)(-1),2),P=A[0],D=A[1],R=_7((0,Fd.useState)({}),2),M=R[0],N=R[1],L=!n,O="privacy.timeline.".concat(t),F={};switch(t){case"location":o=p.location.drawerArea,i=p.location.highlightArea,F["location-windowsLink"]=Bd().createElement(TA,{"aria-label":i.tokens.windowsToken,"data-bi-id":"".concat(O,".windows-link"),href:i.links.windowsLink,target:"_blank"},i.tokens.windowsToken);break;case"browse":o=p.browse.drawerArea,i=p.browse.highlightArea,F["browse-historyLink"]=Bd().createElement(TA,{"aria-label":i.tokens.historyToken,"data-bi-id":"".concat(O,".history-link"),href:i.links.historyLink,target:"_blank"},i.tokens.historyToken);break;case"search":o=p.search.drawerArea,i=p.search.highlightArea,F["search-viewChangeLink"]=Bd().createElement(TA,{"aria-label":i.tokens.viewChangeToken,"data-bi-id":"".concat(O,".view-change-link"),href:i.links.viewChangeLink,target:"_blank"},i.tokens.viewChangeToken);break;case"usage":o=p.usage.drawerArea,i=p.usage.highlightArea,F["usage-diagnosticLink"]=Bd().createElement(TA,{"aria-label":i.tokens.diagnosticToken,"data-bi-id":"".concat(O,".diagnostic-link"),href:i.links.diagnosticLink,target:"_blank"},i.tokens.diagnosticToken);break;default:throw new Error("Drawer requested for unsupported data type")}var B=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,r;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=-1,e.prev=1,e.next=4,wve(s,null===n||void 0===n?void 0:n.authToken);case 4:t=e.sent,D(t),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:if(r={state:"",items:[]},0===t){e.next=15;break}return e.next=14,Eve("",{startTime:tge,types:[s],searchTerm:""},null===n||void 0===n?void 0:n.authToken);case 14:r=e.sent;case 15:g({type:Xme,firstLoadResult:r});case 16:case"end":return e.stop()}}),e,null,[[1,8]])}))),[null===n||void 0===n?void 0:n.authToken,s]),H=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Eve(m.state,{startTime:tge,types:[s],searchTerm:""},null===n||void 0===n?void 0:n.authToken);case 2:t=e.sent,g({type:Zme,loadMoreResult:t});case 4:case"end":return e.stop()}}),e)}))),[s,m.state,null===n||void 0===n?void 0:n.authToken]),z=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wve(s,null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,D(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),[s,null===n||void 0===n?void 0:n.authToken]),V=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sve(null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,N(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),[null===n||void 0===n?void 0:n.authToken]),U=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kve(t,s,null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,z();case 4:setTimeout((function(){g({type:Jme,idsToDelete:t})}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,null===n||void 0===n?void 0:n.authToken,z]),W=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xve([s],null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,z();case 4:g({type:ege});case 5:case"end":return e.stop()}}),e)}))),[s,null===n||void 0===n?void 0:n.authToken,z]),j=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,k(!0),l({name:a,status:"updating"}),e.next=5,B();case 5:l({name:a,status:"finished"}),I(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),l({name:a,status:"failed",error:e.t0}),I(!0);case 13:return e.prev=13,k(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,9,13,16]])})));return function(){return e.apply(this,arguments)}}(),q=function(e,t){if(!e&&!t)throw Error("TimelineDrawer: Must provide recurringDelete data if recurringDelete is not turned off");N({});var n=M;e?delete n[s]:n[t.activityType]=t,N(n)};(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l({name:a,status:"first-load"}),e.next=4,Promise.all([B(),V()]);case 4:l({name:a,status:"finished"}),I(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),l({name:a,status:"failed",error:e.t0}),I(!0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();e()}),[null===n||void 0===n?void 0:n.authToken,t,l,a,B,V]);var G=Wge(t,o.icon,o.header,o.subtitle,P,o.dataCount,!1),K=Nbe(t,F,i),Y=Bd().createElement(qz,Object.assign({key:t},K)),Q=function(e,t,n,r,o,i,a){var s=!(arguments.length>7&&void 0!==arguments[7])||arguments[7],c=yme().overviewContent.overviewActivities.drawers.detailsArea,l="privacy.overview.".concat(t),u="",d="",p="";switch(t){case"browse":u=c.showMore.browseAriaLabel,d=c.clearAll.browseText,p=c.historyHeader;break;case"location":u=c.showMore.locationAriaLabel,d=c.clearAll.locationText,p=c.header;break;case"search":u=c.showMore.searchAriaLabel,d=c.clearAll.searchText,p=c.historyHeader;break;case"usage":u=c.showMore.usageAriaLabel,d=c.clearAll.usageText,p=c.header}var h,f=Object.values(e);h=i?Bd().createElement(Vbe,{content:c,prefix:l,isRetrying:a,onRetryClick:o}):0===f.length?Bd().createElement(Hbe,{content:c,prefix:l}):Bd().createElement(zbe,{content:c,prefix:l,header:p,clearAllText:d,openConfirmationDialog:r,dataType:t,showDownload:s});var m="".concat(l,".show-more");return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:h,footer:f.length>=1?{links:[{onClick:function(){return n(t)},"data-bi-id":m,"aria-label":u,id:m,children:c.showMore.text}],shadow:!1}:void 0}}(m.items,t,(function(e){jp(),b({showDialog:!0,dialogDataType:e})}),(function(e){Wp(Ige),Nve(),E({showDialog:!0,dialogDataType:e})}),j,T,x,L),X=Object.values(m.items).slice(0,5),Z=Bd().createElement(TV,Object.assign({key:t},Q),X.map((function(e){return gye(t,e,U)}))),J=[];if("location"===t){var $=X.map((function(e){return{location:{latitude:e.location.lat,longitude:e.location.long}}}));J=J.concat(Bd().createElement(Yj,{key:"location-activity-details",backgroundColor:"neutralMed",childrenGap:0,firstSegment:Bd().createElement(yte,{spinnerAriaLabel:p.location.mapLoading,mapHeight:"100%",mapWidth:"100%",progressViewProps:{operationData:{componentName:"bingMapsLocationDrawer",operationName:"loadBingMapsLocationDrawer"}},mapItems:{pushPins:$}}),secondSegment:Z,variant:"SixSix",minHeight:350}))}else J=J.concat(Z);if(M&&M[s]){var ee=M[s],te="info",ne="";switch(ee.status){case"active":ne=Qd(h.status.active,[Rbe[ee.interval],qA(ee.nextDelete)]);break;case"paused":te="warning",ne=ee.lastSucceededDelete?Qd(h.status.paused,qA(ee.lastSucceededDelete)):h.status.pausedWithNoLastSucceededDelete;break;case"failed":te="warning",ne=Qd(h.status.failed,qA(ee.nextDelete))}J=J.concat(Bd().createElement(gj,{key:"manage-recurring-delete-".concat(t),messageBarType:te,messageContent:ne,actionProps:{actionType:"noHrefLink",children:h.status.manageActionText,"data-bi-id":"manage-recurring-delete-".concat(t),"aria-label":h.status.manageLinkAriaLabel,onClick:function(){return e=ee.interval,r=ee.status,eh({area:c.areaPrefix,scenario:Dge,step:"Index",data:{activityType:t,previousInterval:e,source:"TimelineDrawer"}}),void u.openDialog(Bd().createElement(Mbe,{filterType:s,variant:"manage",interval:e,status:r,onSuccessCallback:q,authToken:null===n||void 0===n?void 0:n.authToken}));var e,r}}}))}return Bd().createElement(hx,{operationData:{componentName:r,operationName:a},firstLoadView:Bd().createElement(JU,{anchor:"right"}),finishedView:Bd().createElement(wT,{id:"".concat(t,"-drawer")},Bd().createElement(oq,{key:t,drawerAreaProps:G,highlightArea:Y,detailsArea:J}),y.showDialog?Bd().createElement(Ube,{showAllDialogState:y,setshowAllDialogState:b,onClearAllClick:function(e){Wp(Ige),Nve(),E({showDialog:!0,dialogDataType:e}),b(YC(YC({},y),{},{showDialog:!1}))},historyViewData:m,loadMoreHistoryViewData:H,deleteHistoryViewDataByIds:U,recurringDeletes:M,onRecurringDeleteSuccessCallback:q,child:n}):null,C.showDialog?Bd().createElement(Fbe,{confirmationDialogState:C,setConfirmationDialogState:E,onClearAllCancel:function(){Wp(Tp);var e=GC({},Lve,C.dialogDataType);y.dialogDataType&&b(YC(YC({},y),{},{showDialog:!0})),E({showDialog:!1,dialogDataType:null}),nh({data:e})},deleteAll:W,recurringDeletes:M,onRecurringDeleteSuccessCallback:q,child:n}):null),updatingView:Bd().createElement(oq,{key:t,drawerAreaProps:G,highlightArea:Y,detailsArea:J}),failedView:Bd().createElement(oq,{key:t,drawerAreaProps:G,highlightArea:Y,detailsArea:J})})},jbe=function(e){var t=e.children,n=Rf(),r=yme().familyContent,o=Lfe().areaPrefix;return Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(aT,{tag:"h2"},r.activity.othersTitle),Bd().createElement(DT,null,r.activity.othersDescription),Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0},t.map((function(e){return Bd().createElement(DH,{key:e.cid,id:e.cid,variant:"SixSix",columns:[Bd().createElement(lH,{personaProps:{imageUrl:e.profilePictureUrl,size:"32"},title:e.displayName}),Bd().createElement(GB,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:o,"aria-label":Qd(r.overview.listItemAriaLabel,e.displayName),"data-bi-id":"childactivity.familymembers.child",onClick:function(){return t=e.cid,Rve(),void n.push("/child/".concat(t));var t}}})}))))},qbe=function(){var e,t="child-activity",n="childactivity.children.get",r=nm(),o=yme(),i=Kf().sendPageViewEvent,a=o.familyContent.activity,s=o.sharedContent,c=Rf(),l=Nf().path,u=null===(e=Nf("".concat(l)))||void 0===e?void 0:e.params,d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)([]),2),m=f[0],g=f[1];(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){var t,o,i;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({name:n,status:"first-load"}),e.next=4,Ibe();case 4:(t=e.sent)?((o=t.find((function(e){return e.cid===(null===u||void 0===u?void 0:u.memberId)})))?h(o):c.push("/"),(i=t.filter((function(e){return e.cid!==(null===u||void 0===u?void 0:u.memberId)})))&&g(i)):c.push("/"),r({name:n,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),r({name:n,status:"failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();e()}),[null===u||void 0===u?void 0:u.memberId,r,c]),Wd((function(){i()}));var v=Bd().createElement(hx,{operationData:{componentName:t,operationName:n},firstLoadView:Bd().createElement(pN,null,Bd().createElement(NL,null)),finishedView:Bd().createElement(ibe,{subPage:Oge,member:p}),failedView:Bd().createElement(Bd().Fragment,null)}),y=Bd().createElement(hx,{operationData:{componentName:t,operationName:n},firstLoadView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(JU,null),Bd().createElement(JU,null),Bd().createElement(JU,null),Bd().createElement(JU,null)),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(Wbe,{dataType:"location",key:"location",child:p}),Bd().createElement(Wbe,{dataType:"browse",key:"browse",child:p}),Bd().createElement(Wbe,{dataType:"search",key:"search",child:p}),Bd().createElement(Wbe,{dataType:"usage",key:"usage",child:p})),failedView:Bd().createElement(Bd().Fragment,null)});return Bd().createElement(wT,{childrenGap:"24px"},Bd().createElement(wT,{childrenGap:"16px"},v,Bd().createElement(DT,null,a.pageDescription),Bd().createElement(aT,{tag:"h2"},a.introTitle),Bd().createElement(AA,{textWithTokens:a.introDescription,tokensAndValues:{0:Bd().createElement(TA,{target:"_blank",href:a.learnMoreLink.url,"data-bi-id":"child-activity-learn-more","aria-label":a.learnMoreLink.text},a.learnMoreLink.text)}}),y),Bd().createElement(qz,{backgroundType:"card",bodyText:{textWithTokens:"{0}{1}{2}",tokensAndValues:{0:Bd().createElement(DT,null,a.adsDescription),1:Bd().createElement("br",null),2:Bd().createElement(TA,{target:"_blank",href:a.adsFaqLink.url,"data-bi-id":"child-activity-faq","aria-label":a.adsFaqLink.text},a.adsFaqLink.text)}},imageProps:{alt:a.adsImage.alt,src:a.adsImage.src},featureHeading:{text:a.adsTitle},ctaProps:[{actionProps:{kind:"toggle",onChange:function(){},offText:s.toggleOff,disabled:!0,"aria-label":"","data-bi-id":"",checked:!1}}]}),m.length>0?Bd().createElement(jbe,{children:m}):null)},Gbe="getArchivesList",Kbe=function(e){var t=yme().exportContent,n=nm(),r="LoadArchives";Wd(_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({name:r,status:"first-load"}),t.next=3,e.getArchives().then((function(){n({name:r,status:"finished"})})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===qme)return n({name:r,status:"finished"}),void window.location.reload();n({name:r,status:"failed"})}));case 3:case"end":return t.stop()}}),t)}))));var o=Bd().createElement(rH,{shimmerLineProps:[{width:"95%"}]}),i=Bd().createElement(DH,{variant:"ThreeThreeThreeThree",columns:[o,o,o,o]});return Bd().createElement(wT,{childrenGap:5,padding:"12px 0 25px 0"},Bd().createElement(aT,{block:!0,tag:"h2",variant:"paneTitle"},t.archiveHeader),Bd().createElement(wT,{childrenGap:12},Bd().createElement(DT,null,t.archiveDescription),Bd().createElement(hx,{operationData:{operationName:r,componentName:Gbe},firstLoadView:Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},[i,i]),finishedView:0===e.archiveList.data.length?Bd().createElement(AA,{textWithTokens:t.archiveColdStateRichText.text,tokensAndValues:{"create-archive":Bd().createElement(DT,{variant:"headerText"},t.archiveColdStateRichText.createArchiveToken)}}):Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},e.archiveList.data.map((function(e,t){return Bd().createElement(DH,Object.assign({},e,{key:"archive-list-elem-".concat(t)}))}))),failedView:Bd().createElement(DT,null,t.getArchiveListFailed)})))},Ybe="loadArchives",Qbe=[Cme.Conflict],Xbe=kme(Qbe),Zbe=function(t){return void 0===t&&(t=!1),(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,Dme(t,Ybe,"".concat(Nme,"/export/archives"),"".concat(Ome,".GETEXPORTHISTORY"))];case 1:return(n=e.sent()).archives.some((function(e){return!e.isComplete||e.isFailed}))&&Rme(Ybe),[2,Jbe(n)]}}))}))},Jbe=function(e){return{archives:e.archives.map((function(e){return{exportId:(t=e).exportId,submitDate:new Date(t.submitDate),isComplete:t.isComplete,dataTypes:t.dataTypes,fileSize:t.fileSize,fileSizeUnitCmsId:t.fileSizeUnitCmsId,downloadUri:t.downloadUri,expiryDate:new Date(t.expiryDate),isFailed:t.isFailed,internalErrorMessage:t.internalErrorMessage,exportType:t.exportType,exportArchivesDeleteStatus:t.exportArchivesDeleteStatus};var t}))}},$be=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[4,Tme("".concat(Nme,"/export/archives"),"".concat(Ome,".CREATEARCHIVE"),t,{},{overrideRequestQosData:Xbe})];case 1:return e.sent(),[2]}}))}))},e_e=function(t,n){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,Ame("".concat(Nme,"/export/archives?exportId=").concat(t,"&exportType=").concat(n),"".concat(Ome,".DELETEARCHIVE"),{data:{exportId:t,exportType:n}},{overrideRequestQosData:kme([Cme.Unauthorized])})];case 1:return e.sent(),[2]}}))}))},t_e=function(e){Ud((function(){e.setDataTypeStates({usage:!0,browse:!0,location:!0,search:!0})})),Wd((function(){e.setDataTypeStates({usage:!0,browse:!0,location:!0,search:!0})}));var t=yme().exportContent.createDialog,n=[];return jme.forEach((function(r){n.push({"aria-label":t.dataTypesAriaLabels[r],checked:e.dataTypeStates[r],"data-bi-id":"".concat(pge,".").concat(r,"-checkbox"),label:t.dataTypes[r],onChange:function(){!function(t){var n={usage:e.dataTypeStates.usage,browse:e.dataTypeStates.browse,location:e.dataTypeStates.location,search:e.dataTypeStates.search};n[t]=!e.dataTypeStates[t],e.setDataTypeStates(n)}(r)}})})),Bd().createElement(wT,{childrenGap:16},n.map((function(e,t){return Bd().createElement(XL,Object.assign({},e,{key:"archive-dialog-checkbox-".concat(t)}))})),Bd().createElement(wT,{maxWidth:"428px"},Bd().createElement(DT,null,t.description)))},n_e=function(e){var t=yme().exportContent,n=nm(),r="PostArchivesInDialog",o={dataTypeStates:e.dataTypeState,setDataTypeStates:e.setDataTypeState},i=jme.some((function(t){return e.dataTypeState[t]})),a=function(){nh(),setTimeout((function(){e.setDialogState(!1)}))},s=function(){var t=_me(cfe().mark((function t(){var o,i,a;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({name:r,status:"updating"}),o=jme.filter((function(t){return e.dataTypeState[t]})),i=GC({},Lve,o.join(";")),t.prev=3,t.next=6,e.makePostCall();case 6:n({name:r,status:"finished"}),rh({data:i}),t.next=19;break;case 10:if(t.prev=10,t.t0=t.catch(3),(null===(a=t.t0.response)||void 0===a?void 0:a.status)!==qme){t.next=17;break}return n({name:r,status:"finished"}),nh({data:"scenario canceled due to reload on 401"}),window.location.reload(),t.abrupt("return");case 17:n({name:r,status:"failed",error:t.t0}),rh({error:"CreateFailure",data:i});case 19:setTimeout((function(){e.setDialogState(!1)}));case 20:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(){return t.apply(this,arguments)}}(),c={title:t.createDialog.header,subText:t.createDialog.selectData,dialogFooterProps:{buttonPrimary:{id:"create-archive-dialog-button",onClick:s,text:t.createDialog.createButton,"aria-label":t.createDialog.createButtonAriaLabel,"data-bi-id":"".concat(pge,".create-archive"),disabled:!i},buttonSecondary:{onClick:function(){a()},text:t.createDialog.cancelButton,"aria-label":t.createDialog.cancelButtonAriaLabel,"data-bi-id":"".concat(pge,".cancel")}}},l=YC(YC({},c),{},{isOpen:e.showDialog,onDismiss:function(){a()},closeButton:{"data-bi-id":"close","aria-label":t.createDialog.closeButtonAriaLabel},operationData:{progressViewOperationData:{operationName:r,componentName:"createArchiveDialog"},errorDialogProps:c}});return Bd().createElement(KU,l,Bd().createElement(wT,{childrenGap:24},Bd().createElement(xT,null,Bd().createElement(t_e,o))))},r_e=function(e){var t=e.showDialog,n=e.makeDeleteCall,r=e.setDialogState,o=yme().exportContent.deleteDialog,i=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){r(!1),nh()},s={buttonPrimary:{onClick:function(){i()},text:o.deleteButton,"aria-label":o.deleteButtonAriaLabel,"data-bi-id":"".concat(hge,".delete-archive")},buttonSecondary:{onClick:function(){a()},text:o.cancelButton,"aria-label":o.cancelButtonAriaLabel,"data-bi-id":"".concat(hge,".cancel")}},c={title:o.header,isOpen:t,onDismiss:function(){a()},closeButton:{"data-bi-id":"".concat(hge,".close"),"aria-label":o.closeButtonAriaLabel},dialogFooterProps:s};return Bd().createElement(KU,c,Bd().createElement(wT,null,Bd().createElement(DT,{variant:"bodyPrimaryText"},o.description)))},o_e=function(e){var t,n=yme().exportContent,r=function(){e.setDialogErrorState({dialogState:!1,dialogInFocus:null})};if("in-progress"===e.dialogErrorState.dialogInFocus)t={isOpen:e.dialogErrorState.dialogState,onDismiss:r,title:n.inProgressDialog.header,subText:n.inProgressDialog.description,closeButton:{"data-bi-id":"close","aria-label":n.inProgressDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"archive-in-progress-dialog-close-button",onClick:r,text:n.inProgressDialog.button,"aria-label":n.inProgressDialog.closeAriaLabel,"data-bi-id":"".concat(pge,".in-progress.cancel")}}};else if("too-many-requests"===e.dialogErrorState.dialogInFocus)t={isOpen:e.dialogErrorState.dialogState,onDismiss:r,title:n.timeoutDialog.header,subText:n.timeoutDialog.description,closeButton:{"data-bi-id":"close","aria-label":n.timeoutDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"too-many-requests-dialog-close-button",onClick:r,text:n.timeoutDialog.button,"aria-label":n.timeoutDialog.closeAriaLabel,"data-bi-id":"".concat(pge,".too-many-requests.close")}}};else{if("create-archive-failed"!==e.dialogErrorState.dialogInFocus)return null;t={isOpen:e.dialogErrorState.dialogState,onDismiss:r,title:n.createFailedDialog.header,subText:n.createFailedDialog.description,closeButton:{"data-bi-id":"close","aria-label":n.createFailedDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"create-archive-failed-dialog-close-button",onClick:r,text:n.createFailedDialog.button,"aria-label":n.createFailedDialog.closeAriaLabel,"data-bi-id":"".concat(pge,".failed.close")}}}}return Bd().createElement(KU,t)},i_e={browse:"Globe",location:"MapPin",search:"Search",usage:"BoardActivityFeed"},a_e=function(e){var t,n,r,o=e.archive,i=e.index,a=e.exportContent,s=e.isArchiveFailed,c=e.viewport,l=e.setDeleteDialogState,u=e.setDeleteExportParams,d=o.dataTypes.filter((function(e){return"other"!==e})),p=d.map((function(e){return function(e,t){var n=i_e[e];return{"aria-label":"".concat(e,"-history-datatype-callout"),children:t[e],calloutTrigger:"IconButton",calloutPosition:"top-auto",calloutTriggerProps:{"aria-label":"".concat(e,"-history-datatype-callout"),"data-bi-id":"".concat(dge,".").concat(n,"-callout"),iconName:n,iconColor:"black"}}}(e,a.createDialog.dataTypes)})),h="".concat(o.fileSize," ").concat(null===(t=o.fileSizeUnitCmsId)||void 0===t?void 0:t.toUpperCase()," \u2022 ").concat(a.archiveExpiration," ").concat((n=o.expiryDate,KA(n).toLocaleDateString(r||zA(),{year:"numeric",month:"numeric",day:"numeric"}))),f=Wm("PrivTmlnInternalTest")?o.exportId:null,m="archive-list-item-".concat(i),g={children:o.isComplete?WA(o.submitDate):a.archivePending,variant:"bodyPrimaryText",weightOverride:o.isComplete?"semi-bold":void 0},v={children:Wm("PrivTmlnInternalTest")?f:null,variant:"bodySecondaryText"},y={children:h,variant:"bodySecondaryText"},b={children:a.archiveFailed,variant:"errorBlockIcon"},_={children:a.archiveDeleting,variant:"bodySecondaryText"},C={children:d.join(", "),variant:"bodyPrimaryText"},E=Bd().createElement(iH,{textElements:[g,v]}),w=Bd().createElement(iH,{textElements:[g,C,v]}),x=Bd().createElement(HL,{calloutProps:p}),k=Bd().createElement(GB,{textElements:[_],contentType:"text",columnAlign:"end"}),S=Bd().createElement(RM,{actionButtonProps:[{"aria-label":a.archiveDownloadAriaLabel,"data-bi-id":"".concat(dge,".download"),iconName:"Download",buttonColor:"themePrimary",onClick:o.isComplete?function(){window.location.href=o.downloadUri}:function(){},text:a.archiveDownload,disabled:!o.isComplete},{"aria-label":a.archiveDeleteButtonAriaLabel,"data-bi-id":"".concat(dge,".delete"),iconName:"Delete",buttonColor:"themePrimary",onClick:function(){eh({area:Tge,scenario:"DeleteArchive",step:"DeleteArchiveConfirm"}),u({exportId:o.exportId,exportType:o.exportType}),l(!0)},text:a.archiveDeleteButton,disabled:!o.isComplete}],contentType:"none",disabled:s(o)});return o.isComplete?s(o)?"m"===c||"s"===c?{id:m,variant:"Twelve",columns:[Bd().createElement(iH,{textElements:[g,v,b]})]}:{id:m,variant:"ThreeThreeSix",columns:[E,x,Bd().createElement(iH,{textElements:[b]})]}:o.isArchiveDeleting?"m"===c||"s"===c?{id:m,variant:"EightFour",columns:[Bd().createElement(iH,{textElements:[g,v,_]}),x]}:{id:m,variant:"ThreeThreeThreeThree",columns:[E,x,Bd().createElement(qB,null),k]}:"m"===c?{id:m,variant:"SixFourTwo",columns:[Bd().createElement(iH,{textElements:[g,v,y]}),x,S]}:"s"===c?{id:m,variant:"EightFour",columns:[Bd().createElement(iH,{textElements:[g,C,v,y]}),S]}:{id:m,variant:"ThreeThreeThreeThree",columns:[E,x,Bd().createElement(iH,{textElements:[y]}),S]}:"m"===c?{id:m,variant:"SixFourTwo",columns:[E,x,S]}:"s"===c?{id:m,variant:"EightFour",columns:[w,S]}:{id:m,variant:"ThreeThreeThreeThree",columns:[E,x,Bd().createElement(qB,null),S]}},s_e=function(e){var t=yme().exportContent;return Bd().createElement(qz,{backgroundType:"flat",bodyText:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{childrenGap:10},Bd().createElement(DT,{variant:"bodyPrimaryText"},t.introDescription.first),Bd().createElement(DT,{variant:"bodyPrimaryText"},t.introDescription.second))}},ctaProps:[{actionProps:{id:"create-archive-feature-button","aria-label":t.createButtonAriaLabel,"data-bi-id":"".concat(uge,".create-archive"),kind:"button",onClick:function(){eh({area:Tge,scenario:"CreateArchive",step:"CreateConfirm"}),e.setCreateDialogState(!0)},text:t.createButton,type:"primary"}}],height:"small",imageProps:{alt:t.introImage.alt,src:t.introImage.src},layoutType:"2/3"})},c_e=function(){var e=yme().exportContent,t=e.otherArchivesContent,n=t.skype?[t.onedrive,t.m365,t.teams,t.skype]:[t.onedrive,t.m365,t.teams],r=[];return n.forEach((function(e){r.push({variant:"EightFour",columns:[Bd().createElement(cH,{listItemMediaProps:{image:{src:e.icon.src,imageType:"image"},size:"sm",height:"52px"},title:e.header,titleTextVariant:"headerText",subtitles:[{children:e.description,variant:"bodySecondaryText"}]}),Bd().createElement(RM,{actionButtonProps:[{"aria-label":e.header,"data-bi-id":"".concat(uge,".").concat(e.header),iconName:"OpenInNewWindow",onClick:function(){return window.open(e.link.url,"_blank")},text:""}],contentType:"none"})],onClickProps:{onClick:function(){return window.open(e.link.url,"_blank")},"aria-label":e.header,"data-bi-id":"".concat(uge,".").concat(e.header),pageArea:"Privacy"},id:e.header})})),Bd().createElement(wT,{childrenGap:12,padding:"15px 0px"},Bd().createElement(aT,{block:!0,tag:"h1",variant:"paneTitle"},e.otherArchivesHeader),Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},r.map((function(e){return Bd().createElement(DH,Object.assign({},e,{key:e.id}))}))))},l_e=function(){var e=yme().exportContent,t=_7((0,Fd.useState)({data:[]}),2),n=t[0],r=t[1],o=_7((0,Fd.useState)({data:[]}),2),i=o[0],a=o[1],s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=_7((0,Fd.useState)({dialogState:!1,dialogInFocus:null}),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(!1),2),f=h[0],m=h[1],g=_7((0,Fd.useState)({exportId:"",exportType:"Quick"}),2),v=g[0],y=g[1],b=sS(),_=function(e){return e.isFailed||!e.downloadUri},C=function(t){var o=[],i=!1;return t.forEach((function(t,n){t.isComplete||(i=!0),o.push(a_e({archive:t,index:n,exportContent:e,isArchiveFailed:_,viewport:b,setDeleteDialogState:m,setDeleteExportParams:y}))})),function(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}(o,n.data)||r({data:o}),i},E=function(){var e=_me(cfe().mark((function e(){var t,n=arguments;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],!1,e.next=4,Zbe(t).then((function(e){var t=e.archives.filter((function(e){return"deleteInProgress"!==e.exportArchivesDeleteStatus})).slice().reverse();a({data:t}),C(t)&&setTimeout(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E();case 2:case"end":return e.stop()}}),e)}))),3e4)}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=_7((0,Fd.useState)({usage:!1,browse:!1,location:!1,search:!1}),2),x=w[0],k=w[1],S=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],jme.forEach((function(e){x[e]&&t.push(e)})),0!==t.length){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,$be({dataTypes:t}).then(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(!0);case 2:case"end":return e.stop()}}),e)})))).catch((function(e){var t,n;if(409===(null===(t=e.response)||void 0===t?void 0:t.status))setTimeout((function(){p({dialogState:!0,dialogInFocus:"in-progress"})}));else{if(429!==(null===(n=e.response)||void 0===n?void 0:n.status))return setTimeout((function(){p({dialogState:!0,dialogInFocus:"create-archive-failed"})})),Promise.reject(e);setTimeout((function(){p({dialogState:!0,dialogInFocus:"too-many-requests"})}))}}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=_me(cfe().mark((function e(){var t,n,r,o;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=v.exportId,n=i.data.filter((function(e){return e.exportId===t})),r=i.data.indexOf(n[0]),i.data[r].isArchiveDeleting=!0,a({data:i.data}),m(!1),C(i.data),o={dataTypes:i.data[r].dataTypes.join(",")},e.next=10,e_e(v.exportId,v.exportType).then((function(){var e,n=i.data.filter((function(e){return e.exportId!==t}));C(n),a({data:n}),L(I),null===(e=document.getElementById("archive-list-item-".concat(r)))||void 0===e||e.focus(),rh({data:o})})).catch((function(e){return i.data[r].isArchiveDeleting=!1,a({data:i.data}),C(i.data),L(A),rh({data:o,error:"DeleteArchiveFailure"}),Promise.reject(e)}));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=(0,Fd.useRef)(null),A=(0,Fd.useRef)(null),P=e.deleteNotificationBar.successMessage,D=e.deleteNotificationBar.failedMessage,R=e.deleteNotificationBar.closeButtonAriaLabel,M={message:P,ariaMessage:P,closeButton:{"aria-label":R,"data-bi-id":"".concat(dge,".delete-success-notification-message.close"),id:"".concat(dge,".delete-success-notification-message.close")},iconName:"Completed",notificationBarType:"info"},N={message:D,ariaMessage:D,closeButton:{"aria-label":R,"data-bi-id":"".concat(dge,".delete-failed-notification-message.close"),id:"".concat(dge,".delete-failed-notification-message.close")},iconName:"Error",notificationBarType:"error"},L=function(e){e.current.showNotificationBar()};return Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:e.title,ariaLive:"assertive"}),Bd().createElement(ibe,{subPage:Rge}),Bd().createElement(s_e,{setCreateDialogState:l}),Bd().createElement(n_e,{showDialog:c,setDialogState:l,makePostCall:S,dataTypeState:x,setDataTypeState:k}),Bd().createElement(o_e,{dialogErrorState:d,setDialogErrorState:p}),Bd().createElement(Kbe,{archiveList:n,getArchives:E}),Bd().createElement(r_e,{showDialog:f,makeDeleteCall:T,setDialogState:m}),Bd().createElement(c_e,null),Bd().createElement(j2,Object.assign({ref:I},M)),Bd().createElement(j2,Object.assign({ref:A},N)),Bd().createElement(wbe,null),Bd().createElement(Cbe,null))},u_e=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[4,Tme("".concat(Nme,"/submit-location-opt-out"),"".concat(Ome,".SUBMITLOCATIONOPTOUT"),t)];case 1:return e.sent(),[2]}}))}))},d_e="/api/hip/challenge",p_e=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,Am("".concat(d_e,"/audio"),{operation:"GLOBAL.HIP.GETCHALLENGE.AUDIO"})];case 1:case 3:return[2,e.sent().data];case 2:return[4,Am("".concat(d_e,"/visual"),{operation:"GLOBAL.HIP.GETCHALLENGE.VISUAL"})]}}))}))},h_e="macAddressOptOut.captcha",f_e="macAddressOptOut.captcha-operation-name",m_e=function(){var t="MacAddressOptOut.submitOptOutRequest",n=function(t){var n=(0,Fd.useState)("visual"),r=n[0],o=n[1],i=(0,Fd.useState)({challengeSource:"",context:{}}),a=i[0],s=i[1],c=nm(),l=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]),c({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,p_e(n)];case 3:i=e.sent(),e.label=4;case 4:return r=i,o(n),s(r),c({name:t.operationName,status:"finished"}),[3,6];case 5:return a=e.sent(),c({name:t.operationName,status:"update-failed",error:a}),[3,6];case 6:return[2]}}))}))};return(0,Fd.useEffect)((function(){l(r)}),[]),{mode:r,challenge:a,getNewChallenge:l}}({operationName:f_e}),r=yme().macAddressOptOutContent,o=nm(),i=_7((0,Fd.useState)(""),2),a=i[0],s=i[1],c=_7((0,Fd.useState)(""),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(!1),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(r.hipChallenge.title.captchaVisualTitle),2),m=f[0],g=f[1],v=_7((0,Fd.useState)(""),2),y=v[0],b=v[1],_=p||""===a?void 0:r.macAddressErrorMessage,C=function(e){u(e)},E={operationData:{componentName:h_e,operationName:f_e},variant:{alignment:"start"},mode:n.mode,challengeSource:n.challenge.challengeSource,userSolution:l,challengeProps:{noAudioSupportMessage:r.hipChallenge.challengeBase.noAudioSupportMessage,cannotLoadChallengeMessage:r.hipChallenge.challengeBase.cannotLoadChallengeMessage,switchToVisualWhenAudioFailedButtonProps:{"aria-label":r.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonAriaLabel,"data-bi-id":"".concat(Ege,".audio-failed.switch-to-visual"),text:r.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonText},playAudioButtonProps:{"aria-label":r.hipChallenge.challengeBase.playAudioButtonAriaLabel,"data-bi-id":"".concat(Ege,".play-audio")}},controlsProps:{refreshChallengeButtonProps:{"aria-label":r.hipChallenge.controls.refreshChallengeButtonAriaLabel,"data-bi-id":"".concat(Ege,".refresh-challenge"),text:r.hipChallenge.controls.refreshChallengeButtonText},switchToAudioButtonProps:{"aria-label":r.hipChallenge.controls.switchToAudioButtonAriaLabel,"data-bi-id":"".concat(Ege,".switch-to-audio"),text:r.hipChallenge.controls.switchToAudioButtonText},switchToVisualButtonProps:{"aria-label":r.hipChallenge.controls.switchToVisualButtonAriaLabel,"data-bi-id":"".concat(Ege,".switch-to-visual"),text:r.hipChallenge.controls.switchToVisualButtonText}},titleProps:{children:"visual"===n.mode?r.hipChallenge.title.captchaVisualTitle:r.hipChallenge.title.captchaAudioTitle},solutionInputProps:{playAudioInstruction:r.hipChallenge.solutionInput.playAudioInstruction,audioPlaceholder:r.hipChallenge.solutionInput.captchaInputPlaceholder,visualPlaceholder:r.hipChallenge.solutionInput.captchaInputPlaceholder,"aria-label":m,"data-bi-id":"".concat(Ege,".solution-input"),id:"captcha-user-solution"},onNewChallengeRequested:function(e){g("audio"===e?r.audioCaptchaInputAriaLabel:r.hipChallenge.title.captchaVisualTitle),null===C||void 0===C||C(""),n.getNewChallenge(e)},onSolutionChanged:C,audioCaptchaLoadedMessage:r.audioCaptchaReloadMessage,visualCaptchaLoadedMessage:r.visualCaptchaReloadMessage},w=(0,Fd.useRef)(null),x=(0,Fd.useRef)(null),k=function(e){e.current.showNotificationBar()},S={message:r.successNotificationMessage,ariaMessage:r.successNotificationMessage,closeButton:{"aria-label":r.closeButtonAriaLabel,"data-bi-id":"".concat(Ege,".success-message.close"),id:"".concat(Ege,".success-message.close")},iconName:"Completed",notificationBarType:"info"},T={message:r.genericErrorNotificationMessage,ariaMessage:r.genericErrorNotificationMessage,closeButton:{"aria-label":r.closeButtonAriaLabel,"data-bi-id":"".concat(Ege,".generic-error-message.close"),id:"".concat(Ege,".generic-error-message.close")},iconName:"Error",notificationBarType:"error"},I=function(){var e=_me(cfe().mark((function e(){var i;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(""),i={HipSolution:l,HipContext:n.challenge.context,MacAddress:a},e.prev=2,o({name:t,status:"updating"}),e.next=6,u_e(i);case 6:o({name:t,status:"finished"}),k(w),s(""),h(!1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.response.data&&"invalidCaptcha"===e.t0.response.data.error?(o({name:t,status:"finished"}),b(r.captchaInputErrorMessage)):e.t0.response.data&&"nochallengesession"===e.t0.response.data.error?(o({name:t,status:"finished"}),k(x)):(o({name:t,status:"failed",error:e.t0}),k(x));case 15:return e.prev=15,n.getNewChallenge(n.mode),u(""),e.finish(15);case 19:case"end":return e.stop()}}),e,null,[[2,12,15,19]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:r.pageHeader,ariaLive:"assertive"}),Bd().createElement(wT,{childrenGap:12,padding:"36px 0px 0px 0px"},Bd().createElement(aT,{tag:"h1",variant:"pageHeader",children:r.pageHeader}),Bd().createElement(wT,{childrenGap:24},Bd().createElement(DT,{children:r.bodyTextFirst}),Bd().createElement(DT,{children:r.bodyTextSecond}),Bd().createElement(DT,{children:r.bodyTextThird}),Bd().createElement(wT,{maxWidth:"300px"},Bd().createElement(Mq,{label:r.textInputLabel,placeholder:r.textInputPlaceholder,errorMessage:_,value:a,onChange:function(e,t){s(t||""),!function(e){var t=new RegExp("^([0-9A-Fa-f]{2}[:\\-.]{1}){5}([0-9A-Fa-f]{2})$");return!(!e||!t.test(e))}(null!==t&&void 0!==t?t:"")?h(!1):h(!0)},"data-bi-id":"".concat(Ege,".mac-address-text-input"),"aria-label":r.textInputLabel,id:"address-text-input"})),Bd().createElement(wT,{maxWidth:"300px",id:"hip-challenge"},Bd().createElement(Lq,E),y?Bd().createElement(DT,{variant:"errorBlockIcon",id:"captcha-input-error-message"},y):null,y?Bd().createElement(oN,{message:y,ariaLive:"assertive"}):null),Bd().createElement(wT,{maxWidth:"150px"},Bd().createElement(hR,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:"macAddressOptOut.submit",operationName:t}},text:r.buttonText,"aria-label":r.buttonAriaLabel,"data-bi-id":"".concat(Ege,".submit"),type:"primary",onClick:I,disabled:!p||!l,id:"submit-address-button"})))),Bd().createElement(j2,Object.assign({ref:w},S)),Bd().createElement(j2,Object.assign({ref:x},T)),Bd().createElement(wbe,null),Bd().createElement(Cbe,null))},g_e="PRIVACY",v_e="ROAMINGAPI",y_e="OfficeSettings",b_e=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 Rme(y_e),[4,Ime("".concat(Nme,"/office/roaming-settings/diagnostic"),"".concat(g_e,".").concat(v_e,".SETDIAGNOSTICLEVEL"),{isEnabled:t})];case 1:return e.sent(),[2]}}))}))},__e=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 Rme(y_e),[4,Ime("".concat(Nme,"/office/roaming-settings/analyze"),"".concat(g_e,".").concat(v_e,".SETANALYZECONTENT"),{isEnabled:t})];case 1:return e.sent(),[2]}}))}))},C_e=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 Rme(y_e),[4,Ime("".concat(Nme,"/office/roaming-settings/download"),"".concat(g_e,".").concat(v_e,".SETDOWNLOADCONTENT"),{isEnabled:t})];case 1:return e.sent(),[2]}}))}))},E_e=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 Rme(y_e),[4,Ime("".concat(Nme,"/office/roaming-settings/offers"),"".concat(g_e,".").concat(v_e,".SETOFFERSCONTENT"),{isEnabled:t})];case 1:return e.sent(),[2]}}))}))},w_e=1270,x_e=1274,k_e=1276,S_e=1324,T_e={DefaultRequired:0,Required:1,OptionalRequired:2,EnterpriseOnly:3},I_e={DefaultEnabled:0,Enabled:1,Disabled:2},A_e={DefaultEnabled:0,Enabled:1,Disabled:2},P_e={DefaultDisabled:0,Enabled:1,Disabled:2},D_e="privacy.safety-checkup",R_e="".concat(D_e,".office-settings.drawers"),M_e={accountInfo:0,authenticatorInfo:1,safeBrowsing:2,moreSafetyResources:3},N_e={accountInfo:0,authenticatorInfo:1,safeBrowsing:2,moreSafetyResources:3,officeSettings:4,roster:5},L_e=function(e){var t=Object.keys(N_e).find((function(t){return N_e[t]===e}));return t||"unknownView"},O_e=function(e,t){return t?{padding:"0px 40px",borderTop:"1px solid ".concat(e),borderBottom:"1px solid ".concat(e)}:{padding:"0px 20px 12px 4px",borderBottom:"1px solid ".concat(e)}},F_e=function(e){return{borderBottom:"1px solid ".concat(e)}},B_e={hasRecoveryEmail:"unknown",hasRecoveryPhone:"unknown",hasAuthenticator:"unknown",hasEdge:"unknown"},H_e=Bd().createContext({currentStep:0,setCurrentStep:function(){},totalSteps:Object.entries(N_e).length-2,goToNext:function(e){},visitedSteps:new Set,addToVisited:function(e){},userProofStates:B_e,setUserProofStates:function(){},resetStates:function(){},isFlowEnded:!1,setIsFlowEnded:function(){},newOfficeSettingsUser:!1,setNewOfficeSettingsUser:function(){}}),z_e=function(){return(0,Fd.useContext)(H_e)},V_e=function(e){var t=e.children,n=_7((0,Fd.useState)(0),2),r=n[0],o=n[1],i=_7((0,Fd.useState)(Object.entries(N_e).length-1),1)[0],a=_7((0,Fd.useState)(!1),2),s=a[0],c=a[1],l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(new Set),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(B_e),2),g=m[0],v=m[1];return Bd().createElement(H_e.Provider,{value:{currentStep:r,setCurrentStep:o,totalSteps:i,goToNext:function(e){e<Object.keys(M_e).length-1&&o(r+1)},visitedSteps:h,addToVisited:function(e){f((function(t){return new Set(t.add(e))}))},userProofStates:g,setUserProofStates:v,resetStates:function(){o(0),f(new Set)},isFlowEnded:s,setIsFlowEnded:c,newOfficeSettingsUser:u,setNewOfficeSettingsUser:d}},t)},U_e=function(e,t,n,r){var o=r?"".concat(r.dataBiIdBase,".toggle"):"";return{totalSlots:12,chevronPosition:"end",columns:r?[{column:Bd().createElement(iM,{media:{size:"md",image:{imageType:"icon",iconName:e},padding:"0px 4px"},title:{kind:"text",children:t,nowrap:!1,weightOverride:n?void 0:"semi-bold"},subtitleTextProps:{children:n}}),slots:8},{column:Bd().createElement(EM,{"data-bi-id":o,id:o,"aria-label":r.toggleCms.toggleAriaLabel,onChange:r.onToggleChangeHandler,checked:r.toggleVals,togglePosition:"end",onText:r.toggleCms.toggleOn,offText:r.toggleCms.toggleOff,disabled:r.disabled,operationData:{progressViewOperationData:{operationName:r.toggleOperationName,componentName:r.toggleComponentName,defaultState:"finished"},errorCallout:{errorMessage:r.toggleCms.updateFailedMessageErrorCallout,errorMessageAriaLabel:r.toggleCms.updateFailedMessageErrorCallout,targetOrTriggerButton:{"aria-label":r.toggleCms.errorCalloutAriaLabel,"data-bi-id":"".concat(r.dataBiIdBase,".error-callout")}}}}),slots:4}]:[{column:Bd().createElement(iM,{media:{size:"md",image:{imageType:"icon",iconName:e},padding:"0px 4px"},title:{kind:"text",children:t,nowrap:!1,weightOverride:n?void 0:"semi-bold"},subtitleTextProps:{children:n}}),slots:12}]}},W_e=function(e){return"_self"===e||"_blank"===e?e:void 0},j_e=function(e){return Bd().createElement(wT,null,Bd().createElement(gj,{messageContent:e,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}}))},q_e=function(e){var t,n=e.officeSettingDrawerName,r=e.toggleVals,o=e.updateToggleVals,i=e.contentsDrawerDataBiIdBase,a=e.contentsDrawerComponentName,s=e.contentsDrawerOperationName,c=e.cmsContent,l=e.toggleValContent,u=e.setContentApi,d=e.drawerHeaderIconName,p=e.drawerHeaderTitle,h=nm(),f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v=_7((0,Fd.useState)(!1),2),y=v[0],b=v[1],_=function(){b(!y)},C=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,g(!1),h({name:s,status:"updating"}),e.next=5,u(!l);case 5:e.t0=n,e.next="optionalDiagnostic"===e.t0?8:"analyzeContent"===e.t0?10:"downloadContent"===e.t0?12:"offersContent"===e.t0?14:16;break;case 8:return o(YC(YC({},r),{},{optionalDiagnostic:!l})),e.abrupt("break",16);case 10:return o(YC(YC({},r),{},{analyzeContent:!l})),e.abrupt("break",16);case 12:return o(YC(YC({},r),{},{downloadContent:!l})),e.abrupt("break",16);case 14:return o(YC(YC({},r),{},{offersContent:!l})),e.abrupt("break",16);case 16:h({name:s,status:"finished"}),e.next=23;break;case 19:e.prev=19,e.t1=e.catch(0),g(!0),h({name:s,status:"update-failed"});case 23:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w={toggleVals:l,onToggleChangeHandler:E,toggleOperationName:s,toggleComponentName:a,dataBiIdBase:i,toggleCms:c},x="offersContent"===n?(t=c,Bd().createElement(wT,{childrenGap:"20px",backgroundColor:"neutralMed",padding:"20px"},Bd().createElement(DT,null,t.paragraph),Bd().createElement(TA,{href:t.link.url,target:W_e(t.link.target),"data-bi-id":t.link.id,"aria-label":t.link.ariaLabel||t.link.text},t.link.text),t.link2?Bd().createElement(TA,{href:t.link2.url,target:W_e(t.link2.target),"data-bi-id":t.link2.id,"aria-label":t.link2.ariaLabel||t.link2.text},t.link2.text):null)):function(e,t){return Bd().createElement(wT,{childrenGap:"20px",backgroundColor:"neutralMed",padding:"20px"},Bd().createElement(DT,null,e.paragraph),Bd().createElement(TA,{href:e.link.url,"data-bi-id":"".concat(t,".learn-more-link"),"aria-label":e.link.ariaLabel||e.link.text,target:"_blank"},e.link.text))}(c,i),k=j_e(c.updateFailedMessageErrorCallout),S=m?Bd().createElement(wT,null,k,x):Bd().createElement(wT,null,x),T=U_e(d,p,"",w),I=w?"".concat(w.dataBiIdBase,".toggle"):"",A=Lfe().areaPrefix;return Bd().createElement(wT,null,Bd().createElement(cV,{id:"checkup-optional-diagnostic",drawerHeader:Bd().createElement(xM,T),showDivider:!0,borderRadius:"0px",onClickToOpen:function(){return zge(!0,I,A,_)},onClickToClose:function(){return zge(!1,I,A,_)},children:S}),!y&&m?k:null)},G_e="".concat(R_e,".analyze-content"),K_e=function(e){var t=e.toggleVals,n=e.updateToggleVals,r=yme().officeSettingsContent.connectedExperiencesSection.analyzeContentDrawer;return Bd().createElement(q_e,{officeSettingDrawerName:"analyzeContent",toggleVals:t,updateToggleVals:n,contentsDrawerDataBiIdBase:G_e,contentsDrawerComponentName:"safetyCheckup.officeSettings.analyzeContentDrawer",contentsDrawerOperationName:"safetyCheckup.AnalyzeContentDrawer.setAnalyzeContent",cmsContent:r,toggleValContent:t.analyzeContent,setContentApi:__e,drawerHeaderIconName:"EditListPencil",drawerHeaderTitle:r.title})},Y_e="".concat(R_e,".download-content"),Q_e=function(e){var t=e.toggleVals,n=e.updateToggleVals,r=yme().officeSettingsContent.connectedExperiencesSection.downloadContentDrawer;return Bd().createElement(q_e,{officeSettingDrawerName:"downloadContent",toggleVals:t,updateToggleVals:n,contentsDrawerDataBiIdBase:Y_e,contentsDrawerComponentName:"safetyCheckup.officeSettings.downloadContentDrawer",contentsDrawerOperationName:"safetyCheckup.DownloadContentDrawer.setDownloadContent",cmsContent:r,toggleValContent:t.downloadContent,setContentApi:C_e,drawerHeaderIconName:"PictureFill",drawerHeaderTitle:r.title})},X_e="".concat(R_e,".offers-content"),Z_e=function(e){var t=e.toggleVals,n=e.updateToggleVals,r=yme().officeSettingsContent.offersSection.offersContentDrawer;return Bd().createElement(q_e,{officeSettingDrawerName:"offersContent",toggleVals:t,updateToggleVals:n,contentsDrawerDataBiIdBase:X_e,contentsDrawerComponentName:"safetyCheckup.officeSettings.OffersContentDrawer",contentsDrawerOperationName:"safetyCheckup.OffersContentDrawer.setOffersContentLevel",cmsContent:r,toggleValContent:t.offersContent,setContentApi:E_e,drawerHeaderIconName:"Giftbox",drawerHeaderTitle:yme().officeSettingsContent.offersSection.title})},J_e="".concat(R_e,".optional-diagnostic"),$_e=function(e){var t=e.toggleVals,n=e.updateToggleVals,r=yme().officeSettingsContent.diagnosticDataSection.optionalDrawer;return Bd().createElement(q_e,{officeSettingDrawerName:"optionalDiagnostic",toggleVals:t,updateToggleVals:n,contentsDrawerDataBiIdBase:J_e,contentsDrawerComponentName:"safetyCheckup.officeSettings.optionalDiagnosticDrawer",contentsDrawerOperationName:"safetyCheckup.OptionalDiagnosticDrawer.setDiagnosticLevel",cmsContent:r,toggleValContent:t.optionalDiagnostic,setContentApi:b_e,drawerHeaderIconName:"Diagnostic",drawerHeaderTitle:r.title})},eCe="".concat(D_e,".office-settings-dialog"),tCe=function(e){var t,n=e.toggleVals,r=e.updateToggleVals,o=e.newUserErrorFlag,i=e.initializeOfficeSettings,a=e.hasAnyOfficeProduct,s=yme().officeSettingsContent,c=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManageDataSettings,l=z_e().setNewOfficeSettingsUser;Wd((function(){l(o)}));var u=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d={textWithTokens:"".concat(s.firstLoadErrorDescription," {tryAgain}"),tokensAndValues:{tryAgain:Bd().createElement(IA,{children:s.tryAgain,"data-bi-id":"".concat(xge,".first-load-try-again"),"aria-label":s.tryAgain,onClick:u})}};return Bd().createElement(hx,{operationData:{componentName:eCe,operationName:"OfficeSettingsDrawers.getOfficeSettings"},firstLoadView:Bd().createElement(wT,null,c&&!o?Bd().createElement(JU,{anchor:"right"}):null,Bd().createElement(JU,{anchor:"right"}),Bd().createElement(JU,{anchor:"right"}),c&&!o&&a?Bd().createElement(JU,{anchor:"right"}):null),finishedView:Bd().createElement(wT,null,c&&!o?Bd().createElement($_e,{toggleVals:n,updateToggleVals:r}):null,Bd().createElement(K_e,{toggleVals:n,updateToggleVals:r}),Bd().createElement(Q_e,{toggleVals:n,updateToggleVals:r}),c&&!o&&a?Bd().createElement(Z_e,{toggleVals:n,updateToggleVals:r}):null),failedView:j_e(d)})},nCe=function(e,t,n,r){var o=r?"".concat(r.dataBiIdBase,".toggle"):"",i=Lfe().areaPrefix;return{onClickToOpen:function(){return zge(!0,o,i)},onClickToClose:function(){return zge(!1,o,i)},defaultExpanded:!0,drawerHeader:Bd().createElement(xM,U_e(e,t,n,r))}},rCe=function(e,t){var n="".concat(t,".learn-more-link");return Bd().createElement(qz,{bodyText:e.paragraph,ctaProps:[{actionProps:{href:e.link.url,"data-bi-id":n,id:n,"aria-label":e.link.ariaLabel||e.link.text,children:e.link.text,kind:"hyperlink",target:W_e(e.link.target)}}],imageProps:{imageType:"altTextImage",src:e.image.src,alt:e.image.alt},backgroundType:"card",layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px",height:"small"})},oCe=function(e,t,n){var r={textWithTokens:t.updateFailedMessageMessageBar,tokensAndValues:{tryAgain:Bd().createElement(IA,{children:t.tryAgain,"data-bi-id":"".concat(n,".try-again-link"),"aria-label":t.tryAgain,onClick:e})}};return Bd().createElement(gj,{messageContent:r,messageBarType:"warning"})},iCe="".concat(xge,".analyze-content"),aCe=function(e){var t,n=e.toggleVals,r=e.updateToggleVals,o="AnalyzeContentDrawer.setAnalyzeContent",i=yme().officeSettingsContent.connectedExperiencesSection.analyzeContentDrawer,a=nm(),s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!1),a({name:o,status:"updating"}),e.next=5,__e(!n.analyzeContent);case 5:r(YC(YC({},n),{},{analyzeContent:!n.analyzeContent})),a({name:o,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),l(!0),a({name:o,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p={toggleVals:n.analyzeContent,onToggleChangeHandler:d,toggleOperationName:o,toggleComponentName:"officeSettings.analyzeContentDrawer",dataBiIdBase:iCe,toggleCms:i},h=nCe("EditListPencil",i.title,i.subtitle,p),f=rCe(i,iCe);if(c){var m=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t=oCe(m,i,iCe)}else t=Bd().createElement(gj,{messageContent:i.infoBar,messageBarType:"secondary"});return Bd().createElement(oq,{drawerAreaProps:h,highlightArea:f,detailsArea:t})},sCe="".concat(xge,".download-content"),cCe=function(e){var t,n=e.toggleVals,r=e.updateToggleVals,o="DownloadContentDrawer.setDownloadContent",i=yme().officeSettingsContent.connectedExperiencesSection.downloadContentDrawer,a=nm(),s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!1),a({name:o,status:"updating"}),e.next=5,C_e(!n.downloadContent);case 5:r(YC(YC({},n),{},{downloadContent:!n.downloadContent})),a({name:o,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),l(!0),a({name:o,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p={toggleVals:n.downloadContent,onToggleChangeHandler:d,toggleOperationName:o,toggleComponentName:"officeSettings.downloadContentDrawer",dataBiIdBase:sCe,toggleCms:i},h=nCe("PictureFill",i.title,i.subtitle,p),f=rCe(i,sCe);if(c){var m=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t=oCe(m,i,sCe)}else t=Bd().createElement(gj,{messageContent:i.infoBar,messageBarType:"secondary"});return Bd().createElement(oq,{drawerAreaProps:h,highlightArea:f,detailsArea:t})},lCe="".concat(xge,".OffersContent"),uCe=function(e){var t,n,r,o=e.toggleVals,i=e.updateToggleVals,a=e.newUserError,s="OffersContentDrawer.setOffersContentLevel",c=yme().officeSettingsContent.offersSection.offersContentDrawer,l=nm(),u=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManageDataSettings,d=_7((0,Fd.useState)(!1),2),p=d[0],h=d[1],f=function(){var e=_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h(!1),l({name:s,status:"updating"}),e.next=5,E_e(!o.offersContent);case 5:gh({name:"Ms.Webi.MeePortal.PrivacyToggleEvent",toggleId:"offer-contents-toggle",newState:null!==(t=!o.offersContent)&&void 0!==t&&t}),i(YC(YC({},o),{},{offersContent:null!==(n=!o.offersContent)&&void 0!==n&&n})),l({name:s,status:"finished"}),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),h(!0),l({name:s,status:"update-failed"});case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g={toggleVals:null!==(n=o.offersContent)&&void 0!==n&&n,onToggleChangeHandler:m,disabled:!u||a,toggleOperationName:s,toggleComponentName:"officeSettings.OffersContentDrawer",dataBiIdBase:lCe,toggleCms:c},v=nCe("EditListPencil",c.title,c.subtitle,g),y=function(e){var t={textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,e.paragraph),Bd().createElement(TA,{href:e.link.url,target:W_e(e.link.target),"data-bi-id":e.link.id,"aria-label":e.link.ariaLabel||e.link.text},e.link.text),e.link2?Bd().createElement(TA,{href:e.link2.url,target:W_e(e.link2.target),"data-bi-id":e.link2.id,"aria-label":e.link2.ariaLabel||e.link2.text},e.link2.text):null)}};return Bd().createElement(qz,{bodyText:t,ctaProps:[],imageProps:{imageType:"altTextImage",src:e.image.src,alt:e.image.alt},backgroundType:"card",layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px",height:"small"})}(c);if(p){var b=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();r=oCe(b,c,lCe)}else if(u)if(a){var _={textWithTokens:c.newUserAlert,tokensAndValues:{alertLink:Bd().createElement(TA,{href:c.newUserAlertLink.url,"data-bi-id":"".concat(lCe,".new-user-alert-link"),"aria-label":c.newUserAlertLink.ariaLabel||c.newUserAlertLink.text,target:W_e(c.newUserAlertLink.target)},c.newUserAlertLink.text)}};r=Bd().createElement(gj,{messageContent:_,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}})}else r=Bd().createElement(gj,{messageContent:c.genericAlert,messageBarType:"secondary"});else{var C={textWithTokens:c.childUserAlert,tokensAndValues:{alertLink:Bd().createElement(TA,{href:c.childUserAlertLink.url,"data-bi-id":"".concat(lCe,".child-user-alert-link"),"aria-label":c.childUserAlertLink.ariaLabel||c.childUserAlertLink.text,target:W_e(c.childUserAlertLink.target)},c.childUserAlertLink.text)}};r=Bd().createElement(gj,{messageContent:C,messageBarType:"secondary"})}return Bd().createElement(oq,{drawerAreaProps:v,highlightArea:y,detailsArea:r})},dCe="".concat(xge,".optional-diagnostic"),pCe=function(e){var t,n,r=e.toggleVals,o=e.updateToggleVals,i=e.newUserError,a="OptionalDiagnosticDrawer.setDiagnosticLevel",s=yme().officeSettingsContent.diagnosticDataSection.optionalDrawer,c=nm(),l=null===(t=Lfe().selfRights)||void 0===t?void 0:t.canManageDataSettings,u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p(!1),c({name:a,status:"updating"}),e.next=5,b_e(!r.optionalDiagnostic);case 5:o(YC(YC({},r),{},{optionalDiagnostic:!r.optionalDiagnostic})),c({name:a,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(!0),c({name:a,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m={toggleVals:r.optionalDiagnostic,onToggleChangeHandler:f,disabled:!l||i,toggleOperationName:a,toggleComponentName:"officeSettings.optionalDiagnosticDrawer",dataBiIdBase:dCe,toggleCms:s},g=nCe("Diagnostic",s.title,s.subtitle,m),v=rCe(s,dCe);if(d){var y=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n=oCe(y,s,dCe)}else if(l){if(i){var b={textWithTokens:s.newUserAlert,tokensAndValues:{alertLink:Bd().createElement(TA,{href:s.newUserAlertLink.url,"data-bi-id":"".concat(dCe,".new-user-alert-link"),"aria-label":s.newUserAlertLink.ariaLabel||s.newUserAlertLink.text,target:W_e(s.newUserAlertLink.target)},s.newUserAlertLink.text)}};n=Bd().createElement(gj,{messageContent:b,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}})}}else{var _={textWithTokens:s.childUserAlert,tokensAndValues:{alertLink:Bd().createElement(TA,{href:s.childUserAlertLink.url,"data-bi-id":"".concat(dCe,".child-user-alert-link"),"aria-label":s.childUserAlertLink.ariaLabel||s.childUserAlertLink.text,target:W_e(s.childUserAlertLink.target)},s.childUserAlertLink.text)}};n=Bd().createElement(gj,{messageContent:_,messageBarType:"secondary"})}return Bd().createElement(oq,{drawerAreaProps:g,highlightArea:v,detailsArea:n})},hCe=function(){var e="".concat(xge,".required-diagnostic"),t=yme().officeSettingsContent.diagnosticDataSection.requiredDrawer,n=rCe(t,e),r=nCe("Diagnostic",t.title,t.subtitle);return Bd().createElement(oq,{drawerAreaProps:r,highlightArea:n})},fCe="officeSettings.drawers",mCe=function(t){var n=t.isCheckup,r="OfficeSettingsDrawers.getOfficeSettings",o=yme().officeSettingsContent,i=nm(),a=_7((0,Fd.useState)({optionalDiagnostic:!1,analyzeContent:!0,downloadContent:!0,offersContent:!1}),2),s=a[0],c=a[1],l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(!1),2),h=p[0],f=p[1],m=function(e){c(e)},g=function(e){var t=s.optionalDiagnostic,n=s.analyzeContent,r=s.downloadContent,o=s.offersContent;null===e||void 0===e||e.forEach((function(e){switch(e.id){case w_e:switch(e.value){case T_e.DefaultRequired.toString():case T_e.Required.toString():t=!1;break;case T_e.OptionalRequired.toString():t=!0}break;case x_e:switch(e.value){case I_e.DefaultEnabled.toString():case I_e.Enabled.toString():n=!0;break;case I_e.Disabled.toString():n=!1}break;case k_e:switch(e.value){case A_e.DefaultEnabled.toString():case A_e.Enabled.toString():r=!0;break;case A_e.Disabled.toString():r=!1}break;case S_e:switch(e.value){case P_e.DefaultDisabled.toString():case P_e.Disabled.toString():o=!1;break;case P_e.Enabled.toString():o=!0}}})),c({optionalDiagnostic:t,analyzeContent:n,downloadContent:r,offersContent:o})},v=function(){var t=_me(cfe().mark((function t(){var n,o,a,s,c;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i({name:r,status:"first-load"}),t.next=4,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,"".concat(y_e,"HasProduct"),"".concat(Nme,"/office/roaming-settings/has-office-product"),"".concat(g_e,".").concat(v_e,".HASOFFICEPRODUCT"))];case 1:return[2,e.sent()]}}))}));case 4:return o=t.sent,f(null!==(n=null===o||void 0===o?void 0:o.hasOfficeProduct)&&void 0!==n&&n),t.next=8,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,y_e,"".concat(Nme,"/office/roaming-settings"),"".concat(g_e,".").concat(v_e,".GETROAMINGSETTINGS"))];case 1:return[2,e.sent()]}}))}));case 8:a=t.sent,g(null===a||void 0===a?void 0:a.settings),d(!1),i({name:r,status:"finished"}),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),c=t.t0,424===(null===(s=c.response)||void 0===s?void 0:s.status)?(d(!0),i({name:r,status:"finished"})):i({name:r,status:"failed"});case 18:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}();Wd((function(){v()}));var y=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n?Bd().createElement(tCe,{toggleVals:s,updateToggleVals:m,newUserErrorFlag:u,initializeOfficeSettings:v,hasAnyOfficeProduct:h}):Bd().createElement(hx,{operationData:{componentName:fCe,operationName:r},firstLoadView:Bd().createElement(wT,{childrenGap:"48px"},Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(aT,{tag:"h2"},o.diagnosticDataSection.title),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(JU,{anchor:"right"}),Bd().createElement(JU,{anchor:"right"}))),Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(aT,{tag:"h2"},o.connectedExperiencesSection.title),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(JU,{anchor:"right"}),Bd().createElement(JU,{anchor:"right"})))),finishedView:Bd().createElement(wT,{childrenGap:"48px"},Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(aT,{tag:"h2"},o.diagnosticDataSection.title),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(hCe,null),Bd().createElement(pCe,{toggleVals:s,updateToggleVals:m,newUserError:u}))),Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(aT,{tag:"h2"},o.connectedExperiencesSection.title),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(aCe,{toggleVals:s,updateToggleVals:m}),Bd().createElement(cCe,{toggleVals:s,updateToggleVals:m}))),h?Bd().createElement(wT,{childrenGap:"20px"},Bd().createElement(aT,{tag:"h2"},o.offersSection.title),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(uCe,{toggleVals:s,updateToggleVals:m,newUserError:u}))):null),failedView:Bd().createElement(vj,{align:"center",correlationVector:ch(),errorMessage:o.firstLoadErrorMessage,description:o.firstLoadErrorDescription,imageSrc:o.errorIllustrationImageSrc,buttonProps:{text:o.tryAgain,"aria-label":o.tryAgain,"data-bi-id":"".concat(xge,".first-load-try-again"),type:"default",onClick:y}})})},gCe=function(){var e="".concat(wge,".intro-cta"),t=yme().officeSettingsContent.intro,n=function(e){var t=Object.values(e),n=[];return t.forEach((function(e,r){n.push(e),r!==t.length-1&&n.push("\xa0")})),n}([t.first,t.second]).map((function(e){return{textWithTokens:e,tokensAndValues:{}}}));return Bd().createElement(qz,{backgroundType:"flat",bodyText:n,ctaProps:[{actionProps:{href:t.link.url,"data-bi-id":e,id:e,"aria-label":t.link.ariaLabel||t.link.text,children:t.link.text,kind:"hyperlink",target:W_e(t.link.target)}}],imageProps:{alt:t.image.alt,src:t.image.src},layoutType:"2/3",height:"small"})},vCe=function(){var e=yme().officeSettingsContent;return Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:e.title,ariaLive:"assertive"}),Bd().createElement(wT,{padding:"0 0 48px 0"},Bd().createElement(ibe,{subPage:"office-settings"}),Bd().createElement(wT,{childrenGap:"32px"},Bd().createElement(gCe,null),Bd().createElement(mCe,{isCheckup:!1})),Bd().createElement(wbe,null),Bd().createElement(Cbe,null)))},yCe=[Cme.Unauthorized],bCe=kme(yCe),_Ce=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,Sme("".concat(Nme,"/custom-dictionary-data"),"".concat(Ome,".CUSTOMDICTIONARY.GET"),{},{overrideRequestQosData:bCe})];case 1:return[2,e.sent()]}}))}))},CCe=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[4,Ime("".concat(Nme,"/custom-dictionary-data"),"".concat(Ome,".CUSTOMDICTIONARY.PUT"),{customDictionary:t},{},{overrideRequestQosData:bCe})];case 1:return e.sent(),[2]}}))}))},ECe=(bN.size24,bN.size28,bN.size32,bN.size40,bN.size48,bN.size56,bN.size72,bN.size100,bN.size120,function(e){var t=e.clearDictionaryItemsCallback,n=ZU(),r=yme(),o=Lfe().areaPrefix,i=function(){n.closeDialog()},a=r.overviewContent.customDictionary.dialogContent,s="CustomDictionary",c={iconName:"ErrorBadge",color:"errorIcon"},l=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return eh({area:o,scenario:Ige,step:"confirm",data:{}}),e.prev=1,e.next=4,CCe([]);case 4:t(),rh(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),rh({error:e.t0});case 11:n.closeDialog();case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(KU,{closeButton:{"aria-label":a.close,"data-bi-id":"".concat(s,".dialog.close")},dialogFooterProps:{buttonPrimary:{"aria-label":a.delete,"data-bi-id":"".concat(s,".dialog.clearAll"),onClick:function(){l()},text:a.delete},buttonSecondary:{"aria-label":a.close,"data-bi-id":"".concat(s,".dialog.cancel"),onClick:i,text:a.dontDelete}},isOpen:!0,onDismiss:i,title:a.title},Bd().createElement(wT,{horizontalAlign:"center",childrenGap:"33px"},Bd().createElement(jR,{src:a.image.src,alt:a.image.alt}),Bd().createElement(DT,{variant:"paneTitle"},a.areYouSure),Bd().createElement(gj,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:c,messageContent:a.line1}),Bd().createElement(gj,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:c,messageContent:a.line2})))}),wCe=function(){var e=ZU(),t=nm(),n=yme().overviewContent.customDictionary,r=_7((0,Fd.useState)([]),2),o=r[0],i=r[1],a=_7((0,Fd.useState)([]),2),s=a[0],c=a[1],l="customDictionary.get",u="customDictionary.put",d=_7((0,Fd.useState)(""),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v=300,y="CustomDictionary";op(_me(cfe().mark((function e(){var n,r;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t({name:l,status:"first-load"}),e.next=4,_Ce();case 4:n=e.sent,r=n.customDictionary,i(r),c(r.slice(0,v)),t({name:l,status:"finished"}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),t({name:l,status:"failed"});case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))));var b,_=function(){var e=_me(cfe().mark((function e(n){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(!1),e.prev=1,t({name:u,status:"updating"}),e.next=5,CCe(n).then((function(){i(n),c(n)}));case 5:t({name:u,status:"finished"}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),g(!0),t({name:u,status:"update-failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),C=function(){i([])},E=Bd().createElement(Bd().Fragment,null,o.length>v?s.map((function(e){return Bd().createElement(tV,{"aria-label":"".concat(n.drawerArea.header," - ").concat(e),"data-bi-id":"".concat(y,".item"),"data-testid":"Pill item",text:e,onClick:function(){}})})):Bd().createElement(wT,{backgroundColor:"transparent",horizontal:!0,padding:15},Bd().createElement(UO,{"aria-label":n.detailsArea.title,"data-bi-id":"".concat(y,".item.list"),options:s.map((function(e){return{"aria-label":n.detailsArea.removeItemAriaLabel,"data-bi-id":"".concat(y,".item.remove"),label:e,onClick:function(){var t=o.filter((function(t){return t!==e}));_(t)}}}))}))),w=Bd().createElement(DH,{backgroundColor:"transparent",columns:[Bd().createElement(iH,{textElements:[{children:E}]})],variant:"Twelve"}),x=Wge("customDictionary",n.drawerArea.icon,n.drawerArea.header,n.drawerArea.subtitle,o.length,n.drawerArea.dataCount,!1),k=[{"aria-label":n.detailsArea.downloadLinkText,children:n.detailsArea.downloadLinkText,"data-bi-id":"".concat(y,".download"),download:"CustomDictionary",href:URL.createObjectURL(new Blob([o.join("\r\n").toString()],{type:"text/csv"}))},{"aria-label":n.detailsArea.clearLinkText,children:n.detailsArea.clearLinkText,"data-bi-id":"".concat(y,".clearAll"),onClick:function(){e.openDialog(Bd().createElement(ECe,{clearDictionaryItemsCallback:C}))}}],S=Bd().createElement(WU,{value:p,onChange:function(e,t){t?(h(t),c(o.filter((function(e){return e.toLowerCase().includes(t.toLowerCase())})))):(h(""),c(o.slice(0,v)))},"data-bi-id":"".concat(y,".search-box"),"aria-label":n.drawerArea.searchAriaLabel}),T=Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0,header:(b=n.detailsArea.title,Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(DT,{weightOverride:"semi-bold"},b)),Bd().createElement(_T,{slots:4},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"})),Bd().createElement(_T,{slots:4},S))),footer:{borderRadius:!1,links:k,shadow:!1}},w),I=[Bd().createElement(gj,{messageBarType:"info",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(DT,null,n.detailsArea.warningLarge)}}}),T],A=[T,Bd().createElement(gj,{messageBarType:"error",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(DT,null,n.detailsArea.updateError)}}})],P=m?A:o.length>v?I:T,D=Bd().createElement(gj,{messageBarType:"secondary",messageContent:{textWithTokens:"{0} {1}",tokensAndValues:{0:Bd().createElement(DT,null,n.detailsArea.noData),1:Bd().createElement(TA,{"aria-label":n.detailsArea.learnMoreLink.text,"data-bi-id":"CustomDictionary-learn-more",href:n.detailsArea.learnMoreLink.url,target:"_blank"},n.detailsArea.learnMoreLink.text)}}}),R=Bd().createElement(gj,{messageBarType:"error",messageContent:{textWithTokens:"{0} {1}",tokensAndValues:{0:Bd().createElement(DT,null,n.detailsArea.loadError),1:Bd().createElement(IA,{"aria-label":n.detailsArea.tryAgain,"data-bi-id":"".concat(y,".retry"),onClick:function(){_Ce()}},n.detailsArea.tryAgain)}}});return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(hx,{operationData:{operationName:l,componentName:y},firstLoadView:Bd().createElement(JU,{anchor:"right"}),finishedView:o.length>0?Bd().createElement(oq,{drawerAreaProps:x,detailsArea:P}):Bd().createElement(oq,{drawerAreaProps:x,detailsArea:D}),failedView:Bd().createElement(oq,{drawerAreaProps:x,detailsArea:R})}))},xCe=function(){var e=yme().overviewContent.customDictionary;return Bd().createElement(wT,{childrenGap:"12px"},Bd().createElement(wT,{childrenGap:"5px"},Bd().createElement(aT,{tag:"h2",variant:"paneHeader"},e.overviewSection.title),Bd().createElement(DT,null,e.overviewSection.description)),Bd().createElement(wCe,null))},kCe=function(){var e=Rf(),t=Lfe().areaPrefix,n=yme().familyContent.overview,r=_7((0,Fd.useState)([]),2),o=r[0],i=r[1];return op(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ibe();case 2:(t=e.sent)&&i(t);case 4:case"end":return e.stop()}}),e)})))),o.length>0?Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(aT,{tag:"h2"},n.title),Bd().createElement(DT,null,n.description),Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0},o.map((function(r){return Bd().createElement(DH,{key:r.cid,id:r.cid,variant:"SixSix",columns:[Bd().createElement(lH,{personaProps:{imageUrl:r.profilePictureUrl,size:"32"},title:r.displayName}),Bd().createElement(GB,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:t,"aria-label":Qd(n.listItemAriaLabel,r.displayName),"data-bi-id":"overview.children.child",onClick:function(){return e.push("/child/".concat(r.cid))}}})})))):null},SCe=[Cme.Unauthorized],TCe=kme(SCe),ICe=function(t,n){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,Tme("".concat(Nme,"/unified-consent/windows-account-sync"),"".concat(Ome,".UNIFIEDCONSENT.WASC.UPDATE"),{consentId:t,consentState:n},{},{overrideRequestQosData:TCe})];case 1:return[2,e.sent()]}}))}))};!function(e){e.Unknown="unknown",e.Declined="declined",e.Accepted="accepted"}(Bbe||(Bbe={}));var ACe={header:"Sync your Microsoft account with Windows",headerAriaLabel:"Sync your Microsoft account with Windows Header",subheader:"Changes you make in Windows will also sync to your account and be available in other Microsoft products.",description:"You can choose to make the info saved to your Microsoft account also available in Windows. Changes you make in Windows will also sync to your account and be available in other Microsoft products. This means you\u2019ll be able to do things like:",section1Header:"Back up your settings, apps, and passwords in the cloud",section1Description:"We\u2019ll back up your apps, settings, and saved passwords for Windows so you can restore them from any PC. ",section1Icon:"CloudUpload",section2Header:"Sync your pinned apps and preferences across devices",section2Description:"Important info like your preferences, pinned apps, and custom dictionary will be available when you sign in.",section2Icon:"SettingsSync",section3Header:"Quickly find files and apps",section3Description:"Find the files and apps you need more easily with recommendations and suggestions based on your activity.",section3Icon:"FileExplorer",learnMoreLinkText:"Learn more about your Microsoft account and Windows",learnMoreLinkUrl:"https://go.microsoft.com/fwlink/?linkid=2236520",learnMoreAriaLabel:"Learn more about your Microsoft account and Windows",imageAltText:"Conceptual illustration of an account syncing with Windows. A laptop with the Windows logo has a blue arrow pointing to and then coming from a conceptual image of a contact card with the Microsoft logo on it.",consentOnText:"On",consentOffText:"Off"},PCe=function(e){var t=e.componentName,n=e.drawerProps,r=e.highlightArea,o=e.detailsArea;return(0,Fd.useEffect)((function(){if("true"===new URLSearchParams(window.location.search).get(t)){var e=document.getElementById(t);null===e||void 0===e||e.scrollIntoView()}})),Bd().createElement(wT,{id:t},Bd().createElement(oq,{drawerAreaProps:n,highlightArea:r,detailsArea:o}))};var DCe=function(){var t={id:"",state:Bbe.Unknown,modelText:ACe},n=Lfe().areaPrefix,r=_7((0,Fd.useState)(!0),2),o=r[0],i=r[1],a=_7((0,Fd.useState)(t),2),s=a[0],c=a[1],l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=nm(),h="wasc",f=yme().overviewContent.consentSettings,m="GetWascStatus",g="UpdateWascStatus",v="WascDrawer",y="".concat(v,".toggle");Wd(_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,p({name:m,status:"first-load"}),t.next=4,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,"UserConsent","".concat(Nme,"/unified-consent/windows-account-sync"),"".concat(Ome,".UNIFIEDCONSENT.WASC.GET"),{},{overrideRequestQosData:TCe})];case 1:return[2,e.sent()]}}))}));case 4:(n=t.sent)&&(d(!0),c(n),"accepted"===n.state?i(!0):i(!1)),p({name:m,status:"finished"}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),p({name:m,status:"update-failed",error:t.t0});case 12:case"end":return t.stop()}}),t,null,[[0,9]])}))));var b=function(){var e=_me(cfe().mark((function e(t,r){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(eh({area:n,scenario:"ManageWindowsAccountSyncConsent",step:"onChange",data:{initialToggleState:o,newToggleState:r}}),e.prev=1,p({name:g,status:"updating"}),!r){e.next=8;break}return e.next=6,ICe(s.id,Bbe.Accepted);case 6:e.next=10;break;case 8:return e.next=10,ICe(s.id,Bbe.Declined);case 10:i(!!r),p({name:g,status:"finished"}),rh(),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),p({name:g,status:"update-failed",error:e.t0}),rh({error:e.t0});case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(t,n){return e.apply(this,arguments)}}(),_=Bd().createElement(iM,{media:{size:"sm",image:{imageType:"image",src:f.wascContent.drawerIcon.src}},title:{children:s.modelText.header,kind:"text",nowrap:!0,weightOverride:"semi-bold"},subtitleTextProps:{children:s.modelText.subheader}}),C=Bd().createElement(EM,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:y,operationName:g},errorCallout:{errorMessage:f.consentError,errorMessageAriaLabel:f.consentError,targetOrTriggerButton:{"aria-label":f.consentError,"data-bi-id":"".concat(y,".error")}}},"aria-label":s.modelText.header,"data-bi-id":y,togglePosition:"end",onText:s.modelText.consentOnText,offText:s.modelText.consentOffText,disabled:!1,checked:o,onChange:b}),E={onClickToOpen:function(){return zge(!0,h,n)},onClickToClose:function(){return zge(!1,h,n)},defaultExpanded:!1,drawerHeader:Bd().createElement(xM,{chevronPosition:"end",columns:[{column:_,slots:9},{column:C,slots:3}],totalSlots:12})},w=function(e){var t=yme().overviewContent.consentSettings.wascContent,n=[{icon:e.section1Icon,header:e.section1Header,description:e.section1Description},{icon:e.section2Icon,header:e.section2Header,description:e.section2Description},{icon:e.section3Icon,header:e.section3Header,description:e.section3Description}],r={textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,null,Bd().createElement(wT,{padding:5},Bd().createElement(DT,null,e.description)),Bd().createElement(wT,{padding:5},n.map((function(e,t){return Bd().createElement(YR,{key:t,image:{imageType:"icon",iconName:e.icon},size:"md",imagePadding:"5px"},Bd().createElement(DT,{block:!0,variant:"headerText"},e.header),Bd().createElement(DT,null,e.description))}))))}};return{id:"wasc",backgroundType:"card",bodyText:r,bodyTextVariant:"bodyPrimaryText",height:"small",imageProps:{src:t.image.src,alt:e.imageAltText},layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px"}}(s.modelText),x=Bd().createElement(qz,Object.assign({key:h},w)),k=Bd().createElement(gj,{messageBarType:"secondary",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(Bd().Fragment,null,Bd().createElement(TA,{"aria-label":s.modelText.learnMoreAriaLabel,"data-bi-id":"wasc-learn-more",href:s.modelText.learnMoreLinkUrl,target:"_blank"},s.modelText.learnMoreLinkText))}}});return u?Bd().createElement(PCe,{drawerProps:E,highlightArea:x,detailsArea:k,componentName:v}):null},RCe=function(){var e=Lfe().area,t=yme(),n=_7((0,Fd.useState)(!1),2),r=n[0],o=n[1],i="".concat(age).concat(rge);return Wd(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zbe().then((function(e){e&&e.archives&&e.archives.length>0&&e.archives.some((function(e){return e.isComplete&&!e.isFailed}))&&o(!0)}));case 2:case"end":return e.stop()}}),e)})))),Bd().createElement(Bd().Fragment,null,r?Bd().createElement(gj,{messageContent:t.overviewContent.overviewMessageBarContent,actionProps:{"aria-label":t.overviewContent.overviewMessageBarAction,children:t.overviewContent.overviewMessageBarAction,"data-bi-id":"privacy-overview-messagebar-link",href:i},dismissButtonProps:{"aria-label":t.overviewContent.overviewMessageBarClose,"data-bi-id":"privacy-overview-messagebar-dismiss",onDismiss:function(){o(!1)},pageArea:e}}):null)},MCe=function(){var t=yme().overviewContent.otherSettings,n=Lfe(),r=Rf(),o=function(){r.push({pathname:"/ad-settings"})},i=function(t,r,i){return function(t){var n,r=t.card,o=t.area,i=t.dataBiIdSuffix,a=t.isSmallerImg,s=void 0!==a&&a,c=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 l={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:c?(0,e.__assign)((0,e.__assign)({},l),{onClick:c}):(0,e.__assign)((0,e.__assign)({},l),{href:r.coldLink.url,target:W_e(r.coldLink.target)}),id:"".concat(o,".cards.").concat(i)}}({card:r,area:n.areaPrefix,dataBiIdSuffix:i,isSmallerImg:!0,customOnClick:"adSettingsCard"===t?o:void 0})};return Bd().createElement(wT,{childrenGap:"12px"},Bd().createElement(wT,null,Bd().createElement(aT,{tag:"h2",variant:"paneHeader"},t.title),Bd().createElement(DT,null,t.description)),Bd().createElement(zL,null,Object.entries(t.cardsNew).map((function(e,t){var n=_7(e,2),r=n[0],o=n[1];return Bd().createElement(dte,Object.assign({key:t},i(r,o,"".concat("other-settings",".").concat(r,".cta"))))}))))},NCe=function(e){var t,n=e.dataType,r=Rf(),o=sS(),i=yme(),a=Lfe(),s=_7((0,Fd.useState)(),2),c=s[0],l=s[1],u=i.sharedContent,d=i.overviewContent,p="s"===o||"m"===o,h="".concat(sge,".").concat(n,"-line-item");op(_me(cfe().mark((function e(){var t,r,o,i;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p){e.next=19;break}e.t0=n,e.next="browse"===e.t0?4:"usage"===e.t0?14:19;break;case 4:return e.next=6,wve("cardTypeFilter_browse");case 6:return t=e.sent,e.next=9,wve("cardTypeFilter_search");case 9:return r=e.sent,o=qge(t+r,u.activityCount,u,a.language),l({children:o,variant:"headerText"}),e.abrupt("break",19);case 14:return e.next=16,wve("cardTypeFilter_usage");case 16:return i=e.sent,l({children:qge(i,u.activityCount,u,a.language),variant:"headerText"}),e.abrupt("break",19);case 19:case"end":return e.stop()}}),e)}))));var f="",m="",g="";switch(n){case"browse":t=d.webSearchListIcon,f=d.webSearchListHeader,m=d.webSearchListSubTitle,g="web-search";break;case"usage":t=d.appsServicesListIcon,f=d.appsServicesListHeader,m=d.appsServicesListSubTitle,g="apps-services";break;default:throw new Error("Drawer requested for unsupported data type")}var v=Bd().createElement(WO,{children:[Bd().createElement(wT,{height:44,padding:"5px 5px"},Bd().createElement(sH,{image:{imageType:"image",src:t.src},size:"sm"},Bd().createElement(wT,{margin:"0px 0px 0px -12px"},Bd().createElement(SA,{lines:1,children:f,variant:"headerText"}),Bd().createElement(SA,{lines:1,children:m,variant:"metadataText"}))))]}),y={pageArea:a.areaPrefix,"aria-label":m,"data-bi-id":h,onClick:function(){return r.push(g)}};return Bd().createElement(wT,{childrenGap:"16px",boxShadow:!0,borderRadius:"4px"},Bd().createElement(TV,{isAlwaysExpanded:!0,roundedCorners:!0},Bd().createElement(DH,{key:h,id:h,variant:"SixSix",columns:[v,Bd().createElement(GB,{contentType:"text",iconName:"ChevronRight",columnAlign:"end",textElements:c?[c]:[]})],onClickProps:y})))};function LCe(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o7(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}}}}var OCe="".concat(Nme,"/app-consent/applications"),FCe="".concat(Nme,"/app-consent/application-data"),BCe="".concat(Nme,"/app-consent/permissions"),HCe=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[4,Dme(!1,"".concat("GetApplicationData","_").concat(t),"".concat(FCe,"?appId=").concat(t),"".concat(Ome,".GETAPPLICATIONDATA"))];case 1:return[2,e.sent()]}}))}))},zCe=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[4,Tme(BCe,"".concat(Ome,".UPDATEAPPCONSENTPERMISSIONS"),{appConsentArgs:t})];case 1:return[2,e.sent()]}}))}))},VCe=function(e){var t=e.cms,n=e.prefix;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},Bd().createElement(WS,{iconName:"Info",size:"16px"}),Bd().createElement(AA,{textWithTokens:t.noData,tokensAndValues:{"learn-more":Bd().createElement(TA,{"aria-label":t.learnMoreAriaLabel,"data-bi-id":"".concat(n,"-noData-learnMore-link"),href:t.learnMoreLink,target:"_blank"},t.learnMoreToken)}}))},UCe=function(e){var t=e.cms,n=e.prefix,r=e.isRetrying,o=e.onRetryClick;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(DT,null,t.retryHeader),Bd().createElement(IA,{key:"".concat(n,".try-again"),"aria-label":t.retryHeader,"data-bi-id":"".concat(n,".try-again"),onClick:o,disabled:r},t.tryAgain),r?Bd().createElement(fM,{"aria-label":t.retryInProgressAriaLabel}):null)};var WCe=function(e){var t=480;"s"!==e&&"m"!==e||(t=window.innerWidth-16);return{stickyHeaderFooter:{hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},dialogStyles:{main:{width:t,maxWidth:480,backgroundColor:"white"}}}},jCe={padding:"0px",smallScreenPadding:"0px"},qCe=function(e){var t=e.appData,n=yme().overviewContent.appAccessActivity.permissionsDialog,r=Qd(n.generalPermissionsContent.header,t.name),o=Kge(t.lastAccessTime,void 0,yme().sharedContent,!0),i=Qd(n.generalPermissionsContent.lastUsed,[t.name,o]),a=n.permissions;return Bd().createElement(wT,null,Bd().createElement(wT,{childrenGap:"33px"},Bd().createElement(wT,{childrenGap:"24px"},Bd().createElement(aT,{variant:"subjectTitle",tag:"h2",children:r}),Bd().createElement(wT,{childrenGap:"12px"},t.appConsents.offerActions?Object.values(t.appConsents.offerActions).map((function(e){var n,r,o=(n=e.offerName,r=e.actionName,"".concat(n.toLowerCase(),"-").concat(r.toLowerCase()));return function(e,t,n,r){var o=Xd(r,e);return Bd().createElement(wT,{childrenGap:"5px"},Bd().createElement(YR,{size:"md",image:t?{imageType:"image",src:t}:{imageType:"character",character:e.charAt(0).toLocaleUpperCase()},imagePadding:"0 16px 0 0"},Bd().createElement(wT,{childrenGap:"6px"},Bd().createElement(DT,{variant:"headerText",children:n}),Bd().createElement(DT,{children:o}))))}(t.name,t.icon,a[o].title,a[o].description)})):void 0),Bd().createElement(DT,{variant:"metadataText",children:i}))))},GCe=function(e){var t=e.appData,n=yme().overviewContent.appAccessActivity.permissionsDialog,r=Qd(n.linkedinPermissionsContent.header,t.name),o=Bd().createElement(AA,{textWithTokens:n.linkedinPermissionsContent.subHeader,tokensAndValues:{0:Bd().createElement(TA,{"aria-label":n.linkedinPermissionsContent.tokens.privacyStatementToken,"data-bi-id":"app-access.linkedin-privacy-statement",href:n.linkedinPermissionsContent.links.privacyStatementLink,target:"_blank",underline:!1},n.linkedinPermissionsContent.tokens.privacyStatementToken)}});return Bd().createElement(wT,null,Bd().createElement(wT,null,Bd().createElement(wT,{childrenGap:"24px"},Bd().createElement(wT,{childrenGap:"12px"},Bd().createElement(aT,{variant:"subjectTitle",tag:"h2",children:r}),o),Bd().createElement(wT,{childrenGap:"12px"}),Bd().createElement(TA,{"aria-label":n.linkedinPermissionsContent.tokens.learnMoreToken,"data-bi-id":"app-access.linkedin-learn-more",href:n.linkedinPermissionsContent.links.learnMoreLink,target:"_blank"},n.linkedinPermissionsContent.tokens.learnMoreToken))))},KCe=function(e){var t=e.appData,n=ZU(),r=sS(),o=yme().overviewContent.appAccessActivity,i=WCe(r).stickyHeaderFooter,a=function(){n.closeDialog()},s={isOpen:!0,title:{text:t.name,image:{src:t.icon,alt:"selectedImageAltText",imageType:"altTextImage"}},withHeaderHorizontalLine:!0,closeButton:{"data-bi-id":"close-button","aria-label":o.permissionsDialog.closeAriaLabel},subtitle:void 0,headerLeftRightPadding:"24px",onDismiss:a,stickyHeaderFooter:i,contentId:"app-access-dialog-body",staticBodyWidth:"480px",minBodyHeight:{height:60,unit:"vh"},dialogFooterProps:{hasFooterHorizontalLine:!0,buttonPrimary:{onClick:a,text:o.permissionsDialog.keepSharing,"aria-label":o.permissionsDialog.keepSharing,"data-bi-id":"app-access-dialog-dialog.keep-sharing"},buttonSecondary:{onClick:a,text:o.permissionsDialog.stopSharing,"aria-label":o.permissionsDialog.stopSharing,"data-bi-id":"app-access-dialog.stop-sharing"}}};return Bd().createElement(KU,s,t.name.toLowerCase()==="Linkedin".toLowerCase()?Bd().createElement(GCe,{appData:t}):Bd().createElement(qCe,{appData:t}))},YCe=["appItem","revokePermissionsCallback"],QCe="Overview.AppsAndServicesActivity.AppAccessListItem",XCe="".concat(age,".appAccess"),ZCe=_V((function(e){var t,n=e.appItem,r=e.revokePermissionsCallback,o=aG(e,YCe),i=sS(),a=yme().overviewContent.appAccessActivity.listItems,s=ZU(),c=n,l="".concat(Kge(n.lastAccessTime,void 0,a)),u={listItemMediaProps:{image:(t=c,t.icon?{imageType:"image",src:t.icon}:{imageType:"character",character:t.name.charAt(0).toLocaleUpperCase()}),size:"sm"},title:c.name},d={children:l,variant:"bodySecondaryText"},p=[{"aria-label":a.deny,"data-bi-id":"".concat(XCe,".deny"),buttonColor:"themePrimary",onClick:function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n.appConsents);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),text:a.deny,operationData:{progressViewOperationData:{componentName:QCe,operationName:"".concat(QCe,".").concat(c.id),defaultState:"finished"}}},{"aria-label":a.details,"data-bi-id":"".concat(XCe,".details"),buttonColor:"themePrimary",onClick:function(){s.openDialog(Bd().createElement(KCe,{appData:n}))},text:a.details,operationData:{progressViewOperationData:{componentName:QCe,operationName:"".concat(QCe,".").concat(c.id),defaultState:"finished"}}}],h=function(){return Bd().createElement(RM,{contentType:"none",columnAlign:"end",actionButtonProps:p})};switch(i){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},o,{key:c.id,variant:"SixFourTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,u),Bd().createElement(iH,{textElements:[d],"data-fct-id":l}),h()]}));case"s":return Bd().createElement(DH,Object.assign({},o,{key:c.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},u,{subtitles:[d],"data-fct-id":l})),h()]}))}})),JCe="appAccess",$Ce=function(){var t=yme().overviewContent.appAccessActivity,n=nm(),r=_7((0,Fd.useState)(!1),2),o=r[0],i=r[1],a=_7((0,Fd.useState)(!1),2),s=a[0],c=a[1],l=_7((0,Fd.useState)(0),2),u=l[0],d=l[1],p=_7((0,Fd.useState)([]),2),h=p[0],f=p[1],m=t.highlightArea,g=Nbe("appAccess",{},m),v=Bd().createElement(qz,Object.assign({key:JCe},g)),y="GetApplications",b="UpdateAppConsentPermissions",_=(0,Fd.useCallback)(_me(cfe().mark((function t(){var n,r,o,i,a,s,c;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Sme(OCe,"".concat(Ome,".GETAPPLICATIONS"))];case 1:return[2,e.sent()]}}))}));case 2:if(n=t.sent,r=[],!n){t.next=26;break}d(n.applications.length),o=LCe(n.applications),t.prev=7,o.s();case 9:if((i=o.n()).done){t.next=18;break}return a=i.value,t.next=13,HCe(a.id);case 13:s=t.sent,c=s.applicationData,r.push({id:c.id,name:c.name,icon:c.iconUrl,lastAccessTime:a.offerPermissions.length>0?a.offerPermissions[0].lastAccessTime:a.offerActions[0].lastAccessTime,appConsents:{appId:c.id,name:c.name,offerActions:a.offerActions,offerPermissions:a.offerPermissions}});case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),o.e(t.t0);case 23:return t.prev=23,o.f(),t.finish(23);case 26:f(r);case 27:case"end":return t.stop()}}),t,null,[[7,20,23,26]])}))),[]),C=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n({name:b,status:"updating"}),e.next=4,zCe(t);case 4:return e.next=6,_();case 6:n({name:b,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),n({name:b,status:"update-failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),[_]);(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n({name:y,status:"first-load"}),e.next=4,_();case 4:n({name:y,status:"finished"}),c(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n({name:y,status:"failed",error:e.t0}),c(!0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();e()}),[n,y,_]);var E=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i(!0),n({name:y,status:"updating"}),e.next=5,_();case 5:n({name:y,status:"finished"}),c(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),n({name:y,status:"failed",error:e.t0}),c(!0);case 13:return e.prev=13,i(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,9,13,16]])})));return function(){return e.apply(this,arguments)}}(),w=function(e,t,n,r){var o=yme().overviewContent,i=o.appAccessActivity.detailsArea,a="".concat(sge,".appsAndServicesActivity.appAccess"),s=i.header,c=Object.values(e),l=function(e){var t=e.header;return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:6},Bd().createElement(DT,{weightOverride:"semi-bold"},t)))};return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:n?Bd().createElement(UCe,{cms:o.overviewActivities.drawers.detailsArea,prefix:a,isRetrying:r,onRetryClick:t}):0===c.length?Bd().createElement(VCe,{cms:o.overviewActivities.drawers.detailsArea,prefix:a}):Bd().createElement(l,{header:s})}}(h,E,s,o),x=Bd().createElement(TV,Object.assign({key:JCe},w),h.slice(0,5).map((function(e){return Bd().createElement(ZCe,{key:e.id,appItem:e,revokePermissionsCallback:C})}))),k=t.drawerArea,S=Wge("appAccess",k.icon,k.header,k.subtitle,u,k.dataCount);return Bd().createElement(wT,{id:"overview-appsAndServices-appAccessActivity"},Bd().createElement(oq,{key:JCe,drawerAreaProps:S,highlightArea:v,detailsArea:x}))},eEe=Bd().createContext({showSatisfactionSurvey:!1,setShowSatisfactionSurvey:function(){}}),tEe=function(e){var t=e.children,n=_7((0,Fd.useState)(!1),2),r=n[0],o=n[1];return Bd().createElement(eEe.Provider,{value:{showSatisfactionSurvey:r,setShowSatisfactionSurvey:o}},t)},nEe=function(e){var t=e.dataType,n="Overview.ConfirmationDialogContent.".concat(t);qf(n);var r=yme().overviewContent.overviewActivities.dialogs,o="",i="",a="",s=[],c=[],l={},u={iconName:"ErrorBadge",color:"errorIcon"},d={iconName:"Info"};switch(t){case"browse":o=r.browse.image.src,i=r.browse.image.alt,s=Object.values(r.browse.body),c=[u,d,d,u],a=r.browse.areYouSure,l={viewDeleteLink:Bd().createElement(TA,{"aria-label":r.browse.tokens.viewDeleteToken,"data-bi-id":"".concat(fge,".browse-view-delete-link"),href:r.browse.links.viewDeleteLink,target:"_blank"},r.browse.tokens.viewDeleteToken)};break;case"location":o=r.location.image.src,i=r.location.image.alt,s=Object.values(r.location.body),c=[u,u,u],a=r.location.areYouSure;break;case"search":o=r.search.image.src,i=r.search.image.alt,s=Object.values(r.search.body),c=[u,d,u],a=r.search.areYouSure;break;case"usage":o=r.usage.image.src,i=r.usage.image.alt,s=Object.values(r.usage.body),c=[u,u,u],a=r.usage.areYouSure;break;case"performance":o=r.performance.image.src,i=r.performance.image.alt,s=Object.values(r.performance.body),c=[u,u,u],a=r.performance.areYouSure}var p={src:o,width:"80%",alt:i,imageType:"altTextImage"};return Bd().createElement(wT,{horizontal:!1},Bd().createElement(wT,{horizontalAlign:"center"},Bd().createElement(jR,p)),Bd().createElement(wT,{horizontal:!1,childrenGap:"33px"},Bd().createElement(wT,{horizontal:!1,childrenGap:"16px"},Bd().createElement(aT,{variant:"paneTitle",tag:"h2",children:a}),s.map((function(e,t){return Bd().createElement(gj,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:c[t],messageContent:{textWithTokens:e,tokensAndValues:l}})})),"browse"===t?Bd().createElement(TA,{"aria-label":r.browse.learnMoreText,"data-bi-id":"".concat(fge,".browse-learn-more-link"),href:r.browse.learnMoreLink,target:"_blank"},r.browse.learnMoreText):null)))},rEe=function(e){var t=e.confirmationDialogState,n=e.setConfirmationDialogState,r=e.onClearAllCancel,o=e.deleteAll,i=e.onRecurringDeleteSuccessCallback,a=e.recurringDeletes,s="Overview.ConfirmationDialog.".concat(t.dialogDataType);qf(s);var c,l="cardTypeFilter_".concat(t.dialogDataType),u=Lfe(),d=tbe(),p=ZU(),h=nm(),f=yme().overviewContent.overviewActivities.dialogs,m=sS(),g=WCe(m),v=g.stickyHeaderFooter,y=g.dialogStyles,b=a&&a[l];if(!t.dialogDataType)return null;switch(t.dialogDataType){case"browse":c=f.browse.confirmationTitle;break;case"location":c=f.location.confirmationTitle;break;case"search":c=f.search.confirmationTitle;break;case"usage":c=f.usage.confirmationTitle;break;case"performance":c=f.performance.confirmationTitle}var _=GC({},Lve,t.dialogDataType),C="ConfirmationDialog.DeleteAllByType.".concat(t.dialogDataType),E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&qp(Tp),n({showDialog:!1,dialogDataType:null}),e&&nh({data:_})},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,qp(Ip),h({name:C,status:"updating"}),e.next=5,o();case 5:h({name:C,status:"finished"}),E(!1),rh({data:_}),b||"performance"===t.dialogDataType||(eh({area:u.areaPrefix,scenario:"CreateRecurringDelete",step:"Index",data:{activityType:t.dialogDataType}}),p.openDialog(Bd().createElement(Mbe,{filterType:l,variant:"create",onSuccessCallback:i,authToken:d.authToken}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),qp(Age),h({name:C,status:"failed"}),th({step:Age,error:Pge,data:_});case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(KU,function(){var e={buttonPrimary:{onClick:w,text:f.clear,"aria-label":f.clear,"data-bi-id":"".concat(fge,".clear")},buttonSecondary:{onClick:r,text:f.dontClear,"aria-label":f.dontClear,"data-bi-id":"".concat(fge,".cancel")}};return{isOpen:t.showDialog,closeButton:{"data-bi-id":"close-button","aria-label":f.closeAriaLabel},title:c,onDismiss:function(){return E(!0)},stickyHeaderFooter:v,dialogStylesTemp:y,dialogFooterProps:e,operationData:{progressViewOperationData:{operationName:C,componentName:s},errorDialogProps:{title:c,dialogFooterProps:e}}}}(),Bd().createElement(im,{operationData:{operationName:C,componentName:s,defaultState:"finished"},finishedView:Bd().createElement(nEe,{dataType:t.dialogDataType}),updatingView:Bd().createElement(nEe,{dataType:t.dialogDataType}),failedView:Bd().createElement(Bd().Fragment,null,Bd().createElement(nEe,{dataType:t.dialogDataType}),Bd().createElement(DT,{colorOverride:"error"},f.clearFailed))}))},oEe=["timelineItem","deleteByIds"],iEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,oEe),o=sS(),i=nm(),a=tbe(),s=yme().overviewContent.overviewActivities.dialogs,c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v="Dialog.BrowseListItem.SingleRowDelete",y="".concat(mge,".browse"),b=t,_=[{children:b.title}],C={children:Qge(b.timestamp),variant:"bodySecondaryText"},E=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(v,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:u(!1),i({name:"".concat(v,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),i({name:"".concat(v,".").concat(b.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),w=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),x=[{"aria-label":l?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(y,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?w:function(){u(!0),g(!1),h(setTimeout(E,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.BrowseListItem",operationName:"".concat(v,".").concat(b.id),defaultState:"finished"}}}],k=[{"aria-label":s.clearFailed,children:s.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.clearFailed,"data-bi-id":"".concat(y,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],S=function(){return a.canManage?Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:k,actionButtonProps:x}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:_}),Bd().createElement(iH,{textElements:[C]}),S()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(_,[C])}),S()]}))}})),aEe=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n,i="".concat(mge,".browse"),a=yme().overviewContent.overviewActivities.dialogs.collapseExpandAriaLabel;return Bd().createElement(xV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1,expandButtonProps:{"aria-label":a}},o.map((function(e){var t;return Bd().createElement(iEe,{key:e.id,timelineItem:e,deleteByIds:r},null===(t=e.browsedUrls)||void 0===t?void 0:t.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",variant:"Twelve",columns:[Bd().createElement(WO,{children:Bd().createElement(wT,null,Bd().createElement(DT,null,e.title),Bd().createElement(TA,{"aria-label":e.title,"data-bi-id":"".concat(i,".browsed-url"),"data-bi-dnt":"true",href:e.url,target:"_blank"},e.url))})]})})))})))},sEe=["timelineItem","deleteByIds"],cEe="BrowseListItem.SingleRowDelete",lEe="".concat(sge,".browse"),uEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,sEe),o=sS(),i=nm(),a=tbe(),s=yme().overviewContent.overviewActivities.drawers.listItems,c=yme().overviewContent.overviewActivities.drawers.detailsArea,l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y=t,b={children:y.title},_={children:Qd(c.visits,{count:y.count}),variant:"bodySecondaryText"},C={children:"".concat(Kge(y.timestamp,y.aggregationMethod,s)),variant:"bodySecondaryText"},E={children:u?s.clearing:"",variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(cEe,".").concat(y.id),status:"updating"}),e.next=4,n([y.id]);case 4:d(!1),i({name:"".concat(cEe,".").concat(y.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),i({name:"".concat(cEe,".").concat(y.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),k=[{"aria-label":u?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(lEe,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?x:function(){d(!0),v(!1),f(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.BrowseListItem",operationName:"".concat(cEe,".").concat(y.id),defaultState:"finished"}}}],S=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(lEe,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],T=function(){return a.canManage?["xl","xxl","xxxl"].includes(o)?Bd().createElement(RM,{contentType:g?"callout":"text",columnAlign:"end",calloutElements:S,textElements:[E],actionButtonProps:k}):Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:S,actionButtonProps:k}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b]}),Bd().createElement(iH,{textElements:[_]}),Bd().createElement(iH,{textElements:[C]}),T()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b,_,E]}),Bd().createElement(iH,{textElements:[C]}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b,_,C,E]}),T()]}))}})),dEe="LocationListItem.SingleRowDelete",pEe="".concat(sge,".location"),hEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=sS(),o=nm(),i=tbe(),a=yme(),s=a.overviewContent.overviewActivities.drawers.listItems,c=a.overviewContent.overviewActivities.drawers.detailsArea,l=Lfe().bingMapsConfig,u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=_7((0,Fd.useState)(""),2),_=b[0],C=b[1],E=t,w=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!E.location.lat||!E.location.long){e.next=5;break}return e.next=3,tye(l,{lat:E.location.lat,long:E.location.long});case 3:t=e.sent,C(t.formattedAddress);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Wd((function(){w()}));var x=[{children:_},EEe(E,c)],k={children:Kge(E.timestamp,E.aggregationMethod,s),variant:"bodySecondaryText"},S=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o({name:"".concat(dEe,".").concat(E.id),status:"updating"}),e.next=4,n([E.id]);case 4:p(!1),o({name:"".concat(dEe,".").concat(E.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),p(!1),y(!0),o({name:"".concat(dEe,".").concat(E.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),T=(0,Fd.useCallback)((function(){p(!1),clearTimeout(f)}),[f]),I=[{"aria-label":d?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(pEe,d?".cancel":".delete"),iconName:d?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:d?T:function(){p(!0),y(!1),m(setTimeout(S,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.LocationListItem",operationName:"".concat(dEe,".").concat(E.id),defaultState:"finished"}}}],A=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(pEe,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],P=function(){return i.canManage?Bd().createElement(RM,{contentType:v?"callout":"none",columnAlign:"end",calloutElements:A,actionButtonProps:I}):Bd().createElement(qB,null)};switch(r){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,{key:E.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:x}),Bd().createElement(iH,{textElements:[k]}),P()]});case"s":return Bd().createElement(DH,{key:E.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(x,[k])}),P()]})}})),fEe=["timelineItem","deleteByIds"],mEe="SearchListItem.SingleRowDelete",gEe="".concat(sge,".search"),vEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,fEe),o=sS(),i=nm(),a=tbe(),s=yme().overviewContent.overviewActivities.drawers.listItems,c=yme().overviewContent.overviewActivities.drawers.detailsArea,l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(),2),h=p[0],f=p[1],m=_7((0,Fd.useState)(!1),2),g=m[0],v=m[1],y=t,b={children:"".concat(y.terms)},_={children:Qd(c.searches,{count:y.count}),variant:"bodySecondaryText"},C={children:"".concat(Kge(y.timestamp,y.aggregationMethod,s)),variant:"bodySecondaryText"},E={children:u?s.clearing:"",variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(mEe,".").concat(y.id),status:"updating"}),e.next=4,n([y.id]);case 4:d(!1),i({name:"".concat(mEe,".").concat(y.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),d(!1),v(!0),i({name:"".concat(mEe,".").concat(y.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){d(!1),clearTimeout(h)}),[h]),k=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(gEe,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],S=[{"aria-label":u?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(gEe,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?x:function(){d(!0),v(!1),f(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.SearchListItem",operationName:"".concat(mEe,".").concat(y.id),defaultState:"finished"}}}],T=function(){return a.canManage?["xl","xxl","xxxl"].includes(o)?Bd().createElement(RM,{contentType:g?"callout":"text",columnAlign:"end",calloutElements:k,textElements:[E],actionButtonProps:S}):Bd().createElement(RM,{contentType:g?"callout":"none",columnAlign:"end",calloutElements:k,actionButtonProps:S}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b]}),Bd().createElement(iH,{textElements:[_]}),Bd().createElement(iH,{textElements:[C]}),T()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b,_,E]}),Bd().createElement(iH,{textElements:[C]}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:y.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[b,_,C,E]}),T()]}))}})),yEe=["timelineItem","deleteByIds"],bEe="UsageListItem.SingleRowDelete",_Ee="".concat(sge,".usage"),CEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,yEe),o=sS(),i=nm(),a=tbe(),s=yme().overviewContent.overviewActivities.drawers.listItems,c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v=t,y="".concat(Kge(v.timestamp,v.aggregationMethod,s)),b={listItemMediaProps:{image:dye(v),size:"sm"},title:"".concat(v.appName)},_={children:"".concat(v.appPublisher),variant:"bodySecondaryText"},C={children:y,variant:"bodySecondaryText"},E={children:l?s.clearing:"",variant:"bodySecondaryText"},w=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(bEe,".").concat(v.id),status:"updating"}),e.next=4,n([v.id]);case 4:u(!1),i({name:"".concat(bEe,".").concat(v.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),i({name:"".concat(bEe,".").concat(v.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),k=[{"aria-label":s.tryAgain,children:s.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":s.tryAgain,"data-bi-id":"".concat(_Ee,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],S=[{"aria-label":l?s.cancelAriaLabel:s.deleteAriaLabel,"data-bi-id":"".concat(_Ee,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?x:function(){u(!0),g(!1),h(setTimeout(w,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Overview.UsageListItem",operationName:"".concat(bEe,".").concat(v.id),defaultState:"finished"}}}],T=function(){return a.canManage?["xl","xxl","xxxl"].includes(o)?Bd().createElement(RM,{contentType:m?"callout":"text",columnAlign:"end",calloutElements:k,textElements:[E],actionButtonProps:S}):Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:k,actionButtonProps:S}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":return Bd().createElement(DH,Object.assign({},r,{key:v.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,b),Bd().createElement(iH,{textElements:[_]}),Bd().createElement(iH,{textElements:[C],"data-fct-id":y}),T()]}));case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:v.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},b,{subtitles:[_,E]})),Bd().createElement(iH,{textElements:[C],"data-fct-id":y}),T()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:v.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},b,{subtitles:[_,C,E],"data-fct-id":y})),T()]}))}})),EEe=function(e,t){return e.sources&&e.sources.length&&e.sources.filter((function(e){return e.length>0})).join(", ")?{children:"".concat(e.sources.join(", ")," - ").concat(Qd(t.visits,{count:e.count})),variant:"bodySecondaryText"}:{children:Qd(t.visits,{count:e.count}),variant:"bodySecondaryText"}},wEe=["timelineItem","deleteByIds"],xEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,wEe),o=sS(),i=nm(),a=tbe(),s=yme(),c=s.overviewContent.overviewActivities.dialogs,l=s.overviewContent.overviewActivities.drawers.detailsArea,u=Lfe().bingMapsConfig,d=_7((0,Fd.useState)(!1),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(),2),m=f[0],g=f[1],v=_7((0,Fd.useState)(!1),2),y=v[0],b=v[1],_="Dialog.LocationListItem.SingleRowDelete",C="".concat(mge,".location"),E=t,w=_7((0,Fd.useState)(""),2),x=w[0],k=w[1],S=function(){var e=_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!E.location.lat||!E.location.long){e.next=5;break}return e.next=3,tye(u,{lat:E.location.lat,long:E.location.long});case 3:t=e.sent,k(t.formattedAddress);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Wd((function(){S()}));var T=[{children:x},EEe(E,l)],I={children:Qge(E.timestamp),variant:"bodySecondaryText"},A=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(_,".").concat(E.id),status:"updating"}),e.next=4,n([E.id]);case 4:h(!1),i({name:"".concat(_,".").concat(E.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),h(!1),b(!0),i({name:"".concat(_,".").concat(E.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),P=(0,Fd.useCallback)((function(){h(!1),clearTimeout(m)}),[m]),D=[{"aria-label":p?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(C,p?".cancel":".delete"),iconName:p?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:p?P:function(){h(!0),b(!1),g(setTimeout(A,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.LocationListItem",operationName:"".concat(_,".").concat(E.id),defaultState:"finished"}}}],R=[{"aria-label":c.clearFailed,children:c.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.clearFailed,"data-bi-id":"".concat(C,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],M=function(){return a.canManage?Bd().createElement(RM,{contentType:y?"callout":"none",columnAlign:"end",calloutElements:R,actionButtonProps:D}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:E.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:T}),Bd().createElement(iH,{textElements:[I]}),M()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:E.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(T,[I])}),M()]}))}})),kEe=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n;return Bd().createElement(TV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},o.map((function(e){return Bd().createElement(xEe,{key:e.id,timelineItem:e,deleteByIds:r})})))},SEe=["timelineItem","deleteByIds"],TEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,SEe),o=sS(),i=yme().overviewContent.overviewActivities.dialogs,a=nm(),s=tbe(),c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v="Dialog.SearchListItem.SingleRowDelete",y="".concat(mge,".search"),b=t,_=[{children:b.terms}],C={children:Qge(b.timestamp),variant:"bodySecondaryText"},E=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a({name:"".concat(v,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:u(!1),a({name:"".concat(v,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),a({name:"".concat(v,".").concat(b.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),w=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),x=[{"aria-label":l?i.cancelAriaLabel:i.deleteAriaLabel,"data-bi-id":"".concat(y,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?w:function(){u(!0),g(!1),h(setTimeout(E,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.SearchListItem",operationName:"".concat(v,".").concat(b.id),defaultState:"finished"}}}],k=[{"aria-label":i.clearFailed,children:i.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":i.clearFailed,"data-bi-id":"".concat(y,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],S=function(){return s.canManage?Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:k,actionButtonProps:x}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:_}),Bd().createElement(iH,{textElements:[C]}),S()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[].concat(_,[C])}),S()]}))}})),IEe=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n,i="".concat(mge,".search"),a=yme().overviewContent.overviewActivities.dialogs;return Bd().createElement(xV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralHigh",roundedCorners:!1,expandButtonProps:{"aria-label":a.collapseExpandAriaLabel}},o.map((function(e){var t;return Bd().createElement(TEe,{key:e.id,timelineItem:e,deleteByIds:r},null!==(t=e.sites)&&void 0!==t&&t.length?e.sites.map((function(e,t){return Bd().createElement(DH,{key:t,backgroundColor:"neutralMed",columns:[Bd().createElement(WO,{children:Bd().createElement(wT,null,Bd().createElement(DT,null,e.title),Bd().createElement(TA,{"aria-label":e.title,"data-bi-id":"".concat(i,".visited-url"),"data-bi-dnt":"true",href:e.url,target:"_blank"},e.url))})],variant:"Twelve"})})):Bd().createElement(DH,{variant:"Twelve",backgroundColor:"neutralMed",columns:[Bd().createElement(iH,{textElements:[{children:a.noData}]})]}))})))},AEe=["timelineItem","deleteByIds"],PEe=_V((function(e){var t=e.timelineItem,n=e.deleteByIds,r=aG(e,AEe),o=sS(),i=yme().overviewContent.overviewActivities.dialogs,a=nm(),s=tbe(),c=_7((0,Fd.useState)(!1),2),l=c[0],u=c[1],d=_7((0,Fd.useState)(),2),p=d[0],h=d[1],f=_7((0,Fd.useState)(!1),2),m=f[0],g=f[1],v="Dialog.UsageListItem.SingleRowDelete",y="".concat(mge,".usage"),b=t,_={listItemMediaProps:{image:dye(b),size:"sm"},title:"".concat(b.appName)},C={children:b.appPublisher,variant:"bodySecondaryText"},E=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a({name:"".concat(v,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:u(!1),a({name:"".concat(v,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),u(!1),g(!0),a({name:"".concat(v,".").concat(b.id),status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),w=(0,Fd.useCallback)((function(){u(!1),clearTimeout(p)}),[p]),x=[{"aria-label":l?i.cancelAriaLabel:i.deleteAriaLabel,"data-bi-id":"".concat(y,l?".cancel":".delete"),iconName:l?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:l?w:function(){u(!0),g(!1),h(setTimeout(E,oge))},text:"",operationData:{progressViewOperationData:{componentName:"Dialog.UsageListItem",operationName:"".concat(v,".").concat(b.id),defaultState:"finished"}}}],k=[{"aria-label":i.clearFailed,children:i.clearFailed,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":i.clearFailed,"data-bi-id":"".concat(y,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],S=function(){return s.canManage?Bd().createElement(RM,{contentType:m?"callout":"none",columnAlign:"end",calloutElements:k,actionButtonProps:x}):Bd().createElement(qB,null)};switch(o){case"xxxl":case"xxl":case"xl":case"l":case"m":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,_),Bd().createElement(iH,{textElements:[C]}),S()]}));case"s":return Bd().createElement(DH,Object.assign({},r,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[Bd().createElement(cH,Object.assign({},_,{subtitles:[C]})),S()]}))}})),DEe=function(e){var t=e.date,n=e.timelineItemsAtDate,r=e.deleteByIds,o=n;return Bd().createElement(TV,{key:t,header:Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},o.map((function(e){return Bd().createElement(PEe,{key:e.id,timelineItem:e,deleteByIds:r})})))},REe=function(e){var t=e.isHistoryView,n=e.timelineData,r=e.cardType,o=e.loadMore,i=e.deleteByIds,a="ShowAllDialog.loadMore.".concat(r),s="Overview.ShowAllDialogContent.".concat(r);qf(s);var c="privacy.overview.show-all-dialog.".concat(r),l=yme().overviewContent.overviewActivities.drawers.listItems,u=yme().overviewContent.overviewActivities.dialogs,d=yme().overviewContent.overviewActivities.drawers.location.mapLoading,p=nm(),h=_7((0,Fd.useState)(null),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=[];"location"===r&&Object.entries(n.items).forEach((function(e){var t=_7(e,2),n=(t[0],t[1]);b.push({location:{latitude:n.location.lat,longitude:n.location.long}})})),(0,Fd.useEffect)((function(){m(document.getElementById(Gme))}),[]),(0,Fd.useEffect)((function(){t&&f&&(f.scrollTop=0)}),[t,f]);var _=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,y(!0),p({name:a,status:"updating"}),e.next=5,o();case 5:p({name:a,status:"finished"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),p({name:a,status:"update-failed",error:e.t0});case 11:return e.prev=11,y(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[a,p,o]);(0,Fd.useEffect)((function(){var e=!!n.state,t=function(){f&&(f.scrollTop+f.offsetHeight+5>=f.scrollHeight&&!v&&e&&_())};return e?null===f||void 0===f||f.addEventListener("scroll",t):null===f||void 0===f||f.removeEventListener("scroll",t),f&&e&&f.scrollHeight<=f.clientHeight&&!v&&_(),function(){null===f||void 0===f||f.removeEventListener("scroll",t)}}),[f,v,n,_]);var C=Yge(n.items,l),E=Object.entries(C);return Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{horizontal:!1},"location"===r?Bd().createElement(yte,{spinnerAriaLabel:d,mapHeight:260,mapWidth:"100%",progressViewProps:{operationData:{componentName:"bingMapsLocationDialog",operationName:"loadBingMapsLocationDialog"}},mapItems:{pushPins:b}}):null,E.map((function(e){var t=_7(e,2),n=t[0],o=t[1];return function(e,t,n,r){var o={key:t,date:t,timelineItemsAtDate:n,deleteByIds:r};switch(e){case"usage":return Bd().createElement(DEe,o);case"location":return Bd().createElement(kEe,o);case"search":return Bd().createElement(IEe,o);case"browse":return Bd().createElement(aEe,o);default:throw new Error("Dialog list requested for an unsupported data type")}}(r,n,o,i)}))),Bd().createElement(im,{operationData:{operationName:a,componentName:s,defaultState:"finished"},finishedView:Bd().createElement(Bd().Fragment,null),updatingView:Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:5},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":u.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),updateFailedView:Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:"".concat(u.loadMoreError," {tryAgainCta}"),tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":u.loadMoreError,"data-bi-id":"".concat(c,".load-more.try-again"),onClick:_},u.tryAgain)}})),isAlwaysExpanded:!0})}))},MEe=function(e){var t=e.showAllDialogState,n=e.setshowAllDialogState,r=e.onClearAllClick,o=e.historyViewData,i=e.loadMoreHistoryViewData,a=e.deleteHistoryViewDataByIds,s=e.recurringDeletes,c=e.onRecurringDeleteSuccessCallback,l="Overview.ShowAllDialog.".concat(t.dialogDataType);qf(l);var u="ShowAllDialog.SearchFilter.".concat(t.dialogDataType),d="ShowAllDialog.SearchBulkDelete.".concat(t.dialogDataType),p="privacy.overview.show-all-dialog.".concat(t.dialogDataType),h="cardTypeFilter_".concat(t.dialogDataType),f=sS(),m=tbe(),g=Rf(),v=nm(),y=ZU(),b=Lfe(),_=yme().overviewContent.overviewActivities.dialogs,C=_[t.dialogDataType].showAllTitle,E=_[t.dialogDataType].clearAll,w=_.manageScheduledDelete,x=_7((0,Fd.useReducer)(zve,{state:"",items:{}}),2),k=x[0],S=x[1],T=_7((0,Fd.useState)(""),2),I=T[0],A=T[1],P=function(e,t){var n=_7((0,Fd.useState)(e),2),r=n[0],o=n[1];return(0,Fd.useEffect)((function(){var n=setTimeout((function(){o(e)}),t);return function(){clearTimeout(n)}}),[e,t]),r}(I,ige),D=_7((0,Fd.useState)(!0),2),R=D[0],M=D[1],N=_7((0,Fd.useState)(!1),2),L=N[0],O=N[1],F=_7((0,Fd.useState)(!1),2),B=F[0],H=F[1],z=s&&s[h],V=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,H(!0),v({name:u,status:"updating"}),e.next=5,Eve("",{startTime:tge,types:[h],searchTerm:P},m.authToken);case 5:t=e.sent,S({type:Xme,firstLoadResult:t}),M(!0),O(!1),v({name:u,status:"finished"}),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),O(!0),v({name:u,status:"failed",error:e.t0});case 16:return e.prev=16,H(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])}))),[m.authToken,P,v,h,u]),U=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,H(!0),e.next=4,Eve(k.state,{startTime:tge,types:[h],searchTerm:P},m.authToken);case 4:t=e.sent,S({type:Zme,loadMoreResult:t}),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:return e.prev=11,H(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[h,m.authToken,P,k.state]),W=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,H(!0),e.next=4,a(t);case 4:setTimeout((function(){S({type:Jme,idsToDelete:t})})),e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:return e.prev=10,setTimeout((function(){H(!1)})),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(t){return e.apply(this,arguments)}}(),[a]);(0,Fd.useEffect)((function(){if(""===P)return M(!1),O(!1),void S({type:ege});V()}),[P,V]);var j=WCe(f),q=j.stickyHeaderFooter,G=j.dialogStyles,K=Qme.includes(t.dialogDataType),Y=_[t.dialogDataType].searchBoxAriaLabel,Q=!P,X=Object.keys(k.items).length,Z=0===X,J=!!!k.state&&Z,$=!Q&&(B||Z),ee=!Q&&(R&&J||L),te=!Q&&R,ne=Qd(_.clearList,{numOfItems:X}),re=Qd(X<=1?_.clearListAriaLabelSingular:_.clearListAriaLabel,{numOfItems:X}),oe=GC({},Lve,t.dialogDataType),ie=function(){n({showDialog:!1,dialogDataType:null})},ae=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Object.keys(k.items),eh({area:b.areaPrefix,scenario:"FilteredBulkDelete",step:"Deleting"}),v({name:d,status:"updating"}),e.next=6,W(t);case 6:setTimeout((function(){rh({data:oe}),v({name:d,status:"finished"})})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),rh({error:e.t0,data:oe}),v({name:d,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),[W,v,d,k.items]),se=Bd().createElement(IA,{"aria-label":te?re:E,"data-bi-id":"".concat(p,te?".clear-list":".clear-all"),onClick:te?ae:function(){r(t.dialogDataType)},disabled:$},te?ne:E),ce=Bd().createElement(IA,{"aria-label":w,"data-bi-id":"".concat(p,".manage-scheduled-delete"),onClick:function(){ie();var e=s[h];eh({area:b.areaPrefix,scenario:Dge,step:"Index",data:{activityType:t.dialogDataType,previousInterval:s,source:"ShowAllDialog"}}),y.openDialog(Bd().createElement(Mbe,{filterType:h,variant:"manage",interval:e.interval,status:e.status,onSuccessCallback:c}))}},w),le={isOpen:t.showDialog,title:C,closeButton:{"data-bi-id":"close-button","aria-label":_.closeAriaLabel},searchBoxProps:K?{"aria-label":Y,"data-bi-id":"".concat(p,".search-box"),placeholder:_.searchBoxPlaceholder,onChange:function(e,t){A(t||"")}}:void 0,subtitle:m.canManage&&!ee?{textWithTokens:z?"{clearAllCtaWithManageScheduledDelete}":"{clearAllCta}",tokensAndValues:{clearAllCtaWithManageScheduledDelete:Bd().createElement(wT,{horizontal:!0,childrenGap:"16px"},se,ce),clearAllCta:se}}:void 0,headerLeftRightPadding:"16px",onDismiss:ie,stickyHeaderFooter:q,contentId:Gme,dialogStylesTemp:G,minBodyHeight:{height:80,unit:"vh"},bodyStyleTemp:jCe,dialogFooterProps:{dialogType:"secondary",buttonLeft:{onClick:function(){g.push({pathname:rge})},text:_.downloadData,"aria-label":_.downloadData,"data-bi-id":"".concat(p,".download-your-data")},buttonRight:{onClick:ie,text:_.close,"aria-label":_.closeAriaLabel,"data-bi-id":"".concat(p,".cancel")}}},ue=Bd().useMemo((function(){return Bd().createElement(REe,{isHistoryView:Q,cardType:t.dialogDataType,timelineData:o,loadMore:i,deleteByIds:a})}),[Q,t.dialogDataType,o,i,a]),de=Bd().useMemo((function(){return Bd().createElement(REe,{isHistoryView:Q,cardType:t.dialogDataType,timelineData:k,loadMore:U,deleteByIds:W})}),[Q,t.dialogDataType,k,U,W]),pe=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"transparent",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Blocked",size:"16px"}),Bd().createElement(AA,{textWithTokens:_.noResultMessage,tokensAndValues:{searchTerm:Bd().createElement(DT,{weightOverride:"bold"},P)}})),isAlwaysExpanded:!0}),he=Bd().createElement(TV,{isAlwaysExpanded:!0},Array.from({length:11},(function(e,t){return Bd().createElement(DH,{key:t,"aria-label":_.loadMoreAriaLabel,columns:[Bd().createElement(oH,{mediaShimmerSize:16,shimmerLineProps:[{}]}),Bd().createElement(rH,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),fe=Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:_.newSearchErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":_.newSearchTryAgainAriaLabel,"data-bi-id":"".concat(p,".new-search.try-again"),onClick:V},_.tryAgain)}})),isAlwaysExpanded:!0}),me=Bd().createElement(wT,{width:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center"},Bd().createElement(fM,{spinnerSize:3,"aria-label":_.clearingListMessage,label:_.clearingListMessage,labelPosition:"bottom"})),ge=Bd().createElement(Bd().Fragment,null,Bd().createElement(TV,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(AA,{textWithTokens:_.clearListErrorMessage,tokensAndValues:{tryAgainCta:Bd().createElement(IA,{"aria-label":_.clearListTryAgainAriaLabel,"data-bi-id":"".concat(p,".clear-list.try-again"),onClick:ae},_.tryAgain)}})),isAlwaysExpanded:!0}),de),ve=Bd().createElement(im,{operationData:{operationName:u,componentName:l,defaultState:"finished"},updatingView:he,failedView:fe,finishedView:Bd().createElement(im,{operationData:{operationName:d,componentName:l,defaultState:"finished"},updatingView:me,failedView:ge,finishedView:J?pe:de})});return t.dialogDataType?Bd().createElement(KU,le,Q?ue:ve):null};var NEe=function(e){var t=e.cms,n=e.prefix;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},Bd().createElement(WS,{iconName:"Info",size:"16px"}),Bd().createElement(AA,{textWithTokens:t.noData,tokensAndValues:{"learn-more":Bd().createElement(TA,{"aria-label":t.learnMoreAriaLabel,"data-bi-id":"".concat(n,"-noData-learnMore-link"),href:t.learnMoreLink,target:"_blank"},t.learnMoreToken)}}))},LEe=function(e){var t=e.cms,n=e.prefix,r=e.header,o=e.oboContext,i=e.clearAllText,a=e.openConfirmationDialog,s=e.dataType;return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(DT,{weightOverride:"semi-bold"},r)),Bd().createElement(_T,{slots:8},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"},Bd().createElement(TA,{"aria-label":t.downloadData,"data-bi-id":"".concat(n,".download-your-data"),to:{pathname:"/download-data"}},t.downloadData),o.canManage?Bd().createElement(IA,{"aria-label":i,"data-bi-id":"".concat(n,".clear-all"),onClick:function(){return a(s)}},i):null)))},OEe=function(e){var t=e.cms,n=e.prefix,r=e.isRetrying,o=e.onRetryClick;return Bd().createElement(wT,{horizontal:!0,childrenGap:"12px"},Bd().createElement(WS,{iconName:"Info",size:"16px",color:"errorIcon"}),Bd().createElement(DT,null,t.retryHeader),Bd().createElement(IA,{key:"".concat(n,".try-again"),"aria-label":t.retryHeader,"data-bi-id":"".concat(n,".try-again"),onClick:o,disabled:r},t.tryAgain),r?Bd().createElement(fM,{"aria-label":t.retryInProgressAriaLabel}):null)},FEe=1e9,BEe=1e6;function HEe(e,t){var n,r=tbe(),o=yme().overviewContent.overviewActivities,i={},a="privacy.overview.".concat(e);switch(e){case"location":n=o.drawers.location.highlightArea,i["location-windowsLink"]=Bd().createElement(TA,{"aria-label":n.tokens.windowsToken,"data-bi-id":"".concat(a,".windows-link"),href:n.links.windowsLink,target:"_blank"},n.tokens.windowsToken);break;case"browse":n=o.drawers.browse.highlightArea,i["browse-historyLink"]=Bd().createElement(TA,{"aria-label":n.tokens.historyToken,"data-bi-id":"".concat(a,".history-link"),href:n.links.historyLink,target:"_blank"},n.tokens.historyToken);break;case"search":n=o.drawers.search.highlightArea,i["search-viewChangeLink"]=Bd().createElement(TA,{"aria-label":n.tokens.viewChangeToken,"data-bi-id":"".concat(a,".view-change-link"),href:n.links.viewChangeLink,target:"_blank"},n.tokens.viewChangeToken);break;case"usage":n=o.drawers.usage.highlightArea,i["usage-diagnosticLink"]=Bd().createElement(TA,{"aria-label":n.tokens.diagnosticToken,"data-bi-id":"".concat(a,".diagnostic-link"),href:n.links.diagnosticLink,target:"_blank"},n.tokens.diagnosticToken);break;case"performance":n=o.drawers.performance.highlightArea,i["performance-manageDataLink"]=Bd().createElement(TA,{"aria-label":n.tokens.manageDataToken,"data-bi-id":"".concat(a,".manage-data-link"),href:n.links.manageDataLink,target:"_blank"},n.tokens.manageDataToken);break;default:throw new Error("HighlightArea requested for unsupported data type")}var s,c=Object.values(n.bodyText),l=c.map((function(t,n){return 0===n?{textWithTokens:t,tokensAndValues:i}:"location"===e&&n===c.length-1?{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,{padding:"8px 0px 0px 0px"},Bd().createElement(AA,{textWithTokens:t,tokensAndValues:i}))}}:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement("ul",{style:{padding:"8px 16px 0px"}},Bd().createElement("li",null,Bd().createElement(AA,{textWithTokens:t,tokensAndValues:i})))}}})),u=function(e){return{kind:"noHrefLink","aria-label":n.tokens.learnToken,"data-bi-id":"".concat(a,"-learn-link"),children:n.tokens.learnToken,underline:!0,onClick:function(){!function(e){window.O365Shell.NFD.OpenHelp(e)}(e)}}};switch(e){case"location":s=n.links.learnLink?[{actionProps:u("AMC_PrivacyDashboard_Location")}]:[];break;case"search":s=n.links.learnLink?[{actionProps:u("AMC_PrivacyDashboard_SearchHistory")}]:[];break;case"performance":s=r.canManage?[{actionProps:{kind:"button",type:"primary","aria-label":n.tokens.buttonToken,"data-bi-id":"".concat(a,".clear-all"),onClick:function(){return t("performance")},text:n.tokens.buttonToken}}]:[];break;case"browse":case"usage":s=n.links.learnLink?[{actionProps:{kind:"hyperlink","aria-label":n.tokens.learnToken,"data-bi-id":"".concat(a,"-learn-link"),href:n.links.learnLink,children:n.tokens.learnToken,target:"_blank",underline:!0}}]:[];break;default:throw new Error("Help link requested for unsupported data type")}return{height:"small",backgroundType:"card",bodyText:l,imageProps:{alt:n.image.alt,src:n.image.src},layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px",ctaProps:s}}var zEe=function(e){var t=e.dataType,n="overview.activityDrawers.".concat(t);qf(n);var r="ActivityDrawers.getTimelineHistory.".concat(t),o="cardTypeFilter_".concat(t),i=Lfe(),a=nm(),s=ZU(),c=tbe(),l=yme().overviewContent,u=l.overviewActivities.drawers,d=l.recurringDelete,p=(0,Fd.useContext)(eEe).setShowSatisfactionSurvey,h=_7((0,Fd.useReducer)(zve,{state:"",items:{}}),2),f=h[0],m=h[1],g=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),v=g[0],y=g[1],b=_7((0,Fd.useState)({showDialog:!1,dialogDataType:null}),2),_=b[0],C=b[1],E=_7((0,Fd.useState)(!1),2),w=E[0],x=E[1],k=_7((0,Fd.useState)(!1),2),S=k[0],T=k[1],I=_7((0,Fd.useState)(-1),2),A=I[0],P=I[1],D=_7((0,Fd.useState)({}),2),R=D[0],M=D[1],N=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=-1,e.prev=1,e.next=4,wve(o,c.authToken);case 4:t=e.sent,P(t),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:if(n={state:"",items:[]},0===t){e.next=15;break}return e.next=14,Eve("",{startTime:tge,types:[o],searchTerm:""},c.authToken);case 14:n=e.sent;case 15:m({type:Xme,firstLoadResult:n});case 16:case"end":return e.stop()}}),e,null,[[1,8]])}))),[c.authToken,o]),L=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Eve(f.state,{startTime:tge,types:[o],searchTerm:""},c.authToken);case 2:t=e.sent,m({type:Zme,loadMoreResult:t});case 4:case"end":return e.stop()}}),e)}))),[o,f.state,c.authToken]),O=(0,Fd.useCallback)(_me(cfe().mark((function e(){var n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("performance"===t){e.next=10;break}return e.prev=1,e.next=4,wve(o,c.authToken);case 4:n=e.sent,P(n),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}}),e,null,[[1,8]])}))),[t,o,c.authToken]),F=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sve(c.authToken);case 3:t=e.sent,M(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),[c.authToken]),B=(0,Fd.useCallback)(function(){var e=_me(cfe().mark((function e(t){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.next=3,kve(t,o,c.authToken);case 3:return e.next=5,O();case 5:setTimeout((function(){m({type:Jme,idsToDelete:t})}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,c.authToken,O,p]),H=(0,Fd.useCallback)(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.next=3,xve([o],c.authToken);case 3:return e.next=5,O();case 5:m({type:ege});case 6:case"end":return e.stop()}}),e)}))),[o,c.authToken,O,p]),z=function(e){Wp(Ige),Nve(),C({showDialog:!0,dialogDataType:e})},V=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,x(!0),a({name:r,status:"updating"}),e.next=5,N();case 5:a({name:r,status:"finished"}),T(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),a({name:r,status:"failed",error:e.t0}),T(!0);case 13:return e.prev=13,x(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,9,13,16]])})));return function(){return e.apply(this,arguments)}}(),U=function(e,t){if(!e&&!t)throw Error("OverviewDrawer: Must provide recurringDelete data if recurringDelete is not turned off");M({});var n=R;e?delete n[o]:n[t.activityType]=t,M(n)};(0,Fd.useEffect)((function(){var e=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"performance"!==t){e.next=4;break}return a({name:r,status:"finished"}),e.abrupt("return");case 4:return a({name:r,status:"first-load"}),e.next=7,Promise.all([N(),F()]);case 7:a({name:r,status:"finished"}),T(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),a({name:r,status:"failed",error:e.t0}),T(!0);case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[c.authToken,t,a,r,N,F]);var W=function(e,t,n){var r,o=Lfe(),i=["s","m"].includes(sS()),a=yme().overviewContent.overviewActivities,s=Lfe().areaPrefix,c="".concat(s,".overview.drawers.").concat(e,".toggle");switch(e){case"location":r=a.drawers.location.drawerArea;break;case"browse":r=a.drawers.browse.drawerArea;break;case"search":r=a.drawers.search.drawerArea;break;case"usage":r=a.drawers.usage.drawerArea;break;case"performance":r=a.drawers.performance.drawerArea;break;default:throw new Error("Drawer requested for unsupported data type")}var l=function(){return n>=FEe?Qd(a.drawers.detailsArea.dataCountOverBillion,Math.floor(n/FEe)):n>=BEe?Qd(a.drawers.detailsArea.dataCountOverMillion,Math.floor(n/BEe)):n.toLocaleString(o.language)},u=-1!==n,d=Bd().createElement(DT,{variant:"headerText"},r.header);u&&i&&(d=Bd().createElement(AA,{textWithTokens:"{0} {1}",tokensAndValues:{0:Bd().createElement(DT,{variant:"headerText"},r.header),1:Bd().createElement(DT,{variant:"bodyPrimaryText"},"(",0===n?a.drawers.detailsArea.dataCountZero:l(),")")}}));var p=[{column:Bd().createElement(iM,{media:{size:"sm",image:{imageType:"image",src:r.icon.src},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:d},subtitleTextProps:{children:r.subtitle}}),slots:u&&!i?9:12}];if(u&&!i){var h=l(),f=0===n?a.drawers.detailsArea.dataCountZero:Qd(r.dataCount,h);p.push({column:Bd().createElement(tM,{statusAlignment:"end",textWeightOverride:"semi-bold"},f),slots:3})}return{onClickToOpen:function(){return zge(!0,c,s)},onClickToClose:function(){return zge(!1,c,s)},defaultExpanded:t,drawerHeader:Bd().createElement(xM,{totalSlots:12,chevronPosition:"end",columns:p})}}(t,w,A),j=HEe(t,z),q=Bd().createElement(qz,Object.assign({key:t},j)),G=function(e,t,n,r,o,i,a){var s,c,l,u=tbe(),d=yme().overviewContent.overviewActivities.drawers.detailsArea,p="privacy.overview.".concat(t);switch(t){case"browse":s=d.showMore.browseAriaLabel,c=d.clearAll.browseText,l=d.historyHeader;break;case"location":s=d.showMore.locationAriaLabel,c=d.clearAll.locationText,l=d.header;break;case"search":s=d.showMore.searchAriaLabel,c=d.clearAll.searchText,l=d.historyHeader;break;case"usage":s=d.showMore.usageAriaLabel,c=d.clearAll.usageText,l=d.header;break;case"performance":s="",c="",l=""}var h,f=Object.values(e);h=i?Bd().createElement(OEe,{cms:d,prefix:p,isRetrying:a,onRetryClick:o}):0===f.length?Bd().createElement(NEe,{cms:d,prefix:p}):Bd().createElement(LEe,{cms:d,prefix:p,header:l,oboContext:u,clearAllText:c,openConfirmationDialog:r,dataType:t});var m="".concat(p,".show-more");return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:h,footer:f.length>=1?{links:[{onClick:function(){return n(t)},"data-bi-id":m,"aria-label":s,id:m,children:d.showMore.text}],shadow:!1}:void 0}}(f.items,t,(function(e){jp(),y({showDialog:!0,dialogDataType:e})}),z,V,S,w),K=Object.values(f.items).slice(0,5),Y=Bd().createElement(TV,Object.assign({key:t},G),K.map((function(e){return function(e,t,n){switch(e){case"usage":return Bd().createElement(CEe,{key:t.id,timelineItem:t,deleteByIds:n});case"location":return Bd().createElement(hEe,{key:t.id,timelineItem:t,deleteByIds:n});case"search":return Bd().createElement(vEe,{key:t.id,timelineItem:t,deleteByIds:n});case"browse":return Bd().createElement(uEe,{key:t.id,timelineItem:t,deleteByIds:n});default:throw new Error("List item requested for an unsupported data type")}}(t,e,B)}))),Q=[];switch(t){case"performance":Q=[];break;case"location":var X=K.map((function(e){return{location:{latitude:e.location.lat,longitude:e.location.long}}}));Q=Q.concat(Bd().createElement(Yj,{key:"location-activity-details",backgroundColor:"neutralMed",childrenGap:0,firstSegment:Bd().createElement(yte,{spinnerAriaLabel:u.location.mapLoading,mapHeight:"100%",mapWidth:"100%",progressViewProps:{operationData:{componentName:"bingMapsLocationDrawer",operationName:"loadBingMapsLocationDrawer"}},mapItems:{pushPins:X}}),secondSegment:Y,variant:"SixSix",minHeight:350}));break;default:Q=Q.concat(Y)}if(R&&R[o]){var Z=R[o],J="info",$="";switch(Z.status){case"active":$=Qd(d.status.active,[Rbe[Z.interval],qA(Z.nextDelete)]);break;case"paused":J="warning",$=Z.lastSucceededDelete?Qd(d.status.paused,qA(Z.lastSucceededDelete)):d.status.pausedWithNoLastSucceededDelete;break;case"failed":J="warning",$=Qd(d.status.failed,qA(Z.nextDelete))}Q=Q.concat(Bd().createElement(gj,{key:"manage-recurring-delete-".concat(t),messageBarType:J,messageContent:$,actionProps:{actionType:"noHrefLink",children:d.status.manageActionText,"data-bi-id":"manage-recurring-delete-".concat(t),"aria-label":d.status.manageLinkAriaLabel,onClick:function(){return e=Z.interval,n=Z.status,eh({area:i.areaPrefix,scenario:Dge,step:"Index",data:{activityType:t,previousInterval:e,source:"OverviewDrawer"}}),void s.openDialog(Bd().createElement(Mbe,{filterType:o,variant:"manage",interval:e,status:n,onSuccessCallback:U,authToken:c.authToken}));var e,n}}}))}return Bd().createElement(hx,{operationData:{componentName:n,operationName:r},firstLoadView:Bd().createElement(JU,{anchor:"right"}),finishedView:Bd().createElement(wT,{id:"overview-drawer-".concat(t)},Bd().createElement(oq,{key:t,drawerAreaProps:W,highlightArea:q,detailsArea:Q}),v.showDialog?Bd().createElement(MEe,{showAllDialogState:v,setshowAllDialogState:y,onClearAllClick:function(e){Wp(Ige),Nve(),C({showDialog:!0,dialogDataType:e}),y(YC(YC({},v),{},{showDialog:!1}))},historyViewData:f,loadMoreHistoryViewData:L,deleteHistoryViewDataByIds:B,recurringDeletes:R,onRecurringDeleteSuccessCallback:U}):null,_.showDialog?Bd().createElement(rEe,{confirmationDialogState:_,setConfirmationDialogState:C,onClearAllCancel:function(){Wp(Tp);var e=GC({},Lve,_.dialogDataType);v.dialogDataType&&y(YC(YC({},v),{},{showDialog:!0})),C({showDialog:!1,dialogDataType:null}),nh({data:e})},deleteAll:H,recurringDeletes:R,onRecurringDeleteSuccessCallback:U}):null),updatingView:Bd().createElement(oq,{key:t,drawerAreaProps:W,highlightArea:q,detailsArea:Q}),failedView:Bd().createElement(oq,{key:t,drawerAreaProps:W,highlightArea:q,detailsArea:Q})})},VEe=function(){return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(zEe,{dataType:"location",key:"location"}),Wm("PrivWebSearch")?Bd().createElement(NCe,{dataType:"browse"}):Bd().createElement(Bd().Fragment,null,Bd().createElement(zEe,{dataType:"browse",key:"browse"}),Bd().createElement(zEe,{dataType:"search",key:"search"})),Wm("PrivAppsServices")?Bd().createElement(NCe,{dataType:"usage"}):Bd().createElement(Bd().Fragment,null,Bd().createElement(zEe,{dataType:"usage",key:"usage"}),Bd().createElement(zEe,{dataType:"performance",key:"performance"})),Wm("Priv3PAppAccess")?Bd().createElement($Ce,null):null)},UEe=function(){var e,t=yme().overviewContent.activitySectionHeader,n=tbe(),r=Lfe().selfAndKids;e=n.canManage?r?t.adultWithChild:t.adultNoChild:t.cannotManage;var o=t.contactText,i={viewDataLink:Bd().createElement(TA,{"aria-label":t.viewYourDataToken,"data-bi-id":"".concat(sge,".view-your-data-link"),href:t.viewYourDataLink,target:"_blank"},t.viewYourDataToken),contactLink:Bd().createElement(TA,{"aria-label":t.contactToken,"data-bi-id":"".concat(sge,".contact-link"),href:t.contactLink,target:"_blank"},t.contactToken)},a=r?Qd(t.familyMemberActivities,[r.self.displayName]):"",s=r?[{key:"0",id:"self",text:a,ariaLabel:a}].concat(i7(r.kids.map((function(e,n){var r=Qd(t.familyMemberActivities,[e.displayName]);return{id:"kid".concat(n),key:"".concat(n+1),text:r,ariaLabel:r}})))):[],c=Rf(),l=new URLSearchParams(Mf().search.toLowerCase()),u=_7((0,Fd.useState)(0),2),d=u[0],p=u[1];return(0,Fd.useEffect)((function(){var e=l.get("idx")||"",t=Number(e),n=s[t]?t:0;p(n)}),[]),Bd().createElement(Bd().Fragment,null,Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:8},Bd().createElement(aT,{tag:"h2"},t.drawerIntroHeader)),Bd().createElement(_T,{slots:4,textAlignment:"right"},r?Bd().createElement(ZW,{alignTitle:"right",dropdownStyle:"borderless",pageArea:"privacy","data-bi-prefix":"".concat(sge,".person-picker"),"aria-label":t.dropdownAriaLabel,value:"".concat(d),options:s,onChange:function(e,t,n,r){l.set("idx","".concat(r)),c.replace({search:l.toString()}),p(r||0),Rve()}}):null)),Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:9},Bd().createElement(AA,{textWithTokens:e,tokensAndValues:i}))),o?Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:9},Bd().createElement(AA,{textWithTokens:o,tokensAndValues:i}))):null)},WEe=function(){var e=yme(),t=tbe(),n=e.overviewContent.overviewIntro;return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:8},Bd().createElement(aT,{tag:"h2"},n.title))),Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:9},Bd().createElement(DT,null,t.canManage?n.description:n.descriptionUnderSa))),Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:9},Bd().createElement(TA,{"data-bi-id":"".concat(cge,".cta"),"aria-label":n.link.ariaLabel||n.link.text,underline:!0,href:n.link.url,target:W_e(n.link.target)},n.link.text))))};var jEe,qEe,GEe={serviceAlerts:[]},KEe=(Bd().createContext({pageArea:"",initialAlerts:GEe,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,GEe]}))}))},fixPiAction:function(){},payNowAction:function(){},alertsCallback:void 0}),"/api/promotion-campaigns"),YEe=("".concat(KEe,"/campaign-data"),"".concat(KEe,"/campaign-data-jadis")),QEe=("".concat(KEe,"/campaigns-data"),"".concat(KEe,"/campaign-batch-data"),[2e3,2040]),XEe={},ZEe=function(t){return tg(XEe,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,Am(YEe,{operation:"GLOBAL.CAMPAIGNS.GETCAMPAIGNDATAFORJADIS"},{params:{surfaceName:t}})];case 1:return n=e.sent(),[2,JEe(JSON.parse(n.data),t)]}}))}))}))},JEe=function(e,t){if(e&&"error"in e){var n=e.error;if(QEe.includes(n.code))return{surfaceName:t};throw Error("Iris error code ".concat(n.code,": ").concat(n.msg))}return{model:e,surfaceName:t}},$Ee={},ewe="status",twe="launchMethod",nwe="messageBarCtaClick",rwe="Common.ACWMessageBar",owe=function(e,t,n){var r="common.acwmessagebar";switch(t){case"Email":return"".concat(r,".").concat(e,".email.").concat(n);case"SMS":return"".concat(r,".").concat(e,".phone.").concat(n);case"MsftAuthApp":return"".concat(r,".").concat(e,".authapp.").concat(n)}},iwe=function(t){var n=t.pageArea,r=t.returnUrl,o=t.emailProofAlertStrings,i=t.phoneProofAlertStrings,a=t.getAccountState,s=t.impressionBeaconUrl,c=t.clickBeaconUrl,l=t.clientId,u=t.ocid,d=t.uaid,p=t.cv,h=t.mkt,f=t.origin,m=t.id,g=t.scenarioTracking,v=t.variant,y=t.acwMessageBarHiddenCallback,b=(0,Fd.useState)(),_=b[0],C=b[1],E=(0,Fd.useState)(!1),w=E[0],x=E[1],k=nm(),S=function(e,t){return"".concat(rwe,".").concat(e,".").concat(t)}(n,"GetAccountState"),T="s"===sS(),I=Wm("ACWCooldownOnDismiss"),A=function(e,t,n,r,o){void 0===o&&(o=.5);var i=Bd().useRef(null),a=Oq(r||i,o),s=!r||a,c=(0,Fd.useState)(!1),l=c[0],u=c[1];return[s?Bd().createElement(Lj,{url:e}):Bd().createElement(Bd().Fragment,null),l?Bd().createElement(Lj,{url:t.replace(/{ACTION}/g,"click")}):Bd().createElement(Bd().Fragment,null),function(e){n&&n(e),u(!0)}]}(s,c),P=A[0],D=A[1],R=A[2],M=(0,Fd.useState)(!1),N=M[0],L=M[1],O=function(e,t){var o=e.actionUrl;if("home"===n&&Wm("ACWExpHomeStart")){var i=new RegExp("add","i");o=o.replace(i,"start")}var a=new URL(r);a.searchParams.append(twe,nwe);var s=function(e,t,n,r,o,i,a,s,c,l){var u=new URL(e);return u.searchParams.append("uaid",n),u.searchParams.append("cv",r),u.searchParams.append("client_id",i),u.searchParams.append("client_flight",o),u.searchParams.append(twe,l),t&&(u.searchParams.append("mkt",a),u.searchParams.append("origin",s)),u.searchParams.append("ru",c),u.href}(o,"walk"===v,d,p,u,l,h,f,a.toString(),nwe);return{messageBarType:"warning",messageContent:e.title,actionProps:{actionType:"hyperlink",children:e.landingPageButton,"aria-label":e.landingPageButton,"data-bi-id":owe(n,t,"cta"),href:s,onClick:function(e){R(e),"Email"===t?null===g||void 0===g||g.scenarioReportEmailAlertCtaClicked():null===g||void 0===g||g.scenarioReportPhoneAlertCtaClicked()}},dismissButtonProps:{pageArea:n,onDismiss:function(){x(!1),I&&L(!0)},"data-bi-id":owe(n,t,"close"),"aria-label":e.buttonDismissText},messageBarVariant:"floating",id:m}};return Wd((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,s,c,l,u,d,p,h,f,m;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),k({name:S,status:"first-load"}),[4,a()];case 1:if(t=e.sent(),1===(n=t.missingProofs).length)for(r=0,s=n;r<s.length;r++){if("Email"===(c=s[r])&&o){C(O(o,c)),x(!0),I||L(!0),null===g||void 0===g||g.scenarioReportEmailAlertShown();break}if("SMS"===c&&i){C(O(i,c)),x(!0),I||L(!0),null===g||void 0===g||g.scenarioReportPhoneAlertShown();break}null===y||void 0===y||y()}else null===y||void 0===y||y();return k({name:S,status:"finished"}),[3,3];case 2:return l=e.sent(),u=l,null===y||void 0===y||y(),Wm("ACWGSAErrorHandling")?(d=null===(f=null===(h=null===(p=u.response)||void 0===p?void 0:p.data)||void 0===h?void 0:h.data)||void 0===f?void 0:f.signInLink,401===(null===(m=u.response)||void 0===m?void 0:m.status)?(k({name:S,status:"finished",customData:u}),d&&(window.location.href=d)):k({name:S,status:"failed",error:u})):k({name:S,status:"failed",error:u}),[3,3];case 3:return[2]}}))}))})),Bd().createElement(im,{operationData:{componentName:rwe,operationName:S},firstLoadView:Bd().createElement(Bd().Fragment,null),finishedView:Bd().createElement(Bd().Fragment,null,w?Bd().createElement(gj,(0,e.__assign)({},_,{isMultiline:T})):null,N?P:null,D),failedView:Bd().createElement(Bd().Fragment,null)})},awe=function(t){var n=t.gsaServiceConfig,r=(0,e.__rest)(t,["gsaServiceConfig"]),o=(0,Fd.useState)([wte(n.scopeResourceUri)])[0],i=(0,Fd.useState)(!0),a=i[0],s=i[1],c=function(t){var n=t.scopes,r=t.fallback,o=void 0===r?"redirect":r,i=t.shouldLoad,a=void 0!==i&&i,s=t.forceRefresh,c=void 0!==s&&s,l=kfe(),u=bfe(),d=u.instance,p=u.inProgress,h=(0,Fd.useState)(Rfe),f=h[0],m=h[1],g=(0,Fd.useState)(""),v=g[0],y=g[1],b=(0,Fd.useState)(),_=b[0],C=b[1],E=(0,Fd.useCallback)((function(e){m(Pfe),C(e),y("")}),[]),w=(0,Fd.useCallback)((function(t,n){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,d.loginRedirect({scopes:n.slice(),redirectUri:"".concat(t).concat("-redirect")})];case 1:return e.sent(),[2]}}))}))}),[d]),x=(0,Fd.useCallback)((function(t,n){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,d.loginPopup({scopes:n.slice(),redirectUri:"".concat(t).concat("-popup")})];case 1:return e.sent(),[2]}}))}))}),[d]),k=(0,Fd.useCallback)((function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var n,r,i,a;return(0,e.__generator)(this,(function(e){switch(e.label){case 0:if(e.trys.push([0,7,,8]),p===_ne.Login||p===_ne.HandleRedirect)return[3,6];switch(n=d.getConfiguration(),r=n.auth,i=r.redirectUri,o){case Efe.None:return[3,1];case Efe.Popup:return[3,2];case Efe.Redirect:return[3,4]}return[3,6];case 1:return[3,6];case 2:return[4,Afe(x(i,t))];case 3:case 5:return e.sent(),[3,6];case 4:return[4,Afe(w(i,t))];case 6:return[3,8];case 7:return a=e.sent(),E(a),[3,8];case 8:return[2]}}))}))}),[o,d,x,w,E,p]),S=(0,Fd.useCallback)((function(t,n){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:switch(t.errorCode){case"interaction_required":case"invalid_grant":case"no_tokens_found":case"login_required":case"monitor_window_timeout":return[3,1]}return[3,3];case 1:return[4,k(n)];case 2:return e.sent(),[3,4];case 3:throw t;case 4:return[2]}}))}))}),[k]),T=(0,Fd.useCallback)((function(t,r){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var o,i,a;return(0,e.__generator)(this,(function(s){switch(s.label){case 0:if(o=(0,e.__spreadArray)([],t||n,!0),!l)return[3,6];i=null!==r&&void 0!==r?r:c,s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(u=d.acquireTokenSilent({scopes:o,account:l,forceRefresh:i,cacheLookupPolicy:Mne.Default}),Mm(u,Ife))];case 2:return[2,s.sent().accessToken];case 3:return a=s.sent(),[4,S(a,o)];case 4:return s.sent(),[2];case 5:return[3,8];case 6:return[4,k(o)];case 7:return s.sent(),[2];case 8:return[2]}var u}))}))}),[l,n,c,S,d,k]),I=(0,Fd.useCallback)((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,T()];case 1:return t=e.sent(),m(Dfe),y(null!==t&&void 0!==t?t:""),C(void 0),[3,3];case 2:return n=e.sent(),E(n),[3,3];case 3:return[2]}}))}))}),[T,E]);return(0,Fd.useEffect)((function(){(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return a?[4,I()]:[2];case 1:return e.sent(),[2]}}))}))}),[a,I]),{getToken:T,isAuthenticated:null!==l,accessToken:v,accessTokenAcquisitionStatus:f,error:_}}({scopes:o,fallback:Efe.None,shouldLoad:a}),l=c.accessToken,u=c.accessTokenAcquisitionStatus,d=(0,Fd.useState)(Bd().createElement(Bd().Fragment,null)),p=d[0],h=d[1];return(0,Fd.useEffect)((function(){var t,o;"success"===u&&l?h(Bd().createElement(iwe,(0,e.__assign)({},r,{getAccountState:(o=l,function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,i;return(0,e.__generator)(this,(function(a){switch(a.label){case 0:return[4,(s={accessToken:o,gsaServiceConfig:n,reportingData:{uaid:r.uaid}},(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(t){return[2,tg($Ee,"getAccountState",(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,Am("".concat(s.gsaServiceConfig.endpoint).concat("/v1/accountstate"),{operation:"GLOBAL.ACCOUNTSTATE.GET.ACCOUNTSTATE",customData:s.reportingData},{responseType:"json",headers:{Authorization:"Bearer ".concat(s.accessToken)}})];case 1:return[2,e.sent().data]}}))}))}))]}))})))];case 1:return t=a.sent(),i=function(e){var t=[];if(e.goodStateRecommendations.recoverable){var n=e.goodStateRecommendations.recoverable.proofAccruals;n&&(t=n.flatMap((function(e){return e.proofOptions})).sort((function(e,t){return e.priority-t.priority})).map((function(e){return e.proof})))}return t}(t),[2,{missingProofs:i}]}var s}))}))})}))):"failed"===u&&(null===(t=r.acwMessageBarHiddenCallback)||void 0===t||t.call(r),s(!1))}),[u,l]),p},swe={},cwe=function(t){var n=(0,e.__rest)(t,[]);return Bd().createElement(iwe,(0,e.__assign)({},n,{getAccountState:function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,r;return(0,e.__generator)(this,(function(o){switch(o.label){case 0:return[4,(i={reportingData:{uaid:n.uaid}},(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(t){return[2,tg(swe,"getAccountState",(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,Am("".concat("/security/api/account-state","/account-state"),{operation:"GLOBAL.SECURITY.ACCOUNTSTATE.GETACCOUNTSTATE",customData:i.reportingData})];case 1:return[2,e.sent().data]}}))}))}))]}))})))];case 1:return t=o.sent(),r=function(e){var t=[];if(e.goodStateRecommendations.recoverable){var n=e.goodStateRecommendations.recoverable.proofAccruals;n&&(t=n.flatMap((function(e){return e.proofOptions})).sort((function(e,t){return e.priority-t.priority})).map((function(e){return e.proof})))}return t}(t),[2,{missingProofs:r}]}var i}))}))}}))},lwe="MSAAPI",uwe=[Cme.Unauthorized],dwe=kme(uwe),pwe=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,Sme("".concat(Nme,"/msa/authenticator-enabled-status"),"".concat(Ome,".").concat(lwe,".GETAUTHENTICATORENABLEDSTATUS"))];case 1:return[2,e.sent()]}}))}))},hwe=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,Sme("".concat(Nme,"/msa/user-proofs"),"".concat(Ome,".").concat(lwe,".GETUSERPROOFS"),{},{overrideRequestQosData:dwe})];case 1:return[2,e.sent()]}}))}))},fwe=function(t){var n=(0,e.__rest)(t,[]);return Bd().createElement(iwe,(0,e.__assign)({},n,{getAccountState: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[4,hwe()];case 1:return t=e.sent(),n=function(e){var t=[];return 1===e.emails.length&&0===e.phoneNumbers.length&&(t.push("Email"),t.push("SMS")),0===e.emails.length&&e.phoneNumbers.length>=1&&t.push("Email"),t}(t),[2,{missingProofs:n}]}}))}))}}))},mwe=function(e){if(!e)return"";var t=e.charAt(0).toUpperCase(),n=e.slice(1).toLowerCase();return"".concat(t).concat(n)},gwe=function(e){var t=mwe(e);return"AMC_ACW_".concat(t)},vwe="EmailAlertCtaClicked",ywe="PhoneAlertCtaClicked",bwe="ALCRedirect",_we="ALCRedirectResume",Cwe="ACWRedirect",Ewe="ACWRedirectResume",wwe=function(e,t){bh("N/A","ACWMessageBar","common.acwmessagebar.".concat(e,".").concat(t))},xwe=function(t,n){return{scenarioReportEmailAlertShown:function(){wwe(t,"email")},scenarioReportPhoneAlertShown:function(){wwe(t,"phone")},scenarioReportEmailAlertCtaClicked:function(){var e;eh({area:t,scenario:gwe(t),step:vwe}),oh({step:"crawl"===n?bwe:Cwe,data:(e={},e.launchMethod=vwe,e)})},scenarioReportPhoneAlertCtaClicked:function(){var e;eh({area:t,scenario:gwe(t),step:ywe}),oh({step:"crawl"===n?bwe:Cwe,data:(e={},e.launchMethod=ywe,e)})},scenarioReportCancel:function(t){nh({data:(0,e.__assign)({},t)})},scenarioReportUserBack:function(r,o){var i="crawl"===n?_we:Ewe,a="crawl"===n?bwe:Cwe;!function(t){var n;ah(t),Up(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),$p)})}({area:t,scenario:gwe(t),fromStep:a,step:"".concat(i,".").concat(r),data:(0,e.__assign)({},o)})},scenarioReportSuccessfulEnd:function(t){rh({data:(0,e.__assign)({},t)})}}},kwe="Common.AMCACWMessageBar",Swe=function(e,t){var n;return e.has(t)&&(n=e.get(t)),n},Twe=function(t){var n,r=t.pageArea,o=t.returnUrl,i=t.accountStateSource,a=t.clientId,s=t.ocid,c=t.language,l=t.content,u=t.variant,d=t.acwMessageBarHiddenCallback,p=(0,Fd.useState)(),h=p[0],f=p[1],m=(0,Fd.useState)(!1),g=m[0],v=m[1],y=nm(),b=function(e,t){return"".concat(kwe,".").concat(e,".").concat(t)}(r,"GetCampaignForJadis"),_=xwe(r,u),C=gbe(),E=Mf(),w=new URLSearchParams(E.search),x=Swe(w,ewe),k=Swe(w,"res"),S=Swe(w,twe),T=((n={}).res=null!==k&&void 0!==k?k:"undefined",n.status=null!==x&&void 0!==x?x:"undefined",n.launchMethod=null!==S&&void 0!==S?S:"undefined",n);Wd((function(){x&&k&&(_.scenarioReportUserBack(k,T),"completed"===x?(_.scenarioReportSuccessfulEnd(T),Wm("ACWShowSuccessSurvey")&&C("acw-success-survey",c)):"cancelled"!==x&&"canceled"!==x||(_.scenarioReportCancel(T),Wm("ACWShowCancelSurvey")&&C("acw-cancel-survey",c)))}));var I=cwe;"getAccountStateMsaljs"===i.kind?I=awe:"getUserProofs"===i.kind&&(I=fwe);var A=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n=zd().replace(/-/g,""),l=ch(),p=c,h=function(e){return"AMC_".concat(mwe(e))}(r);return{pageArea:r,returnUrl:o,gsaServiceConfig:"getAccountStateMsaljs"===i.kind?i.gsaServiceConfig:void 0,impressionBeaconUrl:e,clickBeaconUrl:t,clientId:a,ocid:s,uaid:n,cv:l,mkt:p,origin:h,id:"".concat(r,".acw.messagebar"),scenarioTracking:_,variant:u,acwMessageBarHiddenCallback:d}};return Wd((function(){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,p,h,m;return(0,e.__generator)(this,(function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),y({name:b,status:"first-load"}),Wm("ACWBypassIris")?(s=A(),t={title:l.neverLoseAccessToYourMicrosoftAccount,landingPageButton:l.addAnAlternateEmailAddressLink.text,actionUrl:"walk"===u?l.addRecoveryMethodLink.url:l.addAnAlternateEmailAddressLink.url,buttonDismissText:l.close},n={title:l.neverLoseAccessToYourMicrosoftAccount,landingPageButton:l.addARecoveryPhoneNumberLink.text,actionUrl:"walk"===u?l.addRecoveryMethodLink.url:l.addARecoveryPhoneNumberLink.url,buttonDismissText:l.close},f((0,e.__assign)((0,e.__assign)({},s),{emailProofAlertStrings:t,phoneProofAlertStrings:n})),v(!0),[3,3]):[3,1];case 1:return r=Wm("ACWIrisV2"),[4,ZEe(r?"common.acw.messagebar.v2":"common.acw.messagebar")];case 2:(o=g.sent()).model?(i=o.model.ad,a=i.proofOption,s=A(o.model.prm._imp,o.model.tracking.baseUri),c=Wm("ACWWalkSameStrings"),p="walk"===u?function(e,t,n){return{title:t?n.title:e.addAnAdditionalRecoveryMethod,landingPageButton:t?n.landingPageButton:e.addRecoveryMethodLink.text,actionUrl:e.addRecoveryMethodLink.url,buttonDismissText:t?n.buttonDismissText:e.close}}(l,c,i):i,"Email"===a?(f((0,e.__assign)((0,e.__assign)({},s),{emailProofAlertStrings:p})),v(!0)):"SMS"===a?Wm("ACWShowPhoneAlert")&&(f((0,e.__assign)((0,e.__assign)({},s),{phoneProofAlertStrings:p})),v(!0)):null===d||void 0===d||d()):null===d||void 0===d||d(),g.label=3;case 3:return y({name:b,status:"finished"}),[3,5];case 4:return h=g.sent(),m=h,null===d||void 0===d||d(),y({name:b,status:"failed",error:m}),[2];case 5:return[2]}}))}))})),Bd().createElement(im,{operationData:{componentName:kwe,operationName:b},firstLoadView:Bd().createElement(Bd().Fragment,null),finishedView:g?Bd().createElement(I,(0,e.__assign)({},h)):null,failedView:Bd().createElement(Bd().Fragment,null)})},Iwe=function(){var e=Lfe(),t=yme().overviewContent,n=window.location.href,r=Wm(gke),o=Wm("ACWWalk"),i=r?{kind:"getAccountStateMsaljs",gsaServiceConfig:e.gsaServiceConfig}:{kind:"getAccountStateWebrole"},a={pageArea:e.areaPrefix,returnUrl:n,accountStateSource:i,ocid:"cmmoce5ixjk",clientId:e.amcmsaAppConfig.clientIdHex,language:e.language,content:t.acwMessageBar};return Bd().createElement(Twe,Object.assign({},a,{variant:o?"walk":"crawl"}))},Awe=function(){var e,t=yme().overviewContent.productSettings;t.descriptionToken&&(e={descriptionToken:Bd().createElement(TA,{"aria-label":t.descriptionToken.ariaLabel,"data-bi-id":"".concat(lge,".sub-heading-link"),href:t.descriptionToken.url,target:"_blank"},t.descriptionToken.text)});var n={products:Object.entries(t.products).map((function(e){var t=_7(e,2),n=t[0],r=t[1];return"office"===n?{"data-bi-id":"".concat(lge,".").concat(n),"aria-label":r.link.ariaLabel||r.link.text,mediaText:r.link.text,mediaImage:{imageType:"image",src:r.logo.src},ctaUrl:"privacy/data-settings",target:"_self"}:{"data-bi-id":"".concat(lge,".").concat(n),"aria-label":r.link.ariaLabel||r.link.text,mediaText:r.link.text,mediaImage:{imageType:"image",src:r.logo.src},ctaUrl:r.link.url}})),"aria-label":t.arialabel};return Bd().createElement(wT,{childrenGap:"12px"},Bd().createElement(wT,{childrenGap:"5px"},Bd().createElement(aT,{tag:"h2",variant:"paneHeader"},t.title),e?Bd().createElement(AA,{textWithTokens:t.description,tokensAndValues:e}):Bd().createElement(DT,null,t.description)),Bd().createElement(I2,n))},Pwe=[Cme.Unauthorized,Cme.PreconditionFailed],Dwe=kme(Pwe),Rwe=function(t){var n=t.toggleState,r=t.stateCallback,o=ZU(),i=nm(),a=yme().overviewContent.recommendPeople,s=Hge,c=function(){var t=_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i({name:s,status:"updating"}),t.next=3,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Tme("".concat(Nme,"/user-controls/opt-out"),"".concat(Ome,".USERCONTROLS.OPTOUTASYNC"),{},{},{overrideRequestQosData:Dwe})];case 1:return[2,e.sent()]}}))})).then((function(){r(n),i({name:s,status:"finished"}),rh()})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===qme)return i({name:s,status:"finished",error:e}),void window.location.reload();i({name:s,status:"update-failed",error:e}),rh({error:e.message})}));case 3:o.closeDialog();case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){r(!n),o.closeDialog(),nh()};return Bd().createElement(KU,{closeButton:{"aria-label":a.dialogContent.cancel,"data-bi-id":"recommend-people-dialog-close"},dialogFooterProps:{buttonPrimary:{"aria-label":a.dialogContent.confirm,"data-bi-id":"recommend-people-dialog-confirm",onClick:c,text:a.dialogContent.confirm},buttonSecondary:{"aria-label":a.dialogContent.cancel,"data-bi-id":"recommend-people-dialog-close",onClick:l,text:a.dialogContent.cancel}},isOpen:!0,onDismiss:l,title:a.dialogContent.header},Bd().createElement(AA,{textWithTokens:a.dialogContent.description,tokensAndValues:{"downloadDataLink'":Bd().createElement(TA,{"aria-label":a.highlightArea.downloadDataLink.text,"data-bi-id":"recommend-people-download-data-link",href:a.highlightArea.downloadDataLink.url,target:"_blank"},a.highlightArea.downloadDataLink.text)}}))},Mwe=function(e){return{alt:e.highlightArea.image.alt,src:e.highlightArea.image.src}},Nwe=function(e){return Bd().createElement(gj,{messageBarType:"secondary",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(TA,{"aria-label":e.drawerArea.learnMoreLink.text,"data-bi-id":"recommend-people-learn-more",href:e.drawerArea.learnMoreLink.url,target:"_blank"},e.drawerArea.learnMoreLink.text)}}})},Lwe=function(){var t=ZU(),n=nm(),r=_7((0,Fd.useState)(!0),2),o=r[0],i=r[1],a=_7((0,Fd.useState)(!1),2),s=a[0],c=a[1],l=yme(),u=Lfe(),d=u.areaPrefix,p=u.userEmail,h=l.overviewContent.recommendPeople,f="userControls.recommendPeople.get",m=Hge,g="recommend-people-drawer",v="recommend-people-toggle",y="68px",b="end",_=function(e){i(e)},C=function(){var t=_me(cfe().mark((function t(){var r,o;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p){t.next=15;break}return t.prev=1,n({name:f,status:"first-load"}),t.next=5,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Dme(!1,"UserControls","".concat(Nme,"/user-controls"),"".concat(Ome,".USERCONTROLS.GETSTATUSASYNC"),{},{overrideRequestQosData:Dwe})];case 1:return[2,e.sent()]}}))}));case 5:o=t.sent,i(null!==(r=null===o||void 0===o?void 0:o.conversationHistoryProcessingEnabled)&&void 0!==r&&r),n({name:f,status:"finished"}),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(1),c(!0),n({name:f,status:"update-failed"}),rh({error:t.t0});case 15:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(){return t.apply(this,arguments)}}();Wd((function(){C()}));var E,w=function(){var r=_me(cfe().mark((function r(a,s){return cfe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(eh({area:d,scenario:"ManageRecommendPeople",step:"onChange",data:{initialToggleState:o,newToggleState:s}}),s){r.next=5;break}t.openDialog(Bd().createElement(Rwe,{toggleState:!!s,stateCallback:_})),r.next=8;break;case 5:return n({name:m,status:"updating"}),r.next=8,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Tme("".concat(Nme,"/user-controls/opt-in"),"".concat(Ome,".USERCONTROLS.OPTINASYNC"),{},{},{overrideRequestQosData:Dwe})];case 1:return[2,e.sent()]}}))})).then((function(){i(s),n({name:m,status:"finished"}),rh()})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===qme)return n({name:m,status:"finished",error:e}),void window.location.reload();n({name:m,status:"update-failed",error:e}),rh({error:e.message})}));case 8:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}(),x={column:Bd().createElement(iM,{media:{size:"sm",image:{imageType:"image",src:h.drawerArea.icon.src},padding:"0px 4px"},title:{children:h.drawerArea.header,kind:"text",nowrap:!0,weightOverride:"semi-bold"},subtitleTextProps:{children:h.drawerArea.subtitle}}),slots:9},k={onClickToOpen:function(){return zge(!0,g,d)},onClickToClose:function(){return zge(!1,g,d)},defaultExpanded:!1,drawerHeader:Bd().createElement(xM,{chevronPosition:b,columns:[x,{column:Bd().createElement(EM,{"aria-label":h.drawerArea.toggleAriaLabel,"data-bi-id":v,togglePosition:b,onText:h.drawerArea.toggleOn,offText:h.drawerArea.toggleOff,disabled:s,checked:o,onChange:w}),slots:3}],minHeight:y,totalSlots:12})},S={defaultExpanded:!1,drawerHeader:Bd().createElement(xM,{chevronPosition:b,columns:[x,{column:Bd().createElement(EM,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:v,operationName:m},errorCallout:{errorMessage:h.drawerArea.toggleError,errorMessageAriaLabel:h.drawerArea.toggleAriaLabel,targetOrTriggerButton:{"aria-label":h.drawerArea.toggleAriaLabel,"data-bi-id":"".concat(v,".error")}}},"aria-label":h.drawerArea.toggleAriaLabel,"data-bi-id":v,togglePosition:b,onText:h.drawerArea.toggleOn,offText:h.drawerArea.toggleOff,checked:o,onChange:w}),slots:3}],minHeight:y,totalSlots:12})},T={highlightArea:Bd().createElement(qz,{id:g,backgroundType:"card",bodyText:(E=h,{textWithTokens:"{0}",tokensAndValues:{0:Bd().createElement(wT,null,Bd().createElement("ul",{style:{padding:"8px 16px 0px"}},Bd().createElement("li",null,Bd().createElement(DT,null,E.highlightArea.bodyText.line1)),Bd().createElement("li",null,Bd().createElement(DT,null,E.highlightArea.bodyText.line2))))}}),bodyTextVariant:"bodyPrimaryText",height:"small",imageProps:Mwe(h),layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px"}),detailsArea:Nwe(h)};return Bd().createElement(Bd().Fragment,null,p?Bd().createElement(hx,{operationData:{operationName:f,componentName:g},firstLoadView:Bd().createElement(JU,{anchor:"right"}),finishedView:Bd().createElement(oq,Object.assign({drawerAreaProps:k},T)),failedView:Bd().createElement(oq,Object.assign({drawerAreaProps:S},T))}):null)},Owe=_V((function(e){var t=e.isComplete,n=e.viewIndex,r=e.stepTitle,o=e.stepText,i=yme().overviewContent.safetyCheckup.dialogV2Beta.roster,a=z_e(),s=a.currentStep,c=a.setCurrentStep,l={"aria-label":t?i.reviewAction:i.getStarted,"data-bi-id":"".concat(D_e,".").concat(s,".").concat(n,".item"),onClick:function(){return c(n)},pageArea:"privacy.safety-checkup-v2Beta"};return Bd().createElement(DH,{onClickProps:l,columns:[Bd().createElement(cH,{listItemMediaProps:{image:{iconName:t?"CompletedSolid":"InfoSolid",iconColor:t?"successIcon":"highlighter",imageType:"icon"},size:"md"},title:r,titleTextVariant:"subjectTitle",subtitles:[{children:o}]}),Bd().createElement(GB,{columnAlign:"end",contentType:"none",iconName:"ChevronRight"})],variant:"EightFour"})})),Fwe=function(){var e,t=yme(),n=Lfe().userPuid,r="LoadProfilePicture",o=z_e(),i=o.userProofStates,a=o.setUserProofStates,s=o.newOfficeSettingsUser,c=t.overviewContent.safetyCheckup.dialogV2Beta,l=function(){var e=_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,hwe();case 3:return t=e.sent,e.next=6,pwe();case 6:n=e.sent,a((function(e){return YC(YC({},e),{},{hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0,isAuthenticatorEnabled:n.isAuthenticatorEnabled})})),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();Wd((function(){l()}));var u=[{state:i.hasRecoveryEmail||i.hasRecoveryPhone,index:N_e.accountInfo,title:c.roster.accountInfoTitle,incompleteDescription:c.roster.accountInfoDescriptionIncomplete,completeDescription:c.roster.accountInfoDescriptionComplete},{state:i.hasAuthenticator,index:N_e.authenticatorInfo,title:c.roster.authenticatorTitle,incompleteDescription:c.roster.authenticatorDescriptionIncomplete,completeDescription:c.roster.authenticatorDescriptionComplete},{state:i.hasEdge,index:N_e.safeBrowsing,title:c.roster.edgeTitle,incompleteDescription:c.roster.edgeDescriptionIncomplete,completeDescription:c.roster.edgeDescriptionComplete},{state:!0,index:N_e.moreSafetyResources,title:c.roster.additionalLinksTitle,incompleteDescription:c.roster.additionalLinksDescriptionIncomplete,completeDescription:c.roster.additionalLinksDescriptionComplete},{state:!s,index:N_e.officeSettings,title:c.roster.officeSettingsTitle,incompleteDescription:c.roster.officeSettingsDescriptionIncomplete,completeDescription:c.roster.officeSettingsDescriptionComplete}],d=u.filter((function(e){return!0===e.state?e:null})),p=u.filter((function(e){return!1===e.state?e:null})),h=function(e){return Bd().createElement(oq,{detailsArea:Bd().createElement(TV,{isAlwaysExpanded:!0,borderRadius:"8px"},e.map((function(e){return function(e){return Bd().createElement(Owe,{isComplete:!!e.state,viewIndex:e.index,stepTitle:e.title,stepText:e.state?e.completeDescription:e.incompleteDescription,key:e.title})}(e)})))})},f=_7((0,Fd.useState)([n.valueAsHex]),1)[0],m=ame({userIds:f,operationName:r}).profilePictureData,g="".concat(D_e,".personaPicture");return Bd().createElement(Bd().Fragment,null,0===p.length?Bd().createElement("div",{style:{position:"relative"}},Bd().createElement(wT,null,Bd().createElement(jR,{src:c.images.congratsImage.src,alt:c.images.congratsImage.alt,width:"100%"}),Bd().createElement("div",{style:{position:"absolute",left:0,right:0,marginLeft:"auto",marginRight:"auto"}},Bd().createElement(wT,{horizontal:!0,horizontalAlign:"center",textAlignment:"center"},Bd().createElement(wT,{padding:"20px 0px 0px",horizontalAlign:"center"},Bd().createElement(PL,{id:g,trackingId:g,operationData:{componentName:g,operationName:r},imageUrl:null===(e=m[f[0]])||void 0===e?void 0:e.url,size:"72",hideText:!0}))),Bd().createElement(wT,{horizontal:!0,horizontalAlign:"center",textAlignment:"center"},Bd().createElement(wT,{padding:"20px 0px 0px",horizontalAlign:"center"},Bd().createElement(DT,{variant:"paneTitle",weightOverride:"semi-bold"},c.roster.congratulationsMessage),Bd().createElement(DT,null,c.roster.appreciationMessage)))))):null,p.length>0?Bd().createElement(wT,{padding:"0 0 42px 0"},Bd().createElement(wT,{padding:"0 0 16px 0"},Bd().createElement(DT,{variant:"subjectTitle"},c.roster.incompleteActions)),h(p)):null,d.length>0?Bd().createElement(Bd().Fragment,null,Bd().createElement(wT,{padding:"0 0 16px 0"},Bd().createElement(DT,{variant:"subjectTitle"},c.roster.completeActions)),h(d)):null)},Bwe=_V((function(e){var t=e.proofType,n=e.proofValue,r=e.isDrawer,o=yme(),i=Lfe().areaPrefix,a=o.overviewContent.safetyCheckup.dialog.accountInfo,s="Email"===t,c=s?a.emailLabel:a.phoneLabel,l=s?a.addOrRemoveEmailAriaLabel:a.addOrRemovePhoneAriaLabel,u=s?a.addEmailAriaLabel:a.addPhoneAriaLabel,d=s?"Mail":"CellPhone",p="".concat(D_e,s?".edit-recovery-email":".edit-recovery-phone"),h=n?a.links.addOrRemoveLink:s?a.links.addEmailLink:a.links.addPhoneLink,f=n?l:u,m={listItemMediaProps:{image:{imageType:"icon",iconName:d,iconColor:"themePrimary"},padding:r?"0px 0px 0px 36px":"0",size:"md"},title:n||"",titleTextVariant:"headerText",subtitles:[{variant:"bodySecondaryText",children:c}]},g=function(){window.open(h,"_blank")},v={actionButtonProps:[{"aria-label":f,"data-bi-id":p,onClick:g,text:n?a.addOrRemove:a.add}],contentType:"none"};return Bd().createElement(MH,{backgroundColor:r?"neutralMed":"transparent",leftColumn:Bd().createElement(cH,m),rightColumn:Bd().createElement(RM,v),onClickProps:{"aria-label":f,"data-bi-id":p,onClick:g,pageArea:i},showDivider:!r})})),Hwe="".concat(D_e,".get-user-proofs-dialog"),zwe="get-user-proofs",Vwe=N_e.accountInfo,Uwe=function(){var e=z_e(),t=e.currentStep,n=e.totalSteps,r=e.isFlowEnded,o=e.setUserProofStates,i=nm(),a=yme(),s=Lfe().areaPrefix,c=Mw().palette,l=_7((0,Fd.useState)({emails:[],phones:[]}),2),u=l[0],d=l[1],p=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i({name:zwe,status:"updating"}),e.prev=1,e.next=4,hwe();case 4:t=e.sent,d({emails:t.emails,phones:t.phoneNumbers}),o((function(e){return YC(YC({},e),{},{hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0})})),i({name:zwe,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),i({name:zwe,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[1,10]])}))),[i]);document.onvisibilitychange=function(){"visible"===document.visibilityState&&p()};var h=a.overviewContent.safetyCheckup.dialog,f={src:a.overviewContent.safetyCheckup.dialogV2Beta.images.accountInfoImage.src,alt:a.overviewContent.safetyCheckup.dialogV2Beta.images.accountInfoImage.alt,imageType:"altTextImage"},m=[];return u&&u.emails&&u.emails.length>0?u.emails.map((function(e){m.push({proofType:"Email",val:e})})):m.push({proofType:"Email",val:""}),u&&u.phones&&u.phones.length>0?u.phones.map((function(e){m.push({proofType:"Phone",val:e})})):m.push({proofType:"Phone",val:""}),(0,Fd.useEffect)((function(){t===Vwe&&(p(),th({step:L_e(t)}),jf({clickId:"".concat(D_e,".account-info.view"),pageArea:s}))}),[p,t,i]),Bd().createElement(wT,null,r?null:Bd().createElement(ate,{numberOfSteps:n,currentStep:t+1,dotColor:"themePrimary"}),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},Bd().createElement(jR,f)),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},Bd().createElement(DT,{variant:"pageTitle"},h.accountInfo.title)),function(e,t,n,r,o,i){var a=n.overviewContent.safetyCheckup.dialog,s=n.overviewContent.safetyCheckup.dialogV2Beta.wizard,c={backgroundColor:t?"neutralMed":"transparent",leftColumn:Bd().createElement(uH,{title:e?t?a.accountInfo.description:s.accountInfoDescription:a.phoneInfo.description}),rightColumn:Bd().createElement(GB,{contentType:"none"})},l=Bd().createElement(wT,{height:"193px",backgroundColor:o,verticalAlign:"center"},Bd().createElement(fM,{"aria-label":a.loading})),u=Bd().createElement(TV,{isAlwaysExpanded:!0,isTabbable:!0},i.map((function(e,n){return Bd().createElement(Bwe,{key:n,proofType:e.proofType,proofValue:e.val,isDrawer:t})}))),d=Bd().createElement(wT,{height:"193px",padding:"8px 56px"},Bd().createElement(DT,{variant:"errorBlockIcon",children:a.error}));return Bd().createElement(wT,{backgroundColor:o},Bd().createElement("div",{style:O_e(r,t)},Bd().createElement(MH,Object.assign({key:"account-info-title",showDivider:!1,removeRole:!0},c))),Bd().createElement(im,{operationData:{componentName:Hwe,operationName:"get-user-proofs"},updatingView:l,finishedView:u,failedView:d}))}(!0,!1,a,c.white,"transparent",m))},Wwe="".concat(D_e,".get-authenticator-status-dialog"),jwe="get-authenticator-status",qwe=N_e.authenticatorInfo,Gwe=function(){var e=yme(),t=Lfe().areaPrefix,n=Mw().palette,r=z_e(),o=r.currentStep,i=r.totalSteps,a=r.isFlowEnded,s=r.userProofStates,c=nm(),l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=e.overviewContent.safetyCheckup.dialog,h=(0,Fd.useCallback)(_me(cfe().mark((function e(){var t;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c({name:jwe,status:"updating"});try{t=!!s.hasAuthenticator,d(t),c({name:jwe,status:"finished"})}catch(n){c({name:jwe,status:"failed",error:n})}case 2:case"end":return e.stop()}}),e)}))),[c]);(0,Fd.useEffect)((function(){o===qwe&&(h(),th({step:L_e(o)}),jf({clickId:"".concat(D_e,".authenticator.view"),pageArea:t}))}),[o,h,c]);var f={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.authenticatorImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.authenticatorImage.alt,imageType:"altTextImage"};return Bd().createElement(wT,null,a?null:Bd().createElement(ate,{numberOfSteps:i,currentStep:o+1,dotColor:"themePrimary"}),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},Bd().createElement(jR,f)),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},Bd().createElement(DT,{variant:"pageTitle"},p.authenticator.title)),function(e,t,n,r,o,i){var a=t.overviewContent.safetyCheckup.dialog,s=t.overviewContent.safetyCheckup.dialogV2Beta.wizard,c={backgroundColor:o,leftColumn:Bd().createElement(uH,{title:a.authenticator.description}),rightColumn:Bd().createElement(GB,{contentType:"none"})},l=i?a.authenticator.usingAuthenticator:a.authenticator.tryAuthenticator,u=i?e?a.authenticator.usingAuthenticatorDescription:s.authenticatorDescriptionComplete:e?a.authenticator.tryAuthenticatorDescription:s.authenticatorDescriptionIncomplete,d={backgroundColor:o,leftColumn:Bd().createElement(cH,{listItemMediaProps:{image:{imageType:"image",src:a.authenticator.iconAuth.src},padding:e?"0px 0px 0px 40px":"0",size:"md"},title:l,titleTextVariant:"headerText",subtitles:[{children:u,variant:"bodySecondaryText"}]}),rightColumn:Bd().createElement(GB,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":u,"data-bi-id":"".concat(D_e,i?".using-auth-link":".try-auth-link"),onClick:function(){var e=i?a.authenticator.links.usingAuthAppLink:a.authenticator.links.tryAuthAppLink;window.open(e,"_blank")},pageArea:n}},p=Bd().createElement(wT,{height:"193px",backgroundColor:"neutralHigh",verticalAlign:"center"},Bd().createElement(fM,{"aria-label":a.loading})),h=Bd().createElement(TV,{isAlwaysExpanded:!0,isTabbable:!0},Bd().createElement(MH,Object.assign({key:"authenticator-description",showDivider:!1},d))),f=Bd().createElement(wT,{height:"193px",padding:"8px 56px"},Bd().createElement(DT,{variant:"errorBlockIcon",children:a.error}));return Bd().createElement(wT,{backgroundColor:o},Bd().createElement("div",{style:O_e(r,e)},Bd().createElement(MH,Object.assign({key:"authenticator-title",showDivider:!1,removeRole:!0},c))),Bd().createElement("div",{style:e?void 0:F_e(r)},Bd().createElement(im,{operationData:{componentName:Wwe,operationName:"get-authenticator-status"},updatingView:p,finishedView:h,failedView:f})))}(!1,e,t,n.white,"transparent",u))},Kwe=N_e.moreSafetyResources,Ywe=function(){var e=yme(),t=Lfe().areaPrefix,n=Mw().palette,r=z_e(),o=r.currentStep,i=r.totalSteps,a=r.isFlowEnded,s=e.overviewContent.safetyCheckup.dialog.additionalLinks,c={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.additionalLinksImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.additionalLinksImage.alt,imageType:"altTextImage"};return(0,Fd.useEffect)((function(){o===Kwe&&(th({step:L_e(o)}),jf({clickId:"".concat(D_e,".authenticator.view"),pageArea:t}))}),[o]),Bd().createElement(wT,null,a?null:Bd().createElement(ate,{numberOfSteps:i,currentStep:o+1,dotColor:"themePrimary"}),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},Bd().createElement(jR,c)),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},Bd().createElement(DT,{variant:"pageTitle"},s.title)),function(e,t,n,r,o){var i=t.overviewContent.safetyCheckup.dialog.additionalLinks,a=t.overviewContent.safetyCheckup.dialogV2Beta.images,s=function(e){window.open(e,"_blank")},c=[],l={backgroundColor:o,leftColumn:Bd().createElement(uH,{title:i.description}),rightColumn:Bd().createElement(GB,{contentType:"none"})},u={backgroundColor:o,leftColumn:Bd().createElement(cH,{listItemMediaProps:{image:e?{imageType:"icon",iconName:"Lock"}:{imageType:"image",src:a.lockIcon.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:i.changePrivacySettings}),rightColumn:Bd().createElement(GB,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":i.changePrivacySettings,"data-bi-id":"".concat(D_e,".change-privacy-settings"),onClick:function(){return s(i.links.changePrivacyLink)},pageArea:n}},d={backgroundColor:o,leftColumn:Bd().createElement(cH,{listItemMediaProps:{image:e?{imageType:"icon",iconName:"LaptopSecure"}:{imageType:"image",src:a.safeIcon.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:i.securityAndLearning}),rightColumn:Bd().createElement(GB,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":i.securityAndLearning,"data-bi-id":"".concat(D_e,".security-and-learning"),onClick:function(){return s(i.links.securityHelpLearningLink)},pageArea:n}};return c.push(Bd().createElement(MH,Object.assign({},u,{key:"additional-change-privacy"})),Bd().createElement(MH,Object.assign({},d,{key:"additional-security-learning"}))),Bd().createElement(wT,{backgroundColor:o},Bd().createElement("div",{style:O_e(r,e)},e?Bd().createElement(MH,Object.assign({key:"additional-title",showDivider:!1,removeRole:!0},l)):null),Bd().createElement("div",{style:e?void 0:F_e(r)},Bd().createElement(TV,{isAlwaysExpanded:!0,isTabbable:!0,key:"additional-services-list"},c)))}(!1,e,t,n.white,"transparent"))},Qwe=N_e.officeSettings,Xwe=function(){var e=yme(),t=Lfe().areaPrefix,n=z_e(),r=n.currentStep,o=n.totalSteps,i=n.isFlowEnded,a=e.overviewContent.safetyCheckup,s={src:a.dialogV2Beta.images.officeSettingsImage.src,alt:a.dialogV2Beta.images.officeSettingsImage.alt,imageType:"altTextImage"},c="8px 0";return(0,Fd.useEffect)((function(){r===Qwe&&(th({step:L_e(r)}),jf({clickId:"".concat(D_e,".office-settings.view"),pageArea:t}))}),[r]),Bd().createElement(wT,null,i?null:Bd().createElement(ate,{numberOfSteps:o,currentStep:r+1,dotColor:"themePrimary"}),Bd().createElement(wT,{horizontalAlign:"center",margin:c,padding:"10px 0 0 0"},Bd().createElement(jR,s)),Bd().createElement(wT,{horizontalAlign:"center",margin:c,textAlignment:"center"},Bd().createElement(DT,{variant:"pageTitle"},a.dialog.officeSettings.title)),Bd().createElement(wT,{horizontalAlign:"center",margin:c,padding:"8px 20px"},Bd().createElement(DT,null,a.dialog.officeSettings.description)),Bd().createElement(mCe,{isCheckup:!0}))},Zwe=N_e.safeBrowsing,Jwe=function(){var e=yme(),t=Lfe().areaPrefix,n=z_e(),r=n.currentStep,o=n.totalSteps,i=n.isFlowEnded,a=n.userProofStates,s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=Mw().palette,d=e.overviewContent.safetyCheckup.dialog.safeSecureBrowsing,p={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.edgeImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.edgeImage.alt,imageType:"altTextImage"};return(0,Fd.useEffect)((function(){if(r===Zwe){var e=!!a.hasEdge;l(e),th({step:L_e(r)}),jf({clickId:"".concat(D_e,".safe-browsing.view"),pageArea:t})}}),[r]),Bd().createElement(wT,null,i?null:Bd().createElement(ate,{numberOfSteps:o,currentStep:r+1,dotColor:"themePrimary"}),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},Bd().createElement(jR,p)),Bd().createElement(wT,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},Bd().createElement(DT,{variant:"pageTitle"},d.title)),function(e,t,n,r,o,i){var a=t.overviewContent.safetyCheckup.dialog.safeSecureBrowsing,s=t.overviewContent.safetyCheckup.dialogV2Beta.wizard,c=e?a.usingEdge:i?s.edgeDescriptionComplete:s.edgeDescriptionIncomplete,l={backgroundColor:o,leftColumn:Bd().createElement(uH,{title:a.description}),rightColumn:Bd().createElement(GB,{contentType:"none"})},u={backgroundColor:o,leftColumn:Bd().createElement(cH,{listItemMediaProps:{image:{imageType:"image",src:a.iconEdge.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:a.microsoftEdge,titleTextVariant:"headerText",subtitles:[{children:c,variant:"bodySecondaryText"}]}),rightColumn:Bd().createElement(GB,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":c,"data-bi-id":"".concat(D_e,i?".using-edge-link":".try-edge-link"),onClick:function(){var e=i?a.links.usingEdgeLink:a.links.tryEdgeLink;window.open(e,"_blank")},pageArea:n}};return Bd().createElement(wT,{backgroundColor:o},Bd().createElement("div",{style:O_e(r,e)},Bd().createElement(MH,Object.assign({key:"safe-browsing-title",showDivider:!1,removeRole:!0},l))),Bd().createElement("div",{style:e?void 0:F_e(r)},Bd().createElement(TV,{isAlwaysExpanded:!0,isTabbable:!0},Bd().createElement(MH,Object.assign({key:"safe-browsing-description",showDivider:!1},u)))))}(!1,e,t,u.white,"transparent",c))},$we=function(){var e=yme(),t=ZU(),n=z_e(),r=n.currentStep,o=n.setCurrentStep,i=n.isFlowEnded,a=n.setIsFlowEnded,s=n.userProofStates,c=e.overviewContent.safetyCheckup.dialog,l=function(e){return{step:L_e(e),data:{userProofStates:s}}},u=function(){o(i?N_e.roster:r-1)},d=function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(!1),t.closeDialog();try{i?rh(l(r)):nh(l(r))}catch(n){}case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p={text:c.next,"aria-label":c.next,"data-bi-id":"".concat(D_e,".").concat(r,"-next"),onClick:function(){var e=r+1;o(e),e===Object.keys(N_e).length-1&&(a(!0),th(l(e)))}},h={text:c.close,"aria-label":c.close,"data-bi-id":"".concat(D_e,".").concat(r,"-close"),onClick:d},f="830px",m={title:c.title,isOpen:!0,closeButton:{"aria-label":c.close,"data-bi-id":"".concat(D_e,".dialog-close")},onDismiss:d,stickyHeaderFooter:{hasStickyHeaderFooters:!0,bodyMaxHeight:f},staticBodyWidth:"480px",withHeaderHorizontalLine:!0,backButton:function(){if((r!==N_e.accountInfo||i)&&r!==N_e.roster)return{"aria-label":c.back,"data-bi-id":"".concat(D_e,".").concat(r,"-back"),onClick:u}}(),dialogFooterProps:r===N_e.roster?{buttonPrimary:h,hasFooterBackground:!0,hasFooterHorizontalLine:!0}:i?{dialogType:"secondary",buttonRight:h,hasFooterBackground:!0,hasFooterHorizontalLine:!0}:{buttonPrimary:p,hasFooterBackground:!0,hasFooterHorizontalLine:!0},bodyStyleTemp:{padding:"0 24px"},dialogStylesTemp:{main:{height:f,width:"100%"}},headerLeftRightPadding:"16px"},g=Bd().createElement(wT,{padding:"27px 0"},r===N_e.accountInfo?Bd().createElement(Uwe,null):null,r===N_e.authenticatorInfo?Bd().createElement(Gwe,null):null,r===N_e.safeBrowsing?Bd().createElement(Jwe,null):null,r===N_e.moreSafetyResources?Bd().createElement(Ywe,null):null,r===N_e.officeSettings?Bd().createElement(Xwe,null):null,r===N_e.roster?Bd().createElement(Fwe,null):null);return Bd().createElement(KU,m,g)},exe=function(){var e=yme(),t=ZU(),n=z_e(),r=n.userProofStates,o=n.setUserProofStates,i=n.resetStates,a=nm(),s=function(){var e=_me(cfe().mark((function e(){var t,n,r,i;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,hwe();case 3:return t=e.sent,e.next=6,pwe();case 6:n=e.sent,r=jd(),i={hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0,hasAuthenticator:n.isAuthenticatorEnabled,hasEdge:r},o(i),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),a({status:"failed",name:"get-user-proofs",error:e.t0});case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),c={featureHeading:{tag:"h3",text:e.overviewContent.safetyCheckup.title,variant:"paneHeader"},bodyText:e.overviewContent.safetyCheckup.description,ctaProps:[{actionProps:{"aria-label":e.overviewContent.safetyCheckup.getACheckUp,"data-bi-id":"".concat(D_e,".start-cta"),type:"primary",kind:"button",text:e.overviewContent.safetyCheckup.getACheckUp,onClick:function(){var e=_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i(),s(),eh({area:"Privacy",scenario:"SafetyReview",step:"SafetyReviewStart",data:{userProofStates:r}}),t.openDialog(Bd().createElement($we,null));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}],imageProps:{src:e.overviewContent.safetyCheckup.image.src,alt:e.overviewContent.safetyCheckup.image.alt,height:"150px"},backgroundType:"card",layoutType:"2/3"};return Bd().createElement(Bd().Fragment,null,Bd().createElement(qz,c))},txe="Privacy.getSurvey",nxe=function(){var e=(0,Fd.useContext)(eEe),t=e.showSatisfactionSurvey,n=e.setShowSatisfactionSurvey,r=Lfe(),o=r.language,i=r.selfRights,a=nm(),s=gbe();return(0,Fd.useEffect)((function(){if(t&&(n(!1),i.canManage))try{a({name:txe,status:"first-load"}),s("privacy-satisfaction-survey",o),a({name:txe,status:"finished"})}catch(e){a({name:txe,status:"failed",error:e})}}),[o,i,a,s,t]),Bd().createElement(im,{operationData:{componentName:"PrivacySatisfactionSurvey",operationName:txe},finishedView:Bd().createElement(Bd().Fragment,null)})},rxe="Privacy",oxe="LandingPageIntercept",ixe=function(){var t=yme().overviewContent,n=nm(),r=function(){var t=Mw();return(0,Fd.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,ybe(n,r,o)]):[3,4];case 1:return(a=e.sent())&&(s=bbe(a),i.push(s)),window.OfficeBrowserFeedback&&i.length>0?(mbe(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])}(),o=Lfe(),i=Wm("PrivACWMessageBar");return(0,Fd.useEffect)((function(){if(Wm("PrivIntercept")){var e=setTimeout(_me(cfe().mark((function e(){return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n({name:"".concat(rxe,".").concat(oxe),status:"first-load"}),e.next=4,r(rxe,oxe,o.language);case 4:n({name:"".concat(rxe,".").concat(oxe),status:"finished"}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n({name:"".concat(rxe,".").concat(oxe),status:"failed",error:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),5e3);return function(){return clearTimeout(e)}}}),[]),Bd().createElement(Bd().Fragment,null,Bd().createElement(oN,{message:t.overviewTitle,ariaLive:"assertive"}),Bd().createElement(wT,{id:"overview"},Bd().createElement(wT,{childrenGap:"32px"},Bd().createElement(wT,null,Bd().createElement(RCe,null),Bd().createElement(ibe,null),Bd().createElement(wT,{padding:"16px 0px"},Bd().createElement(WEe,null),Bd().createElement(wT,{padding:"16px 0px 0px 0px"},i?Bd().createElement(Iwe,null):void 0),Bd().createElement(wT,{padding:"16px 0px 0px 0px"},Bd().createElement(exe,null))),Bd().createElement(wT,{childrenGap:"8px",padding:"16px 0px 0px 0px"},Bd().createElement(tEe,null,Bd().createElement(UEe,null),Bd().createElement(VEe,null),Bd().createElement(nxe,null)))),Wm("PrivCustomDictionary")?Bd().createElement(xCe,null):null,Bd().createElement(Awe,null),Bd().createElement(Lwe,null),Wm("PrivWinAccSyncConsent")?Bd().createElement(DCe,null):null,Wm("PrivObo")?Bd().createElement(kCe,null):null,Bd().createElement(MCe,null)),Bd().createElement(wbe,null),Bd().createElement(Cbe,null)))},axe=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[4,Tme("".concat(Lme,"/delete"),"".concat(Ome,".TESTDELETE"),{types:t})];case 1:return[2,e.sent()]}}))}))},sxe=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[4,Tme("".concat(Lme,"/export"),"".concat(Ome,".TESTEXPORT"),{types:t})];case 1:return[2,e.sent()]}}))}))},cxe=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[4,Sme("".concat(Lme,"/trace-request"),"".concat(Ome,".TESTTRACEREQUEST"),{params:{requestId:t}})];case 1:return[2,e.sent()]}}))}))},lxe=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[4,Tme("".concat(Lme,"/complete-export"),"".concat(Ome,".TESTCOMPLETEEXPORT"),{requestId:t})];case 1:return e.sent(),[2]}}))}))},uxe=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[4,Sme("".concat(Lme,"/agent-status"),"".concat(Ome,".TESTAGENTSTATUS"),{params:{agentId:t}})];case 1:return[2,e.sent()]}}))}))},dxe="accountCloseCommand",pxe=function(){var t=nm(),n=_7((0,Fd.useState)([]),2),r=n[0],o=n[1],i=_7((0,Fd.useState)(!0),2),a=i[0],s=i[1];Wd((function(){var e=window.location.hostname;s("privacy.account.microsoft-ppe.com"!==e&&"account.microsoft-int.com"!==e&&"localhost"!==e)}));var c=function(){var n=_me(cfe().mark((function n(){var r;return cfe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t({name:dxe,status:"updating"}),n.prev=1,n.next=4,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Tme("".concat(Lme,"/account-close"),"".concat(Ome,".TESTACCOUNTCLOSE"),{})];case 1:return[2,e.sent()]}}))}));case 4:r=n.sent,o(r.ids),t({name:dxe,status:"finished"}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),t({name:dxe,status:"failed",error:n.t0});case 12:return n.prev=12,s(!1),n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[1,9,12,15]])})));return function(){return n.apply(this,arguments)}}();return Bd().createElement(wT,null,Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,{"aria-label":"Close Account","data-bi-id":"privacy.partner.accountCloseButton",onClick:c,text:"Close account",disabled:a})),Bd().createElement(im,{operationData:{componentName:"partnerAccountCloseDrawer",operationName:dxe},inertView:Bd().createElement(DT,null,"No command sent yet."),updatingView:Bd().createElement(DT,null,"Sending command..."),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Successfully sent account close command."),Bd().createElement(DT,null,"Command Ids:"),r.map((function(e){return Bd().createElement(DT,{key:e},"- ",e)})),Bd().createElement(DT,null,"cV: ",ch())),failedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Failed to send account close command."),Bd().createElement(DT,null,"cV: ",ch()))}))},hxe=function(){return Bd().createElement(gj,{messageContent:"This functionality is only available in PPE.",messageBarType:"info"})},fxe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Account Close",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(hxe,null),Bd().createElement(pxe,null)))},mxe=function(){return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"bold"},"Agent ID"),Bd().createElement(DT,{weightOverride:"bold"},"Asset Group ID"))),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(DT,{weightOverride:"bold"},"Asset Group Qualifier")),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"bold"},"Subject Type"),Bd().createElement(DT,{weightOverride:"bold"},"Oldest Pending Command"),Bd().createElement(DT,{weightOverride:"bold"},"Minimum Lease Available Time"))),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(DT,{weightOverride:"bold"},"Pending Command Count"),Bd().createElement(vR,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":"More information about Pending Command Count","data-bi-id":"privacy.partner.pendingCommandCount-callout",iconName:"Info"},children:"The total number of commands assigned to your agent that have not been formally completed."})),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(DT,{weightOverride:"bold"},"Unleased Command Count"),Bd().createElement(vR,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":"More information about Unleased Command Count","data-bi-id":"privacy.partner.unleasedCommandCount-callout",iconName:"Info"},children:"The number of commands assigned to your agent that have not been issued to an agent and are eligible for retrieval."})))))},gxe=function(e){return"https://manage.privacy.microsoft.com/data-agents/view/".concat(e)},vxe=function(e){return"https://manage.privacy.microsoft.com/data-assets/view/".concat(e)},yxe=_V((function(e){var t=e.statusRow,n=e.index,r=t.agentId,o=t.assetGroupId,i=Bd().createElement(YB,{hyperlinks:[{"aria-label":"Agent ".concat(r),"data-bi-id":"privacy.partner.agentStatusAgentId-link",href:gxe(r),children:"Agent: ".concat(r)},{"aria-label":"Asset ".concat(o),"data-bi-id":"privacy.partner.agentStatusAssetId-link",href:vxe(o),children:"Asset: ".concat(o)}],key:"firstColumn-".concat(n)}),a=t.assetGroupQualifier.split(";"),s=Bd().createElement(iH,{textElements:a.map((function(e){return{children:e}})),key:"secondColumn-".concat(n)}),c=Bd().createElement(iH,{textElements:[{children:"Subject Type: ".concat(t.subjectType)},{children:"Oldest Pending: ".concat(t.oldestPendingCommand)},{children:"Min Lease: ".concat(t.minimumLeaseAvailableTime)}],key:"thirdColumn-".concat(n)}),l=Bd().createElement(iH,{textElements:[{children:"Pending: ".concat(t.pendingCommandCount)},{children:"Unleased: ".concat(t.unleasedCommandCount)}],key:"finalColumn-".concat(n)});return Bd().createElement(DH,{variant:"ThreeThreeThreeThree",columns:[i,s,c,l]})})),bxe=function(e){var t=e.agentStatusData,n=_7((0,Fd.useState)(""),2),r=n[0],o=n[1],i=t.filter((function(e){var t,n,o,i;return(null===(t=e.agentId)||void 0===t?void 0:t.toLowerCase().includes(r.toLowerCase()))||(null===(n=e.assetGroupId)||void 0===n?void 0:n.toLowerCase().includes(r.toLowerCase()))||(null===(o=e.assetGroupQualifier)||void 0===o?void 0:o.toLowerCase().includes(r.toLowerCase()))||(null===(i=e.subjectType)||void 0===i?void 0:i.toLowerCase().includes(r.toLowerCase()))}));return Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(wT,{width:"25%"},Bd().createElement(Mq,{"aria-label":"Filter Agent Status Data","data-bi-id":"privacy.partner.filterAgentStatusData-textInput",placeholder:"Filter data",value:r,onChange:function(e,t){o(t||"")}})),Bd().createElement(TV,{header:Bd().createElement(mxe,null),isAlwaysExpanded:!0,children:i.map((function(e,t){return Bd().createElement(yxe,{statusRow:e,index:t})}))}))},_xe="getAgentStatus",Cxe=function(){var e=_7((0,Fd.useState)(""),2),t=e[0],n=e[1],r=_7((0,Fd.useState)([]),2),o=r[0],i=r[1],a=_7((0,Fd.useState)(!1),2),s=a[0],c=a[1],l=nm(),u=function(){var e=_me(cfe().mark((function e(){var n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l({name:_xe,status:"updating"}),c(!0),e.next=5,uxe(t);case 5:n=e.sent,i(n),l({name:_xe,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),l({name:_xe,status:"failed",error:e.t0});case 13:return e.prev=13,c(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(){return e.apply(this,arguments)}}();return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(TA,{"aria-label":"Agent Health PowerBI Dashboard","data-bi-id":"privacy.partner.agentHealthPowerBI-hyperlink",href:"https://aka.ms/pcfagenthealthreport",children:"Agent Health PowerBI Dashboard"}),Bd().createElement(wT,{width:"25%"},Bd().createElement(Mq,{"aria-label":"Agent ID","data-bi-id":"privacy.partner.agentID-textInput",placeholder:"Agent ID",value:t,onChange:function(e,t){n(t||"")}}),Bd().createElement(hR,{"aria-label":"Get agent status","data-bi-id":"privacy.partner.getAgentStatus-button",text:"Get Agent Status",onClick:u,disabled:s||""===t})),Bd().createElement(im,{operationData:{operationName:_xe,componentName:"getAgentStatusButton"},inertView:Bd().createElement(DT,null,"No status retrieved yet."),updatingView:Bd().createElement(DT,null,"Retrieving status..."),failedView:Bd().createElement(wT,null,Bd().createElement(DT,null,"Result: Failed to retrieve agent status."),Bd().createElement(AA,{textWithTokens:"{note} If this request seems to time out, it is very possible that your agent has a large backlog of commands (> ~1M).",tokensAndValues:{note:Bd().createElement(DT,{weightOverride:"bold"},"Note:")}})),finishedView:Bd().createElement(wT,null,Bd().createElement(DT,null,"Result: Successfully retrieved agent status."),Bd().createElement(bxe,{agentStatusData:o}))}))},Exe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Agent Status",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(Cxe,null)))},wxe=function(){return Bd().createElement(gj,{messageContent:"Retrieves previously-issued command IDs for the currently authenticated MSA.",messageBarType:"info"})},xxe="getCommandHistory",kxe=function(){var t=_7((0,Fd.useState)(!1),2),n=t[0],r=t[1],o=_7((0,Fd.useState)([]),2),i=o[0],a=o[1],s=nm(),c=function(){var t=_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s({name:xxe,status:"updating"}),r(!0),t.prev=2,t.next=5,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Sme("".concat(Lme,"/user-requests"),"".concat(Ome,".TESTUSERREQUESTS"))];case 1:return[2,e.sent()]}}))}));case 5:n=t.sent,a(n.map((function(e){return e.commandId}))),s({name:xxe,status:"finished"}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),s({name:xxe,status:"failed",error:t.t0});case 13:return t.prev=13,r(!1),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})));return function(){return t.apply(this,arguments)}}(),l={"aria-label":"Get Command History","data-bi-id":"privacy.partner.commandHistory",onClick:c,text:"Get history",disabled:n};return Bd().createElement(wT,null,Bd().createElement(wT,{width:"15%"},Bd().createElement(hR,l)),Bd().createElement(im,{operationData:{componentName:"partnerCommandHistory",operationName:xxe},inertView:Bd().createElement(DT,null,"No history retrieved yet."),updatingView:Bd().createElement(DT,null,"Retrieving history..."),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Successfully retrieved user commands."),Bd().createElement(DT,null,"Command Ids:"),i.map((function(e){return Bd().createElement(DT,{key:e},e)}))),failedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Failed to retrieve user commands."))}))},Sxe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Command History",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(wxe,null),Bd().createElement(kxe,null)))},Txe=[{id:"cardTypeFilter_browse",name:"BrowsingHistory"},{id:"cardTypeFilter_media",name:"ContentConsumption"},{id:"cardTypeFilter_location",name:"PreciseUserLocation"},{id:"cardTypeFilter_performance",name:"ProductAndServicePerformance"},{id:"cardTypeFilter_usage",name:"ProductAndServiceUsage"},{id:"cardTypeFilter_search",name:"SearchRequestsAndQuery"}],Ixe=Txe.concat([{id:"partner_DemographicInformation",name:"DemographicInformation",presetFlows:["prcDelete1"]},{id:"partner_DeviceConnectivityAndConfiguration",name:"DeviceConnectivityAndConfiguration",presetFlows:["prcDelete1"]},{id:"partner_EnvironmentalSensor",name:"EnvironmentalSensor",presetFlows:["prcDelete1"]},{id:"partner_FeedbackAndRatings",name:"FeedbackAndRatings",presetFlows:["prcDelete1"]},{id:"partner_FitnessAndActivity",name:"FitnessAndActivity",presetFlows:["prcDelete1"]},{id:"partner_SoftwareSetupAndInventory",name:"SoftwareSetupAndInventory",presetFlows:["prcDelete1"]},{id:"partner_SupportContent",name:"SupportContent",presetFlows:["prcDelete1"]},{id:"partner_SupportInteraction",name:"SupportInteraction",presetFlows:["prcDelete1"]}]),Axe=Txe.length,Pxe=[{id:"cardTypeFilter_browse",name:"BrowsingHistory",presetFlows:["prcExport1"]},{id:"cardTypeFilter_media",name:"ContentConsumption",presetFlows:["prcExport1"]},{id:"cardTypeFilter_location",name:"PreciseUserLocation"},{id:"cardTypeFilter_usage",name:"ProductAndServiceUsage",presetFlows:["prcExport1"]},{id:"cardTypeFilter_search",name:"SearchRequestsAndQuery",presetFlows:["prcExport1"]}],Dxe=Pxe.concat([{id:"partner_CapturedCustomerContent",name:"CapturedCustomerContent",presetFlows:["prcExport1"]},{id:"partner_DemographicInformation",name:"DemographicInformation",presetFlows:["prcExport1"]},{id:"partner_EnvironmentalSensor",name:"EnvironmentalSensor",presetFlows:["prcExport1"]},{id:"partner_FeedbackAndRatings",name:"FeedbackAndRatings",presetFlows:["prcExport1"]},{id:"partner_SoftwareSetupAndInventory",name:"SoftwareSetupAndInventory",presetFlows:["prcExport1"]},{id:"partner_SupportContent",name:"SupportContent",presetFlows:["prcExport1"]},{id:"partner_SupportInteraction",name:"SupportInteraction",presetFlows:["prcExport1"]}]),Rxe=Pxe.length,Mxe="standard",Nxe="deleteCommand",Lxe=function(e){var t=e.selection,n=_7((0,Fd.useState)({}),2),r=n[0],o=n[1],i=_7((0,Fd.useState)([]),2),a=i[0],s=i[1],c=_7((0,Fd.useState)(!0),2),l=c[0],u=c[1],d=nm(),p=[],h=(0,Fd.useCallback)((function(){var e={};Ixe.forEach((function(t){e[t.id]=!1})),o(e)}),[]);Wd((function(){h()}));Object.keys(r).forEach((function(e,n){p.push({"aria-label":Ixe[n].name,checked:r[e],"data-bi-id":"privacy.partner.deleteCommand-".concat(Ixe[n].name,"-checkbox"),label:Ixe[n].name,onChange:function(){!function(e){var t=YC({},r);t[e]=!r[e],o(t)}(e)},disabled:"standard"===t})})),(0,Fd.useEffect)((function(){Object.values(r).every((function(e){return!e}))?u(!0):u(!1)}),[r]),(0,Fd.useEffect)((function(){if(t===Mxe){var e={};Ixe.forEach((function(t){t.presetFlows&&t.presetFlows.indexOf("prcDelete1")>-1?e[t.id]=!0:e[t.id]=!1})),o(e)}else h()}),[t,h]);var f=function(){var e=_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d({name:Nxe,status:"updating"}),u(!0),e.prev=2,t=[],Object.keys(r).forEach((function(e){r[e]&&t.push(e)})),e.next=7,axe(t);case 7:n=e.sent,s(n.ids),d({name:Nxe,status:"finished"}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),d({name:Nxe,status:"failed",error:e.t0});case 15:return e.prev=15,u(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}(),m={"aria-label":"Send delete command","data-bi-id":"privacy.partner.deleteCommandButton",onClick:f,text:"Delete",disabled:l},g=p.slice(0,Axe),v=p.slice(Axe,p.length);return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(wT,{childrenGap:"8px"},g.map((function(e,t){return Bd().createElement(XL,Object.assign({},e,{key:"privacy.partner.delete-checkbox-".concat(t)}))})))),Bd().createElement(_T,{slots:4},Bd().createElement(wT,{childrenGap:"8px"},v.map((function(e,t){return Bd().createElement(XL,Object.assign({},e,{key:"privacy.partner.delete-checkbox-".concat(t)}))})))),Bd().createElement(_T,{slots:4},Bd().createElement(wT,null,Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,m)),Bd().createElement(im,{operationData:{componentName:"partnerDeleteDrawer",operationName:Nxe},inertView:Bd().createElement(DT,null,"No command sent yet."),updatingView:Bd().createElement(DT,null,"Sending command..."),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Successfully sent delete command."),Bd().createElement(DT,null,"Command Ids:"),a.map((function(e){return Bd().createElement(DT,{key:e},"- ",e)})),Bd().createElement(DT,null,"cV: ",ch())),failedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Failed to send delete command."),Bd().createElement(DT,null,"cV: ",ch()))}))))},Oxe=function(){var e=[{key:"custom",id:"custom",text:"Custom Selection",ariaLabel:"Custom Selection"},{key:"standard",id:"standard",text:"Standard PRC Delete",ariaLabel:"Standard PRC Delete"}],t=_7((0,Fd.useState)(e[0]&&e[0].key),2),n=t[0],r=t[1];return Bd().createElement(Bd().Fragment,null,Bd().createElement(DT,null,"Scenario:"),Bd().createElement(ZW,{pageArea:"privacy","data-bi-prefix":"privacy.partner.delete-dropdown","aria-label":"Select Custom Selection or Standard PRC Delete",value:n,options:e,onChange:function(e,t,n,o){t&&r(t.key)},width:"25%"}),Bd().createElement(Lxe,{selection:n}))},Fxe=function(){return Bd().createElement(Bd().Fragment,null,Bd().createElement(gj,{messageContent:{textWithTokens:"This page generates commands for the {currentAuth} MSA. When clicking Delete, you will trigger a delete command to {all} checked data types in this section, and the data {will} be deleted. Do {not} use your personal MSA.",tokensAndValues:{currentAuth:Bd().createElement(DT,{weightOverride:"bold"},"currently authenticated"),all:Bd().createElement(DT,{weightOverride:"bold"},"all"),will:Bd().createElement(DT,{weightOverride:"bold"},"will"),not:Bd().createElement(DT,{weightOverride:"bold"},"not")}},messageBarType:"severe-warning"}),Bd().createElement(gj,{messageContent:{textWithTokens:"These controls should be used for E2E testing of delete commands. After clicking Delete, you may still see your data on the {dashboard}, but please keep in mind that your commands are being sent as expected.",tokensAndValues:{dashboard:Bd().createElement(TA,{"aria-label":"AMC Privacy Dashboard","data-bi-id":"partner-deleteCommand-privacyDashboard",to:"/"},"AMC Privacy Dashboard")}},messageBarType:"info"}))},Bxe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"AMC Privacy Dashboard Data Types - Delete Command",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(Fxe,null),Bd().createElement(Oxe,null)))},Hxe="exportCommand",zxe=function(e){var t=e.selection,n=_7((0,Fd.useState)({}),2),r=n[0],o=n[1],i=_7((0,Fd.useState)([]),2),a=i[0],s=i[1],c=_7((0,Fd.useState)(!0),2),l=c[0],u=c[1],d=nm(),p=[],h=(0,Fd.useCallback)((function(){var e={};Dxe.forEach((function(t){e[t.id]=!1})),o(e)}),[]);Wd((function(){h()}));Object.keys(r).forEach((function(e,n){p.push({"aria-label":Dxe[n].name,checked:r[e],"data-bi-id":"privacy.partner.exportCommand-".concat(Dxe[n].name,"-checkbox"),label:Dxe[n].name,onChange:function(){!function(e){var t=YC({},r);t[e]=!r[e],o(t)}(e)},disabled:"standard"===t})})),(0,Fd.useEffect)((function(){Object.values(r).every((function(e){return!e}))?u(!0):u(!1)}),[r]),(0,Fd.useEffect)((function(){if(t===Mxe){var e={};Dxe.forEach((function(t){t.presetFlows&&t.presetFlows.indexOf("prcExport1")>-1?e[t.id]=!0:e[t.id]=!1})),o(e)}else h()}),[t,h]);var f=function(){var e=_me(cfe().mark((function e(){var t,n;return cfe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d({name:Hxe,status:"updating"}),u(!0),e.prev=2,t=[],Object.keys(r).forEach((function(e){r[e]&&t.push(e)})),e.next=7,sxe(t);case 7:n=e.sent,s(n.ids),d({name:Hxe,status:"finished"}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),d({name:Hxe,status:"failed",error:e.t0});case 15:return e.prev=15,u(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}(),m={"aria-label":"Send export command","data-bi-id":"privacy.partner.exportCommandButton",onClick:f,text:"Export",disabled:l},g=p.slice(0,Rxe),v=p.slice(Rxe,p.length);return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:4},Bd().createElement(wT,{childrenGap:"8px"},g.map((function(e,t){return Bd().createElement(XL,Object.assign({},e,{key:"privacy.partner.export-checkbox-".concat(t)}))})))),Bd().createElement(_T,{slots:4},Bd().createElement(wT,{childrenGap:"8px"},v.map((function(e,t){return Bd().createElement(XL,Object.assign({},e,{key:"privacy.partner.export-checkbox-".concat(t)}))})))),Bd().createElement(_T,{slots:4},Bd().createElement(wT,null,Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,m)),Bd().createElement(im,{operationData:{componentName:"partnerExportDrawer",operationName:Hxe},inertView:Bd().createElement(DT,null,"No command sent yet."),updatingView:Bd().createElement(DT,null,"Sending command..."),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Successfully sent export command."),Bd().createElement(DT,null,"Command Ids:"),a.map((function(e){return Bd().createElement(DT,{key:e},"- ",e)})),Bd().createElement(DT,null,"cV: ",ch())),failedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Failed to send export command."),Bd().createElement(DT,null,"cV: ",ch()))}))))},Vxe=function(){var e=[{key:"custom",id:"custom",text:"Custom Selection",ariaLabel:"Custom Selection"},{key:"standard",id:"standard",text:"Standard PRC Export",ariaLabel:"Standard PRC Export"}],t=_7((0,Fd.useState)(e[0]&&e[0].key),2),n=t[0],r=t[1];return Bd().createElement(Bd().Fragment,null,Bd().createElement(DT,null,"Scenario:"),Bd().createElement(ZW,{pageArea:"privacy","data-bi-prefix":"privacy.partner.export-dropdown","aria-label":"Select Custom Selection or Standard PRC Export",value:n,options:e,onChange:function(e,t,n,o){t&&r(t.key)},width:"25%"}),Bd().createElement(zxe,{selection:n}))},Uxe=function(){return Bd().createElement(gj,{messageContent:"These controls should be used for E2E testing of export commands.",messageBarType:"info"})},Wxe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"NGP Data Types - Export Command",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(Uxe,null),Bd().createElement(Vxe,null)))},jxe="getMsaProxyTicket",qxe=function(){var t=_7((0,Fd.useState)(""),2),n=t[0],r=t[1],o=nm(),i=_7((0,Fd.useState)(!1),2),a=i[0],s=i[1],c=function(){var t=_me(cfe().mark((function t(){var n;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o({name:jxe,status:"updating"}),s(!0),t.next=5,(0,e.__awaiter)(void 0,void 0,void 0,(function(){return(0,e.__generator)(this,(function(e){switch(e.label){case 0:return[4,Tme("".concat(Lme,"/retrieve-msa-proxy-ticket"),"".concat(Ome,".TESTRETRIEVEMSAPROXYTICKET"),{})];case 1:return[2,e.sent()]}}))}));case 5:n=t.sent,r(n.msaProxyTicket),o({name:jxe,status:"finished"}),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),s(!1),o({name:jxe,status:"failed",error:t.t0});case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}();return Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,{"aria-label":"Get my MSA proxy ticket","data-bi-id":"privacy.partner.msaProxyTicket-button",text:"Get my MSA proxy ticket",onClick:c,disabled:a})),Bd().createElement(wT,{width:"50%"},Bd().createElement(im,{operationData:{operationName:jxe,componentName:"getMsaProxyTicketButton"},inertView:Bd().createElement(DT,null,"MSA Proxy Ticket not retrieved yet."),updatingView:Bd().createElement(DT,null,"Retrieving ticket..."),failedView:Bd().createElement(DT,null,"Result: Failure"),finishedView:Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,{weightOverride:"bold"},"MSA proxy ticket"),Bd().createElement(DT,null,n))})))},Gxe=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"MSA Proxy Ticket",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(qxe,null)))},Kxe=function(){return Bd().createElement(gj,{messageContent:"Please note: If you just created your command, it may take a minute or two for the ID to be available in our system.",messageBarType:"info"})},Yxe=function(){return Bd().createElement(gj,{messageContent:{textWithTokens:"Looking for help troubleshooting your export commands? Click {link} for debugging/validation steps!",tokensAndValues:{link:Bd().createElement(TA,{"aria-label":"Export troubleshooting steps","data-bi-id":"privacy.partner.exportTroubleshooting-link",href:"https://microsoft.sharepoint.com/teams/ngphome/ngpx/execution/SitePages/Export-Troubleshooting.aspx",children:"here"})}},messageBarType:"warning"})},Qxe=function(e){var t=e.traceData;return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:6},Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Result: Successfully retrieved trace data."),Bd().createElement(DT,null,"Data:"),Bd().createElement(wT,{padding:"0 0 0 24px"},Bd().createElement("ul",null,Bd().createElement("li",null,"Command ID: ",t.commandId),Bd().createElement("li",null,"Command Type: ",t.commandType),Bd().createElement("li",null,"IsComplete: ",t.isGloballyComplete?"true":"false"),Bd().createElement("li",null,"Context: ",t.context),Bd().createElement("li",null,"Requester: ",t.requester),Bd().createElement("li",null,"Export Destination: ",t.finalExportDestinationUri))))),"Export"===t.commandType?Bd().createElement(_T,{slots:6},Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(AA,{textWithTokens:"{note} If IsComplete is false, that means not all agents have responded with the necessary data for the archive. If you are sure that {your} agent has reacted to the export command, you can click on 'Force Complete' to get the archive generated regardless of the status of the other agents.",tokensAndValues:{note:Bd().createElement(DT,{weightOverride:"bold"},"Note:"),your:Bd().createElement(DT,{weightOverride:"bold"},"your")}}),Bd().createElement(DT,null,"To validate the data in your export archive:"),Bd().createElement(wT,{padding:"0 0 0 24px"},Bd().createElement("ol",null,Bd().createElement("li",null,Bd().createElement(AA,{textWithTokens:"Download Azure Storage Explorer {here}",tokensAndValues:{here:Bd().createElement(TA,{"aria-label":"Download Azure Storage Explorer","data-bi-id":"privacy.partner.downloadAzureStorageExplorer-link",href:"https://azure.microsoft.com/en-us/features/storage-explorer/",children:"here"})}})),Bd().createElement("li",null,'Select "Use a connection string or a shared access signature URI"'),Bd().createElement("li",null,'Select "Use a SAS URI"'),Bd().createElement("li",null,'Copy and paste the "Export Destination" URI'))))):null)},Xxe=function(){return Bd().createElement(CT,{totalSlots:12},Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"bold"},"Agent ID"),Bd().createElement(DT,{weightOverride:"bold"},"Asset Group ID"))),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(DT,{weightOverride:"bold"},"Asset Group Qualifier")),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(DT,{weightOverride:"bold"},"Ingestion Debug Text"),Bd().createElement(DT,{weightOverride:"bold"},"Ingestion Action Taken"),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(DT,{weightOverride:"bold"},"Force Completed?"),Bd().createElement(vR,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":"More information about Force Completed","data-bi-id":"privacy.partner.forceCompleted-callout",iconName:"Info"},children:"Whether an agent completed on its own or someone clicked 'Force Complete' before it was done processing."})))),Bd().createElement(_T,{slots:3,align:"end"},Bd().createElement(wT,null,Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(DT,{weightOverride:"bold"},"Ingestion Time"),Bd().createElement(vR,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":"More information about Ingestion Time","data-bi-id":"privacy.partner.ingestionTime-callout",iconName:"Info"},children:"The time that PCF put the command into the agent's queue."})),Bd().createElement(wT,{horizontal:!0,verticalAlign:"center"},Bd().createElement(DT,{weightOverride:"bold"},"Completed Time"),Bd().createElement(vR,{calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":"More information about Completed Time","data-bi-id":"privacy.partner.completedTime-callout",iconName:"Info"},children:"The time that the agent marked the command as completed."})),Bd().createElement(DT,{weightOverride:"bold"},"Soft Delete Time"),Bd().createElement(DT,{weightOverride:"bold"},"Ingestion Data Set Version"))))},Zxe=function(e){return"https://manage.privacy.microsoft.com/data-agents/view/".concat(e)},Jxe=function(e){return"https://manage.privacy.microsoft.com/data-assets/view/".concat(e)},$xe=_V((function(e){var t=e.assetRow,n=e.index,r=t.agentId,o=t.assetGroupId,i=Bd().createElement(YB,{hyperlinks:[{"aria-label":"Agent ".concat(r),"data-bi-id":"privacy.partner.traceDataAgentId-link",href:Zxe(r),children:"Agent: ".concat(r)},{"aria-label":"Asset ".concat(o),"data-bi-id":"privacy.partner.traceDataAssetId-link",href:Jxe(o),children:"Asset: ".concat(o)}],key:"firstColumn-".concat(n)}),a=t.assetGroupQualifier.split(";"),s=Bd().createElement(iH,{textElements:a.map((function(e){return{children:e}})),key:"secondColumn-".concat(n)}),c=Bd().createElement(iH,{textElements:[{children:t.ingestionDebugText},{children:t.ingestionActionTaken},{children:"Force completed: ".concat(t.forceCompleted)}],key:"thirdColumn-".concat(n)}),l=Bd().createElement(iH,{textElements:[{children:"Ingested: ".concat(t.ingestionTime)},{children:"Completed: ".concat(t.completedTime)},{children:"Soft Delete: ".concat(t.softDeleteTime)},{children:"Version: ".concat(t.ingestionDataSetVersion)}],key:"finalColumn-".concat(n)});return Bd().createElement(DH,{variant:"ThreeThreeThreeThree",columns:[i,s,c,l]})})),eke="DroppedDueToFiltering",tke="DroppedDueToOfflineAgent",nke=function(e){var t=e.traceData,n=e.tsvHref,r=e.agentAssetID,o=e.hideRowsValues,i=t.assetGroupStatuses.filter((function(e){if(o.dropped){if(e.ingestionActionTaken===eke)return!1;if(e.ingestionActionTaken===tke)return!1}return!(o.incomplete&&(!e.completedTime||""===e.completedTime))&&((!o.complete||!e.completedTime||""===e.completedTime)&&(""===r||!(!e.agentId.includes(r)&&!e.assetGroupId.includes(r))))}));return Bd().createElement(Bd().Fragment,null,Bd().createElement(DT,{variant:"headerText"},"Agent/Asset Group Status:"),Bd().createElement(TA,{"aria-label":"Download data as TSV","data-bi-id":"privacy.partner.downloadDataTSV-hyperlink",href:n,target:"_blank",children:"Download data as TSV",download:"agent_asset_status.tsv"}),Bd().createElement(TV,{header:Bd().createElement(Xxe,null),isAlwaysExpanded:!0,children:i.map((function(e,t){return Bd().createElement($xe,{assetRow:e,index:t})}))}))},rke=function(e){var t=e.traceData,n=e.tsvHref,r=_7((0,Fd.useState)(""),2),o=r[0],i=r[1],a=_7((0,Fd.useState)(!0),2),s=a[0],c=a[1],l=_7((0,Fd.useState)(!1),2),u=l[0],d=l[1],p=_7((0,Fd.useState)(!1),2),h=p[0],f=p[1],m={dropped:s,incomplete:u,complete:h};return Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(Qxe,{traceData:t}),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Table Filters:"),Bd().createElement(wT,{width:"25%"},Bd().createElement(Mq,{"aria-label":"Enter an agent/asset ID","data-bi-id":"privacy.partner.agentAssentID-textInput",placeholder:"Enter an agent/asset ID",value:o,onChange:function(e,t){return i(t||"")}})),Bd().createElement(XL,{"aria-label":"Hide dropped rows","data-bi-id":"privacy.partner.hideDroppedRows-checkbox",checked:s,onChange:function(e,t){return c(t||!1)},label:"Hide Dropped Rows"}),Bd().createElement(XL,{"aria-label":"Hide Incomplete rows","data-bi-id":"privacy.partner.hideIncompleteRows-checkbox",checked:u,onChange:function(e,t){return d(t||!1)},label:"Hide Incomplete Rows"}),Bd().createElement(XL,{"aria-label":"Hide Complete rows","data-bi-id":"privacy.partner.hideCompleteRows-checkbox",checked:h,onChange:function(e,t){return f(t||!1)},label:"Hide Complete Rows"})),Bd().createElement(nke,{traceData:t,tsvHref:n,agentAssetID:o,hideRowsValues:m}))},oke="completeExport",ike="getTraceData",ake="00000000-0000-0000-0000-000000000000",ske=function(){var e=nm(),t=_7((0,Fd.useState)(""),2),n=t[0],r=t[1],o=_7((0,Fd.useState)({}),2),i=o[0],a=o[1],s=_7((0,Fd.useState)(!1),2),c=s[0],l=s[1],u=_7((0,Fd.useState)(!1),2),d=u[0],p=u[1],h=_7((0,Fd.useState)(!0),2),f=h[0],m=h[1],g=_7((0,Fd.useState)(!1),2),v=g[0],y=g[1],b=_7((0,Fd.useState)(""),2),_=b[0],C=b[1],E=function(){var t=_me(cfe().mark((function t(){var r,o,i,s,c,u,d=arguments;return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=d.length>0&&void 0!==d[0]&&d[0],t.prev=1,e({name:ike,status:"updating"}),y(!0),r||e({name:oke,status:"inert"}),t.next=7,cxe(n);case 7:o=t.sent,a(o),i=o.commandId!==ake,l(i),m(!1),i&&(s=o.assetGroupStatuses,c="AgentId\tAssetGroupId\tAssetGroupQualifier\tIngestionDebugText\tIngestionActionTaken\tForceCompleted\tIngestionTime\tCompletedTime\tSoftDeleteTime\tIngestionDataSetVersion\r\n",s.forEach((function(e){c+="".concat(e.agentId,"\t").concat(e.assetGroupId,"\t").concat(e.assetGroupQualifier,"\t").concat(e.ingestionDebugText,"\t").concat(e.ingestionActionTaken,"\t").concat(e.forceCompleted,"\t").concat(e.ingestionTime,"\t").concat(e.completedTime,"\t").concat(e.softDeleteTime,"\t").concat(e.ingestionDataSetVersion,"\r\n")})),u=new Blob([c],{type:"text/tab-separated-values;charset=utf8"}),C(URL.createObjectURL(u))),e({name:ike,status:"finished"}),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),e({name:ike,status:"failed",error:t.t0});case 19:return t.prev=19,y(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[1,16,19,22]])})));return function(){return t.apply(this,arguments)}}(),w=function(){var t=_me(cfe().mark((function t(){return cfe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e({name:oke,status:"updating"}),m(!0),t.next=5,lxe(n);case 5:return e({name:oke,status:"finished"}),t.next=8,E(!0);case 8:t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),e({name:oke,status:"failed",error:t.t0}),m(!1);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}();(0,Fd.useEffect)((function(){p(i&&"Export"===i.commandType&&!i.isGloballyComplete)}),[i]);var x={"aria-label":"Get Trace Data","data-bi-id":"privacy.partner.traceRequest-button",onClick:function(){E()},text:"Get trace data",disabled:v||""===n},k={"aria-label":"Force complete export","data-bi-id":"privacy.partner.forceCompleteExport-button",onClick:w,text:"Force complete export",disabled:f};return Bd().createElement(wT,{childrenGap:"8px"},i&&"Export"===i.commandType?Bd().createElement(Yxe,null):null,Bd().createElement(wT,{width:"25%",childrenGap:"8px"},Bd().createElement(Mq,{placeholder:"Command ID","data-bi-id":"privacy.partner.requestTracing-textInput","aria-label":"Input command id",value:n,onChange:function(e,t){return r(t||"")}}),Bd().createElement(hR,x)),d?Bd().createElement(im,{operationData:{operationName:oke,componentName:"completeExportButton"},inertView:Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,k)),updatingView:Bd().createElement(wT,null,Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,k)),Bd().createElement(DT,null,"Completing export...")),failedView:Bd().createElement(wT,null,Bd().createElement(wT,{width:"25%"},Bd().createElement(hR,k)),Bd().createElement(DT,null,"Failed to complete export.")),finishedView:Bd().createElement(AA,{textWithTokens:"Successfully completed export. {note} It may take a minute or two before this command is reported as isGloballyComplete.",tokensAndValues:{note:Bd().createElement(DT,{weightOverride:"bold"},"Note:")}})}):null,Bd().createElement(im,{operationData:{operationName:ike,componentName:"getTraceDataButton"},inertView:Bd().createElement(DT,null,"No trace data retrieved yet."),updatingView:Bd().createElement(DT,null,"Retrieving data..."),failedView:Bd().createElement(DT,null,"Result: Failed to retrieve trace data."),finishedView:c?Bd().createElement(rke,{traceData:i,tsvHref:_}):Bd().createElement(DT,null,"Result: Command not found. No trace data to retrieve.")}))},cke=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Command ID Tracing",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(Kxe,null),Bd().createElement(ske,null)))},lke=function(){return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(AA,{textWithTokens:"If you would like to trigger Alt-Subject deletes, this is not the page to do it. Please check out the {link} for more information.",tokensAndValues:{link:Bd().createElement(TA,{"aria-label":"Spec for Alternate Subject Requests through PRC","data-bi-id":"privacy.partner.ngpaltsubjectrequests-link",href:"http://aka.ms/ngpaltsubjectrequests",children:"Spec for Alternate Subject Requests through PRC",target:"_blank"})}}),Bd().createElement(wT,{padding:"0 0 0 24px"},Bd().createElement("ul",null,Bd().createElement("li",null,Bd().createElement(TA,{"aria-label":"Overview of NGP Scenarios","data-bi-id":"privacy.partner.ngpscenarios-link",href:"http://aka.ms/ngpscenarios",children:"Overview of NGP Scenarios",target:"_blank"})),Bd().createElement("li",null,Bd().createElement(TA,{"aria-label":"NGP Data Types","data-bi-id":"privacy.partner.ngpdatatypes-link",href:"http://aka.ms/ngpdatatypes",children:"NGP Data Types",target:"_blank"})),Bd().createElement("li",null,Bd().createElement(TA,{"aria-label":"Starting point for all information for developing an export/delete agent","data-bi-id":"privacy.partner.ngpdataagents-link",href:"http://aka.ms/ngpdataagents",children:"Starting point for all information for developing an export/delete agent",target:"_blank"})),Bd().createElement("li",null,Bd().createElement(TA,{"aria-label":"Delete Spec","data-bi-id":"privacy.partner.ngpdelete-link",href:"http://aka.ms/ngpdelete",children:"Delete Spec",target:"_blank"})),Bd().createElement("li",null,Bd().createElement(TA,{"aria-label":"Export spec","data-bi-id":"privacy.partner.ngpexport-link",href:"http://aka.ms/ngpexport",children:"Export spec",target:"_blank"})))),Bd().createElement(AA,{textWithTokens:"Feel free to reach out to {link} with any further questions.",tokensAndValues:{link:Bd().createElement(TA,{"aria-label":"NGP Data Agents","data-bi-id":"privacy.partner.ngpsupport-link",href:"https://aka.ms/ngpsupport",children:"NGP Data Agents",target:"_blank"})}}))},uke=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Useful Information",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0,defaultExpanded:!0},Bd().createElement(wT,{childrenGap:"16px"},Bd().createElement(lke,null)))},dke=function(){var e={build:Bd().createElement(DT,{weightOverride:"bold"},"17084.1000.rsmaster.180122-1350"),settings:Bd().createElement(DT,{weightOverride:"bold"},"Settings > Privacy > Diagnostics & feedback"),link:Bd().createElement(TA,{"aria-label":"Windows Diagnostic Delete Signals spec","data-bi-id":"privacy.partner.windowsDiagnosticData-link",href:"https://microsoft.sharepoint.com/:w:/t/ngphome/ngpx/execution/EW63vK9bPxdDkqI8O2Si1ugBtIRhzq7e1TvjiwfR4K_BBQ?e=k6Ubm8",target:"_blank"},"Windows Diagnostic Delete Signals spec")};return Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(AA,{textWithTokens:"Download Windows RS4 client build {build} or later, and go to {settings} to trigger Windows Diagnostic delete commands.",tokensAndValues:e}),Bd().createElement(AA,{textWithTokens:"Note that this will generate commands against your device's MSA Global Device ID. For more information, see {link}.",tokensAndValues:e}))},pke=function(){return Bd().createElement(cV,{drawerHeader:Bd().createElement(xM,{columns:[{column:Bd().createElement(iM,{title:{children:"Windows Diagnostic Data",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},Bd().createElement(dke,null))},hke=function(){return"account.microsoft-ppe.com"===window.location.hostname?Bd().createElement(wT,null,Bd().createElement(DT,null,"This is not the PPE you are looking for."),Bd().createElement(AA,{textWithTokens:"Please go to the {ppeTestPage} or the {prodTestPage} to continue with your validation and debugging.",tokensAndValues:{ppeTestPage:Bd().createElement(TA,{"aria-label":"PPE test page","data-bi-id":"privacy.partner.ppe-test-page-link",href:"https://privacy.account.microsoft-ppe.com/privacy/partner"},"PPE Test Page"),prodTestPage:Bd().createElement(TA,{"aria-label":"PPE test page","data-bi-id":"privacy.partner.ppe-test-page-link",href:"https://account.microsoft.com/privacy/partner"},"PROD Test Page")}})):Bd().createElement(wT,null,Bd().createElement(ibe,null),Bd().createElement(wT,{childrenGap:"8px"},Bd().createElement(DT,null,"Click on one of the drop-down items below to start testing."),Bd().createElement(Bxe,null),Bd().createElement(Wxe,null),Bd().createElement(Sxe,null),Bd().createElement(fxe,null),Bd().createElement(pke,null),Bd().createElement(cke,null),Bd().createElement(Exe,null),Bd().createElement(Gxe,null),Bd().createElement(uke,null)))},fke=function(){var e=yme().adSettingsContent;return Bd().createElement(wT,{id:"third-party-ad-settings"},Bd().createElement(oN,{message:e.thirdPartyAds.pageTitle,ariaLive:"assertive"}),Bd().createElement(wT,null,Bd().createElement(ibe,{subPage:Lge,useInAppNavigation:!1}),Bd().createElement(obe,null)),Bd().createElement(dbe,{signedIn:!1}))},mke=function(){var e=Lfe(),t=e.bingMapsConfig,n=e.selfRights,r=e.selfAndKids,o=e.msaCountryCode;vp(Ove,o);var i=Kme.filter((function(e){return!("performance"===e||Wm("PrivWebSearch")&&("browse"===e||"search"===e)||Wm("PrivAppsServices")&&"usage"===e)})).map((function(e){return"overview.activityDrawers.".concat(e)})),a=Lfe(),s=a.userPuid,c=a.isAuthenticated,l=_7((0,Fd.useState)([s.valueAsHex]),1)[0],u=yme().overviewContent.amcLeftNav,d=Wm("AmcLeftNav"),p={strings:u,userIds:l,selectedNavLink:"privacy"},h={layoutType:"withoutNavBar",id:Yd.P,children:Bd().createElement(Bd().Fragment,null)};return Bd().createElement(nbe,{selfRights:n,kids:null===r||void 0===r?void 0:r.kids},Bd().createElement(Pf,null,Bd().createElement(Hm,{path:"/data-settings",area:"privacy",view:"office-settings",requiredComponents:[fCe]},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(vCe,null)}),p)),Bd().createElement(Hm,{path:"/download-data",area:"privacy",view:"download-data",requiredComponents:[Gbe]},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(l_e,null)}),p)),Bd().createElement(Hm,{path:"/location-services-opt-out",area:"privacy",view:"mac-address-opt-out",requiredComponents:[h_e]},vme(c||!1,d,YC(YC({},h),{},{children:Bd().createElement(m_e,null)}),p)),Bd().createElement(Hm,{area:"privacy",path:"/ad-settings/signedout",view:"ad-settings-signedout",requiredComponents:[Jye]},vme(!1,d,YC(YC({},h),{},{children:Bd().createElement(xbe,{signedIn:!1})}),p)),Bd().createElement(Hm,{area:"privacy",path:"/ad-settings",view:"ad-settings",requiredComponents:null!==n&&void 0!==n&&n.canManageAdSettings?[Jye]:[],manualPageView:!0},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(xbe,{signedIn:!0})}),p)),Bd().createElement(Hm,{area:"privacy",path:"/third-party-ads",view:"third-party-ads",requiredComponents:[rbe]},vme(!1,d,YC(YC({},h),{},{children:Bd().createElement(fke,null)}),p)),Wm("PrivTmlnInternalTest")?Bd().createElement(Hm,{area:"privacy",path:"/partner",view:"partner",requiredComponents:[]},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(hke,null)}),p)):null,Bd().createElement(Hm,{area:"privacy",path:"/child/:memberId",view:"child-activity",manualPageView:!0},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(Ete,{config:t},Bd().createElement(XU,null,Bd().createElement(qbe,null)))}),p)),Bd().createElement(Hm,{area:"privacy",path:"/web-search",view:"web-search",requiredComponents:["".concat(Fye,".search"),"".concat(Fye,".browse")],exact:!0,manualPageView:!0},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(XU,null,Bd().createElement(cbe,null))}),p)),Bd().createElement(Hm,{area:"privacy",path:"/apps-services",view:"apps-services",requiredComponents:["".concat(Fye,".usage")],exact:!0,manualPageView:!0},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(XU,null,Bd().createElement(abe,null))}),p)),Wm("PrivAutofill")?Bd().createElement(Hm,{area:"privacy",path:"/spelling-text",view:"spelling-text",requiredComponents:[gve],exact:!0},vme(!0,d,YC(YC({},h),{},{children:Bd().createElement(XU,null,Bd().createElement(sbe,null))}),p)):void 0,Bd().createElement(Hm,{area:"privacy",path:"/",view:"overview",requiredComponents:i,exact:!0},vme(c||!1,d,YC(YC({},h),{},{children:Bd().createElement(Ete,{config:t},Bd().createElement(V_e,null,Bd().createElement(XU,null,Bd().createElement(ixe,null))))}),p)),Bd().createElement(_f,{from:"/export",to:"/download-data"}),Bd().createElement(_f,{to:"/"})))},gke="PrivMsaljs",vke=function(){Wd((function(){HS()}));var e=Lfe(),t=Wm(gke),n=function(n){var r=n.children;if(t&&e.isAuthenticated&&e.msalConfig){var o=function(e){var t=ife({msalConfig:e,redirectUri:afe(e),cacheLocation:hne.LocalStorage,navigateToLoginRequestUrl:!1});return new ofe(t)}(e.msalConfig),i=e.signInName;return Bd().createElement(xfe,{instance:o,msalAuthConfig:{signInName:i}},r)}return Bd().createElement(Bd().Fragment,null,r)};return Bd().createElement(n,null,Bd().createElement(Lf,{basename:"/privacy"},Bd().createElement(OL,{variant:"AMC"},Bd().createElement(mke,null))))},yke=function(e){var t,n,r=e.cmsContent,o=e.areaConfig,i=e.areaContext;n=JSON.parse(o),Wd((function(){Mfe=Nfe(n)})),function(e){Wd((function(){tme=Nfe(e)}))}(JSON.parse(r)),function(e){Wd((function(){Nfe(e)}))}(JSON.parse(i));var a=null===(t=Lfe())||void 0===t?void 0:t.area;return Bd().createElement(sg,{errorComponent:vq},Bd().createElement($m,{areaBiId:a},Bd().createElement(cN,{announcedComponent:oN},Bd().createElement(vke,null))))};jEe=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){ad(e)},reportSpaPageView:function(e){id()}},cv:{getCurrentCvValue:function(){return"cv123"}},experiments:{reportExperimentTrigger:function(e){fd(e)}},perf:{reportViewPerformanceMetrics:function(e,t){vd(e,t)}},qos:{reportFatalError:function(e){cd(e)},reportOutgoingApi:function(e){ud(e)},reportRawEvent:function(e){ld(e)}}},xd({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}})),Gd().render(Bd().createElement(Lf,null,Bd().createElement(yke,e.dataset)),e)},qEe="privacy",(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=Md,r=performance.now(),o=!1,i=setTimeout((function(){o=!0,Ch(Od,qEe,r)}),3e4),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,jEe()];case 2:return e.sent(),[3,5];case 3:throw a=e.sent(),t=Nd,n=a,a;case 4:return o||(clearTimeout(i),Ch(t,qEe,r,n)),[7];case 5:return[2]}}))}))}()})();
//# sourceMappingURL=main.0cbf6322.js.map
